/* ============================================================================
   LANDING_SITE.PRO
   Palette discipline: ~80% black / graphite, ~15% warm white, ~5% warm gold.
   Gold is reserved for the 01-05 numerals, key words, hairlines, CTAs, active
   elements and glow. Nothing else is chromatic.
   The engine (scrollcraft.css / .js) is untouched; this file themes its tokens
   and styles the page's own markup.
   ========================================================================== */

:root {
  --sc-canvas:     #09090a;
  --sc-surface:    #151517;
  --sc-ink:        #f5f2ea;
  --sc-ink-soft:   #a8a39a;
  --sc-accent:     #dcb46e;
  --sc-accent-ink: #0c0a07;

  --gold-hot:   #f6d596;
  --gold-rgb:   220 180 110;
  --graphite:   #1b1b1e;
  --graphite-2: #2a2a2e;

  --sc-font-display: "Onest", system-ui, sans-serif;
  --sc-font-text:    "Onest", system-ui, sans-serif;
  --font-num:        "Cormorant Garamond", "Times New Roman", serif;

  --sc-r-sm: 6px;
  /* Tighter than the engine default: sections sit closer together. */
  --sc-section: clamp(3rem, 5vw, 5.5rem);
  --sc-shadow-color: 30 20% 2%;
  --glow: 0 10px 34px -10px rgb(var(--gold-rgb) / 0.55);
}

/* Clip on both: with clip only on body it propagates to the viewport, and a
   phone then widens its layout viewport to fit anything that drifts sideways. */
html, body { overflow-x: clip; }
body { background: var(--sc-canvas); }
img { height: auto; }
h1, h2, h3, p { margin: 0; }
.sc-display { font-weight: 500; }
.sc-display--lg { font-size: clamp(2.3rem, 1.5rem + 3.2vw, 4.25rem); line-height: 1.02; }
.sc-display--md { font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); line-height: 1.06; }
.sc-lede { color: color-mix(in oklab, var(--sc-ink) 86%, var(--sc-canvas)); }

/* ---------------------------------------------------------------- chrome -- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: var(--sc-z-chrome);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sc-4);
  padding: 0.85rem var(--sc-gutter);
  background: linear-gradient(to bottom, rgb(9 9 10 / 0.96) 0%, rgb(9 9 10 / 0.82) 55%, rgb(9 9 10 / 0) 100%);
  pointer-events: none;
}
.bar > * { pointer-events: auto; }
.bar__brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.bar__brand img { width: 44px; height: 44px; }
.bar__word { font-weight: 600; font-size: var(--sc-t-sm); letter-spacing: 0.06em; }
.bar__word b, .foot__brand b { font-weight: 600; color: var(--sc-accent); }

.bar__end { display: flex; align-items: center; gap: 0.6rem; }
.bar__nav { display: flex; gap: clamp(1rem, 2.2vw, 2.25rem); font-size: var(--sc-t-sm); }
.bar__nav a {
  position: relative; padding: 0.55em 0; color: var(--sc-ink-soft); text-decoration: none;
  transition: color 180ms var(--sc-ease-out);
}
.bar__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.15em; height: 1px;
  background: var(--sc-accent); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 320ms var(--sc-ease-out);
}
.bar__nav a[aria-current="true"] { color: var(--sc-accent); }
.bar__nav a[aria-current="true"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .bar__nav a:hover { color: var(--sc-ink); }
  .bar__nav a[aria-current="true"]:hover { color: var(--gold-hot); }
  .bar__nav a:hover::after { transform: scaleX(1); }
}
.bar__nav a:active { scale: 0.97; }
.bar__toggle { display: none; }
.bar__cta { white-space: nowrap; }
.bar__cta-short { display: none; }
/* On a phone the wordmark, the CTA and the menu button share one row, so the
   CTA takes its short label. */
@media (max-width: 520px) {
  .bar__cta-full { display: none; }
  .bar__cta-short { display: inline; }
  .bar__brand { gap: 0.5rem; }
}

/* --------------------------------------------------------------- buttons -- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.95em 1.5em;
  border: 1px solid transparent; border-radius: var(--sc-r-sm);
  font-size: var(--sc-t-sm); font-weight: 500; line-height: 1.25; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: scale 140ms var(--sc-ease-out), box-shadow 220ms var(--sc-ease-out),
              background-color 180ms var(--sc-ease-out), border-color 180ms var(--sc-ease-out),
              color 180ms var(--sc-ease-out);
}
.btn--sm { padding: 0.7em 1.15em; }
.btn--gold {
  background: var(--sc-accent); color: var(--sc-accent-ink);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.4), var(--glow);
}
.btn--ghost { border-color: var(--sc-hairline-strong); color: var(--sc-ink); background: rgb(9 9 10 / 0.4); }
/* A band of light crosses the button on hover. */
.btn--gold::before {
  content: ""; position: absolute; inset: -20% auto -20% -40%; width: 34%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / 0.55), transparent);
  transform: translateX(-120%) skewX(-18deg);
}
@media (hover: hover) and (pointer: fine) {
  .btn--gold:hover { background: var(--gold-hot); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.5), 0 14px 44px -10px rgb(var(--gold-rgb) / 0.8); }
  .btn--gold:hover::before { transform: translateX(520%) skewX(-18deg); transition: transform 700ms var(--sc-ease-out); }
  .btn--ghost:hover { border-color: var(--sc-accent); color: var(--sc-accent); }
}
.btn:active { scale: 0.97; }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.ripple {
  position: absolute; z-index: -1; width: 12rem; height: 12rem; margin: -6rem 0 0 -6rem;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgb(255 255 255 / 0.6), rgb(255 255 255 / 0) 62%);
}
.btn--ghost .ripple { background: radial-gradient(circle, rgb(var(--gold-rgb) / 0.5), rgb(var(--gold-rgb) / 0) 62%); }
.spark {
  position: fixed; z-index: 90; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px;
  border-radius: 50%; pointer-events: none;
  background: var(--gold-hot); box-shadow: 0 2px 10px 1px rgb(var(--gold-rgb) / 0.8);
}

