/* ================================================================
   THE BIG HOWL — landing page
   Derived from design/tokens.css (the binding token set).
   Surfaces follow the poster-wall rhythm: charcoal → yellow →
   cream → charcoal → pink → cream → orange → charcoal.
   Contrast tiers from the system are binding (see design/tokens.css).
   ================================================================ */

@font-face {
  font-family: 'Anton'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(assets/fonts/anton-400.woff2) format('woff2');
}
@font-face {
  font-family: 'Doto'; font-style: normal; font-weight: 900; font-display: swap;
  src: url(assets/fonts/doto-900-rond80.woff2) format('woff2');
}
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(assets/fonts/poppins-400.woff2) format('woff2');
}
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(assets/fonts/poppins-600.woff2) format('woff2');
}

:root {
  /* palette — verbatim from design/tokens.css (canonical names; greppable for drift) */
  --tbh-orange:   #FF4E02;
  --tbh-yellow:   #FFFF01;
  --tbh-pink:     #FFC7F0;
  --tbh-blue:     #0084CE;
  --tbh-green:    #34A75A;
  --tbh-cream:    #FDFFE7;
  --tbh-charcoal: #232323;

  --font-display: 'Anton', Haettenschweiler, Impact, 'Arial Narrow Bold', 'Arial Narrow', sans-serif;
  --font-pixel:   'Doto', 'Poppins', monospace; /* tokens.css lists 'Press Start 2P' — never loaded here; Poppins carries ₹ (Doto has none) */
  --font-body:    'Poppins', 'Segoe UI', system-ui, sans-serif;
  --pixel-rond:   "ROND" 80;

  /* type scale — deliberate deviations from design/tokens.css noted inline */
  --text-display-xl: clamp(3rem, 8.5vw, 6.5rem); /* tokens: clamp(3rem,8vw,5.25rem) — venue name runs bigger here */
  --text-display-lg: clamp(2.1rem, 5vw, 3.6rem); /* tokens: clamp(2.25rem,5vw,3.5rem) — slightly wider fluid band */
  --text-display-md: clamp(1.5rem, 3vw, 2rem);   /* tokens: 2rem — fluid below the cap for phone rhythm */
  --text-body: 1rem;                             /* tokens: 0.9375rem — long-scroll page breathes at 16px */

  --radius-pill: 999px;
  --ink-soft: rgba(253,255,231,.72); /* footer sits outside .s-*; dark default */

  --ease: cubic-bezier(.22, .8, .24, 1);
  --wrap: 1180px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  background: var(--tbh-charcoal);
  color: var(--tbh-cream);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
::selection { background: var(--tbh-yellow); color: var(--tbh-charcoal); }
:focus-visible { outline: 3px solid var(--focus, var(--tbh-blue)); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400; /* Anton ships one weight — never faux-bold */
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: .01em;
  margin: 0;
}
p { margin: 0; }

.px {
  font-family: var(--font-pixel);
  font-weight: 900;
  font-variation-settings: var(--pixel-rond);
  letter-spacing: .06em;
}

/* mode gating: JS sets <html data-mode="event|interim"> */
html[data-mode="event"] [data-only="interim"] { display: none !important; }
html[data-mode="interim"] [data-only="event"] { display: none !important; }
html:not([data-mode]) [data-only] { display: none; }

/* page enters once tokens are applied */
.gate { opacity: 0; transform: translateY(10px); }
body.ready .gate { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }

/* ---------- surfaces ---------- */
section { position: relative; }
.s-dark   { background: var(--tbh-charcoal); color: var(--tbh-cream);    --ink: var(--tbh-cream);    --sh: rgba(0,0,0,.65);    --ink-soft: rgba(253,255,231,.72); }
.s-cream  { background: var(--tbh-cream);    color: var(--tbh-charcoal); --ink: var(--tbh-charcoal); --sh: rgba(35,35,35,.92); --ink-soft: rgba(35,35,35,.72); }
.s-pink   { background: var(--tbh-pink);     color: var(--tbh-charcoal); --ink: var(--tbh-charcoal); --sh: rgba(35,35,35,.92); --ink-soft: rgba(35,35,35,.72); }
.s-orange { background: var(--tbh-orange);   color: var(--tbh-charcoal); --ink: var(--tbh-charcoal); --sh: rgba(35,35,35,.92); --ink-soft: rgba(35,35,35,.72); --acc: var(--tbh-charcoal); /* eyebrow stars: orange-on-orange would vanish */ }
/* blue fails the 3:1 non-text floor on orange (1.22:1) and pink (2.83:1) */
.s-pink, .s-orange { --focus: var(--tbh-charcoal); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }
.sec { padding-block: clamp(4.5rem, 10vw, 8.5rem); }

/* ---------- shared header bits ---------- */
.eyebrow {
  display: flex; align-items: center; gap: .65em;
  font-family: var(--font-body); font-weight: 600;
  font-size: .72rem; letter-spacing: .32em; text-transform: uppercase;
  color: inherit; /* eyebrows keep body ink; color lives in the star */
}
.eyebrow .st { color: var(--acc, var(--tbh-orange)); letter-spacing: 0; font-size: 1em; }
.center .eyebrow { justify-content: center; }
.h2 { font-size: var(--text-display-lg); margin-top: .55em; max-width: 14em; }
.center .h2 { margin-inline: auto; }
.sub { max-width: 46ch; margin-top: 1.4em; font-size: 1.02rem; }
.center .sub { margin-inline: auto; }
.center { text-align: center; }

/* ---------- reveals ---------- */
[data-rv] { opacity: 0; transform: translateY(26px); }
.rv-in { opacity: 1; transform: none; transition: opacity .75s var(--ease), transform .75s var(--ease); transition-delay: var(--rvd, 0s); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display); font-weight: 400;
  text-transform: uppercase; letter-spacing: .05em;
  font-size: 1.05rem; line-height: 1.2;
  padding: 1rem 1.9rem; border-radius: var(--radius-pill);
  text-decoration: none; text-align: center;
  border: 2px solid transparent;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover, .btn:focus-visible { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--sh); }
