/* =========================================================================
   Lofiest - home.css  (home page only) - fully flat: no shadows anywhere.
   ========================================================================= */

/* ---------------- Hero ---------------- */
.hero {
    position: relative;
    display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-8); align-items: center;
    padding: clamp(2.5rem, 7vw, 5rem) 0 var(--sp-10);
    min-height: min(82vh, 720px);
}
.hero-copy { max-width: 620px; }
.hero-title {
    font-size: clamp(2.4rem, 5.4vw, 3.9rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em;
    margin: var(--sp-5) 0 var(--sp-4);
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-secondary) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-accent {
    position: relative; white-space: nowrap;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-accent::after {
    content: ""; position: absolute; left: -2%; right: -2%; bottom: 0.02em; height: 0.42em;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0.22; border-radius: 6px; transform: scaleX(0); transform-origin: left center;
    transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.45s; z-index: -1;
}
[dir="rtl"] .hero-accent::after { transform-origin: right center; bottom: 0.18em; height: 0.34em; }
.hero-accent.draw::after { transform: scaleX(1); }
.hero-desc { font-size: 1.12rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: var(--sp-6); }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* (dust motes moved to site.css - shared with the 404 page) */

/* ---------------- Live player ---------------- */
.player {
    position: relative; padding: var(--sp-6); min-width: 0; /* grid item: never let a long title stretch the card */
    background: linear-gradient(160deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
    border: 1px solid var(--glass-border-strong); border-radius: var(--r-xl);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.player-eyebrow { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--sp-5); }
.player-eyebrow .live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-primary); }
.player-eyebrow .live-dot::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    background: var(--accent-primary); opacity: 0.5;
    animation: dot-ring 2.8s var(--ease-drift) infinite;
}
@keyframes dot-ring { 0% { transform: scale(1); opacity: 0.5; } 70%, 100% { transform: scale(2.4); opacity: 0; } }

/* Player art: mood-colored, breathing, with honest EQ */
.player-art {
    position: relative; aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; margin-bottom: var(--sp-5);
    background: linear-gradient(135deg, #14141f, #0d0d16);
    border: 1px solid var(--glass-border);
}
.player-art::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(120% 120% at 20% 0%, var(--accent-glow) 0%, transparent 55%);
    opacity: 0.25; transition: opacity 0.6s var(--ease-lofi);
}
/* Anime reaction GIFs from OtakuGIFs - the same service the apps use. Lazy:
   fetched only once a mood is known or a track plays; fades in on load; the
   box stays black on any error. */
.player-art .art-anime { position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0; pointer-events: none; user-select: none;
    transition: opacity 1.8s var(--ease-drift); }
.player-art .art-anime.on { opacity: 0.55; }
.now-playing.is-playing .art-anime.on { opacity: 0.7; }
/* idle → loading → playing: a device warming up */
.now-playing.is-loading .player-art::before { animation: art-breathe 1.8s var(--ease-drift) infinite; }
.now-playing.is-playing .player-art::before { opacity: 0.55; }
.now-playing.is-playing .player-art::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(90% 90% at 80% 100%, var(--accent-glow) 0%, transparent 60%);
    opacity: 0.3; animation: art-breathe 7s var(--ease-drift) infinite;
}
@keyframes art-breathe { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.55; } }

.player-art .eq { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center;
    gap: 6px; padding: 18% 24%; opacity: 0.6; }
.player-art .eq span {
    flex: 1; max-width: 12px; height: 100%;
    background: linear-gradient(var(--accent-primary), var(--accent-secondary));
    border-radius: 4px;
    transform: scaleY(0.16); transform-origin: bottom;
    transition: transform 0.6s var(--ease-lofi);
}
/* CSS fallback animation (used when Web Audio isn't driving the bars) */
.now-playing.is-playing:not(.live-eq) .eq span { animation: eq 1.1s var(--ease-drift) infinite; }
.now-playing.is-playing:not(.live-eq) .eq span:nth-child(1) { animation-duration: 1.15s; }
.now-playing.is-playing:not(.live-eq) .eq span:nth-child(2) { animation-duration: 0.9s;  animation-delay: 0.15s; }
.now-playing.is-playing:not(.live-eq) .eq span:nth-child(3) { animation-duration: 1.3s;  animation-delay: 0.3s; }
.now-playing.is-playing:not(.live-eq) .eq span:nth-child(4) { animation-duration: 0.95s; animation-delay: 0.1s; }
.now-playing.is-playing:not(.live-eq) .eq span:nth-child(5) { animation-duration: 1.25s; animation-delay: 0.25s; }
.now-playing.is-playing:not(.live-eq) .eq span:nth-child(6) { animation-duration: 1.05s; animation-delay: 0.05s; }
.now-playing.is-playing:not(.live-eq) .eq span:nth-child(7) { animation-duration: 1.35s; animation-delay: 0.2s; }
@keyframes eq { 0%, 100% { transform: scaleY(0.2); } 50% { transform: scaleY(0.85); } }
/* When Web Audio drives the bars, JS sets inline transforms every frame,
   and the low end breathes through the glow. */
.now-playing.live-eq .eq span { transition: none; }
.now-playing.live-eq.is-playing .player-art::before {
    animation: none;
    opacity: calc(0.28 + var(--bass, 0) * 0.42);
    transition: opacity 0.18s linear;
}

/* Mood chips - "How do you feel?" */
.mood-row { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; margin-bottom: var(--sp-4); }
.mood-q { font-size: 0.8rem; color: var(--text-muted); margin-inline-end: 0.2rem; }
.mood-chip {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-family: inherit; font-size: 0.8rem; font-weight: 600; text-transform: capitalize;
    padding: 0.32rem 0.8rem; border-radius: var(--r-full); cursor: pointer;
    color: var(--text-secondary); background: var(--glass-bg); border: 1px solid var(--glass-border);
    transition: transform 0.26s var(--ease-spring), border-color 0.2s var(--ease-snap), color 0.2s var(--ease-snap), background-color 0.2s var(--ease-snap);
}
.mood-chip:hover { color: var(--text-primary); border-color: var(--glass-border-strong); transform: translateY(-1px); }
.mood-chip[aria-pressed="true"] {
    color: #0a0a0f; background: var(--accent-primary); border-color: transparent; font-weight: 700;
}
.mood-chip .chip-emoji, .amb-chip .chip-emoji { font-size: 0.92em; line-height: 1; }

