:root {
  --ink: #09090b;
  --paper: #ffffff;
  --soft: #f4f5f7;
  --yellow: #ffd500;
  --blue: #0877df;
  --cyan: #00a8f3;
  --magenta: #ef006d;
  --green: #22d541;
  --purple: #7333bf;
  --red: #ea1728;
  --muted: #5c6270;
  --line: #dfe2e7;
  --shadow: 0 22px 55px rgba(9, 9, 11, 0.12);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 9999;
  left: 1rem;
  top: -100px;
  padding: 0.8rem 1rem;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
}

.skip-link:focus { top: 1rem; }

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(9, 9, 11, 0.08);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 50%;
}

.brand span { font-size: 1.22rem; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
}

.site-nav a:not(.button):hover,
.site-nav a:not(.button):focus-visible { color: var(--blue); }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 0;
  place-items: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hamburger-icon,
.hamburger-icon::before,
.hamburger-icon::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 160ms ease, opacity 160ms ease;
}

.hamburger-icon { position: relative; }
.hamburger-icon::before,
.hamburger-icon::after { content: ""; position: absolute; left: 0; }
.hamburger-icon::before { top: -7px; }
.hamburger-icon::after { top: 7px; }
.nav-toggle.is-open .hamburger-icon { background: transparent; }
.nav-toggle.is-open .hamburger-icon::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-open .hamburger-icon::after { top: 0; transform: rotate(-45deg); }

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.82rem 1.22rem;
  border: 2px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  line-height: 1.1;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible { transform: translateY(-2px); }
