/* ROTATION — design system
   Warm black, cream ink, one hot gradient. Fraunces for feeling, Geist for
   reading, Geist Mono for the numbers. Charts share one validated palette
   (see js/portal.js CPAL) so an artist keeps its color everywhere. */
:root {
  --bg: #0b0a0d;
  --bg-2: #100f13;
  --surface: #141318;
  --surface-2: #1b1a20;
  --deep: #0b0a0d;
  --dominant: #e2694b;
  --accent: #ff7a4d;
  --ink: #f6f0e8;
  --ink-2: rgba(246, 240, 232, 0.68);
  --ink-3: rgba(246, 240, 232, 0.42);
  --ink-4: rgba(246, 240, 232, 0.22);
  --panel: rgba(246, 240, 232, 0.035);
  --panel-2: rgba(246, 240, 232, 0.07);
  --line: rgba(246, 240, 232, 0.09);
  --line-strong: rgba(246, 240, 232, 0.18);
  --hot: #ff5a3c;
  --hot-2: #ffb347;
  --hot-3: #ff3d7f;
  --grad: linear-gradient(100deg, #ff3d7f 0%, #ff6a3d 42%, #ffb347 100%);
  --amber: #ffb347;
  --teal: #31a593;
  --coral: #e2694b;
  --violet: #8a80e8;
  --moss: #839d28;
  --rose: #d96a9c;
  --blue: #5695d3;
  --gold: #d9b35e;
  --good: #5fc39a;
  --tab-h: 58px;
  --thumb-h: 72px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font-ui: 'Geist', 'Inter', system-ui, -apple-system, sans-serif;
  --font-story: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --r: 22px;
  --r-sm: 14px;
  --gutter: 20px;
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { min-height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
html, body { overflow-x: clip; }
/* film grain over everything, very quietly */
body::after {
  content: '';
  position: fixed; inset: -50%;
  z-index: 200; pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
body.room-app::after, body.deck-app::after { display: none; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
.serif, .story-text, .deck-title { font-family: var(--font-story); font-weight: 400; font-optical-sizing: auto; }
.mono { font-family: var(--font-mono); }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 760px; }
a { color: var(--ink); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
em.i, .i { font-style: italic; }
::selection { background: rgba(255, 106, 61, 0.4); color: var(--ink); }
:focus-visible { outline: 2px solid var(--hot-2); outline-offset: 3px; border-radius: 6px; }

/* ——— chrome ——— */
.nav {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: calc(18px + var(--safe-t)) 0 18px;
}
.mark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; font-weight: 500;
  text-decoration: none; color: var(--ink);
}
.mark span { color: var(--hot); }
.mark::before {
  content: ''; width: 18px; height: 18px; border-radius: 50%; flex: 0 0 auto;
  background:
    radial-gradient(circle, var(--bg) 0 2px, transparent 2.5px),
    radial-gradient(circle, var(--hot) 0 5px, transparent 5.5px),
    repeating-radial-gradient(circle, #2a282f 0 1px, #16151a 1px 2.2px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  animation: spin 3.2s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.nav .links { display: flex; gap: 18px; }
.nav .links a { color: var(--ink-2); text-decoration: none; font-size: 14px; }
.nav .links a:hover { color: var(--ink); }
a.quiet {
  color: var(--ink-2); text-decoration: none;
  border-bottom: 1px solid rgba(255, 122, 77, 0.45);
  transition: color 0.15s ease, border-color 0.15s ease;
}
a.quiet:hover { color: var(--ink); border-bottom-color: var(--hot-2); }

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(246, 240, 232, 0.02); color: var(--ink);
  font-family: var(--font-ui); font-size: 15px; font-weight: 500; letter-spacing: -0.005em;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease, filter 0.2s ease;
}
.btn:hover { background: rgba(246, 240, 232, 0.07); border-color: rgba(246, 240, 232, 0.3); }
.btn:active { transform: scale(0.97); }
.btn.solid { background: var(--ink); color: #120f0d; border-color: var(--ink); font-weight: 600; }
.btn.solid:hover { background: #fff; }
.btn.amber, .btn.hot {
  background: var(--grad); border: 0; color: #1a0a06; font-weight: 650;
  box-shadow: 0 10px 34px -10px rgba(255, 90, 60, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn.amber:hover, .btn.hot:hover { filter: brightness(1.07) saturate(1.05); box-shadow: 0 14px 44px -10px rgba(255, 90, 60, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn.ghost { background: rgba(246, 240, 232, 0.06); border-color: transparent; }
.btn.small { min-height: 38px; padding: 8px 16px; font-size: 13.5px; }
.btn.tiny { min-height: 32px; padding: 6px 13px; font-size: 12.5px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.kicker {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 12px;
}
.kicker.hot { color: var(--hot-2); }
.footnote { color: var(--ink-3); font-size: 13px; line-height: 1.55; }
.footnote a { color: var(--ink-2); }
.footer {
  border-top: 1px solid var(--line); margin-top: 96px;
  padding: 28px 0 calc(36px + var(--safe-b));
}
.footer .footnote { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }

/* ——— pages: home / guide / drop ——— */
.page-hero { padding: 40px 0 8px; max-width: 40rem; }
.page-hero h1, .stage h1 {
  font-family: var(--font-story); font-weight: 400; font-optical-sizing: auto;
  font-size: clamp(44px, 11vw, 96px); line-height: 0.95; letter-spacing: -0.035em;
}
.page-hero .sub, .stage .sub {
  margin-top: 18px; font-size: 17.5px; color: var(--ink-2); line-height: 1.55; max-width: 34rem;
}
.home-actions { margin-top: 30px; display: flex; flex-direction: column; gap: 10px; max-width: 24rem; }
.have-archive { margin-top: 22px; }
.guide-second { margin-top: 30px; display: flex; flex-direction: column; gap: 10px; max-width: 24rem; }
.remind-note { margin-top: 18px; max-width: 30rem; }
.stage { padding: 40px 0 24px; }

.steps { margin: 32px 0 0; padding: 0; list-style: none; counter-reset: step; max-width: 40rem; }
.steps li {
  counter-increment: step; position: relative;
  padding: 16px 0 16px 54px; border-top: 1px solid var(--line);
  color: var(--ink-2); font-size: 16px; line-height: 1.5;
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 17px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--hot-2);
}
.steps b { color: var(--ink); font-weight: 600; }

.remind {
  margin-top: 28px; padding: 20px 18px 16px; max-width: 32rem;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
}
.remind label { display: block; font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.remind-row { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.remind input, .field {
  width: 100%; min-height: 50px; border-radius: 14px;
  border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink);
  padding: 12px 16px; font-family: inherit; font-size: 16px; outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.remind input:focus, .field:focus { border-color: rgba(255, 179, 71, 0.7); box-shadow: 0 0 0 4px rgba(255, 122, 77, 0.12); }

/* landing */
.home-hero { position: relative; padding: 28px 0 0; }
.home-hero h1 {
  font-family: var(--font-story); font-weight: 400; font-optical-sizing: auto;
  font-size: clamp(52px, 12.5vw, 140px); line-height: 0.92; letter-spacing: -0.035em;
  max-width: 12ch;
}
.home-hero h1 em { font-style: italic; }
.home-hero .sub { margin-top: 34px; font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-2); max-width: 32rem; line-height: 1.5; }
.home-glow {
  position: absolute; z-index: -1; pointer-events: none;
  width: 900px; height: 900px; right: -320px; top: -360px;
  background: radial-gradient(closest-side, rgba(255, 90, 60, 0.22), rgba(255, 61, 127, 0.1) 45%, transparent 70%);
  filter: blur(10px);
}
.demo {
  position: relative; margin-top: 44px;
  border-radius: 28px; overflow: hidden;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9);
}
.demo-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 20px 22px 0; }
.demo-head .who { font-family: var(--font-story); font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.02em; }
.demo-head .span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--ink-3); text-transform: uppercase; }
.demo svg { display: block; width: 100%; height: auto; }
.demo-eras { display: flex; gap: 8px; padding: 0 22px 20px; flex-wrap: wrap; }
.demo-eras span {
  font-size: 12.5px; padding: 6px 11px; border-radius: 999px;
  background: rgba(246, 240, 232, 0.05); color: var(--ink-2); border: 1px solid var(--line);
}
.demo-eras span i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 7px; vertical-align: 0; }
.demo #demo-chart { position: relative; padding-top: 70px; }
.demo .db { transform-box: fill-box; transform-origin: bottom; animation: barUp 1s var(--ease-out) both; }
@keyframes barUp { from { transform: scaleY(0); opacity: 0; } }
.demo #demo-crop rect { transition: x 0.9s var(--ease), width 0.9s var(--ease); }
.demo-pop {
  position: absolute; top: 4px; transform: translateX(-50%); z-index: 2;
  min-width: 220px; max-width: 280px; padding: 10px 12px; border-radius: 14px;
  background: rgba(20, 19, 24, 0.94); border: 1px solid var(--line-strong);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); font-size: 12.5px; line-height: 1.45;
  transition: left 0.9s var(--ease); pointer-events: none;
}
.demo-pop b { display: block; font-family: var(--font-story); font-weight: 400; font-size: 15px; margin-bottom: 4px; }
.demo-pop span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.demo-pop span i { font-style: normal; font-family: var(--font-mono); color: var(--ink-3); margin-right: 8px; font-size: 11px; }
.demo-pop span em { font-style: normal; color: var(--ink-3); }
.demo-pop.on { animation: popIn 0.5s var(--ease-out); }
@keyframes popIn { from { opacity: 0; transform: translate(-50%, 6px); } }
/* guide */
.guide-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.guide-aside { display: grid; gap: 14px; align-content: start; }
.look { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.look-row { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.look-row .box { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line-strong); display: flex; align-items: center; justify-content: center; font-size: 13px; margin-top: 1px; }
.look-row.yes .box { background: var(--grad); border: 0; color: #1a0a06; font-weight: 700; }
.look-row b { display: block; font-weight: 600; font-size: 15.5px; }
.look-row span { color: var(--ink-3); font-size: 13.5px; }
.look-row.no b { color: var(--ink-2); font-weight: 500; text-decoration: line-through; text-decoration-color: rgba(246,240,232,0.25); }
.when { list-style: none; }
.when li { position: relative; padding: 0 0 18px 22px; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; border-left: 1px solid var(--line-strong); margin-left: 5px; }
.when li:last-child { border-left-color: transparent; padding-bottom: 0; }
.when li::before { content: ''; position: absolute; left: -5px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--hot-2); }
.when li span { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); margin-bottom: 2px; }
@media (min-width: 900px) {
  .guide-grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: start; }
  .guide-aside { position: sticky; top: 24px; margin-top: 70px; }
}
.home-steps { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 56px; border-top: 1px solid var(--line); }
.home-steps .hs { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 52px 1fr; gap: 4px 12px; }
.home-steps .n { font-family: var(--font-mono); font-size: 12px; color: var(--hot-2); letter-spacing: 0.1em; padding-top: 6px; grid-row: span 2; }
.home-steps b { font-family: var(--font-story); font-weight: 400; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em; line-height: 1.1; }
.home-steps p { color: var(--ink-2); font-size: 15px; }
.home-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.promise { margin-top: 72px; display: grid; grid-template-columns: 1fr; gap: 14px; }
.promise .p { padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.promise .p b { display: block; font-family: var(--font-story); font-weight: 400; font-size: 24px; letter-spacing: -0.015em; margin-bottom: 6px; }
.promise .p span { color: var(--ink-2); font-size: 14.5px; }

/* drop */
#zone {
  position: relative; margin-top: 30px; overflow: hidden;
  border: 1px dashed rgba(246, 240, 232, 0.24); border-radius: 28px;
  padding: 40px 22px; text-align: center; cursor: pointer;
  background: radial-gradient(120% 90% at 50% 0%, rgba(255, 90, 60, 0.08), transparent 60%), var(--surface);
  min-height: 320px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: border-color 0.2s ease, background 0.3s ease, transform 0.3s var(--ease);
}
#zone:hover, #zone.over {
  border-color: var(--hot-2);
  background: radial-gradient(120% 90% at 50% 0%, rgba(255, 90, 60, 0.18), transparent 60%), var(--surface);
}
#zone.over { transform: scale(1.01); }
#zone .vinyl {
  width: 132px; height: 132px; border-radius: 50%; margin-bottom: 22px; position: relative;
  background:
    radial-gradient(circle, var(--bg) 0 5px, transparent 5.5px),
    radial-gradient(circle, transparent 0 20px, transparent 20px),
    conic-gradient(from 0deg, rgba(255,255,255,0.1), transparent 12%, rgba(255,255,255,0.07) 30%, transparent 45%, rgba(255,255,255,0.1) 62%, transparent 78%, rgba(255,255,255,0.08)),
    repeating-radial-gradient(circle, #1d1b21 0 1.2px, #0e0d10 1.2px 2.6px);
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: spin 6s linear infinite; animation-play-state: paused;
}
#zone .vinyl::after {
  content: ''; position: absolute; inset: 38%; border-radius: 50%;
  background: var(--grad);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.25);
}
#zone.over .vinyl, #zone.busy .vinyl, #zone:hover .vinyl { animation-play-state: running; }
#zone.busy .vinyl { animation-duration: 1.1s; }
#zone .big { font-family: var(--font-story); font-size: clamp(28px, 6vw, 42px); letter-spacing: -0.025em; line-height: 1.05; }
#zone .hint { margin-top: 12px; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; max-width: 28rem; }
#zone.busy { pointer-events: none; }
#bar-wrap { margin-top: 24px; height: 3px; width: 100%; max-width: 28rem; background: var(--panel-2); border-radius: 3px; overflow: hidden; display: none; }
#bar { height: 100%; width: 0%; background: var(--grad); border-radius: 3px; transition: width 0.25s ease; }
#status { margin-top: 16px; color: var(--ink-2); font-size: 14.5px; min-height: 22px; }
#status .err { color: var(--coral); }
#status .ok { color: var(--good); }
.fineprint { margin-top: 24px; }
.fineprint details { margin-top: 8px; border-top: 1px solid var(--line); }
.fineprint summary { cursor: pointer; color: var(--ink-2); font-size: 14.5px; min-height: 48px; display: flex; align-items: center; list-style: none; }
.fineprint summary::-webkit-details-marker { display: none; }
.fineprint summary::after { content: '+'; margin-left: auto; font-family: var(--font-mono); color: var(--ink-3); }
.fineprint details[open] summary::after { content: '–'; }
.fineprint details p, .fineprint details ul { padding-bottom: 14px; }
.drop-alt { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; align-items: stretch; max-width: 24rem; }
.drop-alt .quiet { display: flex; align-items: center; justify-content: center; min-height: 44px; align-self: center; }
.reveal-count {
  font-family: var(--font-story); font-size: clamp(48px, 12vw, 120px); letter-spacing: -0.045em; line-height: 0.9;
}
/* ——— two-tab bar (the only primary nav) ——— */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  height: calc(var(--tab-h) + var(--safe-b));
  padding: 0 8px var(--safe-b);
  display: flex; align-items: stretch;
  background: color-mix(in srgb, var(--deep) 78%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  border-top: 1px solid var(--line);
}
.tabbar a {
  flex: 1; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: var(--ink-3);
  font-size: 12px; font-weight: 650; letter-spacing: 0.16em; text-transform: uppercase;
}
.tabbar a.on { color: var(--ink); }
.tabbar a:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: 12px; }

body.has-tabbar { padding-bottom: calc(var(--tab-h) + var(--safe-b)); }
body.room-app { padding-bottom: 0; overflow: hidden; height: 100dvh; }

/* ——— immersive room ——— */
.room-stage { position: relative; min-height: 100dvh; }
.bleed {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 20%, var(--dominant), var(--deep) 70%);
}
.bleed-img {
  position: absolute; inset: -8%;
  background-size: cover; background-position: center;
  filter: blur(14px) saturate(1.12) brightness(0.78);
  transform: scale(1.08);
  opacity: 0; transition: opacity 0.45s var(--ease);
}
.bleed-img.on { opacity: 1; }
.bleed-wash {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, transparent 26%, transparent 54%, rgba(0, 0, 0, 0.5) 100%);
}
.bleed-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.08;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.55'/></svg>");
  mix-blend-mode: overlay;
}

