/* Astra Labs — landing v2.
 *
 * Standalone, file://-openable narrative page. Tokens are lifted verbatim from
 * Visualizer/static/landing.css so both pages share one visual language.
 *
 * Two art directions, not an inversion:
 *   dark  = "instrument"    — near-black ground, additive bloom, glowing strokes
 *   light = "plotter print" — warm paper, ink-dark strokes, multiply ink-bleed
 */

/* ═══════════════════════════ TOKENS ═══════════════════════════ */

:root {
    /* Neutrals alias the shared foundation (ui-foundations.css) so the landing
       page and the three workspaces are one palette.  The accent set below is
       unchanged: it is this page's art direction. */
    --ink: var(--trl-ground);
    --ink-raised: var(--trl-page);
    --panel: var(--trl-panel);
    --panel-2: var(--trl-raised);
    --panel-3: var(--trl-hover);
    --line: var(--trl-border-soft);
    --line-strong: var(--trl-border);
    --text: var(--trl-text);
    --text-soft: var(--trl-secondary);
    --text-dim: var(--trl-dim);
    --purple: #a855f7;
    --purple-deep: #7c3aed;
    --blue: #2962ff;
    --blue-light: #6f91ff;
    --orange: #ff6d00;
    --red: #ef5350;
    --green: #26a69a;
    --teal: #4dd0e1;
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --mono: "JetBrains Mono", Consolas, monospace;
    --maxw: 1240px;
    --nav-h: 72px;
    --ease: cubic-bezier(.22, .61, .36, 1);

    --shell: rgba(11, 14, 24, .62);
    --shell-blur: blur(22px) saturate(140%);
    --glow-a: rgba(41, 98, 255, .12);
    --glow-b: rgba(168, 85, 247, .09);
    --btn-ink: #fff;
    --focus: var(--blue-light);
}

/* Plotter print. Accents desaturate ~15% so they survive on paper. */
html[data-theme="light"] {
    --ink: var(--trl-ground);
    --ink-raised: var(--trl-page);
    --panel: var(--trl-panel);
    --panel-2: var(--trl-raised);
    --panel-3: var(--trl-hover);
    --line: var(--trl-border-soft);
    --line-strong: var(--trl-border);
    --text: var(--trl-text);
    --text-soft: var(--trl-secondary);
    --text-dim: var(--trl-dim);
    --purple: #8b3fd4;
    --purple-deep: #6a2fc0;
    --blue: #1f4fd8;
    --blue-light: #3f68d4;
    --orange: #d95a08;
    --red: #c94340;
    --green: #1e8a80;
    --teal: #2c9fb0;

    --shell: rgba(242, 239, 232, .74);
    --glow-a: rgba(31, 79, 216, .07);
    --glow-b: rgba(139, 63, 212, .05);
    --btn-ink: #f8f6f1;
    --focus: var(--blue);
}

/* ═══════════════════════════ BASE ═══════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    background: var(--ink);
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 24px);
    -webkit-text-size-adjust: 100%;
}

body {
    min-width: 320px;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(94% 52% at 52% -14%, var(--glow-a), transparent 66%),
        var(--ink);
    font: 14px/1.55 var(--font);
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
canvas { display: block; }
img, svg { max-width: 100%; }

:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
    border-radius: 4px;
}

.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: 28px;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 10000;
    padding: 10px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--panel);
    color: var(--text);
    font: 500 11px/1 var(--mono);
    letter-spacing: .08em;
    transform: translateY(-180%);
    transition: transform .2s var(--ease);
}
.skip-link:focus-visible { transform: none; }

/* Shader grain replaces this in the WebGL path; it only shows in the fallback. */
.css-grain {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: none;
    pointer-events: none;
    opacity: .025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}
html.no-webgl .css-grain { display: block; }
html[data-theme="light"] .css-grain { opacity: .05; mix-blend-mode: multiply; }

/* ═══════════════════════════ TYPE IDIOMS ═══════════════════════════ */

/* Mono micro-label — the page's signature small type. */
.kicker,
.act-index,
.portal-tag,
.frame-head,
.frame-foot,
.eyebrow,
.act-micro,
.hero-cue,
.ribbon-item,
.records-footnote,
.act-ticks {
    font-family: var(--mono);
    letter-spacing: .14em;
    text-transform: uppercase;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    color: var(--text-dim);
    font-size: 9.5px;
    font-weight: 500;
    line-height: 1;
}
.kicker::before {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--line-strong);
}
.kicker.center { justify-content: center; }

h1, h2, h3 {
    font-weight: 640;
    letter-spacing: -.042em;
    line-height: 1.04;
    text-wrap: balance;
}

.section-head { max-width: 720px; margin-bottom: clamp(44px, 5vw, 72px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 3.5vw, 47px); }
.section-head p {
    max-width: 620px;
    margin-top: 20px;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.78;
}
.section-head.center p { margin-inline: auto; }

/* ═══════════════════════════ BUTTONS ═══════════════════════════ */

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 40px;
    padding: 0 17px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 560;
    letter-spacing: -.005em;
    white-space: nowrap;
    transition: transform .22s var(--ease), background .22s var(--ease),
                border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 14.5px; }

