/* ØRYK — retro sunset vinyl. Palette sampled from the ØRYK artwork. */
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-wdth.woff2") format("woff2-variations"), url("assets/fonts/archivo-wdth.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face { font-family: "Plex Mono"; src: url("assets/fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("assets/fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("assets/fonts/plex-mono-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #0a0908;
  --ink-2: #131110;
  --ink-3: #1c1916;
  --cream: #f2dfbd;
  --cream-2: #c9b089;
  --cream-3: #8b7a60;
  --line: rgba(242, 223, 189, 0.22);

  --red: #d63a26;
  --orange: #e8732c;
  --mustard: #e9ae45;
  --sage: #8fa36b;
  --teal: #13a0a0;
  --blue: #1f8db0;

  --beat: 0;           /* 0..1, set by script on every kick */
  --gutter: clamp(16px, 4vw, 56px);
  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font: 400 17px/1.6 var(--display);
  font-stretch: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); line-height: 1; }
ul, ol { list-style: none; margin: 0; padding: 0; }
.mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 2px solid var(--mustard); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--cream); color: var(--ink); padding: 8px 12px; }
.skip:focus { left: 8px; }

/* film grain over everything */
.grain {
  position: fixed; inset: -50%; z-index: 50; pointer-events: none; opacity: 0.09;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 0.9  0 0 0 0 0.75  0 0 0 1.4 -0.2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* top bar */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  background: linear-gradient(var(--ink) 0%, rgba(10, 9, 8, 0) 100%);
}
.brand { font: 800 22px/1 var(--display); font-stretch: 125%; text-decoration: none; letter-spacing: 0.02em; }
.topbar nav { display: flex; gap: clamp(12px, 2.4vw, 32px); }
.topbar nav a {
  font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.14em; text-decoration: none;
  color: var(--cream-2); padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.topbar nav a:hover { color: var(--cream); border-color: var(--orange); }

/* ───────────── hero ───────────── */
.hero {
  position: relative; height: 100svh; min-height: 620px; overflow: hidden;
  background:
    radial-gradient(60% 55% at 50% 52%, rgba(232, 115, 44, calc(0.10 + var(--beat) * 0.07)) 0%, rgba(10, 9, 8, 0) 70%),
    radial-gradient(120% 80% at 50% 120%, #17120e 0%, var(--ink) 60%);
}
/* the banner stripes running behind the deck */
.stripes {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-62%);
  display: grid; gap: clamp(5px, 0.8vw, 10px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}
.stripes i {
  display: block; height: clamp(7px, 1.15vw, 15px); background: var(--c);
  opacity: calc(0.78 + var(--beat) * 0.22);
  filter: saturate(0.92) brightness(calc(0.9 + var(--beat) * 0.25));
  box-shadow: 0 0 calc(10px + var(--beat) * 26px) color-mix(in srgb, var(--c) 45%, transparent);
  transform-origin: center;
  animation: stripe-in 1.4s cubic-bezier(.2, .7, .1, 1) both;
}
.stripes i:nth-child(2) { animation-delay: .08s; } .stripes i:nth-child(3) { animation-delay: .16s; }
.stripes i:nth-child(4) { animation-delay: .24s; } .stripes i:nth-child(5) { animation-delay: .32s; }
@keyframes stripe-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }

#deck { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.deck-fallback {
  display: none; position: absolute; left: 50%; top: 50%; width: min(62vmin, 520px); transform: translate(-50%, -58%);
  border-radius: 50%; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 0 10px #111, 0 0 0 11px #2a2622;
  animation: spin 1.8s linear infinite;
}
.no-webgl #deck { display: none; }
.no-webgl .deck-fallback { display: block; }
@keyframes spin { to { transform: translate(-50%, -58%) rotate(360deg); } }

.sleeve-text { position: absolute; inset: 0; pointer-events: none; padding: 84px var(--gutter) var(--gutter); }
.sleeve-text > * { pointer-events: auto; }
.corner { position: absolute; font-size: clamp(11px, 1.05vw, 14px); line-height: 1.55; color: var(--cream); }
.corner::after { content: ""; display: block; width: 46px; height: 1px; background: var(--cream-2); margin-top: 10px; }
.tl { left: var(--gutter); top: 96px; }
.bl { left: var(--gutter); bottom: calc(var(--gutter) + 6px); }
.br { right: var(--gutter); bottom: calc(var(--gutter) + 6px); display: flex; align-items: flex-end; gap: 14px; text-align: right; }
.br::after { display: none; }
.eq { display: flex; gap: 5px; height: 54px; align-items: flex-end; }
.eq i { width: 9px; height: 100%; transform-origin: bottom; background: var(--red); transform: scaleY(calc(0.55 + var(--beat) * 0.45)); transition: transform .08s; }
.eq i:nth-child(2) { background: var(--orange); transform: scaleY(calc(0.8 - var(--beat) * 0.3)); }
.eq i:nth-child(3) { background: var(--sage); transform: scaleY(calc(0.6 + var(--beat) * 0.4)); }
.eq i:nth-child(4) { background: var(--blue); transform: scaleY(calc(0.9 - var(--beat) * 0.25)); }

