/* ==========================================================================
   National League Official Academies
   Palette and type are defined once here. Change these values to reskin
   the whole site. Colours are sampled from the league crest and banner
   artwork in _source-assets/ (navy, royal blue, flag red, chrome silver).
   Contrast ratios are computed against WCAG 2.2 relative luminance; AA
   requires 4.5:1 for body text and 3:1 for large text / UI components.
   ========================================================================== */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700; /* variable font: covers 400/500/700 in one file */
  font-display: swap;
  src: url("../assets/fonts/dm-sans-variable.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/barlow-condensed-700.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../assets/fonts/barlow-condensed-800.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/barlow-condensed-700-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url("../assets/fonts/barlow-condensed-800-italic.woff2") format("woff2");
}

:root {
  --color-primary: #0b1f4b;       /* deep navy — white text on this: 16.0:1 (AAA) */
  --color-primary-deep: #06132f;  /* darkest navy — white text on this: 18.4:1 (AAA) */
  --color-royal: #1e4fd8;         /* royal blue — white text on this: 6.6:1 (AA) */
  --color-accent: #c8102e;        /* flag red — white text on this: 5.9:1 (AA). Never used as text/rule on navy (2.7:1, fails) */
  --color-silver: #d9dee7;        /* chrome silver — on primary navy: 11.9:1 (AAA) */
  --color-white: #ffffff;         /* on primary navy: 16.0:1 / on royal blue: 6.6:1 */
  --color-wame: #8bd10f;          /* Wame lime — brand mark only, never UI/text (≈1.9:1 against white or navy) */

  --color-bg: #ffffff;
  --color-bg-warm: #f3f5f9;
  --color-card: #f5f7fb;
  --color-ink: #10192f;
  --color-ink-soft: #4d5873;
  --color-line: #dde2ec;

  --font-heading: "Barlow Condensed", "Arial Narrow", sans-serif; /* the lettering of the league's own banner */
  --font-body: "DM Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --wrap: 1180px;
  --header-h: 76px;
  --marquee-h: 68px;
  --radius: 6px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --kick: 1s;
  --icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --icon-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 4v16M4 12h16'/%3E%3C/svg%3E");
  --shadow: 0 22px 50px -24px rgba(6, 19, 47, 0.45);
  --marquee-speed: 34s;
  --marquee-row-2: none; /* set to "flex" to enable the optional reverse second row on wide screens */
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  interpolate-size: allow-keywords;
  scrollbar-color: var(--color-primary) var(--color-bg-warm);
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--color-primary);
  color: #fff;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a {
  color: var(--color-royal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0 0 0.5em;
  color: var(--color-primary);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 2rem + 3.6vw, 4.75rem);
  font-style: italic;
  line-height: 0.96;
}

h2 {
  font-size: clamp(2.25rem, 1.7rem + 2.4vw, 3.5rem);
  font-style: italic;
  line-height: 0.98;
}

h3 {
  font-size: 1.55rem;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

p {
  margin: 0 0 1.1rem;
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 3px solid var(--color-royal);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Shared pieces
   -------------------------------------------------------------------------- */

.lead {
  font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.2rem);
  line-height: 1.65;
  max-width: 60ch;
}

/* ---- buttons, with the rolling-ball hover/kick interaction ---- */

.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  border-radius: 4px;
  border: 2px solid var(--color-primary);
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition: translate 0.2s var(--ease-out), color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.btn:active {
  translate: 0 1px;
}

.btn:hover,
.btn:focus-visible {
  translate: 0 -2px;
  border-color: var(--color-accent);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  color: #fff;
  background: var(--color-primary);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.3rem;
}

.btn[aria-disabled="true"] {
  cursor: not-allowed;
  background: var(--color-line);
  border-color: var(--color-line);
  color: var(--color-ink-soft);
}

/* ---- soccer-ball kick: click animation ----
   .btn-label fades out; a tinted band fills the button left-to-right
   while the ball rolls from off the left edge to past the right edge,
   spinning, with a small hop halfway. Runs var(--kick), then the link is
   followed (or, for a button with no href, "GOAL!" shows briefly).
   The fill tint flips light/dark depending on whether the button itself
   is dark (default navy) or light (hero/band/page-hero white buttons). */
.ball-btn__label {
  position: relative;
  z-index: 2;
  transition: opacity 150ms ease;
}

.ball-btn__track {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  overflow: hidden;
}

.ball-btn__fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: rgba(255, 255, 255, 0.18);
}

