/* ==========================================================================
   Bellator Eretum Academy — Design System
   Palette derived from the association crest: laurel gold, Italian tricolore,
   near-black canvas. Type: Barlow Condensed (display) / Barlow (body).
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Surfaces */
  --bg:            #08080a;
  --bg-elev:       #0e0e11;
  --bg-card:       #131317;
  --bg-card-hover: #191920;
  --border:        #24242b;
  --border-strong: #35353f;

  /* Ink */
  --fg:        #f5f5f6;
  --fg-muted:  #a4a4ae;
  --fg-subtle: #82828c; /* ≥4.9:1 on every surface token (bg, elev, card) */

  /* Brand */
  --gold:       #c8a24a;
  --gold-bright:#e0bd66;
  --gold-dim:   rgba(200, 162, 74, 0.14);
  --red:        #ce2b37;
  --red-hover:  #b3222d;
  --green:      #1a7a48;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Type scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.375rem;
  --text-2xl:  1.75rem;
  --text-3xl:  2.25rem;
  --text-4xl:  3rem;
  --text-5xl:  4rem;

  --radius:    4px;
  --radius-lg: 8px;

  --shell: 1240px;
  --shell-narrow: 820px;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --dur: 260ms;

  --header-h: 76px;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.98;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}

h1 { font-size: clamp(2.75rem, 8vw, 5.25rem); }
h2 { font-size: clamp(2rem, 5vw, 3.25rem); }
h3 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
h4 { font-size: var(--text-lg); }

p { margin: 0 0 var(--space-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--gold); color: #000; }

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

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 200;
  background: var(--gold);
  color: #000;
  padding: var(--space-3) var(--space-5);
  font-weight: 700;
  border-radius: var(--radius);
  transition: top 160ms var(--ease);
}
.skip-link:focus { top: var(--space-4); }

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

/* ---------- 3. Layout primitives ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
@media (min-width: 768px) { .shell { padding-inline: var(--space-6); } }

.section { padding-block: clamp(3.5rem, 9vw, 7rem); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--elev { background: var(--bg-elev); }

.section-head { max-width: 680px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }

/* Eyebrow: gold rule + tracked micro-label */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--gold);
  flex: none;
}
.section-head--center .eyebrow { justify-content: center; }

.lede {
  font-size: var(--text-lg);
  color: var(--fg-muted);
  max-width: 62ch;
}
.section-head--center .lede { margin-inline: auto; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-6);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-hover); }

.btn--gold { background: var(--gold); color: #0a0a0a; }
.btn--gold:hover { background: var(--gold-bright); }

.btn--ghost { border-color: var(--border-strong); color: var(--fg); background: transparent; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }

.btn svg { width: 18px; height: 18px; flex: none; }

/* Inline text link with animated gold underline */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: var(--text-base);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  padding-block: var(--space-1);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 5. Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              backdrop-filter var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: rgba(8, 8, 10, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.header__inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}
@media (min-width: 768px) { .header__inner { padding-inline: var(--space-6); } }

.brand { display: flex; align-items: center; gap: var(--space-3); flex: none; }
.brand img { width: 40px; height: auto; }
.brand__text { display: none; }
@media (min-width: 480px) { .brand__text { display: block; } }
.brand__name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.1;
}
.brand__sub {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.2;
}

.nav { display: none; }
@media (min-width: 1000px) {
  .nav { display: flex; align-items: center; gap: var(--space-6); }
}
.nav a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding-block: var(--space-2);
  position: relative;
  transition: color var(--dur) var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav a:hover { color: var(--fg); }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current='page'] { color: var(--fg); }
.nav a[aria-current='page']::after { transform: scaleX(1); }

.header__cta { display: none; }
@media (min-width: 1000px) { .header__cta { display: inline-flex; } }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-right: -12px;
  background: none;
  border: 0;
  color: var(--fg);
}
@media (min-width: 1000px) { .nav-toggle { display: none; } }
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded='true'] .icon-open { display: none; }
.nav-toggle[aria-expanded='true'] .icon-close { display: block; }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 99;
  background: var(--bg);
  padding: var(--space-6) var(--space-5) var(--space-8);
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 200ms;
}
.drawer.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
@media (min-width: 1000px) { .drawer { display: none; } }
.drawer a {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.drawer a:hover, .drawer a[aria-current='page'] { color: var(--gold); padding-left: var(--space-3); }
.drawer .btn { width: 100%; margin-top: var(--space-6); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: clamp(3rem, 8vw, 5.5rem);
  overflow: hidden;
  isolation: isolate;
}
.hero--compact { min-height: min(62vh, 560px); }

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 2%, rgba(8,8,10,0.72) 42%, rgba(8,8,10,0.42) 100%),
    linear-gradient(to right, rgba(8,8,10,0.88) 0%, rgba(8,8,10,0.25) 62%, rgba(8,8,10,0.55) 100%);
}

