/* MusPlay — musplay.app
   Tokens come from the app's Digital Club design language (docs/design/DESIGN_LANGUAGE.md).
   Light is emitted (stage, active controls); surfaces stay neutral. */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --club-black: #050609;
  --stage-void: #090B10;
  --rig-surface: #11151C;
  --deck-surface: #171C25;
  --hairline: #2B3340;
  --spotlight: #F6F7FB;
  --fog: #A9B0BD;
  --muted: #7B8494;
  --laser-cyan: #39E7FF;
  --pulse-violet: #8B5CF6;
  --signal-coral: #FF426D;

  --font-display: "Space Grotesk", "Arial Narrow", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-control: 8px;
  --r-panel: 12px;

  --header-h: 56px;
  --gutter: 20px;
  --container: 1200px;

  /* Type steps. Each is a fixed size per breakpoint; clamp() keeps the bounds. */
  --step-h1: 2.75rem;   /* 44 */
  --step-h2: 1.875rem;  /* 30 */
  --step-body: 1rem;    /* 16 */
  --section-pad: 64px;
}
@media (max-width: 359px) {
  :root { --step-h1: 2.5rem; --gutter: 16px; }
}
@media (min-width: 600px) {
  :root { --step-h1: 3.5rem; --step-h2: 2.25rem; --gutter: 28px; --section-pad: 80px; }
}
@media (min-width: 960px) {
  :root { --step-h1: 4.5rem; --step-h2: 2.75rem; --step-body: 1.0625rem; --header-h: 64px; --gutter: 40px; --section-pad: 96px; }
}
@media (min-width: 1280px) {
  :root { --step-h1: 5.5rem; --step-h2: 3.25rem; --step-body: 1.125rem; --section-pad: 112px; }
}

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

html {
  background: var(--club-black);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--club-black);
  color: var(--fog);
  font-family: var(--font-body);
  font-size: clamp(1rem, var(--step-body), 1.125rem);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg, canvas { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--laser-cyan);
  outline-offset: 3px;
}

::selection { background: var(--pulse-violet); color: var(--spotlight); }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--r-control);
  background: var(--spotlight);
  color: var(--club-black);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus-visible { transform: none; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background-color 180ms ease-out, border-color 180ms ease-out;
}
.site-header.is-solid {
  background: var(--stage-void);
  border-bottom-color: var(--hairline);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-right: auto;
  color: var(--spotlight);
  text-decoration: none;
  border-radius: var(--r-control);
}
.brand__mark { width: 28px; height: 28px; border-radius: 7px; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
}

.site-nav { display: none; }
@media (min-width: 800px) {
  .site-nav { display: flex; gap: 4px; margin-right: 12px; }
  .site-nav a {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    border-radius: var(--r-control);
    color: var(--fog);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 120ms ease-out;
  }
  .site-nav a:hover { color: var(--spotlight); }
}

/* ---------- Store button: one switch on <html data-store> ---------- */

.store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px 0 18px;
  border: 1px solid transparent;
  border-radius: var(--r-control);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
  text-decoration: none;
}
.store__glyph { width: 18px; height: 18px; flex: none; fill: currentColor; }

.store--live {
  background: var(--spotlight);
  color: var(--club-black);
  transition: transform 120ms ease-out;
}
.store--live:active { transform: scale(0.98); }

.store--soon {
  border-color: var(--hairline);
  border-color: color-mix(in srgb, var(--fog) 50%, transparent);
  color: var(--spotlight);
  cursor: default;
}
.store--soon .store__glyph { color: var(--fog); }

.store--sm {
  min-height: 40px;
  padding: 0 14px 0 11px;
  gap: 8px;
  font-size: 0.8125rem;
}
.store--sm .store__glyph { width: 14px; height: 14px; }

html:not([data-store="live"]) .store--live,
html[data-store="live"] .store--soon { display: none; }

