/* SAM DIVISION — brutalist system
   ink #0a0a0a / paper #f2f0eb / signal #ff4400 (live + active only)
   zero radius, hairline rules, instant inversions */

:root {
  --ink: #0a0a0a;
  --paper: #f2f0eb;
  --signal: #ff4400;
  --rule: rgba(242, 240, 235, 0.28);
  --rule-strong: rgba(242, 240, 235, 0.55);
  --dim: rgba(242, 240, 235, 0.62);
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(16px, 3vw, 40px);
  --header-h: 56px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  background: var(--ink);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

a { color: inherit; }

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

/* ---------- grain ---------- */

.grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 90;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- skip link ---------- */

.skip {
  position: absolute;
  left: var(--gutter);
  top: -48px;
  z-index: 200;
  padding: 8px 14px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip:focus { top: 8px; }

/* ---------- focus ---------- */

:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}
.on-paper :focus-visible,
.inverted :focus-visible {
  outline-color: var(--ink);
}

/* ---------- header ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
  padding: 0 var(--gutter);
  background: var(--ink);
  border-bottom: 1px solid var(--rule-strong);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand:hover { background: var(--paper); color: var(--ink); }
.brand-mark {
  width: 18px;
  height: 18px;
  flex: none;
}
.brand:hover .brand-mark path { stroke: var(--ink); }

.nav {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border-left: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.nav a .n { color: var(--dim); }
.nav a:hover { background: var(--paper); color: var(--ink); }
.nav a:hover .n { color: rgba(10, 10, 10, 0.55); }
.nav a[aria-current="page"] { color: var(--signal); }
.nav a[aria-current="page"] .n { color: var(--signal); }

/* ---------- layout primitives ---------- */

main { display: block; }

.section {
  border-bottom: 1px solid var(--rule);
  padding: clamp(48px, 8vw, 110px) var(--gutter);
}

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(24px, 4vw, 56px);
  padding-top: 12px;
  border-top: 1px solid var(--rule-strong);
}
.sec-code {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--dim);
  white-space: nowrap;
}
.sec-title {
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.measure { max-width: 62ch; }

.mono {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--rule-strong);
}

.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-stage canvas,
.hero-stage svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-stage .fallback { display: block; }
.hero-stage.webgl-live .fallback { display: none; }
.hero-stage:not(.webgl-live) #terrain { display: none; }
#terrain { cursor: grab; touch-action: pan-y; }
#terrain:active { cursor: grabbing; }
#terrain:focus-visible { outline-offset: -6px; }

.hero-body {
  position: relative;
  z-index: 1;
  padding: 0 var(--gutter) clamp(20px, 4vw, 44px);
  pointer-events: none;
}
.hero-body :is(a, button) { pointer-events: auto; }

