/* purpleDrop — plain static styles. Editorial, scroll-reveal, no framework. */
:root {
  --paper: #F5F3EC;
  --cream: #FAF6EF;
  --ink: #17141B;
  --ink-soft: #4A443E;
  --ink-faint: #6E675E;
  --line: #DDD6C6;
  --accent: #92400E;
  --accent-deep: #7C360B;
  --accent-tint: #F3E3D3;
  --violet: #6D28D9;
  --violet-deep: #5B21B6;
  --dark: #17141B;
  --white: #FFFFFF;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); line-height: 1.1; margin: 0 0 .75rem; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--accent); }
a:hover { color: var(--accent-deep); }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent-tint); }

/* ---------- layout ---------- */
.container { max-width: 74rem; margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 46rem; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4.5rem 0; border-bottom: 1px solid var(--line); }
.section-cream { background: var(--cream); }
.section-dark { background: var(--dark); color: var(--paper); border-bottom: none; }
.section-dark h2, .section-dark h3 { color: var(--paper); }
.section-dark p { color: rgba(245, 243, 236, .82); }
.eyebrow {
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 .75rem;
}
.lede { font-size: 1.25rem; line-height: 1.6; color: var(--ink-soft); max-width: 42rem; }
.small { font-size: .875rem; color: var(--ink-faint); }
.muted { color: var(--ink-soft); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(245, 243, 236, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; }
.brand-name b { color: var(--violet); font-weight: 600; }
.main-nav { display: none; align-items: center; gap: 1.6rem; }
.main-nav a { color: var(--ink-soft); text-decoration: none; font-size: .875rem; font-weight: 500; }
.main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.header-cta { display: none; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line); border-radius: .4rem;
  padding: .5rem .6rem; cursor: pointer; color: var(--ink);
}
.mobile-menu { display: none; border-top: 1px solid var(--line); background: var(--paper); }
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: .9rem 1.25rem; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--line); font-weight: 500;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a.cta { color: var(--accent); font-weight: 700; }
@media (min-width: 64rem) {
  .main-nav { display: flex; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: .35rem; font-size: .95rem; font-weight: 600;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; line-height: 1.2;
}
.btn-primary { background: var(--accent); color: var(--paper); }
.btn-primary:hover { background: #7C360C; color: var(--paper); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--accent); }
.btn-light:hover { background: var(--cream); color: var(--accent-deep); }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ---------- hero ---------- */
.hero { padding: 4.5rem 0 5rem; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 64rem) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 3rem; } }
.hero h1 .accent { color: var(--accent); }
.hero-sub { font-size: 1.25rem; font-weight: 500; margin-top: 1rem; }
.hero-ctas { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.75rem; }
@media (min-width: 40rem) { .hero-ctas { flex-direction: row; } }
.trust-line {
  margin-top: 1.5rem; font-size: .75rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint);
}

/* AI answer panel — the hero visual */
.ai-panel {
  background: var(--white); border: 1px solid var(--line); border-radius: .75rem;
  box-shadow: 0 18px 40px -22px rgba(23, 20, 27, .35); overflow: hidden;
}
.ai-panel-head {
  display: flex; align-items: center; gap: .5rem; padding: .8rem 1rem;
  border-bottom: 1px solid var(--line); background: var(--cream);
  font-size: .8rem; font-weight: 600; color: var(--ink-soft);
}
.ai-panel-head .dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--violet); }
.ai-panel-body { padding: 1.1rem 1.1rem 1.25rem; }
.chat-q {
  background: var(--paper); border: 1px solid var(--line); border-radius: .6rem;
  padding: .8rem 1rem; font-size: .95rem; margin-bottom: 1rem;
}
.chat-q strong { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: .25rem; }
.chat-a { font-size: .95rem; }
.chat-a .ai-label { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--violet); font-weight: 700; margin-bottom: .5rem; }
.chat-a ol { margin: .25rem 0 .75rem; padding-left: 1.25rem; }
.chat-a li { margin-bottom: .35rem; }
.chat-a li .co { font-weight: 700; }
.chat-a li .tag { font-size: .78rem; color: var(--ink-faint); }
.chat-missing {
  border-left: 3px solid var(--accent); background: var(--accent-tint);
  padding: .7rem .9rem; border-radius: 0 .5rem .5rem 0; font-size: .92rem;
}
.ai-caption { padding: 0 1.1rem 1rem; font-size: .8rem; color: var(--ink-faint); }

