:root {
  --page: #ffffff;
  --surface: #ffffff;
  --surface-soft: #fbfbfd;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(29, 29, 31, 0.11);
  --green: #0f5f37;
  --green-deep: #07361f;
  --green-soft: #edf7f1;
  --maroon: #8d262b;
  --gold: #f1be4f;
  --orange: #d36d22;
  --shadow-soft: 0 1.4rem 4rem rgba(0, 0, 0, 0.08);
  --shadow-card: 0 0.8rem 2.4rem rgba(0, 0, 0, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: #ffffff;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  letter-spacing: 0;
  background:
    linear-gradient(180deg, #ffffff 0%, #ffffff calc(100% - 54rem), rgba(255, 255, 255, 0.94) calc(100% - 42rem), rgba(255, 255, 255, 0.68) calc(100% - 28rem), rgba(255, 255, 255, 0.16) 100%),
    url("assets/footer-rugby-ground.jpg") center bottom / 100% auto no-repeat,
    #ffffff;
}

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

img {
  display: block;
  max-width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.55rem;
  padding: 0.62rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(90deg, rgba(49, 6, 9, 0.28), transparent 48%, rgba(0, 0, 0, 0.22)),
    var(--maroon);
  backdrop-filter: blur(18px);
}

.brand {
  width: clamp(6.7rem, 10vw, 8.6rem);
  flex: 0 0 auto;
}

.brand img {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
}

.nav-toggle {
  position: relative;
  width: 3rem;
  height: 3rem;
  display: none;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 0.9rem 2rem rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  width: 1.25rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: transform 220ms ease, opacity 180ms ease, top 220ms ease;
}

.nav-toggle span:nth-child(1) {
  top: 1rem;
}

.nav-toggle span:nth-child(2) {
  top: 1.44rem;
}

.nav-toggle span:nth-child(3) {
  top: 1.88rem;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.36rem;
}

.main-nav a {
  position: relative;
  overflow: hidden;
  min-height: 2.3rem;
  display: inline-flex;
  align-items: center;
  padding: 0.62rem 1rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.main-nav a::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.28) 46%, transparent 68%);
  opacity: 0;
  transform: translateX(-120%);
  transition: opacity 180ms ease, transform 520ms ease;
}

.main-nav a::after {
  position: absolute;
  right: 0.9rem;
  bottom: 0.36rem;
  left: 0.9rem;
  height: 2px;
  border-radius: 999px;
  content: "";
  background: var(--gold);
  opacity: 0;
  transform: scaleX(0.2);
  transition: opacity 180ms ease, transform 220ms ease;
}

.main-nav a:hover,
.main-nav .active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: translateY(-0.08rem);
}

.main-nav a:hover::before {
  opacity: 1;
  transform: translateX(120%);
}

.main-nav a:hover::after,
.main-nav .active::after {
  opacity: 1;
  transform: scaleX(1);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: inherit;
  letter-spacing: 0;
}

h1 {
  max-width: 13ch;
  margin: 0 auto 1rem;
  font-size: clamp(3.2rem, 8vw, 5.8rem);
  font-weight: 700;
  line-height: 0.98;
}

h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 4.8vw, 4rem);
  font-weight: 700;
  line-height: 1;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.15;
}

.hero-text {
  width: min(670px, 100%);
  margin: 0 auto 1.35rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.1vw, 1.35rem);
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}

.button {
  min-height: 2.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--maroon), #9b2730 52%, var(--green));
  box-shadow: 0 0.85rem 1.8rem rgba(141, 38, 43, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.button-primary:hover {
  transform: translateY(-0.08rem);
  box-shadow: 0 1rem 2.1rem rgba(15, 95, 55, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.button-primary:focus-visible {
  outline: 3px solid rgba(241, 190, 79, 0.72);
  outline-offset: 3px;
}

.button-secondary {
  color: #0071e3;
  background: rgba(0, 113, 227, 0.1);
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: calc(100vh - 4.25rem);
  overflow: hidden;
  background: #08090a;
}

.landing-copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  gap: clamp(0.8rem, 1.8vw, 1.25rem);
  padding: clamp(2rem, 5vw, 5.5rem) clamp(2rem, 6vw, 7rem) clamp(2rem, 5vw, 5rem) clamp(1rem, 7vw, 10rem);
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 18%, rgba(241, 190, 79, 0.16), transparent 13rem),
    linear-gradient(110deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 18px),
    linear-gradient(180deg, #a92226 0%, var(--maroon) 58%, #6f171b 100%);
}

.landing-copy::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    repeating-linear-gradient(108deg, rgba(0, 0, 0, 0.12) 0 1px, transparent 1px 2.6rem),
    radial-gradient(circle at 88% 96%, rgba(0, 0, 0, 0.18), transparent 18rem);
  opacity: 0.35;
  pointer-events: none;
}

.landing-copy::after {
  position: absolute;
  top: 0;
  right: -4.5rem;
  bottom: 0;
  width: 8rem;
  content: "";
  background: inherit;
  pointer-events: none;
  transform: skewX(-5deg);
  transform-origin: top;
}

.landing-copy > * {
  position: relative;
  z-index: 1;
}

.landing-copy .eyebrow {
  margin-bottom: -0.2rem;
  color: var(--gold);
}

.landing-copy h1 {
  max-width: 12ch;
  margin: 0;
  color: #ffffff;
  font-size: clamp(3rem, 5.6vw, 6.5rem);
  line-height: 0.95;
}

.landing-copy-text {
  max-width: 40rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.55;
}

.landing-divider {
  width: min(100%, 42rem);
  height: 1px;
  background: rgba(241, 190, 79, 0.62);
}

.landing-countdown-title {
  margin: 0;
  color: #ffffff;
  font-family: inherit;
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  font-weight: 800;
}

.countdown.landing-countdown {
  width: min(100%, 35rem);
  margin: 0;
  padding: 0;
  border-color: rgba(255, 255, 255, 0.18);
  background: #d4bd72;
  box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.22);
  backdrop-filter: none;
}

