/* ============================================================
   ФВВС СО — "Глубина" Design System
   Cinematic Ocean × Editorial Sports Magazine
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@300;400;500;600;700;800&family=Onest:wght@300;400;500;600;700&family=Cormorant+Garamond:ital,wght@1,300;1,400;1,500&family=JetBrains+Mono:wght@300;400;500&display=swap');

:root {
  /* === Sakhalin Depths Palette === */
  --abyss: #06121f;
  --deep: #0c2440;
  --ocean: #14416a;
  --tide: #2a7caa;
  --surf: #5fb3d9;
  --foam: #b8e0f0;
  --mist: #e6f1f7;
  --shore: #f4f1e8;
  --paper: #faf8f3;

  --coral: #ff5b3b;
  --coral-glow: rgba(255, 91, 59, 0.35);
  --gold: #d4a93a;
  --bronze: #b46b3f;
  --silver: #a8b8c5;

  --ink: #06121f;
  --ink-soft: rgba(6, 18, 31, 0.7);
  --ink-faint: rgba(6, 18, 31, 0.45);
  --line: rgba(6, 18, 31, 0.12);
  --line-strong: rgba(6, 18, 31, 0.28);

  --on-dark: #f0f6fa;
  --on-dark-soft: rgba(240, 246, 250, 0.72);
  --on-dark-faint: rgba(240, 246, 250, 0.42);
  --line-dark: rgba(240, 246, 250, 0.14);
  --line-dark-strong: rgba(240, 246, 250, 0.32);

  /* === Typography === */
  --f-display: 'Unbounded', 'Helvetica Neue', sans-serif;
  --f-body: 'Onest', system-ui, sans-serif;
  --f-italic: 'Cormorant Garamond', 'Times New Roman', serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* === Layout === */
  --container: 1360px;
  --container-narrow: 1120px;
  --gutter: clamp(1.25rem, 3.5vw, 2.5rem);

  /* === Motion === */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --d-fast: 200ms;
  --d-med: 420ms;
  --d-slow: 800ms;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

::selection { background: var(--surf); color: var(--abyss); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

.display {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-wrap: balance;
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.eyebrow--on-dark { color: var(--on-dark-soft); }

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 0.75rem;
  opacity: 0.6;
}

.italic-accent {
  font-family: var(--f-italic);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

.num {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

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

.container--narrow { max-width: var(--container-narrow); }

.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--dark { background: var(--abyss); color: var(--on-dark); }
.section--ocean {
  background: linear-gradient(180deg, var(--abyss) 0%, var(--deep) 100%);
  color: var(--on-dark);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  flex-wrap: wrap;
}

.section-head__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  letter-spacing: -0.03em;
  line-height: 1;
  max-width: 14ch;
}

.section-head__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  text-align: right;
}

/* ============================================================
   HEADER & NAV
   ============================================================ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(6, 18, 31, 0.35);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--d-med) var(--ease-out), padding var(--d-med) var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(6, 18, 31, 0.85);
  padding: 0.6rem 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  color: var(--on-dark);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.brand__mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__abbr {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand__full {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  margin-top: 0.35rem;
  max-width: 18ch;
}

/* Nav */
.nav { flex: 1; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  justify-content: center;
}

.nav__item { position: relative; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.005em;
  color: var(--on-dark);
  border-radius: 999px;
  transition: background var(--d-fast) var(--ease-out), color var(--d-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0.2rem;
  transform: translateX(-50%) scaleX(0);
  width: 1.5rem;
  height: 1px;
  background: var(--surf);
  transition: transform var(--d-med) var(--ease-out);
  transform-origin: center;
}

.nav__item:hover > .nav__link,
.nav__item.is-open > .nav__link,
.nav__link.is-active {
  background: rgba(95, 179, 217, 0.1);
}

.nav__link.is-active::after,
.nav__item:hover > .nav__link::after { transform: translateX(-50%) scaleX(1); }

.nav__chevron {
  width: 10px;
  height: 10px;
  transition: transform var(--d-fast);
}
.nav__item:hover .nav__chevron,
.nav__item.is-open .nav__chevron { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 240px;
  padding: 0.6rem;
  background: rgba(12, 36, 64, 0.95);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(95, 179, 217, 0.16);
  border-radius: 18px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--d-fast), transform var(--d-fast) var(--ease-out);
}

.nav__item:hover > .dropdown,
.nav__item.is-open > .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  color: var(--on-dark);
  border-radius: 10px;
  transition: background var(--d-fast), color var(--d-fast);
  position: relative;
}

.dropdown__link:hover,
.dropdown__link.is-active {
  background: rgba(95, 179, 217, 0.14);
  color: var(--foam);
}

.dropdown__link .num {
  font-size: 0.65rem;
  color: var(--on-dark-faint);
}

/* Nested dropdown */
.dropdown__item--has-sub > .dropdown__link::after {
  content: '›';
  font-size: 1.2rem;
  line-height: 1;
  color: var(--on-dark-faint);
  margin-left: auto;
}

.dropdown--sub {
  top: -0.6rem;
  left: calc(100% + 0.4rem);
  transform: translateX(-8px);
}

