/* =========================================================
   340 — Impact Social Club · v2
   Shared stylesheet (Accueil, The Impact, High Impact, Low Impact)
   DA stricte : cream, clay, brique, lavande, ciel · grain partout
   ========================================================= */

/* ---------- Typographie de marque ----------
   Titres : SK Blocktura ExtraBold · Textes : Swiza Medium
   Blocktura n'est pas encore livré : dépose SKBlocktura-ExtraBold.woff2
   dans assets/fonts/ et il remplace le substitut Archivo partout. */
@font-face {
  font-family: 'SK Blocktura';
  src: url('fonts/SKBlocktura-ExtraBold.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* La charte n'utilise qu'un seul gras de texte : la plage 300–600 évite
   que le navigateur graisse artificiellement les labels en 600. */
@font-face {
  font-family: 'Swiza';
  src: url('fonts/swiza-medium.woff2') format('woff2'),
       url('fonts/swiza-medium.woff') format('woff');
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Familles : la marque d'abord, le substitut ensuite */
  --font-display: 'SK Blocktura', 'Archivo Black', Helvetica, Arial, sans-serif;
  /* Le logotype tolère la largeur variable d'Archivo, plus proche du dessin
     large de Blocktura ; les titres restent en Archivo Black. */
  --font-logo:    'SK Blocktura', 'Archivo', 'Archivo Black', Helvetica, Arial, sans-serif;
  --font-text:    'Swiza', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;

  /* Approches : le logotype 340 est quasi jointif dans la charte */
  --tracking-logo:  -0.03em;
  --tracking-title: -0.025em;

  /* Palette de marque */
  --ciel:    #AAE0FC;
  --clay:    #2B0F08;
  --brique:  #DA704B;
  --camel:   #E9B589;
  --neutre:  #E0CBBD;
  --lavande: #B1A4BB;
  --cream:   #F2E8DD;
  --cream-2: #EBDDCB;

  /* Fonds clairs de la DA */
  --nuit:    var(--cream);
  --nuit-2:  var(--cream-2);
  --nuit-3:  var(--neutre);

  /* Bandeau d'en-tête — surchargé par .on-media */
  --header-bg-1: rgba(242, 232, 221, 0.92);
  --header-bg-2: rgba(242, 232, 221, 0.62);

  /* Encre + déclinaisons (texte, filets, surfaces) — inversée par .on-media */
  --ink:     #2B0F08;
  --ink-90:  rgba(43, 15, 8, 0.90);
  --ink-80:  rgba(43, 15, 8, 0.78);
  --ink-60:  rgba(43, 15, 8, 0.58);
  --ink-40:  rgba(43, 15, 8, 0.40);
  --ink-20:  rgba(43, 15, 8, 0.20);
  --ink-15:  rgba(43, 15, 8, 0.15);
  --ink-10:  rgba(43, 15, 8, 0.10);
  --ink-08:  rgba(43, 15, 8, 0.08);
  --ink-04:  rgba(43, 15, 8, 0.04);

  /* Encre absolue (ne s'inverse jamais) — utilisée par le calque premium */
  --clay-90: rgba(43, 15, 8, 0.90);
  --clay-80: rgba(43, 15, 8, 0.80);
  --clay-60: rgba(43, 15, 8, 0.60);
  --clay-40: rgba(43, 15, 8, 0.40);
  --clay-20: rgba(43, 15, 8, 0.20);
  --clay-15: rgba(43, 15, 8, 0.15);
  --clay-10: rgba(43, 15, 8, 0.10);
  --clay-08: rgba(43, 15, 8, 0.08);
  --clay-04: rgba(43, 15, 8, 0.04);
  --cream-80: rgba(242, 232, 221, 0.80);
  --cream-50: rgba(242, 232, 221, 0.50);

  /* Surfaces vitrées posées sur la crème */
  --surface:   rgba(255, 255, 255, 0.42);
  --surface-2: rgba(255, 255, 255, 0.58);

  --gutter: clamp(20px, 4vw, 64px);
  --bar-h: 50px;
  --section-y: clamp(96px, 13vh, 180px);
  --maxw: 1320px;

  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out-quart: cubic-bezier(.76, 0, .24, 1);

  /* Aurora composition — surchargée par chaque page */
  --aurora-core:   radial-gradient(ellipse 28% 32% at 58% 46%, rgba(218,112,75,1) 0%, rgba(218,112,75,0) 70%);
  --aurora-warm:   radial-gradient(ellipse 42% 48% at 58% 46%, rgba(218,112,75,0.45) 0%, rgba(218,112,75,0) 80%);
  --aurora-mauve:  radial-gradient(ellipse 56% 60% at 50% 50%, rgba(177,164,187,0.65) 0%, rgba(177,164,187,0) 80%);
  --aurora-cool:   radial-gradient(ellipse 82% 92% at 44% 56%, rgba(170,224,252,0.55) 0%, rgba(170,224,252,0) 90%);
  --aurora-wash:   radial-gradient(ellipse at 50% 50%, #F2E8DD 0%, #EBDDCB 100%);
  --aurora-accent: radial-gradient(ellipse 30% 20% at 35% 40%, rgba(233,181,137,0.7) 0%, rgba(233,181,137,0) 70%),
                   radial-gradient(ellipse 24% 18% at 70% 60%, rgba(218,112,75,0.55) 0%, rgba(218,112,75,0) 70%);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-text);
  color: var(--ink);
  background: var(--nuit);
  min-height: 100svh;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--nuit); }

:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ---------- Layout ---------- */
.shell {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Aurore grainée (fond global, fixed) ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--nuit);
}
.aurora__layer {
  position: absolute;
  inset: -15%;
  will-change: transform;
  background:
    var(--aurora-core),
    var(--aurora-warm),
    var(--aurora-mauve),
    var(--aurora-cool),
    var(--aurora-wash);
  animation: drift 32s ease-in-out infinite;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  transition: transform 600ms var(--ease-out-expo);
}
.aurora__layer--accent {
  mix-blend-mode: soft-light;
  opacity: 0.55;
  background: var(--aurora-accent), transparent;
  animation: drift 48s ease-in-out infinite reverse;
}
.aurora__grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='2' stitchTiles='stitch' seed='5'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.42 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.7;
  pointer-events: none;
}
.aurora__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 110% 90% at 50% 50%, rgba(43,15,8,0) 55%, rgba(43,15,8,0.10) 100%);
}

