/*
 * NOWON Radio - HTML template
 * Core stylesheet: loaded by every page. Page-only styles live in css/pages/.
 *
 * TABLE OF CONTENTS
 *  01. Fonts
 *  02. Design tokens
 *  03. Accent themes
 *  04. Reset and base
 *  05. Helpers and animation
 *  06. Typography: section heading
 *  07. Buttons
 *  08. Chips, toggle, segmented control
 *  09. Form fields
 *  10. Accordion
 *  11. Panels: card, paper, inset
 *  12. Side panel (drawer)
 *  13. Vinyl record, equaliser, wave, logo
 *  14. Player capsule
 *  15. Top bar
 *  16. Menu drawer
 *  17. Page title block
 *  18. Page layout and sections
 *  19. Footer
 *  20. Media queries
 */

/* ==========================================================================
   01. Fonts
   ========================================================================== */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   02. Design tokens
   ========================================================================== */
:root {
  /* Surfaces */
  --bg: #121110;
  --surface-1: #171614;
  --surface-2: #1b1a18;
  --surface-inset: #0c0b0a;
  --overlay: rgba(10, 9, 8, .6);
  --placeholder: repeating-linear-gradient(135deg, #26241f 0 10px, #1d1c19 10px 20px);

  /* Text */
  --ink: #f5edd8;
  --ink-dark: #121110;
  --ink-75: rgba(245, 237, 216, .75);
  --ink-60: rgba(245, 237, 216, .6);
  --ink-50: rgba(245, 237, 216, .5);
  --cream: #f5edd8;

  /* Lines */
  --line: rgba(245, 237, 216, .12);
  --line-soft: rgba(245, 237, 216, .08);
  --line-strong: rgba(245, 237, 216, .3);
  --line-dark: rgba(18, 17, 16, .25);

  /* Status */
  --live: #e2402f;
  --ok: #7fb7a4;
  --on-live: #0c0b0a; /* text on a red background */
  --live-text: color-mix(in srgb, var(--live) 85%, var(--ink)); /* small red text on dark */

  /* Accent: see section 03 for the seven themes */
  --acc: #f9c22e;
  --acc-07: color-mix(in srgb, var(--acc) 7%, transparent);
  --acc-13: color-mix(in srgb, var(--acc) 13%, transparent);
  --acc-15: color-mix(in srgb, var(--acc) 15%, transparent);
  --acc-20: color-mix(in srgb, var(--acc) 20%, transparent);
  --acc-25: color-mix(in srgb, var(--acc) 25%, transparent);
  --acc-35: color-mix(in srgb, var(--acc) 35%, transparent);
  --acc-45: color-mix(in srgb, var(--acc) 45%, transparent);
  --acc-80: color-mix(in srgb, var(--acc) 80%, transparent);

  /* Type */
  --font: "Montserrat", system-ui, sans-serif;
  --mono: ui-monospace, Menlo, monospace;
  --title-section: clamp(40px, 4.4vw, 88px);

  /* Layout */
  --gutter: clamp(20px, 2.344vw, 60px);
  --section-gap: 80px;
  --topbar-height: 104px;

  /* Radii */
  --radius-pill: 999px;
  --radius-input: 12px;
  --radius-card: 22px;
  --radius-panel: 28px;

  /* Shadows */
  --shadow-panel: 0 40px 80px rgba(0, 0, 0, .5);
  --shadow-card: 0 30px 60px rgba(0, 0, 0, .6);

  /* Motion */
  --ease-slide: cubic-bezier(.3, .7, .2, 1);
  --ease-fill: cubic-bezier(.6, 0, .2, 1);
  --ease-drawer: cubic-bezier(.7, 0, .2, 1);
  --play-state: paused;
}

/* The main player adds .is-playing to <html>. Only the main player itself moves:
   the top bar, the home hero and the menu's now-playing strip. */
.is-playing .topbar,
.is-playing .hero,
.is-playing .menu {
  --play-state: running;
}

/* The channel player moves only its own record: Now spinning on the Stations page. */
.is-channel-on [data-playlist] {
  --play-state: running;
}

/* ==========================================================================
   03. Accent themes (set on <html data-accent="N"> by assets/js/theme.js)
   ========================================================================== */
[data-accent="1"] { --acc: #ff6a2b; }
[data-accent="2"] { --acc: #e5383b; }
[data-accent="3"] { --acc: #8fe3b6; }
[data-accent="4"] { --acc: #b8a4ff; }
[data-accent="5"] { --acc: #ff4f9a; }
[data-accent="6"] { --acc: #efe6d2; }

/* ==========================================================================
   04. Reset and base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  overflow-x: clip;
}

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

input[type="range"] {
  margin: 0;
  accent-color: var(--acc);
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}

/* ==========================================================================
   05. Helpers and animation
   ========================================================================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: var(--acc);
  color: var(--ink-dark);
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

.text-accent {
  color: var(--acc);
}

.truncate {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.divider-v {
  flex: none;
  width: 1px;
  height: 26px;
  background: var(--line);
}

.live-dot {
  display: inline-block;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  animation: blink 1.2s ease-in-out infinite;
}

.live-dot--slow {
  animation: pulse 1.4s ease-in-out infinite;
}

.placeholder {
  background: var(--placeholder);
}

@keyframes spin {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

@keyframes eq {
  0%, 100% { transform: scaleY(.3); }
  50% { transform: scaleY(1); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

@keyframes pop {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   06. Typography: section heading
   ========================================================================== */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--acc);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .35em;
}

.eyebrow::after {
  content: "";
  order: 1;
  width: 40px;
  height: 1.5px;
  background: currentColor;
}

.eyebrow__label {
  order: 2;
}

.section-title {
  margin-top: 22px;
  font-size: var(--title-section);
}

.section-title__thin,
.section-title__bold {
  display: block;
}

.section-title__thin {
  font-weight: 200;
  line-height: .9;
  letter-spacing: -.03em;
}

.section-title__bold {
  color: var(--acc);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.045em;
}

.section-title__bold--plain {
  color: inherit;
}

.section-title--xl {
  margin-top: 26px;
  font-size: clamp(56px, 7.5vw, 150px);
}

.section-title--xl .section-title__thin {
  line-height: .88;
}

.section-head {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 56px;
}

.section-head__text {
  max-width: 360px;
  color: rgba(245, 237, 216, .7);
  font-size: 16px;
  line-height: 1.6;
}

.section-head__aside {
  text-align: right;
}

.section-head__status {
  margin-top: 8px;
  color: var(--acc);
  font-weight: 800;
  font-size: 22px;
}

.link-arrow {
  display: inline-block;
  color: var(--acc);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .2em;
  transition: color .2s ease;
}

.link-arrow:hover {
  color: var(--ink);
}

.meta-line {
  color: var(--ink-60);
  font-family: var(--mono);
  font-size: 13px;
}

.meta-line--sm {
  font-size: 12px;
}

.meta-line + .link-arrow {
  margin-top: 14px;
}

.meta-split {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
}

.meta-split__dim {
  color: var(--ink-60);
}

.label-accent,
.label-muted {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .3em;
}

.label-accent {
  color: var(--acc);
}

.label-muted {
  color: var(--ink-60);
}

.text-live {
  color: var(--live-text);
}

/* Huge outlined word behind a section. */
.ghost-text {
  position: absolute;
  color: transparent;
  font-weight: 900;
  line-height: .8;
  letter-spacing: -.05em;
  white-space: nowrap;
  pointer-events: none;
  -webkit-text-stroke: 1.5px rgba(245, 237, 216, .06);
}

/* ==========================================================================
   07. Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 26px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .1em;
  white-space: nowrap;
  text-transform: uppercase;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn__arrow {
  transition: transform .25s ease;
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

.btn--accent {
  background: var(--acc);
  color: var(--ink-dark);
}

.btn--outline {
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--outline:hover {
  border-color: var(--acc);
  color: var(--acc);
}

/* Dark button on accent backgrounds (hero, footer). */
.btn--ink {
  background: var(--ink-dark);
  color: var(--acc);
}

.btn--ink-outline {
  border-color: var(--ink-dark);
  color: var(--ink-dark);
}

.btn--ink-outline:hover {
  background: var(--ink-dark);
  color: var(--acc);
}

.btn--glow {
  box-shadow: 0 0 0 6px var(--acc-15);
}

.btn--sm {
  height: 40px;
  padding: 0 16px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .08em;
}

.btn--lg {
  height: 58px;
  padding: 0 30px;
  font-weight: 700;
  font-size: 14px;
}

.btn--block {
  flex: 1;
  min-width: 0;
}

.btn--tall {
  height: 56px;
  padding: 0 28px;
  font-size: 14px;
}

.btn--tall.btn--outline {
  padding: 0 22px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .12em;
}

.btn--xs {
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  font-size: 11px;
  letter-spacing: .12em;
}

/* Round icon button. Size with the --sm / --lg modifiers. */
.icon-btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid transparent;
  border-radius: 50%;
  font-size: 13px;
  line-height: 1;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.icon-btn--accent {
  background: var(--acc);
  color: var(--ink-dark);
}

.icon-btn--outline {
  border-color: rgba(245, 237, 216, .2);
  color: var(--ink);
}

.icon-btn--outline[aria-pressed="true"] {
  border-color: transparent;
  background: var(--acc);
  color: var(--ink-dark);
}

.icon-btn--sm {
  width: 34px;
  height: 34px;
  font-size: 14px;
}

.icon-btn--md {
  width: 40px;
  height: 40px;
  font-size: 12px;
}

.icon-btn--ml {
  width: 52px;
  height: 52px;
  font-size: 18px;
}

.icon-btn--lg {
  width: 56px;
  height: 56px;
  font-size: 16px;
}

.icon-btn--xl {
  width: 92px;
  height: 92px;
  font-size: 26px;
}

.icon-btn--mono {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
}

.icon-btn--ml.icon-btn--outline {
  border-width: 1.5px;
  border-color: rgba(245, 237, 216, .35);
}

.icon-btn--outline:hover {
  border-color: var(--acc);
  color: var(--acc);
}

.rail-nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.is-playing .icon-btn--play {
  box-shadow: 0 0 0 5px var(--acc-20);
}

/* Play and pause glyphs swap with the global player state. */
.play-glyph::before {
  content: "\25B6";
}

.is-playing .play-glyph::before {
  content: "\275A\275A";
}

.burger {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
}

.burger span {
  width: 70%;
  height: 2.5px;
  background: var(--ink);
  transition: transform .3s ease, opacity .3s ease;
}

.menu-open .burger span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.menu-open .burger span:nth-child(2) {
  opacity: 0;
}

.menu-open .burger span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* ==========================================================================
   08. Chips, toggle, segmented control
   ========================================================================== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .08em;
  white-space: nowrap;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.chip:hover {
  border-color: var(--acc);
  color: var(--acc);
}

.chip[aria-pressed="true"],
.chip.is-active {
  border-color: transparent;
  background: var(--acc);
  color: var(--ink-dark);
}

.chip--count {
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border-color: rgba(245, 237, 216, .2);
  font-size: 10px;
  letter-spacing: .1em;
}

.chip--count:hover {
  border-color: transparent;
  background: var(--acc);
  color: var(--ink-dark);
}

.chip__count {
  font-family: var(--mono);
  opacity: .7;
}

/* Small status badge. */
.badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .2em;
  white-space: nowrap;
}

.badge--solid {
  background: var(--acc);
  color: var(--ink-dark);
}

.badge--outline {
  border-color: rgba(245, 237, 216, .35);
}

.badge--dark {
  background: rgba(18, 17, 16, .85);
  color: var(--acc);
}

.badge--lg {
  height: 32px;
  padding: 0 14px;
  font-size: 11px;
}

/* Static outlined tag. */
.pill {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border: 1px solid rgba(245, 237, 216, .25);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .15em;
  white-space: nowrap;
}

.pill--sm {
  height: 24px;
  padding: 0 10px;
  border-color: rgba(245, 237, 216, .2);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .1em;
}

/* Solid small tag link, used for social links in the menu. */
.tag {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .15em;
  transition: color .2s ease;
}

.tag:hover {
  color: var(--acc);
}

.toggle {
  position: relative;
  flex: none;
  width: 60px;
  height: 34px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-pill);
  transition: background .25s ease, border-color .25s ease;
}

.toggle::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform .3s cubic-bezier(.3, 1.3, .5, 1), background .25s ease;
}

.toggle[aria-checked="true"] {
  border-color: transparent;
  background: var(--acc);
}

.toggle[aria-checked="true"]::after {
  background: var(--ink-dark);
  transform: translateX(26px);
}

.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--surface-inset);
}

