/* ==========================================================
   Bytesong — studio site
   Tokens
   ========================================================== */
:root {
  --ink: #0E0D14;
  --ink-2: #15131D;
  --ink-3: #1D1A27;
  --cream: #F4EFE6;
  --cream-2: #EAE3D5;
  --text: #F4EFE6;
  --muted: rgba(244, 239, 230, .62);
  --faint: rgba(244, 239, 230, .38);
  --line: rgba(244, 239, 230, .12);
  --accent: #FF5B35;
  --accent-2: #FFB13D;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ol, dl, dd { margin: 0; }
ol { padding: 0; list-style: none; }

em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }

::selection { background: var(--accent); color: var(--ink); }

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

/* Film grain over everything */
.grain {
  position: fixed; inset: 0;
  z-index: 100; pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { background-position: 0 0; }
  20% { background-position: -37px 21px; }
  40% { background-position: 53px -61px; }
  60% { background-position: -71px -13px; }
  80% { background-position: 29px 47px; }
  100% { background-position: 0 0; }
}

/* ==========================================================
   Nav
   ========================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  transition: padding .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding-top: 12px; padding-bottom: 12px;
  background: rgba(14, 13, 20, .72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
}

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 34px; height: 34px; color: var(--cream); }
.logo-bg { fill: var(--cream); }
.logo-bars rect { fill: var(--ink); transform-box: fill-box; transform-origin: center; }
.logo:hover .logo-bars rect { animation: bar 0.9s var(--ease) infinite alternate; }
.logo:hover .logo-bars rect:nth-child(2) { animation-delay: -.3s; }
.logo:hover .logo-bars rect:nth-child(3) { animation-delay: -.6s; }
.logo:hover .logo-bars rect:nth-child(4) { animation-delay: -.15s; }
.logo-word { font-weight: 600; font-size: 20px; letter-spacing: -.035em; }

@keyframes bar { from { transform: scaleY(1); } to { transform: scaleY(.45); } }

.nav-links {
  display: flex; gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(21, 19, 29, .5);
}
.nav-links a {
  padding: 7px 16px; border-radius: 999px;
  font-size: 14.5px; color: var(--muted);
  transition: color .25s, background .25s;
}
.nav-links a:hover { color: var(--text); background: rgba(244, 239, 230, .07); }

.sound {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 13px;
  border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; color: var(--muted);
  transition: color .25s, border-color .25s, background .25s;
}
.sound:hover { color: var(--text); border-color: rgba(244, 239, 230, .3); }
.sound[aria-pressed="true"] { color: var(--ink); background: var(--cream); border-color: var(--cream); }
.sound.is-waiting { color: var(--text); background: transparent; border-color: var(--accent); animation: callout 2s var(--ease) infinite; }
.sound.is-waiting .eq i { animation: none; }
@keyframes callout { 0% { box-shadow: 0 0 0 0 rgba(255, 91, 53, .5); } 70%, 100% { box-shadow: 0 0 0 10px rgba(255, 91, 53, 0); } }

.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { width: 2.5px; height: 100%; background: currentColor; border-radius: 2px; transform: scaleY(.3); transform-origin: bottom; }
.sound[aria-pressed="true"] .eq i { animation: eq .8s ease-in-out infinite alternate; }
.sound[aria-pressed="true"] .eq i:nth-child(2) { animation-delay: -.2s; }
.sound[aria-pressed="true"] .eq i:nth-child(3) { animation-delay: -.5s; }
.sound[aria-pressed="true"] .eq i:nth-child(4) { animation-delay: -.35s; }
@keyframes eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }

/* ==========================================================
   Shared
   ========================================================== */
section { position: relative; }

.eyebrow, .kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 91, 53, .6);
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 91, 53, .55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(255, 91, 53, 0); } }