/* Photo background per page (V2.1) — sits under aurora gradients */
.aurora__photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  filter: grayscale(0.15) contrast(1.02) saturate(0.85);
}
.aurora__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(242,232,221,0.62) 0%, rgba(242,232,221,0.72) 50%, rgba(242,232,221,0.84) 100%);
}
body.page-home .aurora__photo        { background-image: url('../images/bg-home.jpg'); opacity: 1; }
body.page-high-impact .aurora__photo { background-image: url('../images/bg-high.jpg'); opacity: 1; }
body.page-low-impact  .aurora__photo { background-image: url('../images/bg-low.jpg');  opacity: 1; }
body.page-the-impact  .aurora__photo { background-image: url('../images/bg-home.jpg'); opacity: 1; }
/* When photo is shown, soften the aurora gradients a touch for legibility */
body.page-home .aurora__layer,
body.page-the-impact .aurora__layer,
body.page-high-impact .aurora__layer,
body.page-low-impact .aurora__layer { opacity: 0.55; mix-blend-mode: multiply; }
body.page-home .aurora__layer--accent,
body.page-the-impact .aurora__layer--accent,
body.page-high-impact .aurora__layer--accent,
body.page-low-impact .aurora__layer--accent { opacity: 0.4; }

@keyframes drift {
  0%, 100% { transform: translate3d(var(--mx, 0px), var(--my, 0px), 0) scale(1) rotate(0deg); }
  25%      { transform: translate3d(calc(var(--mx, 0px) + 2vw), calc(var(--my, 0px) - 2vh), 0) scale(1.06) rotate(0.5deg); }
  50%      { transform: translate3d(calc(var(--mx, 0px) - 1.5vw), calc(var(--my, 0px) + 1vh), 0) scale(1.03) rotate(-0.4deg); }
  75%      { transform: translate3d(calc(var(--mx, 0px) + 1vw), calc(var(--my, 0px) + 2vh), 0) scale(1.05) rotate(0.3deg); }
}

/* Variantes d'aurore par page */
body.page-the-impact {
  --aurora-core:  radial-gradient(ellipse 24% 28% at 50% 48%, rgba(218,112,75,0.85) 0%, rgba(218,112,75,0) 65%);
  --aurora-warm:  radial-gradient(ellipse 38% 44% at 50% 50%, rgba(218,112,75,0.30) 0%, rgba(218,112,75,0) 80%);
  --aurora-mauve: radial-gradient(ellipse 60% 68% at 50% 50%, rgba(177,164,187,0.70) 0%, rgba(177,164,187,0) 80%);
  --aurora-cool:  radial-gradient(ellipse 90% 100% at 50% 55%, rgba(170,224,252,0.60) 0%, rgba(170,224,252,0) 90%);
}
body.page-high-impact {
  --aurora-core:  radial-gradient(ellipse 32% 44% at 78% 48%, rgba(218,112,75,1) 0%, rgba(218,112,75,0) 65%);
  --aurora-warm:  radial-gradient(ellipse 48% 58% at 78% 48%, rgba(218,112,75,0.55) 0%, rgba(218,112,75,0) 80%);
  --aurora-mauve: radial-gradient(ellipse 30% 36% at 75% 50%, rgba(233,181,137,0.45) 0%, rgba(233,181,137,0) 80%);
  --aurora-cool:  radial-gradient(ellipse 70% 82% at 18% 50%, rgba(170,224,252,0.55) 0%, rgba(170,224,252,0) 85%);
  --aurora-accent:radial-gradient(ellipse 20% 14% at 30% 30%, rgba(170,224,252,0.55) 0%, rgba(170,224,252,0) 70%),
                  radial-gradient(ellipse 18% 12% at 80% 75%, rgba(218,112,75,0.6) 0%, rgba(218,112,75,0) 70%);
}
body.page-low-impact {
  --aurora-core:  radial-gradient(ellipse 22% 26% at 62% 52%, rgba(218,112,75,0.45) 0%, rgba(218,112,75,0) 70%);
  --aurora-warm:  radial-gradient(ellipse 36% 40% at 62% 52%, rgba(218,112,75,0.18) 0%, rgba(218,112,75,0) 80%);
  --aurora-mauve: radial-gradient(ellipse 64% 72% at 42% 48%, rgba(177,164,187,0.85) 0%, rgba(177,164,187,0) 85%);
  --aurora-cool:  radial-gradient(ellipse 88% 92% at 50% 52%, rgba(170,224,252,0.75) 0%, rgba(170,224,252,0) 90%);
  --aurora-accent:radial-gradient(ellipse 22% 16% at 30% 60%, rgba(177,164,187,0.55) 0%, rgba(177,164,187,0) 70%),
                  radial-gradient(ellipse 20% 14% at 70% 35%, rgba(170,224,252,0.55) 0%, rgba(170,224,252,0) 70%);
}

