@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --neon: #9cff18;
  --neon-2: #5cff36;
  --military: #52633a;
  --deep: #07120c;
  --deep-2: #0b1b12;
  --black: #020403;
  --graphite: #151a18;
  --graphite-2: #232b27;
  --steel: #aeb8ad;
  --muted: #728072;
  --white: #f4fff2;
  --mud: #a96f2d;
  --hazard: #e7f05b;
  --line: rgba(156, 255, 24, 0.22);
  --glass: rgba(10, 22, 15, 0.68);
  --glass-strong: rgba(12, 18, 15, 0.9);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --font-display: "Barlow Condensed", Impact, sans-serif;
  --font-body: "Inter", Arial, sans-serif;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(156, 255, 24, 0.06) 0 1px, transparent 1px 18px),
    radial-gradient(ellipse at top left, rgba(82, 99, 58, 0.25), transparent 46%),
    linear-gradient(180deg, #030604 0%, #07120c 46%, #020403 100%);
  font-family: var(--font-body);
  line-height: 1.55;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

img,
iframe {
  max-width: 100%;
}

img {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

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

.noise-layer {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(115deg, transparent 0 47%, rgba(156, 255, 24, 0.05) 47% 48%, transparent 48% 100%),
    linear-gradient(25deg, transparent 0 63%, rgba(169, 111, 45, 0.07) 63% 64%, transparent 64% 100%);
  background-size: 180px 120px, 220px 160px;
  opacity: 0.85;
}

.roost-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.36;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(156, 255, 24, 0.12), transparent 34%),
    linear-gradient(180deg, #030604, #07120c);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-stack {
  width: min(78vw, 360px);
  text-align: center;
}

.loader-mark {
  color: var(--neon);
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 0.9;
  text-shadow: 0 0 24px rgba(156, 255, 24, 0.46);
}

.loader-copy {
  margin-top: 0.5rem;
  color: var(--steel);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.loader-track {
  position: relative;
  height: 5px;
  margin-top: 1.2rem;
  overflow: hidden;
  background: rgba(244, 255, 242, 0.1);
  border-radius: 999px;
}

.loader-track span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 46%;
  background: linear-gradient(90deg, var(--neon), var(--hazard));
  animation: loader-run 1s ease-in-out infinite alternate;
}

@keyframes loader-run {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(118%);
  }
}

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

.section {
  position: relative;
  padding: 4.5rem 0;
}

.section.tight {
  padding: 3rem 0;
}

.section.diagonal {
  clip-path: polygon(0 2.4rem, 100% 0, 100% calc(100% - 2rem), 0 100%);
  background:
    linear-gradient(135deg, rgba(156, 255, 24, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(12, 27, 18, 0.96), rgba(4, 8, 6, 0.96));
}

.section-head {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.8rem;
}

.section-kicker,
.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.45rem;
  color: var(--neon);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section-kicker::before,
.eyebrow::before {
  content: "";
  width: 30px;
  height: 3px;
  background: var(--neon);
  transform: skewX(-24deg);
  box-shadow: 0 0 18px rgba(156, 255, 24, 0.55);
}

.section-title,
.page-title,
.card-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
}

.section-title {
  max-width: 820px;
  font-size: 2.9rem;
}

.section-lead,
.page-lead {
  max-width: 740px;
  margin: 0;
  color: var(--steel);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(156, 255, 24, 0.16);
  background: rgba(3, 6, 4, 0.72);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--black);
  background: linear-gradient(135deg, var(--neon), var(--hazard));
  clip-path: polygon(16% 0, 100% 0, 84% 100%, 0 100%);
  box-shadow: 0 0 30px rgba(156, 255, 24, 0.35);
}

.brand-text {
  display: grid;
  line-height: 0.86;
}

.brand-text small {
  color: var(--steel);
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 800;
}

.menu-toggle {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(244, 255, 242, 0.18);
  border-radius: var(--radius);
  background: rgba(244, 255, 242, 0.05);
  cursor: pointer;
}