.hero .btn .ball-btn__fill,
.band .btn .ball-btn__fill,
.page-hero .btn .ball-btn__fill {
  background: rgba(0, 0, 0, 0.16);
}

.ball-btn__ball {
  position: absolute;
  top: 50%;
  left: -30px;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  opacity: 0;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

.ball-btn__ball svg {
  width: 100%;
  height: 100%;
  display: block;
}

.btn.is-running .ball-btn__label {
  opacity: 0;
}

.btn.is-running .ball-btn__fill {
  animation: ball-fill var(--kick) linear forwards;
}

.btn.is-running .ball-btn__ball {
  opacity: 1;
  animation: ball-roll var(--kick) cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.btn.is-running .ball-btn__ball svg {
  animation: ball-spin var(--kick) linear forwards;
}

.btn.is-done .ball-btn__fill {
  width: 100%;
}

@keyframes ball-fill {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

@keyframes ball-roll {
  0% {
    left: -30px;
    transform: translateY(0);
  }
  45% {
    transform: translateY(0);
  }
  55% {
    transform: translateY(-6px);
  }
  65% {
    transform: translateY(0);
  }
  100% {
    left: calc(100% + 8px);
    transform: translateY(0);
  }
}

@keyframes ball-spin {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(900deg);
  }
}

main > section[id] {
  scroll-margin-top: calc(var(--header-h) + 14px);
}

.section {
  padding: clamp(3.75rem, 2.5rem + 5vw, 7rem) 0;
}

.section-alt {
  background: var(--color-bg-warm);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 1.25rem + 2.5vw, 3.25rem);
}

.section-head h2 {
  margin-bottom: 0.3em;
}

/* --------------------------------------------------------------------------
   Brand motif: the flag slashes from the league's banner, plus the round badge
   -------------------------------------------------------------------------- */

.page-hero::before,
.band::before {
  content: "";
  position: absolute;
  top: -10%;
  bottom: -10%;
  right: clamp(-5rem, -4vw, -2rem);
  width: clamp(72px, 15vw, 250px);
  background: linear-gradient(90deg, var(--color-royal) 0 44%, #fff 44% 50%, var(--color-accent) 50% 100%);
  transform: skewX(-20deg);
}

.date-badge {
  width: clamp(76px, 6vw, 84px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: rgba(6, 19, 47, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  font-family: var(--font-heading);
  text-transform: uppercase;
  flex: none;
}

.date-badge-line1 {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.date-badge-line2 {
  font-weight: 800;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.category-chip:hover {
  background: #fff;
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  box-shadow: inset 0 -3px 0 var(--color-accent);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: inset 0 -3px 0 var(--color-accent), 0 10px 30px -18px rgba(6, 19, 47, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--color-primary);
  flex: none;
}

.brand img {
  width: 48px;
  height: 48px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-heading);
  font-weight: 800;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.brand-text strong {
  color: var(--color-accent);
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav ul a {
  position: relative;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--color-primary);
  padding: 0.4rem 0;
}

.site-nav ul a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease-out);
}

.site-nav ul a:hover {
  color: var(--color-royal);
}

.site-nav ul a:hover::after,
.site-nav ul a.is-current::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 0.55rem 1rem;
  font-size: 1rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: none;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--color-bg-warm);
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--color-primary);
}

.lang-switch span {
  display: none;
}

.lang-switch a {
  color: var(--color-ink-soft);
  text-decoration: none;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.7rem;
  border-radius: 3px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.lang-switch a:hover {
  color: var(--color-primary);
}

.lang-switch a[aria-current="true"] {
  background: var(--color-primary);
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-icon {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: background-color 0.2s ease;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.25s ease;
}

.menu-icon::before {
  top: -7px;
}

.menu-icon::after {
  top: 7px;
}

.menu-toggle[aria-expanded="true"] .menu-icon {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-icon::before {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon::after {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--header-h) - var(--marquee-h));
  padding: clamp(1rem, 3.5svh, 3rem) 0;
  background: var(--color-primary);
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: auto 0 0;
  height: 64%;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--color-primary) 36%, rgba(11, 31, 75, 0.86) 68%, rgba(11, 31, 75, 0.62));
}

.hero-content {
  min-width: 0;
}

/* The big slogan is a styled <p>; the real <h1> is .hero-strap above it. */
.hero-content .hero-title {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 800;
  font-size: min(clamp(2.25rem, 1.2rem + 3.9vw, 4.6rem), 8.5svh);
  line-height: 0.93;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0 0 clamp(0.6rem, 1.6svh, 1.1rem);
  color: #fff;
}

.hero-title span {
  display: block;
  animation: wipe-in 0.62s var(--ease-out) both;
}

.hero-title span:nth-child(1) {
  animation-delay: 0.12s;
}

.hero-title span:nth-child(2) {
  animation-delay: 0.23s;
}

.hero-title span:nth-child(3) {
  animation-delay: 0.34s;
}

/* the page's real <h1>: a broadcast-style strap above the slogan */
.hero-content .hero-strap {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 clamp(0.6rem, 1.6svh, 1.1rem);
  padding: 0.35rem 1rem;
  background: var(--color-accent);
  color: #fff;
  font-size: clamp(1.02rem, 0.95rem + 0.5vw, 1.35rem);
  font-style: italic;
  line-height: 1.12;
  letter-spacing: 0.02em;
  transform: skewX(-10deg);
  text-wrap: pretty;
  animation: wipe-in 0.5s var(--ease-out) both;
}

.hero-strap span {
  display: block;
  transform: skewX(10deg);
}

@keyframes wipe-in {
  from {
    clip-path: inset(-10% 100% -10% 0);
    translate: -28px 0;
  }
  to {
    clip-path: inset(-10% -6% -10% 0);
    translate: 0 0;
  }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}

.hero-crest {
  width: min(clamp(220px, 24vw, 320px), 48svh);
  max-width: none; /* a % max-width collapses an auto grid track */
  filter: drop-shadow(0 26px 40px rgba(2, 8, 24, 0.55));
  animation: crest-in 0.8s var(--ease-out) 0.3s both;
}

@keyframes crest-in {
  from {
    opacity: 0;
    scale: 0.92;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

.hero-content .lead {
  color: rgba(255, 255, 255, 0.94);
  margin-bottom: clamp(0.75rem, 2svh, 1.35rem);
  max-width: 64ch;
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.1rem);
  line-height: 1.5;
}

.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 0.6rem 1rem;
  flex-wrap: wrap;
}

.hero .btn-lg {
  padding: 0.75rem 1.4rem;
  font-size: 1.15rem;
}

.hero-content .category-chips {
  justify-content: flex-start;
}

/* On navy hero/band/page-hero backgrounds, a navy-filled button would
   nearly disappear — swap the default fill to white/navy-text so it stays
   a clearly bounded shape (16:1) at rest and on hover. */
.hero .btn,
.band .btn,
.page-hero .btn {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}

/* --------------------------------------------------------------------------
   Logo marquee
   -------------------------------------------------------------------------- */

.marquee-section {
  position: sticky;
  top: var(--header-h);
  z-index: 70;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  height: var(--marquee-h);
  padding-inline: clamp(12px, 3vw, 32px);
  background: var(--color-primary-deep);
  overflow: hidden;
}

.marquee-heading {
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  flex: none;
  margin: 0;
}

.marquee-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.5vw, 1.5rem);
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: marquee-scroll var(--marquee-speed) linear infinite;
}

