/* =========================================================
   GURFC — Georgetown University Rugby Football Club
   ========================================================= */

:root {
  --navy: #041e42;
  --navy-800: #072a54;
  --navy-900: #02142c;
  --gold: #b79a5b;
  --gold-soft: #ded0ae;
  --ink: #14203a;
  --muted: #5a6577;
  --line: #e4e8ee;
  --line-strong: #cfd6e0;
  --surface: #ffffff;
  --surface-2: #f5f7fa;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(4, 30, 66, 0.05);
  --shadow-md: 0 14px 34px rgba(4, 30, 66, 0.10);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --pad: clamp(20px, 5vw, 64px);
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: "Oswald", "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.1;
  margin: 0;
  text-transform: uppercase;
}

h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell { width: 100%; max-width: var(--max); margin: 0 auto; }

/* ---------- reveal animation ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- header / nav ---------- */

.site-header { position: relative; }

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--pad);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease), padding 0.35s var(--ease);
}

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--line);
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand { display: flex; align-items: center; gap: 11px; }

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface);
}

.brand span { display: flex; flex-direction: column; line-height: 1.15; }

.brand strong {
  font-family: "Oswald", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff;
  transition: color 0.35s var(--ease);
}

.brand small {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
  transition: color 0.35s var(--ease);
}

.nav.is-scrolled .brand strong { color: var(--navy); }
.nav.is-scrolled .brand small { color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-links a {
  position: relative;
  padding: 7px 11px;
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.86);
  border-radius: 6px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 3px;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after { transform: scaleX(1); }
.nav-links a:hover { color: #fff; }

.nav.is-scrolled .nav-links a { color: var(--muted); }
.nav.is-scrolled .nav-links a:hover { color: var(--navy); }

.nav-links a.nav-cta {
  margin-left: 8px;
  padding: 8px 16px;
  background: var(--gold);
  color: var(--navy-900);
  font-weight: 600;
  border-radius: 999px;
}
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover { background: var(--gold-soft); color: var(--navy-900); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 38px;
  padding: 9px 8px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.3s var(--ease);
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.25s var(--ease),
    background 0.3s var(--ease);
}

.nav.is-scrolled .nav-toggle { border-color: var(--line-strong); }
.nav.is-scrolled .nav-toggle span { background: var(--navy); }

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  padding: 140px var(--pad) clamp(48px, 7vw, 84px);
  overflow: hidden;
  background: var(--navy-900);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.1s var(--ease), transform 6s var(--ease);
}

.hero-media.is-ready video,
.hero-media.is-ready img { opacity: 1; transform: scale(1); }

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(2, 20, 44, 0.94) 0%, rgba(2, 20, 44, 0.62) 42%, rgba(2, 20, 44, 0.36) 100%),
    linear-gradient(to right, rgba(2, 20, 44, 0.6) 0%, rgba(2, 20, 44, 0) 62%);
}

.hero-content { width: 100%; max-width: var(--max); margin: 0 auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--gold);
}

.hero h1 {
  max-width: 15ch;
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  color: #fff;
  text-wrap: balance;
}

.hero-tagline {
  max-width: 46ch;
  margin: 20px 0 0;
  font-size: clamp(1rem, 1.5vw, 1.13rem);
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-meta div { display: flex; flex-direction: column; gap: 2px; }

.hero-meta span {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.hero-meta strong {
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2.6s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(183, 154, 91, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(183, 154, 91, 0); }
}

/* ---------- buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.87rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
    color 0.25s var(--ease), transform 0.25s var(--ease);
}

.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }

.button-primary { background: var(--gold); color: var(--navy-900); }
.button-primary:hover { background: var(--gold-soft); }

.button-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.button-secondary:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.button-navy { background: var(--navy); color: #fff; }
.button-navy:hover { background: var(--navy-800); }

.button-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--navy);
}
.button-ghost:hover { border-color: var(--navy); background: var(--surface-2); }

/* ---------- sections ---------- */

.section {
  padding: clamp(64px, 8vw, 108px) var(--pad);
}

.section > .shell { width: 100%; }
.section-alt { background: var(--surface-2); }

.section-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-kicker::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--gold);
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section-heading p { color: var(--muted); font-size: 0.9rem; }
.lede { max-width: 62ch; color: var(--muted); font-size: 1.02rem; }

/* ---------- quickbar ---------- */

.quickbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}

.quickbar div {
  padding: 26px clamp(16px, 3vw, 32px);
  border-left: 1px solid var(--line);
}
.quickbar div:first-child { border-left: 0; }

.quickbar span {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}

.quickbar strong {
  font-family: "Oswald", sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--navy);
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.about-grid p { color: var(--muted); }

.figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
}

.figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.figure:hover img { transform: scale(1.035); }