.segmented__item {
  height: 36px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .08em;
  white-space: nowrap;
  transition: background .25s ease, color .25s ease;
}

.segmented__item[aria-pressed="true"] {
  background: var(--acc);
  color: var(--ink-dark);
}

.segmented--lg {
  gap: 8px;
  padding: 5px;
  background: var(--surface-2);
}

.segmented--lg .segmented__item {
  height: 42px;
  padding: 0 22px;
  letter-spacing: .15em;
}

.segmented--inset {
  gap: 6px;
  background: #0b0a09;
}

.segmented__item--mono {
  height: 32px;
  padding: 0 14px;
  font-family: var(--mono);
  letter-spacing: 0;
}

/* ==========================================================================
   09. Form fields
   ========================================================================== */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field__label {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .15em;
}

.field__control {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-input);
  background: var(--surface-2);
  font-size: 15px;
  transition: border-color .2s ease;
}

.field__control:focus {
  border-color: var(--acc);
  outline: 0;
}

.field__control[aria-invalid="true"] {
  border-color: var(--live);
}

.field__error {
  color: var(--live);
  font-size: 13px;
}

/* ==========================================================================
   10. Accordion
   ========================================================================== */
.accordion__item {
  border-bottom: 1px solid var(--line);
}

.accordion__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 20px 0;
  font-weight: 700;
  font-size: 18px;
  text-align: left;
}

.accordion__icon {
  flex: none;
  color: var(--acc);
  font-size: 24px;
  line-height: 1;
  transition: transform .3s ease;
}

.accordion__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}

.accordion__inner {
  overflow: hidden;
  font-size: 15px;
  line-height: 1.65;
}

.accordion__item.is-open .accordion__icon {
  transform: rotate(45deg);
}

.accordion__item.is-open .accordion__body {
  grid-template-rows: 1fr;
}

/* ==========================================================================
   11. Panels: card, paper, inset
   ========================================================================== */
.card {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface-1);
}

.paper {
  border-radius: var(--radius-panel);
  background: var(--cream);
  color: var(--ink-dark);
}

.inset {
  border-radius: 14px;
  background: var(--surface-inset);
}

/* Striped image placeholder with a small caption. */
.placeholder--label {
  display: flex;
  align-items: center;
  justify-content: center;
  color: color-mix(in srgb, var(--acc) 70%, transparent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .15em;
}

.placeholder--corner {
  display: flex;
  align-items: flex-end;
  padding: 14px;
  color: color-mix(in srgb, var(--acc) 70%, transparent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .15em;
}

/* Presenter photo inside a round slot: fills it and takes its radius. */
.avatar-photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

/* Photo slot: the size printed on it is the photo size to supply, measured at 2560 wide. */
.photo-slot {
  position: relative;
}

.slot-size[hidden] {
  display: none;
}

.slot-size {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: max-content;
  max-width: 100%;
  padding: 0 4px;
  color: var(--acc);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: .04em;
  text-align: center;
  text-transform: none;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.slot-size__name {
  display: block;
  margin-bottom: 3px;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: .15em;
}

.slot-size--small {
  padding: 0;
  font-size: 8px;
  letter-spacing: 0;
}

.slot-size--low {
  top: auto;
  bottom: 3px;
  transform: translateX(-50%);
}

.meter {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: var(--line);
}

.meter__fill {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--acc);
}

.stats {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
}

.stat {
  display: flex;
  flex-direction: column-reverse;
}

.stat__value {
  margin: 0;
  color: var(--acc);
  font-weight: 900;
}

.stat__label {
  color: var(--ink-60);
  letter-spacing: .2em;
}

.stats--sm {
  gap: 40px;
}

.stats--sm .stat__value {
  font-size: 26px;
}

.stats--sm .stat__label {
  margin-top: 2px;
  font-size: 10px;
}

.stats--lg {
  gap: 48px;
}

.stats--lg .stat__value {
  font-size: 48px;
}

.stats--lg .stat__label {
  margin-top: 4px;
  font-size: 12px;
}

/* A card whose whole area is one link: the link inside gets this class. */
.stretched::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Pointer tilt: [data-tilt] gets --tilt-x and --tilt-y from main.js. */
[data-tilt] {
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform .25s ease-out;
}

.glare {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 0%), rgba(255, 245, 210, .22), rgba(255, 245, 210, 0) 45%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.is-tilting > .glare {
  opacity: 1;
}

.glare--bright {
  background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 0%), rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 45%);
}

