/* ==========================================================================
   BEMA GROUPE — Feuille de style principale
   ========================================================================== */

:root {
  --black: #0a0a0a;
  --black-2: #0d0d0d;
  --anthracite: #141414;
  --anthracite-2: #1c1c1c;
  --anthracite-3: #232323;
  --white: #ffffff;
  --taupe: #8d8585;
  --taupe-light: #a89f9f;
  --border: #333333;
  --border-soft: #2a2a2a;
  --monogram-from: #10121a;
  --monogram-to: #1c1e28;
  --radius-pill: 100px;
  --header-h: 84px;
  --container: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
.logo img, .hero-logo, .universe-card-logo, .entity-select-card img { width: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}
.section--tight { padding: 3.5rem 0; }
.section--bordered { border-top: 1px solid var(--border-soft); }
.section--dark { background: var(--black-2); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 1.2rem;
  font-weight: 400;
}
/* Editorial hairline; centred eyebrows get one on each side (the -0.28em eats the trailing letter-spacing) */
.eyebrow::before,
:is(.section-head--center, .text-center, .hero-content, .cta-band) .eyebrow::after {
  content: '';
  flex: 0 0 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
}
:is(.section-head--center, .text-center, .hero-content, .cta-band) .eyebrow { justify-content: center; }
:is(.section-head--center, .text-center, .hero-content, .cta-band) .eyebrow::after { margin-left: -0.28em; }

h1, h2, h3 { margin: 0 0 1rem; }

h1 {
  font-size: 3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.12;
}

h2 {
  font-size: 2.25rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  line-height: 1.2;
}

h3 {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

p { margin: 0 0 1rem; color: #d8d4d4; font-weight: 300; }
.lead { font-size: 1.1rem; color: #e6e3e3; }

.section-head {
  max-width: 720px;
  margin: 0 0 3rem;
}
.section-head--center { margin: 0 auto 3rem; text-align: center; }

/* ---------------- Buttons ---------------- */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2.3rem;
  border: 0.8px solid var(--white);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
  white-space: nowrap;
}
.btn-pill:focus-visible,
.btn-pill:active {
  background: var(--white);
  color: var(--black);
}
.btn-pill--ghost { border-color: var(--border); color: var(--taupe-light); }
.btn-pill--small { padding: 0.65rem 1.6rem; font-size: 0.7rem; }

/* ---------------- Header ---------------- */
/* backdrop-filter lives on ::before: on the header itself it would trap the fixed .menu-panel inside the bar */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--header-h);
  border-bottom: 1px solid var(--border-soft);
  transition: transform 0.35s var(--ease);
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 10, 10, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 100%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 24px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.1rem;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--taupe);
  transition: color 0.25s var(--ease);
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
}
.main-nav a:hover { color: var(--white); }
.main-nav a.active { color: var(--white); border-bottom-color: var(--white); }

.menu-toggle {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: 0.8px solid var(--border);
  border-radius: 50%;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  z-index: 620;
  transition: border-color 0.3s var(--ease);
}
.menu-toggle:hover { border-color: var(--white); }
.menu-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-3px) rotate(-45deg); }

.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(8, 8, 8, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: calc(var(--header-h) + 1.5rem) 1.5rem 2.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}
.menu-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.menu-panel-nav {
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.6rem;
}
.panel-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}
.panel-group-universes {
  display: none;
}
.panel-group a {
  font-size: 1.6rem;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--white);
  opacity: 0.82;
  transition: opacity 0.25s var(--ease);
}
.panel-group a:hover { opacity: 1; }
.panel-divider {
  width: 40px;
  height: 1px;
  background: var(--border);
}

body.menu-open { overflow: hidden; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 1.5rem;
  margin-top: var(--header-h);
}
.hero-logo { height: 46px; margin: 0 auto 1.8rem; }
.hero-content h1 { font-size: 3.4rem; margin-bottom: 1rem; }
.hero-content .baseline {
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--taupe-light);
  margin-bottom: 1.8rem;
}
.hero-content p { max-width: 620px; margin: 0 auto 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero--small { min-height: 68vh; min-height: 68svh; }
.scroll-cue {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--taupe);
  z-index: 1;
  pointer-events: none;
}
.scroll-cue-label { padding-left: 0.3em; }
/* Hairline with a soft drop of light sliding down, on a slow loop */
.scroll-cue-line {
  position: relative;
  width: 1px;
  height: 56px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}
