/* Peninsu Labs
   Le film du voyage occupe tout l'écran ; les textes défilent par-dessus, un chapitre à la fois.
   Vert profond, bleu de mer, l'or comme seul accent. Thème sombre uniquement : on lit sur un
   couchant puis sur la nuit. Formes : panneaux à 20 px, boutons en pilule. Les surfaces posées sur
   le film sont en verre : flou du fond, liseré clair en haut, reflet discret. */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --abyss: #071b1f;
  --bone: #f3eee2;
  --bone-2: rgba(243, 238, 226, 0.82);
  --bone-3: rgba(243, 238, 226, 0.62);
  --gold: #ebb55f;
  --gold-hover: #f3c57c;
  --gold-ink: #1a1408;
  --line: rgba(243, 238, 226, 0.16);
  --radius: 20px;
  --gutter: max(24px, env(safe-area-inset-left));
  --gutter-r: max(24px, env(safe-area-inset-right));
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-glide: cubic-bezier(0.32, 0.72, 0, 1);
  --shadow-text: 0 1px 2px rgba(2, 8, 12, 0.55), 0 2px 26px rgba(2, 8, 12, 0.5);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Verre : teinte, liseré, reflet. */
  --glass: rgba(6, 20, 26, 0.42);
  --glass-strong: rgba(5, 17, 22, 0.72);
  --glass-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0) 42%);
  --glass-blur: blur(20px) saturate(1.45);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 24px 60px -30px rgba(0, 0, 0, 0.75);
  /* Avancement du film (0 à 1) et de son chargement : écrits par film.js. */
  --film: 0;
  --film-buffer: 0;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  background: var(--abyss);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--bone);
  background: var(--abyss);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 999px;
  background-color: var(--gold);
  color: var(--gold-ink);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms var(--ease-out);
}
/* Règles séparées : un sélecteur inconnu (:focus-visible avant Safari 15.4) annulerait sa liste. */
.skip-link:focus { transform: none; }
.skip-link:focus-visible { transform: none; }

/* ------------------------------------------------------------ verre */

/* Le liseré : plus clair en haut à gauche, comme une arête qui prend la lumière. */
.panel,
.nav,
.menu-button,
.copy,
.badge {
  position: relative;
}
.panel::before,
.nav::before,
.menu-button::before,
.copy::before,
.badge::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08) 32%, rgba(255, 255, 255, 0.03) 62%, rgba(255, 255, 255, 0.16));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ------------------------------------------------------------ le film */

.film {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--abyss);
}
.film picture { display: contents; }
.film-still,
.film-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 700ms var(--ease-out);
}
.film-still.is-shown,
.film-video.is-shown { opacity: 1; }
.film-video { z-index: 1; background: transparent; }
/* La HD au-dessus de l'aperçu : elle apparaît et s'efface vite (relais pendant le mouvement). */
.film-video ~ .film-video { transition-duration: 240ms; }

/* Voile : les bords s'assombrissent un peu, le texte se lit mieux, l'image paraît plus profonde. */
.film-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(130% 95% at 50% 42%, transparent 58%, rgba(2, 8, 12, 0.42) 100%),
    linear-gradient(180deg, rgba(2, 8, 12, 0.32), transparent 18%);
  pointer-events: none;
}
/* Grain fixe, très léger : il casse les aplats du ciel de nuit (pas de bandes visibles). */
.film-grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Fine ligne d'avancement, en haut (téléphone). */
.film-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 12;
  height: 2px;
  background: linear-gradient(90deg, rgba(235, 181, 95, 0.6), var(--gold));
  transform: scaleX(var(--film));
  transform-origin: left center;
  display: none;
  pointer-events: none;
}

/* ------------------------------------------------------------ en-tête */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 76px;
  padding: 0 var(--gutter-r) 0 var(--gutter);
  padding-top: env(safe-area-inset-top);
  box-sizing: content-box;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -40px;
  z-index: -1;
  background: linear-gradient(rgba(3, 12, 18, 0.45), transparent);
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  text-shadow: var(--shadow-text);
}
.brand img { flex: none; }