.site-nav {
  position: fixed;
  inset: 72px 0 auto 0;
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(156, 255, 24, 0.16);
  background: rgba(3, 6, 4, 0.96);
  transform: translateY(-115%);
  transition: transform 0.28s ease;
}

.site-nav.is-open {
  transform: translateY(0);
}

.site-nav a {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.7rem;
  color: var(--steel);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  border-radius: var(--radius);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--black);
  background: var(--neon);
}

.nav-cta {
  display: none;
}

.btn,
.icon-btn,
.chip,
.pagination button,
.filter-btn {
  border: 0;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.05rem;
  color: var(--black);
  background: linear-gradient(135deg, var(--neon), var(--hazard));
  border-radius: var(--radius);
  box-shadow: 0 14px 32px rgba(156, 255, 24, 0.16);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-3px) skewX(-3deg);
  box-shadow: 0 20px 44px rgba(156, 255, 24, 0.28);
}

.btn.ghost {
  color: var(--white);
  background: rgba(244, 255, 242, 0.06);
  border: 1px solid rgba(244, 255, 242, 0.16);
  box-shadow: none;
}

.btn.ghost:hover {
  border-color: var(--neon);
  color: var(--neon);
}

.hero {
  position: relative;
  display: grid;
  min-height: 86svh;
  align-items: end;
  overflow: hidden;
  padding: 7.5rem 0 4.5rem;
  isolation: isolate;
}

.hero.compact {
  min-height: 62svh;
  padding-bottom: 3.2rem;
}

.hero-media {
  position: absolute;
  inset: -6% 0 0;
  z-index: -3;
}

.hero-media img {
  width: 100%;
  height: 110%;
  object-fit: cover;
  transform: scale(1.03);
  filter: saturate(1.18) contrast(1.12) brightness(0.76);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(2, 4, 3, 0.96), rgba(2, 4, 3, 0.72) 36%, rgba(2, 4, 3, 0.14) 72%),
    linear-gradient(180deg, rgba(2, 4, 3, 0.18), rgba(2, 4, 3, 0.98));
}

.hero::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -1px;
  z-index: -1;
  height: 6rem;
  background: var(--deep);
  clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
}

.hero-grid {
  display: grid;
  gap: 1.4rem;
}

.hero-copy {
  display: grid;
  gap: 1.15rem;
}

.hero-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.45rem;
  padding: 0.44rem 0.7rem;
  color: var(--neon);
  background: rgba(156, 255, 24, 0.1);
  border: 1px solid rgba(156, 255, 24, 0.25);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-title {
  max-width: 840px;
  margin: 0;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 4.35rem;
  font-weight: 900;
  line-height: 0.78;
  text-transform: uppercase;
  text-shadow: 0 0 34px rgba(156, 255, 24, 0.2), 0 20px 60px rgba(0, 0, 0, 0.68);
}

.hero-title span {
  color: var(--neon);
}

.hero-lead {
  max-width: 650px;
  margin: 0;
  color: var(--steel);
  font-size: 1.03rem;
}

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

