/* ---------- tokens ---------- */
:root {
  --bg: #0a0a0b;
  --bg-2: #0f0f13;
  --ink: #f0ede8;
  --ink-dim: #9e9b94;
  --ink-mute: #646259;
  --line: rgba(240, 237, 232, 0.08);
  --line-strong: rgba(240, 237, 232, 0.2);
  --accent: #ed1c24;
  --accent-2: #00a651;
  --accent-glow: rgba(237, 28, 36, 0.7);
  --invert-bg: #f0ede8;
  --invert-ink: #0a0a0b;

  --radius: 14px;
  --radius-lg: 22px;

  --font-display: "Bebas Neue", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --easing: cubic-bezier(0.22, 1, 0.36, 1);
  --easing-emph: cubic-bezier(0.16, 1, 0.3, 1);

  --pad-x: clamp(20px, 5vw, 80px);
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  color: inherit;
  padding: 0;
}
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
::selection {
  background: var(--accent);
  color: #fff;
}

/* ---------- background layers ---------- */
.bg-grid,
.bg-noise,
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.bg-grid {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 80%);
  opacity: 0.5;
}
.bg-noise {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.6;
}
.bg-glow {
  background:
    radial-gradient(900px 600px at 80% -10%, rgba(237, 28, 36, 0.15), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(0, 166, 81, 0.06), transparent 55%);
}

main,
section,
header,
footer,
.marquee {
  position: relative;
  z-index: 1;
}

/* ---------- nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px var(--pad-x);
  padding-left: max(var(--pad-x), env(safe-area-inset-left));
  padding-right: max(var(--pad-x), env(safe-area-inset-right));
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(10, 10, 11, 0.7), rgba(10, 10, 11, 0.2));
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--easing), background 0.3s var(--easing);
}
.nav.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(10, 10, 11, 0.85);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  font-size: 24px;
  color: var(--ink);
}
.brand__mark {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--accent);
}
.brand__mark svg {
  width: 18px;
  height: 18px;
}
.brand__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}
.brand__dot {
  color: var(--accent);
  margin-left: 1px;
}
.nav__links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-dim);
}
.nav__links a {
  position: relative;
  padding: 4px 0;
  transition: color 0.2s var(--easing);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--easing);
}
.nav__links a:hover {
  color: var(--ink);
}
.nav__links a:hover::after {
  width: 100%;
}
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.25s var(--easing), color 0.25s var(--easing), border-color 0.25s var(--easing), transform 0.2s var(--easing);
}
.nav__cta > span {
  white-space: nowrap;
}
.nav__cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--easing);
}
.nav__cta:hover {
  background: var(--ink);
  color: var(--invert-ink);
  border-color: var(--ink);
}
.nav__cta:hover svg {
  transform: translateX(3px);
}

@media (max-width: 720px) {
  .nav__links {
    display: none;
  }
}

/* ---------- hero ---------- */
.hero {
  padding: clamp(60px, 10vh, 120px) var(--pad-x) clamp(80px, 14vh, 160px);
  position: relative;
  overflow: hidden;
}
.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.hero__main {
  display: grid;
  gap: clamp(28px, 4vh, 44px);
  min-width: 0;
}
.hero__register {
  align-self: start;
}
@media (max-width: 960px) {
  .hero__layout {
    grid-template-columns: 1fr;
    gap: clamp(28px, 5vh, 56px);
  }
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.4) contrast(1.1) brightness(0.45);
  transform: scale(1.05);
  animation: heroDrift 18s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  to {
    transform: scale(1.12) translate(-1%, -1%);
  }
}
.hero__bg-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 11, 0.55) 0%, rgba(10, 10, 11, 0.85) 60%, var(--bg) 100%),
    radial-gradient(900px 600px at 80% 20%, rgba(237, 28, 36, 0.2), transparent 60%);
}
.hero > *:not(.hero__bg) {
  position: relative;
  z-index: 1;
}
.hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
  width: fit-content;
}
.dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse 1.8s var(--easing) infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(237, 28, 36, 0.6);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(237, 28, 36, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(237, 28, 36, 0);
  }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(64px, 11vw, 160px);
  line-height: 0.88;
  letter-spacing: -0.01em;
  margin: 0;
  text-transform: uppercase;
}
@media (max-width: 960px) {
  .hero__title {
    font-size: clamp(60px, 14vw, 168px);
  }
}
.hero__title .line {
  display: block;
  overflow: hidden;
}
.hero__title .line + .line {
  margin-top: 0.04em;
}
.hero__title.is-revealed .line {
  overflow: visible;
}
.hero__title [data-split] {
  display: inline-block;
  margin-right: 0.18em;
}
.italic {
  font-style: italic;
  font-family: "Inter", serif;
  font-weight: 200;
  letter-spacing: -0.02em;
}
.accent {
  color: var(--accent);
}