@media (max-width: 439px) {
  .site-header__inner { gap: 10px; }
  .store--sm { padding: 0 10px 0 8px; gap: 6px; font-size: 0.75rem; }
}
@media (max-width: 379px) {
  .brand__name { display: none; }
}

/* On phones the hero's own store button sits just under the header, so the header's
   copy waits until that one has scrolled away. Wider screens always show it. */
.site-header__store { transition: opacity 180ms ease-out, visibility 0s linear 0s; }
@media (max-width: 799px) {
  .site-header.is-cta-in-view .site-header__store {
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease-out, visibility 0s linear 180ms;
  }
}

/* ---------- Text button ---------- */

.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  border-radius: var(--r-control);
  background: none;
  color: var(--spotlight);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: underline;
  text-decoration-color: var(--hairline);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  cursor: pointer;
  transition: text-decoration-color 120ms ease-out;
}
.text-btn:hover { text-decoration-color: var(--laser-cyan); }
.text-btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: var(--laser-cyan);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease-out;
}
@media (hover: hover) {
  .text-btn:hover svg { transform: translateX(3px); }
  .text-btn--up:hover svg { transform: translateY(-3px); }
}

/* ---------- Segmented control (rigs, cover state) ---------- */

.seg {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 3px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-control);
  background: var(--stage-void);
}
.seg__item {
  min-height: 44px;
  min-width: 64px;
  padding: 0 14px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--fog);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 120ms ease-out, background-color 120ms ease-out, box-shadow 120ms ease-out;
}
.seg__item:hover { color: var(--spotlight); }
.seg__item[aria-checked="true"] {
  background: var(--deck-surface);
  color: var(--laser-cyan);
  box-shadow: inset 0 0 0 1px rgba(57, 231, 255, 0.5), 0 0 14px -6px var(--laser-cyan);
}
.seg__item:focus-visible { outline-offset: 2px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-top: calc(-1 * var(--header-h));
  min-height: min(100svh, 1100px);
  background: var(--club-black);
  overflow: clip;
}
.hero__body {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-h);
}
.hero__copy {
  position: relative;
  z-index: 2;
  padding-top: 20px;
}

.eyebrow {
  color: var(--laser-cyan);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 1.35;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero__title {
  margin-top: 12px;
  color: var(--spotlight);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, var(--step-h1), 5.5rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}
.hero__title-accent { color: var(--laser-cyan); }
.hero__lede {
  margin-top: 16px;
  max-width: 32em;
  color: var(--fog);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  margin-top: 20px;
}

.stage {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 300px;
  margin-block: -40px -28px;
  pointer-events: none;
}
.stage__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  visibility: hidden;
}
/* The canvas appears whole with its first frame, under the poster; the poster then fades
   away above it. Nothing animates the canvas element itself. */
.stage.is-live .stage__canvas { visibility: visible; }
.stage.is-live .poster {
  opacity: 0;
  visibility: hidden;
  transition: opacity 450ms ease-out, visibility 0s linear 450ms;
}

@media (min-width: 960px) {
  .hero__body { justify-content: center; }
  .hero__copy { padding-block: 40px 56px; }
  /* Beside the stage the copy keeps to the space left of the disc (its rim is never left of
     52vw), however large the reader's text is. */
  .hero__lede { margin-top: 24px; max-width: min(25em, calc(52vw - 64px)); }
  .hero__actions { margin-top: 32px; gap: 8px 28px; }
  .eyebrow { font-size: 0.8125rem; }
  .hero__title { margin-top: 20px; line-height: 0.98; font-size: min(var(--step-h1), calc(9.28vw - 11px)); }
  .stage {
    position: absolute;
    inset: 0 0 0 36%;
    margin: 0;
    min-height: 0;
  }
}
@media (min-width: 1280px) {
  .hero__title { font-size: min(var(--step-h1), 106px); }
  .hero__lede { max-width: min(30em, calc(2vw + 576px)); }
}

