/* ─── DHH ARCHIVE ─────────────────────────────────────────────── */
:root {
  --bg: #060608;
  --ink: #f2efe9;
  --dim: rgba(242, 239, 233, 0.55);
  --line: rgba(242, 239, 233, 0.14);
  --accent: #e8a020;
  --accent2: #cc3a2a;
  --font-d: "Archivo Black", sans-serif;
  --font-b: "Space Grotesk", sans-serif;
  --font-h: "Tiro Devanagari Hindi", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-b);
  overflow-x: hidden;
}
body::after {            /* film grain */
  content: "";
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 200;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); } 75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

.mono { font-family: var(--font-b); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }

/* ─── preloader ───────────────────────────────────────────────── */
#loader {
  position: fixed; inset: 0; z-index: 300;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px;
  transition: opacity 0.7s ease, visibility 0.7s;
}
#loader.done { opacity: 0; visibility: hidden; }
.loader-mark { font-family: var(--font-h); font-size: clamp(40px, 7vw, 88px); color: var(--accent); }
.loader-count { font-family: var(--font-d); font-size: 14px; letter-spacing: 0.2em; color: var(--dim); }
.loader-bar { width: min(320px, 60vw); height: 1px; background: var(--line); }
.loader-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.2s ease; }

/* ─── header ──────────────────────────────────────────────────── */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  align-items: start; gap: 28px;
  padding: 22px 28px;
  mix-blend-mode: difference;
}
.brand {
  font-family: var(--font-d); font-size: 22px; color: var(--ink);
  text-decoration: none; letter-spacing: 0.02em;
}
.brand i { color: var(--accent); font-style: normal; }
.brand-wrap { display: flex; flex-direction: column; gap: 4px; }
.made-by {
  font-size: 9px; letter-spacing: 0.1em; color: var(--dim);
  line-height: 1.3; max-width: 150px;
}
.made-by a { color: var(--accent); text-decoration: none; white-space: nowrap; }
.made-by a:hover { text-decoration: underline; }
.head-pill, .cta-pill {
  border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--ink);
  padding: 9px 16px; cursor: pointer; text-decoration: none;
  transition: background 0.25s, color 0.25s;
}
.head-pill:hover, .cta-pill:hover { background: var(--ink); color: #000; }
.cta-pill { font-family: var(--font-b); font-weight: 600; font-size: 14px; background: var(--ink); color: #000; border: none; padding: 12px 22px; }
.cta-pill:hover { background: var(--accent); }
.head-blurb { color: var(--dim); line-height: 1.7; justify-self: center; text-align: left; }
.head-clocks { display: flex; flex-direction: column; gap: 6px; color: var(--dim); text-align: right; }
.head-clocks b { color: var(--ink); font-weight: 600; }

/* ─── hero stage ──────────────────────────────────────────────── */
#hero { height: 560vh; position: relative; }
.stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
#sphere { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; }
#sphere:active { cursor: grabbing; }

#tile-tip {
  position: fixed; z-index: 60; pointer-events: none;
  left: 50%; bottom: 96px; transform: translateX(-50%) translateY(8px);
  background: rgba(8, 8, 10, 0.82); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 18px;
  display: flex; gap: 12px; align-items: baseline;
  opacity: 0; transition: opacity 0.25s, transform 0.25s;
  backdrop-filter: blur(8px);
}
#tile-tip.on { opacity: 1; transform: translateX(-50%) translateY(0); }
#tile-tip strong { color: var(--accent); font-size: 12px; letter-spacing: 0.12em; }
#tile-tip span { color: var(--dim); }

.hero-copy, .scrub-copy {
  position: absolute; inset: 0; z-index: 10;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  pointer-events: none; text-align: center; gap: 8px;
}
.copy-line {
  position: absolute;
  opacity: 0; transform: translateY(30px);
  will-change: opacity, transform;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.8);
}
.copy-line.mono { color: var(--dim); }
h1.copy-line {
  font-family: var(--font-d);
  font-size: clamp(64px, 13vw, 190px);
  line-height: 0.92; letter-spacing: -0.01em;
}
.copy-line.big {
  font-family: var(--font-d);
  font-size: clamp(34px, 6vw, 84px);
  line-height: 1.02;
}

.hero-foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 28px;
}
.foot-nav { display: flex; gap: 6px; background: rgba(10,10,12,0.6); border: 1px solid var(--line); border-radius: 999px; padding: 6px; backdrop-filter: blur(10px); }
.foot-nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px;
  padding: 10px 20px; border-radius: 999px; transition: background 0.25s, color 0.25s;
}
.foot-nav a:hover { background: var(--ink); color: #000; }
.scroll-hint { color: var(--dim); animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ─── scrub sections ──────────────────────────────────────────── */
.scrub-section { height: 420vh; position: relative; background: #050507; }
.scrub-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ─── shared section chrome ───────────────────────────────────── */
section { position: relative; }
#manifesto, #artists, #timeline, #stats, #contact {
  background: var(--bg);
  padding: 18vh 7vw;
  border-top: 1px solid var(--line);
}
.kicker { color: var(--accent); margin-bottom: 38px; }

[data-reveal] { opacity: 0; transform: translateY(46px); transition: opacity 0.9s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1); }
[data-reveal].in { opacity: 1; transform: none; }

/* manifesto */
.statement {
  font-family: var(--font-b); font-weight: 500;
  font-size: clamp(26px, 4.2vw, 58px); line-height: 1.18;
  max-width: 19ch * 3; max-width: 56ch;
}
.statement em { font-style: normal; color: var(--accent); }
.manifesto-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 64px; max-width: 980px; }
.manifesto-row p { color: var(--dim); line-height: 1.75; font-size: 16px; }

