/* ============================================================
   BeatWave × OpenTune — landing art direction
   ============================================================
   Loaded LAST on index.html (after landing.css and
   landing-redesign-patch.css). Pure restyle layer:

   · Archivo variable type — condensed heavy display headings
   · Painted section grounds: .t-tint (violet) / .t-night / .t-light
   · Hero: copy left, stage right, ink install block
   · Ticker marquee, border-row features, split FAQ,
     giant condensed outro wordmark, flat pill buttons

   DOM ids/classes, JS hooks (loader curtain, FAQ accordion,
   mobile dock, terminal, scramble, counters) and the
   View-Transitions ripple theme toggle are untouched —
   only their paint changes.
   ============================================================ */

/* ============================================================
   1. Tokens
   ============================================================ */
:root {
    /* BeatWave violet at "cover-art" strength — the single loud color */
    --tint: #7d68ff;
    --ot-ink: #0d0919;      /* near-black used on the violet ground     */
    --ot-ink-soft: #1a1440;
    --ot-snow: #f4f4f9;     /* light ground, dark theme                 */
    --ot-night: #0c0a16;    /* dark ground                              */

    /* One typeface does everything — wdth 62–125, wght 100–900 */
    --font: 'Archivo', 'Helvetica Neue', Arial, ui-sans-serif, system-ui, sans-serif;
    --font-display: 'Archivo', 'Helvetica Neue', Arial, ui-sans-serif, system-ui, sans-serif;
    --font-body: 'Archivo', 'Helvetica Neue', Arial, ui-sans-serif, system-ui, sans-serif;

    /* --grad-brand was left undefined after the "no gradients"
       flattening, so every CTA using it (loader fill, dock player,
       donate, primary download) rendered transparent. Resolve it
       to flat tint so they read as solid pills. */
    --grad-brand: var(--tint);
}

html, body { background: var(--ot-night); }
html.light-theme, body.light-theme { background: #fafbfe; }

/* overflow-x: hidden on body/#app-dynamic-render turns them into
   scroll containers (overflow-y computes to auto) and silently
   breaks every position:sticky descendant — nav, split FAQ head,
   pinned showcase stages. clip makes the same horizontal cut for
   the full-bleed grounds without creating a scrollport. */
body,
#app-dynamic-render { overflow-x: clip; }

body {
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.62;
    letter-spacing: -0.004em;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-stretch: 74%; }
h1, h2 { font-weight: 800; letter-spacing: -0.022em; line-height: 0.96; }
h3, h4 { font-weight: 750; letter-spacing: -0.008em; line-height: 1.22; }

/* ============================================================
   2. Painted grounds
   ------------------------------------------------------------
   Sections are centered boxes (.container), so each ground
   paints through a full-bleed ::before — container-scoped
   sections still read as edge-to-edge bands. The ::before is
   z-index -1 inside the section's stacking context, which keeps
   it above the body background but below the section content.
   ============================================================ */
.t-tint, .t-night, .t-light {
    position: relative;
    z-index: 0;
    padding-block: clamp(64px, 8.5vw, 124px);
}
.t-tint::before,
.t-night::before,
.t-light::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -50vw;
    width: 100vw;
    z-index: -1;
    pointer-events: none;
}
.t-tint::before  { background: var(--tint); }
.t-night::before { background: var(--ot-night); }
.t-light::before { background: var(--ot-snow); }