/* Ambient layers - quiet outline chips beneath the transport */
.amb-row { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; margin-top: var(--sp-4); }
.amb-q { font-size: 0.8rem; color: var(--text-muted); margin-inline-end: 0.2rem; }
.amb-chip {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-family: inherit; font-size: 0.8rem; font-weight: 600; text-transform: capitalize;
    padding: 0.32rem 0.8rem; border-radius: var(--r-full); cursor: pointer;
    color: var(--text-secondary); background: var(--glass-bg); border: 1px solid var(--glass-border);
    transition: transform 0.26s var(--ease-spring), border-color 0.2s var(--ease-snap), color 0.2s var(--ease-snap), background-color 0.2s var(--ease-snap);
}
.amb-chip:hover { color: var(--text-primary); border-color: var(--glass-border-strong); transform: translateY(-1px); }
.amb-chip[aria-pressed="true"] {
    color: var(--accent-primary); border-color: var(--accent-primary);
    background: color-mix(in srgb, var(--accent-primary) 12%, transparent);
}

/* Floating mini transport - the player follows you down the page */
.mini-player { position: fixed; inset-inline-start: 22px; bottom: 22px; z-index: 90;
    width: 54px; height: 54px; border-radius: 50%; border: none; cursor: pointer;
    display: grid; place-items: center; color: #0a0a0f;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0; pointer-events: none; transform: translateY(12px);
    transition: opacity 0.3s var(--ease-snap), transform 0.3s var(--ease-snap), filter 0.2s var(--ease-snap); }
.mini-player.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mini-player:hover { filter: brightness(1.06); }
.mini-player:active { transform: scale(0.92); }
.mini-player .icon { grid-area: 1 / 1; width: 22px; height: 22px; stroke-width: 2.2;
    transition: opacity 0.18s var(--ease-snap), transform 0.28s var(--ease-spring); }
.mini-player .mp-play { margin-inline-start: 2px; } /* optical centering */
.mini-player .icon[data-off] { opacity: 0; transform: scale(0.55) rotate(-30deg); pointer-events: none; }
.mini-player .mp-loading { animation: spin 0.9s linear infinite; }

.player-row { display: flex; align-items: center; gap: 1rem; }
.player-btn {
    flex: none; width: 64px; height: 64px; border-radius: 50%; border: none; cursor: pointer;
    display: grid; place-items: center; color: #0a0a0f;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    transition: transform 0.18s var(--ease-snap), filter 0.2s var(--ease-snap);
}
.player-btn:hover { transform: scale(1.06); filter: brightness(1.06); }
.player-btn:active { transform: scale(0.92); transition-duration: 0.09s; }
.player-btn .icon { grid-area: 1 / 1; width: 26px; height: 26px; stroke-width: 2.2;
    transition: opacity 0.18s var(--ease-snap), transform 0.28s var(--ease-spring); }
.player-btn #icon-play { margin-inline-start: 3px; } /* optical centering */
.player-btn .icon[data-off] { opacity: 0; transform: scale(0.55) rotate(-30deg); pointer-events: none; }
#icon-loading { animation: spin 0.9s linear infinite; }

.np-meta { min-width: 0; flex: 1; }
.np-title { display: block; max-width: 100%; min-width: 0;
    font-size: 1.1rem; font-weight: 600; line-height: 1.35;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: opacity 0.28s var(--ease-lofi), transform 0.28s var(--ease-lofi); }
.np-title.swap-out { opacity: 0; transform: translateY(-8px); transition: opacity 0.16s var(--ease-exit), transform 0.16s var(--ease-exit); }
.np-title.swap-in { opacity: 0; transform: translateY(10px); transition: none; }
.np-sub { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.25rem; color: var(--text-muted); font-size: 0.88rem; }
.np-mood { padding: 0.12rem 0.6rem; border-radius: var(--r-full); font-size: 0.72rem; font-weight: 600;
    text-transform: capitalize; color: var(--accent-primary); border: 1px solid var(--glass-border);
    background: var(--glass-bg); }
.player-hint { margin-top: var(--sp-4); font-size: 0.82rem; color: var(--text-muted); text-align: center;
    transition: opacity 0.35s var(--ease-lofi); min-height: 1.2em; }
.player-hint.swap { opacity: 0; }
.player-hint a { color: var(--accent-primary); text-decoration: none; font-weight: 600; }
.player-hint a:hover { text-decoration: underline; }

/* ---------------- Section scaffolding ---------------- */
/* (reveal/stagger rules live in site.css) */
.section-band { background: rgba(255, 255, 255, 0.015); border-block: 1px solid var(--glass-border);
    border-radius: var(--r-xl); padding-inline: var(--sp-6); }