.marquee-section:hover .marquee-track,
.marquee-section:focus-within .marquee-track,
.marquee-section.is-paused .marquee-track,
.marquee-section.is-offscreen .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.marquee-toggle {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.marquee-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
}

.marquee-toggle svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.marquee-toggle .icon-play,
.marquee-toggle[aria-pressed="true"] .icon-pause {
  display: none;
}

.marquee-toggle[aria-pressed="true"] .icon-play {
  display: block;
}

.marquee-section.is-static .marquee-toggle {
  display: none;
}

.marquee-row-2 {
  display: var(--marquee-row-2);
  margin-top: clamp(0.9rem, 1.5vw, 1.5rem);
}

.marquee-row-2 .marquee-track {
  animation-direction: reverse;
}

.marquee-item {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  min-width: clamp(104px, 10vw, 140px);
  padding: 0 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
}

.marquee-item img {
  max-height: 42px;
  max-width: 104px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.marquee-item .is-text-chip {
  font-family: var(--font-heading);
  font-weight: 800;
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
  line-height: 1.15;
}

.marquee-static-grid {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.marquee-section.is-static {
  position: relative;
  top: auto;
  height: auto;
  flex-wrap: wrap;
  justify-content: center;
  padding-block: 0.75rem;
}

.marquee-section.is-static .marquee-viewport {
  display: none;
}

.marquee-section.is-static .marquee-static-grid {
  display: flex;
}

/* --------------------------------------------------------------------------
   Split sections (text + image)
   -------------------------------------------------------------------------- */

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

.split-reverse .split-media {
  order: 2;
}

.split-media {
  position: relative;
  aspect-ratio: 5 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-primary);
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-media-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.split-media-logo img {
  width: 60%;
  height: auto;
  object-fit: contain;
}

.statement {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.45rem, 1.25rem + 0.8vw, 1.9rem);
  line-height: 1.18;
  color: var(--color-primary);
  margin: 0;
  text-wrap: balance;
}

.statement-ondark {
  color: #fff;
}

/* Home commitment: three flag-coloured slashes, one per part of the slogan.
   The row overhangs both edges so the slanted ends bleed off the page. */
.pillars {
  --slash-overhang: 7vw;
  --wrap-edge: max(clamp(20px, 5vw, 48px), calc((100vw - var(--wrap)) / 2 + 48px));
  padding-top: clamp(3rem, 2rem + 4vw, 5.5rem);
  overflow: hidden;
}

.pillars h2 {
  margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.pillars-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 calc(var(--slash-overhang) * -1);
  padding: 0;
  list-style: none;
}

.pillar {
  display: flex;
  min-height: clamp(300px, 26vw, 400px);
  color: #fff;
  transform: skewX(-12deg);
  background: var(--color-primary);
}

.pillar:nth-child(2) {
  background: var(--color-royal);
}

.pillar:nth-child(3) {
  background: var(--color-accent);
}

.pillar-inner {
  align-self: flex-end;
  padding: clamp(1.75rem, 1.25rem + 2vw, 3rem) clamp(1.75rem, 1rem + 2.5vw, 3.25rem);
  transform: skewX(12deg);
}

.pillar:first-child .pillar-inner {
  padding-left: calc(var(--slash-overhang) + var(--wrap-edge) + 14px); /* offsets the slant so text lines up with the page edge */
}

.pillar:last-child .pillar-inner {
  padding-right: calc(var(--slash-overhang) + clamp(20px, 5vw, 48px));
}

.pillar h3 {
  margin: 0 0 0.6rem;
  color: #fff;
  font-size: clamp(2.5rem, 1.6rem + 2.6vw, 4.25rem);
  font-style: italic;
  line-height: 0.95;
}

.pillar p {
  margin: 0;
  max-width: 34ch;
  font-size: 1.1rem;
  line-height: 1.45;
}

@supports (animation-timeline: view()) {
  .pillar {
    animation: slash-in linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }

  .pillar:nth-child(2) {
    animation-range: entry 10% entry 70%;
  }

  .pillar:nth-child(3) {
    animation-range: entry 20% entry 80%;
  }
}

@keyframes slash-in {
  from {
    opacity: 0;
    translate: -70px 0;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

.editorial {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 1rem + 4vw, 5rem);
  align-items: start;
}

.editorial h2 {
  margin-bottom: 0.3em;
}

.prose {
  max-width: 65ch;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose .inline-link {
  margin-top: 0.5rem;
}

.duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(2.5rem, 1.5rem + 4vw, 5rem);
}

.duo p:last-child {
  margin-bottom: 0;
}

.duo .statement {
  margin-bottom: 1rem;
}

.lead-after {
  margin-top: 1.5rem;
}

.split-copy p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Feature card grids
   -------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.75rem, 1rem + 2.5vw, 3rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-card {
  padding-top: 1rem;
  border-top: 3px solid var(--color-primary);
}

.feature-card h3 {
  margin-bottom: 0.5rem;
}

.feature-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-ink-soft);
}