.btn-primary {
    background: linear-gradient(135deg, var(--purple-deep), var(--blue));
    color: var(--btn-ink);
    box-shadow: 0 10px 30px -14px rgba(41, 98, 255, .8);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -14px rgba(41, 98, 255, .9); }

.btn-ghost {
    border-color: var(--line-strong);
    background: color-mix(in srgb, var(--panel) 60%, transparent);
    color: var(--text);
}
.btn-ghost:hover { border-color: var(--text-dim); background: var(--panel-2); }
.btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.nav-signin,
.nav-logout {
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .025em;
    transition: color .2s ease;
}
.nav-signin:hover { color: var(--text); }
.nav-logout:hover { color: var(--red); }
.nav-auth-out,
.nav-auth-in { display: inline-flex; align-items: center; gap: 14px; }

/* ═══════════════════════════ CURSOR ═══════════════════════════ */

.cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9000;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: plus-lighter;
    transition: opacity .3s ease;
}
.cursor.on { opacity: 1; }
.cursor i {
    position: absolute;
    background: color-mix(in srgb, var(--blue-light) 70%, transparent);
}
.cursor-h { left: -13px; top: -.5px; width: 26px; height: 1px; }
.cursor-v { top: -13px; left: -.5px; width: 1px; height: 26px; }
.cursor::after {
    content: "";
    position: absolute;
    inset: -5px;
    border: 1px solid color-mix(in srgb, var(--blue-light) 46%, transparent);
    border-radius: 50%;
    transition: inset .25s var(--ease), border-color .25s var(--ease);
}
.cursor.mag::after { inset: -17px; border-color: color-mix(in srgb, var(--purple) 62%, transparent); }
.cursor-readout {
    position: absolute;
    left: 16px;
    top: 10px;
    color: var(--text-dim);
    font: 500 8.5px/1 var(--mono);
    letter-spacing: .14em;
    white-space: nowrap;
}
html[data-theme="light"] .cursor { mix-blend-mode: multiply; }
@media (pointer: coarse), (hover: none) {
    .cursor { display: none !important; }
}

/* ═══════════════════════════ NAV ═══════════════════════════ */

.nav {
    position: sticky;
    top: 0;
    z-index: 500;
    height: var(--nav-h);
    border-bottom: 1px solid var(--line);
    background: var(--shell);
    backdrop-filter: var(--shell-blur);
    -webkit-backdrop-filter: var(--shell-blur);
}
.nav-inner {
    display: flex;
    align-items: center;
    gap: 26px;
    height: 100%;
}

/* The brand must be allowed to shrink, or it pushes .nav-cta past the viewport
   edge on narrow screens and opens a horizontal scrollbar. */
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.logo-wave { width: 34px; height: 19px; flex: none; }
.brand-name {
    min-width: 0;
    overflow: hidden;
    font-size: 14px;
    font-weight: 620;
    letter-spacing: -.022em;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.brand-name em {
    color: var(--text-dim);
    font-style: normal;
    font-weight: 480;
}

.nav-links {
    display: flex;
    gap: 26px;
    margin-left: auto;
    font-size: 13px;
    font-weight: 500;
}
.nav-links a {
    position: relative;
    color: var(--text-soft);
    padding-block: 6px;
    transition: color .2s ease;
}
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .28s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: none; }

.nav-cta { display: flex; align-items: center; gap: 12px; flex: none; }

.theme-toggle {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text-soft);
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.theme-toggle:hover { color: var(--text); border-color: var(--line-strong); background: var(--panel); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-light { display: none; }
html[data-theme="light"] .theme-toggle .icon-dark { display: none; }
html[data-theme="light"] .theme-toggle .icon-light { display: block; }

.nav-toggle {
    display: none;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text-soft);
}

/* ═══════════════════════════ HERO ═══════════════════════════ */

.hero {
    position: relative;
    display: grid;
    align-content: center;
    min-height: calc(100vh - var(--nav-h));
    min-height: calc(100svh - var(--nav-h));
    padding: clamp(48px, 7vh, 92px) 0 clamp(66px, 9vh, 106px);
    overflow: hidden;
}
.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .9;
}
.hero-veil {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(84% 72% at 22% 48%, var(--ink) 30%, transparent 82%),
        radial-gradient(58% 48% at 78% 12%, var(--glow-b), transparent 70%);
}
.hero-inner { position: relative; max-width: 1010px; }

.eyebrow {
    display: inline-block;
    margin-bottom: 26px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: color-mix(in srgb, var(--panel) 55%, transparent);
    color: var(--text-soft);
    font-size: 9px;
    font-weight: 500;
    line-height: 1;
}

.hero-title {
    font-size: clamp(37px, 6.4vw, 80px);
    font-weight: 660;
    letter-spacing: -.05em;
    line-height: 1;
}
/* overflow:hidden masks the per-character reveal; the padding/margin pair keeps
   descenders from being clipped by that mask. */
