@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Syne:wght@500;600;700;800&display=swap");

:root {
  --ink: #061018;
  --navy: #0a1e2e;
  --navy-mid: #123652;
  --blue-accent: #1b6fb8;
  --sea: #2a8fd4;
  --mist: #e8f1f8;
  --white: #ffffff;
  --accent: #c41e2a;
  --accent-soft: rgba(196, 30, 42, 0.12);
  --text: #0d1820;
  --muted: #4a5f72;
  --line: rgba(18, 54, 82, 0.12);
  --shadow: 0 24px 60px rgba(6, 16, 24, 0.14);
  --shadow-sm: 0 8px 24px rgba(6, 16, 24, 0.08);
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1180px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
  --space-section: clamp(4.5rem, 10vw, 7rem);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  overflow-x: clip;
  max-width: 100%;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--text);
  background: var(--mist);
  line-height: 1.65;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
}

body.lightbox-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: Syne, system-ui, sans-serif;
  line-height: 1.08;
  margin: 0 0 0.65em;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.35rem, 5vw, 4.25rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.85rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 700;
}

.container {
  width: min(92vw, var(--max));
  margin: 0 auto;
}

.container--narrow {
  width: min(88vw, 720px);
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--white);
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

/* Header */
.site-header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glass {
  backdrop-filter: blur(16px) saturate(140%);
  background: rgba(6, 16, 24, 0.72);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand img {
  height: 42px;
  width: auto;
  border-radius: 10px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.menu a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  transition: color 240ms var(--ease-out), background 240ms var(--ease-out);
}

.menu a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.menu a.active {
  color: var(--white);
  background: rgba(196, 30, 42, 0.35);
}

.nav-toggle {
  display: none;
}

/* Hero */
.full-screen,
.mini-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: clip;
}

.mini-hero {
  min-height: 72svh;
}

.mini-hero > .container.mini-content {
  justify-self: start;
  width: 100%;
  min-width: 0;
}

.hero-media,
.mini-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: scale(1.08);
  will-change: transform;
}

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

/* Hero: léger effet type « film » (Ken Burns) — paires bien avec le parallaxe */
@media (prefers-reduced-motion: no-preference) {
  .hero-media--cinematic > img {
    animation: heroKenBurns 32s ease-in-out infinite alternate;
    transform-origin: 50% 35%;
  }
}

@keyframes heroKenBurns {
  0% {
    transform: scale(1.1) translate(0, 0);
  }
  100% {
    transform: scale(1.18) translate(-1.5%, 1.2%);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 85% at 50% 105%, rgba(6, 16, 24, 0.72) 0%, transparent 52%),
    radial-gradient(ellipse 90% 60% at 18% 22%, rgba(27, 111, 184, 0.12) 0%, transparent 55%),
    linear-gradient(
      168deg,
      rgba(6, 16, 24, 0.2) 0%,
      rgba(6, 16, 24, 0.48) 38%,
      rgba(6, 16, 24, 0.82) 72%,
      rgba(4, 10, 16, 0.94) 100%
    );
}

.hero-content,
.mini-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: calc(var(--header-h) + 3.5rem) 0 clamp(4.75rem, 10vw, 6rem);
  max-width: 820px;
  width: 100%;
  min-width: 0;
}

.full-screen.hero--minimal > .container.hero-content {
  justify-self: start;
}

.hero-title-stack {
  text-wrap: balance;
  margin: 0 0 0.4em;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 32px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(6, 16, 24, 0.2);
}

.hero-content p,
.mini-content p {
  font-size: 1.08rem;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1rem;
}

.kicker {
  font-family: Syne, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-content .kicker,
.mini-content .kicker {
  color: #ff8a95;
}

.hero-content .hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1rem;
  max-width: 52ch;
}

.hero--minimal .hero-content {
  max-width: min(650px, 100%);
}

.hero--minimal .hero-content .hero-lead {
  max-width: 36ch;
  margin-bottom: 0;
}

.hero-content a {
  color: #b8e0ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-content a:hover {
  color: var(--white);
}

