/* Vintoera — liner notes for a record.
   Layout: full-bleed bands that change ground (night, paper, night) so the page has rhythm; the hero is the product
   itself (a lyric screen playing), and the feature story pins a phone while the copy scrolls past it. */
:root {
  --ink: #0d0a10;          /* record black, plum-biased */
  --ink-2: #16111b;
  --fg: #f4eff7;
  --muted: #a99db4;
  --line: rgba(244, 239, 247, 0.12);
  --paper: #efe6d6;        /* sleeve paper */
  --paper-ink: #1b1520;
  --paper-muted: #6f6475;
  --coral: #ff5d4b;        /* needle */
  --lilac: #c9bcfb;
  --display: "Bricolage Grotesque", "Outfit", system-ui, sans-serif;
  --body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.22,.61,.36,1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { overflow-x: clip; }
body { margin: 0; background: var(--ink); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; line-height: 0.95; margin: 0; text-wrap: balance; }
p { margin: 0; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 30; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(13, 10, 16, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 21px/1 var(--display); letter-spacing: -0.03em; }
.logo img { width: 30px; height: 30px; border-radius: 8px; }
.nav nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav nav a:hover, .nav nav a[aria-current] { color: var(--fg); }
.nav .get { color: var(--ink) !important; background: var(--fg); padding: 9px 16px; border-radius: 999px; font-weight: 700; }
@media (max-width: 720px) { .nav nav .hide-sm { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 999px; font: 700 16px/1 var(--body); text-decoration: none; border: 0; cursor: pointer; background: var(--fg); color: var(--ink); transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; }
.btn svg { width: 20px; height: 20px; }
.btn.coral { background: var(--coral); color: #fff; }
.textlink { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.textlink:hover { color: var(--fg); border-color: var(--fg); }
.small { font: 700 12px/1.5 var(--mono); letter-spacing: 0.06em; color: var(--muted); }

/* ── Hero: the headline sings itself, next to a lyric screen that's actually playing ── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-block: 110px 60px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; width: 100%; }
.sing { font-size: clamp(54px, 8.4vw, 118px); }
.sing .w { display: inline-block; color: transparent; background: linear-gradient(90deg, var(--fg) 0 calc(var(--f, 0) * 100%), rgba(244,239,247,0.22) calc(var(--f, 0) * 100%) 100%); -webkit-background-clip: text; background-clip: text; transform: translateY(calc((1 - var(--f, 0)) * 3px)); }
.sing .w.c { background-image: linear-gradient(90deg, var(--coral) 0 calc(var(--f, 0) * 100%), rgba(255,93,75,0.25) calc(var(--f, 0) * 100%) 100%); }
.hero .sub { margin-top: 28px; color: var(--muted); font-size: 20px; max-width: 30ch; }
.hero .act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 36px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 48px; } .hero { min-height: auto; padding-top: 96px; } }

/* Phone frame */
.device { position: relative; width: min(100%, 330px); aspect-ratio: 9 / 19.5; border-radius: 44px; padding: 10px; background: #060407; box-shadow: 0 0 0 1px rgba(255,255,255,0.09), 0 50px 120px rgba(0,0,0,0.65); justify-self: center; }
.device .screen { position: relative; width: 100%; height: 100%; border-radius: 35px; overflow: hidden; background: #000; }
.device .screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* The lyric screen, built in HTML so it really plays */
.ly { position: absolute; inset: 0; color: #fff; font-family: var(--body); overflow: hidden; }
.ly .bg { position: absolute; inset: -20%; background: radial-gradient(60% 45% at 30% 25%, #b5473f, transparent 70%), radial-gradient(55% 45% at 75% 70%, #5a2a6b, transparent 70%), #2a1218; filter: blur(30px); animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(6%, -4%) scale(1.1); } }
.ly .top { position: relative; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 34px 16px 10px; }
.ly .art { width: 42px; height: 42px; border-radius: 8px; background: linear-gradient(135deg, #f2c9a0, #b5473f 60%, #3a1520); box-shadow: 0 4px 14px rgba(0,0,0,0.35); }
.ly .tt b { display: block; font-size: 14px; font-weight: 700; }
.ly .tt span { font-size: 12px; opacity: 0.7; }
.ly .view { position: absolute; z-index: 2; left: 0; right: 0; top: 92px; bottom: 64px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 82%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 82%, transparent 100%); }
.ly .lines { position: absolute; left: 0; right: 0; top: 0; padding: 0 18px; transition: transform .7s var(--ease); }
.ly .line { font: 800 24px/1.18 var(--body); letter-spacing: -0.02em; margin: 0 0 18px; opacity: 0.32; filter: blur(1.4px); transform-origin: left center; transition: opacity .5s, filter .5s, transform .6s var(--ease); }
.ly .line.on { opacity: 1; filter: none; transform: scale(1.04); }
.ly .line.done { opacity: 0.5; filter: blur(0.6px); }
.ly .word { display: inline-block; color: transparent; background: linear-gradient(90deg, #fff 0 calc(var(--f, 0) * 100%), rgba(255,255,255,0.38) calc(var(--f, 0) * 100%) 100%); -webkit-background-clip: text; background-clip: text; transform: translateY(calc(var(--f, 0) * -2px)); text-shadow: 0 0 calc(var(--g, 0) * 18px) rgba(255,255,255,0.35); }
.ly .line .tr { display: block; font: 500 13px/1.35 var(--body); opacity: 0.75; margin-top: 6px; letter-spacing: 0; }
.ly .bar { position: absolute; z-index: 3; left: 18px; right: 18px; bottom: 28px; }
.ly .bar i { display: block; height: 3px; border-radius: 3px; background: rgba(255,255,255,0.25); overflow: hidden; }
.ly .bar i b { display: block; height: 100%; width: var(--p, 0%); background: #fff; }
.ly .bar span { display: flex; justify-content: space-between; font: 600 10px/1 var(--body); opacity: 0.7; margin-top: 7px; }
.ly::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 18%, transparent 70%, rgba(0,0,0,0.55) 100%); }

/* A record that turns as you scroll */
.vinyl { position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, var(--coral) 0 14%, #0a070c 14.4% 16%, transparent 16.2%), repeating-radial-gradient(circle, #2a2130 0 1.1px, #0c090e 1.6px 3.6px);
  box-shadow: 0 30px 90px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.08), inset 0 0 60px rgba(0,0,0,0.6); }
.vinyl::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 20deg, transparent 0 7%, rgba(255,255,255,0.2) 12%, transparent 19% 56%, rgba(255,255,255,0.13) 62%, transparent 69%); transform: rotate(calc(var(--spin, 0deg) * -1)); }
.vinyl::after { content: ""; position: absolute; left: 50%; top: 50%; width: 3%; aspect-ratio: 1; border-radius: 50%; background: var(--ink); transform: translate(-50%, -50%); }
.hero .vinyl { width: min(68vw, 760px); aspect-ratio: 1; right: -24vw; top: 50%; translate: 0 -50%; transform: rotate(var(--spin, 0deg)); opacity: 0.55; z-index: -1; }
@media (max-width: 900px) { .hero .vinyl { width: 120vw; right: -60vw; top: 72%; } }

/* ── Story: phone pinned, copy scrolls past and swaps the screen ── */
.story { position: relative; padding-block: 120px 40px; overflow-x: clip; }
.story .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
.story .pin { position: sticky; top: 90px; height: calc(100svh - 120px); display: grid; place-items: center; }
.story .frame { position: relative; width: min(100%, 520px); aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,0.5); }
.story .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .7s var(--ease), transform 1.1s var(--ease); }
.story .frame img.on { opacity: 1; transform: none; }
.chapter .inline { display: none; }
.chapter { min-height: 82svh; display: flex; flex-direction: column; justify-content: center; max-width: 30rem; }
.chapter .no { font: 700 13px/1 var(--mono); color: var(--coral); letter-spacing: 0.1em; }
.chapter h2 { font-size: clamp(38px, 4.6vw, 62px); margin-top: 16px; }
.chapter p { color: var(--muted); font-size: 19px; margin-top: 20px; }
.chapter p + p { margin-top: 12px; }
.chapter .facts { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.chapter .facts span { font: 600 14px/1 var(--body); padding: 9px 13px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg); }
.chapter > * { opacity: 0.25; transform: translateY(24px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.chapter.in > * { opacity: 1; transform: none; }
.chapter.in > :nth-child(2) { transition-delay: .06s; } .chapter.in > :nth-child(3) { transition-delay: .12s; } .chapter.in > :nth-child(4) { transition-delay: .18s; }
@media (max-width: 900px) {
  .story { padding-block: 80px 20px; }
  .story .wrap { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .story .pin { display: none; }
  .chapter { min-height: 0; padding-block: 0 72px; justify-content: flex-start; max-width: none; }
  .chapter .inline { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; margin-bottom: 28px; box-shadow: 0 30px 70px rgba(0,0,0,0.45); }
  .chapter h2 { font-size: clamp(30px, 8vw, 40px); }
  .chapter p { font-size: 17px; }
}

/* ── Liner notes: paper band, dense and specific ── */
.liner { background: var(--paper); color: var(--paper-ink); padding-block: 110px; position: relative; overflow: hidden; }
.liner .wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; }
.liner h2 { font-size: clamp(40px, 5vw, 70px); }
.liner .intro p { margin-top: 18px; color: var(--paper-muted); font-size: 18px; max-width: 28ch; }
.tracks { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.tracks li { break-inside: avoid; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; padding: 16px 0; border-top: 1.5px solid rgba(27,21,32,0.14); }
.tracks .n { grid-row: span 2; font: 700 13px/1.5 var(--mono); color: var(--coral); padding-top: 3px; }
.tracks b { font-weight: 700; font-size: 17px; }
.tracks span:not(.n) { grid-column: 2; color: var(--paper-muted); font-size: 15px; line-height: 1.45; }
.liner .stamp { position: absolute; right: -60px; bottom: -60px; width: 300px; aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(27,21,32,0.18); display: grid; place-items: center; font: 700 13px/1.3 var(--mono); color: rgba(27,21,32,0.35); text-align: center; letter-spacing: 0.12em; transform: rotate(var(--spin, 0deg)); }
@media (max-width: 900px) { .liner .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; } .tracks { columns: 1; } .liner .stamp { display: none; } }

/* ── Questions ── */
.qa { padding-block: 110px; }
.qa .wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; }
.qa h2 { font-size: clamp(40px, 5vw, 70px); }
.faq details { border-top: 1px solid var(--line); padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: 0 0 14px; height: 14px; margin-top: 6px; background: linear-gradient(var(--coral), var(--coral)) center / 100% 2px no-repeat, linear-gradient(var(--coral), var(--coral)) center / 2px 100% no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin-top: 12px; max-width: 58ch; }
@media (max-width: 900px) { .qa .wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* ── Last call ── */
.last { position: relative; overflow: hidden; padding-block: 140px 120px; border-top: 1px solid var(--line); }
.last h2 { font-size: clamp(56px, 11vw, 168px); line-height: 0.88; }
.last h2 span { color: var(--coral); }
.last .act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 44px; }
.last .vinyl { width: 640px; aspect-ratio: 1; right: -200px; bottom: -320px; transform: rotate(var(--spin, 0deg)); opacity: 0.7; }

/* Reveal on scroll (only once JS is running, so the page is complete without it) */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* ── Download page ── */
.dl { padding-block: 120px 60px; }
.dl-top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 56px; align-items: end; }
@media (max-width: 900px) { .dl-top { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
.dl h1 { font-size: clamp(48px, 7.5vw, 104px); }
.version { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 26px 0 30px; }
.version strong { font: 800 30px/1 var(--display); letter-spacing: -0.02em; }
.big { height: 62px; font-size: 18px; padding: 0 34px; }
.qr { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 18px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: 22px; }
.qr .code { width: 124px; height: 124px; background: var(--paper); border-radius: 14px; padding: 9px; }
.qr .code svg { width: 100%; height: 100%; display: block; }
.qr b { display: block; font-size: 17px; }
.qr p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.dl-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; margin-top: 90px; }
@media (max-width: 900px) { .dl-body { grid-template-columns: minmax(0, 1fr); gap: 56px; margin-top: 64px; } }
.dl h2 { font-size: 30px; letter-spacing: -0.02em; margin-bottom: 22px; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 700 14px/1.6 var(--mono); color: var(--coral); }
.steps b { display: block; font-size: 18px; }
.steps span { color: var(--muted); font-size: 16px; }
.notes { color: var(--muted); }
.notes h2, .notes h3 { font: 700 18px/1.3 var(--body); letter-spacing: 0; color: var(--fg); margin: 22px 0 8px; }
.notes h2:first-child, .notes h3:first-child { margin-top: 0; }
.notes ul, .notes ol { padding-left: 20px; margin: 8px 0; }
.notes li { margin: 5px 0; }
.notes strong { color: var(--fg); }
.notes p { margin: 8px 0; }
.older { list-style: none; padding: 0; margin: 0; }
.older li { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; padding: 16px 0; border-top: 1px solid var(--line); }
.older b { font-weight: 600; }
.older a { color: var(--fg); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.skeleton { display: inline-block; min-width: 5ch; height: 0.9em; border-radius: 6px; background: linear-gradient(90deg, #1d1623, #2b2232, #1d1623); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; vertical-align: middle; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Footer */
footer { border-top: 1px solid var(--line); padding-block: 36px 52px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--fg); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv, .chapter > * { opacity: 1 !important; transform: none !important; }
}

/* ── Era: the 3D year-in-review, playable ── */
.era { position: relative; padding-block: 120px; overflow: hidden; background: radial-gradient(60% 50% at 80% 50%, rgba(124,58,237,0.22), transparent 70%), var(--ink-2); border-top: 1px solid var(--line); }
.era .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 64px; align-items: center; }
.era h2 { font-size: clamp(44px, 6vw, 88px); }
.era h2 span { color: var(--lilac); }
.era-copy > p { color: var(--muted); font-size: 19px; margin-top: 24px; max-width: 38ch; }
.era-list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 0; max-width: 30rem; }
.era-list li { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: baseline; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.era-list b { font: 800 44px/1 var(--display); letter-spacing: -0.03em; color: var(--fg); }
.era-list span { color: var(--muted); }
.era-demo { display: grid; justify-items: center; gap: 16px; }
.big-device { width: min(100%, 340px); }
.big-device iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; background: #000; }
.big-device iframe.live { pointer-events: auto; }
.try { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); border: 0; border-radius: 999px; padding: 12px 18px; background: rgba(255,255,255,0.92); color: var(--ink); font: 700 14px/1 var(--body); cursor: pointer; white-space: nowrap; box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
@media (max-width: 900px) { .era { padding-block: 80px; } .era .wrap { grid-template-columns: minmax(0, 1fr); gap: 44px; } }

/* ── Download page, short version ── */
.dl2 { position: relative; overflow: hidden; min-height: calc(100svh - 120px); padding-block: 130px 90px; }
.dl2 .vinyl { width: min(80vw, 720px); aspect-ratio: 1; right: -18vw; top: 50%; translate: 0 -50%; transform: rotate(var(--spin, 0deg)); opacity: 0.6; z-index: -1; }
.dl2 h1 { font-size: clamp(64px, 12vw, 176px); line-height: 0.86; }
.dl2 .ver { font: 700 14px/1.5 var(--mono); color: var(--muted); letter-spacing: 0.06em; margin-top: 26px; }
.get-row { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; margin-top: 34px; }
.qr2 { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.qr2 .code { width: 76px; height: 76px; background: var(--paper); border-radius: 12px; padding: 6px; }
.qr2 .code svg { width: 100%; height: 100%; display: block; }
@media (hover: none) and (max-width: 700px) { .qr2 { display: none; } }
.mini { list-style: none; padding: 0; margin: 56px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.mini li { display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 12px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; background: rgba(13,10,16,0.6); }
.mini b { font: 700 12px/1 var(--mono); color: var(--ink); background: var(--fg); border-radius: 999px; padding: 6px 8px; }
.whatsnew { margin-top: 44px; max-width: 640px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; }
.whatsnew summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; font-weight: 600; font-size: 18px; }
.whatsnew summary::-webkit-details-marker { display: none; }
.whatsnew summary::after { content: ""; flex: 0 0 14px; height: 14px; margin-top: 5px; background: linear-gradient(var(--coral), var(--coral)) center / 100% 2px no-repeat, linear-gradient(var(--coral), var(--coral)) center / 2px 100% no-repeat; transition: transform .3s var(--ease); }
.whatsnew[open] summary::after { transform: rotate(45deg); }
.whatsnew .notes { margin-top: 14px; }
.older2 { margin-top: 22px; color: var(--muted); font-size: 14px; }
.older2 a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line); }
