/* Motion pass: preserve content, add atmosphere and narrative. */
#hero-current { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.hero--editorial { isolation: isolate; }
.hero--editorial::before { opacity: .8; }
.hero--editorial .hero-editorial-grid { z-index: 2; }
/* Keep account text on an untransformed plane; animate only the surrounding light. */
.hero-proof-card { perspective: none; }
.proof-image { overflow: visible; }
.proof-image picture { display: block; }
.proof-image img { transform: none; transition: none; }
@media (min-width: 1001px) {
  .proof-image img { max-height: 560px; }
}
html[data-motion="on"] .hero-editorial-copy h1 .g { background-size: 200% 100%; animation: lightAcrossType 12s ease-in-out infinite; }
@keyframes lightAcrossType { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.motion-toggle { position: fixed; z-index: 55; right: 22px; bottom: 20px; display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 9px 13px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--silver); background: rgb(7 8 6 / .9); backdrop-filter: blur(12px); font: 500 .71rem var(--font); letter-spacing: .035em; cursor: pointer; transition: color .2s,border-color .2s; }
.motion-toggle[hidden] { display: none; }
.motion-toggle:hover { color: var(--mist); border-color: var(--champagne); }
.motion-toggle:disabled { opacity: .8; cursor: default; }
.motion-icon { width: 13px; height: 13px; display: inline-flex; align-items: center; gap: 3px; }
.motion-icon::before,.motion-icon::after { content: ''; width: 3px; height: 9px; background: var(--champagne); border-radius: 1px; }
.motion-toggle[aria-pressed="false"] .motion-icon::before { width: 0; height: 0; background: none; border: 5px solid transparent; border-right: 0; border-left: 8px solid var(--champagne); border-radius: 0; }
.motion-toggle[aria-pressed="false"] .motion-icon::after { display: none; }
html[data-motion="off"] .proof-image picture,html.motion-tab-hidden .proof-image picture { animation-play-state: paused; }
html[data-motion="off"] .hero-editorial-copy h1 .g,html.motion-tab-hidden .hero-editorial-copy h1 .g { animation-play-state: paused; }
@media (max-width: 720px) {
  .motion-toggle { right: 12px; bottom: 12px; width: 44px; height: 44px; min-height: 44px; padding: 0; justify-content: center; }
  .motion-toggle .motion-label { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
}
/* Small interaction responses, not another wall of effects. */
html[data-motion="on"] .hero--editorial:not(.motion-visible) .proof-image picture,html[data-motion="on"] .hero--editorial:not(.motion-visible) h1 .g { animation-play-state: paused; }
.btn--grad { position: relative; overflow: hidden; isolation: isolate; }
.btn--grad::after { content: ''; position: absolute; inset: -70% -30%; pointer-events: none; background: linear-gradient(110deg,transparent 35%,rgb(255 255 255 / .36) 48%,transparent 61%); transform: translateX(-130%); transition: transform .65s var(--ease); }
html[data-motion="on"] .btn--grad:hover::after,html[data-motion="on"] .btn--grad:focus-visible::after { transform: translateX(130%); }
.setup-step-heading { transition: background .25s; }
.setup-step-heading:hover { background: rgb(227 255 184 / .025); }
/* Keep guide labels sharp and focus markers fixed to their actual controls. */
.setup-screen img { transition: none; }
html[data-motion="on"] .setup-screen a:hover img { transform: none; }
.fig { position: relative; }
.fig::before { content: ''; position: absolute; inset: -1px 0 auto; height: 1px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.fig.motion-entered::before { transform: scaleX(1); }
.close-card::before { animation: closingLight 11s ease-in-out infinite; animation-play-state: paused; }
html[data-motion="on"] .close-card.motion-visible::before { animation-play-state: running; }
html.motion-tab-hidden .close-card::before { animation-play-state: paused; }
@keyframes closingLight { 0%,100% { transform: translateX(-58%) scale(.9);opacity:.65; } 50% { transform: translateX(-42%) scale(1.08);opacity:1; } }
/* One shared cycle: station pulses match the signal dwell and travel phases. */
@property --flow-position { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
.how--story { background: var(--deep); border-block: 1px solid var(--line); padding-block: clamp(48px,5vw,72px); overflow: hidden; }
.how--story::before { background: radial-gradient(ellipse at 50% 52%,rgb(101 173 0 / .14),transparent 65%); }
.how--story .how-story-head { margin-bottom: 32px; }
.how--story .flow-story { --flow-duration: 7.2s; gap: 0; padding: 0; isolation: isolate; }
.how--story .flow-node { z-index: auto; min-height: 210px; padding: 96px 24px 24px; background: transparent; border: 0; border-radius: 0; gap: 10px; text-align: center; }
.how--story .flow-node + .flow-node { border-left: 1px solid rgb(241 255 220 / .04); }
.how--story .flow-node h3 { font-size: clamp(1.7rem,3vw,2.45rem); letter-spacing: -.045em; }
.how--story .flow-node p { max-width: 28ch; margin-inline: auto; font-size: .94rem; }
.how--story .flow-node-top { z-index: 3; position: absolute; top: 0; inset-inline: 0; display: flex; flex-direction: column; gap: 13px; }
.how--story .flow-node-top > span:first-child { display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--deep); color: var(--silver); font-size: .85rem; letter-spacing: .04em; animation: stationLightFirst var(--flow-duration) linear infinite; animation-play-state: paused; }
.how--story .flow-node-role { font-size: .75rem; color: var(--silver); }
.how--story .flow-node--copyx .flow-node-top > span:first-child { animation-name: stationLightMiddle; }
.how--story .flow-node--you .flow-node-top > span:first-child { animation-name: stationLightLast; }
.how--story .flow-node--you h3 { color: var(--champagne); }
.how--story .flow-story-line { display: block; z-index: 2; top: 28px; left: 16.666%; right: 16.666%; height: 1px; opacity: 1; background: linear-gradient(90deg,var(--champagne),rgb(227 255 184 / .32),var(--champagne)); }
.how--story .flow-story-line::before,.how--story .flow-story-line::after { top: -3px; border-color: var(--champagne); opacity: .7; }
.how--story .flow-story-line span { display: block; position: absolute; left: var(--flow-position); top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--champagne); box-shadow: 0 0 0 5px rgb(255 232 191 / .09),0 0 22px rgb(242 194 91 / .7); animation: tradeSignal var(--flow-duration) linear infinite; animation-play-state: paused; transform: translateX(-50%); }
html[data-motion="on"] .flow-story.motion-visible .flow-story-line span,html[data-motion="on"] .flow-story.motion-visible .flow-node-top > span:first-child { animation-play-state: running; }
html.motion-tab-hidden .flow-story .flow-story-line span,html.motion-tab-hidden .flow-story .flow-node-top > span:first-child { animation-play-state: paused; }
.how--story .flow-story-note { margin-top: 0; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; }
@keyframes tradeSignal { 0% { --flow-position:0%;opacity:0; } 6%,16% { --flow-position:0%;opacity:1; } 40%,50% { --flow-position:50%;opacity:1; } 77%,88% { --flow-position:100%;opacity:1; } 96%,100% { --flow-position:100%;opacity:0; } }
@keyframes stationLightFirst { 0%,16% { color:var(--deep);background:var(--champagne);border-color:var(--champagne);box-shadow:0 0 36px rgb(242 194 91 / .16); } 20%,100% { color:var(--silver);background:var(--deep);border-color:var(--line-2);box-shadow:0 0 0 transparent; } }
@keyframes stationLightMiddle { 0%,36%,54%,100% { color:var(--silver);background:var(--deep);border-color:var(--line-2);box-shadow:0 0 0 transparent; } 40%,50% { color:var(--deep);background:var(--champagne);border-color:var(--champagne);box-shadow:0 0 36px rgb(242 194 91 / .16); } }
@keyframes stationLightLast { 0%,73%,96%,100% { color:var(--silver);background:var(--deep);border-color:var(--line-2);box-shadow:0 0 0 transparent; } 77%,88% { color:var(--deep);background:var(--champagne);border-color:var(--champagne);box-shadow:0 0 36px rgb(242 194 91 / .16); } }
@media (max-width: 720px) {
  .how--story .flow-story { gap: 0; }
  .how--story .flow-node { min-height: 108px; padding: 14px 0; display: grid; grid-template-columns: 56px minmax(0,1fr); gap: 7px 20px; align-content: center; text-align: left; }
  .how--story .flow-node + .flow-node { border-left: 0; }
  .how--story .flow-node-top { position: static; grid-column: 1; grid-row: 1 / 3; align-self: center; }
  .how--story .flow-node-role { display: none; }
  .how--story .flow-node h3 { text-align: left; font-size: 1.65rem; grid-column: 2; }
  .how--story .flow-node p { margin: 0; text-align: left; font-size: .9rem; grid-column: 2; }
  .how--story .flow-story-line { top: 54px; bottom: 54px; left: 28px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg,var(--champagne),rgb(227 255 184 / .32),var(--champagne)); }
  .how--story .flow-story-line span { left: -4px; top: var(--flow-position); transform: translateY(-50%); }
  .how--story .flow-story-line::before,.how--story .flow-story-line::after { left: -3px; transform: rotate(135deg); }
  .how--story .flow-story-line::before { top: 33%; }
  .how--story .flow-story-line::after { top: 66%; }
  .how--story .flow-story-note { margin-left: 0; text-align: left; }
}
html[data-motion="off"] .setup-screen img,html[data-motion="off"] .fig::before,html[data-motion="off"] .proof-image img { transition: none; }
html.motion-tab-hidden .flow-story .flow-story-line span,html.motion-tab-hidden .flow-story .flow-node-top > span:first-child,html.motion-tab-hidden .close-card::before,html.motion-tab-hidden .proof-image picture,html.motion-tab-hidden .hero-editorial-copy h1 .g { animation-play-state: paused !important; }
/* Homepage chapter rhythm: preserve identity; lower visual density with space, not new boxes.
   Variance 4 / motion 3 / density 4 / assets 6 / brand fidelity 9.
   Reveal uses progressive enhancement: content remains visible without JavaScript. */