/* ---------------- Gallery ---------------- */
.gallery-stage { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--sp-6); align-items: center; max-width: 1040px; margin: 0 auto; position: relative; }
.gallery-stage::before { /* dusk echo, tied to the Mood Ring */
    content: ""; position: absolute; inset: -10% -5%; z-index: -1; pointer-events: none;
    background: radial-gradient(60% 50% at 50% 50%, color-mix(in srgb, var(--accent-primary) 9%, transparent), transparent 70%);
}
.frame-desktop { position: relative; }
.frame-desktop .bar { background: linear-gradient(#20202c, #181822); border: 1px solid rgba(255,255,255,0.08); border-bottom: none;
    border-radius: 16px 16px 0 0; padding: 10px 12px; display: flex; gap: 6px; }
.frame-desktop .bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.frame-desktop .bar i:nth-child(1) { background: #ff5f57; } .frame-desktop .bar i:nth-child(2) { background: #febc2e; } .frame-desktop .bar i:nth-child(3) { background: #28c840; }
.frame-desktop .screen { position: relative; aspect-ratio: 16/10; background: linear-gradient(135deg,#0f0f18,#1a1a28);
    border: 1px solid rgba(255,255,255,0.08); border-top: none; border-radius: 0 0 16px 16px; overflow: hidden; }
.frame-phone { position: relative; width: 230px; margin: 0 auto; }
.frame-phone .screen { position: relative; aspect-ratio: 9/19; background: linear-gradient(135deg,#0f0f18,#1a1a28);
    border: 10px solid #1a1a24; outline: 1px solid rgba(255,255,255,0.09); border-radius: 34px; overflow: hidden; }
.frame-phone .notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 2;
    width: 84px; height: 20px; background: #1a1a24; border-radius: var(--r-full); }
.shot-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center;
    opacity: 0; transform: scale(1.015); transition: opacity 0.7s var(--ease-lofi), transform 0.9s var(--ease-lofi); }
.shot-img.loaded { opacity: 0.94; transform: scale(1); }
.screen-loader { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity 0.4s; }
.screen-loader.hidden { opacity: 0; pointer-events: none; }
.screen-spinner { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--glass-border); border-top-color: var(--accent-primary); animation: spin 0.8s linear infinite; }
/* living frames: the phone floats, a glare sweeps the desktop, the glow breathes */
.frame-desktop .screen::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.05) 50%, transparent 60%);
    transform: translateX(-110%); }
@media (prefers-reduced-motion: no-preference) {
    .frame-phone { animation: phone-float 9s var(--ease-drift) infinite alternate; }
    .frame-desktop .screen::after { animation: glare-sweep 11s var(--ease-lofi) infinite; }
    .gallery-stage::before { animation: stage-breathe 12s var(--ease-drift) infinite alternate; }
}
@keyframes phone-float { from { transform: translateY(0) rotate(0deg); } to { transform: translateY(-9px) rotate(0.5deg); } }
@keyframes glare-sweep { 0% { transform: translateX(-110%); } 22%, 100% { transform: translateX(110%); } }
@keyframes stage-breathe { from { opacity: 0.65; } to { opacity: 1; } }

/* ---------------- The journey - "Not a playlist. A place." ---------------- */
.journey { max-width: 680px; margin: 0 auto; position: relative; }
.journey-step {
    position: relative; display: grid; grid-template-columns: auto 1fr; gap: var(--sp-5);
    padding-bottom: var(--sp-8);
}
.journey-step:last-child { padding-bottom: 0; }
/* the connecting line */
.journey-step::before {
    content: ""; position: absolute; top: 44px; bottom: 4px;
    inset-inline-start: 21px; width: 1px;
    background: linear-gradient(var(--glass-border-strong), var(--glass-border) 80%, transparent);
}
.journey-step:last-child::before { display: none; }
.journey-node {
    width: 44px; height: 44px; border-radius: 50%; flex: none;
    display: grid; place-items: center;
    font-family: 'Sora', sans-serif; font-weight: 800; font-size: 0.85rem;
    color: var(--accent-primary); background: var(--bg-elevated);
    border: 1px solid var(--glass-border-strong);
    position: relative; z-index: 1;
}
.journey-step h3 { font-family: 'Sora', sans-serif; font-size: 1.25rem; font-weight: 800;
    letter-spacing: -0.01em; margin: 0.45rem 0 0.45rem; }
.journey-step p { color: var(--text-secondary); font-size: 1rem; line-height: 1.7; max-width: 56ch; }
.journey-step em { color: var(--text-primary); font-style: italic; }