.btn:active { transform: none; box-shadow: none; }
/* button fills always take charcoal ink (contrast tiers) */
.btn-yellow { background: var(--tbh-yellow); color: var(--tbh-charcoal); }
.btn-ghost  { background: transparent; color: var(--ink); border-color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: .9rem; }
.center .cta-row { justify-content: center; }

/* ---------- topbar ---------- */
.topbar {
  position: absolute; inset: 0 0 auto 0; z-index: 6;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  color: var(--tbh-cream);
}
.topbar .mark { width: 44px; color: var(--tbh-pink); }
.topbar a { text-decoration: none; font-size: .8rem; text-transform: uppercase; }
.topbar a:hover { color: var(--tbh-yellow); }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: grid; place-items: center;
  overflow: hidden; text-align: center;
  padding-block: 6.5rem 4rem;
}
#crt { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { /* gentle floor so type never fights the beads */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 90% 62% at 50% 46%, rgba(35,35,35,.62), rgba(35,35,35,.1) 68%, transparent);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 1.6rem; padding-inline: clamp(1.25rem, 4vw, 3rem); }
.hero .eyebrow { color: var(--tbh-cream); }
.wm { width: clamp(250px, 36vw, 430px); color: var(--tbh-pink); }
.hero-line { font-family: var(--font-display); text-transform: uppercase; line-height: .95; font-size: var(--text-display-md); letter-spacing: .02em; }
.hero-line .acc { color: var(--tbh-yellow); } /* the stack's one accent line */
.chip {
  font-size: clamp(.8rem, 1.7vw, 1.05rem); letter-spacing: .12em;
  color: var(--tbh-yellow); text-transform: uppercase;
}
.chip .st { color: var(--tbh-orange); }
.hero .cta-row { justify-content: center; margin-top: .4rem; }
.scroll-hint {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); z-index: 2;
  font-size: .62rem; letter-spacing: .5em; color: var(--ink-soft);
}
/* legibility: small hero text sits over the live bead field — a charcoal halo
   scrims each glyph without dimming the beads around it (findings #1, #8) */
