/* ============================================
   DYNAPLUS RIJNCUP - STYLESHEET
   ============================================ */

/* --- Design Tokens / Custom Properties --- */
:root {
  /* Colors - Purple (primary) */
  --color-primary-50:  #f3e8ff;
  --color-primary-100: #e0c6ff;
  --color-primary-200: #c990ff;
  --color-primary-300: #b25aff;
  --color-primary-400: #a033ff;
  --color-primary-500: #9200fe;
  --color-primary-600: #7a00d4;
  --color-primary-700: #6200aa;
  --color-primary-800: #4a0080;
  --color-primary-900: #3b0066;

  /* Colors - Teal (accent) */
  --color-accent-50:  #e0f7f5;
  --color-accent-100: #b3ece7;
  --color-accent-200: #80e0d8;
  --color-accent-300: #4dd4c8;
  --color-accent-400: #26cabb;
  --color-accent-500: #00b8a9;
  --color-accent-600: #009e92;
  --color-accent-700: #007d74;

  /* Neutrals */
  --color-gray-50:  #f7f8fa;
  --color-gray-100: #eef0f3;
  --color-gray-200: #d8dce3;
  --color-gray-300: #b0b8c5;
  --color-gray-400: #788a9c;
  --color-gray-500: #546a7a;
  --color-gray-600: #374550;
  --color-gray-700: #1a1a2e;

  --color-white: #ffffff;
  --color-bg: #f7f8fa;
  --color-text: #1a1a2e;
  --color-text-light: #546a7a;

  /* Typography */
  --font-heading: 'Nunito Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;

  /* Spacing (8px grid) */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --container-max: 72rem;
  --container-padding: var(--space-6);

  /* Borders & Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 24px rgba(0,0,0,0.12);
  --shadow-card: 0 2px 8px rgba(146,0,254,0.06);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;

  /* Header */
  --header-height: 6rem;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-primary-500);
  text-decoration: none;
  transition: color var(--duration-fast);
}

a:hover {
  color: var(--color-primary-700);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-text);
}

ul, ol {
  list-style: none;
}

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

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

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 200;
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary-500);
  color: var(--color-white);
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: top var(--duration-fast);
}

.skip-link:focus {
  top: var(--space-2);
  color: var(--color-white);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--color-primary-500);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(146, 0, 254, 0.3);
}

.btn-primary:hover {
  background: var(--color-primary-600);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(146, 0, 254, 0.4);
}

.btn-secondary {
  background: var(--color-accent-500);
  color: var(--color-white);
}

.btn-secondary:hover {
  background: var(--color-accent-600);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.site-header.is-scrolled {
  border-bottom-color: var(--color-gray-200);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 62px;
  width: auto;
  transition: transform var(--duration-normal) var(--ease-out);
}

.logo:hover img {
  transform: scale(1.08);
}

/* Navigation */
.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  border-radius: var(--radius-md);
  transition: color var(--duration-fast), background-color var(--duration-fast);
}

.nav-link:hover {
  color: var(--color-primary-500);
  background: var(--color-primary-50);
}

.nav-link.is-active {
  color: var(--color-primary-500);
  background: var(--color-primary-50);
}

/* Hamburger */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  position: relative;
  transition: background var(--duration-fast);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--duration-normal) var(--ease-out);
}

.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

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

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

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

/* Mobile Navigation */
@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-gray-200);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--duration-normal) var(--ease-out);
  }

  .nav-list.is-open {
    max-height: 400px;
  }

  .nav-link {
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-base);
    border-radius: 0;
    border-bottom: 1px solid var(--color-gray-100);
  }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary-800) 0%, var(--color-primary-500) 50%, var(--color-accent-600) 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/hero-wageningse-muur.png');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  mix-blend-mode: luminosity;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--space-16) 0;
}