.scroll-cue-line::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 1px;
  height: 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff);
  transform: translateY(-100%);
  animation: cue-drop 2.6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes cue-drop {
  0% { transform: translateY(-100%); }
  75%, 100% { transform: translateY(225%); }
}

/* ---------------- Universe grid (Home) ---------------- */
.universe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.universe-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
}
.universe-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.universe-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0.94) 100%);
  z-index: 1;
}
.universe-card-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 1.8rem;
}
.universe-card-body h3 {
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.7rem;
}
.universe-card-body p {
  font-size: 0.86rem;
  color: #cfcbcb;
  margin-bottom: 1.2rem;
}
.universe-card-logo { height: 20px; margin-bottom: 0.9rem; opacity: 0.9; }

/* ---------------- Stats bar ---------------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.stat {
  padding: 3rem 1.2rem;
  text-align: center;
  border-right: 1px solid var(--border-soft);
}
.stat:last-child { border-right: none; }
.stat-number {
  display: block;
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}
/* Count-up: an invisible copy of the final value reserves the width, digits stay anchored right */
.stat-count { display: inline-grid; }
.stat-count > * { grid-area: 1 / 1; }
.stat-count-live { justify-self: end; }
.stat-count-final { visibility: hidden; }
.stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--taupe);
}

/* ---------------- Testimonials ---------------- */
.testi-note {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 3rem;
}
.testi-note .score { font-size: 2.6rem; font-weight: 600; }
.testi-note .stars { color: var(--white); letter-spacing: 0.15em; }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}
.testimonial-card {
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 2rem;
  background: var(--anthracite);
}
.testimonial-card .stars { display: block; margin-bottom: 1rem; letter-spacing: 0.2em; }
.testimonial-card p { font-size: 0.92rem; color: #cfcbcb; }
.testimonial-name { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--taupe-light); }

/* ---------------- Team ---------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.6rem;
}
.team-member { text-align: center; }
.team-photo {
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid var(--border-soft);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.monogram {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--monogram-from), var(--monogram-to));
  border: 1px solid var(--white);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}
.team-name { font-size: 0.92rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.2rem; }
.team-role { font-size: 0.75rem; color: var(--taupe); text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------------- Gallery ---------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.8rem;
}
.gallery-item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 3px;
  border: 1px solid var(--border-soft);
  cursor: pointer;
  position: relative;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery-grid--tall .gallery-item { aspect-ratio: 3 / 4; }
.gallery-grid--wide .gallery-item { aspect-ratio: 16 / 9; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(6,6,6,0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
  padding: 2rem;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 92vw; max-height: 86vh; max-height: 86svh; object-fit: contain; border: 1px solid var(--border-soft); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 0.8px solid var(--border);
  background: rgba(10, 10, 10, 0.6);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
}
.lightbox-nav--prev { left: 1.5rem; }
.lightbox-nav--next { right: 1.5rem; }
.lightbox-count {
  position: absolute;
  top: 1.9rem; left: 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--taupe-light);
}
body.lightbox-open { overflow: hidden; }
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 0.8px solid var(--border);
  background: transparent;
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
}
.lightbox-close:hover { border-color: var(--white); }

/* ---------------- Carousel ---------------- */
.carousel { position: relative; }
.carousel-viewport { overflow: hidden; border-radius: 4px; border: 1px solid var(--border-soft); }
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
  flex: 0 0 100%;
  aspect-ratio: 16 / 9;
  scroll-snap-align: center;
}
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1.4rem;
}
.carousel-arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 0.8px solid var(--border);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-size: 1rem;
  transition: border-color 0.25s var(--ease);
}
.carousel-arrow:hover { border-color: var(--white); }
.carousel-dots { display: flex; gap: 0.5rem; }
.carousel-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
}
.carousel-dot.is-active { background: var(--white); }

