/* Pulse Room — the page has a BPM.
   Flat page by default (no JS, reduced motion): posters, a table, links.
   html.motion: one ticker sets --beat (1 on the downbeat, decays to 0) on each element that beats; the CSS reads it. */

@font-face { font-family: "Archivo Black"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/archivo-black.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 100 900; font-style: normal; font-display: swap; src: url("fonts/archivo.woff2") format("woff2"); }

:root {
  --ink: #0a0a0a;
  --paper: #f4f4f2;
  --sig: #ff4d00;
  --mute: rgba(244, 244, 242, 0.6);
  --line: rgba(244, 244, 242, 0.14);
  --display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --body: "Archivo", system-ui, -apple-system, sans-serif;
  --pad: clamp(16px, 4vw, 56px);
  --beat: 0;
}

* { box-sizing: border-box; }
html { background: var(--ink); color: var(--paper); font-family: var(--body); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--sig); outline-offset: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 30; padding: 8px 12px; background: var(--ink); color: var(--paper); font-size: 13px; text-decoration: none; border: 1px solid var(--line); transform: translateY(-200%); }
.skip:focus-visible { transform: none; }

/* ---------- type ---------- */
.lbl { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sig); }
.lbl--ink { color: var(--ink); }
.sec__h { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 9vw, 112px); line-height: 0.92; letter-spacing: -0.03em; text-transform: uppercase; }

/* ---------- top bar ---------- */
.top { display: flex; align-items: center; gap: 22px; padding: 16px calc(var(--pad) + 150px) 16px var(--pad); position: absolute; inset: 0 0 auto 0; z-index: 10; }
.top__mark { font-family: var(--display); font-size: 18px; letter-spacing: -0.02em; text-transform: uppercase; text-decoration: none; }
.top__nav { display: flex; gap: 18px; font-size: 14px; font-weight: 600; }
.top__nav a { text-decoration: none; }
.top__nav a:hover { color: var(--sig); }
@media (max-width: 560px) { .top { flex-wrap: wrap; gap: 8px 16px; padding-right: 140px; } .top__nav { flex-basis: 100%; gap: 14px; font-size: 13px; } }

/* ---------- loader + readout (motion only) ---------- */
.loader, .bpm { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-content: end; padding: 120px var(--pad) clamp(28px, 6vh, 64px); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; background: #111; }
.hero__v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.hero__v.is-on { opacity: 1; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.35) 45%, rgba(10, 10, 10, 0.1) 100%); }
.hero__body { position: relative; z-index: 1; }
.hero__t { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(64px, 19vw, 240px); line-height: 0.84; letter-spacing: -0.035em; text-transform: uppercase; }
.hero__w { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero__w span { display: block; }
.hero__sub { margin: 24px 0 0; max-width: 34ch; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.45; }
.hero__sub small { display: block; margin-top: 8px; font-size: 13px; color: var(--mute); }
.hero__cta { margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-block; padding: 14px 20px; background: var(--sig); color: var(--ink); font-size: 14px; font-weight: 600; letter-spacing: 0.02em; text-decoration: none; }
.btn:hover, .btn:focus-visible { background: var(--paper); }
.btn--ghost { background: transparent; color: var(--paper); border: 1px solid var(--line); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: transparent; border-color: var(--paper); }

/* ---------- sections ---------- */
.sec { padding: clamp(56px, 10vh, 128px) var(--pad); }

/* classes */
.cards { list-style: none; margin: clamp(24px, 4vh, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(6, 1fr); } }
.card { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: #141414; }
.card__v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.flash { position: absolute; inset: 0; background: var(--sig); opacity: 0; pointer-events: none; mix-blend-mode: screen; }
.card__t { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 12px 12px; background: linear-gradient(to top, rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0)); }
.card__t b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(14px, 3.9vw, 22px); line-height: 1; letter-spacing: -0.02em; text-transform: uppercase; }
.card__t span { display: block; margin-top: 6px; font-size: clamp(11px, 3vw, 12px); color: var(--mute); }

/* numbers */
.nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.num b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(44px, 12vw, 150px); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.num span { display: block; margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--mute); max-width: 14ch; }

