/* Somebody There · a3i
   Base first, then one block per song layout (.s-<layout>).
   Scroll-driven animation: elements with .sd seek a paused 1s keyframe animation to --p (0..1),
   which site/main.js sets from scroll position. Ambient loops (lights, embers) stop for reduced motion. */

@property --r  { syntax: "<percentage>"; inherits: false; initial-value: 6%; }
@property --fx { syntax: "<percentage>"; inherits: false; initial-value: 30%; }
@property --fr { syntax: "<percentage>"; inherits: false; initial-value: 14%; }
@property --x  { syntax: "<percentage>"; inherits: false; initial-value: 0%; }

:root {
  --display: "Bodoni Moda", Didot, Georgia, serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --gutter: max(16px, 4vw);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #0e1016; color: #efe9df; font: 400 17px/1.65 var(--body); transition: background-color 1.2s ease; overflow-x: clip; }
img { max-width: 100%; display: block; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
abbr[title] { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }

.sd { animation-duration: 1s; animation-timing-function: linear; animation-fill-mode: both; animation-play-state: paused; animation-delay: calc(var(--p, 0) * -0.999s); }
.lu { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.lu.in { opacity: 1; transform: none; }

/* lyrics: opt-in per song, one sung line per visual line (site/main.js scales --fit so the longest line fits) */
.lyrics { display: contents; }
.lyrics[hidden] { display: none; }
.ln { display: block; white-space: nowrap; }
.wrap .ln { white-space: normal; padding-left: 1em; text-indent: -1em; } /* last resort on very narrow screens */
.lyrics-toggle { display: flex; align-items: center; gap: 10px; width: fit-content; margin-top: 18px; padding: 6px 0; background: none; border: 0;
  border-bottom: 1px solid currentColor; color: var(--acc, currentColor); font: 500 12px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.lyrics-toggle::after { content: "+"; font-size: 16px; line-height: 1; }
.lyrics-toggle[aria-expanded="true"]::after { content: "\2013"; }
.lyrics-toggle .hide, .lyrics-toggle[aria-expanded="true"] .show { display: none; }
.lyrics-toggle[aria-expanded="true"] .hide { display: inline; }

.eyebrow, .lab, .room-name { font: 500 11.5px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.song { position: relative; color: var(--ink); }
.song-head { display: grid; gap: 10px; margin-bottom: 22px; }
.song-head .eyebrow { color: var(--acc); }
.song h2 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-style: italic; }
.story { max-width: 58ch; font-size: 1.06rem; opacity: .92; }
.sec { margin-top: 30px; min-width: 0; }
.sec .lab { display: block; color: var(--acc); margin-bottom: 6px; }
.sec p { font-family: var(--display); font-size: calc(1.18rem * var(--fit, 1)); line-height: 1.6; }
.sec.chorus p { font-style: italic; }

.listen { display: inline-flex; align-items: center; gap: 12px; width: fit-content; margin-top: 22px; padding: 11px 20px 11px 14px;
  border: 1px solid var(--acc, currentColor); border-radius: 999px; color: var(--acc, currentColor); text-decoration: none; font: 600 14px var(--body);
  transition: background-color .3s, color .3s; }
.listen:hover, .listen:focus-visible { background: var(--acc, currentColor); color: var(--bg, #0e1016); }
.play { width: 0; height: 0; border-left: 10px solid currentColor; border-block: 6px solid transparent; }

/* split layout: sticky stage + scrolling text (dot, house, rhythm, kalimera) */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); max-width: 1320px; margin: 0 auto; padding-inline: var(--gutter); }
.split.rev { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.split.rev .stage { order: 2; }
.split .stage { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; align-self: start; }
.split .frame { position: relative; width: min(100%, 84svh); aspect-ratio: 1; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split .flow { padding-block: 22svh 30svh; min-height: 230svh; } /* scroll room for the image animation when lyrics are hidden */

/* ---------- chrome: index, opening, closing ---------- */

.index { position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 20; display: grid; gap: 12px; }
.index a { position: relative; display: block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid #efe9df99; }
body.light .index a { border-color: #15294d88; }
.index a[aria-current] { background: #efe9df; }
body.light .index a[aria-current] { background: #15294d; }
.index span { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); white-space: nowrap; font: 500 12px var(--mono); padding: 4px 8px;
  background: #0e1016e6; color: #efe9df; opacity: 0; pointer-events: none; transition: opacity .2s; }
.index a:hover span, .index a:focus-visible span { opacity: 1; }

.opening { min-height: 100svh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 14px; padding: 12svh var(--gutter) 8svh; }
.opening-logo { width: clamp(180px, 26vw, 300px); height: auto; animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { filter: drop-shadow(0 0 18px #5ab8ff77) brightness(1.1); } }
.opening .eyebrow { color: #8fc7ff; }
.opening h1 { font-size: clamp(3.2rem, 11vw, 8.5rem); font-style: italic; }
.opening .sub { color: #b9b2c9; max-width: 44ch; }
.covers { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: clamp(6px, 1.2vw, 16px); width: min(1100px, 100%); }
.covers a { display: grid; gap: 8px; text-decoration: none; }
.covers img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; opacity: .35; filter: saturate(.4);
  animation: lamp .8s ease forwards; animation-delay: calc(.6s + var(--i) * .25s); transition: transform .3s; }
.covers a:hover img, .covers a:focus-visible img { transform: translateY(-4px); }
@keyframes lamp { to { opacity: 1; filter: none; } }
.covers span { font: 500 10.5px/1.3 var(--mono); color: #a39e95; letter-spacing: .06em; }

.closing { min-height: 90svh; display: grid; place-content: center; justify-items: center; gap: 22px; text-align: center; color: #15294d; padding: 16svh var(--gutter); --acc: #1f4e9c; --bg: #f7f4ee; }
.closing .last { font: italic 400 clamp(2.6rem, 8vw, 6rem)/1.05 var(--display); }
.closing-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.closing-links .listen { margin: 0; }
.closing-logo { width: 180px; height: auto; margin-top: 30px; }
.closing .small { font: 400 12px var(--mono); opacity: .6; }

.about-link { font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #1f4e9c; text-underline-offset: 5px; }

/* ---------- about / credits ---------- */
.about-page { background: #0e1016; }
.about { --acc: #8fc7ff; --bg: #0e1016; min-height: 100svh; display: grid; justify-items: center; gap: 28px; padding: 10svh var(--gutter) 12svh; text-align: center; }
.back { justify-self: start; font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #8fc7ff; text-decoration: none; }
.back:hover, .back:focus-visible { text-decoration: underline; text-underline-offset: 5px; }
.about-head { display: grid; justify-items: center; gap: 14px; }
.about-head .eyebrow { color: #8fc7ff; }
.about-head h1 { font-size: clamp(3rem, 9vw, 6.5rem); font-style: italic; }
.about-head .sub { color: #b9b2c9; max-width: 52ch; font-size: 1.08rem; }
.credits { display: grid; gap: 0; width: min(760px, 100%); margin: 30px 0 0; }
.credit { display: grid; gap: 6px; padding: 28px 0; border-top: 1px solid #efe9df1f; }
.credit:last-child { border-bottom: 1px solid #efe9df1f; }
.credit dt { font: 500 11.5px/1.4 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: #8fc7ff; }
.credit dd { margin: 0; display: grid; gap: 4px; }
.credit .who { font: italic 400 clamp(1.8rem, 4.4vw, 2.8rem)/1.1 var(--display); color: #efe9df; }
.credit .note { font-size: .95rem; color: #a39e95; }
.credit.lead .who { font-size: clamp(3.2rem, 9vw, 5.6rem); background: linear-gradient(90deg, #5ab8ff, #9b6bff); -webkit-background-clip: text; background-clip: text; color: transparent; padding-inline: .1em; }
.ribbon { width: calc(100% + 2 * var(--gutter)); max-width: none; overflow: hidden; margin-block: 30px 10px; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ribbon-track { display: flex; gap: 14px; width: max-content; animation: ribbon 60s linear infinite; }
.ribbon img { width: clamp(110px, 14vw, 170px); height: auto; aspect-ratio: 1; object-fit: cover; opacity: .85; }
@keyframes ribbon { to { transform: translateX(calc(-50% - 7px)); } }
.about .small { font: 400 12px var(--mono); color: #a39e95; }
/* ---------- 1 · Dot, Dot, Dot ---------- */
.s-dot { --ink: #e9e4dc; --acc: #8fc7ff; --bg: #0e1016; }
.s-dot .cover { -webkit-mask: radial-gradient(circle at 68% 52%, #000 var(--r), transparent calc(var(--r) + 22%)); mask: radial-gradient(circle at 68% 52%, #000 var(--r), transparent calc(var(--r) + 22%)); animation-name: spot; }
@keyframes spot { 0% { --r: 5%; } 55%, 100% { --r: 85%; } }
.typing-bubble { position: absolute; left: 61%; top: 41%; display: flex; gap: 5px; padding: 9px 13px; border-radius: 16px; background: #dfe8f2; box-shadow: 0 0 30px #8fc7ff99; animation-name: screen-off; }
@keyframes screen-off { 0%, 82% { opacity: 1; } 88%, 100% { opacity: 0; } }
.typing-bubble i, .msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: #55606c; animation: blink 1.2s infinite; }
.typing-bubble i:nth-child(2), .msg.typing i:nth-child(2) { animation-delay: .2s; }
.typing-bubble i:nth-child(3), .msg.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.chat { display: flex; flex-direction: column; gap: 16px; }
.msg { align-self: flex-start; max-width: min(46ch, 100%); padding: 14px 18px; border-radius: 20px 20px 20px 6px; background: #232a36; }
.msg p { font-family: var(--display); font-size: calc(1.08rem * var(--fit, 1)); line-height: 1.55; }
.msg .lab { display: block; margin-bottom: 6px; color: #8fa0b4; }
.msg.me { align-self: flex-end; border-radius: 20px 20px 6px 20px; background: #2f6fb8; color: #fff; }
.msg.me p { font-style: italic; }
.msg.me .lab { color: #cfe3ff; }
.msg.typing { display: flex; gap: 5px; padding: 12px 16px; background: #232a36; }
.msg.typing i { background: #8fa0b4; }
.listen-msg { display: grid; justify-items: end; gap: 4px; padding: 10px 12px; }
.listen-msg .listen { margin: 0; --acc: #fff; --bg: #2f6fb8; }
.listen-msg small { font: 400 11px var(--mono); opacity: .7; }

/* ---------- 2 · Take The House ---------- */
.s-house { --ink: #f3e6cf; --acc: #e8b56a; --bg: #1f1712; }
.s-house .frame { perspective: 1400px; box-shadow: 0 0 140px #e8b56a2e, 0 30px 80px rgba(0,0,0,.5); }
.leaf { position: absolute; top: 0; bottom: 0; width: 50%; background: linear-gradient(90deg, #4a2414, #6b3420 45%, #57291a);
  box-shadow: inset 0 0 0 14px #3a1c10, inset 0 0 0 16px #7a4028, inset 0 0 0 44px #57291a, inset 0 0 0 46px #7a4028; backface-visibility: hidden; }
.leaf.l { left: 0; transform-origin: left center; animation-name: door-l; }
.leaf.r { right: 0; transform-origin: right center; animation-name: door-r; }
.leaf.r::after { content: ""; position: absolute; left: 22px; top: 52%; width: 12px; height: 12px; border-radius: 50%; background: #d9b36a; box-shadow: 0 0 8px #d9b36a; }
@keyframes door-l { 0%, 4% { transform: none; } 26%, 90% { transform: rotateY(-100deg); } 100% { transform: rotateY(-35deg); } }
@keyframes door-r { 0%, 4% { transform: none; } 26%, 90% { transform: rotateY(100deg); } 100% { transform: rotateY(35deg); } }
.plan { display: grid; gap: 0; }
.room { position: relative; padding: 30px 26px 34px; border: 1px solid #e8b56a55; margin-top: -1px; opacity: .3; }
.room.in { opacity: 1; background: radial-gradient(ellipse at 30% 0%, #e8b56a14, transparent 70%); }
.room-name { position: absolute; top: -9px; left: 18px; padding-inline: 8px; background: var(--bg); color: var(--acc); }
.room .sec:first-of-type { margin-top: 6px; }
.room .story { margin-top: 6px; }
.key { width: 18px; height: 18px; }
.cellar { background: #0d0907; }
.cellar summary { cursor: pointer; list-style: none; font: italic 400 1.2rem var(--display); color: #b9a58a; }
.cellar summary::-webkit-details-marker { display: none; }
.cellar summary::after { content: " →"; font-style: normal; }
.cellar[open] summary::after { content: " ↓"; }
.cellar[open] .sec p { font-style: italic; color: #d8c6aa; }

/* ---------- 3 · One More Mile ---------- */
.s-mile { --ink: #e9f1f2; --acc: #f0b48a; --bg: #1c2530; }
.s-mile .stage { position: sticky; top: 0; z-index: 2; height: 56svh; overflow: hidden; background: var(--bg); }
.s-mile .stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.s-mile .soft { filter: blur(9px) brightness(.62) saturate(.8); transform: scale(1.05); }
.s-mile .sharp { -webkit-mask: radial-gradient(var(--fr) calc(var(--fr) * 1.6) at var(--fx) 42%, #000 55%, transparent 100%); mask: radial-gradient(var(--fr) calc(var(--fr) * 1.6) at var(--fx) 42%, #000 55%, transparent 100%); animation-name: glance; }
@keyframes glance {
  0%, 12% { --fx: 31%; --fr: 13%; } 22% { --fx: 66%; } 30% { --fx: 33%; } 40% { --fx: 66%; } 47% { --fx: 34%; }
  56%, 72% { --fx: 66%; --fr: 13%; } 80% { --fx: 50%; --fr: 16%; } 96%, 100% { --fx: 50%; --fr: 140%; } }
.s-mile .flow { max-width: 1320px; margin: 0 auto; padding: 10svh var(--gutter) 24svh; min-height: 170svh; }
.mirror { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 80px); margin-top: 30px; }
.mirror::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1px dashed #e9f1f255; }
.mirror .left { grid-column: 1; text-align: right; }
.mirror .right { grid-column: 2; }
.mirror .span { grid-column: 1 / -1; justify-self: center; max-width: 100%; text-align: center; position: relative; background: var(--bg); padding: 10px 24px; }
.mirror .span p { font-size: calc(1.35rem * var(--fit, 1)); }
.mirror .final { padding: 30px 40px; box-shadow: 0 0 0 100vmax var(--bg); clip-path: inset(0 -100vmax); }
.mirror .final p { font-size: calc(1.6rem * var(--fit, 1)); color: #fff; }

/* ---------- 4 · The Rhythm in My Soul ---------- */
.s-rhythm { --ink: #f5ecff; --acc: #ff4fb8; --bg: #1a0f2e; }
.s-rhythm h2 { font-family: "Monoton", var(--display); font-style: normal; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.15; color: #ff4fb8; text-shadow: 0 0 12px #ff4fb8, 0 0 34px #6a2bd8; }
.s-rhythm .grey { filter: grayscale(1) brightness(.72); clip-path: inset(0 0 0 var(--x)); animation-name: wipe; }
.s-rhythm .divider { position: absolute; top: 0; bottom: 0; left: var(--x); width: 3px; background: #3ee6ff; box-shadow: 0 0 14px #ff4fb8, 0 0 30px #3ee6ff; animation-name: wipe-line; }
@keyframes wipe { 0%, 6% { --x: 0%; } 60%, 100% { --x: 100%; } }
@keyframes wipe-line { 0%, 6% { --x: 0%; opacity: 1; } 58% { opacity: 1; } 60%, 100% { --x: 100%; opacity: 0; } }
.sparkle-on { position: absolute; inset: 0; animation-name: fade-in-late; mix-blend-mode: screen; pointer-events: none; }
@keyframes fade-in-late { 0%, 55% { opacity: 0; } 70%, 100% { opacity: 1; } }
.sparkle { position: absolute; inset: -30%; animation: spin 14s linear infinite;
  background: radial-gradient(3px 3px at 20% 30%, #fff, transparent), radial-gradient(3px 3px at 70% 60%, #3ee6ff, transparent), radial-gradient(3px 3px at 40% 80%, #ff4fb8, transparent),
    radial-gradient(3px 3px at 85% 20%, #ffd36b, transparent), radial-gradient(2px 2px at 55% 45%, #fff, transparent), radial-gradient(3px 3px at 12% 70%, #3ee6ff, transparent),
    radial-gradient(2px 2px at 64% 12%, #ff4fb8, transparent), radial-gradient(3px 3px at 30% 52%, #ffd36b, transparent); }
@keyframes spin { to { transform: rotate(360deg); } }
.s-rhythm .sec:not(.chorus) p { font-size: calc(1.02rem * var(--fit, 1)); font-family: var(--body); }
.s-rhythm .grey1 { color: #8d8996; } .s-rhythm .grey2 { color: #b4a6c9; } .s-rhythm .grey3 { color: #d9c4f2; }
.s-rhythm .grey1 .lab { color: #6f6a78; }
.s-rhythm .chorus p { font-size: calc(clamp(1.4rem, 2.6vw, 2rem) * var(--fit, 1)); line-height: 1.35; color: #ffe3f4; }
.s-rhythm .glow1 p { text-shadow: 0 0 6px #ff4fb866; }
.s-rhythm .glow2 p { text-shadow: 0 0 8px #ff4fb8, 0 0 22px #6a2bd8; }
.s-rhythm .glow3 p { color: #fff; text-shadow: 0 0 8px #ff4fb8, 0 0 24px #ff4fb8, 0 0 48px #3ee6ff; }
.listen.neon { --acc: #3ee6ff; box-shadow: 0 0 10px #3ee6ff66, inset 0 0 10px #3ee6ff33; }
.listen.neon.in { animation: flicker 1.2s steps(1) 1; }
@keyframes flicker { 0%, 20%, 45% { opacity: .2; } 10%, 30%, 60%, 100% { opacity: 1; } }

/* ---------- 5 · Chasing The Blue ---------- */
.s-blue { --ink: #fff4e0; --acc: #ffc75a; --bg: #241638; background: linear-gradient(to bottom, transparent 55%, #7a4a1c 100%); }
.float { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 30vw) minmax(0, 1fr); column-gap: clamp(24px, 4vw, 64px); max-width: 1400px; margin: 0 auto; padding: 10svh var(--gutter) 30svh; min-height: 260svh; }
.float .stage { grid-column: 2; grid-row: 1 / span 30; position: sticky; top: 0; height: 100svh; display: grid; align-items: center; align-self: start; }
.strip { position: relative; height: 88svh; overflow: hidden; box-shadow: 0 30px 90px rgba(0,0,0,.5); container-type: size; }
.strip .cover { position: absolute; left: 0; bottom: 0; width: 100%; height: 140%; object-fit: cover; animation-name: rise; }
@keyframes rise { 0% { transform: translateY(28%); } 100% { transform: translateY(0); } }
.goldwash { position: absolute; inset: 0; background: linear-gradient(0deg, #ffc75a88, transparent 60%); mix-blend-mode: screen; animation-name: gold; }
@keyframes gold { 0%, 55% { opacity: 0; } 95%, 100% { opacity: 1; } }
.embers i { position: absolute; bottom: -8px; width: 4px; height: 4px; border-radius: 50%; background: #ffb347; box-shadow: 0 0 8px #ff7a2a; animation: ember 5s linear infinite; }
.embers i:nth-child(odd) { width: 3px; height: 3px; }
.embers i:nth-child(1) { left: 8%; } .embers i:nth-child(2) { left: 19%; animation-delay: 1.4s; } .embers i:nth-child(3) { left: 27%; animation-delay: .6s; }
.embers i:nth-child(4) { left: 36%; animation-delay: 2.8s; } .embers i:nth-child(5) { left: 44%; animation-delay: 3.6s; } .embers i:nth-child(6) { left: 52%; animation-delay: 1s; }
.embers i:nth-child(7) { left: 60%; animation-delay: 2.2s; } .embers i:nth-child(8) { left: 67%; animation-delay: 4.1s; } .embers i:nth-child(9) { left: 74%; animation-delay: .3s; }
.embers i:nth-child(10) { left: 81%; animation-delay: 3.1s; } .embers i:nth-child(11) { left: 88%; animation-delay: 1.8s; } .embers i:nth-child(12) { left: 94%; animation-delay: 4.6s; }
.embers i:nth-child(13) { left: 14%; animation-delay: 2.5s; } .embers i:nth-child(14) { left: 57%; animation-delay: 3.9s; }
@keyframes ember { to { transform: translate(14px, -105cqh); opacity: 0; } }
.float .blk:nth-child(even) { grid-column: 1; }
.float .blk:nth-child(odd) { grid-column: 3; margin-top: 16svh; }
.float .blk .sec { margin-top: 0; }
.float .blk { padding-bottom: 8svh; }
.drift p span { font-size: calc((1.18rem - var(--k) * .06rem) * var(--fit, 1)); opacity: calc(1 - var(--k) * .1); margin-left: calc(var(--k) * 1.1rem); }
.listen.gold { background: #ffc75a; color: #241638; box-shadow: 0 0 24px #ffc75a88; border-color: #ffc75a; }
.listen.gold:hover, .listen.gold:focus-visible { background: #fff4e0; }

/* ---------- 6 · Dushi ---------- */
.s-dushi { --ink: #fbeedd; --acc: #f2c14e; --bg: #14223d; height: 260vh; }
.s-dushi:has(.lyrics:not([hidden])) { height: 560vh; }
.s-dushi h2 { font-family: "Caveat Brush", var(--display); font-style: normal; font-size: clamp(3.4rem, 8vw, 6rem); letter-spacing: .04em; color: #f4c9a0; }
.s-dushi .pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation-name: pan; }
@keyframes pan { 0% { transform: scale(1.9) translate(21%, -2%); } 100% { transform: scale(1.9) translate(-21%, -10%); } }
.shade { position: absolute; inset: 0; background: linear-gradient(90deg, #14223dcc, #14223d55 40%, #14223d55 70%, #14223dcc); }
.lights { position: absolute; top: 0; left: 0; right: 0; height: 60px; display: flex; justify-content: space-around; align-items: flex-start; }
.lights::before { content: ""; position: absolute; left: 0; right: 0; top: 18px; height: 20px; border-bottom: 1px solid #fbeedd44; border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.lights i { position: relative; margin-top: 30px; width: 9px; height: 9px; border-radius: 50%; background: #ffcf7a; box-shadow: 0 0 14px #ffb347; animation: twinkle 2.4s ease-in-out infinite; }
.lights i:nth-child(odd) { animation-delay: 1.2s; margin-top: 36px; }
@keyframes twinkle { 50% { opacity: .35; } }
.track { position: absolute; top: 0; left: 0; height: 100%; min-width: 100vw; display: flex; align-items: center; gap: 6vw; padding-inline: 10vw 14vw; width: max-content; animation-name: track; }
@keyframes track { from { transform: translateX(0); } to { transform: translateX(calc(-100% + 100vw)); } }
.panel { width: min(430px, 78vw); padding: 30px 30px 34px; background: #14223dd9; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 3px; }
.panel .sec:first-child { margin-top: 0; }
.panel.intro { width: min(480px, 84vw); }
.lyrics .panel { width: min(700px, 88vw); }
.panel.yellow { background: #f2c14ef0; color: #1d1a12; --acc: #7a3e12; }
.s-dushi .sec p { font-size: calc(1.35rem * var(--fit, 1)); line-height: 1.55; color: #fff7ec; }
.panel.yellow p { font-size: calc(1.45rem * var(--fit, 1)); color: #1d1a12; }
.panel .lu { opacity: 1; transform: none; } /* panels arrive by sliding in; no extra fade */
.listen.sign { font-family: "Caveat Brush", var(--body); font-size: 1.3rem; font-weight: 400; border-radius: 4px; border-width: 2px; }

/* ---------- 7 · Sunlight Through The Seam ---------- */
.s-seam { --ink: #24231f; --acc: #c2611e; --bg: #e9e4da; }
.scene { height: 230vh; }
.scene .pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.scene .pin img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.scene .grey { filter: grayscale(1) contrast(1.05) brightness(.78); }
.scene .col { animation-name: crack; }
@keyframes crack {
  0%, 6% { clip-path: polygon(0% 48%, 18% 43%, 32% 50%, 47% 40%, 62% 47%, 78% 38%, 100% 44%, 100% 45%, 78% 39%, 62% 48%, 47% 41%, 32% 51%, 18% 44%, 0% 49%); }
  35% { clip-path: polygon(0% 40%, 18% 33%, 32% 42%, 47% 28%, 62% 37%, 78% 26%, 100% 34%, 100% 56%, 78% 50%, 62% 59%, 47% 54%, 32% 62%, 18% 55%, 0% 60%); }
  75%, 100% { clip-path: polygon(0% -10%, 18% -10%, 32% -10%, 47% -10%, 62% -10%, 78% -10%, 100% -10%, 100% 110%, 78% 110%, 62% 110%, 47% 110%, 32% 110%, 18% 110%, 0% 110%); }
}
.rays { position: absolute; inset: 0; mix-blend-mode: soft-light; animation-name: rays-in; pointer-events: none; }
.rays div { position: absolute; left: 50%; top: 22%; width: 260vmax; height: 260vmax; translate: -50% -50%; animation: spin 90s linear infinite;
  background: repeating-conic-gradient(from 0deg, #fff6d0aa 0deg 4deg, transparent 4deg 16deg); }
@keyframes rays-in { 0%, 70% { opacity: 0; } 100% { opacity: .8; } }
.scene-title { position: absolute; left: var(--gutter); bottom: 8svh; right: var(--gutter); color: #fff; text-shadow: 0 2px 24px #0008; }
.scene-title .eyebrow { color: #ffe9a8; }
.scene-title .song-head { margin: 0; }
.s-seam .flow { max-width: 1120px; margin: 0 auto; padding: 12svh var(--gutter) 22svh; }
.s-seam .intro { display: grid; justify-items: start; margin-bottom: 30px; }
.sheet { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 6vw, 96px); }
.sheet .sketch { grid-column: 1; }
.sheet .chorus { grid-column: 2; }
.sheet .sketch p { font-style: italic; color: #6d6a64; }
.sheet .sketch .lab { color: #8b8d90; }
.sheet .chorus p { font-size: calc(1.4rem * var(--fit, 1)); font-weight: 600; font-style: italic; }
.sheet .tint1 p { color: #c98a12; }
.sheet .tint2 p { background: linear-gradient(90deg, #d4930f, #2aa59d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sheet .tint3 p { background: linear-gradient(90deg, #e2652a, #d9a414, #2aa59d, #7d63c9); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 8 · Kalimera ---------- */
.s-kalimera { --ink: #15294d; --acc: #1f4e9c; --bg: #f7f4ee; color-scheme: light; }
.s-kalimera h2 { font-style: normal; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #1f4e9c; }
.s-kalimera .frame { box-shadow: 0 30px 70px #1f4e9c33; }
.s-kalimera .cover { transform-origin: 45% 62%; animation-name: exposure; }
@keyframes exposure {
  0%, 4% { filter: brightness(2.3) saturate(.15) contrast(.6) blur(2px); transform: none; }
  38% { filter: none; transform: none; } 100% { filter: none; transform: scale(1.14); } }
.sun { position: absolute; inset: 0; background: radial-gradient(circle at 81% 10%, #fff 0, #fffbe8cc 12%, #fff4d000 45%); mix-blend-mode: screen; transform-origin: 81% 10%; animation-name: glare; }
@keyframes glare { 0%, 4% { opacity: 1; transform: scale(1.8); } 38%, 100% { opacity: .5; transform: none; } }
.shimmer { position: absolute; left: 45%; right: 0; top: 36%; height: 30%; background: repeating-linear-gradient(100deg, transparent 0 18px, #ffffff30 20px, transparent 24px); mix-blend-mode: soft-light; animation: shimmer 3s linear infinite; }
@keyframes shimmer { to { background-position: 48px 0; } }
.postcard { position: relative; margin-top: 8px; padding: 26px 26px 28px; background: #fff; border: 1px solid #1f4e9c22; box-shadow: 0 10px 30px #15294d14; }
.postmark { position: absolute; top: 18px; right: 20px; width: 78px; height: 78px; border: 2px solid #1f4e9c55; border-radius: 50%; display: grid; place-items: center; text-align: center;
  font: 500 9px/1.3 var(--mono); letter-spacing: .12em; color: #1f4e9c88; transform: rotate(-14deg); }
.postcard .story { padding-right: 90px; }
.listen.stamp { border: 3px dotted #d6457e; border-radius: 2px; background: #d6457e; color: #fff; padding: 14px 18px; }
.listen.stamp:hover, .listen.stamp:focus-visible { background: #b8335f; color: #fff; }
.s-kalimera .sec p { color: #1f3f7a; }
.s-kalimera .faded p { color: #9a9a96; font-style: italic; }
.hello { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; font: italic 500 clamp(1.5rem, 3vw, 2.2rem) var(--display); color: #1f4e9c; overflow: hidden; }
.hello span { transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
.hello.clash span:first-child { transform: translateX(-120%); }
.hello.clash span:last-child { transform: translateX(120%); }
.hello.clash.in span { transform: none; }
.hello.together { justify-content: center; gap: .6em; }
.hello.together span:first-child::after { content: " ·"; }
.hello + .sec { margin-top: 10px; }

/* ---------- small screens ---------- */
@media (max-width: 800px) {
  body { font-size: 16px; }
  .index { right: 8px; gap: 9px; }
  .index a { width: 9px; height: 9px; }
  .covers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .split, .split.rev { grid-template-columns: 1fr; gap: 0; padding-inline: 0; }
  .split.rev .stage { order: 0; }
  .split .stage { z-index: 2; height: 46svh; background: var(--bg); padding: 12px var(--gutter); }
  .split .frame { width: auto; height: 100%; }
  .split .flow { padding: 6svh var(--gutter) 20svh; }
  .s-mile .stage { height: 42svh; }
  .mirror { grid-template-columns: 1fr; }
  .mirror::before { display: none; }
  .mirror .left, .mirror .right { grid-column: 1; text-align: left; }
  .mirror .right { padding-left: 18px; border-left: 1px dashed #e9f1f255; }
  .mirror .span { justify-self: stretch; }
  .float { grid-template-columns: 1fr; padding-inline: 0; }
  .float .stage { grid-column: 1; grid-row: 1; z-index: 2; height: 58svh; padding: 10px var(--gutter); background: var(--bg); }
  .strip { height: 100%; }
  .float .blk:nth-child(n) { grid-column: 1; grid-row: auto; margin: 0 var(--gutter); padding: 20px; margin-top: 6svh; background: #241638d9; }
  .s-dushi { height: auto; }
  .s-dushi .pin { position: relative; height: auto; overflow: visible; }
  .bgimg { position: relative; aspect-ratio: 1; height: auto; animation: none; }
  .shade { display: none; }
  .track { position: static; flex-direction: column; width: auto; padding: 24px var(--gutter) 60px; transform: none; animation: none; gap: 18px; }
  .panel, .panel.intro, .lyrics .panel { width: 100%; background: #1a2b4c; }
  .scene { height: 170vh; }
  .sheet { grid-template-columns: 1fr; }
  .sheet .sketch, .sheet .chorus { grid-column: 1; }
  .postcard .story { padding-right: 0; padding-top: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lu { opacity: 1; transform: none; transition: none; }
  .ribbon-track, .opening-logo, .covers img, .sparkle, .embers, .lights i, .shimmer, .rays div, .typing-bubble i, .msg.typing i, .listen.neon.in { animation: none; }
  .covers img { opacity: 1; filter: none; }
  .embers { display: none; }
  .hello span { transition: none; }
}