/* La barre : une pilule de verre ; une pastille glisse vers la section en cours. */
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: var(--glass-sheen), var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}
.nav a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--bone-2);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 200ms ease;
}
.nav a[aria-current="true"] { color: var(--bone); }
.nav-lens {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  z-index: 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 6px 18px -8px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: transform 520ms var(--ease-glide), width 520ms var(--ease-glide), opacity 240ms ease;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--bone); }
}

.menu-button { display: none; }

/* ------------------------------------------------------------ frise du voyage (ordinateur) */

.rail {
  position: fixed;
  top: 50%;
  right: max(18px, env(safe-area-inset-right));
  z-index: 8;
  display: none;
  width: 24px;
  height: min(44vh, 360px);
  transform: translateY(-50%);
  transition: opacity 400ms ease, visibility 0s;
}
.rail.is-away {
  opacity: 0;
  visibility: hidden;
  transition: opacity 400ms ease, visibility 0s linear 400ms;
}
.rail-track {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 11px;
  width: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(243, 238, 226, 0.14);
}
.rail-buffer,
.rail-play {
  position: absolute;
  inset: 0;
  transform-origin: top center;
}
.rail-buffer {
  background: rgba(243, 238, 226, 0.22);
  transform: scaleY(var(--film-buffer));
  transition: transform 400ms ease;
}
.rail-play {
  background: linear-gradient(180deg, rgba(235, 181, 95, 0.55), var(--gold));
  transform: scaleY(var(--film));
}
.rail ol {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rail li {
  position: absolute;
  top: calc(var(--at, 0) * 100%);
  right: 0;
  transform: translateY(-50%);
}
.rail a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  height: 28px;
  padding-left: 10px;
  color: var(--bone-2);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.rail a::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 7.5px;
  border: 1.5px solid rgba(243, 238, 226, 0.62);
  border-radius: 50%;
  background: var(--abyss);
  box-shadow: 0 0 0 3px rgba(2, 8, 12, 0.25);
  transition: background-color 240ms ease, border-color 240ms ease, transform 240ms var(--ease-out);
}
.rail a[aria-current="true"]::after {
  border-color: var(--gold);
  background: var(--gold);
  transform: scale(1.15);
}
.rail-label {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--glass-strong);
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 200ms ease, transform 260ms var(--ease-out);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.rail:hover .rail-label {
  opacity: 1;
  transform: none;
}
.rail a:focus .rail-label {
  opacity: 1;
  transform: none;
}
.rail a:focus-visible { outline: none; }
.rail a:focus-visible::after { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (min-width: 900px) {
  .ready .rail { display: block; }
}

/* ------------------------------------------------------------ chapitres */

main { position: relative; z-index: 2; }

.chapter {
  display: flex;
  align-items: center;
  min-height: 135vh;
  padding: 0 var(--gutter-r) 0 var(--gutter);
}
.chapter--left { justify-content: flex-start; }
.chapter--right { justify-content: flex-end; }

.chapter-text {
  width: min(470px, 100%);
}
/* À droite, on laisse la place à la frise. */
.chapter--right .chapter-text { margin-right: clamp(0px, 6vw, 104px); }
.chapter--left .chapter-text { margin-left: clamp(0px, 4vw, 64px); }

/* L'accueil : le texte en bas à gauche du premier écran, au-dessus de la mer. */
.chapter--hero {
  align-items: flex-start;
  min-height: 165vh;
}
.chapter--hero .chapter-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(860px, 100%);
  min-height: 100vh; /* Safari avant 15.4 */
  min-height: 100svh;
  margin-left: clamp(0px, 4vw, 64px);
  padding-bottom: 13vh;
}

.chapter--contact { min-height: 150vh; }