.button-primary { color: #050505; background: var(--yellow); box-shadow: 5px 5px 0 var(--ink); }
.button-dark { color: #fff; background: var(--ink); }
.button-light { color: var(--ink); background: #fff; }
.button-outline { color: var(--ink); background: transparent; border-color: var(--ink); }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 720px;
  display: grid;
  align-items: center;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("../img/hero-community.jpg") center 40% / cover no-repeat;
  opacity: 0.9;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, #09090b 0%, rgba(9,9,11,.96) 36%, rgba(9,9,11,.68) 62%, rgba(9,9,11,.2) 100%),
    linear-gradient(0deg, rgba(9,9,11,.78), transparent 45%);
}

.hero-content {
  width: min(650px, 58%);
  padding-block: 6.5rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow { color: var(--yellow); }

h1, h2, h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}

h1 { max-width: 760px; font-size: clamp(3.2rem, 7vw, 6.7rem); }
h2 { font-size: clamp(2.15rem, 4.5vw, 3.9rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.65rem); }

.hero h1 span { color: var(--yellow); }

.hero-lede {
  max-width: 600px;
  margin: 1.2rem 0 1.4rem;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 800;
  line-height: 1.35;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1.6rem;
  padding: 0;
  list-style: none;
}

.event-meta li {
  padding: 0.52rem 0.75rem;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  background: rgba(255,255,255,.08);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.color-stripe {
  height: 12px;
  background: linear-gradient(90deg, var(--blue) 0 20%, var(--yellow) 20% 40%, var(--magenta) 40% 60%, var(--green) 60% 80%, var(--purple) 80%);
}

.section { padding-block: clamp(4.5rem, 8vw, 7rem); }
.section-soft { background: var(--soft); }
.section-dark { color: #fff; background: var(--ink); }

.section-heading {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 3rem;
}

.section-heading p:last-child {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.section-dark .section-heading p:last-child { color: #cfd3db; }
.section-dark .eyebrow { color: var(--yellow); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  position: relative;
  min-height: 290px;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 35px rgba(9,9,11,.06);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 9px;
  background: var(--card-color, var(--blue));
}

.card-number {
  display: block;
  margin-bottom: 2.5rem;
  color: var(--card-color, var(--blue));
  font-size: 1.05rem;
  font-weight: 900;
}

.card p { margin: 1rem 0 0; color: var(--muted); }
.card-blue { --card-color: var(--blue); }
.card-red { --card-color: var(--red); }
.card-purple { --card-color: var(--purple); }

.split {
  display: grid;
  grid-template-columns: 1fr 0.88fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.split-copy > p:not(.eyebrow) { max-width: 690px; color: var(--muted); font-size: 1.12rem; }
.split-copy h2 { margin-bottom: 1.4rem; }

.statement {
  position: relative;
  padding: clamp(2rem, 5vw, 4rem);
  color: #fff;
  background: var(--blue);
  border-radius: var(--radius);
  box-shadow: 14px 14px 0 var(--yellow);
}

.statement strong {
  display: block;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 900;
  text-transform: uppercase;
}

.statement p { margin: 1rem 0 0; font-size: 1.12rem; font-weight: 800; }

.event-band {
  background: var(--yellow);
  padding-block: 3rem;
}

.event-band-inner {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 2rem;
  align-items: center;
}

.event-band h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
.event-band p { margin: 0.75rem 0 0; font-weight: 800; }

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.support-item {
  padding: 2rem;
  border-top: 5px solid var(--support-color, var(--yellow));
  background: #18181b;
  border-radius: 0 0 var(--radius) var(--radius);
}

.support-item p { color: #cfd3db; }

.page-hero {
  position: relative;
  color: #fff;
  background: var(--ink);
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -130px;
  top: -180px;
  border: 55px solid var(--yellow);
  border-radius: 50%;
  opacity: 0.92;
}

.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(3.1rem, 7vw, 6.4rem); }
.page-hero p:not(.eyebrow) { max-width: 760px; margin: 1.2rem 0 0; font-size: 1.18rem; }

.detail-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: -1.6rem;
  position: relative;
  z-index: 3;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.detail {
  padding: 1.55rem 1.8rem;
  border-right: 1px solid var(--line);
}

.detail:last-child { border-right: 0; }
.detail small { display: block; color: var(--muted); font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; }
.detail strong { display: block; margin-top: 0.3rem; font-size: 1.08rem; line-height: 1.35; }

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: start;
}

.form-shell {
  min-height: 480px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.form-unavailable { padding: clamp(2rem, 6vw, 4rem); }
.form-unavailable h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
.form-unavailable p:not(.eyebrow) { max-width: 620px; color: var(--muted); }

.side-panel {
  position: sticky;
  top: 110px;
  padding: 1.7rem;
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius);
}

.side-panel h2 { font-size: 1.8rem; }
.side-panel ul { padding-left: 1.25rem; }
.side-panel li + li { margin-top: 0.65rem; }
.privacy-note { color: #cfd3db; font-size: 0.9rem; }
.privacy-note a { color: #fff; font-weight: 800; }

.prose { max-width: 820px; }
.prose h2 { margin-top: 2.8rem; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.prose h3 { margin-top: 2rem; }
.prose p, .prose li { color: #424754; }
.prose li + li { margin-top: 0.45rem; }

.success-card {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem);
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.success-mark {
  display: grid;
  width: 86px;
  height: 86px;
  margin: 0 auto 1.5rem;
  place-items: center;
  color: #fff;
  background: var(--green);
  border: 6px solid var(--ink);
  border-radius: 50%;
  font-size: 2.2rem;
  font-weight: 900;
}

.success-card h1 { font-size: clamp(2.8rem, 8vw, 5rem); }
.success-card p { color: var(--muted); font-size: 1.08rem; }

.site-footer {
  color: #fff;
  background: #050506;
  padding-block: 3.2rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand { max-width: 460px; }
.footer-brand p { color: #b9bec8; }
.footer-nav { display: grid; align-content: start; gap: 0.65rem; }
.footer-nav strong { color: var(--yellow); text-transform: uppercase; letter-spacing: .08em; }
.footer-nav a { color: #fff; text-decoration: none; }
.footer-nav a:hover, .footer-nav a:focus-visible { color: var(--yellow); }
.footer-bottom { padding-top: 1.3rem; border-top: 1px solid #2a2a2f; color: #969ba6; font-size: 0.9rem; }

.not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.not-found h1 { font-size: clamp(5rem, 20vw, 12rem); color: var(--blue); }

:focus-visible { outline: 4px solid var(--yellow); outline-offset: 4px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    padding: 1.2rem 1rem 1.5rem;
    align-items: stretch;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(9,9,11,.1);
  }
  .site-nav.is-open { display: flex; }
  .site-nav .button { align-self: flex-start; }
  .hero { min-height: auto; padding-top: 18rem; }
  .hero::before { inset: 0 0 auto; height: 22rem; background-position: center 42%; opacity: 0.88; }
  .hero::after { background: linear-gradient(0deg, #09090b 0 64%, rgba(9,9,11,.15) 100%); }
  .hero-content { width: 100%; padding-block: 4rem 5rem; }
  .section-heading, .split, .form-layout { grid-template-columns: 1fr; }
  .cards, .support-grid { grid-template-columns: 1fr; }
  .detail-strip { grid-template-columns: 1fr; }
  .detail { border-right: 0; border-bottom: 1px solid var(--line); }
  .detail:last-child { border-bottom: 0; }
  .side-panel { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 1.25rem), var(--max)); }
  .brand span { display: none; }
  .brand img { width: 52px; height: 52px; }
  .header-inner { min-height: 72px; }
  .site-nav { top: 72px; }
  .hero { padding-top: 15rem; }
  .hero::before { height: 18rem; }
  .hero-actions .button { width: 100%; }
  .event-band-inner { grid-template-columns: 1fr; }
  .event-band .button { justify-self: start; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { grid-column: auto; }
}

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