.dropdown__item--has-sub:hover > .dropdown--sub {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

/* Live button in nav */
.nav__live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  background: var(--coral);
  color: white;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.nav__live::before {
  content: '';
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.nav__live:hover { background: #ff7053; transform: translateY(-1px); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--on-dark);
}

.nav-toggle__bars {
  width: 22px;
  height: 14px;
  position: relative;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--d-fast);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }

@media (max-width: 980px) {
  .site-header__inner { gap: 1rem; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 64px 0 0 0;
    background: rgba(6, 18, 31, 0.98);
    backdrop-filter: blur(24px);
    padding: 2rem var(--gutter);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--d-med) var(--ease-out);
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line-dark); }
  .nav__link { width: 100%; justify-content: space-between; padding: 1rem 0.5rem; border-radius: 0; font-size: 1.1rem; }
  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 0.5rem 1rem;
    display: none;
    min-width: 0;
  }
  .nav__item.is-open > .dropdown { display: block; }
  /* On mobile, show nested sub-dropdowns inline when their parent is open */
  .nav__item.is-open .dropdown--sub { display: block; }
  .dropdown--sub { padding-left: 1rem; border-left: 1px solid var(--line-dark); margin: 0.25rem 0 0.5rem; }
  .nav__live { margin-top: 1rem; align-self: flex-start; }
  .brand__full { display: none; }
}

@media (max-width: 540px) {
  .brand__abbr { font-size: 0.95rem; }
  .brand__mark { width: 36px; height: 36px; }
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  padding: 8rem 0 4rem;
  display: flex;
  align-items: center;
  color: var(--on-dark);
  background: var(--abyss);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 70% 30%, rgba(95, 179, 217, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(20, 65, 106, 0.6), transparent 60%),
    linear-gradient(180deg, var(--abyss) 0%, var(--deep) 100%);
}

.hero__waves {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 50%;
  z-index: -1;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: end;
  width: 100%;
}

.hero__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 7.2vw, 6.5rem);
  letter-spacing: -0.04em;
  line-height: 0.93;
  max-width: 16ch;
}

.hero__title .italic-accent {
  font-size: 0.95em;
  letter-spacing: -0.01em;
  color: var(--foam);
}

.hero__title-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  animation: hero-rise var(--d-slow) var(--ease-out) forwards;
}

.hero__title-word:nth-child(1) { animation-delay: 0.1s; }
.hero__title-word:nth-child(2) { animation-delay: 0.2s; }
.hero__title-word:nth-child(3) { animation-delay: 0.3s; }
.hero__title-word:nth-child(4) { animation-delay: 0.4s; }
.hero__title-word:nth-child(5) { animation-delay: 0.5s; }
.hero__title-word:nth-child(6) { animation-delay: 0.6s; }

@keyframes hero-rise {
  to { opacity: 1; transform: translateY(0); }
}

.hero__lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.5;
  color: var(--on-dark-soft);
  max-width: 48ch;
  margin-top: 2rem;
  opacity: 0;
  animation: hero-rise var(--d-slow) var(--ease-out) 0.7s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
  opacity: 0;
  animation: hero-rise var(--d-slow) var(--ease-out) 0.85s forwards;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-dark);
  opacity: 0;
  animation: hero-rise var(--d-slow) var(--ease-out) 1s forwards;
}

.hero__stat__num {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.hero__stat__label {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
  margin-top: 0.5rem;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}

.hero__scroll-hint::after {
  content: '';
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, var(--on-dark-faint), transparent);
  transform-origin: top center;
  animation: scroll-drip 2s ease-in-out infinite;
}

@keyframes scroll-drip {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.4); }
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--f-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: all var(--d-fast) var(--ease-out);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn__icon { width: 16px; height: 16px; transition: transform var(--d-fast); }
.btn:hover .btn__icon { transform: translateX(3px); }

.btn--primary {
  background: var(--surf);
  color: var(--abyss);
}
.btn--primary:hover { background: var(--foam); transform: translateY(-2px); }

.btn--ghost {
  color: var(--on-dark);
  border-color: var(--line-dark-strong);
}
.btn--ghost:hover { border-color: var(--surf); background: rgba(95, 179, 217, 0.08); }

.btn--live {
  background: var(--coral);
  color: white;
  position: relative;
  padding-left: 2.2rem;
}

.btn--live::before {
  content: '';
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: pulse 1.6s infinite;
}
.btn--live:hover { background: #ff7053; transform: translateY(-2px); }

.btn--dark {
  background: var(--abyss);
  color: var(--on-dark);
}
.btn--dark:hover { background: var(--deep); }

.btn--outline {
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--outline:hover { border-color: var(--abyss); background: var(--abyss); color: var(--on-dark); }

/* ============================================================
   GLASS CARDS
   ============================================================ */

.glass {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.glass::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(95, 179, 217, 0.12), transparent 50%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/></filter><rect width='120' height='120' filter='url(%23n)'/></svg>");
  pointer-events: none;
  opacity: 0.7;
}

/* ============================================================
   LIVE RIBBON / TICKER
   ============================================================ */

.ticker {
  background: var(--coral);
  color: white;
  padding: 0.85rem 0;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}

.ticker__track {
  display: inline-flex;
  gap: 3rem;
  animation: ticker 50s linear infinite;
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.ticker__item::before {
  content: '◆';
  font-size: 0.6rem;
  opacity: 0.6;
}

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

/* ============================================================
   GALLERY SLIDER
   ============================================================ */

.gallery {
  background: var(--abyss);
  color: var(--on-dark);
  padding: clamp(4rem, 9vw, 7rem) 0;
  position: relative;
  overflow: hidden;
}

.gallery__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 0 var(--gutter);
  margin-bottom: 3rem;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.gallery__title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.gallery__controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.gallery__ctrl {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line-dark-strong);
  color: var(--on-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--d-fast);
}
.gallery__ctrl:hover { background: var(--surf); color: var(--abyss); border-color: var(--surf); }
.gallery__ctrl:disabled { opacity: 0.3; cursor: not-allowed; }

.gallery__count {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--on-dark-soft);
  min-width: 4.5ch;
  text-align: center;
}

.gallery__track-wrap {
  padding: 0 var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}

.gallery__track {
  display: flex;
  gap: 1.5rem;
  transition: transform var(--d-slow) var(--ease-out);
  will-change: transform;
}

.gallery__slide {
  flex: 0 0 calc((100% - 3rem) / 3);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  cursor: pointer;
  transition: transform var(--d-med) var(--ease-out);
}

.gallery__slide:hover { transform: translateY(-6px); }

.gallery__image {
  aspect-ratio: 4/5;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: var(--deep);
}

.gallery__image svg { width: 100%; height: 100%; }

.gallery__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(6, 18, 31, 0.7));
}

