/* A sticky stage lets normal scrolling scrub a continuous three-part story. */
/* Pose values belong to one plane, not every descendant in its DOM subtree.
   Older browsers ignore registration and retain the existing variable fallback. */
@property --film-x { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --film-y { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --film-read-y { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --film-roll { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --film-scale { syntax: '<number>'; inherits: false; initial-value: 1; }
@property --film-alpha { syntax: '<number>'; inherits: false; initial-value: 0; }
@property --film-span { syntax: '<length>'; inherits: false; initial-value: 900px; }
@property --film-arrival { syntax: '<number>'; inherits: false; initial-value: 0; }
@property --film-departure { syntax: '<number>'; inherits: false; initial-value: 0; }
@property --film-footer-phase { syntax: '<number>'; inherits: false; initial-value: 0; }
.brand img, .footer-logo img, .hero-mark, .cinematic-object img { height: auto; }
.team-portrait img { height: auto; }
.cinematic-story { position: relative; height: 185svh; background: #0b0b0c; }
.cinematic-stage { position: sticky; top: 88px; height: calc(100svh - 88px); min-height: 520px; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at 50% 65%, rgba(243,106,33,.15), transparent 62%), #0b0b0c; }
.cinematic-topline, .cinematic-bottomline { position: absolute; z-index: 6; left: max(32px, calc((100% - 1240px)/2)); right: max(32px, calc((100% - 1240px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; font: 10px var(--space-grotesk); letter-spacing: .12em; color: #aaa8a3; }
.cinematic-topline { top: 28px; }
.cinematic-topline a { padding: 10px 0; letter-spacing: .04em; color: var(--off-white); }
.cinematic-topline a:hover { color: var(--orange); }
.cinematic-bottomline { bottom: 28px; }
.cinematic-word { position: absolute; top: 15%; left: 50%; transform: translateX(-50%); font: 700 clamp(120px, 21vw, 380px)/.8 var(--space-grotesk); letter-spacing: -.08em; color: transparent; -webkit-text-stroke: 1px rgba(243,106,33,.16); pointer-events: none; }
.cinematic-orbit { position: absolute; left: 50%; top: 50%; width: min(72vw, 1000px); aspect-ratio: 1; border: 1px solid rgba(243,106,33,.12); border-radius: 50%; transform: translate(-50%,-50%); pointer-events: none; }
.cinematic-orbit::before, .cinematic-orbit::after { content: ''; position: absolute; inset: 12%; border: 1px dashed rgba(243,106,33,.13); border-radius: 50%; }
.cinematic-orbit::after { inset: -10%; border-style: solid; opacity: .45; }
.cinematic-object { position: absolute; z-index: 3; top: 50%; left: 50%; width: clamp(190px, 24vw, 340px); aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; border: 1px solid rgba(243,106,33,.65); border-radius: 50%; background: radial-gradient(circle at 35% 25%, #57301a, #17120f 60%, #0b0b0c); box-shadow: inset 0 0 40px rgba(243,106,33,.13), 0 0 90px rgba(243,106,33,.2); transform: translate(-50%,-50%); }
.cinematic-object img { width: 56%; transform: none; }
.cinematic-object > span { font: 10px var(--space-grotesk); letter-spacing: .35em; color: #b8a493; }
.cinematic-object-ring { position: absolute; inset: -15px; border: 1px dashed rgba(243,106,33,.4); border-radius: 50%; }
.cinematic-chapter { position: absolute; z-index: 4; width: 43%; max-width: 570px; top: 50%; left: max(32px, calc((100% - 1240px)/2)); transform: translateY(-50%); }
.cinematic-chapter h2 { margin: 0; font: 700 clamp(38px, 4.4vw, 68px)/1.02 var(--space-grotesk); letter-spacing: -.045em; }
.cinematic-chapter h2 span { color: var(--orange); }
.cinematic-chapter > p:not(.section-eyebrow) { max-width: 420px; margin: 24px 0 0; color: #b6b4ae; font-size: 17px; line-height: 1.65; }
.cinematic-chapter .button { margin-top: 28px; }
.chapter-two { left: auto; right: max(32px, calc((100% - 1240px)/2)); }
.chapter-three { width: 75%; max-width: 1000px; top: 26%; left: 50%; text-align: center; transform: translate(-50%,-50%); }
.chapter-three h2 { font-size: clamp(38px, 4.5vw, 70px); }
.chapter-three > p:not(.section-eyebrow) { margin: 18px auto 0; }
.chapter-three .button { margin-top: 20px; }
.cinematic-capability { position: absolute; z-index: 2; top: 50%; left: 50%; width: 190px; padding: 18px; border: 1px solid rgba(243,106,33,.28); background: rgba(24,25,27,.92); box-shadow: 0 16px 40px rgba(0,0,0,.25); transform: translate(-50%,-50%); }
.cinematic-capability span { color: var(--orange); font: 10px var(--space-grotesk); }
.cinematic-capability strong { display: block; margin: 12px 0 8px; font: 600 16px var(--space-grotesk); }
.cinematic-capability small { color: #aaa8a3; font-size: 11px; }
.cinematic-progress { width: min(30vw, 300px); height: 2px; background: rgba(244,241,236,.13); }
.cinematic-progress i { display: block; width: 100%; height: 100%; background: var(--orange); transform-origin: left; transform: scaleX(var(--cinema-progress, 0)); }
.chapter-two, .chapter-three { opacity: 0; pointer-events: none; }
.cinematic-story.is-cinematic .cinematic-object, .cinematic-story.is-cinematic .cinematic-capability { will-change: transform; }
.cinematic-stage a:focus-visible { outline: 2px solid var(--orange); outline-offset: 6px; }
.in-cinematic .scene-dock { opacity: 0; pointer-events: none; }
@media (max-width: 1050px) {
  .cinematic-stage { top: 88px; }
  .cinematic-chapter h2 { font-size: clamp(34px, 4.8vw, 52px); }
  .cinematic-capability { width: 158px; padding: 14px; }
  .cinematic-capability strong { font-size: 14px; }
}
@media (max-width: 640px) {
  .cinematic-story { height: 180svh; }
  .cinematic-stage { top: 76px; height: calc(100svh - 76px); min-height: 0; }
  .cinematic-topline, .cinematic-bottomline { left: 20px; right: 20px; font-size: 8px; gap: 12px; }
  .cinematic-topline { top: 18px; }
  .cinematic-bottomline { bottom: 18px; }
  .cinematic-word { top: 43%; font-size: 35vw; }
  .cinematic-object { width: 154px; gap: 12px; }
  .cinematic-object > span { font-size: 8px; }
  .cinematic-chapter, .chapter-two, .chapter-three { top: 24%; left: 20px; right: 20px; width: auto; max-width: none; transform: translateY(-50%); text-align: left; }
  .cinematic-chapter h2, .chapter-three h2 { font-size: clamp(30px, 8.5vw, 42px); }
  .cinematic-chapter .section-eyebrow { font-size: 9px; margin-bottom: 12px; }
  .cinematic-chapter > p:not(.section-eyebrow), .chapter-three > p:not(.section-eyebrow) { margin: 14px 0 0; font-size: 13px; line-height: 1.5; }
  .chapter-three .button { margin-top: 14px; padding: 12px 16px; font-size: 12px; }
  .cinematic-capability { width: 138px; padding: 12px; }
  .cinematic-capability strong { font-size: 12px; margin: 8px 0 5px; }
  .cinematic-capability small { font-size: 9px; }
  .cinematic-progress { width: 65px; flex-shrink: 0; }
  .cinematic-scroll-hint { max-width: 160px; line-height: 1.5; }
}
@media (max-width: 640px) and (max-height: 700px) {
  .cinematic-chapter, .chapter-two, .chapter-three { top: 64px; transform: none; }
  .cinematic-chapter h2, .chapter-three h2 { font-size: 28px; }
  .cinematic-chapter > p:not(.section-eyebrow) { font-size: 12px; margin-top: 10px; }
  .chapter-three .button { margin-top: 10px; padding: 10px 14px; }
}
/* A readable static scene is also the no-JavaScript fallback. */
.cinematic-story:not(.is-cinematic) { height: auto; }
.cinematic-story:not(.is-cinematic) .cinematic-stage { position: relative; top: 0; min-height: 760px; }
.cinematic-story:not(.is-cinematic) .chapter-one, .cinematic-story:not(.is-cinematic) .chapter-two { display: none; }
.cinematic-story:not(.is-cinematic) .chapter-three { opacity: 1; pointer-events: auto; }
.cinematic-story:not(.is-cinematic) .cinematic-object { top: 67%; }
.cinematic-story:not(.is-cinematic) .cinematic-capabilities, .cinematic-story:not(.is-cinematic) .cinematic-bottomline { display: none; }

/* One physical mark carries the story through the page. */
.cinematic-object.journey-object { position: fixed; top: 0; left: 0; z-index: 10; pointer-events: none; will-change: transform, opacity; contain: layout; transition: none; }
/* Backgrounds < travelling mark < reading surfaces < navigation. Remove the
   ancestor stacking contexts so foreground content really sits above the mark. */
.journey-enabled main { z-index: auto; }
.journey-enabled .site-footer { z-index: 20; }
.journey-enabled .hero, .journey-enabled .scroll-scene { isolation: auto; z-index: auto; }
.journey-enabled .hero.scroll-scene > .hero-grid { z-index: auto; transform: none; }
.journey-enabled .hero-copy { position: relative; z-index: 20; }
.journey-enabled .cinematic-stage { z-index: 20; background: transparent; }
.journey-enabled .cinematic-story .cinematic-stage { transform: translateY(calc(var(--movie-exit, 0) * -40px)); }
.journey-enabled .hero-mark, .journey-enabled .core-orbit { opacity: 0; }
.journey-enabled .journey-section { position: relative; padding-top: 280px; --journey-surface: #0b0b0c; }
.motion-ready .journey-enabled .journey-section > .container,
.journey-enabled .journey-section > .container { position: relative; z-index: 20; width: calc(100% - 112px); max-width: var(--container); margin-inline: auto; opacity: 1; transform: perspective(1800px) translate3d(var(--movie-pan-x, 0px), var(--movie-pan-y, 0px), 0) rotateX(var(--movie-pitch, 0deg)) rotate(var(--movie-roll, 0deg)) scale(var(--movie-scale, 1)); transform-origin: center top; }
/* The reading shield belongs to the full-width background, not the moving
   text box. No padded rectangle can protrude beneath the cards or paragraphs. */
.movie-reading-surface { display: none; }
.journey-enabled .movie-reading-surface { display: block; position: absolute; z-index: 15; top: 208px; bottom: 0; left: 0; right: 0; background: var(--journey-surface); mask-image: linear-gradient(180deg, transparent, #000 72px, #000 calc(100% - 120px), transparent); pointer-events: none; }
.journey-enabled .positioning-section, .journey-enabled .partnership-section, .journey-enabled .about-section { --journey-surface: var(--off-white); }
.journey-enabled .why-section { --journey-surface: #eeeae4; }
.journey-enabled .proof-section { --journey-surface: #151617; }
.journey-enabled .process-section { --journey-surface: #0d0d0e; }
.journey-enabled .team-section { --journey-surface: #09090a; }
.journey-enabled .contact-section { --journey-surface: #161719; }
.journey-port { display: none; }
.journey-enabled .journey-port { display: block; position: absolute; top: 24px; left: 50%; width: 290px; height: 290px; transform: translateX(-50%); pointer-events: none; }
.journey-port::before { content: ''; position: absolute; inset: 0; border: 1px dashed rgba(243,106,33,.28); border-radius: 50%; }
.journey-port::after { content: ''; position: absolute; top: 50%; left: -100px; right: -100px; height: 1px; background: linear-gradient(90deg, transparent, rgba(243,106,33,.28), transparent); }
.journey-port span { position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%); white-space: nowrap; font: 9px var(--space-grotesk); letter-spacing: .16em; color: var(--orange); }
.journey-enabled .service-card.reveal, .journey-enabled .partnership-card.reveal, .journey-enabled .proof-stat.reveal, .journey-enabled .case-study-card.reveal, .journey-enabled .process-step.reveal { filter: none; clip-path: none; }
.journey-enabled .motion-layer { will-change: auto; }
/* The page and mark share a timeline, but reading surfaces stay above the mark.
   Individual transforms compose with existing reveal/hover effects. */
.movie-transition { display: none; }
.movie-bridge { display: none; }
.journey-enabled .movie-bridge { display: block; position: absolute; z-index: 4; left: 0; right: 0; pointer-events: none; background: linear-gradient(180deg, var(--bridge-from) 0%, var(--bridge-from) calc(var(--bridge-center, 50) * 1% - 32%), var(--bridge-to) calc(var(--bridge-center, 50) * 1% + 32%), var(--bridge-to) 100%); mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent); }
.journey-enabled .movie-transition { display: block; position: absolute; z-index: 3; inset: 0; overflow: clip; pointer-events: none; }
.movie-transition::after { content: ''; position: absolute; inset: -25%; background: radial-gradient(ellipse at 65% 18%, rgba(243,106,33,.12), transparent 45%), repeating-linear-gradient(125deg, transparent 0 160px, rgba(243,106,33,.05) 160px 161px, transparent 161px 320px); transform: translate3d(calc(var(--movie-pan-x, 0px) * .6), calc(var(--movie-pan-y, 0px) * .65), 0) rotate(calc(var(--movie-roll, 0deg) * .65)) scale(calc(1 + var(--movie-beat, 0) * .08)); }
.journey-enabled .movie-heading { translate: 0 calc(var(--movie-entry, 0) * 18px); }
.journey-enabled .movie-piece { translate: calc(var(--piece-entry, 0) * var(--piece-x, 0px)) calc(var(--piece-entry, 0) * var(--piece-y, 0px)); rotate: calc(var(--piece-entry, 0) * var(--piece-roll, 0deg)); }
.motion-ready .journey-enabled .journey-section:focus-within > .container,
.journey-enabled .journey-section:focus-within > .container { transform: none; }
.journey-enabled .journey-section:focus-within .movie-heading, .journey-enabled .journey-section:focus-within .movie-piece { translate: none; rotate: none; }
@media (max-width: 640px) {
  .journey-enabled .journey-section { padding-top: 200px; }
  .journey-enabled .movie-reading-surface { top: 128px; }
  .journey-enabled .journey-section > .container { width: calc(100% - 68px); margin-left: 20px; margin-right: 48px; }
  .journey-enabled .journey-port { top: 22px; width: 150px; height: 150px; }
  .journey-port::after { left: -70px; right: -70px; }
  .journey-port span { font-size: 8px; }
  .cinematic-object.journey-object > span { display: none; }
  .journey-enabled .contact-email { font-size: clamp(14px, 4.2vw, 16px); }
  .journey-enabled .movie-heading { translate: 0 calc(var(--movie-entry, 0) * 16px); }
  .journey-enabled .cinematic-story .cinematic-stage { transform: translateY(calc(var(--movie-exit, 0) * -20px)); }
}

/* A single viewport stage replaces vertical section travel. Section spacers
   are still real hash targets, and native scrolling remains the playhead. */
.film-screen { display: none; }
.film-screen-next { display: none; }
.film-tail { display: none; }
.film-enabled .film-tail { display: block; height: calc(100svh - var(--film-header, 88px)); }
.film-enabled .site-footer { position: fixed; z-index: 30; top: var(--film-header, 88px); bottom: 0; left: 0; right: 0; width: 100%; visibility: hidden; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #34302b #09090a; transform: translateY(calc((1 - var(--film-footer-phase, 0)) * 100svh)); }
.film-mode { scroll-padding-top: 0; scrollbar-gutter: stable; }
.film-enabled .film-screen { display: block; position: fixed; z-index: 5; top: var(--film-header, 88px); bottom: 0; left: 0; right: 0; pointer-events: none; visibility: hidden; background: radial-gradient(ellipse at var(--film-glow-x, 50%) 60%, rgba(243,106,33,.12), transparent 55%), var(--film-colour, #0b0b0c); }
.motion-ready .journey-enabled.film-enabled .journey-section { height: var(--film-span, 900px); min-height: 0; padding: 0; background: transparent; overflow: visible; scroll-margin-top: var(--film-header, 88px); }
.film-enabled .journey-section::before, .film-enabled .journey-section::after,
.film-enabled .journey-port, .film-enabled .movie-transition, .film-enabled .movie-reading-surface,
.film-enabled .movie-bridge, .film-enabled .journey-section > .scene-ordinal,
.film-enabled .journey-section > .scene-portal, .film-enabled .journey-section > .scene-play-tag { display: none; }
.motion-ready .journey-enabled.film-enabled .journey-section > .container { position: fixed; top: var(--film-top, 124px); left: 50%; right: auto; margin: 0; padding: 32px; border: 1px solid rgba(243,106,33,.16); border-radius: 12px; background: var(--journey-surface); translate: -50% 0; opacity: var(--film-alpha, 0); visibility: hidden; transform: translate3d(var(--film-x, 0px), var(--film-y, 0px), 0) rotate(var(--film-roll, 0deg)) scale(var(--film-scale, 1)); transform-origin: center top; will-change: auto; }
.film-enabled .journey-section .movie-heading, .film-enabled .journey-section .movie-piece { translate: none; rotate: none; }
.motion-ready .journey-enabled.film-enabled .journey-section:focus-within > .container { transform: translate3d(0, calc(var(--film-read-y, 0px) + var(--film-focus-y, 0px)), 0); opacity: 1; }
.film-enabled:has(.journey-section :focus-visible) .scene-dock { visibility: hidden; }
.film-enabled .cinematic-story .cinematic-stage { opacity: calc(1 - var(--film-intro-exit, 0)); }
@media (max-width: 640px) {
  .motion-ready .journey-enabled.film-enabled .journey-section > .container { left: 20px; translate: none; width: calc(100% - 40px); padding: 18px; border-radius: 8px; }
}

/* The stage already animates each complete scene. Retire the earlier inner
   parallax/reveals here so cards stay on one grid and content never fades late. */
.motion-ready .journey-enabled.film-enabled .journey-section .reveal,
.motion-ready .journey-enabled.film-enabled .journey-section .motion-layer {
  opacity: 1;
  transform: none;
  filter: none;
  clip-path: none;
  will-change: auto;
  transition: background .2s ease, border-color .2s ease;
  transition-delay: 0s;
}
.film-playing .journey-section > .container[style*="visibility: visible"] {
  will-change: transform, opacity;
}

/* Quiet card surfaces: keep thin edges and hover feedback, not a stack of
   moving orange spotlights and deep shadows underneath the reading content. */
.motion-ready .service-card.reveal.is-visible,
.motion-ready .partnership-card.reveal.is-visible,
.motion-ready .proof-stat.reveal.is-visible,
.motion-ready .case-study-card.reveal.is-visible,
.motion-ready .process-step.reveal.is-visible,
.service-card, .partnership-card, .proof-stat, .case-study-card, .process-step {
  box-shadow: none;
}
.service-card::before, .partnership-card::after,
.case-study-card::after, .process-step::after {
  display: none;
}
.case-study-card { background: rgba(255,255,255,.015); }
.case-study-card::before { box-shadow: none; opacity: .45; }
.service-card:hover, .partnership-card:hover, .proof-stat:hover,
.case-study-card:hover, .process-step:hover {
  background: rgba(243,106,33,.025);
  box-shadow: inset 0 1px 0 rgba(243,106,33,.22);
}
.team-lineup { box-shadow: 0 12px 32px rgba(0,0,0,.12); }
.motion-ready .contact-panel { box-shadow: 0 12px 32px rgba(0,0,0,.12); }

/* Keep the phone's compositing budget for the film, not ambient decoration.
   The mark, overlapping content planes and artwork fan keep their choreography. */
@media (max-width: 640px) {
  .journey-enabled .experience-fx,
  .journey-enabled .scroll-aura { display: none; }
  .journey-enabled .site-header,
  .journey-enabled .chapter-menu,
  .journey-enabled .team-identity,
  .journey-enabled .command-panel,
  .journey-enabled .system-node,
  .journey-enabled .play-chip { backdrop-filter: none; }
  .film-enabled .film-screen {
    background: radial-gradient(ellipse at 50% 60%, rgba(243,106,33,.06), transparent 60%), var(--film-colour, #0b0b0c);
    contain: paint;
  }
  .film-enabled .film-screen-next {
    display: block;
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 60%, rgba(243,106,33,.06), transparent 60%), var(--film-colour, #0b0b0c);
    opacity: 0;
    will-change: opacity;
  }
  /* Retain the visible scene's compositor layer between gestures instead of
     tearing it down and rasterising the same text again at every swipe. */
  .motion-ready .journey-enabled.film-enabled .journey-section > .container[style*="visibility: visible"] {
    will-change: transform, opacity;
  }
  .cinematic-object.journey-object {
    box-shadow: none;
    background: #17120f;
  }
  .journey-enabled .team-lineup,
  .motion-ready .journey-enabled .contact-panel,
  .journey-enabled .showcase-ready .work-visual img { box-shadow: none; }
  .journey-enabled .hero::before,
  .journey-enabled .hero::after { display: none; }
  .journey-enabled .hero-copy .eyebrow,
  .journey-enabled .hero h1,
  .journey-enabled .signal-path { filter: none; }
  .journey-enabled .command-panel::before,
  .journey-enabled .command-panel::after,
  .journey-enabled .core-orbit,
  .journey-enabled .signal-path,
  .journey-enabled .command-live i,
  .journey-enabled .system-node,
  .journey-enabled .play-chip,
  .journey-enabled .fx-spark { animation: none; }
}
