@font-face {
  font-family: "Anton";
  src: url("/fonts/anton-latin.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bg: #0d0d0f;
  --bg-alt: #141418;
  --panel: #1c1c22;
  --line: #2c2c35;
  --text: #ececf1;
  --muted: #a6a6b3;
  --red: #e3261c;
  --orange: #ff7a1a;
  --yellow: #ffcf3f;
  --flame: linear-gradient(90deg, var(--red), var(--orange) 60%, var(--yellow));
  --radius: 14px;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--yellow); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, 1180px); margin-inline: auto; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0 0 0.5em;
}
h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h3 { font-size: 1.45rem; letter-spacing: 0.02em; }
p { margin: 0 0 1em; }

.kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.75rem;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.kicker::before { content: ""; width: 28px; height: 3px; background: var(--flame); }

.lede { max-width: 62ch; color: var(--muted); font-size: 1.1rem; }
.fine { color: var(--muted); font-size: 0.85rem; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; padding: 0.5rem 1rem; background: #fff; color: #000; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 700 0.95rem/1 var(--body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #ff3b2f; color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); color: #fff; }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 13, 15, 0.86);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.6rem;
}
.brand img { width: 160px; }
.topbar nav { display: flex; align-items: center; gap: 0.25rem; }
.topbar nav a {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.topbar nav a:hover { background: rgba(255, 255, 255, 0.08); }
.topbar nav .nav-cta { background: var(--red); color: #fff; }
.topbar nav .nav-cta:hover { background: #ff3b2f; }

@media (max-width: 860px) {
  .topbar-inner { flex-direction: column; align-items: stretch; gap: 0.35rem; padding-block: 0.5rem 0.35rem; }
  .brand { align-self: center; }
  .brand img { width: 140px; }
  .topbar nav {
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: -1.25rem;
    padding-inline: 1.25rem;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .topbar nav::-webkit-scrollbar { display: none; }
  .topbar nav a { padding: 0.45rem 0.65rem; font-size: 0.78rem; }
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: min(90vh, 860px);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 65%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 13, 15, 0.94) 0%, rgba(13, 13, 15, 0.72) 42%, rgba(13, 13, 15, 0.2) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(13, 13, 15, 0) 35%);
}
.hero-inner { padding-block: 4.5rem 4rem; }
.hero h1 { margin: 0 0 1.5rem; }
.hero-badge { width: clamp(260px, 34vw, 440px); filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.65)); }
.eyebrow { margin-bottom: 0.6rem; color: var(--muted); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.85rem; }
.hero-date { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; font-size: 1.15rem; font-weight: 600; }
.pill {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--yellow);
  color: #111;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Phones: show the photo as a picture up top, with the text below it instead of over it. */
@media (max-width: 640px) {
  .hero { display: block; min-height: 0; }
  .hero-bg { position: relative; inset: auto; height: auto; aspect-ratio: 4 / 3; object-position: 50% 50%; }
  .hero::after {
    inset: 0 0 auto;
    aspect-ratio: 4 / 3;
    background: linear-gradient(0deg, var(--bg) 0%, rgba(13, 13, 15, 0) 45%);
  }
  .hero-inner { position: relative; margin-top: -5.5rem; padding-block: 0 2.5rem; }
  .hero-badge { width: 250px; }
  .actions .btn { flex: 1 1 100%; }
}

/* Stats band */
.stats { border-block: 1px solid var(--line); background: var(--bg-alt); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-grid div { padding: 1.6rem 1rem; text-align: center; }
.stats-grid div + div { border-left: 1px solid var(--line); }
.stats strong {
  display: block;
  font: 400 clamp(2.2rem, 5vw, 3.2rem)/1 var(--display);
  background: var(--flame);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats span { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid div:nth-child(3) { border-left: 0; }
  .stats-grid div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* Sections */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr 0.9fr; } }

.photo-frame { position: relative; margin: 0; }
.photo-frame::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 3px solid var(--red);
  border-radius: var(--radius);
}
.photo-frame img { position: relative; width: 100%; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }

/* Show features */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.feature { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.feature img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.feature-body { padding: 1.25rem 1.25rem 1.4rem; border-top: 3px solid var(--red); }
.feature-body p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.chips li {
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-size: 0.9rem;
  font-weight: 600;
}
.chips li::before { content: "\2605"; margin-right: 0.45rem; color: var(--yellow); }

.rules {
  margin-top: 3rem;
  padding: 1.75rem clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(-45deg, var(--yellow) 0 14px, #111 14px 28px) top / 100% 8px no-repeat,
    var(--panel);
}
.rules h3 { margin-top: 0.5rem; }
.rules ul { display: grid; gap: 0.5rem 2.5rem; margin: 0; padding-left: 1.1rem; color: var(--muted); }
@media (min-width: 800px) { .rules ul { grid-template-columns: 1fr 1fr; } }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.gallery a { display: block; overflow: hidden; border-radius: 10px; }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.3s ease; }
.gallery a:hover img { transform: scale(1.04); }

.lightbox {
  width: min(96vw, 1200px);
  max-height: 94vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: visible;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.9); }
.lightbox img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: 8px; }
.lightbox-caption { margin: 0.75rem 3.5rem 0; text-align: center; color: var(--muted); font-size: 0.95rem; }
.lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 20, 24, 0.85);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox button:hover { background: var(--red); }
.lightbox-prev { left: 0.5rem; top: 40%; }
.lightbox-next { right: 0.5rem; top: 40%; }
.lightbox-close { right: 0.5rem; top: 0.5rem; }

/* Sponsors */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.logo-wall li { display: grid; place-items: center; aspect-ratio: 3 / 2; padding: 0.6rem; border-radius: 10px; background: #f4f4f6; }
.logo-wall img { width: 100%; height: 100%; object-fit: contain; }
.logo-wall .logo-wall-lead { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; background: #fff; box-shadow: inset 0 0 0 3px var(--red); }
.logo-wall .logo-wall-lead img { max-width: 300px; }

/* Vendor and sponsor cards */
.cards { display: grid; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 800px) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  background: var(--panel);
}
.card .btn { align-self: flex-start; margin-top: auto; text-align: center; }
@media (max-width: 640px) { .card .btn { align-self: stretch; } }
.checks { margin: 0 0 1rem; padding: 0; list-style: none; }
.checks li { position: relative; padding: 0.35rem 0 0.35rem 1.8rem; }
.checks li::before { content: "\2713"; position: absolute; left: 0; color: var(--red); font-weight: 800; }
.note { color: var(--muted); font-size: 0.92rem; }

/* Contact */
.contact { align-items: start; }
.contact-list { margin: 2rem 0 0; }
.contact-list div { padding: 1rem 0; border-top: 1px solid var(--line); }
.contact-list dt { color: var(--muted); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.contact-list dd { margin: 0.3rem 0 0; font-size: 1.1rem; }
.contact-list dd a[href^="tel"] { font: 400 1.8rem/1.2 var(--display); letter-spacing: 0.02em; text-decoration: none; }

.contact-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.contact-form label { display: block; font-weight: 600; font-size: 0.95rem; }
.optional { color: var(--muted); font-weight: 400; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #101014;
  color: var(--text);
  font: 400 1rem/1.4 var(--body);
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: 2px solid var(--yellow); outline-offset: 1px; border-color: transparent; }
.contact-form .btn { justify-self: start; }
.contact-form .fine { margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.ok { color: #6ee7a0; }
.form-status.err { color: #ff8a80; }

/* Footer */
.footer { padding-block: 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.footer-inner img { width: 150px; }
.footer p { margin: 0.2rem 0; }
.footer strong { color: var(--text); }

/* Simple inner pages (404) */
.page { padding-block: clamp(3rem, 8vw, 6rem); }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.page h2 { font-size: 1.6rem; margin-top: 2rem; }
.page p, .page li { color: var(--muted); }