.gallery__caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.gallery__caption h4 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.gallery__caption .num {
  font-size: 0.78rem;
  color: var(--on-dark-faint);
}

@media (max-width: 900px) {
  .gallery__slide { flex: 0 0 calc((100% - 1.5rem) / 2); }
}
@media (max-width: 560px) {
  .gallery__slide { flex: 0 0 80%; }
}

/* ============================================================
   NEWS GRID
   ============================================================ */

.news-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 980px) {
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card--lead { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .news-grid { grid-template-columns: 1fr; }
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform var(--d-med) var(--ease-out);
}

.news-card:hover { transform: translateY(-4px); }

.news-card__img {
  aspect-ratio: 16/10;
  border-radius: 14px;
  overflow: hidden;
  background: var(--deep);
  position: relative;
}

.news-card__img svg { width: 100%; height: 100%; }

.news-card__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6, 18, 31, 0.3), transparent 50%);
}

.news-card--lead .news-card__img { aspect-ratio: 4/5; }

.news-card__meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.news-card__meta-tag {
  padding: 0.25rem 0.65rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 4px;
  letter-spacing: 0.12em;
}

.news-card__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  line-height: 1.15;
  text-wrap: balance;
}

.news-card--lead .news-card__title { font-size: clamp(1.5rem, 2.5vw, 2.1rem); }

.news-card__excerpt {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ============================================================
   EVENTS LIST
   ============================================================ */

.events {
  background: var(--shore);
}

.event {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
  transition: padding var(--d-fast);
  position: relative;
}

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

.event:hover { padding-left: 1rem; }

.event::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--paper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--d-med) var(--ease-out);
  z-index: -1;
  border-radius: 8px;
}
.event:hover::before { transform: scaleX(1); }

.event > * { position: relative; }

.event__date {
  font-family: var(--f-display);
  font-weight: 500;
  text-align: center;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.event__day {
  display: block;
  font-size: 2.4rem;
}

.event__month {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 0.35rem;
  color: var(--ink-faint);
  font-weight: 400;
}

.event__body { min-width: 0; }

.event__discipline {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tide);
  margin-bottom: 0.4rem;
}

.event__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.5vw, 1.4rem);
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.event__loc {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.event__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.event__cta svg { transition: transform var(--d-fast); }
.event:hover .event__cta svg { transform: translateX(4px); }

@media (max-width: 700px) {
  .event { grid-template-columns: 70px 1fr; gap: 1.2rem; }
  .event__cta { grid-column: 2; justify-self: start; margin-top: 0.5rem; }
  .event__day { font-size: 1.9rem; }
}

/* ============================================================
   CALENDAR
   ============================================================ */

.cal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 980px) { .cal-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cal-grid { grid-template-columns: 1fr; } }

.cal-card {
  padding: 1.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--d-med) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.cal-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--surf);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--d-med) var(--ease-out);
}

.cal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -16px rgba(6, 18, 31, 0.18);
  border-color: transparent;
}

.cal-card:hover::before { transform: scaleY(1); }

.cal-card__date {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--ocean);
  font-weight: 500;
}

.cal-card__discipline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.cal-card__discipline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surf);
}
.cal-card__discipline--swim .cal-card__discipline-dot { background: var(--tide); }
.cal-card__discipline--polo .cal-card__discipline-dot { background: var(--coral); }
.cal-card__discipline--synchro .cal-card__discipline-dot { background: var(--gold); }
.cal-card__discipline--dive .cal-card__discipline-dot { background: var(--bronze); }

.cal-card__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
  flex: 1;
}

.cal-card__loc {
  font-size: 0.85rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--abyss);
  color: var(--on-dark);
  padding: 5rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.site-footer__waves {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 80px;
  pointer-events: none;
  opacity: 0.3;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

.site-footer__title {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  max-width: 14ch;
}

.site-footer__lead {
  color: var(--on-dark-soft);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 38ch;
}

.site-footer__col-title {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
  margin-bottom: 1.4rem;
}

.site-footer__link {
  display: block;
  padding: 0.35rem 0;
  color: var(--on-dark-soft);
  font-size: 0.92rem;
  transition: color var(--d-fast), padding var(--d-fast);
}
.site-footer__link:hover { color: var(--foam); padding-left: 0.4rem; }

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--line-dark);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--on-dark-faint);
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer__bottom a:hover { color: var(--foam); }