/* The long calls to action: a gold line of text with a drawn arrow. */
.cta-line {
  display: inline-flex; align-items: center; gap: 0.9em;
  color: var(--sc-accent); font-weight: 500; text-decoration: none;
  letter-spacing: -0.01em; line-height: 1.3;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 0.3em;
  transition: background-size 420ms var(--sc-ease-out), color 180ms var(--sc-ease-out);
}
.cta-line::after {
  content: ""; flex: none; width: 2.2em; height: 0.7em;
  background: currentColor;
  clip-path: polygon(0 44%, 86% 44%, 72% 0, 78% 0, 100% 50%, 78% 100%, 72% 100%, 86% 56%, 0 56%);
  transition: translate 300ms var(--sc-ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .cta-line:hover { background-size: 100% 1px; color: var(--gold-hot); }
  .cta-line:hover::after { translate: 0.5em 0; }
}
.cta-line:active { scale: 0.98; }

/* ------------------------------------------------------------------ hero -- */
.hero__stage { --mx: 0; --my: 0; background: var(--sc-canvas); }
.hero__plane { position: absolute; inset: 0; pointer-events: none; will-change: transform; }
.hero__plane img { max-width: none; }

.hero__plane--back {
  inset: -6%;
  transform: translate3d(calc(var(--mx) * -10px), calc(var(--my) * -8px + var(--sc-p, 0) * -4vh), 0)
             scale(calc(1.02 + var(--sc-p, 0) * 0.1));
}
.hero__plane--back img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.8;
  -webkit-mask-image: radial-gradient(ellipse 62% 70% at 66% 44%, #000 20%, transparent 78%);
          mask-image: radial-gradient(ellipse 62% 70% at 66% 44%, #000 20%, transparent 78%);
}
.hero__fx { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero__plane--laptop {
  transform: translate3d(calc(var(--mx) * -22px), calc(var(--my) * -14px + var(--sc-p, 0) * -9vh), 0);
}
.laptop {
  position: absolute; right: -1vw; top: 15vh; width: min(50vw, 860px);
  transform: perspective(1800px) rotateY(-19deg) rotateX(7deg) rotateZ(1deg);
  transform-origin: 70% 50%;
}
.laptop__screen {
  aspect-ratio: 16 / 10; padding: 1.4%;
  background: #0b0b0c; border: 1px solid var(--graphite-2); border-radius: 14px 14px 4px 4px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.1), 0 60px 90px -40px #000, -30px 30px 80px -30px rgb(var(--gold-rgb) / 0.16);
  overflow: hidden;
}
.laptop__screen img {
  width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 5px;
  filter: grayscale(0.8) sepia(0.3) brightness(0.72) contrast(1.06);
}
.laptop__base {
  height: 1.1vw; min-height: 9px; margin: 0 -6%;
  background: linear-gradient(#303034, #141416 60%, #0b0b0c);
  border-radius: 2px 2px 16px 16px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.16), 0 30px 50px -10px #000;
}

.hero__plane--phone {
  transform: translate3d(calc(var(--mx) * -46px), calc(var(--my) * -28px + var(--sc-p, 0) * -21vh), 0);
}
.phone {
  container-type: inline-size;
  aspect-ratio: 9 / 18.5; padding: 3%;
  background: #0a0a0b; border: 1px solid #3a3a3f; border-radius: 13% / 6.3%;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.14), 0 0 0 1px #000,
              0 50px 90px -30px #000, 0 30px 70px -30px rgb(var(--gold-rgb) / 0.3);
}
.hero__plane--phone .phone {
  position: absolute; right: 9vw; top: 40vh; width: min(15vw, 240px);
  transform: perspective(1400px) rotateY(-15deg) rotateX(6deg) rotateZ(-3deg);
}
.phone__screen {
  height: 100%; padding: 16% 7% 7%; overflow: hidden;
  background: linear-gradient(#131315, #0b0b0c); border-radius: 11% / 5.3%;
}
.tg { font-size: 6.4cqw; line-height: 1.35; text-align: left; }
.tg__head {
  display: flex; align-items: center; gap: 0.6em;
  padding-bottom: 0.9em; margin-bottom: 0.9em; border-bottom: 1px solid var(--sc-hairline);
  font-weight: 500; color: var(--sc-ink);
}
.tg__avatar { flex: none; width: 2em; height: 2em; border-radius: 50%; background: #000 url("assets/img/logo-mark-192.png") center / 118% no-repeat; }
.tg__msg {
  display: grid; gap: 0.15em; margin-bottom: 0.6em; padding: 0.7em 0.85em;
  background: var(--graphite); border: 1px solid transparent; border-radius: 0.95em 0.95em 0.95em 0.3em;
  font-size: 0.86em; color: var(--sc-ink-soft);
}
.tg__msg b { font-weight: 500; color: var(--sc-ink); }
.tg__msg--old { opacity: 0.5; }
.tg__msg--new {
  border-color: rgb(var(--gold-rgb) / 0.65);
  box-shadow: 0 8px 26px -8px rgb(var(--gold-rgb) / 0.6);
  animation: arrive 3.6s var(--sc-ease-out) infinite;
}
.tg__msg--new b { color: var(--sc-accent); }
@keyframes arrive {
  0%, 12%   { box-shadow: 0 8px 26px -8px rgb(var(--gold-rgb) / 0.2); }
  30%       { box-shadow: 0 8px 34px -4px rgb(var(--gold-rgb) / 0.9); }
  100%      { box-shadow: 0 8px 26px -8px rgb(var(--gold-rgb) / 0.2); }
}

.hero__plane--dust {
  inset: auto -4vw -16vh auto; width: min(46vw, 760px); aspect-ratio: 1536 / 1412;
  mix-blend-mode: screen; opacity: 0.55;
  transform: translate3d(calc(var(--mx) * -64px), calc(var(--my) * -38px + var(--sc-p, 0) * -32vh), 0);
}
.hero__plane--dust img {
  width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 45%, transparent 100%);
}

/* Density only where the copy sits (a column), plus a floor that hides the
   planes' clip line as they travel past the stage edge. */
.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, var(--sc-canvas) 0%, transparent 20%),
    linear-gradient(90deg, rgb(9 9 10 / 0.94) 0%, rgb(9 9 10 / 0.72) 34%, transparent 60%);
}

.hero__copy {
  position: absolute; z-index: var(--sc-z-copy);
  left: var(--sc-gutter); bottom: clamp(2rem, 7vh, 5rem);
  max-width: min(50rem, 56vw);
}
.hero__title { font-size: clamp(2.2rem, 1rem + 3.3vw, 4.1rem); line-height: 1.04; }
.hero__title em { font-style: normal; color: var(--sc-accent); }
.hero__line { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.hero__line > span { display: inline-block; animation: rise 900ms var(--sc-ease-out) both; }
.hero__line:nth-child(2) > span { animation-delay: 110ms; }
@keyframes rise { from { transform: translate3d(0, 105%, 0); } }
.hero__sub { max-width: 35rem; margin: var(--sc-5) 0 var(--sc-6); color: color-mix(in oklab, var(--sc-ink) 78%, var(--sc-canvas)); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__next {
  display: flex; flex-wrap: wrap; gap: 0.35rem 1.2rem;
  margin-top: var(--sc-6); padding-top: var(--sc-4); border-top: 1px solid var(--sc-hairline);
  font-size: var(--sc-t-sm); color: var(--sc-ink-soft);
}
.hero__next a {
  color: var(--sc-ink); text-decoration: none;
  background: linear-gradient(var(--sc-accent), var(--sc-accent)) 0 100% / 100% 1px no-repeat;
  padding-bottom: 0.2em; transition: color 160ms var(--sc-ease-out);
}
@media (hover: hover) and (pointer: fine) { .hero__next a:hover { color: var(--sc-accent); } }

/* ------------------------------------------------------------------ pain -- */
.pain { overflow-x: clip; padding-block: clamp(2rem, 3.5vw, 3.5rem) clamp(1rem, 2vw, 2rem); }
.pain__grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 6vw, 6rem); align-items: center;
}
.pain__text .sc-lede { margin-top: var(--sc-5); }
.pain__list { list-style: none; margin: var(--sc-6) 0 var(--sc-5); padding: 0; border-bottom: 1px solid var(--sc-hairline); }
.pain__list li {
  position: relative; padding: 0.95em 0 0.95em 2em; border-top: 1px solid var(--sc-hairline);
  font-size: var(--sc-t-lg); line-height: 1.3; letter-spacing: var(--sc-track-snug);
}
.pain__list li::before { content: ""; position: absolute; left: 0; top: 1.6em; width: 1em; height: 1px; background: var(--sc-accent); }
.pain__turn { color: var(--sc-ink-soft); margin-bottom: var(--sc-5); }
.pain__scene { position: relative; aspect-ratio: 4 / 5; }
.pain__phone {
  position: absolute; left: 50%; top: 50%; width: min(56%, 18rem); translate: -50% -50%;
  transform: perspective(1400px) rotateY(12deg) rotateX(5deg) rotateZ(2deg);
}
.tg--direct .tg__avatar { background: var(--graphite-2); }
.tg--direct .tg__msg--old { opacity: 0.42; }
/* Unanswered messages drift off and dissolve while the section passes. */
.lost {
  position: absolute; padding: 0.6em 0.95em; white-space: nowrap;
  background: var(--graphite); border: 1px solid var(--sc-hairline-strong);
  border-radius: 1em 1em 1em 0.3em; font-size: var(--sc-t-sm); box-shadow: var(--sc-e2);
  opacity: calc((var(--gone) - var(--sc-p, 0)) * 5);
  transform: translate3d(calc(var(--sc-p, 0) * var(--dx)), calc(var(--sc-p, 0) * var(--dy)), 0);
  will-change: transform, opacity;
}
.lost--1 { left: 2%;  top: 12%; --dx: -70px; --dy: -150px; --gone: 0.62; }
.lost--2 { right: 0;  top: 30%; --dx: 90px;  --dy: -220px; --gone: 0.7; }
.lost--3 { left: 12%; top: 58%; --dx: -50px; --dy: -260px; --gone: 0.78; }
.lost--4 { right: 4%; top: 76%; --dx: 60px;  --dy: -300px; --gone: 0.86; }

/* ------------------------------------------------------------------ turn -- */
.turn__stage { background: var(--sc-canvas); }
.turn__window {
  --w: clamp(0, calc(var(--sc-p, 0) * 2.1), 1);
  /* The window starts high in the frame so it follows the section above closely. */
  --ix: calc((1 - var(--w)) * 28%); --it: calc((1 - var(--w)) * 10%); --ib: calc((1 - var(--w)) * 30%);
  position: absolute; inset: 0; background: #060607;
  clip-path: inset(var(--it) var(--ix) var(--ib) round calc((1 - var(--w)) * 14px));
  will-change: clip-path;
}
.turn__poster, .turn__canvas, .turn__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.turn__poster { opacity: 0.4; }
.turn__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top right, rgb(9 9 10 / 0.9) 0%, rgb(9 9 10 / 0.6) 28%, transparent 56%);
  opacity: clamp(0, calc(var(--sc-p, 0) * 2.4), 1);
}
.turn__copy {
  position: absolute; z-index: var(--sc-z-copy);
  left: var(--sc-gutter); bottom: clamp(2.5rem, 9vh, 6rem); max-width: min(46rem, 84vw);
}
.turn__copy .sc-lede { margin-top: var(--sc-5); }

