/* VANTA: the page is a song. Lyrics fill word by word, the light takes the song's colour. */
@property --tint { syntax: "<color>"; inherits: true; initial-value: #e4cba4; }
@property --p { syntax: "<percentage>"; inherits: false; initial-value: -8%; }

:root {
  --ink: #050505;
  --ivory: #efe9de;
  --mute: #b8b0a2;
  --gold: #dcc39a;
  --line: rgba(239, 233, 222, .14);
  --dim: rgba(239, 233, 222, .28);
  --tint: #e4cba4;
  --display: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.3, .1, .2, 1);
  --gut: clamp(16px, 4vw, 48px);
  color-scheme: dark;
  transition: --tint 1.8s var(--ease);
}
* { box-sizing: border-box; }
html { background: var(--ink); color: var(--ivory); -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; overflow-x: clip; }
body { margin: 0; font: 400 17px/1.6 var(--sans); overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
::selection { background: color-mix(in oklab, var(--gold) 40%, transparent); }
:focus-visible { outline: 1.5px solid var(--gold); outline-offset: 4px; border-radius: 4px; }

/* light and texture: fixed behind everything; a soft light follows the pointer */
.glow {
  position: fixed; inset: -10%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(520px circle at var(--mx, 50%) var(--my, -30%), color-mix(in oklab, var(--tint) 13%, transparent), transparent 65%),
    radial-gradient(55% 45% at 80% 6%, color-mix(in oklab, var(--tint) 20%, transparent), transparent 70%),
    radial-gradient(45% 40% at 6% 96%, color-mix(in oklab, var(--tint) 10%, transparent), transparent 70%);
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip { position: absolute; left: var(--gut); top: -60px; z-index: 50; background: var(--ivory); color: var(--ink); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 16px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gut); }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 0; }
.logo { font: 600 18px/1 var(--display); letter-spacing: .32em; text-decoration: none; padding: 10px 0; }
.nav nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav nav a:not(.btn) { color: var(--mute); text-decoration: none; padding: 10px 0; transition: color .25s var(--ease); }
.nav nav a:not(.btn):hover { color: var(--ivory); }