.hero__lede {
  max-width: 64ch;
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--ink-dim);
  line-height: 1.55;
  margin: 0;
}

.hero__social {
  display: grid;
  gap: 8px;
  max-width: 56ch;
}

.hero__social p {
  margin: 0;
  font-size: clamp(14px, 1.2vw, 16px);
  color: var(--ink-mute);
  line-height: 1.5;
}

.hero__social a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.hero__social a:hover {
  opacity: 0.8;
}

.hero__placards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
  align-items: stretch;
}
.placard {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.015);
  display: grid;
  gap: 6px;
  transition: border-color 0.25s var(--easing), transform 0.4s var(--easing);
  min-width: 0;
  min-height: calc(18px + 18px + clamp(28px, 3.4vw, 44px) + 11px + 6px);
}
.placard:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.placard__label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
}
.placard__value {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  min-height: 1em;
}
.placard--lg .placard__value {
  color: var(--accent);
}
@media (max-width: 640px) {
  .hero__placards {
    grid-template-columns: 1fr 1fr;
    grid-auto-flow: dense;
  }
  .placard--lg {
    grid-column: 1 / -1;
  }
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--invert-ink);
  --btn-bd: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--easing-emph), box-shadow 0.25s var(--easing);
  isolation: isolate;
}
.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--easing);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(237, 28, 36, 0.5);
}
.btn:hover svg {
  transform: translateX(4px);
}
.btn:active {
  transform: translateY(0);
}
.btn--primary {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  --btn-bd: var(--accent);
}
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s var(--easing);
  z-index: -1;
}
.btn--primary:hover::before {
  transform: translateX(100%);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line-strong);
}
.btn--ghost:hover {
  --btn-bd: var(--ink);
  box-shadow: none;
}
.btn--xl {
  padding: 18px 28px;
  font-size: 15px;
}

/* ---------- scroll cue ---------- */
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  width: fit-content;
}
.scroll-cue__line {
  width: 60px;
  height: 1px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  animation: cue 2.4s var(--easing) infinite;
}
@keyframes cue {
  0% {
    transform: translateX(-100%);
  }
  60%,
  100% {
    transform: translateX(100%);
  }
}

/* ---------- marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
  background: var(--bg-2);
}
.marquee__track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 56px);
  letter-spacing: 0.02em;
  color: var(--ink);
  animation: marquee 28s linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}
.marquee__track span {
  flex-shrink: 0;
  padding-right: 1ch;
}
@keyframes marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ---------- about ---------- */
.about {
  padding: clamp(80px, 12vh, 140px) var(--pad-x);
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 80px) clamp(24px, 5vw, 80px);
  align-items: start;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
}
.kicker__bar {
  width: 28px;
  height: 1px;
  background: var(--accent);
}
.kicker--invert {
  color: rgba(10, 10, 11, 0.7);
}
.kicker--invert .kicker__bar {
  background: var(--invert-ink);
}
.about__intro h2,
.sports__head h2,
.register__head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 18px 0 0;
  text-transform: uppercase;
}
.about__copy p {
  font-size: clamp(16px, 1.4vw, 19px);
  margin: 0 0 1.1em;
  color: var(--ink);
}
.muted {
  color: var(--ink-dim);
}
.muted--small {
  font-size: 13px;
}
.about__features {
  grid-column: 1 / -1;
  list-style: none;
  margin: clamp(40px, 6vh, 80px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: clamp(28px, 4vh, 48px);
}
.about__features li {
  padding: 4px 0;
}
.about__features .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.18em;
}
.about__features h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 30px);
  margin: 8px 0 6px;
  letter-spacing: 0.02em;
}
.about__features p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 15px;
  max-width: 36ch;
}
@media (max-width: 860px) {
  .about__grid {
    grid-template-columns: 1fr;
  }
  .about__features {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ---------- sports ---------- */
.sports {
  padding: clamp(60px, 10vh, 120px) var(--pad-x) clamp(80px, 12vh, 140px);
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}
.sports__head {
  max-width: 880px;
  display: grid;
  gap: 18px;
  margin-bottom: clamp(32px, 5vh, 56px);
}
.sports__head p {
  margin: 0;
  font-size: 17px;
}
.sports__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.sports__done-wrap {
  text-align: center;
}
.tile {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  padding: 22px;
  min-height: 150px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.015);
  color: var(--ink);
  transition:
    background 0.3s var(--easing),
    border-color 0.3s var(--easing),
    transform 0.3s var(--easing);
  overflow: hidden;
}
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at var(--mx, 50%) var(--my, 50%), rgba(237, 28, 36, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s var(--easing);
  pointer-events: none;
}
.tile:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}
.tile:hover::before {
  opacity: 1;
}
.tile__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--ink-dim);
  transition: transform 0.5s var(--easing), color 0.3s var(--easing);
}
.tile__icon svg {
  width: 100%;
  height: 100%;
}
.tile:hover .tile__icon {
  transform: rotate(-6deg) scale(1.06);
  color: var(--accent);
}
.tile.is-active .tile__icon {
  color: var(--accent);
}
.tile__name {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  align-self: end;
}
.tile__check {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  transition: background 0.25s var(--easing), border-color 0.25s var(--easing);
}
.tile__check::after {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  transform: scale(0);
  transition: transform 0.25s var(--easing-emph);
}
.tile.is-active {
  border-color: var(--accent);
  background: rgba(237, 28, 36, 0.08);
}
.tile.is-active .tile__check {
  border-color: var(--accent);
  background: rgba(237, 28, 36, 0.15);
}
.tile.is-active .tile__check::after {
  transform: scale(1);
}