/* ============================================================
   DEPTH INDICATOR
   ============================================================ */

.depth {
  position: fixed;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--on-dark-faint);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--d-med);
  mix-blend-mode: difference;
}

.depth.is-visible { opacity: 1; }

.depth__rail {
  width: 1px;
  height: 180px;
  background: rgba(255,255,255,0.3);
  position: relative;
}

.depth__fill {
  position: absolute;
  left: -1px;
  top: 0;
  width: 3px;
  background: white;
  height: 0%;
  transition: height 60ms linear;
}

.depth__num {
  text-align: center;
  min-width: 4ch;
  color: white;
}

@media (max-width: 980px) { .depth { display: none; } }

/* ============================================================
   PAGE HEADER (non-home pages)
   ============================================================ */

.page-hero {
  position: relative;
  background: var(--abyss);
  color: var(--on-dark);
  padding: 11rem 0 5rem;
  overflow: hidden;
  isolation: isolate;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(95, 179, 217, 0.16), transparent 60%),
    linear-gradient(180deg, var(--abyss), var(--deep));
}

.page-hero__waves {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 70%;
  z-index: -1;
  opacity: 0.6;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.7rem;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
  margin-bottom: 2rem;
}

.crumbs a { color: var(--on-dark-soft); }
.crumbs a:hover { color: var(--foam); }
.crumbs__sep { opacity: 0.4; }

.page-hero__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 5.5vw, 4.8rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
  max-width: 22ch;
}

.page-hero__lead {
  color: var(--on-dark-soft);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.55;
  max-width: 56ch;
  margin-top: 1.8rem;
}

/* ============================================================
   GENERIC GRID/PROSE PAGE COMPONENTS
   ============================================================ */

.prose {
  max-width: 70ch;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.7;
}

.prose > * + * { margin-top: 1.1rem; }
.prose h2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-top: 2.5rem;
}
.prose h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin-top: 2rem;
}
.prose p { color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.4rem; color: var(--ink-soft); }
.prose ul li { list-style: none; position: relative; padding-left: 1rem; }
.prose ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.7em;
  width: 0.5rem; height: 1px;
  background: var(--tide);
}
.prose blockquote {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.3;
  color: var(--ocean);
  border-left: 2px solid var(--tide);
  padding-left: 1.5rem;
  margin: 2rem 0;
}

/* Two-col layout for content pages */
.split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 5rem);
}

@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.split__aside {
  position: sticky;
  top: 100px;
  height: max-content;
}

.split__label {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1rem;
}

.split__heading {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

/* ============================================================
   STAT BLOCKS
   ============================================================ */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } }

.stat {
  padding: 2rem 1.5rem;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; }

@media (max-width: 700px) {
  .stat:nth-child(odd) { border-left: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

.stat__num {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--abyss);
}

.stat__label {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.7rem;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--d-slow) var(--ease-out), transform var(--d-slow) var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--d-slow) var(--ease-out), transform var(--d-slow) var(--ease-out);
}

[data-reveal-stagger].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-stagger].is-visible > *:nth-child(1) { transition-delay: 0s; }
[data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: 0.08s; }
[data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 0.16s; }
[data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 0.24s; }
[data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: 0.32s; }
[data-reveal-stagger].is-visible > *:nth-child(6) { transition-delay: 0.40s; }

/* ============================================================
   LIVE STATUS
   ============================================================ */

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  background: var(--coral);
  color: white;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.live-status::before {
  content: '';
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: pulse 1.6s infinite;
}

/* ============================================================
   RESULTS · SPLASH MEET MANAGER
   ============================================================ */

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

.btn--sm {
  gap: 0.45rem;
  padding: 0.62rem 1.15rem;
  font-size: 0.82rem;
}

.btn.is-off {
  opacity: 0.5;
  cursor: default;
}

.meet-state {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.meet-state::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--tide);
  border-radius: 50%;
}

.meet-state--upcoming::before { background: var(--gold); }

/* --- page hero with meet card --- */

.page-hero--meet { padding-bottom: clamp(3rem, 6vw, 4.5rem); }

.page-hero__title--meet {
  max-width: 26ch;
  font-size: clamp(1.8rem, 3.8vw, 3.2rem);
  line-height: 1.06;
  text-wrap: balance;
}

.page-hero__card {
  opacity: 0;
  transform: translateY(16px);
  animation: hero-rise var(--d-slow) var(--ease-out) 0.15s forwards;
}

.meet-card {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 4vw, 3.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.4rem, 3vw, 2.25rem);
  color: var(--on-dark);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.meet-card__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.4rem;
}

.meet-card__src {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
}

.meet-card__title {
  margin-bottom: 1.6rem;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

.meet-card__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, auto));
  justify-content: start;
  gap: 1rem 2.25rem;
}