html.light-theme .t-night::before,
body.light-theme .t-night::before { background: #fafbfe; }
html.light-theme .t-light::before,
body.light-theme .t-light::before { background: #eef0f6; }

/* ---- Violet ground: ink type, identical in both themes ---- */
.t-tint,
.crate-section {
    --text-hi: #0d0919;
    --text-mid: #150f34;
    --text-lo: #1e1747;
    --line: rgba(13, 9, 25, 0.20);
    --line-soft: rgba(13, 9, 25, 0.13);
    --line-hi: rgba(13, 9, 25, 0.34);
    --bg-card: rgba(13, 9, 25, 0.06);
    --bg-card-hover: rgba(13, 9, 25, 0.10);
    --bg-inset: rgba(13, 9, 25, 0.05);
    --bg-raised: rgba(13, 9, 25, 0.04);
    --accent-soft: rgba(13, 9, 25, 0.10);
    --accent-line: rgba(13, 9, 25, 0.32);
    --violet: #3a26a8;
    --violet-soft: #2d1c7a;
    --cyan-soft: #14384a;
    --shadow-accent: 0 16px 40px -18px rgba(13, 9, 25, 0.6);
    --inset-hair: inset 0 1px 0 rgba(255, 255, 255, 0.22);
    color: var(--text-hi);
}

/* ---- Snow ground (and night-ground flipped to day in light mode) ----
   Every glass/line/text token is re-based to ink so the existing
   card components restyle automatically. ---- */
.t-light,
html.light-theme .t-night,
body.light-theme .t-night {
    --text-hi: #130f28;
    --text-mid: #474169;
    --text-lo: #6a648d;
    --line: rgba(13, 9, 25, 0.12);
    --line-soft: rgba(13, 9, 25, 0.07);
    --line-hi: rgba(13, 9, 25, 0.26);
    --bg-card: rgba(13, 9, 25, 0.04);
    --bg-card-hover: rgba(13, 9, 25, 0.065);
    --bg-inset: rgba(13, 9, 25, 0.03);
    --bg-raised: #ffffff;
    --accent-soft: rgba(109, 77, 251, 0.10);
    --accent-line: rgba(109, 77, 251, 0.38);
    --violet: #6d4dfb;
    --violet-soft: #6d4dfb;
    --cyan-soft: #0b7f9b;
    --shadow-accent: 0 14px 36px -16px rgba(109, 77, 251, 0.45);
    --inset-hair: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    color: var(--text-hi);
}
.t-night { color: var(--text-hi); }

/* ---- Ground rhythm: same-colour neighbours lose one padded side ---- */
.hero.t-tint {
    padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 104px);
}
.gallery-head.t-light {
    margin-top: 0;
    padding-block: clamp(56px, 7vw, 100px) clamp(16px, 2.5vw, 28px);
}
.gallery-section.t-light { padding-block: 0 clamp(64px, 8vw, 116px); }
.tribute-section.t-light { padding-top: 0; }
.support-container.t-light { padding-top: 0; }
.terminal-container.t-night { margin-top: 0; padding-block: 0 clamp(40px, 5vw, 72px); }
.site-bottom-wordmark.t-night { padding-block: clamp(30px, 4vw, 64px) clamp(24px, 3vw, 48px); }
footer.t-night {
    padding-block: clamp(40px, 5vw, 60px) calc(44px + env(safe-area-inset-bottom, 0px));
}

/* ============================================================
   3. Split section heads (OpenTune "head.split")
   ============================================================ */
.section-header {
    align-items: flex-start;
    text-align: left;
    gap: clamp(8px, 1.4vw, 12px);
    margin-bottom: clamp(44px, 6vw, 72px);
}
.section-header .section-sub { margin-bottom: 0; }

.section-label {
    width: auto;
    margin: 0 0 2px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 700;
    font-stretch: 100%;
    letter-spacing: 0.17em;
    color: var(--violet-soft);
}
.section-label i { color: currentColor; font-size: 0.78rem; }

.section-title {
    text-align: left;
    font-family: var(--font-display);
    font-stretch: 72%;
    font-weight: 800;
    font-size: clamp(38px, 5.6vw, 72px);
    line-height: 0.96;
    letter-spacing: -0.028em;
    margin-bottom: clamp(14px, 1.8vw, 18px);
    max-width: 15ch;
    text-wrap: balance;
}
.section-sub {
    text-align: left;
    margin-inline: 0;
    margin-bottom: 0;
    max-width: 56ch;
    font-size: clamp(1rem, 1.4vw, 1.08rem);
    line-height: 1.62;
    color: var(--text-mid);
}

/* ============================================================
   4. Nav — tint at rest → frosted tint (raised) → solid (past hero)
   ============================================================ */
nav:not(.mobile-dock) {
    --text-hi: #0d0919;
    --text-mid: #171040;
    --text-lo: #2a2155;
    --line: rgba(13, 9, 25, 0.16);
    --line-soft: rgba(13, 9, 25, 0.10);
    --line-hi: rgba(13, 9, 25, 0.30);
    --bg-card: rgba(13, 9, 25, 0.07);
    --bg-card-hover: rgba(13, 9, 25, 0.13);
    --accent-soft: rgba(13, 9, 25, 0.10);
    --accent-line: rgba(13, 9, 25, 0.32);
    --violet-soft: #2d1c7a;
    --cyan-soft: #1a1440;
    --inset-hair: inset 0 1px 0 rgba(255, 255, 255, 0.22);
    background: var(--tint);
    border-bottom-color: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    color: var(--text-hi);
}
nav:not(.mobile-dock).raised {
    background: rgba(125, 104, 255, 0.94);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
}
nav:not(.mobile-dock).solid {
    --text-hi: #f4f3fb;
    --text-mid: #b5b1cb;
    --text-lo: #8d88ad;
    --line: rgba(255, 255, 255, 0.12);
    --line-soft: rgba(255, 255, 255, 0.07);
    --line-hi: rgba(255, 255, 255, 0.26);
    --bg-card: rgba(255, 255, 255, 0.06);
    --bg-card-hover: rgba(255, 255, 255, 0.10);
    --accent-soft: rgba(125, 104, 255, 0.18);
    --accent-line: rgba(125, 104, 255, 0.45);
    --violet-soft: #a78bfa;
    --cyan-soft: #67e8f9;
    --inset-hair: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    background: rgba(9, 8, 18, 0.88);
    border-bottom-color: rgba(255, 255, 255, 0.07);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
    color: var(--text-hi);
}
html.light-theme nav:not(.mobile-dock).solid,
body.light-theme nav:not(.mobile-dock).solid {
    --text-hi: #141026;
    --text-mid: #4a4468;
    --text-lo: #6b6590;
    --line: rgba(13, 9, 25, 0.12);
    --line-soft: rgba(13, 9, 25, 0.07);
    --line-hi: rgba(13, 9, 25, 0.26);
    --bg-card: rgba(13, 9, 25, 0.05);
    --bg-card-hover: rgba(13, 9, 25, 0.08);
    --accent-soft: rgba(109, 77, 251, 0.10);
    --accent-line: rgba(109, 77, 251, 0.38);
    --violet-soft: #6d4dfb;
    --cyan-soft: #0b7f9b;
    --inset-hair: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    background: rgba(250, 251, 255, 0.9);
    border-bottom-color: rgba(13, 9, 25, 0.09);
    color: var(--text-hi);
}

.nav-brand { font-weight: 800; font-stretch: 76%; letter-spacing: -0.012em; }
nav:not(.mobile-dock):not(.solid) .nav-logo { mix-blend-mode: normal; filter: none; }

nav:not(.mobile-dock) .nav-links-desktop a.nav-sync:hover {
    color: var(--text-hi);
    background: var(--bg-card);
}

/* Web Player CTA — ink pill on tint / tint pill on dark.
   Beats the .nav-cta !important gradient rules. */
nav:not(.mobile-dock) .nav-cta {
    background: var(--ot-ink) !important;
    color: var(--tint) !important;
    border-color: transparent !important;
    font-weight: 650 !important;
    letter-spacing: 0.005em;
}
nav:not(.mobile-dock).solid .nav-cta {
    background: var(--tint) !important;
    color: var(--ot-ink) !important;
}
html.light-theme nav:not(.mobile-dock).solid .nav-cta,
body.light-theme nav:not(.mobile-dock).solid .nav-cta {
    background: var(--violet-deep) !important;
    color: #ffffff !important;
}

/* Readline — flat violet progress line, no glow */
#scroll-tracker {
    background: var(--violet-deep);
    box-shadow: none;
}