/* ---------- cards / grids ---------- */
.grid-2 { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-3 { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: .6rem; padding: 1.75rem;
}
.card h3 { margin-bottom: .5rem; }
.card .num {
  font-family: var(--serif); font-size: 1.1rem; font-weight: 700; color: var(--accent);
  background: var(--accent-tint); display: inline-flex; width: 2.5rem; height: 2.5rem;
  align-items: center; justify-content: center; border-radius: .35rem; margin-bottom: 1rem;
}
.card ul { margin: .75rem 0 0; padding-left: 1.2rem; }
.card li { margin-bottom: .35rem; }
.card .meta { font-size: .85rem; font-weight: 700; color: var(--ink); margin-top: 1rem; }
.path-card { border-top: 4px solid var(--accent); }
.path-card.alt { border-top-color: var(--violet); }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  position: relative; padding: 0 0 2rem 3.25rem; border-left: 2px solid var(--line); margin-left: 1.1rem;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: -1.15rem; top: 0;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--accent); color: var(--white); font-family: var(--serif); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.steps h3 { margin-bottom: .25rem; }

/* ---------- quote / callout ---------- */
.callout {
  border-left: 4px solid var(--accent); padding: 1.25rem 1.5rem; background: var(--cream);
  border-radius: 0 .5rem .5rem 0; margin: 2rem 0; font-size: 1.15rem; font-weight: 500;
}
.check-list { list-style: none; padding: 0; margin: 1rem 0; }
.check-list li { padding-left: 1.75rem; position: relative; margin-bottom: .6rem; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700;
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding: 1.25rem 0; }
.faq-item h3 { font-family: var(--sans); font-size: 1.1rem; margin-bottom: .35rem; }
.faq-item p { margin-bottom: 0; color: var(--ink-soft); }

/* ---------- pricing table ---------- */
.price-note {
  background: var(--white); border: 1px solid var(--line); border-radius: .6rem;
  padding: 1.5rem 1.75rem; margin-bottom: 1rem;
}
.price-note h3 { margin-bottom: .25rem; }
.price-note .quote-line { font-weight: 700; color: var(--accent); }

/* ---------- form ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: .6rem; padding: 2rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.field .hint { font-size: .85rem; color: var(--ink-faint); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .85rem; font: inherit; font-size: 1rem;
  border: 1px solid var(--line); border-radius: .4rem; background: var(--paper); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--violet); outline-offset: 1px; border-color: var(--violet);
}
.field input[readonly] { background: var(--cream); color: var(--ink-soft); }
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 48rem) { .field-row { grid-template-columns: 1fr 1fr; } }
.status { min-height: 1.5rem; font-size: .92rem; color: var(--accent-deep); margin: .5rem 0 0; }
.status:empty { display: none; }
.code-input { letter-spacing: .4em; font-size: 1.25rem; text-align: center; }
.link-btn { background: none; border: none; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.success-box { text-align: center; padding: 2rem 0; }
.success-box .tick {
  width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--accent-tint); color: var(--accent);
  font-size: 1.75rem; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: var(--paper); padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 64rem) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer h3 { font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(245,243,236,.55); margin-bottom: 1rem; }
.site-footer a { color: rgba(245,243,236,.85); text-decoration: none; font-size: .9rem; }
.site-footer a:hover { color: var(--paper); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .6rem; }
.footer-brand p { color: rgba(245,243,236,.75); font-size: .92rem; max-width: 22rem; }
.footer-loc { font-family: var(--mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: #B7A6F5; margin-top: 1.25rem; }
.footer-base {
  border-top: 1px solid rgba(245,243,236,.15); margin-top: 3rem; padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .8rem; color: rgba(245,243,236,.55);
}
.footer-base a { color: rgba(245,243,236,.55); font-size: .8rem; }
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: var(--violet); color: var(--paper); text-align: center;
  padding: 1rem; font-weight: 600; text-decoration: none; font-size: 1rem;
}
.mobile-cta:hover { color: var(--paper); background: var(--violet-deep); }
@media (min-width: 64rem) { .mobile-cta { display: none; } }
body.has-mobile-cta .site-footer { padding-bottom: 6rem; }
@media (min-width: 64rem) { body.has-mobile-cta .site-footer { padding-bottom: 3.5rem; } }

/* ---------- scroll reveal (with failsafes) ---------- */
/* Content is visible by default. Only when JS has added .js to <html> do
   reveal elements start hidden — and a timeout in main.js forces them
   visible even if the observer never fires. A <noscript> block in each
   page head covers the no-JS case as a second failsafe. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.reveal-scale { transform: scale(.96); }
.js .reveal.in { opacity: 1; transform: none; }
.js.reveal-done .reveal { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper);
  padding: .6rem 1rem; border-radius: 0 0 .4rem 0; z-index: 100; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- storyboard: seven questions ---------- */
.storyboard { border-bottom: 1px solid var(--line); }