.hero-title {
  font-size: clamp(64px, 16vw, 230px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.84;
  text-transform: uppercase;
  word-break: keep-all;
}
.hero-title .thin { font-weight: 400; }

.hero-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 18px;
}
.hero-sub p {
  max-width: 46ch;
  color: var(--dim);
  font-size: 15px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: transparent;
  border: 1px solid var(--paper);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn[aria-pressed="true"] { border-color: var(--signal); color: var(--signal); }
.btn[aria-pressed="true"]:hover { background: var(--signal); color: var(--ink); }

.live-dot {
  width: 8px;
  height: 8px;
  flex: none;
  background: currentColor;
}
.btn[aria-pressed="true"] .live-dot { animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

/* ---------- roster ---------- */

.roster { list-style: none; border-top: 1px solid var(--rule-strong); }
.roster li { border-bottom: 1px solid var(--rule); }
.roster a {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 8px 24px;
  align-items: baseline;
  padding: 22px 8px;
  text-decoration: none;
}
.roster .idx { font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: 0.12em; }
.roster h3 {
  font-size: clamp(24px, 4.2vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.roster p {
  grid-column: 2 / -1;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--dim);
  text-transform: none;
}
.roster a:hover { background: var(--paper); color: var(--ink); }
.roster a:hover :is(.idx, p) { color: rgba(10, 10, 10, 0.6); }

/* ---------- catalog table ---------- */

.cat-table { width: 100%; border-collapse: collapse; }
.cat-table tr { border-top: 1px solid var(--rule); }
.cat-table tr:last-child { border-bottom: 1px solid var(--rule-strong); }
.cat-table th {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  text-align: left;
  padding: 10px 8px;
  border-top: 0;
}
.cat-table td { padding: 18px 8px; vertical-align: baseline; }
.cat-table td.code {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--dim);
  white-space: nowrap;
}
.cat-table td.title a {
  font-size: clamp(19px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.cat-table td.fmt, .cat-table td.yr {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--dim);
  white-space: nowrap;
}
.cat-table tbody tr:hover { background: var(--paper); color: var(--ink); }
.cat-table tbody tr:hover :is(.code, .fmt, .yr, td) { color: rgba(10, 10, 10, 0.65); }
.cat-table tbody tr:hover td.title a { color: var(--ink); }

@media (max-width: 640px) {
  .cat-table thead { display: none; }
  .cat-table tr { display: block; padding: 14px 0; }
  .cat-table td { display: inline; padding: 0 10px 0 0; }
  .cat-table td.title { display: block; margin: 4px 0; }
}

/* ---------- release detail sleeve ---------- */

.sleeve {
  display: grid;
  grid-template-columns: minmax(280px, 5fr) 7fr;
  border: 1px solid var(--rule-strong);
  min-height: 480px;
}
.sleeve-type {
  position: relative;
  padding: clamp(20px, 3vw, 40px);
  border-right: 1px solid var(--rule-strong);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
}
.sleeve-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--dim);
}
.sleeve-title {
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.92;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.sleeve-artist {
  font-size: clamp(16px, 2vw, 24px);
  letter-spacing: 0.02em;
}
.sleeve-meta { display: grid; gap: 4px; }
.sleeve-stage {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}
.sleeve-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sleeve-stage .fallback { z-index: 0; }
.sleeve-stage:not(.webgl-live) #relief { display: none; }
.sleeve-stage.webgl-live .fallback { display: none; }
.sleeve-stage #relief { cursor: grab; }
.sleeve-stage #relief:active { cursor: grabbing; }
.sleeve-stage canvas:focus-visible { outline-offset: -6px; }
.sleeve-stage .stage-note {
  display: none;
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 1;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  pointer-events: none;
}
.sleeve-stage.webgl-live .stage-note { display: block; }

@media (max-width: 800px) {
  .sleeve { grid-template-columns: 1fr; }
  .sleeve-type { border-right: 0; border-bottom: 1px solid var(--rule-strong); }
}

/* ---------- tracks ---------- */

.tracks {
  list-style: none;
  columns: 2;
  column-gap: 48px;
  margin-top: 8px;
}
.tracks li {
  break-inside: avoid;
  display: flex;
  gap: 16px;
  padding: 12px 8px;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}
.tracks .tno {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.1em;
  padding-top: 3px;
}
@media (max-width: 640px) { .tracks { columns: 1; } }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(32px, 5vw, 64px);
}
.pager a {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--rule-strong);
  padding: 12px 16px;
}
.pager a:hover { background: var(--paper); color: var(--ink); }

/* ---------- live posters ---------- */

