/* ==========================================================================
   Jack the Selector — styles
   Palette shared with The Selector app: matte black panel, bone text,
   brass line-work and an amber-lit VU face.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Ink (backgrounds) */
  --ink-900: #08080a;
  --ink-850: #0b0b0d;
  --ink-800: #101012;
  --ink-700: #16161a;
  --ink-600: #1c1c20;
  --ink-500: #24242a;
  --line: #2a2a30;
  --line-strong: #3a3a42;

  /* Bone (text) */
  --bone-100: #f4f1e8;
  --bone-200: #ded9cb;
  --bone-400: #9b968a;
  --bone-600: #6a665e;

  /* Brass (accent) */
  --brass-300: #f0cd8a;
  --brass-400: #e0b263;
  --brass-500: #c8933c;
  --brass-600: #a3742a;
  --brass-900: #2a2113;
  --live: #d8a24a;

  /* Mood accents — one controlled family, used sparingly */
  --mood-morning: #e8b25c;
  --mood-afternoon: #d9a05b;
  --mood-evening: #b78ac0;
  --mood-sage: #9db8a8;
  --mood-clay: #c9756a;
  --mood-terracotta: #c98f6a;
  --mood-dusk: #7f8fbd;

  /* Type */
  --font-display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --font-wide: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;

  --step--1: 0.875rem;
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  --step-2: clamp(1.45rem, 1.25rem + 0.8vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.6vw, 2.9rem);
  --step-4: clamp(2.3rem, 1.7rem + 2.8vw, 4.2rem);

  /* Layout */
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(4.5rem, 3rem + 5vw, 8rem);
  --header-h: 72px;
  --radius: 8px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Reset ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); background: var(--ink-850); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ink-850);
  color: var(--bone-100);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
[hidden] { display: none !important; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--brass-500); color: var(--ink-900); }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--brass-400); color: var(--ink-900);
  padding: 0.75rem 1rem; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Layout helpers ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section); border-top: 1px solid var(--line); }
.section--panel { background: var(--ink-800); }

/* Type ------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--brass-400);
}
.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.h-xl { font-size: var(--step-4); }
.h-lg { font-size: var(--step-3); }
.h-md { font-size: var(--step-2); }
.lede { font-size: var(--step-1); line-height: 1.55; max-width: 34em; color: var(--bone-200); }
.muted { color: var(--bone-400); }

.section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 2rem + 2.5vw, 4rem);
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: 5fr 4fr; align-items: end; gap: 3rem; }
  .section-head .eyebrow { grid-column: 1 / -1; }
}

/* Wordmark ---------------------------------------------------------------
   Change the style by swapping the modifier class on every .wordmark
   (see _wordmark-options.html for a side-by-side comparison). */
.wordmark {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--bone-100);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  padding-block: 0.4rem;
}
.wordmark-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 10px rgba(216, 162, 74, 0.7); flex: none; }