.room-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5;
  padding: calc(12px + var(--safe-t)) 18px 0;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  pointer-events: none;
}
.song-chip { pointer-events: auto; min-width: 0; }
.song-chip .t {
  display: block; font-size: 13px; font-weight: 650; letter-spacing: 0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 72vw;
}
.song-chip .a {
  display: block; margin-top: 2px; font-size: 12px; color: var(--ink-2);
  letter-spacing: 0.04em;
}
.live-dot {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}
.live-dot[hidden] { display: none !important; }
.live-dot i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent); animation: pulse 1.8s ease infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.stories {
  position: fixed; inset: 0; z-index: 3;
  padding: calc(64px + var(--safe-t)) 22px calc(var(--thumb-h) + var(--tab-h) + var(--safe-b) + 10px);
  display: flex; flex-direction: column; justify-content: flex-end;
  touch-action: pan-y;
}
.cover-hero {
  width: min(248px, 68vw);
  aspect-ratio: 1;
  margin: 4px auto 0;
  border-radius: 22px;
  overflow: hidden;
  flex: 0 0 auto;
  background: rgba(255, 246, 239, 0.06);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.cover-hero[hidden] { display: none !important; }
.cover-hero img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  filter: none;
}
.progress {
  display: flex; gap: 4px; margin-top: auto; margin-bottom: 18px;
}
.progress i {
  flex: 1; height: 3px; border-radius: 2px;
  background: rgba(255, 246, 239, 0.28);
}
.progress i.on { background: var(--ink); }
.progress i.seen { background: rgba(255, 246, 239, 0.55); }

.story { min-height: 0; }
.story-text {
  font-size: clamp(28px, 8.4vw, 42px);
  line-height: 1.14;
  letter-spacing: -0.032em;
  color: var(--ink);
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
.story-by {
  margin-top: 16px; font-size: 12px; letter-spacing: 0.08em;
  color: var(--ink-3); text-transform: lowercase;
}
.story.arrive { animation: arrive 0.72s var(--ease); }
.story.go-next { animation: goNext 0.28s ease forwards; }
.story.in-next { animation: inNext 0.36s var(--ease); }
.story.go-prev { animation: goPrev 0.28s ease forwards; }
.story.in-prev { animation: inPrev 0.36s var(--ease); }

@keyframes arrive {
  0% { opacity: 0; transform: translateY(28px) scale(0.94); filter: blur(10px); }
  100% { opacity: 1; transform: none; filter: none; }
}
@keyframes goNext {
  to { opacity: 0; transform: translateY(-28px); }
}
@keyframes inNext {
  from { opacity: 0; transform: translateY(32px); }
}
@keyframes goPrev {
  to { opacity: 0; transform: translateY(28px); }
}
@keyframes inPrev {
  from { opacity: 0; transform: translateY(-32px); }
}

.swipe-hint {
  position: absolute; left: 0; right: 0; bottom: calc(var(--thumb-h) + var(--tab-h) + var(--safe-b) + 18px);
  text-align: center; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3); pointer-events: none;
  animation: hint 2.4s var(--ease) 0.6s both;
}
@keyframes hint {
  0% { opacity: 0; transform: translateY(8px); }
  30% { opacity: 1; }
  100% { opacity: 0; }
}

.thumb {
  position: fixed; left: 0; right: 0; z-index: 6;
  bottom: calc(var(--tab-h) + var(--safe-b));
  padding: 8px 16px 12px;
  display: flex; flex-direction: column;
}
.thumb .btn { width: 100%; }

.room-toast {
  position: fixed; left: 16px; right: 16px; z-index: 30;
  bottom: calc(var(--thumb-h) + var(--tab-h) + var(--safe-b) + 8px);
  padding: 12px 14px; border-radius: 14px;
  background: rgba(0, 0, 0, 0.45); color: var(--ink-2); font-size: 13.5px; line-height: 1.45;
  border: 1px solid var(--line);
}
.room-toast[hidden] { display: none !important; }

.room-form, .room-picks, .room-results { display: none; }
.room-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ——— sign-in (agent) ——— */
.how-agent { display: none; }
.agent-mint { margin-top: 28px; max-width: 28rem; }
.agent-mint label { display: none; }
.agent-mint .slug-field { display: none; }
.agent-mint .btn { width: 100%; margin-top: 4px; }
.agent-creds { margin-top: 28px; }
.agent-token, .agent-cmd, .agent-prompt {
  display: block; width: 100%; margin-top: 8px; padding: 12px 14px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 12px; color: var(--ink);
  font-size: 12.5px; word-break: break-all; white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.agent-prompt { min-height: 180px; resize: vertical; line-height: 1.45; }
.agent-prompt-title { margin: 28px 0 8px; font-size: 20px; font-family: var(--font-story); }
.agent-row { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.agent-advanced { margin-top: 22px; max-width: 40rem; }
.agent-advanced summary {
  cursor: pointer; color: var(--ink-3); font-size: 13px; padding: 12px 0; min-height: 44px;
}
.agent-advanced summary:hover { color: var(--ink); }
.agent-advanced .btn { margin-top: 12px; }

.hosted-banner {
  margin-top: 22px; max-width: 40rem; padding: 18px 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--dominant) 18%, transparent);
  color: var(--ink-2); font-size: 15px; line-height: 1.55;
}
.hosted-banner b { color: var(--ink); }
.hosted-banner .btn { margin-top: 14px; }
.hosted-session { margin-top: 28px; max-width: 52rem; }
.hosted-status { font-size: 15px; color: var(--ink); line-height: 1.5; margin-bottom: 12px; }
.hosted-frame-wrap {
  border: 1px solid var(--line-strong); border-radius: 16px; overflow: hidden;
  background: #000; aspect-ratio: 16 / 10; max-height: 70vh;
}
.hosted-frame-wrap iframe { width: 100%; height: 100%; border: 0; background: #000; }
.hosted-follow { margin-top: 18px; }
.hosted-track { margin-top: 14px; font-size: 16px; color: var(--accent); }
.lane { min-height: 100dvh; display: flex; flex-direction: column; }
.agent-stack { flex: 1; }
.lane .footer, .whisper-foot { margin-top: auto; }
.follow-title { font-family: var(--font-story); font-size: clamp(28px, 5vw, 40px); font-weight: 400; margin: 28px 0 10px; }

/* ——— archive deck ——— */
.deck-app {
  overflow: hidden;
  height: 100dvh;
  background: var(--deep);
}
.deck-app .bleed { z-index: 0; }
.deck-app .bleed-img {
  inset: 0;
  filter: blur(2px) saturate(1.04) brightness(0.98);
  transform: none;
}
.deck-app .bleed-wash {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, transparent 22%, transparent 50%, rgba(0, 0, 0, 0.42) 100%);
}
.deck-app .bleed-grain { opacity: 0.06; }
.deck-art {
  width: min(200px, 52vw); aspect-ratio: 1; height: auto; border-radius: 16px;
  background-size: cover; background-position: center;
  background-color: rgba(255, 246, 239, 0.08);
  margin: 0 0 18px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.12);
  overflow: hidden;
  filter: none;
}
.deck-art img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  filter: none;
}
.deck-art[hidden] { display: none !important; }
.deck {
  position: relative; z-index: 2;
  min-height: 100dvh;
  width: min(420px, 100%);
  margin: 0 auto;
  padding: calc(28px + var(--safe-t)) 22px calc(var(--tab-h) + var(--safe-b) + 22px);
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow-wrap: anywhere;
}
.deck-kicker { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.deck-title {
  font-size: clamp(36px, 11vw, 64px); line-height: 0.96; letter-spacing: -0.035em;
}
.deck-meta { margin-top: 16px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.deck-artists { margin-top: 18px; color: var(--ink); font-size: 16px; line-height: 1.55; }
.deck-nav { margin-top: 28px; display: flex; gap: 10px; }
.deck-nav .btn { flex: 1; }
.deck-dots { display: flex; gap: 6px; margin-bottom: 16px; }
.deck-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,246,239,0.25); }
.deck-dots i.on { background: var(--ink); width: 16px; border-radius: 6px; }