/* The disc poster. It is the first paint, and the whole stage where WebGL is missing. */

.poster {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
  container-type: size;
}
.poster__tilt {
  /* same framing as the WebGL camera: disc radius is min(28% of height, 25% of width) */
  --disc: min(56cqh, 50cqw);
  position: relative;
  width: var(--disc);
  aspect-ratio: 1;
  transform: perspective(1400px) rotateX(24deg) rotateY(-9deg);
}
.poster__disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(225deg, var(--pulse-violet) 12%, var(--laser-cyan) 88%);
  box-shadow: 0 0 calc(var(--disc) * 0.3) rgba(139, 92, 246, 0.26), 0 0 calc(var(--disc) * 0.12) rgba(57, 231, 255, 0.14);
}
.poster__vinyl {
  position: absolute;
  inset: 3%;
  border-radius: 50%;
  border: 2px solid var(--club-black);
  background:
    radial-gradient(circle, transparent 49.6%, rgba(169, 176, 189, 0.16) 50%, transparent 50.6%),
    radial-gradient(circle, transparent 69.6%, rgba(169, 176, 189, 0.12) 70%, transparent 70.6%),
    conic-gradient(from 20deg, transparent 0 8%, rgba(139, 92, 246, 0.16) 14%, transparent 21% 58%, rgba(57, 231, 255, 0.11) 64%, transparent 71%),
    repeating-radial-gradient(circle, rgba(246, 247, 251, 0.035) 0 1px, transparent 1px 4px),
    var(--stage-void);
}
.poster__spin { position: absolute; inset: 0; border-radius: 50%; }
.poster__label {
  position: absolute;
  inset: 35%;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--club-black) 0 13%, transparent 14.5%),
    linear-gradient(135deg, var(--pulse-violet), var(--laser-cyan));
}
.poster__tick {
  position: absolute;
  left: calc(50% - 1.5px);
  top: 9%;
  width: 3px;
  height: 6%;
  border-radius: 2px;
  background: var(--laser-cyan);
  opacity: 0.85;
}

.poster__rig { position: absolute; inset: 0; opacity: 0; transition: opacity 300ms ease-out; }
.stage[data-rig="orbit"] .poster__rig--orbit,
.stage[data-rig="halo"] .poster__rig--halo,
.stage[data-rig="pulse"] .poster__rig--pulse,
.stage[data-rig="wave"] .poster__rig--wave { opacity: 1; }

.poster__rig--orbit i {
  position: absolute;
  left: -32%;
  right: -32%;
  top: 30%;
  bottom: 30%;
  border: 1px solid rgba(57, 231, 255, 0.55);
  border-radius: 50%;
  transform: rotate(-18deg);
}
.poster__rig--orbit i:nth-child(2) {
  left: -44%;
  right: -44%;
  top: 24%;
  bottom: 24%;
  border-color: rgba(139, 92, 246, 0.7);
  transform: rotate(31deg);
}
.poster__rig--orbit i:nth-child(3) {
  left: -20%;
  right: -20%;
  top: 8%;
  bottom: 8%;
  border-color: rgba(246, 247, 251, 0.28);
  transform: rotate(74deg);
}
.poster__rig--orbit i::after {
  content: "";
  position: absolute;
  left: 6%;
  top: 18%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--spotlight);
  box-shadow: 0 0 12px 2px var(--laser-cyan);
}

.poster__rig--halo {
  inset: -20%;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, var(--laser-cyan) 0 1.3deg, transparent 1.3deg 3.75deg);
  opacity: 0;
}
.stage[data-rig="halo"] .poster__rig--halo { opacity: 0.8; }

.poster__rig--pulse i {
  position: absolute;
  inset: -12%;
  border: 2px solid rgba(57, 231, 255, 0.7);
  border-radius: 50%;
}
.poster__rig--pulse i:nth-child(2) { inset: -30%; border-color: rgba(139, 92, 246, 0.6); border-width: 1.5px; }
.poster__rig--pulse i:nth-child(3) { inset: -50%; border-color: rgba(57, 231, 255, 0.28); border-width: 1px; }