.hero-kicker {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-logo {
  display: block;
  height: 120px;
  width: auto;
  margin: var(--space-6) auto;
  filter: drop-shadow(0 2px 16px rgba(0, 0, 0, 0.4));
}

.hero-title {
  font-size: clamp(var(--text-3xl), 6vw, var(--text-5xl));
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-xl));
  color: rgba(255, 255, 255, 0.95);
  max-width: 40ch;
  margin: 0 auto var(--space-3);
  font-weight: 500;
}

.hero-desc {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-8);
}

.hero-cta {
  font-size: var(--text-lg);
  padding: var(--space-4) var(--space-8);
  background: var(--color-white);
  color: var(--color-primary-500);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 2px solid transparent;
}

.hero-cta:hover {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* --- Sections --- */
.section {
  padding: var(--space-16) 0;
}

.section--alt {
  background-color: var(--color-primary-50);
}

.section-title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.section-intro {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  max-width: 65ch;
  margin-bottom: var(--space-10);
}

@media (min-width: 1024px) {
  .section {
    padding: var(--space-24) 0;
  }
}

/* --- Race Cards --- */
.race-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .race-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .race-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.race-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
  border: 1px solid var(--color-gray-100);
  display: flex;
  flex-direction: column;
}

.race-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Card image */
.race-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
}

.race-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
  display: block;
}

.race-card:hover .race-card__image img {
  transform: scale(1.05);
}

/* Card body */
.race-card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Meta row: date | divider | info */
.race-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.race-card__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  text-align: center;
  min-width: 2.2rem;
}

.race-card__day {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1;
  color: var(--color-primary-500);
}

.race-card__month {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  margin-top: 2px;
}

.race-card__divider {
  width: 1px;
  height: 3rem;
  background: var(--color-gray-200);
  flex-shrink: 0;
}

.race-card__info {
  flex: 1;
  min-width: 0;
}

.race-card__location {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  color: var(--color-text-light);
  font-weight: 500;
  margin-bottom: var(--space-1);
}

.race-card__location svg {
  flex-shrink: 0;
  color: var(--color-primary-400);
}

.race-card__weekday {
  display: inline;
  font-size: 0.72rem;
  color: var(--color-text-light);
}

.race-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
  margin-bottom: 0;
}

.race-card__classes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.class-tag {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--color-accent-50);
  color: var(--color-accent-700);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-accent-200);
}

.race-card__links {
  display: flex;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-gray-100);
}

.race-card__links a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary-500);
  transition: color var(--duration-fast);
}

.race-card__links a:hover {
  color: var(--color-primary-700);
  text-decoration: underline;
}

.class-check {
  display: inline-block;
  color: var(--color-accent-600);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1;
}

/* --- Tables --- */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: var(--space-8);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-200);
  background: var(--color-white);
}

.points-table,
.prize-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  white-space: nowrap;
}

.points-table th,
.prize-table th {
  background: var(--color-primary-500);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-4);
  text-align: center;
}

.points-table td,
.prize-table td {
  padding: var(--space-3) var(--space-4);
  text-align: center;
  border-bottom: 1px solid var(--color-gray-100);
}

.points-table tbody tr:nth-child(even),
.prize-table tbody tr:nth-child(even) {
  background: var(--color-gray-50);
}

.points-table tbody tr:hover,
.prize-table tbody tr:hover {
  background: var(--color-primary-50);
}

.points-table tbody tr:first-child td:nth-child(2),
.points-table tbody tr:nth-child(2) td:nth-child(2),
.points-table tbody tr:nth-child(3) td:nth-child(2) {
  color: var(--color-primary-500);
  font-weight: 700;
}

.wedstrijd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.wedstrijd-table th {
  background: var(--color-primary-500);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-4);
  text-align: center;
}

.wedstrijd-table th:nth-child(2) {
  text-align: left;
}

.wedstrijd-table td {
  padding: var(--space-3) var(--space-4);
  text-align: center;
  border-bottom: 1px solid var(--color-gray-100);
}