/* Texte posé directement sur le film (sans panneau) : un voile sombre très doux derrière lui. */
.chapter:not(.chapter--hero) .chapter-text:not(.panel) { position: relative; }
.chapter:not(.chapter--hero) .chapter-text:not(.panel)::before {
  content: "";
  position: absolute;
  inset: -22% -18%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(3, 12, 18, 0.5), rgba(3, 12, 18, 0.22) 60%, transparent);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: var(--shadow-text);
}

h1 {
  margin: 0;
  font-size: clamp(54px, 8.4vw, 124px);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.045em;
  text-shadow: var(--shadow-text);
}

h2 {
  margin: 0;
  font-size: clamp(32px, 3.6vw, 50px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
  text-shadow: var(--shadow-text);
}

h3 {
  margin: 0 0 8px;
  font-size: clamp(21px, 1.8vw, 25px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.chapter p {
  margin: 16px 0 0;
  color: var(--bone-2);
  text-shadow: var(--shadow-text);
}
.chapter h3 + p { margin-top: 0; }
.chapter p + h3 { margin-top: 26px; }

.lede {
  max-width: 30em;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.5;
}

/* Bouton principal : pilule dorée, un reflet passe au survol. */
.cue {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  min-height: 50px;
  margin-top: 30px;
  padding: 0 24px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 600;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 14px 34px -14px rgba(235, 181, 95, 0.55), 0 10px 30px -12px rgba(2, 8, 12, 0.7);
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.cue::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.55) 48%, transparent 66%);
  transform: translateX(-120%);
  pointer-events: none;
}
.cue svg { width: 17px; height: 17px; }
.cue:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .cue:hover { background: var(--gold-hover); }
  .cue:hover::after { transform: translateX(120%); transition: transform 900ms var(--ease-out); }
}

/* Panneaux de verre posés sur le film. */
.panel {
  padding: 30px 32px 32px;
  border-radius: var(--radius);
  background: var(--glass-sheen), var(--glass);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.panel h2, .panel p, .panel .eyebrow { text-shadow: none; }

.app {
  display: flex;
  gap: 18px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.app-icon {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 17px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 14px 32px -12px rgba(120, 100, 220, 0.55);
}
.app h3 { margin: 4px 0 6px; }
.app p { margin: 0; }
.app .app-status { margin-top: 14px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--bone);
  font-size: 13.5px;
  font-weight: 500;
}
.badge::after {
  content: "";
  order: -1;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(235, 181, 95, 0.18);
}
.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 6px;
  color: var(--gold);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(235, 181, 95, 0.5);
  text-underline-offset: 5px;
}
.link svg { width: 16px; height: 16px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-color: var(--gold); }
  .link:hover svg { transform: translate(2px, -2px); }
}

/* Contact : la carte suit le pointeur d'une lueur dorée. */
.cta {
  width: min(560px, 100%);
  overflow: hidden;
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 30%) var(--my, 0%), rgba(235, 181, 95, 0.13), transparent 62%);
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;
}
.cta.is-lit::after { opacity: 1; }
.cta > * { position: relative; z-index: 1; }
.email-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 24px;
}
.email {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 2px solid rgba(235, 181, 95, 0.5);
  color: var(--gold);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 500;
  letter-spacing: -0.015em;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: border-color 160ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .email:hover { border-bottom-color: var(--gold); }
}
.copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--glass-sheen), rgba(255, 255, 255, 0.06);
  color: var(--bone);
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms var(--ease-out);
}
.copy[hidden] { display: none; }
.copy svg { width: 16px; height: 16px; }
.copy:active { transform: scale(0.96); }
.copy.is-done { color: var(--gold); }
@media (hover: hover) and (pointer: fine) {
  .copy:hover { background: var(--glass-sheen), rgba(255, 255, 255, 0.11); }
}
.chapter .copy-status {
  min-height: 1.6em;
  margin: 10px 0 0;
  color: var(--bone-3);
  font-size: 14px;
}

/* ------------------------------------------------------------ pied de page */