.countdown.landing-countdown::before {
  opacity: 0.28;
}

.countdown.landing-countdown div {
  min-height: clamp(3.7rem, 6vw, 4.8rem);
  padding: 0.55rem 0.45rem;
  color: #111113;
  background: transparent;
  box-shadow: none;
}

.countdown.landing-countdown strong {
  color: #050505;
  font-size: clamp(1.45rem, 2.8vw, 2.35rem);
}

.countdown.landing-countdown span {
  color: rgba(0, 0, 0, 0.72);
  font-size: 0.72rem;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.2rem;
}

.landing-actions span {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 800;
  text-transform: uppercase;
}

.landing-actions .button-primary {
  color: #23180b;
  background: var(--gold);
}

.landing-banner {
  position: relative;
  min-width: 0;
  background:
    radial-gradient(circle at 48% 50%, rgba(241, 190, 79, 0.16), transparent 18rem),
    linear-gradient(135deg, #06080b, #151518);
}

.landing-banner .hero-slider {
  height: 100%;
  min-height: 100%;
  aspect-ratio: auto;
  max-height: none;
}

.landing-banner .hero-image {
  padding: clamp(0.75rem, 1.6vw, 1.4rem);
  object-fit: contain;
}

.landing-banner .hero-video {
  object-fit: cover;
}

.landing-banner .poster-slide .hero-image {
  padding: clamp(0.45rem, 1.1vw, 1rem);
}

.hero-slider {
  position: relative;
  min-height: 0;
  aspect-ratio: 1983 / 793;
  max-height: calc(100vh - 4.25rem);
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.2), transparent 25rem),
    repeating-linear-gradient(94deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(84deg, rgba(0, 0, 0, 0.11) 0 2px, transparent 2px 22px),
    linear-gradient(135deg, #0b3b24, #177545 48%, #062d1b);
}

.hero-slider::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 5.5rem 5.5rem;
  mask-image: linear-gradient(180deg, #000 0%, transparent 76%);
  pointer-events: none;
}

.slides {
  position: relative;
  height: 100%;
  min-height: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity 800ms ease, transform 1200ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-image,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.hero-video {
  display: block;
  background: #050505;
}

.slider-controls {
  position: absolute;
  right: 0;
  bottom: 1.4rem;
  left: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.slider-controls.is-hidden {
  display: none;
}

.slider-dots {
  display: flex;
  gap: 0.45rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.slider-dots button,
.slider-arrow {
  border: 0;
  cursor: pointer;
}

.slider-dots button {
  width: 0.62rem;
  height: 0.62rem;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
}

.slider-dots .is-active {
  width: 1.8rem;
  border-radius: 999px;
  background: #ffffff;
}

.slider-arrow {
  position: relative;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.slider-arrow::before {
  position: absolute;
  top: 50%;
  left: 52%;
  width: 0.52rem;
  height: 0.52rem;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  content: "";
  transform: translate(-50%, -50%) rotate(-45deg);
}

.slider-next::before {
  left: 48%;
  transform: translate(-50%, -50%) rotate(135deg);
}

.ad-strip,
.section,
.cta-band {
  width: min(1180px, calc(100% - 2rem));
  margin-right: auto;
  margin-left: auto;
}

.ad-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 0;
}

.ad-strip article {
  min-height: 12rem;
  display: grid;
  align-content: space-between;
  gap: 0.9rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.ad-strip span {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ad-strip strong {
  max-width: 14ch;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.05;
}

.ad-strip p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.4rem;
  margin-bottom: 1.4rem;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading.centered {
  display: block;
  width: min(760px, 100%);
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.single-line-title {
  white-space: nowrap;
  font-size: clamp(1.7rem, 4vw, 3.6rem);
}

.countdown-section {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border: 1px solid rgba(15, 95, 55, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(241, 190, 79, 0.2), transparent 18rem),
    linear-gradient(180deg, rgba(237, 247, 241, 0.9), rgba(255, 255, 255, 0.94));
  box-shadow: 0 1.4rem 4rem rgba(15, 95, 55, 0.12);
}

.countdown {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  width: min(760px, 100%);
  margin: 1.5rem auto 0;
  padding: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(241, 190, 79, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(15, 95, 55, 0.18), rgba(241, 190, 79, 0.26), rgba(15, 95, 55, 0.18)) border-box,
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 1.2rem 3rem rgba(15, 95, 55, 0.18), 0 0 2rem rgba(241, 190, 79, 0.18);
  backdrop-filter: blur(16px);
}

.countdown::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.74) 42%, transparent 64%);
  opacity: 0.8;
  pointer-events: none;
  transform: translateX(-120%);
  animation: countdown-shine 4.5s ease-in-out infinite;
}

.countdown div {
  position: relative;
  z-index: 1;
  min-height: 7rem;
  display: grid;
  place-items: center;
  gap: 0.3rem;
  padding: 1rem 0.75rem;
  border-radius: 6px;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0%, rgba(241, 190, 79, 0.14), transparent 60%),
    linear-gradient(180deg, #ffffff, #f7faf8);
  box-shadow: inset 0 0 0 1px rgba(15, 95, 55, 0.08);
  animation: countdown-float 3.8s ease-in-out infinite;
}

.countdown div:nth-child(2) {
  animation-delay: 0.15s;
}

.countdown div:nth-child(3) {
  animation-delay: 0.3s;
}

.countdown div:nth-child(4) {
  animation-delay: 0.45s;
}

.countdown strong {
  color: var(--green);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
}

.countdown span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.countdown.is-ticking [data-seconds] {
  animation: countdown-tick 420ms ease;
}

.application-notice {
  width: min(760px, calc(100% - 2rem));
  display: grid;
  gap: 0.35rem;
  margin: -1.6rem auto clamp(2rem, 5vw, 3.5rem);
  padding: 1rem 1.2rem;
  border: 1px solid rgba(141, 38, 43, 0.18);
  border-radius: 8px;
  color: var(--ink);
  background: linear-gradient(135deg, #ffffff, #fff8ef);
  box-shadow: 0 1rem 2.4rem rgba(141, 38, 43, 0.1);
  text-align: center;
}

.application-notice span {
  color: var(--maroon);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.application-notice strong {
  font-size: clamp(1.15rem, 2.5vw, 1.75rem);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.split-section p,
.values-grid p,
.team-card p,
.contact-card p {
  color: var(--muted);
  line-height: 1.65;
}

.section.home-about-section {
  width: 100%;
  max-width: none;
  padding: clamp(4rem, 8vw, 7rem) max(1rem, calc((100% - 1180px) / 2));
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 18%, rgba(241, 190, 79, 0.24), transparent 17rem),
    radial-gradient(circle at 86% 82%, rgba(15, 95, 55, 0.56), transparent 22rem),
    linear-gradient(135deg, #7c2025 0%, #8d262b 44%, #07361f 100%);
}

.home-about-section .eyebrow {
  color: var(--gold);
}

.home-about-section h2 {
  max-width: 13ch;
  color: #ffffff;
}

.home-about-section p {
  color: rgba(255, 255, 255, 0.84);
}

.home-about-section .text-link {
  padding-bottom: 0.16rem;
  border-bottom: 2px solid var(--gold);
  color: #ffffff;
}

.home-about-section .feature-image {
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 1.4rem 4rem rgba(0, 0, 0, 0.28);
}

.text-link {
  display: inline-flex;
  color: #0071e3;
  font-weight: 700;
}

.feature-image {
  position: relative;
  min-height: clamp(20rem, 44vw, 34rem);
  overflow: hidden;
  border-radius: 8px;
  background: #0b1712;
  box-shadow: var(--shadow-soft);
}

.feature-image img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.home-video-section {
  padding-top: clamp(2.4rem, 5vw, 4.4rem);
  padding-bottom: clamp(2.8rem, 5vw, 4.8rem);
}

.home-video-frame {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: clamp(18rem, 47vw, 36rem);
  border-radius: 8px;
  background: #050505;
  box-shadow: 0 1.4rem 4rem rgba(0, 0, 0, 0.16);
}

.home-video-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.18)),
    radial-gradient(circle at 82% 18%, rgba(241, 190, 79, 0.18), transparent 18rem);
  pointer-events: none;
}

.home-video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 900ms ease;
}

.home-video-frame:hover video {
  transform: scale(1.018);
}

.home-video-frame:focus-visible {
  outline: 3px solid rgba(241, 190, 79, 0.82);
  outline-offset: 5px;
}

.slider-section,
.sponsor-section {
  overflow: hidden;
}

.auto-slider {
  overflow: hidden;
  padding: 0.4rem 0 1.2rem;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.slider-track {
  display: flex;
  width: max-content;
  gap: 1rem;
  animation: slide-left 26s linear infinite;
}

.auto-slider:hover .slider-track {
  animation-play-state: paused;
}

.team-card {
  width: 17rem;
  min-height: 10rem;
  display: grid;
  align-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.team-card > span {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(145deg, var(--green), var(--maroon));
  font-size: 0.82rem;
  font-weight: 700;
}

.team-card > span.team-logo-image,
.team-logo.team-logo-image {
  overflow: hidden;
  border-radius: 50%;
  background: #ffffff;
}

.team-card > span.team-logo-image img,
.team-logo.team-logo-image img {
  width: 100%;
  height: 100%;
  padding: 0;
  border-radius: 50%;
  object-fit: cover;
}

.team-card > strong {
  font-size: 1.12rem;
  line-height: 1.2;
}

.team-track {
  gap: clamp(1.1rem, 2.4vw, 2rem);
  animation-duration: 74s;
}

.team-track .team-card {
  width: clamp(8.5rem, 12vw, 10.5rem);
  min-height: auto;
  align-content: start;
  justify-items: center;
  gap: 0.72rem;
  padding: 0.35rem 0.15rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.team-track .team-card > span {
  width: clamp(6rem, 8.8vw, 7.8rem);
  height: clamp(6rem, 8.8vw, 7.8rem);
  border: 2px solid rgba(241, 190, 79, 0.46);
  box-shadow: 0 0.9rem 2rem rgba(15, 95, 55, 0.14), 0 0 0 0.45rem rgba(15, 95, 55, 0.07);
  font-size: 1.15rem;
}

.team-track .team-card > span.team-logo-image {
  overflow: hidden;
  border-radius: 50%;
  background: transparent;
}

.team-track .team-card > span.team-logo-image img {
  padding: 0;
  border-radius: 50%;
  object-fit: cover;
}

.team-track .team-card > strong {
  max-width: 9.5rem;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.18;
}

.sponsor-slider {
  margin-top: 1.5rem;
}

.sponsor-track {
  animation: slide-right 68s linear infinite;
}

.sponsor-card {
  width: clamp(13rem, 22vw, 18rem);
  height: clamp(5.2rem, 8.5vw, 7rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.sponsor-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.committee-section {
  overflow: hidden;
}

.committee-slider {
  margin-top: 0.4rem;
}

.committee-track {
  animation: slide-left 76s linear infinite;
}

.committee-card {
  width: clamp(13.5rem, 22vw, 17rem);
  display: grid;
  gap: 0.65rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.committee-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 7px;
  object-fit: cover;
  object-position: center top;
  background: var(--green-deep);
}

.committee-card strong {
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.1;
}

.committee-card span {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.gallery-grid,
.gallery-page-grid,
.values-grid,
.team-list {
  display: grid;
  gap: 1rem;
}

.gallery-grid {
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-auto-rows: minmax(13rem, auto);
}

.gallery-page-grid {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
}

.gallery-page-grid .photo-wide {
  grid-column: span 2;
}

.gallery-page-grid .photo-tall {
  grid-row: span 2;
  min-height: 37rem;
}

.gallery-tile {
  appearance: none;
  position: relative;
  min-height: 18rem;
  display: flex;
  align-items: end;
  overflow: hidden;
  padding: 1.15rem;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.58)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0 2px, transparent 2px 4rem),
    linear-gradient(135deg, var(--green), var(--maroon));
  font: inherit;
  text-align: left;
  box-shadow: var(--shadow-card);
  cursor: pointer;
}

.gallery-tile::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

.gallery-tile img,
.gallery-tile video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.gallery-tile video {
  background: #050505;
}

.gallery-tile:hover img,
.gallery-tile:hover video {
  transform: scale(1.045);
}

.video-tile::before {
  position: absolute;
  right: 1.35rem;
  bottom: 1.35rem;
  z-index: 2;
  width: 1.35rem;
  height: 1.55rem;
  content: "";
  background: #ffffff;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  filter: drop-shadow(0 0.45rem 0.9rem rgba(0, 0, 0, 0.38));
}

.gallery-tile:focus-visible {
  outline: 3px solid rgba(241, 190, 79, 0.82);
  outline-offset: 4px;
}

.gallery-tile span {
  position: relative;
  z-index: 2;
  font-size: 1.2rem;
  font-weight: 700;
}

.tile-2 {
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.54)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 2px, transparent 2px 4rem),
    linear-gradient(135deg, var(--orange), var(--maroon));
}

.tile-3 {
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.58)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 2px, transparent 2px 4rem),
    linear-gradient(135deg, #1c7c55, var(--green-deep));
}

.tile-4 {
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.58)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 2px, transparent 2px 4rem),
    linear-gradient(135deg, var(--maroon), #151518);
}

.tile-5 {
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.52)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0 2px, transparent 2px 4rem),
    linear-gradient(135deg, var(--gold), var(--green));
}

.tile-6 {
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.58)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 2px, transparent 2px 4rem),
    linear-gradient(135deg, #0f5f37, #101b44);
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.gallery-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(241, 190, 79, 0.16), transparent 28rem),
    rgba(4, 9, 7, 0.88);
  cursor: pointer;
}