/* ============================================================
   5. Hero — copy left, stage right, ink install block
   ============================================================ */
.hero.t-tint {
    max-width: var(--container);
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    grid-template-areas:
        "badge stage"
        "title stage"
        "cta1  stage"
        "cta2  stage"
        "trust stage"
        "ctx   ctx";
    column-gap: clamp(24px, 4vw, 60px);
    row-gap: 0;
    justify-items: start;
    text-align: left;
}
.hero-stage {
    grid-area: stage;
    justify-self: center;
    align-self: center;
    margin-bottom: 0;
    min-height: clamp(300px, 38vw, 460px);
}
.hero-badge {
    grid-area: badge;
    justify-self: start;
    margin-bottom: clamp(16px, 2vw, 24px);
}
.hero-title-container {
    grid-area: title;
    align-items: flex-start;
}
.hero-download-primary {
    grid-area: cta1;
    justify-content: flex-start;
    margin-bottom: 12px;
}
.hero-buttons {
    grid-area: cta2;
    justify-content: flex-start;
}
.hero-trust {
    grid-area: trust;
    justify-content: flex-start;
    margin-top: clamp(16px, 2vw, 24px);
}
#download-container-context { grid-area: ctx; }

.hero.t-tint h1 {
    font-size: clamp(44px, 6.6vw, 90px);
    font-stretch: 72%;
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.032em;
    margin-bottom: clamp(16px, 2vw, 24px);
}
.hero h1 .bw-grad-text--brand {
    display: inline;
    background: var(--ot-ink);
    background-clip: border-box;
    -webkit-background-clip: border-box;
    color: var(--tint);
    -webkit-text-fill-color: var(--tint);
    padding: 0.02em 0.16em 0.06em;
    margin-left: -0.04em;
    border-radius: 0.06em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    text-shadow: none;
}
.hero .hero-lede {
    margin: 0 0 clamp(16px, 2vw, 22px);
    max-width: 54ch;
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    line-height: 1.66;
    color: var(--text-mid);
}
.scramble-title {
    color: var(--text-lo);
    margin-bottom: clamp(24px, 3vw, 34px);
}
.t-tint .scramble-title::before {
    background: var(--ot-ink);
    box-shadow: 0 0 8px rgba(13, 9, 25, 0.5);
}

/* Stage paint */
.hero.t-tint .hero-logo { mix-blend-mode: normal; filter: none; }
.hero.t-tint .hero-logo-glow {
    background: radial-gradient(circle at center,
        rgba(255, 255, 255, 0.55) 0%,
        rgba(255, 255, 255, 0.18) 45%,
        transparent 72%);
}
.hero.t-tint .hero-eq span {
    background: linear-gradient(to top, rgba(13, 9, 25, 0.92), rgba(13, 9, 25, 0.38));
}

/* CTAs — flat ink pill + outlined pills (OpenTune btn-ink / btn-line) */
.t-tint .btn-chroma-download {
    background: var(--ot-ink);
    color: var(--tint);
    font-weight: 650;
    letter-spacing: 0.005em;
    box-shadow: 0 18px 44px -18px rgba(13, 9, 25, 0.75), var(--inset-hair);
}
.t-tint .btn-chroma-download:hover {
    background: var(--ot-ink-soft);
    box-shadow: 0 24px 54px -16px rgba(13, 9, 25, 0.85), var(--inset-hair);
}
.t-tint .btn-github,
.t-tint .btn-discord {
    background: transparent;
    border: 1.5px solid rgba(13, 9, 25, 0.34);
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    color: var(--ot-ink);
    font-weight: 600;
}
.t-tint .btn-github:hover,
.t-tint .btn-discord:hover {
    background: rgba(13, 9, 25, 0.07);
    border-color: rgba(13, 9, 25, 0.7);
    box-shadow: none;
}

/* Install block — one ink well instead of three glass cards */
.t-tint #download-container-context {
    background: var(--ot-ink);
    border-radius: 30px;
    padding: clamp(24px, 3.5vw, 42px);
    align-items: stretch;
    gap: clamp(16px, 2vw, 22px);
    max-width: 780px;
    text-align: left;
    box-shadow: 0 30px 60px -30px rgba(13, 9, 25, 0.8);
    color: var(--text-hi);
    --text-hi: #f5f3ff;
    --text-mid: #c4bfe2;
    --text-lo: #9791bc;
    --line: rgba(255, 255, 255, 0.13);
    --line-soft: rgba(255, 255, 255, 0.08);
    --line-hi: rgba(255, 255, 255, 0.26);
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --bg-inset: rgba(255, 255, 255, 0.055);
    --accent-soft: rgba(125, 104, 255, 0.18);
    --accent-line: rgba(125, 104, 255, 0.45);
    --violet-soft: #a78bfa;
    --cyan-soft: #67e8f9;
    --inset-hair: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.t-tint #download-container-context .dl-stat-block {
    background: transparent;
    border: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    max-width: none;
    padding: 0;
}
.t-tint #download-container-context .dl-stat-block::before { display: none; }
.t-tint #download-container-context .download-explainer-card {
    background: transparent;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    max-width: none;
    padding: clamp(16px, 2vw, 20px) 0 0;
}
.t-tint #download-container-context .security-audit-advisory {
    max-width: none;
}