/* ----------------------------------------------------------------- parts -- */
.parts__stage { display: flex; align-items: center; background: var(--sc-canvas); }
.parts__rail { align-items: stretch; gap: clamp(1.5rem, 3vw, 3.5rem); padding-inline: var(--sc-gutter); }
.part {
  --s: clamp(0, calc(var(--sc-p, 0) * 6 - var(--i, 1) + 2), 1);
  flex: 0 0 clamp(17rem, 26vw, 23rem);
  display: flex; flex-direction: column;
  padding-left: clamp(1rem, 2vw, 2rem); border-left: 1px solid var(--sc-hairline);
}
@media (prefers-reduced-motion: no-preference) {
  .part[style] { opacity: calc(0.5 + var(--s) * 0.5); transform: translate3d(0, calc((1 - var(--s)) * 30px), 0); }
}
.part--lead, .part--tail { justify-content: center; gap: var(--sc-5); border: 0; padding-left: 0; flex-basis: clamp(18rem, 30vw, 27rem); }
.part--tail { flex-basis: clamp(20rem, 38vw, 34rem); }
.part--tail { align-items: flex-start; }
.part__num {
  display: block; font-family: var(--font-num); font-weight: 500;
  font-size: min(13vw, 27vh, 13rem); line-height: 0.82; letter-spacing: -0.03em;
  font-variant-numeric: lining-nums;
  color: var(--sc-accent); text-shadow: 0 10px 44px rgb(var(--gold-rgb) / 0.38);
}
.part h3 { margin: 0 0 0.6rem; font-size: var(--sc-t-lg); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.part > p { max-width: 30ch; color: var(--sc-ink-soft); }
.part__fig { position: relative; height: min(17vh, 9.5rem); margin: var(--sc-5) 0; }
.part__fig i { position: absolute; display: block; border: 1px solid var(--sc-hairline-strong); border-radius: 5px; background: var(--sc-surface); }

/* 01 one layout, three screens */
.fig-landing i:nth-child(1) { left: 0; bottom: 0; width: 60%; height: 82%; }
.fig-landing i:nth-child(2) { left: 46%; bottom: 0; width: 28%; height: 66%; background: var(--graphite); }
.fig-landing i:nth-child(3) { left: 68%; bottom: 0; width: 15%; height: 50%; background: var(--graphite-2); border-radius: 8px; }
.fig-landing i::after { content: ""; position: absolute; left: 12%; bottom: 14%; width: 34%; height: 5px; border-radius: 3px; background: var(--sc-accent); }
/* 02 fields you edit yourself */
.fig-admin i { left: 0; height: 22%; width: 78%; }
.fig-admin i:nth-child(1) { top: 0; }
.fig-admin i:nth-child(2) { top: 30%; border-color: var(--sc-accent); box-shadow: var(--glow); }
.fig-admin i:nth-child(2)::after { content: ""; position: absolute; left: 10%; top: 24%; width: 1px; height: 52%; background: var(--sc-accent); animation: caret 1.1s steps(2) infinite; }
.fig-admin i:nth-child(3) { top: 60%; width: 50%; }
.fig-admin i:nth-child(4) { top: 60%; left: 56%; width: 22%; border-radius: 999px; background: var(--sc-accent); border-color: var(--sc-accent); }
@keyframes caret { 50% { opacity: 0; } }
/* 03 a short form */
.fig-form i { left: 0; width: 70%; height: 22%; }
.fig-form i:nth-child(1) { top: 0; }
.fig-form i:nth-child(2) { top: 30%; }
.fig-form i:nth-child(3) { top: 64%; width: 42%; background: var(--sc-accent); border-color: var(--sc-accent); box-shadow: var(--glow); }
/* 04 the notification */
.fig-bot i { border-radius: 14px 14px 14px 4px; }
.fig-bot i:nth-child(1) { left: 0; top: 0; width: 52%; height: 26%; opacity: 0.5; }
.fig-bot i:nth-child(2) { left: 0; top: 34%; width: 70%; height: 40%; border-color: var(--sc-accent); box-shadow: var(--glow); animation: arrive 3.6s var(--sc-ease-out) infinite; }
.fig-bot i:nth-child(3) { left: 66%; top: 28%; width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--gold-hot); }
/* 05 question, answer, booking */
.fig-auto i { height: 24%; border-radius: 14px; }
.fig-auto i:nth-child(1) { left: 0; top: 0; width: 44%; border-radius: 14px 14px 14px 4px; }
.fig-auto i:nth-child(2) { left: 34%; top: 32%; width: 44%; border-radius: 14px 14px 4px 14px; border-color: var(--sc-accent); }
.fig-auto i:nth-child(3) { left: 0; top: 64%; width: 44%; border-radius: 14px 14px 14px 4px; }
.fig-auto i:nth-child(4) { left: 52%; top: 66%; width: 20%; height: 20%; border-radius: 999px; background: var(--sc-accent); border-color: var(--sc-accent); }