.poster__rig--wave { inset: 30% -55%; z-index: 2; }
.poster__rig--wave svg { width: 100%; height: 100%; overflow: visible; }
.poster__wave-glow { opacity: 0.26; }
.poster__wave-line { fill: none; stroke-width: 3; vector-effect: non-scaling-stroke; }
.poster__wave-outline { fill: none; stroke-width: 1; opacity: 0.7; vector-effect: non-scaling-stroke; }

@keyframes disc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: no-preference) {
  .stage.is-fallback.is-spinning .poster__spin { animation: disc-spin 2.8s linear infinite; }
}

.drop-note {
  position: absolute;
  inset: calc(var(--header-h) + 8px) 12px 12px;
  z-index: 4;
  display: none;
  place-items: center;
  border: 1px dashed var(--laser-cyan);
  border-radius: var(--r-panel);
  background: rgba(5, 6, 9, 0.82);
  color: var(--spotlight);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, var(--step-h2), 3.25rem);
  text-align: center;
  pointer-events: none;
}
.hero.is-dropping .drop-note { display: grid; }

/* ---------- Transport bar ---------- */

.transport {
  position: relative;
  z-index: 3;
  background: var(--rig-surface);
  border-top: 1px solid var(--hairline);
  padding-bottom: env(safe-area-inset-bottom);
}
.transport__progress {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  overflow: hidden;
}
.transport__progress i {
  display: block;
  height: 100%;
  background: var(--laser-cyan);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.transport__inner {
  display: grid;
  /* the track column keeps room for "demo loop"; the song button wraps before the name is cut */
  grid-template-columns: 56px minmax(5rem, 1fr) auto;
  grid-template-areas:
    "play track own"
    "rigs rigs rigs"
    "notes notes notes";
  align-items: center;
  gap: 10px 12px;
  padding-block: 12px;
}

.tp-play {
  grid-area: play;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--spotlight);
  color: var(--club-black);
  cursor: pointer;
  transition: transform 120ms ease-out, box-shadow 200ms ease-out;
}
.tp-play:active { transform: scale(0.95); }
.tp-play svg { width: 26px; height: 26px; fill: currentColor; grid-area: 1 / 1; }
.tp-play__pause { display: none; }
.tp-play[aria-pressed="true"] .tp-play__play { display: none; }
.tp-play[aria-pressed="true"] .tp-play__pause { display: block; }
.tp-play[aria-pressed="true"] { box-shadow: 0 0 22px -4px rgba(57, 231, 255, 0.55); }
.tp-play:focus-visible { outline-offset: 4px; }

.tp-track {
  grid-area: track;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "live name" "live time";
  align-items: center;
  column-gap: 0;
  row-gap: 2px;
  min-width: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8125rem;
  line-height: 1.3;
}
.tp-live {
  grid-area: live;
  width: 0;
  height: 8px;
  border-radius: 50%;
  background: var(--signal-coral);
  opacity: 0;
  transition: opacity 160ms ease-out, width 160ms ease-out, margin 160ms ease-out;
}
.transport[data-playing="true"] .tp-live { width: 8px; margin-right: 10px; opacity: 1; }
.tp-name {
  grid-area: name;
  overflow: hidden;
  color: var(--spotlight);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.tp-time { grid-area: time; color: var(--fog); font-variant-numeric: tabular-nums; }

.tp-rigs { grid-area: rigs; display: grid; }
.tp-rigs .seg__item { min-width: 0; padding-inline: 6px; }

.tp-own {
  grid-area: own;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-control);
  background: var(--deck-surface);
  color: var(--spotlight);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
  cursor: pointer;
  transition: border-color 120ms ease-out;
}
.tp-own:hover { border-color: var(--fog); }
.tp-own svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: var(--fog);
  stroke-width: 1.8;
  stroke-linejoin: round;
}
@media (max-width: 479px) {
  .tp-own svg { display: none; }
  .tp-hint { font-size: 0.8125rem; }
}
@media (max-width: 379px) {
  .tp-own { padding: 6px 10px; font-size: 0.8125rem; }
}