/* Living nodes - each stop is a tiny scene instead of a number */
.jv-vinyl { position: relative; width: 26px; height: 26px; border-radius: 50%;
    background: repeating-radial-gradient(circle at 50% 50%, #1b1b26 0 2px, #10101a 2px 4px); }
.jv-vinyl::before { content: ""; position: absolute; top: 2px; left: 50%; margin-left: -1px;
    width: 2px; height: 5px; border-radius: 2px; background: rgba(255, 255, 255, 0.3); }
.jv-vinyl::after { content: ""; position: absolute; inset: 9px; border-radius: 50%;
    background: var(--accent-primary); }
.jv-line { position: absolute; height: 2.5px; border-radius: 2px; background: var(--text-muted);
    inset-inline-start: 12px; transform-origin: left; }
[dir="rtl"] .jv-line { transform-origin: right; }
.l-a { width: 17px; top: 17px; }
.l-b { width: 11px; top: 23px; opacity: 0.55; }
.jv-caret { position: absolute; width: 2px; height: 10px; top: 15px; inset-inline-start: 31px;
    border-radius: 2px; background: var(--accent-primary); }
.jv-desk { position: absolute; inset-inline-start: 8px; top: 15px; width: 14px; height: 11px;
    border: 1.5px solid var(--text-muted); border-radius: 3px; }
.jv-phone { position: absolute; inset-inline-end: 9px; top: 14px; width: 8px; height: 13px;
    border: 1.5px solid var(--text-muted); border-radius: 2.5px; }
.jv-ping { position: absolute; top: 19px; left: 50%; margin-left: -2px; width: 4px; height: 4px;
    border-radius: 50%; background: var(--accent-primary); }
.jv-beat { width: 28px; height: 18px; display: block; }
.jv-beat polyline { stroke: var(--accent-primary); stroke-width: 1.6;
    stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
    /* the connecting line draws itself as each step reveals */
    html.js .journey-step::before { transform: scaleY(0); transform-origin: top;
        transition: transform 1s var(--ease-lofi) 0.35s; }
    html.js .journey-step.in-view::before { transform: scaleY(1); }
    .jv-vinyl { animation: vinyl-spin 5s linear infinite; }
    .jv-line { animation: type-line 4.6s var(--ease-lofi) infinite; }
    .l-b { animation-delay: 0.6s; }
    .jv-caret { animation: caret-blink 1.1s steps(1) infinite; }
    .jv-ping { animation: ping-travel 2.8s ease-in-out infinite; }
    .jv-beat polyline { stroke-dasharray: 52; stroke-dashoffset: 52;
        animation: beat-draw 3s linear infinite; }
}
@keyframes vinyl-spin { to { transform: rotate(360deg); } }
@keyframes type-line { 0% { transform: scaleX(0); } 35%, 82% { transform: scaleX(1); }
    97%, 100% { transform: scaleX(0); } }
@keyframes caret-blink { 50% { opacity: 0; } }
@keyframes ping-travel { 0% { transform: translateX(-8px); opacity: 0; } 18% { opacity: 1; }
    50% { transform: translateX(8px); opacity: 1; } 66% { opacity: 0; }
    100% { transform: translateX(-8px); opacity: 0; } }
@keyframes beat-draw { 0% { stroke-dashoffset: 52; opacity: 1; } 55% { stroke-dashoffset: 0; opacity: 1; }
    80% { stroke-dashoffset: 0; opacity: 1; } 92% { opacity: 0; }
    100% { stroke-dashoffset: 52; opacity: 0; } }

/* ---------------- Features - the living bento ----------------
   No icons: each card opens with a small vignette that IS the feature,
   drawn in CSS and keyed to the accent variables so the Mood Ring repaints
   the whole section live. Motion sits behind prefers-reduced-motion; the
   frozen frames still read as flat illustrations. */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.bento .feature-card { padding: var(--sp-6); text-align: start; position: relative; overflow: hidden; }
.bento .span-2 { grid-column: span 2; }
.feature-card h3 { font-size: 1.06rem; font-weight: 600; margin-bottom: 0.45rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.6; }

.vig { position: relative; height: 96px; border-radius: var(--r-md); overflow: hidden;
    margin-bottom: 1.1rem; border: 1px solid var(--glass-border); background: rgba(10, 10, 15, 0.45); }

/* 1 - Original Music: a waveform, breathing */
.vig-music { display: flex; align-items: center; justify-content: center; gap: 7px; }
.vig-music i { width: 4px; border-radius: 3px; flex: none;
    height: calc(var(--h) * 1px); opacity: 0.85;
    background: linear-gradient(var(--accent-primary), var(--accent-secondary)); }
.vig-music i:nth-child(1)  { --h: 14; } .vig-music i:nth-child(2)  { --h: 24; }
.vig-music i:nth-child(3)  { --h: 36; } .vig-music i:nth-child(4)  { --h: 48; }
.vig-music i:nth-child(5)  { --h: 58; } .vig-music i:nth-child(6)  { --h: 52; }
.vig-music i:nth-child(7)  { --h: 42; } .vig-music i:nth-child(8)  { --h: 30; }
.vig-music i:nth-child(9)  { --h: 20; } .vig-music i:nth-child(10) { --h: 26; }
.vig-music i:nth-child(11) { --h: 38; } .vig-music i:nth-child(12) { --h: 52; }
.vig-music i:nth-child(13) { --h: 62; } .vig-music i:nth-child(14) { --h: 54; }
.vig-music i:nth-child(15) { --h: 42; } .vig-music i:nth-child(16) { --h: 30; }
.vig-music i:nth-child(17) { --h: 20; } .vig-music i:nth-child(18) { --h: 12; }

/* 2 - Anime Visuals: a mini scene wired to the Mood Ring */
.vig-scene { background: linear-gradient(180deg,
    color-mix(in srgb, var(--accent-primary) 30%, #0b0b14) 0%, #0b0b14 82%); }
.scene-sun { position: absolute; top: 15px; inset-inline-end: 20%; width: 26px; height: 26px; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, var(--accent-secondary), var(--accent-primary) 72%); }
.scene-hill { position: absolute; bottom: -1px; height: 52px; }
.h-far { inset-inline-start: -4%; width: 76%; background: #131320;
    clip-path: polygon(0 100%, 16% 38%, 34% 70%, 55% 18%, 76% 62%, 100% 100%); }
.h-near { inset-inline-end: -6%; width: 70%; height: 38px; background: #1a1a2a;
    clip-path: polygon(0 100%, 22% 42%, 48% 74%, 72% 26%, 100% 100%); }
.scene-star { position: absolute; width: 2px; height: 2px; border-radius: 50%;
    background: var(--text-secondary); opacity: 0.6; }
.st-a { top: 18px; inset-inline-start: 14%; }
.st-b { top: 36px; inset-inline-start: 33%; }
.st-c { top: 12px; inset-inline-start: 52%; }

/* 3 - Ambient Sounds: rain over the layer chips */
.vig-rain i { position: absolute; width: 1.5px; height: 20px; border-radius: 2px; opacity: 0.35;
    background: linear-gradient(transparent, var(--accent-secondary)); }
.vig-rain i:nth-child(1) { inset-inline-start: 7%;  top: 24%; --d: 0;    }
.vig-rain i:nth-child(2) { inset-inline-start: 18%; top: 55%; --d: 0.7;  }
.vig-rain i:nth-child(3) { inset-inline-start: 29%; top: 12%; --d: 1.3;  }
.vig-rain i:nth-child(4) { inset-inline-start: 40%; top: 44%; --d: 0.3;  }
.vig-rain i:nth-child(5) { inset-inline-start: 51%; top: 66%; --d: 1.7;  }
.vig-rain i:nth-child(6) { inset-inline-start: 62%; top: 20%; --d: 0.9;  }
.vig-rain i:nth-child(7) { inset-inline-start: 73%; top: 50%; --d: 1.5;  }
.vig-rain i:nth-child(8) { inset-inline-start: 84%; top: 8%;  --d: 0.5;  }
.vig-rain i:nth-child(9) { inset-inline-start: 93%; top: 38%; --d: 1.1;  }
.layer-chips { position: absolute; bottom: 10px; inset-inline-start: 12px; display: flex; gap: 6px; }
.layer-chips span { font-size: 0.64rem; font-weight: 600; letter-spacing: 0.03em;
    padding: 0.14rem 0.55rem; border-radius: var(--r-full); color: var(--text-secondary);
    border: 1px solid var(--glass-border-strong); background: rgba(10, 10, 15, 0.6); }

/* 4 - Free Forever: the $0 coffee, still steaming */
.vig-coffee { display: grid; place-items: center; }
.vig-coffee .cup { position: relative; width: 46px; height: 30px; margin-top: 14px;
    border: 2px solid var(--text-secondary); border-radius: 5px 5px 15px 15px;
    display: grid; place-items: center;
    font-family: 'Sora', sans-serif; font-weight: 800; font-size: 0.62rem; color: var(--accent-primary); }
.vig-coffee .cup::before { content: "$0"; }
.vig-coffee .cup::after { content: ""; position: absolute; top: 3px; right: -13px; width: 11px; height: 15px;
    border: 2px solid var(--text-secondary); border-left: none; border-radius: 0 9px 9px 0; }
.vig-coffee .steam { position: absolute; top: 20px; left: 50%; width: 2px; height: 12px;
    border-radius: 2px; background: var(--accent-primary); opacity: 0.3; }
.vig-coffee .s-a { margin-left: -9px; } .vig-coffee .s-b { margin-left: -1px; } .vig-coffee .s-c { margin-left: 7px; }

/* Utility strip - the four everyday tools, with live micro-vignettes */
.util-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-top: 1.1rem;
    padding-top: var(--sp-5); border-top: 1px solid var(--glass-border); }
.util-item { display: flex; gap: 0.8rem; align-items: flex-start; }
.util-item h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.25rem; }
.util-item p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.55; }
.uvig { position: relative; flex: none; width: 40px; height: 40px; border-radius: 12px;
    border: 1px solid var(--glass-border); background: rgba(10, 10, 15, 0.4);
    display: grid; place-items: center; }
.uvig > * { grid-area: 1 / 1; }
/* pomodoro: a focus ring, quietly sweeping */
.pomo-ring { width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid color-mix(in srgb, var(--accent-primary) 30%, transparent); }
.pomo-arc { width: 20px; height: 20px; border-radius: 50%; border: 2px solid transparent;
    border-top-color: var(--accent-primary); }
/* sleep: a crescent with drifting z's */
.moon { width: 16px; height: 16px; border-radius: 50%;
    box-shadow: inset -4px 3px 0 0 var(--accent-primary); transform: rotate(15deg); }
.zz { position: absolute; top: 4px; inset-inline-end: 6px; font-family: 'Sora', sans-serif; font-weight: 800;
    font-size: 8px; line-height: 1; color: var(--accent-secondary); opacity: 0.55; }
.z-b { top: 11px; inset-inline-end: 12px; font-size: 6px; }
/* favorites: a heart with a resting pulse */
.heart { width: 11px; height: 11px; border-radius: 2px; background: var(--accent-primary);
    transform: rotate(45deg) translate(-2px, -2px); }
.heart::before, .heart::after { content: ""; position: absolute; width: 11px; height: 11px;
    border-radius: 50%; background: inherit; }
.heart::before { top: -5.5px; left: 0; }
.heart::after { top: 0; left: -5.5px; }
/* themes: three dots trading palettes */
.uvig-dots { display: flex; gap: 4px; align-items: center; justify-content: center; }
.uvig-dots .td { width: 7px; height: 7px; border-radius: 50%; background: #FFB84D; }
.uvig-dots .td:nth-child(2) { background: #C08CFF; }
.uvig-dots .td:nth-child(3) { background: #6FD3B4; }

/* the living part - every animation in this section sits behind this gate */
@media (prefers-reduced-motion: no-preference) {
    .vig-music i { transform-origin: center;
        animation: wave-breathe 3.6s var(--ease-drift) infinite;
        animation-delay: calc(var(--h) * -0.05s); }
    .scene-sun { animation: sun-drift 16s var(--ease-drift) infinite alternate; }
    .scene-star { animation: star-twinkle 4s ease-in-out infinite; }
    .st-b { animation-delay: -1.4s; } .st-c { animation-delay: -2.6s; }
    .vig-rain i { top: -24px; opacity: 0;
        animation: rain-fall 2.2s linear infinite; animation-delay: calc(var(--d) * 1s); }
    .vig-coffee .steam { animation: steam-rise 2.8s ease-in-out infinite; }
    .vig-coffee .s-b { animation-delay: -0.9s; } .vig-coffee .s-c { animation-delay: -1.8s; }
    .pomo-arc { animation: pomo-sweep 8s linear infinite; }
    .zz { opacity: 0; animation: z-drift 3.8s ease-in-out infinite; }
    .z-b { animation-delay: -1.9s; }
    .heart { animation: heart-pulse 3.2s var(--ease-drift) infinite; }
    .uvig-dots .td { animation: theme-cycle 10s linear infinite; }
    .uvig-dots .td:nth-child(2) { animation-delay: -3.3s; }
    .uvig-dots .td:nth-child(3) { animation-delay: -6.6s; }
}
@keyframes wave-breathe { 0%, 100% { transform: scaleY(0.72); } 50% { transform: scaleY(1); } }
@keyframes sun-drift { from { transform: translateY(0); } to { transform: translateY(12px); } }
@keyframes star-twinkle { 0%, 100% { opacity: 0.2; } 50% { opacity: 0.8; } }
@keyframes rain-fall { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: 0.45; }
    82% { opacity: 0.45; } 100% { transform: translateY(150px); opacity: 0; } }
@keyframes steam-rise { 0% { transform: translateY(6px) scaleY(0.6); opacity: 0; }
    35% { opacity: 0.55; } 100% { transform: translateY(-11px) scaleY(1); opacity: 0; } }
@keyframes pomo-sweep { to { transform: rotate(360deg); } }
@keyframes z-drift { 0% { transform: translateY(5px); opacity: 0; } 35% { opacity: 0.7; }
    75%, 100% { transform: translateY(-7px); opacity: 0; } }
@keyframes heart-pulse { 0%, 100% { transform: rotate(45deg) translate(-2px, -2px) scale(1); }
    8% { transform: rotate(45deg) translate(-2px, -2px) scale(1.18); }
    16% { transform: rotate(45deg) translate(-2px, -2px) scale(1); } }
@keyframes theme-cycle { 0%, 100% { background: #FFB84D; } 20% { background: #6FD3B4; }
    40% { background: #C08CFF; } 60% { background: #7A8CFF; } 80% { background: #6B7BD6; } }

/* ---------------- Social proof - honest strip + curated reviews ---------------- */
.stats-strip { display: flex; justify-content: center; gap: clamp(1.5rem, 5vw, 4rem); flex-wrap: wrap;
    border-block: 1px solid var(--glass-border); padding: var(--sp-6) 0; max-width: 1000px; margin: 0 auto; }
.stat { text-align: center; }
.stat-value { font-family: 'Sora', sans-serif; font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--text-primary); font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.3rem; }

/* Micro-vignettes above the honest numbers */
.stat-vig { display: flex; align-items: center; justify-content: center; gap: 3px;
    height: 22px; margin: 0 auto 7px; }
.sv-eq i { width: 3px; height: 14px; border-radius: 2px; transform-origin: bottom;
    background: linear-gradient(var(--accent-primary), var(--accent-secondary)); }
.sv-eq i:nth-child(2) { height: 9px; } .sv-eq i:nth-child(3) { height: 12px; }
.sv-play { position: relative; width: 16px; height: 16px; }
.sv-play::before { content: ""; position: absolute; inset: 4px 3px 4px 6px;
    background: var(--accent-primary); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.sv-play::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
    border: 1.5px solid var(--accent-primary); opacity: 0.5; }
.sv-clock { position: relative; width: 16px; height: 16px; border-radius: 50%;
    border: 1.5px solid var(--accent-primary); }
.sv-clock::after { content: ""; position: absolute; top: 50%; left: 50%; width: 1.5px; height: 5.5px;
    margin-left: -0.75px; border-radius: 2px; background: var(--accent-primary);
    transform-origin: 50% 0; transform: rotate(140deg); }
.sv-pulse { position: relative; width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent-primary); }
.sv-pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
    background: var(--accent-primary); opacity: 0.4; }
.sv-pings { position: relative; width: 28px; height: 18px; }
.sv-pings i { position: absolute; width: 4px; height: 4px; border-radius: 50%;
    background: var(--accent-primary); opacity: 0.45; }
.sv-pings i:nth-child(1) { top: 10px; inset-inline-start: 2px; }
.sv-pings i:nth-child(2) { top: 3px;  inset-inline-start: 12px; }
.sv-pings i:nth-child(3) { top: 11px; inset-inline-start: 22px; }
.sv-cycle { position: relative; width: 24px; height: 16px; overflow: hidden; }
.sv-cycle::before { content: ""; position: absolute; bottom: 2px; left: 0; right: 0; height: 1.5px;
    border-radius: 2px; background: var(--glass-border-strong); }
.sv-cycle::after { content: ""; position: absolute; bottom: 4px; left: 50%; margin-left: -3.5px;
    width: 7px; height: 7px; border-radius: 50%; background: var(--accent-primary); }
@media (prefers-reduced-motion: no-preference) {
    .sv-eq i { animation: eq-mini 2.6s var(--ease-drift) infinite; }
    .sv-eq i:nth-child(2) { animation-delay: -0.9s; } .sv-eq i:nth-child(3) { animation-delay: -1.7s; }
    .sv-play::after { animation: dot-ring 3s var(--ease-drift) infinite; }
    .sv-clock::after { animation: clock-hand 9s linear infinite; }
    .sv-pulse::after { animation: dot-ring 2.8s var(--ease-drift) infinite; }
    .sv-pings i { animation: ping-blip 3.6s ease-in-out infinite; }
    .sv-pings i:nth-child(2) { animation-delay: -1.2s; } .sv-pings i:nth-child(3) { animation-delay: -2.4s; }
    .sv-cycle::after { animation: sun-cycle 7s ease-in-out infinite; }
}
@keyframes eq-mini { 0%, 100% { transform: scaleY(0.55); } 50% { transform: scaleY(1); } }
@keyframes clock-hand { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes ping-blip { 0%, 100% { opacity: 0.25; transform: scale(1); } 50% { opacity: 1; transform: scale(1.35); } }
@keyframes sun-cycle { 0%, 100% { transform: translateY(9px); opacity: 0; }
    22% { opacity: 1; } 50% { transform: translateY(0); opacity: 1; } 78% { opacity: 1; } }
.changelog-line { text-align: center; margin-top: var(--sp-6); color: var(--text-muted); font-size: 0.9rem; }
.changelog-line .new-badge { display: inline-flex; align-items: center; gap: 0.35rem;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; color: var(--accent-primary);
    border: 1px solid var(--glass-border); padding: 0.15rem 0.6rem; border-radius: var(--r-full);
    margin-inline-end: 0.6rem; vertical-align: middle; }

/* Curated review quotes (rendered only when static/reviews.json has entries) */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem;
    max-width: 900px; margin: var(--sp-6) auto 0; }
.quote { padding: var(--sp-5); }
.quote .stars { display: flex; gap: 0.15rem; color: var(--accent-primary); margin-bottom: 0.7rem; }
.quote .stars .icon { width: 15px; height: 15px; fill: currentColor; }
.quote p { font-size: 0.95rem; line-height: 1.65; color: var(--text-secondary); margin-bottom: 0.8rem; }
.quote .who { font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }

/* ---------------- Download ---------------- */
.dl-detected { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: var(--sp-5);
    padding: 0.5rem 1rem; border-radius: var(--r-full); background: var(--glass-bg); border: 1px solid var(--glass-border);
    color: var(--text-secondary); font-size: 0.88rem; }
.dl-detected b { color: var(--accent-primary); }
.dl-center { text-align: center; }
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 900px; margin: 0 auto; }
.dl-card { display: flex; align-items: center; gap: 0.9rem; padding: 1.1rem 1.3rem; text-align: start;
    background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--r-md); color: var(--text-primary);
    text-decoration: none; transition: transform 0.2s var(--ease-snap), border-color 0.2s var(--ease-snap), background-color 0.2s var(--ease-snap); }
.dl-card:hover { transform: translateY(-3px); border-color: var(--accent-primary); background: var(--glass-bg-strong); }
.dl-card:active { transform: translateY(-1px); }
.dl-card.is-detected { border-color: var(--accent-primary); background: var(--glass-bg-strong); }
@media (prefers-reduced-motion: no-preference) {
    .dl-card.is-detected { animation: detected-breathe 4.5s var(--ease-drift) infinite; }
    /* "We think you're on …" types its answer in as the section reveals */
    html.js .dl-center.in-view #dl-detected-name { display: inline-block; overflow: hidden;
        white-space: nowrap; vertical-align: bottom; max-width: 14ch;
        animation: os-type 1.1s steps(14) 0.5s backwards; }
}
@keyframes detected-breathe { 0%, 100% { border-color: var(--accent-primary); }
    50% { border-color: color-mix(in srgb, var(--accent-primary) 40%, var(--glass-border)); } }