.chapter-spacing { --chapter-space: clamp(56px, 6vw, 88px); --chapter-inner: clamp(24px, 3vw, 40px); }
.chapter-spacing main > :is(.how--story, .numbers, .guide-entry, .calcsec, .faq) { padding-block: var(--chapter-space); }
.chapter-spacing .latest-trade { padding-top: 12px; padding-bottom: clamp(48px, 5vw, 72px); }
.chapter-spacing .how--story .how-story-head,
.chapter-spacing .evidence-heading,
.chapter-spacing .calc-head { margin-bottom: var(--chapter-inner); }
.chapter-spacing .how--story .flow-story-note { margin-top: 24px; padding-top: 28px; }
.chapter-spacing .evidence-foot { margin-top: 32px; }
.chapter-spacing .close { padding-top: 24px; padding-bottom: var(--chapter-space); }
/* Keep the homepage FAQ heading in normal flow, alongside its questions. */
.chapter-spacing #faq .sec-head { position: static; top: auto; }
/* Reuse the existing result dividers; draw once rather than add decoration. */
.chapter-spacing #evidence .fig { border-top-color: transparent; }
.chapter-spacing #evidence .fig::before { background: var(--line-2); transform: scaleX(1); transition: none; }
@media (prefers-reduced-motion: no-preference) {
  html[data-motion="on"] .chapter-spacing #evidence .fig.chapter-pending::before { transform: scaleX(0); }
  html[data-motion="on"] .chapter-spacing #evidence .fig.motion-entered::before { transform: scaleX(1); transition: transform 1200ms cubic-bezier(.22,.61,.36,1); transition-delay: var(--reveal-delay, 0ms); }
}
/* Only JS-armed, offscreen groups wait for entry. Pause/reduced motion shows them immediately. */
@media (prefers-reduced-motion: no-preference) {
  html[data-motion="on"] .chapter-spacing .chapter-pending { opacity: 0; transform: translateY(44px); }
}
@media print {
  .chapter-spacing .chapter-pending { opacity: 1 !important; transform: none !important; }
}
@media (max-width: 720px) {
  .chapter-spacing { --chapter-space: 64px; --chapter-inner: 32px; }
  .chapter-spacing .latest-trade { padding-top: 8px; padding-bottom: 40px; }
  .chapter-spacing .guide-entry-grid { gap: 32px; }
  .chapter-spacing .how--story .flow-story-note { margin-top: 16px; padding-top: 24px; }
  .chapter-spacing .close { padding-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  #hero-current { opacity: .65; }
  .proof-image picture,.proof-image img { transform: none !important; animation: none !important; }
}

/* calmer decorative hero current (2026-11-01) */
#hero-current{opacity:.4}