.gallery-modal-panel {
  position: relative;
  z-index: 1;
  width: min(96vw, 82rem);
  display: grid;
  place-items: center;
}

.gallery-modal figure {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.gallery-modal img,
.gallery-modal video {
  max-width: 100%;
  max-height: min(76vh, 52rem);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #050505;
  box-shadow: 0 1.6rem 4rem rgba(0, 0, 0, 0.44);
  object-fit: contain;
}

.gallery-modal figcaption {
  color: #ffffff;
  font-weight: 800;
  text-align: center;
  text-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.56);
}

.gallery-modal figcaption:empty {
  display: none;
}

.gallery-modal-close,
.gallery-modal-nav {
  position: absolute;
  z-index: 2;
  min-height: 2.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(141, 38, 43, 0.82);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, background 180ms ease;
}

.gallery-modal-close:hover,
.gallery-modal-nav:hover {
  transform: translateY(-0.08rem);
  background: var(--green);
}

.gallery-modal-close:focus-visible,
.gallery-modal-nav:focus-visible {
  outline: 3px solid rgba(241, 190, 79, 0.8);
  outline-offset: 3px;
}

.gallery-modal-close {
  top: -3.3rem;
  right: 0;
  padding: 0.6rem 1rem;
}

.gallery-modal-nav {
  top: 50%;
  width: clamp(3.35rem, 6vw, 4.8rem);
  transform: translateY(-50%);
}