.hero .eyebrow, .hero-line, .scroll-hint {
  text-shadow: 0 0 7px var(--tbh-charcoal), 0 0 7px var(--tbh-charcoal);
}
.chip { text-shadow: 0 0 3px var(--tbh-charcoal), 0 0 3px var(--tbh-charcoal), 0 0 7px var(--tbh-charcoal), 0 0 12px var(--tbh-charcoal); }

/* ---------- marquee ---------- */
.marquee {
  background: var(--tbh-yellow); color: var(--tbh-charcoal);
  overflow: hidden; white-space: nowrap;
  padding-block: .85rem;
  border-block: 2px solid var(--tbh-charcoal);
}
.marquee .track { display: inline-block; animation: mq 26s linear infinite; will-change: transform; }
.marquee span { font-size: 1.05rem; padding-inline: 1.1rem; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- schedule ---------- */
.night ol { list-style: none; margin: 3.5rem 0 0; padding: 0; max-width: 720px; }
.night li {
  display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem 2rem;
  align-items: baseline;
  padding-block: 1.6rem;
  border-top: 2px dotted var(--tbh-charcoal); /* bead frame, translated */
}
.night li:last-child { border-bottom: 2px dotted var(--tbh-charcoal); }
.night .t { font-size: 1rem; }
.night .slot { font-family: var(--font-display); text-transform: uppercase; font-size: var(--text-display-md); line-height: 1; }
.night .note { grid-column: 2; font-size: .95rem; color: var(--ink-soft); }
.night .h2 .blue { color: var(--tbh-blue); } /* display-size only on cream */

/* ---------- manifesto (interim) ---------- */
.manifesto .h2 { max-width: 12em; font-size: var(--text-display-lg); }
.manifesto .stanza { margin-top: 2.2rem; max-width: 52ch; }

/* ---------- moments rail ---------- */
.moments { overflow: hidden; }
.rail {
  display: flex; gap: 14px;
  margin-top: 3.2rem; padding-inline: clamp(1.25rem, 4vw, 3rem);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  cursor: grab;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.dragging * { pointer-events: none; }
.cell {
  flex: 0 0 auto; height: clamp(340px, 52vh, 540px);
  aspect-ratio: var(--ar, 16/9);
  scroll-snap-align: center;
  margin: 0; position: relative; overflow: hidden;
  border-radius: 10px;
}
/* duotone at rest — true color returns on touch (hover/press) */
.ph { margin: 0; background: var(--duo, var(--tbh-orange)); }
.ph img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.06) brightness(var(--lift, 1.04));
  mix-blend-mode: multiply;
  transition: filter .45s var(--ease);
}
.ph:hover img, .ph:active img { filter: none; mix-blend-mode: normal; }
.cell.vid video { width: 100%; height: 100%; object-fit: cover; }
.cell .tag {
  position: absolute; left: .8rem; bottom: .7rem; z-index: 2;
  display: flex; align-items: center; gap: .5em;
  font-size: .6rem; letter-spacing: .28em; color: var(--tbh-cream);
  background: rgba(35,35,35,.82); padding: .45em .9em; border-radius: var(--radius-pill);
}
.cell .tag .dot { width: .5em; height: .5em; border-radius: 50%; background: var(--tbh-orange); animation: blink 1.6s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.rail-hint { margin-top: 1.6rem; font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- pack ---------- */
.pack .grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; margin-top: 3rem; }
.pack .ph { border-radius: 12px; overflow: hidden; --duo: var(--tbh-pink); --lift: 1.18; }
.pack blockquote { margin: 2rem 0 0; font-family: var(--font-display); text-transform: uppercase; font-size: var(--text-display-md); line-height: 1.05; }

/* ---------- artists ---------- */
.artists .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 3.2rem; }
.artists .ph { border-radius: 10px; overflow: hidden; aspect-ratio: 4/5; }
.artists .ph:first-child { --duo: var(--tbh-orange); }
.artists .ph:last-child { --duo: var(--tbh-blue); }
.lineup { margin-top: 2.6rem; display: grid; gap: 1.1rem; max-width: 720px; }
.lineup .row { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4em 1em; border-top: 2px dotted rgba(253,255,231,.4); padding-top: 1.1rem; }
.lineup .who { font-family: var(--font-display); text-transform: uppercase; font-size: var(--text-display-md); }
.lineup .from { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--tbh-yellow); }
.lineup .role { flex-basis: 100%; color: var(--ink-soft); font-size: .95rem; }