/* ---------- register (card inside the hero) ---------- */
.register {
  background: var(--invert-bg);
  color: var(--invert-ink);
  padding: clamp(24px, 3vw, 40px);
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 30px 60px -30px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}
.register::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 260px at 90% 0%, rgba(237, 28, 36, 0.1), transparent 60%);
  pointer-events: none;
}
.register__head {
  max-width: none;
  display: grid;
  gap: 12px;
  margin-bottom: clamp(20px, 2.5vh, 32px);
  position: relative;
}
.register__head h2 {
  color: var(--invert-ink);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.08;
  margin: 6px 0 0;
}
.register__head .muted {
  color: rgba(10, 10, 11, 0.6);
  font-size: 14px;
  line-height: 1.55;
}

/* ---------- form ---------- */
.form {
  display: grid;
  gap: 20px;
  max-width: none;
  position: relative;
}
.form__row {
  display: grid;
  gap: 8px;
}
.form__row--two {
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 640px) {
  .form__row--two {
    grid-template-columns: 1fr;
  }
}
.field {
  position: relative;
  display: grid;
  gap: 8px;
}
.field__label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(10, 10, 11, 0.55);
}
.field__label .opt {
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(10, 10, 11, 0.4);
  margin-left: 4px;
}
.field input,
.field select,
.field textarea {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(10, 10, 11, 0.18);
  padding: 10px 0 14px;
  font-size: 18px;
  color: var(--invert-ink);
  outline: none;
  border-radius: 0;
  width: 100%;
}
.field textarea {
  resize: vertical;
  font-family: var(--font-body);
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(10, 10, 11, 0.3);
}
.field__line {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 0.4s var(--easing);
}
.field input:focus ~ .field__line,
.field select:focus ~ .field__line,
.field textarea:focus ~ .field__line {
  width: 100%;
}
.field--select {
  position: relative;
}
.field--select::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 22px;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(10, 10, 11, 0.5);
  border-bottom: 2px solid rgba(10, 10, 11, 0.5);
  transform: rotate(45deg);
  pointer-events: none;
}
.field--textarea textarea {
  padding: 14px 0;
}