.gallery-modal-nav:hover {
  transform: translateY(calc(-50% - 0.08rem));
}

.gallery-modal-prev {
  left: clamp(-0.5rem, -2vw, -2rem);
}

.gallery-modal-next {
  right: clamp(-0.5rem, -2vw, -2rem);
}

body.modal-open {
  overflow: hidden;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(0.75rem, 2vw, 1.5rem);
  padding: clamp(1.5rem, 4vw, 2.6rem);
  border-radius: 8px;
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 18%, rgba(241, 190, 79, 0.22), transparent 16rem),
    linear-gradient(135deg, #111113, #07361f);
  box-shadow: var(--shadow-soft);
}

.cta-band h2 {
  max-width: 16ch;
  margin-bottom: 0;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
}

.page-hero {
  padding: clamp(4.5rem, 9vw, 7rem) clamp(1rem, 4vw, 3rem);
  text-align: center;
  background:
    radial-gradient(circle at 50% 0, rgba(15, 95, 55, 0.13), transparent 22rem),
    linear-gradient(180deg, #ffffff, var(--page));
}

.page-hero h1 {
  width: min(880px, 100%);
  max-width: 18ch;
  margin: 0 auto;
  font-size: clamp(2.8rem, 6.2vw, 5.2rem);
  font-weight: 700;
  line-height: 1;
}

.about-hero {
  position: relative;
  min-height: clamp(26rem, 46vw, 38rem);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.28) 46%, rgba(0, 0, 0, 0.62)),
    url("assets/about-rugby-scrum-hero.png") center center / cover no-repeat;
}

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