/* ---------- Encre sur média ----------
   Les surfaces posées sur une vidéo, une photo ou le bandeau clay inversent
   localement les tokens : tous les composants restent lisibles sans duplication. */
.program-card,
.crosslink__card,
.activity__media,
.banner {
  --ink:     #F5EDE4;
  --ink-90:  rgba(245, 237, 228, 0.90);
  --ink-80:  rgba(245, 237, 228, 0.80);
  --ink-60:  rgba(245, 237, 228, 0.66);
  --ink-40:  rgba(245, 237, 228, 0.44);
  --ink-20:  rgba(245, 237, 228, 0.24);
  --ink-15:  rgba(245, 237, 228, 0.18);
  --ink-10:  rgba(245, 237, 228, 0.12);
  --ink-08:  rgba(245, 237, 228, 0.09);
  --ink-04:  rgba(245, 237, 228, 0.06);
  --surface:   rgba(245, 237, 228, 0.08);
  --surface-2: rgba(245, 237, 228, 0.12);
  color: var(--ink);
}

/* ---------- Header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(to bottom, var(--header-bg-1), var(--header-bg-2));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-08);
}
.bar {
  height: var(--bar-h);
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
}
.bar__left, .bar__right, .bar__center {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.bar__left  { justify-self: start; }
.bar__right { justify-self: end; }
.bar__center{ justify-self: center; color: var(--ink-60); }

.bar__left::before,
.bar__right::after {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--ink);
  flex: 0 0 26px;
}

/* Signature de marque : le logotype incliné, comme le wordmark */
.bar__home {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding: 6px 0;
  color: var(--ink);
  transition: color .3s var(--ease-out-expo);
}
.bar__home-inner {
  display: inline-block;
  transform: skewX(-12deg);
  font-family: var(--font-logo);
  font-weight: 900;
  font-stretch: 125%;
  font-size: 21px;
  line-height: 1;
  letter-spacing: var(--tracking-logo);
  transition: letter-spacing .4s var(--ease-out-expo);
}
.bar__home:hover { color: var(--brique); }
.bar__home:hover .bar__home-inner { letter-spacing: 0.01em; }

/* Adresse du club */
.bar__address {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-60);
  font-size: 10px;
  letter-spacing: 0.2em;
  transition: color .3s var(--ease-out-expo);
}
.bar__address:hover { color: var(--ink); }
.bar__address sup { font-size: 0.7em; }
.bar__address-short { display: none; }

@media (max-width: 560px) {
  .bar__home-inner { font-size: 17px; }
  .bar__address { font-size: 9px; letter-spacing: 0.16em; }
  .bar__address-full { display: none; }
  .bar__address-short { display: inline; }
}

/* Sub-nav (programmes) — trois zones : programmes · adhésion · univers */
.subnav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: 14px var(--gutter);
  border-top: 1px solid var(--ink-08);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
}
.subnav__group {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 40px);
}
.subnav__group--end { justify-content: flex-end; }
.subnav__link {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  color: var(--ink-80);
  transition: color .35s var(--ease-out-expo);
}
.subnav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .45s var(--ease-out-expo);
}
.subnav__link:hover,
.subnav__link:focus-visible,
.subnav__link[aria-current="page"] {
  color: var(--ink);
}
.subnav__link:hover::after,
.subnav__link:focus-visible::after,
.subnav__link[aria-current="page"]::after {
  transform: scaleX(1);
}
/* Les trois programmes sportifs portent la typo de marque, les univers restent en filigrane */
.subnav__link--sport {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink);
}
.subnav__link--annex { color: var(--ink-60); }

/* CTA adhésion (WhatsApp) — pièce centrale de la navigation.
   Traitement éditorial : filet fin, encre pleine au survol, aucun aplat criard. */
.btn-member {
  justify-self: center;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 26px;
  overflow: hidden;
  border: 1px solid var(--ink-20);
  color: var(--ink);
  background: transparent;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .5s var(--ease-out-expo), border-color .5s var(--ease-out-expo);
}
/* Le fond se remplit par le bas, sans ombre ni rebond */
.btn-member::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: translate3d(0, 100%, 0);
  transition: transform .6s var(--ease-out-expo);
}
.btn-member .arrow { display: inline-block; transition: transform .5s var(--ease-out-expo); }
.btn-member:hover,
.btn-member:focus-visible {
  color: var(--nuit);
  border-color: var(--ink);
}
.btn-member:hover::before,
.btn-member:focus-visible::before { transform: translate3d(0, 0, 0); }
.btn-member:hover .arrow,
.btn-member:focus-visible .arrow { transform: translateX(5px); }
.btn-member--lg {
  padding: 19px 38px;
  font-size: 12px;
  letter-spacing: 0.2em;
}