.section-head { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section-head h2, .contact-title {
  margin-top: 18px;
  font-size: clamp(48px, 8vw, 128px);
  font-weight: 500; line-height: .92; letter-spacing: -.05em;
}
.section-head h2 em, .contact-title em, .hero-title em {
  background: linear-gradient(95deg, var(--accent) 0%, var(--accent-2) 55%, var(--cream) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
.section-lead { margin-top: 24px; max-width: 520px; font-size: 19px; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px;
  font-weight: 500; font-size: 16px; letter-spacing: -.01em;
  transition: transform .35s var(--ease-spring), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--cream); color: var(--ink); }
.btn-primary:hover { background: #fff; }
.btn-primary span { transition: transform .35s var(--ease); }
.btn-primary:hover span { transform: translateX(4px); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: rgba(244, 239, 230, .4); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  padding: clamp(120px, 15vh, 160px) var(--gutter) 24px;
  display: flex; flex-direction: column; gap: clamp(40px, 6vh, 64px);
  max-width: var(--max); margin: 0 auto;
}
.hero-glow {
  position: absolute; z-index: -1;
  width: 70vw; height: 70vw; max-width: 980px; max-height: 980px;
  right: -18vw; top: -22vw;
  background: radial-gradient(closest-side, rgba(255, 91, 53, .28), rgba(255, 177, 61, .08) 55%, transparent 75%);
  filter: blur(20px);
  animation: drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift { to { transform: translate(-8vw, 6vw) scale(1.1); } }

.hero-title {
  margin-top: 22px;
  font-size: clamp(56px, 9.4vw, 150px);
  font-weight: 500; line-height: .9; letter-spacing: -.055em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.hero-title .line:nth-child(2) > span { transition-delay: .12s; }
.is-loaded .hero-title .line > span { transform: none; }
.hero-title em { font-size: 1.08em; letter-spacing: -.03em; }

.hero-lead { margin-top: 28px; max-width: 560px; font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- The score (staff of app icons) ---------- */
.score {
  --icon: clamp(46px, 7.4vw, 100px);
  position: relative;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(29, 26, 39, .7), rgba(21, 19, 29, .4));
  padding: 18px clamp(14px, 2.4vw, 28px) 16px;
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.score-meta {
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--faint);
}
.score-meta .now b { color: var(--text); font-weight: 500; }
.score-hint { margin-top: 6px; font-family: var(--mono); font-size: 12px; color: var(--faint); text-align: center; }

.staff {
  position: relative;
  height: clamp(220px, 26vw, 340px);
  margin: 6px 0 0;
}
.staff-lines { position: absolute; inset: 20% 0; display: flex; flex-direction: column; justify-content: space-between; }
.staff-lines i { display: block; height: 1px; background: rgba(244, 239, 230, .22); }

.clef {
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  font-family: "Noto Music", "Apple Symbols", "Segoe UI Symbol", serif;
  font-size: clamp(96px, 13vw, 184px);
  line-height: 1; color: rgba(244, 239, 230, .85);
  pointer-events: none;
  margin-top: .03em;
}
.barline { position: absolute; top: 20%; bottom: 20%; width: 1px; background: rgba(244, 239, 230, .35); }
.barline-end { right: 0; box-shadow: -6px 0 0 rgba(244, 239, 230, .35); width: 3px; }

.playhead {
  position: absolute; top: 6%; bottom: 6%; left: 0; width: 2px;
  background: linear-gradient(180deg, transparent, var(--accent) 18%, var(--accent) 82%, transparent);
  box-shadow: 0 0 24px 2px rgba(255, 91, 53, .6);
  will-change: transform;
  pointer-events: none;
}
.playhead::before {
  content: ""; position: absolute; top: 12%; left: 50%;
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
  transform: translate(-50%, -50%);
}

.note {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(20% + var(--y) * 7.5%);
  width: var(--icon); height: var(--icon);
  transform: translate(-50%, -50%);
  border-radius: 23%;
  z-index: 2;
  transition: transform .5s var(--ease-spring);
  animation: bob 5s ease-in-out infinite;
  animation-delay: calc(var(--x) * -.08s);
}
.note img {
  width: 100%; height: 100%; border-radius: 23%;
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .08);
  position: relative; z-index: 1;
}
/* note stems */
.note::after {
  content: ""; position: absolute; width: 2px;
  height: calc(var(--icon) * 1.15);
  background: rgba(244, 239, 230, .55);
  border-radius: 2px;
}
.note.stem-up::after { right: 4%; bottom: 50%; }
.note.stem-down::after { left: 4%; top: 50%; }
/* ripple ring */
.note::before {
  content: ""; position: absolute; inset: 0; border-radius: 26%;
  border: 2px solid var(--c);
  opacity: 0; transform: scale(1);
  z-index: 0;
}
.note:hover { transform: translate(-50%, -50%) scale(1.08) rotate(-4deg); animation-play-state: paused; }
.note.is-hit { animation: hit .7s var(--ease-spring); }
.note.is-hit::before { animation: ring .9s var(--ease) forwards; }

@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes hit {
  0% { transform: translate(-50%, -50%) scale(1); }
  35% { transform: translate(-50%, -50%) scale(1.18) rotate(-6deg); }
  100% { transform: translate(-50%, -50%) scale(1); }
}
@keyframes ring { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.9); } }

/* ==========================================================
   Marquee
   ========================================================== */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: clamp(18px, 2.6vw, 34px) 0;
  margin: clamp(40px, 6vw, 80px) 0 0;
}
.marquee-track {
  display: flex; align-items: center; gap: clamp(24px, 3.4vw, 52px);
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee span {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(56px, 9vw, 140px); line-height: 1; letter-spacing: -.02em;
}
.marquee span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px rgba(244, 239, 230, .55); }
.marquee b { color: var(--accent); font-size: clamp(22px, 3vw, 44px); font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================
   Apps — tracklist
   ========================================================== */
.apps { padding: clamp(96px, 14vw, 180px) 0 clamp(80px, 10vw, 130px); }

.tracklist {
  max-width: var(--max); margin: clamp(56px, 7vw, 96px) auto 0; padding: 0 var(--gutter);
  counter-reset: track;
}
.track {
  --pad: clamp(18px, 2.4vw, 30px);
  position: relative;
  display: grid;
  grid-template-columns: 44px 88px minmax(180px, 1fr) minmax(220px, 1.3fr) 150px auto;
  align-items: center;
  gap: clamp(16px, 2.4vw, 36px);
  padding: var(--pad) clamp(12px, 1.6vw, 24px);
  border-top: 1px solid var(--line);
  border-radius: 4px;
  isolation: isolate;
}
.track:last-child { border-bottom: 1px solid var(--line); }
.track::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: 24px;
  background: radial-gradient(120% 140% at 10% 50%, var(--c-soft), transparent 60%);
  opacity: 0; transform: scale(.98);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.track:hover::before { opacity: 1; transform: none; }
.track:hover, .track:hover + .track { border-top-color: transparent; }

.track-no { font-family: var(--mono); font-size: 13px; color: var(--faint); transition: color .3s; }
.track:hover .track-no { color: var(--c); }

.track-icon {
  width: 88px; height: 88px; border-radius: 22.5%;
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .07);
  transition: transform .6s var(--ease-spring);
}
.track:hover .track-icon { transform: rotate(-7deg) scale(1.07); }

.track-title h3 { font-size: clamp(22px, 2.1vw, 30px); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }
.track-title p { margin-top: 6px; font-size: 15px; color: var(--muted); }
.plat {
  display: inline-block; vertical-align: middle;
  margin-left: 8px; padding: 3px 8px 2px;
  border: 1px solid var(--line); border-radius: 6px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase;
  color: var(--faint);
  position: relative; top: -2px;
}
.track:hover .plat { color: var(--c); border-color: color-mix(in srgb, var(--c) 40%, transparent); }
.track-desc { font-size: 16px; color: var(--muted); max-width: 46ch; }

.track-wave { display: flex; align-items: center; gap: 3px; height: 40px; }
.track-wave i {
  flex: 1; min-width: 2px; border-radius: 2px;
  background: rgba(244, 239, 230, .2);
  height: calc(var(--h) * 1%);
  transform-origin: center;
  transition: background .4s;
}
.track:hover .track-wave i { background: var(--c); animation: wave .9s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -70ms); }
@keyframes wave { from { transform: scaleY(.35); } to { transform: scaleY(1); } }