.hero-title .line {
    display: block;
    overflow: hidden;
    padding-bottom: .09em;
    margin-bottom: -.09em;
}
.hero-title .grad {
    background: linear-gradient(102deg, var(--purple) 4%, var(--blue) 48%, var(--teal) 96%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
/* Per-character reveal. The char spans are injected by JS; without JS the
   plain text in .line renders untouched. Words stay nowrap so the headline
   only ever breaks at spaces. */
.hero-title .word { display: inline-block; white-space: nowrap; }
.hero-title .ch {
    display: inline-block;
    will-change: transform, opacity;
}
/* The reveal transforms every .ch, and a transformed descendant stops the
   parent's background-clip:text painting through it — which left this line
   invisible. Each character carries its own copy of the gradient instead;
   paintGradientChars() sizes it to the whole line and offsets it by the
   character's layout position so the line still reads as one ramp. */
.hero-title .grad .ch {
    background-image: linear-gradient(102deg, var(--purple) 4%, var(--blue) 48%, var(--teal) 96%);
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-copy {
    max-width: 616px;
    margin-top: 30px;
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.76;
}
.hero-copy strong { color: var(--text); font-weight: 560; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; margin-top: 38px; }

/* Session-aware return path.  Deliberately a ghost button: a convenience
   beside the primary entry, not a competing call to action. */
.trl-resume[hidden] { display: none; }
.trl-resume { max-width: 100%; }
.trl-resume span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hero-resume-note {
    margin-top: 14px;
    color: var(--text-dim);
    font-size: 12px;
}

.hero-resume-note[hidden] { display: none; }
.hero-actions:has(#heroLaunch[data-resume-target]) > a[href="#method"] { display: none; }
.hero-resume-note { font-family: var(--mono); font-size: 11px; letter-spacing: .025em; }

@media (max-width: 580px) {
    .nav .nav-inner { gap: 10px; }
    .nav .brand-name { display: none; }
    .nav-cta { gap: 8px; margin-left: auto; }
    .nav-auth-in, .nav-auth-out { gap: 8px; }
    .nav-cta .btn { padding-inline: 10px; font-size: 12px; }
    .hero-veil { background: linear-gradient(180deg, var(--ink), color-mix(in srgb, var(--ink) 82%, transparent) 72%, transparent); }
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(28px, 4vw, 58px);
    margin-top: 52px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}
.trust-stat { display: grid; gap: 7px; }
.trust-stat b {
    font-size: 27px;
    font-weight: 640;
    letter-spacing: -.038em;
    line-height: 1;
}
.trust-stat span {
    color: var(--text-dim);
    font: 500 9px/1 var(--mono);
    letter-spacing: .13em;
    text-transform: uppercase;
}

.hero-cue {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dim);
    font-size: 8.5px;
    font-weight: 500;
}
.hero-cue i {
    width: 1px;
    height: 26px;
    background: linear-gradient(var(--line-strong), transparent);
    animation: cueDrift 2.4s var(--ease) infinite;
}
@keyframes cueDrift {
    0%, 100% { transform: scaleY(.4); opacity: .4; transform-origin: top; }
    50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

/* ═══════════════════════════ RIBBON ═══════════════════════════ */

.ribbon {
    position: relative;
    border-block: 1px solid var(--line);
    background: color-mix(in srgb, var(--ink-raised) 72%, transparent);
    overflow: hidden;
}
.ribbon::before,
.ribbon::after {
    content: "";
    position: absolute;
    top: 0;
    z-index: 2;
    width: 90px;
    height: 100%;
    pointer-events: none;
}
.ribbon::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.ribbon::after { right: 0; background: linear-gradient(270deg, var(--ink), transparent); }

.ribbon-track {
    display: flex;
    gap: 46px;
    width: max-content;
    padding: 17px 0;
    animation: ribbonRoll 42s linear infinite;
}
.ribbon-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-soft);
    font-size: 9px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}
.ribbon-item i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--item-color);
    box-shadow: 0 0 12px var(--item-color);
}
@keyframes ribbonRoll {
    from { transform: none; }
    to { transform: translateX(-50%); }
}

/* ═══════════════════════════ STORY ═══════════════════════════ */

.story-intro { padding: clamp(94px, 12vh, 150px) 0 clamp(30px, 4vh, 52px); }

.story { position: relative; }

/* Static-first. With no JS — or under reduced motion — the four acts are plain
   flow content, each with its own composed still frame, and nothing is pinned.
   The pinned single-act stage below is layered on by `html.js-story`. */

.story-stage { position: relative; }

.stage-inner {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding: 0 28px clamp(40px, 6vh, 76px);
}

.act-static {
    display: block;
    width: 100%;
    max-width: 620px;
    height: auto;
    margin-bottom: 26px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: color-mix(in srgb, var(--ink-raised) 82%, transparent);
}

.act-ticks { display: none; }

/* ── the art panel (enhanced path only) ── */