/* schedule: a table on the flat page, a split-flap board in motion */
.board { width: 100%; margin: clamp(24px, 4vh, 48px) 0 0; border-collapse: collapse; font-family: var(--display); font-weight: 400; font-size: clamp(12px, 3.3vw, 20px); letter-spacing: 0.02em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.board th, .board td { padding: 10px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; font-weight: 400; text-align: left; }
.board th { padding-left: 0; }
.board td:last-child { padding-right: 0; text-align: right; }
.board td:nth-child(2) { color: var(--sig); }
.schedule__note { margin: 20px 0 0; font-size: 14px; color: var(--mute); }

/* join */
.join { background: var(--sig); color: var(--ink); }
.join__links { margin: clamp(24px, 4vh, 40px) 0 0; display: flex; flex-direction: column; gap: 6px; font-family: var(--display); font-size: clamp(16px, 4.4vw, 48px); line-height: 1.15; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.join__links a { text-decoration: none; }
.join__links a:hover, .join__links a:focus-visible { text-decoration: underline; text-underline-offset: 0.12em; text-decoration-thickness: 0.06em; }
.join__addr { margin: 24px 0 0; max-width: 40ch; font-size: 14px; line-height: 1.5; }
.join :focus-visible { outline-color: var(--ink); }

/* footer */
.foot { padding: 28px var(--pad) 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; color: var(--mute); }
.foot p { margin: 0; }

/* ---------- motion mode ---------- */
.motion { scroll-behavior: auto; }
.motion .loader { display: flex; position: fixed; inset: 0; z-index: 40; flex-direction: column; justify-content: space-between; padding: var(--pad); background: var(--ink); }
.motion .loader__word { margin: 0; font-family: var(--display); font-size: clamp(64px, 19vw, 240px); line-height: 0.84; letter-spacing: -0.035em; text-transform: uppercase; transform-origin: left top; }
.motion .loader__count { margin: 0; display: flex; gap: 16px; font-family: var(--display); font-size: clamp(28px, 6vw, 64px); color: var(--line); }
.motion .loader__count b { font-weight: 400; transition: color 0.08s; }
.motion .loader__count b.on { color: var(--sig); }

.motion .bpm { display: flex; position: fixed; top: 14px; right: var(--pad); z-index: 20; align-items: baseline; gap: 8px; font-family: var(--display); font-size: clamp(22px, 3vw, 36px); line-height: 1; letter-spacing: -0.02em; opacity: 0; transition: opacity 0.6s; }
.motion.ready .bpm { opacity: 1; }
.motion .bpm b { font-weight: 400; font-variant-numeric: tabular-nums; transform-origin: right center; }
.motion .bpm span { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.motion .bpm__dot { align-self: center; width: 10px; height: 10px; border-radius: 50%; background: var(--sig); opacity: calc(0.3 + var(--beat) * 0.7); transform: scale(calc(0.8 + var(--beat) * 0.7)); }

/* the beat: one variable, transform/opacity only */
.motion .beat { transform: scale(calc(1 + var(--beat) * 0.035)); transform-origin: left bottom; will-change: transform; }
.motion .hero__t { transform-origin: left bottom; }
.motion .num b { transform-origin: left center; }
.motion .card__t b { transform: scale(calc(1 + var(--beat) * 0.05)); }
.motion .flash { opacity: calc(var(--beat) * 0.22); }
.motion .hero__media .flash { opacity: calc(var(--beat) * 0.12); z-index: 1; }

/* reveals */
.motion .hero__w span { transform: translateY(110%); }
.motion .rv { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.motion .rv.in { opacity: 1; transform: none; }
.motion .rv.beat.in { transform: scale(calc(1 + var(--beat) * 0.035)); }
.motion .card.rv.in { transform: none; }
.motion .cards .card:nth-child(2) { transition-delay: 0.06s; }
.motion .cards .card:nth-child(3) { transition-delay: 0.12s; }
.motion .cards .card:nth-child(4) { transition-delay: 0.18s; }
.motion .cards .card:nth-child(5) { transition-delay: 0.24s; }
.motion .cards .card:nth-child(6) { transition-delay: 0.3s; }

/* split-flap board */
.motion .board th, .motion .board td { padding-top: 7px; padding-bottom: 7px; }
.motion .fl { display: inline-block; position: relative; width: 0.72em; margin-right: 1px; line-height: 1.45; text-align: center; background: #181818; color: var(--paper); }
.motion .fl::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ink); }
.motion .fl--gap { background: none; width: 0.4em; }
.motion .fl--gap::after { display: none; }
.motion .board td:nth-child(2) .fl { color: var(--sig); }