.meet-card__facts dt {
  margin-bottom: 0.35rem;
  font-family: var(--f-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
}

.meet-card__facts dd {
  font-size: 0.95rem;
  line-height: 1.4;
}

.meet-card__side {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding-left: clamp(1.5rem, 3vw, 2.5rem);
  border-left: 1px solid var(--line-dark);
}

.meet-card__progress,
.live-meet__progress {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.meet-card__progress-num {
  font-size: 0.92rem;
  color: var(--on-dark-soft);
}

.meet-card__progress-num b,
.live-meet__progress-num b {
  margin-right: 0.15rem;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--on-dark);
}

.meet-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.meet-card .meet-state,
.live-meet--hero .meet-state,
.live-meet--wide .meet-state {
  color: var(--on-dark-soft);
  border-color: var(--line-dark-strong);
}

.meet-bar {
  display: block;
  width: 100%;
  height: 4px;
  overflow: hidden;
  color: var(--surf);
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  border-radius: 4px;
  -webkit-appearance: none;
  appearance: none;
}

.meet-bar::-webkit-progress-bar {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

.meet-bar::-webkit-progress-value {
  background: linear-gradient(90deg, var(--tide), var(--surf));
  border-radius: 4px;
}

.meet-bar::-moz-progress-bar {
  background: linear-gradient(90deg, var(--tide), var(--surf));
  border-radius: 4px;
}

.meet-sync {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  line-height: 1.6;
  color: var(--on-dark-faint);
}

.meet-sync--demo {
  padding: 0.7rem 0.9rem;
  color: var(--gold);
  background: rgba(212, 169, 58, 0.08);
  border: 1px solid rgba(212, 169, 58, 0.28);
  border-radius: 10px;
}

.meet-sync--live::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.55rem;
  vertical-align: 0.05em;
  background: var(--surf);
  border-radius: 50%;
}

@media (max-width: 980px) {
  .meet-card { grid-template-columns: 1fr; }
  .meet-card__side {
    padding: 1.5rem 0 0;
    border-left: 0;
    border-top: 1px solid var(--line-dark);
  }
  .meet-card__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.meet-loading {
  padding: 3rem 0;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--ink-soft);
}

/* --- toolbar: views, filters, days --- */

.meet-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
}

.meet-toolbar__count,
.filters__count {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.meet-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--shore);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.meet-tabs__tab {
  padding: 0.7rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: background var(--d-fast), color var(--d-fast);
}

.meet-tabs__tab:hover { color: var(--ink); }

.meet-tabs__tab[aria-selected='true'] {
  color: var(--paper);
  background: var(--abyss);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-bottom: 1.75rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.filters__group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.filters__label,
.season-nav__label {
  margin-right: 0.4rem;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.filters__count { margin-left: auto; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  line-height: 1.2;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: background var(--d-fast), color var(--d-fast), border-color var(--d-fast);
}

.chip:hover { border-color: var(--ink); }

.chip[aria-pressed='true'] {
  color: var(--paper);
  background: var(--abyss);
  border-color: var(--abyss);
}

.chip--toggle::before {
  content: '';
  width: 10px;
  height: 10px;
  border: 1px solid currentColor;
  border-radius: 3px;
}

.chip--toggle[aria-pressed='true']::before {
  background: var(--surf);
  border-color: var(--surf);
}

.select {
  padding: 0.5rem 2.3rem 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--ink);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5L5 6.5L8 3.5' fill='none' stroke='%2306121f' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 1rem center / 10px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.search {
  flex: 1 1 220px;
  max-width: 300px;
}

.search__input {
  width: 100%;
  padding: 0.55rem 1rem 0.55rem 2.4rem;
  font-size: 0.85rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Ccircle cx='6' cy='6' r='4.5' fill='none' stroke='%2306121f' stroke-opacity='.55' stroke-width='1.3'/%3E%3Cpath d='M9.5 9.5L13 13' stroke='%2306121f' stroke-opacity='.55' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 1rem center / 14px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.search__input::placeholder { color: var(--ink-faint); }

.meet-days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.meet-days[hidden] { display: none; }

.meet-day {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.25rem;
  overflow: hidden;
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform var(--d-med) var(--ease-out), box-shadow var(--d-med) var(--ease-out), background var(--d-fast), border-color var(--d-fast);
}

.meet-day::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--surf);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--d-med) var(--ease-out);
}

.meet-day:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -16px rgba(6, 18, 31, 0.2);
}

.meet-day:hover::before { transform: scaleY(1); }

.meet-day[aria-selected='true'] {
  color: var(--on-dark);
  background: var(--abyss);
  border-color: var(--abyss);
}

