@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-wdth.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("fonts/bodoni-900.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}

:root {
  --red: #9D1819;
  --cream: #EDDDC4;
  --black: #0E0B0A;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --beat: .45s;
  --turn: 1.8s;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --hero-h: max(100svh, 40rem);
  --numeral-w: calc(var(--hero-h) * .39);
  --s: min(60svh, 42vw);
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --ring: var(--cream);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: var(--red);
  scrollbar-color: var(--cream) var(--black);
  scroll-padding-top: 1.5rem;
}
body {
  margin: 0;
  background: var(--red);
  color: var(--cream);
  font: 500 clamp(1rem, .95rem + .25vw, 1.125rem)/1.55 var(--sans);
  caret-color: var(--cream);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--cream); color: var(--red); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--cream); border: 3px solid var(--black); border-radius: 8px; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 4px; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .25em; text-decoration-thickness: 2px; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.defs { position: absolute; }
.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 200;
  padding: .75rem 1rem; background: var(--cream); color: var(--black);
  font-weight: 800; transition: top var(--beat) var(--ease);
}
.skip:focus { top: 1rem; }

/* Type voices */
.mark, .nav, .sticker, .now, .tag, .lip, .count, .chip, .side, .slot-id,
.credits dt, .meta, .runout, .concept, .etch, .label-mark, .label-code, .tab, .spine small {
  font-family: var(--sans);
  font-stretch: 118%;
  font-weight: 800;
}
h2, h3 { font-family: var(--serif); font-weight: 900; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: clamp(3rem, 9vw, 6rem); line-height: .95; }
.etch, .label-mark, .label-code { fill: var(--cream); font-stretch: 125%; }
.etch { letter-spacing: .1em; }
.label-code { letter-spacing: .12em; }
.label-mark { font-weight: 900; }

/* Header */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: var(--gutter);
  padding-left: calc(var(--numeral-w) + var(--gutter));
}
.mark {
  font-size: clamp(1.75rem, 2.4vw, 2.25rem); line-height: 1;
  font-stretch: 125%; font-weight: 900; text-decoration: none; letter-spacing: -.02em;
}
.nav { display: flex; gap: clamp(1rem, 3vw, 2.5rem); font-size: .875rem; text-transform: uppercase; letter-spacing: .08em; }
.nav a { text-decoration: none; padding-block: .75rem; background: linear-gradient(var(--cream), var(--cream)) 0 100% / 0 2px no-repeat; transition: background-size var(--beat) var(--ease); }
.nav a:hover, .nav a:focus-visible { background-size: 100% 2px; }

.sticker {
  display: inline-block; padding: .85em 1.5em; background: var(--cream); color: var(--black);
  border-radius: 1.4rem .5rem 1.4rem .5rem; text-decoration: none; text-transform: uppercase;
  font-size: .875rem; letter-spacing: .06em; line-height: 1.1; white-space: nowrap;
  transform: rotate(3deg);
  box-shadow: 0 .6rem 1.4rem -.4rem var(--black);
  transition: transform var(--beat) var(--ease), box-shadow var(--beat) var(--ease);
}
.sticker:hover { transform: rotate(-1deg) translateY(-2px); box-shadow: 0 1rem 1.8rem -.5rem var(--black); }
.sticker:focus-visible { outline-color: var(--cream); outline-offset: 6px; }
.sticker.lg { font-size: clamp(1.125rem, 2.4vw, 1.75rem); padding: 1em 1.9em; }

/* Hero */
.hero {
  position: relative; min-height: var(--hero-h);
  display: grid; place-items: center; align-content: center;
  padding: 7rem var(--gutter) 5rem calc(var(--numeral-w) + var(--gutter));
  overflow: clip;
}
.numeral {
  position: absolute; left: 0; top: 0; height: 100%; width: auto; max-width: none;
  fill: var(--cream);
}
.numeral text { font-family: var(--serif); font-weight: 900; font-size: 1px; }
.stage {
  position: relative; width: calc(var(--s) * 1.63); height: var(--s);
}
.sleeve-hero {
  position: absolute; left: 0; top: 0; width: var(--s); z-index: 2;
  height: var(--s); background: var(--black); box-shadow: 0 2.2rem 3.5rem -1.2rem var(--black); container-type: inline-size;
}
.sleeve-hero video { width: 100%; height: 100%; object-fit: cover; }
.tag {
  position: absolute; right: 6%; bottom: 6%; padding: .45em .8em;
  background: var(--cream); color: var(--black); border-radius: .4em;
  font-size: max(.75rem, 3.4cqw); line-height: 1; text-transform: uppercase; letter-spacing: .06em;
  transform: rotate(-3deg);
}
.now {
  position: absolute; z-index: 3; left: 0; top: calc(100% + 1.25rem); width: var(--s);
  font-size: clamp(.8125rem, 1.1vw, 1rem); text-transform: uppercase; letter-spacing: .08em; line-height: 1.3;
}