.about-hero h1 {
  color: #ffffff;
  text-shadow: 0 0.8rem 2.2rem rgba(0, 0, 0, 0.48);
}

.teams-hero {
  position: relative;
  min-height: clamp(26rem, 46vw, 38rem);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.24) 46%, rgba(0, 0, 0, 0.62)),
    url("assets/teams-rugby-hero.png") center center / cover no-repeat;
}

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

.teams-hero h1 {
  color: #ffffff;
  text-shadow: 0 0.8rem 2.2rem rgba(0, 0, 0, 0.5);
}

.contact-hero {
  position: relative;
  min-height: clamp(26rem, 46vw, 38rem);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.26) 46%, rgba(0, 0, 0, 0.66)),
    url("assets/contact-rugby-hero.png") center center / cover no-repeat;
}

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

.contact-hero h1 {
  color: #ffffff;
  text-shadow: 0 0.8rem 2.2rem rgba(0, 0, 0, 0.52);
}

.gallery-hero {
  position: relative;
  min-height: clamp(26rem, 46vw, 38rem);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.22) 46%, rgba(0, 0, 0, 0.68)),
    url("assets/gallery-rugby-hero.png") center center / cover no-repeat;
}

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

.gallery-hero h1 {
  color: #ffffff;
  text-shadow: 0 0.8rem 2.2rem rgba(0, 0, 0, 0.52);
}