.track-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.track-links a {
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13.5px; color: var(--muted);
  transition: color .25s, border-color .25s, background .25s;
}
.track-links a:hover { color: var(--text); border-color: rgba(244, 239, 230, .4); }
.track-links a.store { background: var(--cream); color: var(--ink); border-color: var(--cream); font-weight: 500; }
.track-links a[hidden] { display: none; }

/* ==========================================================
   Coming soon (Side B)
   ========================================================== */
.soon { padding: 0 0 clamp(96px, 12vw, 160px); }

.soon-grid {
  max-width: var(--max); margin: clamp(48px, 6vw, 80px) auto 0; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.soon-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  padding: clamp(24px, 3vw, 40px);
  border-radius: 32px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(29, 26, 39, .8), rgba(21, 19, 29, .5));
  transition: transform .7s var(--ease-spring), border-color .4s;
}
.soon-card::before {
  content: ""; position: absolute; z-index: -1;
  width: 70%; aspect-ratio: 1; right: -20%; top: -30%;
  background: radial-gradient(closest-side, var(--c-soft), transparent 70%);
  transition: transform 1s var(--ease);
}
/* dashed "not yet released" outline */
.soon-card::after {
  content: ""; position: absolute; inset: 10px; z-index: -1;
  border: 1px dashed rgba(244, 239, 230, .1);
  border-radius: 24px;
  pointer-events: none;
}
.soon-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.soon-card:hover::before { transform: scale(1.25) translate(-6%, 6%); }