.stage-art {
    display: none;
    position: relative;
    /* Capped so the panel aspect stays close to the plotter's, which keeps the
       contain-fit from wasting a third of the frame on letterboxing. */
    height: min(100%, 560px);
    min-height: 0;
    border: 1px solid var(--line);
    border-radius: 15px;
    background:
        radial-gradient(78% 62% at 50% 40%, color-mix(in srgb, var(--panel) 74%, transparent), transparent 72%),
        color-mix(in srgb, var(--ink-raised) 82%, transparent);
    overflow: hidden;
}
.stage-art::before,
.stage-art::after {
    content: "";
    position: absolute;
    z-index: 3;
    width: 13px;
    height: 13px;
    border: 1px solid var(--line-strong);
    pointer-events: none;
}
.stage-art::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.stage-art::after { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }

.art-canvas {
    position: absolute;
    inset: 42px 16px 38px;
}
.art-canvas canvas {
    width: 100%;
    height: 100%;
}
/* Layer A promoted to visible when the post chain is unavailable. */
.art-canvas .plot-visible { position: absolute; inset: 0; }
.art-canvas .plot-bloom {
    position: absolute;
    inset: 0;
    filter: blur(13px) saturate(150%);
    mix-blend-mode: plus-lighter;
    opacity: .8;
    pointer-events: none;
}
html[data-theme="light"] .art-canvas .plot-bloom { mix-blend-mode: multiply; opacity: .5; }

.frame-head,
.frame-foot {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 17px;
    color: var(--text-dim);
    font-size: 8.5px;
    font-weight: 500;
    line-height: 1;
    pointer-events: none;
}
.frame-head { top: 0; height: 42px; border-bottom: 1px solid var(--line); }
.frame-foot { bottom: 0; height: 38px; border-top: 1px solid var(--line); }
.frame-head b {
    color: var(--act-live, var(--teal));
    font-weight: 500;
    transition: color .34s var(--ease);
}

/* ── the act copy ── */

.act-copy {
    padding: 46px 0;
    border-top: 1px solid var(--line);
}
.act-copy:last-child { border-bottom: 1px solid var(--line); }

.act-index {
    margin-bottom: 17px;
    color: var(--act-color);
    font-size: 9.5px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .15em;
}
.act-copy h3 {
    max-width: 460px;
    font-size: clamp(25px, 2.9vw, 42px);
    font-weight: 640;
    letter-spacing: -.043em;
    line-height: 1.05;
}
.act-copy p {
    max-width: 470px;
    margin-top: 18px;
    color: var(--text-soft);
    font-size: 14.5px;
    line-height: 1.76;
}
.act-micro {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    margin-top: 24px;
    padding: 7px 10px;
    border: 1px solid color-mix(in srgb, var(--act-color) 34%, transparent);
    border-radius: 6px;
    background: color-mix(in srgb, var(--act-color) 9%, transparent);
    color: color-mix(in srgb, var(--act-color) 74%, var(--text));
    font-size: 8px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: .11em;
}

/* ── act ticks ── */

.act-ticks {
    position: absolute;
    left: 50%;
    bottom: 22px;
    z-index: 4;
    gap: 20px;
    width: 100%;
    max-width: var(--maxw);
    padding-inline: 28px;
    transform: translateX(-50%);
    list-style: none;
    color: var(--text-dim);
    font-size: 8.5px;
    font-weight: 500;
    line-height: 1;
    pointer-events: none;
}
.act-ticks li { display: inline-flex; align-items: center; gap: 8px; opacity: .4; transition: opacity .34s var(--ease); }
.act-ticks i {
    width: 26px;
    height: 1px;
    background: currentColor;
    transition: background .34s var(--ease), width .34s var(--ease);
}
#story-stage[data-act="0"] li[data-tick="0"],
#story-stage[data-act="1"] li[data-tick="1"],
#story-stage[data-act="2"] li[data-tick="2"],
#story-stage[data-act="3"] li[data-tick="3"],
#story-stage[data-act="4"] li[data-tick="4"] { opacity: 1; }
#story-stage[data-act="0"] li[data-tick="0"] i { background: var(--teal); width: 40px; }
#story-stage[data-act="1"] li[data-tick="1"] i { background: var(--purple); width: 40px; }
#story-stage[data-act="2"] li[data-tick="2"] i { background: var(--blue); width: 40px; }
#story-stage[data-act="3"] li[data-tick="3"] i { background: var(--orange); width: 40px; }
#story-stage[data-act="4"] li[data-tick="4"] i { background: var(--green); width: 40px; }

/* ── enhanced: the pinned single-act stage ──
   Added by landing-v2.js only when GSAP + ScrollTrigger are present and the
   user has not asked for reduced motion. The act copy lives INSIDE the pinned
   stage, so a step can never be half-scrolled past its own artwork. */

html.js-story .story-stage {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}
html.js-story .stage-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    gap: clamp(26px, 3.6vw, 68px);
    align-items: center;
    height: 100%;
    padding: calc(var(--nav-h) + 20px) 28px 62px;
}
html.js-story .stage-art { display: block; }
html.js-story .act-static { display: none; }
html.js-story .act-ticks { display: flex; }

