/* Self-hosted fonts (SIL Open Font License), latin subset */
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 500 600; font-display: swap; src: url("/fonts/cinzel.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 300 400; font-display: swap; src: url("/fonts/cormorant.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 300 400; font-display: swap; src: url("/fonts/cormorant-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/fonts/hanken-grotesk.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* =========================================================
   LA VEILLE — Cabinet Thorelle Conseils
   One night of watch over the coast, from dusk to dawn.
   See docs/DIRECTION-CREATIVE.md
   ========================================================= */

:root {
  --nuit: #03070f;
  --abysse: #06111f;
  --marine: #0c1e36;
  --or: #d4b066;
  --or-pale: #f0dca6;
  --or-deep: #9c7a35;
  --ivoire: #ede6d6;
  --brume: #a7b0bf;
  --surface: #0a1628;           /* content sections: the lit room below the night sky */
  --hair: rgba(212, 176, 102, 0.26);
  --hair-soft: rgba(212, 176, 102, 0.15);
  --gold-text: linear-gradient(100deg, #f3e2b0 0%, #d8b469 40%, #a8823b 100%);
  --gold-fill: linear-gradient(100deg, #f3dfab, #d4b064 55%, #b48b42);
  --dawn-text: linear-gradient(100deg, #f6dfb0, #e9a774 70%, #c9805a);
  --dawn-line: linear-gradient(90deg, transparent, rgba(243, 214, 160, .55), transparent);

  --f-display: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --f-herald: "Cinzel", "Times New Roman", serif;
  --f-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  /* ---- Motion tokens (docs/MOTION-SYSTEM.md) ---- */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);        /* expo-out: arrivals, reveals, hovers */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1); /* sweeps, loops, scroll cues */
  --ease-exit: cubic-bezier(0.7, 0, 0.84, 0);    /* departures: page out, accordion close */
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);   /* colour and opacity changes */
  --dur-instant: 120ms;   /* press feedback */
  --dur-quick: 240ms;     /* colour, exits */
  --dur-base: 480ms;      /* UI state: menu, accordion, fields */
  --dur-slow: 900ms;      /* hairlines, hover movement */
  --dur-reveal: 1400ms;   /* scroll reveals */
  --dur-cinematic: 1800ms;/* titles, hero */
  --stagger: 70ms;
  --rise: 28px;

  --gutter: clamp(20px, 6vw, 96px);
  --gutter-left: var(--gutter);
  --chapter-pad: clamp(7rem, 18vh, 13rem);
}
@media (min-width: 1100px) {
  :root { --gutter-left: 180px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ivoire);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; }
::selection { background: var(--or); color: var(--nuit); }
:focus-visible { outline: 2px solid var(--or-pale); outline-offset: 4px; border-radius: 1px; }

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 200;
  background: var(--or); color: var(--nuit); padding: .6rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- Atmosphere layers ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none;
  opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.2 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* The sky warms in the last part of the night (opacity driven by JS) */
.dawn-sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: var(--dawn, 0);
  background:
    radial-gradient(ellipse 120% 70% at 50% 110%, rgba(233, 167, 116, .35), rgba(109, 111, 148, .18) 45%, transparent 75%);
}

/* ---------- Bridge (fixed instruments) ---------- */
.bridge {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  pointer-events: none;
}
.bridge > * { pointer-events: auto; }
.bridge::before {
  content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(3, 7, 15, .85), rgba(3, 7, 15, 0));
  opacity: var(--bridge-bg, 0); transition: opacity var(--dur-slow);
}
.mark { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.mark img { width: 40px; }
.mark-name {
  font-family: var(--f-herald); font-weight: 500; font-size: .82rem;
  letter-spacing: .26em; text-transform: uppercase; color: var(--ivoire);
}
.mark-name i { font-style: normal; color: var(--brume); }
.bridge-right { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.6rem); }
.clock {
  font-family: var(--f-herald); font-size: .76rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--brume); font-variant-numeric: tabular-nums;
}
.clock-time { color: var(--or-pale); letter-spacing: .18em; }
.bridge-cta {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--f-herald); font-size: .78rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase;
  color: var(--or-pale); text-decoration: none;
}
.bridge-cta::after {
  content: ""; position: absolute; left: 0; right: .28em; bottom: 10px; height: 1px; background: var(--or);
  transform-origin: right; transition: transform var(--dur-slow) var(--ease);
}
.bridge-cta:hover::after { transform: scaleX(.3); }

@media (max-width: 640px) {
  .mark-name { display: none; }
  .clock-label { display: none; }
}

/* ---------- Chapter rail ---------- */
.rail {
  position: fixed; left: 44px; top: 50%; z-index: 40; transform: translateY(-50%);
  display: none;
}
@media (min-width: 1100px) { .rail { display: block; } }
.rail ol { display: grid; gap: 1.1rem; border-left: 1px solid var(--hair-soft); padding-left: 1.1rem; }
.rail a {
  position: relative; display: flex; align-items: baseline; gap: .9rem; text-decoration: none;
  color: var(--brume); transition: color var(--dur-slow);
}
.rail a::before {
  content: ""; position: absolute; left: calc(-1.1rem - 1px); top: -.2rem; bottom: -.2rem; width: 1px;
  background: var(--or); transform: scaleY(0); transition: transform var(--dur-slow) var(--ease);
}
.rn { font-family: var(--f-herald); font-size: .78rem; min-width: 2ch; letter-spacing: .1em; }
.rl {
  font-family: var(--f-herald); font-size: .68rem; letter-spacing: .26em; text-transform: uppercase;
  opacity: 0; transform: translateX(-6px); transition: opacity var(--dur-slow), transform var(--dur-slow) var(--ease);
  white-space: nowrap;
}
.rail a:hover .rl, .rail a:focus-visible .rl { opacity: 1; transform: none; }
.rail a.active, .rail a:hover { color: var(--or-pale); }
.rail a.active::before { transform: scaleY(1); }
.rail.on-prologue { opacity: 0; pointer-events: none; }
.rail { transition: opacity var(--dur-slow); }

/* =========================================================
   PROLOGUE — Le Phare
   The light reveals the risks. See docs/DIRECTION-CREATIVE.md §10
   ========================================================= */
.prologue {
  --lamp-x: 72%;
  --lamp-y: 16vh;              /* lamp height above the bottom = horizon height */
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; isolation: isolate;
  background:
    radial-gradient(ellipse 70% 55% at 72% 85%, rgba(12, 30, 54, .95), transparent 70%),
    linear-gradient(to bottom, #02050b 0%, var(--nuit) 45%, #071426 84%);
}
.sky { position: absolute; inset: 0; z-index: -1; }
.stars {
  position: absolute; inset: -20px -20px 25% -20px; opacity: .55;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(237,230,214,.7), transparent 60%),
    radial-gradient(1px 1px at 27% 42%, rgba(237,230,214,.35), transparent 60%),
    radial-gradient(1px 1px at 44% 12%, rgba(237,230,214,.5), transparent 60%),
    radial-gradient(1px 1px at 58% 33%, rgba(237,230,214,.3), transparent 60%),
    radial-gradient(1.5px 1.5px at 66% 9%, rgba(236,213,155,.6), transparent 60%),
    radial-gradient(1px 1px at 81% 24%, rgba(237,230,214,.45), transparent 60%),
    radial-gradient(1px 1px at 92% 52%, rgba(237,230,214,.3), transparent 60%),
    radial-gradient(1px 1px at 7% 61%, rgba(237,230,214,.3), transparent 60%),
    radial-gradient(1px 1px at 36% 66%, rgba(237,230,214,.25), transparent 60%),
    radial-gradient(1px 1px at 87% 71%, rgba(237,230,214,.25), transparent 60%);
  will-change: transform;
}

