/* ---------------------------------------------------------
   HOW IT WORKS (/how-it-works)
   A scroll story: the hero, then chapters that scroll on the
   left while a pinned "ink" stage on the right plays each step
   in time with the scroll, then a closing call to action.
   Built on site.css tokens and system.css type; the stage is
   printed in reverse in both themes, like the site's other
   featured surfaces. how.js drives the stage.

   1. STAGE TOKENS
   2. FRAME
   3. HERO
   4. STORY (chapters and the pinned stage)
   5. SCENE PIECES
   6. SCENES: problem, ask, read, weigh, pick, backup, answer
   7. CLOSE
   8. PHONES
   9. REDUCED MOTION
   --------------------------------------------------------- */

/* ---------------------------------------------------------
   1. STAGE TOKENS
   --------------------------------------------------------- */
.how {
    --stage-bg: #161513;
    --stage-raise: #23211E;
    --stage-ink: #F4F1EC;
    --stage-muted: #9A958E;
    --stage-line: rgba(244, 241, 236, 0.12);
    --stage-line-strong: rgba(244, 241, 236, 0.26);
    --stage-amber: #F59E0B;
    --stage-alert: #F87171;
    --stage-on-ink-accent: #B45309;
    --stage-top: calc(var(--nav-height, 64px) + 5vh);
}
[data-theme="dark"] .how { --stage-bg: #0E0E10; --stage-raise: #1C1C1F; }

/* ---------------------------------------------------------
   2. FRAME
   --------------------------------------------------------- */
.how { display: block; color: var(--text-main); }
.how-wrap { width: 90%; max-width: 1320px; margin: 0 auto; }
.how .ds-display em { font-style: normal; color: var(--primary); }
.how [hidden] { display: none !important; }
.how .mark { display: block; width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; }

/* ---------------------------------------------------------
   3. HERO
   --------------------------------------------------------- */
.how-hero { position: relative; overflow: hidden; padding: clamp(3rem, 8vh, 5rem) 0 3rem; text-align: center; }
.how-hero .how-wrap { display: grid; justify-items: center; gap: 1.4rem; }
.how-hero-title { font-size: clamp(3rem, 7.6vw, 6.8rem); text-wrap: balance; }
.how-hero-lede { max-width: 34rem; margin: 0; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--text-muted); text-wrap: balance; }
.how-hero-visual { position: relative; width: min(340px, 62vw); aspect-ratio: 1; margin-top: 1rem; will-change: transform, opacity; }
.how-hero-glow { position: absolute; inset: -30%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--primary) 22%, transparent), transparent 62%); }
.how-hero-core {
    position: absolute; left: 50%; top: 50%; z-index: 2; width: 34%; aspect-ratio: 1;
    display: grid; place-items: center;
    background: var(--stage-bg); border: 3px solid var(--stage-amber);
    transform: translate(-50%, -50%); animation: how-thump 2.4s ease-in-out infinite;
}
.how-hero-core img { width: 56%; height: auto; }
.how-hero-core::before, .how-hero-core::after { content: ""; position: absolute; inset: -3px; border: 2px solid var(--stage-amber); animation: how-ripple 2.4s ease-out infinite; }
.how-hero-core::after { animation-delay: 1.2s; }
.how-drift { position: absolute; left: 50%; top: 50%; width: 9%; aspect-ratio: 1; margin: -4.5% 0 0 -4.5%; color: var(--text-main); animation: how-drift 6s cubic-bezier(0.55, 0, 0.8, 0.6) infinite; animation-delay: var(--d); }
.how-drift .mark { width: 100%; height: 100%; }
.how-scroll-cue { display: flex; align-items: center; gap: 0.7rem; margin-top: 0.5rem; }
.how-scroll-cue i { width: 1px; height: 42px; background: linear-gradient(var(--primary), transparent); transform-origin: top; animation: how-cue 1.8s ease-in-out infinite; }