html.js-story .stage-copy { position: relative; display: grid; }
html.js-story .act-copy {
    grid-area: 1 / 1;
    min-width: 0;
    align-self: center;
    padding: 0;
    border: 0;
    opacity: 0;
    visibility: hidden;
    clip-path: inset(0 0 100% 0);
    transform: translateY(15px);
    /* Out in 220ms. visibility flips only after the fade completes. */
    transition: opacity .22s ease,
                visibility 0s linear .22s,
                clip-path .3s var(--ease),
                transform .3s var(--ease);
}
/* In is delayed 160ms behind the outgoing block, so there is never a frame
   with two headlines readable. */
html.js-story #story-stage[data-act="0"] .act-copy[data-act-index="0"],
html.js-story #story-stage[data-act="1"] .act-copy[data-act-index="1"],
html.js-story #story-stage[data-act="2"] .act-copy[data-act-index="2"],
html.js-story #story-stage[data-act="3"] .act-copy[data-act-index="3"],
html.js-story #story-stage[data-act="4"] .act-copy[data-act-index="4"] {
    opacity: 1;
    visibility: visible;
    clip-path: inset(0 0 0 0);
    transform: none;
    transition: opacity .34s var(--ease) .16s,
                visibility 0s,
                clip-path .42s var(--ease) .16s,
                transform .46s var(--ease) .16s;
}

/* ═══════════════════════════ PLATFORM ═══════════════════════════ */

.platform { padding: clamp(96px, 13vh, 158px) 0; }

.portal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.portal {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 460px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: linear-gradient(170deg, var(--panel) 6%, var(--ink-raised) 88%);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.portal:hover {
    border-color: var(--line-strong);
    box-shadow: 0 30px 62px -34px rgba(0, 0, 0, .8);
}
.portal-art {
    position: relative;
    height: 232px;
    flex: none;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}
.portal-art canvas { width: 100%; height: 100%; }
.portal-copy {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 26px 24px 24px;
}
.portal-tag {
    margin-bottom: 15px;
    color: var(--text-dim);
    font-size: 8.5px;
    font-weight: 500;
    line-height: 1;
}
.portal-copy h3 { font-size: 21px; letter-spacing: -.032em; }
.portal-copy p {
    margin-top: 13px;
    color: var(--text-soft);
    font-size: 13.5px;
    line-height: 1.72;
}
.portal-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 22px;
    color: var(--text);
    font-size: 12.5px;
    font-weight: 560;
}
[data-portal="stems"] .portal-link { color: var(--trl-dashboard-text); }
[data-portal="wave"] .portal-link { color: var(--trl-forecast-text); }
[data-portal="radar"] .portal-link { color: var(--trl-trading-text); }
.portal-link svg { width: 16px; height: 16px; transition: transform .26s var(--ease); }
.portal:hover .portal-link svg { transform: translateX(4px); }

/* ═══════════════════════════ RECORDS ═══════════════════════════ */

.records { padding: clamp(90px, 12vh, 146px) 0; }

.records-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: -22px;
}
.records-meta-item {
    display: grid;
    gap: 8px;
    padding: 19px 20px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: color-mix(in srgb, var(--panel) 52%, transparent);
}
.records-meta-item b { font-size: 14px; font-weight: 600; letter-spacing: -.02em; }
.records-meta-item span {
    color: var(--text-dim);
    font: 500 8.5px/1.4 var(--mono);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.marquee {
    position: relative;
    margin: clamp(38px, 5vw, 62px) 0 clamp(26px, 3vw, 40px);
    overflow: hidden;
}
.marquee::before,
.marquee::after {
    content: "";
    position: absolute;
    top: 0;
    z-index: 2;
    width: 110px;
    height: 100%;
    pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--ink), transparent); }

.marquee-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: marqueeRoll 64s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marqueeRoll {
    from { transform: none; }
    to { transform: translateX(-50%); }
}

.scard {
    width: 280px;
    flex: none;
    padding: 19px 20px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: linear-gradient(168deg, var(--panel) 4%, var(--ink-raised) 92%);
}
.scard-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.scard-asset { font-size: 14.5px; font-weight: 620; letter-spacing: -.024em; }
.scard-name {
    color: var(--text-dim);
    font: 500 8px/1 var(--mono);
    letter-spacing: .13em;
    text-transform: uppercase;
}
.scard-rows { display: grid; gap: 9px; padding-top: 14px; }
.scard-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.scard-row span {
    color: var(--text-dim);
    font: 500 8px/1 var(--mono);
    letter-spacing: .12em;
    text-transform: uppercase;
}
.scard-row b { font: 500 12.5px/1 var(--mono); letter-spacing: -.01em; }
.scard-row b.pos { color: var(--green); }
.scard-row b.neg { color: var(--red); }

/* Served-mode replacement for the marquee when summaries cannot be read.
   Deliberately plain: it is an absence of data, not a marketing surface. */