/* ============================================================
   6. Fact ticker
   ============================================================ */
.ticker {
    position: relative;
    z-index: 0;
    background: var(--ot-night);
    color: var(--text-mid);
    padding-block: clamp(16px, 2.4vw, 26px);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    overflow: hidden;
}
html.light-theme .ticker,
body.light-theme .ticker {
    background: #fafbfe;
    border-top-color: rgba(13, 9, 25, 0.10);
    border-bottom-color: rgba(13, 9, 25, 0.10);
}
.ticker-track {
    display: flex;
    align-items: baseline;
    gap: clamp(28px, 4vw, 56px);
    width: max-content;
    animation: otTicker 46s linear infinite;
}
.ticker-list {
    display: flex;
    align-items: baseline;
    gap: clamp(28px, 4vw, 56px);
    list-style: none;
    margin: 0;
    padding: 0;
    flex: none;
}
.ticker-list li {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    white-space: nowrap;
    font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    font-weight: 500;
    letter-spacing: -0.005em;
}
.ticker-list b {
    font-family: var(--font-display);
    font-stretch: 68%;
    font-weight: 800;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--tint);
    font-variant-numeric: tabular-nums;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes otTicker {
    to { transform: translateX(calc(-50% - clamp(14px, 2vw, 28px))); }
}

/* ============================================================
   7. Gallery head + chip
   ============================================================ */
.gallery-head {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}
.bw-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    color: var(--violet-soft);
}
.gallery-head .section-title { max-width: 15ch; }

/* ============================================================
   8. Features — border-top rows, flat icons, no card lift
   ============================================================ */
.bento-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(24px, 3.5vw, 56px);
    row-gap: 0;
}
.bento-card {
    grid-column: span 6;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    padding: clamp(30px, 3.6vw, 46px) 0;
    gap: 20px;
    justify-content: flex-start;
    transition: border-color 0.3s ease;
}
.bento-card::before { display: none; }
.bento-card--hero,
.bento-card.bento-card--hero {
    grid-column: span 12;
    background: transparent;
    box-shadow: none;
    border-color: var(--line);
}
.bento-card:hover,
.bento-card.bento-card--hero:hover {
    background: transparent;
    box-shadow: none;
    border-color: var(--line);
    border-top-color: var(--tint);
    transform: none;
}
.bento-card:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line); }

.bento-icon {
    width: auto;
    height: auto;
    padding: 0;
    margin-bottom: 16px;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: var(--tint);
    font-size: 1.3rem;
    transition: color 0.3s ease;
}
.bento-icon--accent { background: none; border: 0; color: var(--tint); }
.bento-card:hover .bento-icon {
    color: var(--tint);
    border-color: transparent;
    transform: none;
}
.bento-card h3 {
    font-stretch: 76%;
    font-weight: 750;
    font-size: clamp(1.15rem, 1.6vw, 1.4rem);
    letter-spacing: -0.015em;
    line-height: 1.18;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}
.bento-card p {
    font-size: 0.95rem;
    line-height: 1.68;
    color: var(--text-mid);
    max-width: 62ch;
}
.bento-card--hero h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.bento-cta {
    background: var(--tint);
    color: var(--ot-ink);
    font-weight: 650;
    letter-spacing: 0.005em;
    min-height: 46px;
    box-shadow: none;
}
.bento-cta:hover {
    background: #8f7cff;
    filter: none;
    box-shadow: 0 14px 30px -14px rgba(125, 104, 255, 0.8);
}

/* ============================================================
   9. Story + tribute
   ============================================================ */
.story-section-box {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    padding: 0;
}
.story-section-box::before { display: none; }
.story-text-layout p { font-size: 1.02rem; line-height: 1.8; max-width: 72ch; }
.story-text-layout .story-lead {
    font-size: clamp(1.1rem, 1.6vw, 1.28rem);
    font-weight: 500;
    color: var(--text-hi);
}
.story-quote-block {
    margin: clamp(26px, 3vw, 36px) 0;
    padding: 4px 0 4px clamp(18px, 2.4vw, 28px);
    border: 0;
    border-left: 4px solid var(--violet);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-family: var(--font);
    font-stretch: 84%;
    font-weight: 600;
    font-size: clamp(1.12rem, 1.9vw, 1.4rem);
    line-height: 1.45;
    letter-spacing: -0.01em;
    color: var(--text-hi);
}

/* ============================================================
   10. FAQ — sticky split head, border rows, plus marker
   ============================================================ */