.hero-panel {
  display: grid;
  gap: 1rem;
  width: min(100%, 410px);
  padding: 1rem;
  background: var(--glass);
  border: 1px solid rgba(244, 255, 242, 0.12);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.race-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.race-meta div,
.stat-card,
.mini-stat {
  background: rgba(244, 255, 242, 0.055);
  border: 1px solid rgba(244, 255, 242, 0.1);
  border-radius: var(--radius);
}

.race-meta div {
  min-height: 72px;
  padding: 0.7rem;
}

.race-meta span,
.stat-card span,
.event-card span,
.news-meta,
.sponsor-tag,
.video-meta {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.race-meta strong {
  display: block;
  margin-top: 0.15rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1;
  text-transform: uppercase;
}

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

.stat-card {
  min-height: 130px;
  padding: 1.1rem;
  overflow: hidden;
  position: relative;
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -38% 42%;
  height: 92px;
  background: linear-gradient(135deg, rgba(156, 255, 24, 0.2), rgba(169, 111, 45, 0.16));
  transform: skewX(-22deg);
}

.stat-card strong {
  display: block;
  color: var(--neon);
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 0.9;
}

.feature-grid,
.news-grid,
.event-grid,
.album-grid,
.video-grid,
.sponsor-grid,
.photo-grid {
  display: grid;
  gap: 1rem;
}

.feature-grid,
.news-grid,
.event-grid,
.album-grid,
.video-grid,
.sponsor-grid {
  grid-template-columns: 1fr;
}

.card,
.news-card,
.event-card,
.album-card,
.video-card,
.sponsor-card,
.contact-panel,
.sidebar-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(244, 255, 242, 0.12);
  border-radius: var(--radius);
  background: rgba(11, 27, 18, 0.76);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.card:hover,
.news-card:hover,
.event-card:hover,
.album-card:hover,
.video-card:hover,
.sponsor-card:hover {
  transform: translateY(-7px);
  border-color: rgba(156, 255, 24, 0.42);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.media-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--graphite);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease, filter 0.55s ease;
}

.news-card:hover .media-frame img,
.event-card:hover .media-frame img,
.album-card:hover .media-frame img,
.video-card:hover .media-frame img,
.photo-tile:hover img {
  transform: scale(1.08);
  filter: saturate(1.22) contrast(1.08);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 36%, rgba(2, 4, 3, 0.9));
}

.card-body {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.card-title {
  font-size: 1.75rem;
}

.card-body p {
  margin: 0;
  color: var(--steel);
}

.tag-row,
.news-meta,
.event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.tag,
.chip,
.difficulty {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.3rem 0.55rem;
  color: var(--black);
  background: var(--neon);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tag.dark,
.chip {
  color: var(--white);
  background: rgba(244, 255, 242, 0.08);
  border: 1px solid rgba(244, 255, 242, 0.12);
}

.split-layout,
.portal-layout,
.contact-layout {
  display: grid;
  gap: 1.1rem;
}

.sponsor-strip {
  display: grid;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem;
  border-top: 1px solid rgba(156, 255, 24, 0.2);
  border-bottom: 1px solid rgba(156, 255, 24, 0.2);
  background: rgba(244, 255, 242, 0.04);
}

.sponsor-marquee {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.sponsor-pill {
  min-width: 132px;
  padding: 0.7rem 0.85rem;
  color: var(--steel);
  background: rgba(2, 4, 3, 0.4);
  border: 1px solid rgba(244, 255, 242, 0.1);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.gallery-showcase {
  display: grid;
  gap: 0.75rem;
}

.showcase-large,
.showcase-small {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--graphite);
}

.showcase-large {
  min-height: 360px;
}

.showcase-small {
  min-height: 210px;
}

.showcase-large img,
.showcase-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  filter: saturate(1.16) contrast(1.08);
}

.showcase-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 1rem;
  background: linear-gradient(180deg, transparent, rgba(2, 4, 3, 0.92));
}

.showcase-caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 0.96;
  text-transform: uppercase;
}

.page-hero {
  position: relative;
}

.searchbar {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  padding: 0.55rem 0.7rem;
  background: rgba(244, 255, 242, 0.06);
  border: 1px solid rgba(244, 255, 242, 0.13);
  border-radius: var(--radius);
}

.searchbar svg {
  flex: 0 0 auto;
  color: var(--neon);
}

.searchbar input {
  width: 100%;
  min-height: 38px;
  color: var(--white);
  background: transparent;
  border: 0;
  outline: 0;
}

.searchbar input::placeholder,
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(174, 184, 173, 0.76);
}

.sidebar {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.sidebar-panel {
  padding: 1rem;
  background: rgba(10, 22, 15, 0.72);
}

.sidebar-panel h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  text-transform: uppercase;
}