.cat-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(2rem, 1.5rem + 2vw, 3rem) 0;
  padding: 0;
  list-style: none;
  background: var(--color-primary);
  border-radius: var(--radius);
  color: #fff;
}

.cat-board li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: clamp(1.25rem, 1rem + 1.2vw, 2rem);
}

.cat-board li + li {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.cat-code {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(2.5rem, 1.75rem + 3vw, 4.25rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.cat-years {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--color-silver);
}

.fine-print {
  margin: 1.2rem 0 0;
  font-size: 0.875rem;
  color: var(--color-ink-soft);
}

/* --------------------------------------------------------------------------
   Full-bleed bands (vision, final call to action)
   -------------------------------------------------------------------------- */

.band {
  position: relative;
  padding: clamp(4rem, 3rem + 6vw, 7rem) 0;
  background: var(--color-primary);
  color: #fff;
  overflow: hidden;
}

.band-content {
  position: relative;
  z-index: 1;
}

.band-content > * {
  max-width: min(44rem, 80%);
}

.band-content h2 {
  color: #fff;
}

.band-content .lead {
  color: rgba(255, 255, 255, 0.92);
}

.band-closing {
  font-family: var(--font-heading);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2.1rem);
  line-height: 1.1;
  text-transform: uppercase;
  margin: 1.5rem 0 0;
}

.band-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--color-primary-deep);
  color: rgba(255, 255, 255, 0.82);
  padding-top: clamp(3rem, 2rem + 4vw, 4.5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.25rem;
  padding-bottom: 2.75rem;
}