.hero-cta {
  margin-top: clamp(1.85rem, 4vw, 2.35rem);
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.88rem 1.55rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 280ms var(--ease-out), box-shadow 280ms var(--ease-out),
    background 280ms var(--ease-out), border-color 280ms var(--ease-out);
  border: 1px solid transparent;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 12px 32px rgba(196, 30, 42, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 16px 40px rgba(196, 30, 42, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-outline-dark {
  background: transparent;
  border-color: var(--navy-mid);
  color: var(--navy);
}

.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

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

.section--tight {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 720px;
}

.section-head .lead {
  font-size: 1.12rem;
  color: var(--muted);
  margin: 0;
  max-width: 58ch;
}

.section--light {
  background: linear-gradient(180deg, rgba(232, 241, 248, 0.35) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.intro-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.8rem, 4vw, 2.8rem);
}

.intro-block__head {
  margin-bottom: 0.75rem;
}

.intro-block .lead {
  margin: 0;
  color: var(--muted);
  max-width: 68ch;
}

.specs-section {
  position: relative;
  overflow: hidden;
}

.specs-section::before {
  content: "";
  position: absolute;
  inset: -20% 15% 45%;
  background: radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.15), transparent 70%);
  pointer-events: none;
}

.section--dark {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.92);
}

.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section--dark .lead {
  color: rgba(255, 255, 255, 0.72);
}

.section--dark .kicker {
  color: #ff8a95;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 1rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.metric {
  min-width: 0;
  padding: 1.25rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.metric strong {
  display: block;
  font-family: Syne, sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.metric span {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.4;
}

/* Cards */
.cards {
  display: grid;
  gap: 1.25rem;
}

.cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.85rem;
  box-shadow: var(--shadow-sm);
  transition: transform 400ms var(--ease-out), box-shadow 400ms var(--ease-out),
    border-color 400ms var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(27, 111, 184, 0.22);
}

.card ul {
  margin: 0;
  padding-left: 1.15rem;
}

.card li {
  margin-bottom: 0.45rem;
}

.card li:last-child {
  margin-bottom: 0;
}

/* Image frames (zoom + overlay) */
.img-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow-sm);
}

.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 16, 24, 0.55) 100%);
  opacity: 0.85;
  pointer-events: none;
  transition: opacity 450ms var(--ease-out);
}

.img-frame:hover::after {
  opacity: 0.65;
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 720ms var(--ease-out);
}

.img-frame:hover img {
  transform: scale(1.06);
}

.img-frame--tall {
  min-height: 420px;
}

.img-frame--short {
  min-height: 280px;
}

/* Split */
.split-section {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  background: var(--white);
}

.split-media {
  min-height: 520px;
}

.split-media .img-frame {
  height: 100%;
  min-height: 520px;
  border-radius: 0;
}

.split-content {
  padding: clamp(3rem, 6vw, 5rem) min(8vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Visual grid (home) */
.visual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.visual-grid .img-frame {
  min-height: 220px;
}

/* Feature banner immersive */
.feature-banner {
  position: relative;
  padding: clamp(4rem, 9vw, 6rem) 0;
  overflow: hidden;
}

.feature-banner__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.feature-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 8s linear;
}

.feature-banner:hover .feature-banner__bg img {
  transform: scale(1.09);
}

.feature-banner__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, rgba(6, 16, 24, 0.88) 0%, rgba(10, 30, 46, 0.72) 55%, rgba(27, 111, 184, 0.35) 100%);
}

.feature-banner .container {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 720px;
}

.feature-banner h2,
.feature-banner h3 {
  color: var(--white);
}

.feature-banner .kicker {
  color: #ff8a95;
}

.feature-banner p,
.feature-banner li {
  color: rgba(255, 255, 255, 0.88);
}

.feature-banner ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

/* Gallery preview */
.gallery-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-top: 2rem;
}

.gallery-preview a {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: block;
  aspect-ratio: 4/3;
}

.gallery-preview a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}

.gallery-preview a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6, 16, 24, 0.25);
  opacity: 1;
  transition: opacity 400ms var(--ease-out);
}

.gallery-preview a:hover img {
  transform: scale(1.08);
}

.gallery-preview a:hover::after {
  opacity: 0;
}

/* Galerie (bas de page d'accueil) */
.home-gallery {
  position: relative;
  overflow: hidden;
}

.home-gallery::before {
  content: "";
  position: absolute;
  inset: -20% 0 40%;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(42, 143, 212, 0.12), transparent 70%);
  pointer-events: none;
}

.home-gallery__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 1024px) {
  .home-gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .home-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Full gallery page (legacy) */
.gallery-page__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery__item {
  position: relative;
  border: none;
  padding: 0;
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  aspect-ratio: 4/3;
  display: block;
  box-shadow: var(--shadow-sm);
  transition: transform 400ms var(--ease-out), box-shadow 400ms var(--ease-out),
    filter 400ms var(--ease-out);
}

.gallery__item:focus-visible {
  outline: 3px solid var(--sea);
  outline-offset: 3px;
}

.gallery__item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  filter: saturate(1.08) contrast(1.02);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms var(--ease-out);
  pointer-events: none;
}

.gallery__item:hover img {
  transform: scale(1.07);
}