.posters { list-style: none; display: grid; gap: 24px; }
.poster {
  border: 1px solid var(--rule-strong);
  display: grid;
  grid-template-columns: minmax(120px, 220px) 1fr auto;
  align-items: stretch;
}
.poster-date {
  border-right: 1px solid var(--rule-strong);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.poster-date .d {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.9;
}
.poster-date .m {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.poster-main { padding: 20px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.poster-main h3 {
  font-size: clamp(22px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.poster-main p { color: var(--dim); font-size: 14px; }
.poster-side {
  border-left: 1px solid var(--rule-strong);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
}
.status {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--rule-strong);
  padding: 6px 10px;
  color: var(--dim);
}
.status.on { border-color: var(--signal); color: var(--signal); }
@media (max-width: 720px) {
  .poster { grid-template-columns: 96px 1fr; }
  .poster-date { border-right: 1px solid var(--rule-strong); }
  .poster-side {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid var(--rule);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
  }
}

/* ---------- about / manifesto ---------- */

.manifesto { display: grid; gap: 24px; }
.manifesto p { font-size: clamp(17px, 2vw, 22px); line-height: 1.55; max-width: 58ch; }
.manifesto p.lead {
  font-size: clamp(26px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  max-width: 24ch;
}

/* ---------- colophon ---------- */

.colo { width: 100%; border-collapse: collapse; max-width: 760px; }
.colo th, .colo td {
  text-align: left;
  vertical-align: top;
  padding: 14px 8px;
  border-bottom: 1px solid var(--rule);
  font-size: 14.5px;
}
.colo th {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  width: 180px;
  padding-top: 17px;
}
@media (max-width: 640px) {
  .colo th, .colo td { display: block; width: auto; }
  .colo th { padding: 16px 8px 0; border-bottom: 0; }
  .colo td { padding: 6px 8px 16px; }
}

/* ---------- footer ---------- */

.colophon-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  justify-content: space-between;
  padding: 28px var(--gutter);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.colophon-strip a { color: inherit; text-decoration: none; }
.colophon-strip a:hover { background: var(--paper); color: var(--ink); }

/* ---------- 404 ---------- */

.notfound {
  min-height: calc(100svh - var(--header-h));
  display: grid;
  place-content: center;
  text-align: center;
  gap: 20px;
  padding: 48px var(--gutter);
}
.notfound h1 {
  font-size: clamp(34px, 7vw, 88px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
}
.notfound .code {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--signal);
  text-transform: uppercase;
}

/* ---------- wave strip sections ---------- */

.wave-strip {
  position: relative;
  height: clamp(140px, 22vw, 260px);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.wave-strip canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- hero drag hint + misc ---------- */

.drag-hint {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
@media (max-width: 800px) { .grid-12 { grid-template-columns: 1fr; } }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
}

/* ---------- one-page flow ---------- */

section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.release-bodies { margin-top: clamp(28px, 4vw, 48px); }
.release-body {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 32px 48px;
  align-items: start;
}
.release-body[hidden] { display: none; }
.release-notes { font-size: clamp(17px, 2vw, 21px); }
.release-body .tracks { margin-top: 0; }
@media (max-width: 800px) { .release-body { grid-template-columns: 1fr; } }

.cat-table { margin-top: clamp(32px, 5vw, 56px); }
.cat-table td.title button.rel {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  font-size: clamp(19px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
  text-align: left;
}
.cat-table tr.is-active .code,
.cat-table tr.is-active td.title .rel { color: var(--signal); }

.live-field {
  position: relative;
  height: min(38vh, 340px);
  margin-top: 8px;
  border: 1px solid var(--rule-strong);
  overflow: hidden;
}
.live-field canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- skeuomorphic sleeve board ---------- */

.sleeve {
  transform-style: preserve-3d;
  transition: transform 140ms linear;
  box-shadow:
    0 1px 0 rgba(242, 240, 235, 0.08),
    0 24px 48px rgba(0, 0, 0, 0.55),
    0 4px 12px rgba(0, 0, 0, 0.5);
  position: relative;
}
/* board thickness: cut-card edge on the right and bottom */
.sleeve::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-right: 3px solid;
  border-bottom: 3px solid;
  border-image: repeating-linear-gradient(
    0deg,
    #d8d5cc 0 1px,
    #8f8c83 1px 2px
  ) 3;
  opacity: 0.5;
}
.sleeve-panels { display: contents; }
.sleeve-type {
  z-index: 2;
  background: var(--ink);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.35);
}
.sleeve-type::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}
.sleeve-type[hidden] { display: none; }
.sleeve-title {
  text-shadow:
    0 -1px 0 rgba(0, 0, 0, 0.7),
    0 1px 0 rgba(242, 240, 235, 0.14);
}
.sleeve-stage { z-index: 1; }
.sleeve-stage .fallback { z-index: 0; }
.sleeve-stage #relief { z-index: 1; }
.sleeve-stage .stage-note { z-index: 3; }

/* ---------- vinyl record ---------- */

.vinyl {
  position: absolute;
  left: 0;
  bottom: 8%;
  width: min(52%, 320px);
  aspect-ratio: 1;
  z-index: 2;
  transform: translateX(-72%);
  transition: transform 380ms linear;
  pointer-events: none;
}
body.signal-on .vinyl { transform: translateX(-22%); }
@media (max-width: 800px) {
  .vinyl { width: min(44%, 220px); transform: translateX(-38%); }
  body.signal-on .vinyl { transform: translateX(4%); }
}
.vinyl-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%, #101010 0 1px, #1d1d1d 1px 3px);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.7),
    inset 0 0 0 1px #000,
    inset 0 0 24px rgba(0, 0, 0, 0.8);
  position: relative;
  display: grid;
  place-items: center;
}
.vinyl-disc::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 20deg,
    transparent 0deg,
    rgba(242, 240, 235, 0.07) 18deg,
    transparent 42deg,
    transparent 180deg,
    rgba(242, 240, 235, 0.05) 200deg,
    transparent 224deg
  );
}
body.signal-on .vinyl-disc { animation: spin 1.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.vinyl-label {
  position: relative;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--paper);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(10, 10, 10, 0.35), 0 0 0 6px rgba(0, 0, 0, 0.25);
}
.vinyl-label svg { width: 58%; }
.vinyl-label::after {
  content: "";
  position: absolute;
  width: 4%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink);
}