/* Burger button (mobile) */
.burger {
  display: none;
  width: 40px; height: 40px;
  margin-right: -8px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  position: relative;
}
.burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  position: absolute;
  left: 9px;
  transition: transform .35s var(--ease-out-expo), top .35s var(--ease-out-expo), opacity .2s linear;
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* Drawer mobile */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--nuit);
  transform: translateY(-100%);
  transition: transform .55s var(--ease-out-expo);
  visibility: hidden;
  display: flex;
  flex-direction: column;
}
.drawer[data-open="true"] { transform: translateY(0); visibility: visible; }
/* Écrans courts : le menu doit rester atteignable en entier */
.drawer { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.drawer__inner {
  flex: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: var(--gutter);
  gap: 24px;
}
.drawer__link {
  font-family: var(--font-display);
  font-size: clamp(40px, 11vw, 72px);
  line-height: 0.9;
  letter-spacing: var(--tracking-title);
  color: var(--ink);
  display: inline-block;
  transform: skewX(-12deg);
}
.drawer__link[aria-current="page"] { color: var(--brique); }
/* Univers complémentaires : même famille, échelle plus discrète */
.drawer__link--annex {
  font-size: clamp(26px, 7vw, 44px);
  color: var(--ink-60);
}
.drawer__link--annex:hover { color: var(--brique); }
.drawer .btn-member { margin-top: 8px; }
.drawer__meta {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-top: 12px;
}
.drawer__close {
  position: absolute;
  top: 14px; right: var(--gutter);
}

/* Tablette & mobile : les liens passent dans le drawer, le CTA adhésion reste visible */
@media (max-width: 900px) {
  .burger { display: inline-flex; }
  /* Le logo est sorti du flux : la barre n'a plus qu'une colonne, calée à droite */
  .bar { position: relative; grid-template-columns: 1fr; }
  .bar__left { display: none; }
  .bar__left::before, .bar__right::after { display: none; }
  .bar__right { justify-self: end; }
  /* Le logo reste au centre exact, quelle que soit la largeur de l'adresse */
  .bar__center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .subnav { grid-template-columns: 1fr; padding: 10px var(--gutter) 12px; }
  .subnav__group { display: none; }
  .btn-member { width: 100%; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 5;
  /* Contient le tracking de l'animation d'ouverture */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(20px, 3vh, 36px);
  padding: clamp(32px, 7vh, 96px) var(--gutter) clamp(72px, 10vh, 140px);
  min-height: calc(100svh - var(--bar-h));
  min-height: calc(100vh - var(--bar-h));
}
.hero--page {
  min-height: auto;
  padding-top: clamp(48px, 10vh, 120px);
  padding-bottom: clamp(48px, 8vh, 100px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
}
.eyebrow::before, .eyebrow::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--ink);
}
.eyebrow--single::after { display: none; }

.eyebrow__discipline {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--ink);
}

.program-card__discipline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--ink);
}

/* Wordmark */
.wordmark {
  font-family: var(--font-logo);
  font-weight: 900;
  font-stretch: 125%;
  line-height: 0.86;
  letter-spacing: var(--tracking-logo);
  color: var(--ink);
  margin: 0;
  padding: 0 0 0.04em 0;
  user-select: none;
  -webkit-user-select: none;
}
/* Le mot doit tenir dans la page, tracking d'ouverture comprise.
   Le logotype est large : au-delà de ~18vw il déborde des marges. */
.wordmark--xl  { font-size: clamp(50px, 15.5vw, 228px); }
.wordmark--lg  { font-size: clamp(48px, 14vw, 196px); }
.wordmark--md  { font-size: clamp(36px, 8vw, 124px); }
.wordmark--sm  { font-size: clamp(25px, 4.5vw, 72px); }

.wordmark__inner {
  display: inline-block;
  white-space: nowrap;
  transform: skewX(-12deg);
  transform-origin: 50% 50%;
  transition: transform .6s var(--ease-out-expo), letter-spacing .6s var(--ease-out-expo);
}
.wordmark--interactive {
  cursor: pointer;
  touch-action: manipulation;
}
.wordmark--interactive.is-pressed .wordmark__inner {
  transform: skewX(-12deg) scale(0.985);
  transition: transform .3s var(--ease-out-expo);
}
@media (hover: hover) {
  .wordmark--interactive:hover .wordmark__inner { transform: skewX(-12deg) scale(1.015); }
}

/* Ouverture de la homepage : les lettres du logo se posent une à une
   et le mot se resserre. */
.intro-char__line {
  display: inline-block;
  white-space: nowrap;
  animation: introTighten 1.6s var(--ease-out-expo) both;
}
.intro-char {
  display: inline-block;
  font-style: normal;
  opacity: 0;
  transform: translate3d(0, 0.3em, 0) scale(0.92) rotate(-2.5deg);
  filter: blur(12px);
  animation: introRise 1.15s cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: calc(140ms + var(--i, 0) * 80ms);
}
@keyframes introRise {
  55%  { opacity: 1; filter: blur(0); }
  74%  { transform: translate3d(0, -0.04em, 0) scale(1.02) rotate(0.5deg); }
  to   { opacity: 1; transform: translate3d(0, 0, 0) scale(1) rotate(0deg); filter: blur(0); }
}
@keyframes introTighten {
  from { letter-spacing: 0.03em; }
  to   { letter-spacing: var(--tracking-logo); }
}

