/* ============================================================
   Kianera — flagship studio site
   Fusion soul: warm ivory canvas · amber→pink gradient · theme accent
   (ACTION accent: blue in light · fire/gold in dark — see ACCENT LAW)
   ============================================================ */

:root {
  color-scheme: light; /* declares we handle theming — stops forced/auto dark-mode half-darkening the page */
  --accent-deep: #0d8b78;
  --ai-bg: #e9f6f0;
  --ai-fg: #13241e;
  --bubble-bg: #ffffff;
  /* ai-scene text roles — light values (pale green panel needs dark ink) */
  --ai-strong: var(--accent-deep);
  --ai-muted: #43544c;
  --ai-arrow: #0d8b78;
  --ai-tag: #6b7a73;
  --ai-them-bg: rgba(19, 36, 30, 0.05);
  --ai-them-fg: #13241e;
  --ai-them-border: rgba(19, 36, 30, 0.10);
  --ai-chat-border: rgba(19, 36, 30, 0.12);
  --ai-chat-shadow: 0 1px 2px rgba(19,36,30,.05), 0 24px 48px -16px rgba(19,36,30,.18);
  /* Light — fusion's warm ivory world (not sterile paper, not thermal) */
  --paper: #f7f3ea;
  --paper-2: #f1ebdd;
  --paper-3: #e9e1cf;
  --ink: #1b1722;
  --ink-2: #56514a;
  --ink-3: #8a8478;
  --line: rgba(27, 23, 34, 0.14);
  --line-soft: rgba(27, 23, 34, 0.08);
  --accent: #6fe3d2;                 /* fusion DARK-mode green, in light mode (Lucas: "light mode have the green... like dark mode color but green") */
  --accent-ink: #ffffff;
  --accent-soft: rgba(111, 227, 210, 0.16);
  --amber: #b25a12;
  --rose: #cf3a66;
  --violet: #7a3fd1;
  --grad: linear-gradient(105deg, #baf3e2 0%, #6fe3d2 34%, #2fc9a5 68%, #0d8b78 100%);   /* GREEN mixture — Lucas: bright mode is the green world */
  --grad-text: linear-gradient(105deg, #0fa88b 0%, #0d8b78 40%, #147a68 72%, #0a5b4c 100%);
  --grad-ink: #052720;               /* deep green-ink on the green gradient */
  --card: #fffdf8;
  --shadow: 0 1px 2px rgba(27,23,34,.05), 0 10px 30px -12px rgba(27,23,34,.16);
  --shadow-lift: 0 2px 4px rgba(27,23,34,.06), 0 24px 48px -16px rgba(27,23,34,.24);
  --glow: 0 8px 24px rgba(207,58,102,.20);
  --glow-lg: 0 10px 36px rgba(207,58,102,.28);
  --nav-bg: rgba(247, 243, 234, 0.82);
  --drift-a: rgba(255, 154, 118, 0.17);
  --drift-b: rgba(13, 139, 120, 0.11);
  --drift-c: rgba(255, 125, 156, 0.13);
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  /* Dark — fusion's ember night, refined */
  --paper: #08080b;
  --paper-2: #0d0d12;
  --paper-3: #15151d;
  --ink: #f4f1ea;
  --ink-2: #b3afa4;
  --ink-3: #837f74;
  --line: rgba(244, 241, 234, 0.14);
  --line-soft: rgba(244, 241, 234, 0.08);
  --accent: #6fe3d2;                 /* fusion dark's green */
  --accent-ink: #06201b;
  --accent-soft: rgba(111, 227, 210, 0.10);
  --amber: #ffb877;
  --rose: #ff7d9c;
  --violet: #c98bff;
  --grad: linear-gradient(105deg, #ffd29e 0%, #ff9a76 38%, #ff7d9c 70%, #c98bff 100%);
  --grad-text: linear-gradient(105deg, #ffd29e 0%, #ff9a76 38%, #ff7d9c 70%, #c98bff 100%);
  --grad-ink: #161008;
  --ai-bg: #08080b;
  --ai-fg: #f4f1ea;
  --bubble-bg: #101017;
  /* ai-scene text roles — dark values (original dark styling) */
  --ai-strong: #f4f1ea;
  --ai-muted: #b3afa4;
  --ai-arrow: #6fe3d2;
  --ai-tag: #837f74;
  --ai-them-bg: rgba(244, 241, 234, 0.08);
  --ai-them-fg: #f4f1ea;
  --ai-them-border: rgba(244, 241, 234, 0.10);
  --ai-chat-border: rgba(244, 241, 234, 0.13);
  --ai-chat-shadow: 0 0 40px rgba(255,125,156,.14), 0 24px 48px -16px rgba(0,0,0,.7);
  --card: #101017;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 12px 32px -12px rgba(0,0,0,.6);
  --shadow-lift: 0 2px 4px rgba(0,0,0,.4), 0 26px 52px -16px rgba(0,0,0,.75);
  --glow: 0 0 24px rgba(255,125,156,.30);
  --glow-lg: 0 0 36px rgba(255,125,156,.45);
  --nav-bg: rgba(8, 8, 11, 0.74);
  --drift-a: rgba(255, 154, 118, 0.09);
  --drift-b: rgba(111, 227, 210, 0.07);
  --drift-c: rgba(201, 139, 255, 0.08);
}

/* gradient headline ink — used sparingly on hero emphasis words.
   motionsites move: the gradient BREATHES (background-position drift). */
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 220% 100%;
  animation: grad-breathe 5.5s ease-in-out infinite;
  /* room for the italic glyph overhang (leading F / trailing .) so clip:text
     doesn't slice it; negative margin keeps the line's position unchanged */
  padding: 0.04em 0.14em; margin: 0 -0.14em;
}
@keyframes grad-breathe {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
/* keyword glow (soft bloom behind the money word, motionsites-style) */
:root { --kw-glow: rgba(13, 139, 120, 0.30); }
html[data-theme="dark"] { --kw-glow: rgba(255, 125, 156, 0.34); }
.hook-line .grad-text { filter: drop-shadow(0 0 26px var(--kw-glow)); }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-snap-type: y proximity; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color .45s ease, color .45s ease;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.06;
  text-wrap: balance;
  hyphens: none;
  -webkit-hyphens: none;
  margin: 0 0 .5em;
  letter-spacing: -0.015em;
}

p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; display: block; }

::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- soft film grain over everything ---------- */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 2147483000;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
html[data-theme="dark"] body::after { opacity: .06; }

.wrap { max-width: 1220px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 48px); }

/* ---------- WebGL layer (fl3d.js) — fixed BEHIND all content ----------
   pointer-events none + negative z-index: it can never block reading or
   the CTA. Injected by JS only; reduced-motion hides it as a backstop. */
.fl3d {
  position: fixed; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  pointer-events: none;
  display: block;
}
@media (prefers-reduced-motion: reduce) { .fl3d { display: none; } }

/* ---------- drifting background (subtle, always alive) ---------- */
.bg-drift {
  position: fixed; inset: -20vh -20vw; z-index: -1;
  pointer-events: none; overflow: hidden;
}
.bg-drift::before, .bg-drift::after {
  content: ""; position: absolute; border-radius: 50%;
  will-change: transform; /* gradients fade to transparent — no filter blur (GPU-cheap) */
}
.bg-drift::before {
  width: 62vw; height: 62vw; top: -12vw; right: -8vw;
  background: radial-gradient(circle at 40% 40%, var(--drift-a) 0%, var(--drift-c) 45%, transparent 68%);
  animation: drift-a 52s ease-in-out infinite alternate;
}
.bg-drift::after {
  width: 55vw; height: 55vw; bottom: -14vw; left: -10vw;
  background: radial-gradient(circle, var(--drift-b) 0%, transparent 65%);
  animation: drift-b 64s ease-in-out infinite alternate;
}
@keyframes drift-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-14vw, 12vh) scale(1.18); }
}
@keyframes drift-b {
  from { transform: translate(0, 0) scale(1.1); }
  to   { transform: translate(12vw, -10vh) scale(0.94); }
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: background-color .45s ease;
}
.nav-inner {
  max-width: 1220px; margin: 0 auto;
  padding: 14px clamp(18px, 4vw, 48px);
  display: flex; align-items: center; gap: 18px;
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 23px; font-weight: 600; letter-spacing: -0.02em;
  text-decoration: none; color: var(--ink);
  margin-right: auto; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 10px;
}
.nav-brand .dot { color: var(--accent); }

/* ---- brand mark "the merge" (theme-aware: ink circle on light, ivory on dark) ---- */
.brand-mark { width: auto; display: block; }
.nav-brand .brand-mark { height: 1.18em; }
.footer-brand { display: inline-flex; align-items: center; gap: 9px; }
.footer-brand .brand-mark { height: 1.3em; }
.brand-mark.mark-dark { display: none; }
html[data-theme="dark"] .brand-mark.mark-light { display: none; }
html[data-theme="dark"] .brand-mark.mark-dark { display: block; }
.nav-links { display: flex; gap: clamp(14px, 2.4vw, 30px); align-items: center; }
.nav-links a {
  text-decoration: none; font-size: 14.5px; font-weight: 500;
  color: var(--ink-2); padding: 4px 0;
  border-bottom: 1.5px solid transparent;
  transition: color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.btn-pill {
  display: inline-block; text-decoration: none;
  background: var(--grad); color: var(--grad-ink);
  font-size: 14px; font-weight: 700; letter-spacing: .01em;
  padding: 10px 20px; border-radius: 999px;
  box-shadow: var(--glow);
  transition: transform .2s ease, box-shadow .3s ease, color .45s ease;
  white-space: nowrap;
}
.btn-pill:hover { transform: translateY(-2px); box-shadow: var(--glow-lg); }
.btn-pill.big { font-size: 16px; padding: 14px 30px; white-space: normal; text-align: center; text-wrap: balance; max-width: 100%; }
.btn-ghost {
  display: inline-block; text-decoration: none;
  color: var(--ink); font-size: 14.5px; font-weight: 600;
  padding: 10px 20px; border-radius: 999px;
  border: 1px solid var(--line);
  transition: border-color .2s ease, background-color .2s ease;
  white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--ink); }