.faq-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    column-gap: clamp(32px, 5vw, 80px);
    align-items: start;
}
.faq-section .section-header {
    position: sticky;
    top: 92px;
    margin-bottom: 0;
}
.faq-container-block { max-width: none; margin-inline: 0; gap: 0; }
.faq-wrapper-node {
    background: transparent;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
}
.faq-wrapper-node:last-child { border-bottom: 1px solid var(--line); }
.faq-wrapper-node.active {
    background: transparent;
    border-color: var(--line);
    border-top-color: var(--violet);
}
.faq-trigger-tab {
    padding: clamp(18px, 2.2vw, 24px) 0;
    min-height: 0;
    font-family: var(--font);
    font-stretch: 86%;
    font-weight: 650;
    font-size: clamp(1.02rem, 1.5vw, 1.18rem);
    letter-spacing: -0.01em;
    line-height: 1.35;
}
.faq-trigger-tab:hover { color: var(--violet); }
.faq-icon-marker {
    font-size: 1rem;
    color: var(--violet);
}
.faq-trigger-tab .faq-icon-marker::before {
    content: '\2b';
    font-weight: 900;
}
.faq-wrapper-node.active .faq-icon-marker {
    transform: rotate(45deg);
    color: var(--violet);
}
.faq-content-inner {
    padding: 0 0 clamp(20px, 2.4vw, 26px);
    font-size: 0.98rem;
    line-height: 1.72;
    max-width: 62ch;
    color: var(--text-mid);
}

/* ============================================================
   11. Support
   ============================================================ */
.donate-btn {
    background: var(--tint);
    color: var(--ot-ink);
    font-weight: 650;
    box-shadow: none;
}
.donate-btn:hover {
    background: #8f7cff;
    filter: none;
    box-shadow: 0 14px 30px -14px rgba(125, 104, 255, 0.7);
}

/* ============================================================
   12. Walkthrough — giant step numerals on the violet ground
   ============================================================ */
.walkthrough-section > .section-title { margin-bottom: clamp(30px, 4vw, 52px); }
.walkthrough-box {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    padding: 0;
}
.step-row {
    gap: clamp(20px, 3vw, 36px);
    padding: clamp(22px, 3vw, 30px) 0;
    border-top: 2px solid rgba(13, 9, 25, 0.4);
}
.step-row + .step-row { border-top: 2px solid rgba(13, 9, 25, 0.4); }
.step-row:last-child { border-bottom: 2px solid rgba(13, 9, 25, 0.4); }
.step-num {
    width: auto;
    height: auto;
    min-width: clamp(72px, 8vw, 124px);
    border: 0;
    border-radius: 0;
    background: none;
    color: rgba(13, 9, 25, 0.5);
    font-family: var(--font);
    font-stretch: 62%;
    font-weight: 800;
    font-size: clamp(54px, 6.5vw, 92px);
    line-height: 0.82;
    letter-spacing: -0.03em;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 4px;
}
.step-info h4 {
    font-stretch: 78%;
    font-weight: 750;
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    margin-bottom: 8px;
}
.step-info p {
    font-size: 0.95rem;
    color: var(--text-mid);
    max-width: 66ch;
}

/* ============================================================
   13. Team
   ============================================================ */
.team-section > .section-label { margin-bottom: 8px; }
.team-heading {
    text-align: left;
    font-stretch: 74%;
    font-weight: 800;
    font-size: clamp(34px, 4.6vw, 60px);
    letter-spacing: -0.026em;
    line-height: 0.95;
    margin-bottom: clamp(30px, 4vw, 46px);
}

/* ============================================================
   14. Outro wordmark + footer
   ============================================================ */
.site-bottom-wordmark {
    font-family: var(--font);
    font-stretch: 66%;
    font-weight: 800;
    font-size: clamp(72px, 25vw, 330px) !important;
    letter-spacing: -0.02em !important;
    line-height: 0.86;
    color: var(--tint);
    -webkit-text-stroke: 0;
    text-align: center;
}
/* The light-theme night-ground token block sets `color` directly on the
   section at (0,2,1) — re-assert the flat tint for the wordmark there. */
html.light-theme .site-bottom-wordmark,
body.light-theme .site-bottom-wordmark { color: var(--tint); }
footer.t-night {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 24px;
    text-align: left;
}
footer.t-night > p { margin: 0; font-size: 0.8rem; color: var(--text-lo); }
.credits-tag { margin-top: 0; }
.footer-mii { margin: 0; }
.footer-actions { justify-content: flex-end; }

/* ============================================================
   15. Responsive
   ============================================================ */
@media (max-width: 1020px) {
    .faq-section { grid-template-columns: minmax(0, 1fr); }
    .faq-section .section-header {
        position: static;
        margin-bottom: clamp(30px, 5vw, 44px);
    }
}

@media (max-width: 940px) {
    .hero.t-tint {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "stage"
            "badge"
            "title"
            "cta1"
            "cta2"
            "trust"
            "ctx";
        justify-items: center;
        text-align: center;
    }
    .hero-stage { width: 100%; min-height: clamp(240px, 44vw, 340px); }
    .hero-badge { justify-self: center; }
    .hero-title-container { align-items: center; }
    .hero .hero-lede { margin: 0 auto clamp(16px, 2vw, 22px); }
    .hero-download-primary,
    .hero-buttons,
    .hero-trust { justify-content: center; }
    .hero.t-tint h1 { font-size: clamp(42px, 8.5vw, 64px); }
    #download-container-context {
        justify-self: center;
        margin-inline: auto;
        max-width: 660px;
    }
}

@media (max-width: 860px) {
    .bento-card,
    .bento-card.bento-card--hero { grid-column: span 12; }
    .bento-card:nth-last-child(-n + 2) { border-bottom: 0; }
    .bento-card:last-child { border-bottom: 1px solid var(--line); }
}

@media (max-width: 768px) {
    .section-title { max-width: 18ch; }
    footer.t-night { flex-direction: column; align-items: flex-start; text-align: left; }
    .footer-actions { justify-content: flex-start; }
}