/* ==========================================================================
   12. Side panel (drawer)
   ========================================================================== */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--overlay);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility 0s linear .4s;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.backdrop.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .4s ease, visibility 0s;
}

/* ==========================================================================
   13. Vinyl record, equaliser, wave, logo
   ========================================================================== */
.vinyl {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  animation: spin 3s linear infinite;
  animation-play-state: var(--play-state);
}

.vinyl__disc {
  width: 100%;
  height: 100%;
}

.vinyl::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36.6%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--acc);
  transform: translate(-50%, -50%);
}

.vinyl--md {
  width: 46px;
  height: 46px;
}

.vinyl--fill {
  display: block;
  width: 100%;
  height: 100%;
}

.wave {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 2px;
  min-width: 40px;
  height: 26px;
  overflow: hidden;
}

.wave__bar {
  flex: 1;
  min-width: 2px;
  border-radius: 1px;
  background: color-mix(in srgb, var(--acc) 30%, transparent);
  animation-name: eq;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-play-state: var(--play-state);
}

.is-playing .topbar .wave__bar,
.is-playing .hero .wave__bar,
.is-playing .menu .wave__bar {
  background: var(--acc-80);
}

.eq {
  display: flex;
  flex: none;
  align-items: center;
  gap: 3px;
  height: 22px;
}

.eq__bar {
  width: 2.5px;
  height: 100%;
  background: var(--acc);
  animation: eq .9s ease-in-out infinite;
  animation-play-state: var(--play-state);
}

.eq__bar:nth-child(2) { animation-delay: .2s; }
.eq__bar:nth-child(3) { animation-delay: .4s; }
.eq__bar:nth-child(4) { animation-delay: .1s; }
.eq__bar:nth-child(5) { animation-delay: .3s; }