/* Halo braise sous le wordmark, révélé une fois à l'ouverture */
.wordmark--xl {
  position: relative;
  isolation: isolate;
}
.wordmark--xl::before {
  content: "";
  position: absolute;
  inset: -14% -8%;
  z-index: -1;
  background: radial-gradient(ellipse 52% 58% at 50% 54%, rgba(218, 112, 75, 0.14) 0%, rgba(218, 112, 75, 0) 74%),
              radial-gradient(ellipse 68% 44% at 50% 60%, rgba(233, 181, 137, 0.10) 0%, rgba(233, 181, 137, 0) 80%);
  filter: blur(26px);
  opacity: 0;
  animation: introHalo 1.6s var(--ease-out-expo) .5s forwards;
  pointer-events: none;
}
@keyframes introHalo {
  to { opacity: 1; }
}

@media (forced-colors: active) {
  .wordmark--xl::before { display: none; }
}

/* Tagline */
.tagline {
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--ink-80);
  max-width: 520px;
  margin: 0 auto;
}
.tagline--lg {
  font-size: clamp(18px, 2vw, 24px);
  max-width: 600px;
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  z-index: 4;
  padding: var(--section-y) 0;
}
.section--tight { padding: clamp(64px, 9vh, 124px) 0; }
.section__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(18px, 2.2vh, 26px);
  margin-bottom: clamp(44px, 6vh, 80px);
  max-width: 880px;
}
.section__kicker {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-60);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.section__kicker::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--ink-60);
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 84px);
  line-height: 0.94;
  letter-spacing: var(--tracking-title);
  color: var(--ink);
  margin: 0;
  font-weight: 900;
}
.section__title em {
  font-style: normal;
  display: inline-block;
  transform: skewX(-12deg);
}
.section__intro {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
  color: var(--ink-80);
  max-width: 62ch;
  margin: 0;
}
/* Intitulé réduit à son kicker : on resserre l'espace sous le titre */
.section__head--compact { margin-bottom: clamp(20px, 3vh, 34px); }

/* Manifesto — 3 colonnes Sport / Social / Sophistiqué */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
  margin-top: clamp(36px, 5vh, 56px);
}
.pillar {
  border-top: 1px solid var(--ink-20);
  padding-top: 22px;
}
.pillar__num {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--ink-60);
  margin-bottom: 14px;
}
.pillar__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.05;
  margin: 0 0 12px;
  display: inline-block;
  transform: skewX(-12deg);
}
.pillar__body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-80);
  margin: 0;
}

@media (max-width: 720px) {
  .pillars { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Portes d'entrée (homepage) ----------
   Grands visuels éditoriaux : le média porte la carte, la typo se pose dessus. */
.programs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.2vw, 18px);
  margin-top: clamp(8px, 2vh, 24px);
}
.program-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(280px, 34vh, 360px);
  padding: clamp(20px, 1.8vw, 28px) clamp(18px, 1.6vw, 26px);
  border-radius: 2px;
  overflow: hidden;
  isolation: isolate;
  text-align: left;
  background: var(--clay);
  transition: transform .8s var(--ease-out-expo);
}
.program-card:hover { transform: translateY(-3px); }
.program-card:focus-visible {
  outline: 1px solid var(--accent, var(--brique));
  outline-offset: 3px;
}
.program-card__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch' seed='3'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.36 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: screen;
  opacity: 0.08;
}

/* Média de fond (vidéos du shooting / photos) */
.program-card__media {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: var(--clay);
}
.program-card__media > video,
.program-card__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  /* Traitement photographique homogène sur tous les univers */
  filter: grayscale(0.22) contrast(1.06) saturate(0.86) brightness(0.82);
  transition: transform 2s var(--ease-out-expo), filter 1.2s var(--ease-out-expo);
}
.program-card:hover .program-card__media > video,
.program-card:hover .program-card__media > img {
  transform: scale(1.07);
  filter: grayscale(0.06) contrast(1.06) saturate(0.98) brightness(0.9);
}
/* Voile dégradé : garantit la lisibilité du texte sur l'image */
.program-card__veil {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(28,10,5,0.20) 0%, rgba(28,10,5,0.52) 50%, rgba(28,10,5,0.88) 100%);
  transition: opacity .9s var(--ease-out-expo);
}
.program-card:hover .program-card__veil { opacity: 0.9; }

/* Code couleur par univers, tenu à un filet d'un pixel */
.program-card--high { --accent: var(--brique); }
.program-card--low  { --accent: var(--lavande); }
.program-card--the  { --accent: var(--ciel); }
.program-card--annex { --accent: var(--camel); }
.program-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  z-index: 1;
  background: linear-gradient(90deg, var(--accent, var(--brique)) 0%, rgba(245,237,228,0) 76%);
  transform: scaleX(0.34);
  transform-origin: left center;
  transition: transform 1.1s var(--ease-out-expo);
}
.program-card:hover::before,
.program-card:focus-visible::before { transform: scaleX(1); }