/* ——— leftover room/search (kept for non-immersive mounts) ——— */
.room-page { max-width: 720px; }
.room-q {
  flex: 1; min-width: 0; width: 100%; background: var(--panel); border: 1px solid var(--line-strong);
  color: var(--ink); border-radius: 14px; padding: 14px 16px; font-family: inherit; font-size: 16px; outline: none;
}
.ask-chip, .room-pick {
  display: inline-block; padding: 10px 14px; min-height: 44px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
  font-family: inherit; font-size: 13px; cursor: pointer;
}
.room-pick .dim { color: var(--ink-2); font-size: 12px; }
.cg-list { list-style: none; margin-top: 22px; }
.cg-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.cg-list p { font-size: 17px; line-height: 1.65; }

/* ——— gate (archive privacy only) ——— */
.gate {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.gate[hidden] { display: none !important; }
.gate-backdrop { position: absolute; inset: 0; background: rgba(8, 4, 8, 0.72); }
.gate-card {
  position: relative; z-index: 1; width: min(520px, 100%);
  max-height: min(88vh, 720px); overflow: auto;
  background: var(--deep); border: 1px solid var(--line-strong);
  border-radius: 20px; padding: 26px 22px 22px;
}
.gate-x {
  position: absolute; top: 10px; right: 10px;
  width: 44px; height: 44px; border: 0; background: transparent;
  color: var(--ink-2); font-size: 24px; cursor: pointer; line-height: 1;
}
.gate-kicker { font-size: 11px; letter-spacing: 0.16em; color: var(--accent); margin-bottom: 10px; }
.gate-card h2 { font-size: clamp(28px, 7vw, 36px); line-height: 1.08; font-weight: 400; }
.gate-copy { margin-top: 12px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.gate-steps { margin: 16px 0 0; padding: 0; list-style: none; }
.gate-steps li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.gate-steps b { color: var(--ink); }
.gate-actions { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.gate-actions .btn { text-align: center; width: 100%; }
body.gate-open { overflow: hidden; }

/* ——— breakpoints ——— */
@media (min-width: 480px) {
  .wrap { padding: 0 24px; }
  .story-text { font-size: clamp(32px, 7vw, 46px); }
  .thumb { padding-left: 20px; padding-right: 20px; }
}

@media (min-width: 720px) {
  .nav .links { display: none; }
  .wrap { max-width: 820px; padding: 0 32px; }
  .story-text { font-size: 48px; max-width: 16ch; }
  .room-app .stories { padding-left: 48px; padding-right: 48px; justify-content: center; }
  .room-app .room-top { padding-left: 48px; padding-right: 48px; }
  .room-app .thumb {
    left: 48px; right: auto; width: min(420px, calc(100% - 96px));
  }
  .room-app .tabbar {
    left: 48px; right: auto; width: min(420px, calc(100% - 96px));
    border: 1px solid var(--line); border-bottom: 0; border-radius: 18px 18px 0 0;
  }
  .page-hero { padding-top: 56px; }
  .stage { padding-top: 64px; }
  #zone { padding: 56px 36px; }
  .statrow { grid-template-columns: repeat(3, 1fr); }
  .hosted-frame-wrap { max-height: 62vh; }
}

@media (min-width: 1080px) {
  .room-app .stories { padding-left: 8vw; }
  .room-app .room-top { padding-left: 8vw; padding-right: 8vw; }
  .room-app .thumb { left: 8vw; }
  .room-app .tabbar { left: 8vw; }
  .story-text { font-size: 56px; }
  .wrap { max-width: 960px; }
}

@media (max-height: 700px) {
  .story-text { font-size: clamp(24px, 7vw, 34px); }
  .stories { justify-content: flex-end; }
  .cover-hero { width: min(176px, 46vw); border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important; transition: none !important;
  }
  .bleed-img { filter: blur(6px) saturate(1.08) brightness(0.82); }
  .deck-app .bleed-img { filter: blur(3px) saturate(1.05) brightness(0.96); }
}

::selection { background: color-mix(in srgb, var(--accent) 45%, transparent); }
/* ——— portal ——— */
body.portal { background: var(--bg); }
#portal-root { display: none; }
.empty { text-align: left; padding: 96px 0 40px; }
.empty h1 { font-family: var(--font-story); font-weight: 400; font-size: clamp(40px, 10vw, 72px); letter-spacing: -0.035em; line-height: 0.95; margin-bottom: 18px; }
.empty p { color: var(--ink-2); margin-bottom: 26px; line-height: 1.55; font-size: 17px; max-width: 30rem; }

/* sticky top bar */
.topbar {
  position: sticky; top: 0; z-index: 45;
  background: rgba(11, 10, 13, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.topbar.scrolled { border-bottom-color: var(--line); background: rgba(11, 10, 13, 0.86); }
.topbar-in { display: flex; align-items: center; gap: 18px; min-height: 60px; padding-top: var(--safe-t); }
.jump {
  flex: 1; min-width: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent);
  mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent);
  padding: 0 14px;
}
.jump::-webkit-scrollbar { display: none; }
.jump a {
  flex: 0 0 auto; padding: 8px 12px; border-radius: 999px;
  font-size: 13.5px; color: var(--ink-3); text-decoration: none; white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}
.jump a:hover { color: var(--ink); }
.jump a.on { color: var(--ink); background: rgba(246, 240, 232, 0.08); }
.topbar .btn { flex: 0 0 auto; }
.topbar .poster-short { display: none; }
a.poster-soon {
  flex: 1 0 100%; order: 2; margin-top: 6px;
  font-size: 12.5px; line-height: 1.35; color: var(--ink-2); text-decoration: none;
}
a.poster-soon:hover { color: var(--ink); }
.print-soon { margin-top: 22px; max-width: 36rem; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.print-soon a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* hero */
.hero { position: relative; padding: 56px 0 24px; overflow: hidden; }
.hero .wrap { position: relative; }
.hero-aura {
  position: absolute; inset: -240px -30% auto -30%; height: 760px; z-index: 0; pointer-events: none;
  filter: blur(70px) saturate(1.2); opacity: 0.55;
}
.hero-aura i {
  position: absolute; width: 46%; height: 70%; border-radius: 50%;
  mix-blend-mode: screen; animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6%, 4%) scale(1.12); }
  100% { transform: translate(-5%, -3%) scale(0.95); }
}
.hero > .wrap > *:not(.hero-aura) { position: relative; z-index: 1; }
#title {
  font-family: var(--font-story); font-weight: 400; font-optical-sizing: auto;
  font-size: clamp(56px, 13vw, 168px); line-height: 0.88; letter-spacing: -0.04em;
  outline: none; display: inline-block; max-width: 100%; overflow-wrap: anywhere;
  border-bottom: 2px dashed transparent; transition: border-color 0.2s ease;
  padding-bottom: 0.04em;
}
#title:hover, #title:focus { border-bottom-color: var(--line-strong); }
.title-hint { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--ink-4); text-transform: uppercase; margin-top: 0.5em; padding-top: 14px; }
.hero-lede {
  margin-top: 26px; max-width: 30ch;
  font-family: var(--font-story); font-weight: 400; font-size: clamp(26px, 4.2vw, 48px);
  line-height: 1.08; letter-spacing: -0.025em; color: var(--ink-2);
  text-wrap: balance;
}
.hero-lede b { color: var(--ink); font-weight: 400; }
.hero-lede em { font-style: italic; color: var(--ink); }
.statrow {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 40px;
  border-radius: var(--r); overflow: hidden; background: var(--line); border: 1px solid var(--line);
}
.stat { background: var(--bg); padding: 18px 18px 16px; }
.stat .v { font-family: var(--font-story); font-size: clamp(32px, 5vw, 54px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat .l { margin-top: 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; color: var(--ink-3); text-transform: uppercase; }
.hero-actions { margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; }
.lite-banner {
  margin-top: 22px; padding: 14px 18px; border: 1px solid rgba(255, 179, 71, 0.35);
  background: rgba(255, 179, 71, 0.06); border-radius: 14px; font-size: 14px; color: var(--gold); display: none; max-width: 44rem;
}
.sample-banner {
  margin-top: 22px; display: inline-flex; gap: 10px; align-items: center; flex-wrap: wrap;
  padding: 10px 14px; border-radius: 999px; font-size: 13.5px; color: var(--ink-2);
  background: rgba(246, 240, 232, 0.05); border: 1px solid var(--line);
}
.sample-banner a { color: var(--ink); }

/* sections */
.section { padding: 96px 0 0; position: relative; }
.sec-head { max-width: 46rem; margin-bottom: 28px; }
.sec-head .kicker .num { color: var(--hot-2); margin-right: 10px; }
.sec-title {
  font-family: var(--font-story); font-weight: 400; font-optical-sizing: auto;
  font-size: clamp(40px, 7.5vw, 84px); line-height: 0.92; letter-spacing: -0.04em;
}
.sec-title em { font-style: italic; }
.sec-lede { margin-top: 16px; font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 36rem; }
.crop-hint { color: var(--ink); }
.gal-sub { margin-top: 10px; }
.box {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
}
.box svg { display: block; width: 100%; height: auto; }
.tip {
  position: absolute; pointer-events: none; z-index: 6; display: none;
  background: rgba(20, 19, 24, 0.96); border: 1px solid var(--line-strong);
  border-radius: 12px; padding: 10px 13px; font-size: 13px; line-height: 1.5;
  max-width: 250px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.tip b { font-weight: 600; font-size: 13.5px; }
.tip .dim { color: var(--ink-2); }
.tip .sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 7px; }
.legend { display: flex; gap: 8px 16px; flex-wrap: wrap; margin-top: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: 0 0 auto; }

/* scroll reveal */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.rv.in { opacity: 1; transform: none; }
.grow-bars .tl-bar { transform: scaleY(0); transform-origin: bottom; transform-box: fill-box; }
.grow-bars.in .tl-bar { transform: scaleY(1); transition: transform 0.9s var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms); }

/* timeline */
#timeline-box { min-height: 180px; padding: 0; cursor: crosshair; }
#timeline-box svg { touch-action: none; }
.tl-handles { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.tl-stage { position: relative; }
.tl-handle {
  pointer-events: auto; position: absolute; top: 12%; height: 70%;
  width: 44px; margin-left: -22px; padding: 0; border: 0; background: transparent;
  cursor: ew-resize; touch-action: none;
}
.tl-handle::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px;
  background: var(--ink); border-radius: 2px; box-shadow: 0 0 16px rgba(255, 179, 71, 0.9);
}
.tl-handle::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 16px; height: 36px; margin: -18px 0 0 -8px; border-radius: 8px;
  background: var(--ink);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), inset 0 0 0 4px var(--ink), inset 0 0 0 5px rgba(0,0,0,0.25);
}
.tl-handle:hover::after, .tl-handle:focus-visible::after { background: var(--hot-2); }
.crop-bar {
  position: sticky; bottom: calc(14px + var(--safe-b)); z-index: 8;
  margin: 16px auto 0; max-width: 34rem; padding: 8px; border-radius: 999px;
  background: rgba(20, 19, 24, 0.86); border: 1px solid var(--line-strong);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  display: flex; align-items: center; gap: 10px;
}
.crop-bar .crop-mini { flex: 1; min-width: 0; padding-left: 12px; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crop-bar .crop-mini b { color: var(--ink); font-weight: 600; }
.crop-bar .btn { flex: 0 0 auto; }
#crop-panel {
  margin-top: 28px; display: grid; grid-template-columns: 1fr; gap: 26px;
  padding: 26px 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
}
#crop-panel h3 { font-family: var(--font-story); font-weight: 400; font-size: clamp(26px, 3.6vw, 46px); line-height: 1.05; letter-spacing: -0.035em; overflow-wrap: anywhere; }
.crop-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 22px; }
.crop-stats .cs { min-width: 0; }
.crop-stats .cs .v { font-family: var(--font-story); font-size: clamp(18px, 5vw, 30px); letter-spacing: -0.02em; line-height: 1.15; overflow-wrap: anywhere; }
.crop-stats .cs .l { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.crop-side .pl-actions { margin-top: 22px; }
@media (min-width: 760px) { .crop-side { position: sticky; top: 84px; align-self: start; } }
#crop-list { list-style: none; counter-reset: none; }
#crop-list li {
  display: grid; grid-template-columns: 24px 40px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14.5px;
}
#crop-list li:last-child { border-bottom: 0; }
#crop-list:not(.all) li:nth-child(n+11):not(.crop-more) { display: none; }
#crop-list.all li.crop-more { display: none; }
#crop-list li.crop-more { display: block; padding-top: 14px; }
#crop-list a { color: var(--ink); text-decoration: none; min-width: 0; overflow: hidden; display: block; }
#crop-list a:hover .pl-t { color: var(--hot-2); }
#crop-list .pl-i { font-family: var(--font-mono); color: var(--ink-3); font-size: 11.5px; text-align: right; }
#crop-list .crop-cover, #crop-list .crop-fallback, #crop-list .crop-fallback img {
  width: 40px; height: 40px; border-radius: 7px; object-fit: cover; display: block;
}
#crop-list .crop-fallback { background: var(--surface-2); position: relative; overflow: hidden; }
#crop-list .pl-t { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.15s ease; }
#crop-list em { display: block; font-style: normal; color: var(--ink-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#crop-list .pl-n { font-family: var(--font-mono); color: var(--ink-3); font-size: 11.5px; white-space: nowrap; max-width: 5.5rem; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 400px) {
  .tl-handle { width: 36px; margin-left: -18px; }
  #crop-panel { padding: 16px 14px; }
  #crop-panel h3 { font-size: 24px; }
  .crop-stats { gap: 10px; }
  .crop-stats .cs .v { font-size: 18px; }
  #crop-list li { grid-template-columns: 18px 36px minmax(0, 1fr) auto; gap: 8px; font-size: 13.5px; }
  #crop-list .crop-cover, #crop-list .crop-fallback, #crop-list .crop-fallback img { width: 36px; height: 36px; }
  #crop-list .pl-n { max-width: 3.6rem; font-size: 10.5px; }
  .crop-bar { max-width: none; }
}