.sidebar-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-list a,
.category-button {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  width: 100%;
  padding: 0.65rem 0;
  color: var(--steel);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(244, 255, 242, 0.09);
  text-align: left;
  cursor: pointer;
}

.sidebar-list a:hover,
.category-button:hover {
  color: var(--neon);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.4rem;
}

.pagination button {
  min-width: 42px;
  min-height: 42px;
  color: var(--white);
  background: rgba(244, 255, 242, 0.06);
  border: 1px solid rgba(244, 255, 242, 0.14);
  border-radius: var(--radius);
  font-weight: 900;
}

.pagination button.is-active,
.pagination button:hover {
  color: var(--black);
  background: var(--neon);
}

.album-card,
.video-card {
  cursor: pointer;
}

.album-card .card-body {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(2, 4, 3, 0.94));
}

.album-card .media-frame {
  aspect-ratio: 16 / 11;
}

.album-view {
  display: none;
  margin-top: 2rem;
}

.album-view.is-visible {
  display: block;
}

.album-view-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.photo-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}

.photo-tile {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  border: 1px solid rgba(244, 255, 242, 0.1);
  border-radius: var(--radius);
  background: var(--graphite);
  cursor: zoom-in;
}

.photo-tile:nth-child(3n + 1) {
  grid-row: span 2;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.lightbox,
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  place-items: center;
  padding: 1rem;
  background: rgba(2, 4, 3, 0.88);
  backdrop-filter: blur(14px);
}

.lightbox.is-open,
.video-modal.is-open {
  display: grid;
}

.lightbox-panel,
.video-panel {
  position: relative;
  width: min(100%, 1040px);
  border: 1px solid rgba(156, 255, 24, 0.22);
  border-radius: var(--radius);
  background: var(--black);
  box-shadow: var(--shadow);
}

.lightbox-panel img {
  width: 100%;
  max-height: 78svh;
  object-fit: contain;
  background: var(--black);
}

.lightbox-caption,
.video-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.85rem;
  color: var(--steel);
}

.icon-btn {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--white);
  background: rgba(244, 255, 242, 0.08);
  border: 1px solid rgba(244, 255, 242, 0.15);
  border-radius: var(--radius);
}

.icon-btn:hover {
  color: var(--black);
  background: var(--neon);
}

.lightbox-actions {
  display: flex;
  gap: 0.5rem;
}

.play-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: inline-grid;
  width: 56px;
  height: 56px;
  place-items: center;
  color: var(--black);
  background: var(--neon);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(156, 255, 24, 0.42);
}

.video-stage {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(156, 255, 24, 0.15), rgba(169, 111, 45, 0.12)),
    #020403;
  border-radius: var(--radius) var(--radius) 0 0;
}

.video-stage iframe,
.video-stage .video-fallback {
  width: 100%;
  height: 100%;
}

.video-stage iframe {
  border: 0;
}

.video-fallback {
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
}

.video-fallback strong {
  display: block;
  color: var(--neon);
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.sponsor-tier {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.4rem;
}

.tier-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
}

.tier-title::before {
  content: "";
  width: 42px;
  height: 4px;
  background: var(--neon);
  transform: skewX(-24deg);
}

.sponsor-card {
  display: grid;
  min-height: 170px;
  place-items: center;
  padding: 1.25rem;
  text-align: center;
}

.sponsor-card.master {
  min-height: 230px;
  background:
    linear-gradient(135deg, rgba(156, 255, 24, 0.14), transparent 48%),
    rgba(11, 27, 18, 0.86);
}

.sponsor-logo {
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
}

.sponsor-card.master .sponsor-logo {
  color: var(--neon);
  font-size: 3rem;
  text-shadow: 0 0 22px rgba(156, 255, 24, 0.28);
}

.sponsor-tag {
  display: block;
  margin-top: 0.65rem;
}

.contact-panel {
  padding: 1rem;
  background: rgba(10, 22, 15, 0.76);
}