.stereo {
  position: absolute; right: var(--gutter); top: 92px;
  display: grid; justify-items: center; gap: 0; padding: 0; cursor: pointer;
  background: rgba(10, 9, 8, 0.55); color: var(--cream); border: 1.5px solid var(--cream);
  font-family: var(--mono); min-width: 150px; transition: background .2s, box-shadow .2s;
}
.stereo:hover { background: rgba(232, 115, 44, 0.14); box-shadow: 0 0 0 4px rgba(232, 115, 44, 0.18); }
.stereo-title { font: 600 20px/1 var(--mono); letter-spacing: 0.06em; padding: 9px 14px 7px; }
.stereo-sub { font-size: 11px; letter-spacing: 0.1em; padding: 5px 10px; border-top: 1.5px solid var(--cream); width: 100%; text-align: center; }
.stereo-act { font-size: 10.5px; letter-spacing: 0.12em; padding: 6px 10px; width: 100%; text-align: center; background: var(--cream); color: var(--ink); }
.stereo[aria-pressed="true"] .stereo-act { background: var(--orange); }
.now {
  position: absolute; right: var(--gutter); top: 188px; margin: 0; font-size: 10.5px; letter-spacing: 0.12em; color: var(--cream-2);
  display: flex; align-items: center; gap: 8px; max-width: 46vw; text-align: right;
}
.now .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 calc(4px + var(--beat) * 10px) var(--orange); flex: none; }

.title {
  position: absolute; left: 50%; bottom: clamp(70px, 11vh, 130px); transform: translateX(-50%);
  text-align: center; width: max-content; max-width: calc(100% - 2 * var(--gutter)); pointer-events: none;
}
.wordmark {
  position: relative;
  font-weight: 900; font-stretch: 125%; font-size: clamp(56px, 11vw, 168px); letter-spacing: 0.01em; line-height: 0.9;
  color: var(--cream);
  /* worn print texture: thin horizontal scanlines cut into the letters */
  -webkit-mask-image: repeating-linear-gradient(0deg, #000 0 3px, rgba(0, 0, 0, 0.55) 3px 4px);
  mask-image: repeating-linear-gradient(0deg, #000 0 3px, rgba(0, 0, 0, 0.55) 3px 4px);
}
.title { filter: drop-shadow(0 0 calc(var(--beat) * 26px) rgba(233, 174, 69, 0.35)); }
.tagline { margin: 14px 0 0; font-size: clamp(12px, 1.5vw, 19px); letter-spacing: 0.32em; color: var(--cream); }
.tagline b { color: var(--orange); font-weight: 500; }
.hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); margin: 0;
  font-size: 10.5px; letter-spacing: 0.24em; color: var(--cream-3); white-space: nowrap; transition: opacity .6s;
}
.hint.gone { opacity: 0; }
.no-webgl .hint { display: none; }

/* ───────────── sections ───────────── */
section:not(.hero) { padding: clamp(80px, 12vw, 160px) var(--gutter); position: relative; }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.side { display: inline-block; font-size: 12px; color: var(--orange); border: 1px solid currentColor; padding: 4px 9px; margin-bottom: 22px; }
h2 { font-weight: 850; font-stretch: 118%; font-size: clamp(38px, 6vw, 84px); letter-spacing: -0.01em; text-transform: uppercase; }
.lede { font-size: clamp(18px, 1.6vw, 22px); color: var(--cream-2); margin: 22px 0 0; max-width: 62ch; }
.lede em { color: var(--cream); font-style: normal; border-bottom: 2px solid var(--orange); }

/* tracklist cards */
.tracks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.track {
  position: relative; background: var(--ink); padding: 30px 26px 26px; min-height: 260px;
  display: flex; flex-direction: column; gap: 14px; overflow: hidden; transition: background .3s;
}
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--c); transform: scaleX(0.18); transform-origin: left; transition: transform .45s cubic-bezier(.2, .7, .1, 1); }
.track:hover { background: var(--ink-2); }
.track:hover::before { transform: scaleX(1); }
.num { font-size: 12px; color: var(--c); }
.track h3 { font-size: 30px; font-weight: 800; font-stretch: 112%; text-transform: uppercase; }
.track p { margin: 0; color: var(--cream-2); font-size: 16px; flex: 1; }
.bpm { font-size: 12px; color: var(--cream-3); }

