/* VERSA AI — versaii.co (v3: original VERSA type + indigo palette, alive)
   Type: Instrument Serif (display) · Instrument Sans (text) · Space Mono (labels). */

:root {
  --bg: #FAFAFB;
  --surface: #FFFFFF;
  --ink: #14141C;
  --ink-2: #2B2B36;
  --muted: #5B5B68;       /* 6.6:1 on --bg */
  --muted-2: #8E8E9C;
  --line: #E4E3EE;
  --line-2: #D3D2E2;
  --indigo: #6D62E8;      /* 4.6:1 on white */
  --indigo-ink: #4F45C9;  /* text-safe indigo, 6.9:1 */
  --deep: #3C3596;
  --lav: #9389F6;
  --lav-2: #A79FFA;
  --tint: #F3F2FA;
  --tint-2: #ECE9FD;
  --tint-3: #EDECF9;
  --coral: #C2665C;
  --night: #14141C;
  --night-2: #1C1B29;
  --night-line: rgb(255 255 255 / 0.09);
  --night-muted: #A9A8BE; /* 8.5:1 on --night */

  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Space Mono', ui-monospace, 'Cascadia Mono', Menlo, monospace;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.12rem, 1.06rem + 0.3vw, 1.25rem);
  --step-2: clamp(1.4rem, 1.25rem + 0.7vw, 1.75rem);
  --step-3: clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem);
  --step-4: clamp(2.8rem, 1.8rem + 4.4vw, 5.4rem);

  --gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --maxw: 76rem;
  --radius: 18px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
  --spring: cubic-bezier(0.34, 1.45, 0.64, 1);

  --z-sticky: 20;
  color-scheme: light;
}

@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, 0.009, 0.035 2.1%, 0.141, 0.281 6.7%, 0.723 12.9%, 0.938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, 0.991, 0.977 51%, 0.974 53.8%, 0.975 57.1%, 0.997 69.8%, 1.003 76.9%, 1);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: var(--step-0); line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
a { color: inherit; }
b, strong { font-weight: 600; }
button { font: inherit; color: inherit; }
[id] { scroll-margin-top: 88px; }
::selection { background: var(--tint-2); color: var(--deep); }

:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 8px; }
.band :focus-visible, .leak :focus-visible { outline-color: var(--lav-2); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }

/* type system */
/* auteur-allow: EYEBROW_EVERYWHERE -- client-requested return to the original VERSA site language: Space Mono section labels are part of the brand system */
.h-serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; line-height: 1.02; }
.h-serif em, h1 em { font-style: italic; color: var(--indigo); }
.kicker {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1.25rem;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--deep);
}
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--indigo); box-shadow: 0 0 0 4px rgb(109 98 232 / 0.14); }
.kicker-light { color: var(--lav-2); }
.kicker-light::before { background: var(--lav-2); box-shadow: 0 0 0 4px rgb(167 159 250 / 0.16); }
.kicker:has(.kicker-dot)::before { display: none; }
.kicker-dot { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--indigo); flex: none; }
.kicker-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--indigo); animation: ping 2.4s var(--ease-out) infinite; }
@keyframes ping { from { transform: scale(0.4); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.sub { margin-top: 1.25rem; font-size: var(--step-1); color: var(--muted); max-width: 44rem; }
.sub b { color: var(--ink); font-weight: 600; }

/* ---------- buttons & links ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0.7rem 1.25rem; border-radius: 999px; border: 0;
  font: 600 var(--step--1)/1 var(--sans); letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 160ms ease, transform 160ms var(--ease-out), box-shadow 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -12px rgb(20 20 28 / 0.6); }
.btn-lg { min-height: 54px; padding: 1rem 1.75rem; font-size: var(--step-0); }
@media (hover: hover) {
  .btn-dark:hover { background: #22212E; transform: translateY(-1px); box-shadow: 0 16px 30px -14px rgb(60 53 150 / 0.65); }
}
/* shimmer sweep (21st "Shimmer Button", rebuilt in CSS) */
.btn-shimmer::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 35%, rgb(167 159 250 / 0.55) 50%, transparent 65%);
  transform: translateX(-120%); animation: shimmer 3.6s var(--ease-in-out) infinite; animation-delay: 1.2s;
}
@keyframes shimmer { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

.link-mono {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px;
  font-family: var(--mono); font-size: 0.82rem; color: var(--ink-2); text-decoration: none;
}
.link-mono span { transition: transform 200ms var(--ease-out); }
@media (hover: hover) { .link-mono:hover span { transform: translateY(3px); } .link-mono:hover { color: var(--indigo-ink); } }

.ticks { list-style: none; display: grid; gap: 0.75rem; }
.ticks li { position: relative; padding-left: 1.8rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--tint-2) center / 0.62rem no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M1.5 6l4 4 9-8.5' fill='none' stroke='%234F45C9' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* spotlight (21st "Spotlight Card"): JS feeds --mx/--my */
.spot { position: relative; isolation: isolate; }
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -30%), rgb(147 137 246 / 0.16), transparent 45%);
  opacity: 0; transition: opacity 300ms ease;
}
@media (hover: hover) { .spot:hover::before { opacity: 1; } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 200ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 1.5rem; height: 70px; }
.brand { display: inline-flex; margin-right: auto; border-radius: 8px; }
.brand img { width: 140px; height: auto; }
.nav { display: none; gap: 0.15rem; }
.nav a { position: relative; padding: 0.55rem 0.85rem; border-radius: 999px; font-size: var(--step--1); font-weight: 500; color: var(--ink-2); text-decoration: none; transition: color 150ms ease; }
.nav a::after { content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.3rem; height: 1px; background: var(--indigo); transform: scaleX(0); transform-origin: right; transition: transform 260ms var(--ease-out); }
@media (hover: hover) { .nav a:hover { color: var(--indigo-ink); } .nav a:hover::after { transform: scaleX(1); transform-origin: left; } }
.header-cta { display: none; }
.menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; }
.mobile-menu {
  margin: 0; inset: 78px var(--gutter) auto auto; width: min(20rem, calc(100vw - 2 * var(--gutter)));
  padding: 0.75rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: 0 24px 50px -20px rgb(60 53 150 / 0.3);
}
.mobile-menu:popover-open { animation: pop 220ms var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
.mobile-menu nav { display: grid; gap: 0.15rem; }
.mobile-menu a:not(.btn) { padding: 0.75rem 0.85rem; border-radius: 10px; text-decoration: none; font-weight: 500; }
.mobile-menu a:not(.btn):hover { background: var(--tint); }
.mobile-menu .btn { margin-top: 0.5rem; }
@media (min-width: 960px) { .nav { display: flex; } .header-cta { display: inline-flex; } .menu-btn, .mobile-menu { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(3rem, 2rem + 4vw, 6rem); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 78% 40%, rgb(147 137 246 / 0.22), transparent 70%),
    radial-gradient(40% 40% at 10% 10%, rgb(236 233 253 / 0.9), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask: radial-gradient(90% 80% at 60% 40%, #000 30%, transparent 85%);
          mask: radial-gradient(90% 80% at 60% 40%, #000 30%, transparent 85%);
  opacity: 0.85;
}
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { font-family: var(--serif); font-size: clamp(2.9rem, 1.6rem + 5vw, 5.6rem); line-height: 0.98; letter-spacing: -0.02em; max-width: 13ch; }
.lead { margin-top: 1.6rem; font-size: var(--step-1); line-height: 1.55; color: var(--muted); max-width: 33rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; margin-top: 2rem; }
.hero-note { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); max-width: 30rem; font-size: var(--step--1); color: var(--muted); }
@media (min-width: 1040px) { .hero-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }

/* headline words blur in (JS splits into .w spans) */
.js [data-split] .w { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(0.25em); animation: word-in 900ms var(--ease-out) forwards; animation-delay: calc(var(--wi) * 70ms + 100ms); }
@keyframes word-in { to { opacity: 1; filter: blur(0); transform: none; } }
.js .hero-in { opacity: 0; transform: translateY(14px); animation: rise 900ms var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* globe (21st "Wireframe Dotted Globe", rebuilt on canvas) */
.globe-stage { position: relative; width: min(100%, 36rem); justify-self: center; aspect-ratio: 1; }
.globe-stage::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, rgb(236 233 253 / 0.95), rgb(147 137 246 / 0.18) 60%, transparent 72%); filter: blur(4px); }
.globe { position: relative; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.globe:active { cursor: grabbing; }
.globe-cap { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); white-space: nowrap; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }

/* signal toasts stacking over the globe */
.signals { position: absolute; right: -0.5rem; bottom: 12%; width: min(17.5rem, 62%); height: 13.5rem; list-style: none; pointer-events: none; }
.signal {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: auto 1fr; gap: 0.1rem 0.7rem; align-items: center;
  padding: 0.7rem 0.85rem; border-radius: 14px;
  background: rgb(255 255 255 / 0.86); border: 1px solid rgb(211 210 226 / 0.9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); /* sits over the moving globe */
  box-shadow: 0 18px 36px -18px rgb(60 53 150 / 0.35);
  transform: translateY(calc(var(--slot, 0) * -4.4rem)) scale(calc(1 - var(--slot, 0) * 0.04));
  opacity: calc(1 - var(--slot, 0) * 0.28);
  transition: transform 600ms var(--spring), opacity 400ms ease;
}
.signal.is-new { animation: toast-in 600ms var(--ease-out); }
.signal.is-out { opacity: 0; transform: translateY(calc(var(--slot, 0) * -4.4rem - 1rem)) scale(0.9); }
@keyframes toast-in { from { opacity: 0; transform: translateY(1.2rem) scale(0.96); filter: blur(4px); } }
.sig-ico { grid-row: span 2; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-family: var(--mono); font-size: 0.7rem; font-weight: 700; color: #fff; background: var(--indigo); }
.sig-ico[data-k="Lapsed"] { background: var(--deep); }
.sig-ico[data-k="Booked"] { background: var(--ink); }
.sig-ico[data-k="Plan"] { background: var(--coral); }
.sig-t { font-size: 0.84rem; font-weight: 600; line-height: 1.25; }
.sig-s { font-size: 0.74rem; color: var(--muted); font-family: var(--mono); }
@media (max-width: 560px) { .signals { right: 0; width: 78%; } }

/* ---------- beams ---------- */
.beams-sec { padding-block: clamp(3.5rem, 3rem + 3vw, 6rem); border-block: 1px solid var(--line); background: var(--surface); }
.beams-head { max-width: 46rem; }
.beams-head h2 { font-size: var(--step-2); line-height: 1.15; letter-spacing: -0.01em; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.beams { position: relative; display: grid; gap: 2.5rem; align-items: center; justify-items: center; margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.beams-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.beam-base { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.beam-flow { fill: none; stroke: url(#beam-g); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 0.16 0.84; stroke-dashoffset: 1; animation: beam var(--dur, 3.2s) linear infinite; animation-delay: var(--delay, 0s); }
.beam-flow.is-out { stroke: var(--indigo); }
@keyframes beam { to { stroke-dashoffset: 0; } }
.beam-col { position: relative; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.beam-in li { padding: 0.55rem 1rem; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); font-weight: 600; font-size: 0.92rem; box-shadow: 0 6px 16px -10px rgb(20 20 28 / 0.25); }
.beam-out li { display: grid; padding: 0.7rem 1rem; border-radius: 12px; background: var(--tint); border: 1px solid var(--tint-2); }
.beam-out b { font-size: 0.94rem; color: var(--deep); }
.beam-out span { font-size: 0.78rem; font-family: var(--mono); color: var(--muted); }
.beam-core { position: relative; display: grid; place-items: center; width: 116px; height: 116px; border-radius: 30px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 50px -20px rgb(60 53 150 / 0.45); }
.core-ring { position: absolute; inset: -10px; border-radius: 38px; border: 1px solid rgb(109 98 232 / 0.35); animation: core 2.8s var(--ease-out) infinite; }
@keyframes core { from { transform: scale(0.9); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
@media (min-width: 900px) {
  .beams { grid-template-columns: 1fr auto 1fr; gap: 0; }
  .beam-col { flex-direction: column; flex-wrap: nowrap; gap: 0.7rem; }
  .beam-in { justify-self: start; }
  .beam-out { justify-self: end; }
}

/* ---------- the leak (dark card) ---------- */
.leak { padding-block: clamp(3.5rem, 3rem + 3vw, 6rem); }
.leak-card {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(2rem, 1.2rem + 4vw, 5rem); border-radius: 28px;
  background: var(--night); color: #fff;
}
.leak-glow { position: absolute; inset: auto -10% -40% 30%; height: 80%; z-index: -1; background: radial-gradient(closest-side, rgb(109 98 232 / 0.45), transparent); filter: blur(20px); animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(-18%, -12%) scale(1.15); } }
.leak-card::after { /* hairline grid inside the card */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background: linear-gradient(var(--night-line) 1px, transparent 1px) 0 0 / 48px 48px, linear-gradient(90deg, var(--night-line) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask: linear-gradient(180deg, #000, transparent 70%); mask: linear-gradient(180deg, #000, transparent 70%);
}
.leak h2 { font-size: var(--step-3); max-width: 18ch; }
.leak h2 em { color: var(--lav-2); }
.leak-sub { margin-top: 1rem; color: var(--night-muted); font-size: var(--step-1); max-width: 36rem; }
.leak-grid { display: grid; gap: 1rem; margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.leak-stat { padding: 1.5rem; border-radius: 18px; background: rgb(255 255 255 / 0.035); border: 1px solid var(--night-line); }
.leak-stat.spot::before { background: radial-gradient(360px circle at var(--mx, 50%) var(--my, -30%), rgb(167 159 250 / 0.2), transparent 50%); }
.ls-k { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--night-muted); }
.ls-num { margin-top: 1rem; font-family: var(--mono); font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.ls-num small { font-size: 0.5em; color: var(--lav-2); margin-left: 0.15em; }
.ls-word { color: var(--coral); letter-spacing: 0; font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.6rem); }
.ls-txt { margin-top: 1rem; color: var(--night-muted); }
@media (min-width: 860px) { .leak-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- the system ---------- */
.system { padding-block: clamp(3rem, 2.5rem + 3vw, 6rem) clamp(4rem, 3rem + 5vw, 8rem); }
.system-head { max-width: 52rem; }
.system h2 { font-size: var(--step-3); }

/* console */
.console { margin-top: clamp(2.5rem, 2rem + 3vw, 4rem); }
.console-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 1px 0 rgb(20 20 28 / 0.03), 0 40px 80px -40px rgb(60 53 150 / 0.4); }
.console-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.25rem 1rem; padding: 1rem 1.4rem; border-bottom: 1px solid var(--line); }
.console-title { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; white-space: nowrap; }
.console-title img { border-radius: 6px; }
.console-note { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.console-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--line); background: var(--bg); }
.console-tabs [role="tab"] { position: relative; display: grid; gap: 0.35rem; padding: 0.9rem 1rem 0.8rem; min-height: 44px; border: 0; background: none; cursor: pointer; text-align: left; color: var(--muted); transition: color 160ms ease, background-color 160ms ease; }
.console-tabs [role="tab"] + [role="tab"] { border-left: 1px solid var(--line); }
.console-tabs [aria-selected="true"] { color: var(--ink); background: var(--surface); }
@media (hover: hover) { .console-tabs [role="tab"]:hover { color: var(--ink); } }
.console-tabs [role="tab"]:focus-visible { outline-offset: -3px; }
.tab-n { font-family: var(--mono); font-size: 0.68rem; color: var(--indigo); }
.tab-name { font-size: 0.88rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab-bar { display: block; height: 3px; margin-top: 0.3rem; border-radius: 3px; background: var(--line); overflow: hidden; }
.tab-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--lav), var(--indigo)); transform-origin: left; transform: scaleX(0); }
.console-tabs [data-done] .tab-bar i { transform: scaleX(1); opacity: 0.45; }
.console-panels { display: grid; min-height: 20rem; }
.panel { grid-area: 1 / 1; padding: 1.5rem 1.4rem; }
.panel[hidden] { display: none; }
.panel.is-entering { animation: panel-in 320ms var(--ease-out) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } }
.panel-title { font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; margin-bottom: 1.1rem; }
.panel ul { list-style: none; display: grid; gap: 0.55rem; }
.panel.is-entering li { animation: row-in 420ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms + 80ms); }
@keyframes row-in { from { opacity: 0; transform: translateY(10px); } }
.finds li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.8rem 0.95rem; border: 1px solid var(--line); border-radius: 12px; font-size: 0.95rem; }
.f-what b { font-family: var(--mono); font-weight: 700; color: var(--ink); }
.f-tag { flex: none; padding: 0.22rem 0.65rem; border-radius: 99px; background: var(--tint-2); color: var(--deep); font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.f-leak { background: rgb(194 102 92 / 0.12); color: #9C4A41; }

/* the fold: rows flip on X like the logo's folded band */
.fold { perspective: 800px; }
.fold-in { display: grid; transform-style: preserve-3d; transition: transform 700ms var(--spring); transition-delay: calc(var(--i, 0) * 110ms); }
.fold-face { grid-area: 1 / 1; display: flex; justify-content: space-between; align-items: center; gap: 1rem; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.fold-face em { font-style: normal; font-size: 0.75rem; white-space: nowrap; font-family: var(--mono); }
.f-back { transform: rotateX(180deg); }
.fold.is-on .fold-in { transform: rotateX(-180deg); }
.builds .fold-face { padding: 0.8rem 0.95rem; border-radius: 12px; font-size: 0.95rem; font-weight: 500; }
.builds .f-front { border: 1px dashed var(--line-2); color: var(--muted); background: var(--surface); }
.builds .f-back { background: var(--tint-2); color: var(--deep); border: 1px solid #DCD8FD; }
.builds .f-back em { color: var(--indigo-ink); }
.rev-big { color: var(--muted); margin-bottom: 1rem; }
.rev-big b { display: block; font-family: var(--mono); font-weight: 700; font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem); letter-spacing: -0.05em; line-height: 1.05; color: var(--ink); }
.bookings li { display: grid; grid-template-columns: 4.8rem 1fr auto; gap: 0.75rem; align-items: baseline; padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.bookings time { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.bookings em { font-style: normal; font-size: 0.78rem; color: var(--indigo-ink); font-weight: 600; }
.bars li { display: grid; grid-template-columns: 6.6rem 1fr 3.8rem; gap: 0.75rem; align-items: center; font-size: 0.92rem; padding-block: 0.35rem; }
.b-track { height: 10px; border-radius: 99px; background: var(--tint); overflow: hidden; }
.b-track i { display: block; height: 100%; width: var(--w); border-radius: 99px; background: linear-gradient(90deg, var(--lav), var(--indigo)); transform-origin: left; }
.panel.is-entering .b-track i { animation: bar-in 800ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 80ms + 150ms); }
@keyframes bar-in { from { transform: scaleX(0); } }
.b-val { font-family: var(--mono); font-size: 0.8rem; text-align: right; }
.b-cut { color: var(--muted); }
.b-cut .b-track i { background: var(--line-2); }
.changes li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 0.95rem; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: 0.95rem; }
.changes b { font-family: var(--mono); font-weight: 700; font-size: 0.8rem; color: var(--indigo-ink); white-space: nowrap; }
.loop-back { display: flex; gap: 0.6rem; align-items: center; margin-top: 1rem; font-size: 0.9rem; color: var(--deep); font-weight: 500; }
.loop-back svg { flex: none; color: var(--indigo); animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(-360deg); } }
.console figcaption { margin-top: 0.8rem; font-size: 0.8rem; color: var(--muted); padding-left: 0.25rem; }
@media (max-width: 760px) {
  .console-tabs { grid-template-columns: repeat(5, minmax(8.2rem, 1fr)); overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
  .console-tabs::-webkit-scrollbar { display: none; }
  .finds li { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .bookings li { grid-template-columns: 4.4rem 1fr; }
  .bookings em { grid-column: 2; }
  .changes li { flex-direction: column; gap: 0.25rem; }
  .fold-face { flex-wrap: wrap; gap: 0.15rem 1rem; }
}

/* capabilities */
.sys { display: grid; gap: 2.25rem; align-items: center; margin-top: clamp(4.5rem, 3.5rem + 4vw, 8rem); }
.sys h3 { font-size: clamp(2rem, 1.5rem + 2vw, 3.1rem); max-width: 17ch; }
.sys-copy > p:not(.kicker):not(.sys-punch) { margin-top: 1.25rem; color: var(--muted); font-size: var(--step-1); line-height: 1.55; max-width: 34rem; }
.sys-punch { margin-top: 1.5rem; padding-left: 1.1rem; border-left: 2px solid var(--indigo); font-family: var(--serif); font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem); line-height: 1.25; max-width: 30rem; } /* auteur-allow: SIDE_STRIPE -- pull-quote rule, not a card accent */
.sys-punch em { font-style: italic; color: var(--indigo); }
@media (min-width: 960px) {
  .sys { grid-template-columns: 6fr 5fr; gap: 5rem; }
  .sys-flip { grid-template-columns: 5fr 6fr; }
  .sys-flip .sys-copy { order: 2; }
}

.artifact { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1.6rem; box-shadow: 0 30px 60px -36px rgb(60 53 150 / 0.4); }
.artifact figcaption { margin-top: 1rem; font-size: 0.76rem; color: var(--muted); }
.art-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-weight: 600; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.art-head span + span { font-family: var(--mono); font-weight: 400; font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.live { display: inline-flex; align-items: center; gap: 0.45rem; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--indigo); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; }
.report-grid div { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.report-grid div:nth-child(odd) { padding-right: 1rem; border-right: 1px solid var(--line); }
.report-grid div:nth-child(even) { padding-left: 1rem; }
.report-grid dt, .dash-kpis dt { font-size: 0.8rem; color: var(--muted); }
.report-grid dd { font-family: var(--mono); font-size: 1.65rem; font-weight: 700; letter-spacing: -0.04em; }
.report-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 1rem; padding: 0.95rem 1.1rem; border-radius: 12px; background: var(--ink); color: var(--night-muted); font-weight: 500; }
.report-foot b { font-family: var(--mono); font-size: 1.45rem; color: #fff; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-top: 1rem; }
.dash-kpis div { display: grid; gap: 0.2rem; padding: 0.9rem; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.dash-kpis dd { font-family: var(--mono); font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.45rem); font-weight: 700; letter-spacing: -0.04em; }
.kpi-bar { height: 4px; border-radius: 9px; background: var(--tint); overflow: hidden; margin-top: 0.3rem; }
.kpi-bar i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--lav), var(--indigo)); transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease-out) 300ms; }
.is-visible .kpi-bar i, .no-anim .kpi-bar i { transform: scaleX(1); }
.dash-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.92rem; }
.dash-table th, .dash-table td { padding: 0.62rem 0; border-bottom: 1px solid var(--line); text-align: left; }
.dash-table thead th { font-size: 0.76rem; font-weight: 500; color: var(--muted); }
.dash-table td, .dash-table thead th:not(:first-child) { text-align: right; }
.dash-table td { font-family: var(--mono); }
.dash-table tbody th { font-weight: 500; }
.dash-table .is-cut th, .dash-table .is-cut td { color: var(--muted-2); }
.dash-table .is-cut td:last-child { text-decoration: line-through; text-decoration-color: var(--coral); }

/* growth engine builder */
.sys-engine { align-items: start; }
.builder { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); overflow: hidden; box-shadow: 0 30px 60px -36px rgb(60 53 150 / 0.4); }
.builder-tabs { display: flex; flex-wrap: wrap; gap: 0.25rem; padding: 0.5rem; background: var(--bg); border-bottom: 1px solid var(--line); }
.builder-tabs [role="tab"] { position: relative; min-height: 40px; padding: 0.5rem 0.95rem; border: 0; border-radius: 99px; background: none; cursor: pointer; font-size: 0.88rem; font-weight: 600; color: var(--muted); transition: background-color 200ms ease, color 200ms ease; }
.builder-tabs [aria-selected="true"] { background: var(--ink); color: #fff; }
@media (hover: hover) { .builder-tabs [role="tab"]:not([aria-selected="true"]):hover { background: var(--tint); color: var(--ink); } }
.builder-body { padding: 1.3rem; }
.modules { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 0.5rem; }
.modules .fold-face { padding: 0.68rem 0.85rem; border-radius: 12px; font-size: 0.88rem; font-weight: 500; }
.modules .f-front { border: 1px dashed var(--line-2); color: var(--muted-2); background: var(--surface); }
.modules .f-back { background: var(--tint-2); color: var(--deep); border: 1px solid #DCD8FD; font-weight: 600; }
.modules .f-back::after { content: ""; flex: none; width: 1rem; height: 1rem; border-radius: 50%; background: var(--indigo) center / 0.55rem no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M1.5 6l4 4 9-8.5' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.modules .fold-in { transition-duration: 640ms; transition-delay: calc(var(--i, 0) * 45ms); }
.module-custom { display: flex; align-items: center; padding: 0.68rem 0.85rem; border-radius: 12px; font-size: 0.88rem; font-weight: 600; color: #fff; background: linear-gradient(120deg, var(--deep), var(--indigo)); }
.builder-note { margin-top: 1.1rem; color: var(--ink-2); min-height: 4.65em; }
.builder-note.is-swapping { animation: note-in 300ms var(--ease-out) both; }
@keyframes note-in { from { opacity: 0; transform: translateY(5px); filter: blur(2px); } }
.builder-count { margin-top: 0.75rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--muted); }
.builder-count span { color: var(--indigo-ink); font-weight: 700; }
@media (min-width: 960px) { .sys-engine { grid-template-columns: 5fr 6fr; } .sys-engine .sys-copy { position: sticky; top: 110px; } }

/* ---------- band: not an agency (dark + flowing paths) ---------- */
.band { position: relative; overflow: hidden; isolation: isolate; background: var(--night); color: #fff; padding-block: clamp(4.5rem, 3.5rem + 5vw, 9rem); }
.paths { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.9; }
.paths svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.paths path { fill: none; stroke: #A79FFA; stroke-dasharray: 0.32 0.68; animation: flow var(--t, 24s) linear infinite; }
@keyframes flow { to { stroke-dashoffset: -1; } }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 70% at 30% 40%, transparent 30%, rgb(20 20 28 / 0.7) 90%); pointer-events: none; }
.band-intro { display: grid; gap: 1.25rem; max-width: 48rem; }
.band h2 { font-size: var(--step-4); line-height: 0.98; }
.band h2 em { color: var(--lav-2); }
.band-intro > p:last-child { font-size: var(--step-1); color: var(--night-muted); max-width: 38rem; }
.table-scroll { margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); overflow-x: auto; border-radius: 20px; border: 1px solid var(--night-line); background: rgb(20 20 28 / 0.65); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); /* table sits over animated paths */ }
.compare { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; font-size: 0.95rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 1.05rem 1.3rem; border-bottom: 1px solid var(--night-line); }
.compare thead th { font-family: var(--mono); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--night-muted); padding-top: 1.3rem; }
.compare tbody th { font-weight: 600; color: #fff; width: 26%; }
.compare td { color: var(--night-muted); width: 22%; }
.compare td.no { color: rgb(169 168 190 / 0.5); }
.compare .is-versa { background: rgb(109 98 232 / 0.16); color: #fff; font-weight: 500; width: 30%; }
.compare thead .is-versa { color: var(--lav-2); font-weight: 700; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 759px) {
  .table-scroll { overflow: visible; padding-inline: 1.1rem; }
  .compare { min-width: 0; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare tbody th, .compare tbody td, .compare tbody .is-versa { width: auto; }
  .compare tr { padding-block: 1.1rem; border-bottom: 1px solid var(--night-line); }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare tbody th[scope="row"] { padding: 0 0 0.6rem; font-size: var(--step-1); border: 0; }
  .compare td { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.75rem; padding: 0.35rem 0; border: 0; font-size: 0.92rem; }
  .compare td::before { content: attr(data-label); font-family: var(--mono); font-size: 0.72rem; color: rgb(169 168 190 / 0.75); }
  .compare td.is-versa { margin-top: 0.35rem; padding: 0.7rem 0.85rem; border-radius: 10px; }
  .compare td.is-versa::before { color: var(--lav-2); }
}

/* ---------- patient app ---------- */
.app { padding-block: clamp(4.5rem, 3.5rem + 5vw, 8rem); overflow: hidden; }
.app-grid { display: grid; gap: 3rem; align-items: center; }
.app h2 { font-size: var(--step-3); max-width: 17ch; }
.app-copy > p:last-child { margin-top: 1.4rem; color: var(--muted); font-size: var(--step-1); line-height: 1.55; max-width: 32rem; }
.phone-wrap { position: relative; justify-self: center; perspective: 1200px; }
.phone-wrap::before { content: ""; position: absolute; inset: 10% -20%; background: radial-gradient(closest-side, rgb(147 137 246 / 0.5), transparent); filter: blur(30px); z-index: -1; animation: drift 10s ease-in-out infinite alternate; }
.phone { width: min(19rem, 82vw); padding: 0.7rem; border-radius: 2.7rem; background: var(--ink); box-shadow: 0 50px 90px -40px rgb(60 53 150 / 0.7), inset 0 0 0 1px rgb(255 255 255 / 0.08); transform: rotateY(var(--ry, -12deg)) rotateX(var(--rx, 6deg)); transition: transform 600ms var(--ease-out); }
.phone-screen { border-radius: 2.1rem; background: var(--bg); padding: 1.6rem 1.25rem 1.25rem; display: grid; gap: 0.25rem; }
.ph-practice { justify-self: center; font-size: 0.75rem; color: var(--muted); margin-bottom: 0.75rem; }
.ph-label { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--indigo-ink); }
.ph-plan { font-family: var(--serif); font-size: 1.65rem; line-height: 1.1; }
.ph-meta { font-size: 0.82rem; color: var(--muted); }
.ph-price { margin-top: 1rem; padding: 1rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 0.35rem; }
.ph-price p { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.85rem; color: var(--muted); }
.ph-price b { font-family: var(--mono); color: var(--ink); font-size: 1.05rem; }
.ph-price .ph-or { justify-content: center; font-size: 0.72rem; }
.ph-price .ph-monthly { flex-wrap: wrap; padding: 0.6rem 0.7rem; margin-inline: -0.45rem; border-radius: 10px; background: var(--tint-2); }
.ph-price .ph-monthly b { font-size: 1.35rem; color: var(--deep); }
.ph-monthly small { font-size: 0.72rem; }
.ph-monthly em { flex-basis: 100%; font-style: normal; font-size: 0.72rem; text-align: right; color: var(--deep); }
.ph-btn { position: relative; overflow: hidden; margin-top: 1rem; display: grid; place-items: center; min-height: 46px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 600; font-size: 0.92rem; }
.ph-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgb(167 159 250 / 0.5) 50%, transparent 65%); transform: translateX(-120%); animation: shimmer 3.6s var(--ease-in-out) infinite; }
.ph-fine { justify-self: center; margin-top: 0.6rem; font-size: 0.7rem; color: var(--muted); }
@media (min-width: 960px) { .app-grid { grid-template-columns: 7fr 5fr; gap: 4rem; } }

/* ---------- calculator ---------- */
.calc { padding-block: clamp(4rem, 3rem + 4vw, 7rem); background: var(--surface); border-block: 1px solid var(--line); }
.calc-grid { display: grid; gap: 2rem; }
.calc-intro h2 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.calc-intro > p:not(.kicker) { margin-top: 1rem; color: var(--muted); max-width: 32rem; }
.calc-intro .calc-assume { font-size: 0.82rem; font-family: var(--mono); color: var(--muted-2); }
.calc-form { display: grid; gap: 1.6rem; }
.field-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.7rem; }
.field label { font-weight: 500; }
.field output { font-family: var(--mono); font-weight: 700; white-space: nowrap; color: var(--deep); }
input[type="range"] { --pct: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(to right, var(--indigo) 0 var(--pct), var(--line) var(--pct) 100%); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 99px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--indigo); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--surface); border: 2px solid var(--indigo); box-shadow: 0 0 0 5px rgb(109 98 232 / 0.14), 0 2px 6px rgb(20 20 28 / 0.18); transition: transform 160ms var(--ease-out), box-shadow 160ms ease; }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 2px solid var(--indigo); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); box-shadow: 0 0 0 9px rgb(109 98 232 / 0.16); }
input[type="range"]:focus-visible { outline-offset: 6px; }
.calc-result { align-self: start; border-radius: 22px; padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem); background: var(--night); color: #fff; overflow: hidden; }
.calc-result.spot::before { background: radial-gradient(380px circle at var(--mx, 50%) var(--my, -30%), rgb(167 159 250 / 0.22), transparent 50%); opacity: 1; }
.result-label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lav-2); }
.result-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.6rem; margin-top: 0.6rem; }
.result-big span:first-child { font-family: var(--mono); font-weight: 700; font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.1rem); letter-spacing: -0.05em; line-height: 1; }
.result-big .per { color: var(--night-muted); }
.result-split { display: grid; gap: 0.9rem; margin-top: 1.4rem; }
.result-split div { display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 1rem; }
.result-split dt { font-size: 0.88rem; color: var(--night-muted); }
.result-split dd { font-family: var(--mono); font-size: 0.88rem; font-weight: 700; }
.split-bar { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: rgb(255 255 255 / 0.08); overflow: hidden; }
.split-bar i { display: block; height: 100%; width: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--lav), var(--indigo)); transform-origin: left; transform: scaleX(var(--s, 0.5)); transition: transform 420ms var(--ease-out); }
.calc-result .btn { margin-top: 1.5rem; background: #fff; color: var(--ink); }
.fine { margin-top: 1rem; font-size: 0.8rem; color: var(--night-muted); }
@media (min-width: 900px) { .calc-grid { grid-template-columns: 4fr 5fr 4fr; gap: 3rem; align-items: start; } .calc-form { padding-top: 0.4rem; } }

/* ---------- how it runs ---------- */
.how { padding-block: clamp(4.5rem, 3.5rem + 5vw, 8rem); background: var(--tint); }
.how h2 { font-size: var(--step-3); }
.timeline { --prog: 0; position: relative; list-style: none; display: grid; margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.timeline li { position: relative; padding: 0 0 2.25rem 2rem; margin-left: 7px; border-left: 2px solid var(--line-2); }
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 0.1rem; width: 16px; height: 16px; border-radius: 50%; background: var(--tint); border: 2px solid var(--indigo); transition: background-color 400ms ease, box-shadow 400ms ease; }
.timeline li.is-visible::before { background: var(--indigo); box-shadow: 0 0 0 6px rgb(109 98 232 / 0.16); }
.when { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--indigo-ink); }
.timeline h3 { margin-top: 0.5rem; font-family: var(--serif); font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); line-height: 1.08; }
.timeline li > p:last-child { margin-top: 0.6rem; color: var(--muted); max-width: 40ch; }
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .timeline::before, .timeline::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--line-2); }
  .timeline::after { background: linear-gradient(90deg, var(--lav), var(--indigo)); transform-origin: left; transform: scaleX(var(--prog)); transition: transform 1.8s var(--ease-in-out); }
  .timeline.is-drawn { --prog: 1; }
  .timeline li { padding: 2.25rem 0 0; margin: 0; border-left: 0; }
  .timeline li::before { left: 0; top: -8px; }
}