/* flow (the relay) */
.flow-track { display: flex; gap: 3px; align-items: stretch; height: 210px; border-radius: var(--r); overflow: hidden; }
.flow-seg {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 12px 0; border: 0; color: var(--ink); cursor: pointer;
  transition: filter 0.2s ease, flex-grow 0.5s var(--ease);
}
.flow-seg:hover { filter: brightness(1.18); }
.flow-seg.quiet { background: repeating-linear-gradient(-45deg, #16151a 0 6px, #111014 6px 12px) !important; cursor: default; }
.flow-hero, .flow-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.flow-hero img, img.flow-hero { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; opacity: 0.42; }
.flow-shade { background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent 75%); }
/* names run up the spine, like records on a shelf */
.flow-copy { position: relative; z-index: 1; writing-mode: vertical-rl; transform: rotate(180deg); max-height: 100%; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; }
.flow-name { font-family: Anton, Impact, sans-serif; font-size: 19px; line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-height: 186px; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35); }
.flow-when { display: none; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.72); white-space: nowrap; }
.flow-seg.roomy .flow-when { display: block; }
.flow-seg.small .flow-copy { display: none; }
.flow-also { display: none; }
.flow-years { position: relative; height: 22px; margin-top: 10px; }
.flow-years span { position: absolute; top: 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-3); padding-left: 6px; border-left: 1px solid var(--line); line-height: 18px; }

/* river */
#gal-river { background: radial-gradient(90% 70% at 50% 50%, #18161d, #111014 80%); }

/* eras as record sleeves */
.sleeves {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(80vw, 340px); gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--gutter) 30px 0;
  margin: 0 calc(-1 * var(--gutter)) 0 0; scroll-padding-left: 0; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
  -webkit-overflow-scrolling: touch;
}
.sleeve { scroll-snap-align: start; position: relative; cursor: pointer; }
.sleeve .jacket {
  position: relative; aspect-ratio: 1; width: 86%; border-radius: 6px; overflow: hidden; z-index: 2;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.07);
  transition: transform 0.5s var(--ease);
}
.sleeve .jacket svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sleeve .record {
  position: absolute; z-index: 1; top: 3%; left: 3%; width: 80%; transform: translateX(19%) rotate(0deg); aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle, #0b0a0d 0 2.2%, var(--lab, #e2694b) 2.4% 17%, #0b0a0d 17.4% 18%, transparent 18.2%),
    conic-gradient(from 20deg, rgba(255,255,255,0.13), transparent 10%, rgba(255,255,255,0.05) 25%, transparent 40%, rgba(255,255,255,0.12) 55%, transparent 70%, rgba(255,255,255,0.06) 85%, rgba(255,255,255,0.13)),
    repeating-radial-gradient(circle, #19181c 0 0.6%, #0c0b0e 0.6% 1.2%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: transform 0.6s var(--ease);
}
.sleeve:hover .record, .sleeve:focus-within .record { transform: translateX(27%) rotate(50deg); }
.sleeve:hover .jacket { transform: translateY(-4px); }
.jacket .jk-copy {
  position: absolute; inset: auto 0 0 0; padding: 18px 18px 16px; z-index: 2;
  background: linear-gradient(to top, rgba(8, 7, 10, 0.78), rgba(8, 7, 10, 0.2) 70%, transparent);
}
.jacket .jk-top { position: absolute; top: 14px; left: 16px; right: 16px; display: flex; justify-content: space-between; z-index: 2; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.78); text-transform: uppercase; }
.jacket h3 {
  font-family: var(--font-story); font-weight: 400; font-size: clamp(24px, 2.4vw, 31px);
  line-height: 1.0; letter-spacing: -0.025em; outline: none; overflow-wrap: anywhere;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}
.jacket h3:focus { border-bottom: 1px dashed rgba(255, 255, 255, 0.5); }
.sleeve .liner { margin-top: 16px; padding-right: 8px; }
.sleeve .liner .meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-3); text-transform: uppercase; }
.sleeve .liner .cast { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.sleeve .liner .cast b { color: var(--ink); font-weight: 500; }
.sleeve.gap .jacket { background: repeating-linear-gradient(-45deg, #17161b 0 8px, #121115 8px 16px); }
.sleeve.gap .record { display: none; }
.scroll-hint { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--ink-3); text-transform: uppercase; }

/* years */
.years { display: grid; grid-template-columns: 1fr; gap: 14px; }
.year {
  position: relative; overflow: hidden; border-radius: var(--r); padding: 22px 22px 18px;
  background: var(--surface); border: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr; gap: 14px;
  transition: border-color 0.2s ease, transform 0.3s var(--ease);
}
.year:hover { border-color: var(--line-strong); }
.year .yr {
  font-family: var(--font-story); font-size: clamp(72px, 11vw, 116px); line-height: 0.82; letter-spacing: -0.05em; padding-bottom: 4px;
  color: transparent; -webkit-background-clip: text; background-clip: text; background-color: var(--ink);
}
.year .y-bars-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 4px; }
.year .y-bars-btn:hover svg { filter: brightness(1.2); }
.year .yr-glow { position: absolute; width: 60%; height: 120%; right: -10%; top: -30%; border-radius: 50%; filter: blur(60px); opacity: 0.3; pointer-events: none; }
.year .y-lead { font-family: var(--font-story); font-size: clamp(24px, 3vw, 34px); line-height: 1.05; letter-spacing: -0.02em; }
.year .y-lead span { color: var(--ink-3); font-style: italic; }
.year .y-rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.year .y-rows .v { font-family: var(--font-story); font-size: 22px; line-height: 1.1; overflow-wrap: anywhere; }
.year .y-rows .l { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--ink-3); text-transform: uppercase; margin-top: 3px; }
.year .y-song { font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
.year .y-song b { color: var(--ink); font-weight: 500; }
.year svg.y-bars { width: 100%; height: 46px; display: block; }
.year .y-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* relationships */
#gal-rel { padding: 10px 6px 4px; }
.gal-rel-row { cursor: pointer; }
.gal-rel-row:hover text { fill: var(--ink); }
.gal-rel-row:hover .rel-hit { fill: rgba(246, 240, 232, 0.035); }

/* artist wall */
.artist-wall { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.artist-card {
  position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0;
  border-radius: var(--r); overflow: hidden; background: var(--surface); cursor: pointer; text-align: left; color: var(--ink);
  transition: transform 0.4s var(--ease), box-shadow 0.4s ease;
}
.artist-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.9); }
.artist-card.lead { grid-column: span 2; aspect-ratio: 2 / 1.25; }
.artist-art { position: absolute; inset: 0; }
.artist-art img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; transition: transform 0.8s var(--ease); }
.artist-card:hover .artist-art img { transform: scale(1.05); }
.artist-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.artist-fallback .mono-init { font-family: var(--font-story); font-size: clamp(64px, 13vw, 150px); letter-spacing: -0.06em; color: rgba(0, 0, 0, 0.28); line-height: 1; font-style: italic; }
.artist-rank { position: absolute; top: 12px; left: 14px; z-index: 2; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.85); background: rgba(0, 0, 0, 0.3); padding: 5px 8px; border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.artist-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 14px 14px; z-index: 1; background: linear-gradient(to top, rgba(8, 7, 10, 0.9), transparent); }
.artist-name { display: block; font-family: var(--font-story); font-size: clamp(19px, 2.4vw, 28px); line-height: 1.02; letter-spacing: -0.02em; }
.artist-card.lead .artist-name { font-size: clamp(34px, 5.5vw, 60px); }
.artist-hrs { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.72); }

/* obsessions */
.obs-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.spike {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px 20px 0; cursor: pointer; text-align: left; color: inherit; width: 100%; overflow: hidden;
  display: flex; flex-direction: column; transition: border-color 0.2s ease, transform 0.3s var(--ease);
}
.spike:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.spike .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.spike .who { font-family: var(--font-story); font-size: clamp(26px, 3vw, 34px); line-height: 1; letter-spacing: -0.02em; }
.spike .when { margin-top: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-3); text-transform: uppercase; }
.spike .pct { font-family: var(--font-story); font-size: clamp(44px, 5vw, 60px); line-height: 0.9; letter-spacing: -0.04em; text-align: right; }
.spike .pct span { display: block; white-space: nowrap; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--ink-3); margin-top: 6px; text-transform: uppercase; }
.spike svg { display: block; width: calc(100% + 40px); margin: 16px -20px 0; height: 74px; }
.chip { display: inline-block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; padding: 4px 9px; border-radius: 999px; border: 1px solid; text-transform: uppercase; margin-top: 12px; align-self: flex-start; }
.chip.cold { color: #8fb3e0; border-color: rgba(143, 179, 224, 0.4); }
.chip.cooled { color: var(--gold); border-color: rgba(217, 179, 94, 0.4); }
.chip.steady { color: var(--teal); border-color: rgba(49, 165, 147, 0.45); }
.chip.active { color: var(--good); border-color: rgba(95, 195, 154, 0.45); }

/* weird facts */
.fact-stack { display: grid; grid-template-columns: 1fr; gap: 12px; grid-auto-flow: row dense; }
.fact-card {
  position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px 22px 18px; display: flex; flex-direction: column;
}
.fact-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--fc, var(--hot)); }
.fact-card .kicker { color: var(--fc, var(--hot-2)); margin-bottom: 10px; }
.fact-card .fact { font-family: var(--font-story); font-weight: 400; font-size: clamp(24px, 3vw, 34px); line-height: 1.12; letter-spacing: -0.02em; text-wrap: pretty; }
.fact-card .evidence { margin-top: 14px; font-family: var(--font-mono); font-size: 11.5px; line-height: 1.6; color: var(--ink-3); }
.fact-card .fact-save { margin-top: 16px; align-self: flex-start; }
#fact-refresh { margin-top: 18px; }