/* ---------------- Two-column feature ---------------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.feature-row .feature-media { border-radius: 4px; overflow: hidden; border: 1px solid var(--border-soft); aspect-ratio: 4/3; }
.feature-row .feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-row.reverse .feature-media { order: 2; }

/* ---------------- Services (Protect) ---------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}
.service-card {
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 2.2rem;
  background: var(--anthracite);
}
.service-card .eyebrow { margin-bottom: 0.8rem; }
.service-card ul { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.service-card li { font-size: 0.88rem; color: #cfcbcb; padding-left: 1rem; border-left: 1px solid var(--border); }

/* ---------------- Timeline (a-propos) ---------------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 14px; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}
.timeline-item { position: relative; padding-top: 3rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  top: 8px; left: 0;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--black);
  border: 1px solid var(--white);
}
.timeline-year { font-size: 1.4rem; font-weight: 600; margin-bottom: 0.5rem; display: block; }
.timeline-item p { font-size: 0.86rem; }

.quote-block {
  border-left: 1px solid var(--white);
  padding-left: 2rem;
  margin: 2.5rem 0;
}
.quote-block p { font-size: 1.2rem; font-style: normal; color: var(--white); line-height: 1.5; }
.quote-block cite { display: block; margin-top: 1rem; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--taupe); }

.mascot-block { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 2rem; }
.mascot-block .gallery-item { aspect-ratio: 1 / 1; }

/* ---------------- Events ---------------- */
.event-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  overflow: hidden;
}
.event-card .event-media { aspect-ratio: 4/3; }
.event-card .event-media img { width: 100%; height: 100%; object-fit: cover; }
.event-card .event-body { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.event-tag { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--taupe); margin-bottom: 0.8rem; }
.event-meta { display: flex; gap: 1.5rem; margin: 1.2rem 0; flex-wrap: wrap; }
.event-meta span { font-size: 0.8rem; color: var(--taupe-light); }
.event-card.is-past { opacity: 0.92; }

/* ---------------- Contact ---------------- */
.entity-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-bottom: 4rem;
}
.entity-select-card {
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.entity-select-card { cursor: pointer; }
.entity-select-card.is-selected { border-color: var(--white); }
.entity-select-card img { height: 22px; margin: 0 auto 1.2rem; }
.entity-select-card p { font-size: 0.8rem; margin-bottom: 1.4rem; }

.contact-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; }
.form-field { margin-bottom: 1.4rem; }
.form-field label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--taupe);
  margin-bottom: 0.6rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--anthracite);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.85rem 1rem;
  color: var(--white);
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color 0.25s var(--ease);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--white);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.72rem; color: var(--taupe); margin-top: 1.2rem; line-height: 1.6; }
.form-success {
  display: none;
  border: 1px solid var(--white);
  border-radius: 4px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
}
.form-success.is-visible { display: block; }

.contact-info-block { border-left: 1px solid var(--border-soft); padding-left: 3rem; }
.contact-info-block h3 { margin-bottom: 0.6rem; margin-top: 2rem; }
.contact-info-block h3:first-child { margin-top: 0; }
.contact-info-block p { font-size: 0.9rem; }

/* ---------------- Legal ---------------- */
.legal-content h2 { margin-top: 2.6rem; font-size: 1.3rem; }
.legal-content p, .legal-content li { font-size: 0.92rem; color: #cfcbcb; }
.legal-content ul { padding-left: 1.2rem; list-style: disc; margin-bottom: 1rem; }
.legal-content strong { color: var(--white); font-weight: 500; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--black-2);
  border-top: 1px solid var(--border-soft);
  padding: 4.5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  padding-bottom: 3rem;
}
.footer-col h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--taupe);
  margin-bottom: 1.2rem;
  font-weight: 400;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 0.85rem;
  color: #cfcbcb;
  margin-bottom: 0.7rem;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding: 1.6rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { margin: 0; font-size: 0.75rem; color: var(--taupe); }
.footer-legal-links { display: flex; gap: 1.5rem; }
.footer-legal-links a { font-size: 0.75rem; color: var(--taupe); }
.footer-legal-links a:hover { color: var(--white); }

/* ---------------- Utility ---------------- */
.text-center { text-align: center; }
.mt-lg { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.tag-pill {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--taupe-light);
}

/* ==========================================================================
   Splash — once per session, skippable, hides itself even without JS
   ========================================================================== */
.splash { display: none; }
html.is-splash .splash {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 1000;
  cursor: pointer;
  animation: splash-gone 0s linear 2.7s forwards;
}
.splash-panel {
  position: absolute;
  left: 0; right: 0;
  height: calc(50% + 1px);
  background: #050505;
  will-change: transform;
}
.splash-panel--top { top: 0; animation: splash-open-up 0.75s cubic-bezier(0.76, 0, 0.24, 1) 1.85s forwards; }
.splash-panel--bottom { bottom: 0; animation: splash-open-down 0.75s cubic-bezier(0.76, 0, 0.24, 1) 1.85s forwards; }