.soon-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.soon-icon {
  width: 104px; height: 104px; border-radius: 23%;
  box-shadow: 0 20px 44px -16px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .08);
  transition: transform .7s var(--ease-spring);
}
.soon-card:hover .soon-icon { transform: rotate(-6deg) scale(1.05); }
.soon-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}
.badge-live { color: var(--c); border-color: color-mix(in srgb, var(--c) 35%, transparent); }
.badge-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

.soon-card h3 { margin-top: clamp(32px, 4vw, 56px); font-size: clamp(36px, 4.2vw, 60px); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.soon-kind { margin-top: 8px; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2vw, 28px); color: var(--c); }
.soon-desc { margin-top: 18px; max-width: 48ch; font-size: 16.5px; color: var(--muted); }

.chips { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 13px; border-radius: 999px; background: rgba(244, 239, 230, .06); font-size: 13.5px; color: var(--text); }

.soon-foot {
  margin-top: auto; padding-top: 32px;
  font-family: var(--mono); font-size: 13px; color: var(--faint);
}
.soon-link { width: fit-content; color: var(--text); transition: color .25s; }
.soon-link:hover { color: var(--c); }

/* ==========================================================
   Craft (cream)
   ========================================================== */
.craft {
  background: var(--cream); color: var(--ink);
  padding: clamp(96px, 13vw, 170px) 0;
  border-radius: clamp(28px, 4vw, 56px);
  --muted: rgba(14, 13, 20, .64);
  --line: rgba(14, 13, 20, .12);
}
.craft .kicker { color: rgba(14, 13, 20, .55); }
.craft .section-head h2 em {
  background: linear-gradient(95deg, var(--accent), #C2341A);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.rules {
  max-width: var(--max); margin: clamp(56px, 7vw, 96px) auto 0; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.rule {
  position: relative;
  padding: 28px 26px 32px;
  background: var(--cream-2);
  border-radius: 26px;
  border: 1px solid var(--line);
  transition: transform .6s var(--ease-spring), background .4s;
}
.rule:hover { transform: translateY(-6px); background: #fff; }
.rule-art { width: 96px; height: 96px; margin-bottom: 36px; }
.rule-art svg { width: 100%; height: 100%; fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .8s var(--ease-spring); }
.rule-art .fill { fill: var(--accent); stroke: var(--accent); }
.rule:hover .rule-art svg { transform: rotate(-8deg) scale(1.06); }
.rule-no { position: absolute; top: 28px; right: 26px; font-family: var(--mono); font-size: 13px; color: rgba(14, 13, 20, .45); }
.rule h3 { font-size: 26px; font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }
.rule p { margin-top: 12px; font-size: 16px; color: var(--muted); }

/* ==========================================================
   Studio
   ========================================================== */
.studio {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(110px, 14vw, 200px) var(--gutter) clamp(80px, 10vw, 140px);
}
.manifesto {
  margin-top: 28px;
  font-size: clamp(30px, 4.6vw, 68px);
  font-weight: 450; line-height: 1.08; letter-spacing: -.04em;
}
.manifesto .w { opacity: .16; transition: opacity .35s linear; }
.manifesto .w.on { opacity: 1; }

.facts {
  margin-top: clamp(64px, 9vw, 120px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.fact { padding: 32px 24px 8px 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact dt { font-family: var(--serif); font-style: italic; font-size: clamp(56px, 7vw, 104px); line-height: 1; letter-spacing: -.02em; }
.fact dd { margin-top: 12px; font-size: 15px; color: var(--muted); }

/* ==========================================================
   Contact
   ========================================================== */
.contact {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(80px, 10vw, 140px) var(--gutter) clamp(96px, 12vw, 160px);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.contact::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 40%;
  width: min(900px, 120vw); height: min(900px, 120vw);
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 91, 53, .18), transparent 70%);
  pointer-events: none;
}
.contact-title { font-size: clamp(84px, 17vw, 260px); }
.contact .section-lead { margin-left: auto; margin-right: auto; }

.contact-row { margin-top: 44px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.mail {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 20px 30px; border-radius: 999px;
  background: var(--cream); color: var(--ink);
  font-size: clamp(18px, 2.2vw, 26px); font-weight: 500; letter-spacing: -.02em;
  transition: transform .4s var(--ease-spring), box-shadow .4s;
}
.mail:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 24px 60px -20px rgba(255, 91, 53, .55); }
.copy {
  padding: 20px 26px; border-radius: 999px; border: 1px solid var(--line);
  font-family: var(--mono); font-size: 14px; color: var(--muted);
  transition: color .25s, border-color .25s;
}
.copy:hover { color: var(--text); border-color: rgba(244, 239, 230, .4); }
.copy.is-done { color: var(--ink); background: var(--accent-2); border-color: var(--accent-2); }

.support-link { margin-top: 36px; color: var(--muted); font-size: 16px; border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: color .25s, border-color .25s; }
.support-link:hover { color: var(--text); border-color: var(--accent); }

/* ==========================================================
   Footer
   ========================================================== */
.footer {
  border-top: 1px solid var(--line);
  padding: 64px var(--gutter) 28px;
  overflow: hidden;
}
.footer-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-col h4 { font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.footer-col a, .footer-col p { color: var(--muted); }
.footer-col a { width: fit-content; transition: color .25s; }
.footer-col a:hover { color: var(--text); }

.footer-word {
  margin: clamp(48px, 7vw, 96px) auto 0;
  max-width: var(--max);
  font-size: clamp(80px, 21vw, 330px);
  font-weight: 600; letter-spacing: -.07em; line-height: 1;
  padding: 0 .04em .06em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 239, 230, .2);
  background: linear-gradient(95deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  background-size: 0% 100%; background-repeat: no-repeat;
  transition: background-size 1.4s var(--ease);
  user-select: none;
}
.footer-word:hover, .footer-word.is-in { background-size: 100% 100%; }

.footer-base {
  max-width: var(--max); margin: 36px auto 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-family: var(--mono); font-size: 12px; color: var(--faint);
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1100px) {
  .track { grid-template-columns: 40px 72px 1fr auto; grid-template-areas: "no icon title links" ". . desc desc" ". . wave wave"; row-gap: 10px; }
  .track-no { grid-area: no; } .track-icon { grid-area: icon; width: 72px; height: 72px; }
  .track-title { grid-area: title; } .track-desc { grid-area: desc; max-width: none; }
  .track-wave { grid-area: wave; height: 28px; } .track-links { grid-area: links; }
  .rules { grid-template-columns: repeat(2, 1fr); }
  .soon-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .sound { padding: 8px 12px 8px 10px; }
  .hero { padding-top: 112px; }
  .score { border-radius: 20px; padding: 14px 12px 12px; }
  .score-meta span:first-child, .score-meta span:last-child { display: none; }
  .score-meta { justify-content: center; }
  .staff { height: 220px; }
  .clef { font-size: 84px; left: -4px; }
  .note.stem-up::after, .note.stem-down::after { height: calc(var(--icon) * .9); }

  .track {
    grid-template-columns: 60px 1fr;
    grid-template-areas: "icon title" "desc desc" "wave wave" "links links";
    padding: 24px 4px;
  }
  .track-no { display: none; }
  .track-icon { width: 60px; height: 60px; }
  .track-links { justify-content: flex-start; }

  .rules { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact, .fact + .fact { padding: 24px 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .soon-icon { width: 76px; height: 76px; }
  .soon-card { border-radius: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col:last-child { grid-column: 1 / -1; }
}

/* ==========================================================
   Reduced motion
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero-title .line > span { transform: none; }
  .playhead { display: none; }
  .manifesto .w { opacity: 1; }
}

/* Track titles link to each app's own page */
.track-title h3 a { transition: color .25s; }
.track-title h3 a:hover { color: var(--c); }

/* Official store badges in each app row */
.track-links { align-items: center; }
.track-links a.store { padding: 0; border: 0; background: none; border-radius: 8px; line-height: 0; transition: transform .3s, filter .25s; }
.track-links a.store img { height: 38px; width: auto; }
.track-links a.store:hover { transform: translateY(-2px); filter: brightness(1.2); }
.track-links a.store:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; }