.figure figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 40px 22px 18px;
  background: linear-gradient(to top, rgba(2, 20, 44, 0.88), transparent);
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 32px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat-row div { padding: 18px 20px; background: var(--surface); }
.section-alt .stat-row div { background: var(--surface-2); }

.stat-row strong {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
}

.stat-row span {
  display: block;
  margin-top: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- join ---------- */

.join {
  position: relative;
  padding: clamp(64px, 8vw, 108px) var(--pad);
  background: var(--navy-900);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.join::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/step-defender.jpg") center 30% / cover no-repeat;
  opacity: 0.28;
}

.join::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, rgba(2, 20, 44, 0.93) 30%, rgba(2, 20, 44, 0.55) 100%);
}

.join-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}

.join h2 { color: #fff; }
.join p { color: rgba(255, 255, 255, 0.8); }

.join-card {
  padding: 30px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.check-list { list-style: none; margin: 0 0 24px; padding: 0; }

.check-list li {
  position: relative;
  padding: 0 0 12px 30px;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.86);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

.join-card .button { width: 100%; }

.legal-list { list-style: none; margin: 0; padding: 0; }

.legal-list li {
  position: relative;
  padding: 0 0 14px 26px;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--ink);
}

.legal-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

.legal-list a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.join-card .button + .button { margin-top: 12px; }

.join-note {
  margin-top: 14px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

/* ---------- filters + tables ---------- */

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 300px));
  gap: 14px;
  margin-bottom: 22px;
}

.filters label { display: flex; flex-direction: column; gap: 6px; }

.filters span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

input, select {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

input:hover, select:hover { border-color: var(--muted); }

input:focus, select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(4, 30, 66, 0.08);
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}

table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }

th, td { padding: 14px 18px; text-align: left; }

th {
  font-family: "Oswald", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

td { border-bottom: 1px solid var(--line); color: var(--ink); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background 0.2s var(--ease); }
tbody tr:hover { background: var(--surface-2); }

.empty-row td { padding: 34px 18px; text-align: center; color: var(--muted); }

/* ---------- headshot circles ---------- */

.avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--navy);
  user-select: none;
}

.avatar-initials {
  font-family: "Oswald", sans-serif;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.92);
}

/* Sits on top of the initials; JS removes it if the file 404s. */
.avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-lg { width: 92px; height: 92px; }
.avatar-lg .avatar-initials { font-size: 1.5rem; letter-spacing: 0.04em; }

.player { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.player-name { font-weight: 500; }

.role-badge {
  padding: 2px 9px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold-soft);
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- coaching staff ---------- */

.coach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}

.coach-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 26px 18px 24px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.coach-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.coach-card .avatar-lg { margin-bottom: 14px; }

.coach-name {
  font-size: 1rem;
  letter-spacing: 0.03em;
  color: var(--navy);
}

.coach-role {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.coach-bio {
  margin: 8px 0 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--muted);
}

/* An unfilled slot reads as deliberately empty rather than broken. */
.coach-card.is-empty {
  border-style: dashed;
  background: transparent;
}