.section.gallery-preview {
  width: 100%;
  max-width: none;
  color: #ffffff;
  padding: clamp(4rem, 8vw, 7rem) 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(241, 190, 79, 0.2), transparent 18rem),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, #07361f 0%, #0f5f37 52%, #042516 100%);
  background-size: auto, 4.5rem 4.5rem, 4.5rem 4.5rem, auto;
}

.gallery-preview .section-heading,
.gallery-preview .gallery-grid {
  width: min(1180px, calc(100% - 2rem));
  margin-right: auto;
  margin-left: auto;
}

.gallery-preview .eyebrow {
  color: var(--gold);
}

.gallery-preview .text-link {
  color: #ffffff;
}

.gallery-preview .gallery-tile {
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.18);
}

.gallery-preview .tile-1 {
  grid-row: span 2;
}

.gallery-preview .tile-4 {
  grid-column: span 2;
}

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

.values-grid article,
.contact-card,
.contact-form {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

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

.stats-logo {
  grid-column: 1 / -1;
  width: min(18rem, 100%);
  justify-self: center;
  margin-bottom: 0.35rem;
  border: 1px solid rgba(15, 95, 55, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.stats-panel div {
  display: grid;
  gap: 0.35rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.stats-panel strong {
  color: var(--green);
  font-size: 2.4rem;
  line-height: 1;
}

.stats-panel span {
  color: var(--muted);
}

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

.team-list .team-card {
  width: auto;
}

.teams-page {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.team-category {
  display: grid;
  gap: 1.25rem;
}

.team-category-heading {
  display: grid;
  gap: 0.35rem;
}

.team-category-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.team-group {
  display: grid;
  gap: 1rem;
}

.team-group h3 {
  color: var(--green);
}

.teams-page .team-card {
  min-height: 14rem;
}

.team-profile-card {
  position: relative;
  align-content: stretch;
  overflow: hidden;
  padding: 1.15rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.98)),
    radial-gradient(circle at 86% 12%, rgba(241, 190, 79, 0.28), transparent 9rem),
    linear-gradient(135deg, rgba(15, 95, 55, 0.12), rgba(141, 38, 43, 0.1));
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.team-profile-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 0.28rem;
  content: "";
  background: linear-gradient(90deg, var(--green), var(--gold), var(--maroon));
}

.team-profile-card:hover {
  border-color: rgba(15, 95, 55, 0.28);
  box-shadow: 0 1.2rem 3.2rem rgba(15, 95, 55, 0.13);
  transform: translateY(-0.25rem);
}

.team-card-top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.team-card-top > div:last-child {
  min-width: 0;
}

.team-logo {
  position: relative;
  width: clamp(4.8rem, 6vw, 5.5rem);
  height: clamp(4.8rem, 6vw, 5.5rem);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: #ffffff;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.32), transparent 1.25rem),
    linear-gradient(145deg, var(--green), var(--maroon));
  box-shadow: 0 0.8rem 1.6rem rgba(15, 95, 55, 0.18);
  font-size: 1.12rem;
  font-weight: 800;
  animation: team-logo-flip 5.5s ease-in-out infinite;
}

.team-logo::before {
  position: absolute;
  inset: 0.7rem;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  content: "";
}

.team-logo.team-logo-image::before {
  display: none;
}

.team-logo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-group-label {
  margin: 0 0 0.25rem;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.team-name {
  display: block;
  color: var(--ink);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.team-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-top: auto;
}

.team-stats div {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem;
  border: 1px solid rgba(15, 95, 55, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.team-stats b {
  color: var(--maroon);
  font-size: 1.25rem;
  line-height: 1;
}

.team-stats small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.team-status-card {
  border-color: rgba(141, 38, 43, 0.16);
  background: linear-gradient(135deg, #ffffff, #fff8ef);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 0.75fr) minmax(0, 1.25fr);
  align-items: start;
  gap: 1rem;
}

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

.contact-list li {
  display: grid;
  gap: 0.25rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.contact-list span {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-list a,
.contact-list strong {
  overflow-wrap: anywhere;
  font-weight: 700;
}

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

.contact-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--ink);
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.78rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.site-footer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) minmax(12rem, 0.72fr) minmax(16rem, 1fr);
  align-items: flex-end;
  gap: clamp(1.5rem, 4vw, 3rem);
  min-height: max(22rem, 56.2vw);
  overflow: hidden;
  margin-top: clamp(-2rem, -2.5vw, -0.75rem);
  padding: clamp(7rem, 24vw, 28rem) clamp(1rem, 4vw, 3rem) 1.4rem;
  color: rgba(255, 255, 255, 0.82);
  background:
    linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.95) 20%, rgba(255, 255, 255, 0.68) 36%, rgba(255, 255, 255, 0.12) 58%, rgba(0, 0, 0, 0.74) 100%),
    url("assets/footer-rugby-ground.jpg") center bottom / 100% auto no-repeat,
    #06100d;
}

.site-footer::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.28), transparent 44%, rgba(0, 0, 0, 0.24));
  pointer-events: none;
}

.site-footer::after {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 0;
  height: clamp(12rem, 30vw, 24rem);
  content: "";
  background:
    linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.94) 36%, rgba(255, 255, 255, 0.48) 68%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.28), transparent 44%, rgba(0, 0, 0, 0.24));
  pointer-events: none;
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