.footer-brand img {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
}

.footer-brand p {
  max-width: 36ch;
  font-size: 0.92rem;
}

.footer-label {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-label-spaced {
  margin-top: 1.1rem;
}

.footer-legal-links-stacked {
  display: grid;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: #fff;
}

.social {
  display: flex !important;
  gap: 0.55rem;
  margin: 0 0 0.4rem;
  padding: 0;
  list-style: none;
}

.social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.social a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.social svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.social a:hover svg {
  fill: #fff;
}

.footer-contact {
  color: #fff;
  font-size: 0.92rem;
  text-decoration: none;
}

.footer-contact:hover {
  color: var(--color-silver);
}

.footer-trademark {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-block: 1.1rem;
}

.footer-trademark p {
  max-width: 70ch;
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.68);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.68);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.78rem;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.footer-legal-links a:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   Back-to-top button
   -------------------------------------------------------------------------- */

.to-top {
  position: fixed;
  right: clamp(16px, 4vw, 30px);
  bottom: clamp(16px, 4vw, 30px);
  z-index: 60;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  box-shadow: 0 12px 28px -10px rgba(6, 19, 47, 0.6);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.15s ease;
}

.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover {
  background: var(--color-royal);
}

.to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   Interior page hero + back-to-home
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  background: var(--color-primary);
  color: #fff;
  overflow: hidden;
  padding: clamp(3.25rem, 2.25rem + 5vw, 6.5rem) 0 clamp(2.75rem, 2rem + 3vw, 4.5rem);
}

.page-hero .wrap {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  margin: 0;
  max-width: min(20ch, 82%);
  color: #fff;
}

.page-hero .lead {
  margin: 1.1rem 0 0;
  max-width: min(58ch, 80%);
  color: rgba(255, 255, 255, 0.92);
}

.back-top-bar {
  padding-top: clamp(1.75rem, 1rem + 2vw, 2.5rem);
}

.page-actions {
  text-align: center;
  padding-top: clamp(1rem, 2vw, 2rem);
  padding-bottom: clamp(3.5rem, 2.5rem + 4vw, 6rem);
}

.page-actions-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  border: 2px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.back-home:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.back-home svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.back-home-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  text-decoration: none;
}

.back-home-top:hover {
  color: var(--color-primary);
}

.back-home-top svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   Home: intro + explore grid
   -------------------------------------------------------------------------- */

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-royal);
  text-decoration: none;
}

.inline-link::after {
  content: "";
  width: 1em;
  height: 1em;
  background: currentColor;
  -webkit-mask: var(--icon-arrow) center / contain no-repeat;
  mask: var(--icon-arrow) center / contain no-repeat;
  transition: translate 0.25s var(--ease-out);
}

.inline-link:hover::after {
  translate: 5px 0;
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.5rem clamp(1.75rem, 1rem + 2.5vw, 3rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.explore-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 0 1.5rem;
  border-top: 3px solid var(--color-primary);
  text-decoration: none;
  color: inherit;
}

.explore-card:hover {
  border-top-color: var(--color-accent);
}

.explore-card h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin: 0;
  color: var(--color-primary);
}

