/* =========================================================================
   PrimeFloAI home — the scroll film.
   Choreography after trionn.com (hero ride film → shatter → manifesto → pinned marquee →
   key facts → horizontal systems → disc drop → stories → ribbon → finale),
   lit as the Grid: black glass, cyan light, violet at the far end.
   Everything here reads as a plain, static page until html.x-on is set.
   ========================================================================= */

.x-home {
  --pad: clamp(16px, 3.3vw, 52px);
  --lit-1: #0c1a2c;
  --lit-2: #060e1a;
  --mono: var(--font-grid);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.x-wrap { width: 100%; padding-inline: var(--pad); }

/* split text */
.wd { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; will-change: transform, opacity, filter; }
.w { display: inline; }

/* machine labels */
.x-mono {
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.7;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.x-mono span { color: var(--cyan); text-shadow: 0 0 10px rgba(95, 233, 255, 0.8); }

/* underlined text link with a light line that draws across on hover */
.x-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-width: 200px;
  padding: 11px 0;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: left;
}
.x-link::before, .x-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: rgba(212, 236, 248, 0.32);
}
.x-link::after {
  background: linear-gradient(90deg, var(--light), var(--cyan));
  box-shadow: 0 0 10px rgba(95, 233, 255, 0.9);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.x-link:hover::after, .x-link:focus-visible::after { transform: none; }
.x-link svg { width: 12px; height: 12px; flex: none; transition: transform 0.5s var(--ease); }
.x-link:hover svg { transform: translateX(4px); }
.x-links { display: flex; flex-wrap: wrap; gap: 8px 34px; }
/* the demo-call button leads its row of links; the text links follow it */
.x-links .btn { flex: none; align-self: flex-start; margin-bottom: 10px; }

.x-h2 {
  font-size: clamp(40px, 5vw, 86px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}

/* ---------- WebGL light layer + fog ---------- */
.x-gl {
  position: fixed;
  inset: 0;
  z-index: 6;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  mix-blend-mode: screen; /* black is no light: only the shards' light lands on the page */
  opacity: 0;
  transition: opacity 0.2s linear;
}
html:not(.x-on) .x-gl, html:not(.x-on) .x-fog { display: none; }
.x-fog {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 50%, #04101c 0%, #010309 70%);
}
.x-fog i {
  position: absolute;
  width: 70vmax;
  height: 50vmax;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: x-drift 26s ease-in-out infinite alternate;
}
.x-fog i:nth-child(1) { left: -20vmax; top: -10vmax; background: radial-gradient(closest-side, rgba(40, 140, 220, 0.5), transparent); }
.x-fog i:nth-child(2) { right: -25vmax; top: 10vmax; background: radial-gradient(closest-side, rgba(110, 90, 255, 0.42), transparent); animation-duration: 32s; animation-delay: -8s; }
.x-fog i:nth-child(3) { left: 10vmax; bottom: -28vmax; background: radial-gradient(closest-side, rgba(60, 200, 255, 0.35), transparent); animation-duration: 38s; animation-delay: -14s; }
.x-fog b {
  position: absolute;
  left: -50%; right: -50%; bottom: -12%;
  height: 62%;
  background-image:
    linear-gradient(rgba(95, 233, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 233, 255, 0.22) 1px, transparent 1px);
  background-size: 80px 80px;
  transform: perspective(520px) rotateX(72deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 85%);
  mask-image: linear-gradient(to top, #000 0%, transparent 85%);
}
@keyframes x-drift { to { transform: translate3d(14vmax, 8vmax, 0) scale(1.15); } }

/* ---------- lit panels (the trionn "light" sections, as a lit grid room) ---------- */
.x-lit {
  position: relative;
  z-index: 3;
  isolation: isolate;
  background: linear-gradient(180deg, var(--lit-1) 0%, var(--lit-2) 100%);
}
.x-grid-floor {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(80% 60% at 50% 110%, rgba(60, 190, 255, 0.16), transparent 70%),
    linear-gradient(rgba(95, 233, 255, 0.045) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(90deg, rgba(95, 233, 255, 0.045) 1px, transparent 1px) 0 0 / 72px 72px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

/* ---------- blinds: horizontal bars that close over a scene ---------- */
.x-blinds {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  grid-template-rows: repeat(10, 1fr);
  pointer-events: none;
}
.x-blinds i {
  --glow: 1;
  display: block;
  margin: -0.5px 0; /* no hairline seams once the bars meet */
  background: var(--lit-1);
  transform: scaleY(0);
  box-shadow:
    inset 0 1px 0 rgba(150, 240, 255, calc(0.9 * var(--glow))),
    inset 0 -1px 0 rgba(150, 240, 255, calc(0.9 * var(--glow))),
    0 0 22px rgba(95, 233, 255, calc(0.55 * var(--glow)));
}
.x-blinds.to-dark i { background: var(--bg); }
html:not(.x-on) .x-blinds { display: none; }

/* =========================================================================
   01 · Hero film — the ride, scrubbed by the scroll (js/film.js)
   A sticky stage holds the canvas; each headline arrives on a beat of the
   footage. Until html.x-on it is one still with the main headline.
   ========================================================================= */
.x-film {
  position: relative;
  z-index: 7; /* over the light layer: the shards wait until the ride is over */
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: clip;
  background: var(--bg);
}
/* the stage always covers the screen, so the section can be clear: when the ride ends the stage fades
   (--out, set by home.js) and the shards' light layer underneath takes over the same dark */
html.x-on .x-film { height: 1300vh; height: 1300svh; background: none; }
.x-film-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
}
html.x-on .x-film-stage { opacity: calc(1 - var(--out, 0)); }
.x-film-frame {
  position: absolute;
  inset: 0 0 auto;
  height: 100vh;
  height: 100lvh; /* reaches under a phone's collapsing toolbar */
  min-height: 100%;
  overflow: hidden;
}
.x-film-frame img, .x-film-frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.x-film-frame img { object-fit: cover; }
.x-film-frame canvas { opacity: 0; transition: opacity 0.3s linear; }
.x-film.is-ready .x-film-frame canvas { opacity: 1; }

/* shading only where the words sit, so the ride stays the loudest thing on screen */
.x-film-shade i { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); }
.x-film-shade .t { opacity: 1; background: linear-gradient(180deg, rgba(1, 3, 9, 0.6) 0%, rgba(1, 3, 9, 0.2) 14%, transparent 24%); }
.x-film-shade .b { opacity: 1; background: linear-gradient(0deg, rgba(1, 3, 9, 0.75) 0%, rgba(1, 3, 9, 0.25) 12%, transparent 22%); }
.x-film-shade .l { background: linear-gradient(90deg, rgba(1, 3, 9, 0.8) 0%, rgba(1, 3, 9, 0.5) 30%, transparent 62%); }
.x-film-shade .r { background: linear-gradient(270deg, rgba(1, 3, 9, 0.8) 0%, rgba(1, 3, 9, 0.5) 30%, transparent 62%); }
.x-film-shade .bb { background: linear-gradient(0deg, rgba(1, 3, 9, 0.9) 0%, rgba(1, 3, 9, 0.55) 26%, transparent 54%); }
.x-film-shade .tl { background: radial-gradient(ellipse 62% 78% at 0% 0%, rgba(1, 3, 9, 0.9) 0%, rgba(1, 3, 9, 0.62) 46%, transparent 100%); }
.x-film[data-shade~='l'] .x-film-shade .l,
.x-film[data-shade~='r'] .x-film-shade .r,
.x-film[data-shade~='bb'] .x-film-shade .bb,
.x-film[data-shade~='tl'] .x-film-shade .tl { opacity: 1; }

/* ---------- the headlines ---------- */
.x-film-chapters { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.x-ch {
  position: absolute;
  inset: 0;
  display: grid;
  padding: clamp(104px, 15vh, 150px) var(--pad) clamp(92px, 13vh, 124px);
}
.x-ch-copy { max-width: 36rem; }
.x-ch a, .x-ch button { pointer-events: auto; }
.x-ch .x-eyebrow { margin-bottom: 20px; }
.x-ch-title {
  font-size: clamp(38px, 4.6vw, 78px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
  text-shadow: 0 2px 28px rgba(1, 3, 9, 0.55);
}
.x-ch-title--xl { font-size: clamp(42px, 5.5vw, 96px); }
.x-ch-title--sm { font-size: clamp(22px, 2vw, 34px); letter-spacing: -0.03em; }
.x-line { display: block; }
.x-swap {
  display: inline-block;
  white-space: nowrap;
  vertical-align: top;
  color: #c8f8ff;
  text-shadow: 0 0 22px rgba(95, 233, 255, 0.75), 0 0 60px rgba(47, 155, 255, 0.45);
}
.x-ch-deck { max-width: 25rem; margin-top: 20px; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.55; color: rgba(239, 252, 255, 0.94); text-shadow: 0 1px 2px rgba(1, 3, 9, 0.9), 0 1px 16px rgba(1, 3, 9, 0.85); }
.x-ch-num {
  margin: -0.06em 0 0.04em -0.04em;
  font-size: clamp(120px, 15vw, 250px);
  font-weight: 500;
  line-height: 0.86;
  letter-spacing: -0.065em;
  font-variant-numeric: tabular-nums;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(95, 233, 255, 0.35));
}
.x-ch .x-links { margin-top: 26px; }

/* where each headline sits, read off the footage */
.x-ch--leap { align-items: end; }
.x-ch--leap .x-ch-copy { max-width: none; }
.x-ch--leap .x-line { white-space: nowrap; }
.x-ch--build { align-items: end; }
.x-ch--build .x-ch-copy { max-width: 30rem; }
.x-ch--ride { align-items: start; }
/* proof: the results card floats out of the tower on a timed entrance, settles right of the rider,
   grows a little with the ride (--s) and fades as he nears the tower (--fade); both from film.js */
.x-ch--proof { padding: 0 var(--pad); align-items: center; justify-items: end; }
.x-proof {
  --s: 0.92; --fade: 1; --fx: -8vw; --fy: -8vh; /* where it starts: the tower */
  position: relative;
  width: min(31vw, 520px);
  margin: 4vh 9vw 0 0; /* in from the edge, a touch nearer the rider */
  scale: var(--s);
  /* waiting small and blurred at the tower's foot */
  opacity: 0;
  transform: translate(var(--fx), var(--fy)) scale(0.16);
  filter: blur(10px);
  transition: opacity 0.35s ease, transform 0.5s ease, filter 0.4s ease;
  will-change: transform, opacity, scale;
}
.x-ch--proof.is-on .x-proof {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition: opacity 1s ease-out, transform 2.4s cubic-bezier(0.3, 0.75, 0.3, 1), filter 1.2s ease-out;
}
.x-ch--proof.is-past .x-proof { opacity: 0; transform: translate(4vw, -6vh) scale(1.08); filter: blur(6px); }
.x-proof-float {
  position: relative;
  opacity: var(--fade);
  filter: blur(calc((1 - var(--fade)) * 4px));
  animation: x-proof-bob 6.5s ease-in-out infinite;
}
.x-proof img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2.4% / 4.3%;
  box-shadow: 0 0 0 1px rgba(150, 240, 255, 0.18), 0 30px 80px -20px rgba(1, 3, 9, 0.9), 0 0 70px -10px rgba(140, 90, 255, 0.45);
}
@keyframes x-proof-bob {
  0%, 100% { transform: translateY(0) rotate(-0.25deg); }
  50% { transform: translateY(-1.4%) rotate(0.25deg); }
}

/* the current: two faint charges circling the frame, a few sparks off the edges, a frequency line beneath */
.x-proof-arcs, .x-proof-wave { position: absolute; pointer-events: none; overflow: visible; }
.x-proof-arcs { inset: -0.6%; width: 101.2%; height: 101.2%; }
.x-proof-arcs .run {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 240 2782; /* the frame's perimeter is ~3022 units */
  animation: x-proof-run 5.5s linear infinite;
}
.x-proof-arcs .run-a { stroke: #9ff3ff; filter: drop-shadow(0 0 4px #5fe9ff) drop-shadow(0 0 10px rgba(95, 233, 255, 0.6)); opacity: 0.75; }
.x-proof-arcs .run-b { stroke: #d6b3ff; filter: drop-shadow(0 0 4px #b46bff) drop-shadow(0 0 10px rgba(180, 107, 255, 0.6)); opacity: 0.6; stroke-dasharray: 150 2872; animation-duration: 7.5s; animation-direction: reverse; }
@keyframes x-proof-run { to { stroke-dashoffset: -3022; } }
.x-proof-arcs .zap {
  fill: none;
  stroke: #c9f7ff;
  stroke-width: 1.2;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 3px #5fe9ff) drop-shadow(0 0 8px rgba(95, 233, 255, 0.7));
  opacity: 0;
  animation: x-proof-zap 4.2s steps(1, end) infinite;
}
.x-proof-arcs .zap-2 { stroke: #e2c9ff; filter: drop-shadow(0 0 3px #b46bff) drop-shadow(0 0 8px rgba(180, 107, 255, 0.7)); animation-delay: 1.3s; animation-duration: 5.1s; }
.x-proof-arcs .zap-3 { animation-delay: 2.6s; animation-duration: 6.3s; }
.x-proof-arcs .zap-4 { stroke: #e2c9ff; filter: drop-shadow(0 0 3px #b46bff) drop-shadow(0 0 8px rgba(180, 107, 255, 0.7)); animation-delay: 3.4s; animation-duration: 4.7s; }
@keyframes x-proof-zap {
  0%, 100% { opacity: 0; }
  2% { opacity: 0.85; }
  3.5% { opacity: 0.15; }
  5% { opacity: 0.7; }
  7% { opacity: 0; }
}
.x-proof-wave { left: 10%; bottom: -6%; width: 80%; height: 5%; opacity: 0.7; mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); }
.x-proof-wave .w { fill: none; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.x-proof-wave .w-1 { stroke: #7fefff; filter: drop-shadow(0 0 4px #5fe9ff); animation: x-proof-wave 2.6s linear infinite; }
.x-proof-wave .w-2 { stroke: #c7a2ff; opacity: 0.7; filter: drop-shadow(0 0 4px #b46bff); animation: x-proof-wave2 1.9s linear infinite; }
@keyframes x-proof-wave { to { transform: translateX(-100px); } }
@keyframes x-proof-wave2 { to { transform: translateX(-60px); } }
html:not(.x-on) .x-proof-float, html:not(.x-on) .x-proof-arcs *, html:not(.x-on) .x-proof-wave * { animation: none; }
.x-ch--proof:not(.is-on) .x-proof-float, .x-ch--proof:not(.is-on) .x-proof-arcs *, .x-ch--proof:not(.is-on) .x-proof-wave * { animation-play-state: paused; }
.x-ch--final { align-items: end; }
.x-ch--final .x-ch-copy { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; }
.x-ch--final .x-ch-title { max-width: 7.5em; }
.x-ch-side { display: grid; justify-items: start; gap: 18px; }
.x-ch-side .x-links { margin: 0; flex-direction: column; gap: 0; }
.x-note-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(150, 240, 255, 0.2);
}
.x-note-fig {
  font-size: clamp(24px, 2.1vw, 32px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
  color: var(--light);
  text-shadow: 0 0 18px rgba(95, 233, 255, 0.6), 0 2px 14px rgba(1, 3, 9, 0.9);
}
.x-note-label { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; line-height: 1.7; text-transform: uppercase; color: var(--ink); text-shadow: 0 1px 10px rgba(1, 3, 9, 0.95); }

/* static: only the main headline, over one still */
html:not(.x-on) .x-ch:not(.x-ch--leap) { display: none; }

/* motion: a headline is hidden until its beat, letters rise in, then lift away */
html.x-on .x-ch { visibility: hidden; transition: visibility 0s linear 0.9s; }
html.x-on .x-ch.is-on { visibility: visible; transition: none; }
html.x-on .x-ch [data-fx] .ch {
  opacity: 0;
  transform: translateY(0.55em);
  filter: blur(12px);
  transition: opacity 0.5s var(--ease), transform 1s var(--ease), filter 0.8s var(--ease);
  transition-delay: calc(var(--i) * 20ms + 0.06s);
}
html.x-on .x-ch [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
html.x-on .x-ch.is-on [data-fx] .ch,
html.x-on .x-ch.is-on [data-reveal] { opacity: 1; transform: none; filter: blur(0); }
html.x-on .x-ch.is-past [data-fx] .ch { transform: translateY(-0.4em); transition-duration: 0.35s, 0.55s, 0.45s; transition-delay: calc(var(--i) * 7ms); }
html.x-on .x-ch.is-past [data-reveal] { transform: translateY(-22px); transition-duration: 0.35s, 0.55s; transition-delay: 0s; }

/* ---------- scroll cue + HUD ---------- */
.x-film-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(78px, 12vh, 118px);
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 14px;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-2);
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
}
.x-film.is-moving .x-film-cue { opacity: 0; transform: translate(-50%, 12px); }
.x-scroll {
  width: 26px;
  height: 42px;
  border-radius: 13px;
  box-shadow: inset 0 0 0 1px rgba(150, 240, 255, 0.45);
  position: relative;
}
.x-scroll i {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: x-scroll 2s var(--ease) infinite;
}
@keyframes x-scroll { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }

.x-film-hud {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 3;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.x-film-time { white-space: nowrap; }
.x-film-time b { display: inline-block; min-width: 7.4em; font-weight: 400; color: var(--ink); }
.x-film-rail { position: relative; height: 1px; background: rgba(150, 240, 255, 0.18); }
.x-film-fill {
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, rgba(232, 253, 255, 0.4), var(--cyan));
  box-shadow: 0 0 10px rgba(95, 233, 255, 0.9);
}
.x-film-rail b {
  position: absolute;
  top: -3px;
  width: 1px;
  height: 7px;
  background: rgba(150, 240, 255, 0.4);
  transition: background 0.4s, box-shadow 0.4s;
}
.x-film-rail b.is-on { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.x-film-skip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: var(--ink);
  transition: color 0.3s;
}
.x-film-skip svg { width: 11px; height: 11px; transform: rotate(90deg); transition: transform 0.5s var(--ease); }
.x-film-skip:hover { color: var(--cyan); }
.x-film-skip:hover svg { transform: rotate(90deg) translateX(3px); }
html:not(.x-on) .x-film-hud, html:not(.x-on) .x-film-cue { display: none; }

/* =========================================================================
   02 · About — the manifesto lights up word by word
   ========================================================================= */
.x-about { position: relative; z-index: 2; padding: clamp(120px, 22vh, 220px) 0 clamp(90px, 16vh, 170px); }
.x-about .x-wrap { position: relative; }
.x-tag {
  position: absolute;
  top: 0.9em;
  left: var(--pad);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.x-manifesto {
  padding-left: 9%;
  text-indent: 9%;
  font-size: clamp(26px, 3.2vw, 54px);
  font-weight: 450;
  line-height: 1.12;
  letter-spacing: -0.032em;
  color: var(--ink);
}
html.x-on .x-manifesto .w { opacity: 0.14; }
.x-about-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: clamp(70px, 14vh, 150px);
  padding-left: 9%;
}
.x-about-copy { max-width: 420px; }
.x-about-copy p { font-size: 15px; color: var(--ink-2); margin-bottom: 26px; }

/* =========================================================================
   03 · Pinned marquee
   ========================================================================= */
.x-marquee { position: relative; z-index: 2; }
.x-marquee-stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.x-marquee-tag { position: absolute; top: clamp(96px, 15vh, 140px); left: var(--pad); }
.x-marquee-row {
  position: absolute;
  top: 50%;
  left: 0;
  display: flex;
  align-items: center;
  gap: 0.22em;
  white-space: nowrap;
  font-size: clamp(64px, 11vw, 210px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  color: var(--light);
  text-shadow: 0 0 40px rgba(95, 233, 255, 0.3);
  transform: translate3d(50vw, -50%, 0);
  will-change: transform;
}
.x-marquee-row .o {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(160, 242, 255, 0.95);
  text-shadow: none;
  filter: drop-shadow(0 0 14px rgba(95, 233, 255, 0.55));
}
.x-marquee-row i { font-style: normal; font-weight: 300; font-size: 0.22em; color: var(--cyan); text-shadow: 0 0 12px var(--cyan); }
.x-marquee-foot { position: absolute; bottom: clamp(40px, 9vh, 90px); left: 50%; transform: translateX(-50%); white-space: nowrap; }

/* =========================================================================
   04 · Key facts
   ========================================================================= */
.x-facts { padding: clamp(110px, 18vh, 190px) 0 clamp(90px, 14vh, 150px); overflow: hidden; }
.x-center-head { text-align: center; }
.x-facts-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 940px;
  margin: clamp(50px, 9vh, 90px) auto 0;
  perspective: 1400px;
}
.x-fact {
  position: relative;
  aspect-ratio: 3 / 3.5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border-radius: 12px;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}
.x-fact-label {
  position: relative;
  text-align: center;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.x-fact-card {
  background: #050c16;
  box-shadow: inset 0 0 0 1px rgba(95, 233, 255, 0.3), 0 30px 70px -30px rgba(0, 0, 0, 0.9), 0 0 40px -20px rgba(95, 233, 255, 0.6);
}
.x-fact-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.x-fact-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1, 6, 14, 0.7) 0%, transparent 30%, transparent 45%, rgba(1, 6, 14, 0.92) 100%);
}
.x-fact-card > *:not(img) { z-index: 1; }
.x-fact-foot { position: relative; display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.x-fact-foot p { max-width: 12em; font-size: 12px; line-height: 1.45; color: var(--ink-2); }
.x-fact-foot b, .x-orb b {
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--light);
  text-shadow: 0 0 20px rgba(95, 233, 255, 0.7);
}
.x-fact-mid {
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, rgba(20, 44, 66, 0.55), rgba(6, 16, 28, 0.6));
  box-shadow: inset 0 0 0 1px rgba(95, 233, 255, 0.22);
}
.x-fact-mid p { max-width: 18em; font-size: 12px; line-height: 1.5; color: var(--ink-3); }
.x-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 32%, rgba(210, 252, 255, 0.22), rgba(95, 233, 255, 0.05) 58%, transparent 70%);
  box-shadow: inset 0 0 0 1px rgba(150, 240, 255, 0.6), inset 0 0 34px rgba(95, 233, 255, 0.22), 0 0 50px -6px rgba(95, 233, 255, 0.45);
}
.x-orb b { font-size: clamp(26px, 2.6vw, 40px); }
.x-orb i {
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(150, 240, 255, 0.95) 88%, transparent 100%);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  mask: radial-gradient(closest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  filter: drop-shadow(0 0 6px var(--cyan));
  animation: x-spin 4.5s linear infinite;
}
@keyframes x-spin { to { transform: rotate(360deg); } }

/* the ledger: three results side by side, split by hairlines */
.x-center-head p { max-width: 34em; margin: 20px auto 0; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; color: var(--ink-2); }
.x-ledger {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1080px;
  margin: clamp(48px, 8vh, 84px) auto 0;
  border-top: 1px solid var(--line-dim);
  border-bottom: 1px solid var(--line-dim);
}
.x-ledger > div { padding: clamp(26px, 4vh, 40px) clamp(18px, 2.6vw, 38px); }
.x-ledger > div + div { border-left: 1px solid var(--line-dim); }
.x-ledger dt { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); }
.x-ledger dd {
  margin: 16px 0 12px;
  font-size: clamp(40px, 4.6vw, 72px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--light);
  text-shadow: 0 0 24px rgba(95, 233, 255, 0.55);
  white-space: nowrap;
}
.x-ledger p { max-width: 22em; font-size: 14.5px; line-height: 1.55; color: var(--card-text, var(--ink-2)); }
.x-ledger-note { margin-top: 22px; text-align: center; font-size: 9px; color: var(--ink-3); }

/* =========================================================================
   05 · Systems — horizontal track, then the disc
   ========================================================================= */
.x-work { background: none; }
.x-work-bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--lit-2) 0%, var(--lit-1) 100%); }
.x-work-bg .x-grid-floor { z-index: 0; }
.x-work-stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.x-track {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: clamp(36px, 4.5vw, 80px);
  padding-left: var(--pad);
  will-change: transform;
}
.x-panel-intro {
  flex: 0 0 min(34vw, 560px);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 34px;
  padding-right: clamp(30px, 4vw, 70px);
  border-right: 1px solid var(--line-dim);
}
.x-panel-intro .x-h2 { font-size: clamp(36px, 3.7vw, 64px); max-width: 8.5em; }
.x-card {
  flex: 0 0 min(40vw, 660px);
  align-self: flex-start;
  margin-top: clamp(96px, 15vh, 150px);
  display: grid;
  gap: 18px;
}
.x-card-low { align-self: flex-end; margin: 0 0 clamp(50px, 9vh, 90px); }
.x-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: #040a14;
  box-shadow: inset 0 0 0 1px rgba(95, 233, 255, 0.28), 0 40px 80px -40px rgba(0, 0, 0, 0.95), 0 0 50px -26px rgba(95, 233, 255, 0.7);
  transition: box-shadow 0.5s var(--ease);
}
.x-card-media:hover { box-shadow: inset 0 0 0 1px rgba(150, 240, 255, 0.75), 0 40px 80px -40px rgba(0, 0, 0, 0.95), 0 0 60px -14px rgba(95, 233, 255, 0.9); }
.x-card-media img {
  position: absolute;
  inset: 0 -12%;
  width: 124%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) saturate(1.1);
  transition: filter 0.6s var(--ease);
  will-change: transform;
}
.x-card-media:hover img { filter: brightness(0.85) saturate(1.2); }
.x-card-media::after { /* scanlines + floor shade */
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, rgba(1, 5, 12, 0.55) 0%, transparent 35%, transparent 50%, rgba(1, 5, 12, 0.9) 100%);
  pointer-events: none;
}
.x-card-media > :not(img) { position: absolute; z-index: 1; }
/* Reactivation card: just the agent, no frame */
.x-card-agent,
.x-card-agent:hover { aspect-ratio: 16 / 11; background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.x-card-agent::after { content: none; }
.x-card-agent img {
  inset: auto auto 0 50%;
  translate: -50% 0;
  width: auto;
  height: 112%;
  object-fit: contain;
  filter: drop-shadow(0 0 1px rgba(150, 240, 255, 0.8)) drop-shadow(0 0 16px rgba(95, 233, 255, 0.35));
}
.x-card-agent:hover img { filter: brightness(1.15) drop-shadow(0 0 1px rgba(150, 240, 255, 1)) drop-shadow(0 0 24px rgba(95, 233, 255, 0.6)); }
.x-card-kicker {
  top: 18px; left: 20px;
  display: flex; gap: 12px;
  font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2);
}
.x-card-kicker b { font-weight: 400; color: var(--cyan); text-shadow: 0 0 8px var(--cyan); }
.x-card-big {
  left: 20px; bottom: 14px;
  font-size: clamp(34px, 4.6vw, 80px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--light);
  text-shadow: 0 0 26px rgba(95, 233, 255, 0.65);
}
.x-card-meta {
  right: 20px; top: 18px;
  max-width: 16em;
  text-align: right;
  font-family: var(--mono); font-size: 8px; letter-spacing: 0.14em; line-height: 1.7; text-transform: uppercase; color: var(--ink-2);
}
.x-card-chat { top: 18px; right: 18px; display: grid; gap: 6px; width: min(56%, 280px); }
.x-card-chat p, .t-chat p {
  padding: 7px 11px;
  border-radius: 12px;
  font-size: 11.5px;
  line-height: 1.35;
  background: rgba(8, 24, 38, 0.82);
  box-shadow: inset 0 0 0 1px rgba(95, 233, 255, 0.3);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.x-card-chat .lead, .t-chat .lead { justify-self: end; background: linear-gradient(180deg, #e9fdff, #a5f2ff); color: #021520; box-shadow: 0 0 18px -4px rgba(95, 233, 255, 0.9); }
.x-card-body { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.x-card-body h3 { font-size: clamp(18px, 1.5vw, 24px); font-weight: 500; letter-spacing: -0.02em; margin-bottom: 6px; }
.x-card-body p { max-width: 32em; font-size: 13px; color: var(--ink-3); }
.x-card-body .x-link { min-width: 150px; flex: none; }

.x-panel-discover {
  flex: 0 0 min(34vw, 520px);
  display: grid;
  justify-items: center;
  gap: 26px;
  text-align: center;
}
.x-panel-discover p { font-size: clamp(18px, 1.6vw, 26px); line-height: 1.3; letter-spacing: -0.015em; color: var(--ink); }
.x-panel-words {
  flex: 0 0 100vw;
  height: 100%;
  margin-left: calc(-1 * clamp(36px, 4.5vw, 80px) + 0px);
  display: grid;
  place-items: center;
}
.x-stack {
  display: grid;
  justify-items: center;
  font-size: clamp(54px, 9.4vw, 176px);
  font-weight: 600;
  line-height: 0.84;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  color: var(--light);
  text-shadow: 0 0 40px rgba(95, 233, 255, 0.35);
}
.x-stack > span { display: block; }

.x-disc-ui { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
html.x-on .x-disc-ui { opacity: 0; }
.x-disc-tag { position: absolute; top: clamp(92px, 13vh, 130px); left: 50%; transform: translateX(-50%); }
.x-pair {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr min(50vh, 40vw) 1fr;
  align-items: center;
  padding-inline: var(--pad);
}
.x-step { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); max-width: 420px; pointer-events: auto; }
.x-step-l { grid-column: 1; justify-self: end; }
.x-step-r { grid-column: 3; justify-self: start; }
.x-step-ico { order: 2; }
.x-step-n { display: block; margin-bottom: 10px; font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan); text-shadow: 0 0 8px var(--cyan); }
.x-step h3 { font-size: clamp(20px, 1.9vw, 30px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; }
.x-step p { max-width: 24em; margin-top: 12px; font-size: 15px; line-height: 1.55; color: rgba(225, 242, 250, 0.86); }
.x-step-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(150, 240, 255, 0.55), 0 0 0 8px rgba(95, 233, 255, 0.05), 0 0 0 9px rgba(95, 233, 255, 0.2), 0 0 0 18px rgba(95, 233, 255, 0.03), 0 0 0 19px rgba(95, 233, 255, 0.12), 0 0 30px rgba(95, 233, 255, 0.25);
}
.x-step-ico svg { width: 26px; height: 26px; color: var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); }
.x-disc-foot {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: clamp(30px, 7vh, 70px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  pointer-events: auto;
}
.x-disc-foot p { grid-column: 2; }
.x-disc-foot .x-link { grid-column: 3; justify-self: end; }

/* =========================================================================
   06 · Client stories
   ========================================================================= */
.x-stories { padding: clamp(110px, 17vh, 180px) 0 clamp(90px, 14vh, 150px); }
.x-split-head { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 30px; padding-left: 9%; }
.x-split-head p { max-width: 24em; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.6; color: var(--ink-2); }
.x-rule { position: relative; height: 1px; margin: clamp(40px, 7vh, 70px) 0; background: var(--line-dim); }
.x-rule i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -52%); font-style: normal; font-size: 14px; color: var(--cyan); background: var(--lit-1); padding: 0 6px; text-shadow: 0 0 8px var(--cyan); }
.x-stories-body { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(30px, 6vw, 100px); padding-left: 9%; }
.x-stories-nav { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.x-clients { display: grid; gap: 4px; }
.x-clients button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color 0.4s, text-shadow 0.4s;
}
.x-clients button::after { content: '→'; opacity: 0; transform: translateX(-6px); transition: 0.5s var(--ease); color: var(--cyan); }
.x-clients button[aria-selected='true'] { color: var(--light); text-shadow: 0 0 12px rgba(95, 233, 255, 0.7); }
.x-clients button[aria-selected='true']::after { opacity: 1; transform: none; }
.x-clients button:hover { color: var(--ink); }
.x-arrows { display: flex; }
.x-arrows button {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  box-shadow: inset 0 0 0 1px rgba(150, 240, 255, 0.28);
  transition: box-shadow 0.4s, background 0.4s;
}
.x-arrows button + button { margin-left: -1px; }
.x-arrows button:hover { background: rgba(95, 233, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(150, 240, 255, 0.8), 0 0 20px -6px var(--cyan); }
.x-arrows svg { width: 14px; height: 14px; }
.x-arrows [data-prev] svg { transform: rotate(180deg); }
.x-quotes { display: grid; align-content: start; }
.x-quote { grid-area: 1 / 1; margin: 0; }
.x-quote:not(.is-on) { visibility: hidden; opacity: 0; }
.x-quote-tag { margin-bottom: 20px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--cyan); text-shadow: 0 0 10px rgba(95, 233, 255, 0.5); }
.x-quote-text { margin: 0; max-width: 30em; font-size: clamp(20px, 1.85vw, 29px); line-height: 1.32; letter-spacing: -0.016em; color: var(--ink); }
.x-quote-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin-top: clamp(28px, 4.5vh, 44px); }
.x-quote-stats > div { padding-right: clamp(20px, 3vw, 46px); }
.x-quote-stats > div + div { padding-left: clamp(20px, 3vw, 46px); border-left: 1px solid var(--line-dim); }
.x-quote-stats dd { margin: 0; font-size: clamp(26px, 2.6vw, 42px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: var(--light); text-shadow: 0 0 18px rgba(95, 233, 255, 0.55); white-space: nowrap; }
.x-quote-stats dt { margin-top: 10px; font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.x-quote-links { display: flex; flex-wrap: wrap; gap: 14px 34px; margin-top: clamp(34px, 5vh, 48px); }

/* =========================================================================
   07 · Calculator sits in the dark between two lit rooms
   ========================================================================= */
.x-calc { position: relative; z-index: 3; background: var(--bg); }

/* =========================================================================
   08 · Results in motion — the ribbon
   ========================================================================= */
.x-motion-stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.x-motion-title {
  position: absolute;
  inset: 0;
  font-size: clamp(60px, 10vw, 190px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  color: rgba(232, 253, 255, 0.92);
  pointer-events: none;
}
.x-motion-title span { position: absolute; white-space: nowrap; will-change: transform; }
.x-motion-title .a { top: 15vh; left: 9vw; }
.x-motion-title .b { top: 50vh; right: 6vw; color: transparent; -webkit-text-stroke: 1.5px rgba(160, 242, 255, 0.9); filter: drop-shadow(0 0 14px rgba(95, 233, 255, 0.5)); }
.x-motion-mid { position: absolute; top: 41vh; left: 50%; transform: translateX(-50%); font-size: 9px; text-align: center; }
.x-ribbon { position: absolute; inset: 0; perspective: 1800px; transform-style: preserve-3d; }
.x-tile {
  --tw: clamp(200px, 21vw, 340px);
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--tw);
  aspect-ratio: 16 / 10;
  margin: calc(var(--tw) * -0.3125) 0 0 calc(var(--tw) * -0.5);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(160deg, #0b2134 0%, #050c17 100%);
  box-shadow: inset 0 0 0 1px rgba(95, 233, 255, 0.38), 0 0 34px -12px rgba(95, 233, 255, 0.75);
  will-change: transform, opacity;
}
html.x-on .x-tile { opacity: 0; }
.x-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.62) saturate(1.15); }
.x-tile.t-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(1, 5, 12, 0.9)); }
.x-tile > :not(img) { position: relative; z-index: 1; }
.x-tile b { font-size: clamp(24px, 2.3vw, 38px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: var(--light); text-shadow: 0 0 18px rgba(95, 233, 255, 0.75); }
.x-tile span { font-size: 11.5px; line-height: 1.4; color: var(--ink-2); }
.t-chat { justify-content: center; gap: 6px; }
.t-chat p { max-width: 86%; font-size: 10.5px; }
.t-chat .ok { justify-self: start; font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.1em; background: rgba(95, 233, 255, 0.12); color: var(--cyan); }
.t-stat b { font-size: clamp(36px, 3.6vw, 60px); }
.t-bar { position: relative; z-index: 1; display: block; height: 2px; margin-top: 8px; background: linear-gradient(90deg, var(--light), var(--cyan) 60%, transparent); box-shadow: 0 0 10px var(--cyan); }
.x-tile.t-proof { padding: 0; background: #030913; }
.x-tile.t-proof img { object-fit: contain; filter: none; }
.x-tile.t-agent { padding-right: calc(var(--tw) * 0.42); background: radial-gradient(ellipse 70% 90% at 82% 50%, rgba(95, 233, 255, 0.16), transparent 70%), linear-gradient(160deg, #0b2134 0%, #050c17 100%); }
.x-tile.t-agent img { left: auto; right: 2%; top: 4%; width: 42%; height: 92%; object-fit: contain; filter: drop-shadow(0 0 14px rgba(95, 233, 255, 0.35)); }
.x-motion-copy { position: absolute; left: var(--pad); bottom: clamp(28px, 7vh, 64px); max-width: 300px; font-size: 13px; color: var(--ink-3); }
.x-motion-link { position: absolute; right: var(--pad); bottom: clamp(20px, 6vh, 56px); }

/* =========================================================================
   09 · Finale
   ========================================================================= */
.x-finale {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: clamp(110px, 15vh, 150px) var(--pad) 22px;
  background: var(--bg);
  overflow: hidden;
}
.x-finale-smoke { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.x-finale-smoke i { position: absolute; width: 80vmax; height: 60vmax; border-radius: 50%; filter: blur(80px); opacity: 0.5; animation: x-drift 30s ease-in-out infinite alternate; }
.x-finale-smoke i:first-child { left: -30vmax; bottom: -30vmax; background: radial-gradient(closest-side, rgba(47, 155, 255, 0.35), transparent); }
.x-finale-smoke i:last-child { right: -30vmax; bottom: -20vmax; background: radial-gradient(closest-side, rgba(111, 107, 255, 0.32), transparent); animation-delay: -12s; }
.x-finale-top { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(30px, 5vw, 90px); }
.x-finale-title { margin: 16px 0 22px; font-size: clamp(40px, 5.3vw, 94px); font-weight: 500; line-height: 0.98; letter-spacing: -0.045em; }
.x-finale-title > span, .x-finale-title > em { display: block; }
.x-finale-title em {
  font-style: normal;
  background: var(--grad-head);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(160, 48, 240, 0.5));
}
.x-finale-sub { max-width: 30em; font-size: 17px; line-height: 1.6; color: rgba(232, 246, 252, 0.9); }
.x-assure { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; font-size: 13.5px; color: var(--ink-2); }
.x-assure li { display: inline-flex; align-items: center; gap: 9px; }
.x-finale-side { display: grid; align-content: start; gap: clamp(30px, 6vh, 56px); padding-top: 40px; }
.x-finale-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.x-finale-cols div { display: grid; align-content: start; gap: 6px; font-size: 14px; color: var(--ink); }
.x-finale-cols .x-mono { margin-bottom: 6px; color: var(--ink-3); }
.x-finale-cols a { width: fit-content; padding: 3px 0; font-family: var(--font-grid); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); transition: color 0.3s, text-shadow 0.3s; } /* same as the top menu */
.x-finale-cols a:hover { color: var(--light); text-shadow: 0 0 12px rgba(95, 233, 255, 0.8); }
.x-lines { position: relative; flex: 1; min-height: 32vh; margin: clamp(30px, 6vh, 60px) calc(-1 * var(--pad)) 18px; }
.x-lines canvas { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 0 6px rgba(95, 233, 255, 0.55)); }
.x-lines-hint { position: absolute; left: var(--pad); top: -6px; }
.x-legal { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line-dim); font-size: 12.5px; color: var(--ink-3); }
.x-legal a:hover { color: var(--ink); }
.x-legal-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* =========================================================================
   Static fallback (reduced motion, or the motion libraries failed to load)
   ========================================================================= */
html:not(.x-on) .x-marquee-stage { height: auto; padding: 16vh 0; display: grid; gap: 40px; justify-items: center; }
html:not(.x-on) .x-marquee-tag, html:not(.x-on) .x-marquee-foot { position: static; transform: none; }
html:not(.x-on) .x-marquee-row { position: static; transform: none; flex-wrap: wrap; justify-content: center; white-space: normal; font-size: clamp(44px, 8vw, 130px); }
html:not(.x-on) .x-work-stage { height: auto; }
html:not(.x-on) .x-track { position: static; flex-direction: column; align-items: stretch; gap: 60px; padding: 14vh var(--pad); }
html:not(.x-on) .x-track > * { flex: none; width: auto; margin: 0; align-self: stretch; border: 0; }
html:not(.x-on) .x-card { max-width: 760px; }
html:not(.x-on) .x-panel-words { display: none; }
html:not(.x-on) .x-disc-ui { position: static; display: grid; gap: 40px; padding: 0 var(--pad) 14vh; }
html:not(.x-on) .x-disc-tag, html:not(.x-on) .x-disc-foot { position: static; transform: none; }
html:not(.x-on) .x-pair { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 0; }
html:not(.x-on) .x-step-l, html:not(.x-on) .x-step-r { grid-column: auto; justify-self: start; }
html:not(.x-on) .x-motion-stage { height: auto; padding: 16vh var(--pad); display: grid; gap: 40px; }
html:not(.x-on) .x-motion-title, html:not(.x-on) .x-motion-title span, html:not(.x-on) .x-motion-mid,
html:not(.x-on) .x-motion-copy, html:not(.x-on) .x-motion-link { position: static; transform: none; }
html:not(.x-on) .x-motion-title span { display: block; }
html:not(.x-on) .x-ribbon { position: static; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
html:not(.x-on) .x-tile { position: relative; left: auto; top: auto; width: auto; margin: 0; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 980px) {
  .x-about-row, .x-split-head, .x-stories-body { grid-template-columns: 1fr; padding-left: 0; }
  .x-manifesto { padding-left: 0; text-indent: 0; padding-top: 34px; }
  .x-finale-top { grid-template-columns: 1fr; }
  .x-finale-side { padding-top: 0; }
  .x-card { flex-basis: 64vw; }
  .x-panel-intro { flex-basis: 56vw; }
  .x-panel-discover { flex-basis: 56vw; }
  .x-pair { grid-template-columns: 1fr; grid-template-rows: 1fr min(44vh, 70vw) 1fr; justify-items: center; padding-block: 120px 90px; }
  .x-step-l, .x-step-r { grid-column: 1; justify-self: center; max-width: 520px; }
  .x-step-l { grid-row: 1; align-self: end; }
  .x-step-r { grid-row: 3; align-self: start; }
  .x-step-ico { width: 52px; height: 52px; }
  .x-disc-foot { grid-template-columns: 1fr; justify-items: center; gap: 4px; }
  .x-disc-foot p, .x-disc-foot .x-link { grid-column: 1; justify-self: center; }
}
@media (max-width: 760px) {
  html.x-on .x-film { height: 1120vh; height: 1120svh; }
  .x-ch { align-items: end; justify-items: start; padding-bottom: 88px; }
  .x-ch-copy { width: auto; max-width: none; }
  .x-ch--proof { padding: 0; align-items: center; justify-items: center; }
  .x-proof { width: 92vw; margin: 0 0 14vh; --fx: 0px; --fy: -14vh; }
  .x-film-shade .l, .x-film-shade .r, .x-film-shade .tl { display: none; }
  .x-ch--leap .x-line { white-space: normal; }
  .x-film:not([data-shade='']) .x-film-shade .bb { opacity: 1; }
  .x-ch--final .x-ch-copy { grid-template-columns: 1fr; gap: 22px; }
  .x-film-cue { bottom: 92px; }
  .x-film-hud { grid-template-columns: minmax(0, 1fr) auto; gap: 18px; }
  .x-film-time { display: none; }
  .x-ledger { grid-template-columns: 1fr; }
  .x-stories-nav { gap: 0; }
  .x-clients { display: flex; flex-wrap: wrap; gap: 4px 22px; }
  .x-stories .x-arrows { display: none; }
  .x-ledger > div { padding-inline: 4px; }
  .x-ledger > div + div { border-left: 0; border-top: 1px solid var(--line-dim); }
  .x-quote-stats > div { padding-right: 16px; }
  .x-quote-stats > div + div { padding-left: 16px; }
  .x-fact { aspect-ratio: 4 / 3.4; }
  .x-orb { width: 42%; }
  .x-card, .x-panel-intro, .x-panel-discover { flex-basis: 84vw; }
  .x-card, .x-card-low { align-self: center; margin: 0; }
  .x-panel-intro { border-right: 0; padding-right: 0; }
  .x-card-chat { display: none; }
  .x-card-body { flex-direction: column; align-items: start; gap: 14px; }
  .x-step { text-align: center; }
  .x-step-ico { display: none; }
  .x-step p { margin-inline: auto; font-size: 14px; }
  .x-pair { grid-template-rows: 1fr min(40vh, 78vw) 1fr; padding-block: 92px 104px; }
  .x-disc-tag { top: 80px; }
  .x-disc-foot { bottom: 16px; }
  .x-tile { --tw: 46vw; }
  .x-tile span { font-size: 9.5px; }
  .t-chat p { font-size: 9px; }
  .x-motion-title .a { left: 6vw; }
  .x-motion-copy { bottom: 74px; max-width: 80%; }
  .x-motion-link { bottom: 18px; left: var(--pad); right: auto; }
  .x-finale-cols { grid-template-columns: 1fr; }
  .x-legal { flex-direction: column; }
}

/* card sentences match the rest of the site (css/style.css, --card-text) */
.x-card-body p, .x-step p { font-size: 15px; line-height: 1.6; color: var(--card-text); }
@media (max-width: 560px) { .x-card-body p, .x-step p { font-size: 14px; } }