@keyframes os-type { from { max-width: 0; } to { max-width: 14ch; } }
.dl-card .brand { width: 26px; height: 26px; flex: none; fill: currentColor; }
.dl-label { font-size: 0.72rem; color: var(--text-muted); }
.dl-name { font-weight: 600; font-size: 0.98rem; }

/* ---------------- FAQ ---------------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--r-md);
    overflow: hidden; transition: border-color 0.25s var(--ease-snap); }
.faq-item[open] { border-color: var(--glass-border-strong); }
.faq-item summary { cursor: pointer; list-style: none; padding: 1.1rem 1.3rem; display: flex; align-items: center;
    justify-content: space-between; gap: 1rem; font-weight: 600; font-size: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { width: 18px; height: 18px; color: var(--text-muted);
    transition: transform 0.3s var(--ease-spring), color 0.2s var(--ease-snap); flex: none; }
.faq-item[open] summary .icon { transform: rotate(45deg); color: var(--accent-primary); }
.faq-item .faq-body { padding: 0 1.3rem 1.2rem; color: var(--text-secondary); line-height: 1.65; font-size: 0.95rem; }
/* smooth open (browsers with ::details-content) + an accent line that draws */
.faq-list { interpolate-size: allow-keywords; }
.faq-item { position: relative; }
.faq-item::before { content: ""; position: absolute; inset-inline-start: 0; top: 14px; bottom: 14px;
    width: 2px; border-radius: 2px; background: var(--accent-primary);
    transform: scaleY(0); transform-origin: top; }