.contact-form {
  display: grid;
  gap: 0.85rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  color: var(--steel);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  color: var(--white);
  background: rgba(244, 255, 242, 0.06);
  border: 1px solid rgba(244, 255, 242, 0.13);
  border-radius: var(--radius);
  outline: 0;
}

.field input {
  min-height: 48px;
  padding: 0 0.8rem;
}

.field textarea {
  min-height: 142px;
  padding: 0.8rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(156, 255, 24, 0.12);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.contact-list {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.contact-list a,
.contact-list span {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--steel);
}

.contact-list a:hover {
  color: var(--neon);
}

.map-frame {
  overflow: hidden;
  border: 1px solid rgba(244, 255, 242, 0.12);
  border-radius: var(--radius);
  background: var(--graphite);
}

.map-frame iframe {
  display: block;
  width: 100%;
  min-height: 340px;
  border: 0;
  filter: grayscale(1) invert(0.86) contrast(1.1);
}

.toast {
  display: none;
  margin-top: 0.7rem;
  color: var(--neon);
  font-weight: 800;
}

.toast.is-visible {
  display: block;
}

.social-cta {
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
  background:
    linear-gradient(135deg, rgba(156, 255, 24, 0.16), transparent 42%),
    linear-gradient(90deg, rgba(2, 4, 3, 0.92), rgba(7, 18, 12, 0.92));
}

.social-cta::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -3rem;
  width: 10rem;
  background: rgba(156, 255, 24, 0.08);
  transform: skewX(-22deg);
}

.social-inner {
  position: relative;
  display: grid;
  gap: 1rem;
  align-items: center;
}

.social-inner h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.45rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.site-footer {
  padding: 2.6rem 0 1.3rem;
  background: #020403;
  border-top: 1px solid rgba(156, 255, 24, 0.16);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.footer-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--steel);
}

.footer-links a:hover {
  color: var(--neon);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1rem;
  color: var(--muted);
  border-top: 1px solid rgba(244, 255, 242, 0.08);
  font-size: 0.86rem;
}

@media (min-width: 640px) {
  .container {
    width: min(100% - 2rem, var(--container));
  }

  .section-title {
    font-size: 3.8rem;
  }

  .hero-title {
    font-size: 6rem;
  }

  .stats-grid,
  .photo-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .news-grid,
  .event-grid,
  .album-grid,
  .video-grid,
  .sponsor-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-showcase {
    grid-template-columns: 1.45fr 1fr;
  }

  .gallery-stack {
    display: grid;
    gap: 0.75rem;
  }
}

@media (min-width: 900px) {
  .menu-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 0.12rem;
    padding: 0;
    border: 0;
    background: transparent;
    transform: none;
  }

  .site-nav a {
    min-height: 38px;
    padding: 0.45rem 0.62rem;
    font-size: 0.76rem;
  }

  .nav-cta {
    display: inline-flex;
  }

  .hero {
    min-height: 88svh;
    padding-bottom: 5rem;
  }

  .hero.compact {
    min-height: 58svh;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 410px;
    align-items: end;
  }

  .hero-title {
    font-size: 7.6rem;
  }

  .hero-lead {
    font-size: 1.15rem;
  }

  .split-layout {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .portal-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1fr) 420px;
    align-items: start;
  }

  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .news-grid,
  .event-grid,
  .album-grid,
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .sponsor-strip,
  .social-inner,
  .footer-grid {
    grid-template-columns: 1fr 1.4fr;
  }

  .sponsor-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1180px) {
  .hero-title {
    font-size: 8.7rem;
  }

  .section {
    padding: 6rem 0;
  }
}

@media (max-width: 420px) {
  .brand-text small {
    display: none;
  }

  .hero-title {
    font-size: 3.45rem;
  }

  .section-title {
    font-size: 2.35rem;
  }

  .race-meta,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }
}

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

  .roost-canvas {
    display: none;
  }
}