/* Vinyl: one clock. 33 1/3 rpm = 1.8s per turn; slide-out spans four beats. */
.vinyl {
  position: absolute; z-index: 1; top: 3%; left: 3%;
  width: calc(var(--s) * .94); height: calc(var(--s) * .94);
  transform: translateX(calc(var(--s) * .66));
}
.vinyl.is-sliding { animation: slide-out var(--turn) var(--ease) calc(var(--beat) * 2) both; }
.vinyl::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 25deg, transparent 0 18%, rgba(237, 221, 196, .1) 25%, transparent 32% 68%, rgba(237, 221, 196, .1) 75%, transparent 82%);
}
.disc {
  display: block; width: 100%; height: 100%; border-radius: 50%;
  background: repeating-radial-gradient(circle closest-side, transparent 0 3px, rgba(237, 221, 196, .07) 3px 4px), var(--black);
  animation: spin var(--turn) linear infinite;
}
.disc svg { width: 100%; height: 100%; }
@keyframes slide-out { from { transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Sections */
section { padding: clamp(4rem, 10vw, 8rem) var(--gutter); }
.sec-head { max-width: 72rem; margin: 0 auto clamp(2rem, 5vw, 4rem); display: grid; gap: 1rem; justify-items: center; text-align: center; }
.lede { max-width: 48ch; }

/* Crate: mobile first = a swipe row */
.crate { position: relative; }
.crate-list {
  display: flex; gap: 5vw; overflow-x: auto; padding: 4.5rem 14vw 1.5rem;
  scroll-snap-type: x mandatory; scrollbar-color: var(--cream) var(--black);
  margin-inline: calc(var(--gutter) * -1);
}
.sleeve { position: relative; flex: 0 0 72vw; scroll-snap-align: center; isolation: isolate; }
.face {
  position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0;
  background: var(--black); overflow: hidden; container-type: inline-size;
  box-shadow: 0 1.8rem 2.6rem -1.2rem var(--black);
  transition: box-shadow var(--beat) var(--ease);
}
.face img { width: 100%; height: 100%; object-fit: cover; }
.spine {
  position: absolute; inset: 0 auto 0 0; width: 20%; display: grid; place-items: center;
  background: var(--cream); overflow: hidden;
}
.spine span {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font: 900 21cqw/.8 var(--serif); letter-spacing: -.02em; color: var(--red);
}
.spine small { display: block; font: 800 7cqw/1 var(--sans); font-stretch: 125%; letter-spacing: .1em; margin-bottom: 1cqw; }
.rec {
  position: absolute; z-index: -1; left: 3%; top: 3%; width: 94%; aspect-ratio: 1;
  transition: transform calc(var(--beat) * 2) var(--ease);
}
.rec .disc { animation: none; }
.sleeve.is-open .rec { transform: translateY(-17%); }
.sleeve.is-open .rec .disc { animation: spin var(--turn) linear infinite; }
.lip, .wall { display: none; }

.deck {
  max-width: 72rem; margin: clamp(1.5rem, 4vw, 3rem) auto 0;
  background: var(--black); color: var(--cream);
  padding: clamp(1.25rem, 3vw, 2.5rem);
}
.deck-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.count { font-size: .875rem; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.deck-btns { display: flex; gap: .5rem; }
.step {
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center; padding: 0;
  background: transparent; border: 2px solid var(--cream); border-radius: 50%;
  transition: background var(--beat) var(--ease), color var(--beat) var(--ease);
}
.step svg { width: 1.25rem; height: 1.25rem; }
.step:hover { background: var(--cream); color: var(--black); }
.release { display: grid; gap: 1.75rem; }
.release[hidden] { display: none; }
.release h3 { font-size: clamp(1.75rem, 3.6vw, 3rem); line-height: 1.02; }
.meta time { white-space: nowrap; }
.meta { margin-top: .75rem; font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; }
.note { margin-top: 1rem; max-width: 56ch; }
.credits { margin-top: 1.25rem; max-width: 56ch; }
.credits > div { display: grid; grid-template-columns: minmax(6.5rem, 9rem) 1fr; gap: 1rem; padding-block: .55rem; border-top: 1px solid var(--cream); }
.credits dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; padding-top: .2rem; }
.credits dd { overflow-wrap: anywhere; }

.slot { position: relative; aspect-ratio: 16 / 9; border: 2px solid var(--cream); background: var(--black); align-self: start; order: -1; }
.slot-open { position: absolute; inset: 0; }
.lite { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--black); overflow: hidden; }
.lite img, .slot iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.play {
  position: absolute; left: 50%; top: 50%; width: 5rem; height: 5rem; margin: -2.5rem 0 0 -2.5rem;
  display: grid; place-items: center; border-radius: 50%; background: var(--cream); color: var(--black);
  box-shadow: 0 1rem 2rem -.6rem var(--black);
  transition: transform var(--beat) var(--ease);
}
.play svg { width: 2.25rem; height: 2.25rem; margin-left: .2rem; }
.lite:hover .play { transform: scale(1.12); }
.lite.gone { cursor: default; }
.gone-note { position: absolute; inset: auto 0 0 0; padding: .9rem 1rem; background: var(--black); font-size: .9375rem; }
.gone-note a { font-weight: 800; font-size: 1.125rem; }

/* Formats: back of the sleeve */
.formats { background: var(--cream); color: var(--black); --ring: var(--black); scrollbar-color: var(--black) var(--cream); }
.formats h2 { max-width: 72rem; margin: 0 auto clamp(2rem, 5vw, 4rem); }
.tracklist { max-width: 72rem; margin: 0 auto; }
.side {
  margin-top: 2.5rem; padding: .6rem 1rem; background: var(--black); color: var(--cream);
  font-size: .8125rem; text-transform: uppercase; letter-spacing: .14em;
}
.side:first-child { margin-top: 0; }
.track { display: grid; gap: .5rem 1.5rem; padding-block: 1.5rem; border-bottom: 2px solid var(--black); grid-template-columns: 3rem 1fr; align-items: baseline; }
.slot-id { font: 900 1.5rem/1 var(--serif); color: var(--red); }
.track h3 { font: 900 clamp(1.75rem, 3.6vw, 2.75rem)/1.05 var(--serif); letter-spacing: -.02em; }
.track p, .chips { grid-column: 2; }
.track p { max-width: 52ch; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.chip {
  padding: .55em .9em; border: 2px solid var(--black); border-radius: 999px; text-decoration: none;
  font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; line-height: 1; min-height: 2.75rem; display: inline-grid; place-items: center;
  transition: background var(--beat) var(--ease), color var(--beat) var(--ease);
}
.chip:hover { background: var(--black); color: var(--cream); }

/* Liner notes */
.liner { display: grid; gap: clamp(2rem, 5vw, 4rem); max-width: 80rem; margin: 0 auto; }
.liner-copy { display: grid; gap: 1.5rem; align-content: start; }
.statement { font: 900 clamp(1.6rem, 3.4vw, 2.6rem)/1.1 var(--serif); letter-spacing: -.02em; max-width: 24ch; }
.frame { border: 2px solid var(--cream); background: var(--black); aspect-ratio: 4 / 3; }
.frame video { width: 100%; height: 100%; object-fit: cover; }
.liner-credits h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: .5rem; }
.wide-credits { max-width: none; }
.wide-credits > div { padding-block: .85rem; grid-template-columns: minmax(10rem, 12.5rem) 1fr; }
.wide-credits dd { font-size: 1.0625rem; }
.codes { display: block; margin-top: .15rem; font: 800 .75rem/1.4 var(--sans); font-stretch: 118%; letter-spacing: .08em; text-transform: uppercase; }
.wide-credits dt { overflow-wrap: anywhere; text-transform: none; font-size: .875rem; letter-spacing: .02em; }

/* Book */
.book { background: var(--black); --ring: var(--cream); }
.book-inner { max-width: 72rem; margin-inline: auto; display: grid; justify-items: start; gap: 1.75rem; }
.book-line { font-size: clamp(1.125rem, 2vw, 1.5rem); }
.socials { display: flex; flex-wrap: wrap; gap: .5rem 2rem; }
.socials a { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem; font-weight: 700; font-stretch: 112%; }
.socials svg { width: 1.5rem; height: 1.5rem; }
.foot { background: var(--black); padding: 0 var(--gutter) 6rem; }
.runout { max-width: 72rem; margin-inline: auto; padding-top: 1.5rem; border-top: 1px solid var(--cream); font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; }

/* Concept bar */
.concept {
  position: fixed; left: .75rem; bottom: .75rem; z-index: 100; max-width: calc(100vw - 1.5rem);
  display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; padding: .35rem .5rem .35rem .9rem;
  background: var(--black); color: var(--cream); border: 1px solid var(--cream); border-radius: 999px;
  font-size: .75rem; letter-spacing: .02em; font-stretch: 100%; --ring: var(--cream);
}
.concept p { font-weight: 700; }
.cb-short { display: none; }
.concept nav { display: flex; gap: .25rem; }
.concept a {
  min-width: 2rem; min-height: 2rem; display: inline-grid; place-items: center; padding-inline: .5rem;
  border-radius: 999px; text-decoration: none; transition: background var(--beat) var(--ease), color var(--beat) var(--ease);
}
.concept a:hover { background: var(--cream); color: var(--black); }

/* Mobile hero: numeral beside the sleeve, record drops below it */
@media (max-width: 759px) {
  :root { --s: 56vw; --numeral-w: 33vw; }
  .top { flex-wrap: wrap; padding: 1.25rem var(--gutter) 0; row-gap: .25rem; }
  .nav { order: 3; width: 100%; justify-content: space-between; gap: .5rem; font-size: .75rem; letter-spacing: .04em; white-space: nowrap; }
  .concept { flex-wrap: nowrap; gap: .25rem .4rem; padding-left: .75rem; }
  .concept p { white-space: nowrap; }
  .meta { letter-spacing: .04em; }
  .hero { padding: 8.5rem var(--gutter) 6rem calc(var(--numeral-w) + var(--gutter) * .5); place-items: start; align-content: start; min-height: 0; }
  .numeral { top: 8.5rem; height: calc(var(--numeral-w) * 2.56); left: .5rem; }
  .stage { width: var(--s); height: calc(var(--s) * 1.6); margin: 0; }
  .vinyl { transform: translateY(calc(var(--s) * .6)); }
  .now { top: calc(100% + .5rem); width: calc(100vw - var(--numeral-w) - var(--gutter) * 1.5); }
  .sticker { padding: .75em 1.1em; font-size: .75rem; }
  .sticker.lg { font-size: 1.125rem; padding: 1em 1.6em; }
  .tag { right: 5%; }
  .sleeve-hero { box-shadow: 0 .5rem .9rem -.6rem var(--black); }
  .credits > div { grid-template-columns: 1fr; gap: .1rem; }
  .track { grid-template-columns: 2.5rem 1fr; padding-block: 2.5rem 1.25rem; }
}

/* Phone: the concept bar docks as one full-width row at the top; header and hero drop below it. */
@media (max-width: 560px) {
  :root { --bar-h: 2.25rem; }
  .concept {
    inset: 0 0 auto 0; max-width: none; height: var(--bar-h); justify-content: space-between;
    padding: 0 var(--gutter); border-width: 0 0 1px; border-radius: 0;
  }
  .cb-full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .cb-short { display: inline; }
  .top { padding-top: calc(var(--bar-h) + 1.25rem); }
  .hero { padding-top: calc(var(--bar-h) + 8.5rem); }
  .numeral { top: calc(var(--bar-h) + 8.5rem); }
  html { scroll-padding-top: calc(var(--bar-h) + .75rem); }
  .foot { padding-bottom: 2rem; }
}

/* Desktop: the perspective crate */
@media (min-width: 760px) {
  .release { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 2.5rem; }
  .slot { order: 0; }
  .liner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .track { grid-template-columns: 4rem minmax(0, 1.1fr) minmax(0, 1.2fr) 12rem; align-items: center; }
  .chips { justify-content: flex-end; }
  .track p, .chips { grid-column: auto; margin-top: 0; }

  .catalog { --cs: min(40vw, 62svh, 32rem); }
  .crate { height: calc(var(--cs) * 1.85); max-width: 72rem; margin-inline: auto; }
  /* The black lip and the black deck merge: pull the deck up over the lip (above its z-index 40) so its bar sits less than 2rem below the lip labels. */
  .deck { position: relative; z-index: 41; margin-top: calc(var(--cs) * -.3 + 3rem); padding-top: .5rem; }
  .crate-list {
    display: block; position: absolute; inset: 0; margin: 0; padding: 0; overflow: visible;
    perspective: 1500px; perspective-origin: 50% 0%; touch-action: pan-y; cursor: grab;
  }
  .crate-list.is-dragging { cursor: grabbing; }
  .crate-list.is-moving .sleeve { transition: transform var(--beat) var(--ease), opacity var(--beat) var(--ease), visibility var(--beat); }
  .sleeve {
    position: absolute; left: 50%; bottom: calc(var(--cs) * .1); width: var(--cs); margin-left: calc(var(--cs) / -2);
    transform-origin: 50% 100%;
    --d: 0;
  }
  .sleeve[data-pos="focus"] { z-index: 20; transform: translateY(calc(var(--cs) * -.18)) translateZ(60px); }
  .sleeve[data-pos="next"] { z-index: calc(20 - var(--d)); transform: translateY(calc(var(--cs) * (-.18 - var(--d) * .11))) translateZ(calc(var(--d) * -70px)); }
  .sleeve[data-pos="past"] { z-index: 1; transform: translateY(calc(var(--cs) * .06)) rotateX(-70deg); opacity: 0; visibility: hidden; pointer-events: none; }
  .sleeve:not([data-pos="focus"]) .face { box-shadow: 0 0 0 1px var(--black); }
  .sleeve[data-pos="focus"] .face:hover { box-shadow: 0 2.4rem 3rem -1rem var(--black); }
  .sleeve.is-open .rec { transform: translateX(calc(var(--cs) * .52)); }
  .face .tag { font-size: max(.75rem, 3.4cqw); top: 2.5%; bottom: auto; }
  .lip {
    position: absolute; z-index: 40; inset: auto 0 0 0; height: calc(var(--cs) * .3);
    background: var(--black); color: var(--cream); border-radius: .6rem .6rem 0 0;
    display: flex; justify-content: space-between; align-items: flex-start; padding: 1.1rem clamp(1.25rem, 3vw, 2.5rem) 0;
    font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; pointer-events: none;
  }
}

/* Crate walls with divider tabs need room beside the sleeves. */
@media (min-width: 1100px) {
  .wall {
    display: block; position: absolute; z-index: 5; bottom: calc(var(--cs) * .3); height: calc(var(--cs) * .26);
    width: calc((100% - var(--cs) * 1.25) / 2); background: var(--black);
  }
  .wall-l { left: 0; }
  .wall-r { right: 0; }
  .tabs { display: flex; justify-content: center; gap: .5rem; padding-inline: 1rem; }
  .tab {
    flex: 0 0 auto; min-width: 4.25rem; height: 3.75rem; transform: translateY(-1.5rem); padding: .55rem .6rem 0;
    background: var(--cream); color: var(--black); border: 0; border-radius: .35rem .35rem 0 0;
    font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2;
    transition: transform var(--beat) var(--ease), color var(--beat) var(--ease);
  }
  .tab:hover, .crate[data-cat="raw"] .tab[data-cat="raw"], .crate[data-cat="mv"] .tab[data-cat="mv"],
  .crate[data-cat="bts"] .tab[data-cat="bts"], .crate[data-cat="doc"] .tab[data-cat="doc"],
  .crate[data-cat="shoot"] .tab[data-cat="shoot"] { transform: translateY(-2.5rem); color: var(--red); }
}

@media (min-width: 760px) and (max-height: 700px) { .hero { padding-top: 6rem; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .vinyl.is-sliding { animation: none; }
  .disc, .sleeve.is-open .rec .disc { animation: none; }
  * { transition-duration: .01ms !important; }
}