@keyframes how-drift {
    0% { transform: translate(var(--fx), var(--fy)) rotate(var(--r)); opacity: 0; }
    15% { opacity: 0.8; }
    85% { opacity: 0.7; }
    100% { transform: translate(0, 0) scale(0.2); opacity: 0; }
}
@keyframes how-thump { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 12% { transform: translate(-50%, -50%) scale(1.05); } 24% { transform: translate(-50%, -50%) scale(1); } }
@keyframes how-ripple { from { transform: scale(1); opacity: 0.9; } to { transform: scale(1.7); opacity: 0; } }
@keyframes how-cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes how-breathe { 0%, 100% { transform: scale(0.8); opacity: 0.6; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes how-blink { 50% { opacity: 0; } }

/* ---------------------------------------------------------
   4. STORY
   Each chapter is taller than the screen; its copy pins
   mid-screen while the chapter scrolls, and the stage beside
   it stays put and plays the step.
   --------------------------------------------------------- */
.how-story-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); }
.how-chapters { padding: 10vh 0 30vh; }
.how-chapter { min-height: 115vh; opacity: 0.25; transition: opacity 0.5s ease; }
.how-chapter.is-active { opacity: 1; }
.how-copy { position: sticky; top: calc(50vh - 7rem); display: grid; gap: 1.1rem; padding: 2rem 0; }
.how-copy h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); text-wrap: balance; }
.how-copy p:not(.ds-label) { max-width: 30rem; margin: 0; font-size: 1.15rem; line-height: 1.6; color: var(--text-muted); }
.how-copy .how-hint { display: flex; align-items: center; gap: 0.6rem; font: 500 0.75rem/1.2 var(--ds-font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); }
.how-hint::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; animation: how-breathe 1.6s ease-in-out infinite; }

.how-stage {
    position: sticky; top: var(--stage-top); height: calc(90vh - var(--nav-height, 64px));
    display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 1rem;
    padding: clamp(14px, 1.6vw, 22px);
    background: var(--stage-bg); color: var(--stage-ink);
    border-radius: var(--ds-radius); box-shadow: 0 0 0 1px var(--stage-line);
}
.how-stage-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.how-stage-step { font: 500 0.72rem/1.2 var(--ds-font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--stage-amber); }
.how-switch { display: flex; border: 1px solid var(--stage-line-strong); }
.how-switch button { padding: 0.5rem 0.8rem; background: none; border: 0; color: var(--stage-muted); font: 500 0.66rem/1 var(--ds-font-mono); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.how-switch button + button { border-left: 1px solid var(--stage-line); }
.how-switch button:hover { color: var(--stage-ink); }
.how-switch button[aria-pressed="true"] { background: var(--stage-ink); color: var(--stage-bg); }
.how-stage-view { position: relative; min-height: 0; display: grid; place-items: center; }
/* A 16:10 box, as large as the stage allows. Scenes size themselves in cqw of this box. */
.how-box { position: relative; width: min(100%, calc((90vh - var(--nav-height, 64px) - 130px) * 1.6)); aspect-ratio: 16 / 10; container-type: inline-size; overflow: hidden; }
.how-rail { display: flex; gap: 6px; }
.how-rail i { position: relative; flex: 1; height: 3px; overflow: hidden; background: var(--stage-line-strong); }
.how-rail i::after { content: ""; position: absolute; inset: 0; background: var(--stage-amber); transform: scaleX(var(--p, 0)); transform-origin: left; }

/* ---------------------------------------------------------
   5. SCENE PIECES
   --------------------------------------------------------- */
.sc { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.45s ease, visibility 0s linear 0.45s; }
/* The site's base type colours text for the page; inside the stage it must read on ink. */
.sc h4, .sc p { color: var(--stage-ink); }
.sc.is-on { opacity: 1; visibility: visible; transition: opacity 0.45s ease; }
.sc-dots {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, var(--stage-line) 0.14cqw, transparent 0.17cqw); background-size: 2.6cqw 2.6cqw;
    -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000, transparent 72%); mask-image: radial-gradient(ellipse at 50% 45%, #000, transparent 72%);
}
.sc .tile { display: grid; place-items: center; background: var(--stage-raise); border: 0.18cqw solid var(--stage-line-strong); color: var(--stage-ink); }
.sc .chip { display: inline-flex; align-items: center; padding: 1.1cqw 1.6cqw; border: 0.16cqw solid var(--stage-line-strong); font: 500 1.6cqw/1 var(--ds-font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--stage-ink); }
.sc .is-hidden-off { opacity: 0; transform: translateY(2cqw); pointer-events: none; }
.sc button { font: inherit; }
.sc button:focus-visible { outline: 2px solid var(--stage-amber); outline-offset: 3px; }