.faq-item[open]::before { transform: scaleY(1); }
@media (prefers-reduced-motion: no-preference) {
    .faq-item::before { transition: transform 0.45s var(--ease-lofi); }
    .faq-item::details-content { block-size: 0; overflow: clip;
        transition: block-size 0.4s var(--ease-lofi), content-visibility 0.4s allow-discrete; }
    .faq-item[open]::details-content { block-size: auto; }
}

/* ---------------- Final CTA - dusk horizon band ---------------- */
.final-cta { text-align: center; padding: var(--sp-10) var(--sp-6) calc(var(--sp-10) + 44px);
    max-width: 760px; margin: 0 auto; position: relative; overflow: hidden; border-radius: var(--r-xl); }
.final-cta h2 { font-family: 'Sora', sans-serif; font-weight: 800; font-size: clamp(1.7rem, 3.6vw, 2.4rem);
    margin-bottom: 0.6rem; }
.final-cta p { color: var(--text-secondary); margin-bottom: var(--sp-6); }
.final-cta > h2, .final-cta > p, .final-cta > .btn { position: relative; z-index: 1; }
.cta-horizon { position: absolute; inset: auto 0 0 0; height: 150px; pointer-events: none; opacity: 0.55; }
.cta-horizon::before { content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent-primary) 10%, transparent)); }
/* sky - stars, clouds, birds, and the occasional falling one */
.ch-star { position: absolute; width: 2px; height: 2px; border-radius: 50%;
    background: var(--text-secondary); opacity: 0.5; }