/* A — hi-fi faceplate: expanded caps */
.wordmark--badge { font-family: var(--font-wide); font-stretch: 125%; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.2em; text-transform: uppercase; }
.wordmark--badge .wm-the { color: var(--brass-400); }
/* B — grotesk, as in The Selector app */
.wordmark--grotesk { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; letter-spacing: -0.02em; }
.wordmark--grotesk .wm-the { color: var(--bone-400); font-weight: 400; }
/* C — editorial serif */
.wordmark--serif { font-family: var(--font-serif); font-size: 1.75rem; letter-spacing: -0.005em; }
.wordmark--serif .wm-the { font-style: italic; color: var(--brass-300); }
/* D — stacked lockup */
.wordmark--stacked { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
.wordmark--stacked .wm-top { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.3em; color: var(--brass-400); text-transform: uppercase; }
.wordmark--stacked .wm-main { font-family: var(--font-wide); font-stretch: 125%; font-weight: 700; font-size: 1.15rem; letter-spacing: 0.12em; text-transform: uppercase; }
/* E — mono label */
.wordmark--mono { font-family: var(--font-mono); font-weight: 500; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: lowercase; }
.wordmark--mono .wm-the { color: var(--brass-400); }

/* Buttons & links --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 50px;
  padding: 0.75rem 1.4rem;
  border: 1px solid var(--brass-400);
  border-radius: 999px;
  background: var(--brass-400);
  color: var(--ink-900);
  font-size: 0.98rem; font-weight: 600; letter-spacing: 0.005em;
  text-decoration: none;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { background: var(--brass-300); border-color: var(--brass-300); }
.btn--ghost { background: transparent; color: var(--bone-100); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--ink-600); color: var(--bone-100); border-color: var(--bone-600); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 500;
  color: var(--brass-300);
  text-decoration: none;
  border-bottom: 1px solid rgba(224, 178, 99, 0.5);
  padding-bottom: 2px;
  transition: gap 0.25s var(--ease), border-color 0.25s var(--ease);
}
.text-link:hover { gap: 0.8em; border-color: var(--brass-300); }
.arrow { display: inline-block; }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 13, 0.88);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}
.nav-list { display: flex; align-items: center; gap: clamp(1.25rem, 2.5vw, 2.25rem); margin: 0; padding: 0; list-style: none; }
.nav-list a {
  text-decoration: none;
  font-size: 0.92rem; font-weight: 500;
  color: var(--bone-200);
  padding-block: 0.5rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-list a:hover { color: var(--bone-100); border-bottom-color: var(--bone-400); }
.nav-list a[aria-current="page"] { color: var(--brass-300); border-bottom-color: var(--brass-400); }
.nav-list .nav-cta {
  padding: 0.5rem 1rem;
  border: 1px solid var(--brass-500);
  border-radius: 999px;
  color: var(--brass-300);
}
.nav-list .nav-cta:hover { background: var(--brass-400); color: var(--ink-900); border-color: var(--brass-400); }
.nav-toggle {
  display: none;
  align-items: center; gap: 0.6rem;
  min-height: 44px; padding: 0 0.25rem;
  background: none; border: 0;
  font-size: 0.95rem; font-weight: 500;
}
.nav-toggle-bars { position: relative; width: 22px; height: 10px; }
.nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { top: 8.5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 4.25px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 4.25px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ink-850);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .js .site-nav.is-open { display: block; }
  .site-nav .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem var(--gutter) 1.25rem; }
  .site-nav .nav-list a {
    display: block; padding: 0.9rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--line);
  }
  .site-nav .nav-list .nav-cta { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0.9rem 0; }
  html:not(.js) .site-header .container { flex-wrap: wrap; }
  html:not(.js) .nav-list { flex-direction: row; flex-wrap: wrap; gap: 0 1.25rem; padding: 0 0 0.75rem; }
  html:not(.js) .site-nav .nav-list a { border: 0; font-size: 1rem; padding: 0.4rem 0; }
}

/* Hero -------------------------------------------------------------------- */
.hero { padding-block: clamp(3rem, 2rem + 5vw, 7rem) clamp(4rem, 3rem + 5vw, 7.5rem); position: relative; overflow: hidden; }
.hero::before {
  /* faint warm light, like a lit meter in a dark room */
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 60vw; height: 60vw; max-width: 820px; max-height: 820px;
  background: radial-gradient(closest-side, rgba(200, 147, 60, 0.12), rgba(200, 147, 60, 0));
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.hero h1 { margin: 1.25rem 0 1.5rem; max-width: 16em; font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.6rem); }
.hero h1 .accent { color: var(--brass-300); }
.hero .lede { margin-bottom: 2.25rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-email { margin-top: 1.5rem; font-size: 0.95rem; color: var(--bone-400); }
.hero-email a { color: var(--bone-100); }

/* Media frames & placeholders ------------------------------------------- */
.frame { position: relative; overflow: hidden; background: var(--ink-700); border-radius: var(--radius); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-16x10 { aspect-ratio: 16 / 10; }
.ratio-1x1 { aspect-ratio: 1 / 1; }
.ratio-3x4 { aspect-ratio: 3 / 4; }

/* Placeholders are honest about being placeholders: brass grooves and a label. */
.placeholder {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(1rem, 0.8rem + 1vw, 1.5rem);
  color: var(--bone-100);
  background-color: var(--ink-700);
  border: 1px solid var(--line);
  background-image:
    radial-gradient(circle at 72% 62%, rgba(200, 147, 60, 0.10), rgba(200, 147, 60, 0) 55%),
    repeating-radial-gradient(circle at 72% 62%, transparent 0 9px, rgba(224, 178, 99, 0.09) 9px 10px);
}
.placeholder-mark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.2rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  max-width: 10em;
}
.placeholder-label {
  display: flex; justify-content: space-between; gap: 0.5rem 1rem; flex-wrap: wrap;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bone-400);
}
.figcaption {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: 0.75rem;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--bone-400);
}