/* ---------------------------------------------------------
   6. SCENES
   --------------------------------------------------------- */

/* The problem: app windows pile up, then fold into the Araveil mark. */
.sc-win { position: absolute; width: 34cqw; background: var(--stage-raise); border: 0.15cqw solid var(--stage-line-strong); border-radius: 0.5cqw; overflow: hidden; will-change: transform, opacity; }
.sc-win-bar { display: flex; align-items: center; gap: 0.8cqw; padding: 1cqw 1.3cqw; border-bottom: 0.12cqw solid var(--stage-line); font: 500 1.3cqw/1 var(--ds-font-mono); color: var(--stage-muted); }
.sc-win-bar .mark { width: 1.8cqw; height: 1.8cqw; color: var(--stage-ink); }
.sc-win-body { display: grid; gap: 0.9cqw; padding: 1.3cqw; }
.sc-win-body span { height: 0.9cqw; background: var(--stage-line); }
.sc-win-body span:nth-child(2) { width: 70%; }
.sc-win-flag { justify-self: start; padding: 0.5cqw 0.9cqw; border: 0.12cqw solid color-mix(in srgb, var(--stage-alert) 55%, transparent); font: 500 1.2cqw/1 var(--ds-font-mono); font-style: normal; color: var(--stage-alert); }
.sc-core { position: absolute; left: 50%; top: 50%; width: 16cqw; height: 16cqw; margin: -8cqw 0 0 -8cqw; border-color: var(--stage-amber) !important; border-width: 0.35cqw !important; opacity: 0; }
.sc-core img { width: 9cqw; height: auto; }

/* Ask: the composer types in step with the scroll. */
.sc-composer {
    position: absolute; left: 7cqw; right: 7cqw; top: 50%; transform: translateY(-50%);
    display: grid; gap: 3cqw; padding: 3.2cqw 3.4cqw 2.6cqw;
    background: var(--stage-raise); border: 0.2cqw solid var(--stage-line-strong); border-radius: 0.9cqw;
    transition: border-color 0.4s ease;
}
.sc-composer.has-text { border-color: color-mix(in srgb, var(--stage-amber) 65%, transparent); }
.sc-composer-text { margin: 0; min-height: 11cqw; font-size: 3.6cqw; line-height: 1.32; }
.sc-caret { display: inline-block; width: 0.3cqw; height: 3.8cqw; margin-left: 0.2cqw; vertical-align: -0.6cqw; background: var(--stage-amber); animation: how-blink 1s steps(2) infinite; }
.sc-composer-row { display: flex; align-items: center; gap: 1cqw; }
.sc-composer-row .chip { padding: 0.9cqw 1.2cqw; font-size: 1.35cqw; color: var(--stage-muted); }
.sc-composer-row .chip.is-on { color: var(--stage-ink); border-color: var(--stage-ink); }
.sc-composer-row .chip.is-amber { color: var(--stage-amber); border-color: color-mix(in srgb, var(--stage-amber) 55%, transparent); }
.sc-send { margin-left: auto; width: 5.4cqw; height: 5.4cqw; display: grid; place-items: center; background: var(--stage-line-strong); color: var(--stage-bg); transition: background 0.3s ease, transform 0.3s var(--ds-ease); }
.sc-send svg { width: 2.6cqw; fill: none; stroke: currentColor; stroke-width: 2.4; }
.sc-composer.is-sent .sc-send { background: var(--stage-amber); transform: scale(0.9); }

/* Read: a light scans the question and plain chips land. */
.sc-question { position: absolute; left: 6cqw; right: 6cqw; top: 9cqw; margin: 0; overflow: hidden; padding: 2.6cqw 3cqw; background: var(--stage-raise); border: 0.16cqw solid var(--stage-line-strong); font-size: 3cqw; line-height: 1.32; }
.sc-question::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--scan, -30%); width: 26%; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--stage-amber) 28%, transparent), transparent); }
.sc-needs { position: absolute; left: 6cqw; right: 6cqw; top: 33cqw; display: grid; gap: 2cqw; }
.sc-needs-label { font: 500 1.4cqw/1 var(--ds-font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--stage-muted); }
.sc-chips { display: flex; flex-wrap: wrap; gap: 1.4cqw; }
.sc-chips .chip { padding: 1.4cqw 2cqw; font-size: 2cqw; opacity: 0; transform: translateY(2cqw) scale(0.94); transition: opacity 0.4s ease, transform 0.5s var(--ds-ease); }
.sc-chips .chip.is-in { opacity: 1; transform: none; }