/* The wordmark is a mask, so it takes any colour through background-color. */
.logo {
  --logo: url("data:image/svg+xml,%3Csvg width='156' height='33' viewBox='0 0 156 33' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.875 32.065C4.23367 32.065 3.64433 31.935 3.107 31.675C2.57833 31.4063 2.12333 31.0553 1.742 30.622C1.36067 30.18 1.066 29.6773 0.858 29.114C0.65 28.5507 0.546 27.9743 0.546 27.385C0.546 26.7697 0.654333 26.1803 0.871 25.617C1.09633 25.0537 1.404 24.5553 1.794 24.122C2.184 23.6887 2.64333 23.3463 3.172 23.095C3.70067 22.835 4.27267 22.705 4.888 22.705C5.52933 22.705 6.11433 22.8437 6.643 23.121C7.18033 23.3897 7.63533 23.745 8.008 24.187C8.38933 24.629 8.684 25.1317 8.892 25.695C9.1 26.2497 9.204 26.8173 9.204 27.398C9.204 28.0133 9.09133 28.6027 8.866 29.166C8.64933 29.7293 8.346 30.2277 7.956 30.661C7.57467 31.0857 7.11967 31.428 6.591 31.688C6.06233 31.9393 5.49033 32.065 4.875 32.065ZM1.456 27.385C1.456 27.8877 1.53833 28.373 1.703 28.841C1.86767 29.3003 2.10167 29.712 2.405 30.076C2.70833 30.4313 3.068 30.7173 3.484 30.934C3.9 31.142 4.36367 31.246 4.875 31.246C5.395 31.246 5.86733 31.1333 6.292 30.908C6.71667 30.6827 7.07633 30.388 7.371 30.024C7.66567 29.66 7.891 29.2483 8.047 28.789C8.21167 28.3297 8.294 27.8617 8.294 27.385C8.294 26.8823 8.20733 26.4013 8.034 25.942C7.86933 25.474 7.63533 25.0623 7.332 24.707C7.02867 24.3517 6.669 24.07 6.253 23.862C5.837 23.6453 5.37767 23.537 4.875 23.537C4.355 23.537 3.88267 23.6497 3.458 23.875C3.03333 24.0917 2.67367 24.382 2.379 24.746C2.08433 25.11 1.85467 25.5217 1.69 25.981C1.534 26.4403 1.456 26.9083 1.456 27.385ZM12.2197 24.46V32H11.3097V22.77H12.0117L18.1217 30.453V22.783H19.0317V32H18.2387L12.2197 24.46ZM21.7417 32V22.77H22.6517V31.194H27.9817V32H21.7417ZM29.7108 32V22.77H30.6208V32H29.7108ZM34.2354 24.46V32H33.3254V22.77H34.0274L40.1374 30.453V22.783H41.0474V32H40.2544L34.2354 24.46ZM49.9584 31.194V32H43.7574V22.77H49.8414V23.576H44.6674V26.904H49.1784V27.671H44.6674V31.194H49.9584ZM55.7727 32V22.77H59.6727C60.0714 22.77 60.4354 22.8567 60.7647 23.03C61.1027 23.1947 61.3931 23.4157 61.6357 23.693C61.8784 23.9617 62.0647 24.2693 62.1947 24.616C62.3334 24.9627 62.4027 25.3137 62.4027 25.669C62.4027 26.007 62.3507 26.332 62.2467 26.644C62.1514 26.9473 62.0127 27.2247 61.8307 27.476C61.6574 27.7187 61.4451 27.9267 61.1937 28.1C60.9424 28.2647 60.6607 28.3773 60.3487 28.438L62.6107 32H61.5837L59.4127 28.594H56.6827V32H55.7727ZM56.6827 27.788H59.6987C59.9674 27.788 60.2101 27.7317 60.4267 27.619C60.6521 27.4977 60.8427 27.3373 60.9987 27.138C61.1547 26.9387 61.2761 26.7133 61.3627 26.462C61.4494 26.2107 61.4927 25.9463 61.4927 25.669C61.4927 25.3917 61.4407 25.1273 61.3367 24.876C61.2414 24.616 61.1071 24.3907 60.9337 24.2C60.7691 24.0093 60.5697 23.8577 60.3357 23.745C60.1104 23.6323 59.8721 23.576 59.6207 23.576H56.6827V27.788ZM67.3763 22.77H68.1433L71.9783 32H71.0163L69.8203 29.114H65.6733L64.4903 32H63.5153L67.3763 22.77ZM69.6123 28.399L67.7533 23.836L65.8683 28.399H69.6123ZM73.6914 32V22.77H76.8244C77.5611 22.77 78.2024 22.8913 78.7484 23.134C79.3031 23.3767 79.7624 23.706 80.1264 24.122C80.4991 24.538 80.7764 25.0277 80.9584 25.591C81.1491 26.1457 81.2444 26.7393 81.2444 27.372C81.2444 28.074 81.1404 28.711 80.9324 29.283C80.7244 29.8463 80.4254 30.3317 80.0354 30.739C79.6541 31.1377 79.1904 31.4497 78.6444 31.675C78.1071 31.8917 77.5004 32 76.8244 32H73.6914ZM80.3344 27.372C80.3344 26.8173 80.2564 26.3103 80.1004 25.851C79.9444 25.383 79.7148 24.98 79.4114 24.642C79.1168 24.304 78.7527 24.044 78.3194 23.862C77.8861 23.6713 77.3877 23.576 76.8244 23.576H74.6014V31.194H76.8244C77.3964 31.194 77.8991 31.0987 78.3324 30.908C78.7744 30.7087 79.1427 30.44 79.4374 30.102C79.7321 29.7553 79.9531 29.3523 80.1004 28.893C80.2564 28.425 80.3344 27.918 80.3344 27.372ZM83.3744 32V22.77H84.2844V32H83.3744ZM90.707 32.065C90.0657 32.065 89.4763 31.935 88.939 31.675C88.4103 31.4063 87.9553 31.0553 87.574 30.622C87.1927 30.18 86.898 29.6773 86.69 29.114C86.482 28.5507 86.378 27.9743 86.378 27.385C86.378 26.7697 86.4863 26.1803 86.703 25.617C86.9283 25.0537 87.236 24.5553 87.626 24.122C88.016 23.6887 88.4753 23.3463 89.004 23.095C89.5327 22.835 90.1047 22.705 90.72 22.705C91.3613 22.705 91.9463 22.8437 92.475 23.121C93.0123 23.3897 93.4673 23.745 93.84 24.187C94.2213 24.629 94.516 25.1317 94.724 25.695C94.932 26.2497 95.036 26.8173 95.036 27.398C95.036 28.0133 94.9233 28.6027 94.698 29.166C94.4813 29.7293 94.178 30.2277 93.788 30.661C93.4067 31.0857 92.9517 31.428 92.423 31.688C91.8943 31.9393 91.3223 32.065 90.707 32.065ZM87.288 27.385C87.288 27.8877 87.3703 28.373 87.535 28.841C87.6997 29.3003 87.9337 29.712 88.237 30.076C88.5403 30.4313 88.9 30.7173 89.316 30.934C89.732 31.142 90.1957 31.246 90.707 31.246C91.227 31.246 91.6993 31.1333 92.124 30.908C92.5487 30.6827 92.9083 30.388 93.203 30.024C93.4977 29.66 93.723 29.2483 93.879 28.789C94.0437 28.3297 94.126 27.8617 94.126 27.385C94.126 26.8823 94.0393 26.4013 93.866 25.942C93.7013 25.474 93.4673 25.0623 93.164 24.707C92.8607 24.3517 92.501 24.07 92.085 23.862C91.669 23.6453 91.2097 23.537 90.707 23.537C90.187 23.537 89.7147 23.6497 89.29 23.875C88.8653 24.0917 88.5057 24.382 88.211 24.746C87.9163 25.11 87.6867 25.5217 87.522 25.981C87.366 26.4403 87.288 26.9083 87.288 27.385ZM106.24 24.499C105.98 24.2043 105.633 23.966 105.2 23.784C104.767 23.602 104.273 23.511 103.718 23.511C102.903 23.511 102.31 23.667 101.937 23.979C101.564 24.2823 101.378 24.6983 101.378 25.227C101.378 25.5043 101.426 25.734 101.521 25.916C101.625 26.0893 101.781 26.241 101.989 26.371C102.197 26.501 102.461 26.6137 102.782 26.709C103.111 26.8043 103.497 26.8997 103.939 26.995C104.433 27.099 104.875 27.216 105.265 27.346C105.664 27.476 106.002 27.6407 106.279 27.84C106.556 28.0307 106.769 28.2647 106.916 28.542C107.063 28.8193 107.137 29.166 107.137 29.582C107.137 30.0067 107.055 30.375 106.89 30.687C106.725 30.999 106.496 31.259 106.201 31.467C105.906 31.675 105.555 31.831 105.148 31.935C104.741 32.0303 104.294 32.078 103.809 32.078C102.379 32.078 101.144 31.6317 100.104 30.739L100.559 29.998C100.724 30.1713 100.919 30.336 101.144 30.492C101.378 30.648 101.634 30.7867 101.911 30.908C102.197 31.0207 102.5 31.1117 102.821 31.181C103.142 31.2417 103.48 31.272 103.835 31.272C104.572 31.272 105.144 31.142 105.551 30.882C105.967 30.6133 106.175 30.2103 106.175 29.673C106.175 29.387 106.114 29.1487 105.993 28.958C105.881 28.7587 105.707 28.5897 105.473 28.451C105.239 28.3037 104.949 28.178 104.602 28.074C104.256 27.97 103.853 27.866 103.393 27.762C102.908 27.6493 102.483 27.5323 102.119 27.411C101.755 27.2897 101.447 27.138 101.196 26.956C100.945 26.774 100.754 26.5573 100.624 26.306C100.503 26.046 100.442 25.7297 100.442 25.357C100.442 24.9323 100.52 24.5553 100.676 24.226C100.841 23.888 101.07 23.6107 101.365 23.394C101.66 23.1687 102.007 22.9997 102.405 22.887C102.804 22.7657 103.246 22.705 103.731 22.705C104.346 22.705 104.892 22.8003 105.369 22.991C105.854 23.173 106.292 23.433 106.682 23.771L106.24 24.499ZM115.62 23.576H112.331V32H111.421V23.576H108.132V22.77H115.62V23.576ZM119.339 22.77H120.106L123.941 32H122.979L121.783 29.114H117.636L116.453 32H115.478L119.339 22.77ZM121.575 28.399L119.716 23.836L117.831 28.399H121.575ZM131.292 23.576H128.003V32H127.093V23.576H123.804V22.77H131.292V23.576ZM133.064 32V22.77H133.974V32H133.064ZM140.397 32.065C139.756 32.065 139.166 31.935 138.629 31.675C138.1 31.4063 137.645 31.0553 137.264 30.622C136.883 30.18 136.588 29.6773 136.38 29.114C136.172 28.5507 136.068 27.9743 136.068 27.385C136.068 26.7697 136.176 26.1803 136.393 25.617C136.618 25.0537 136.926 24.5553 137.316 24.122C137.706 23.6887 138.165 23.3463 138.694 23.095C139.223 22.835 139.795 22.705 140.41 22.705C141.051 22.705 141.636 22.8437 142.165 23.121C142.702 23.3897 143.157 23.745 143.53 24.187C143.911 24.629 144.206 25.1317 144.414 25.695C144.622 26.2497 144.726 26.8173 144.726 27.398C144.726 28.0133 144.613 28.6027 144.388 29.166C144.171 29.7293 143.868 30.2277 143.478 30.661C143.097 31.0857 142.642 31.428 142.113 31.688C141.584 31.9393 141.012 32.065 140.397 32.065ZM136.978 27.385C136.978 27.8877 137.06 28.373 137.225 28.841C137.39 29.3003 137.624 29.712 137.927 30.076C138.23 30.4313 138.59 30.7173 139.006 30.934C139.422 31.142 139.886 31.246 140.397 31.246C140.917 31.246 141.389 31.1333 141.814 30.908C142.239 30.6827 142.598 30.388 142.893 30.024C143.188 29.66 143.413 29.2483 143.569 28.789C143.734 28.3297 143.816 27.8617 143.816 27.385C143.816 26.8823 143.729 26.4013 143.556 25.942C143.391 25.474 143.157 25.0623 142.854 24.707C142.551 24.3517 142.191 24.07 141.775 23.862C141.359 23.6453 140.9 23.537 140.397 23.537C139.877 23.537 139.405 23.6497 138.98 23.875C138.555 24.0917 138.196 24.382 137.901 24.746C137.606 25.11 137.377 25.5217 137.212 25.981C137.056 26.4403 136.978 26.9083 136.978 27.385ZM147.742 24.46V32H146.832V22.77H147.534L153.644 30.453V22.783H154.554V32H153.761L147.742 24.46Z' fill='black'%3E%3C/path%3E%3Cpath d='M1.334 19V2.9H8.372L22.724 11.778V2.9H29.854V19H22.816L8.464 10.122V19H1.334ZM44.3564 19.368C41.4431 19.368 38.9131 19.0383 36.7664 18.379C34.6351 17.7043 32.9867 16.746 31.8214 15.504C30.6714 14.262 30.0964 12.79 30.0964 11.088V10.812C30.0964 9.09467 30.6714 7.62267 31.8214 6.396C32.9867 5.154 34.6351 4.20333 36.7664 3.544C38.9131 2.86933 41.4431 2.532 44.3564 2.532C47.2851 2.532 49.8151 2.86933 51.9464 3.544C54.0777 4.20333 55.7184 5.154 56.8684 6.396C58.0337 7.62267 58.6164 9.09467 58.6164 10.812V11.088C58.6164 12.79 58.0337 14.262 56.8684 15.504C55.7184 16.746 54.0777 17.7043 51.9464 18.379C49.8151 19.0383 47.2851 19.368 44.3564 19.368ZM44.3564 14.078C46.4571 14.078 48.1131 13.8173 49.3244 13.296C50.5511 12.7593 51.1644 12.0233 51.1644 11.088V10.812C51.1644 9.87667 50.5511 9.14833 49.3244 8.627C48.1131 8.09033 46.4571 7.822 44.3564 7.822C42.2711 7.822 40.6151 8.09033 39.3884 8.627C38.1617 9.14833 37.5484 9.87667 37.5484 10.812V11.088C37.5484 12.0233 38.1617 12.7593 39.3884 13.296C40.6151 13.8173 42.2711 14.078 44.3564 14.078ZM64.8458 19L55.7378 2.9H63.7188L68.8478 13.02L74.2068 2.9H81.1758L86.3048 13.02L91.6638 2.9H99.6448L90.5138 19H82.3028L77.6798 10.214L73.0568 19H64.8458ZM111.012 19.368C108.099 19.368 105.569 19.0383 103.422 18.379C101.291 17.7043 99.6427 16.746 98.4774 15.504C97.3274 14.262 96.7524 12.79 96.7524 11.088V10.812C96.7524 9.09467 97.3274 7.62267 98.4774 6.396C99.6427 5.154 101.291 4.20333 103.422 3.544C105.569 2.86933 108.099 2.532 111.012 2.532C113.941 2.532 116.471 2.86933 118.602 3.544C120.734 4.20333 122.374 5.154 123.524 6.396C124.69 7.62267 125.272 9.09467 125.272 10.812V11.088C125.272 12.79 124.69 14.262 123.524 15.504C122.374 16.746 120.734 17.7043 118.602 18.379C116.471 19.0383 113.941 19.368 111.012 19.368ZM111.012 14.078C113.113 14.078 114.769 13.8173 115.98 13.296C117.207 12.7593 117.82 12.0233 117.82 11.088V10.812C117.82 9.87667 117.207 9.14833 115.98 8.627C114.769 8.09033 113.113 7.822 111.012 7.822C108.927 7.822 107.271 8.09033 106.044 8.627C104.818 9.14833 104.204 9.87667 104.204 10.812V11.088C104.204 12.0233 104.818 12.7593 106.044 13.296C107.271 13.8173 108.927 14.078 111.012 14.078ZM125.504 19V2.9H132.542L146.894 11.778V2.9H154.024V19H146.986L132.634 10.122V19H125.504Z' fill='black'%3E%3C/path%3E%3C/svg%3E");
  display: block;
  flex: none;
  width: 228px;
  height: 48px;
  background-color: var(--acc);
  -webkit-mask-image: var(--logo);
  mask-image: var(--logo);
  -webkit-mask-position: left center;
  mask-position: left center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* ==========================================================================
   14. Player capsule
   ========================================================================== */
.player {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 14px;
  min-width: 0;
  height: 56px;
  padding: 0 18px 0 6px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
}

.player__now {
  display: flex;
  flex: none;
  flex-direction: column;
  min-width: 0;
  max-width: 260px;
}

.player__status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--acc);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .2em;
  white-space: nowrap;
}