/* buttons: one white Play pill, one hairline */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 24px;
  border-radius: 999px; background: var(--ivory); color: var(--ink); text-decoration: none;
  font: 600 15px/1 var(--sans); border: 1px solid var(--ivory);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { background: #fff; }
.btn.glass { background: transparent; color: var(--ivory); border-color: rgba(239, 233, 222, .28); }
.btn.glass:hover { border-color: var(--ivory); }
.nav .btn { min-height: 40px; padding: 0 18px; font-size: 14px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* type */
.big, .lyric {
  font-family: var(--display); font-weight: 600;
  letter-spacing: -.045em; margin: 0; text-wrap: balance;
}
.big { font-size: clamp(44px, 8vw, 124px); line-height: .96; max-width: 13ch; }
.lyric { font-size: clamp(38px, 5.8vw, 88px); line-height: 1; max-width: 15ch; }
.sub { color: var(--mute); font-size: clamp(17px, 1.5vw, 20px); max-width: 48ch; margin: 32px 0 0; }
.say { color: var(--mute); font-size: clamp(17px, 1.4vw, 19px); max-width: 38ch; margin: 0; }
.say + .say { margin-top: 18px; }
.on-line { color: var(--mute); font-size: 15px; margin: 22px 0 0; }
.on-line a, .say a { color: var(--ivory); text-decoration-color: rgba(239, 233, 222, .35); text-underline-offset: 3px; }

/* word fill: dim, then a gold edge passes through, then warm ivory */
.js .w {
  --p: -8%;
  color: transparent;
  background: linear-gradient(90deg, var(--ivory) calc(var(--p) - 16%), var(--gold) calc(var(--p) - 5%), var(--dim) calc(var(--p) + 8%));
  -webkit-background-clip: text; background-clip: text;
  /* each word rises into place as it fills; the padding keeps glyph edges inside the clip */
  display: inline-block; padding: 0 .05em .1em; margin: 0 -.05em -.1em;
  transform: translateY(calc((124% - var(--p)) * .28));
}
.js .hero .w { opacity: 0; filter: blur(14px); }
.js .hero.play .w {
  --p: 124%; opacity: 1; filter: blur(0);
  transition: --p 1.1s var(--ease) calc(var(--i) * 110ms + 250ms), opacity .9s var(--ease) calc(var(--i) * 110ms + 150ms), filter 1.1s var(--ease) calc(var(--i) * 110ms + 150ms);
}

/* hero */
.hero { position: relative; isolation: isolate; min-height: calc(100svh - 96px); display: flex; flex-direction: column; justify-content: center; padding: 6vh 0 12vh; }
.js .hero > :not(h1, .aura) { opacity: 0; translate: 0 22px; transition: opacity 1s var(--ease), translate 1.2s var(--ease); }
.js .hero.play > :not(h1, .aura) { opacity: 1; translate: 0 0; }
.js .hero.play .sub { transition-delay: 1.1s; }
.js .hero.play .cta { transition-delay: 1.3s; }
.js .hero.play .on-line { transition-delay: 1.5s; }
.js .hero.play .track { transition-delay: 1.7s; }
/* the hero's light: the colours of the songs, turning slowly behind the words */
.aura {
  position: absolute; z-index: -1; right: -14%; top: 46%; width: min(86vw, 860px); aspect-ratio: 1;
  translate: 0 -50%; border-radius: 50%; pointer-events: none; opacity: .38;
  background: conic-gradient(from 0deg, var(--tint), #8caae6, #b9a3e3, #e896a0, #e8a87c, var(--tint));
  filter: blur(80px); -webkit-mask: radial-gradient(closest-side, #000 35%, transparent); mask: radial-gradient(closest-side, #000 35%, transparent);
  animation: aura-turn 40s linear infinite;
}
.js .aura { opacity: 0; scale: .55; transition: opacity 2.4s var(--ease) .2s, scale 3s var(--ease) .2s; }
.js .hero.play .aura { opacity: .38; scale: 1; }
@keyframes aura-turn { to { rotate: 1turn; } }
.track { display: flex; align-items: center; gap: 16px; margin-top: 64px; max-width: 520px; color: var(--mute); font: 500 13px/1 var(--sans); font-variant-numeric: tabular-nums; }
.track i, .bar-line { position: relative; display: block; flex: 1; height: 1px; background: var(--line); }
.track b, .bar-line b { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(0); }

/* verses */
.verse { padding: clamp(110px, 20vh, 220px) 0 0; }
.verse-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(40px, 7vw, 120px); margin-top: clamp(40px, 7vh, 80px); align-items: start; }
.demo { min-width: 0; }

/* search demo */
.results { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.results li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); transition: opacity .45s var(--ease); }
.results .q { font: 500 clamp(24px, 2.6vw, 34px)/1.2 var(--display); justify-content: flex-start; gap: 2px; padding: 8px 0 20px; }
.results .q .caret { width: 1px; height: 1em; background: var(--gold); align-self: center; }
.results .q.done .caret { opacity: 0; transition: opacity .4s var(--ease); }
.results .res b { font-weight: 500; }
.results .res small { color: var(--mute); font-size: 15px; }
.results .res > small { font-size: 14px; white-space: nowrap; }
.results .res.top > small { color: var(--gold); }
.results .res.lo { opacity: .55; }
.results .res.hide { opacity: 0; }

/* lyrics stage demo */
.stage-meta { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; transition: opacity .45s var(--ease); }
.stage-meta b { font-weight: 500; }
.stage-meta span { color: var(--mute); font-size: 15px; }
.window {
  position: relative; height: calc(3 * 1.45em); overflow: hidden; margin: 26px 0 30px;
  font: 500 clamp(24px, 2.7vw, 38px)/1.45 var(--display);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 24%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 24%, #000 70%, transparent);
  transition: opacity .45s var(--ease);
}
.window ol { list-style: none; margin: 0; padding: 0; transition: transform .45s var(--ease); }
.window li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .45s var(--ease); }
.js .window li.past { opacity: .45; }
.stage.out .stage-meta, .stage.out .window { opacity: 0; }
.stage-prog { display: flex; align-items: center; gap: 14px; color: var(--mute); font: 500 13px/1 var(--sans); font-variant-numeric: tabular-nums; }

/* radio */
.genres { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-bottom: 28px; }
.genres button {
  appearance: none; background: none; border: 0; color: var(--mute); cursor: pointer; padding: 10px 0; min-height: 44px;
  font: 500 clamp(19px, 1.8vw, 23px)/1.2 var(--display); position: relative; transition: color .3s var(--ease);
}
.genres button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--tint); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.genres button:hover, .genres button[aria-pressed="true"] { color: var(--ivory); }
.genres button[aria-pressed="true"]::after { transform: scaleX(1); }
.queue { --row: 58px; height: calc(5 * var(--row)); overflow: hidden; border-top: 1px solid var(--line); transition: opacity .25s var(--ease); }
.queue.fade { opacity: 0; }
.queue ol { list-style: none; margin: 0; padding: 0; }
.queue ol.step { transform: translateY(calc(-1 * var(--row))); transition: transform .9s var(--ease); }
.queue ol.snap, .queue ol.snap li { transition: none; }
.queue li { height: var(--row); display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); transition: opacity .9s var(--ease); }
.queue li b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue li small { color: var(--mute); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.queue ol.step li:first-child { opacity: 0; }
.statement { margin: 26px 0 0; color: var(--mute); font-size: 15px; }

/* devices: hairline outlines sharing one clock */
.devs { display: grid; grid-template-columns: .52fr 1.5fr 1.2fr; gap: clamp(16px, 2.4vw, 32px); align-items: end; }
.dev { min-width: 0; }
.dev .scr { border: 1px solid rgba(239, 233, 222, .22); display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 12px; overflow: hidden; }
.dev.phone .scr { aspect-ratio: 9 / 19; border-radius: 18px; }
.dev.tv .scr { aspect-ratio: 16 / 9; border-radius: 4px; }
.dev.web .scr { aspect-ratio: 16 / 10; border-radius: 8px; border-top-width: 10px; }
.dev .scr b { font: 500 clamp(13px, 1.2vw, 16px)/1.2 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dev .scr span { color: var(--mute); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dev .scr .bar-line { flex: none; margin-top: 8px; }
.dev .lab { margin-top: 14px; font-size: 15px; }
.dev .lab small { display: block; color: var(--mute); font-size: 13px; }
.dev.tv .stand { width: 28%; height: 1px; background: rgba(239, 233, 222, .22); margin: 8px auto 0; }
.tvnote { margin: 34px 0 0; color: var(--mute); font-size: 15px; }
.code { color: var(--ivory); font: 500 20px/1.6 var(--sans); letter-spacing: .12em; font-variant-numeric: tabular-nums; }

/* faq */
.faq-list { margin-top: clamp(40px, 7vh, 80px); max-width: 820px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; min-height: 44px; font: 500 clamp(20px, 2.1vw, 27px)/1.3 var(--display);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 1.25px solid var(--gold); border-bottom: 1.25px solid var(--gold); transform: translateY(-3px) rotate(45deg); transition: transform .35s var(--ease); }
.faq-list details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.faq-list details p { margin: -6px 0 26px; color: var(--mute); max-width: 60ch; }

/* finale */
.finale { padding-bottom: clamp(80px, 14vh, 160px); }
.finale .lyric { font-size: clamp(56px, 11vw, 168px); }

footer { border-top: 1px solid var(--line); padding: 34px 0 150px; color: var(--mute); font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; }
footer nav { display: flex; gap: 26px; }
footer a { text-decoration: none; padding: 10px 0; }
footer a:hover { color: var(--ivory); }
footer p { margin: 10px 0 0; max-width: 56ch; }

/* now playing bar: the page as a song */
.now {
  position: fixed; left: 50%; bottom: 16px; z-index: 20; width: min(560px, calc(100% - 24px));
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; align-items: center; gap: 14px;
  padding: 10px 10px 10px 12px; border-radius: 16px; overflow: hidden;
  background: rgba(14, 13, 12, .66); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  opacity: 0; visibility: hidden; transform: translate(-50%, 14px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s linear .4s;
}
.now.on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s; }
.now .sq { width: 34px; height: 34px; border-radius: 7px; background: var(--tint); }
.now .t { min-width: 0; line-height: 1.25; }
.now .t b { display: block; font: 500 17px/1.25 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now .t span { color: var(--mute); font-size: 12px; letter-spacing: .14em; }
.now .time { color: var(--mute); font: 500 12px/1 var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.now .ctl { display: flex; }
.now button { appearance: none; background: none; border: 0; color: var(--ivory); width: 44px; height: 44px; border-radius: 10px; cursor: pointer; display: grid; place-items: center; transition: background .25s var(--ease), opacity .25s var(--ease); }
.now button:hover { background: rgba(239, 233, 222, .08); }
.now button:disabled { opacity: .3; cursor: default; background: none; }
.now button svg { width: 18px; height: 18px; fill: currentColor; }
.now .bar-line { position: absolute; left: 0; right: 0; bottom: 0; }

/* layout */
@media (max-width: 860px) {
  .verse-body { grid-template-columns: 1fr; }
  .devs { grid-template-columns: .55fr 1.45fr; }
  .dev.web { grid-column: 1 / -1; max-width: 420px; }
}
@media (max-width: 480px) {
  .nav nav .hide-s { display: none; }
  .now { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; }
  .now .sq { width: 30px; height: 30px; }
  .now .time { display: none; }
  .track { margin-top: 48px; }
}

/* reduced motion: everything already in place, nothing moves */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