.form__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 44px;
  padding: 8px 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--invert-ink);
  color: var(--invert-bg);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.02em;
  animation: chipIn 0.4s var(--easing-emph);
}
.chip__x {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 11px;
  line-height: 1;
}
@keyframes chipIn {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Pick-sports and Done buttons */
.btn-pick {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 4px 0 0;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--invert-ink);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-pick:hover {
  background: rgba(255, 255, 255, 0.12);
}
.btn-pick[hidden] {
  display: none;
}

.btn-done {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 24px auto 0;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: rgba(240, 237, 232, 0.06);
  border: 1px solid rgba(240, 237, 232, 0.10);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-done:hover {
  background: rgba(240, 237, 232, 0.12);
}
.btn-done[hidden] {
  display: none;
}

.field--error input,
.field--error select,
.field--error textarea {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 1px var(--accent);
}
.field--error .field__line {
  background: var(--accent) !important;
}
.consent--error .consent__box {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 1px var(--accent);
}

.form__submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.consent {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(10, 10, 11, 0.7);
  cursor: pointer;
  max-width: 460px;
}
.consent input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.consent__box {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(10, 10, 11, 0.3);
  border-radius: 6px;
  background: transparent;
  transition: background 0.2s var(--easing), border-color 0.2s var(--easing);
  flex-shrink: 0;
}
.consent__box svg {
  width: 14px;
  height: 14px;
  color: #fff;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s var(--easing), transform 0.25s var(--easing-emph);
}
.consent input:checked ~ .consent__box {
  background: var(--accent);
  border-color: var(--accent);
}
.consent input:checked ~ .consent__box svg {
  opacity: 1;
  transform: scale(1);
}

/* success state */
.success {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--invert-bg);
  border-radius: inherit;
  z-index: 5;
}
.success[hidden] {
  display: none;
}
.success__inner {
  text-align: center;
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 40px;
  max-width: 480px;
}
.success__check {
  width: 72px;
  height: 72px;
}
.success__check svg {
  width: 100%;
  height: 100%;
}
.success__check circle {
  stroke: var(--accent);
  stroke-width: 3;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: circle 0.7s var(--easing-emph) forwards;
}
.success__check path {
  stroke: var(--accent);
  stroke-width: 3;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: tick 0.4s var(--easing-emph) 0.5s forwards;
}
@keyframes circle {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes tick {
  to {
    stroke-dashoffset: 0;
  }
}
.success h3 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  margin: 0;
  letter-spacing: 0.02em;
}
.success__name {
  color: var(--accent);
  font-weight: 500;
}
.success .muted {
  color: rgba(10, 10, 11, 0.6);
  font-size: 16px;
  max-width: 360px;
}
.success .btn--ghost {
  --btn-fg: var(--invert-ink);
  --btn-bd: rgba(10, 10, 11, 0.2);
  margin-top: 12px;
}
.success .btn--ghost:hover {
  --btn-bd: var(--invert-ink);
  background: var(--invert-ink);
  --btn-fg: var(--invert-bg);
}

/* ---------- countdown (GSAP tournament launch) ---------- */
.countdown {
  padding: clamp(60px, 10vh, 120px) var(--pad-x);
  background: var(--bg);
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.countdown::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 60%, rgba(237, 28, 36, 0.10), transparent 65%);
  pointer-events: none;
}
.countdown__head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vh, 72px);
  display: grid;
  gap: 16px;
  text-align: center;
  justify-items: center;
  position: relative;
}
.countdown__head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0;
  text-transform: uppercase;
}
.countdown__head p {
  margin: 0;
  font-size: 17px;
  max-width: 52ch;
}
.countdown__stage {
  position: relative;
  width: clamp(260px, 36vw, 380px);
  aspect-ratio: 1;
  margin: 0 auto;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.countdown__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.countdown__ring-track {
  stroke: rgba(237, 28, 36, 0.18);
}
.countdown__ring-fill {
  stroke: var(--accent);
  filter: drop-shadow(0 0 12px rgba(237, 28, 36, 0.5));
}
.countdown__tick {
  grid-area: 1 / 1;
  font-family: var(--font-display);
  font-size: clamp(120px, 20vw, 220px);
  line-height: 0.9;
  color: var(--ink);
  letter-spacing: -0.02em;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transform: scale(0.4);
  font-variant-numeric: tabular-nums;
}
.countdown__tick--go {
  color: var(--accent);
  letter-spacing: 0;
  text-shadow: 0 0 32px rgba(237, 28, 36, 0.5);
}
.countdown__particles {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 3;
  pointer-events: none;
}

.countdown__rays {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 0;
}
.countdown__rays span {
  position: absolute;
  width: 2px;
  height: 36px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0;
  transform-origin: 50% 0;
}
.countdown__rays span:nth-child(1) { transform: rotate(0deg) translateY(-90px); }
.countdown__rays span:nth-child(2) { transform: rotate(45deg) translateY(-90px); }
.countdown__rays span:nth-child(3) { transform: rotate(90deg) translateY(-90px); }
.countdown__rays span:nth-child(4) { transform: rotate(135deg) translateY(-90px); }
.countdown__rays span:nth-child(5) { transform: rotate(180deg) translateY(-90px); }
.countdown__rays span:nth-child(6) { transform: rotate(225deg) translateY(-90px); }
.countdown__rays span:nth-child(7) { transform: rotate(270deg) translateY(-90px); }
.countdown__rays span:nth-child(8) { transform: rotate(315deg) translateY(-90px); }

/* ---------- gallery ---------- */
.gallery {
  padding: clamp(60px, 10vh, 120px) var(--pad-x) clamp(60px, 8vh, 100px);
  background: var(--bg);
}
.gallery__head {
  max-width: 880px;
  margin-bottom: clamp(32px, 5vh, 56px);
  display: grid;
  gap: 16px;
}
.gallery__head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0;
  text-transform: uppercase;
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(140px, 18vw, 220px);
  gap: 12px;
}
.gallery__cell {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  position: relative;
}
.gallery__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.25) contrast(1.05);
  transition: transform 0.8s var(--easing), filter 0.5s var(--easing);
}
.gallery__cell:hover img {
  transform: scale(1.04);
  filter: grayscale(0);
}
.gallery__cell--a {
  grid-column: span 4;
  grid-row: span 2;
}
.gallery__cell--b {
  grid-column: span 2;
  grid-row: span 1;
}
.gallery__cell--c {
  grid-column: span 2;
  grid-row: span 1;
}
.gallery__cell--d {
  grid-column: span 4;
  grid-row: span 1;
}
.gallery__cell--e {
  grid-column: span 2;
  grid-row: span 1;
}
@media (max-width: 760px) {
  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 160px;
  }
  .gallery__cell--a {
    grid-column: span 2;
    grid-row: span 2;
  }
  .gallery__cell--b,
  .gallery__cell--c,
  .gallery__cell--d,
  .gallery__cell--e {
    grid-column: span 1;
    grid-row: span 1;
  }
  .gallery__cell--d {
    grid-column: span 2;
  }
}