.player__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(245, 237, 216, .4);
}

.is-playing .player__dot {
  background: var(--live);
}

.player__track {
  font-weight: 800;
  font-size: 13px;
}

.player__artist {
  color: var(--ink-60);
  font-size: 11px;
}

.player__time {
  flex: none;
  color: var(--acc);
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
}

.player__stat {
  display: flex;
  flex: none;
  flex-direction: column;
  white-space: nowrap;
}

.player__stat--end {
  align-items: flex-end;
}

.player__stat-label {
  color: rgba(245, 237, 216, .6);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .2em;
}

.player__stat-value {
  font-weight: 800;
  font-size: 13px;
}

.player__next {
  font-weight: 700;
  font-size: 12px;
}

.player__volume {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
}

.player__volume-icon {
  color: var(--ink-75);
  font-size: 12px;
}

.player__volume input {
  width: clamp(100px, 7.8vw, 150px);
}

/* ==========================================================================
   15. Top bar
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(18, 17, 16, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.topbar__row {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 36px);
  height: var(--topbar-height);
  padding: 0 var(--gutter);
}

.rule {
  height: 1px;
  margin: 0 var(--gutter);
  background: var(--line);
}

.rule--section {
  margin: var(--section-gap) var(--gutter);
}

.rule--flush-top {
  margin-top: 0;
}

/* ==========================================================================
   16. Menu drawer
   ========================================================================== */
.menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: min(520px, 94vw);
  padding: 26px 40px 30px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-left: 1px solid var(--acc-25);
  background: var(--bg);
  visibility: hidden;
  transform: translateX(100%);
  transition: transform .6s var(--ease-drawer), visibility 0s linear .6s;
}

/* "transform: none" when open: fixed fly-outs inside must not be clipped by the panel. */
.menu.is-open {
  visibility: visible;
  transform: none;
  transition: transform .6s var(--ease-drawer), visibility 0s;
}

.menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu__title {
  color: var(--acc);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .3em;
}

.menu__close {
  width: 48px;
  height: 48px;
  font-weight: 200;
  font-size: 40px;
  line-height: 1;
}

.menu__now {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--surface-2);
}

.menu__now-text {
  flex: 1;
  min-width: 0;
}

.menu__now-label {
  color: var(--acc);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .15em;
}

.menu__now-track {
  margin-top: 3px;
  font-weight: 800;
  font-size: 15px;
}

.menu__now-artist {
  color: var(--ink-60);
  font-weight: 400;
}

.menu__nav {
  margin-top: 16px;
}

.menu__item {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1);
}

.menu.is-open .menu__item {
  opacity: 1;
  transform: none;
}

.menu.is-open .menu__item:nth-child(1) { transition-delay: .25s; }
.menu.is-open .menu__item:nth-child(2) { transition-delay: .3s; }
.menu.is-open .menu__item:nth-child(3) { transition-delay: .35s; }
.menu.is-open .menu__item:nth-child(4) { transition-delay: .4s; }
.menu.is-open .menu__item:nth-child(5) { transition-delay: .45s; }
.menu.is-open .menu__item:nth-child(6) { transition-delay: .5s; }
.menu.is-open .menu__item:nth-child(7) { transition-delay: .55s; }
.menu.is-open .menu__item:nth-child(8) { transition-delay: .6s; }

.menu__link {
  position: relative;
  display: block;
  width: calc(100% + 28px);
  margin: 0 -14px;
  padding: 9px 14px;
  overflow: hidden;
  border-radius: 10px;
  text-align: left;
  transition: color .25s ease;
}

.menu__link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--acc);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-fill);
}