.records-unavailable {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 28px;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: var(--trl-radius-card, 10px);
    background: color-mix(in srgb, var(--panel) 55%, transparent);
    color: var(--text-soft);
    font-size: 13px;
    text-align: center;
}

.records-unavailable[hidden] { display: none; }
.records-unavailable p { margin: 0; }
.records-unavailable .btn { min-height: 36px; font-size: 12px; }

.records-footnote {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-dim);
    font-family: var(--font);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.6;
}

.records-footnote-note[hidden] { display: none !important; }

/* ═══════════════════════════ PRICING ═══════════════════════════ */

.pricing { padding: clamp(90px, 12vh, 140px) 0; }
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
    margin-top: clamp(36px, 5vw, 56px);
}
.pricing-card {
    --tier-color: var(--blue);
    position: relative;
    min-height: 510px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 27px 24px 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(168deg, var(--panel) 4%, var(--ink-raised) 92%);
    transition: transform .3s var(--ease), border-color .3s ease, box-shadow .3s ease;
}
.pricing-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .14;
    background: radial-gradient(circle at 100% 0, var(--tier-color), transparent 43%);
}
.pricing-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--tier-color) 48%, transparent);
}
.pricing-card.basic { --tier-color: var(--teal); }
.pricing-card.pro { --tier-color: var(--blue); }
.pricing-card.ultra { --tier-color: var(--purple); }
.pricing-card.institutional { --tier-color: var(--orange); }
.pricing-card.featured {
    border-color: color-mix(in srgb, var(--purple) 55%, transparent);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--blue) 22%, transparent),
                0 22px 60px color-mix(in srgb, var(--purple) 14%, transparent);
}
.pricing-flag {
    position: absolute;
    top: 16px;
    right: -31px;
    width: 126px;
    padding: 6px 0;
    transform: rotate(38deg);
    color: #fff;
    background: linear-gradient(90deg, var(--purple), var(--blue));
    font: 600 7px/1 var(--mono);
    letter-spacing: .1em;
    text-align: center;
    text-transform: uppercase;
}
.pricing-card-top { position: relative; min-height: 142px; }
.pricing-index {
    color: var(--tier-color);
    font: 600 8px/1 var(--mono);
    letter-spacing: .13em;
    text-transform: uppercase;
}
.pricing-card h3 {
    margin-top: 15px;
    font-size: 28px;
    line-height: 1;
    font-weight: 650;
    letter-spacing: -.04em;
}
.pricing-card-top p {
    margin-top: 13px;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.65;
}
.pricing-amount {
    position: relative;
    margin: 18px 0 22px;
    padding: 14px 0;
    border-block: 1px solid var(--line);
    color: var(--text);
    font: 600 16px/1 var(--mono);
    letter-spacing: -.02em;
}
.pricing-amount.contact { color: var(--orange); }
.pricing-features {
    position: relative;
    flex: 1;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 26px;
}
.pricing-features li {
    display: flex;
    gap: 9px;
    color: var(--text-soft);
    font-size: 11px;
    line-height: 1.45;
}
.pricing-features li::before {
    content: "◆";
    flex: 0 0 auto;
    color: var(--tier-color);
    font-size: 7px;
    line-height: 1.9;
}
.pricing-features li.excluded { color: var(--text-dim); }
.pricing-features li.excluded::before { content: "—"; }
.pricing-card .btn { position: relative; width: 100%; }

/* ═══════════════════════════ AUTH MODAL ═══════════════════════════ */

.auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 600;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    /* Symmetric gutters.  The old right-only inset collapsed to zero on the
       left as soon as the panel filled a narrow viewport. */
    padding: calc(var(--nav-h) + 10px) clamp(12px, 2vw, 28px) 16px;
    opacity: 0;
    pointer-events: none;
    background: rgba(0, 0, 0, .58);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: opacity .18s ease;
    /* The overlay scrolls, not the panel: a form taller than the viewport
       keeps its own layout, and its close control stays reachable instead of
       starting above the viewport. */
    overflow-y: auto;
    overscroll-behavior: contain;
}
.auth-overlay.open { opacity: 1; pointer-events: auto; }
.auth-panel {
    position: relative;
    width: 320px;
    max-width: 100%;
    flex: 0 0 auto;
    padding: 24px 22px 20px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: var(--panel-2);
    box-shadow: 0 18px 55px rgba(0, 0, 0, .52);
    transform: translateY(-8px);
    transition: transform .18s ease;
}
.auth-overlay.open .auth-panel { transform: translateY(0); }
.auth-panel h2 { margin-bottom: 4px; font-size: 16px; font-weight: 700; }
.auth-panel .auth-sub { margin-bottom: 16px; color: var(--text-soft); font-size: 12px; }
.auth-panel label,
#authFbView label {
    display: block;
    margin: 12px 0 6px;
    color: var(--text-dim);
    font: 600 10px/1 var(--mono);
    letter-spacing: .08em;
    text-transform: uppercase;
}
.auth-panel input,
#authFbView input {
    width: 100%;
    padding: 10px 11px;
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    outline: none;
    color: var(--text);
    background: var(--ink);
    font-size: 13px;
    transition: border-color .15s ease;
}
.auth-panel input:focus,
#authFbView input:focus { border-color: var(--purple); }
.auth-pass-wrap { position: relative; margin-bottom: 12px; }
.auth-pass-wrap input { padding-right: 42px; }
.auth-pass-toggle svg { width: 16px; height: 16px; display: block; margin: 0 auto; }
.auth-pass-toggle {
    position: absolute;
    top: 2px;
    right: 2px;
    bottom: 2px;
    width: 36px;
    border: 0;
    border-radius: 5px;
    color: var(--text-dim);
    background: none;
    cursor: pointer;
}
.auth-panel .btn { width: 100%; margin-top: 4px; }
.auth-error {
    display: none;
    margin-top: 10px;
    padding: 7px 9px;
    border: 1px solid color-mix(in srgb, var(--red) 35%, transparent);
    border-radius: 5px;
    color: var(--red);
    background: color-mix(in srgb, var(--red) 7%, transparent);
    font-size: 12px;
}
.auth-error.visible { display: block; }
/* auto block margins centre the panel while it fits and collapse to zero
   once it does not, so a tall sign-up form is never pushed above the
   scroll start (which is what align-items:center did). */