.gallery__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: clamp(28px, 5vh, 56px);
  padding-top: clamp(28px, 5vh, 48px);
  border-top: 1px solid var(--line);
}
.gallery__stats > div {
  display: grid;
  gap: 4px;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1;
  letter-spacing: 0;
  color: var(--ink);
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
}
@media (max-width: 640px) {
  .gallery__stats {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

/* ---------- photo strip ---------- */
.strip {
  padding: clamp(40px, 6vh, 72px) var(--pad-x);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.strip__row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.6fr 1fr;
  gap: 12px;
  height: clamp(220px, 32vw, 360px);
}
.strip__card {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  isolation: isolate;
}
.strip__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.05);
  transition: transform 0.8s var(--easing), filter 0.5s var(--easing);
}
.strip__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 10, 11, 0.7));
  pointer-events: none;
}
.strip__card figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.85;
}
.strip__card:hover img {
  transform: scale(1.05);
  filter: grayscale(0) contrast(1.1);
}
@media (max-width: 760px) {
  .strip__row {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px;
    height: auto;
  }
  .strip__card--wide {
    grid-column: span 2;
    height: 200px;
  }
  .strip__card--tall {
    grid-row: span 1;
  }
}

/* ---------- word underline ---------- */
.word-underline {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.word-underline svg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.06em;
  width: 100%;
  height: 0.22em;
  overflow: visible;
  pointer-events: none;
}
.word-underline path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  transition: stroke-dashoffset 1s var(--easing-emph);
}
.word-underline.is-drawn path {
  stroke-dashoffset: 0;
}
.word-underline--alt path {
  stroke-width: 3.5;
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  transition-delay: 0.25s;
}
.word-underline--alt.is-drawn path {
  stroke-dashoffset: 0;
}

/* ---------- footer ---------- */
.footer {
  padding: clamp(60px, 10vh, 120px) var(--pad-x) 32px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: clamp(64px, 9vh, 112px);
}
.footer__top {
  font-size: clamp(44px, 8.5vw, 140px);
}
.footer__big {
  font-family: var(--font-display);
  font-size: 1em;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-dim);
}
.footer__links {
  display: flex;
  gap: 20px;
}
.footer__links a {
  transition: color 0.25s var(--easing);
}
.footer__links a:hover {
  color: var(--accent);
}

/* ---------- typewriter (hero rotating word) ---------- */
.hero__title [data-typewriter] {
  --tw-color: var(--accent);
  display: inline-block;
  white-space: nowrap;
  vertical-align: top;
  box-sizing: content-box;
  margin-right: 0.08em;
  min-width: 12ch;
  text-shadow:
    0 0 24px color-mix(in srgb, var(--tw-color) 55%, transparent),
    0 0 64px color-mix(in srgb, var(--tw-color) 28%, transparent);
  transition: color 0.45s var(--easing-emph), text-shadow 0.45s var(--easing-emph);
}
.hero__title [data-typewriter]::after {
  content: '';
  display: inline-block;
  width: 0.07em;
  height: 0.65em;
  background: var(--tw-color);
  vertical-align: baseline;
  margin-left: 0.03em;
}
.hero__title [data-typewriter].is-typed::after {
  animation: tw-blink 0.85s step-end infinite;
}
@keyframes tw-blink {
  0%, 50% {
    background-color: var(--tw-color, var(--accent));
  }
  50.01%, 100% {
    background-color: transparent;
  }
}