/* Volumetric beam: a zero-size pivot on the lamp, rotated by JS */
.beam {
  position: absolute; left: var(--lamp-x); bottom: var(--lamp-y); width: 0; height: 0;
  transform: rotate(-40deg);
  will-change: transform, opacity;
}
.js .beam { opacity: 0; }
.beam-haze, .beam-core {
  position: absolute; left: -130vmax; top: -130vmax; width: 260vmax; height: 260vmax; pointer-events: none;
}
.beam-haze {
  background: conic-gradient(from -15deg at 50% 50%,
    rgba(236,213,155,0) 0deg, rgba(236,213,155,.075) 15deg, rgba(236,213,155,0) 30deg, transparent 360deg);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, rgba(0,0,0,.5) 14%, transparent 36%);
          mask-image: radial-gradient(circle at 50% 50%, #000 0%, rgba(0,0,0,.5) 14%, transparent 36%);
  filter: blur(14px);
}
.beam-core {
  background: conic-gradient(from -5deg at 50% 50%,
    rgba(236,213,155,0) 0deg, rgba(255,240,205,.24) 4deg, rgba(255,246,222,.34) 5deg, rgba(255,240,205,.24) 6deg, rgba(236,213,155,0) 10deg, transparent 360deg);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, rgba(0,0,0,.55) 10%, transparent 30%);
          mask-image: radial-gradient(circle at 50% 50%, #000 0%, rgba(0,0,0,.55) 10%, transparent 30%);
  filter: blur(3px);
}
.dust { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Hidden risks, revealed by the light */
.risks li {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  font-family: var(--f-display); font-style: italic; font-weight: 300;
  font-size: clamp(1.05rem, 1.45vw, 1.45rem); letter-spacing: .02em; white-space: nowrap;
  color: #f6ecd2; text-shadow: 0 0 22px rgba(236, 213, 155, .45);
  opacity: .4;
}
.js .risks li { opacity: 0; }
.risks li::before {
  content: "✦"; position: absolute; left: 50%; top: -.95em; transform: translateX(-50%) scale(.3);
  font-size: .5em; font-style: normal; color: var(--or); opacity: 0;
  transition: opacity var(--dur-slow), transform var(--dur-slow) var(--ease);
}
.risks li.seen::before { opacity: 1; transform: translateX(-50%) scale(1); }

/* The lamp */
.lamp { position: absolute; left: var(--lamp-x); bottom: var(--lamp-y); width: 0; height: 0; z-index: 2; }
.lamp-core {
  position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%;
  background: #fff6dc;
  box-shadow: 0 0 14px 4px rgba(255, 236, 190, .9), 0 0 50px 18px rgba(236, 213, 155, .32), 0 0 160px 70px rgba(236, 213, 155, .1);
}
.lamp-flare {
  position: absolute; left: -170px; top: -1px; width: 340px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 236, 190, .5) 45%, rgba(255, 246, 222, .8) 50%, rgba(255, 236, 190, .5) 55%, transparent);
  filter: blur(.8px);
}
.js .lamp-core { opacity: 0; transform: scale(0); }
.js .lamp-flare { opacity: 0; transform: scaleX(0); }
.js.is-ready .lamp-core { animation: ignite 1.5s .25s forwards; }
.js.is-ready .lamp-flare { animation: flare 1.8s .45s var(--ease) forwards; }
@keyframes ignite {
  0% { opacity: 0; transform: scale(0); }
  14% { opacity: 1; transform: scale(1.6); }
  26% { opacity: .25; transform: scale(.6); }
  38% { opacity: 1; transform: scale(1.25); }
  50% { opacity: .55; transform: scale(.9); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes flare { to { opacity: 1; transform: scaleX(1); } }

.hint {
  position: absolute; right: 34px; top: 26px; white-space: nowrap; pointer-events: none;
  font-family: var(--f-herald); font-size: .64rem; letter-spacing: .3em; text-transform: uppercase; color: var(--brume);
  opacity: 0; transition: opacity var(--dur-reveal);
}
.hint::after { content: ""; display: inline-block; width: 26px; height: 1px; margin-left: .8rem; vertical-align: middle; background: currentColor; opacity: .6; }
.show-hint .hint { opacity: .9; }
@media (hover: none), (pointer: coarse) { .hint { display: none; } }

/* Copy */
.prologue-inner {
  position: relative; z-index: 3;
  padding: 120px var(--gutter) 0 var(--gutter-left);
  margin-bottom: calc(var(--lamp-y) + 104px);
  transform: translate3d(0, calc(var(--py, 0) * -0.18px), 0);
  opacity: calc(1 - var(--py, 0) / 650);
}
.kicker {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  font-family: var(--f-herald); font-size: .74rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--or); margin-bottom: clamp(1.4rem, 3.5vh, 2.4rem);
}
.kicker-sep { width: 48px; height: 1px; background: var(--hair); }

.hero-grid { display: grid; gap: clamp(2rem, 4vh, 2.8rem); max-width: 1260px; }
@media (min-width: 1260px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 400px; align-items: end; gap: 3rem; }
}
@media (min-width: 1440px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 470px; }
}

.motto {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(2.9rem, min(7.2vw, 12vh), 9rem);
  line-height: .9; letter-spacing: -.012em; color: var(--ivoire);
}
.motto .line { display: block; overflow: hidden; padding-bottom: .07em; margin-bottom: -.07em; }
.motto .line > span { display: inline-block; }
.motto .line:nth-child(2) { padding-left: 1em; }
.motto .line:nth-child(3) { padding-left: .35em; }
.motto .line:nth-child(4) { padding-left: 1.1em; }
.motto em {
  font-style: italic; font-weight: 300; padding-right: .08em;
  background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero-sub { color: var(--ivoire); font-size: clamp(1.35rem, 1.75vw, 1.75rem); line-height: 1.45; max-width: 30ch; margin-bottom: 2.2rem; }
.hero-actions { display: grid; justify-items: start; gap: .6rem; }
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 1.3rem; min-height: 58px; padding: 0 1.5rem 0 1.6rem;
  font-family: var(--f-herald); font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--nuit); text-decoration: none; white-space: nowrap;
  background: var(--gold-fill);
  box-shadow: 0 14px 44px -14px rgba(236, 213, 155, .6);
  transition: transform var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease);
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity var(--dur-base);
  background: radial-gradient(140px circle at var(--sx, 50%) var(--sy, 50%), rgba(255, 255, 255, .7), transparent 65%);
  mix-blend-mode: soft-light;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 20px 54px -14px rgba(236, 213, 155, .8); }
.cta:hover::before { opacity: 1; }
.cta i { position: relative; width: 34px; height: 1px; background: currentColor; transition: width var(--dur-slow) var(--ease); flex: none; }
.cta i::after {
  content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg);
}
.cta:hover i { width: 50px; }
.cta-alt { display: inline-flex; align-items: center; gap: .35em; min-height: 44px; color: var(--brume); text-decoration: none; font-size: .98rem; }
.cta-alt span { color: var(--ivoire); border-bottom: 1px solid var(--hair); padding-bottom: 1px; transition: border-color var(--dur-base), color var(--dur-base); }
.cta-alt:hover span { color: var(--or-pale); border-color: var(--or); }
.reassure { margin-top: .8rem; font-family: var(--f-herald); font-size: .64rem; letter-spacing: .3em; text-transform: uppercase; color: var(--brume); }
.reassure span { color: var(--or); margin-right: .4rem; }

.prologue-bar {
  position: absolute; z-index: 3; left: var(--gutter-left); right: var(--gutter);
  bottom: calc(var(--lamp-y) + 22px);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem;
  pointer-events: none;
}
.prologue-bar a { pointer-events: auto; }
.quick { display: flex; gap: 1.8rem; }
.quick a {
  display: inline-flex; align-items: center; min-height: 44px; text-decoration: none;
  font-family: var(--f-herald); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ivoire);
  background-image: linear-gradient(var(--or), var(--or)); background-size: 0 1px; background-position: 0 75%; background-repeat: no-repeat;
  transition: background-size var(--dur-slow) var(--ease), color var(--dur-base);
}
.quick a:hover { background-size: 100% 1px; color: var(--or-pale); }
.scroll-cue {
  display: inline-flex; align-items: center; gap: 1rem; min-height: 44px; text-decoration: none;
  font-family: var(--f-herald); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--brume);
}
.scroll-cue i { position: relative; width: 1px; height: 44px; background: var(--hair-soft); overflow: hidden; }
.scroll-cue i::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--or-pale);
  animation: drip 2.6s var(--ease-in-out) infinite;
}
@keyframes drip { to { top: 100%; } }