/* ---------- commitments ---------- */
.commit { padding-block: clamp(4.5rem, 3.5rem + 4vw, 7.5rem); }
.commit h2 { font-size: var(--step-3); }
.commit-list { list-style: none; display: grid; gap: 0.75rem; margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.commit-list li { padding: 1.4rem 1.5rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); line-height: 1.5; transition: border-color 200ms ease, transform 300ms var(--ease-out); }
@media (hover: hover) { .commit-list li:hover { border-color: var(--line-2); transform: translateY(-2px); } }
.commit-list b { display: block; margin-bottom: 0.35rem; font-family: var(--serif); font-weight: 400; font-size: var(--step-2); line-height: 1.15; color: var(--ink); }
@media (min-width: 900px) { .commit-list { grid-template-columns: repeat(2, 1fr); } .commit-list li:last-child { grid-column: 1 / -1; } }

/* ---------- FAQ ---------- */
.faq { padding-block: clamp(4rem, 3rem + 4vw, 7rem); background: var(--surface); border-top: 1px solid var(--line); }
.faq-grid { display: grid; gap: 2rem; }
.faq h2 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); max-width: 12ch; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; gap: 1rem; padding-block: 1.3rem; min-height: 44px; cursor: pointer; list-style: none; font-size: var(--step-1); font-weight: 600; letter-spacing: -0.01em; transition: color 160ms ease; }
.faq summary::-webkit-details-marker { display: none; }
.q-n { font-family: var(--mono); font-size: 0.72rem; font-weight: 400; color: var(--muted-2); }
.faq summary::after {
  content: ""; flex: none; margin-left: auto; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2);
  background: center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%2314141C' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  transition: transform 260ms var(--spring), background-color 160ms ease;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--tint-2); }