.menu__row {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.menu__num {
  width: 22px;
  color: var(--ink-75);
  font-family: var(--mono);
  font-size: 11px;
  transition: color .25s ease;
}

.menu__label {
  font-weight: 300;
  font-size: 26px;
  letter-spacing: -.01em;
}

.menu__tag {
  margin-left: auto;
  color: var(--ink-75);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .15em;
  white-space: nowrap;
  transition: color .25s ease;
}

.menu__chevron {
  font-size: 18px;
  transition: transform .3s ease;
}

.menu__desc-wrap {
  position: relative;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}

.menu__desc-clip {
  overflow: hidden;
}

.menu__desc {
  display: block;
  padding: 4px 0 2px 38px;
  font-size: 13px;
  line-height: 1.45;
}

.menu__link:hover,
.menu__link:focus-visible,
.menu__link[aria-current="page"],
.menu__item.is-open > .menu__link {
  color: var(--ink-dark);
}

.menu__link:hover::before,
.menu__link:focus-visible::before,
.menu__link[aria-current="page"]::before,
.menu__item.is-open > .menu__link::before {
  transform: scaleX(1);
}

.menu__link:hover .menu__label,
.menu__link:focus-visible .menu__label,
.menu__link[aria-current="page"] .menu__label,
.menu__item.is-open > .menu__link .menu__label {
  font-weight: 700;
}

.menu__link:hover .menu__num,
.menu__link:hover .menu__tag,
.menu__link:focus-visible .menu__num,
.menu__link:focus-visible .menu__tag,
.menu__link[aria-current="page"] .menu__num,
.menu__link[aria-current="page"] .menu__tag,
.menu__item.is-open > .menu__link .menu__num,
.menu__item.is-open > .menu__link .menu__tag {
  color: var(--ink-dark);
}

.menu__link:hover .menu__desc-wrap,
.menu__link:focus-visible .menu__desc-wrap {
  grid-template-rows: 1fr;
}

/* Fly-out next to the panel; becomes an inline accordion on narrow screens. */
.menu__fly {
  position: fixed;
  right: min(520px, 94vw);
  top: var(--fly-top, 12px);
  z-index: 49;
  width: 280px;
  padding: 22px 28px;
  background: var(--acc);
  box-shadow: -20px 20px 60px rgba(0, 0, 0, .45);
  color: var(--ink-dark);
  opacity: 0;
  visibility: hidden;
  transform: translateX(24px);
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}

.menu__item.is-open .menu__fly {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .3s ease, transform .3s ease, visibility 0s;
}

.menu__fly-title {
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .3em;
}

.menu__sub-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 -12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(18, 17, 16, .18);
  border-radius: 8px;
  font-weight: 500;
  font-size: 18px;
  transition: background .2s ease, color .2s ease;
}

.menu__sub-text,
.menu__sub-arrow {
  transition: transform .25s ease;
}

.menu__sub-arrow {
  font-size: 14px;
}

.menu__sub-link:hover,
.menu__sub-link:focus-visible,
.menu__sub-link[aria-current="page"] {
  background: var(--ink-dark);
  color: var(--acc);
  font-weight: 800;
}

.menu__sub-link:hover .menu__sub-text,
.menu__sub-link:focus-visible .menu__sub-text {
  transform: translateX(6px);
}

.menu__sub-link:hover .menu__sub-arrow,
.menu__sub-link:focus-visible .menu__sub-arrow {
  transform: translateX(4px);
}

.menu__foot {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
  padding-top: 26px;
}

.menu__theme-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .3em;
}

.menu__theme-count {
  color: var(--ink-50);
  letter-spacing: .15em;
}

.swatches {
  display: flex;
  gap: 4px;
  height: 44px;
  margin-top: 12px;
}

.swatch {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 8px;
  overflow: hidden;
  border-radius: 10px;
  color: var(--ink-dark);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .12em;
  white-space: nowrap;
  transition: flex .45s var(--ease-fill);
}

.swatch__name {
  opacity: 0;
  transition: opacity .3s ease .1s;
}

.swatch[aria-pressed="true"] {
  flex-grow: 5;
}

.swatch[aria-pressed="true"] .swatch__name {
  opacity: 1;
}

.swatch--amber { background: #f9c22e; }
.swatch--tangerine { background: #ff6a2b; }
.swatch--cherry { background: #e5383b; }
.swatch--mint { background: #8fe3b6; }
.swatch--lilac { background: #b8a4ff; }
.swatch--pink { background: #ff4f9a; }
.swatch--bone { background: #efe6d2; }

.menu__actions,
.menu__social {
  display: flex;
  gap: 10px;
}

.menu__social {
  flex-wrap: wrap;
  gap: 8px;
}

/* ==========================================================================
   17. Page title block
   ========================================================================== */
.page-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, clamp(240px, 13.5vw, 320px));
  margin: 0 var(--gutter);
}

.page-head__main {
  min-width: 0;
  padding: 5px 0 22px;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .3em;
}

.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.crumbs__item {
  display: flex;
  gap: 12px;
  color: var(--acc);
}

.crumbs__item + .crumbs__item::before {
  content: "/";
}

.crumbs__link {
  color: var(--ink-60);
  transition: color .2s ease;
}

.crumbs__link:hover {
  color: var(--acc);
}

.page-title {
  margin-top: clamp(20px, 2vw, 36px);
}

.page-title__thin,
.page-title__bold {
  display: block;
}

.page-title__thin {
  font-weight: 200;
  font-size: clamp(36px, 3.6vw, 68px);
  line-height: .9;
  letter-spacing: -.03em;
}

.page-title__bold {
  color: var(--acc);
  font-weight: 900;
  font-size: clamp(56px, 6.3vw, 126px);
  line-height: .88;
  letter-spacing: -.045em;
}

.page-intro {
  margin-top: 14px;
  overflow: hidden;
  color: var(--ink-75);
  font-size: 16px;
  line-height: 1.6;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.info-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px 22px 20px;
  border-left: 1px solid var(--line);
  transition: background .3s ease, color .3s ease;
}

.info-cell::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--acc);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-fill);
}

.info-cell:hover,
.info-cell:focus-visible {
  background: var(--acc-07);
  color: var(--acc);
}

.info-cell:hover::before,
.info-cell:focus-visible::before {
  transform: scaleX(1);
}

.info-cell__head {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .32em;
}

.info-cell__label {
  color: var(--ink-60);
}

.info-cell__aside {
  color: var(--ink-60);
  font-family: var(--mono);
  letter-spacing: .15em;
}

.info-cell__aside--live {
  color: var(--acc);
}

.info-cell__body {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  padding: 18px 0;
  white-space: nowrap;
}

.info-cell__value {
  font-weight: 700;
  font-size: clamp(20px, 1.5vw, 30px);
  line-height: 1;
  letter-spacing: .02em;
}

.info-cell__unit {
  font-weight: 300;
  font-style: italic;
  font-size: clamp(16px, 1.1vw, 22px);
}

.info-cell__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
}

.info-cell__note {
  min-width: 0;
  color: var(--ink-75);
}

.info-cell__arrow {
  flex: none;
  font-size: 16px;
  transition: transform .3s ease;
}

.info-cell:hover .info-cell__arrow,
.info-cell:focus-visible .info-cell__arrow {
  transform: translate(4px, -4px);
}

.segments {
  display: flex;
  gap: 4px;
}

.segments__item {
  flex: 1;
  height: 5px;
  border-radius: 1px;
  background: rgba(245, 237, 216, .18);
}

.segments__item.is-on {
  background: var(--acc);
}

.info-cell__caption {
  margin-top: 12px;
  color: var(--ink-60);
  font-weight: 500;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: .14em;
}

/* ==========================================================================
   18. Page layout and sections
   ========================================================================== */
.page-main {
  padding: var(--section-gap) var(--gutter) 160px;
}

.section + .section {
  margin-top: var(--section-gap);
  padding-top: var(--section-gap);
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Inner page kit: the blocks every inner page is built from
   -------------------------------------------------------------------------- */
.section-head--inner {
  gap: 24px 40px;
  margin-bottom: 44px;
}

.section-head--sm {
  margin-bottom: 40px;
}

.section-head--lg {
  margin-bottom: 48px;
}

.section-note {
  max-width: 420px;
  color: rgba(245, 237, 216, .65);
  font-size: 15px;
  line-height: 1.6;
}

.lead {
  max-width: 520px;
  margin-top: 22px;
  color: rgba(245, 237, 216, .72);
  font-size: 17px;
  line-height: 1.65;
}

.meta--plain {
  letter-spacing: 0;
  text-transform: none;
}

.meta--xs {
  font-size: 10px;
}

.meta--sm {
  font-size: 12px;
}

.meta--md {
  font-size: 13px;
}

.meta--accent {
  color: var(--acc);
}

.meta--dim {
  color: var(--ink-60);
}

.stat-label {
  color: rgba(245, 237, 216, .6);
  font-size: 10px;
  letter-spacing: .2em;
}

/* Two equal columns that fold when there is no room. */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  gap: clamp(30px, 4vw, 70px);
  align-items: stretch;
}

/* Outlined display letters: show initials, step numbers. */
.outline-text {
  color: transparent;
  font-family: var(--font);
  font-weight: 900;
  line-height: .85;
  letter-spacing: -.04em;
  -webkit-text-stroke: 1.5px var(--acc);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip--filter {
  height: 40px;
  padding: 0 16px;
  border-color: rgba(245, 237, 216, .2);
}

.btn--md {
  height: 46px;
  padding: 0 20px;
  font-size: 12px;
}

.btn--wide {
  width: 100%;
}

.btn--outline-accent {
  border-color: var(--acc);
  color: var(--acc);
}

.btn--outline-accent[aria-pressed="true"] {
  background: var(--acc);
  color: var(--ink-dark);
}

/* Round portrait placeholder. */
.avatar {
  display: block;
  flex: none;
  border: 2px solid var(--acc);
  border-radius: 50%;
}

/* Horizontal scroller that holds focus for keyboard users. */
.scroll-x {
  overflow-x: auto;
  scrollbar-width: none;
}

.pill-solid {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--acc);
  color: var(--ink-dark);
  font-family: var(--font);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .15em;
  white-space: nowrap;
}

.pill-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--live);
  color: var(--on-live);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: .2em;
}