.horizon { position: absolute; left: 0; right: 0; bottom: 0; height: var(--lamp-y); z-index: 1; }
.ridge { position: absolute; left: 0; top: -59px; width: 100%; height: 60px; overflow: visible; }
.ridge path {
  fill: none; stroke: var(--or); stroke-width: 1; vector-effect: non-scaling-stroke;
  stroke-dasharray: 2400; stroke-dashoffset: 2400;
}
.js.is-ready .ridge path { animation: draw 3s var(--ease) .6s forwards; }
.ridge path { stroke-dashoffset: 0; }
.js .ridge path { stroke-dashoffset: 2400; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.sea { position: absolute; inset: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, #061325, var(--nuit)); }

@media (max-width: 760px) {
  .prologue { --lamp-x: 80%; --lamp-y: 14vh; }
  .risks li { left: var(--mx, -9999px); top: var(--my, 0); font-size: 1rem; }
  .risks li:nth-child(n+4) { display: none; }
  .kicker-sep { display: none; }
  .kicker { gap: .3rem 1rem; }
  .prologue-inner { padding-top: 112px; margin-bottom: calc(var(--lamp-y) + 96px); }
  .motto .line:nth-child(2) { padding-left: .5em; }
  .motto .line:nth-child(3) { padding-left: 0; }
  .motto .line:nth-child(4) { padding-left: .5em; }
  .hero-sub { font-size: 1.25rem; margin-bottom: 1.6rem; }
  .hero-actions { justify-items: stretch; }
  .cta { justify-content: space-between; letter-spacing: .13em; font-size: .68rem; padding: 0 1.1rem 0 1.2rem; gap: .8rem; }
  .cta i { width: 24px; }
  .prologue-bar { bottom: calc(var(--lamp-y) + 44px); }
  .quick { gap: 1.4rem; }
  .reassure { display: none; }
  .ridge { top: -39px; height: 40px; }
}

/* =========================================================
   CHAPTERS — shared
   ========================================================= */
.chapter {
  position: relative;
  padding: var(--chapter-pad) var(--gutter) var(--chapter-pad) var(--gutter-left);
}
.chapter > * { max-width: 1240px; }
.chapter-head {
  display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.6rem);
  margin-bottom: clamp(3.5rem, 9vh, 6.5rem);
  font-family: var(--f-herald); text-transform: uppercase;
}
.chapter-num { color: var(--or); font-size: .9rem; letter-spacing: .12em; min-width: 2.4ch; }
.chapter-rule {
  flex: 0 1 140px; height: 1px; background: var(--or);
  transform-origin: left; transition: transform var(--dur-cinematic) var(--ease);
}
.js .chapter-rule { transform: scaleX(0); }
.js .chapter-rule.in { transform: scaleX(1); }
.chapter-label { font-size: .78rem; font-weight: 500; letter-spacing: .34em; color: var(--ivoire); white-space: nowrap; }
@media (max-width: 480px) {
  .chapter-label { letter-spacing: .24em; white-space: normal; min-width: 0; line-height: 1.6; }
  .chapter-rule { flex-basis: 48px; }
}
.chapter-hour { margin-left: auto; font-size: .72rem; letter-spacing: .24em; color: var(--brume); font-variant-numeric: tabular-nums; }

.dossier-tag {
  font-family: var(--f-herald); font-size: .7rem; letter-spacing: .34em; text-transform: uppercase; color: var(--or);
  margin-bottom: 1.4rem;
}

/* ---------- I. Observer ---------- */
.observer-body { display: grid; gap: clamp(2.5rem, 6vh, 4rem); }
.manifesto {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(1.95rem, 4.3vw, 4.1rem); line-height: 1.14; letter-spacing: -.005em;
  max-width: 24ch; color: var(--ivoire);
}
.manifesto em { color: var(--or-pale); }
.manifesto .w { opacity: var(--o, .42); transition: opacity .25s linear; }
.signature {
  display: flex; flex-direction: column; gap: .2rem;
  padding-left: 1.4rem; border-left: 1px solid var(--or);
  margin-left: clamp(0rem, 22vw, 26rem);
}
.sig-name { font-family: var(--f-display); font-style: italic; font-size: 1.7rem; color: var(--or-pale); }
.sig-role { font-family: var(--f-herald); font-size: .7rem; letter-spacing: .32em; text-transform: uppercase; color: var(--brume); }

/* ---------- II. Deux terrains ---------- */
.dossiers { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(2rem, 5vw, 5.5rem); }
.dossiers-divider { position: relative; width: 1px; background: linear-gradient(to bottom, transparent, var(--hair) 15%, var(--hair) 85%, transparent); }
.dossiers-divider span {
  position: absolute; left: 50%; top: 18%; width: 7px; height: 7px; transform: translateX(-50%) rotate(45deg);
  border: 1px solid var(--or); background: var(--surface);
}
.dossier-title {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(3rem, 6.2vw, 6rem); line-height: .95; letter-spacing: -.01em;
  margin-bottom: 1rem;
}
.dossier-lede { font-family: var(--f-display); font-style: italic; font-size: clamp(1.25rem, 1.8vw, 1.55rem); color: var(--brume); margin-bottom: 2.6rem; max-width: 26ch; line-height: 1.3; }
.index { counter-reset: none; border-bottom: 1px solid var(--hair-soft); margin-bottom: 2.4rem; }
.index li {
  position: relative; display: grid; grid-template-columns: 3.2rem 1fr; align-items: baseline;
  padding: 1.05rem 0; border-top: 1px solid var(--hair-soft);
  color: var(--ivoire); transition: color var(--dur-base);
}
.index li span { font-family: var(--f-herald); font-size: .72rem; letter-spacing: .14em; color: var(--brume); transition: color var(--dur-base); }
.index li::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%;
  background: var(--or); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-slow) var(--ease);
}
.index li:hover span { color: var(--or-pale); }
.index li:hover::before { transform: scaleX(1); }

.link-line {
  display: inline-flex; align-items: center; gap: 1rem; min-height: 44px; text-decoration: none;
  font-family: var(--f-herald); font-size: .74rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--or-pale);
}
.link-line i, .ledger-submit i {
  position: relative; width: 42px; height: 1px; background: currentColor; transition: width var(--dur-slow) var(--ease);
}
.link-line i::after, .ledger-submit i::after {
  content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg);
}
.link-line:hover i { width: 66px; }

@media (max-width: 900px) {
  .dossiers { grid-template-columns: 1fr; gap: 5rem; }
  .dossiers-divider { display: none; }
}

/* ---------- III. La session ---------- */
.session-intro {
  display: grid; grid-template-columns: auto 1fr; align-items: end; gap: clamp(2rem, 6vw, 6rem);
  margin-bottom: clamp(4rem, 10vh, 7rem);
}
.session-big { display: flex; align-items: baseline; gap: 1.2rem; }
.three {
  font-family: var(--f-display); font-weight: 300; font-size: clamp(9rem, 24vw, 22rem); line-height: .72;
  background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.three-unit { font-family: var(--f-herald); font-size: .85rem; letter-spacing: .4em; text-transform: uppercase; color: var(--ivoire); }
.session-text {
  font-family: var(--f-display); font-weight: 300; font-size: clamp(1.4rem, 2.3vw, 2rem); line-height: 1.3;
  max-width: 28ch; padding-bottom: 1rem;
}

.score {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hair);
}
.score::before {
  /* the second line of the staff */
  content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--hair-soft);
}
.score li { position: relative; padding: 3rem clamp(1rem, 2vw, 2rem) 0 0; }
.score li::before {
  content: ""; position: absolute; left: 0; top: -4px; width: 7px; height: 7px; transform: rotate(45deg);
  background: var(--surface); border: 1px solid var(--or);
}
.score-mark { display: block; font-family: var(--f-display); font-style: italic; font-size: 1.4rem; color: var(--or); margin-bottom: .9rem; }
.score h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.6rem, 2.2vw, 2.1rem); line-height: 1.1; margin-bottom: .8rem; }
.score p { color: var(--brume); font-size: 1rem; max-width: 28ch; }

.session-private {
  margin-top: clamp(5rem, 12vh, 8rem); margin-left: auto; max-width: 720px;
  padding-left: clamp(1.4rem, 3vw, 2.4rem); border-left: 1px solid var(--or);
}
.private-text { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.25; }
.private-text em { color: var(--or-pale); }

@media (max-width: 900px) {
  .session-intro { grid-template-columns: 1fr; gap: 2rem; }
  .score { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--hair); margin-left: 4px; }
  .score::before { display: none; }
  .score li { padding: 0 0 2.6rem 2rem; }
  .score li::before { left: -4px; top: .55rem; }
}

/* ---------- IV. Le serment ---------- */
.serment { text-align: center; }
.serment .chapter-head { text-align: left; }
.serment > * { margin-inline: auto; }
.litany { display: grid; gap: clamp(.2rem, 1vh, .6rem); padding: 6vh 0; }
.litany li {
  position: relative; display: inline-flex; justify-content: center; align-items: baseline; gap: 1rem;
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(2.6rem, 8.4vw, 8rem); line-height: 1.02; letter-spacing: -.01em;
  color: var(--ivoire);
}
.js .litany li {
  opacity: calc(.42 + var(--lit, 0) * .58);
  transform: scale(calc(.94 + var(--lit, 0) * .06));
  will-change: opacity, transform;
}
.litany li.lit { color: var(--or-pale); font-style: italic; }
.ln {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--f-herald); font-style: normal; font-size: .72rem; letter-spacing: .2em; color: var(--or);
  opacity: var(--lit, 0);
}
.litany-close {
  font-family: var(--f-display); font-weight: 300; font-size: clamp(1.5rem, 2.6vw, 2.2rem); color: var(--brume);
  margin-top: clamp(3rem, 8vh, 5rem);
}
.litany-close em { color: var(--or-pale); }
@media (max-width: 760px) { .ln { display: none; } }

/* =========================================================
   EPILOGUE — L'aube
   ========================================================= */