.auth-overlay.centered { align-items: flex-start; justify-content: center; padding: 24px; }
.auth-overlay.centered .auth-panel { margin-block: auto; }
.auth-panel.wide { position: relative; width: 420px; max-width: 100%; }
.auth-tier-context {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: -4px 28px 16px 0;
    padding: 8px 10px;
    border: 1px solid color-mix(in srgb, var(--blue) 28%, transparent);
    border-radius: 7px;
    background: color-mix(in srgb, var(--blue) 7%, transparent);
}
.auth-tier-context[hidden] { display: none; }
.auth-tier-context span {
    color: var(--text-dim);
    font: 500 8px/1 var(--mono);
    letter-spacing: .08em;
    text-transform: uppercase;
}
.auth-tier-context strong {
    color: var(--blue-light);
    font: 600 10px/1 var(--mono);
}
.auth-close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: 0;
    color: var(--text-dim);
    background: none;
    font-size: 22px;
    cursor: pointer;
}
.auth-close:hover { color: var(--text); }
.auth-fb-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.auth-fb-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--blue));
}
.auth-fb-brand h2 { margin: 0; font-size: 16px; }
.fb-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
    padding: 4px;
    border-radius: 10px;
    background: var(--ink);
}
.fb-tabs button {
    flex: 1;
    padding: 9px;
    border: 0;
    border-radius: 7px;
    color: var(--text-soft);
    background: transparent;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}
.fb-tabs button.active { color: #fff; background: var(--purple); }
#authFbView .opt {
    color: var(--text-dim);
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    font-family: var(--font);
}
#authFbView form .btn { margin-top: 16px; }
#authFbView .btn-google { margin-top: 10px; color: #171717; background: #fff; }
.fb-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 4px;
    color: var(--text-dim);
    font-size: 12px;
}
.fb-divider::before,
.fb-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.fb-msg { display: none; margin-top: 14px; padding: 10px 12px; border-radius: 8px; font-size: 13px; }
.fb-msg.err {
    display: block;
    border: 1px solid color-mix(in srgb, var(--red) 30%, transparent);
    color: var(--red);
    background: color-mix(in srgb, var(--red) 12%, transparent);
}
.fb-msg.info {
    display: block;
    border: 1px solid color-mix(in srgb, var(--blue) 30%, transparent);
    color: var(--blue-light);
    background: color-mix(in srgb, var(--blue) 12%, transparent);
}
.fb-foot { margin-top: 16px; color: var(--text-soft); font-size: 12px; text-align: center; }
.fb-pending { text-align: center; }
.fb-pending-icon { font-size: 34px; }
.fb-pending h2 { margin: 10px 0 6px; font-size: 18px; }
.fb-pending p { margin-bottom: 10px; color: var(--text-soft); font-size: 13px; }
.linkbtn {
    padding: 0;
    border: 0;
    color: var(--blue-light);
    background: none;
    font-size: 12px;
    cursor: pointer;
}
.hidden { display: none !important; }

/* ═══════════════════════════ ACCESS ═══════════════════════════ */

.access { padding: clamp(70px, 9vh, 116px) 0 clamp(96px, 13vh, 150px); }
.access-card {
    position: relative;
    padding: clamp(48px, 7vw, 92px) clamp(26px, 5vw, 68px);
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        radial-gradient(84% 130% at 50% -22%, var(--glow-b), transparent 68%),
        linear-gradient(168deg, var(--panel) 4%, var(--ink-raised) 92%);
    text-align: center;
    overflow: hidden;
}
.access-card h2 {
    max-width: 700px;
    margin-inline: auto;
    font-size: clamp(29px, 3.8vw, 51px);
}
.access-card p {
    max-width: 540px;
    margin: 20px auto 0;
    color: var(--text-soft);
    font-size: 15.5px;
    line-height: 1.76;
}
.access-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 13px;
    margin-top: 38px;
}