@media (hover: hover) { .faq summary:hover { color: var(--indigo-ink); } }
.faq details p { padding: 0 3rem 1.5rem 2.1rem; color: var(--muted); max-width: 64ch; }
.faq details[open] p { animation: note-in 300ms var(--ease-out) both; }
@media (min-width: 1040px) { .faq-grid { grid-template-columns: 4fr 8fr; gap: 4rem; } }

/* ---------- book ---------- */
.book { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(4.5rem, 3.5rem + 4vw, 8rem); }
.book-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 80% 40%, rgb(147 137 246 / 0.22), transparent 70%), radial-gradient(40% 50% at 0% 100%, rgb(236 233 253 / 0.9), transparent 70%); }
.book-grid { display: grid; gap: 2.5rem; align-items: start; }
.book h2 { font-size: var(--step-4); line-height: 0.98; max-width: 11ch; }
.book-copy > p:not(.kicker) { margin-top: 1.4rem; font-size: var(--step-1); color: var(--muted); max-width: 30rem; }
.book-copy .ticks { margin-top: 1.75rem; }
.book-widget { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--surface); min-height: 700px; box-shadow: 0 40px 80px -40px rgb(60 53 150 / 0.4); }
.book-widget noscript p { padding: 2rem; }
@media (min-width: 1040px) { .book-grid { grid-template-columns: 5fr 7fr; gap: 4rem; } .book-copy { position: sticky; top: 110px; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 3rem; font-size: var(--step--1); background: var(--surface); }
.footer-grid { display: grid; gap: 2rem; }
.footer-brand img { width: 132px; height: auto; }
.footer-brand p { margin-top: 0.9rem; color: var(--muted); max-width: 26rem; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.3rem 1.5rem; }
.footer-nav a { padding-block: 0.4rem; text-decoration: none; color: var(--ink-2); }
@media (hover: hover) { .footer-nav a:hover { color: var(--indigo-ink); } }
.footer-legal { color: var(--muted); font-family: var(--mono); font-size: 0.76rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 5fr 5fr 2fr; align-items: start; } .footer-legal { text-align: right; } }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out), filter 700ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; filter: none; }