.explore-card h3::after {
  content: "";
  flex: none;
  width: 1em;
  height: 1em;
  background: var(--color-accent);
  -webkit-mask: var(--icon-arrow) center / contain no-repeat;
  mask: var(--icon-arrow) center / contain no-repeat;
  transition: translate 0.25s var(--ease-out);
}

.explore-card:hover h3::after {
  translate: 6px 0;
}

.explore-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-ink-soft);
}

/* --------------------------------------------------------------------------
   News
   -------------------------------------------------------------------------- */

.key-dates {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  margin-bottom: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
}

.key-dates h2 {
  color: #fff;
  font-size: 2.1rem;
  margin-bottom: 1rem;
}

.key-dates-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.key-dates-list li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 0.75rem;
}

.key-date-when {
  font-family: var(--font-heading);
  font-weight: 800;
  font-style: italic;
  font-size: 1.3rem;
  font-variant-numeric: tabular-nums;
  color: var(--color-silver);
  flex: none;
  min-width: 9ch;
}

.key-date-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
}

.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.25rem);
}

.news-filter {
  border: 1px solid var(--color-line);
  background: #fff;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  min-height: 44px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.news-filter:hover {
  border-color: var(--color-primary);
}

.news-filter[aria-pressed="true"] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: border-color 0.18s ease;
}

.news-card:hover {
  border-color: var(--color-primary);
}

.news-card:hover h3 {
  color: var(--color-royal);
}

.news-card-media {
  aspect-ratio: 16 / 10;
  background: var(--color-card);
  overflow: hidden;
}

.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-body {
  padding: 1.25rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.news-card-category {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.news-card-date {
  font-size: 0.82rem;
  color: var(--color-ink-soft);
}

.news-card h3 {
  margin: 0;
  font-size: 1.6rem;
  transition: color 0.15s ease;
  color: var(--color-primary);
}

.news-card-excerpt {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-ink-soft);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-empty {
  text-align: center;
  color: var(--color-ink-soft);
  padding: 2rem 0;
}

.news-sample-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  border: 1px dashed var(--color-ink-soft);
  border-radius: 4px;
  padding: 0.15rem 0.6rem;
  margin-top: 0.25rem;
  width: fit-content;
}

.post-article {
  max-width: 72ch;
  margin: 0 auto;
}

.post-article img {
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.post-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  color: var(--color-ink-soft);
}

.post-article p {
  font-size: 1.05rem;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   Documents
   -------------------------------------------------------------------------- */

.doc-search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 420px;
  margin-bottom: clamp(2rem, 1.25rem + 2.5vw, 3rem);
  padding: 0.2rem 0.2rem 0.2rem 1rem;
  border: 1px solid var(--color-ink-soft);
  border-radius: 4px;
  background: #fff;
}

.doc-search svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--color-ink-soft);
}

.doc-search input {
  border: 0;
  outline: 0;
  flex: 1;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.65rem 0;
  min-width: 0;
  background: transparent;
  color: var(--color-ink);
  caret-color: var(--color-accent);
}

.doc-search:focus-within {
  outline: 3px solid var(--color-royal);
  outline-offset: 2px;
}

.doc-groups-soon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
}

.doc-groups-soon .doc-group {
  margin: 0;
  padding-top: 0.75rem;
  border-top: 3px solid var(--color-primary);
}

.doc-groups-soon .doc-group h2 {
  font-size: 1.6rem;
  font-style: normal;
  margin-bottom: 0.25rem;
}

.doc-groups-soon .doc-empty {
  padding: 0;
  margin: 0;
}

.doc-group {
  margin-bottom: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
}

.doc-group h2 {
  font-size: 2.1rem;
  margin-bottom: 0.75rem;
}

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

.doc-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: var(--color-card);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.doc-item:hover {
  border-color: var(--color-primary);
  background: #fff;
}

.doc-icon {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--color-primary);
  color: #fff;
  display: grid;
  place-items: center;
}

.doc-icon svg {
  width: 18px;
  height: 18px;
}

.doc-item-text {
  flex: 1;
  min-width: 0;
}

.doc-item-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-primary);
  overflow-wrap: break-word;
}