/* clocks */
.gal-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.gal-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--ink-3); margin-bottom: 6px; text-transform: uppercase; }
.gal-block .footnote { margin-bottom: 14px; }
#gal-clockface, #gal-heat { padding: 14px 10px 8px; }
.clock-cast { list-style: none; margin-top: 14px; display: grid; grid-template-columns: 1fr; gap: 0; }
.clock-cast li { display: grid; grid-template-columns: 74px 1fr auto; gap: 12px; align-items: baseline; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.clock-cast .h { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.06em; }
.clock-cast .a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clock-cast .a i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 8px; }
.clock-cast .n { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }

/* more drawer */
.more-diary { margin-top: 110px; }
.more-diary > summary {
  cursor: pointer; list-style: none; display: block;
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
}
.more-diary > summary::-webkit-details-marker { display: none; }
.more-card {
  position: relative; overflow: hidden; border-radius: 28px; padding: 30px 24px;
  background: radial-gradient(120% 140% at 100% 0%, rgba(255, 90, 60, 0.2), transparent 55%), var(--surface);
  border: 1px solid var(--line); transition: border-color 0.2s ease;
  display: grid; gap: 18px;
}
.more-card:hover { border-color: var(--line-strong); }
.more-card h2 { font-family: var(--font-story); font-weight: 400; font-size: clamp(36px, 6vw, 64px); line-height: 0.95; letter-spacing: -0.035em; }
.more-card p { color: var(--ink-2); font-size: 16px; max-width: 34rem; }
.more-card .more-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.more-card .more-tags span { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-2); }
.more-card .open-label::after { content: ' ↓'; }
.more-diary[open] .more-card .open-label::after { content: ' ↑'; }
.more-diary[open] .more-card .open-label { }