/* Hiérarchie : les trois programmes sportifs dominent */
.program-card--sport {
  min-height: clamp(300px, 40vh, 400px);
}
.program-card--sport .program-card__title { font-size: clamp(26px, 2.6vw, 38px); }

/* Deux portes côte à côte (pages programme) */
.programs--pair { grid-template-columns: repeat(2, 1fr); }

/* Univers complémentaires : même langage, registre plus discret */
.programs--complement {
  margin-top: clamp(10px, 1.2vw, 18px);
  grid-template-columns: repeat(2, 1fr);
}
.program-card--annex {
  min-height: clamp(200px, 26vh, 272px);
}
.program-card--annex .program-card__title {
  font-size: clamp(20px, 1.9vw, 26px);
  margin: 16px 0 10px;
}
.program-card--annex .program-card__tag { color: var(--camel); }
.program-card--annex .program-card__veil {
  background: linear-gradient(180deg, rgba(28,10,5,0.28) 0%, rgba(28,10,5,0.58) 52%, rgba(28,10,5,0.88) 100%);
}
.program-card__tag {
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--brique);
}

@media (max-width: 620px) {
  .programs--complement { grid-template-columns: 1fr; }
}

.program-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.program-card__num { color: var(--ink); font-family: var(--font-display); }
.program-card__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 0.94;
  letter-spacing: var(--tracking-title);
  margin: 18px 0 10px;
  color: var(--ink);
}
.program-card__title em {
  font-style: normal;
  display: inline-block;
  transform: skewX(-12deg);
}
.program-card__sub {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-80);
  margin: 0;
  max-width: 30ch;
}
.program-card__cta {
  position: relative;
  margin-top: clamp(16px, 2vh, 24px);
  padding-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
}
/* Filet qui se déploie sous le libellé au survol */
.program-card__cta::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 1px;
  background: var(--ink-40);
  transform: scaleX(0.28);
  transform-origin: left center;
  transition: transform 1s var(--ease-out-expo), background .6s var(--ease-out-expo);
}
.program-card:hover .program-card__cta::before { transform: scaleX(1); background: var(--ink); }
.program-card__cta .arrow {
  display: inline-block;
  transition: transform .6s var(--ease-out-expo);
}
.program-card:hover .program-card__cta .arrow { transform: translateX(7px); }

/* Trois puis deux au large, deux puis deux en tablette, une colonne au mobile */
@media (max-width: 980px) {
  .programs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .programs { grid-template-columns: 1fr; }
}

/* ---------- Bandeau Clay (citation) ---------- */
.banner {
  position: relative;
  background: var(--clay);
  color: var(--ink);
  padding: clamp(72px, 14vh, 160px) var(--gutter);
  overflow: hidden;
  isolation: isolate;
}
.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch' seed='7'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.32 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: screen;
  opacity: 0.18;
  pointer-events: none;
}
.banner__inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.banner__quote {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.5vw, 80px);
  line-height: 1.04;
  letter-spacing: var(--tracking-title);
  margin: 0;
  color: var(--ink);
}
.banner__quote em {
  font-style: normal;
  display: inline-block;
  transform: skewX(-12deg);
  color: var(--brique);
}
.banner__sub {
  margin: 22px auto 0;
  max-width: 540px;
  color: var(--ink-80);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Activity cards (avec image) ---------- */
.activities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.2vw, 18px);
}
.activities--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 980px;
  margin: 0 auto;
  gap: clamp(14px, 1.6vw, 24px);
}
.activities--two .activity__media { aspect-ratio: 4 / 3; }
.activity {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 2px;
  overflow: hidden;
  isolation: isolate;
}

.activity__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--clay);
}
.activity__img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.18) contrast(1.05) saturate(0.86);
  transition: transform 2s var(--ease-out-expo), filter 1.2s var(--ease-out-expo);
}
.activity:hover .activity__img { transform: scale(1.05); filter: grayscale(0.04) contrast(1.05) saturate(0.96); }

.activity__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(28,10,5,0) 28%, rgba(28,10,5,0.42) 64%, rgba(28,10,5,0.86) 100%);
}
.activity__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='2' stitchTiles='stitch' seed='4'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.42 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.4;
}
/* Tint accent par programme */
body.page-high-impact .activity__img { filter: grayscale(0.12) contrast(1.08) saturate(0.95); }
body.page-low-impact .activity__img { filter: grayscale(0.22) contrast(0.98) saturate(0.74) brightness(1.03); }

.activity__num {
  position: absolute;
  top: 0; left: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--ink-80);
}
.activity__num::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--ink-40);
}
.activity__name {
  position: absolute;
  left: 18px; right: 18px; bottom: 18px;
  z-index: 3;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.02;
  color: var(--ink);
  margin: 0;
}
.activity__name em {
  font-style: normal;
  display: inline-block;
  transform: skewX(-12deg);
}
.activity__body {
  padding: 18px 18px 22px;
}
.activity__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-80);
}

