:root {
  --bg: #000;
  --fg: #f2f2f2;
  --dim: #5c5c5c;
  --line: #1c1c1c;
  --accent: #ff2fa8;
  --sans: "Syne", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(1.1rem, 4vw, 3.5rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 0; background: var(--bg); }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
/* film grain */
body::before {
  content: "";
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 100;
  opacity: .08;
  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='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s 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); }
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: #000; }

/* ---------- header ---------- */
.top {
  position: relative; z-index: 50;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem var(--pad);
}
.mark { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .02em; text-decoration: none; }

.star { width: 1.4em; height: 1.4em; flex: none; filter: drop-shadow(0 0 6px rgba(255,255,255,.25)); }

/* ---------- sections ---------- */
.rubric { overflow-x: clip; padding: clamp(4rem, 12vh, 8rem) var(--pad) 0; }
.rubric:last-of-type { padding-bottom: clamp(4rem, 12vh, 8rem); }
h2 {
  font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.6rem, 9vw, 8.5rem);
  line-height: .9; letter-spacing: -.035em;
  margin-bottom: clamp(1.5rem, 4vh, 3rem);
}

.zoomable { display: block; width: 100%; cursor: zoom-in; }

/* ---------- more ---------- */
.more-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.more-item h3 {
  font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
  font-size: clamp(1.1rem, 2vw, 1.6rem); margin-bottom: 1rem;
}
.more-item img { width: 100%; height: auto; }
.car-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: clamp(.8rem, 2vw, 1.5rem); align-items: start; }
@media (max-width: 860px) { .more-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .car-pair { grid-template-columns: 1fr; } }

/* ---------- vinyl ---------- */
.vinyl-pair {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(1rem, 3vw, 2.5rem); align-items: center; max-width: 1300px;
}
.cover { position: relative; aspect-ratio: 1; box-shadow: 0 40px 80px -30px rgba(0,0,0,.9); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.vinyl-stage { position: relative; width: 66.6%; aspect-ratio: 1; }
.cover.back { position: absolute; inset: 0; z-index: 1; }
.record {
  position: absolute; inset: 3%;
  transform: translateX(30%);
  transition: transform 1s cubic-bezier(.2,.8,.2,1);
}
.disc {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: #0a0a0a;
  box-shadow: 0 0 0 1px #222, 0 30px 90px -10px rgba(70, 140, 255, .45);
  animation: spin 4s linear infinite;
}
.vinyl-stage:hover .record, .vinyl-stage.out .record { transform: translateX(48%); }
.grooves {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    repeating-radial-gradient(circle, rgba(255,255,255,.05) 0 1px, transparent 1px 3px),
    conic-gradient(from 30deg, transparent 0 10%, rgba(255,255,255,.16) 14%, transparent 20% 55%, rgba(255,255,255,.1) 60%, transparent 66%);
}
.label {
  position: absolute; inset: 33%; border-radius: 50%;
  background-size: cover; background-position: center;
}
.label::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 7%; height: 7%;
  transform: translate(-50%, -50%); border-radius: 50%; background: var(--bg);
}
@keyframes spin { to { rotate: 360deg; } }


/* ---------- flyers ---------- */
.flyer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(.6rem, 1.5vw, 1.2rem);
}
.flyer-media {
  display: block; width: 100%;
  aspect-ratio: 3 / 4; overflow: hidden; background: #111;
}
.flyer-media img, .flyer-media video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .6s;
}
.flyer-grid:has(.flyer:hover) .flyer:not(:hover) .flyer-media img, .flyer-grid:has(.flyer:hover) .flyer:not(:hover) .flyer-media video { filter: brightness(.45); }
.flyer:hover .flyer-media img, .flyer:hover .flyer-media video { transform: scale(1.04); }

/* ---------- projects title ---------- */
.projects {
  padding: clamp(4rem, 14vh, 9rem) var(--pad) 0;
  font-weight: 800; text-transform: uppercase;
  font-size: 12vw; line-height: .85; letter-spacing: -.045em;
  white-space: nowrap; overflow: hidden;
  color: transparent; -webkit-text-stroke: 1px var(--fg);
}
.projects span { display: inline-block; }
@media (max-width: 560px) { .carwrap { width: min(100%, 420px); } }

/* ---------- lightbox ---------- */
dialog#lightbox {
  border: 0; padding: 0; background: transparent;
  max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
  display: none; place-items: center;
}
dialog#lightbox[open] { display: grid; }
dialog#lightbox::backdrop { background: rgba(0, 0, 0, .94); backdrop-filter: blur(6px); }
dialog#lightbox [hidden] { display: none; }
dialog#lightbox img, dialog#lightbox video { max-width: 92vw; max-height: 90vh; object-fit: contain; cursor: zoom-out; }
dialog#lightbox .close { position: fixed; top: 1rem; right: 1.4rem; font-size: 2rem; line-height: 1; color: var(--fg); }

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

@media (max-width: 700px) {
  .vinyl-pair { grid-template-columns: 1fr; }
  .vinyl-pair > .cover { width: 66%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .disc, body::before { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
