/* ============================================================
   TUMANIC M·A·E
   Ground is near-black; every colour on the page is sampled
   from the painting, so the artwork is the only thing shouting.
   Mobile-first. The gateway keeps three columns at every width —
   vertical names are what make a narrow column work.
   ============================================================ */

:root {
  color-scheme: dark;

  /* Ground */
  --bg:      #0A0A0C;
  --bg-2:    #111114;
  --bg-3:    #17171B;
  --line:    #26262C;
  --line-2:  #383840;
  --text:    #F3F1EC;
  --muted:   #9C99A4;

  /* Sampled off the canvas */
  --red:     #E1281F;
  --cobalt:  #1B3FBF;
  --sky:     #4A9BE8;
  --yellow:  #F2C400;
  --green:   #0B9B4C;
  --magenta: #E5197F;
  --purple:  #6B3FA0;
  --orange:  #EE6A1E;

  /* Section accents. --accent paints blocks (floods, borders, button fills);
     --accent-text is the same hue lifted until it clears 4.5:1 on near-black,
     because raw red and purple are too dark to read as small type. */
  --accent:      var(--yellow);
  --accent-text: var(--yellow);
  --on-accent:   var(--bg);

  --red-lift:    #FF6A5E;
  --purple-lift: #A47BE0;
  --green-lift:  #35C97B;

  /* The artist's own Void — "a non-colour that holds all colour". */
  --void: #1B2951;

  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --body:    system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --pad:    clamp(1rem, 4vw, 3.5rem);
  --radius: 3px;
  --ease:   cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 90;
  padding: 0.8rem 1.25rem;
  background: var(--yellow);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ── Shared bits ─────────────────────────────────────────── */

.eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: clamp(3rem, 7vw, 5rem) 0 1.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.section-lede {
  margin: -0.5rem 0 1.5rem;
  max-width: 52ch;
  color: var(--muted);
}

.note {
  margin: 1rem 0 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--muted);
}
.note a { color: var(--accent-text); text-underline-offset: 3px; }