.splash-stage { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.splash-stage::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 140vmax; height: 70vmax;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.07), transparent);
  animation: splash-fade-out 0.3s ease 1.55s forwards;
}

.splash-streaks span {
  position: absolute;
  left: 0;
  width: 45vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  opacity: 0;
  animation: splash-streak 0.9s cubic-bezier(0.5, 0, 0.2, 1) forwards;
}
.splash-streaks span:nth-child(1) { top: 32%; animation-delay: 0.05s; }
.splash-streaks span:nth-child(2) { top: 64%; width: 60vw; animation-delay: 0.22s; }
.splash-streaks span:nth-child(3) { top: 71%; width: 30vw; animation-delay: 0.4s; }

.splash-logo {
  position: absolute;
  left: 0; right: 0;
  bottom: calc(50% + 30px);
  width: min(300px, 62vw);
  margin-inline: auto;
  animation: splash-rise-out 0.35s ease-in 1.55s forwards;
}
/* Headlight sweep: a soft-edged mask slides left to right over the wordmark */
.splash-logo img {
  width: 100%;
  opacity: 0.82;
  filter: drop-shadow(0 0 22px rgba(255, 255, 255, 0.18));
  -webkit-mask-image: linear-gradient(90deg, #000 42%, transparent 58%);
  mask-image: linear-gradient(90deg, #000 42%, transparent 58%);
  -webkit-mask-size: 260% 100%;
  mask-size: 260% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
  animation: splash-reveal 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}
/* Glint clipped to the letter shapes via the logo itself as mask */
.splash-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 40%, #fff 50%, transparent 60%) no-repeat;
  background-size: 250% 100%;
  background-position: 120% 0;
  -webkit-mask-image: var(--logo);
  mask-image: var(--logo);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  animation: splash-shine 0.8s ease-in-out 1s forwards;
}

.splash-bar {
  position: absolute;
  top: 50%; left: 50%;
  width: min(240px, 56vw);
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
  transform: translate(-50%, -50%);
  animation:
    splash-bar-expand 0.35s cubic-bezier(0.65, 0, 0.35, 1) 1.5s forwards,
    splash-fade-out 0.3s ease 1.95s forwards;
}
.splash-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.35), #fff 18%, #fff 82%, rgba(255, 255, 255, 0.35));
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
  transform: scaleX(0);
  transform-origin: left;
  animation: splash-load 1.15s cubic-bezier(0.65, 0, 0.35, 1) 0.3s forwards;
}

.splash-caption {
  position: absolute;
  left: 0; right: 0;
  top: calc(50% + 22px);
  margin: 0;
  padding: 0 1rem 0 calc(1rem + 0.42em);
  text-align: center;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--taupe-light);
  opacity: 0;
  animation:
    splash-caption-in 0.8s ease 0.6s forwards,
    splash-rise-out 0.35s ease-in 1.55s forwards;
}

html.is-splash .splash.is-skipping { animation: splash-gone-skip 0s linear 0.6s forwards; }
.splash.is-skipping .splash-stage { animation: splash-fade-out 0.2s ease forwards; }
/* Distinct names on purpose: reusing splash-open-* would keep the running animation's clock and jump mid-way */
.splash.is-skipping .splash-panel--top { animation: splash-skip-up 0.55s cubic-bezier(0.76, 0, 0.24, 1) forwards; }
.splash.is-skipping .splash-panel--bottom { animation: splash-skip-down 0.55s cubic-bezier(0.76, 0, 0.24, 1) forwards; }