.meet-day__name {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.meet-day__now {
  padding: 0.2rem 0.5rem;
  font-family: var(--f-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: white;
  background: var(--coral);
  border-radius: 4px;
}

.meet-day__date {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.meet-day__meta {
  font-size: 0.82rem;
  color: var(--ink-faint);
}

.meet-day[aria-selected='true'] .meet-day__date { color: var(--on-dark-soft); }
.meet-day[aria-selected='true'] .meet-day__meta { color: var(--on-dark-faint); }

.meet-tabs__tab:focus-visible,
.chip:focus-visible,
.meet-day:focus-visible,
.pdf-btn:focus-visible,
.select:focus-visible,
.search__input:focus-visible {
  outline: 2px solid var(--tide);
  outline-offset: 2px;
}

/* --- sessions & protocol table --- */

.session + .session { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

.session__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-strong);
}

.session__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1rem;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.session__no {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tide);
}

.session__count {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  color: var(--ink-soft);
}

.proto-wrap { overflow-x: auto; }

.proto {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.proto th {
  padding: 0.9rem 0.6rem;
  font-family: var(--f-mono);
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--line);
}

.proto td {
  padding: 0.75rem 0.6rem;
  font-size: 0.92rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 1280px) {
  .proto { table-layout: fixed; }
  .proto th:nth-child(1) { width: 4%; }
  .proto th:nth-child(2) { width: 7%; }
  .proto th:nth-child(3) { width: 9%; }
  .proto th:nth-child(4) { width: 20%; }
  .proto th:nth-child(5) { width: 15%; }
  .proto th:nth-child(6) { width: 9%; }
  .proto th:nth-child(7) { width: 17%; }
  .proto th:nth-child(8) { width: 19%; }
}

.proto tbody tr { transition: background var(--d-fast); }
.proto tbody tr:hover { background: var(--shore); }

.proto__n {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.proto__time {
  font-family: var(--f-mono);
  font-weight: 500;
  white-space: nowrap;
  color: var(--abyss);
}

.proto__g { color: var(--ink-soft); }
.proto__dist { font-weight: 500; }

.proto__round,
.proto__age {
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.proto__age { white-space: nowrap; }

.proto__status .pstatus,
.proto__status .next-badge { margin: 0.15rem 0; }

.proto__row--award td {
  color: var(--ink-soft);
  background: rgba(244, 241, 232, 0.7);
}

.proto__row--award .proto__dist { font-weight: 400; }

.proto__row--next td { background: rgba(95, 179, 217, 0.1); }
.proto__row--next td:first-child { box-shadow: inset 3px 0 0 var(--coral); }

.proto__none { color: var(--ink-faint); }

.pstatus,
.next-badge {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 4px;
}

.pstatus--res { color: var(--ocean); background: rgba(42, 124, 170, 0.12); }
.pstatus--start { color: #77560f; background: rgba(212, 169, 58, 0.2); }
.pstatus--wait { color: var(--ink-soft); background: rgba(6, 18, 31, 0.06); }
.pstatus--award { color: var(--ink-soft); box-shadow: inset 0 0 0 1px var(--line-strong); }

.next-badge {
  margin-left: 0.4rem;
  color: white;
  background: var(--coral);
}

.pdf-pair {
  display: inline-flex;
  gap: 0.4rem;
}

.pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 34px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: background var(--d-fast), color var(--d-fast), border-color var(--d-fast);
}

a.pdf-btn:hover {
  color: var(--paper);
  background: var(--abyss);
  border-color: var(--abyss);
}

.pdf-btn.is-off {
  color: var(--ink-faint);
  background: transparent;
  border-style: dashed;
  cursor: default;
}

.pdf-btn__icon { flex-shrink: 0; }

/* --- distances view --- */

.dist-group + .dist-group { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

.dist-group__title {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  letter-spacing: -0.015em;
  border-bottom: 1px solid var(--line-strong);
}

.dist-cols {
  display: grid;
  gap: 1.5rem 3rem;
}

.dist-cols--2 { grid-template-columns: 1fr 1fr; }

.dist-col__title {
  margin-bottom: 0.5rem;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tide);
}

.dist-col__empty {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.dist-list { border-top: 1px solid var(--line); }

.dist-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 0.5rem 1rem;
  align-items: center;
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid var(--line);
}

.dist-item__d {
  font-family: var(--f-mono);
  font-weight: 500;
  color: var(--abyss);
}

.dist-item__meta {
  display: flex;
  flex-direction: column;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.meet-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--ink-soft);
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
}

.meet-empty__title {
  margin-bottom: 0.4rem;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--ink);
}

.meet-empty a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .meet-toolbar { align-items: stretch; }
  .meet-tabs { display: flex; width: 100%; }
  .meet-tabs__tab {
    flex: 1;
    padding: 0.7rem 0.5rem;
    font-size: 0.85rem;
  }
  .filters { gap: 0.9rem 1.25rem; }
  .search {
    flex-basis: 100%;
    max-width: none;
  }
  .filters__count { margin-left: 0; }

  .meet-days {
    grid-template-columns: none;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
  }
  .meet-day { padding: 0.8rem 0.85rem; }
  .meet-day__name { font-size: 1rem; }
  .meet-day__now,
  .meet-day__meta { display: none; }
  .meet-day--now .meet-day__name::after {
    content: '';
    width: 7px;
    height: 7px;
    background: var(--coral);
    border-radius: 50%;
  }

  .proto-wrap { overflow: visible; }
  .proto thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .proto,
  .proto tbody { display: block; }
  .proto tr {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 0.35rem 0.75rem;
    align-items: center;
    margin-top: 0.75rem;
    padding: 1rem 1.1rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
  }
  .proto tbody tr:hover { background: var(--paper); }
  .proto td {
    padding: 0;
    border: 0;
  }
  .proto__n { grid-column: 1; grid-row: 1; }
  .proto__n::before { content: '№ '; }
  .proto__time { grid-column: 2; grid-row: 1; }
  .proto__status {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    text-align: right;
  }
  .proto__g {
    grid-column: 1 / -1;
    grid-row: 2;
    font-weight: 500;
    color: var(--ink);
  }
  .proto__dist {
    grid-column: 1 / -1;
    grid-row: 3;
    font-family: var(--f-display);
    font-size: 1.05rem;
    letter-spacing: -0.01em;
  }
  .proto__round { grid-column: 1 / 3; }
  .proto__age {
    grid-column: 3;
    justify-self: end;
  }
  .proto__files {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
  }
  .proto__row--award { background: var(--shore); }
  .proto__row--award td { background: transparent; }
  .proto__row--award .proto__files { display: none; }
  .proto__row--next {
    border-color: var(--surf);
    box-shadow: inset 3px 0 0 var(--coral);
  }
  .proto__row--next td,
  .proto__row--next td:first-child {
    background: transparent;
    box-shadow: none;
  }
  .pdf-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 0.5rem;
  }
  .pdf-btn {
    justify-content: center;
    min-height: 44px;
    font-size: 0.85rem;
  }

  .dist-cols--2 { grid-template-columns: 1fr; }
  .dist-item { grid-template-columns: 60px minmax(0, 1fr); }
  .dist-item .pdf-pair { grid-column: 1 / -1; }
}