.linkish {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-text);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.chip {
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.chip--new { border-color: var(--yellow); color: var(--yellow); }

/* ── Buttons ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.6rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background-color 0.18s var(--ease),
              color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn:active:not([disabled]) { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover:not([disabled]) { filter: brightness(1.12); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}
.btn--ghost:hover:not([disabled]) { border-color: var(--accent); color: var(--accent-text); }

.btn--buy {
  padding: 0.5rem 1rem;
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}
.btn--buy:hover:not([disabled]) {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.btn[disabled] { cursor: not-allowed; opacity: 0.45; }

/* ── Top bar ─────────────────────────────────────────────── */

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem var(--pad);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.topbar[data-hidden='true'] {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.topbar__mark {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--display);
  font-variation-settings: 'wdth' 125;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
}
.topbar__mae { color: var(--yellow); font-size: 0.75rem; letter-spacing: 0.05em; }

.topnav {
  display: flex;
  gap: clamp(0.75rem, 2.5vw, 1.75rem);
  min-width: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

/* Below this the mark and four links no longer fit on one line. */
@media (max-width: 540px) {
  .topbar { gap: 0.5rem; padding-inline: 1rem; }
  .topbar__mae { display: none; }
  .topnav { gap: 0.7rem; font-size: 0.72rem; }
}
.topnav a {
  /* Short labels like "Art" fall under the 24px target minimum on their own. */
  min-width: 24px;
  padding: 0.3rem 0;
  text-align: center;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.topnav a:hover { color: var(--text); border-bottom-color: var(--yellow); }

/* ══ GATEWAY ══════════════════════════════════════════════ */

.gateway {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(1rem, 3.5vh, 2.5rem);
  min-height: 100svh;
  padding: clamp(1.5rem, 5vh, 3.5rem) var(--pad) clamp(1.25rem, 4vh, 2.5rem);
}

.gateway__head { text-align: center; }

.brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.15em 0.5em;
  margin: 0;
  font-family: var(--display);
  font-variation-settings: 'wdth' 125;
  font-weight: 900;
  font-size: clamp(1.9rem, 8.5vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}
.brand__mae { color: var(--yellow); }
.brand__dot { color: var(--muted); padding-inline: 0.06em; }

.brand__expand {
  margin: 0.75rem 0 0;
  font-family: var(--mono);
  font-size: clamp(0.65rem, 2.4vw, 0.8rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Three doors, side by side at every width. */
.doors {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  min-height: clamp(13rem, 46svh, 27rem);
}

.door {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  gap: 0.75rem;
  padding: clamp(0.75rem, 2.5vw, 1.5rem);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.door--music  { --accent: var(--yellow); --on-accent: var(--bg); }
.door--art    { --accent: var(--red);    --on-accent: #fff; }
.door--events { --accent: var(--purple); --on-accent: #fff; }

.door__flood {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.45s var(--ease);
}
.door:hover, .door:focus-visible { border-color: var(--accent); color: var(--on-accent); }
.door:hover .door__flood, .door:focus-visible .door__flood { transform: scaleY(1); }

.door__name {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  align-self: center;
  font-family: var(--display);
  font-variation-settings: 'wdth' 125;
  font-weight: 900;
  font-size: clamp(1.5rem, 6.5vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.door__meta {
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-align: center;
  color: inherit;
  opacity: 0.72;
}
@media (max-width: 640px) { .door__meta { display: none; } }

/* Emblems sitting on the dividers, as drawn */
.divider {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(2.1rem, 7vw, 4.5rem);
}
.divider::before {
  content: '';
  position: absolute;
  inset-block: 12%;
  width: 1px;
  background: var(--line);
}
.divider__em {
  position: relative;
  width: clamp(1.4rem, 4.5vw, 2.4rem);
  height: clamp(1.4rem, 4.5vw, 2.4rem);
  padding: 0.25rem;
  box-sizing: content-box;
  background: var(--bg);
  color: var(--muted);
}

.gateway__url {
  margin: 0;
  text-align: center;
  font-family: var(--mono);
  font-size: clamp(0.7rem, 2.6vw, 0.9rem);
  letter-spacing: 0.18em;
  color: var(--muted);
}

/* ══ CHAPTERS ═════════════════════════════════════════════ */

.chapter {
  position: relative;
  padding-block: clamp(3.5rem, 9vw, 7rem);
  border-top: 1px solid var(--line);
}
.chapter--music {
  --accent: var(--yellow);
  --accent-text: var(--yellow);
  --on-accent: var(--bg);
}
.chapter--art {
  --accent: var(--red);
  --accent-text: var(--red-lift);
  --on-accent: #fff;
}
.chapter--events {
  --accent: var(--purple);
  --accent-text: var(--purple-lift);
  --on-accent: #fff;
}
.chapter--about {
  --accent: var(--green);
  --accent-text: var(--green-lift);
  --on-accent: #fff;
}

.chapter__inner {
  width: min(72rem, 100%);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.chapter__head { margin-bottom: clamp(2rem, 5vw, 3rem); }

.chapter__title {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-variation-settings: 'wdth' 125;
  font-weight: 900;
  font-size: clamp(2.4rem, 9vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
.chapter__title--small { font-size: clamp(1.9rem, 6vw, 3rem); }

.chapter__lede {
  margin: 0 0 1.5rem;
  max-width: 54ch;
  font-size: clamp(1.02rem, 1vw + 0.8rem, 1.2rem);
  color: var(--muted);
}

/* Sticky vertical spine, so the rotated name runs the whole page */
.spine { display: none; }

@media (min-width: 1180px) {
  .chapter:not(.chapter--about) {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
  }
  .spine {
    display: block;
    position: sticky;
    top: 7rem;
    align-self: start;
    justify-self: center;
    margin: 0;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--accent-text);
  }
  .chapter:not(.chapter--about) .chapter__inner {
    margin-inline: 0;
    width: min(68rem, 100%);
  }
}

/* ══ MUSIC ════════════════════════════════════════════════ */

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.platform {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.platform:hover { border-color: var(--accent); color: var(--accent-text); }
.platform__ic { width: 1.05rem; height: 1.05rem; flex: none; }
.platform__ext { opacity: 0.6; }

/* ── The four rooms ──────────────────────────────────────── */

.rooms {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) {
  .rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room--all { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .rooms { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .room--all { grid-column: 1 / -1; }
}

.room {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-content: end;
  gap: 0.2rem;
  min-height: 3.5rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-2);
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.room:not(.room--all) { min-height: clamp(8rem, 20vw, 11rem); }
.room:hover { border-color: var(--accent); }
.room[aria-selected='true'] { border-color: var(--accent); }
.room[aria-selected='true']::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 3px;
  background: var(--accent);
}

.room__art { position: absolute; inset: 0; z-index: -1; }

.room__label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.room__name {
  font-family: var(--display);
  font-variation-settings: 'wdth' 125;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.room__note { font-size: 0.8rem; color: var(--muted); }
.room[aria-selected='true'] .room__note { color: color-mix(in srgb, var(--text) 75%, transparent); }

.room--all { --accent: var(--muted); --accent-text: var(--muted); align-content: center; }
.room--all[aria-selected='true'] { --accent: var(--text); --accent-text: var(--text); }

/* Glass room — frosted panes, cool edge light */
.room--glass { --accent: var(--sky); --accent-text: var(--sky); }
.room--glass .room__art {
  background:
    linear-gradient(112deg,
      rgb(255 255 255 / 0.11) 0 16%, transparent 16% 19%,
      rgb(255 255 255 / 0.05) 19% 44%, transparent 44% 47%,
      rgb(255 255 255 / 0.13) 47% 70%, transparent 70% 73%,
      rgb(255 255 255 / 0.04) 73% 100%),
    radial-gradient(120% 90% at 15% 0%, rgb(74 155 232 / 0.32), transparent 62%),
    linear-gradient(180deg, #0E1620, #0A0F16);
}

/* Rage room — fractured, hazard diagonals.
   Raw red on the near-black room ground only reaches 4.15:1, so the label
   takes the lifted red. */
.room--rage { --accent: var(--red); --accent-text: var(--red-lift); }
.room--rage .room__art {
  background:
    repeating-linear-gradient(45deg, rgb(0 0 0 / 0.5) 0 9px, transparent 9px 18px),
    conic-gradient(from 200deg at 72% 18%, rgb(225 40 31 / 0.5), transparent 22%, rgb(225 40 31 / 0.28) 42%, transparent 60%),
    radial-gradient(100% 80% at 10% 100%, rgb(120 12 8 / 0.7), transparent 65%),
    #140809;
}
.room--rage .room__art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(97deg, transparent 46%, rgb(255 255 255 / 0.16) 47% 48%, transparent 49%),
              linear-gradient(72deg, transparent 62%, rgb(255 255 255 / 0.1) 63% 64%, transparent 65%);
}

/* Padded room — quilted cells, everything muffled */
.room--padded { --accent: var(--purple-lift); --accent-text: var(--purple-lift); }
.room--padded .room__art {
  background-color: #171320;
  background-image:
    radial-gradient(circle at 50% 45%, rgb(255 255 255 / 0.055) 0 38%, transparent 60%),
    linear-gradient(0deg, rgb(0 0 0 / 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgb(0 0 0 / 0.55) 1px, transparent 1px);
  background-size: 42px 42px;
  box-shadow: inset 0 0 40px 12px rgb(0 0 0 / 0.55);
}

/* Forest — canopy, shafts of warm light */
.room--forest { --accent: var(--green-lift); --accent-text: var(--green-lift); }
.room--forest .room__art {
  background:
    linear-gradient(104deg, transparent 28%, rgb(242 196 0 / 0.11) 32% 36%, transparent 40%),
    linear-gradient(104deg, transparent 54%, rgb(242 196 0 / 0.07) 57% 60%, transparent 63%),
    radial-gradient(70% 55% at 22% 8%, rgb(11 155 76 / 0.42), transparent 68%),
    radial-gradient(80% 60% at 88% 96%, rgb(3 34 18 / 0.85), transparent 72%),
    #08130D;
}

/* ── Deck ────────────────────────────────────────────────── */

.deck {
  margin-top: clamp(2rem, 5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  overflow: hidden;
}
.deck__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.deck__link {
  margin-left: auto;
  color: var(--accent-text);
  text-decoration: none;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.deck__link:hover { text-decoration: underline; }
.deck__dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--yellow);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0%   { opacity: 1; }
  55%  { opacity: 0.25; }
  100% { opacity: 1; }
}
.deck__frame { width: 100%; border: 0; }

/* ── Discography ─────────────────────────────────────────── */

.disco:focus-visible { outline-offset: 6px; }

.disco__status:empty { display: none; }
.disco__status {
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.disco__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.track { border-bottom: 1px solid var(--line); }
.track[hidden] { display: none; }

.track__row {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem 0.85rem;
  padding: 0.9rem 0;
}

.track__no {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.track__title {
  min-width: 0;
  font-family: var(--display);
  font-variation-settings: 'wdth' 125;
  font-weight: 700;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}

.track__tags {
  display: flex;
  gap: 0.4rem;
  grid-column: 2;
}
.track__tags:empty { display: none; }

.track__year {
  grid-row: 1;
  grid-column: 3;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.disco__empty {
  margin: 1.5rem 0 0;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
}

/* ══ ART ══════════════════════════════════════════════════ */

.assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}
.assurances li { display: flex; align-items: center; gap: 0.5rem; }
.assurances li::before {
  content: '';
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--accent);
  transform: rotate(45deg);
}

/* ── Series statement ────────────────────────────────────── */

/* The statement sits in the Void, mixed down so the swatch beside it still
   reads as a lighter sample of the same colour. */
.statement {
  margin: 0;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid color-mix(in srgb, var(--void) 70%, var(--bg));
  border-left: 3px solid var(--void);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--void) 45%, var(--bg));
}
.statement p {
  margin: 0 0 1.1rem;
  max-width: 60ch;
  color: #DCE0EC;
}
.statement p:last-child { margin-bottom: 0; }
.statement strong { color: var(--text); font-weight: 600; }

.swatch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.05rem 0.5rem 0.05rem 0.35rem;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.88em;
  white-space: nowrap;
}
.swatch__chip {
  width: 0.72em;
  height: 0.72em;
  flex: none;
  border-radius: 50%;
  background: var(--void);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.4);
}

.feature {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
}
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .feature__stage { position: sticky; top: 6rem; }
}

.feature__hero {
  position: relative;
  margin: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
}
.feature__hero img { width: 100%; }

.feature__flag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.6rem;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.strip {
  display: flex;
  gap: 0.6rem;
  margin: 0.6rem 0 0;
  padding: 0 0 0.4rem;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.strip li { flex: 0 0 clamp(5rem, 22%, 7.5rem); scroll-snap-align: start; }
.strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature__title {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-variation-settings: 'wdth' 125;
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  line-height: 1.05;
  text-wrap: balance;
}

.feature__desc { margin: 0 0 1rem; max-width: 52ch; color: var(--muted); }
/* Only the paragraph that meets the specs list carries the larger block gap,
   so the space between description paragraphs stays tighter. Matched on the
   following sibling rather than :last-of-type — the draft-price note after
   the buy list is also a <p>, and would otherwise win. */
.feature__desc:has(+ .specs) { margin-bottom: 1.75rem; }

.specs {
  margin: 0 0 2rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.8rem;
}
.specs__row {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.specs__unknown { color: var(--muted); font-style: italic; }

.buys { display: grid; gap: 0.6rem; }

.buy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}
.buy__what { display: grid; gap: 0.15rem; min-width: 0; }
.buy__name { font-weight: 600; }
.buy__note { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }
.buy__price {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.buy .btn { grid-column: 2; }
@media (min-width: 480px) {
  .buy { grid-template-columns: minmax(0, 1fr) auto auto; }
  .buy .btn { grid-column: auto; }
}
.buy[data-sold='true'] { opacity: 0.55; }

.draft-note {
  margin: 1rem 0 0;
  padding: 0.6rem 0.8rem;
  border-left: 3px solid var(--yellow);
  background: color-mix(in srgb, var(--yellow) 9%, transparent);
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.55;
  color: var(--text);
}

/* ── Merch ───────────────────────────────────────────────── */

.merch {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .merch { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.mitem {
  display: grid;
  gap: 0.4rem;
  align-content: start;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}
.mitem__shape {
  width: 100%;
  height: 5.5rem;
  margin-bottom: 0.5rem;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--magenta) 0 25%, var(--yellow) 25% 50%, var(--cobalt) 50% 75%, var(--green) 75% 100%);
  opacity: 0.85;
}
.mitem__shape--hoodie { clip-path: polygon(18% 0, 82% 0, 100% 22%, 88% 32%, 88% 100%, 12% 100%, 12% 32%, 0 22%); }
.mitem__shape--tee    { clip-path: polygon(22% 0, 78% 0, 100% 18%, 86% 30%, 86% 100%, 14% 100%, 14% 30%, 0 18%); }
.mitem__shape--cap    { clip-path: polygon(50% 8%, 88% 34%, 92% 68%, 100% 84%, 8% 84%, 12% 40%); }

.mitem__name {
  margin: 0;
  font-family: var(--display);
  font-variation-settings: 'wdth' 125;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.mitem__blurb { margin: 0; font-size: 0.88rem; color: var(--muted); }
.mitem__meta {
  margin: 0 0 0.6rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}
.mitem__price { font-variant-numeric: tabular-nums; color: var(--text); }
.mitem .btn { justify-self: start; }

/* ══ EVENTS ═══════════════════════════════════════════════ */

.empty {
  display: grid;
  justify-items: start;
  gap: 0.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-2);
}
.empty__em { width: 2rem; height: 2rem; color: var(--accent-text); margin-bottom: 0.25rem; }
.empty__head {
  margin: 0;
  font-family: var(--display);
  font-variation-settings: 'wdth' 125;
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.empty__body { margin: 0; max-width: 52ch; color: var(--muted); }
.empty .btn { margin-top: 0.75rem; }
.empty--quiet { border-style: solid; background: none; }

/* ── Signup ──────────────────────────────────────────────── */

.signup {
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-2);
}
.signup__blurb { margin: 0 0 1.25rem; max-width: 48ch; color: var(--muted); }
.signup__row { display: grid; gap: 0.75rem; align-items: end; }
@media (min-width: 560px) { .signup__row { grid-template-columns: minmax(0, 1fr) auto; } }
.signup__msg:empty { display: none; }
.signup__msg {
  margin: 0.9rem 0 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
}
.signup__msg[data-state='error'] { color: #FF7A6E; }
.signup__msg[data-state='ok'] { color: var(--green); }

/* ── Fields ──────────────────────────────────────────────── */

.field { display: grid; gap: 0.35rem; min-width: 0; }
.field label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  resize: vertical;
}
.field input:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--accent); }
.field input[aria-invalid='true'], .field textarea[aria-invalid='true'] { border-color: #FF7A6E; }
.field__hint { margin: 0.35rem 0 0; font-size: 0.78rem; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 480px) { .field-row { grid-template-columns: 1fr 1fr; } }

.talk { min-height: 4rem; }

/* ══ ABOUT ════════════════════════════════════════════════ */

.about { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 820px) { .about { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; } }

.about__portrait { margin: 0; }
.about__portrait img {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}
.about__text { margin: 0 0 1.25rem; max-width: 54ch; color: var(--muted); }
.about__body .btn { margin-top: 0.25rem; }

/* ══ FOOTER ═══════════════════════════════════════════════ */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 2rem;
  padding: 2.5rem var(--pad) 3rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}
.footer p { margin: 0; }
.footer__mark {
  font-family: var(--display);
  font-variation-settings: 'wdth' 125;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--text);
}
.footer__links {
  display: flex;
  gap: 1.25rem;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}
/* 24px minimum touch target — these sit in a list, not in a sentence, so
   the inline-link exemption does not apply to them. */
.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--yellow);
  text-underline-offset: 3px;
}

/* ══ CHECKOUT SHEET ═══════════════════════════════════════ */

.sheet {
  width: min(31rem, calc(100vw - 1.5rem));
  max-height: min(92svh, 48rem);
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-2);
  color: var(--text);
}
.sheet::backdrop { background: rgb(5 5 7 / 0.78); backdrop-filter: blur(4px); }

.sheet__form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 4vw, 1.75rem);
  max-height: inherit;
  overflow-y: auto;
}

/* The sheet is always an Art purchase, so it carries the Art accent. */
.sheet { --accent: var(--red); --accent-text: var(--red-lift); --on-accent: #fff; }

.sheet__head { position: relative; padding-right: 2.5rem; }
.sheet__title {
  margin: 0;
  font-family: var(--display);
  font-variation-settings: 'wdth' 125;
  font-weight: 900;
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.sheet__close {
  position: absolute;
  top: -0.4rem;
  right: -0.4rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.sheet__close:hover { background: var(--bg-3); color: var(--text); }

.sheet__summary {
  display: flex;
  gap: 0.9rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.sheet__thumb {
  width: 72px;
  height: 72px;
  flex: none;
  object-fit: cover;
  border-radius: 2px;
}
.sheet__what { min-width: 0; }
.sheet__piece { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.sheet__detail, .sheet__price {
  margin: 0.2rem 0 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}
.sheet__price {
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.sheet__error {
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-left: 3px solid #FF7A6E;
  background: rgb(255 122 110 / 0.1);
  font-size: 0.9rem;
}

.sheet__foot { display: grid; gap: 0.7rem; }
.sheet__foot .btn { width: 100%; }
.sheet__reassure { margin: 0; font-size: 0.76rem; color: var(--muted); }

/* ══ REVEAL ═══════════════════════════════════════════════ */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .chapter__head,
    .rooms,
    .deck,
    .disco,
    .feature,
    .merch,
    .empty,
    .signup,
    .about {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 22%;
    }
  }
  .door { animation: doorIn 0.7s var(--ease) both; }
  .door--art { animation-delay: 0.09s; }
  .door--events { animation-delay: 0.18s; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes doorIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ══ REDUCED MOTION ═══════════════════════════════════════ */

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