/* =====================================================================
   Pasindu Lakshimal — motion layer
   Every element type gets its own entrance (never one fade-up everywhere):
   labels slide · headlines rise out of a mask · paragraphs focus from a blur ·
   photos unveil from a rounded inset · cards pop · steps flip · rows slide in ·
   work cards enter by column · numbers count up · titles rise letter by letter.
   Elementor's Motion Effects pick the entrance; this file gives it the feel.
   ?static, reduced motion and the editor show final states.
   ===================================================================== */

/* ---------- Header drops in ---------- */
/* 'backwards' (not 'both'): once landed the header carries no transform, so fixed children stay fixed. */
.elementor-location-header .pl-header.e-con { animation: pl-hdr-in .9s var(--ease-out) .1s backwards; }
@keyframes pl-hdr-in { from { transform: translateY(-100%); opacity: 0; } to { transform: none; opacity: 1; } }
html.pl-intro-on .elementor-location-header .pl-header.e-con { animation-play-state: paused; }
html.pl-vt .elementor-location-header .pl-header.e-con { animation: none; }

/* ---------- Glass pill glides to the menu item you point at ---------- */
.pl-pill-host { position: relative; }
.pl-pill-host > li:not(.pl-pill) { position: relative; z-index: 1; }
.pl-pill-host > li > a.elementor-item:hover, .pl-pill-host > li > a.elementor-item:focus-visible { background: transparent !important; }
.pl-pill-host > li > a.elementor-item::before, .pl-pill-host > li > a.elementor-item::after { display: none !important; }
.pl-pill {
  position: absolute !important; left: 0; top: 0; z-index: 0; list-style: none; margin: 0; padding: 0; border-radius: 999px; pointer-events: none; opacity: 0;
  background: rgba(10, 10, 12, .055);
  box-shadow: inset 0 0 0 1px rgba(10, 10, 12, .08), inset 0 1px 0 rgba(255, 255, 255, .9), 0 8px 20px -12px rgba(10, 10, 12, .35);
  transition: transform .55s cubic-bezier(.34, 1.32, .64, 1), width .55s cubic-bezier(.34, 1.32, .64, 1), height .3s, opacity .3s, scale .18s;
}
.pl-pill.is-press { scale: .92; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pl-pill { background: rgba(243, 243, 241, .09); box-shadow: inset 0 0 0 1px rgba(243, 243, 241, .12), inset 0 1px 0 rgba(255, 255, 255, .12), 0 8px 20px -10px rgba(0, 0, 0, .7); }
}