/* ---------- footer big — hover color cycling ---------- */
.footer__big .char,
.footer__big .word {
  display: inline-block;
  transition: color 0.35s var(--easing);
  cursor: default;
}
.footer__big.is-revealed .char,
.footer__big.is-revealed .word {
  transition:
    color 0.35s var(--easing),
    transform 0.45s var(--easing-emph);
}
.footer__big .char:hover,
.footer__big .word:hover {
  color: var(--accent);
  transform: translateY(-0.08em) scale(1.06);
}
.footer__big .char:nth-child(3n):hover,
.footer__big .word:nth-child(3n):hover {
  color: var(--accent-2);
}
.footer__big .char:nth-child(5n):hover,
.footer__big .word:nth-child(5n):hover {
  color: #4cb1ff;
}
.footer__big .char:nth-child(7n):hover,
.footer__big .word:nth-child(7n):hover {
  color: #f5a623;
}
.footer__big .char:nth-child(11n):hover,
.footer__big .word:nth-child(11n):hover {
  color: #d97aff;
}

/* ---------- events section ---------- */
.events {
  padding: clamp(40px, 6vh, 80px) var(--pad-x);
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.events__head {
  max-width: 880px;
  display: grid;
  gap: 10px;
  margin-bottom: clamp(20px, 3vh, 36px);
}
.events__head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 18px 0 0;
  text-transform: uppercase;
}
.events__sub {
  margin: 0;
  font-size: 17px;
  max-width: 52ch;
}
.events__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.events--centered .events__head {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.events--centered .events__sub {
  margin: 0 auto;
}

.events__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
  color: var(--ink-mute);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  display: grid;
  gap: 12px;
  justify-items: center;
}
.events__empty-icon {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 4px;
  opacity: 0.6;
}
.events__empty h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink-dim);
  margin: 0;
}
.events__empty p {
  font-size: 14px;
  color: var(--ink-mute);
  margin: 0;
  max-width: 36ch;
  line-height: 1.6;
}
.event-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-2);
  transition: transform 0.3s var(--easing), border-color 0.3s var(--easing);
}
.event-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}
.event-card--past {
  opacity: 0.5;
}
.event-card--past:hover {
  transform: none;
  border-color: var(--line);
}
.event-card__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}
.event-card__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.3) contrast(1.05);
  transition: transform 0.6s var(--easing);
}
.event-card:hover .event-card__img img {
  transform: scale(1.05);
}
.event-card__body {
  padding: 16px 18px;
  display: grid;
  gap: 6px;
}
.event-card__badge {
  display: inline-block;
  width: fit-content;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(0, 200, 83, 0.15);
  color: #4caf50;
  animation: pulse-badge 2s ease-in-out infinite;
}
@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.event-card__title {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1.1;
}
.event-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-dim);
  margin-top: 2px;
}
.event-card__meta > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-dim);
}
.event-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-dim);
}
.event-card__meta svg,
.event-card__meta-item svg {
  opacity: 0.55;
  transition: opacity 0.2s;
}
.event-card:hover .event-card__meta svg,
.event-card:hover .event-card__meta-item svg {
  opacity: 0.9;
}
.event-card__meta-item span {
  line-height: 1.3;
}
.event-card__desc {
  margin: 2px 0 0;
  color: var(--ink-dim);
  font-size: 13px;
  line-height: 1.4;
}

/* Status badges for upcoming / completed */
.event-card__badge--upcoming {
  background: rgba(0, 100, 255, 0.15);
  color: #6096fd;
  animation: none;
}
.event-card__badge--completed {
  background: rgba(255,255,255,0.06);
  color: var(--ink-mute);
  animation: none;
}
.event-card__badge--tbd {
  background: rgba(245, 166, 35, 0.12);
  color: #f5a623;
  animation: none;
}

/* Featured event card (nearest upcoming or ongoing) */
.event-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-color: rgba(237,28,36,0.2);
  background: var(--bg-2);
  box-shadow: 0 0 0 1px rgba(237,28,36,0.06);
}
.event-card--featured:hover {
  border-color: rgba(237,28,36,0.4);
}
.event-card--featured .event-card__img {
  aspect-ratio: auto;
  height: 100%;
  min-height: 140px;
  max-height: 320px;
}
.event-card--featured .event-card__body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.event-card--featured .event-card__title {
  font-size: clamp(18px, 2vw, 24px);
}

/* Sign Me In button */
.event-card__footer {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  flex-wrap: wrap;
}
.event-card__footer .btn {
  font-size: 13px;
  padding: 10px 20px;
}