/* ============================================================
   16. Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .ticker { overflow-x: auto; }
    .ticker-track {
        animation: none;
        flex-wrap: wrap;
        width: auto;
        justify-content: center;
        row-gap: 14px;
        padding-inline: var(--gutter);
    }
    .ticker-list[aria-hidden="true"] { display: none; }
}

/* ============================================================
   17. Pinned screenshot rail — scroll-locked horizontal strip
   ------------------------------------------------------------
   Default state is a swipe rail (also the no-JS / tiny-travel
   fallback). JS adds .pinned to the hub, gives it the scroll
   runway and drives rail translateX from its own progress.
   ============================================================ */
:target { scroll-margin-top: calc(var(--ot-nav-h, 72px) + 12px); }

.gallery-section .workspace-gallery-hub {
    overflow: visible;
    padding: 0;
    mask-image: none;
    -webkit-mask-image: none;
}
.gallery-section .pin-stage {
    display: block;
    overflow: visible;
}
.gallery-section .rail-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}
.gallery-section .rail-wrap::-webkit-scrollbar { display: none; }
.gallery-section .rail {
    display: flex;
    align-items: flex-start;
    gap: clamp(16px, 2vw, 26px);
    padding-inline: var(--gutter);
    width: max-content;
}
.gallery-section .rail-item {
    flex: none;
    margin: 0;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.gallery-section .rail-item:last-child { margin-right: var(--gutter); }
.gallery-section .rail-item img {
    display: block;
    height: clamp(240px, 54svh, 620px);
    width: auto;
    border-radius: 22px;
    border: 1px solid var(--line);
    box-shadow: 0 34px 64px -34px rgba(13, 9, 25, 0.5);
    background: var(--bg-raised);
}
.gallery-section .rail-item figcaption {
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.gallery-section .rail-item figcaption b {
    font-size: 0.95rem;
    font-weight: 750;
    letter-spacing: -0.01em;
    color: var(--text-hi);
}
.gallery-section .rail-item figcaption span {
    font-size: 0.78rem;
    color: var(--text-lo);
}

/* Locked mode — stage sticks under the nav, scroll slides the rail */
.gallery-section .workspace-gallery-hub.pinned .pin-stage {
    position: sticky;
    top: var(--ot-nav-h, 72px);
    height: calc(100svh - var(--ot-nav-h, 72px) - var(--ot-dock-h, 0px));
    display: flex;
    align-items: center;
    overflow: hidden;
}
.gallery-section .workspace-gallery-hub.pinned .rail-wrap {
    width: 100%;
    overflow: hidden;
    scroll-snap-type: none;
}
.gallery-section .workspace-gallery-hub.pinned .rail { will-change: transform; }

/* ============================================================
   18. Lyrics showcase — word-synced karaoke well + style pills
   ============================================================ */
.bento-card--lyrics {
    grid-column: span 12;
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    column-gap: clamp(28px, 4vw, 64px);
    row-gap: 22px;
    align-items: center;
}
.lyrics-copy { justify-content: center; }
.lyrics-copy h3 { margin-bottom: 12px; }
.lyrics-copy > p { margin-bottom: 18px; }
.lyrics-copy .pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.lyrics-copy .lyrics-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--text-lo);
}
.lyrics-note i { font-size: 0.72rem; }

.pill {
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 650;
    letter-spacing: 0.03em;
    padding: 9px 17px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--text-mid);
    cursor: pointer;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.pill:hover { color: var(--text-hi); border-color: var(--tint); }
.pill.on { background: var(--tint); border-color: var(--tint); color: var(--ot-ink); }
.pill:focus-visible { outline: 2px solid var(--tint); outline-offset: 2px; }