.hero__content { position: relative; max-width: 780px; }
.hero h1 { margin-bottom: var(--space-5); }
.hero h1 .accent { color: var(--gold); display: block; }
.hero__lede {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--fg-muted);
  max-width: 56ch;
  margin-bottom: var(--space-6);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* Scroll cue */
.hero__cue {
  position: absolute;
  left: 50%;
  bottom: var(--space-5);
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}
@media (min-width: 1000px) { .hero__cue { display: flex; } }
.hero__cue span.rule {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { 0%,100% { opacity: 0.3; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* Page hero (interior pages) */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 5.5rem));
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--border);
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.page-hero__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 4%, rgba(8,8,10,0.78) 60%, rgba(8,8,10,0.6) 100%);
}
.page-hero h1 { margin-bottom: var(--space-4); }
.page-hero .lede { max-width: 60ch; }

/* Breadcrumb */
.crumbs {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--fg-subtle);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}
.crumbs a { display: inline-block; padding-block: 5px; line-height: 1.5; color: var(--fg-muted); transition: color var(--dur) var(--ease); }
.crumbs a:hover { color: var(--gold); }
.crumbs span[aria-hidden] { color: var(--border-strong); }

/* ---------- 7. Stat strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  padding: var(--space-6) var(--space-5);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 800px) { .stat { border-bottom: 0; } }
.stat:last-child { border-right: 0; }
@media (max-width: 799px) { .stat:nth-child(2n) { border-right: 0; } }
.stat__num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
}
.stat__label {
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-top: var(--space-2);
}

/* ---------- 8. Discipline cards ---------- */
.grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.grid--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

.disc {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  aspect-ratio: 3 / 4;
  isolation: isolate;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.disc:hover { border-color: var(--gold); transform: translateY(-4px); }
.disc img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(0.72);
  transform: scale(1.02);
  transition: filter 420ms var(--ease), transform 620ms var(--ease);
  z-index: -2;
}
.disc:hover img { filter: grayscale(0) contrast(1.02) brightness(0.85); transform: scale(1.07); }
.disc::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(8,8,10,0.96) 8%, rgba(8,8,10,0.55) 48%, rgba(8,8,10,0.15) 100%);
}
.disc__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-5);
}
.disc__num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
  display: block;
  margin-bottom: var(--space-2);
}
.disc__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  margin: 0 0 var(--space-2);
}
.disc__desc {
  font-size: var(--text-sm);
  color: var(--fg-muted);
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 380ms var(--ease), opacity 300ms var(--ease);
}
.disc:hover .disc__desc, .disc:focus-within .disc__desc { max-height: 9rem; opacity: 1; }
@media (hover: none) {
  .disc__desc { max-height: none; opacity: 1; }
}

/* ---------- 9. Generic card ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.card--link:hover { border-color: var(--gold); background: var(--bg-card-hover); transform: translateY(-4px); }
.card h3 { margin-bottom: var(--space-3); }
.card p { color: var(--fg-muted); }

.card__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  color: var(--gold);
  margin-bottom: var(--space-4);
  background: var(--gold-dim);
}
.card__icon svg { width: 22px; height: 22px; }

/* Objectives — numbered */
.goal { position: relative; padding-left: 0; }
.goal__num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--border-strong);
  display: block;
  margin-bottom: var(--space-3);
  transition: color var(--dur) var(--ease);
}
.card:hover .goal__num { color: var(--gold); }

/* ---------- 10. Split feature ---------- */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: 2; }
}
.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__media--tall img { aspect-ratio: 3 / 4; }

/* Gold corner accent on media */
.split__media::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 64px; height: 64px;
  border-top: 3px solid var(--gold);
  border-left: 3px solid var(--gold);
  z-index: 2;
  pointer-events: none;
}