.wedstrijd-table td:nth-child(2) {
  text-align: left;
  font-weight: 500;
}

.wedstrijd-table tbody tr:nth-child(even) {
  background: var(--color-gray-50);
}

.wedstrijd-table tbody tr:hover {
  background: var(--color-primary-50);
}

.prize-table td:first-child {
  font-weight: 600;
  text-align: left;
  padding-left: var(--space-5);
}

/* --- Google Sheets Embed --- */
.sheet-embed {
  margin-bottom: var(--space-8);
}

.sheet-embed__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-16) var(--space-6);
  background: var(--color-gray-50);
  border: 2px dashed var(--color-gray-200);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--color-text-light);
}

.sheet-embed__icon {
  margin-bottom: var(--space-4);
  color: var(--color-gray-300);
}

.sheet-embed__wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  background: var(--color-white);
}

.sheet-embed__iframe {
  display: block;
  width: 100%;
  min-width: 600px;
  height: 500px;
  border: 0;
}

.sheet-embed__hint {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-top: var(--space-3);
  display: none;
}

@media (max-width: 639px) {
  .sheet-embed__hint {
    display: block;
  }
}

@media (min-width: 1024px) {
  .sheet-embed__iframe {
    min-width: 100%;
    height: 600px;
  }
}

.klassement-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* --- Rules List --- */
.rules-list {
  max-width: 52rem;
  margin-bottom: var(--space-8);
}

.rules-list li {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-5) 0;
  border-bottom: 1px solid rgba(146, 0, 254, 0.1);
}

.rules-list li:last-child {
  border-bottom: none;
}

.rules-list__number {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--color-primary-500);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-lg);
  border-radius: var(--radius-full);
}

.rules-list p {
  max-width: 65ch;
  padding-top: var(--space-2);
}

.rules-extra {
  padding: var(--space-5);
  background: rgba(146, 0, 254, 0.05);
  border-left: 3px solid var(--color-primary-300);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--color-text-light);
  font-size: var(--text-sm);
  max-width: 52rem;
  margin-bottom: var(--space-12);
}

/* --- Jersey Showcase --- */
.jersey-showcase {
  text-align: center;
  margin-top: var(--space-12);
}

.jersey-showcase__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.jersey-showcase__subtitle {
  color: var(--color-text-light);
  margin-bottom: var(--space-8);
}

.jersey-showcase__images {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.jersey-showcase__images img {
  width: 240px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--duration-normal) var(--ease-out);
}

.jersey-showcase__images img:hover {
  transform: scale(1.03);
}

/* --- Contact Grid --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  color: var(--color-text);
}

.contact-card:hover {
  border-color: var(--color-primary-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--color-text);
}

.contact-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.contact-card p {
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

.contact-card__arrow {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  font-size: var(--text-xl);
  color: var(--color-primary-300);
  transition: transform var(--duration-normal) var(--ease-out), color var(--duration-fast);
}

.contact-card:hover .contact-card__arrow {
  transform: translateX(4px);
  color: var(--color-primary-500);
}

/* --- Footer --- */
.site-footer {
  background: var(--color-gray-700);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-12) 0 var(--space-8);
}

.footer-sponsors {
  text-align: center;
  margin-bottom: var(--space-8);
}

.footer-sponsors__label {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
  color: rgba(255, 255, 255, 0.5);
}

.footer-sponsors__logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.footer-sponsors__logos a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all var(--duration-fast);
  opacity: 0.85;
}

.footer-sponsors__logos a:hover {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.footer-sponsors__logos img {
  height: 72px;
  width: auto;
  display: block;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--text-sm);
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

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

/* Stagger children in reveal-stagger containers */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 400ms; }

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .race-card:hover,
  .contact-card:hover,
  .jersey-showcase__images img:hover,
  .btn:hover,
  .hero-cta:hover {
    transform: none;
  }
}

/* --- Focus styles --- */
:focus-visible {
  outline: 2px solid var(--color-primary-400);
  outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}