/* ----------------------------------------------------------------- chain -- */
.chain__stage {
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: var(--sc-4);
  padding: clamp(5.5rem, 13vh, 8rem) var(--sc-gutter) clamp(2rem, 6vh, 4rem);
  background: var(--sc-canvas);
}
.chain__title { max-width: 20ch; }
.chain__map { position: relative; align-self: center; justify-self: center; width: min(100%, 1200px); aspect-ratio: 1200 / 430; max-height: 100%; }
.chain__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chain__ghost, .chain__trace { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.chain__ghost { stroke: rgb(245 242 234 / 0.16); stroke-width: 1; stroke-dasharray: 2 8; }
.chain__trace { stroke: var(--sc-accent); stroke-width: 1.6; filter: drop-shadow(0 2px 7px rgb(var(--gold-rgb) / 0.9)); }
.chain__pulse { fill: #fff6e2; filter: drop-shadow(0 0 8px var(--gold-hot)); }
.chain__halo { fill: rgb(var(--gold-rgb) / 0.3); filter: blur(10px); }
.chain__nodes { list-style: none; margin: 0; padding: 0; }
.node {
  position: absolute; left: var(--x); top: var(--y); width: 0; height: 0;
  color: var(--sc-ink-soft); transition: color 300ms var(--sc-ease-out);
}
.node b, .node > span:last-child {
  position: absolute; left: -7rem; width: 14rem; text-align: center; white-space: nowrap;
}
.node b { top: 1.4rem; font-size: var(--sc-t-lg); font-weight: 500; letter-spacing: var(--sc-track-snug); color: color-mix(in oklab, var(--sc-ink) 60%, var(--sc-canvas)); transition: color 300ms var(--sc-ease-out); }
.node > span:last-child { top: 3.4rem; font-size: var(--sc-t-sm); }
.node__dot {
  position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--sc-canvas); border: 1px solid rgb(245 242 234 / 0.4);
  transition: background-color 300ms var(--sc-ease-out), border-color 300ms var(--sc-ease-out), box-shadow 400ms var(--sc-ease-out), scale 400ms var(--sc-ease-out);
}
.node.is-on { color: var(--sc-ink); }
.node.is-on b { color: var(--sc-ink); }
.node.is-on .node__dot { background: var(--sc-accent); border-color: var(--gold-hot); box-shadow: 0 3px 22px 4px rgb(var(--gold-rgb) / 0.6); scale: 1.25; }
.node--last.is-on b { color: var(--sc-accent); }

.chain__ping {
  position: absolute; left: var(--x); top: var(--y); z-index: 2;
  display: grid; gap: 0.15em; width: max-content; padding: 0.8em 1.1em;
  background: var(--graphite); border: 1px solid rgb(var(--gold-rgb) / 0.7);
  border-radius: 1em 1em 0.3em 1em; font-size: var(--sc-t-sm); color: var(--sc-ink-soft);
  box-shadow: 0 14px 50px -8px rgb(var(--gold-rgb) / 0.6);
  translate: calc(-100% - 1.2rem) calc(-100% - 1rem);
  opacity: 0; scale: 0.94; transform-origin: 100% 100%;
  transition: opacity 420ms var(--sc-ease-out), scale 520ms var(--sc-ease-out);
}
.chain__ping b { color: var(--sc-accent); font-weight: 500; font-size: var(--sc-t-base); }
.chain__ping.is-on { opacity: 1; scale: 1; }
.chain__end { display: grid; gap: var(--sc-4); justify-items: start; }

/* ----------------------------------------------------------------- cases -- */
/* The pinned act that follows brings its own air, so the tail stays short. */
.cases { padding-bottom: clamp(1rem, 2vw, 2rem); }
.cases__head { max-width: 52rem; margin-bottom: var(--sc-7); }
.cases__head .sc-lede { margin-top: var(--sc-5); }
.cases__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 4rem) clamp(1.25rem, 2.6vw, 2.75rem); align-items: start; }
.case { grid-column: span 6; display: block; color: inherit; text-decoration: none; }
.case:nth-child(4n + 1), .case:nth-child(4n + 4) { grid-column: span 7; }
.case:nth-child(4n + 2), .case:nth-child(4n + 3) { grid-column: span 5; }
.case:nth-child(4n + 2) { margin-top: clamp(0rem, 5vw, 5rem); }
.case__frame {
  position: relative; display: block; overflow: hidden;
  background: #0c0c0d; border: 1px solid var(--sc-hairline-strong); border-radius: 10px;
  box-shadow: var(--sc-edge), var(--sc-e3);
  transition: border-color 300ms var(--sc-ease-out), box-shadow 400ms var(--sc-ease-out);
}
.case__chrome { display: flex; gap: 6px; padding: 10px 12px; background: var(--sc-surface); border-bottom: 1px solid var(--sc-hairline); }
.case__chrome i { width: 8px; height: 8px; border-radius: 50%; background: var(--graphite-2); }
.case__shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #0c0c0d; }
.case__shot img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  filter: grayscale(0.85) brightness(0.78) contrast(1.05);
  transition: filter 500ms var(--sc-ease-out), scale 900ms var(--sc-ease-out);
}
.case__meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.25rem 1.5rem; align-items: baseline; margin-top: var(--sc-5); }
.case__meta h3 { font-size: var(--sc-t-xl); font-weight: 500; letter-spacing: var(--sc-track-snug); line-height: 1.1; }
.case__niche { grid-column: 1; color: var(--sc-accent); font-size: var(--sc-t-sm); }
.case__desc { grid-column: 1; color: var(--sc-ink-soft); max-width: 44ch; }
.case__open { grid-column: 2; grid-row: 1; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); white-space: nowrap; transition: color 200ms var(--sc-ease-out); }
.case__open::after {
  content: ""; display: inline-block; width: 0.62em; height: 0.62em; margin-left: 0.5em;
  background: currentColor; clip-path: polygon(18% 0, 100% 0, 100% 82%, 84% 82%, 84% 27%, 11% 100%, 0 89%, 73% 16%, 18% 16%);
  transition: translate 240ms var(--sc-ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .case:hover .case__frame { border-color: rgb(var(--gold-rgb) / 0.7); box-shadow: var(--sc-edge), var(--sc-e3), 0 30px 80px -30px rgb(var(--gold-rgb) / 0.45); }
  .case:hover .case__shot img { filter: none; scale: 1.035; }
  .case:hover .case__open { color: var(--sc-accent); }
  .case:hover .case__open::after { translate: 2px -2px; }
}
.case:focus-visible .case__shot img { filter: none; }
@media (hover: none) { .case__shot img { filter: grayscale(0.25) brightness(0.92); } }
.case-cta {
  grid-column: span 5; align-self: center; display: grid; gap: var(--sc-5); justify-items: start;
  padding: var(--sc-6) 0 var(--sc-6) clamp(1rem, 2vw, 2rem); border-left: 1px solid var(--sc-hairline);
}
.case-cta--wide { grid-column: 1 / -1; padding: var(--sc-6) 0 0; border-left: 0; border-top: 1px solid var(--sc-hairline); }
.cases__empty { grid-column: 1 / -1; color: var(--sc-ink-soft); }

/* --------------------------------------------------------------- process -- */
.process__stage { display: flex; align-items: center; background: var(--sc-canvas); }
.process__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.process__lead { display: grid; gap: var(--sc-5); justify-items: start; }
.steps { position: relative; list-style: none; margin: 0; padding: 0 0 0 2.4rem; }
.steps::before, .steps::after { content: ""; position: absolute; left: 0.5rem; top: 1.6rem; bottom: 1.6rem; width: 1px; }
.steps::before { background: var(--sc-hairline-strong); }
.steps::after {
  background: var(--sc-accent); box-shadow: 0 4px 14px rgb(var(--gold-rgb) / 0.8);
  transform-origin: 50% 0; transform: scaleY(clamp(0, calc(var(--sc-p, 0) * 1.18), 1));
}
.steps li {
  --on: clamp(0, calc(var(--sc-p, 0) * 5.6 - var(--i) + 0.7), 1);
  position: relative; padding: 0.95rem 0;
  font-size: var(--sc-t-lg); line-height: 1.3; letter-spacing: var(--sc-track-snug);
  opacity: calc(0.32 + var(--on) * 0.68);
}
@media (prefers-reduced-motion: no-preference) {
  .steps li { transform: translate3d(calc((1 - var(--on)) * 16px), 0, 0); }
}
.steps li::before, .steps li::after {
  content: ""; position: absolute; left: calc(-2.4rem + 0.5rem - 4px); top: 1.55rem;
  width: 9px; height: 9px; border-radius: 50%;
}
.steps li::before { background: var(--graphite-2); box-shadow: 0 0 0 4px var(--sc-canvas); }
.steps li::after { background: var(--gold-hot); box-shadow: 0 3px 16px 2px rgb(var(--gold-rgb) / 0.75); opacity: var(--on); }

/* ------------------------------------------------------------------- faq -- */
.faq { padding-block: clamp(1.5rem, 3vw, 3rem) clamp(2rem, 3vw, 3rem); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq__lead { display: grid; gap: var(--sc-5); position: sticky; top: 22vh; }
.faq__lead a { color: var(--sc-accent); }
.faq__list { border-bottom: 1px solid var(--sc-hairline); }
.faq details { border-top: 1px solid var(--sc-hairline); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 1.25rem 3rem 1.25rem 0;
  font-size: var(--sc-t-lg); line-height: 1.3; letter-spacing: var(--sc-track-snug);
  transition: color 180ms var(--sc-ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 0.35rem; top: 50%; width: 15px; height: 1px;
  background: var(--sc-accent); transition: rotate 300ms var(--sc-ease-out);
}
.faq summary::after { rotate: 90deg; }
.faq details[open] summary::after { rotate: 0deg; }
.faq details[open] summary { color: var(--sc-accent); }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--sc-accent); } }
.faq details p { max-width: 60ch; padding: 0 3rem 1.5rem 0; color: var(--sc-ink-soft); }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip; transition: height 380ms var(--sc-ease-out), content-visibility 380ms allow-discrete; }
  .faq details[open]::details-content { height: auto; }
}