/* "Where are you?" self-check chooser */
.chooser { margin-bottom: 3rem; }
.chooser-label { font-weight: 700; font-size: 1rem; margin-bottom: .75rem; }
.choice-grid { display: grid; gap: .75rem; }
@media (min-width: 48rem) { .choice-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .choice-grid { grid-template-columns: repeat(4, 1fr); } }
.choice {
  font: inherit; font-size: .98rem; font-weight: 600; line-height: 1.4; text-align: left;
  background: var(--white); color: var(--ink); border: 1px solid var(--line);
  border-radius: .6rem; padding: 1rem 1.1rem; cursor: pointer; min-height: 3.5rem;
}
.choice:hover { border-color: var(--accent); }
.choice[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-tint); color: var(--accent-deep); }
.choice-result {
  margin-top: 1rem; background: var(--cream); border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: 0 .5rem .5rem 0; padding: 1rem 1.25rem;
}

/* Connected stages: vertical progress line + numbered nodes */
.story { list-style: none; margin: 0; padding: 0; position: relative; }
.story::before {
  content: ""; position: absolute; left: 2.36rem; top: 0; bottom: 0;
  width: 2px; background: var(--line);
}
@media (min-width: 48rem) { .story::before { left: 2.86rem; } }
.stage {
  position: relative; display: flex; gap: 1.25rem; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-radius: .6rem;
  padding: 1.25rem; margin-bottom: 1.5rem;
}
@media (min-width: 48rem) { .stage { padding: 1.75rem; } }
.stage:last-child { margin-bottom: 0; }
.stage-num {
  flex: 0 0 2.25rem; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--accent); color: var(--white); font-family: var(--serif); font-weight: 700;
  display: flex; align-items: center; justify-content: center; position: relative; z-index: 1;
}
.stage-body { flex: 1; min-width: 0; }
.stage-body > :last-child { margin-bottom: 0; }
.stage h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.stage.is-match { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.stage.is-match .stage-num { background: var(--violet); }
.match-tag {
  display: none; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--paper); background: var(--accent); border-radius: .35rem; padding: .3rem .6rem; margin-bottom: .75rem;
}
.stage.is-match .match-tag { display: inline-block; }
.where { border-left: 3px solid var(--line); padding-left: .9rem; margin: 0 0 .6rem; }
.where-go { border-color: var(--accent); }
.stage-cta { margin-top: 1.25rem; }

/* Try-it-yourself prompt box (AI stage + ai-check page) */
.prompt-box {
  background: var(--cream); border: 1px solid var(--line); border-radius: .6rem;
  padding: 1.25rem 1.5rem; margin: 1.25rem 0;
}
.prompt-box-label {
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .5rem;
}
.prompt-text {
  background: var(--white); border: 1px solid var(--line); border-radius: .4rem;
  padding: 1rem 1.1rem; font-size: .95rem; margin: 0 0 1rem;
}
.prompt-text p { margin: 0 0 .5rem; }
.prompt-text p:last-child { margin-bottom: 0; }
.copy-btn { margin-bottom: 1rem; }

/* ==========================================================================
   Scroll-craft motion system + modern visual system (19 November 2026)
   Chaptered-editorial grammar. Scroll is the timeline: the storyboard line
   draws as you travel, nodes light when reached, headlines assemble line by
   line, the hero panel assembles in sequence, the ground deepens and comes
   back. No pinning anywhere. Palette unchanged: cream #F5F3EC, ink, amber
   #92400E, violet #6D28D9 for the logo and matched states only.
   ========================================================================== */
:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ground-deep: #EDE3CE;
  --shadow-1: 0 1px 0 rgba(255, 255, 255, .75) inset, 0 18px 36px -22px rgba(23, 20, 27, .35);
  --shadow-2: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 28px 56px -28px rgba(23, 20, 27, .42);
}

/* --- display type: bigger, tighter, balanced --- */
h1 { font-size: clamp(2.7rem, 6vw, 4.6rem); letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
h2 { font-size: clamp(2.05rem, 3.8vw, 3.15rem); letter-spacing: -0.02em; line-height: 1.06; text-wrap: balance; }
h3 { font-size: 1.4rem; letter-spacing: -0.01em; }
.lede { font-size: 1.3rem; }
@media (max-width: 48rem) {
  h1 { font-size: clamp(2.2rem, 9vw, 2.8rem); }
}

/* --- grain: the fifth depth tool, barely there --- */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  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'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: .035;
}

/* --- header: stronger blur, shadow once scrolled --- */
.site-header {
  background: rgba(245, 243, 236, .88);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(23, 20, 27, .35); }

/* --- buttons: bolder, lift on hover, press on tap --- */
.btn { padding: .9rem 1.6rem; transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, color .16s ease, border-color .16s ease; }
.btn-primary { box-shadow: 0 12px 26px -14px rgba(23, 20, 27, .55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -16px rgba(23, 20, 27, .6); }
.btn-outline:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -16px rgba(23, 20, 27, .45); }
.btn:active { transform: translateY(0) scale(.98); }