/* ---------- tactile controls ---------- */

.btn { transition: box-shadow 120ms linear, transform 60ms linear; }
.btn:hover { box-shadow: 5px 5px 0 rgba(10, 10, 10, 0.4); }
.btn:active { transform: translateY(1px); box-shadow: 2px 2px 0 rgba(10, 10, 10, 0.4); }

.poster { transition: transform 120ms linear, box-shadow 120ms linear; }
.poster:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.55);
}

.roster a { transition: box-shadow 120ms linear; }
.roster a:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35); }

/* ---------- punk apparatus ---------- */

.tape {
  overflow: hidden;
  border-bottom: 1px solid var(--rule-strong);
  border-top: 1px solid var(--rule);
  padding: 10px 0;
  white-space: nowrap;
}
.tape-inner {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  animation: tape 28s linear infinite;
}
.tape-inner b { color: var(--paper); font-weight: 400; }
@keyframes tape { to { transform: translateX(-50%); } }

.hero-title:hover, .sec-title:hover, .poster-main h3:hover {
  text-shadow:
    3px 0 0 rgba(242, 240, 235, 0.30),
    -3px 0 0 rgba(10, 10, 10, 0.9);
}

.stamp {
  position: absolute;
  z-index: 3;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
  border: 1px solid var(--paper);
  padding: 7px 11px;
  transform: rotate(-6deg);
  opacity: 0.85;
  pointer-events: none;
  mix-blend-mode: difference;
}
.stamp.sig { color: var(--signal); border-color: var(--signal); mix-blend-mode: normal; }

.ghost {
  position: absolute;
  right: var(--gutter);
  top: 24px;
  z-index: 0;
  font-weight: 700;
  font-size: clamp(120px, 22vw, 320px);
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 240, 235, 0.10);
  pointer-events: none;
  user-select: none;
}
.section { position: relative; }
.section > :not(.ghost):not(.stamp) { position: relative; z-index: 1; }

.onair {
  display: none;
  align-items: center;
  gap: 6px;
  margin-left: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--signal);
}
.onair::before { content: ""; width: 7px; height: 7px; background: var(--signal); }
body.signal-on .onair { display: inline-flex; }
body.signal-on .grain { opacity: 0.10; }

.hero-title { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .tape-inner { animation: none; }
}
@media (max-width: 640px) {
  .stamp { font-size: 9px; padding: 5px 8px; }
}