.gallery__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, transparent 40%, rgba(255, 255, 255, 0.12) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.9s var(--ease-out);
  pointer-events: none;
  z-index: 1;
}

.gallery__item:hover .gallery__shine {
  transform: translateX(100%);
}

.gallery__label {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  font-family: Syne, sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 16, 24, 0.92);
  display: grid;
  place-items: center;
  padding: 2rem;
  backdrop-filter: blur(8px);
  isolation: isolate;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 240ms var(--ease-out), transform 240ms var(--ease-out);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 240ms var(--ease-out), transform 240ms var(--ease-out);
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox__nav--prev {
  left: 1.25rem;
}

.lightbox__nav--next {
  right: 1.25rem;
}

.lightbox__figure {
  margin: 0;
  overflow: auto;
  max-width: 94vw;
  max-height: 86vh;
  border-radius: var(--radius-sm);
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.05);
}

.lightbox img {
  max-width: min(92vw, 1200px);
  max-height: 86vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  transform-origin: center center;
  transition: transform 260ms var(--ease-out), opacity 240ms var(--ease-out);
}

.lightbox img.is-switching {
  opacity: 0.35;
}

.lightbox img.is-zoomed {
  cursor: zoom-out;
}

.lightbox:not(.is-zoomed) img {
  cursor: zoom-in;
}

.lightbox__zoom {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 240ms var(--ease-out), transform 240ms var(--ease-out);
}

.lightbox__zoom:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox.is-zoomed .lightbox__zoom {
  background: rgba(196, 30, 42, 0.45);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Calendar / search */
.search-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem 2rem;
}

.search-card label {
  font-family: Syne, sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.search-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.65rem;
}

input[type="text"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  font: inherit;
  background: var(--mist);
  transition: border-color 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}

input[type="text"]:focus {
  outline: none;
  border-color: var(--sea);
  box-shadow: 0 0 0 3px rgba(42, 143, 212, 0.25);
}

.search-result {
  font-weight: 700;
  font-family: Syne, sans-serif;
  color: var(--navy);
  min-height: 2.25rem;
  margin-top: 1rem;
}

/* Timeline */
.timeline-section {
  position: relative;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--sea), var(--blue-accent));
  border-radius: 2px;
}

.timeline__item {
  position: relative;
  padding-left: 3.25rem;
  margin-bottom: 1.5rem;
}

.timeline__item:last-child {
  margin-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: 7px;
  top: 1.35rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--sea);
  box-shadow: 0 0 0 4px rgba(42, 143, 212, 0.2);
}

.regatta-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 380ms var(--ease-out), box-shadow 380ms var(--ease-out);
}

.regatta-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow);
}

.regatta-card__accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--sea));
}

.regatta-card__title {
  margin: 0 0 0.35rem;
  font-family: Syne, sans-serif;
  font-size: 1.2rem;
}

.regatta-card__date {
  margin: 0;
  font-weight: 600;
  color: var(--blue-accent);
  font-size: 1.05rem;
}

.regatta-card--full {
  padding: 0;
  text-align: left;
}

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

.regatta-card__body {
  padding: 1.5rem 1.75rem 1.65rem 1.85rem;
}

.regatta-card__dates {
  margin: 0 0 0.5rem;
  font-weight: 700;
  font-family: Syne, sans-serif;
  color: var(--blue-accent);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.regatta-card--full .regatta-card__title {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  margin-bottom: 0.5rem;
}

.regatta-card__place {
  margin: 0 0 0.65rem;
  font-weight: 600;
  color: var(--navy);
}

.regatta-card__address {
  margin: 0 0 1.15rem;
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.55;
}

.regatta-card__link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
}

.regatta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.regatta-grid > li {
  margin: 0;
}

.gallery-main-title {
  letter-spacing: 0.06em;
}

.documents-h2 {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}

.documents-list {
  margin: 0;
  padding-left: 1.2rem;
}

.documents-list li {
  margin-bottom: 0.5rem;
}

.documents-list li:last-child {
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 1.75rem 0 2rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-grid nav {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.72);
  transition: color 200ms var(--ease-out);
}