.site-footer {
  position: relative;
  z-index: 2;
  padding: 72px var(--gutter-r) max(26px, env(safe-area-inset-bottom)) var(--gutter);
  overflow: hidden;
  color: var(--bone-2);
  font-size: 14.5px;
  background: linear-gradient(180deg, rgba(3, 10, 16, 0), rgba(3, 10, 16, 0.78) 34%, rgba(3, 10, 16, 0.92));
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter-r);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 36px 48px;
}
.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.footer-brand p {
  margin: 2px 0 0;
  color: var(--bone);
  font-size: 16px;
  line-height: 1.45;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 64px;
}
.footer-links > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-title {
  margin: 0 0 6px;
  color: var(--bone-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-links a,
.to-top {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--bone);
  text-decoration: none;
  transition: color 160ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover,
  .to-top:hover { color: var(--gold); }
}
/* Le nom du studio, en très grand, comme une signature au bas du voyage. */
.footer-wordmark {
  margin: 56px 0 0;
  font-size: min(16.9vw, 340px);
  font-weight: 600;
  line-height: 0.82;
  letter-spacing: -0.06em;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(243, 238, 226, 0.3), rgba(243, 238, 226, 0.02) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 22px;
  color: var(--bone-3);
  font-size: 13.5px;
}
.to-top { gap: 8px; font-size: 13.5px; }
.to-top svg { width: 15px; height: 15px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .to-top:hover svg { transform: translateY(-2px); }
}

/* ------------------------------------------------------------ apparitions */

.ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out), filter 900ms var(--ease-out);
}
.ready .reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}
/* Les titres arrivent mot à mot. */
.w {
  display: inline-block;
  vertical-align: top;
  white-space: nowrap;
}
.ready .reveal .w > span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.45em);
  filter: blur(8px);
  transition: opacity 800ms var(--ease-out), transform 900ms var(--ease-out), filter 800ms var(--ease-out);
  transition-delay: calc(120ms + var(--i, 0) * 55ms);
}
.ready .reveal.is-visible .w > span {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Le titre de l'accueil : lettre par lettre. */
.hero-title .ch { display: inline-block; }
@keyframes letter-in {
  from { opacity: 0; transform: translateY(0.32em); filter: blur(12px); }
  to { opacity: 1; transform: none; filter: none; }
}
.ready .hero-title .ch {
  animation: letter-in 1200ms var(--ease-out) both;
  animation-delay: calc(140ms + var(--i, 0) * 42ms);
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}
.js .chapter--hero .chapter-text > :not(h1) { animation: rise-in 1000ms var(--ease-out) both; }
.js .chapter--hero .eyebrow { animation-delay: 60ms; }
.js .chapter--hero .lede { animation-delay: 520ms; }
.js .chapter--hero .cue { animation-delay: 640ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ready .reveal, .ready .reveal.is-visible { transform: none; filter: none; transition: opacity 500ms ease; }
  .ready .reveal .w > span, .ready .reveal.is-visible .w > span { transform: none; filter: none; transition: opacity 500ms ease; transition-delay: 0ms; }
  .js .chapter--hero .chapter-text > *, .ready .hero-title .ch { animation: none; }
  .nav-lens { transition: opacity 200ms ease; }
  .film-still, .film-video { transition: opacity 400ms ease; }
}


/* ------------------------------------------------------------ téléphone */

@media (max-width: 760px) {
  :root {
    --gutter: max(18px, env(safe-area-inset-left));
    --gutter-r: max(18px, env(safe-area-inset-right));
  }
  body { font-size: 16px; }
  .ready .film-progress { display: block; }
  /* Sans JavaScript, les liens passent sous le nom du studio ; avec, le bouton Menu ouvre la liste. */
  .site-header { flex-wrap: wrap; height: auto; min-height: 62px; padding-bottom: 8px; }
  .nav { width: 100%; flex-wrap: wrap; justify-content: center; border-radius: var(--radius); }
  .nav a { padding: 0 12px; font-size: 14px; }
  .ready .site-header { flex-wrap: nowrap; height: 62px; min-height: 0; padding-bottom: 0; }
  .ready .menu-button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: var(--glass-sheen), var(--glass);
    box-shadow: var(--glass-shadow);
    color: var(--bone);
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
  }
  .ready .nav {
    position: absolute;
    top: calc(100% + 6px);
    right: var(--gutter-r);
    width: auto;
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: stretch;
    min-width: 220px;
    padding: 8px;
    border-radius: var(--radius);
    background: var(--glass-sheen), var(--glass-strong);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top right;
    transition: opacity 160ms ease, transform 220ms var(--ease-out), visibility 0s linear 220ms;
  }
  .ready .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 160ms ease, transform 220ms var(--ease-out), visibility 0s;
  }
  .ready .nav a { justify-content: space-between; min-height: 46px; padding: 0 16px; font-size: 16px; }
  .ready .nav a[aria-current="true"]::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
  }
  .nav-lens { display: none; }

  /* Les textes passent en bas, sur un voile, pour laisser le soleil et la lune en haut. */
  .chapter { align-items: flex-end; min-height: 125vh; }
  .chapter--left, .chapter--right { justify-content: stretch; }
  .chapter-text,
  .chapter--right .chapter-text,
  .chapter--left .chapter-text { width: 100%; margin: 0 0 12vh; }
  .chapter--hero { align-items: flex-start; min-height: 150vh; }
  .chapter--hero .chapter-text { margin: 0; padding-bottom: 8vh; }
  .chapter:not(.chapter--hero) .chapter-text:not(.panel)::before { display: none; }
  .chapter:not(.chapter--hero) .chapter-text:not(.panel) {
    padding: 22px;
    border-radius: var(--radius);
    background: linear-gradient(rgba(3, 12, 18, 0.3), rgba(3, 12, 18, 0.62));
  }
  .panel { padding: 24px 22px; }
  .app { flex-direction: column; gap: 12px; }
  .site-footer { padding-top: 56px; }
  .footer-links { gap: 22px 40px; }
  .footer-wordmark { margin-top: 40px; font-size: 16.2vw; }
}