/* Deck: the listening console (homepage hero + Listen page) -------------- */
.deck {
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  color: var(--bone-100);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.deck-head {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--bone-400);
}
.deck-led { display: inline-flex; align-items: center; gap: 0.5rem; }
.deck-led::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--live); box-shadow: 0 0 8px rgba(216, 162, 74, 0.8); }

.vu { width: 100%; max-width: 300px; margin-inline: auto; }
.vu svg { width: 100%; height: auto; }
.vu-note { margin-top: 0.6rem; text-align: center; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.04em; color: var(--bone-400); }

.seg {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 4px; padding: 4px;
  background: var(--ink-900);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin: 1.25rem 0;
}
.seg button {
  min-height: 42px;
  background: transparent; border: 0; border-radius: 999px;
  color: var(--bone-200);
  font-size: 0.9rem; font-weight: 500;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.seg button:hover { color: var(--bone-100); background: var(--ink-600); }
.seg button[aria-selected="true"] { background: var(--brass-400); color: var(--ink-900); }
.seg button:focus-visible { outline-offset: -2px; }

.deck-title { font-family: var(--font-display); font-weight: 500; font-size: var(--step-2); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 0.35rem; }
.deck-desc { color: var(--bone-200); margin-bottom: 0.9rem; }
.deck-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.status {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--bone-200);
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--bone-600); flex: none; }
.status[data-state="playing"]::before { background: var(--live); border-color: var(--live); box-shadow: 0 0 8px rgba(216, 162, 74, 0.8); }
.status[data-state="ready"]::before { background: var(--brass-500); border-color: var(--brass-500); }
.status[data-state="error"]::before { background: #c9553d; border-color: #c9553d; }

/* Services ---------------------------------------------------------------- */
.services-grid { display: grid; gap: 1rem; }
@media (min-width: 900px) { .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
.service {
  display: flex; flex-direction: column;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top: 2px solid var(--accent, var(--brass-400));
}
.service-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.4rem; }
.service-num { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em; color: var(--accent, var(--brass-400)); }
.service-name { font-size: var(--step-3); }
.service-sub { margin-bottom: 1.5rem; color: var(--bone-400); }
.service h3 { font-size: var(--step-1); font-weight: 600; margin-bottom: 0.6rem; letter-spacing: -0.01em; }
.service > p { margin-bottom: 1.5rem; color: var(--bone-200); }
.ticks { list-style: none; padding: 0; margin: 0 0 2rem; border-top: 1px solid var(--line); }
.ticks li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.3rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem; line-height: 1.45;
  color: var(--bone-200);
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 1.15rem;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent, var(--brass-400));
}
.service .text-link { margin-top: auto; align-self: flex-start; }