/* ----------------------------------------------------------------- close -- */
.close__stage {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--sc-6);
  padding-top: clamp(4.75rem, 9vh, 6rem); background: var(--sc-canvas);
}
.close__stage.sc-stage { position: sticky; }
.close__ground {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0.45;
  -webkit-mask-image: linear-gradient(to left, #000 0%, transparent 62%);
          mask-image: linear-gradient(to left, #000 0%, transparent 62%);
}
.close__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.close__lead .sc-lede { margin-top: var(--sc-5); }

.form { display: grid; gap: var(--sc-4); max-width: 42rem; margin-top: var(--sc-6); }
.form__call { color: var(--sc-accent); font-size: var(--sc-t-sm); font-weight: 500; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sc-4); }
.field { display: grid; gap: 0.4rem; }
.field > span, .chips legend { font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.field i, .chips legend i { font-style: normal; opacity: 0.75; }
.field input {
  width: 100%; padding: 0.85em 1em;
  background: var(--sc-surface); border: 1px solid var(--sc-hairline-strong); border-radius: var(--sc-r-sm);
  transition: border-color 180ms var(--sc-ease-out), box-shadow 220ms var(--sc-ease-out);
}
.field input::placeholder { color: #8f8a82; }
.field input:focus-visible { outline: none; border-color: var(--sc-accent); box-shadow: 0 6px 24px -8px rgb(var(--gold-rgb) / 0.6), 0 0 0 3px rgb(var(--gold-rgb) / 0.18); }
.field input[aria-invalid="true"] { border-color: var(--sc-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.chips legend { padding: 0; margin-bottom: 0.5rem; }
.chips label { position: relative; }
.chips input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chips label span {
  display: inline-block; padding: 0.55em 1.05em;
  border: 1px solid var(--sc-hairline-strong); border-radius: var(--sc-r-pill);
  font-size: var(--sc-t-sm); transition: border-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out), scale 140ms var(--sc-ease-out);
}
.chips input:checked + span { border-color: var(--sc-accent); color: var(--sc-accent); background: rgb(var(--gold-rgb) / 0.1); }
.chips input:focus-visible + span { outline: 2px solid var(--sc-accent); outline-offset: 3px; }
.chips input:active + span { scale: 0.96; }
@media (hover: hover) and (pointer: fine) { .chips label:hover span { border-color: var(--sc-accent); } }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 0.4rem; }
.form__note { max-width: 27ch; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.form__status { min-height: 1.6em; font-size: var(--sc-t-sm); color: var(--sc-ink); }
.form__status.is-ok { color: var(--sc-accent); font-size: var(--sc-t-base); }
.form.is-sent :is(.form__row, .field, .chips, .form__foot, .form__call) { display: none; }

.mirror { justify-self: center; text-align: center; }
.phone--mirror { aspect-ratio: 9 / 14.5; border-radius: 13% / 8%; width: min(100%, 17rem); margin-inline: auto; transform: perspective(1400px) rotateY(-11deg) rotateX(4deg); }
.phone--mirror .tg__msg--new { animation: none; }
.phone--mirror .tg__msg dl { display: grid; gap: 0.35em; margin: 0.4em 0 0; }
.phone--mirror .tg__msg dl div { display: grid; grid-template-columns: 5.4em minmax(0, 1fr); gap: 0.4em; }
.phone--mirror dt { color: var(--sc-ink-soft); }
.phone--mirror dd { margin: 0; color: var(--sc-ink); overflow-wrap: anywhere; }
.phone--mirror dd.is-live { color: var(--gold-hot); }
.phone--mirror.is-arrived .tg__msg--new { animation: land 1400ms var(--sc-ease-out) both; }
@keyframes land {
  0%   { transform: translate3d(0, 26px, 0) scale(0.96); opacity: 0; box-shadow: 0 8px 26px -8px rgb(var(--gold-rgb) / 0); }
  40%  { transform: none; opacity: 1; box-shadow: 0 10px 60px 0 rgb(var(--gold-rgb) / 0.95); }
  100% { box-shadow: 0 8px 30px -6px rgb(var(--gold-rgb) / 0.6); }
}
.mirror__cap { max-width: 24ch; margin: var(--sc-4) auto 0; font-size: var(--sc-t-xs); color: var(--sc-ink-soft); }

.foot { border-top: 1px solid var(--sc-hairline); padding: var(--sc-5) 0 var(--sc-6); }
.foot__in { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.75rem 2rem; }
.foot__brand { font-weight: 600; font-size: var(--sc-t-sm); letter-spacing: 0.06em; }
.foot__brand span { margin-left: 1.25rem; font-weight: 400; letter-spacing: 0; color: var(--sc-ink-soft); }
.foot__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: var(--sc-t-sm); }
.foot__links a { color: var(--sc-ink); text-decoration-color: var(--sc-accent); }
@media (hover: hover) and (pointer: fine) { .foot__links a:hover { color: var(--sc-accent); } }

/* ---------------------------------------------------------------- mobile -- */
/* Below this width the links no longer fit beside the wordmark and the CTA,
   so the navigation folds into a panel under the bar. */
@media (max-width: 1020px) {
  .bar__toggle {
    position: relative; display: block; width: 2.6rem; height: 2.6rem; padding: 0;
    background: rgb(9 9 10 / 0.4); border: 1px solid var(--sc-hairline-strong); border-radius: var(--sc-r-sm);
    cursor: pointer; transition: border-color 180ms var(--sc-ease-out), scale 140ms var(--sc-ease-out);
  }
  .bar__toggle:active { scale: 0.95; }
  .bar__toggle span, .bar__toggle span::before {
    content: ""; position: absolute; left: 50%; top: 50%; width: 1.1rem; height: 1px; margin-left: -0.55rem;
    background: var(--sc-ink); transition: transform 260ms var(--sc-ease-out), background-color 180ms var(--sc-ease-out);
  }
  .bar__toggle span { transform: translateY(-3px); }
  .bar__toggle span::before { left: 0; top: 0; margin: 0; transform: translateY(6px); }
  .bar__toggle[aria-expanded="true"] { border-color: var(--sc-accent); }
  .bar__toggle[aria-expanded="true"] span { transform: rotate(45deg); background: var(--sc-accent); }
  .bar__toggle[aria-expanded="true"] span::before { transform: rotate(-90deg); background: var(--sc-accent); }

  .bar__nav {
    position: absolute; top: calc(100% - 0.2rem); right: var(--sc-gutter); left: var(--sc-gutter);
    flex-direction: column; gap: 0; padding: 0.4rem 1.1rem;
    background: var(--sc-surface); border: 1px solid var(--sc-hairline-strong); border-radius: 10px;
    box-shadow: var(--sc-edge), var(--sc-e3); font-size: var(--sc-t-base);
    opacity: 0; visibility: hidden; transform: translate3d(0, -8px, 0);
    transition: opacity 220ms var(--sc-ease-out), transform 260ms var(--sc-ease-out), visibility 0s linear 260ms;
  }
  .bar__nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .bar__nav a { padding: 0.95em 0; color: var(--sc-ink); }
  .bar__nav a + a { border-top: 1px solid var(--sc-hairline); }
  .bar__nav a::after { display: none; }
}
@media (min-width: 600px) and (max-width: 1020px) { .bar__nav { left: auto; width: 17rem; } }

@media (max-width: 860px) {
  .bar__brand img { width: 36px; height: 36px; }
  .bar__word { font-size: 0.78rem; }
  .btn--sm { padding: 0.65em 0.9em; font-size: 0.8rem; }

  /* The phone composition is its own art direction: devices own the top of
     the frame, the copy owns the bottom, and the scrim becomes a band. */
  .laptop { right: -20vw; top: 9svh; width: 104vw; }
  .hero__plane--phone .phone { right: 8vw; top: 19svh; width: 31vw; }
  .hero__scrim { background: linear-gradient(to top, var(--sc-canvas) 0%, rgb(9 9 10 / 0.96) 44%, rgb(9 9 10 / 0.55) 58%, transparent 74%); }
  .hero__copy { inset-inline: var(--sc-gutter); bottom: 1.5rem; max-width: none; }
  .hero__title { font-size: clamp(1.85rem, 8.2vw, 2.6rem); }
  .hero__sub { margin: var(--sc-4) 0 var(--sc-5); font-size: 0.95rem; line-height: 1.5; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__next { margin-top: var(--sc-4); padding-top: var(--sc-3); font-size: 0.8rem; gap: 0.25rem 0.9rem; }

  .pain__grid, .process__grid, .faq__grid, .close__grid { grid-template-columns: minmax(0, 1fr); }
  .pain__scene { aspect-ratio: 5 / 4; order: -1; }
  .lost { font-size: 0.78rem; }

  .turn__window { --ix: calc((1 - var(--w)) * 10%); --it: calc((1 - var(--w)) * 12%); --ib: calc((1 - var(--w)) * 42%); }
  .turn__scrim { background: linear-gradient(to top, rgb(9 9 10 / 0.94) 0%, rgb(9 9 10 / 0.7) 30%, transparent 58%); }

  .part { flex-basis: 74vw; }
  .part--lead, .part--tail { flex-basis: 78vw; }
  .part__num { font-size: min(34vw, 20svh); }

  .chain__stage { padding-top: 5rem; }
  .chain__map { aspect-ratio: 360 / 520; width: min(100%, 26rem); }
  .node b, .node > span:last-child { width: 9.5rem; white-space: normal; }
  .node b { top: -0.75rem; font-size: 1.05rem; }
  .node > span:last-child { top: 0.75rem; font-size: 0.8rem; }
  .node[data-side="right"] b, .node[data-side="right"] > span:last-child { left: 1.1rem; text-align: left; }
  .node[data-side="left"] b, .node[data-side="left"] > span:last-child { left: -10.6rem; text-align: right; }
  .chain__ping { translate: calc(-100% - 0.9rem) calc(-100% - 1.6rem); font-size: 0.78rem; }
  .chain__end .sc-lede { font-size: 1.05rem; }

  .cases__grid { grid-template-columns: minmax(0, 1fr); }
  .case, .case:nth-child(n), .case-cta, .case-cta--wide { grid-column: 1 / -1; margin-top: 0; }
  .case-cta { padding: var(--sc-5) 0 0; border-left: 0; border-top: 1px solid var(--sc-hairline); }
  .case__meta { grid-template-columns: minmax(0, 1fr); }
  .case__open { grid-column: 1; grid-row: auto; order: 3; margin-top: 0.5rem; color: var(--sc-accent); }

  .steps li { font-size: 1.05rem; padding: 0.7rem 0; }
  .steps li::before, .steps li::after { top: 1.2rem; }
  .faq__lead { position: static; }
  .faq summary { font-size: 1.08rem; }

  .close__stage { padding-top: 4.75rem; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .form__foot .btn { flex: 1 1 100%; }
  .form__note { max-width: none; }
  .phone--mirror { width: 13.5rem; }
  .foot__brand span { display: block; margin: 0.4rem 0 0; }
}

@media (max-height: 640px) and (min-width: 861px) {
  .hero__sub { margin: var(--sc-4) 0; }
  .hero__next { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__line > span, .tg__msg--new, .fig-bot i, .fig-admin i::after { animation: none !important; }
  .hero__plane, .lost { transform: none !important; }
  .lost { opacity: 0.7; }
  .turn__window { clip-path: none; }
  .turn__scrim { opacity: 1; }
}