.theme-toggle {
  appearance: none; border: 1px solid var(--line); background: transparent;
  color: var(--ink); width: 38px; height: 38px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
  transition: border-color .2s ease, transform .2s ease;
}
.theme-toggle:hover { border-color: var(--ink); transform: rotate(15deg); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

@media (max-width: 780px) {
  .nav-inner { flex-wrap: wrap; row-gap: 8px; padding-top: 12px; padding-bottom: 10px; }
  .nav-links {
    order: 3; width: 100%; overflow-x: auto; padding-bottom: 4px;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .btn-pill.nav-cta { padding: 8px 15px; font-size: 13px; }
}

/* ============================================================
   THE STORY ARC — hook · scene · turn · showcase
   ============================================================ */

/* ---------- 1 · hook ---------- */
.hook {
  min-height: calc(100vh - 70px); min-height: calc(100svh - 70px);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; position: relative;
  padding-bottom: 10vh;
}
.hook-stage { display: flex; flex-direction: column; align-items: center; }
.hook-line {
  font-size: clamp(2.1rem, 9vw, 12rem);
  font-weight: 300; line-height: 0.98; letter-spacing: -0.025em;
  max-width: 15ch; margin: 0;
}
.hook-line em:not(.grad-text) { font-style: italic; color: var(--ink-3); }

/* pill badge over the headline — motionsites formula item 2 */
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 clamp(20px, 3.5vh, 34px); padding: 8px 18px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink-2); background: var(--card);
  box-shadow: var(--shadow);
  transition: background-color .45s ease, color .45s ease;
}
.hero-badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex: none;
  animation: badge-pulse 2.4s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .45; transform: scale(.72); }
}
.scroll-cue {
  position: absolute; bottom: clamp(26px, 6vh, 60px); left: 50%;
  width: 24px; height: 40px; margin-left: -12px;
  border: 1.5px solid var(--line); border-radius: 14px;
}
.scroll-cue span {
  position: absolute; top: 7px; left: 50%; width: 3px; height: 8px;
  margin-left: -1.5px; border-radius: 3px; background: var(--ink-3);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 1; }
  55% { transform: translateY(12px); opacity: 0; }
  56% { transform: translateY(0); opacity: 0; }
}

/* ---------- 2 · agitate scene ---------- */
.scene {
  min-height: 82vh;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 780px; text-align: center;
}
.scene-line {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.6vw, 2.15rem);
  line-height: 1.35; color: var(--ink); margin: 0 0 1.4em;
  text-wrap: balance;
}
.scene-line em { color: var(--accent); font-style: italic; }
.scene-line.dim { color: var(--ink-3); }

/* ---------- 3 · the turn ---------- */
.turn {
  min-height: 78vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
}
.turn .eyebrow { font-size: 15px; }
.turn .eyebrow .dot { color: var(--accent); }
.turn-line {
  font-size: clamp(2rem, 8.5vw, 6rem);
  letter-spacing: -0.028em; line-height: 1.05; max-width: 14ch; margin-bottom: 22px;
}
.turn-sub { color: var(--ink-2); max-width: 52ch; font-size: clamp(16px, 2vw, 18.5px); }

/* studio-in-numbers strip — counts up on scroll (numbers are real in HTML;
   JS only animates 0 → n once armed, so content is visible by default) */
.stat-strip {
  display: flex; gap: clamp(30px, 7vw, 84px); justify-content: center;
  flex-wrap: wrap; margin-top: clamp(34px, 6vh, 56px);
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display); font-weight: 560;
  font-size: clamp(2.5rem, 6.5vw, 4.4rem); line-height: 1; letter-spacing: -0.02em;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  display: block; margin-top: 9px;
  font-size: 12px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink-3);
}

/* 19 Jul — kill the word-document look: THE TURN goes two-column on
   desktop (stat column LEFT · copy RIGHT), alternating against the
   hero's text-left/card-right. Mobile keeps the centered stack. */
@media (min-width: 881px) {
  .turn {
    display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    grid-auto-rows: min-content; align-content: center; align-items: center;
    justify-items: start; column-gap: clamp(36px, 6vw, 90px);
    text-align: left;
  }
  .turn .eyebrow, .turn .turn-line, .turn .turn-sub { grid-column: 2; }
  .turn .stat-strip {
    grid-column: 1; grid-row: 1 / span 3; justify-self: end;
    flex-direction: column; gap: clamp(22px, 4vh, 44px);
    margin-top: 0; align-items: flex-end;
  }
  .turn .stat { text-align: right; }
}

/* ---------- 4 · showcase spotlights ---------- */
.showcase-intro {
  padding: clamp(60px, 12vh, 130px) clamp(18px, 4vw, 48px);
  text-align: center;
}
.showcase-intro h2 { font-size: clamp(2rem, 5.4vw, 3.6rem); }
.showcase-intro p:not(.eyebrow) { color: var(--ink-2); max-width: 56ch; margin: 0 auto; font-size: 17px; }

.spotlight {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  scroll-snap-align: start;
  padding: clamp(40px, 6vh, 70px) 0;
}
.spotlight:nth-child(even) { background: var(--paper-2); transition: background-color .45s ease; }
.spot-inner {
  display: grid; grid-template-columns: minmax(280px, 5fr) 7fr;
  gap: clamp(28px, 5vw, 72px); align-items: center; width: 100%;
}
.spot-copy h3 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-bottom: 8px; }
.spot-count {
  font-family: var(--font-display); font-style: italic;
  color: var(--ink-3); font-size: 15px; margin-bottom: 14px; min-height: 1em;
}
.spot-kind {
  font-size: 12.5px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.spot-line { color: var(--ink-2); font-size: 16.5px; max-width: 40ch; margin-bottom: 26px; }

/* the browser-window frame */
.browser {
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-lift);
  transform: perspective(1600px) rotateY(0.001deg);
  transition: transform .5s ease, box-shadow .5s ease, background-color .45s ease;
}
.spotlight:hover .browser { transform: translateY(-6px); }
.browser-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line-soft);
  transition: background-color .45s ease;
}
.b-dots { display: flex; gap: 6px; }
.b-dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.b-dots i:nth-child(1) { background: #f26d5f; }
.b-dots i:nth-child(2) { background: #f2bd4e; }
.b-dots i:nth-child(3) { background: #57c15e; }
.b-url {
  flex: 1; max-width: 340px; margin: 0 auto;
  background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: 999px; padding: 4px 16px;
  font-size: 12px; color: var(--ink-3); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background-color .45s ease;
}
.browser-view { aspect-ratio: 16 / 10.4; overflow: hidden; background: var(--paper-3); }
.browser-view img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  transition: object-position 5s ease;
}
.spotlight:hover .browser-view img { object-position: bottom; }

/* 19 Jul — alternate the showcase: even spotlights flip to
   browser LEFT / copy RIGHT so the scroll never reads one-sided.
   (JS shuffles + trims the spotlights BEFORE first paint, so
   nth-child stays stable per load.) */
@media (min-width: 881px) {
  .spotlight:nth-child(even) .spot-inner { grid-template-columns: 7fr minmax(280px, 5fr); }
  .spotlight:nth-child(even) .spot-copy { order: 2; }
}

.showcase-outro {
  text-align: center; font-size: 15px; color: var(--ink-2);
  padding: clamp(48px, 9vh, 100px) clamp(18px, 4vw, 48px);
}
.showcase-outro a { color: var(--accent); font-weight: 600; text-decoration: none; }
.showcase-outro a:hover { text-decoration: underline; }

@media (max-width: 880px) {
  .spotlight { min-height: 0; padding: clamp(48px, 8vh, 80px) 0; scroll-snap-align: none; }
  .spot-inner { grid-template-columns: 1fr; gap: 26px; }
  .spot-copy { order: 2; text-align: center; }
  .spot-line { margin-left: auto; margin-right: auto; }
  .browser { order: 1; }
  .browser-view { aspect-ratio: 15 / 13; }
}

.shelf-hint { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 26px; }

/* ---------- 5 · how — three steps, zero jargon ---------- */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.5vw, 28px); }
@media (max-width: 880px) { .how-grid { grid-template-columns: 1fr; } }
.how-step {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: 16px; padding: clamp(26px, 3vw, 38px);
  box-shadow: var(--shadow); text-align: center;
  transition: transform .3s ease, box-shadow .3s ease, background-color .45s ease;
}
.how-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.how-num {
  font-family: var(--font-display); font-style: italic;
  color: var(--accent); font-size: 1.5rem; display: block; margin-bottom: 14px;
}
.how-step h3 { font-size: 1.7rem; margin-bottom: 10px; }
.how-step p { color: var(--ink-2); font-size: 15.5px; margin: 0; }