/* ---------- 11. Staff ---------- */
.person {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.person:hover { border-color: var(--gold); transform: translateY(-4px); }
.person__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-elev); }
.person__photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  filter: grayscale(1) contrast(1.05);
  transition: filter 420ms var(--ease), transform 620ms var(--ease);
}
.person:hover .person__photo img { filter: grayscale(0); transform: scale(1.04); }
.person__body { padding: var(--space-5); }
.person__name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: var(--text-xl);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0 0 var(--space-1);
}
.person__role {
  font-size: var(--text-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-3);
}
.person__bio { font-size: var(--text-sm); color: var(--fg-muted); margin: 0; }

/* ---------- 12. Timetable ---------- */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  -webkit-overflow-scrolling: touch;
}
.timetable {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.timetable th, .timetable td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.timetable thead th {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--bg-elev);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}
.timetable tbody th {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: var(--text-base);
  letter-spacing: 0.06em;
  color: var(--fg);
  white-space: nowrap;
  background: var(--bg-elev);
}
.timetable tbody tr:last-child th,
.timetable tbody tr:last-child td { border-bottom: 0; }
.timetable td:empty::after { content: '—'; color: var(--fg-subtle); }

.slot {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--fg);
}
.slot--judo    { border-color: #2f7d4f; background: rgba(47,125,79,0.16); }
.slot--bjj     { border-color: #7a5cc4; background: rgba(122,92,196,0.16); }
.slot--tkd     { border-color: #c47a2a; background: rgba(196,122,42,0.16); }
.slot--strike  { border-color: var(--red); background: rgba(206,43,55,0.16); }
.slot--mma     { border-color: var(--gold); background: var(--gold-dim); }

.table-hint {
  font-size: var(--text-sm);
  color: var(--fg-subtle);
  margin-top: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.table-hint svg { width: 16px; height: 16px; flex: none; }
@media (min-width: 900px) { .table-hint { display: none; } }

/* ---------- 13. Palmares ---------- */
.palmares { display: grid; gap: var(--space-5); }
@media (min-width: 860px) { .palmares { grid-template-columns: repeat(3, 1fr); } }

.medal {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: var(--space-6);
  border-top: 3px solid var(--rank-color, var(--gold));
}
.medal--gold   { --rank-color: #c8a24a; }
.medal--silver { --rank-color: #9aa0a8; }
.medal--bronze { --rank-color: #a8613c; }

.medal__rank {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--rank-color);
  margin-bottom: var(--space-1);
}
.medal__label {
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: var(--space-5);
}
.medal ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.medal li {
  font-size: var(--text-sm);
  color: var(--fg-muted);
  padding-left: var(--space-5);
  position: relative;
  line-height: 1.5;
}
.medal li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.5em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--rank-color);
}
.medal li strong { color: var(--fg); font-weight: 600; }

/* ---------- 14. Gallery ---------- */
.gallery {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  filter: grayscale(0.4) contrast(1.05);
  transition: filter 380ms var(--ease), transform 480ms var(--ease), border-color var(--dur) var(--ease);
}
.gallery img:hover { filter: grayscale(0); transform: scale(1.02); border-color: var(--gold); }

/* ---------- 15. Quote ---------- */
.quote {
  border-left: 3px solid var(--gold);
  padding: var(--space-2) 0 var(--space-2) var(--space-6);
  margin: 0;
  max-width: 62ch;
}
.quote p {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--fg);
  text-transform: none;
}
.quote footer {
  font-size: var(--text-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: var(--space-3);
}

/* ---------- 16. Logo rows (affiliations / sponsors) ---------- */
.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 3.5rem);
}
.logo-row img {
  height: 56px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(1.6) contrast(0.9);
  opacity: 0.6;
  transition: filter var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.logo-row img:hover { filter: grayscale(0) brightness(1); opacity: 1; }
.logo-row--sponsor img { height: 44px; filter: grayscale(1) contrast(0.9); }

/* ---------- 17. Info list (contacts) ---------- */
.info-list { display: grid; gap: var(--space-5); margin: 0; padding: 0; }
.info-item { display: flex; gap: var(--space-4); align-items: flex-start; }
.info-item__icon {
  flex: none;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--gold);
}
.info-item__icon svg { width: 20px; height: 20px; }
.info-item__label {
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 2px;
}
.info-item__value { font-size: var(--text-lg); color: var(--fg); line-height: 1.4; }
.info-item__value a { display: inline-block; padding-block: 2px; transition: color var(--dur) var(--ease); }
.info-item__value a:hover { color: var(--gold); }

.map-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elev);
  min-height: 340px;
}
.map-frame iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; filter: grayscale(0.9) invert(0.92) contrast(0.86); }