.doc-item-meta {
  font-size: 0.82rem;
  color: var(--color-ink-soft);
}

.doc-empty {
  color: var(--color-ink-soft);
  padding: 1rem 0;
}

/* --------------------------------------------------------------------------
   Academies grid
   -------------------------------------------------------------------------- */

.club-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-line);
  border-left: 1px solid var(--color-line);
}

.club-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem) 1rem;
  border-right: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  animation: line-up 0.55s var(--ease-out) both;
}

.club-card:nth-child(2) { animation-delay: 45ms; }
.club-card:nth-child(3) { animation-delay: 90ms; }
.club-card:nth-child(4) { animation-delay: 135ms; }
.club-card:nth-child(5) { animation-delay: 180ms; }
.club-card:nth-child(6) { animation-delay: 225ms; }
.club-card:nth-child(7) { animation-delay: 270ms; }
.club-card:nth-child(8) { animation-delay: 315ms; }

@keyframes line-up {
  from {
    opacity: 0;
    translate: 0 14px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

.club-card-crest {
  height: 96px;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.club-card-crest img,
.club-card-crest svg {
  max-height: 96px;
  max-width: 140px;
  width: auto;
  height: auto;
}

.club-card-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1.05;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
}

.club-card-league {
  font-size: 0.875rem;
  color: var(--color-ink-soft);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Join page: consent cards
   -------------------------------------------------------------------------- */

.join-chooser {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
  margin-bottom: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
}

.join-choice {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.1rem 1.35rem;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
  color: var(--color-primary);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.join-choice strong {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1;
  text-transform: uppercase;
}

.join-choice:hover,
.join-choice[aria-current="true"] {
  background: var(--color-primary);
  color: #fff;
}

.join-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.join-grid.is-picked {
  grid-template-columns: minmax(0, 46rem);
}

.join-next {
  font-weight: 700;
  color: var(--color-primary);
}

.fees-note {
  max-width: 65ch;
  margin: clamp(1.75rem, 1.25rem + 2vw, 2.75rem) 0 0;
  color: var(--color-ink-soft);
}

.join-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  scroll-margin-top: calc(var(--header-h) + 14px);
}

.join-card:focus {
  outline: none;
}

.join-card h2 {
  font-size: 2.5rem;
  margin-bottom: 0;
}

.join-card p {
  margin: 0;
}

.join-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--color-ink-soft);
  font-size: 0.94rem;
  line-height: 1.6;
}

.privacy-notice {
  border-top: 1px solid var(--color-line);
  padding-top: 1rem;
  font-size: 0.9rem;
  color: var(--color-ink-soft);
  line-height: 1.6;
}

.privacy-notice a {
  color: var(--color-royal);
}

.consent-field {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.consent-field input[type="checkbox"] {
  width: 22px;
  height: 22px;
  min-width: 22px;
  margin: 0.1rem 0 0;
  accent-color: var(--color-primary);
}

.consent-field label {
  font-size: 0.92rem;
  color: var(--color-ink);
  line-height: 1.5;
}

.consent-error {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-ink-soft);
}

.consent-error svg {
  display: none;
  flex: none;
}

.consent-error.is-visible {
  color: var(--color-accent);
  font-weight: 700;
}

.consent-error.is-visible svg {
  display: block;
}

.consent-error.is-ready {
  display: none;
}

.join-card .btn {
  align-self: flex-start;
  white-space: normal;
  text-align: center;
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */

.legal-content {
  max-width: 72ch;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 2rem;
  font-style: normal;
  margin-top: 2.75rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  font-size: 1rem;
  color: var(--color-ink);
}

.legal-content .fine-print {
  margin-top: 2.5rem;
}

mark.todo {
  background: #fff1a8;
  color: #4a3b00;
  padding: 0.05em 0.35em;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.92em;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-list {
  max-width: 52rem;
}

.faq-item {
  border-top: 1px solid var(--color-line);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--color-line);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--color-primary);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  background: var(--color-accent);
  -webkit-mask: var(--icon-plus) center / contain no-repeat;
  mask: var(--icon-plus) center / contain no-repeat;
  transition: rotate 0.3s var(--ease-out);
}

.faq-item[open] summary::after {
  rotate: 45deg;
}

.faq-item::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size 0.32s var(--ease-out), content-visibility 0.32s allow-discrete;
}