.tp-notes { grid-area: notes; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tp-hint { color: var(--muted); font-size: 0.875rem; line-height: 1.35; text-wrap: balance; }
.tp-msg { color: var(--spotlight); font-size: 0.875rem; line-height: 1.35; }
.tp-msg:empty { display: none; }

@media (min-width: 960px) {
  .transport__inner {
    grid-template-columns: 56px minmax(9.5rem, 1fr) auto auto;
    grid-template-areas:
      "play track rigs own"
      "notes notes notes notes";
    gap: 8px 20px;
    padding-block: 16px 12px;
  }
  .tp-track {
    grid-template-columns: auto minmax(0, auto) minmax(max-content, 1fr);   /* a long name gives way, the clock never does */
    grid-template-areas: "live name time";
    column-gap: 0;
    font-size: 0.875rem;
  }
  .tp-name { max-width: 34ch; margin-right: 16px; }
  .tp-rigs .seg__item { min-width: 76px; padding-inline: 14px; }
  .tp-own { min-height: 52px; padding: 0 18px; }
  .tp-notes { flex-direction: row-reverse; justify-content: space-between; gap: 24px; }
  .tp-hint { text-align: right; }
}

/* ---------- Sections ---------- */

.section { background: var(--club-black); }
.section__grid {
  display: grid;
  gap: 24px;
  padding-block: var(--section-pad);
}
.section + .section .section__grid { border-top: 1px solid var(--hairline); }
.section__grid > * { min-width: 0; }

.section__title {
  color: var(--spotlight);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.875rem, var(--step-h2), 3.25rem);
  line-height: 1.06;
  letter-spacing: 0;
  text-wrap: balance;
}
.section__body > * + *,
.section__lead > * + * { margin-top: 24px; }
.section__body p,
.section__lead p { max-width: 34em; }

@media (min-width: 960px) {
  .section__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 64px;
    align-items: start;
  }
  .section__grid--cover {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: center;
  }
  .section__body > * + *,
  .section__lead > * + * { margin-top: 28px; }
}

/* Rig index: the four rigs as line drawings; each one puts its rig on the stage. */

.rig-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 34em;
  border-block: 1px solid var(--hairline);
}
.rig-index li + li { border-left: 1px solid var(--hairline); }
.rig-index a {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 18px 4px 14px;
  color: var(--fog);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8125rem;
  text-decoration: none;
  transition: color 120ms ease-out, background-color 120ms ease-out;
}
.rig-index a:hover { color: var(--laser-cyan); background: var(--stage-void); }
.rig-index a:focus-visible { outline-offset: -2px; }
.rig-index svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
}
.rig-index__bars { stroke-width: 6; stroke-dasharray: 1 3; stroke-linecap: butt; }

/* Living Cover tile */

.cover { width: 100%; max-width: 440px; justify-self: start; }
@media (min-width: 960px) { .cover { justify-self: end; } }
.cover__tile {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--r-control);
  background: var(--stage-void);
}
.cover__canvas { width: 100%; height: 100%; }
.cover__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 16px;
}
.cover__switch { flex: none; }
.cover__switch .seg__item { min-width: 76px; }
.cover__caption {
  flex: 1 1 12em;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Spec sheet: the back of the sleeve */

.specs { border-bottom: 1px solid var(--hairline); }
.specs__row {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  column-gap: 16px;
  align-items: baseline;
  padding-block: 16px;
  border-top: 1px solid var(--hairline);
}
.specs dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.6;
}
.specs dd { color: var(--spotlight); }
@media (min-width: 600px) {
  .specs__row { grid-template-columns: 11rem minmax(0, 1fr); padding-block: 20px; }
}