/* Weigh up: a sweep crosses the field, then finalists rise. */
.sc-field { position: absolute; left: 5cqw; right: 5cqw; top: 50%; transform: translateY(-50%); display: grid; grid-template-columns: repeat(10, 1fr); gap: 1.4cqw; }
.sc-field .tile { aspect-ratio: 1; animation: how-shimmer var(--d) ease-in-out infinite; animation-delay: var(--o); transition: filter 0.8s ease, transform 0.8s var(--ds-ease), border-color 0.5s ease, box-shadow 0.5s ease; }
.sc-field .mark { width: 3.2cqw; height: 3.2cqw; }
@keyframes how-shimmer { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
.sc-weigh.is-narrowed .sc-field .tile { filter: brightness(0.22); }
.sc-weigh.is-narrowed .sc-field .tile.is-finalist {
    position: relative; z-index: 2; filter: none; animation: none; opacity: 1;
    transform: translateY(-1cqw) scale(1.28); border-color: var(--stage-amber);
    box-shadow: 0 0 3.6cqw color-mix(in srgb, var(--stage-amber) 45%, transparent);
}
.sc-sweep { position: absolute; top: 0; bottom: 0; left: var(--sweep, -20cqw); width: 18cqw; pointer-events: none; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--stage-amber) 20%, transparent), transparent); }

/* Pick: one pick, two backups, a reason; every provider can be tapped. */
.sc-podium { position: absolute; left: 0; right: 0; top: 6cqw; display: flex; justify-content: center; align-items: flex-end; gap: 4cqw; }
.sc-slot { display: grid; justify-items: center; gap: 1.2cqw; padding: 0; background: none; border: 0; color: inherit; cursor: pointer; }
.sc-slot .tile { width: 20cqw; height: 12cqw; outline: 0.25cqw solid transparent; outline-offset: 0.8cqw; transition: transform 0.6s var(--ds-ease), opacity 0.5s ease, outline-color 0.3s ease; }
.sc-slot .tile .mark { width: 5.6cqw; height: 5.6cqw; }
.sc-slot small { font: 500 1.3cqw/1 var(--ds-font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--stage-muted); }
.sc-slot.is-primary .tile { width: 28cqw; height: 18cqw; background: var(--stage-amber); border-color: var(--stage-amber); color: var(--stage-bg); box-shadow: 0 0 5cqw color-mix(in srgb, var(--stage-amber) 40%, transparent); }
.sc-slot.is-primary .tile .mark { width: 8.6cqw; height: 8.6cqw; }
.sc-slot.is-primary small { color: var(--stage-amber); }
.sc-slot.is-look .tile { outline-color: var(--stage-ink); }
.sc-why { position: absolute; left: 50%; top: 39cqw; width: 76cqw; margin-left: -38cqw; display: grid; gap: 0.9cqw; padding: 2cqw 2.4cqw; background: var(--stage-ink); color: var(--stage-bg); transition: opacity 0.4s ease, transform 0.5s var(--ds-ease); }
.sc-why-head { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 2cqw; font: 500 2.6cqw/1.1 var(--ds-font-display); letter-spacing: -0.02em; }
.sc-why-head b { font: 500 1.3cqw/1 var(--ds-font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--stage-on-ink-accent); }
.sc-why-text { margin: 0; font-size: 1.9cqw; line-height: 1.4; }
.sc-also { position: absolute; left: 0; right: 0; bottom: 2.4cqw; display: flex; justify-content: center; align-items: center; gap: 1.6cqw; }
.sc-also > span { font: 500 1.2cqw/1 var(--ds-font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--stage-muted); }
.sc-also button { width: 5.6cqw; height: 5.6cqw; padding: 0; opacity: 0.5; cursor: pointer; transition: opacity 0.3s ease, border-color 0.3s ease; }
.sc-also button .mark { width: 2.6cqw; height: 2.6cqw; }
.sc-also button:hover, .sc-also button.is-look { opacity: 1; border-color: var(--stage-ink); }