/* ---------- Letter split titles ---------- */
.pl-w { display: inline-block; white-space: nowrap; }
.pl-ch { display: inline-block; will-change: transform; }
.pl-split-target .elementor-heading-title { overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
html.pl-split .pl-split-target .pl-ch { transform: translateY(108%); opacity: 0; }
html.pl-split .pl-split-target.is-in .pl-ch { transform: none; opacity: 1; transition: transform 1s var(--ease-out), opacity .5s; transition-delay: calc(var(--i) * 34ms); }

/* ---------- Elementor entrances, a different feel per element type ---------- */
@keyframes pl-rise { from { opacity: 0; transform: translateY(42%); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(-20% -10% -20% -10%); } }
@keyframes pl-focus { from { opacity: 0; filter: blur(10px); transform: translateY(8px); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes pl-slide { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes pl-slide-r { from { opacity: 0; transform: translateX(44px); } to { opacity: 1; transform: none; } }
@keyframes pl-pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes pl-flip { from { opacity: 0; transform: perspective(900px) rotateX(-58deg) translateY(28px); transform-origin: 50% 0; } to { opacity: 1; transform: none; transform-origin: 50% 0; } }
@keyframes pl-unveil-frame { from { clip-path: inset(8% 8% 8% 8% round 32px); } to { clip-path: inset(0 0 0 0 round 0px); } }
@keyframes pl-unveil-img { from { transform: scale(1.16); } to { transform: none; } }
@keyframes pl-panel-in { from { clip-path: inset(10% 6% 10% 6% round 40px); opacity: .4; } to { clip-path: inset(0 0 0 0 round 32px); opacity: 1; } }
@keyframes pl-btns-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.elementor-widget-heading.animated.fadeInUp { animation-name: pl-rise; animation-duration: 1.05s; animation-timing-function: var(--ease-out); }
.elementor-widget-text-editor.animated.fadeIn, .elementor-widget-theme-post-excerpt.animated.fadeIn { animation-name: pl-focus; animation-duration: 1.15s; animation-timing-function: var(--ease-out); }
.elementor-element.animated.fadeInLeft.pl-label, .elementor-element.animated.fadeInLeft.pl-sec-head, .elementor-element.animated.fadeInLeft.pl-crumbs { animation-name: pl-slide; animation-duration: .8s; animation-timing-function: var(--ease-out); }
.pl-rowitem.animated.fadeInRight, .pl-contact__row.animated.fadeInRight, .pl-tool.animated.fadeInRight { animation-name: pl-slide-r; animation-duration: .9s; animation-timing-function: var(--ease-out); }
.pl-card.animated.zoomIn, .pl-tool.animated.zoomIn, .pl-tags.animated.zoomIn { animation-name: pl-pop; animation-duration: .8s; animation-timing-function: var(--ease-out); }
.pl-step.animated.fadeInUp { animation-name: pl-flip; animation-duration: 1.05s; animation-timing-function: var(--ease-out); }
.pl-btns.animated.fadeInUp { animation-name: pl-btns-in; animation-duration: .8s; animation-timing-function: var(--ease-out); }
.pl-panel.animated.zoomIn { animation-name: pl-panel-in; animation-duration: 1.2s; animation-timing-function: var(--ease-out); }
/* photos and videos unveil from a rounded inset frame, the picture inside zooms out */
.pl-photo.animated.zoomIn, .pl-media.animated.zoomIn, .pl-video.animated.zoomIn { animation-name: pl-unveil-frame; animation-duration: 1.4s; animation-timing-function: var(--ease-out); }
.pl-photo.animated.zoomIn img, .pl-media.animated.zoomIn img, .pl-video.animated.zoomIn video { animation: pl-unveil-img 1.6s var(--ease-out) both; }

/* Cards that slide in from the side never widen the page */
.pl-site .elementor > .e-con, .pl-site .elementor-location-footer > .e-con { overflow-x: clip; }

/* ---------- Work cards (Loop Grid): enter by column, 1.25s ease, from 100% of their own size ---------- */
html.pl-rv .pl-loop .e-loop-item:not(.pl-rv-go):not(.pl-rv-done) { opacity: 0; }
.pl-loop .e-loop-item.pl-rv-go { animation-duration: 1.25s !important; animation-timing-function: ease !important; animation-fill-mode: both !important; }
.pl-in-left { animation-name: pl-card-left !important; }
.pl-in-right { animation-name: pl-card-right !important; }
.pl-in-down { animation-name: pl-card-down !important; }
.pl-in-up { animation-name: pl-card-up !important; }
@keyframes pl-card-left { from { opacity: 0; transform: translate3d(-100%, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes pl-card-right { from { opacity: 0; transform: translate3d(100%, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes pl-card-down { from { opacity: 0; transform: translate3d(0, -100%, 0); } to { opacity: 1; transform: none; } }
@keyframes pl-card-up { from { opacity: 0; transform: translate3d(0, 100%, 0); } to { opacity: 1; transform: none; } }
@media (max-width: 767px) {
  @keyframes pl-card-up { from { opacity: 0; transform: translate3d(0, 56px, 0); } to { opacity: 1; transform: none; } }
}
.pl-loop .elementor-loop-container { overflow: visible; }
.pl-loop { overflow-x: clip; overflow-y: visible; }

/* ---------- Scroll-linked: hero drifts away, big photos get parallax ---------- */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    html:not(.pl-static) .pl-hero__drift.e-con { animation: pl-drift linear both; animation-timeline: scroll(root); animation-range: 0 80vh; }
    @keyframes pl-drift { to { transform: translateY(-10vh); opacity: .15; } }
    html:not(.pl-static) .pl-parallax { overflow: hidden; border-radius: var(--r-xl); view-timeline: --pl-par block; }
    html:not(.pl-static) .pl-parallax img { animation: pl-par linear both; animation-timeline: --pl-par; animation-range: cover; scale: 1.12; }
    @keyframes pl-par { from { transform: translateY(-5%); } to { transform: translateY(5%); } }
    html:not(.pl-static) .pl-progress { animation: pl-read linear both; animation-timeline: scroll(root); }
    @keyframes pl-read { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
}

/* ---------- Page to page: a quiet cross-fade, header and tab bar stay put ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: pl-vt-out .26s var(--ease-in-out) both; }
  ::view-transition-new(root) { animation: pl-vt-in .5s var(--ease-out) both; }
  .elementor-location-header { view-transition-name: pl-header; }
  .pl-tabbar.e-con { view-transition-name: pl-tabbar; }
  @keyframes pl-vt-out { to { opacity: 0; transform: translateY(-12px); } }
  @keyframes pl-vt-in { from { opacity: 0; transform: translateY(18px); } }
}

/* ---------- Intro (once per session; curtain, doors, iris or columns) ---------- */
html.pl-intro-on { overflow: hidden; }
html.pl-intro-on .animated { animation-play-state: paused !important; }
.pl-intro { position: fixed; inset: 0; z-index: 100000; color: #F5F5F3; cursor: pointer; }
.pl-intro__p { position: absolute; top: 0; bottom: 0; background: #0B0B0C; transition: transform .95s cubic-bezier(.76, 0, .24, 1); }
.pl-intro__c { position: absolute; inset: 0; padding: 24px clamp(20px, 3.4vw, 56px) 40px; display: flex; flex-direction: column; justify-content: space-between; transition: opacity .25s; }
.pl-intro__row { display: flex; justify-content: space-between; gap: 16px; font: 600 12px/1.2 Inter, sans-serif; letter-spacing: .09em; text-transform: uppercase; color: #A9A9AD; }
.pl-intro__name { margin: 0; font: 800 clamp(72px, 19vw, 360px)/.8 "Inter Tight", Inter, sans-serif; letter-spacing: -.05em; margin-left: -.05em; white-space: nowrap; text-transform: uppercase; }
.pl-intro__name .pl-ch { transform: translateY(105%); opacity: 0; transition: transform .85s cubic-bezier(.22, 1, .36, 1), opacity .4s; transition-delay: calc(var(--i) * 52ms); }
.pl-intro.is-on .pl-intro__name .pl-ch { transform: none; opacity: 1; }
.pl-intro__name .pl-w { overflow: hidden; padding-bottom: .04em; }
.pl-intro__n { font-variant-numeric: tabular-nums; color: #F5F5F3; }
.pl-intro__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: #F5F5F3; transform-origin: 0 50%; transform: scaleX(var(--k, 0)); }
.pl-intro.is-out .pl-intro__c, .pl-intro.is-out .pl-intro__bar { opacity: 0; transition: opacity .25s; }
.pl-intro--1 .pl-intro__p { left: 0; right: 0; }
.pl-intro--1.is-out .pl-intro__p { transform: translateY(-100%); }
.pl-intro--2 .pl-intro__p { width: 50.5%; }
.pl-intro--2 .pl-intro__p:first-child { left: 0; }
.pl-intro--2 .pl-intro__p:nth-child(2) { right: 0; }
.pl-intro--2.is-out .pl-intro__p:first-child { transform: translateX(-100%); }
.pl-intro--2.is-out .pl-intro__p:nth-child(2) { transform: translateX(100%); }
@property --pl-r { syntax: "<length>"; inherits: false; initial-value: 0px; }
.pl-intro--3 .pl-intro__p { left: 0; right: 0; --pl-r: 0px;
  -webkit-mask: radial-gradient(circle at 50% 55%, transparent var(--pl-r), #000 calc(var(--pl-r) + 1px));
          mask: radial-gradient(circle at 50% 55%, transparent var(--pl-r), #000 calc(var(--pl-r) + 1px));
  transition: --pl-r 1.05s cubic-bezier(.76, 0, .24, 1); }
.pl-intro--3.is-out .pl-intro__p { --pl-r: 150vmax; }
.pl-intro--4 .pl-intro__p { width: 20.5%; }
.pl-intro--4.is-out .pl-intro__p { transform: translateY(-100%); }
@media (max-width: 767px) {
  .pl-intro__c { padding: 20px 20px 28px; }
  .pl-intro__name { font-size: 23vw; }
  .pl-intro__row { font-size: 11px; }
}

/* ---------- Reduced motion, ?static and the Elementor editor: final states, no movement ---------- */
@media (prefers-reduced-motion: reduce) {
  .elementor-invisible { visibility: visible !important; }
  .animated, .pl-hero__drift.e-con, .elementor-location-header .pl-header.e-con { animation: none !important; }
  .pl-photo.animated img, .pl-media.animated img, .pl-video.animated video { animation: none !important; }
  .pl-pill, .pl-tabbar__ind { transition: opacity .2s !important; }
  .pl-loop .e-loop-item { opacity: 1 !important; animation: none !important; }
}
html.pl-static { scroll-behavior: auto; }
html.pl-static .elementor-invisible { visibility: visible !important; }
html.pl-static .animated, html.pl-static .elementor-location-header .pl-header.e-con,
html.pl-static .pl-photo.animated img, html.pl-static .pl-media.animated img, html.pl-static .pl-video.animated video { animation: none !important; }
html.pl-static .pl-loop .e-loop-item { opacity: 1 !important; }
.elementor-editor-active .elementor-invisible, .elementor-editor-preview .elementor-invisible { visibility: visible !important; }