@media (max-width: 980px) {
  .activities { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .activities { grid-template-columns: 1fr; }
}

/* ---------- Stats row ----------
   Même grammaire que le bandeau d'informations : filets fins, aucun encart. */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink-20);
  border-bottom: 1px solid var(--ink-10);
  margin-top: clamp(36px, 5vh, 60px);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(26px, 3vw, 40px) clamp(18px, 2.2vw, 30px);
  border-left: 1px solid var(--ink-10);
  transition: background .6s var(--ease-out-expo);
}
.stat:first-child { border-left: 0; }
.stat:hover { background: var(--surface); }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1;
  color: var(--ink);
  display: inline-block;
  transform: skewX(-12deg);
  transform-origin: left center;
}
.stat__label {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-60);
}
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: 0; }
  .stat + .stat { border-top: 1px solid var(--ink-10); }
}

/* ---------- Bandeau d'informations (durée, format, niveau, équipement) ---------- */
.specs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(36px, 5vh, 60px);
  border-top: 1px solid var(--ink-20);
  border-bottom: 1px solid var(--ink-10);
}
.specs::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: clamp(80px, 14%, 160px);
  height: 1px;
  background: linear-gradient(90deg, var(--brique) 0%, rgba(218,112,75,0) 100%);
}
.spec {
  position: relative;
  padding: clamp(26px, 3vw, 42px) clamp(18px, 2.2vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-left: 1px solid var(--ink-10);
  transition: background .6s var(--ease-out-expo);
}
.spec:first-child { border-left: 0; }
.spec:hover { background: var(--surface); }
.spec__label {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.spec__value {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.1vw, 27px);
  color: var(--ink);
  line-height: 1.05;
  display: inline-block;
  transform: skewX(-12deg);
  transform-origin: left center;
  transition: transform .7s var(--ease-out-expo);
}
.spec:hover .spec__value { transform: skewX(-12deg) translateX(4px); }
.spec__value small {
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 0.5em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.spec__note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-60);
  margin: 0;
}
@media (max-width: 720px) {
  .specs { grid-template-columns: repeat(2, 1fr); }
  .spec:nth-child(3) { border-left: 0; }
  .spec:nth-child(n + 3) { border-top: 1px solid var(--ink-10); }
}
@media (max-width: 380px) {
  .specs { grid-template-columns: 1fr; }
  .spec { border-left: 0; }
  .spec + .spec { border-top: 1px solid var(--ink-10); }
}

/* ---------- Method (méthode 340) ---------- */
.method {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: clamp(28px, 4vh, 48px);
}
/* Encarts réduits à un filet haut et beaucoup d'air : registre éditorial */
.method__item {
  position: relative;
  padding: 26px 0 0;
  border-top: 1px solid var(--ink-20);
}
.method__item::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 34px; height: 1px;
  background: var(--ink);
  transform-origin: left center;
  transition: transform .9s var(--ease-out-expo);
}
.method__item:hover::before { transform: scaleX(2.4); }
.method__icon {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-60);
  margin-bottom: 16px;
}
.method__title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  margin: 0 0 10px;
  display: inline-block;
  transform: skewX(-12deg);
}
.method__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-80);
}
@media (max-width: 980px) { .method { grid-template-columns: 1fr; } }

/* ---------- Cross-link (vers autres programmes) ---------- */
.crosslink {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
/* Les cartes de renvoi reprennent la mécanique des portes : média, voile, filet */
.crosslink__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(260px, 32vh, 340px);
  padding: clamp(24px, 2.2vw, 36px);
  border-radius: 2px;
  overflow: hidden;
  isolation: isolate;
  background: var(--clay);
}
.crosslink__card .program-card__media { position: absolute; inset: 0; z-index: -3; }
.crosslink__card .program-card__veil { position: absolute; inset: 0; z-index: -2; }
.crosslink__card .program-card__grain { position: absolute; inset: 0; z-index: -1; }
.crosslink__card:hover .program-card__media > video,
.crosslink__card:hover .program-card__media > img {
  transform: scale(1.07);
  filter: grayscale(0.06) contrast(1.06) saturate(0.98) brightness(0.9);
}