/* Backup: the pick drops out, a backup steps in, then all is well. */
.sc-route { position: absolute; left: 5cqw; right: 5cqw; top: 8cqw; display: grid; grid-template-columns: 18cqw 1fr 38cqw; align-items: center; gap: 3cqw; }
.sc-chat { display: grid; justify-items: center; gap: 1.2cqw; }
.sc-chat .tile { width: 18cqw; height: 18cqw; }
.sc-chat img { width: 9cqw; height: auto; }
.sc-chat small { font: 500 1.2cqw/1 var(--ds-font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--stage-muted); }
.sc-wire { position: relative; height: 0.3cqw; background: var(--stage-line-strong); }
.sc-wire i { position: absolute; top: -0.8cqw; width: 1.9cqw; height: 1.9cqw; background: var(--stage-amber); animation: how-travel 1.6s linear infinite; }
@keyframes how-travel { from { left: 0; } to { left: calc(100% - 1.9cqw); } }
.sc-targets { display: grid; gap: 1.6cqw; }
.sc-target { display: flex; align-items: center; gap: 1.6cqw; padding: 1.6cqw 2cqw; background: var(--stage-raise); border: 0.16cqw solid var(--stage-line-strong); font: 500 2.4cqw/1 var(--ds-font-text); transition: border-color 0.4s ease, background 0.4s ease, opacity 0.4s ease; }
.sc-target .mark { width: 3.4cqw; height: 3.4cqw; }
.sc-target em { margin-left: auto; font: 500 1.2cqw/1 var(--ds-font-mono); font-style: normal; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stage-muted); }
.sc-target[data-state="answering"] { border-color: var(--stage-amber); background: color-mix(in srgb, var(--stage-amber) 14%, var(--stage-raise)); }
.sc-target[data-state="answering"] em { color: var(--stage-amber); }
.sc-target[data-state="down"] { border-color: var(--stage-alert); opacity: 0.55; }
.sc-target[data-state="down"] em { color: var(--stage-alert); }
.sc-line { position: absolute; left: 0; right: 0; bottom: 6cqw; margin: 0; text-align: center; font: 500 3.4cqw/1.1 var(--ds-font-display); letter-spacing: -0.03em; }
.sc-line em { font-style: normal; color: var(--stage-amber); }

