/* Second State Records: poster
   After the Conthic specimen: one hot red on black, studio photos graded to
   red with grain, giant condensed type sitting behind the people in the
   photo, small red labels in the corners. Conthic for everything set large or
   as a label, Hanken Grotesk for reading. */

@font-face { font-family: "Conthic"; src: url("../fonts/conthic.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --black: #050303;
  --red: #ee2b24;           /* type, labels, fills: 5.5:1 on black */
  --red-deep: #6e0c08;
  --line: rgba(238, 43, 36, 0.3);
  --bone: #f3e6e3;

  --display: "Conthic", "Arial Narrow", "Helvetica Neue", sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  --pad: clamp(16px, 3.2vw, 48px);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--black);
  color: var(--red);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
button { font: inherit; }
.defs { position: absolute; width: 0; height: 0; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: var(--red); color: var(--black); padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }

/* ---------- Shared pieces ---------- */
.label {
  font-family: var(--display);
  font-size: clamp(13px, 1.25vw, 18px);
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--red);
}
.label a { text-decoration: none; }
.label a:hover { color: var(--bone); }

.corners {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.corners > :first-child { justify-self: start; }
.corners > :last-child { justify-self: end; text-align: right; }
.mark-sm { width: 22px; height: 22px; }

.grain {
  position: absolute;
  inset: -50%;
  background-image: var(--grain);
  opacity: 0.22;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 4;
}
.js .grain { animation: grain 0.6s steps(1) infinite; }
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  background: var(--red);
  color: var(--black);
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--red);
}
.btn:hover { background: var(--black); color: var(--red); }
.btn-big { height: 64px; padding: 0 36px; font-size: 28px; }

/* ---------- Hero poster ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--black);
  isolation: isolate;
}
/* The stage keeps the photo's own aspect and covers the hero, so the word,
   the photo and the cut-out people always line up. */
.stage {
  --ar: 1920 / 1178;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: max(100vw, calc(max(100svh, 560px) * 1920 / 1178));
  aspect-ratio: var(--ar);
  container-type: size;
}
.stage picture, .stage img { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-fg { z-index: 2; }
.word {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: 38.5cqh;
  text-align: center;
  font-family: var(--display);
  font-size: 21.6cqw;
  line-height: 0.8;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--red);
  white-space: nowrap;
}
/* Darken the top and bottom bands so the corner labels sit on black, as on
   the poster. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(5,3,3,.92) 0, rgba(5,3,3,0) 22%, rgba(5,3,3,0) 74%, rgba(5,3,3,.9) 100%);
}
.hero .corners {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  z-index: 5;
}
.corners-top { top: calc(var(--pad) * 0.8); }
.corners-bottom { bottom: var(--pad); align-items: end; }
.mark img { width: 44px; height: 44px; }
.nav { display: flex; gap: clamp(14px, 2vw, 28px); }

.js .word { animation: cut 420ms steps(1, end) both 120ms; }
@keyframes cut { 0% { opacity: 0; } 25% { opacity: 1; } 45% { opacity: 0; } 60%, 100% { opacity: 1; } }

/* ---------- Sheets ---------- */
.sheet {
  position: relative;
  overflow: hidden;
  padding: calc(var(--pad) * 1.6) var(--pad) clamp(64px, 9vw, 140px);
  border-top: 1px solid var(--line);
}
.mega {
  margin-top: clamp(28px, 4vw, 64px);
  font-family: var(--display);
  font-size: clamp(76px, 15.5vw, 260px);
  line-height: 0.82;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--red);
  text-wrap: balance;
}
.mega-tight { margin-top: 0; font-size: clamp(76px, 11vw, 190px); }
.js .mega { opacity: 0; }
.js .mega.is-cut { animation: cut 420ms steps(1, end) both; }
.lead { margin-top: 24px; max-width: 34ch; font-size: clamp(18px, 1.6vw, 22px); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 72px);
  margin-top: clamp(32px, 4vw, 64px);
  align-items: end;
}
.copy { max-width: 36ch; display: flex; flex-direction: column; gap: 1em; align-items: flex-start; font-size: clamp(17px, 1.4vw, 20px); }
.copy .btn { margin-top: 12px; }
.plate { margin: 0; position: relative; justify-self: end; width: min(100%, 460px); }
.plate img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.plate figcaption { margin-top: 10px; }

