:root {
  --black: #000;
  --white: #fff;
  --grey: #8a8a8a;
  --serif: "GFS Didot", Georgia, "Times New Roman", serif;
  --cond: "Oswald", "Arial Narrow", sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none;
  background: var(--black); color: var(--white); font-family: var(--serif);
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; border-radius: 2px; }

/* ============ stage (one screen, no scroll) ============ */
.stage { position: fixed; inset: 0; height: 100svh; overflow: hidden; display: flex; align-items: center; justify-content: center; touch-action: none; }
.bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: grayscale(1) contrast(1.1); transition: opacity 2.4s ease; transform: scale(1.04); }
.ready .bg-video { opacity: .6; animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.12) translate(-1.5%, -1%); } }
.bg-shade { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, rgba(0,0,0,.3) 0%, rgba(0,0,0,.6) 55%, rgba(0,0,0,.95) 100%); }

.grain { position: fixed; inset: 0; z-index: 70; pointer-events: none; overflow: hidden; }
.grain::before {
  content: ""; position: absolute; inset: -50%; opacity: .05;
  background-image: 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 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } 100% { transform: translate(0, 0); }
}

.center { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; padding: 0 20px; transform: translateY(0); transition: transform 1.4s var(--ease-io); }
.ready .center { transform: translateY(-5vh); }

/* ============ logo intro (same clip boxes as the full site) ============ */
.logo { position: relative; margin: 0; width: min(76vw, 720px, 100vh); aspect-ratio: 868 / 395; }
.piece { position: absolute; inset: 0; opacity: 0; background: url("assets/logo-white.png") center / 100% 100% no-repeat; }
.bar1 { --t: 0%; --r: 0%; --b: 90.4%; --l: 0%; }
.bar2 { --t: 10.1%; --r: 11.3%; --b: 81.3%; --l: 0%; }
.dots { clip-path: inset(10.1% 0 81.3% 88.7%); }
.l { --t: 19.2%; --b: 37.7%; clip-path: inset(var(--t) var(--r) var(--b) var(--l)); }
.l1 { --l: 0%; --r: 89.4%; }
.l2 { --l: 10.6%; --r: 66.7%; }
.l3 { --l: 33.3%; --r: 57.7%; }
.l4 { --l: 42.3%; --r: 33.3%; }
.l5 { --l: 66.7%; --r: 9.8%; }
.l6 { --l: 90.2%; --r: 0%; }
.records { clip-path: inset(62.8% 0 0 0); }

.run .l { animation: charIn 1.15s var(--ease-out) var(--d) both; }
.run .bar1, .run .bar2 { animation: barIn 1s var(--ease-io) var(--d) both; }
.run .dots { animation: dotsIn .7s var(--ease-out) var(--d) both; }
.run .records { animation: recordsIn 1s var(--ease-io) var(--d) both; }
@keyframes charIn { 0% { opacity: 0; filter: blur(8px); } 40% { opacity: .45; } 100% { opacity: 1; filter: blur(0); } }
@keyframes barIn {
  from { opacity: 1; clip-path: inset(var(--t) 100% var(--b) var(--l)); }
  to   { opacity: 1; clip-path: inset(var(--t) var(--r) var(--b) var(--l)); }
}
@keyframes dotsIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes recordsIn { from { opacity: 1; clip-path: inset(62.8% 0 37.2% 0); } to { opacity: 1; clip-path: inset(62.8% 0 0 0); } }

/* ============ work in progress ============ */
.wip-word { margin: clamp(28px, 6vh, 56px) 0 0; font-size: clamp(34px, 5.4vw, 64px); line-height: 1; text-align: center; }
.wip-word .w { display: inline-block; white-space: nowrap; }
.wip-word .ch { display: inline-block; opacity: 0; transform: translateY(.2em); filter: blur(8px); }
.ready .wip-word .ch { animation: chUp 1.1s var(--ease-out) both; animation-delay: calc(.35s + var(--i) * 65ms); }
@keyframes chUp { to { opacity: 1; transform: none; filter: none; } }

.after { opacity: 0; transform: translateY(16px); transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out); }
.ready .after { opacity: 1; transform: none; }
.sub { margin: 18px 0 0; font-family: var(--cond); font-size: 13px; letter-spacing: .45em; text-transform: uppercase; text-align: center; color: rgba(255,255,255,.75); transition-delay: 1.5s; }
.dj { position: relative; margin-top: 22px; width: 124px; aspect-ratio: 620 / 430; transition-delay: 1.7s; }
.dj canvas { display: block; width: 100%; height: 100%; }
.dj video { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.insta { margin-top: 18px; font-size: 17px; letter-spacing: .02em; color: rgba(255,255,255,.85); border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 2px; transition: opacity 1.2s var(--ease-out) 1.9s, transform 1.2s var(--ease-out) 1.9s, color .25s, border-color .25s; }
.insta:hover { color: var(--white); border-color: var(--white); }

/* ============ bottom band ============ */
.band { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding-bottom: env(safe-area-inset-bottom); background: var(--black); border-top: 1px solid var(--white); overflow: hidden; transition-delay: 2s; }
.band-track { display: flex; width: max-content; align-items: center; gap: 36px; padding: 16px 0 18px 36px; animation: marquee 60s linear infinite; font-family: var(--cond); font-weight: 600; font-size: clamp(20px, 2.6vw, 30px); text-transform: uppercase; letter-spacing: .14em; white-space: nowrap; }
.band-track b { font-size: .45em; animation: blink 1.2s steps(2) infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes blink { 50% { opacity: 0; } }

/* ============ phones ============ */
@media (max-width: 760px) {
  .logo { width: 86vw; }
  .bg-shade { background: linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.3) 40%, rgba(0,0,0,.3) 60%, rgba(0,0,0,.92) 100%); }
  .bg-video { object-position: 62% center; }
  .ready .bg-video { opacity: .8; }
  .ready .center { transform: translateY(-7vh); }
  .wip-word { font-size: clamp(30px, 10.5vw, 42px); }
  .sub { font-size: 11px; letter-spacing: .32em; }
  .dj { width: 100px; }
  .band-track { font-size: 18px; gap: 24px; padding: 14px 0 15px 24px; }
}
@media (max-height: 560px) {
  .ready .center { transform: translateY(-10vh); }
  .dj { width: 90px; margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