/* grids used by receipts, tapes, discoveries, lore */
.rec-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.rec, .tape, .chap, .obs {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px;
}
.rec .k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em; color: var(--ink-3); margin-bottom: 12px; text-transform: uppercase; }
.rec .big { font-family: var(--font-story); font-size: clamp(24px, 2.6vw, 30px); line-height: 1.1; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.rec .sub { margin-top: 10px; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.rec ul { list-style: none; }
.rec li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.rec li:last-child { border-bottom: none; }
.rec li .a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec li .n { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); white-space: nowrap; }
#clock-svg { width: 100%; height: 90px; margin-top: 6px; }
.tape { cursor: pointer; transition: border-color 0.2s ease, transform 0.3s var(--ease); overflow: hidden; }
.tape:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.tape .cassette {
  height: 64px; border-radius: 10px; margin: -4px 0 16px; position: relative; overflow: hidden;
  background: var(--tc, var(--grad));
}
.tape .cassette::before, .tape .cassette::after {
  content: ''; position: absolute; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%;
  background: repeating-conic-gradient(#0b0a0d 0 30deg, #2a282f 30deg 60deg); box-shadow: 0 0 0 5px rgba(11, 10, 13, 0.6);
  animation: spin 4s linear infinite; animation-play-state: paused;
}
.tape .cassette::before { left: 26%; }
.tape .cassette::after { right: 26%; }
.tape:hover .cassette::before, .tape:hover .cassette::after { animation-play-state: running; }
.card-save {
  margin-top: 16px; background: none; border: 1px solid var(--line-strong); color: var(--ink-2);
  border-radius: 999px; padding: 7px 14px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em;
  cursor: pointer; transition: all 0.15s ease; text-transform: uppercase;
}
.card-save:hover { color: var(--ink); border-color: var(--ink-2); background: rgba(246, 240, 232, 0.04); }
.lock-card { border-style: dashed; }

/* forms inside the drawer */
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input, #ask-input, #tm-input, #lib-search, #lore-form input, #pal-form input {
  flex: 1; min-width: 200px; background: var(--bg); border: 1px solid var(--line-strong); color: var(--ink);
  border-radius: 14px; padding: 14px 16px; font-family: inherit; font-size: 16px; outline: none; min-height: 50px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.inline-form input:focus, #ask-input:focus, #tm-input:focus, #lib-search:focus, #lore-form input:focus { border-color: rgba(255, 179, 71, 0.7); box-shadow: 0 0 0 4px rgba(255, 122, 77, 0.12); }
#lore-form #lore-ym { color-scheme: dark; flex: 0 1 200px; min-width: 160px; }
.ask-chip, .disc-chip {
  display: inline-flex; align-items: center; padding: 8px 14px; min-height: 38px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink-2);
  font-family: inherit; font-size: 13px; cursor: pointer; transition: all 0.15s ease; text-decoration: none;
}
.ask-chip:hover, .disc-chip:hover { color: var(--ink); border-color: var(--ink-2); background: rgba(246, 240, 232, 0.04); }
.disc-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 14px; }
.disc-why { margin-top: 12px; font-size: 12.5px; color: var(--ink-3); line-height: 1.7; display: none; border-top: 1px dashed var(--line); padding-top: 10px; }
.disc-why-toggle { background: none; border: none; color: var(--ink-3); font-family: inherit; font-size: 12px; cursor: pointer; padding: 0; margin-top: 12px; text-decoration: underline; text-underline-offset: 3px; }
.disc-why-toggle:hover { color: var(--ink-2); }
.mem-input { width: 100%; margin-top: 12px; background: var(--bg); border: 1px solid var(--line-strong); color: var(--ink); border-radius: 12px; padding: 12px; font-family: inherit; font-size: 14.5px; outline: none; resize: vertical; min-height: 70px; }
.mem-card { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: var(--r); padding: 18px 20px; }
.mem-card .song { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-3); margin-bottom: 8px; }
.mem-card .body { font-family: var(--font-story); font-size: 19px; line-height: 1.4; font-style: italic; }
.mem-card .foot { margin-top: 10px; display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); }
.mem-del, .lore-del { background: none; border: none; color: var(--ink-3); cursor: pointer; font-family: inherit; font-size: 12px; }
.mem-del:hover, .lore-del:hover { color: var(--coral); }
.lore-del { font-size: 22px; line-height: 1; padding: 2px 6px; }
.lore-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 18px; }
.lore-card { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--hot); border-radius: var(--r); padding: 20px; }
.lore-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.lore-card .dates { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--ink-3); }
.lore-card h3 { font-family: var(--font-story); font-weight: 400; font-size: 28px; letter-spacing: -0.02em; margin-top: 6px; }
.lore-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; font-size: 14px; line-height: 1.7; }
.lore-vs .col > b { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--ink-3); font-weight: 500; margin-bottom: 6px; }
.lore-delta { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.lore-tapes { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; align-items: center; }
.lore-tapes .card-save { margin-top: 0; }
.sub-title { font-family: var(--font-story); font-weight: 400; font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.03em; line-height: 1; margin-bottom: 16px; }
.lib-controls { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.lib-list { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
.lib-row { display: grid; grid-template-columns: 42px 1fr 120px 64px; gap: 12px; align-items: center; padding: 11px 4px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background 0.15s ease; }
.lib-row:hover { background: rgba(246, 240, 232, 0.035); }
.lib-row .rank { font-family: var(--font-mono); color: var(--ink-3); font-size: 12px; }
.lib-row .name { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-row .lib-bar { height: 4px; border-radius: 2px; background: var(--panel-2); overflow: hidden; }
.lib-row .lib-bar i { display: block; height: 100%; background: var(--hot-2); border-radius: 2px; }
.lib-row .hrs { font-family: var(--font-mono); color: var(--ink-2); font-size: 12px; text-align: right; }
#lib-more { margin-top: 16px; }
.cmp-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
#cmp-result { display: none; }
.cmp-hero { display: flex; gap: 26px; align-items: baseline; flex-wrap: wrap; margin-bottom: 18px; }
.cmp-hero .ov { font-family: var(--font-story); font-size: 72px; }
.cmp-hero .ovl { color: var(--ink-2); font-size: 14px; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cmp-table th { text-align: left; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; color: var(--ink-3); padding: 8px 10px; border-bottom: 1px solid var(--line-strong); }
.cmp-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); }
.cmp-table .first-me { color: var(--teal); }
.cmp-table .first-them { color: var(--coral); }
.drawer-section { padding-top: 72px; }
#ask-answer { display: none; margin-top: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }

/* modal sheet */
#modal-back {
  position: fixed; inset: 0; z-index: 60; display: none; overflow-y: auto;
  background: rgba(5, 4, 7, 0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 40px 12px calc(20px + var(--safe-b));
}
#modal-back.open { display: block; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes sheetUp { from { opacity: 0; transform: translateY(40px) scale(0.98); } }
#modal {
  position: relative; max-width: 620px; margin: 0 auto; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 28px; padding: 28px 22px 22px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
  animation: sheetUp 0.45s var(--ease-out);
}
#modal .m-aura { position: absolute; inset: -40% -20% auto -20%; height: 320px; filter: blur(60px); opacity: 0.35; pointer-events: none; }
#modal > *:not(.m-aura) { position: relative; }
#modal .x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(246, 240, 232, 0.08); color: var(--ink); font-size: 20px; cursor: pointer; line-height: 1; z-index: 3; }
#modal .x:hover { background: rgba(246, 240, 232, 0.16); }
#modal .aname { font-family: var(--font-story); font-weight: 400; font-size: clamp(36px, 7vw, 60px); line-height: 0.95; letter-spacing: -0.035em; padding-right: 40px; overflow-wrap: anywhere; }
#modal .astats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 22px; border-radius: 16px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
#modal .as { background: var(--surface); padding: 14px 16px; }
#modal .as .v { font-family: var(--font-story); font-size: 24px; letter-spacing: -0.02em; line-height: 1.1; }
#modal .as .l { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; color: var(--ink-3); margin-top: 4px; text-transform: uppercase; }
#modal .a-first { margin-top: 18px; font-family: var(--font-story); font-style: italic; font-size: 20px; line-height: 1.35; color: var(--ink-2); }
#modal .a-first b { color: var(--ink); font-weight: 400; }
#modal .tracks { margin-top: 22px; }
#modal .tr { margin: 10px 0; }
#modal .tr .t { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 5px; }
#modal .tr .t span:last-child { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
#modal .tr .barw { height: 4px; background: var(--panel-2); border-radius: 3px; }
#modal .tr .barf { height: 100%; border-radius: 3px; background: var(--fc, var(--hot-2)); }
#modal .arc-label { margin-top: 24px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .18em; color: var(--ink-3); text-transform: uppercase; }
#modal svg.arc { width: 100%; height: 90px; margin-top: 8px; display: block; }
#modal .close { margin-top: 22px; width: 100%; }
.pl-sub { margin-top: 12px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.pl-list { list-style: none; margin-top: 18px; max-height: 48vh; overflow-y: auto; border-top: 1px solid var(--line); }
.pl-list li a { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; border-radius: 8px; }
.pl-list li a:hover { background: rgba(246, 240, 232, 0.04); }
.pl-i { font-family: var(--font-mono); color: var(--ink-3); font-size: 11.5px; }
.pl-t { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-t em { display: block; font-style: normal; color: var(--ink-3); font-size: 12.5px; }
.pl-n { font-family: var(--font-mono); color: var(--ink-3); font-size: 11.5px; white-space: nowrap; }
.pl-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.cg-list { list-style: none; margin-top: 16px; max-height: 50vh; overflow-y: auto; }
.cg-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.cg-list li:last-child { border-bottom: none; }
.cg-list p { font-size: 15px; line-height: 1.6; }
.cg-list .footnote { display: block; margin-top: 6px; }

/* story */
#story-back { position: fixed; inset: 0; background: #07060a; z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; cursor: pointer; overflow: hidden; }
#story { max-width: 760px; width: 100%; position: relative; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.story-big { font-family: var(--font-story); font-size: clamp(48px, 9vw, 108px); line-height: 0.95; letter-spacing: -0.045em; animation: fadeUp .7s var(--ease-out) both; }
.story-sub { margin-top: 22px; color: var(--ink-2); font-size: 18px; line-height: 1.65; max-width: 560px; animation: fadeUp .7s .15s var(--ease-out) both; }
#story .kicker { animation: fadeUp .6s var(--ease-out) both; color: var(--hot-2); }
.story-foot { display: flex; align-items: center; gap: 12px; margin-top: 44px; flex-wrap: wrap; }
.story-dots { display: flex; gap: 6px; margin-right: auto; }
.story-dots span { width: 18px; height: 3px; border-radius: 2px; background: var(--line-strong); }
.story-dots span.on { background: var(--hot-2); }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); z-index: 90; transform: translate(-50%, 20px);
  background: var(--ink); color: #120f0d; padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 500;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease, transform 0.3s var(--ease);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); white-space: nowrap;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ——— new breakpoints (after the legacy ones so they win) ——— */
.nav .links { display: flex; }
.home-hero h1, #title, .sec-title, .page-hero h1, .stage h1, .more-card h2, .empty h1, .story-big, .hero-lede, .jacket h3, .year .yr, .spike .who, .spike .pct, .fact-card .fact, #modal .aname, #crop-panel h3, .artist-name, .reveal-count, #zone .big {
  font-optical-sizing: none; font-variation-settings: "opsz" 48;
}
.home-hero h1, #title, .sec-title, .page-hero h1, .stage h1, .more-card h2, .empty h1 { font-weight: 420; }
@media (max-width: 640px) {
  .demo-head { flex-direction: column; gap: 4px; }
  .demo #demo-chart { padding-top: 92px; }
  .demo-pop { min-width: 200px; font-size: 12px; }
}
@media (min-width: 560px) {
  :root { --gutter: 28px; }
  .statrow { grid-template-columns: repeat(3, 1fr); }
  .artist-wall { grid-template-columns: repeat(3, 1fr); }
  .artist-card.lead { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .crop-stats { grid-template-columns: repeat(3, 1fr); }
  .remind-row { flex-direction: row; }
  .remind-row .btn { flex: 0 0 auto; }
}
@media (min-width: 760px) {
  a.poster-soon { flex: 0 1 18rem; order: 0; margin-top: 0; text-align: right; }
  :root { --gutter: 40px; }
  .wrap { max-width: var(--maxw); padding: 0 var(--gutter); }
  .section { padding-top: 132px; }
  .hero { padding-top: 84px; }
  .statrow { grid-template-columns: repeat(5, 1fr); }
  .years { grid-template-columns: repeat(2, 1fr); }
  .obs-grid { grid-template-columns: repeat(2, 1fr); }
  .fact-stack { grid-template-columns: repeat(2, 1fr); }
  .fact-card.wide { grid-column: span 2; }
  .gal-grid { grid-template-columns: 1.1fr 0.9fr; gap: 22px; }
  .rec-grid { grid-template-columns: repeat(2, 1fr); }
  .lore-grid { grid-template-columns: repeat(2, 1fr); }
  #crop-panel { grid-template-columns: 0.85fr 1.15fr; padding: 34px; gap: 40px; }
  .flow-track { height: 250px; }
  .flow-name { font-size: 22px; max-height: 226px; }
  .home-steps { grid-template-columns: repeat(3, 1fr); gap: 28px; border-top: 0; }
  .home-steps .hs { border-top: 1px solid var(--line); border-bottom: 0; grid-template-columns: 1fr; }
  .home-steps .n { grid-row: auto; }
  .promise { grid-template-columns: repeat(3, 1fr); }
  .more-card { grid-template-columns: 1.3fr 1fr; align-items: end; padding: 44px; }
  #modal { padding: 36px 34px 30px; margin-top: 4vh; }
  #modal .astats { grid-template-columns: repeat(3, 1fr); }
  .year { grid-template-columns: auto 1fr; column-gap: 26px; }
  .year .yr { grid-row: span 3; }
  .year .y-bars-btn, .year .y-actions, .year .y-song { grid-column: 2; }
  .page-hero, .stage { padding-top: 70px; }
}
@media (min-width: 1100px) {
  .years { grid-template-columns: repeat(3, 1fr); }
  .year { grid-template-columns: 1fr; }
  .year .yr { grid-row: auto; }
  .year .y-bars-btn, .year .y-actions, .year .y-song { grid-column: auto; }
  .artist-wall { grid-template-columns: repeat(4, 1fr); }
  .obs-grid { grid-template-columns: repeat(3, 1fr); }
  .rec-grid { grid-template-columns: repeat(3, 1fr); }
  .lore-grid { grid-template-columns: repeat(3, 1fr); }
  .fact-stack { grid-template-columns: repeat(3, 1fr); }
  .fact-card.wide { grid-column: span 2; }
  .sleeves { grid-auto-columns: 320px; }
}
@media (max-width: 759px) {
  .topbar-in { flex-wrap: wrap; gap: 0 12px; min-height: 0; padding-top: calc(10px + var(--safe-t)); }
  .topbar-in .mark { flex: 1; }
  .jump { order: 3; flex-basis: calc(100% + 2 * var(--gutter)); margin: 6px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 8px; }
  .jump a { padding: 6px 11px; font-size: 13px; }
  .stat:first-child { grid-column: span 2; }
  .stat:first-child .v { font-size: 64px; }
  .crop-bar .crop-mini { display: none; }
  .crop-bar .btn { flex: 1; }
  .topbar .poster-full { display: none; }
  .topbar .poster-short { display: inline; }
  a.poster-soon { flex-basis: 100%; }
  .lib-row { grid-template-columns: 36px 1fr 60px; }
  .lib-row .lib-bar { display: none; }
  /* the shelf scrolls sideways on a phone: every spine wide enough for its name */
  .flow-track { height: 230px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin-right: calc(-1 * var(--gutter)); border-radius: var(--r) 0 0 var(--r); }
  .flow-track::-webkit-scrollbar { display: none; }
  .flow-seg { min-width: 46px; scroll-snap-align: start; }
  .flow-seg.small .flow-copy { display: flex; }
  .flow-seg .flow-when { display: block; }
  .flow-name { font-size: 18px; max-height: 150px; }
  .flow-years { display: none; }
  #modal-back { padding: 60px 0 0; }
  #modal { border-radius: 26px 26px 0 0; min-height: calc(100vh - 60px); padding-bottom: calc(28px + var(--safe-b)); }
}
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; }
  .grow-bars .tl-bar { transform: none; }
  .mark::before, #zone .vinyl, .hero-aura i { animation: none; }
}

/* ——— the walkthrough (js/walkthrough.js): Spotify's privacy page, dark like the real one ——— */
.wt { position: relative; }
.wt-frame {
  position: relative; border-radius: 16px; overflow: hidden; cursor: pointer;
  background: #121212; border: 1px solid var(--line-strong);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9), 0 0 0 6px rgba(246, 240, 232, 0.03);
}
.wt-chrome { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #1c1b20; border-bottom: 1px solid rgba(255,255,255,0.06); }
.wt-chrome > i { width: 9px; height: 9px; border-radius: 50%; background: #3a3840; }
.wt-url {
  flex: 1; margin-left: 10px; display: flex; align-items: center; gap: 8px; min-width: 0;
  background: #0f0e12; border-radius: 999px; padding: 5px 12px; font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.5);
  transition: box-shadow 0.25s ease, color 0.25s ease;
}
.wt-url.typed { color: #fff; box-shadow: 0 0 0 2px rgba(30, 215, 96, 0.85); }
.wt-url-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wt-lock { width: 8px; height: 9px; border-radius: 2px; border: 1.5px solid currentColor; flex: 0 0 auto; }
.wt-view { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #121212; }
.wt-scene { position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.wt-scene.on { opacity: 1; }
.wt-scroll { position: relative; padding: 4.5% 7% 30%; transition: transform 0.85s cubic-bezier(0.45, 0, 0.2, 1); color: #fff; font-family: var(--font-ui); font-size: clamp(9px, 1.35vw, 13px); }
.wt-ask { display: flex; justify-content: space-between; align-items: center; width: 52%; padding: 0.7em 0.9em; border-radius: 999px; border: 1px solid rgba(255,255,255,0.28); color: rgba(255,255,255,0.8); margin-bottom: 1.6em; background: linear-gradient(90deg, rgba(120,160,255,0.07), transparent); }
.wt-ask b { font-weight: 600; color: rgba(255,255,255,0.4); }
.wt-h1 { font-size: 2.5em; font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin-bottom: 0.6em; }
.wt-h2 { font-size: 1.7em; font-weight: 800; letter-spacing: -0.02em; margin: 1.2em 0 0.6em; }
.wt-skel { display: grid; gap: 0.5em; margin-bottom: 1em; }
.wt-skel i { display: block; height: 0.55em; border-radius: 4px; background: rgba(255,255,255,0.12); }
.wt-card, .wt-pack { position: relative; padding: 1.1em 1.2em; border-radius: 8px; background: #1f1f1f; margin-bottom: 0.8em; }
.wt-card-h, .wt-pack-h { font-size: 1.2em; font-weight: 700; margin-bottom: 0.7em; }
.wt-toggle { position: absolute; right: 1.2em; top: 1.1em; width: 2.6em; height: 1.4em; border-radius: 999px; background: #1ed760; }
.wt-toggle::after { content: ''; position: absolute; right: 0.2em; top: 0.2em; width: 1em; height: 1em; border-radius: 50%; background: #121212; }
.wt-pack { border: 1px solid rgba(255,255,255,0.08); transition: border-color 0.3s ease, background 0.3s ease; }
.wt-pack p { color: rgba(255,255,255,0.65); line-height: 1.4; margin-bottom: 0.8em; }
.wt-prep { display: flex; align-items: center; gap: 0.5em; color: rgba(255,255,255,0.7); margin-bottom: 0.7em; }
.wt-sel { display: flex; align-items: center; gap: 0.6em; color: rgba(255,255,255,0.75); }
.wt-box { width: 1.35em; height: 1.35em; border-radius: 3px; border: 1.5px solid rgba(255,255,255,0.6); position: relative; flex: none; transition: all 0.15s ease; }
.wt-pack.checked .wt-box { background: #1ed760; border-color: #1ed760; }
.wt-pack.checked .wt-box::after { content: ''; position: absolute; left: 0.36em; top: 0.08em; width: 0.35em; height: 0.72em; border: solid #000; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.wt-target { border-color: rgba(255,255,255,0.18); }
.wt-target.checked { border-color: #1ed760; background: #1b2a20; }
.wt-req-wrap { text-align: center; margin-top: 1.6em; }
.wt-req { display: inline-block; padding: 0.9em 2.2em; border-radius: 999px; background: #1ed760; color: #000; font-weight: 700; font-size: 1.15em; transition: transform 0.12s ease, filter 0.2s ease; }
.wt-req.pressed { transform: scale(0.94); filter: brightness(0.88); }
.wt-sent { margin-top: 0.8em; color: #1ed760; opacity: 0; transition: opacity 0.3s ease; }
.wt-sent.on { opacity: 1; }
.wt-mail { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 6%; background: radial-gradient(80% 70% at 50% 40%, #1c1b22, #111014); font-size: clamp(10px, 1.45vw, 14px); }
.wt-later { position: absolute; top: 10%; font-family: var(--font-story); font-style: italic; font-size: clamp(20px, 3.6vw, 34px); color: var(--ink); opacity: 0; transform: translateY(8px); transition: all 0.4s var(--ease-out); }
.wt-later.on { opacity: 1; transform: none; }
.wt-note { position: absolute; top: 30%; width: min(84%, 420px); display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 11px 13px; border-radius: 16px; background: rgba(245, 242, 238, 0.94); color: #111; box-shadow: 0 20px 50px rgba(0,0,0,0.5); opacity: 0; transform: translateY(-14px) scale(0.97); transition: all 0.35s var(--ease-out); }
.wt-note.on { opacity: 1; transform: none; }
.wt-note-app { width: 2.4em; height: 2.4em; border-radius: 0.6em; display: grid; place-items: center; background: var(--grad); color: #1a0a06; font-weight: 800; }
.wt-note b { display: block; font-size: 0.95em; }
.wt-note span { display: block; color: #333; font-size: 0.95em; }
.wt-note em { font-style: normal; color: #777; font-size: 0.85em; align-self: start; }
.wt-inbox { width: min(90%, 520px); background: #fff; color: #111; border-radius: 12px; overflow: hidden; opacity: 0; transform: translateY(12px) scale(0.98); transition: all 0.35s var(--ease-out); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.wt-inbox.on { opacity: 1; transform: none; }
.wt-search { display: flex; align-items: center; gap: 8px; margin: 10px; padding: 9px 12px; border-radius: 999px; background: #eef1f5; color: #111; min-height: 1.2em; }
.wt-search i { width: 0.9em; height: 0.9em; border-radius: 50%; border: 2px solid #666; flex: none; }
.wt-caret { width: 1.5px; height: 1.1em; background: #111; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.wt-mailrow { display: grid; grid-template-columns: 10px auto 1fr auto; gap: 10px; align-items: center; padding: 10px 14px; border-top: 1px solid #eee; opacity: 0; transition: opacity 0.25s ease; }
.wt-mailrow.on { opacity: 1; }
.wt-mailrow.dim { color: #777; }
.wt-mailrow span:not(.wt-dot) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: inherit; }
.wt-mailrow em { font-style: normal; color: #888; font-size: 0.9em; }
.wt-dot { width: 8px; height: 8px; border-radius: 50%; background: #2563eb; }
.wt-file {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 12px;
  background: #fff; color: #111; font-size: clamp(11px, 1.5vw, 14px); font-weight: 600; box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  opacity: 0; transform: translateY(10px); transition: opacity 0.3s ease, transform 0.35s var(--ease-out);
}
.wt-file.on { opacity: 1; transform: none; }
.wt-zip { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 36px; border-radius: 5px; background: var(--grad); color: #1a0a06; font-family: var(--font-mono); font-size: 9px; font-weight: 700; }
.wt-drop { display: flex; align-items: center; justify-content: center; padding: 6%; background: var(--bg); }
.wt-zone {
  width: 86%; height: 74%; border-radius: 18px; border: 1.5px dashed rgba(246,240,232,0.25);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: radial-gradient(120% 90% at 50% 0%, rgba(255, 90, 60, 0.08), transparent 60%), var(--surface);
  transition: all 0.25s ease; color: var(--ink);
}
.wt-zone b { font-family: var(--font-story); font-weight: 400; font-size: clamp(18px, 3.2vw, 30px); }
.wt-zone.done b { display: none; }
.wt-hours { font-family: var(--font-story); font-size: clamp(28px, 5.6vw, 54px); letter-spacing: -0.03em; }
.wt-vinyl { width: 15%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--bg) 0 6%, transparent 7%), radial-gradient(circle, #ff6a3d 0 24%, transparent 25%), repeating-radial-gradient(circle, #1d1b21 0 1.2px, #0e0d10 1.2px 2.6px); animation: spin 5s linear infinite; }
.wt-drag { position: absolute; left: 8%; bottom: 10%; transition: opacity 0.2s ease, left 0.55s var(--ease), bottom 0.55s var(--ease), transform 0.55s var(--ease); }
.wt-drag.in { left: 38%; bottom: 44%; transform: rotate(-4deg) scale(1.05); }
.wt-cursor { position: absolute; left: 0; top: 0; z-index: 5; width: 26px; height: 26px; margin: -3px 0 0 -3px; transition: transform 0.5s cubic-bezier(0.45, 0, 0.2, 1); filter: drop-shadow(0 3px 6px rgba(0,0,0,0.5)); pointer-events: none; }
.wt-ring { position: absolute; left: 1px; top: 1px; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 2px solid #1ed760; opacity: 0; }
.wt-ring.go { animation: ring 0.45s ease-out; }
@keyframes ring { 0% { opacity: 1; transform: scale(0.3); } 100% { opacity: 0; transform: scale(1.6); } }
.wt-bar { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.wt-play { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; font-size: 11px; flex: 0 0 auto; }
.wt-play:hover { background: rgba(246,240,232,0.06); }
.wt-chapters { flex: 0 0 38%; display: flex; gap: 4px; }
.wt-chapters button { flex: 1; height: 22px; padding: 0; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; }
.wt-chapters button i { display: block; width: 100%; height: 4px; border-radius: 2px; background: rgba(246,240,232,0.14); overflow: hidden; position: relative; }
.wt-chapters button.done i { background: rgba(246,240,232,0.55); }
.wt-chapters button.on i::after { content: ''; position: absolute; inset: 0; background: #1ed760; transform-origin: left; animation: chap var(--dur, 3s) linear forwards; }
.wt.paused .wt-chapters button.on i::after { animation-play-state: paused; }
@keyframes chap { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.wt-cap { flex: 1; min-width: 0; font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) {
  .wt-view { aspect-ratio: 1 / 1; }
  .wt-scroll { font-size: 10px; padding: 5% 6% 30%; }
  .wt-ask { width: 70%; }
  .wt-zone { height: 62%; }
  .wt-chapters { flex-basis: 44%; }
}

/* ——— the guide: five steps ——— */
.g5 { padding: 26px 0 10px; }
.g5-h { font-family: var(--font-story); font-weight: 420; font-size: clamp(34px, 6vw, 58px); line-height: 0.98; letter-spacing: -0.03em; font-optical-sizing: none; font-variation-settings: "opsz" 48; }
.g5-h em { font-style: italic; }
.g5-grid { display: grid; gap: 28px; margin-top: 26px; }
.g5-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: g5; }
.g5-steps > li { position: relative; display: grid; grid-template-columns: 38px 1fr; gap: 14px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color 0.25s ease, background 0.25s ease; cursor: pointer; }
.g5-steps > li.on { border-color: rgba(30, 215, 96, 0.55); background: linear-gradient(90deg, rgba(30, 215, 96, 0.07), transparent 70%), var(--surface); }
.g5-n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: 13px; font-weight: 500; background: rgba(246,240,232,0.08); color: var(--ink); }
.g5-steps > li.on .g5-n { background: #1ed760; color: #06150b; }
.g5-t { font-size: 17px; font-weight: 600; line-height: 1.35; padding-top: 5px; }
.g5-t q { quotes: '“' '”'; }
.g5-sub { display: block; margin-top: 3px; font-size: 14px; font-weight: 400; color: var(--ink-3); }
.g5-body { grid-column: 2; }
.g5-body:empty { display: none; }
.g5-body .btn { margin-top: 10px; }
.g5 .remind { margin-top: 10px; padding: 0; border: 0; background: none; }
.g5 .remind-row { margin-top: 0; }
.g5 #zone { margin-top: 12px; padding: 22px 16px; min-height: 0; }
.g5 #zone .vinyl { width: 54px; height: 54px; margin-bottom: 8px; }
.g5 #zone .big { font-size: clamp(22px, 4vw, 28px); }
.g5 #zone .hint { font-size: 13.5px; margin-top: 6px; }
.g5-more { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
@media (min-width: 960px) {
  .g5-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; gap: 36px; }
  .g5-video { position: sticky; top: 18px; }
}

/* ——— the poster sheet ——— */
.ps-wrap { margin: 22px 0 6px; display: flex; justify-content: center; padding: 26px 0; border-radius: 18px;
  background: radial-gradient(90% 80% at 50% 30%, #2a2530, #16141a); }
.ps-frame { width: min(300px, 70%); padding: 10px; background: #0b0a0d; border-radius: 2px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.08); transition: background 0.3s ease; }
.ps-frame.paper { background: #f7f3ec; }
.ps-frame canvas { display: block; width: 100%; height: auto; }
.ps-row { display: flex; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.ps-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); width: 44px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(246,240,232,0.06); border: 1px solid var(--line); flex-wrap: wrap; }
.seg button { border: 0; background: transparent; color: var(--ink-2); padding: 8px 14px; border-radius: 999px; font-size: 13.5px; cursor: pointer; }
.seg button span { color: var(--ink-3); margin-left: 4px; }
.seg button.on { background: var(--ink); color: #120f0d; font-weight: 600; }
.seg button.on span { color: rgba(18,15,13,0.6); }
#ps-buy, #pd-buy { margin-top: 20px; }
.ps-note { margin-top: 10px; }
.ps-status { margin-top: 8px; color: var(--ink-2); min-height: 1.4em; }

/* ——— every day (portal) ——— */
.days-box { padding: 16px 14px 12px; overflow-x: auto; }
.days-box canvas { display: block; }
.days-box.scrolls::after { content: 'Scroll for every year →'; display: block; margin-top: 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--ink-3); text-transform: uppercase; position: sticky; left: 0; }

/* ——— the print shop ——— */
.shop-hero { padding: 40px 0 10px; max-width: 46rem; }
.shop-hero h1 { font-family: var(--font-story); font-weight: 420; font-size: clamp(48px, 10vw, 110px); line-height: 0.92; letter-spacing: -0.035em; font-optical-sizing: none; font-variation-settings: "opsz" 48; }
.shop-hero h1 em { font-style: italic; }
.shop-hero .sub { margin-top: 20px; font-size: 18px; color: var(--ink-2); line-height: 1.55; max-width: 36rem; }
.shop-bar { margin-top: 28px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.shop-series { margin-top: 20px; }
.shop-sec { margin: 64px 0 28px; max-width: 40rem; }
.shop-sec h2 { margin-top: 8px; font-family: var(--font-story); font-weight: 420; font-size: clamp(32px, 5vw, 54px); line-height: 0.98; letter-spacing: -0.03em; font-optical-sizing: none; font-variation-settings: "opsz" 48; }
.shop-sec h2 em { font-style: italic; }
.shop-sec p:last-child { margin-top: 12px; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.shop-cards, .shop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 16px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches button { display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px 5px 5px; border-radius: 999px; border: 1px solid var(--line); background: rgba(246,240,232,0.04); color: var(--ink-2); font-size: 13px; cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease; }
.swatches button i { width: 22px; height: 22px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2); flex: none; }
.swatches button:hover { border-color: var(--line-strong); }
.swatches button.on { border-color: var(--ink); color: var(--ink); background: rgba(246,240,232,0.1); }
.ps-input { flex: 1; min-width: 0; background: rgba(246,240,232,0.05); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; color: var(--ink); font: inherit; font-size: 15px; }
.ps-input:focus { outline: none; border-color: var(--ink-3); background: rgba(246,240,232,0.08); }
.ps-input::placeholder { color: var(--ink-3); }
#modal.studio { max-width: 1140px; overflow: visible; }
@media (max-width: 939px) {
  /* the poster stays in view while you play with it */
  .studio-stage { position: sticky; top: 0; z-index: 4; margin: -28px -22px 0; padding: 12px 22px 0; background: var(--surface); border-radius: 26px 26px 0 0; }
  .studio .ps-wrap { margin: 0; padding: 14px 0; }
  .studio .studio-stage .ps-frame { width: calc(36vh * 0.75 + 20px); max-width: 78%; }
}
@media (min-width: 760px) and (max-width: 939px) {
  .studio-stage { margin: -36px -34px 0; padding: 14px 34px 0; }
}
.studio-stage .x { top: 22px !important; right: 22px !important; z-index: 5; }
/* the sheet's own top padding would otherwise leave a gap above the pinned poster */
@media (max-width: 939px) { .studio-stage { top: -40px; } }
@media (max-width: 759px) { .studio-stage { top: -60px; } }
.studio-grid { display: grid; gap: 8px; }
.studio .ps-frame { width: min(440px, 84%); }
.studio .ps-row .ps-label { width: 52px; flex: none; }
.studio .ps-row .swatches, .studio .ps-row .seg { flex: 1; min-width: 0; }
@media (max-width: 599px) {
  .studio .ps-row { gap: 8px; margin-top: 18px; }
  .studio .ps-row .ps-label { width: 100%; }
  .studio .ps-row .seg { flex: 0 1 auto; }
}
@media (min-width: 940px) {
  .studio-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 36px; align-items: start; }
  .studio-stage { position: sticky; top: 0; }
  .studio .ps-wrap { margin: 0; padding: 40px 0; min-height: 640px; align-items: center; }
  .studio-controls { padding-top: 6px; }
}
.poster-card { cursor: pointer; outline: none; }
.pc-frame {
  position: relative; padding: 8px; border-radius: 3px; background: #0b0a0d;
  box-shadow: 0 26px 50px -22px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.07);
  transition: transform 0.45s var(--ease), box-shadow 0.45s ease;
}
.pc-frame.paper { background: #f7f3ec; }
.pc-frame canvas { display: block; width: 100%; height: auto; opacity: 0; transition: opacity 0.5s ease; background: rgba(246,240,232,0.03); }
.pc-frame.ready canvas { opacity: 1; }
.poster-card:hover .pc-frame, .poster-card:focus-visible .pc-frame { transform: translateY(-6px) rotate(-0.4deg); box-shadow: 0 40px 70px -24px rgba(0,0,0,0.95), 0 0 0 1px rgba(255,255,255,0.12); }
.pc-lock { position: absolute; inset: 8px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 18px; background: rgba(20,19,24,0.92); color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.poster-card.locked { cursor: default; }
.pc-copy { margin-top: 16px; }
.pc-n { font-family: var(--font-mono); font-size: 11px; color: var(--hot-2); letter-spacing: 0.1em; }
.pc-copy h3 { margin-top: 4px; font-family: var(--font-story); font-weight: 420; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.02em; line-height: 1.05; }
.pc-copy p { margin-top: 6px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.shop-promise { margin-top: 80px; display: grid; grid-template-columns: 1fr; gap: 14px; }
.shop-promise div { padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.shop-promise b { display: block; font-family: var(--font-story); font-weight: 400; font-size: 23px; margin-bottom: 6px; }
.shop-promise span { color: var(--ink-2); font-size: 14.5px; }
.shop .empty { padding: 40px 0 10px; }
@media (min-width: 760px) {
  .shop-cards, .shop-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
  .shop-promise { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .shop-cards, .shop-grid { grid-template-columns: repeat(4, 1fr); }
}
#pd-year { max-width: 100%; }

/* ——— home: one button, then the posters ——— */
.lp .wrap { position: relative; }
.lp-hero { display: grid; gap: 40px; align-items: center; padding: 28px 0 20px; min-height: min(78vh, 760px); }
.lp-copy h1 { font-family: var(--font-story); font-weight: 420; font-size: clamp(42px, 4.9vw, 70px); line-height: 0.98; letter-spacing: -0.035em; font-optical-sizing: none; font-variation-settings: "opsz" 48; max-width: 12.5em; }
.lp-copy h1 em { font-style: italic; color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; padding-right: 0.06em; }
.lp-sub { margin-top: 22px; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.5; color: var(--ink-2); max-width: 30rem; }
.lp-go { margin-top: 30px; font-size: 17px; padding: 17px 28px; }
.lp-fine { display: block; margin-top: 14px; font-size: 13.5px; color: var(--ink-3); }
.lp-stack { position: relative; height: clamp(360px, 46vw, 600px); }
.lp-frame { margin: 0; padding: 3.2%; background: #f4efe6; border-radius: 2px; box-shadow: 0 50px 90px -30px rgba(0,0,0,0.95), 0 18px 30px -18px rgba(0,0,0,0.8), inset 0 0 0 1px rgba(0,0,0,0.08); }
.lp-frame canvas { display: block; width: 100%; height: auto; background: #18161b; opacity: 0; transition: opacity 0.7s ease; }
.lp-frame canvas.on { opacity: 1; }
.lp-stack .lp-frame { position: absolute; width: 46%; transition: transform 0.6s var(--ease); }
.lp-stack .f1 { left: 2%; top: 12%; transform: rotate(-7deg); background: #121014; }
.lp-stack .f2 { right: 1%; top: 6%; transform: rotate(6deg); background: #121014; }
.lp-stack .f3 { left: 27%; top: 0; width: 50%; z-index: 2; }
.lp-stack:hover .f1 { transform: rotate(-10deg) translateX(-14px); }
.lp-stack:hover .f2 { transform: rotate(9deg) translateX(14px); }
.lp-steps { display: grid; gap: 12px; margin-top: 40px; }
.lp-step { display: grid; grid-template-columns: 44px 1fr; gap: 2px 14px; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.lp-n { grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #1a0a06; font-family: var(--font-mono); font-weight: 600; font-size: 14px; }
.lp-step b { font-family: var(--font-story); font-weight: 420; font-size: 24px; letter-spacing: -0.02em; line-height: 1.15; }
.lp-step p { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.lp-shop { margin-top: 110px; }
.lp-shop-head { max-width: 38rem; }
.lp-shop-head h2 { margin-top: 8px; font-family: var(--font-story); font-weight: 420; font-size: clamp(40px, 6vw, 72px); line-height: 0.98; letter-spacing: -0.035em; font-optical-sizing: none; font-variation-settings: "opsz" 48; }
.lp-shop-head h2 em { font-style: italic; }
.lp-shop-head p:last-child { margin-top: 14px; color: var(--ink-2); font-size: 17px; line-height: 1.55; }
.lp-wall { margin-top: 40px; padding: 56px 4%; border-radius: 24px; display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 4%;
  background: radial-gradient(70% 90% at 50% 0%, rgba(255, 196, 140, 0.13), transparent 70%), linear-gradient(#1b1817, #121012); border: 1px solid var(--line);
  overflow-x: auto; scroll-snap-type: x mandatory; }
.lp-wall figure { margin: 0; scroll-snap-align: center; }
.lp-wall figcaption { margin-top: 14px; text-align: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.lp-wall .lp-frame { transition: transform 0.4s var(--ease); }
.lp-wall figure:hover .lp-frame { transform: translateY(-6px); }
.lp-shop-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.lp-shop-cta .lp-fine { margin-top: 0; }
@media (min-width: 900px) {
  .lp-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; }
  .lp-steps { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .lp-step { grid-template-columns: 1fr; padding: 24px; }
  .lp-n { grid-row: auto; margin-bottom: 14px; }
}
@media (max-width: 899px) {
  .lp-hero { min-height: 0; }
  .lp-stack { height: 86vw; max-height: 560px; margin-top: 4px; }
  .lp-wall { grid-template-columns: repeat(4, 62%); padding: 36px 6%; gap: 5%; }
}

/* ——— the gift shop ——— */
.gift-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 16px; }
.gift-card { cursor: pointer; outline: none; }
.gc-frame { position: relative; border-radius: 18px; overflow: hidden; background: #1a1716; box-shadow: 0 30px 60px -28px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.06); transition: transform 0.45s var(--ease); }
.gc-frame canvas { display: block; width: 100%; height: auto; opacity: 0; transition: opacity 0.6s ease; }
.gc-frame.ready canvas { opacity: 1; }
.gift-card:hover .gc-frame, .gift-card:focus-visible .gc-frame { transform: translateY(-6px); }
.gift-card.locked { cursor: default; }
.gift-card .pc-lock { inset: 0; border-radius: 18px; }
.gc-price { display: block; margin-top: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--hot-2); }
.gift-wrap { padding: 0; overflow: hidden; background: #1a1716; }
.gift-wrap canvas { display: block; width: 100%; height: auto; transition: opacity 0.25s ease; }
.gift-wrap.busy canvas { opacity: 0.7; }
.studio .ps-row .ps-input + .ps-input { flex: 0 0 120px; }
.gd-city { position: relative; flex: 1; min-width: 0; }
.gd-city .ps-input { width: 100%; }
.gd-sugg { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; display: flex; flex-direction: column; background: var(--surface); border-radius: 12px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.gd-sugg button { text-align: left; border: 0; background: transparent; color: var(--ink); padding: 10px 14px; font: inherit; font-size: 14.5px; cursor: pointer; border-top: 1px solid var(--line); }
.gd-sugg button:hover { background: rgba(246,240,232,0.06); }
.gd-sugg button span { color: var(--ink-3); font-family: var(--font-mono); font-size: 11px; margin-left: 6px; }
.gd-partner { flex: 1; min-width: 0; padding: 14px; border-radius: 12px; border: 1px dashed var(--line-strong); cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.gd-partner.over { border-color: var(--hot-2); background: rgba(255,122,77,0.06); }
.gd-partner b { font-weight: 600; font-size: 14.5px; }
.gd-partner span { color: var(--ink-3); font-size: 12.5px; }
select.ps-input { appearance: none; }
.gc-section { margin-top: 110px; display: grid; gap: 34px; align-items: center; padding: 34px 22px; border-radius: 28px; background: radial-gradient(80% 90% at 85% 10%, rgba(255,106,61,0.12), transparent 60%), var(--surface); border: 1px solid var(--line); }
.gc-copy h2 { margin-top: 8px; font-family: var(--font-story); font-weight: 420; font-size: clamp(36px, 5vw, 60px); line-height: 0.98; letter-spacing: -0.03em; font-optical-sizing: none; font-variation-settings: "opsz" 48; }
.gc-copy h2 em { font-style: italic; }
.gc-copy > p { margin-top: 14px; color: var(--ink-2); font-size: 16px; line-height: 1.55; max-width: 34rem; }
.gc-form { margin-top: 10px; }
.gc-form .ps-label { width: 60px; flex: none; }
.gc-form .btn-block { margin-top: 22px; }
.gc-preview canvas { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.9); transform: rotate(-2deg); }
.tape-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 8px; }
.tape-list li { display: grid; grid-template-columns: 32px 1fr; align-items: center; }
.tape-list .tn { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.tape-list a { display: block; padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.tape-list a:hover { border-color: var(--line-strong); }
.tape-list a b { display: block; font-weight: 600; }
.tape-list a span { color: var(--ink-3); font-size: 14px; }
@media (min-width: 760px) {
  .gift-cards { grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
}
@media (min-width: 1100px) {
  .gift-cards { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 940px) {
  .gc-section { grid-template-columns: 1fr 1fr; padding: 54px; gap: 56px; }
}
.studio .ps-wrap.gift-wrap { min-height: 0; padding: 0; margin: 0; }

.gd-codenote { margin: 6px 0 0 66px; min-height: 0; }
.gd-codenote:empty { display: none; }
@media (max-width: 599px) { .gd-codenote { margin-left: 0; } }
.studio .ps-row .ps-input.gd-time, .studio .ps-row .ps-input + .ps-input.gd-time { flex: 0 0 150px; min-width: 150px; }

/* ---------- the lineup ---------- */
.fest { display: grid; gap: 28px; align-items: start; }
.fest-poster { position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--line); max-width: 760px; width: 100%; margin: 0 auto; }
.fest-poster canvas { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; background: #0d0c10; }
.fest-side { display: flex; flex-direction: column; gap: 12px; }
.fest-heads { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fest-heads button { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: rgba(246, 240, 232, 0.04); border: 1px solid var(--line); border-radius: 14px; padding: 10px; color: var(--ink); cursor: pointer; transition: background 0.2s, transform 0.2s var(--ease); }
.fest-heads button:hover { background: rgba(246, 240, 232, 0.08); transform: translateY(-2px); }
.fh-art { position: relative; flex: 0 0 64px; height: 64px; border-radius: 8px; overflow: hidden; }
.fh-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fh-txt { display: flex; flex-direction: column; min-width: 0; }
.fh-day { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.fh-name { font-family: Anton, Impact, sans-serif; font-size: 26px; line-height: 1.1; text-transform: uppercase; letter-spacing: 0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fh-hrs { font-size: 13px; color: var(--ink-2); }
.fest-actions { margin-top: 18px; }
@media (min-width: 960px) {
  .fest { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 44px; }
  .fest-side { position: sticky; top: 96px; }
}