/* Work -------------------------------------------------------------------- */
.project + .project { margin-top: clamp(3rem, 2.5rem + 3vw, 5rem); }
.project h3 { font-size: var(--step-3); margin: 0.75rem 0 0.75rem; }
.project p { max-width: 34em; color: var(--bone-200); }
.project-lead { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 3rem); }
.project-gallery { display: grid; gap: clamp(0.6rem, 0.4rem + 0.8vw, 1rem); grid-template-columns: 1fr 1fr; }
.project-gallery .frame:first-child { grid-column: 1 / -1; }
@media (min-width: 960px) {
  .project-lead { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
  .project-lead .project-text { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.project-text .lede { margin-bottom: 1rem; }
.project-grid { display: grid; gap: clamp(3rem, 2.5rem + 3vw, 4rem); margin-top: clamp(3rem, 2.5rem + 3vw, 5rem); }
@media (min-width: 700px) { .project-grid { grid-template-columns: 1fr 1fr; gap: 3rem clamp(1.5rem, 3vw, 2.5rem); } }
@media (min-width: 1100px) { .project-grid { grid-template-columns: repeat(3, 1fr); } }
.project-grid .project { display: flex; flex-direction: column; margin-top: 0; }
.project-grid .project h3 { font-size: var(--step-2); }
.project-grid .frame { order: -1; margin-bottom: 1.25rem; }

/* Listen band (homepage) --------------------------------------------------- */
.listen-band-grid { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 760px) { .listen-band-grid { grid-template-columns: 1fr auto; } }

/* How I work (compact) ---------------------------------------------------- */
.steps { display: grid; gap: 1rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.step { padding-top: 1rem; border-top: 1px solid var(--line-strong); }
.step-num { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; color: var(--brass-400); }
.step-title { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); margin: 0.35rem 0 0.35rem; }
.step p { color: var(--bone-400); font-size: 0.95rem; max-width: 24em; }

/* About ------------------------------------------------------------------- */
.about-grid { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 5rem); align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }
.about h2 { margin: 0.9rem 0 1.5rem; }
.about-copy p + p { margin-top: 1.1rem; }
.about-copy p { max-width: 32em; color: var(--bone-200); }
.about-copy .lede { color: var(--bone-100); }

/* Contact ----------------------------------------------------------------- */
.contact-inner { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .contact-inner { grid-template-columns: 1.1fr 1fr; align-items: end; } }
.contact h2 { margin: 0.9rem 0 1.25rem; max-width: 12em; }
.contact-actions { display: grid; gap: 1rem; }
.email-display {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 0.9rem + 2vw, 2.3rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--brass-300);
  text-decoration: none;
  overflow-wrap: anywhere;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-strong);
}
.email-display:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.copy-feedback { min-height: 1.5em; font-size: 0.9rem; color: var(--bone-400); }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: var(--ink-900); border-top: 1px solid var(--line); padding-block: 3rem 2.25rem; }
.footer-grid { display: grid; gap: 1.75rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1fr auto; align-items: end; } }
.footer-brand p { margin-top: 0.5rem; color: var(--bone-400); font-size: var(--step--1); }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; list-style: none; margin: 0; padding: 0; }
.footer-nav a { text-decoration: none; font-size: 0.92rem; color: var(--bone-200); padding-block: 0.4rem; display: inline-block; }
.footer-nav a:hover { color: var(--bone-100); text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: 2.25rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: var(--step--1); color: var(--bone-400);
}
.footer-bottom a { color: var(--bone-200); }

/* Listen page --------------------------------------------------------------- */
.page-intro { padding-block: clamp(3rem, 2.5rem + 4vw, 6rem) clamp(2.5rem, 2rem + 3vw, 4rem); position: relative; overflow: hidden; }
.page-intro::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 50vw; height: 50vw; max-width: 700px; max-height: 700px;
  background: radial-gradient(closest-side, rgba(200, 147, 60, 0.11), rgba(200, 147, 60, 0));
  pointer-events: none;
}
.page-intro h1 { max-width: 13em; margin: 1rem 0 1.25rem; position: relative; }
.listen-layout { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4.5rem); padding-block: clamp(2.5rem, 2rem + 3vw, 4rem) var(--section); border-top: 1px solid var(--line); }
@media (min-width: 1024px) {
  .listen-layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .listen-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); order: 2; }
}
.now-playing .deck-title { font-size: var(--step-1); }
.now-playing-info { margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.now-playing-controls { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }
.deck-track { margin: -0.1rem 0 0.6rem; font-size: 0.9rem; color: var(--bone-200); overflow-wrap: anywhere; }
.now-playing-controls { flex-wrap: wrap; }
.skip-btn {
  width: 40px; height: 40px; display: grid; place-items: center; flex: none;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 50%;
  color: var(--bone-200);
}
.skip-btn:hover:not([disabled]) { border-color: var(--brass-500); color: var(--brass-300); }
.skip-btn[disabled] { opacity: 0.35; cursor: default; }
.skip-btn svg { width: 12px; height: 12px; }
.selection-meta { margin-top: 0.45rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass-400); }
.deck-note { margin-top: 1.25rem; font-size: 0.8rem; line-height: 1.5; color: var(--bone-400); }