.footer-grid a:hover {
  color: var(--white);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Legal content */
.legal-block {
  background: var(--white);
  padding: 2rem 2.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.legal-block .kicker {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 1024px) {
  .gallery-preview {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 980px) {
  .cards.three,
  .cards.two,
  .split-section {
    grid-template-columns: 1fr;
  }

  .split-media .img-frame {
    min-height: 340px;
  }

  .timeline::before {
    left: 10px;
  }

  .timeline__dot {
    left: 3px;
  }

  .timeline__item {
    padding-left: 2.75rem;
  }
}

@media (max-width: 768px) {
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-weight: 700;
    font-family: Syne, sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .menu {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: rgba(6, 16, 24, 0.97);
    padding: 1rem 4vw 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 0.25rem;
  }

  .menu.open {
    display: flex;
  }

  .menu a {
    border-radius: var(--radius-sm);
  }

  body {
    padding-inline: 0;
    -webkit-font-smoothing: antialiased;
  }

  .container {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-inline: 20px;
    box-sizing: border-box;
  }

  .section.section--light,
  .section.section--dark,
  .intro-block,
  .metrics,
  .metric,
  .split-content,
  .feature-banner .container {
    box-sizing: border-box;
  }

  #presentation .intro-block {
    padding: clamp(1.5rem, 5vw, 2rem);
  }

  #presentation .intro-block__head {
    margin-bottom: 1.5rem;
    text-align: center;
  }

  #presentation .intro-block__head .kicker {
    margin-bottom: 1.125rem;
  }

  #presentation .intro-block__head h2 {
    margin-bottom: 1rem;
    text-wrap: balance;
  }

  #presentation .intro-block .lead {
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    max-width: 100%;
    line-height: 1.7;
  }

  #le-bateau .section-head .kicker {
    margin-bottom: 0.9rem;
  }

  #le-bateau .section-head h2 {
    margin-bottom: 0.75rem;
    text-wrap: balance;
  }

  .section-head .lead {
    line-height: 1.65;
    max-width: 100%;
  }

  #le-bateau .section-head .lead {
    margin-top: 0.75rem;
    line-height: 1.62;
  }

  .hero h1.hero-title-stack {
    font-size: clamp(1.45rem, 5.8vw, 2.65rem);
    line-height: 1.08;
  }

  .mini-content h1 {
    font-size: clamp(1.65rem, 5.5vw, 2.25rem);
    line-height: 1.1;
  }

  .hero-content,
  .mini-content {
    padding: calc(var(--header-h) + 2rem) 0 3.25rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 0.68rem;
    margin-top: 1.65rem;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    transition: transform 165ms var(--ease-out), box-shadow 165ms var(--ease-out),
      background 165ms var(--ease-out), border-color 165ms var(--ease-out);
  }

  .metrics {
    gap: 0.85rem 0.65rem;
  }

  .metric {
    padding: 0.95rem 0.55rem;
  }

  .metric strong {
    font-size: clamp(1rem, 4.2vw, 1.45rem);
    line-height: 1.15;
    letter-spacing: -0.018em;
  }

  .metric span {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .hero-media--cinematic > img {
    animation: none;
  }

  .intro-block {
    padding: clamp(1.25rem, 3.5vw, 1.85rem);
  }

  .reveal:not(.revealed) {
    transform: translateY(14px);
  }

  .reveal {
    transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
  }

  .img-frame img {
    transition: transform 320ms var(--ease-out);
  }

  .img-frame::after {
    transition: opacity 240ms var(--ease-out);
  }

  .gallery__item {
    transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), filter 220ms var(--ease-out);
  }

  .gallery__item img {
    transition: transform 300ms var(--ease-out);
  }

  .gallery__shine {
    transition: transform 0.45s var(--ease-out);
  }

  .gallery-preview a img {
    transition: transform 280ms var(--ease-out);
  }

  .gallery-preview a::after {
    transition: opacity 240ms var(--ease-out);
  }

  .card {
    transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out),
      border-color 260ms var(--ease-out);
  }

  .feature-banner__bg img {
    transition: transform 2.8s linear;
  }

  .split-content h2,
  .section-head h2 {
    font-size: clamp(1.45rem, 4.8vw, 2.1rem);
  }

  .lightbox__nav {
    width: 44px;
    height: 44px;
    font-size: 1.35rem;
  }

  .lightbox__nav--prev {
    left: 0.75rem;
  }

  .lightbox__nav--next {
    right: 0.75rem;
  }

  .lightbox__close {
    top: 0.8rem;
    right: 0.8rem;
  }

  .lightbox__zoom {
    bottom: 0.85rem;
    padding: 0.5rem 0.9rem;
  }

  .search-row {
    flex-direction: column;
  }

  .feature-banner:hover .feature-banner__bg img {
    transform: scale(1.05);
  }
}

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

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

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

  .hero-media,
  .mini-media,
  .hero-media--cinematic > img,
  .img-frame img,
  .gallery__item img,
  .gallery-preview a img {
    transform: none !important;
  }

  .hero-media--cinematic > img {
    animation: none !important;
  }

  .feature-banner__bg img {
    transform: scale(1.03) !important;
  }

  .lightbox img {
    transition: none !important;
  }
}