/* Answer: thinking, then the answer streams in the app's style. */
.sc-think { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); display: grid; justify-items: center; gap: 2cqw; text-align: center; transition: opacity 0.4s ease; }
.sc-timer { margin: 0; font: 500 1.6cqw/1 var(--ds-font-mono); color: var(--stage-muted); font-variant-numeric: tabular-nums; }
.sc-with { margin: 0; display: flex; align-items: center; gap: 2.6cqw; font: 500 6.4cqw/1 var(--ds-font-display); letter-spacing: -0.045em; }
.sc-with .tile { width: 10cqw; height: 10cqw; border: 0.3cqw solid var(--stage-amber); box-shadow: 0 0 5cqw color-mix(in srgb, var(--stage-amber) 35%, transparent); }
.sc-with .mark { width: 5.6cqw; height: 5.6cqw; }
.sc-stages { display: flex; align-items: center; gap: 1.4cqw; }
.sc-stages span { display: flex; align-items: center; gap: 0.9cqw; font: 500 1.4cqw/1 var(--ds-font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--stage-muted); }
.sc-stages i { width: 1.6cqw; height: 1.6cqw; border-radius: 50%; border: 0.2cqw dashed var(--stage-line-strong); }
.sc-stages b { width: 5cqw; border-top: 0.2cqw dashed var(--stage-line-strong); }
.sc-stages .is-on, .sc-stages .is-done { color: var(--stage-ink); }
.sc-stages .is-on i { border-style: solid; border-color: var(--stage-amber); }
.sc-stages .is-done i { border-style: solid; border-color: var(--stage-amber); background: var(--stage-amber); }
.sc-head { position: absolute; left: 5cqw; right: 5cqw; top: 4cqw; display: flex; align-items: center; flex-wrap: wrap; gap: 1.6cqw; padding-bottom: 1.6cqw; border-bottom: 0.14cqw solid var(--stage-line-strong); font: 500 1.25cqw/1 var(--ds-font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--stage-muted); transition: opacity 0.4s ease, transform 0.5s var(--ds-ease); }
.sc-head-model { display: inline-flex; align-items: center; gap: 0.8cqw; color: var(--stage-ink); }
.sc-head-model .mark { width: 2cqw; height: 2cqw; }
.sc-favs { display: inline-flex; align-items: center; gap: 0.4cqw; }
.sc-favs i { width: 1.4cqw; height: 1.4cqw; background: var(--fav); }
.sc-body { position: absolute; left: 5cqw; right: 5cqw; top: 11.4cqw; font-size: 2.4cqw; line-height: 1.5; transition: opacity 0.4s ease, transform 0.5s var(--ds-ease); }
.sc-body h4 { margin: 0 0 1.2cqw; font-family: var(--ds-font-display); font-size: 4cqw; font-weight: 500; line-height: 1.1; letter-spacing: -0.03em; color: var(--stage-ink); }
.sc-body p { margin: 0 0 1cqw; }
.sc-body ul { display: grid; gap: 0.5cqw; margin: 0 0 1cqw; padding: 0; list-style: none; }
.sc-body li { display: grid; grid-template-columns: 11cqw 1fr; align-items: baseline; }
.sc-body li > strong { font: 500 1.4cqw/1.4 var(--ds-font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--stage-amber); }
.sc-body p strong { font-weight: 600; }
.sc-cite { display: inline-grid; place-items: center; min-width: 2cqw; height: 2cqw; margin-left: 0.5cqw; padding: 0 0.4cqw; border: 0.15cqw solid var(--stage-amber); color: var(--stage-amber); font: 600 1.2cqw/1 var(--ds-font-mono); vertical-align: 0.4cqw; }
.sc-stream-caret { display: inline-block; width: 0.45cqw; height: 2.8cqw; margin-left: 0.3cqw; vertical-align: -0.45cqw; background: var(--stage-amber); animation: how-blink 0.8s steps(2) infinite; }
.sc-pill { position: absolute; left: 5cqw; bottom: 3cqw; display: inline-flex; align-items: center; gap: 1.2cqw; padding: 1.3cqw 1.8cqw; background: var(--stage-amber); color: var(--stage-bg); font: 600 2.1cqw/1 var(--ds-font-text); box-shadow: 0 0 5cqw color-mix(in srgb, var(--stage-amber) 45%, transparent); transition: opacity 0.4s ease, transform 0.5s var(--ds-ease); }
.sc-pill .mark { width: 2.4cqw; height: 2.4cqw; }
.sc-pill em { font: 500 1.25cqw/1 var(--ds-font-mono); font-style: normal; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.75; }

/* ---------------------------------------------------------
   7. CLOSE
   --------------------------------------------------------- */
.how-close { padding: clamp(4rem, 12vh, 8rem) 0; border-top: 1px solid var(--ds-line); }
.how-close .how-wrap { display: grid; justify-items: center; gap: 1.6rem; text-align: center; }
.how-close-title { font-size: clamp(2.6rem, 6.6vw, 5.6rem); text-wrap: balance; }
.how-close p:not(.ds-label) { max-width: 32rem; margin: 0; font-size: 1.15rem; color: var(--text-muted); }
.how-close-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; }

/* ---------------------------------------------------------
   8. PHONES
   The stage pins at the top and the chapters scroll beneath.
   --------------------------------------------------------- */
@media (max-width: 900px) {
    .how-story-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .how-stage-col { order: -1; position: sticky; top: var(--nav-height, 64px); z-index: 5; height: 0; }
    .how-stage { position: relative; top: 0.6rem; height: auto; }
    .how-box { width: 100%; }
    .how-chapters { padding-top: calc(62.5vw + 9rem); }
    .how-chapter { display: flex; align-items: flex-end; min-height: 95vh; }
    .how-copy { position: sticky; top: auto; bottom: 6vh; padding: 1.2rem 0; }
    .how-switch button { padding: 0.45rem 0.55rem; font-size: 0.6rem; }
}

/* ---------------------------------------------------------
   9. REDUCED MOTION
   Scenes still follow the scroll, which the reader controls;
   the looping decoration stands still.
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .how-drift { display: none; }
    .how-hero-core, .how-hero-core::before, .how-hero-core::after, .how-scroll-cue i, .how-hint::before,
    .sc-field .tile, .sc-wire i, .sc-caret, .sc-stream-caret { animation: none !important; }
}