/* ---------- 18. Forms ---------- */
.form { display: grid; gap: var(--space-5); }
.field { display: grid; gap: var(--space-2); }
.field label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
}
.field .req { color: var(--red); }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--fg);
  font: inherit;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-subtle); }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--fg-subtle); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--bg-elev);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.field__hint { font-size: var(--text-sm); color: var(--fg-subtle); }

.checkbox { display: flex; gap: var(--space-3); align-items: flex-start; }
.checkbox input {
  flex: none;
  width: 24px; height: 24px;
  min-height: 0;
  margin-top: 1px;
  accent-color: var(--gold);
}
.checkbox label { font-family: 'Barlow', sans-serif; font-size: var(--text-sm); letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--fg-muted); }
.checkbox label a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 19. CTA band ---------- */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  padding-block: clamp(3.5rem, 9vw, 6rem);
  border-block: 1px solid var(--border);
}
.cta-band__media { position: absolute; inset: 0; z-index: -2; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.28; }
.cta-band__media::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(8,8,10,0.55) 0%, rgba(8,8,10,0.94) 72%);
}
.cta-band h2 { margin-bottom: var(--space-4); }
.cta-band .lede { margin-inline: auto; margin-bottom: var(--space-6); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }

/* ---------- 20. Footer ---------- */
.footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  padding-block: var(--space-8) var(--space-5);
}
.footer__grid {
  display: grid;
  gap: var(--space-7);
  margin-bottom: var(--space-7);
}
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1060px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }

.footer__brand { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.footer__brand img { width: 52px; }
.footer p { color: var(--fg-muted); font-size: var(--text-sm); }

.footer h4 {
  font-size: var(--text-sm);
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: var(--space-4);
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; }
.footer ul a, .footer address a {
  display: inline-block;
  font-size: var(--text-sm);
  line-height: 1.5;
  padding-block: 5px;
  color: var(--fg-muted);
  transition: color var(--dur) var(--ease);
}
.footer ul a:hover, .footer address a:hover { color: var(--gold); }
.footer address { font-style: normal; font-size: var(--text-sm); color: var(--fg-muted); display: grid; gap: var(--space-2); }

.socials { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.socials a {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--fg-muted);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.socials a:hover { color: var(--gold); border-color: var(--gold); background: var(--gold-dim); }
.socials svg { width: 20px; height: 20px; }

.footer__bar {
  border-top: 1px solid var(--border);
  padding-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--fg-subtle);
}
.footer__bar a { display: inline-block; padding-block: 5px; line-height: 1.5; transition: color var(--dur) var(--ease); }
.footer__bar a:hover { color: var(--gold); }

/* ---------- 21. Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay='1'] { transition-delay: 70ms; }
.reveal[data-delay='2'] { transition-delay: 140ms; }
.reveal[data-delay='3'] { transition-delay: 210ms; }
.reveal[data-delay='4'] { transition-delay: 280ms; }
.reveal[data-delay='5'] { transition-delay: 350ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .card--link:hover, .disc:hover, .person:hover { transform: none; }
}

/* ---------- 22. Prose ---------- */
.prose { max-width: 68ch; }
.prose p { color: var(--fg-muted); }
.prose h3 { margin-top: var(--space-7); color: var(--fg); }
.prose h3:first-child { margin-top: 0; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose ul { padding-left: var(--space-5); color: var(--fg-muted); }
.prose li { margin-bottom: var(--space-2); }
.prose li::marker { color: var(--gold); }

/* Affiliate gym list */
.gym-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
@media (min-width: 700px) { .gym-list { grid-template-columns: repeat(2, 1fr); } }
.gym-list li {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  font-size: var(--text-sm);
}
.gym-list li::before { content: ''; width: 6px; height: 6px; background: var(--gold); flex: none; transform: rotate(45deg); }
.gym-list strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: var(--text-base);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg);
}
.gym-list span { color: var(--fg-subtle); }