/* --- current meet: compact card (home, competitions, results, records) --- */

.live-meet {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1.4rem, 2.5vw, 1.9rem);
  border-radius: 22px;
}

.live-meet--hero,
.live-meet--wide {
  color: var(--on-dark);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.live-meet--light {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.live-meet--wide,
.live-meet--light {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 1.5rem clamp(2rem, 4vw, 3.5rem);
}

.live-meet--wide .live-meet__next,
.live-meet--light .live-meet__next {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.live-meet__info {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.live-meet__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.live-meet__upd {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

.live-meet__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-wrap: balance;
}

.live-meet__title a { transition: color var(--d-fast); }
.live-meet__title a:hover { color: var(--tide); }

.live-meet__meta {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.live-meet__progress-num {
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.live-meet__progress-num b {
  font-size: 1.25rem;
  color: var(--ink);
}

.live-meet--light .meet-bar { background: rgba(6, 18, 31, 0.08); }
.live-meet--light .meet-bar::-webkit-progress-bar { background: rgba(6, 18, 31, 0.08); }

.live-meet__sub {
  margin-bottom: 0.35rem;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.next-list li {
  display: grid;
  grid-template-columns: 6.2rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.6rem 0;
  font-size: 0.86rem;
  border-bottom: 1px solid var(--line);
}

.next-list li:last-child { border-bottom: 0; }
.next-list li:first-child .next-list__what { font-weight: 500; }

.next-list__time {
  font-family: var(--f-mono);
  font-weight: 500;
  color: var(--tide);
}

.live-meet__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.live-meet--hero .live-meet__upd,
.live-meet--wide .live-meet__upd,
.live-meet--hero .live-meet__sub,
.live-meet--wide .live-meet__sub { color: var(--on-dark-faint); }

.live-meet--hero .live-meet__meta,
.live-meet--wide .live-meet__meta,
.live-meet--hero .live-meet__progress-num,
.live-meet--wide .live-meet__progress-num { color: var(--on-dark-soft); }

.live-meet--hero .live-meet__progress-num b,
.live-meet--wide .live-meet__progress-num b { color: var(--on-dark); }

.live-meet--hero .live-meet__title a:hover,
.live-meet--wide .live-meet__title a:hover { color: var(--foam); }

.live-meet--hero .next-list li,
.live-meet--wide .next-list li { border-color: var(--line-dark); }

.live-meet--hero .next-list__time,
.live-meet--wide .next-list__time { color: var(--surf); }

.live-meet--hero {
  gap: 1rem;
  padding: 1.4rem 1.5rem;
}

.live-meet--hero .live-meet__title { font-size: 1.05rem; }

@media (max-width: 820px) {
  .live-meet--wide,
  .live-meet--light { grid-template-columns: 1fr; }
  .live-meet--wide .live-meet__next,
  .live-meet--light .live-meet__next {
    grid-column: auto;
    grid-row: auto;
  }
}

/* home hero: intro + current meet */
.hero__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 2.5rem clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.hero__live {
  margin-top: 2rem;
  opacity: 0;
  animation: hero-rise var(--d-slow) var(--ease-out) 0.95s forwards;
}

@media (max-width: 980px) {
  .hero__split { grid-template-columns: 1fr; }
  .hero__live {
    max-width: 560px;
    margin-top: 0;
  }
}

/* competitions page */
.cal-card--live {
  border-color: var(--coral);
  background: rgba(255, 91, 59, 0.04);
}
.cal-card--live .cal-card__discipline { color: var(--coral); }
.cal-card--live .cal-card__discipline-dot {
  background: var(--coral);
  animation: pulse 1.6s infinite;
}

.competitions-now__title { color: var(--on-dark); }

/* --- finished meets & PDF protocols --- */

.results-now { background: var(--shore); }
.results-now__head { margin-bottom: 1.75rem; }

.results-block + .results-block { margin-top: clamp(3rem, 6vw, 4.5rem); }

.results-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 0.6rem;
}

.results-block__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.results-block__count {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  color: var(--ink-soft);
}

.results-block__note {
  max-width: 70ch;
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.meet-row { grid-template-columns: 90px minmax(0, 1fr) auto; }

.meet-row__year {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

.meet-row__link { transition: color var(--d-fast); }
.meet-row__link:hover { color: var(--tide); }

.meet-row__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}

.meet-row__actions .btn { justify-content: center; }

@media (max-width: 700px) {
  .meet-row { grid-template-columns: 70px minmax(0, 1fr); }
  .meet-row__actions {
    grid-column: 2;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.doc__sub {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ink-soft);
}

.doc__icon.doc__icon--swim { color: white; background: var(--tide); }
.doc__icon.doc__icon--polo { color: white; background: var(--coral); }
.doc__icon.doc__icon--synchro { color: var(--abyss); background: var(--gold); }
.doc__icon.doc__icon--dive { color: white; background: var(--bronze); }

.results-more {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.season-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.archive-season { scroll-margin-top: 90px; }

.archive-season__head {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  margin-bottom: 1.75rem;
}

.archive-season__sum { color: var(--ink-soft); }

/* records page */
.records-now { padding-bottom: 0; }

@media (max-width: 600px) {
  .records-table {
    display: block;
    overflow-x: auto;
  }
}

.records-current {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--shore);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: inset 3px 0 0 var(--coral);
}

.records-current__body {
  display: flex;
  flex: 1 1 420px;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.records-current__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.records-current__text {
  max-width: 64ch;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.records-current__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 420px) {
  .records-current__actions .btn,
  .live-meet__actions .btn {
    white-space: normal;
  }
}

/* notice for protocols that are not published yet */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 200;
  max-width: min(92vw, 520px);
  padding: 0.9rem 1.25rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--on-dark);
  background: rgba(6, 18, 31, 0.94);
  border: 1px solid rgba(95, 179, 217, 0.25);
  border-radius: 14px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 1rem);
  transition: opacity var(--d-fast), transform var(--d-med) var(--ease-out);
}

.toast.is-shown {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ============================================================
   GALLERY DETAIL GRID
   ============================================================ */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  grid-auto-rows: 120px;
}

.photo {
  border-radius: 10px;
  overflow: hidden;
  background: var(--deep);
  cursor: zoom-in;
  transition: transform var(--d-med) var(--ease-out);
}
.photo:hover { transform: scale(1.02); }
.photo svg { width: 100%; height: 100%; }

.photo--1 { grid-column: span 6; grid-row: span 3; }
.photo--2 { grid-column: span 6; grid-row: span 2; }
.photo--3 { grid-column: span 3; grid-row: span 2; }
.photo--4 { grid-column: span 3; grid-row: span 2; }
.photo--5 { grid-column: span 4; grid-row: span 3; }
.photo--6 { grid-column: span 4; grid-row: span 2; }
.photo--7 { grid-column: span 4; grid-row: span 2; }
.photo--8 { grid-column: span 6; grid-row: span 2; }
.photo--9 { grid-column: span 6; grid-row: span 3; }

@media (max-width: 800px) {
  .photo-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 90px; }
  .photo--1 { grid-column: span 4; grid-row: span 3; }
  .photo--2, .photo--3, .photo--4, .photo--5, .photo--6, .photo--7, .photo--8, .photo--9 {
    grid-column: span 2; grid-row: span 2;
  }
}

/* ============================================================
   ATHLETE / PERSON CARDS
   ============================================================ */

.people-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 980px) { .people-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .people-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .people-grid { grid-template-columns: 1fr; } }

.person {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform var(--d-med) var(--ease-out);
}
.person:hover { transform: translateY(-4px); }

.person__img {
  aspect-ratio: 3/4;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--ocean), var(--deep));
  position: relative;
}
.person__img svg { width: 100%; height: 100%; }

.person__discipline {
  position: absolute;
  top: 0.8rem; left: 0.8rem;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: white;
  padding: 0.25rem 0.6rem;
  background: rgba(6, 18, 31, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 4px;
}

.person__name {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.person__role {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.person__achievements {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.3rem;
}

/* ============================================================
   DOCUMENTS LIST
   ============================================================ */

.docs-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.doc {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.2rem 0.5rem;
  border-bottom: 1px solid var(--line);
  transition: padding var(--d-fast);
}

.doc:hover { padding-left: 1.2rem; background: var(--shore); }

.doc__icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--deep);
  color: var(--foam);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

.doc__title {
  font-weight: 500;
  font-size: 0.98rem;
}

.doc__meta {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
}

.doc__size {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  color: var(--ink-faint);
}

@media (max-width: 700px) {
  .doc { grid-template-columns: auto 1fr; gap: 1rem; }
  .doc__meta, .doc__size { grid-column: 2; font-size: 0.7rem; margin-top: -0.3rem; }
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.contact-card__icon {
  width: 44px; height: 44px;
  background: var(--abyss);
  color: var(--foam);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.contact-card__label {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.6rem;
}

.contact-card__value {
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.contact-card__value a:hover { color: var(--tide); }

/* ============================================================
   RECORDS TABLE
   ============================================================ */

.records-table {
  width: 100%;
  border-collapse: collapse;
}

.records-table th {
  text-align: left;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 400;
  padding: 1rem 0.5rem;
  border-bottom: 1px solid var(--line);
}

.records-table td {
  padding: 1.1rem 0.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  vertical-align: top;
}

.records-table tr { transition: background var(--d-fast); }
.records-table tbody tr:hover { background: var(--shore); }

.records-table .time {
  font-family: var(--f-mono);
  font-weight: 500;
  color: var(--abyss);
}

/* ============================================================
   PAGINATION
   ============================================================ */

.pagination {
  display: flex;
  gap: 0.3rem;
  justify-content: center;
  margin-top: 3rem;
}

.pagination a, .pagination span {
  min-width: 40px;
  height: 40px;
  padding: 0 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  transition: all var(--d-fast);
}

.pagination a:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.pagination .is-current { background: var(--abyss); color: var(--paper); border-color: var(--abyss); }

/* ============================================================
   MISC
   ============================================================ */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--shore);
  color: var(--ink);
  border-radius: 4px;
}

.tag--ocean { background: var(--ocean); color: var(--paper); }
.tag--surf { background: var(--surf); color: var(--abyss); }
.tag--gold { background: var(--gold); color: var(--abyss); }
.tag--coral { background: var(--coral); color: white; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