/* ---------- 6 · the premium line (AI assistant card) ---------- */
.ai-card {
  margin-top: clamp(22px, 3vh, 34px);
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(20px, 4vw, 48px); flex-wrap: wrap;
  /* LIGHT: deep BLUE premium panel — matches the blue action accent
     (green killed 18 Jul; dark keeps its own paper panel below) */
  background: linear-gradient(130deg, #0b2a63 0%, #1e5fe0 82%, #2f6bff 100%);
  color: #f3f6ff;
  border-radius: 18px; padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-lift);
  transition: background-color .45s ease, color .45s ease;
}
html[data-theme="dark"] .ai-card { background: var(--paper-3); color: var(--ink); border: 1px solid var(--line); }
.ai-card .eyebrow { color: #aac6ff; margin-bottom: 10px; }
html[data-theme="dark"] .ai-card .eyebrow { color: #ffb877; }
.ai-card h3 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 10px; }
.ai-card-copy { flex: 1 1 420px; }
.ai-card-copy p:last-child { margin: 0; opacity: .85; font-size: 16px; max-width: 62ch; }

.cta-alt { font-size: 14px; color: var(--ink-3); margin-top: 22px; }
.cta-alt a { color: var(--ink-2); }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 10vh, 120px) 0; }
.section.tinted { background: var(--paper-2); transition: background-color .45s ease; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vh, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: .17em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: var(--grad); flex: none;
}
.section-head.center .eyebrow, .turn .eyebrow, .showcase-intro .eyebrow {
  justify-content: center;
}
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
.section-head p { color: var(--ink-2); font-size: 17.5px; max-width: 58ch; }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ---------- cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.5vw, 28px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.5vw, 28px); }
@media (max-width: 920px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.svc-card {
  display: block; text-decoration: none;
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: 16px; padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease, background-color .45s ease;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.svc-card h3 { font-size: 1.55rem; margin-bottom: 10px; }
.svc-card p { color: var(--ink-2); font-size: 15.5px; margin-bottom: 18px; }
.svc-card .go { font-size: 14px; font-weight: 600; color: var(--accent); }
.svc-num {
  font-family: var(--font-display); font-style: italic;
  color: var(--ink-3); font-size: 15px; display: block; margin-bottom: 16px;
}

/* work / template cards */
.work-card {
  display: block; text-decoration: none; position: relative;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform .35s ease, box-shadow .35s ease;
}
.work-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.work-card .cover {
  aspect-ratio: 11 / 11.5; overflow: hidden; background: var(--paper-3);
}
.work-card .cover img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  transition: transform 6s ease;
}
.work-card:hover .cover img { transform: translateY(-4%) scale(1.02); }
.work-meta { padding: 18px 22px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.work-meta h3 { font-size: 1.3rem; margin: 0; }
.work-meta .kind { font-size: 12.5px; color: var(--ink-3); display: block; margin-top: 3px; font-family: var(--font-body); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.work-meta .open {
  font-size: 13px; font-weight: 600; color: var(--accent);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
  white-space: nowrap; transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.work-card:hover .open { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
/* glow hover — blue bloom in light, ember in dark (JS adds the 3D tilt on fine pointers) */
.work-card:hover {
  box-shadow: var(--shadow-lift), 0 0 44px -6px rgba(37, 99, 235, 0.30);
  border-color: rgba(37, 99, 235, 0.32);
}
html[data-theme="dark"] .work-card:hover {
  box-shadow: var(--shadow-lift), 0 0 44px -6px rgba(255, 125, 156, 0.30);
  border-color: rgba(255, 125, 156, 0.30);
}

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.5vw, 28px); align-items: stretch; }
@media (max-width: 920px) { .price-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: 16px; padding: clamp(26px, 3vw, 38px);
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: background-color .45s ease;
}
.price-card.featured { border-color: var(--rose); border-width: 1.5px; position: relative; box-shadow: var(--glow), var(--shadow); }
.price-card .tier-tag {
  position: absolute; top: -12px; left: 28px;
  background: var(--grad); color: var(--grad-ink);
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
}
.price-card h3 { font-size: 1.4rem; margin-bottom: 4px; }
.price-card .amount { font-family: var(--font-display); font-size: 2.9rem; font-weight: 560; letter-spacing: -0.02em; margin: 10px 0 2px; }
.price-card .amount small { font-size: 1rem; color: var(--ink-3); font-family: var(--font-body); font-weight: 500; letter-spacing: 0; }
.price-card .amount-per { font-size: 1rem; color: var(--ink-3); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.price-card .for-who { color: var(--ink-3); font-size: 14px; margin-bottom: 18px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 26px; }
.price-card li { padding: 8px 0 8px 26px; font-size: 15px; color: var(--ink-2); border-bottom: 1px solid var(--line-soft); position: relative; }
.price-card li::before { content: "—"; position: absolute; left: 0; color: var(--accent); font-weight: 600; }
.price-card .btn-pill, .price-card .btn-ghost { margin-top: auto; text-align: center; }

/* ---------- AI assistant scene (dark full-bleed, both themes) ---------- */
.ai-scene {
  position: relative; overflow: hidden;
  background: var(--ai-bg, #e9f6f0); color: var(--ai-fg, #12211c);
  padding: clamp(80px, 14vh, 150px) 0;
}
.ai-scene::before, .ai-scene::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.ai-scene::before {
  width: 46vw; height: 46vw; min-width: 380px; min-height: 380px;
  top: -18%; right: -10%;
  background: radial-gradient(circle, rgba(255,125,156,.16) 0%, rgba(201,139,255,.08) 45%, transparent 70%);
}
.ai-scene::after {
  width: 38vw; height: 38vw; min-width: 320px; min-height: 320px;
  bottom: -22%; left: -8%;
  background: radial-gradient(circle, rgba(47,107,255,.09) 0%, transparent 65%);
}
.ai-scene-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(300px, 6fr) 5fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.ai-scene .eyebrow { color: var(--amber); }
.ai-scene h2 {
  font-size: clamp(1.9rem, 5.2vw, 3.8rem);
  letter-spacing: -0.02em; max-width: 17ch; margin-bottom: 24px;
}
.ai-benefits { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.ai-benefits li {
  position: relative; padding-left: 26px;
  color: var(--ai-muted); font-size: 16px; max-width: 46ch;
}
.ai-benefits li::before { content: "→"; position: absolute; left: 0; color: var(--ai-arrow); }
.ai-benefits li strong { color: var(--ai-strong); font-weight: 600; }
.ai-chat {
  background: var(--bubble-bg, #ffffff);
  border: 1px solid var(--ai-chat-border);
  border-radius: 18px;
  padding: clamp(20px, 2.6vw, 30px);
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--ai-chat-shadow);
}
.ai-chat-tag {
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ai-tag); text-align: center; margin-bottom: 4px;
}
.ai-bubble {
  margin: 0; padding: 12px 18px; border-radius: 16px;
  font-size: 14.5px; line-height: 1.5; max-width: 88%;
}
.ai-bubble.them {
  background: var(--ai-them-bg); border: 1px solid var(--ai-them-border);
  border-bottom-left-radius: 4px; align-self: flex-start; color: var(--ai-them-fg);
}
.ai-bubble.bot {
  background: var(--grad); color: #161008;
  border-bottom-right-radius: 4px; align-self: flex-end; font-weight: 500;
}
@media (max-width: 880px) {
  .ai-scene-inner { grid-template-columns: 1fr; }
}

/* ---------- proof strip ---------- */
.proof-note {
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 22px; max-width: 62ch;
  color: var(--ink-2); font-size: 16.5px;
}
.proof-note strong { color: var(--ink); }

/* ---------- scenario blocks (AI assistant) ---------- */
.scenario {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: 16px; padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow); transition: background-color .45s ease;
}
.scenario h3 { font-size: 1.5rem; }
.scenario .role { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.chat-line {
  background: var(--accent-soft);
  border: 1px solid var(--line-soft);
  border-radius: 12px; padding: 14px 18px; margin: 18px 0 6px;
  font-size: 15px; line-height: 1.55;
}
.chat-line .who { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); display: block; margin-bottom: 5px; }

/* steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 0; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 64px 1fr; gap: 20px;
  padding: 26px 0; border-bottom: 1px solid var(--line-soft); align-items: start;
}
.steps li::before {
  content: "0" counter(step);
  font-family: var(--font-display); font-style: italic;
  font-size: 1.7rem; color: var(--ink-3); line-height: 1.1;
}
.steps h3 { font-size: 1.35rem; margin-bottom: 6px; }
.steps p { color: var(--ink-2); margin: 0; font-size: 15.5px; max-width: 62ch; }

/* ---------- big CTA band ---------- */
.cta-band { text-align: center; padding: clamp(70px, 11vh, 130px) 0; }
.cta-band h2 { font-size: clamp(2rem, 6vw, 4.4rem); margin-bottom: 18px; }
.cta-band p { color: var(--ink-2); max-width: 52ch; margin: 0 auto 30px; font-size: 17.5px; }

/* ---------- contact ---------- */
.contact-panel {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: 18px; box-shadow: var(--shadow);
  padding: clamp(28px, 4vw, 48px);
  transition: background-color .45s ease;
}
.contact-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 24px 0 8px; }
.contact-detail { font-size: 15px; color: var(--ink-2); }
.contact-detail strong { color: var(--ink); }

.contact-form { display: grid; gap: 18px; margin-top: 26px; }
.contact-form label {
  display: grid; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  letter-spacing: .02em;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  font: inherit; color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px; width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .45s ease;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.contact-form button { border: 0; cursor: pointer; font-family: var(--font-body); justify-self: start; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: 44px 0 54px; overflow: hidden; }
/* giant editorial wordmark — motionsites footer treatment */
.footer-giant {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.4rem, 11.5vw, 10rem);
  line-height: .95; letter-spacing: -0.03em;
  margin: 0 0 clamp(22px, 4vh, 44px);
  color: var(--ink);
  white-space: nowrap;
}
.footer-giant .dot { color: var(--accent); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: baseline; }
.footer-brand { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.footer-brand .dot { color: var(--accent); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-note { font-size: 13px; color: var(--ink-3); margin-top: 18px; }

/* ---------- reveal (only when JS is armed) ---------- */
html.js-armed .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
html.js-armed .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .bg-drift::before, .bg-drift::after { animation: none; }
  .scroll-cue span { animation: none; }
  html.js-armed .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; scroll-snap-type: none; }
  .spotlight:hover .browser { transform: none; }
  .spotlight:hover .browser-view img { object-position: top; }
}

/* page hero (inner pages) */
.page-hero { padding: clamp(56px, 9vh, 100px) 0 clamp(28px, 4vh, 46px); }
.page-hero h1 { font-size: clamp(2rem, 7vw, 5.6rem); letter-spacing: -0.025em; }
.page-hero .lede { color: var(--ink-2); font-size: clamp(17px, 2vw, 19.5px); max-width: 60ch; }

/* ============================================================
   MOTION LAYER — additive only. Everything below is gated by
   html.js-armed (JS confirmed + not reduced-motion) and uses
   transform/opacity/clip-path only. Content stays fully visible
   with JS off. All of it is disabled under prefers-reduced-motion.
   ============================================================ */

/* ---------- 1 · hero headline: word rise-in (split by JS) ---------- */
html.js-armed .hook-line .word {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding: 0 0.04em; margin: 0 -0.04em;   /* room so descenders/italics aren't clipped */
}
html.js-armed .hook-line .word-i {
  display: inline-block;
  transform: translateY(112%) rotate(6deg);
  opacity: 0;
  transition: transform .95s cubic-bezier(.19,1,.22,1), opacity .8s ease;
  will-change: transform;
}
html.js-armed .hook-line.words-in .word-i { transform: none; opacity: 1; }

/* ---------- 2 · button sheen sweep (magnetic handled in JS) ---------- */
.btn-pill { position: relative; overflow: hidden; isolation: isolate; }
.btn-pill::after {
  content: ""; position: absolute; top: 0; left: -130%;
  width: 65%; height: 100%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.55) 50%, transparent 100%);
  transform: skewX(-18deg);
  transition: left .65s cubic-bezier(.4,0,.2,1);
}
.btn-pill:hover::after { left: 145%; }
html[data-theme="dark"] .btn-pill::after {
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.42) 50%, transparent 100%);
}

/* ---------- 3 · spotlight browser: clip-path wipe + tilt + ken-burns ---------- */
.browser { --tiltx: 0deg; --lift: 0px; }
html.js-armed .browser {
  transform: perspective(1600px) rotateX(var(--tiltx)) translateY(var(--lift));
  clip-path: inset(0 0 100% 0 round 12px);
  transition: clip-path 1.05s cubic-bezier(.19,1,.22,1),
              transform .5s ease, box-shadow .5s ease, background-color .45s ease;
}
html.js-armed .browser.frame-in { clip-path: inset(0 0 0 0 round 12px); }
html.js-armed .spotlight:hover .browser { --lift: -6px; }
@media (prefers-reduced-motion: no-preference) {
  html.js-armed .browser-view img { animation: kenburns 20s ease-in-out infinite alternate; }
}
@keyframes kenburns {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.045) translateY(-1.5%); }
}

/* ---------- 4 · (removed) marquee ticker — Lucas cut it, 18 Jul ---------- */

/* ---------- 5 · ai-scene scrub wash (injected by JS) ---------- */
.ai-wash {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity .1s linear;
  background: radial-gradient(120% 90% at 50% 0%, rgba(47,107,255,.13) 0%, transparent 60%);
}
html[data-theme="dark"] .ai-wash {
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 45%, transparent 100%);
}