/* Transparence réduite : après les règles du téléphone, pour l'emporter sur elles. */
@media (prefers-reduced-transparency: reduce) {
  .panel, .nav, .ready .nav, .rail-label, .ready .menu-button, .copy, .copy:hover, .badge {
    background: #0a2227;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* ------------------------------------------------------------ pages simples (mentions légales) */

.plain {
  min-height: 100vh;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(235, 181, 95, 0.1), transparent 60%),
    radial-gradient(1000px 700px at 0% 110%, rgba(18, 57, 47, 0.7), transparent 60%),
    linear-gradient(180deg, #0b2537, var(--abyss));
}
.site-header--plain { position: static; }
.site-header--plain::before { display: none; }

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px var(--gutter-r) 80px var(--gutter);
}
.legal h1 { font-size: clamp(38px, 5vw, 56px); }
.legal h2 {
  margin: 44px 0 12px;
  font-size: 20px;
  letter-spacing: -0.01em;
  text-shadow: none;
}
.legal p {
  margin: 0 0 10px;
  color: var(--bone-2);
}
.legal a { color: var(--gold); }
.legal .back { margin-top: 48px; }

/* Page 404. */
.notfound { padding-top: 12vh; }
.notfound h1 { font-size: clamp(36px, 5vw, 56px); text-wrap: balance; }
.notfound .notfound-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin-top: 28px;
}
.notfound h1 + p { margin-top: 18px; }
.notfound .cue { margin-top: 0; color: var(--gold-ink); }

/* Valeurs à remplir avec le Kbis : bien visibles tant qu'elles restent. */
.todo {
  padding: 0 6px;
  border-radius: 6px;
  background-color: rgba(235, 181, 95, 0.16);
  color: var(--gold);
}