.listen-section + .listen-section { margin-top: clamp(3.5rem, 3rem + 3vw, 5.5rem); }
.listen-section-head { margin-bottom: 1.5rem; }
.listen-section-head h2 { margin: 0.75rem 0 0.6rem; }
.tag {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--brass-600);
  border-radius: 999px;
  color: var(--brass-300);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
}

.selections { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.selection {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 1rem 1.25rem;
  padding: 1.4rem 0.75rem;
  margin-inline: -0.75rem;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius);
  transition: background-color 0.3s var(--ease);
}
@media (min-width: 640px) { .selection { grid-template-columns: 112px minmax(0, 1fr) auto; align-items: center; gap: 1.5rem; } }
.selection.is-current { background: var(--ink-700); }
.selection-cover { aspect-ratio: 1; width: 100%; border-radius: 6px; }
.selection-cover.placeholder {
  padding: 0.6rem; justify-content: flex-end;
  background-color: var(--ink-700);
  background-image:
    radial-gradient(circle at 70% 35%, color-mix(in srgb, var(--accent, var(--brass-400)) 35%, transparent), transparent 70%),
    repeating-radial-gradient(circle at 70% 35%, transparent 0 6px, color-mix(in srgb, var(--accent, var(--brass-400)) 22%, transparent) 6px 7px);
}
.selection-cover .placeholder-mark { font-size: 0.85rem; font-weight: 600; letter-spacing: 0; line-height: 1.15; }
.selection-cover img { width: 100%; height: 100%; object-fit: cover; }
.selection h3 { font-size: var(--step-2); margin-bottom: 0.25rem; }
.selection dl { margin-top: 0.4rem; display: grid; gap: 0.35rem; }
.selection dl div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.75rem; }
.selection dt { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-400); padding-top: 0.3em; }
.selection dd { margin: 0; color: var(--bone-200); }
.selection-controls { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
@media (min-width: 640px) { .selection-controls { grid-column: auto; justify-content: flex-end; min-width: 11rem; } }
.selection-embed { grid-column: 1 / -1; }
.selection-embed iframe { width: 100%; border: 0; border-radius: var(--radius); background: var(--ink-700); }

.play-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 44px; padding: 0.4rem 1.1rem 0.4rem 0.45rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--ink-700); color: var(--bone-100);
  font-weight: 500; font-size: 0.92rem; text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.play-btn:hover { border-color: var(--brass-500); }
.play-btn[aria-pressed="true"] { border-color: var(--brass-400); color: var(--brass-300); }
.play-btn .icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--brass-400); color: var(--ink-900); }
.play-btn svg { width: 13px; height: 13px; }
.time { font-family: var(--font-mono); font-size: 0.78rem; font-variant-numeric: tabular-nums; color: var(--bone-400); }
.soon {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bone-400);
  padding: 0.55rem 0.9rem;
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
}

.progress { display: block; width: 100%; height: 3px; background: var(--ink-500); margin-top: 1rem; position: relative; border-radius: 3px; overflow: hidden; }
.progress span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--brass-400); }

.disclaimer {
  margin-top: 1rem; padding: 0.9rem 1.1rem;
  border-left: 2px solid var(--brass-500);
  background: var(--ink-800);
  border-radius: 0 6px 6px 0;
  font-size: 0.95rem; max-width: 40em; color: var(--bone-200);
}
.listen-cta { margin-top: clamp(3.5rem, 3rem + 3vw, 5.5rem); padding-top: 2rem; border-top: 1px solid var(--line-strong); display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .listen-cta { grid-template-columns: 1fr auto; align-items: center; } }