.faq-item[open]::details-content {
  block-size: auto;
}

.faq-answer {
  padding: 0 0 1.25rem;
}

.faq-answer p {
  margin: 0;
  color: var(--color-ink-soft);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.15rem;
}

.contact-card {
  padding-top: 1rem;
  border-top: 3px solid var(--color-primary);
}

.contact-card h2 {
  font-size: 1.6rem;
  font-style: normal;
  margin-bottom: 0.4rem;
}

.contact-card a {
  color: var(--color-royal);
  font-weight: 700;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* The footer's `.social a` is a 40px icon-only dark circle meant for the
   navy footer background — its two children (icon + label, see
   SOCIAL_ICONS/contact.mjs) just stack and overlap inside that small
   circle, and the icon is hardcoded white (`.social svg`), invisible on
   this card's light background. Pill buttons with a visible label fix
   both problems for this one spot without touching the footer. */
.contact-card .social {
  flex-wrap: wrap;
}

.contact-card .social a {
  width: auto;
  height: auto;
  min-height: 44px;
  padding: 0.6rem 1.1rem;
  border-radius: 4px;
  border: 1px solid var(--color-line);
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  justify-content: flex-start;
}

.contact-card .social a:hover {
  background: var(--color-bg-warm);
  border-color: var(--color-royal);
}

.contact-card .social svg,
.contact-card .social a:hover svg {
  fill: var(--color-primary);
}

.contact-card .social span {
  text-transform: capitalize;
  font-weight: 700;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1280px) {
  .site-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    width: min(330px, 82vw);
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 1.75rem 1.9rem 2rem;
    background: var(--color-primary);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    transform: translateX(100%);
    visibility: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
  }

  .site-nav.is-open {
    transform: none;
    visibility: visible;
    transition: transform 0.3s ease, visibility 0s;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .site-nav ul a {
    display: block;
    padding: 0.95rem 0;
    font-size: 1.4rem;
    color: #fff;
  }

  .site-nav ul a::after {
    display: none;
  }

  .site-nav ul a.is-current {
    color: var(--color-silver);
  }

  .nav-cta {
    margin-top: 1.6rem;
    align-self: flex-start;
  }

  .header-tools {
    margin-left: auto;
  }

  .menu-toggle {
    display: inline-flex;
    margin-right: -10px;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(6, 19, 47, 0.5);
  }
}

@media (max-width: 860px) {
  .pillars-row {
    grid-template-columns: 1fr;
    margin-inline: 0;
  }

  .pillar,
  .pillar-inner {
    transform: none;
  }

  .pillar {
    min-height: 0;
  }

  .pillar .pillar-inner,
  .pillar:first-child .pillar-inner,
  .pillar:last-child .pillar-inner {
    padding: 2rem clamp(20px, 5vw, 48px);
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .editorial {
    grid-template-columns: 1fr;
  }

  .hero-crest {
    display: none;
  }

  .club-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .split-reverse .split-media {
    order: 0;
  }

  .split-media {
    aspect-ratio: 3 / 2;
  }
}

@media (max-width: 560px) {
  :root {
    --header-h: 64px;
    --marquee-h: 58px;
  }

  .marquee-heading {
    display: none;
  }

  .marquee-section.is-static .marquee-heading {
    display: block;
  }

  .brand-text {
    font-size: 0.82rem;
  }

  .header-inner {
    gap: 0.75rem;
  }

  .cat-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cat-board li:nth-child(3) {
    border-left: 0;
  }

  .cat-board li:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .page-hero .lead,
  .band-content > * {
    max-width: 84%;
  }

  .section {
    padding: 3rem 0;
  }

  .band {
    padding: 3.75rem 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero .btn-lg {
    font-size: 1.05rem;
    padding: 0.7rem 1rem;
  }
}

@media (max-width: 560px) and (max-height: 720px) {
  /* short phones: the strap above already says what the league is */
  .hero-content .lead {
    display: none;
  }

  .hero-content .hero-title {
    margin-bottom: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pillar {
    animation: none !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
  }

  .marquee-track {
    animation: none;
  }

  .ball-btn__ball,
  .ball-btn__fill {
    display: none;
  }

  .btn.is-running .ball-btn__label {
    opacity: 1;
  }

}