.aube {
  position: relative; overflow: hidden;
  padding: var(--chapter-pad) var(--gutter) 0 var(--gutter-left);
  background:
    radial-gradient(ellipse 110% 55% at 50% 100%, rgba(233, 167, 116, .42) 0%, rgba(140, 105, 130, .22) 38%, rgba(12, 30, 54, 0) 72%),
    linear-gradient(to bottom, var(--surface) 0%, #0d1a33 40%, #131f3b 100%);
}
.aube::before {
  /* the first horizon line of day */
  content: ""; position: absolute; left: 0; right: 0; bottom: 210px; height: 1px;
  background: var(--dawn-line);
}
.aube-inner > * { max-width: 1240px; }
.aube-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(3rem, 7vw, 7rem); align-items: start; }
.aube-title {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(2.8rem, 6vw, 6rem); line-height: .98; letter-spacing: -.01em; margin-bottom: 1.6rem;
}
.aube-title em {
  display: block;
  background: var(--dawn-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.aube-text { color: var(--brume); max-width: 38ch; margin-bottom: 3rem; }
.phone { display: inline-flex; flex-direction: column; gap: .3rem; text-decoration: none; margin-bottom: 1.4rem; }
.phone-label { font-family: var(--f-herald); font-size: .7rem; letter-spacing: .34em; text-transform: uppercase; color: var(--or); }
.phone-number {
  font-family: var(--f-display); font-weight: 300; font-size: clamp(2.4rem, 4.6vw, 4.2rem); line-height: 1; letter-spacing: .01em;
  font-variant-numeric: lining-nums;
  background-image: linear-gradient(var(--or), var(--or)); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size var(--dur-slow) var(--ease); padding-bottom: .1em;
}
.phone:hover .phone-number { background-size: 100% 1px; }
.mail { display: block; width: fit-content; color: var(--ivoire); text-decoration: none; border-bottom: 1px solid var(--hair); padding-bottom: 2px; word-break: break-all; transition: border-color var(--dur-base), color var(--dur-base); }
.mail:hover { color: var(--or-pale); border-color: var(--or); }

/* The ledger (form) */
.ledger { display: grid; gap: 1.8rem; }
.ledger-profil { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; }
.ledger-profil legend {
  width: 100%; margin-bottom: .6rem;
  font-family: var(--f-herald); font-size: .7rem; letter-spacing: .32em; text-transform: uppercase; color: var(--or);
}
.ledger-profil label { position: relative; display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; }
.ledger-profil input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ledger-profil span {
  font-family: var(--f-display); font-size: 1.55rem; font-weight: 300; color: var(--brume);
  padding-bottom: 2px; border-bottom: 1px solid transparent; transition: color var(--dur-base), border-color var(--dur-base);
}
.ledger-profil input:checked + span { color: var(--ivoire); font-style: italic; border-color: var(--or); }
.ledger-profil input:focus-visible + span { outline: 1px solid var(--or-pale); outline-offset: 4px; }
.ledger-field { display: grid; gap: .3rem; }
.ledger-field > span {
  font-family: var(--f-herald); font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--brume);
}
.ledger-field em { font-style: normal; text-transform: none; letter-spacing: .04em; }
.ledger-field input, .ledger-field textarea {
  width: 100%; font: inherit; font-size: 1.1rem; color: var(--ivoire);
  background: transparent; border: 0; border-bottom: 1px solid var(--hair); border-radius: 0;
  padding: .7rem 0; min-height: 48px; resize: vertical;
  transition: border-color var(--dur-base);
}
.ledger-field input:focus, .ledger-field textarea:focus { outline: none; border-color: var(--or-pale); }
.ledger-field input[aria-invalid="true"] { border-color: #e48e7c; }
.form-error { color: #f0ad9c; font-size: .95rem; }
.ledger-submit {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; min-height: 60px; padding: 0 1.4rem; cursor: pointer;
  font-family: var(--f-herald); font-size: .78rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  color: var(--nuit); background: var(--gold-fill);
  border: 0; border-radius: 0;
  transition: filter var(--dur-base), transform var(--dur-slow) var(--ease);
}
.ledger-submit:hover { filter: brightness(1.08); }
.ledger-submit:hover i { width: 64px; }
.form-note { color: var(--brume); font-size: .86rem; }

@media (max-width: 900px) {
  .aube-grid { grid-template-columns: 1fr; }
}

.colophon {
  position: relative; display: grid; justify-items: center; gap: .5rem; text-align: center;
  margin-top: clamp(6rem, 14vh, 10rem); padding: 0 0 3rem; max-width: none;
}
.colophon img { width: 64px; margin-bottom: .6rem; opacity: .95; }
.colophon-name { font-family: var(--f-herald); font-size: .82rem; letter-spacing: .32em; text-transform: uppercase; }
.colophon-sub { font-family: var(--f-display); font-style: italic; font-size: 1.15rem; color: rgba(237, 230, 214, .75); }
.colophon-copy { font-size: .8rem; color: rgba(237, 230, 214, .6); letter-spacing: .1em; }

/* =========================================================
   MOTION — only when JS runs
   ========================================================= */
.js [data-reveal] {
  opacity: 0; transform: translate3d(0, var(--rise), 0);
  transition: opacity var(--dur-reveal) var(--ease-soft), transform var(--dur-cinematic) var(--ease);
  transition-delay: calc(min(var(--i, 0), 8) * var(--stagger-step, var(--stagger)) + var(--stagger-base, 0ms));
}
.js [data-reveal].in { opacity: 1; transform: none; }
[data-draw].in { transform: scaleX(1); }

.js .motto .line > span { transform: translate3d(0, 108%, 0); }
.js.is-ready .motto .line > span { transform: none; transition: transform var(--dur-cinematic) var(--ease); }
.js.is-ready .motto .line:nth-child(1) > span { transition-delay: .55s; }
.js.is-ready .motto .line:nth-child(2) > span { transition-delay: .67s; }
.js.is-ready .motto .line:nth-child(3) > span { transition-delay: .89s; }
.js.is-ready .motto .line:nth-child(4) > span { transition-delay: 1.01s; }
.js [data-hero] { opacity: 0; transform: translate3d(0, 16px, 0); }
.js.is-ready [data-hero] { opacity: 1; transform: none; transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-cinematic) var(--ease); }
.js.is-ready .kicker[data-hero] { transition-delay: .7s; }
.js.is-ready .hero-sub[data-hero] { transition-delay: 1.7s; }
.js.is-ready .hero-actions[data-hero] { transition-delay: 1.85s; }
.js.is-ready .reassure[data-hero] { transition-delay: 2s; }
.js.is-ready .prologue-bar[data-hero] { transition-delay: 2.2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .scroll-cue i::after { animation: none !important; }
  .js [data-hero] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js .beam { opacity: 1; }
  .js .risks li { opacity: .5; }
  .js .lamp-core, .js .lamp-flare { opacity: 1; transform: none; animation: none !important; }
  .dust { display: none; }
  .js [data-reveal], .js .motto .line > span { opacity: 1 !important; transform: none !important; transition: none !important; }
  .chapter-rule { transform: scaleX(1); transition: none; }
  .js .ridge path { stroke-dashoffset: 0; animation: none !important; }
  .manifesto .w { opacity: 1 !important; }
  .js .litany li { opacity: 1; transform: none; }
  .js .chapter-rule { transform: scaleX(1); }
  .prologue-inner, .stars { transform: none; opacity: 1; }
}

/* =========================================================
   MENU — full-screen, like a ship's log index
   ========================================================= */
.menu-btn {
  display: inline-flex; align-items: center; gap: .7rem; min-height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer; color: var(--ivoire);
  font-family: var(--f-herald); font-size: .74rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase;
}
.menu-lines { position: relative; width: 26px; height: 9px; }
.menu-lines i { position: absolute; left: 0; height: 1px; background: currentColor; transition: transform var(--dur-slow) var(--ease), width var(--dur-slow) var(--ease), top var(--dur-slow) var(--ease); }
.menu-lines i:first-child { top: 0; width: 26px; }
.menu-lines i:last-child { top: 8px; width: 16px; }
.menu-btn:hover .menu-lines i:last-child { width: 26px; }
.menu-open .menu-lines i:first-child { top: 4px; transform: rotate(35deg); }
.menu-open .menu-lines i:last-child { top: 4px; width: 26px; transform: rotate(-35deg); }
@media (max-width: 640px) { .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .bridge-cta { display: none; } }

.menu {
  position: fixed; inset: 0; z-index: 45;
  display: grid; grid-template-rows: 1fr auto;
  padding: 120px var(--gutter) 40px var(--gutter-left);
  background:
    radial-gradient(ellipse 60% 50% at 85% 100%, rgba(201, 165, 90, .1), transparent 70%),
    rgba(3, 7, 15, .97);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s linear .6s;
}
.menu-open .menu { opacity: 1; visibility: visible; transition: opacity var(--dur-slow) var(--ease); }
.menu-open { overflow: hidden; }
.menu-list { align-self: center; display: grid; gap: .2rem; max-width: 1100px; }
.menu-list a {
  display: inline-flex; align-items: baseline; gap: 1.4rem; width: fit-content; text-decoration: none;
  font-family: var(--f-display); font-weight: 300; font-size: clamp(2.2rem, 6vw, 4.6rem); line-height: 1.1; color: var(--ivoire);
  opacity: 0; transform: translate3d(0, 20px, 0);
  transition: color var(--dur-base), opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.menu-open .menu-list a { opacity: 1; transform: none; }
.menu-open .menu-list li:nth-child(2) a { transition-delay: .04s; }
.menu-open .menu-list li:nth-child(3) a { transition-delay: .08s; }
.menu-open .menu-list li:nth-child(4) a { transition-delay: .12s; }
.menu-open .menu-list li:nth-child(5) a { transition-delay: .16s; }
.menu-open .menu-list li:nth-child(6) a { transition-delay: .2s; }
.menu-open .menu-list li:nth-child(7) a { transition-delay: .24s; }
.menu-list a span {
  font-family: var(--f-herald); font-size: .74rem; letter-spacing: .14em; color: var(--brume); min-width: 3ch; transition: color var(--dur-base);
}
.menu-list a:hover, .menu-list a[aria-current="page"] { color: var(--or-pale); font-style: italic; }
.menu-list a:hover span, .menu-list a[aria-current="page"] span { color: var(--or); }
.menu-foot {
  display: flex; flex-wrap: wrap; gap: 1rem 3rem; align-items: baseline; justify-content: space-between;
  padding-top: 2rem; margin-top: 2rem; border-top: 1px solid var(--hair-soft); max-width: 1240px;
}
.menu-foot a { color: var(--ivoire); text-decoration: none; }
.menu-foot a:hover { color: var(--or-pale); }
.menu-foot .phone-number { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.menu-foot p { font-family: var(--f-display); font-style: italic; font-size: 1.2rem; color: var(--brume); }

/* =========================================================
   INNER PAGES
   ========================================================= */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(78vh, 760px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 170px var(--gutter) clamp(4rem, 10vh, 7rem) var(--gutter-left);
  background:
    radial-gradient(ellipse 60% 70% at 86% 100%, rgba(12, 30, 54, .95), transparent 70%),
    linear-gradient(to bottom, #02050b, var(--nuit) 60%, #06101e);
  border-bottom: 1px solid var(--hair-soft);
}
.page-hero.compact { min-height: min(62vh, 600px); }
.page-hero::before {
  /* a still beam from a lamp on the bottom edge */
  content: ""; position: absolute; z-index: -1; right: var(--beam-x, 12%); bottom: 0; width: 220vmax; height: 220vmax;
  transform: translate(50%, 50%) rotate(var(--beam-rot, -28deg));
  background: conic-gradient(from -6deg at 50% 50%, rgba(236,213,155,0) 0deg, rgba(236,213,155,.12) 5deg, rgba(255,240,205,.18) 6deg, rgba(236,213,155,.12) 7deg, rgba(236,213,155,0) 12deg, transparent 360deg);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, rgba(0,0,0,.5) 10%, transparent 26%);
          mask-image: radial-gradient(circle at 50% 50%, #000 0%, rgba(0,0,0,.5) 10%, transparent 26%);
  filter: blur(5px);
}
.page-hero::after {
  content: ""; position: absolute; right: var(--beam-x, 12%); bottom: -4px; width: 8px; height: 8px; border-radius: 50%; margin-right: -4px;
  background: #fff6dc; box-shadow: 0 0 14px 4px rgba(255,236,190,.8), 0 0 60px 20px rgba(236,213,155,.25);
}
.crumbs {
  display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: clamp(1.4rem, 3vh, 2.2rem);
  font-family: var(--f-herald); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--brume);
}
.crumbs a { color: var(--or); text-decoration: none; }
.crumbs a:hover { color: var(--or-pale); }
.crumbs span[aria-hidden] { color: var(--hair); }
.page-title {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(2.8rem, 7.4vw, 7.6rem); line-height: .95; letter-spacing: -.012em;
  max-width: 15ch; margin-bottom: 1.6rem;
}
.page-title em { font-style: italic; background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.page-intro { color: #c2c9d4; font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 52ch; }
.page-hero .hero-actions { margin-top: 2.2rem; }

.page-section { padding: clamp(5rem, 13vh, 9rem) var(--gutter) 0 var(--gutter-left); }
.page-section > * { max-width: 1240px; }
.page-section:last-of-type { padding-bottom: clamp(5rem, 13vh, 9rem); }
.lede {
  font-family: var(--f-display); font-weight: 300; font-size: clamp(1.7rem, 3.2vw, 2.9rem); line-height: 1.2; max-width: 26ch;
}
.lede em { color: var(--or-pale); }

/* Two-column index with descriptions */
.index-desc li { grid-template-columns: 3.2rem minmax(0, 1fr); }
.index-desc li div { display: grid; gap: .25rem; }
.index-desc strong { font-weight: 500; color: var(--ivoire); font-size: 1.12rem; }
.index-desc p { color: var(--brume); font-size: 1rem; max-width: 60ch; }

/* Process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; border-top: 1px solid var(--hair); }
.process li { position: relative; padding: 2.4rem 1.6rem 0 0; }
.process li::before {
  counter-increment: step; content: counter(step, upper-roman);
  display: block; font-family: var(--f-herald); font-size: .78rem; letter-spacing: .14em; color: var(--or); margin-bottom: 1rem;
}
.process h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.75rem; line-height: 1.1; margin-bottom: .6rem; }
.process p { color: var(--brume); font-size: 1rem; }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; border-top: 0; }
  .process li { padding: 1.6rem 0; border-top: 1px solid var(--hair-soft); }
}

.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.pillars-grid article { border-top: 1px solid var(--or); padding-top: 1.6rem; }
.pillars-grid h3 { font-family: var(--f-display); font-weight: 300; font-style: italic; font-size: clamp(1.8rem, 2.6vw, 2.4rem); color: var(--or-pale); margin-bottom: .7rem; }
.pillars-grid p { color: var(--brume); }
@media (max-width: 900px) { .pillars-grid { grid-template-columns: 1fr; } }

.values-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); border-top: 1px solid var(--hair-soft); }
.values-grid li {
  display: flex; align-items: baseline; gap: .9rem; padding: 1.1rem 0; border-bottom: 1px solid var(--hair-soft);
  font-family: var(--f-display); font-size: 1.6rem; font-weight: 300;
}
.values-grid li span { font-family: var(--f-herald); font-size: .68rem; color: var(--or); letter-spacing: .14em; min-width: 3.4ch; }

/* Closing call to action, shared */
.page-cta {
  position: relative; overflow: hidden;
  margin-top: clamp(5rem, 13vh, 9rem);
  padding: clamp(5rem, 12vh, 8rem) var(--gutter) clamp(5rem, 12vh, 8rem) var(--gutter-left);
  background:
    radial-gradient(ellipse 100% 70% at 50% 120%, rgba(233, 167, 116, .32), rgba(140, 105, 130, .14) 45%, transparent 75%),
    linear-gradient(to bottom, var(--surface), #101d38);
  border-top: 1px solid var(--hair-soft);
}
.page-cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 2.5rem 4rem; align-items: end; max-width: 1240px; }
.page-cta h2 { font-family: var(--f-display); font-weight: 300; font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 1; }
.page-cta h2 em { display: block; background: var(--dawn-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-cta p { color: var(--brume); margin-top: 1.2rem; max-width: 42ch; }
@media (max-width: 860px) { .page-cta-inner { grid-template-columns: 1fr; } .page-cta .hero-actions { justify-items: stretch; } }

/* Site footer (inner pages + home) */
.site-foot {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2.5rem 3rem;
  padding: 4rem var(--gutter) 2.5rem var(--gutter-left);
  border-top: 1px solid var(--hair-soft); background: var(--nuit);
  font-size: .95rem;
}
.site-foot .foot-brand { display: grid; gap: .5rem; align-content: start; }
.site-foot .foot-brand img { width: 56px; margin-bottom: .4rem; }
.foot-title { font-family: var(--f-herald); font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--or); margin-bottom: .9rem; }
.site-foot ul { display: grid; gap: .35rem; }
.site-foot a { color: var(--ivoire); text-decoration: none; }
.site-foot a:hover { color: var(--or-pale); }
.site-foot .foot-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; padding-top: 1.6rem; border-top: 1px solid var(--hair-soft); color: var(--brume); font-size: .85rem; }
.aube .site-foot { background: transparent; margin-top: clamp(5rem, 12vh, 8rem); padding-left: 0; padding-right: 0; max-width: 1240px; }
@media (max-width: 760px) { .site-foot { grid-template-columns: 1fr; } }

/* =========================================================
   JOURNAL
   ========================================================= */
.post-list { border-top: 1px solid var(--hair); }
.post-list li { border-bottom: 1px solid var(--hair-soft); }
.post-link {
  display: grid; grid-template-columns: 12rem minmax(0, 1fr) auto; gap: 1rem 3rem; align-items: baseline;
  padding: clamp(1.8rem, 4vh, 2.8rem) 0; text-decoration: none; color: inherit;
}
.post-meta { font-family: var(--f-herald); font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--brume); line-height: 1.9; }
.post-meta b { display: block; font-weight: 500; color: var(--or); }
.post-link h2, .post-link h3 {
  font-family: var(--f-display); font-weight: 300; font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.05; margin-bottom: .7rem;
  transition: color var(--dur-base);
}
.post-link p { color: var(--brume); max-width: 60ch; }
.post-link .arrow { width: 44px; height: 1px; background: var(--or); position: relative; transition: width var(--dur-slow) var(--ease); align-self: center; }
.post-link .arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid var(--or); border-right: 1px solid var(--or); transform: rotate(45deg); }
.post-link:hover h2, .post-link:hover h3 { color: var(--or-pale); font-style: italic; }
.post-link:hover .arrow { width: 72px; }
@media (max-width: 860px) {
  .post-link { grid-template-columns: 1fr; }
  .post-link .arrow { display: none; }
}

/* Article */
.article-hero .page-title { max-width: 20ch; font-size: clamp(2.5rem, 5.6vw, 5.6rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; font-family: var(--f-herald); font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--brume); }
.article-meta b { color: var(--or); font-weight: 500; }
.prose { max-width: 68ch; font-size: 1.125rem; line-height: 1.78; color: #ddd6c6; }
.prose > * + * { margin-top: 1.4rem; }
.prose .standfirst { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.3; color: var(--ivoire); }
.prose h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.8rem, 2.8vw, 2.4rem); line-height: 1.15; color: var(--ivoire); margin-top: 3.4rem; }
.prose h2::before { content: ""; display: block; width: 48px; height: 1px; background: var(--or); margin-bottom: 1.4rem; }
.prose ul { display: grid; gap: .7rem; }
.prose ul li { position: relative; padding-left: 1.8rem; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 6px; height: 6px; border: 1px solid var(--or); transform: rotate(45deg); }
.prose strong { color: var(--ivoire); font-weight: 600; }
.prose a { color: var(--or-pale); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose blockquote {
  margin: 2.6rem 0; padding-left: 1.6rem; border-left: 1px solid var(--or);
  font-family: var(--f-display); font-style: italic; font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.35; color: var(--or-pale);
}
.note { margin-top: 3rem; padding: 1.4rem 1.6rem; border: 1px solid var(--hair-soft); color: var(--brume); font-size: .98rem; }
.related { margin-top: clamp(4rem, 10vh, 6rem); }

/* =========================================================
   FAQ
   ========================================================= */
.faq-group + .faq-group { margin-top: clamp(4rem, 9vh, 6rem); }
.faq-group > h2 { font-family: var(--f-herald); font-size: .74rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--or); margin-bottom: 1.2rem; }
.faq { border-top: 1px solid var(--hair); max-width: 980px; }
.faq details { border-bottom: 1px solid var(--hair-soft); }
.faq summary {
  position: relative; display: block; cursor: pointer; list-style: none;
  padding: 1.6rem 3.5rem 1.6rem 0;
  font-family: var(--f-display); font-weight: 400; font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.2;
  transition: color var(--dur-base);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: .4rem; top: 50%; width: 18px; height: 1px; background: var(--or);
  transition: transform var(--dur-slow) var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover, .faq details[open] summary { color: var(--or-pale); }
.faq-answer { padding: 0 0 2rem; max-width: 64ch; color: #ddd6c6; font-size: 1.06rem; line-height: 1.75; }
.faq-answer > * + * { margin-top: .9rem; }
.faq-answer a { color: var(--or-pale); }

/* Legal */
.legal { max-width: 72ch; }
.legal h2 { font-family: var(--f-display); font-weight: 400; font-size: 1.9rem; margin: 3rem 0 1rem; }
.legal p, .legal li { color: #ddd6c6; }
.legal p + p { margin-top: .8rem; }
.todo { color: #e9a774; border-bottom: 1px dashed rgba(233,167,116,.6); }

/* Journal teaser on the home page */
.teaser { padding: 0 var(--gutter) var(--chapter-pad) var(--gutter-left); }
.teaser > * { max-width: 1240px; }
.teaser-foot { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: .5rem 2.8rem; }

/* =========================================================
   MOTION SYSTEM — see docs/MOTION-SYSTEM.md
   ========================================================= */

/* ---- 1. Page transitions: through the night ----
   Cross-document View Transitions (Chrome/Edge 126+, Safari 18.2+).
   Other browsers simply navigate normally. */
@view-transition { navigation: auto; }
.bridge { view-transition-name: bridge; }
::view-transition-old(root) { animation: vt-out var(--dur-quick) var(--ease-exit) both; }
::view-transition-new(root) { animation: vt-in var(--dur-slow) var(--ease) 80ms both; }
::view-transition-group(bridge) { animation-duration: 0s; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translate3d(0, 14px, 0); } }

/* ---- 2. Inner-page loading sequence ---- */
.js .page-hero::after { opacity: 0; transform: scale(0); }
.js.is-ready .page-hero::after { animation: ignite 1.5s 120ms forwards; }
.js .page-hero::before { opacity: 0; transition: opacity var(--dur-cinematic) var(--ease-soft) 400ms; }
.js.is-ready .page-hero::before { opacity: 1; }
.page-hero::before { translate: 0 calc(var(--py, 0) * 0.22px); }       /* beam parallax */
.js .page-hero .crumbs { transition-delay: 150ms; }
.page-hero .page-title { --split-delay: 120ms; }
.js .page-hero .page-intro,
.js .page-hero .article-meta { transition-delay: 640ms; }
.js .page-hero .hero-actions { transition-delay: 800ms; }

/* ---- 3. Word-mask title reveals ([data-split]) ---- */
.wm { display: inline-block; overflow: hidden; vertical-align: top; padding: .14em 0 .1em; margin: -.14em 0 -.1em; }
.wi { display: inline-block; }
.js [data-split] .wi { transform: translate3d(0, 108%, 0); }
.js [data-split].in .wi {
  transform: none;
  transition: transform var(--dur-cinematic) var(--ease);
  transition-delay: calc(min(var(--i, 0), 12) * 55ms + var(--split-delay, 0ms));
}
/* gradient words: carry the gradient on each word, not on the parent */
.aube-title em, .page-cta h2 em { --g: var(--dawn-text); }
.js [data-split] em { background: none !important; }
.js [data-split] em .wi {
  background-image: var(--g, var(--gold-text)); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .04em;
}

/* ---- 4. Pinned session: the three hours pass as you scroll (desktop) ---- */
.session-now { display: none; }
@media (min-width: 1100px) {
  .session.pin { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); column-gap: clamp(3rem, 6vw, 7rem); align-items: start; }
  .session.pin > .chapter-head, .session.pin > .session-private { grid-column: 1 / -1; }
  .session.pin .session-intro { position: sticky; top: 16vh; grid-template-columns: 1fr; gap: 1.6rem; margin: 0; }
  .session.pin .session-now {
    display: flex; align-items: baseline; gap: 1rem; margin-top: .6rem; padding-top: 1.4rem; border-top: 1px solid var(--hair-soft);
  }
  .session-now span { font-family: var(--f-herald); font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: var(--brume); }
  .session-now b { font-family: var(--f-display); font-style: italic; font-weight: 300; font-size: 1.9rem; color: var(--or-pale); }
  .session-now b.swap { animation: swap var(--dur-base) var(--ease) both; }
  .session.pin .score { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--hair-soft); }
  .session.pin .score::before {
    top: 0; left: -1px; right: auto; width: 1px; height: 100%; background: var(--or);
    transform-origin: top; transform: scaleY(var(--sp, 0));
  }
  .session.pin .score li {
    min-height: 54vh; display: flex; flex-direction: column; justify-content: center; padding: 0 0 0 3rem;
    transition: opacity var(--dur-slow) var(--ease-soft), transform var(--dur-cinematic) var(--ease);
  }
  .session.pin .score li h3, .session.pin .score li .score-mark { color: var(--brume); transition: color var(--dur-slow) var(--ease-soft); }
  .session.pin .score li p { color: #7a8395; transition: color var(--dur-slow) var(--ease-soft); }
  .session.pin .score li.on h3 { color: var(--ivoire); }
  .session.pin .score li.on .score-mark { color: var(--or); }
  .session.pin .score li.on p { color: #c2c9d4; }
  .session.pin .score li::before { left: -4px; top: calc(50% - 4px); transition: background var(--dur-base) var(--ease-soft); }
  .session.pin .score li.on::before { background: var(--or); }
  .session.pin .score h3 { font-size: clamp(2.2rem, 3.4vw, 3.2rem); }
  .session.pin .score p { font-size: 1.1rem; max-width: 36ch; }
}
@keyframes swap { from { opacity: 0; transform: translate3d(0, 10px, 0); } }

/* ---- 5. Micro-interactions ---- */
/* press */
.cta:active, .ledger-submit:active, .menu-btn:active { transform: scale(.985); transition-duration: var(--dur-instant); }
/* field focus: a gold line draws from the left */
.ledger-field { position: relative; }
.ledger-field::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--or-pale); pointer-events: none;
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur-slow) var(--ease);
}
.ledger-field:focus-within::after { transform: scaleX(1); }
/* submit confirmation */
.ledger-submit.sent { background: linear-gradient(100deg, #e8e1cf, #cbbf9e); }
.ledger-submit span { transition: opacity var(--dur-quick) var(--ease-soft); }
/* accordion body clips while it animates */
.faq-answer { overflow: hidden; }
/* reading progress on articles */
.read-progress {
  position: fixed; left: 0; right: 0; top: 0; height: 1px; z-index: 60; pointer-events: none;
  background: var(--or); transform: scaleX(var(--rp, 0)); transform-origin: left;
}
/* future photography: "develops" in the dark */
/* the mask sits on the image, never on the observed frame: a fully clipped
   element has no visible area, so the scroll observer would never reveal it */
.media-reveal { overflow: hidden; }
.js .media-reveal img {
  clip-path: inset(100% 0 0 0); transform: scale(1.08);
  transition: clip-path var(--dur-cinematic) var(--ease), transform 2.4s var(--ease);
}
.js .media-reveal.in img { clip-path: inset(0); transform: none; }

/* ---- 6. Reduced motion: everything readable, nothing moves ---- */
@media (prefers-reduced-motion: reduce) {
  :root { --dur-instant: 1ms; --dur-quick: 1ms; --dur-base: 1ms; --dur-slow: 1ms; --dur-reveal: 1ms; --dur-cinematic: 1ms; --stagger: 0ms; --rise: 0px; }
  @view-transition { navigation: none; }
  .js [data-split] .wi { transform: none !important; transition: none !important; }
  .js .page-hero::after, .js .page-hero::before { opacity: 1; transform: none; animation: none !important; }
  .page-hero::before { translate: none; }
  .read-progress { display: none; }
  .js .media-reveal img { clip-path: none; transform: none; transition: none; }
}

/* =========================================================
   IDENTITY REFINEMENTS — docs/AUDIT.md
   Three voices: Cinzel (heraldic) only for chapters, numerals, clock, brand
   and the hero label; Cormorant for what matters; Hanken for everything
   functional, in sentence case, never under 12px.
   ========================================================= */
:root { --label: 500 .875rem/1.4 var(--f-body); }

/* functional labels move to the clear voice */
.bridge-cta, .menu-btn, .link-line, .quick a, .crumbs, .dossier-tag, .phone-label,
.session-now span, .sig-role, .foot-title, .post-meta, .article-meta,
.ledger-profil legend, .ledger-field > span, .reassure, .form-note {
  font: var(--label); letter-spacing: .01em; text-transform: none;
}
.bridge-cta { font-weight: 500; color: var(--or-pale); }
.menu-btn { font-weight: 500; }
.link-line { font-size: .95rem; }
.quick a { font-size: .92rem; }
.crumbs { font-size: .85rem; color: var(--brume); }
.dossier-tag, .phone-label { color: var(--or); font-weight: 600; font-size: .82rem; letter-spacing: .04em; }
.post-meta b, .article-meta b { font-weight: 600; letter-spacing: .02em; }
.post-meta, .article-meta { font-size: .85rem; }
.foot-title { color: var(--or); font-weight: 600; font-size: .82rem; }
.ledger-field > span, .ledger-profil legend { color: var(--brume); font-size: .88rem; }
.ledger-profil legend { color: var(--or); }

/* buttons: sentence case, confident weight */
.cta, .ledger-submit {
  font-family: var(--f-body); font-weight: 600; font-size: .98rem; letter-spacing: .01em; text-transform: none;
}
@media (max-width: 760px) {
  .cta { font-size: .95rem; letter-spacing: 0; }
}

/* the hint speaks in the engraved voice, quietly */
.hint { font-family: var(--f-display); font-style: italic; font-size: 1.05rem; letter-spacing: .01em; text-transform: none; }

/* heraldic voice: minimum 12px */
.kicker { font-size: .78rem; }
.chapter-hour, .clock { font-size: .78rem; }
.index li span, .values-grid li span, .ln, .rn, .rl, .menu-list a span { font-size: .78rem; }
.three-unit { font-size: .88rem; }
.faq-group > h2 { font-size: .8rem; }

/* scroll cue: the falling line says enough */
.scroll-cue span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* home: one call to action at a time */
.bridge-cta { transition: opacity var(--dur-base) var(--ease-soft), transform var(--dur-base) var(--ease); }
.bridge-cta { visibility: visible; }
.cta-visible .bridge-cta { opacity: 0; transform: translate3d(0, -6px, 0); pointer-events: none; visibility: hidden; transition: opacity var(--dur-base) var(--ease-soft), transform var(--dur-base) var(--ease), visibility 0s linear var(--dur-base); }

/* numbering rule: moments in time are lowercase italic Roman */
.process li::before {
  content: counter(step, lower-roman);
  font-family: var(--f-display); font-style: italic; font-size: 1.4rem; letter-spacing: 0; color: var(--or);
}

/* footer meets the page on a warm horizon line */
.site-foot { position: relative; border-top: 0; }
.site-foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--dawn-line); }
.aube .site-foot::before { display: none; }

/* grain: lighter and still on touch screens */
@media (pointer: coarse) { .grain { animation: none; opacity: .05; } }
/* phone line: real text spacing, no flex gaps */
.cta-alt { display: inline-block; padding: .65rem 0; min-height: 44px; }

/* =========================================================
   MOBILE CONTACT DOCK — always one tap from a call
   ========================================================= */
.dock { display: none; }
@media (max-width: 760px) {
  .dock {
    position: fixed; z-index: 44; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    display: grid; grid-template-columns: auto 1fr; gap: 8px;
    transform: translate3d(0, 160%, 0); visibility: hidden;
    transition: transform var(--dur-base) var(--ease), visibility 0s linear var(--dur-base);
  }
  .dock.show { transform: none; visibility: visible; transition: transform var(--dur-base) var(--ease); }
  .menu-open .dock { transform: translate3d(0, 160%, 0); visibility: hidden; }
  .dock a {
    min-height: 52px; display: flex; align-items: center; justify-content: center; gap: .5rem;
    font: 600 .95rem/1 var(--f-body); letter-spacing: .01em; text-decoration: none;
    box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .7);
  }
  .dock-call {
    padding: 0 1.2rem; color: var(--ivoire); border: 1px solid var(--hair);
    background: rgba(6, 17, 31, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .dock-cta { color: var(--nuit); background: var(--gold-fill); }
  .dock a:active { transform: scale(.985); }
}

/* Form: what to do if no mail app opened */
.form-sent {
  padding: 1.1rem 1.2rem; border: 1px solid var(--hair); background: rgba(201, 165, 90, .05);
  color: #ddd6c6; font-size: .98rem; line-height: 1.6;
}
.form-sent a { color: var(--or-pale); }
.form-sent button {
  margin-top: .7rem; min-height: 44px; padding: 0 1rem; cursor: pointer;
  font: 500 .9rem var(--f-body); color: var(--ivoire); background: transparent; border: 1px solid var(--hair);
  transition: border-color var(--dur-quick) var(--ease-soft);
}
.form-sent button:hover { border-color: var(--or); }

/* keyboard users never land on something still invisible */
.js [data-reveal]:focus-within, .js [data-hero]:focus-within { opacity: 1; transform: none; transition-delay: 0s; }

/* hero side column: larger button and phone line */
.prologue .cta { font-size: 1.2rem; min-height: 68px; padding: 0 1.8rem 0 2rem; }
.prologue .cta-alt { font-size: 1.25rem; color: #b9c0cc; }
@media (max-width: 760px) { .prologue .cta { font-size: 1.08rem; min-height: 60px; } .prologue .cta-alt { font-size: 1.1rem; } }

/* =========================================================
   THE KEEPER — the founder as a huge, faint backdrop
   Like a film poster: he glows out of the night behind the whole hero,
   edges dissolving into darkness, the headline over him.
   ========================================================= */
.keeper {
  position: absolute; left: 58%; top: 64px; height: 128%;
  aspect-ratio: 535 / 1074; pointer-events: none;
  transform: translate3d(-50%, calc(var(--py, 0) * 0.12px), 0);
}
.keeper img {
  display: block; width: 100%; height: 100%; object-fit: contain;
  mix-blend-mode: screen;                       /* only his light shows; his darks become the night */
  filter: grayscale(1) contrast(1.06) brightness(calc(1.12 + var(--kl, 0) * .3));
  -webkit-mask-image: radial-gradient(ellipse 62% 46% at 50% 30%, #000 35%, rgba(0,0,0,.45) 62%, transparent 82%);
          mask-image: radial-gradient(ellipse 62% 46% at 50% 30%, #000 35%, rgba(0,0,0,.45) 62%, transparent 82%);
}
/* entrance: he emerges slowly once the lamp is lit */
.js .keeper img { opacity: 0; transform: scale(1.04); transform-origin: 50% 30%; }
.js.is-ready .keeper img {
  opacity: .6; transform: none;
  transition: opacity 3s var(--ease-soft) .7s, transform 4s var(--ease) .7s;
}
@media (max-width: 760px) {
  .keeper { left: 62%; top: 52px; height: 104%; }
  .js.is-ready .keeper img { opacity: .48; }
}
@media (prefers-reduced-motion: reduce) {
  .keeper { transform: translate3d(-50%, 0, 0); }
  .js .keeper img { opacity: .6; transform: none; transition: none; }
}

/* =========================================================
   PHOTOGRAPHY — the founder, always black and white, at night
   ========================================================= */
.photo, .cutout { margin: 0; }
.photo img, .cutout img { display: block; width: 100%; height: auto; }
.photo figcaption { margin-top: .9rem; font: var(--label); color: var(--brume); }
/* rectangular photos dissolve into the night at their edges */
.photo-night img {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%),
                      linear-gradient(to bottom, transparent 0, #000 12%, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%),
                      linear-gradient(to bottom, transparent 0, #000 12%, #000 80%, transparent 100%);
          mask-composite: intersect;
}

/* services list with a photo beside it */
.with-figure { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, .75fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.with-figure .photo { position: sticky; top: 110px; }
@media (max-width: 900px) {
  .with-figure { grid-template-columns: 1fr; }
  .with-figure .photo { position: static; max-width: 420px; }
}
.prose .photo { margin: 2.8rem 0; max-width: 460px; }

/* Le cabinet: portrait beside the founder's words */
.founder { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.founder .manifesto { font-size: clamp(1.8rem, 3.2vw, 3.2rem); }
.founder .signature { margin-left: 0; }
@media (max-width: 860px) { .founder { grid-template-columns: 1fr; } .founder .cutout { max-width: 420px; } }

/* Contact: who you will be speaking to */
.contact-portrait { max-width: 260px; margin-bottom: 2.4rem; }
.contact-portrait img {
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}
.contact-portrait figcaption { margin-top: -1.2rem; position: relative; font: var(--label); color: var(--brume); }
.contact-portrait figcaption span { display: block; font-family: var(--f-display); font-style: italic; font-size: 1.5rem; color: var(--or-pale); }

/* =========================================================
   INNER PAGE HEROES — the founder in the night, as on the home page
   (inherits the .keeper look: black and white, screen blend, vignette)
   ========================================================= */
.keeper-page {
  z-index: -2;                                   /* behind the beam (::before at -1) */
  left: 64%; top: 56px; height: 132%;
}
/* each photo keeps its own proportions, so the box is never squeezed by the screen edge */
.keeper-tux { aspect-ratio: 538 / 979; }
.keeper-jacket { aspect-ratio: 535 / 1074; }
.keeper-suit { aspect-ratio: 862 / 771; }
.keeper-heli { aspect-ratio: 496 / 700; }
/* the suit close-up and the helicopter photo are wider and tighter: smaller and higher */
.keeper-suit { height: 104%; top: 40px; }
.keeper-heli { height: 112%; top: 30px; left: 66%; }
@media (min-width: 761px) { .keeper-jacket { left: 77%; } .keeper-suit { left: 71%; } }
.page-hero.compact .keeper-page { height: 150%; }
.page-hero.compact .keeper-suit { height: 118%; }
.page-hero.compact .keeper-heli { height: 128%; }

@media (max-width: 760px) {
  .keeper-page { left: 70%; top: 48px; height: 112%; }
  .keeper-suit { height: 84%; }
  .keeper-heli { height: 92%; }
  .page-hero.compact .keeper-page { height: 118%; }
  .page-hero.compact .keeper-suit, .page-hero.compact .keeper-heli { height: 96%; }
}

/* Contact: the person you will speak to, by name */
.contact-name { margin-bottom: 2.2rem; font: var(--label); color: var(--brume); }
.contact-name span { display: block; font-family: var(--f-display); font-style: italic; font-size: 1.7rem; color: var(--or-pale); }

/* =========================================================
   DISCREET PORTRAITS — at the founder's request
   He stays a quiet presence in the night, never the subject.
   ========================================================= */
.keeper img {
  filter: grayscale(1) contrast(1.04) brightness(calc(1 + var(--kl, 0) * .25));
  -webkit-mask-image: radial-gradient(ellipse 54% 40% at 50% 28%, #000 25%, rgba(0,0,0,.35) 60%, transparent 85%);
          mask-image: radial-gradient(ellipse 54% 40% at 50% 28%, #000 25%, rgba(0,0,0,.35) 60%, transparent 85%);
}
.js.is-ready .keeper img { opacity: .5; }
.js.is-ready .keeper-page img { opacity: .11; }
@media (max-width: 760px) {
  .js.is-ready .keeper img { opacity: .38; }
  .js.is-ready .keeper-page img { opacity: .09; }
}
@media (prefers-reduced-motion: reduce) {
  .js .keeper img { opacity: .5; }
  .js .keeper-page img { opacity: .11; }
}
/* the helicopter photo beside the services: smaller and quieter too */
.with-figure .photo { max-width: 240px; justify-self: end; }
.with-figure .photo img { opacity: .4; filter: brightness(.9); }

/* =========================================================
   FLAT NAVIGATION — visible links on desktop, overlay menu below 1100px
   ========================================================= */
.topnav { display: none; }
@media (min-width: 1100px) {
  .topnav { display: flex; align-items: center; gap: clamp(1.3rem, 2.1vw, 2.4rem); margin: 0 auto; }
  .topnav a {
    position: relative; display: inline-flex; align-items: center; min-height: 44px;
    font: 500 .92rem/1 var(--f-body); letter-spacing: .01em; color: var(--ivoire); text-decoration: none;
    opacity: .82; transition: opacity var(--dur-quick) var(--ease-soft), color var(--dur-quick) var(--ease-soft);
  }
  .topnav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 1px; background: var(--or);
    transform: scaleX(0); transform-origin: left; transition: transform var(--dur-slow) var(--ease);
  }
  .topnav a:hover { opacity: 1; }
  .topnav a:hover::after { transform: scaleX(1); }
  .topnav a[aria-current="page"] { opacity: 1; color: var(--or-pale); }
  .topnav a[aria-current="page"]::after { transform: scaleX(1); }
  .menu-btn { display: none; }
  .mark-name { white-space: nowrap; }
}
/* on narrower desktops the watch clock steps aside to make room */
@media (min-width: 1100px) and (max-width: 1379px) { .clock { display: none; } }


/* =========================================================
   LIGHTER NIGHT — content sections sit on a deep navy "lit room",
   heroes keep the pure night; brighter secondary text and gold
   ========================================================= */
/* the home hero's sea flows into the lit room instead of stepping */
.prologue + .chapter { background: linear-gradient(to bottom, var(--nuit), var(--surface) 40vh); }
.site-foot { background: var(--nuit); }
.menu { background: radial-gradient(ellipse 60% 50% at 85% 100%, rgba(212, 176, 102, .1), transparent 70%), rgba(5, 12, 24, .97); }

/* =========================================================
   ARTICLE READING MODE — "dawn paper": ivory page, dark ink,
   the header, hero and footer stay night
   ========================================================= */
.article-page .page-section {
  --ink: #1d2433; --ink-soft: #4a5263;
  background: #f4efe5; color: var(--ink);
}
.article-page .page-section + .page-section { padding-top: clamp(3rem, 8vh, 5rem); }
.article-page .page-section:last-of-type { padding-bottom: clamp(5rem, 12vh, 8rem); }
.article-page .prose { color: #2a3142; }
.article-page .prose .standfirst, .article-page .prose h2, .article-page .prose strong { color: var(--ink); }
.article-page .prose h2::before { background: #a8823b; }
.article-page .prose ul li::before { border-color: #a8823b; }
.article-page .prose a { color: #7d5a1c; }
.article-page .prose blockquote { color: #7d5a1c; border-color: #a8823b; }
.article-page .note { border-color: rgba(29, 36, 51, .15); color: var(--ink-soft); }
.article-page .note a { color: #7d5a1c; }
/* "À lire aussi" on the same paper */
.article-page .chapter-num { color: #a8823b; }
.article-page .chapter-rule { background: #a8823b; }
.article-page .chapter-label { color: var(--ink); }
.article-page .post-list { border-color: rgba(29, 36, 51, .2); }
.article-page .post-list li { border-color: rgba(29, 36, 51, .12); }
.article-page .post-link h3 { color: var(--ink); }
.article-page .post-link p { color: var(--ink-soft); }
.article-page .post-meta { color: var(--ink-soft); }
.article-page .post-meta b { color: #7d5a1c; }
.article-page .post-link:hover h3 { color: #7d5a1c; }
.article-page .post-link .arrow { background: #a8823b; }
.article-page .post-link .arrow::after { border-color: #a8823b; }
.article-page .page-cta { margin-top: 0; }
/* links inside a sentence need more than colour to stand out */
.foot-legal p a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--hair); }
.foot-legal p a:hover { text-decoration-color: var(--or); }
/* over the ivory reading page the header needs a solid night bar */
.article-page .bridge::before { inset: 0; background: rgba(5, 12, 24, .96); border-bottom: 1px solid var(--hair-soft); }

/* ===== CONTACT FORM: sending and confirmation ===== */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ledger { position: relative; }
.ledger-submit:disabled { cursor: progress; filter: saturate(.6) brightness(.9); }
.form-done { padding: clamp(1.6rem, 4vw, 2.4rem) 0; border-top: 1px solid rgba(212, 176, 102, .45); outline: none; }
.form-done p { color: var(--brume); margin: 0 0 .8rem; max-width: 34rem; }
.form-done .form-done-title { font-family: "Cormorant", serif; font-style: italic; font-size: clamp(1.8rem, 3.4vw, 2.4rem); color: var(--or-pale); margin-bottom: 1rem; }
.form-done a { color: var(--or-pale); }