/* ---------- venue ---------- */
.venue .big { font-size: var(--text-display-xl); margin-top: .4em; }
.venue .area { display: block; font-size: .35em; letter-spacing: .14em; margin-top: .6em; }
.venue .duo2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-top: 3rem; }
.venue .ph { border-radius: 10px; overflow: hidden; --duo: var(--tbh-green); }
.venue .ph + .ph { --duo: var(--tbh-orange); }
.venue .maps { display: inline-block; margin-top: 1.6rem; font-weight: 600; }

/* ---------- entry ---------- */
.entry { text-align: center; }
.entry .price { font-family: var(--font-display); font-size: clamp(4.5rem, 14vw, 9.5rem); line-height: 1; }
/* Anton's ₹ is drawn lighter/narrower than its numerals — size it as an
   intentional currency mark rather than a weak glyph beside the price (finding #2) */
.entry .price .cur { font-size: .72em; vertical-align: .05em; margin-right: .01em; }
.entry .split { font-size: 1rem; letter-spacing: .1em; margin-top: .6rem; font-weight: 600; }
.entry .covers { max-width: 44ch; margin: 1.8rem auto 0; }
.entry .cta-row { justify-content: center; margin-top: 2.4rem; }
.entry .reg-note { margin-top: 1.5rem; font-size: .85rem; color: var(--tbh-charcoal); } /* .8 alpha was 3.72:1 on orange — below the 4.5:1 body floor */

/* ---------- join (interim) ---------- */
.join { text-align: center; }

/* ---------- footer ---------- */
footer {
  background: var(--tbh-charcoal); color: var(--tbh-cream);
  padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 3rem) 2.5rem;
}
.foot { max-width: var(--wrap); margin-inline: auto; display: grid; gap: 2.4rem; }
.foot .mark { width: 64px; color: var(--tbh-pink); }
.foot nav { display: flex; flex-wrap: wrap; gap: 1.6rem; font-size: .85rem; }
.foot nav a { text-decoration: none; border-bottom: 2px solid transparent; }
.foot nav a:hover { color: var(--tbh-yellow); border-bottom-color: var(--tbh-yellow); }
.foot .fine { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: baseline; font-size: .78rem; color: var(--ink-soft); }
.foot .awoo { color: var(--tbh-orange); font-size: .9rem; }

/* ---------- cursor star (desktop only) ---------- */
#cstar {
  position: fixed; z-index: 99; width: 16px; height: 16px;
  pointer-events: none; color: var(--tbh-orange);
  transform: translate(-50%, -50%) scale(0);
  display: none;
}
@media (pointer: fine) { #cstar { display: block; } }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .night li { grid-template-columns: 1fr; gap: .3rem; }
  .night .note { grid-column: 1; }
  .pack .grid, .venue .duo2 { grid-template-columns: 1fr; }
  .artists .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cell { height: clamp(300px, 46vh, 420px); }
  .btn { width: 100%; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .hero .cta-row { width: min(100%, 340px); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-rv], .gate { opacity: 1 !important; transform: none !important; transition: none !important; }
  .marquee .track { animation: none; }
  .cell .tag .dot { animation: none; }
  .btn, .btn:hover { transition: none; }
  #cstar { display: none; }
}