.footer-brand,
.footer-rights,
.footer-contact {
  display: grid;
  gap: 0.65rem;
}

.footer-brand img {
  width: min(11rem, 70vw);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
}

.footer-brand p,
.footer-rights p,
.footer-location {
  margin: 0;
  max-width: 26rem;
  line-height: 1.55;
}

.footer-rights {
  justify-items: center;
  align-self: end;
  text-align: center;
}

.footer-rights strong {
  color: #ffffff;
  font-size: 1.08rem;
}

.footer-contact {
  justify-items: end;
  align-self: end;
  text-align: left;
  font-style: normal;
}

.footer-contact-title {
  justify-self: end;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.site-footer a {
  color: #ffffff;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.footer-contact-link,
.footer-location {
  width: min(100%, 20rem);
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
}

.footer-contact-link svg,
.footer-location svg {
  width: 2.2rem;
  height: 2.2rem;
  padding: 0.52rem;
  border: 1px solid rgba(241, 190, 79, 0.35);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.1);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.footer-contact-link span,
.footer-location span {
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.site-credit {
  min-height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  border-top: 1px solid rgba(29, 29, 31, 0.08);
  color: rgba(29, 29, 31, 0.72);
  background: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
}

.site-credit a {
  color: inherit;
}

.site-credit a:hover {
  color: var(--green);
}

@keyframes slide-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes slide-right {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes countdown-shine {
  0%,
  42% {
    transform: translateX(-120%);
  }

  72%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes countdown-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-0.22rem);
  }
}

@keyframes countdown-tick {
  0% {
    transform: scale(1);
  }

  42% {
    transform: scale(1.12);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes team-logo-flip {
  0%,
  100% {
    transform: rotateY(0deg);
  }

  45%,
  55% {
    transform: rotateY(180deg);
  }
}

@media (max-width: 900px) {
  .landing-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .landing-copy {
    padding: clamp(1.6rem, 6vw, 3rem) clamp(1rem, 5vw, 2.5rem);
  }

  .landing-copy::after {
    display: none;
  }

  .landing-copy h1 {
    max-width: 13ch;
    font-size: clamp(2.7rem, 11vw, 5rem);
  }

  .landing-banner {
    min-height: 0;
  }

  .landing-banner .hero-slider {
    height: clamp(16rem, 47vw, 26rem);
    min-height: 0;
  }

  .hero-slider {
    height: clamp(16rem, 47vw, 26rem);
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    background:
      radial-gradient(circle at 50% 30%, rgba(241, 190, 79, 0.18), transparent 22rem),
      linear-gradient(135deg, #06100d, #0b3b24 54%, #030504);
  }

  .slides {
    min-height: 0;
  }

  .hero-image {
    padding: clamp(0.35rem, 1.4vw, 0.8rem);
    object-fit: contain;
  }

  .slider-controls {
    bottom: 0.8rem;
  }

  .ad-strip,
  .split-section,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .values-grid,
  .team-list,
  .gallery-page-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-page-grid .photo-wide {
    grid-column: span 2;
  }

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

  .gallery-preview .tile-1,
  .gallery-preview .tile-4 {
    grid-column: auto;
    grid-row: auto;
  }

  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-rights {
    justify-items: start;
    text-align: left;
  }

  .footer-contact {
    justify-items: start;
    text-align: left;
  }

  .footer-contact-title {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, auto) auto;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.62rem 0.86rem;
  }

  .brand {
    width: 6.7rem;
  }

  .nav-toggle {
    display: grid;
  }

  .nav-toggle:focus-visible {
    outline: 3px solid rgba(241, 190, 79, 0.8);
    outline-offset: 3px;
  }

  .site-header.nav-open .nav-toggle {
    background:
      linear-gradient(180deg, rgba(241, 190, 79, 0.36), rgba(241, 190, 79, 0.16)),
      rgba(255, 255, 255, 0.1);
  }

  .site-header.nav-open .nav-toggle span:nth-child(1) {
    top: 1.44rem;
    transform: rotate(45deg);
  }

  .site-header.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0.25);
  }

  .site-header.nav-open .nav-toggle span:nth-child(3) {
    top: 1.44rem;
    transform: rotate(-45deg);
  }

  .main-nav {
    grid-column: 1 / -1;
    width: 100%;
    max-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.42rem;
    overflow: hidden;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 12px;
    background:
      radial-gradient(circle at 18% 0%, rgba(241, 190, 79, 0.16), transparent 12rem),
      rgba(77, 11, 15, 0.96);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.24);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.35rem);
    visibility: hidden;
    transition:
      max-height 260ms ease,
      opacity 220ms ease,
      transform 260ms ease,
      padding 260ms ease,
      border-color 260ms ease,
      visibility 0ms linear 260ms;
  }

  .site-header.nav-open .main-nav {
    max-height: 24rem;
    padding: 0.58rem;
    border-color: rgba(255, 255, 255, 0.14);
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
    transition:
      max-height 300ms ease,
      opacity 220ms ease,
      transform 300ms ease,
      padding 300ms ease,
      border-color 300ms ease,
      visibility 0ms;
  }

  .main-nav a {
    min-height: 2.82rem;
    justify-content: center;
    padding: 0.68rem 0.9rem;
    font-size: 0.96rem;
    transform: none;
  }

  .main-nav a::after {
    right: 36%;
    left: 36%;
    bottom: 0.42rem;
  }

  h1 {
    font-size: clamp(2.75rem, 14vw, 4.1rem);
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3.1rem);
  }

  .landing-copy {
    gap: 0.78rem;
    padding: 1.5rem 0.85rem 1.65rem;
  }

  .landing-copy h1 {
    font-size: clamp(2.1rem, 11vw, 3.35rem);
  }

  .landing-copy-text {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .landing-countdown-title {
    font-size: 1rem;
  }

  .countdown.landing-countdown {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.1rem;
    width: 100%;
    padding: 0.34rem;
  }

  .countdown.landing-countdown div {
    min-height: 3.15rem;
    gap: 0.16rem;
    padding: 0.38rem 0.1rem;
    border-radius: 6px;
  }

  .countdown.landing-countdown strong {
    font-size: clamp(1.18rem, 7vw, 1.85rem);
  }

  .countdown.landing-countdown span {
    font-size: 0.55rem;
    white-space: nowrap;
  }

  .landing-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-banner .hero-slider {
    height: clamp(9rem, 47vw, 16rem);
    min-height: 0;
  }

  .hero-slider {
    height: clamp(9rem, 47vw, 16rem);
    min-height: 0;
  }

  .slides {
    min-height: 0;
  }

  .slider-controls {
    bottom: 0.55rem;
    gap: 0.45rem;
  }

  .slider-dots {
    padding: 0.28rem;
    background: rgba(0, 0, 0, 0.38);
  }

  .slider-arrow {
    width: 2rem;
    height: 2rem;
    background: rgba(0, 0, 0, 0.38);
  }

  .single-line-title {
    font-size: clamp(1.05rem, 4.8vw, 1.8rem);
  }

  .countdown,
  .values-grid,
  .team-list,
  .gallery-page-grid,
  .stats-panel {
    grid-template-columns: 1fr;
  }

  .gallery-page-grid .photo-wide,
  .gallery-page-grid .photo-tall {
    grid-column: auto;
    grid-row: auto;
    min-height: 18rem;
  }

  .gallery-modal {
    padding: 4.6rem 0.75rem 4.4rem;
  }

  .gallery-modal img,
  .gallery-modal video {
    max-height: 64vh;
  }

  .gallery-modal-close {
    top: -3.5rem;
    right: 0;
  }

  .gallery-modal-nav {
    top: auto;
    bottom: -3.6rem;
    width: 5.6rem;
    transform: none;
  }

  .gallery-modal-nav:hover {
    transform: translateY(-0.08rem);
  }

  .gallery-modal-prev {
    left: 0;
  }

  .gallery-modal-next {
    right: 0;
  }

  .countdown div {
    min-height: 6.5rem;
  }

  .ad-strip,
  .section,
  .cta-band {
    width: min(1180px, calc(100% - 1rem));
  }

  .ad-strip {
    padding-top: 1.75rem;
  }

  .ad-strip article {
    min-height: auto;
    padding: 1rem;
  }

  .section {
    padding: 2.8rem 0;
  }

  .home-video-section {
    padding-top: 2.1rem;
    padding-bottom: 2.6rem;
  }

  .home-video-frame {
    min-height: clamp(15rem, 68vw, 24rem);
  }

  .feature-image {
    min-height: 17rem;
  }

  .sponsor-card {
    width: 12.5rem;
    height: 5.4rem;
  }

  .committee-card {
    width: 12.5rem;
  }

  .site-footer {
    min-height: 28rem;
    padding: 10rem 1rem 1.2rem;
  }

  .footer-brand,
  .footer-rights,
  .footer-contact {
    justify-items: center;
    text-align: center;
  }

  .footer-contact-title {
    justify-self: center;
  }

  .footer-contact-link,
  .footer-location {
    text-align: left;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