/* ---------- 6 · desktop cursor follower (injected by JS) ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 2147483001;
  pointer-events: none; border-radius: 50%;
  transform: translate(-50%, -50%); will-change: transform;
}
.cursor-dot { width: 6px; height: 6px; background: var(--accent); }
.cursor-ring {
  width: 34px; height: 34px; border: 1.5px solid var(--accent);
  opacity: .55;
  transition: width .22s ease, height .22s ease, opacity .22s ease, background-color .22s ease;
}
.cursor-ring.is-hot { width: 54px; height: 54px; opacity: .9; background: var(--accent-soft); }

/* ---------- 7 · branded intro preloader (JS-injected — a no-JS visit
   never sees it, so content can never be blocked by it) ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 2147483002;
  background: var(--paper);
  display: flex; flex-direction: column; gap: 20px;
  align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .5s cubic-bezier(.76, 0, .24, 1);
}
.preloader.pre-done { transform: translateY(-101%); }
.pre-brand {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 3.2rem); font-weight: 560; letter-spacing: -0.02em;
  color: var(--ink);
  animation: pre-rise .55s cubic-bezier(.19,1,.22,1) both;
}
.pre-brand .dot { color: var(--accent); }
.pre-bar {
  width: clamp(120px, 18vw, 220px); height: 2px; border-radius: 2px;
  background: var(--line-soft); position: relative; overflow: hidden;
}
.pre-bar::after {
  content: ""; position: absolute; inset: 0;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  animation: pre-fill .55s ease-out .05s forwards;
}
@keyframes pre-rise { from { transform: translateY(26px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pre-fill { to { transform: scaleX(1); } }

/* ---------- 8 · GSAP scroll choreography (html.gsap-on set only after
   the library is confirmed loaded + motion allowed) ---------- */
html.gsap-on { scroll-snap-type: none; }          /* pinned scenes fight scroll-snap */
html.gsap-on .browser-view img { animation: none; } /* GSAP owns the inner image scale */
/* color-zone shifts as you scroll — theme vars only, never hardcoded colors */
html.fl-zone-2 body { background-color: var(--paper-2); }
/* keyword glow needs the split-word wrapper unclipped once the rise finishes */
html.js-armed .hook-line.words-done .word { overflow: visible; }

/* ---------- reduced-motion: hard-off for everything above ---------- */
@media (prefers-reduced-motion: reduce) {
  html.js-armed .hook-line .word { overflow: visible; }
  html.js-armed .hook-line .word-i { transform: none; opacity: 1; transition: none; }
  html.js-armed .browser { clip-path: none; transform: perspective(1600px) rotateY(0.001deg); transition: background-color .45s ease; }
  .btn-pill::after { display: none; }
  .browser-view img { animation: none !important; }
  .grad-text { animation: none; }
  .hero-badge::before { animation: none; }
  .preloader { display: none; }
}

/* ── Burger + full-screen studio menu — MOBILE ONLY (graft nav fix) ──
   styles.css shipped the overlay at ALL widths, which made the desktop
   inline links dead and funnelled everything through the burger.
   Gate: ≤880px = burger + fullscreen overlay · >880px = the original
   inline nav (.nav-links rules near the top of this file). */
@media (min-width: 881px) {
  .burger { display: none; }
  .nav-links .lang-toggle { display: none; } /* overlay-only copy of the globe */
}
@media (max-width: 880px) {
  .nav-links.nav-links { display: flex; } /* out-beat any earlier display rules */
  .burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 11px;
    border: 1px solid var(--line); border-radius: 999px;
    background: transparent; cursor: pointer; flex: none;
    transition: border-color .25s ease, transform .25s ease;
  }
  .burger:hover { border-color: var(--ink-3); }
  .burger span {
    display: block; height: 1.6px; width: 100%; border-radius: 2px;
    background: var(--ink); transform-origin: center;
    transition: transform .32s cubic-bezier(.2,.7,.2,1), opacity .22s ease;
  }
  body.menu-open .burger span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
  body.menu-open .burger span:nth-child(2) { opacity: 0; transform: scaleX(.4); }
  body.menu-open .burger span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

  /* the inline links become a full-screen overlay */
  .nav-links {
    position: fixed; inset: 0; z-index: 55;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    gap: clamp(6px, 2vh, 16px);
    padding: clamp(80px, 12vh, 110px) clamp(26px, 10vw, 140px) 50px;
    background: var(--paper);
    opacity: 0; visibility: hidden; pointer-events: none;
    overflow-y: auto; overflow-x: hidden; width: auto; order: 0;
    transition: opacity .35s ease, visibility 0s linear .35s;
    counter-reset: navi;
  }
  body.menu-open .nav-links {
    opacity: 1; visibility: visible; pointer-events: auto;
    transition: opacity .35s ease, visibility 0s;
  }
  body.menu-open { overflow: hidden; }
  .nav-links a {
    font-family: var(--font-display); font-weight: 600;
    font-size: clamp(24px, min(5vw, 6.5vh), 52px); line-height: 1.12; letter-spacing: -.02em;
    color: var(--ink-2); border-bottom: none; white-space: normal; padding: 0;
    transform: translateY(22px); opacity: 0;
    transition: transform .55s cubic-bezier(.2,.7,.2,1) var(--d, 0s),
                opacity .4s ease var(--d, 0s), color .25s ease 0s;
  }
  .nav-links a::before {
    counter-increment: navi; content: "0" counter(navi);
    font-family: var(--font-body); font-size: 12px; font-weight: 600;
    letter-spacing: .2em; color: var(--accent-deep);
    margin-right: 20px; vertical-align: 20px;
  }
  .nav-links a:hover { color: var(--ink); }
  .nav-links a[aria-current="page"] { color: var(--ink); }
  .nav-links a[aria-current="page"]::after { content: "."; color: var(--accent-deep); }
  body.menu-open .nav-links a { transform: none; opacity: 1; }
  body.menu-open .nav-links a:nth-child(1) { --d: .06s; }
  body.menu-open .nav-links a:nth-child(2) { --d: .12s; }
  body.menu-open .nav-links a:nth-child(3) { --d: .18s; }
  body.menu-open .nav-links a:nth-child(4) { --d: .24s; }
  body.menu-open .nav-links a:nth-child(5) { --d: .30s; }
  /* the globe toggle inside the overlay */
  .nav-links .lang-toggle {
    height: 46px; padding: 0 20px; margin-top: 14px; gap: 8px;
    align-self: flex-start;
  }
  .nav-links .lang-toggle svg { width: 18px; height: 18px; }
  .nav-links .lang-toggle .lang-code { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .burger span, .nav-links, .nav-links a { transition: none; }
  body.menu-open .nav-links a { transform: none; }
}

/* ============================================================
   GRAFT LAYER — clarity + trend-surprise grafted into the original.
   Everything below is ADDITIVE: no rule above this line was changed
   except the nav gate. Sources: preview.html (clarifier, chat, ladder,
   loops, zh type, one-green tokens) + the kinetic-type upgrade.
   ============================================================ */

/* ---- ACCENT LAW — theme-aware ACTION accent (client call, 19 Jul:
   light mode = GREEN + BLUE, green-led) ----
   DARK: warm amber→hot-pink CTA (flame softened toward pink, 19 Jul),
         pink chips, gold money-words.
   LIGHT: GREEN primary CTA + green chips, BLUE support accents
          (money-words #1 / 24/7, links, decorative italics) on ivory.
          The "Found…" headline speaks a green→blue gradient. */