/* The well stays a dark player panel in both themes */
.well.lyr {
    position: relative;
    display: grid;
    align-content: center;
    min-height: clamp(260px, 34vw, 380px);
    padding: clamp(30px, 3.6vw, 46px) clamp(22px, 3vw, 42px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--r-xl, 24px);
    overflow: hidden;
    background:
        radial-gradient(130% 150% at 88% -25%, rgba(125, 104, 255, 0.42), transparent 58%),
        linear-gradient(165deg, #17113a 0%, #0b0916 72%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.well.lyr::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 4px);
    pointer-events: none;
}
.karaoke {
    position: relative;
    z-index: 1;
    display: grid;
    gap: clamp(8px, 1.1vw, 14px);
    text-align: center;
    font-family: var(--font-display);
    font-stretch: 78%;
    font-weight: 750;
    font-size: clamp(1.2rem, 2.4vw, 1.95rem);
    line-height: 1.26;
    letter-spacing: -0.012em;
}
.k-line {
    display: block;
    transition: opacity 0.45s ease, transform 0.45s ease;
}
.k-line.next { opacity: 0.24; transform: scale(0.985); }
.k-line.now { opacity: 1; transform: none; }
.k-line.past { opacity: 0.5; transform: none; }
.wrd { display: inline-block; white-space: nowrap; }
.ch {
    display: inline-block;
    background-image: linear-gradient(90deg, #fff 0 44%, rgba(255, 255, 255, 0.72) 52%, rgba(255, 255, 255, 0.32) 62%, rgba(255, 255, 255, 0.32) 100%);
    background-size: 200% 100%;
    background-position: calc(100% - var(--p, 0) * 100%) 0;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.style-reveal .ch,
.style-bounce .ch {
    background-image: linear-gradient(90deg, #fff 0 50%, rgba(255, 255, 255, 0.32) 50% 100%);
}
.style-fluid .ch { transform: translateY(calc((1 - var(--p, 0)) * 0.3em)); }
.style-bounce .wrd.sung { animation: otHop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes otHop {
    0% { transform: translateY(0) scale(1); }
    35% { transform: translateY(-0.16em) scale(1.07); }
    100% { transform: translateY(0) scale(1); }
}

/* ============================================================
   19. Artwork colour chapter — 320vh pinned cover deck
   ------------------------------------------------------------
   The section paints itself with --wash (registered so it can
   transition); JS swaps the wash + deck classes per scroll step.
   Shares the violet-ground ink tokens with .t-tint.
   ============================================================ */
@property --wash {
    syntax: '<color>';
    inherits: true;
    initial-value: #7d68ff;
}

.crate-section {
    position: relative;
    z-index: 0;
    height: 320vh;
    --wash: var(--tint);
    transition: --wash 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-hi);
}
.crate-section::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -50vw;
    width: 100vw;
    background: var(--wash);
    z-index: -1;
    pointer-events: none;
}
.crate-stage {
    position: sticky;
    top: var(--ot-nav-h, 72px);
    height: calc(100svh - var(--ot-nav-h, 72px) - var(--ot-dock-h, 0px));
    display: flex;
    align-items: center;
    overflow: hidden;
}
.crate-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    align-items: center;
    gap: clamp(30px, 5vw, 72px);
    width: 100%;
}
.crate-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.crate-copy .section-label { margin-bottom: 10px; }
.crate-steps {
    list-style: none;
    margin: clamp(26px, 3vw, 40px) 0 0;
    padding: 0;
    width: 100%;
    max-width: 430px;
    display: grid;
}
.crate-steps li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 0;
    border-top: 1px solid var(--line);
    opacity: 0.45;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.crate-steps li:last-child { border-bottom: 1px solid var(--line); }
.crate-steps li.on { opacity: 1; transform: translateX(6px); }
.crate-steps .sw {
    flex: none;
    width: 12px;
    height: 12px;
    border-radius: 4px;
    background: var(--sw);
    box-shadow: 0 0 0 1px rgba(13, 9, 25, 0.2);
}
.crate-steps .stxt { display: grid; gap: 1px; }
.crate-steps b { font-size: 0.95rem; font-weight: 750; letter-spacing: -0.005em; }
.crate-steps .stxt span { font-size: 0.78rem; color: var(--text-mid); }

.stack {
    position: relative;
    justify-self: end;
    width: min(100%, clamp(300px, 32vw, 430px));
    aspect-ratio: 1;
}
.cardx {
    position: absolute;
    inset: 0;
    border-radius: clamp(16px, 1.8vw, 24px);
    overflow: hidden;
    opacity: 0;
    z-index: 1;
    transform: translate(11%, 8%) scale(0.94) rotate(3.5deg);
    box-shadow: 0 36px 72px -30px rgba(13, 9, 25, 0.65);
    transition: transform 0.75s var(--ease-out), opacity 0.55s ease;
}
.cardx:nth-child(3) { transform: translate(17%, 13%) scale(0.89) rotate(6.5deg); }
.cardx:nth-child(4) { transform: translate(23%, 18%) scale(0.84) rotate(9.5deg); }
.cardx:nth-child(5) { transform: translate(29%, 23%) scale(0.79) rotate(12.5deg); }
/* Bottom scrim so the meta line stays legible over any artwork */
.cardx::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 42%;
    z-index: 2;
    background: linear-gradient(to top, rgba(8, 6, 16, 0.78), rgba(8, 6, 16, 0));
    pointer-events: none;
}
.cardx.past { opacity: 0; transform: translate(-8%, -7%) scale(0.95) rotate(-4deg); }
.cardx.on { opacity: 1; z-index: 5; transform: none; }

/* Cover layers: gradient fallback (z0) → artwork (z1) → scrim (z2) → text (z3) */
.cover {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.cover-brand {
    position: absolute;
    top: clamp(16px, 1.8vw, 24px);
    right: clamp(18px, 2vw, 26px);
    z-index: 3;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.26em;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}
.cover-meta {
    position: absolute;
    left: clamp(18px, 2vw, 26px);
    bottom: clamp(18px, 2vw, 26px);
    z-index: 3;
    display: grid;
    gap: 5px;
    max-width: 86%;
}
.cover-meta b {
    font-size: clamp(1.7rem, 2.7vw, 2.4rem);
    font-stretch: 70%;
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cover-meta i {
    font-style: normal;
    font-size: 0.74rem;
    font-weight: 650;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}
.cover--rose {
    background:
        radial-gradient(115% 90% at 30% 15%, #ff8a9b, transparent 55%),
        linear-gradient(165deg, #d2536b 0%, #47101f 92%);
}
.cover--violet {
    background:
        radial-gradient(120% 95% at 22% 12%, rgba(164, 141, 255, 0.9), transparent 55%),
        linear-gradient(160deg, #4a30d6 0%, #160f4a 92%);
}
.cover--cyan {
    background:
        repeating-linear-gradient(112deg, rgba(255, 255, 255, 0.10) 0 2px, transparent 2px 15px),
        linear-gradient(165deg, #1fb6d8 0%, #0a3b52 92%);
}
.cover--pink {
    background:
        repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.15) 0 3px, transparent 3px 8px),
        linear-gradient(150deg, #ff5f92 0%, #6d0f3c 95%);
}
.cover--amber {
    background:
        radial-gradient(95% 70% at 68% 18%, #ffd794, transparent 52%),
        linear-gradient(198deg, #f0a13c 0%, #7d3410 95%);
}

/* ============================================================
   22. Phone preview — single device, crossfading screens
   ============================================================ */
/* Scroll-locked track: the phone stays pinned while the section scrolls */
.gallery-section {
    min-height: 520vh;
}
.phone-showcase {
    position: sticky;
    top: var(--ot-nav-h, 72px);
    height: calc(100svh - var(--ot-nav-h, 72px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
    align-items: center;
    gap: clamp(32px, 6vw, 80px);
    max-width: 1080px;
    margin-inline: auto;
    padding-block: clamp(16px, 3vh, 32px);
}
.phone-showcase { perspective: 1200px; }
.phone {
    position: relative;
    width: min(100%, clamp(230px, 26vw, 300px));
    aspect-ratio: 9 / 19.5;
    margin-inline: auto;
    border-radius: 44px;
    padding: 12px;
    background: linear-gradient(165deg, #2a2a30 0%, #0a0a0c 55%, #1a1a20 100%);
    box-shadow:
        0 50px 90px -30px rgba(13, 9, 25, 0.75),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 0 0 1px rgba(0, 0, 0, 0.4);
    transform-style: preserve-3d;
    transition: transform 0.18s ease-out, box-shadow 0.3s ease;
    will-change: transform;
}
.phone:hover {
    box-shadow:
        0 60px 110px -30px rgba(13, 9, 25, 0.85),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}
.phone-screen {
    position: relative;
    height: 100%;
    border-radius: 34px;
    overflow: hidden;
    background: #000;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.phone-shot {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s var(--ease-out);
    transform: scale(1.02);
}
.phone-shot.on {
    opacity: 1;
    transform: scale(1);
}
.phone-notch {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 38%;
    height: 26px;
    background: #0a0a0c;
    border-radius: 0 0 18px 18px;
    z-index: 3;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}
.phone-meta {
    display: grid;
    gap: 22px;
}
.phone-caption {
    display: grid;
    gap: 6px;
}
.phone-caption b {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--text-hi);
}
.phone-caption span {
    font-size: 0.95rem;
    color: var(--text-mid);
}
.phone-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}
.phone-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--text-hi);
    opacity: 0.25;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease, width 0.3s ease;
}
.phone-dot.on {
    opacity: 1;
    width: 26px;
}
.phone-dot:hover { opacity: 0.7; transform: scale(1.15); }
.phone-arrows {
    display: flex;
    gap: 10px;
}
.phone-arrow {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: var(--bg-2);
    color: var(--text-hi);
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.25s var(--ease-out), background 0.25s ease, border-color 0.25s ease;
}
.phone-arrow:hover {
    transform: translateY(-2px);
    background: var(--bg-3);
    border-color: var(--line-hi);
}
.phone-arrow:active { transform: translateY(0); }

@media (max-width: 900px) {
    .phone-showcase { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .phone { width: min(55vw, 260px); }
    .phone-meta { justify-items: start; }
}
@media (max-width: 620px) {
    .phone { width: min(62vw, 240px); }
}
@media (prefers-reduced-motion: reduce) {
    .phone, .phone-shot, .phone-dot, .phone-arrow { transition: none !important; }
    .gallery-section { min-height: auto !important; }
    .phone-showcase { position: static !important; height: auto !important; }
}

/* ============================================================
   20. Feature responsive
   ============================================================ */
@media (max-width: 1000px) {
    .bento-card--lyrics { grid-template-columns: minmax(0, 1fr); }
    .well.lyr { min-height: clamp(240px, 46vw, 320px); }
}

@media (max-width: 900px) {
    .crate-section { height: 300vh; }
    .crate-grid { grid-template-columns: minmax(0, 1fr); gap: clamp(22px, 4vw, 34px); }
    .stack {
        order: -1;
        justify-self: center;
        width: min(64vw, 300px);
    }
    .crate-steps { max-width: none; }
}

@media (max-width: 768px) {
    .gallery-section { min-height: 320vh !important; }
    .phone-showcase { height: calc(100svh - var(--ot-nav-h, 61px)) !important; gap: 18px; padding-block: 12px; }
    .phone { width: min(62vw, 220px); border-radius: 34px; padding: 9px; }
    .phone-screen { border-radius: 26px; }
    .phone-notch { top: 12px; height: 20px; border-radius: 0 0 14px 14px; }
    .phone-caption b { font-size: clamp(1.4rem, 6vw, 1.9rem); }
    .phone-arrow { width: 40px; height: 40px; }
    .phone-dot { width: 8px; height: 8px; }
    .phone-dot.on { width: 22px; }
    .crate-section { height: 280vh; }
    .crate-copy .section-sub { display: none; }
    .crate-copy .section-title { font-size: clamp(34px, 9vw, 46px); max-width: 14ch; }
    .crate-steps li { padding: 9px 0; }
    .karaoke { font-size: clamp(1.15rem, 5vw, 1.6rem); }
    .gallery-section .rail-item img { height: clamp(240px, 48svh, 420px); }
    .cover-meta b { font-size: clamp(1.5rem, 6vw, 2rem); }
}

/* Short viewports can't host a full sticky stage — unpin cleanly */
@media (max-height: 620px) {
    .crate-section { height: auto; }
    .crate-stage {
        position: static;
        height: auto;
        padding-block: clamp(56px, 8vw, 90px);
        overflow: visible;
    }
}

/* ============================================================
   21. Feature reduced motion
   ------------------------------------------------------------
   The rail keeps its scroll-driven position (it only moves as
   far as you scroll — no autonomous motion); the chapter
   unpins into a static composition; the demo fills line one.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .k-line, .cardx, .crate-steps li, .pill { transition: none !important; }
    .style-bounce .wrd.sung { animation: none; }
    .crate-section { height: auto; transition: none; }
    .crate-stage {
        position: static;
        height: auto;
        padding-block: clamp(64px, 8vw, 124px);
        overflow: visible;
    }
}