/* ═══════════════════════════ FOOTER ═══════════════════════════ */

.footer {
    border-top: 1px solid var(--line);
    padding: 58px 0 40px;
    background: color-mix(in srgb, var(--ink-raised) 60%, transparent);
}
.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--line);
}
.footer-brand { max-width: 400px; }
.footer-note {
    margin-top: 16px;
    color: var(--text-dim);
    font-size: 12.5px;
    line-height: 1.72;
}
.footer-links { display: grid; gap: 12px; font-size: 12.5px; }
.footer-links a { color: var(--text-soft); transition: color .2s ease; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-top: 26px;
    color: var(--text-dim);
    font: 500 8.5px/1.5 var(--mono);
    letter-spacing: .11em;
    text-transform: uppercase;
}

/* ═══════════════════════════ PRELOADER ═══════════════════════════ */

#preloader { background: var(--ink); }
#preloader.gone { display: none; }

/* ═══════════════════════════ RESPONSIVE ═══════════════════════════ */

@media (max-width: 1100px) {
    .stage-inner { padding-inline: 22px; }
    html.js-story .stage-inner { gap: 28px; }
    .portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .portal:last-child { grid-column: span 2; }
    .portal:last-child .portal-art { height: 208px; }
}

@media (max-width: 1080px) {
    .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    :root { --nav-h: 64px; }
    .wrap { padding-inline: 20px; }
    .nav-inner { gap: 14px; }
    .brand-name em { display: none; }

    .nav-links {
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        display: grid;
        gap: 2px;
        margin: 0;
        padding: 14px 20px 20px;
        border-bottom: 1px solid var(--line);
        background: color-mix(in srgb, var(--ink) 96%, transparent);
        backdrop-filter: var(--shell-blur);
        -webkit-backdrop-filter: var(--shell-blur);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity .24s var(--ease), transform .24s var(--ease),
                    visibility 0s linear .24s;
    }
    .nav-links.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
    .nav-links a { padding: 12px 2px; font-size: 15px; }
    .nav-links a::after { display: none; }

    .nav-toggle { display: grid; }

    .pricing-grid { grid-template-columns: minmax(0, 1fr); }
    .pricing-card { min-height: 0; }

    .stage-inner { padding-inline: 20px; }

    /* Artwork upper 52%, copy lower 48%, both inside the same pin.
       Never side-by-side, never overlapping. */
    html.js-story .stage-inner {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 52% 48%;
        gap: 14px;
        padding: calc(var(--nav-h) + 12px) 20px 52px;
    }
    html.js-story .stage-art { height: 100%; border-radius: 13px; }
    .art-canvas { inset: 36px 12px 32px; }
    .frame-head { height: 36px; }
    .frame-foot { height: 32px; }
    html.js-story .stage-copy { align-content: start; min-height: 0; overflow: hidden; }
    html.js-story .act-copy { align-self: start; }
    .act-index { margin-bottom: 12px; }
    .act-copy h3 { font-size: clamp(21px, 5.6vw, 30px); letter-spacing: -.038em; }
    .act-copy p { margin-top: 13px; font-size: 13px; line-height: 1.66; }
    .act-micro { margin-top: 15px; }
    .act-ticks { bottom: 18px; gap: 14px; padding-inline: 20px; }
    .act-ticks i { width: 18px; }
    #story-stage[data-act="0"] li[data-tick="0"] i,
    #story-stage[data-act="1"] li[data-tick="1"] i,
    #story-stage[data-act="2"] li[data-tick="2"] i,
    #story-stage[data-act="3"] li[data-tick="3"] i,
    #story-stage[data-act="4"] li[data-tick="4"] i { width: 28px; }

    .portal-grid { grid-template-columns: minmax(0, 1fr); }
    .portal:last-child { grid-column: auto; }
    .portal { min-height: 0; }
    .portal-art, .portal:last-child .portal-art { height: 200px; }
    .records-meta { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
    .footer-top { gap: 30px; }
}

@media (max-width: 580px) {
    .hero-trust { gap: 24px; margin-top: 40px; }
    .trust-stat b { font-size: 23px; }
    .hero-actions .btn { width: 100%; }
    html.js-story .stage-inner { grid-template-rows: 48% 52%; }
    html.js-story .act-copy p { font-size: 12.5px; }
    .marquee::before, .marquee::after { width: 48px; }
    .scard { width: 232px; }
    .access-actions .btn { width: 100%; }
    .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 380px) {
    .wrap { padding-inline: 16px; }
    .stage-inner { padding-inline: 16px; }
    .act-ticks { padding-inline: 16px; gap: 10px; }
}

/* ═══════════════════════════ REDUCED MOTION ═══════════════════════════ */

/* landing-v2.js never adds `js-story` under reduced motion, so the static-first
   story layout above is already what these users get. This block only stills
   the ambient CSS animations and the cursor. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .ribbon-track, .marquee-track { animation: none; transform: none; }
    .hero-cue { display: none; }
    .cursor { display: none !important; }
}