@keyframes splash-gone { to { visibility: hidden; } }
@keyframes splash-gone-skip { to { visibility: hidden; } }
@keyframes splash-open-up { to { transform: translateY(-100%); } }
@keyframes splash-open-down { to { transform: translateY(100%); } }
@keyframes splash-skip-up { to { transform: translateY(-100%); } }
@keyframes splash-skip-down { to { transform: translateY(100%); } }
@keyframes splash-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes splash-rise-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-10px); } }
@keyframes splash-streak {
  0% { opacity: 0; transform: translateX(-60vw); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translateX(160vw); }
}
@keyframes splash-reveal { to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
@keyframes splash-shine { from { background-position: 120% 0; } to { background-position: -20% 0; } }
@keyframes splash-load { to { transform: scaleX(1); } }
@keyframes splash-bar-expand { to { width: 100vw; } }
@keyframes splash-caption-in {
  from { opacity: 0; letter-spacing: 0.7em; }
  to { opacity: 1; letter-spacing: 0.42em; }
}

/* Hero entrance, only right after the splash doors open */
html.hero-reveal .hero-media img { animation: hero-zoom 2.2s cubic-bezier(0.22, 1, 0.36, 1) both; }
html.hero-reveal .hero-content > * { animation: hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
html.hero-reveal .hero-content > :nth-child(2) { animation-delay: 0.08s; }
html.hero-reveal .hero-content > :nth-child(3) { animation-delay: 0.16s; }
html.hero-reveal .hero-content > :nth-child(4) { animation-delay: 0.24s; }
html.hero-reveal .hero-content > :nth-child(5) { animation-delay: 0.32s; }
@keyframes hero-zoom { from { transform: scale(1.08); } }
@keyframes hero-rise { from { opacity: 0; transform: translateY(22px); } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-info-block { border-left: none; padding-left: 0; border-top: 1px solid var(--border-soft); padding-top: 2.5rem; margin-top: 1rem; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-bar { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-right: none; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { display: none; }
  .event-card { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  h1 { font-size: 2.3rem; }
  .hero-content h1 { font-size: 2.4rem; }
  h2 { font-size: 1.7rem; }
  .section { padding: 3.25rem 0; }
  .section--tight { padding: 2rem 0; }
  .section-head, .section-head--center { margin-bottom: 1.75rem; }
  .main-nav { display: none; }
  .menu-toggle { width: 40px; height: 40px; }
  .panel-group-universes { display: flex; }
  .panel-group { gap: 1.05rem; }
  .menu-panel-nav { gap: 1.8rem; }
  .panel-group a { font-size: 1.3rem; }
  .hero--small { min-height: 58vh; min-height: 58svh; }
  .hero-logo { height: 36px; margin-bottom: 1.2rem; }
  .btn-pill { white-space: normal; text-align: center; }
  .feature-row { grid-template-columns: 1fr; gap: 1.6rem; }
  .feature-row.reverse .feature-media { order: 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 1.8rem 0.8rem; border-right: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
  .stat:nth-child(3) { border-right: 1px solid var(--border-soft); }
  .stat:nth-child(even) { border-right: none; }
  .stat:last-child { grid-column: 1 / -1; border-right: none; border-bottom: none; }
  .stat-number { font-size: 2rem; }
  .testi-note { margin-bottom: 1.5rem; }
  .testimonial-card { padding: 1.5rem; }
  .service-card { padding: 1.6rem; }
  .event-card .event-body { padding: 1.6rem; }
  .contact-info-block { border-top: 1px solid var(--border-soft); padding-top: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
  .site-footer { padding-top: 3rem; }

  /* 16px minimum: below that iOS zooms the page on focus */
  .form-field input,
  .form-field select,
  .form-field textarea { font-size: 16px; }

  /* Swipeable rows: native scroll-snap, no JS scroll hijacking, vertical scroll untouched */
  .universe-grid,
  .team-grid,
  .testimonial-grid,
  .gallery-grid,
  .service-grid,
  .mascot-block,
  .timeline {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1.5rem;
    margin-inline: -1.5rem;
    padding: 0 1.5rem 0.25rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .universe-grid::-webkit-scrollbar,
  .team-grid::-webkit-scrollbar,
  .testimonial-grid::-webkit-scrollbar,
  .gallery-grid::-webkit-scrollbar,
  .service-grid::-webkit-scrollbar,
  .mascot-block::-webkit-scrollbar,
  .timeline::-webkit-scrollbar { display: none; }

  .universe-grid > *,
  .team-grid > *,
  .testimonial-grid > *,
  .gallery-grid > *,
  .service-grid > *,
  .mascot-block > *,
  .timeline > * {
    flex: 0 0 82%;
    min-width: 0;
    scroll-snap-align: start;
  }
  .universe-card { aspect-ratio: 2 / 3; }
  .universe-card::before { background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(0,0,0,0.72) 55%, rgba(0,0,0,0.96) 100%); }
  .universe-card-body { padding: 1.4rem; }
  .universe-card-logo { display: none; }
  .universe-card-body p {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .team-grid > * { flex-basis: 56%; }
  .timeline > * { flex-basis: 70%; }
  .mascot-block { margin-top: 1.5rem; }
  .mascot-block > * { flex-basis: 72%; }
  .team-grid:has(> :only-child) { overflow: visible; margin-inline: auto; padding: 0; }
  .team-grid > :only-child { flex-basis: 100%; }

  .carousel-viewport { border-radius: 3px; }
  .carousel-slide { aspect-ratio: 4 / 3; }
  .carousel-arrow { display: none; }

  .lightbox { padding: 1rem; }
  .lightbox img { max-width: 100%; }
  .lightbox-nav { top: auto; bottom: 1.5rem; transform: none; }
  .lightbox-nav--prev { left: calc(50% - 58px); }
  .lightbox-nav--next { right: calc(50% - 58px); }
  .lightbox-close { top: 1rem; right: 1rem; }
  .lightbox-count { top: 1.5rem; left: 1.25rem; }
}

.slider-progress { display: none; }
@media (max-width: 768px) {
  .slider-progress {
    display: block;
    height: 2px;
    margin-top: 1.1rem;
    background: var(--border-soft);
    border-radius: 2px;
    overflow: hidden;
  }
  .slider-progress[hidden] { display: none; }
  html.js .reveal:not(.is-in) + .slider-progress { opacity: 0; }
  .slider-progress { transition: opacity 0.8s var(--ease) 0.2s; }
  .slider-progress span {
    display: block;
    height: 100%;
    background: var(--white);
    will-change: transform;
  }
}

@media (max-width: 480px) {
  h1, .hero-content h1 { font-size: 1.9rem; }
  h2 { font-size: 1.4rem; }
  .header-inner { padding: 0 1rem; }
  .logo img { height: 20px; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn-pill { width: 100%; }
  .entity-select-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 2.5rem; }
  .entity-select-card { padding: 1.4rem 0.9rem; }
}

/* Hover effects only where a real pointer exists: on touch they stick after a tap */
@media (hover: hover) and (pointer: fine) {
  .btn-pill:hover { background: var(--white); color: var(--black); }
  .btn-pill--ghost:hover { border-color: var(--white); }
  .universe-card:hover > img { transform: scale(1.06); }
  .gallery-item:hover img { transform: scale(1.08); }
  .entity-select-card:hover { border-color: var(--white); transform: translateY(-4px); }
}

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

/* ==========================================================================
   Finitions — transitions, reveal, grain, CTA band, conciergerie, signature
   ========================================================================== */

/* ---------------- Page transitions (cross-document View Transitions, CSS only) ---------------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
/* No view-transition-name on the header: it would make it a backdrop root and kill its blur.
   The header is identical on every page, so the root cross-fade already reads as static. */
::view-transition-old(root) { animation: vt-fade-out 0.3s cubic-bezier(0.22, 1, 0.36, 1) both; }
::view-transition-new(root) { animation: vt-fade-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-in { from { opacity: 0; } }

/* ---------------- Reveal on scroll (classes set by main.js, never without JS) ---------------- */
@keyframes reveal-up { from { opacity: 0; transform: translateY(16px); } }
@keyframes img-in { from { opacity: 0; } }
/* Hidden state is opacity only: changing the base transform would fire existing transform
   transitions (e.g. .entity-select-card), which outrank animations. The 16px offset comes
   from the keyframes alone, and the backwards fill leaves hover transforms untouched after. */
@media screen and (prefers-reduced-motion: no-preference) {
  html.js .reveal:not(.is-in) { opacity: 0; }
  html.js .reveal.is-in { animation: reveal-up 0.8s var(--ease) backwards; }
  html.js img.img-pending { opacity: 0; }
  html.js img.img-in { animation: img-in 0.7s var(--ease) backwards; }
}
/* Desktop: grids reveal child by child; mobile keeps the whole row as one block */
@media screen and (prefers-reduced-motion: no-preference) and (min-width: 769px) {
  html.js .reveal--stagger:not(.is-in) { opacity: 1; }
  html.js .reveal--stagger.is-in { animation: none; }
  html.js .reveal--stagger:not(.is-in) > * { opacity: 0; }
  html.js .reveal--stagger.is-in > * { animation: reveal-up 0.8s var(--ease) backwards; animation-delay: calc(var(--reveal-i, 0) * 90ms); }
}

/* ---------------- Film grain: static SVG noise, no blend mode, above content, below header/menu/lightbox/splash ---------------- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='2 0 0 0 -0.5 2 0 0 0 -0.5 2 0 0 0 -0.5 0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}
@media (forced-colors: active) { body::after { display: none; } }

/* ---------------- Details ---------------- */
::selection { background: var(--white); color: var(--black); }

:focus-visible { outline: 1px solid var(--white); outline-offset: 4px; }
.gallery-item:focus-visible { outline-offset: -4px; }
.menu-toggle:focus-visible { outline-offset: 3px; }

@media (hover: hover) and (pointer: fine) {
  html { scrollbar-width: thin; scrollbar-color: #3a3a3a var(--black); }
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: var(--black); }
  ::-webkit-scrollbar-thumb { background: #333; border: 2px solid var(--black); border-radius: 10px; }
  ::-webkit-scrollbar-thumb:hover { background: #4a4a4a; }

  .team-photo img { filter: grayscale(0.35); transition: filter 0.6s var(--ease); }
  .team-member:hover .team-photo img { filter: grayscale(0); }
}

/* ---------------- Closing CTA band ---------------- */
.cta-band {
  position: relative;
  padding: 7rem 0;
  text-align: center;
  border-top: 1px solid var(--border-soft);
  background: radial-gradient(120% 100% at 50% 0%, #171717 0%, #0b0b0b 62%);
}
.cta-band::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 1px; height: 64px;
  background: linear-gradient(180deg, var(--taupe), rgba(141, 133, 133, 0));
}
.cta-band h2 {
  max-width: 16em;
  margin: 0 auto 2.4rem;
  font-size: clamp(1.7rem, 1rem + 3vw, 3.2rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.12;
  text-wrap: balance;
}
.cta-band-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-band-note {
  margin: 1.8rem 0 0;
  padding-left: 0.16em;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--taupe);
}

/* ---------------- Menu: conciergerie ---------------- */
.panel-concierge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--taupe);
  text-align: center;
}
.panel-concierge-title {
  margin-bottom: 0.35rem;
  padding-left: 0.32em;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.panel-concierge a { color: var(--taupe-light); transition: color 0.25s var(--ease); }
.panel-concierge a:hover { color: var(--white); }

/* ---------------- Footer signature ---------------- */
.footer-signature {
  margin-top: 1.5rem;
  pointer-events: none;
  user-select: none;
}
.footer-signature img {
  width: 100%;
  opacity: 0.1;
  -webkit-mask-image: linear-gradient(180deg, #000 15%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(180deg, #000 15%, rgba(0, 0, 0, 0) 100%);
}

/* ---------------- BEMA Vitesse gallery: editorial lead image (desktop only) ---------------- */
@media (min-width: 1025px) {
  .gallery-grid--feature { grid-auto-flow: dense; }
  .gallery-grid--feature > :first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  /* Out of flow so its portrait intrinsic height cannot stretch the two rows it spans */
  .gallery-grid--feature > :first-child img { position: absolute; inset: 0; }
}

@media (max-width: 768px) {
  .cta-band { padding: 4.5rem 0; }
  .cta-band::before { height: 44px; }
  .cta-band h2 { margin-bottom: 1.8rem; }
  .scroll-cue { gap: 0.6rem; bottom: 1.25rem; }
  .scroll-cue-line { height: 40px; }
  .menu-panel-nav { gap: 1.6rem; }
}
@media (max-width: 480px) {
  :is(.section-head--center, .text-center, .hero-content, .cta-band) .eyebrow::before,
  :is(.section-head--center, .text-center, .hero-content, .cta-band) .eyebrow::after { flex-basis: 16px; }
  .cta-band-actions { flex-direction: column; }
  .cta-band-actions .btn-pill { width: 100%; }
  .footer-signature { margin-top: 1rem; }
}
@media (max-height: 620px) and (max-width: 768px) {
  .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue-line::after { display: none; }
}

@media print {
  body::after, .splash, .footer-signature { display: none; }
  .reveal, .reveal > *, img.img-pending { opacity: 1 !important; transform: none !important; animation: none !important; }
}