/* --- sections: confident spacing --- */
.section { padding: 5.5rem 0; }
.hero { padding: 5.5rem 0 6rem; }
@media (max-width: 48rem) { .section { padding: 3.5rem 0; } }

/* --- cards and stages: real depth (offset shadow, edge light, lift) --- */
.card, .stage, .form-card, .price-note { box-shadow: var(--shadow-1); }
.card { transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.prompt-box { box-shadow: var(--shadow-1); }

/* --- chooser: lift on hover --- */
.choice {
  box-shadow: 0 8px 18px -12px rgba(23, 20, 27, .3);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background-color .16s ease;
}
.choice:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -14px rgba(23, 20, 27, .4); }

/* --- reveal: a premium entrance is a 14px rise over 620ms, not a slide --- */
.js .reveal { transform: translateY(14px); transition: opacity .62s ease, transform .62s var(--ease-out); }
.js .reveal.reveal-scale { transform: scale(.97) translateY(10px); }
.js .reveal.in { opacity: 1; transform: none; }

/* --- kinetic words: each word rises from behind its own mask, line by line --- */
html.sc-on .sc-w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .14em; margin-bottom: -.14em; }
html.sc-on .sc-wi { display: inline-block; transform: translateY(115%); opacity: 0; transition: transform .75s var(--ease-out), opacity .5s ease; will-change: transform, opacity; }
html.sc-on .lines-in .sc-wi { transform: translateY(0); opacity: 1; }
html.sc-failed .sc-wi { transform: none !important; opacity: 1 !important; transition: none !important; }

/* --- hero panel assembly: the answer arrives in sequence --- */
html.sc-on .ai-panel--assemble .chat-q,
html.sc-on .ai-panel--assemble .chat-a > p,
html.sc-on .ai-panel--assemble .chat-a ol li,
html.sc-on .ai-panel--assemble .ai-caption {
  opacity: 0; transform: translateY(10px);
  transition: opacity .6s ease, transform .6s var(--ease-out);
}
html.sc-on .ai-panel--assemble.assembled .chat-q,
html.sc-on .ai-panel--assemble.assembled .chat-a > p,
html.sc-on .ai-panel--assemble.assembled .chat-a ol li,
html.sc-on .ai-panel--assemble.assembled .ai-caption { opacity: 1; transform: none; }
html.sc-failed .ai-panel--assemble .chat-q,
html.sc-failed .ai-panel--assemble .chat-a > p,
html.sc-failed .ai-panel--assemble .chat-a ol li,
html.sc-failed .ai-panel--assemble .ai-caption { opacity: 1 !important; transform: none !important; transition: none !important; }
.ai-panel { box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 28px 56px -28px rgba(23, 20, 27, .45); }

/* --- storyboard: the progress line draws with scroll (scaleY off --story-p) --- */
.story::after {
  content: ""; position: absolute; left: 2.36rem; top: 0; bottom: 0; width: 2px;
  background: var(--accent); transform: scaleY(var(--story-p, 0)); transform-origin: top; z-index: 0;
}
@media (min-width: 48rem) { .story::after { left: 2.86rem; } }
.story .stage { transition: opacity .4s ease, transform .62s var(--ease-out), border-color .3s ease, box-shadow .3s ease; }
.stage-num {
  box-shadow: 0 0 0 4px var(--paper), 0 6px 14px -6px rgba(23, 20, 27, .45);
  transition: transform .3s var(--ease-out), background-color .3s ease, box-shadow .3s ease;
}
.stage.is-active .stage-num { transform: scale(1.14); background: var(--accent-deep); }
.stage.is-match .stage-num { background: var(--violet); }
.stage.is-match {
  border-color: var(--violet);
  box-shadow: 0 0 0 1px var(--violet), 0 20px 40px -24px rgba(109, 40, 217, .5);
}
.stage.is-active.is-match .stage-num {
  background: var(--violet);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 7px rgba(109, 40, 217, .25), 0 6px 14px -6px rgba(23, 20, 27, .45);
}
.story.choice-active .stage:not(.is-match) { opacity: .55; }

/* --- ground drift: the why-confusing section sits on the drifting body ground --- */
#why-confusing { background: transparent; }

/* --- reduced motion: everything visible, nothing moves --- */
@media (prefers-reduced-motion: reduce) {
  html.sc-on .sc-wi,
  html.sc-on .ai-panel--assemble .chat-q,
  html.sc-on .ai-panel--assemble .chat-a > p,
  html.sc-on .ai-panel--assemble .chat-a ol li,
  html.sc-on .ai-panel--assemble .ai-caption { opacity: 1 !important; transform: none !important; transition: none !important; }
  .story { --story-p: 1; }
  .stage.is-active .stage-num { transform: none; }
  body::after { display: none; }
}