/* Reveal ------------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Print ------------------------------------------------------------------- */
@media print {
  .site-header, .nav-toggle, .deck { display: none; }
  body { background: #fff; color: #000; }
}

/* Docked mini player ---------------------------------------------------------
   Slides in under the header once the main console scrolls out of view. */
html.has-mini-player { scroll-padding-top: calc(var(--header-h) + 84px); }
.mini-player {
  position: relative;
  border-top: 1px solid var(--line);
  background: rgba(16, 16, 18, 0.96);
}
@media (prefers-reduced-motion: no-preference) {
  .mini-player:not([hidden]) { animation: mini-in 0.35s var(--ease); }
  @keyframes mini-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}
.site-header .mini-inner {
  min-height: 0;
  justify-content: normal;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1rem;
  padding-block: 0.55rem;
}
.vu--mini { width: 96px; max-width: none; margin: 0; }
.mini-text { min-width: 0; }
.mini-title {
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; letter-spacing: -0.01em; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mini-sub {
  font-size: 0.84rem; color: var(--bone-200); line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mini-sub[data-state="soon"], .mini-sub[data-state="idle"] { color: var(--bone-400); }
.mini-controls { display: flex; align-items: center; gap: 0.4rem; }
.mini-toggle {
  width: 44px; height: 44px; display: grid; place-items: center; flex: none;
  border: 0; border-radius: 50%;
  background: var(--brass-400); color: var(--ink-900);
  transition: background-color 0.2s var(--ease);
}
.mini-toggle:hover { background: var(--brass-300); }
.mini-toggle .icon { display: grid; place-items: center; }
.mini-toggle svg { width: 14px; height: 14px; }
.mini-jump {
  min-height: 38px; padding: 0.35rem 0.9rem;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--bone-200); font-size: 0.85rem; font-weight: 500;
}
.mini-jump:hover { border-color: var(--brass-500); color: var(--brass-300); }
.mini-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; margin: 0; border-radius: 0; background: transparent; }
@media (max-width: 640px) {
  .site-header .mini-inner { grid-template-columns: 68px minmax(0, 1fr) auto; gap: 0.75rem; padding-block: 0.45rem; }
  .vu--mini { width: 68px; }
  .mini-jump { display: none; }
  .mini-controls .skip-btn { width: 34px; height: 34px; }
  .mini-title { font-size: 0.92rem; }
  .mini-sub { font-size: 0.8rem; }
}

/* On-page text editing (signed-in curator only) -------------------------- */
.edit-bar {
  position: fixed; left: 16px; bottom: 16px; z-index: 90;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem;
  max-width: calc(100vw - 32px);
  padding: 0.5rem 0.6rem 0.5rem 0.5rem;
  background: var(--ink-600); border: 1px solid var(--line-strong); border-radius: 999px;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.9);
  font-size: 0.88rem;
}
.edit-bar button, .edit-bar a {
  min-height: 36px; padding: 0.35rem 0.95rem; border-radius: 999px;
  font-size: 0.86rem; font-weight: 600; text-decoration: none;
}
.edit-toggle { background: var(--brass-400); color: var(--ink-900); border: 0; }
.edit-toggle[aria-pressed="true"] { background: var(--bone-100); }
.edit-save { background: var(--brass-400); color: var(--ink-900); border: 0; }
.edit-cancel, .edit-library { background: transparent; color: var(--bone-200); border: 1px solid var(--line-strong); display: inline-flex; align-items: center; }
.edit-status { color: var(--bone-200); padding-inline: 0.25rem; }
.edit-status:empty { display: none; }
html.is-editing [data-edit] {
  outline: 1px dashed rgba(224, 178, 99, 0.55);
  outline-offset: 3px;
  border-radius: 2px;
  cursor: text;
}
html.is-editing [data-edit]:hover { outline-color: var(--brass-300); background: rgba(224, 178, 99, 0.06); }
html.is-editing [data-edit]:focus { outline: 2px solid var(--brass-400); background: rgba(224, 178, 99, 0.1); }
html.is-editing .reveal { opacity: 1 !important; transform: none !important; }

/* Listen section (homepage) ---------------------------------------------- */
.listen-notes { display: grid; gap: 0.25rem; margin-bottom: 2rem; }
.listen-notes .tag { justify-self: start; margin-top: 0; }
.listen .selections { margin-top: 0.5rem; }
.listen-small { margin-top: 2rem; font-size: 0.92rem; max-width: 40em; }

/* "Now playing" strip in the homepage console */
.deck-now {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0.85rem;
  margin-top: 1.1rem; padding: 0.7rem 0.85rem 0.7rem 0.7rem;
  background: var(--ink-900); border: 1px solid var(--brass-600); border-radius: 12px;
}
.deck-now .mini-toggle { width: 40px; height: 40px; }
.deck-now-text { min-width: 0; }
.deck-now-label {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brass-300); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.deck-now-track { font-size: 0.92rem; color: var(--bone-100); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