/* DJ */
.dj { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); }
.photo { margin: 0; position: relative; }
.photo img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: saturate(1.05) contrast(1.04); }
.photo::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--line), inset 0 -120px 120px -60px rgba(10, 9, 8, 0.85); pointer-events: none; }
.photo figcaption { position: absolute; left: 18px; bottom: 16px; font-size: 11px; color: var(--cream); z-index: 1; }
.dj-copy p:not(.lede) { color: var(--cream-2); margin: 20px 0 0; max-width: 60ch; }
.labels { display: flex; gap: 22px; margin-top: 36px; }
.labels figure { margin: 0; text-align: center; }
.labels img { width: clamp(96px, 11vw, 150px); border-radius: 50%; box-shadow: 0 0 0 6px #0d0c0b, 0 0 0 7px #2c2721, 0 18px 40px rgba(0, 0, 0, 0.6); transition: transform 1.2s cubic-bezier(.2, .7, .1, 1); }
.labels figure:hover img { transform: rotate(360deg); }
.labels figcaption { font-size: 11px; color: var(--cream-3); margin-top: 16px; }

/* mixes */
.sleeve-row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.sleeve { width: 100%; max-width: 560px; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7); transform: rotate(-2deg); }
.sleeve.reveal { transform: translateY(26px) rotate(-2deg); }
.sleeve.reveal.in { transform: rotate(-2deg); }
.stamp { display: inline-block; font-size: 12px; border: 1.5px solid var(--cream); padding: 8px 12px; margin: 0 0 28px; }
.links { display: grid; gap: 10px; max-width: 460px; }
.links a {
  display: flex; justify-content: space-between; align-items: center; text-decoration: none;
  font: 500 14px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.14em;
  padding: 20px 22px; border: 1px solid var(--line); transition: background .2s, border-color .2s, color .2s;
}
.links a::after { content: "↗"; color: var(--orange); }
.links a:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.soon { color: var(--cream-3); font-size: 12px; }

/* booking */
.booking { text-align: center; overflow: hidden; }
.booking::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: min(120vw, 1400px); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: repeating-linear-gradient(180deg, transparent 0 22px, rgba(10, 9, 8, 1) 22px 34px),
              linear-gradient(180deg, var(--red), var(--orange) 25%, var(--mustard) 48%, var(--teal) 74%, var(--blue));
  border-radius: 50%; opacity: 0.16; -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%); mask-image: radial-gradient(circle, #000 30%, transparent 70%);
}
.booking-inner { position: relative; max-width: 820px; margin: 0 auto; }
.booking .lede { margin-left: auto; margin-right: auto; }
.cta {
  display: inline-block; margin-top: 40px; text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 18px 34px; background: var(--cream); color: var(--ink); box-shadow: 6px 6px 0 var(--orange); transition: transform .15s, box-shadow .15s;
}
.cta:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--orange); }
.booking .soon { margin-top: 36px; }

/* footer */
.footer { padding: 56px var(--gutter) 44px; text-align: center; border-top: 1px solid var(--line); }
.footer-stripes { display: grid; gap: 4px; width: 120px; margin: 0 auto 26px; }
.footer-stripes i { height: 5px; }
.footer-stripes i:nth-child(1) { background: var(--red); } .footer-stripes i:nth-child(2) { background: var(--orange); }
.footer-stripes i:nth-child(3) { background: var(--mustard); } .footer-stripes i:nth-child(4) { background: var(--teal); }
.footer-stripes i:nth-child(5) { background: var(--blue); }
.footer p { margin: 0; font-size: 12px; color: var(--cream-2); }
.footer .small { margin-top: 8px; font-size: 11px; color: var(--cream-3); }
.footer .credit { text-transform: none; letter-spacing: 0.04em; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .1, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ───────────── responsive ───────────── */
@media (max-width: 900px) {
  .dj, .sleeve-row { grid-template-columns: 1fr; }
  .sleeve { max-width: 420px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .topbar nav { gap: 10px; }
  .topbar nav a { font-size: 10px; letter-spacing: 0.08em; }
  .brand { font-size: 18px; }
  .now { top: 150px; max-width: 70vw; font-size: 9.5px; }
  .tl { top: 72px; }
  .stereo { top: 70px; min-width: 120px; }
  .stereo-title { font-size: 16px; padding: 7px 10px 5px; }
  .stereo-sub, .stereo-act { font-size: 9.5px; padding: 4px 6px; }
  .bl { display: none; }
  .br span { display: none; }
  .eq { height: 38px; }
  .title { bottom: 84px; }
  .tagline { letter-spacing: 0.2em; }
  .hint { bottom: 22px; }
}
@media (max-height: 700px) and (min-width: 641px) {
  .bl { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { animation: none; }
  .stripes i { animation: none; }
  .deck-fallback { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .labels figure:hover img { transform: none; }
}