/* ---------- skeuomorphism at 11 ---------- */

/* vinyl: deadwax, richer grooves, deeper sheen */
.vinyl-disc {
  background:
    radial-gradient(circle at 50% 50%, transparent 0 21%, rgba(0,0,0,0.55) 21% 22%, transparent 22% 26%, rgba(242,240,235,0.05) 26% 26.5%, transparent 26.5%),
    repeating-radial-gradient(circle at 50% 50%, #0d0d0d 0 1px, #1e1e1e 1px 2px, #141414 2px 3px);
}
.vinyl-label { box-shadow: inset 0 0 0 1px rgba(10,10,10,0.35), 0 0 0 5px #141414, 0 0 0 6px rgba(242,240,235,0.06); }

/* tonearm: pivots onto the record while the signal plays */
.tonearm {
  position: absolute;
  top: 5%;
  right: 7%;
  width: 42%;
  aspect-ratio: 1;
  z-index: 4;
  pointer-events: none;
  transform: rotate(-38deg);
  transform-origin: 86% 14%;
  transition: transform 650ms linear;
}
body.signal-on .tonearm { transform: rotate(-6deg); }
.sleeve-stage.format-cassette .tonearm { opacity: 0; }
.ta-pivot {
  position: absolute;
  right: 8%;
  top: 8%;
  width: 18%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #3a3a3a, #101010 70%);
  box-shadow: 0 4px 10px rgba(0,0,0,0.8), inset 0 1px 0 rgba(242,240,235,0.25);
}
.ta-arm {
  position: absolute;
  right: 12.5%;
  top: 12.5%;
  width: 3px;
  height: 88%;
  background: linear-gradient(90deg, #3d3d3d, #d8d5cc 45%, #555 55%, #222);
  box-shadow: 2px 3px 6px rgba(0,0,0,0.6);
  transform-origin: top center;
}
.ta-arm::after {
  content: "";
  position: absolute;
  bottom: -4%;
  left: -4px;
  width: 11px;
  height: 20px;
  background: linear-gradient(180deg, #2a2a2a, #0d0d0d);
  box-shadow: 2px 4px 8px rgba(0,0,0,0.7), inset 0 1px 0 rgba(242,240,235,0.18);
  transform: rotate(14deg);
}

/* cassette: swaps in for SAM 002 */
.cassette {
  position: absolute;
  left: 0;
  bottom: 8%;
  width: min(56%, 340px);
  z-index: 2;
  transform: translateX(-72%);
  transition: transform 380ms linear;
  pointer-events: none;
  display: none;
}
.sleeve-stage.format-cassette .cassette { display: block; }
.sleeve-stage.format-cassette .vinyl { display: none; }
body.signal-on .sleeve-stage.format-cassette .cassette { transform: translateX(-14%); }
.cass-body {
  position: relative;
  aspect-ratio: 1.62;
  background: linear-gradient(160deg, #1c1c1c, #0e0e0e 60%, #161616);
  border: 1px solid rgba(242,240,235,0.22);
  box-shadow: 0 16px 36px rgba(0,0,0,0.7), inset 0 1px 0 rgba(242,240,235,0.14);
  padding: 7% 6% 6%;
  display: flex;
  flex-direction: column;
  gap: 6%;
}
.cass-label-strip {
  font-family: var(--mono);
  font-size: clamp(7px, 1.1vw, 10px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  padding: 4px 8px;
}
.cass-window {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: linear-gradient(180deg, rgba(242,240,235,0.10), rgba(242,240,235,0.04));
  border: 1px solid rgba(242,240,235,0.18);
  box-shadow: inset 0 3px 10px rgba(0,0,0,0.7);
}
.reel {
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, #0a0a0a 0 18%, transparent 18%),
    conic-gradient(#2c2c2c 0 20deg, #0f0f0f 20deg 40deg, #2c2c2c 40deg 60deg, #0f0f0f 60deg 80deg, #2c2c2c 80deg 100deg, #0f0f0f 100deg 120deg, #2c2c2c 120deg 140deg, #0f0f0f 140deg 160deg, #2c2c2c 160deg 180deg, #0f0f0f 180deg 200deg, #2c2c2c 200deg 220deg, #0f0f0f 220deg 240deg, #2c2c2c 240deg 260deg, #0f0f0f 260deg 280deg, #2c2c2c 280deg 300deg, #0f0f0f 300deg 320deg, #2c2c2c 320deg 340deg, #0f0f0f 340deg);
  box-shadow: inset 0 0 0 2px #050505, 0 0 0 1px rgba(242,240,235,0.12);
}
body.signal-on .reel { animation: spin 1.1s linear infinite; }
body.signal-on .reel.r { animation-duration: 1.7s; }

/* sleeve board: ringwear, worn corners, scuffs */
.sleeve-type::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 68% 42%, transparent 0 30%, rgba(242,240,235,0.045) 31%, transparent 33%),
    radial-gradient(circle at 68% 42%, transparent 0 36%, rgba(242,240,235,0.03) 37%, transparent 39%),
    radial-gradient(circle at 0% 0%, rgba(242,240,235,0.10), transparent 6%),
    radial-gradient(circle at 100% 0%, rgba(242,240,235,0.07), transparent 5%),
    radial-gradient(circle at 0% 100%, rgba(242,240,235,0.08), transparent 5%),
    radial-gradient(circle at 100% 100%, rgba(242,240,235,0.10), transparent 6%);
}

/* posters: masking tape corners + slight rotation, 3D lift */
.poster { position: relative; }
.poster::before, .poster::after {
  content: "";
  position: absolute;
  top: -7px;
  width: 54px;
  height: 15px;
  background: rgba(242, 240, 235, 0.16);
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
  z-index: 2;
  pointer-events: none;
}
.poster::before { left: 18px; transform: rotate(-4deg); }
.poster::after { right: 18px; transform: rotate(3deg); }
.posters .poster:nth-child(odd) { transform: rotate(-0.35deg); }
.posters .poster:nth-child(even) { transform: rotate(0.28deg); }
.poster:hover { transform: translateY(-3px) rotate(0deg); box-shadow: 0 22px 44px rgba(0,0,0,0.65); }

/* ticket stub on the next-up poster */
.stub {
  position: absolute;
  right: 14px;
  bottom: -11px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  padding: 6px 10px 6px 14px;
  border-left: 2px dashed var(--ink);
  transform: rotate(-3deg);
  box-shadow: 0 6px 14px rgba(0,0,0,0.6);
  pointer-events: none;
}

/* extruded display type: stepped 3D depth */
.hero-title {
  text-shadow:
    1px 1px 0 #000, 2px 2px 0 #000, 3px 3px 0 #050505,
    4px 4px 0 #080808, 5px 5px 0 #0a0a0a, 7px 7px 0 rgba(242,240,235,0.07);
}
.sleeve-title {
  text-shadow:
    0 -1px 0 rgba(0,0,0,0.7), 0 1px 0 rgba(242,240,235,0.14),
    2px 2px 0 #000, 3px 3px 0 #060606, 4px 4px 0 rgba(242,240,235,0.05);
}
.sec-title { text-shadow: 2px 2px 0 #000, 3px 3px 0 rgba(242,240,235,0.06); }

/* catalog rows lift off the surface on hover */
.cat-table tbody tr { transition: transform 120ms linear, box-shadow 120ms linear; }
.cat-table tbody tr:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.45);
  position: relative;
  z-index: 2;
}

/* masthead floats above the page */
.masthead { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }

/* hero body floats above the terrain plane */
.hero-body { transform: translateZ(60px); }
.hero { perspective: 900px; }
.hero-stage { transform: translateZ(-40px) scale(1.06); }

@media (max-width: 800px) {
  .cassette { width: min(52%, 240px); }
  body.signal-on .sleeve-stage.format-cassette .cassette { transform: translateX(2%); }
  .tonearm { width: 34%; }
}