.crosslink__kicker {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.crosslink__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  margin: 18px 0 10px;
  line-height: 0.95;
  letter-spacing: var(--tracking-title);
}
.crosslink__title em {
  font-style: normal;
  display: inline-block;
  transform: skewX(-12deg);
}
.crosslink__cta {
  position: relative;
  margin-top: clamp(20px, 2.4vh, 30px);
  padding-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
}
.crosslink__cta::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 1px;
  background: var(--ink-40);
  transform: scaleX(0.28);
  transform-origin: left center;
  transition: transform 1s var(--ease-out-expo), background .6s var(--ease-out-expo);
}
.crosslink__card:hover .crosslink__cta::before { transform: scaleX(1); background: var(--ink); }
.crosslink__cta .arrow { transition: transform .6s var(--ease-out-expo); }
.crosslink__card:hover .crosslink__cta .arrow { transform: translateX(7px); }
@media (max-width: 720px) { .crosslink { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 5;
  margin-top: auto;
  border-top: 1px solid var(--ink-08);
  background: rgba(242, 232, 221, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 11px;
  letter-spacing: 0.18em;
}
.site-footer .bar { color: var(--ink); }
.site-footer__social {
  display: flex;
  gap: 22px;
  align-items: center;
}
.site-footer__social a {
  position: relative;
  padding: 6px 0;
  letter-spacing: 0.18em;
}
.site-footer__social a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .4s var(--ease-out-expo);
}
.site-footer__social a:hover::after,
.site-footer__social a:focus-visible::after { transform: scaleX(1); }

@media (max-width: 900px) {
  .site-footer .bar {
    grid-template-columns: 1fr;
    height: auto;
    padding-top: 18px;
    padding-bottom: 18px;
    gap: 12px;
    text-align: center;
  }
  .site-footer .bar__left { display: flex; justify-self: center; }
  .site-footer .bar__center,
  .site-footer .bar__right { grid-column: 1; justify-self: center; }
  .site-footer__social { flex-wrap: wrap; justify-content: center; gap: 16px; }
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 1.3s var(--ease-out-expo), transform 1.3s var(--ease-out-expo);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.reveal[data-delay="0"]    { --reveal-delay: 0s; }
.reveal[data-delay="150"]  { --reveal-delay: .15s; }
.reveal[data-delay="250"]  { --reveal-delay: .25s; }
.reveal[data-delay="350"]  { --reveal-delay: .35s; }
.reveal[data-delay="450"]  { --reveal-delay: .45s; }
.reveal[data-delay="600"]  { --reveal-delay: .60s; }
.reveal[data-delay="750"]  { --reveal-delay: .75s; }
.reveal[data-delay="950"]  { --reveal-delay: .95s; }
.reveal[data-delay="1100"] { --reveal-delay: 1.10s; }
.reveal[data-delay="1300"] { --reveal-delay: 1.30s; }
.reveal[data-delay="1500"] { --reveal-delay: 1.50s; }

/* ---------- Easter egg flash overlay ---------- */
.flash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s var(--ease-out-expo);
}
.flash.is-active {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}
.flash__aurora {
  position: absolute;
  inset: -10%;
  background: var(--nuit);
  animation: flashDrift 6s ease-in-out infinite;
}
.flash__grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='2' stitchTiles='stitch' seed='9'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.42 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.75;
}
.flash__text {
  position: relative;
  font-family: var(--font-logo);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(56px, 14vw, 200px);
  line-height: 0.88;
  letter-spacing: var(--tracking-logo);
  color: var(--ink);
  text-align: center;
  padding: 0 6vw;
  animation: flashPop .9s var(--ease-out-expo);
}
.flash__text span { display: block; transform: skewX(-12deg); }
.flash__cta {
  position: absolute;
  bottom: clamp(40px, 8vh, 96px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  background: rgba(242,232,221,0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

@keyframes flashPop {
  0%   { opacity: 0; transform: translateY(20px) scale(0.92); }
  60%  { opacity: 1; transform: translateY(0) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes flashDrift {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(1.05) rotate(-0.6deg); }
}

.flash--high .flash__aurora {
  background:
    radial-gradient(ellipse 40% 60% at 70% 50%, rgba(218,112,75,1) 0%, rgba(218,112,75,0) 60%),
    radial-gradient(ellipse 60% 80% at 70% 50%, rgba(218,112,75,0.5) 0%, rgba(218,112,75,0) 80%),
    radial-gradient(ellipse 80% 90% at 30% 50%, rgba(170,224,252,0.5) 0%, rgba(170,224,252,0) 80%),
    #F2E8DD;
}
.flash--low .flash__aurora {
  background:
    radial-gradient(ellipse 45% 35% at 75% 55%, rgba(218,112,75,0.6) 0%, rgba(218,112,75,0) 65%),
    radial-gradient(ellipse 70% 70% at 35% 55%, rgba(177,164,187,0.7) 0%, rgba(177,164,187,0) 80%),
    radial-gradient(ellipse 90% 80% at 50% 50%, rgba(170,224,252,0.65) 0%, rgba(170,224,252,0) 85%),
    #F2E8DD;
}
.flash--the .flash__aurora {
  background:
    radial-gradient(ellipse 35% 45% at 50% 45%, rgba(218,112,75,0.7) 0%, rgba(218,112,75,0) 55%),
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(170,224,252,0.6) 0%, rgba(170,224,252,0) 70%),
    radial-gradient(ellipse 40% 50% at 50% 55%, rgba(177,164,187,0.55) 0%, rgba(177,164,187,0) 70%),
    #F2E8DD;
}

/* Long-press progress ring */
.press-ring {
  position: fixed;
  pointer-events: none;
  width: 64px; height: 64px;
  border-radius: 999px;
  border: 1.5px solid var(--ink-40);
  transform: translate(-50%, -50%) scale(0.4);
  opacity: 0;
  z-index: 900;
  transition: opacity .25s var(--ease-out-expo), transform .55s var(--ease-out-expo);
}
.press-ring.is-active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  border-color: var(--ink);
}

/* Hint */
.hint {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bar-h) + 14px);
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-40);
  pointer-events: none;
  opacity: 0;
  z-index: 50;
  white-space: nowrap;
  transition: opacity 1s var(--ease-out-expo);
}
.hint.is-visible { opacity: 1; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .intro-char__line { animation: none; letter-spacing: var(--tracking-logo); }
  .intro-char { animation: none; opacity: 1; transform: none; filter: none; }
  .wordmark--xl::before { animation: none; opacity: 1; }
  .aurora__layer { animation: none; }
  .flash__aurora { animation: none; }
}

/* ---------- Print ---------- */
@media print {
  .aurora, .hint, .press-ring, .flash, .site-header, .site-footer { display: none !important; }
  body { background: #fff; color: #000; }
}