.coach-card.is-empty .avatar { background: var(--gray-2, #e7e9ec); }
.coach-card.is-empty .avatar-initials { color: var(--muted); }
.coach-card.is-empty .coach-name { color: var(--muted); }
.coach-card.is-empty .coach-role { color: var(--muted); opacity: 0.75; }
.coach-card.is-empty:hover { transform: none; box-shadow: none; border-color: var(--line); }

/* ---------- schedule ---------- */

.format-tabs {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  margin-bottom: 26px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.section-alt .format-tabs { background: var(--surface); }

.format-tab {
  padding: 8px 24px;
  font-family: "Oswald", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.format-tab:hover { color: var(--navy); }
.format-tab.is-active { background: var(--navy); color: #fff; }

.format-panel { transition: opacity 0.3s var(--ease); }
.format-panel.is-swapping { opacity: 0; }

.format-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 26px;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.format-summary .label,
.result-card span {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.format-summary p { margin: 8px 0 0; color: var(--muted); font-size: 0.93rem; max-width: 58ch; }

.result-card {
  padding: 16px 22px;
  background: var(--navy);
  border-radius: var(--radius);
  text-align: right;
  min-width: 190px;
}

.result-card span { color: rgba(255, 255, 255, 0.6); }

.result-card strong {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
}

.result-card small { display: block; margin-top: 4px; font-size: 0.76rem; color: rgba(255, 255, 255, 0.65); }

.next-match {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 24px 26px;
  margin-bottom: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-lg);
}

.next-match h3 { margin: 10px 0 4px; color: var(--navy); }
.next-match p { color: var(--muted); font-size: 0.9rem; }

.pill {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  white-space: nowrap;
}

.pill.upcoming { background: #eef2f8; color: var(--navy); }
.pill.final { background: #eaf3ec; color: #1f6b39; }
.pill.canceled { background: #f7eaea; color: #96323b; }
.pill.win { background: #eaf3ec; color: #1f6b39; }
.pill.loss { background: #f7eaea; color: #96323b; }
.pill.draw { background: #f4f1e8; color: #7a6a2e; }

.pill.side { border: 1px solid transparent; }
.pill.side.home { background: var(--navy); color: #fff; }
.pill.side.away { background: transparent; border-color: var(--line-strong); color: var(--muted); }

.next-match .pill.side { justify-self: end; }

.schedule-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 40px 30px;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
}

.schedule-empty p { color: var(--muted); max-width: 52ch; }

/* ---------- gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(155px, 15vw, 215px);
  gap: 14px;
}

/* The lead image runs as a 2x2 tile so the six photos tile the grid exactly. */
.gallery figure:first-child { grid-column: span 2; grid-row: span 2; }

.gallery figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.5s var(--ease);
}

.gallery figure:hover img { transform: scale(1.05); }

.gallery figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 20, 44, 0.4), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.gallery figure:hover::after { opacity: 1; }

/* ---------- instagram ---------- */

.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.ig-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.ig-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.ig-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--surface-2);
}

.ig-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.ig-card:hover .ig-media img { transform: scale(1.04); }

.ig-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(2, 20, 44, 0.16);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.ig-card:hover .ig-media::after { opacity: 1; }

.ig-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
}

.ig-date {
  font-family: "Oswald", sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

.ig-caption {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------- alumni ---------- */

.alumni-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}

.alumni-grid p { color: var(--muted); }

.spotlight {
  padding: 30px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.spotlight-photo {
  display: block;
  width: calc(100% + 60px);
  max-width: calc(100% + 60px);
  margin: -30px -30px 20px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.spotlight span {
  display: block;
  margin-bottom: 12px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.spotlight h3 { color: #fff; margin-bottom: 12px; }
.spotlight p { color: rgba(255, 255, 255, 0.75); font-size: 0.94rem; }

/* ---------- shop ---------- */

.shop-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(32px, 4vw, 48px);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.shop-banner p { color: var(--muted); max-width: 48ch; }

/* ---------- footer ---------- */

.footer {
  padding: clamp(48px, 6vw, 72px) var(--pad) 32px;
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  max-width: var(--max);
  margin: 0 auto;
}

.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

.footer-brand strong {
  font-family: "Oswald", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: #fff;
}

.footer p { font-size: 0.88rem; max-width: 34ch; }

.footer h4 {
  margin: 0 0 14px;
  font-family: "Oswald", sans-serif;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.footer nav { display: grid; gap: 9px; }

.footer nav a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.22s var(--ease);
  width: fit-content;
}

.footer nav a:hover { color: var(--gold); }

.footer-base {
  max-width: var(--max);
  margin: 40px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.42);
}

.footer-base a { text-decoration: underline; text-underline-offset: 2px; transition: color 0.22s var(--ease); }
.footer-base a:hover { color: var(--gold); }

/* ---------- responsive ---------- */

@media (max-width: 1060px) {
  .about-grid,
  .join-grid,
  .alumni-grid { grid-template-columns: 1fr; }

  .ig-grid { grid-template-columns: repeat(2, 1fr); }
  .quickbar { grid-template-columns: repeat(2, 1fr); }
  .quickbar div:nth-child(3) { border-left: 0; }
  .quickbar div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 175px; }
  .gallery figure:first-child { grid-column: auto; grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 72px; }

  .nav {
    background: rgba(2, 20, 44, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--pad) 18px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease),
      visibility 0.28s var(--ease);
  }

  .nav-links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 12px 4px; color: var(--navy); border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-links a.nav-cta {
    margin: 12px 0 0;
    justify-content: center;
    display: flex;
    border-bottom: 0;
  }

  .hero { min-height: 88vh; padding-top: 110px; }
  .hero-meta { gap: 14px 22px; }

  .format-summary,
  .next-match { grid-template-columns: 1fr; }
  .result-card { text-align: left; }

  .filters { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 230px; }
  .ig-grid { grid-template-columns: 1fr; }
  .coach-grid { grid-template-columns: repeat(2, 1fr); }

  .stat-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }

  table { display: block; }
  thead { display: none; }
  tbody, tr, td { display: block; width: 100%; }

  tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  tbody tr:last-child { border-bottom: 0; }

  td {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 5px 0;
    border: 0;
    font-size: 0.88rem;
  }

  td .player { justify-content: flex-end; }

  td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero-media video, .hero-media img { opacity: 1 !important; transform: none !important; }
  .button:hover, .ig-card:hover, .figure:hover img, .ig-card:hover .ig-media img,
  .coach-card:hover { transform: none; }
}