:root {
  /* light: green-led action, blue support */
  --accent: #2563eb;
  --accent-soft: rgba(16, 185, 129, .13);
  --accent-deep: #1d4ed8;
  --accent-strong: #059669;          /* chip / badge / vignette fill — GREEN */
  --accent-grad: linear-gradient(120deg, #34d399 0%, #059669 55%, #047857 100%);
  --accent-glow: rgba(5, 150, 105, .32);
  --accent-text: #1d4ed8;            /* accent as TEXT (money-words, links) — BLUE */
  /* light decorative world: green→blue on ivory */
  --grad: linear-gradient(105deg, #baf3e2 0%, #6fe3d2 34%, #2fc9a5 68%, #0d8b78 100%);
  --grad-text: linear-gradient(105deg, #047857 0%, #059669 34%, #0d9488 62%, #2563eb 100%);
  --grad-ink: #052720;
  --kw-glow: rgba(13, 148, 136, .28);
  --drift-b: rgba(47, 107, 255, .10);
  /* ai-scene (light): warm paper + blue accents — the green panel is gone */
  --ai-bg: #f3ede2;
  --ai-fg: #241d18;
  --ai-strong: #1d4ed8;
  --ai-muted: #57504a;
  --ai-arrow: #2563eb;
  --ai-tag: #6e675e;
  --ai-them-bg: rgba(36, 29, 24, 0.05);
  --ai-them-fg: #241d18;
  --ai-them-border: rgba(36, 29, 24, 0.10);
  --ai-chat-border: rgba(36, 29, 24, 0.12);
  --ai-chat-shadow: 0 1px 2px rgba(36,29,24,.05), 0 24px 48px -16px rgba(36,29,24,.18);
  /* the fl3d particle field reads these in light mode — blue, never green */
  --go-text: #1d4ed8;
  --go: #2563eb;
}
html[data-theme="dark"] {
  --accent-strong: #ff5fa2;          /* hot-pink chip (was gold — 19 Jul) */
  --accent-grad: linear-gradient(120deg, #ffc36b 0%, #ff8f80 40%, #ff5fa2 74%, #ff3d8f 100%);
  --accent-glow: rgba(255, 95, 162, .38);
  --accent-text: #ffc24d;            /* warm gold money-words */
}

/* on the light BLUE ai-card panel a blue pill would sink — go ivory there
   (dark ai-card is a paper panel, its fire pill already pops) */
html:not([data-theme="dark"]) .ai-card .btn-pill {
  background: #fffdf8; color: #1e5fe0;
  box-shadow: 0 8px 24px rgba(8, 24, 64, .35);
}

/* primary CTA pills — fire in dark, blue in light (ink/white text via --accent-ink) */
.btn-pill {
  background: var(--accent-grad);
  color: var(--accent-ink);
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-pill:hover { box-shadow: 0 10px 36px var(--accent-glow); }
html[data-theme="dark"] .btn-pill { box-shadow: 0 0 26px var(--accent-glow); }
/* "Most chosen" chip on the featured price card */
.price-card .tier-tag { background: var(--accent-strong); color: var(--accent-ink); }

/* ---- dark decorative accent = EMBER, never green (one-green law) ----
   styles.css kept the teal --accent in dark; every decorative accent
   (nav dot, cursor, scene italics, spot-kinds, how-nums…) now speaks
   the ember palette in dark. Light keeps the original green world. */
html[data-theme="dark"] {
  --accent: #ffb877;
  --accent-ink: #2d0a1c;             /* deep plum — reads on pink AND amber */
  --accent-soft: rgba(255, 184, 119, 0.12);
  --accent-deep: #ffb877;
  --ai-arrow: #ffb877;
  --drift-b: rgba(255, 184, 119, 0.07);
}
html[data-theme="dark"] .ai-scene::after {
  background: radial-gradient(circle, rgba(255, 184, 119, .07) 0%, transparent 65%);
}

/* ---- hero clarifier — the bold "what we actually do" line ---- */
.hero-clarifier {
  font-family: var(--font-display); font-weight: 650;
  font-size: clamp(1.2rem, 2.1vw, 1.8rem);
  line-height: 1.32; letter-spacing: -0.012em;
  color: var(--ink); max-width: 30ch;
  margin: clamp(18px, 3vh, 30px) auto 0;
  text-align: center; text-wrap: balance;
}
.hero-clarifier .win { color: var(--accent-text); }
/* entrance: rides in right after the word-rise settles (sibling of the h1 —
   the splitter's children are never touched). CSS entrance only when GSAP
   is NOT driving (gsap-on hands both entrance + pinned exit to GSAP, so
   the scrub never fights a CSS transition). */
html.js-armed:not(.gsap-on) .rise-head .hero-clarifier {
  opacity: 0; transform: translateY(16px);
  transition: opacity .8s ease .85s, transform .9s cubic-bezier(.19,1,.22,1) .85s;
}
html.js-armed:not(.gsap-on) .hook-line.words-in + .hero-clarifier { opacity: 1; transform: none; }

/* ---- language pill — globe icon + tiny code ---- */
.lang-toggle {
  appearance: none; cursor: pointer; flex: none;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
  height: 38px; padding: 0 13px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: border-color .2s ease;
}
.lang-toggle:hover { border-color: var(--ink); }
.lang-toggle svg { width: 15px; height: 15px; flex: none; }
.lang-toggle .lang-code { font: 700 11px/1 var(--font-body); letter-spacing: .06em; }

/* ---- EN ⇄ 中文 crossfade (19 Jul) — the swap was a hard cut. Now the
   translated text dips out (opacity + 6px), content swaps, and it
   settles back in; hero lines get a whisper of stagger. JS drives the
   classes and skips them entirely under prefers-reduced-motion. ---- */
html.lang-fading [data-i18n] {
  opacity: 0; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
}
html.lang-fading .hero-clarifier[data-i18n] { transition-delay: .045s; }
html.lang-fading .rise-ctas [data-i18n] { transition-delay: .08s; }
html.lang-settling [data-i18n] { transition: opacity .26s ease, transform .26s ease; }
@media (prefers-reduced-motion: reduce) {
  html.lang-fading [data-i18n], html.lang-settling [data-i18n] {
    opacity: 1; transform: none; transition: none;
  }
}

/* ---- ai-chat upgrade: booking sequence (typing dots + timed reply) ----
   .js-armed pattern only — content fully visible without JS. */
.hero-chat-cap {
  margin: 8px 0 0; text-align: center;
  font-family: var(--font-display); font-style: italic;
  font-size: 14px; color: var(--ai-tag);
}
.typing-bubble { display: none; align-items: center; gap: 5px; min-height: 20px; }
.typing-bubble i {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; opacity: .45;
  animation: tdot 1s ease-in-out infinite;
}
.typing-bubble i:nth-child(2) { animation-delay: .16s; }
.typing-bubble i:nth-child(3) { animation-delay: .32s; }
@keyframes tdot { 0%, 100% { transform: translateY(0); opacity: .35; } 50% { transform: translateY(-4px); opacity: .85; } }
/* 19 Jul — the chat card now LOOPS a full booking scene while on
   screen (message → typing dots → reply → caption → hold → replay),
   stepped by data-step from JS. js-armed + motion-ok only; the
   resting markup stays a complete, readable card. */
html.js-armed .chat-live.will-anim .ai-bubble.them,
html.js-armed .chat-live.will-anim .chat-final {
  opacity: 0; transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
}
html.js-armed .chat-live[data-step="1"] .ai-bubble.them,
html.js-armed .chat-live[data-step="2"] .ai-bubble.them,
html.js-armed .chat-live[data-step="3"] .ai-bubble.them,
html.js-armed .chat-live[data-step="4"] .ai-bubble.them { opacity: 1; transform: none; }
html.js-armed .chat-live[data-step="2"] .typing-bubble { display: flex; }
html.js-armed .chat-live[data-step="3"] .ai-bubble.bot.chat-final,
html.js-armed .chat-live[data-step="4"] .ai-bubble.bot.chat-final { opacity: 1; transform: none; }
html.js-armed .chat-live[data-step="4"] .hero-chat-cap.chat-final { opacity: 1; transform: none; }

/* ---- the ladder — start with a site, add the assistant, grow ----
   19 Jul: was 3 cards in a row (centered word-file energy). Now three
   FULL-WIDTH rows, graphic vs text, alternating sides on desktop. */
.steps-sec .section-head h2 { font-weight: 680; }
.ladder-grid {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(20px, 3vh, 32px);
  max-width: 980px; margin: 0 auto;
}
.ladder-step {
  position: relative;
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: 18px; padding: clamp(22px, 2.4vw, 32px);
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease, background-color .45s ease;
}
.ladder-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.ladder-step:not(:last-child)::after {
  content: "↓"; position: absolute; left: 50%; bottom: -8px;
  transform: translate(-50%, 50%);
  font-size: 22px; color: var(--ink-3); z-index: 1;
}
@media (min-width: 921px) {
  .ladder-step {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: clamp(26px, 3.5vw, 52px); align-items: center;
  }
  .ladder-step .loop-stage { margin: 0; }
  .ladder-step:nth-child(even) .loop-stage { order: 2; }
}
.ladder-kicker {
  display: block; font-size: 11.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 10px;
}
.ladder-step h3 { font-weight: 660; font-size: clamp(1.3rem, 1.8vw, 1.62rem); margin: 0 0 8px; }
.ladder-step .exp { color: var(--ink-2); font-size: 15px; margin: 0 0 16px; }
.ladder-prices {
  font-size: 14px; color: var(--ink-2); line-height: 2;
  border-top: 1px dashed var(--line); padding-top: 14px; margin: 0;
}
.ladder-prices strong { color: var(--ink); font-weight: 700; }
.ladder-prices em { font-style: italic; color: var(--ink-2); }
.ladder-per {
  display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3); margin-top: 4px;
}
.chip-green {
  display: inline-block; background: var(--accent-strong); color: var(--accent-ink);
  font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 2.5px 9px; border-radius: 999px; vertical-align: 2px;
}
.ladder-more { text-align: center; margin: 30px 0 0; }
.ladder-more a { color: var(--accent-text); font-weight: 700; text-decoration: none; font-size: 16px; }
.ladder-more a:hover { text-decoration: underline; }

/* ---- step loops — small inline SVG scenes, theme-aware, 6s loop ----
   Resting (non-animated) state = the fully assembled frame, so
   prefers-reduced-motion and no-JS both show a complete static scene. */
.loop-stage {
  background: var(--paper-2); border: 1px solid var(--line-soft);
  border-radius: 14px; margin: 0 0 18px; overflow: hidden;
  transition: background-color .45s ease;
}
.loop-svg { display: block; width: 100%; height: auto; }
.lp-frame { fill: var(--card); stroke: var(--line); }
.lp-dot { fill: var(--ink-3); opacity: .7; }
.lp-sep { stroke: var(--line-soft); }

/* step 1 — site assembles, lands top of search, pin pops */
.s1-b rect { fill: var(--paper-3); }
.s1-b2 rect, .s1-b3 rect { fill: var(--line); }
.s1-btn { fill: var(--accent-strong) !important; }
.s1-pill { fill: var(--card); stroke: var(--line-soft); }
.s1-pill.dim { opacity: .5; }
.s1-top { fill: none; stroke: var(--accent-strong); stroke-width: 1.6; }
.s1-pin path { fill: var(--accent-strong); }
.s1-pin-hole { fill: var(--card); }
.loop-s1 .s1-b1 { animation: lp-fade1 6s ease-in-out infinite; }
.loop-s1 .s1-b2 { animation: lp-fade2 6s ease-in-out infinite; }
.loop-s1 .s1-b3 { animation: lp-fade3 6s ease-in-out infinite; }
.loop-s1 .s1-b4 { animation: lp-fade3 6s ease-in-out infinite; }
.loop-s1 .s1-top { animation: s1-top 6s ease-in-out infinite; }
.loop-s1 .s1-pin { transform-box: fill-box; transform-origin: 50% 100%; animation: s1-pin 6s cubic-bezier(.34,1.56,.64,1) infinite; }
@keyframes lp-fade1 { 0%,3% { opacity:0; transform:translateY(5px);} 9%,92% { opacity:1; transform:none;} 98%,100% { opacity:0;} }
@keyframes lp-fade2 { 0%,8% { opacity:0; transform:translateY(5px);} 15%,92% { opacity:1; transform:none;} 98%,100% { opacity:0;} }
@keyframes lp-fade3 { 0%,13% { opacity:0; transform:translateY(5px);} 20%,92% { opacity:1; transform:none;} 98%,100% { opacity:0;} }
@keyframes s1-top { 0%,26% { opacity:0;} 33%,92% { opacity:.95;} 98%,100% { opacity:0;} }
@keyframes s1-pin { 0%,28% { opacity:0; transform:translateY(-9px) scale(.3);} 36% { opacity:1; transform:scale(1.14);} 41%,92% { opacity:1; transform:none;} 98%,100% { opacity:0;} }

/* step 2 — message arrives at night, instant AI reply */
.s2-moon { fill: var(--amber); opacity: .75; }
.s2-star { fill: var(--ink-3); }
.s2-them-bg { fill: var(--paper-3); }
.s2-line { fill: var(--ink-3); opacity: .65; }
.s2-line.dim { opacity: .35; }
.s2-bot-bg { fill: var(--accent-strong); }
.s2-bot-line { fill: var(--accent-ink); opacity: .55; }
.s2-ring { fill: none; stroke: var(--accent-strong); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.loop-s2 .s2-star { animation: s2-star 6s ease-in-out infinite; }
.loop-s2 .s2-star2 { animation: s2-star 6s ease-in-out 1.2s infinite; }
.loop-s2 .s2-them { animation: s2-them 6s ease-in-out infinite; }
.loop-s2 .s2-bot { transform-box: fill-box; transform-origin: 90% 100%; animation: s2-bot 6s cubic-bezier(.34,1.56,.64,1) infinite; }
.loop-s2 .s2-ring { animation: s2-ring 6s ease-out infinite; }
@keyframes s2-star { 0%,100% { opacity:.9;} 50% { opacity:.3;} }
@keyframes s2-them { 0%,5% { opacity:0; transform:translateX(-8px);} 12%,92% { opacity:1; transform:none;} 98%,100% { opacity:0;} }
@keyframes s2-bot { 0%,18% { opacity:0; transform:scale(.75);} 25% { opacity:1; transform:scale(1.05);} 29%,92% { opacity:1; transform:none;} 98%,100% { opacity:0;} }
@keyframes s2-ring { 0%,19% { opacity:0; transform:scale(.9);} 26% { opacity:.75; transform:scale(1);} 46%,100% { opacity:0; transform:scale(1.35);} }

/* step 3 — the brain tile recalls a past client detail */
.s3-brain { fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.s3-ring { fill: none; stroke: var(--accent-strong); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.s3-link { stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 2 5; stroke-linecap: round; }
.s3-tag-bg { fill: var(--card); stroke: var(--accent-strong); stroke-width: 1.4; }
.s3-tag-date { fill: var(--accent-strong); opacity: .85; }
.s3-tag-line, .s3-tag-line2 { fill: var(--ink-3); opacity: .6; }
.loop-s3 .s3-ring { animation: s3-ring 6s ease-out infinite; }
.loop-s3 .s3-link { animation: s3-link 6s ease-in-out infinite; }
.loop-s3 .s3-tag { animation: s3-tag 6s ease-in-out infinite; }
@keyframes s3-ring { 0%,4% { opacity:0; transform:scale(.55);} 12% { opacity:.7; transform:scale(.85);} 32%,100% { opacity:0; transform:scale(1.25);} }
@keyframes s3-link { 0%,10% { opacity:0;} 20%,92% { opacity:1;} 98%,100% { opacity:0;} }
@keyframes s3-tag { 0%,16% { opacity:0; transform:translateX(-7px);} 26%,92% { opacity:1; transform:none;} 98%,100% { opacity:0;} }

/* ---- KINETIC TYPE (the trend surprise) — Fraunces is a variable font:
   words rise in slightly heavy and SETTLE to the light editorial weight,
   staggered with the rise; after settle, hovering a word makes it lean
   in (weight swell) and relax back. Purposeful, subtle, hero-only. ---- */
html.js-armed .hook-line .word-i {
  font-variation-settings: "opsz" 110, "wght" 660;
  transition: transform .95s cubic-bezier(.19,1,.22,1), opacity .8s ease,
              font-variation-settings 1.25s cubic-bezier(.22,1,.36,1);
}
html.js-armed .hook-line.words-in .word-i {
  font-variation-settings: "opsz" 110, "wght" 400;
}
html.js-armed .hook-line.words-done .word:hover .word-i {
  font-variation-settings: "opsz" 110, "wght" 560;
  transition: font-variation-settings .45s cubic-bezier(.22,1,.36,1);
  transition-delay: 0s !important;
}

/* ---- 中文 typography (19 Jul — WenKai killed: read as calligraphy AND
   its handwritten Latin leaked into English brand words).
   New voice: Smiley Sans 得意黑 — blocky, bold, trendy display — for
   headings; Noto Sans SC for body. SCOPING LAW: the Latin faces
   (Fraunces / Inter) sit FIRST in both stacks, so every Latin glyph —
   Kianera wordmark, Presence / Lead Machine / Authority, numbers —
   always renders Fraunces/Inter in BOTH languages; only CJK codepoints
   fall through to the Chinese faces. The Smiley Sans slices ship ZERO
   Latin unicode-ranges (verified), so it physically cannot render
   English even if the stack order ever changes.
   Chinese has no italics: fake-oblique is banned (font-synthesis: none);
   where EN speaks italic, zh speaks weight + the gradient. ---- */
html[lang="zh-Hans"] {
  --font-display: "Fraunces", "DouyinSans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
html[lang="zh-Hans"] * { font-synthesis: none; }
html[lang="zh-Hans"] h1, html[lang="zh-Hans"] h2, html[lang="zh-Hans"] h3 {
  letter-spacing: 0;   /* never negative tracking on CJK */
}
html[lang="zh-Hans"] h1 { font-weight: 900; }
html[lang="zh-Hans"] h2, html[lang="zh-Hans"] h3 { font-weight: 800; }
html[lang="zh-Hans"] em, html[lang="zh-Hans"] i, html[lang="zh-Hans"] .grad-text {
  font-style: normal; font-weight: 900;
}
html[lang="zh-Hans"] .hero-clarifier { font-weight: 700; letter-spacing: 0; }
/* CJK has no variable weight axis here — kinetic settle off in zh */
html[lang="zh-Hans"] .hook-line .word-i { font-variation-settings: normal; }

/* ---- reduced-motion: hard-off for every graft addition ---- */
@media (prefers-reduced-motion: reduce) {
  .loop-svg * { animation: none !important; }
  .typing-bubble i { animation: none; }
  html.js-armed .rise-head .hero-clarifier { opacity: 1; transform: none; transition: none; }
  html.js-armed .hook-line .word-i { font-variation-settings: normal; }
  html.js-armed .chat-live.will-anim .ai-bubble.them,
  html.js-armed .chat-live.will-anim .chat-final { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   RISE HERO — the search-climb explainer (ported from direction B,
   reskinned to the graft accent law). Markup default = state 3
   (found) so JS-off / reduced-motion always shows the assembled
   payoff; JS rewinds to 0 and scroll drives the climb.
   ============================================================ */
.rise.hook {
  display: block; min-height: 0; height: 340vh;
  padding-bottom: 0; text-align: center;
  --row-h: 62px;
}
.rise-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 84px clamp(18px, 4vw, 40px) 30px;
}
/* SPLIT HERO (19 Jul): text block LEFT · climbing SERP card RIGHT on
   desktop; ≤880px stacks (text on top, card below) and re-centers. */
.rise-grid {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(14px, 2.4vh, 26px); align-items: center;
  width: min(1180px, 100%); justify-items: center;
}
.rise-left {
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(12px, 2vh, 22px); min-width: 0;
}
.rise-head { transition: opacity .6s ease, transform .6s ease; max-width: 920px; }
.rise .hook-line {
  font-size: clamp(2.1rem, 4.3vw, 3.6rem);
  max-width: none; margin-bottom: clamp(10px, 1.6vh, 18px);
}
.rise .hero-clarifier { margin: 0 auto; max-width: 34ch; }
.rise .win { color: var(--accent-text); font-style: normal; }
html.js-armed .rise[data-state="1"] .rise-head,
html.js-armed .rise[data-state="2"] .rise-head,
html.js-armed .rise[data-state="3"] .rise-head {
  opacity: .5; transform: none;
}
.rise-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* narration line — one loud point per beat */
.rise-cap { position: relative; min-height: 2.2em; width: min(560px, 92vw); }
.cap {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 620; font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  line-height: 1.25; opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease;
}
.cap-hint { font-family: var(--font-body); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.rise[data-state="0"] .cap-hint { opacity: 1; transform: none; }
.rise[data-state="1"] .cap-1 { opacity: 1; transform: none; }
.rise[data-state="2"] .cap-2 { opacity: 1; transform: none; }
.rise[data-state="3"] .cap-3 { opacity: 1; transform: none; }

/* desktop: the two-column split */
@media (min-width: 881px) {
  .rise.hook { text-align: left; }
  .rise-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    gap: clamp(28px, 4.5vw, 64px); justify-items: stretch;
  }
  .rise-left { align-items: flex-start; }
  .rise .hero-clarifier { margin-left: 0; text-align: left; }
  .rise-head { max-width: none; }
  .rise-ctas { justify-content: flex-start; }
  .rise-cap { width: 100%; max-width: 560px; }
  .cap { justify-content: flex-start; text-align: left; }
}

/* the functional SERP card — the explainer device */
.serp-wrap { position: relative; width: min(600px, 94vw); }
@media (min-width: 881px) { .serp-wrap { width: 100%; max-width: 600px; justify-self: end; } }
.serp-card {
  position: relative; z-index: 1; background: var(--card); border: 1px solid var(--line-soft);
  border-radius: 20px; padding: 18px 18px 16px; box-shadow: var(--shadow); text-align: left;
  transition: box-shadow .6s ease, background-color .45s ease;
}
html[data-theme="dark"] .serp-card { box-shadow: var(--shadow), var(--glow); }
.serp-bar {
  display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px; margin-bottom: 14px;
  color: var(--ink-2); font-size: 14.5px;
}
.serp-bar svg { width: 16px; height: 16px; flex: none; color: var(--ink-3); }
.serp-bar .mic { margin-left: auto; color: var(--ink-3); }
.serp-list { position: relative; height: calc(var(--row-h) * 5); }
.serp-row, .serp-div {
  position: absolute; top: 0; left: 0; right: 0; height: var(--row-h);
  transform: translateY(calc(var(--slot) * var(--row-h)));
}
.rise-armed .serp-row, .rise-armed .serp-div { transition: transform .95s cubic-bezier(.22,1,.36,1), opacity .5s ease; }
.serp-row { display: flex; align-items: center; gap: 12px; padding: 0 14px; border-radius: 13px; }
.fava { width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--paper-3); border: 1px solid var(--line-soft); }
.rt { min-width: 0; line-height: 1.3; }
.rt b { display: block; font-weight: 600; font-size: 15px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt i { display: block; font-style: normal; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note {
  margin-left: auto; flex: none; font: 600 10.5px/1 var(--font-body); letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; padding: 5px 9px;
  opacity: 0; transition: opacity .4s ease;
}
.rise[data-state="0"] .note, .rise[data-state="1"] .note { opacity: 1; }
.serp-div { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; padding: 0 14px; }
.serp-div::before, .serp-div::after { content: ""; flex: 1; border-top: 1px dashed var(--line); }
.serp-div span { flex: none; }

/* slots — default (markup state 3) = FOUND */
.row-you { --slot: 0; } .row-a { --slot: 1; } .row-b { --slot: 2; } .serp-div { --slot: 3; } .row-c { --slot: 4; }
.rise[data-state="0"] .row-a, .rise[data-state="1"] .row-a { --slot: 0; }
.rise[data-state="0"] .row-b, .rise[data-state="1"] .row-b { --slot: 1; }
.rise[data-state="0"] .row-c, .rise[data-state="1"] .row-c { --slot: 2; }
.rise[data-state="0"] .serp-div, .rise[data-state="1"] .serp-div { --slot: 3; }
.rise[data-state="0"] .row-you, .rise[data-state="1"] .row-you { --slot: 4; }

/* your row — dim when buried, accent-framed on the way up, bright at #1 */
.row-you .rt b { color: var(--ink); font-weight: 700; }
.rise[data-state="0"] .row-you .rt b { color: var(--ink-3); font-weight: 600; }
.rise[data-state="0"] .row-you .fava { opacity: .55; }
.row-you { background: var(--paper-2); }
.rise[data-state="0"] .row-you { background: transparent; }
.row-you::after {
  content: ""; position: absolute; inset: -1px; border-radius: 14px; padding: 1.5px;
  background: var(--accent-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  opacity: 1; transition: opacity .5s ease; pointer-events: none;
}
.rise[data-state="0"] .row-you::after { opacity: 0; }
html[data-theme="dark"] .rise[data-state="1"] .row-you,
html[data-theme="dark"] .rise[data-state="2"] .row-you,
html[data-theme="dark"] .rise[data-state="3"] .row-you { box-shadow: 0 0 22px var(--accent-glow); }

/* the map pin — drops when you land #1 */
.pin { width: 18px; height: 22px; flex: none; color: var(--accent-strong); opacity: 1; transform: none; }
.rise-armed .pin { transition: opacity .35s ease, transform .55s cubic-bezier(.34,1.56,.64,1); }
.rise[data-state="0"] .pin, .rise[data-state="1"] .pin, .rise[data-state="2"] .pin { opacity: 0; transform: translateY(-14px) scale(.4); }

/* the ONE chip — "You're #1" */
.chip-found {
  margin-left: auto; flex: none; background: var(--accent-strong); color: var(--accent-ink);
  font: 800 11px/1 var(--font-body); letter-spacing: .05em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 999px; transform: scale(1); opacity: 1;
}
.rise-armed .chip-found { transition: opacity .3s ease, transform .45s cubic-bezier(.34,1.56,.64,1); }
.rise[data-state="0"] .chip-found, .rise[data-state="1"] .chip-found, .rise[data-state="2"] .chip-found { opacity: 0; transform: scale(.3); }

/* the money word — "Found" ENLARGES as you scroll (JS drives the
   transform; gated behind js-armed + motion-ok).
   OVERLAP FIX (19 Jul): JS now grows the span's LAYOUT WIDTH in sync
   with the scale (origin = left edge), so the neighbouring words are
   pushed aside instead of painted over — "Foundsomeone" garble is dead.
   NOTE: inline-block + will-change makes this its own paint layer, so
   the parent .grad-text background-clip:text no longer reaches it —
   it must carry its OWN gradient clip or the word renders invisible. */
.found-scale {
  /* OVERLAP KILL (19 Jul): was inline-block + JS scroll-scale — that separate
     layer + width juggling kept painting "Found" over "someone" on real devices
     as the variable font settled. Now it's a plain inline span with NO styling
     of its own — "Found" is just the first word of the .grad-text line, painted
     by the parent gradient (which carries the italic-F clip-fix padding). It
     flows normally and CANNOT overlap. Scroll-enlarge JS is disabled too. */
  display: inline;
}
@media (prefers-reduced-motion: reduce) { .found-scale { animation: none; } }

/* shorter viewports (e.g. 1440×900 laptops): the WHOLE story must fit
   one screen at state 0 — the buried you-row is the point of the hero */
@media (max-height: 960px) and (min-width: 601px) {
  .rise.hook { --row-h: 56px; }
  .rise .hook-line { font-size: clamp(2.1rem, 4.1vw, 3.3rem); margin-bottom: 10px; }
  .rise .hero-clarifier { font-size: clamp(1.1rem, 1.7vw, 1.4rem); }
  .rise-sticky { padding-top: 74px; padding-bottom: 18px; }
  .rise-grid { gap: clamp(12px, 2vh, 20px); }
  .rise-left { gap: 12px; }
  .rise-cap { min-height: 1.9em; }
  .rise .btn-pill.big, .rise .btn-ghost.big { font-size: 15px; padding: 13px 26px; }
  .serp-card { padding: 14px 14px 12px; }
  .serp-bar { height: 42px; margin-bottom: 10px; }
}
@media (max-width: 600px) {
  .rise.hook { --row-h: 52px; height: 300vh; }
  .rise .hook-line { font-size: 2.2rem; }
  .rise .hero-clarifier { font-size: 1.08rem; }
  .rise-sticky { padding-top: 72px; padding-bottom: 16px; }
  .rise-grid { gap: 11px; }
  .rise-left { gap: 10px; }
  .rise-cap { min-height: 1.8em; }
  .rt b { font-size: 14px; }
  .serp-card { padding: 12px 10px 10px; }
  .serp-bar { height: 40px; font-size: 13px; margin-bottom: 10px; }
  .rise .btn-pill.big, .rise .btn-ghost.big { font-size: 14.5px; padding: 12px 22px; }
}

/* ============================================================
   PRICING — the product shelf + comparison chart (ported from
   preview-pricing, reskinned to the graft accent law).
   Resting (no-JS / reduced-motion) = expanded + fully assembled.
   ============================================================ */
:root { --accent-line: rgba(5, 150, 105, .36); }
html[data-theme="dark"] { --accent-line: rgba(255, 95, 162, .42); }

/* ---- currency switcher ---- */
.cur-switch { display: inline-flex; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); box-shadow: var(--shadow); margin-top: 22px; }
.cur-pill { appearance: none; border: 0; background: transparent; color: var(--ink-2); font-family: var(--font-body);
  font-weight: 600; font-size: 14px; padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: .18s; letter-spacing: .01em; }
.cur-pill:hover { color: var(--ink); }
.cur-pill.on { background: var(--accent-strong); color: var(--accent-ink); box-shadow: 0 2px 10px -2px var(--accent-glow); }
.cur-pill:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
.founding-banner { max-width: 560px; margin: 16px auto 0; padding: 11px 16px; font-size: 14px; line-height: 1.5;
  border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: 14px; color: var(--ink); }
.founding-banner b { color: var(--accent-text); }
.setup-note { margin: -4px 0 22px; font-size: 14px; color: var(--ink-2); }
.setup-note b { color: var(--ink); }

/* ---- THE SHELF — expandable product cards ---- */
.shelf { display: flex; flex-direction: column; gap: 14px; }
.shelf-card {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: 18px;
  box-shadow: var(--shadow); overflow: hidden;
  transition: box-shadow .3s ease, border-color .35s ease;
}
.shelf-card:hover { box-shadow: var(--shadow-lift); }
.shelf-card.open { border-color: var(--accent-strong); box-shadow: var(--shadow-lift); }

.shelf-head {
  appearance: none; width: 100%; background: transparent; border: 0; cursor: pointer;
  display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center;
  gap: clamp(14px, 2vw, 24px); padding: clamp(16px, 2.2vw, 22px) clamp(18px, 2.4vw, 26px);
  text-align: left; color: var(--ink); font-family: var(--font-body);
}
.shelf-name { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.shelf-tier-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.shelf-tier { font-family: var(--font-display); font-weight: 640; font-size: clamp(1.22rem, 2vw, 1.5rem); letter-spacing: -.015em; line-height: 1.1; }
.shelf-promise { color: var(--ink-3); font-size: 14.5px; line-height: 1.4; }
.shelf-price { font-family: var(--font-display); font-weight: 620; font-size: clamp(1.15rem, 1.9vw, 1.45rem); letter-spacing: -.01em; white-space: nowrap; }
.shelf-price .shelf-per { font-family: var(--font-body); font-size: 12.5px; font-weight: 600; color: var(--ink-3); letter-spacing: .02em; }
.shelf-chev {
  width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; flex: none;
  display: grid; place-items: center; color: var(--ink-3);
  font: 400 20px/1 var(--font-body);
  transition: transform .4s cubic-bezier(.22,1,.36,1), border-color .3s ease, color .3s ease;
}
.shelf-card.open .shelf-chev { transform: rotate(45deg); border-color: var(--accent-strong); color: var(--accent-text); }

/* expand/collapse — grid-rows trick; collapsed ONLY when JS is armed */
.shelf-exp-inner { overflow: hidden; min-height: 0; }
html.js-armed .shelf-exp {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows .55s cubic-bezier(.22,1,.36,1), opacity .4s ease .05s;
}
html.js-armed .shelf-card.open .shelf-exp { grid-template-rows: 1fr; opacity: 1; }

.shelf-panes {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(18px, 2.8vw, 36px); align-items: center;
  padding: 4px clamp(18px, 2.4vw, 26px) clamp(20px, 2.4vw, 28px);
}
.shelf-demo { background: var(--paper-2); border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden; transition: background-color .45s ease; }
.shelf-big { font-family: var(--font-display); font-size: clamp(2rem, 3.2vw, 2.7rem); font-weight: 600; letter-spacing: -.02em; margin: 0; line-height: 1; }
.shelf-big .shelf-per { font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.shelf-feats { list-style: none; margin: 14px 0 20px; padding: 0; }
.shelf-feats li {
  position: relative; padding: 9px 10px 9px 26px; font-size: 15px; color: var(--ink-2);
  border-bottom: 1px solid var(--line-soft); border-radius: 8px;
  transition: background-color .35s ease, color .35s ease, opacity .35s ease;
}
.shelf-feats li::before { content: "—"; position: absolute; left: 8px; color: var(--accent); font-weight: 600; transition: color .35s ease; }
.shelf-feats li strong { color: var(--ink); transition: color .35s ease; }
html.js-armed .shelf-card.playing .shelf-feats li:not(.hot) { opacity: .5; }
html.js-armed .shelf-feats li.hot { background: var(--accent-soft); color: var(--ink); opacity: 1; }
html.js-armed .shelf-feats li.hot::before { color: var(--accent-strong); }
html.js-armed .shelf-feats li.hot strong { color: var(--accent-text); }

@media (max-width: 760px) {
  .shelf-head { grid-template-columns: minmax(0,1fr) auto; }
  .shelf-chev { display: none; }
  .shelf-panes { grid-template-columns: 1fr; gap: 16px; padding: 2px 14px 18px; }
  .shelf-big { font-size: 1.9rem; }
}

/* ---- SCENES — staged SVG loops (assembled by default) ---- */
.demo-svg { display: block; width: 100%; height: auto; }
.demo-svg .f   { fill: var(--card); stroke: var(--line); }
.demo-svg .p3  { fill: var(--paper-3); }
.demo-svg .ln  { fill: var(--ink-3); opacity: .6; }
.demo-svg .ln2 { fill: var(--ink-3); opacity: .32; }
.demo-svg .sep { stroke: var(--line-soft); }
.demo-svg .dot { fill: var(--ink-3); opacity: .7; }
.demo-svg .gf  { fill: var(--accent-strong); }
.demo-svg .gon { fill: var(--accent-ink); opacity: .6; }
.demo-svg .gs  { fill: none; stroke: var(--accent-strong); stroke-width: 1.6; }
.demo-svg .amf { fill: var(--amber); }
.demo-svg .inks{ fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.demo-svg .whitef { fill: var(--card); }

html.js-armed .demo-svg [data-scene] {
  transform-box: fill-box; transform-origin: 50% 50%;
  opacity: 1; transform: none;
  transition: opacity .5s ease, transform .5s cubic-bezier(.34,1.56,.64,1);
}
html.js-armed .demo-svg [data-scene]:not(.on) { opacity: 0; transform: translateY(8px); transition-duration: .3s; }
html.js-armed .demo-svg .pop { transform-origin: 50% 100%; }
html.js-armed .demo-svg .pop:not(.on) { transform: scale(.4); }
html.js-armed .demo-svg .slide:not(.on) { transform: translateX(-12px); }

html.js-armed .demo-svg [data-scene] .stag { opacity: 1; transition: opacity .35s ease, transform .35s cubic-bezier(.34,1.56,.64,1); transform-box: fill-box; transform-origin: 50% 50%; }
html.js-armed .demo-svg [data-scene]:not(.on) .stag { opacity: 0; transform: scale(.5); transition-duration: .2s; }
html.js-armed .demo-svg [data-scene].on .stag:nth-of-type(1) { transition-delay: .10s; }
html.js-armed .demo-svg [data-scene].on .stag:nth-of-type(2) { transition-delay: .32s; }
html.js-armed .demo-svg [data-scene].on .stag:nth-of-type(3) { transition-delay: .54s; }
html.js-armed .demo-svg [data-scene].on .stag:nth-of-type(4) { transition-delay: .76s; }
html.js-armed .demo-svg [data-scene].on .stag:nth-of-type(5) { transition-delay: .98s; }
html.js-armed .demo-svg [data-scene].on .stag:nth-of-type(6) { transition-delay: 1.2s; }

.demo-svg .tw { animation: fl-tw 2.4s ease-in-out infinite; }
.demo-svg .tw2 { animation: fl-tw 2.4s ease-in-out 1.1s infinite; }
@keyframes fl-tw { 0%,100% { opacity: .9; } 50% { opacity: .25; } }
.demo-svg .spin { animation: fl-spin 3.2s linear infinite; transform-box: fill-box; transform-origin: 50% 50%; }
@keyframes fl-spin { to { transform: rotate(360deg); } }
.demo-svg .zz { animation: fl-zz 2.6s ease-in-out infinite; }
.demo-svg .zz2 { animation: fl-zz 2.6s ease-in-out 1.3s infinite; }
@keyframes fl-zz { 0%,100% { opacity: .25; transform: translateY(0); } 50% { opacity: .9; transform: translateY(-3px); } }

/* ---- CLIMB TO #1 — website tiers' demo pane (mini SERP) ---- */
.serp-demo { padding: clamp(14px, 2vw, 22px); }
.serp-mini { max-width: 440px; margin: 0 auto; --smh: 44px; }
.smk { display: none; }
.sm-bar {
  display: flex; align-items: center; gap: 9px; height: 36px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; margin-bottom: 12px;
  background: var(--card); color: var(--ink-2); font-size: 13px;
  transition: background-color .45s ease;
}
.sm-bar svg { width: 14px; height: 14px; flex: none; color: var(--ink-3); }
.sm-bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-list { position: relative; height: calc(var(--smh) * 5); }
.sm-row, .sm-div {
  position: absolute; top: 0; left: 0; right: 0; height: var(--smh);
  transform: translateY(calc(var(--slot) * var(--smh)));
}
html.js-armed .sm-row, html.js-armed .sm-div {
  transition: transform .9s cubic-bezier(.22,1,.36,1), opacity .5s ease;
}
.sm-row { display: flex; align-items: center; gap: 10px; padding: 0 10px; border-radius: 11px; }
.sm-fava { width: 22px; height: 22px; flex: none; border-radius: 7px; background: var(--paper-3); border: 1px solid var(--line-soft); }
.sm-skel { flex: 1; min-width: 0; }
.sm-skel i { display: block; height: 6px; border-radius: 3px; background: var(--ink-3); opacity: .45; }
.sm-skel i + i { margin-top: 6px; width: 60%; opacity: .25; }
.sm-rt { min-width: 0; line-height: 1.25; flex: 1; }
.sm-rt b { display: block; font-weight: 700; font-size: 13.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-rt i { display: block; font-style: normal; font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-div { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; font-weight: 600; padding: 0 10px; }
.sm-div::before, .sm-div::after { content: ""; flex: 1; border-top: 1px dashed var(--line); }
.sm-div span { flex: none; }

/* slots — resting default = YOU at #1 (never blank) */
.sm-you { --slot: 0; } .sm-a { --slot: 1; } .sm-b { --slot: 2; } .sm-div { --slot: 3; } .sm-c { --slot: 4; }

/* your row — accent frame, pin + "#1" chip */
.sm-you {
  background: var(--card); border: 1.5px solid var(--accent-strong);
  box-shadow: 0 4px 14px -6px var(--accent-glow);
}
html[data-theme="dark"] .sm-you { box-shadow: 0 0 18px -4px var(--accent-glow); }
.sm-pin { width: 15px; height: 19px; flex: none; color: var(--accent-strong); }
.sm-chip {
  margin-left: auto; flex: none; background: var(--accent-strong); color: var(--accent-ink);
  font: 800 10px/1 var(--font-body); letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 999px;
}
.sm-stars { color: var(--amber); letter-spacing: 1.5px; }
.sm-lead {
  display: flex; align-items: center; gap: 8px; margin-top: 12px;
  border: 1px dashed var(--accent-line); background: var(--accent-soft);
  border-radius: 10px; padding: 8px 12px; font-size: 12px; font-weight: 600; color: var(--ink);
}
.sm-lead::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-strong); flex: none; }

html.js-armed .sm-you { transition: transform .9s cubic-bezier(.22,1,.36,1), opacity .5s ease, border-color .45s ease, box-shadow .45s ease, background-color .45s ease; }
html.js-armed .sm-pin { transition: opacity .3s ease, transform .5s cubic-bezier(.34,1.56,.64,1); }
html.js-armed .sm-chip { transition: opacity .25s ease, transform .4s cubic-bezier(.34,1.56,.64,1); }
html.js-armed .sm-stars { transition: opacity .4s ease; }
html.js-armed .sm-lead { transition: opacity .45s ease, transform .45s cubic-bezier(.34,1.56,.64,1); }

/* — stage choreography (hooks are cumulative: .on sticks as stages pass) — */
html.js-armed .smk-top:not(.on) ~ .sm-list .sm-a   { --slot: 0; }
html.js-armed .smk-top:not(.on) ~ .sm-list .sm-b   { --slot: 1; }
html.js-armed .smk-top:not(.on) ~ .sm-list .sm-you { --slot: 2; }
html.js-armed .smk-top:not(.on) ~ .sm-list .sm-pin  { opacity: 0; transform: translateY(-12px) scale(.4); }
html.js-armed .smk-top:not(.on) ~ .sm-list .sm-chip { opacity: 0; transform: scale(.3); }
html.js-armed .smk-mid:not(.on) ~ .sm-list .sm-a   { --slot: 0; }
html.js-armed .smk-mid:not(.on) ~ .sm-list .sm-b   { --slot: 1; }
html.js-armed .smk-mid:not(.on) ~ .sm-list .sm-c   { --slot: 2; }
html.js-armed .smk-mid:not(.on) ~ .sm-list .sm-you { --slot: 4; }
html.js-armed .smk-mid:not(.on) ~ .sm-list .sm-stars { opacity: 0; }
html.js-armed .smk-build:not(.on) ~ .sm-list .sm-you {
  border-color: transparent; background: transparent; box-shadow: none; opacity: .45;
}
html.js-armed .smk-plus:not(.on) ~ .sm-lead { opacity: 0; transform: translateY(8px); }

@media (max-width: 760px) {
  .serp-mini { --smh: 40px; }
}

/* ---- Business Brain — one-line memory note ---- */
.brain-note {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 22px; padding: 16px 20px;
  border: 1px dashed var(--line); border-radius: 14px; color: var(--ink-2); font-size: 14.5px;
}
.brain-note b { color: var(--ink); }
.brain-note .bn-chip {
  flex: none; display: inline-block; background: var(--paper-3); color: var(--ink);
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}

/* ---- THE COMPARISON CHART — everything, side by side ---- */
.cmp-head {
  text-align: center; max-width: 720px;
  margin: clamp(56px, 9vh, 96px) auto 0;
}
.cmp-head h3 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.cmp-head p:not(.eyebrow) { color: var(--ink-2); font-size: 16.5px; max-width: 56ch; margin: 0 auto; }
.flx-scroller { overflow-x: auto; margin-top: clamp(28px, 4vh, 44px); }
.flx-cmp { width: 100%; min-width: 720px; border-collapse: collapse; font-family: var(--font-body); font-size: 14.5px; }
.flx-cmp thead th { text-align: left; vertical-align: bottom; padding: 0 20px 20px; font-weight: 400; }
.flx-cmp thead th.rowlabel { width: 22%; }
.flx-cmp .flx-tier { font-family: var(--font-display); font-size: clamp(18px, 2.2vw, 23px); font-weight: 600; line-height: 1.05; color: var(--ink); }
.flx-cmp .flx-price { font-size: 14px; color: var(--ink-3); margin-top: 3px; }
.flx-cmp .flx-price .per { font-size: 12px; }
.flx-cmp .flx-most { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 7px; }
.flx-cmp tbody th { text-align: left; font-family: var(--font-body); font-size: 11.5px; font-weight: 600; letter-spacing: .11em;
  text-transform: uppercase; color: var(--ink-3); padding: 18px 20px 18px 2px; vertical-align: top; white-space: nowrap; border-top: 1px solid var(--line-soft); }
.flx-cmp tbody td { padding: 18px 20px; vertical-align: top; color: var(--ink); border-top: 1px solid var(--line-soft); line-height: 1.35; }
.flx-cmp tbody tr:first-child th, .flx-cmp tbody tr:first-child td { border-top: 1px solid var(--line); }
.flx-cmp .muted { color: var(--ink-3); }
.flx-cmp .strong { font-weight: 600; }
.flx-cmp .feat { background: var(--accent-soft); }
.flx-cmp thead th.feat { border-radius: 14px 14px 0 0; box-shadow: inset 0 0 0 1.5px var(--accent-strong); }
.flx-cmp tbody td.feat { box-shadow: inset 1.5px 0 0 var(--accent-strong), inset -1.5px 0 0 var(--accent-strong); }
.flx-cmp tbody tr:last-child td.feat { border-radius: 0 0 14px 14px; box-shadow: inset 1.5px 0 0 var(--accent-strong), inset -1.5px 0 0 var(--accent-strong), inset 0 -1.5px 0 var(--accent-strong); }
.flx-cmp .row-price td .big { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.flx-cmp-foot { margin-top: 24px; color: var(--ink-3); font-size: 14px; max-width: 640px; }
.flx-cmp-foot b { color: var(--ink); }

/* ---- reduced-motion: hard-off for the rise + shelf additions ---- */
@media (prefers-reduced-motion: reduce) {
  .demo-svg * { animation: none !important; }
  .serp-row, .serp-div, .cap, .rise-head, .pin, .chip-found, .note,
  .sm-row, .sm-div, .sm-pin, .sm-chip, .sm-lead { transition: none !important; }
  .found-scale { transform: none !important; width: auto !important; }
}