.pill-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--on-live);
}

/* Numbered step row: outlined number, title, one line of text. */
.steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 26px;
}

.step {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--surface-2);
}

.step__num {
  font-size: 40px;
}

.step__title {
  display: block;
  font-weight: 700;
  font-size: 17px;
}

.step__text {
  color: rgba(245, 237, 216, .65);
  font-size: 13px;
}

/* Form panel with a confirmation that replaces the fields. */
.form-panel {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid color-mix(in srgb, var(--acc) 30%, transparent);
  border-radius: var(--radius-card);
  background: var(--surface-2);
}

.form-panel__body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.form-done {
  padding: 60px 10px;
  text-align: center;
}

.form-done[hidden],
.form-panel__body[hidden] {
  display: none;
}

.form-done__mark {
  color: var(--acc);
  font-size: 48px;
}

.form-done__title {
  margin-top: 10px;
  font-weight: 900;
  font-size: 28px;
}

.form-done__text {
  margin-top: 8px;
  color: rgba(245, 237, 216, .7);
  font-size: 15px;
}

.input {
  display: block;
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1.5px solid rgba(245, 237, 216, .18);
  border-radius: var(--radius-input);
  background: var(--bg);
  font-size: 16px;
  transition: border-color .2s ease;
}

.input:focus {
  border-color: var(--acc);
  outline: 0;
}

.input::placeholder {
  color: var(--ink-60);
}

.input--area {
  height: auto;
  min-height: 120px;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.5;
  resize: vertical;
}

/* Three figures in a row, split by hairlines. */
.figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.figure {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  padding: 14px 0 14px 16px;
  border-left: 1px solid var(--line);
}

.figure:first-child {
  padding-left: 0;
  border-left: 0;
}

.figure__value {
  margin: 0;
  font-weight: 900;
  font-size: 28px;
}

.figure:first-child .figure__value {
  color: var(--acc);
}

.page-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 640px;
  padding: 20px;
  border: 1.5px dashed var(--acc-35);
  border-radius: 16px;
  color: var(--ink-60);
  font-size: 13px;
  text-align: center;
}

.page-placeholder__title {
  font-weight: 600;
  letter-spacing: .3em;
}

.page-placeholder__note {
  max-width: 640px;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

/* ==========================================================================
   19. Footer
   The desktop footer is a 1440 x 650 artboard: --f is one artboard pixel.
   ========================================================================== */
.footer {
  --f: calc(100vw / 1440);
  position: relative;
  width: 100%;
  height: calc(650 * var(--f));
  overflow: hidden;
  background: var(--acc);
  color: var(--ink-dark);
}

.footer__letters {
  position: absolute;
  left: calc(-20 * var(--f));
  right: calc(-20 * var(--f));
  top: calc(484 * var(--f));
  color: transparent;
  font-weight: 900;
  font-size: calc(470 * var(--f));
  line-height: .8;
  letter-spacing: -.05em;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  -webkit-text-stroke: calc(2 * var(--f)) rgba(18, 17, 16, .22);
}

.footer__intro {
  position: absolute;
  left: calc(60 * var(--f));
  top: calc(76 * var(--f));
  width: calc(620 * var(--f));
}

.footer__kicker {
  display: flex;
  align-items: center;
  gap: calc(16 * var(--f));
  font-weight: 600;
  font-size: calc(12 * var(--f));
  letter-spacing: .25em;
}

.footer__badge {
  display: inline-flex;
  align-items: center;
  gap: calc(8 * var(--f));
  height: calc(32 * var(--f));
  padding: 0 calc(16 * var(--f));
  border-radius: var(--radius-pill);
  background: var(--ink-dark);
  color: var(--acc);
}

.footer__tick {
  width: calc(1.5 * var(--f));
  height: calc(22 * var(--f));
  background: var(--ink-dark);
}

.footer__headline {
  display: flex;
  gap: calc(22 * var(--f));
  margin-top: calc(34 * var(--f));
}

.footer__headline::before {
  content: "";
  flex: none;
  width: calc(2 * var(--f));
  margin-top: calc(12 * var(--f));
  background: var(--ink-dark);
}

.footer__title-thin,
.footer__title-bold {
  display: block;
  line-height: .92;
}

.footer__title-thin {
  font-weight: 200;
  font-size: calc(104 * var(--f));
  letter-spacing: -.02em;
}

.footer__title-bold {
  font-weight: 900;
  font-size: calc(124 * var(--f));
  letter-spacing: -.045em;
  white-space: nowrap;
}

.footer__lead {
  margin-top: calc(26 * var(--f));
  font-size: calc(22 * var(--f));
  line-height: 1.4;
}

.footer__cta {
  display: flex;
  gap: calc(16 * var(--f));
  margin-top: calc(32 * var(--f));
}

.footer__cta .btn {
  gap: calc(10 * var(--f));
  height: calc(58 * var(--f));
  padding: 0 calc(28 * var(--f));
  font-weight: 700;
  font-size: calc(14 * var(--f));
  letter-spacing: .08em;
}

.footer__cta .btn--ink {
  gap: calc(5 * var(--f));
  padding: 0 calc(30 * var(--f));
}

.footer__side {
  position: absolute;
  right: calc(60 * var(--f));
  top: calc(76 * var(--f));
  z-index: 3;
  width: calc(580 * var(--f));
}

.footer__cue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(46 * var(--f));
  padding: 0 calc(18 * var(--f));
  border-radius: calc(8 * var(--f));
  background: var(--ink-dark);
  color: var(--acc);
  font-family: var(--mono);
  font-size: calc(14 * var(--f));
  letter-spacing: .12em;
}

.footer__tracks-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: calc(20 * var(--f)) 0 calc(10 * var(--f));
  border-bottom: calc(2 * var(--f)) solid var(--ink-dark);
}

.footer__tracks-title {
  font-weight: 900;
  font-size: calc(40 * var(--f));
  letter-spacing: -.02em;
}

.footer__tracks-meta {
  font-weight: 600;
  font-size: calc(11 * var(--f));
  letter-spacing: .3em;
}

.footer__tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: calc(32 * var(--f));
}