/* Event sign-up modal */
.event-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.event-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.event-modal {
  background: #121216;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  gap: 22px;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
}
.event-modal-overlay.is-open .event-modal {
  transform: translateY(0) scale(1);
}
.event-modal__head {
  display: grid;
  gap: 4px;
}
.event-modal__head h2 {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1.1;
}
.event-modal__head p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 14px;
}
.event-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-dim);
  font-size: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.event-modal__close:hover {
  background: var(--line-strong);
  color: var(--ink);
}
.event-modal form {
  display: grid;
  gap: 18px;
}
.event-modal .field {
  display: grid;
  gap: 6px;
}
.event-modal .field__label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
}
.event-modal .field__label .opt {
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-mute);
  margin-left: 4px;
}
.event-modal input,
.event-modal select,
.event-modal textarea {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--ink);
  font-size: 15px;
  outline: none;
  font-family: var(--font-body);
  transition: border-color 0.2s;
}
.event-modal input:focus,
.event-modal select:focus,
.event-modal textarea:focus {
  border-color: var(--accent);
}
.event-modal textarea {
  min-height: 70px;
  resize: vertical;
}
.event-modal select {
  appearance: auto;
  -webkit-appearance: auto;
  padding-right: 36px;
}
.event-modal .time-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}
.event-modal .day-chips {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 4px;
}
.event-modal .day-chip {
  position: relative;
  cursor: pointer;
}
.event-modal .day-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.event-modal .day-chip span {
  display: block;
  padding: 10px 4px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-dim);
  transition: all 0.2s;
}
.event-modal .day-chip input:checked + span {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(237,28,36,0.08);
}
.event-modal .day-chip:hover span {
  border-color: rgba(255,255,255,0.2);
}
.event-modal .time-chip {
  position: relative;
  cursor: pointer;
}
.event-modal .time-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.event-modal .time-chip span {
  display: block;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-dim);
  transition: all 0.2s;
}
.event-modal .time-chip input:checked + span {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(237,28,36,0.08);
}
.event-modal .time-chip:hover span {
  border-color: rgba(255,255,255,0.2);
}
.event-modal .form__row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.event-modal .modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 4px;
}
.event-modal .modal-actions .btn {
  font-size: 14px;
  padding: 12px 24px;
}
.event-modal .modal-error {
  color: var(--accent);
  font-size: 13px;
  padding: 8px 12px;
  background: rgba(237,28,36,0.08);
  border-radius: var(--radius);
  display: none;
}
.event-modal .modal-error.is-visible {
  display: block;
}
.event-modal .modal-success {
  display: none;
}
.event-modal .modal-success.is-visible {
  display: flex;
  align-items: center;
  justify-content: center;
}
.event-modal .modal-success__inner {
  text-align: center;
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 32px 16px;
  max-width: 400px;
}
.event-modal .modal-success__check {
  width: 64px;
  height: 64px;
}
.event-modal .modal-success__check svg {
  width: 100%;
  height: 100%;
}
.event-modal .modal-success__check circle {
  stroke: var(--accent);
  stroke-width: 3;
  fill: none;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: circle 0.7s var(--easing-emph) forwards;
}
.event-modal .modal-success__check path {
  stroke: var(--accent);
  stroke-width: 3;
  fill: none;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: tick 0.4s var(--easing-emph) 0.5s forwards;
}
.event-modal .modal-success h3 {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 4px 0 0;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.event-modal .modal-success__desc {
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}
.event-modal .modal-success__name {
  color: var(--invert-ink);
  font-weight: 600;
}
.event-modal .modal-success__next {
  color: var(--ink-dim);
  font-size: 13px;
  line-height: 1.5;
  margin: 4px 0 0;
  max-width: 300px;
}
.event-modal .modal-success__next a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.event-modal .modal-success__next a:hover {
  text-decoration: underline;
}
.event-modal .modal-success__close {
  margin-top: 8px;
  --btn-fg: var(--invert-ink);
  --btn-border: rgba(255,255,255,0.12);
  --btn-hover-bg: rgba(255,255,255,0.06);
}

@media (max-width: 720px) {
  .event-card--featured {
    grid-template-columns: 1fr;
  }
  .event-card--featured .event-card__img {
    height: 200px;
    min-height: auto;
  }
  .event-modal .form__row--two {
    grid-template-columns: 1fr;
  }
}

/* ---------- instagram section ---------- */
.instagram {
  padding: clamp(60px, 10vh, 120px) var(--pad-x);
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}
.instagram__head {
  max-width: 880px;
  display: grid;
  gap: 16px;
  margin-bottom: clamp(32px, 5vh, 56px);
}
.instagram__head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 18px 0 0;
  text-transform: uppercase;
}
.instagram__head .muted {
  margin: 0;
  font-size: 17px;
  max-width: 48ch;
}
.instagram__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}
.insta-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  aspect-ratio: 1;
  isolation: isolate;
  cursor: pointer;
}
.insta-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--easing), filter 0.4s var(--easing);
}
.insta-card:hover img {
  transform: scale(1.06);
  filter: brightness(0.6);
}
.insta-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.3s var(--easing);
  background: rgba(10, 10, 11, 0.3);
}
.insta-card:hover .insta-card__overlay {
  opacity: 1;
}
.insta-card__icon {
  font-size: 28px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}