/* ---------- Studio Look ---------- */
.split-look { align-items: stretch; }
.split-look .copy { justify-content: space-between; max-width: 40ch; }
.edit {
  position: relative;
  justify-self: end;
  width: min(100%, 420px);
  aspect-ratio: 9 / 16;
  background: var(--black);
  overflow: hidden;
}
.edit video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: url(#redgrade) contrast(1.15);
  visibility: hidden;
}
.edit[data-show="A"] [data-clip="A"],
.edit[data-show="B"] [data-clip="B"],
.edit[data-show="C"] [data-clip="C"],
.edit[data-show="L"] [data-clip="C"] { visibility: visible; }
.edit[data-show="L"] [data-clip="C"] { filter: url(#redgrade) brightness(1.9); }
.watermark {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 2;
  text-align: center;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
}
.edit-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px 0 0;
  cursor: pointer;
}
.edit-toggle:hover { color: var(--bone); }
.js .edit-toggle { display: inline-block; }

/* ---------- Artists ---------- */
.artists { list-style: none; margin: clamp(40px, 5vw, 80px) 0 0; padding: 0; border-top: 1px solid var(--line); }
.artist {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 48px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.artist-head { display: flex; gap: 20px; align-items: flex-start; }
.avatar { flex: none; width: 96px; height: 96px; object-fit: cover; background: #120706; }
.avatar-star { display: grid; place-items: center; }
.avatar-star img { width: 54px; height: 54px; }
.artist h3 { font-family: var(--display); font-size: clamp(40px, 5vw, 76px); line-height: 0.9; text-transform: uppercase; }
.role { margin-top: 8px; font-size: 15px; }

.player + .player { margin-top: 16px; }
.track { font-family: var(--display); font-size: 16px; letter-spacing: 0.03em; text-transform: uppercase; margin-bottom: 6px; }
.player audio { width: 100%; height: 36px; }
.player.is-enhanced audio { display: none; }
.wave-btn-row { display: flex; align-items: center; gap: 12px; }
.wave-play {
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--red);
  background: var(--red);
  color: var(--black);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.wave-play:hover, .player.is-playing .wave-play { background: var(--black); color: var(--red); }
.wave-play svg { width: 14px; height: 14px; fill: currentColor; }
.wave-play .icon-pause { display: none; }
.player.is-playing .wave-play .icon-play { display: none; }
.player.is-playing .wave-play .icon-pause { display: block; }
.wave-svg-wrap { position: relative; flex: 1; min-width: 0; height: 34px; }
.wave-svg { width: 100%; height: 100%; display: block; }
.wave-bg { fill: var(--red-deep); }
.wave-played { fill: var(--red); }
.wave-point { fill: var(--bone); }
.wave-time { flex: none; font-size: 13px; font-variant-numeric: tabular-nums; min-width: 36px; text-align: right; }
.visually-hidden-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; margin: 0; }

.spotify-facade {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--red);
  background: transparent;
  color: var(--red);
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
}
.spotify-facade:hover { background: var(--red); color: var(--black); }
.spotify-embed-wrap iframe { width: 100%; border: 0; }

.links { margin-top: 18px; display: flex; gap: 20px; font-family: var(--display); font-size: 17px; letter-spacing: 0.03em; text-transform: uppercase; }
.links a { text-decoration: none; border-bottom: 1px solid var(--line); }
.links a:hover { border-color: var(--red); }

/* ---------- Rates ---------- */
.rates { list-style: none; margin: clamp(40px, 5vw, 80px) 0 0; padding: 0; border-top: 1px solid var(--line); }
.rates li {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name price" "note price";
  column-gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.rate-name { grid-area: name; font-family: var(--display); font-size: clamp(28px, 3.4vw, 52px); line-height: 1; text-transform: uppercase; }
.rate-note { grid-area: note; margin-top: 6px; font-size: 15px; }
.rate-price { grid-area: price; align-self: center; font-family: var(--display); font-size: clamp(52px, 7.5vw, 120px); line-height: 0.85; }
.rate-price small { font-size: max(15px, 0.28em); margin-left: 4px; }

/* ---------- Book ---------- */
.book { isolation: isolate; }
.book-bg {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: min(52%, 640px);
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 45%);
  mask-image: linear-gradient(to right, transparent, #000 45%);
}
.book .grain { inset: 0; animation: none; }
.book .corners, .book .mega, .book-body { position: relative; z-index: 5; }
.book-body { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }

/* ---------- Story ---------- */
.story { list-style: none; padding: 0; margin: clamp(40px, 5vw, 80px) 0 0; border-top: 1px solid var(--line); }
.story li { display: grid; grid-template-columns: minmax(120px, 0.6fr) 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.year { font-family: var(--display); font-size: clamp(44px, 5vw, 80px); line-height: 0.85; }
.story p { max-width: 52ch; font-size: clamp(17px, 1.4vw, 20px); }

/* ---------- Footer ---------- */
.footer { padding: clamp(48px, 7vw, 96px) var(--pad) var(--pad); border-top: 1px solid var(--line); }
.footer-logo { width: min(220px, 50vw); margin: 0 auto 48px; }
.footer .label a + a { margin-left: 16px; }

/* ---------- Phone ---------- */
@media (max-width: 699px) {
  .stage {
    --ar: 860 / 1216;
    width: max(100vw, calc(max(100svh, 560px) * 860 / 1216));
  }
  .word { top: 23cqh; font-size: 33cqw; line-height: 0.84; }
  .word span { display: block; }
  .corners-top { grid-template-columns: auto 1fr; }
  .corners-top > p { display: none; }
  .corners-top .mark { justify-self: start; }
  .mark img { width: 36px; height: 36px; }
  .corners-bottom { grid-template-columns: 1fr auto; row-gap: 12px; }
  .hero-side { display: none; }
  .hero-line { grid-column: 1 / -1; grid-row: 1; max-width: none; }
  .corners-bottom .btn { grid-column: 1; grid-row: 2; justify-self: start; }
  .sheet .corners > :last-child { display: none; }
  .sheet .corners { grid-template-columns: 1fr auto; }
  .split { grid-template-columns: 1fr; }
  .plate, .edit { justify-self: stretch; width: 100%; }
  .edit { width: 86%; justify-self: end; }
  .split-look .copy { gap: 16px; }
  .artist { grid-template-columns: 1fr; }
  .avatar { width: 72px; height: 72px; }
  .book-bg { width: 100%; opacity: 0.45; -webkit-mask-image: none; mask-image: none; }
  .story li { grid-template-columns: 1fr; gap: 8px; }
  .footer .corners { grid-template-columns: 1fr; gap: 8px; }
  .footer .corners > * { justify-self: start; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .js .grain { animation: none; }
  .js .word, .js .mega { opacity: 1; animation: none; }
  .js .edit-toggle { display: none; }
}