/* ---------- calm motion (OS "reduce motion", often switched on by phone battery savers) ----------
   Nothing travels, zooms or blurs; things still fade, glow, count and flow, just slower. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-split] .w { filter: none; transform: none; animation-name: fade-only; animation-duration: 700ms; }
  .js .hero-in { transform: none; animation-name: fade-only; }
  .js .reveal { transform: none; filter: none; transition: opacity 700ms ease; }
  .signal { transition: opacity 500ms ease, transform 500ms ease; }
  .signal.is-new { animation: fade-only 600ms ease; }
  .panel.is-entering, .panel.is-entering li, .builder-note.is-swapping, .faq details[open] p { animation-name: fade-only; }
  .panel.is-entering .b-track i { animation-duration: 1200ms; }
  .fold-in { transition: transform 600ms ease; }
  .paths path { animation-duration: calc(var(--t, 24s) * 2); }
  .beam-flow { animation-duration: calc(var(--dur, 3.2s) * 1.6); }
  .leak-glow, .phone-wrap::before { animation: none; }
  .phone { transform: none; transition: none; }
  .loop-back svg { animation: none; }
}
@keyframes fade-only { from { opacity: 0; } to { opacity: 1; } }

/* ---------- "Pause motion": the visitor's switch, everything holds still ---------- */
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }
.motion-paused .js [data-split] .w, .motion-paused [data-split] .w, .motion-paused .hero-in { animation: none !important; opacity: 1 !important; filter: none !important; transform: none !important; }
.motion-btn {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-left: 0.6rem; min-height: 32px; padding: 0.3rem 0.7rem;
  border: 1px solid var(--line-2); border-radius: 99px; background: rgb(255 255 255 / 0.8); cursor: pointer;
  font: inherit; color: var(--ink-2); pointer-events: auto;
}
.motion-btn i { width: 8px; height: 9px; border-left: 2.5px solid currentColor; border-right: 2.5px solid currentColor; }
.motion-btn[aria-pressed="true"] i { width: 0; height: 0; border: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
@media (hover: hover) { .motion-btn:hover { border-color: var(--indigo); color: var(--indigo-ink); } }

/* ---------- touch screens: no hover, so give them their own life ---------- */
.spot.is-lit::before { opacity: 1; }
@media (hover: none) and (prefers-reduced-motion: no-preference) {
  .phone { animation: float 7s ease-in-out infinite alternate; }
  @keyframes float { from { transform: rotateY(-14deg) rotateX(7deg) translateY(0); } to { transform: rotateY(-4deg) rotateX(3deg) translateY(-10px); } }
}

/* continuous effects stop when offscreen */
.beams.is-paused .beam-flow, .paths.is-paused path { animation-play-state: paused; }

/* phones: toasts sit under the globe instead of over it */
@media (max-width: 700px) {
  .globe-stage { aspect-ratio: auto; width: 100%; }
  .globe-stage::before { inset: auto; top: 0; left: 50%; width: min(100%, 24rem); aspect-ratio: 1; transform: translateX(-50%) scale(0.86); }
  .globe { height: auto; aspect-ratio: 1; width: min(100%, 24rem); margin-inline: auto; }
  .signals { position: relative; right: auto; bottom: auto; width: 100%; height: 13rem; margin-top: 0.25rem; }
  .globe-cap { position: static; transform: none; text-align: center; margin-top: 0.75rem; white-space: normal; }
}