.st1 { top: 16px; left: 12%; } .st2 { top: 34px; left: 27%; width: 1.5px; height: 1.5px; }
.st3 { top: 10px; left: 47%; } .st4 { top: 28px; left: 66%; width: 1.5px; height: 1.5px; }
.st5 { top: 18px; left: 86%; }
.ch-cloud { position: absolute; height: 22px; border-radius: 50%; filter: blur(7px);
    background: radial-gradient(closest-side, rgba(255, 255, 255, 0.09), transparent); }
.cl1 { width: 150px; top: 18px; left: 10%; }
.cl2 { width: 110px; top: 42px; left: 56%; opacity: 0.7; }
.cl3 { width: 80px;  top: 8px;  left: 74%; opacity: 0.5; }
.ch-shoot { position: absolute; top: 12px; left: 22%; width: 46px; height: 1.5px; border-radius: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75));
    transform: rotate(16deg); opacity: 0; }
.ch-birds { position: absolute; top: 26px; left: 58%; width: 34px; height: 10px; }
.ch-birds path { stroke: #0c0c14; stroke-width: 1.3; stroke-linecap: round;
    transform-box: fill-box; transform-origin: center; }
/* the sun, with a breathing halo the Mood Ring can recolor */
.ch-sun { position: absolute; bottom: 34px; inset-inline-start: 24%; width: 26px; height: 26px; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, var(--accent-secondary), var(--accent-primary) 72%); }
.ch-sun::after { content: ""; position: absolute; inset: -16px; border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow), transparent 68%); opacity: 0.7; }
/* three ridges deep */
.ch-hill { position: absolute; bottom: -1px; height: 42px; background: #12121d; }
.ch-far { inset-inline-start: 6%; width: 90%; height: 60px; background: #10101b; opacity: 0.6;
    clip-path: polygon(0 100%, 12% 52%, 30% 80%, 48% 38%, 66% 72%, 84% 46%, 100% 100%); }
.ch-a { inset-inline-start: -4%; width: 62%;
    clip-path: polygon(0 100%, 18% 40%, 40% 74%, 62% 24%, 82% 66%, 100% 100%); }
.ch-b { inset-inline-end: -5%; width: 58%; height: 30px; background: #181826;
    clip-path: polygon(0 100%, 24% 44%, 52% 78%, 76% 30%, 100% 100%); }
/* the founder, walking peacefully into the dusk - with a real gait */
.ch-walk { position: absolute; bottom: 4px; left: 26%; display: flex; flex-direction: column;
    align-items: center; gap: 2px; }
.ch-name { font-size: 0.58rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--text-muted); white-space: nowrap; }
.ch-walker { width: 17px; height: 32px; fill: #08080c; }
.ch-walker .wk-leg, .ch-walker .wk-arm { transform-box: fill-box; transform-origin: 50% 6%; }
/* static pose (reduced motion / first paint): a mid-stride stance */
.wk-f { transform: rotate(14deg); }
.wk-b { transform: rotate(-12deg); }
.wk-arm { transform: rotate(-10deg); }
@media (prefers-reduced-motion: no-preference) {
    .ch-sun { animation: cta-sunset 20s var(--ease-drift) infinite alternate; }
    .ch-sun::after { animation: halo-breathe 6s var(--ease-drift) infinite alternate; }
    .cl1 { animation: cloud-drift 110s linear infinite; animation-delay: -30s; }
    .cl2 { animation: cloud-drift 85s  linear infinite; animation-delay: -60s; }
    .cl3 { animation: cloud-drift 70s  linear infinite; animation-delay: -10s; }
    .ch-shoot { animation: shoot 17s linear infinite; }
    .ch-birds { animation: birds-fly 55s linear infinite; animation-delay: -22s; }
    .ch-birds path { animation: bird-flap 0.55s ease-in-out infinite alternate; }
    .ch-birds path:nth-child(2) { animation-delay: -0.2s; }
    .ch-birds path:nth-child(3) { animation-delay: -0.4s; }
    .ch-walk { animation: walk-across 75s linear infinite; }
    .ch-walker { animation: walk-bob 0.47s var(--ease-drift) infinite alternate; }
    .wk-f { animation: leg-swing 0.94s ease-in-out infinite alternate; }
    .wk-b { animation: leg-swing 0.94s ease-in-out infinite alternate-reverse; }
    .wk-arm { animation: arm-swing 0.94s ease-in-out infinite alternate-reverse; }
}
@keyframes cta-sunset { from { transform: translateY(0); } to { transform: translateY(16px); } }
@keyframes halo-breathe { from { transform: scale(1); opacity: 0.5; } to { transform: scale(1.18); opacity: 0.8; } }
@keyframes cloud-drift { from { left: -18%; } to { left: 104%; } }
@keyframes shoot { 0%, 91% { opacity: 0; transform: rotate(16deg) translateX(0); }
    93% { opacity: 0.8; } 97%, 100% { opacity: 0; transform: rotate(16deg) translateX(90px); } }
@keyframes birds-fly { from { left: 108%; top: 26px; } 50% { top: 16px; } to { left: -14%; top: 30px; } }
@keyframes bird-flap { from { transform: scaleY(1); } to { transform: scaleY(0.45); } }
@keyframes walk-across { from { left: -10%; } to { left: 106%; } }
@keyframes walk-bob { from { transform: translateY(0) rotate(0.6deg); } to { transform: translateY(-1.6px) rotate(-0.6deg); } }
@keyframes leg-swing { from { transform: rotate(26deg); } to { transform: rotate(-26deg); } }
@keyframes arm-swing { from { transform: rotate(18deg); } to { transform: rotate(-18deg); } }

/* ---------------- Responsive ---------------- */
@media (max-width: 940px) {
    .hero { grid-template-columns: 1fr; gap: var(--sp-8); text-align: center; min-height: 0; padding-top: var(--sp-8); }
    .hero-copy { max-width: 640px; margin: 0 auto; }
    .hero-actions { justify-content: center; }
    .hero-accent { white-space: normal; }
    .mood-row { justify-content: center; }
    .gallery-stage { grid-template-columns: 1fr; gap: var(--sp-10); }
    /* width:100% is load-bearing - without it, margin:auto makes this grid item
       shrink-to-fit, and .screen (aspect-ratio + absolute img, no intrinsic
       width) collapses to the traffic-light bar. */
    .frame-desktop { width: 100%; max-width: 560px; margin-inline: auto; }
    .bento { grid-template-columns: repeat(2, 1fr); }
    .bento .span-2 { grid-column: span 2; }
    .util-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .bento { grid-template-columns: 1fr; }
    .bento .span-2 { grid-column: span 1; }
    .util-row { grid-template-columns: 1fr; }
    .dl-grid { grid-template-columns: 1fr; }
    .player { padding: var(--sp-5); }
    .journey-step { grid-template-columns: auto 1fr; gap: var(--sp-4); }
}