/* Privacy checks */

.checks { display: grid; gap: 14px; }
.checks li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  color: var(--spotlight);
  font-size: 1.125rem;
  line-height: 1.4;
}
.checks svg {
  width: 24px;
  height: 24px;
  margin-top: 1px;
  fill: none;
  stroke: var(--laser-cyan);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (min-width: 960px) {
  .checks li { font-size: 1.25rem; }
}

/* ---------- Closing band: a record half out of its sleeve ---------- */

.closing {
  position: relative;
  overflow: hidden;
  background: var(--stage-void);
  border-top: 1px solid var(--hairline);
}
.closing__inner {
  position: relative;
  z-index: 1;
  padding-block: var(--section-pad) calc(var(--section-pad) + 150px);
}
.closing__inner > p {
  max-width: 30em;
  margin-top: 20px;
}
.closing__actions { margin-top: 28px; }

.closing__record {
  --d: 300px;
  position: absolute;
  right: calc(var(--d) * -0.34);
  bottom: calc(var(--d) * -0.42);
  width: var(--d);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(225deg, var(--pulse-violet) 12%, var(--laser-cyan) 88%);
  box-shadow: 0 0 calc(var(--d) * 0.24) rgba(139, 92, 246, 0.2);
}
.closing__record::before {
  content: "";
  position: absolute;
  inset: 2.6%;
  border-radius: 50%;
  border: 2px solid var(--club-black);
  background:
    radial-gradient(circle, transparent 49.7%, rgba(169, 176, 189, 0.16) 50%, transparent 50.5%),
    radial-gradient(circle, transparent 69.7%, rgba(169, 176, 189, 0.12) 70%, transparent 70.5%),
    conic-gradient(from 100deg, transparent 0 8%, rgba(139, 92, 246, 0.16) 14%, transparent 21% 58%, rgba(57, 231, 255, 0.11) 64%, transparent 71%),
    repeating-radial-gradient(circle, rgba(246, 247, 251, 0.035) 0 1px, transparent 1px 4px),
    var(--stage-void);
}
.closing__record span {
  position: absolute;
  inset: 35%;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--club-black) 0 13%, transparent 14.5%),
    linear-gradient(135deg, var(--pulse-violet), var(--laser-cyan));
}
@media (min-width: 600px) {
  .closing__record { --d: 420px; }
  .closing__inner { padding-bottom: calc(var(--section-pad) + 120px); }
}
@media (min-width: 960px) {
  .closing__inner { padding-block: var(--section-pad); }
  .closing__record {
    --d: 720px;
    right: calc(var(--d) * -0.3);
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }
}
@media (min-width: 1280px) {
  .closing__record { right: max(calc(var(--d) * -0.3), calc(50vw - 600px - var(--d) * 0.58)); }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--club-black);
  border-top: 1px solid var(--hairline);
  font-size: 0.875rem;
}
.site-footer__inner { padding-block: 28px 36px; }
.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 24px;
  color: var(--fog);
}
.site-footer__row a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  text-decoration: none;
  border-radius: 4px;
}
.site-footer__row a:hover { color: var(--spotlight); text-decoration: underline; text-underline-offset: 4px; }
.site-footer__row span { flex: 1 0 100%; padding-block: 12px 0; }
@media (min-width: 600px) {
  .site-footer__row span { flex: 0 1 auto; margin-right: auto; padding-block: 12px; }
}
.site-footer__legal { margin-top: 8px; color: var(--muted); line-height: 1.45; }

/* ---------- Privacy notice and 404 ---------- */