.insta-card__caption {
  font-size: 12px;
  color: var(--ink);
  letter-spacing: 0.04em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.instagram__cta {
  text-align: center;
}

/* ---------- a11y motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- responsive: tablet (≤960px) ---------- */
@media (max-width: 960px) {
  :root {
    --pad-x: clamp(18px, 4.5vw, 48px);
  }
  .gallery__grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .events__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery__cell--a {
    grid-column: span 4;
  }
  .gallery__cell--b,
  .gallery__cell--c {
    grid-column: span 2;
  }
  .gallery__cell--d {
    grid-column: span 4;
  }
  .gallery__cell--e {
    grid-column: span 4;
  }
}

/* ---------- responsive: small tablet / phone (≤720px) ---------- */
@media (max-width: 720px) {
  .nav__links {
    display: none;
  }
  .hero {
    padding-block: clamp(48px, 8vh, 90px);
  }
  .marquee {
    padding: 16px 0;
  }
  .about {
    padding-block: clamp(56px, 9vh, 100px);
  }
  .events__grid {
    grid-template-columns: 1fr;
  }
  .instagram__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form__submit {
    flex-direction: column;
    align-items: stretch;
  }
  .form__submit .btn {
    width: 100%;
    justify-content: center;
  }
  .consent {
    max-width: none;
  }
  .footer {
    padding-top: clamp(48px, 8vh, 90px);
  }
}

/* ---------- responsive: phone (≤520px) ---------- */
@media (max-width: 520px) {
  .nav {
    padding: 12px var(--pad-x);
    gap: 10px;
  }
  .brand {
    font-size: 20px;
    gap: 8px;
  }
  .brand__mark {
    width: 26px;
    height: 26px;
  }
  .brand__mark svg {
    width: 15px;
    height: 15px;
  }
  .nav__cta {
    padding: 8px 12px;
    font-size: 12px;
  }
  .nav__cta svg {
    display: none;
  }
  .hero__title {
    font-size: clamp(54px, 14vw, 96px);
  }
  .hero__lede {
    font-size: 15px;
  }
  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__cta .btn {
    justify-content: center;
  }
  .placard {
    padding: 14px 16px;
  }
  .strip__row {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }
  .strip__card--wide,
  .strip__card--tall {
    grid-column: span 1;
  }
  .gallery__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 180px;
  }
  .gallery__cell--a,
  .gallery__cell--b,
  .gallery__cell--c,
  .gallery__cell--d,
  .gallery__cell--e {
    grid-column: span 1;
    grid-row: span 1;
  }
  .countdown__stage {
    width: clamp(220px, 70vw, 320px);
  }
  .countdown__rays span {
    height: 28px;
  }
  .countdown__rays span:nth-child(1) { transform: rotate(0deg) translateY(-72px); }
  .countdown__rays span:nth-child(2) { transform: rotate(45deg) translateY(-72px); }
  .countdown__rays span:nth-child(3) { transform: rotate(90deg) translateY(-72px); }
  .countdown__rays span:nth-child(4) { transform: rotate(135deg) translateY(-72px); }
  .countdown__rays span:nth-child(5) { transform: rotate(180deg) translateY(-72px); }
  .countdown__rays span:nth-child(6) { transform: rotate(225deg) translateY(-72px); }
  .countdown__rays span:nth-child(7) { transform: rotate(270deg) translateY(-72px); }
  .countdown__rays span:nth-child(8) { transform: rotate(315deg) translateY(-72px); }
  .gallery__stats {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }
  .footer__top {
    font-size: clamp(44px, 13vw, 96px);
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .footer__links {
    flex-wrap: wrap;
    gap: 16px;
  }
}

@media (max-width: 520px) {
  .brand__name {
    display: none;
  }
}

/* ---------- responsive: tiny phone (≤360px) ---------- */
@media (max-width: 360px) {
  :root {
    --pad-x: 16px;
  }
  .instagram__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- responsive: short viewports ---------- */
@media (max-height: 640px) and (min-width: 720px) {
  .hero {
    padding-block: clamp(36px, 6vh, 72px);
  }
  .hero__title {
    font-size: clamp(56px, 10vw, 140px);
  }
}
