/* ================================================================
   BUNT ROK FESTIVAL — global stylesheet (Modern Rock variant)
   All values are sourced from design-tokens.json. Comments below
   map every CSS var back to its token path.
   ================================================================ */

:root {
  /* color.bg.* */
  --bg-base: #000000;
  --bg-elevated: #0B0B0D;
  --bg-muted: #16161A;
  --bg-line: #2A2A30;

  /* color.fg.* */
  --fg-primary: #FFFFFF;
  --fg-secondary: #BFBFC4;
  --fg-muted: #7A7A82;

  /* color.brand.* */
  --brand-red: #E21B22;
  --brand-red-deep: #A11016;
  --brand-blue: #1E3AE5;
  --brand-yellow: #FFD400;

  /* color.state.* */
  --focus: #FFD400;

  /* font.family.* */
  --font-display: 'Archivo Black', 'Arial Black', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* space.* */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px; --s-11: 160px;

  /* container.* */
  --container-max: 1440px;
  --gutter: 20px;

  /* motion.* */
  --dur-fast: 150ms;
  --dur-base: 280ms;
  --dur-slow: 500ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
}

@media (min-width: 768px)  { :root { --gutter: 32px; } }
@media (min-width: 1440px) { :root { --gutter: 64px; } }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { color-scheme: dark; }
body {
  background: var(--bg-base);
  color: var(--fg-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

::selection { background: var(--brand-red); color: #fff; }

/* ---------- typography utilities ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.eyebrow--red { color: var(--brand-red); }

.display {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.h1 { font-size: clamp(56px, 10vw, 160px); }
.h2 { font-size: clamp(40px, 6vw, 88px); }
.h3 { font-size: clamp(28px, 4vw, 48px); }
.h4 { font-size: clamp(22px, 3vw, 32px); }

.lead {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--fg-secondary);
  max-width: 60ch;
}

.text-mono { font-family: var(--font-mono); letter-spacing: 0.04em; }

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(64px, 9vw, 128px);
  position: relative;
}

.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.divider {
  height: 1px;
  background: var(--bg-line);
  border: 0;
  margin: 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  transition: background var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
}
.btn--primary:hover { background: var(--brand-red-deep); border-color: var(--brand-red-deep); }

.btn--ghost {
  background: transparent;
  color: var(--fg-primary);
}
.btn--ghost:hover { background: var(--fg-primary); color: #000; }

.btn--yellow {
  background: var(--brand-yellow);
  border-color: var(--brand-yellow);
  color: #000;
}
.btn--yellow:hover { background: #fff; border-color: #fff; }

.btn .arrow {
  width: 16px; height: 16px;
  transition: transform var(--dur-base) var(--ease-out);
}
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(0,0,0,0.55);
  border-bottom: 1px solid var(--bg-line);
  transition: background var(--dur-base) var(--ease-out);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding-inline: var(--gutter);
  max-width: var(--container-max);
  margin-inline: auto;
}
.nav__logo { display: flex; align-items: center; gap: 10px; }
.nav__logo img { height: 36px; width: auto; }
.nav__links {
  display: none;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 768px) {
  .nav__links { display: flex; }
}
.nav__link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-secondary);
  position: relative;
  padding-block: 4px;
  transition: color var(--dur-base);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--fg-primary); }
.nav__link[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--brand-red);
}

.nav__cta {
  display: none;
}
@media (min-width: 768px) {
  .nav__cta { display: inline-flex; padding: 10px 18px; font-size: 12px; }
}

.nav__burger {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--bg-line);
}
@media (min-width: 768px) { .nav__burger { display: none; } }
.nav__burger span {
  display: block; width: 18px; height: 2px; background: var(--fg-primary);
  position: relative;
}
.nav__burger span::before,
.nav__burger span::after {
  content: ''; position: absolute; left: 0; width: 100%; height: 2px; background: var(--fg-primary);
}
.nav__burger span::before { top: -6px; }
.nav__burger span::after  { top: 6px; }

/* Mobile nav open — nav stretches full viewport height */
@media (max-width: 767px) {
  .nav--open {
    bottom: 0;
    background: #000;
    backdrop-filter: none;
  }
  .nav--open .nav__links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    padding: 0 var(--gutter) 48px;
    overflow-y: auto;
    max-height: calc(100dvh - 72px);
  }
  .nav--open .nav__link {
    font-size: 24px;
    letter-spacing: 0.06em;
    padding-block: 20px;
    border-bottom: 1px solid var(--bg-line);
    display: block;
    color: var(--fg-primary);
  }
}
.nav--open .nav__burger span { background: transparent; }
.nav--open .nav__burger span::before { top: 0; transform: rotate(45deg); }
.nav--open .nav__burger span::after  { top: 0; transform: rotate(-45deg); }

/* ---------- footer ---------- */
.footer {
  background: #000;
  border-top: 1px solid var(--bg-line);
  padding-block: 64px 32px;
}
.footer__grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}
.footer__brand img { height: 56px; width: auto; margin-bottom: 16px; }
.footer__brand p { color: var(--fg-secondary); max-width: 36ch; font-size: 14px; }
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0 0 20px;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer__col a { color: var(--fg-secondary); font-size: 14px; transition: color var(--dur-base); }
.footer__col a:hover { color: var(--brand-red); }

.footer__bottom {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--bg-line);
  display: flex; flex-direction: column; gap: 16px;
  justify-content: space-between; align-items: flex-start;
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .footer__bottom { flex-direction: row; align-items: center; }
}

/* ---------- scroll reveal base ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- marquee (sponsor strip) ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--bg-line);
  border-bottom: 1px solid var(--bg-line);
  background: #000;
}
.marquee__track {
  display: flex;
  gap: 80px;
  padding-block: 20px;
  animation: marquee 40s linear infinite;
  width: max-content;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--fg-muted);
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__item svg { color: var(--brand-yellow); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