.doc { padding-block: 40px var(--section-pad); }
.doc__inner { max-width: 68ch; }
.doc h1 {
  color: var(--spotlight);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, var(--step-h2), 3.25rem);
  line-height: 1.06;
}
.doc h2 {
  margin-top: 56px;
  color: var(--spotlight);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
}
.doc h3 {
  margin: 36px 0 0;
  color: var(--spotlight);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.3;
}
.doc p, .doc ul, .doc .table-scroll { margin-top: 16px; }
.doc ul { padding-left: 1.2em; list-style: disc; }
.doc li + li { margin-top: 8px; }
.doc li::marker { color: var(--muted); }
.doc strong { color: var(--spotlight); font-weight: 600; }
.doc a { color: var(--spotlight); text-decoration-color: var(--laser-cyan); text-underline-offset: 4px; }
.doc a:hover { color: var(--laser-cyan); }
.doc code { font-family: var(--font-mono); font-weight: 500; font-size: 0.9em; color: var(--spotlight); }
.doc__meta {
  margin-top: 24px;
  padding-block: 16px;
  border-block: 1px solid var(--hairline);
}
.doc__meta p { margin-top: 0; }
.doc__meta p + p { margin-top: 6px; }
.doc address { font-style: normal; margin-top: 16px; }

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--hairline);
  border-radius: var(--r-control);
  -webkit-overflow-scrolling: touch;
}
.table-scroll table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.45;
}
.table-scroll th, .table-scroll td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}
.table-scroll th {
  background: var(--rig-surface);
  color: var(--muted);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.875rem;
}
.table-scroll td { border-top: 1px solid var(--hairline); }
.table-scroll td:first-child { color: var(--spotlight); }

.lost {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - var(--header-h) - 130px);
  display: grid;
  align-items: center;
}
.lost__inner { position: relative; z-index: 1; padding-block: var(--section-pad); }
.lost h1 {
  margin-top: 12px;
  max-width: 11em;
  color: var(--spotlight);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, calc(var(--step-h2) * 1.2), 4rem);
  line-height: 1.04;
  text-wrap: balance;
}
.lost p:not(.eyebrow) { margin-top: 16px; max-width: 30em; }
.lost .text-btn { margin-top: 20px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.cover__tile { container-type: inline-size; }
.sleeve-type {
  position: absolute;
  inset: 8% 8% auto;
  display: grid;
  justify-items: start;
  color: #f5f3ff;
  line-height: 1;
}
.sleeve-type strong {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 14cqi, 4rem);
  letter-spacing: -.065em;
}
.sleeve-type span {
  margin-top: .65em;
  font-family: var(--font-mono);
  font-size: clamp(.8rem, 3.6cqi, 1rem);
}
.screen-preview { display: grid; justify-items: start; gap: 16px; }
.phone-frame {
  position: relative;
  width: min(100%, 288px);
  aspect-ratio: 9 / 20;
  box-sizing: content-box;
  max-width: calc(100% - 10px);
  margin-top: 12px;
  border: 4px solid #20232c;
  border-radius: 28px;
  outline: 1px solid #525966;
  background: var(--stage-void);
  overflow: hidden;
}
.phone-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  transition: opacity 160ms ease-out;
}
.phone-frame img[aria-hidden="true"] { opacity: 0; }
.screen-switch { width: min(100%, 296px); }
.screen-switch .seg__item { min-width: 0; padding-inline: 3px; }
.mobile-store { display: none; }
@media (max-width: 959px) {
  .phone-frame, .screen-switch { justify-self: center; }
}
@media (max-width: 799px) {
  html[data-store="live"]:has(#mobile-store) .site-header__store { display: none; }
  html[data-store="live"] .mobile-store:not([hidden]) {
    display: block;
    position: fixed;
    z-index: 51;
    inset: auto 0 0;
    padding: 6px 0 max(6px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--hairline);
    background: var(--stage-void);
  }
  .mobile-store .container, .mobile-store__brand {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .mobile-store .container { justify-content: space-between; }
  .mobile-store__brand { font: 700 1rem var(--font-display); }
  .mobile-store img { border-radius: 6px; }
  .mobile-store a { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .phone-frame img { transition: none; }
}