/* artists */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 14px 0; margin: 0 -7vw 10vh; }
.marquee-track { display: inline-flex; gap: 48px; white-space: nowrap; color: var(--dim); animation: marquee 30s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
.artist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.artist-card {
  background: var(--bg); padding: 30px 26px 40px;
  display: flex; flex-direction: column; gap: 14px;
  transition: background 0.3s;
  position: relative; overflow: hidden;
}
.artist-card:hover { background: #0d0d11; }
.artist-card .num { font-size: 11px; color: var(--dim); letter-spacing: 0.14em; }
.artist-card h3 { font-family: var(--font-d); font-size: clamp(22px, 2.2vw, 30px); letter-spacing: 0.01em; }
.artist-card .city { color: var(--accent); font-size: 11px; letter-spacing: 0.18em; }
.artist-card p { color: var(--dim); font-size: 14px; line-height: 1.65; }
.artist-card::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--accent); transition: width 0.45s cubic-bezier(0.6, 0, 0.2, 1);
}
.artist-card:hover::after { width: 100%; }

/* timeline */
#timeline-rows { border-top: 1px solid var(--line); }
.t-row {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 28px; align-items: baseline;
  padding: 26px 6px; border-bottom: 1px solid var(--line);
  transition: background 0.3s, padding-left 0.3s;
}
.t-row:hover { background: #0c0c10; padding-left: 18px; }
.t-row .yr { font-family: var(--font-d); font-size: 22px; color: var(--accent); }
.t-row .what { font-size: 17px; }
.t-row .tag { color: var(--dim); font-size: 11px; letter-spacing: 0.16em; }

/* stats */
#stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; text-align: center; }
.stat b { display: block; font-family: var(--font-d); font-size: clamp(48px, 7vw, 110px); color: var(--ink); }
.stat span { color: var(--dim); }

/* contact */
#contact { text-align: center; padding-bottom: 8vh; }
.contact-line { font-family: var(--font-d); font-size: clamp(44px, 8vw, 120px); line-height: 0.98; margin-bottom: 48px; }
.cta-big {
  display: inline-block; color: var(--bg); background: var(--accent);
  font-family: var(--font-b); font-weight: 700; font-size: clamp(18px, 2.4vw, 28px);
  text-decoration: none; padding: 20px 44px; border-radius: 999px;
  transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.4, 1), background 0.3s;
}
.cta-big:hover { transform: scale(1.06) rotate(-1.5deg); background: var(--ink); }
footer {
  margin-top: 16vh; padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 20px; color: var(--dim);
}
footer a { color: var(--ink); text-decoration: none; }

/* ─── album overlay ───────────────────────────────────────────── */
#album-overlay {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(4, 4, 6, 0.92); backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.4s;
}
/* the hidden attribute must always win over display:flex,
   otherwise an invisible overlay blocks every click on the page */
#album-overlay[hidden] { display: none !important; }
#album-overlay:not(.on) { pointer-events: none; }
#album-overlay.on { opacity: 1; }
#overlay-close {
  position: absolute; top: 26px; right: 28px;
  background: none; border: 1px solid var(--line); color: var(--ink);
  border-radius: 999px; padding: 10px 18px; cursor: pointer;
}
#overlay-close:hover { background: var(--ink); color: #000; }
.overlay-inner { display: flex; gap: 56px; align-items: center; padding: 5vw; flex-wrap: wrap; justify-content: center; }
#overlay-art { width: min(440px, 80vw); height: auto; border-radius: 6px; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7); }
.overlay-meta { max-width: 420px; display: flex; flex-direction: column; gap: 16px; }
.overlay-meta #ov-tags { color: var(--accent); }
.overlay-meta h3 { font-family: var(--font-d); font-size: clamp(34px, 4.6vw, 64px); line-height: 1; }
.overlay-meta #ov-artist { color: var(--dim); }
.ov-desc { color: var(--dim); line-height: 1.7; font-size: 15px; }
.ov-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.ov-btn {
  font-family: var(--font-b); font-weight: 700; font-size: 12px; letter-spacing: 0.12em;
  background: var(--accent); color: #000; border: none; cursor: pointer;
  padding: 13px 22px; border-radius: 999px; text-decoration: none;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.ov-btn:hover { background: var(--ink); transform: translateY(-2px); }
.ov-btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.ov-btn.ghost:hover { background: var(--ink); color: #000; }
#ov-track { color: var(--dim); }
.eq { display: flex; gap: 5px; align-items: flex-end; height: 26px; margin-top: 6px; }
.eq.paused i { animation-play-state: paused; height: 6px; }
.eq i { width: 5px; background: var(--accent); animation: eq 0.9s ease-in-out infinite; border-radius: 2px; }
.eq i:nth-child(1) { animation-delay: 0s; } .eq i:nth-child(2) { animation-delay: 0.15s; }
.eq i:nth-child(3) { animation-delay: 0.3s; } .eq i:nth-child(4) { animation-delay: 0.45s; }
.eq i:nth-child(5) { animation-delay: 0.6s; }
@keyframes eq { 0%, 100% { height: 6px; } 50% { height: 26px; } }

/* ─── responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .site-head { grid-template-columns: auto 1fr auto; }
  .head-blurb, .head-clocks { display: none; }
  .manifesto-row { grid-template-columns: 1fr; }
  .t-row { grid-template-columns: 80px 1fr; }
  .t-row .tag { display: none; }
  .overlay-inner { gap: 28px; }
}