.footer__track {
  display: grid;
  grid-template-columns: calc(38 * var(--f)) 1fr auto;
  align-items: center;
  margin: 0 calc(-10 * var(--f));
  padding: calc(14 * var(--f)) calc(10 * var(--f));
  border-bottom: 1px solid var(--line-dark);
  transition: background .2s ease, color .2s ease;
}

.footer__track:hover,
.footer__track:focus-visible {
  background: var(--ink-dark);
  color: var(--acc);
}

.footer__track-code {
  font-weight: 600;
  font-size: calc(12 * var(--f));
}

.footer__track-name {
  font-weight: 600;
  font-size: calc(18 * var(--f));
}

.footer__track-time {
  font-size: calc(12 * var(--f));
}

.footer__social {
  display: flex;
  gap: calc(26 * var(--f));
  margin-top: calc(26 * var(--f));
  font-weight: 700;
  font-size: calc(12 * var(--f));
  letter-spacing: .25em;
}

.footer__top {
  position: absolute;
  right: calc(60 * var(--f));
  bottom: calc(84 * var(--f));
  z-index: 3;
  display: block;
  width: calc(124 * var(--f));
  height: calc(124 * var(--f));
}

/* The floating copy made by main.js: the same badge on an accent disc, fixed in the corner. */
.footer__top.footer__top--float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  margin: 0;
  z-index: 45;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  visibility: hidden;
  opacity: 0;
  transform: translateY(16px) scale(.8);
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}

.footer__top.footer__top--float.is-shown {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity .3s ease, transform .3s ease;
}

.footer__top--float .footer__top-arrow {
  width: 44px;
  height: 44px;
  font-size: 18px;
}

/* Home page: floating copy of the menu button, fixed in the top corner (main.js shows it). */
.burger.burger--float {
  position: fixed;
  right: 24px;
  top: 24px;
  z-index: 45;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-16px) scale(.8);
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}

.burger.burger--float.is-shown {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity .3s ease, transform .3s ease;
}

.burger--float span {
  width: 42%;
  height: 2.5px;
  background: var(--ink-dark);
}

.footer__top-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 12s linear infinite;
}

.footer__top-text {
  fill: var(--ink-dark);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 3.4px;
}

.footer__top-arrow {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(52 * var(--f));
  height: calc(52 * var(--f));
  border-radius: 50%;
  background: var(--ink-dark);
  color: var(--acc);
  font-size: calc(20 * var(--f));
  transform: translate(-50%, -50%);
}

.footer__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(64 * var(--f));
  padding: 0 calc(60 * var(--f));
  background: var(--ink-dark);
  color: var(--ink-60);
  font-size: calc(13 * var(--f));
}

.footer__legal {
  display: flex;
  gap: calc(28 * var(--f));
}

.footer__legal a {
  color: var(--acc);
  transition: color .2s ease;
}

.footer__legal a:hover {
  color: var(--ink);
}

/* The bar is dark, so focus rings on it stay accent; on the accent area they go dark. */
.footer :focus-visible {
  outline-color: var(--ink-dark);
}

.footer__bar :focus-visible {
  outline-color: var(--acc);
}

/* ==========================================================================
   20. Media queries (widest first)
   ========================================================================== */
@media (max-width: 1599.98px) {
  .player__stat--listeners,
  .player__stat--listeners + .divider-v,
  .page-head__cell--3 {
    display: none;
  }

  .page-head {
    grid-template-columns: minmax(0, 1fr) repeat(2, clamp(240px, 13.5vw, 320px));
  }
}

@media (max-width: 1319.98px) {
  .player__stat--next,
  .player__stat--next + .divider-v {
    display: none;
  }
}

@media (max-width: 1199.98px) {
  .page-head {
    grid-template-columns: minmax(0, 1fr) clamp(240px, 13.5vw, 320px);
  }

  .page-head__cell--2 {
    display: none;
  }
}

@media (max-width: 1099.98px) {
  .player__time {
    display: none;
  }

  /* Footer: the artboard stops scaling and becomes a normal stacked layout. */
  .footer {
    --f: 1px;
    display: flex;
    flex-direction: column;
    height: auto;
    padding: 56px var(--gutter) 0;
  }

  .footer__top {
    order: 1;
  }

  .footer__letters {
    order: 2;
  }

  .footer__bar {
    order: 3;
  }

  .footer__intro,
  .footer__side {
    position: static;
    width: auto;
  }

  .footer__side {
    margin-top: 48px;
  }

  .footer__title-thin {
    font-size: clamp(56px, 13vw, 104px);
  }

  .footer__title-bold {
    font-size: clamp(66px, 15.6vw, 124px);
  }

  .footer__kicker {
    flex-wrap: wrap;
  }

  .footer__tick {
    display: none;
  }

  .footer__cta,
  .footer__social {
    flex-wrap: wrap;
  }

  .footer__top {
    position: relative;
    right: auto;
    bottom: auto;
    flex: none;
    margin: 32px 0 0 auto;
  }

  .footer__letters {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    height: 18vw;
    margin: 16px calc(var(--gutter) * -1) 0;
    font-size: 34vw;
  }

  .footer__bar {
    position: relative;
    flex-wrap: wrap;
    gap: 10px 28px;
    height: auto;
    margin: 0 calc(var(--gutter) * -1);
    padding: 20px var(--gutter);
  }
}

@media (max-width: 999.98px) {
  .player__volume,
  .player .divider-v {
    display: none;
  }
}

@media (max-width: 899.98px) {
  .page-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-head__cell--1 {
    display: none;
  }

  /* The fly-out cannot sit beside the panel any more: it opens inline. */
  .menu__fly {
    position: static;
    width: auto;
    max-height: 0;
    padding: 0 16px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: none;
    opacity: 1;
    transform: none;
    transition: max-height .35s ease, padding .35s ease, margin .35s ease, visibility 0s linear .35s;
  }

  .menu__item.is-open .menu__fly {
    max-height: 600px;
    margin-top: 6px;
    padding: 16px;
    transition: max-height .35s ease, padding .35s ease, margin .35s ease, visibility 0s;
  }
}

@media (max-width: 859.98px) {
  .player__like {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .footer__top.footer__top--float {
    right: 16px;
    bottom: 16px;
    width: 84px;
    height: 84px;
  }

  .footer__top--float .footer__top-arrow {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .burger.burger--float {
    right: 16px;
    top: 16px;
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 699.98px) {
  :root {
    --section-gap: 56px;
  }

  /* Phone top bar: logo and burger on the first line, full-width player under them. */
  .topbar__row {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 12px;
    height: auto;
    padding-top: 8px;
    padding-bottom: 10px;
  }

  .topbar__logo {
    width: 160px;
    height: 34px;
  }

  .topbar .player {
    flex: 1 0 100%;
    order: 3;
    height: 52px;
    padding-right: 14px;
    gap: 10px;
  }

  .topbar .wave,
  .topbar .vinyl {
    display: none;
  }

  .player__now {
    flex: 1;
    max-width: none;
  }

  .page-main {
    padding-bottom: 96px;
  }

  .page-intro {
    white-space: normal;
  }

  .crumbs {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .crumbs__list {
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  /* Long station names shorten here, so the now-playing text keeps its room. */

  /* Phones: the smallest labels grow so they stay easy to read. */
  .meta--xs,
  .meta,
  .stat-label,
  .player__status,
  .player__stat-label,
  .info-cell__head,
  .info-cell__caption,
  .tag,
  .menu__tag,
  .menu__now-label {
    font-size: 12px;
  }

  .player__status {
    letter-spacing: .1em;
  }

  .player__artist,
  .menu__num,
  .menu__fly-title,
  .menu__theme-head,
  .swatch,
  .footer__tracks-meta,
  .footer__track-code,
  .footer__track-time,
  .footer__bar {
    font-size: 12px;
  }

  .menu {
    padding: 16px 20px 24px;
  }

  .menu__label {
    font-size: 22px;
  }

  .menu__tag {
    display: none;
  }

  .menu__actions {
    flex-wrap: wrap;
  }
}

/* Motion off: records and marquees stop, state changes stay. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
