/* JokyJoke — « Cinéma » : shared design system (every page links this file). */
:root {
  --ink: #070608;
  --black: #000;
  --pearl: #eee7db;
  --pearl-2: rgba(238, 231, 219, 0.7);
  --pearl-3: rgba(238, 231, 219, 0.42);
  --gold: #d8c3a0;
  --gold-2: #b49a72;
  --gutter: clamp(20px, 3.4vw, 58px);
  --bar: 0px; /* letterbox height, set by the script */
  --display: "Archivo", "Arial Black", sans-serif;
  --text: "Geist", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
* { box-sizing: border-box; }
html { background: var(--ink); color: var(--pearl); -webkit-font-smoothing: antialiased; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; font-family: var(--text); font-weight: 300; background: var(--ink); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- the scene ---------- */
#stage { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; display: block; z-index: 0; }
.grain { position: fixed; inset: -50%; z-index: 6; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(5) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-2%, 3%); } 50% { transform: translate(3%, -1%); } 75% { transform: translate(-1%, -3%); } 100% { transform: translate(0, 0); } }

/* letterbox: two black bars that close in for the card sequence */
.bar { position: fixed; left: 0; right: 0; height: var(--bar); background: var(--black); z-index: 4; pointer-events: none; }
.bar-t { top: 0; }
.bar-b { bottom: 0; }

/* ---------- header ---------- */
.top { position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 22px; padding: 24px var(--gutter); }
.brand { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 21px; letter-spacing: -0.012em; line-height: 1; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-btn { display: inline-flex; align-items: center; gap: 12px; height: 42px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 400; color: var(--pearl); transition: background .4s var(--ease); }
.menu-btn:hover, .menu-btn:focus-visible { background: rgba(238, 231, 219, 0.08); }
.menu-btn i { display: grid; gap: 5px; width: 18px; }
.menu-btn i::before, .menu-btn i::after { content: ""; display: block; height: 1.5px; background: currentColor; border-radius: 1px; transition: transform .5s var(--ease); }
.menu-open .menu-btn i::before { transform: translateY(3.25px) rotate(45deg); }
.menu-open .menu-btn i::after { transform: translateY(-3.25px) rotate(-45deg); }
.pill { position: relative; display: inline-flex; align-items: center; gap: 12px; height: 42px; padding: 0 20px; border-radius: 999px; font-size: 14px; font-weight: 500; letter-spacing: 0.005em; overflow: hidden; isolation: isolate;
  color: var(--ink); background: var(--pearl); transition: color .45s var(--ease), transform .45s var(--ease); }
.pill::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold); transform: translateY(101%); transition: transform .55s var(--ease); border-radius: inherit; }
.pill:hover::before, .pill:focus-visible::before { transform: none; }
.pill .arr { display: inline-block; transition: transform .55s var(--ease); }
.pill:hover .arr, .pill:focus-visible .arr { transform: translateX(4px); }
.pill.big { height: 56px; padding: 0 28px; font-size: 15.5px; }

/* full-screen menu */
.menu { position: fixed; inset: 0; z-index: 15; display: flex; flex-direction: column; justify-content: center; padding: 110px var(--gutter) 60px; background: rgba(7, 6, 8, 0.985);
  opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s linear .6s; }
.menu-open .menu { opacity: 1; visibility: visible; transition: opacity .6s var(--ease); }
.menu > a { display: block; font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(38px, 7.4vw, 118px); line-height: 1.02; letter-spacing: -0.01em;
  color: var(--pearl); transform: translateY(40px); opacity: 0; transition: transform .8s var(--ease), opacity .8s var(--ease), color .4s; }
.menu > a:hover, .menu > a:focus-visible { color: var(--gold); }
.menu-open .menu > a { transform: none; opacity: 1; }
.menu > a:nth-child(2) { transition-delay: .05s; } .menu > a:nth-child(3) { transition-delay: .1s; } .menu > a:nth-child(4) { transition-delay: .15s; } .menu > a:nth-child(5) { transition-delay: .2s; }
.menu > a small { font-family: var(--text); font-stretch: 100%; font-weight: 400; font-size: 14px; letter-spacing: 0; vertical-align: top; color: var(--gold); margin-right: 18px; }

/* opening credit (intro only) */
.credit { position: fixed; z-index: 7; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; text-align: center; white-space: nowrap;
  font-size: 15px; font-weight: 400; letter-spacing: 0.04em; color: var(--pearl-2); opacity: 0; transition: opacity 1.2s var(--ease); }
.credit b { display: block; margin-bottom: 10px; font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 22px; letter-spacing: -0.01em; color: var(--gold); }
.credit.on { opacity: 1; }

/* ---------- the scroll track ---------- */
main { position: relative; z-index: 2; }
.hero { position: relative; height: 100vh; height: 100svh; }
.hero-copy { position: absolute; left: var(--gutter); bottom: clamp(36px, 7vh, 84px); width: min(480px, 40vw); }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: 13.5px; font-weight: 500; color: var(--gold); letter-spacing: 0.01em; }
.eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.lead { margin: 0; font-size: 18.5px; line-height: 1.55; color: var(--pearl-2); max-width: 36ch; }
.ctas { display: flex; align-items: center; gap: 26px; margin-top: 30px; }
.link { position: relative; font-size: 15px; font-weight: 400; padding: 6px 0; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; opacity: .5; transform-origin: right; transition: transform .6s var(--ease); }
.link:hover::after, .link:focus-visible::after { transform: scaleX(0); }
.cue { position: absolute; right: var(--gutter); bottom: clamp(36px, 7vh, 84px); display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--pearl-3); }
.cue i { position: relative; width: 1px; height: 46px; background: rgba(238, 231, 219, 0.18); overflow: hidden; }
.cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1.1s var(--ease), transform 1.3s var(--ease); }
.js .on .reveal, .js .reveal.on { opacity: 1; transform: none; }
.seg { position: relative; }

/* ---------- fixed overlays driven by the scroll ---------- */
.ov { position: fixed; z-index: 8; pointer-events: none; opacity: 0; }
.ov.live { pointer-events: auto; }
/* subtitles sit inside the bottom letterbox bar */
.subs { left: 50%; bottom: 0; height: var(--bar); width: min(880px, calc(100vw - 2 * var(--gutter))); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; }
.subs .k { font-size: 14px; font-weight: 500; color: var(--gold); letter-spacing: 0.02em; }
.subs .k span { color: var(--pearl); }
.subs p { margin: 0; font-size: clamp(16px, 1.25vw, 19.5px); line-height: 1.45; color: var(--pearl-2); max-width: 62ch; }
.subs a { margin-top: 4px; font-size: 13.5px; font-weight: 400; color: var(--pearl); }
.subs a span { color: var(--gold); }
.subs .swap { transition: opacity .5s var(--ease), transform .7s var(--ease); }
.subs .swap.out { opacity: 0; transform: translateY(8px); }
.topline { left: var(--gutter); right: var(--gutter); top: 0; height: var(--bar); display: flex; align-items: flex-end; justify-content: space-between; padding-bottom: 18px; font-size: 13px; color: var(--pearl-3); }
.ticks { display: flex; gap: 6px; align-items: center; }
.ticks i { width: 18px; height: 2px; border-radius: 1px; background: rgba(238, 231, 219, 0.16); transition: background .5s; }
.ticks i.on { background: var(--gold); }
.ticks i.done { background: rgba(216, 195, 160, 0.45); }
.fin { left: 50%; bottom: clamp(40px, 9vh, 96px); transform: translateX(-50%); width: min(620px, calc(100vw - 2 * var(--gutter))); text-align: center; }
.fin p { margin: 0 auto 28px; font-size: 18px; line-height: 1.6; color: var(--pearl-2); max-width: 54ch; }
.timecode { position: fixed; z-index: 9; right: var(--gutter); bottom: 22px; font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; color: var(--pearl-3); pointer-events: none; transition: opacity .6s; }
.timecode b { font-weight: 500; color: var(--pearl-2); margin-right: 10px; }

/* ---------- the closing credits: contact ---------- */
:root { --err: #e8957f; --field: rgba(238, 231, 219, 0.035); --field-b: rgba(238, 231, 219, 0.11); }
.contact { position: relative; z-index: 3; padding: 26vh var(--gutter) 0;
  background: linear-gradient(to bottom, rgba(7, 6, 8, 0) 0, rgba(7, 6, 8, 0.9) 16vh, var(--ink) 32vh); }
.contact::before { content: ""; position: absolute; left: 50%; top: 22vh; width: min(1100px, 90vw); height: 60vh; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(216, 195, 160, 0.07), transparent); }
.contact-in { position: relative; display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.3fr); gap: clamp(40px, 6vw, 112px); max-width: 1480px; margin: 0 auto; align-items: start; }
.c-intro { position: sticky; top: 120px; }
.c-title { margin: 0; font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(42px, 5.2vw, 92px); line-height: 0.93; letter-spacing: -0.012em; }
.c-title em { font-style: italic; color: var(--gold); }
.c-lead { margin: 26px 0 0; font-size: 18.5px; line-height: 1.6; color: var(--pearl-2); max-width: 40ch; }
.c-steps, .c-direct { margin-top: 46px; }
.c-steps h4, .c-direct h4 { margin: 0 0 16px; font-size: 13.5px; font-weight: 500; color: var(--gold); letter-spacing: 0.01em; }
.c-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.c-steps li { display: grid; grid-template-columns: 46px 1fr; gap: 6px; }
.c-steps li b { font-family: var(--display); font-stretch: 125%; font-weight: 700; font-size: 13px; color: var(--gold-2); padding-top: 3px; }
.c-steps li span { font-size: 15px; line-height: 1.55; color: var(--pearl-2); }
.c-steps li strong { display: block; font-weight: 500; font-size: 16px; color: var(--pearl); margin-bottom: 2px; }
.c-direct p { margin: 0; font-size: 15.5px; color: var(--pearl-2); }
.c-direct a { color: var(--pearl); border-bottom: 1px solid rgba(216, 195, 160, 0.5); transition: color .4s, border-color .4s; }
.c-direct a:hover, .c-direct a:focus-visible { color: var(--gold); border-color: var(--gold); }
.c-formwrap { position: relative; border-radius: 28px; padding: clamp(22px, 3vw, 46px); background: linear-gradient(160deg, rgba(238, 231, 219, 0.045), rgba(238, 231, 219, 0.015));
  border: 1px solid rgba(238, 231, 219, 0.08); box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9); }
.rise { opacity: 0; transform: translateY(30px); transition: opacity 1.1s var(--ease) calc(var(--i, 0) * 0.09s), transform 1.3s var(--ease) calc(var(--i, 0) * 0.09s); }
.contact.in .rise { opacity: 1; transform: none; }

.f-set { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 22px; }
.f-cards, .f-time { border: 0; margin: 0; padding: 0; min-width: 0; }
.f-cards legend, .f-time legend, .fld > label { display: flex; align-items: baseline; gap: 10px; padding: 0; margin: 0 0 12px; font-size: 14px; font-weight: 500; color: var(--pearl-2); transition: color .35s; }
.opt { font-size: 12px; font-weight: 400; color: var(--pearl-3); }
.req { color: var(--gold); }
.fld:focus-within > label { color: var(--gold); }

/* the card picker: nine small black cards, the Joker for « autre chose » */
.pick { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 10px; perspective: 700px; }
.pc { position: relative; display: flex; flex-direction: column; align-items: center; gap: 9px; cursor: pointer; text-align: center; }
.pc input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pc-card { position: relative; display: grid; place-items: center; width: 100%; max-width: 74px; aspect-ratio: 1 / 1.397; border-radius: 7px; overflow: hidden;
  background: radial-gradient(120% 90% at 30% 10%, #1d1914, #070607 62%); color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(216, 195, 160, 0.42), inset 0 0 0 4px #080708, inset 0 0 0 5px rgba(216, 195, 160, 0.2), 0 10px 24px -14px rgba(0, 0, 0, 0.9);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px)); transition: transform .6s var(--ease), box-shadow .5s var(--ease), opacity .5s; }
.pc-card i { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-style: normal; font-size: clamp(13px, 1.15vw, 18px); letter-spacing: 0.02em; }
.pc-card b { position: absolute; left: 8px; top: 6px; font-size: 7px; font-weight: 400; opacity: .8; }
.pc-card svg { width: 62%; height: auto; }
.pc-card::after { content: ""; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 40%, rgba(255, 240, 215, 0.22) 50%, transparent 60%); transform: translateX(-60%); transition: transform .9s var(--ease); pointer-events: none; }
.pc:hover .pc-card { --ty: -5px; box-shadow: inset 0 0 0 1px rgba(216, 195, 160, 0.75), inset 0 0 0 4px #080708, inset 0 0 0 5px rgba(216, 195, 160, 0.3), 0 16px 30px -14px rgba(0, 0, 0, 0.9); }
.pc:hover .pc-card::after { transform: translateX(60%); }
.pc-name { font-size: 11.5px; line-height: 1.3; color: var(--pearl-3); transition: color .4s; }
.pc input:checked + .pc-card { --ty: -10px; box-shadow: inset 0 0 0 1.5px var(--gold), inset 0 0 0 4px #080708, inset 0 0 0 5px rgba(216, 195, 160, 0.5), 0 18px 34px -12px rgba(216, 195, 160, 0.45); }
.pc input:checked + .pc-card::after { transform: translateX(60%); }
.pc input:checked ~ .pc-name { color: var(--pearl); }
.pick:has(input:checked) .pc:not(:has(input:checked)) .pc-card { opacity: .55; }
.pc input:focus-visible + .pc-card { outline: 2px solid var(--gold); outline-offset: 4px; }
.contact.in .pc { animation: deal .9s var(--ease) both; animation-delay: calc(0.35s + var(--k, 0) * 0.055s); }
@keyframes deal { from { opacity: 0; transform: translateY(26px) rotate(-7deg); } to { opacity: 1; transform: none; } }

.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fld { position: relative; }
.fld input[type="text"], .fld input[type="email"], .fld textarea { width: 100%; font: inherit; font-size: 16.5px; font-weight: 400; color: var(--pearl); background: var(--field); border: 1px solid var(--field-b); border-radius: 14px;
  padding: 15px 17px; outline: none; transition: border-color .35s, box-shadow .35s, background .35s; resize: vertical; -webkit-appearance: none; appearance: none; }
.fld textarea { min-height: 140px; line-height: 1.55; }
.fld ::placeholder { color: rgba(238, 231, 219, 0.3); }
.fld input:hover, .fld textarea:hover { border-color: rgba(238, 231, 219, 0.2); }
.fld input:focus, .fld textarea:focus { border-color: var(--gold); background: rgba(238, 231, 219, 0.055); box-shadow: 0 0 0 4px rgba(216, 195, 160, 0.16), 0 12px 30px -18px rgba(216, 195, 160, 0.5); }
.fld [aria-invalid="true"] { border-color: var(--err) !important; box-shadow: 0 0 0 4px rgba(232, 149, 127, 0.12) !important; }
.err { margin: 8px 2px 0; min-height: 0; font-size: 13.5px; color: var(--err); display: flex; gap: 8px; align-items: center; }
.err:empty { display: none; }
.err::before { content: ""; width: 6px; height: 6px; background: currentColor; transform: rotate(45deg); flex: none; }
.count { position: absolute; right: 14px; top: 0; margin: 0; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--pearl-3); transition: color .3s; }
.count.ok { color: var(--gold); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.seg-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-pills label { position: relative; cursor: pointer; }
.seg-pills input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-pills span { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 999px; font-size: 14px; color: var(--pearl-2); border: 1px solid rgba(238, 231, 219, 0.15);
  transition: background .4s var(--ease), color .4s, border-color .4s, transform .4s var(--ease); }
.seg-pills label:hover span { border-color: rgba(216, 195, 160, 0.6); color: var(--pearl); }
.seg-pills input:checked + span { background: var(--pearl); color: var(--ink); border-color: var(--pearl); }
.seg-pills input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }

.chk { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; cursor: pointer; font-size: 14.5px; line-height: 1.55; color: var(--pearl-2); }
.chk input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chk .box { position: relative; width: 22px; height: 22px; margin-top: 1px; border-radius: 6px; border: 1px solid rgba(238, 231, 219, 0.3); transition: background .35s, border-color .35s, box-shadow .35s; }
.chk .box::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .35s var(--ease); }
.chk input:checked + .box { background: var(--gold); border-color: var(--gold); }
.chk input:checked + .box::after { transform: rotate(45deg) scale(1); }
.chk input:focus-visible + .box { box-shadow: 0 0 0 4px rgba(216, 195, 160, 0.3); border-color: var(--gold); }
.chk input[aria-invalid="true"] + .box { border-color: var(--err); }
.chk a { color: var(--pearl); border-bottom: 1px solid rgba(216, 195, 160, 0.5); }
.f-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.f-note { margin: 0; font-size: 12.5px; color: var(--pearl-3); }
.f-note span { color: var(--gold); }
.f-submit { border: 0; cursor: pointer; font-family: var(--text); }
.f-submit:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.f-submit.sending { pointer-events: none; }
.f-submit.sending::before { transform: none; animation: shimmer 1s linear infinite; background: linear-gradient(90deg, var(--gold), #f3e6cd, var(--gold)); background-size: 200% 100%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.f-summary { border-radius: 14px; padding: 16px 18px; background: rgba(232, 149, 127, 0.08); box-shadow: inset 2px 0 0 var(--err); outline: none; }
.f-summary:focus-visible { box-shadow: inset 2px 0 0 var(--err), 0 0 0 3px rgba(232, 149, 127, 0.35); }
.f-summary p { margin: 0 0 8px; font-size: 14.5px; font-weight: 500; color: var(--pearl); }
.f-summary ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--err); }
.f-summary a { color: inherit; border-bottom: 1px solid rgba(232, 149, 127, 0.5); }
.shake { animation: shake .5s var(--ease); }
@keyframes shake { 20% { transform: translateX(-6px); } 45% { transform: translateX(5px); } 70% { transform: translateX(-3px); } 100% { transform: none; } }

.c-done { text-align: center; padding: clamp(30px, 6vh, 70px) 10px; outline: none; }
.c-done .done-card { width: 96px; aspect-ratio: 1 / 1.397; margin: 0 auto 34px; border-radius: 9px; display: grid; place-items: center; color: var(--gold);
  background: radial-gradient(120% 90% at 30% 10%, #221d16, #070607 62%);
  box-shadow: inset 0 0 0 1.5px var(--gold), inset 0 0 0 5px #080708, inset 0 0 0 6px rgba(216, 195, 160, 0.45), 0 30px 60px -20px rgba(216, 195, 160, 0.4); animation: flipin 1.3s var(--ease) both; }
.c-done .done-card svg { width: 60%; }
@keyframes flipin { from { transform: perspective(600px) rotateY(180deg) translateY(30px); opacity: 0; } to { transform: perspective(600px) rotateY(0) translateY(0); opacity: 1; } }
.c-done h3 { margin: 0; font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 3.4vw, 54px); line-height: 1; animation: up 1s var(--ease) .25s both; }
.c-done p { margin: 16px auto 0; max-width: 40ch; font-size: 17px; color: var(--pearl-2); animation: up 1s var(--ease) .35s both; }
.c-done .mock { display: inline-block; margin-top: 22px; padding: 6px 14px; border-radius: 999px; font-size: 12.5px; color: var(--pearl-3); border: 1px solid rgba(238, 231, 219, 0.14); }
.c-done .link { margin-top: 30px; display: inline-block; animation: up 1s var(--ease) .5s both; }
@keyframes up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.c-foot { position: relative; display: flex; gap: 28px; flex-wrap: wrap; max-width: 1480px; margin: 18vh auto 0; padding: 26px 0 34px; border-top: 1px solid rgba(238, 231, 219, 0.08); font-size: 13px; color: var(--pearl-3); }
.c-foot a { transition: color .3s; }
.c-foot a:hover, .c-foot a:focus-visible { color: var(--pearl); }

/* toast, cut to black, solid header over the credits */
.toast { position: fixed; z-index: 40; left: 50%; bottom: 34px; margin: 0; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 12px;
  padding: 13px 20px; border-radius: 999px; background: rgba(22, 19, 15, 0.94); border: 1px solid rgba(216, 195, 160, 0.3); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9);
  font-size: 14px; color: var(--pearl); white-space: nowrap; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.toast::before { content: ""; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); flex: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.cut { position: fixed; inset: 0; z-index: 30; background: #000; opacity: 0; pointer-events: none; transition: opacity .55s var(--ease); }
.cut.on { opacity: 1; }
.top::before { content: ""; position: absolute; inset: 0 0 -30px; z-index: -1; background: linear-gradient(rgba(7, 6, 8, 0.95), rgba(7, 6, 8, 0)); opacity: 0; transition: opacity .6s; pointer-events: none; }
.top.solid::before { opacity: 1; }

/* fallback without WebGL: plain readable page */
.no-webgl #stage, .no-webgl .bar { display: none; }
.no-webgl .hero h1.sr { position: static !important; width: auto; height: auto; margin: 0 0 30px; clip: auto; white-space: normal; font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(40px, 6vw, 96px); line-height: .95; }
.no-webgl .hero-copy { position: static; padding: 140px var(--gutter) 0; width: auto; }

@media (max-width: 760px) {
  .top { padding: 16px 18px; }
  .brand { font-size: 15px; }
  .top .pill { display: none; }
  .hero { height: auto; min-height: 100svh; }
  .hero-copy { position: absolute; left: 20px; right: 20px; bottom: 30px; width: auto; }
  .lead { font-size: 16.5px; }
  .ctas { gap: 20px; margin-top: 24px; }
  .pill.big { height: 52px; padding: 0 24px; font-size: 15px; }
  .cue { display: none; }
  .subs { left: 20px; right: 20px; width: auto; transform: none; bottom: 26px; height: auto; align-items: flex-start; text-align: left; }
  .topline { display: none; }
  .fin { bottom: 40px; }
  .timecode { display: none; }
  .contact { padding: 20vh 18px 0; }
  .contact-in { grid-template-columns: 1fr; gap: 40px; }
  .c-intro { position: static; }
  .c-steps, .c-direct { margin-top: 32px; }
  .c-formwrap { border-radius: 22px; padding: 20px 16px 24px; }
  .pick { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }
  .pc-card { max-width: 66px; }
  .pc-name { font-size: 11.5px; }
  .f-row { grid-template-columns: 1fr; }
  .f-foot { flex-direction: column; align-items: stretch; }
  .f-submit { justify-content: center; }
  .toast { white-space: normal; width: calc(100vw - 40px); justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .grain, .cue i::after { animation: none; }
  .js .reveal { transition: none; }
}

/* =====================================================================
   The complete site: navigation, chapters, footer, pages
   ===================================================================== */
.skip { position: fixed; z-index: 60; left: 14px; top: 12px; padding: 12px 18px; border-radius: 999px; background: var(--pearl); color: var(--ink); font-size: 14px; font-weight: 500; transform: translateY(-160%); transition: transform .4s var(--ease); }
.skip:focus-visible { transform: none; outline: 2px solid var(--gold); outline-offset: 3px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
main:focus, section:focus, [tabindex="-1"]:focus { outline: none; }
.nav { display: none; gap: 30px; margin-left: auto; font-size: 14px; font-weight: 400; color: var(--pearl-2); }
.nav a { position: relative; padding: 8px 0; transition: color .35s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.nav a:hover, .nav a:focus-visible, .nav a[aria-current] { color: var(--pearl); }
.nav a:hover::after, .nav a:focus-visible::after, .nav a[aria-current]::after { transform: scaleX(1); }
@media (min-width: 1100px) {
  .nav { display: flex; }
  .top-right { margin-left: 34px; }
  .menu-btn { display: none; }
}
.menu-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; margin: 46px 0 0; opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease) .25s, transform .8s var(--ease) .25s; }
.menu-open .menu-foot { opacity: 1; transform: none; }
.menu-mail { font-size: 15px; color: var(--pearl-2); border-bottom: 1px solid rgba(216, 195, 160, 0.4); }
body.over-card { cursor: pointer; }

/* generic reveals */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--ease) calc(var(--i, 0) * 0.1s), transform 1.3s var(--ease) calc(var(--i, 0) * 0.1s); }
[data-reveal].in { opacity: 1; transform: none; }
html:not(.js) [data-reveal] { opacity: 1; transform: none; }

/* ---------- chapters (the home interlude) ---------- */
.inter { position: relative; z-index: 3; padding: 44vh 0 30vh;
  background: linear-gradient(to bottom, rgba(7, 6, 8, 0) 0, rgba(7, 6, 8, 0.86) 22vh, var(--ink) 40vh, var(--ink) calc(100% - 40vh), rgba(7, 6, 8, 0) 100%); }
.sec { position: relative; padding: 12vh var(--gutter); }
.sec-in { max-width: 1480px; margin: 0 auto; }
.ch-head { max-width: 980px; margin: 0 0 9vh; }
.ch-num { display: flex; gap: 12px; align-items: baseline; margin: 0 0 22px; font-size: 12.5px; color: var(--pearl-3); letter-spacing: 0.02em; }
.ch-num b { font-family: var(--display); font-stretch: 125%; font-weight: 700; font-size: 12.5px; color: var(--gold); }
.ch-title, .c-big { margin: 0; font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(40px, 5.6vw, 102px); line-height: 0.92; letter-spacing: -0.012em; }
.ch-title em, .c-big em { font-style: italic; color: var(--gold); }
.ch-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.02em 0.08em; margin-bottom: -0.08em; }
.ch-title .w > span { display: inline-block; transform: translateY(108%); transition: transform 1.15s var(--ease) var(--d, 0s); }
.in .ch-title .w > span, html:not(.js) .ch-title .w > span { transform: none; }
.ch-sub { margin: 26px 0 0; font-size: 21px; font-weight: 400; color: var(--pearl); }
.ch-intro { margin: 22px 0 0; font-size: 19px; line-height: 1.62; color: var(--pearl-2); max-width: 56ch; }
.chips { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 12px; border-radius: 999px; font-size: 12.5px; color: var(--pearl-2); box-shadow: inset 0 0 0 1px rgba(238, 231, 219, 0.14); }

/* I. the layers: an exploded stack of plates beside the strata */
.layers-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6vw; align-items: start; }
.layers-side { position: sticky; top: 14vh; }
.stack-fig { margin: 0; height: min(62vh, 560px); display: grid; place-items: center; perspective: 1500px; }
.stack { position: relative; width: min(360px, 74%); aspect-ratio: 1.397 / 1; transform-style: preserve-3d; transform: rotateX(57deg) rotateZ(-36deg); --p: 0; }
.plate { position: absolute; inset: 0; border-radius: 18px; transform: translateZ(calc((2.5 - var(--k)) * (16px + var(--p) * 44px)));
  background: repeating-linear-gradient(0deg, rgba(216, 195, 160, 0.05) 0 1px, transparent 1px 24px), repeating-linear-gradient(90deg, rgba(216, 195, 160, 0.05) 0 1px, transparent 1px 24px), linear-gradient(135deg, rgba(28, 24, 18, 0.97), rgba(8, 7, 8, 0.97));
  box-shadow: inset 0 0 0 1px rgba(216, 195, 160, 0.3), 0 30px 60px -24px rgba(0, 0, 0, 0.9); transition: box-shadow .6s var(--ease), background .6s; }
.plate span { position: absolute; left: 18px; bottom: 14px; font-size: 11.5px; font-weight: 500; letter-spacing: 0.04em; color: rgba(216, 195, 160, 0.75); transition: color .5s; }
.plate.on { box-shadow: inset 0 0 0 1.5px var(--gold), 0 0 70px -12px rgba(216, 195, 160, 0.5), 0 30px 60px -24px rgba(0, 0, 0, 0.9); }
.plate.on span { color: var(--gold); }
.stack-cap { margin: 2vh 0 0; font-size: 13px; color: var(--pearl-3); max-width: 46ch; }
.stack-cap span { display: block; margin-top: 6px; color: var(--gold-2); }
.strata { list-style: none; margin: 0; padding: 0; }
.stratum { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 5.5vh 0; border-top: 1px solid rgba(238, 231, 219, 0.08); }
.stratum.in { opacity: .42; }
.stratum.on.in { opacity: 1; }
.stratum b { font-family: var(--display); font-stretch: 125%; font-weight: 700; font-size: 14px; color: var(--gold-2); padding-top: 6px; }
.stratum.on b { color: var(--gold); }
.stratum h3 { margin: 0; font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(24px, 2.2vw, 36px); line-height: 1; }
.stratum p { margin: 12px 0 0; font-size: 16.5px; line-height: 1.6; color: var(--pearl-2); max-width: 46ch; }
.stratum .tools { font-size: 13.5px; color: var(--gold-2); letter-spacing: 0.01em; }

/* II. the method: five gestures, one in the light at a time */
.method-grid { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 4vw; }
.rail { position: sticky; top: 28vh; height: 44vh; width: 2px; margin-left: 22px; background: rgba(238, 231, 219, 0.1); }
.rail i { position: absolute; inset: 0; background: var(--gold); transform-origin: top; transform: scaleY(0); }
.rail b { position: absolute; left: -22px; top: calc(var(--k) * 25% - 9px); width: 46px; height: 18px; display: grid; place-items: center; transform: translateX(-12px); font-family: var(--display); font-stretch: 125%; font-weight: 700; font-size: 11px; color: var(--pearl-3); background: var(--ink); transition: color .5s; }
.rail b.on { color: var(--gold); }
.steps { list-style: none; margin: 0; padding: 0; }
.step { padding: 8vh 0; }
.step.in { opacity: .3; }
.step.lit.in { opacity: 1; }
.gesture { display: flex; gap: 14px; align-items: baseline; margin: 0 0 14px; font-size: 15px; font-style: italic; color: var(--gold); }
.gesture span { font-family: var(--display); font-stretch: 125%; font-style: normal; font-weight: 700; font-size: 12px; color: var(--gold-2); }
.step h3 { margin: 0; font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(42px, 6.4vw, 112px); line-height: 0.9; letter-spacing: -0.015em; }
.step .sum { margin: 22px 0 0; font-size: 21px; color: var(--pearl); max-width: 40ch; }
.step .det { margin: 12px 0 0; font-size: 16.5px; line-height: 1.62; color: var(--pearl-2); max-width: 58ch; }
.step .cap { margin: 20px 0 0; font-size: 15px; font-style: italic; color: var(--pearl-3); }
.complete { margin: 6vh auto 0; max-width: 24ch; text-align: center; font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 3.1vw, 50px); line-height: 1; color: var(--gold); }

/* III. the studies */
.disclaimer { display: flex; gap: 14px; align-items: flex-start; margin: 30px 0 0; padding: 16px 20px; border-radius: 16px; max-width: 72ch; font-size: 15px; line-height: 1.55; color: var(--pearl-2);
  background: rgba(216, 195, 160, 0.06); box-shadow: inset 0 0 0 1px rgba(216, 195, 160, 0.24); }
.disclaimer b { color: var(--gold); font-size: 10px; padding-top: 5px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 4vh; }
.chip-btn { height: 42px; padding: 0 18px; border-radius: 999px; font-size: 14px; color: var(--pearl-2); box-shadow: inset 0 0 0 1px rgba(238, 231, 219, 0.15); transition: background .4s var(--ease), color .4s, box-shadow .4s; }
.chip-btn:hover { color: var(--pearl); box-shadow: inset 0 0 0 1px rgba(216, 195, 160, 0.6); }
.chip-btn[aria-pressed="true"] { background: var(--pearl); color: var(--ink); box-shadow: none; }
.results { margin: 0 0 0 auto; font-size: 13px; color: var(--pearl-3); }
.st-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.st.fade { opacity: 0 !important; transform: scale(0.96) !important; transition: opacity .38s var(--ease), transform .5s var(--ease); }
.st.gone { display: none; }
.st article { height: 100%; display: flex; flex-direction: column; padding: 16px 16px 26px; border-radius: 24px; background: linear-gradient(160deg, rgba(238, 231, 219, 0.045), rgba(238, 231, 219, 0.012));
  box-shadow: inset 0 0 0 1px rgba(238, 231, 219, 0.08); transition: transform .7s var(--ease), box-shadow .7s var(--ease); }
.st article:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(216, 195, 160, 0.4), 0 30px 60px -30px rgba(0, 0, 0, 0.9); }
.st-visual { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; display: grid; place-items: center; color: var(--gold);
  background: radial-gradient(circle at 50% 42%, #1d1914, #070607 72%); box-shadow: inset 0 0 0 1px rgba(216, 195, 160, 0.14); }
.st-art { width: 62%; height: auto; opacity: .85; transition: transform 1.4s var(--ease), opacity .6s; }
.st article:hover .st-art { transform: scale(1.06) rotate(3deg); opacity: 1; }
.badge { position: absolute; left: 12px; top: 12px; padding: 5px 11px; border-radius: 999px; font-size: 11.5px; color: var(--gold); background: rgba(7, 6, 8, 0.72); box-shadow: inset 0 0 0 1px rgba(216, 195, 160, 0.35); }
.st-sector { margin: 20px 4px 8px; font-size: 13px; color: var(--pearl-3); }
.st-sector span { color: var(--gold-2); }
.st h3 { margin: 0 4px; font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: 22px; line-height: 1.05; }
.st-desc { margin: 12px 4px 0; font-size: 15.5px; line-height: 1.58; color: var(--pearl-2); }
.st .chips { margin: 16px 4px 0; }
.st-cta { align-self: flex-start; margin: auto 4px 0; padding-top: 22px; font-size: 14.5px; }
.st-next { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center; padding: 40px 24px; border-radius: 24px; box-shadow: inset 0 0 0 1px rgba(216, 195, 160, 0.3);
  background: radial-gradient(circle at 50% 30%, rgba(216, 195, 160, 0.08), transparent 70%); }
.next-card { width: 84px; aspect-ratio: 1 / 1.397; border-radius: 9px; display: grid; place-items: center; color: var(--gold); background: radial-gradient(120% 90% at 30% 10%, #221d16, #070607 62%);
  box-shadow: inset 0 0 0 1.5px var(--gold), inset 0 0 0 5px #080708, inset 0 0 0 6px rgba(216, 195, 160, 0.4); animation: float 6s ease-in-out infinite; }
.next-card svg { width: 60%; }
@keyframes float { 50% { transform: translateY(-8px) rotate(-2deg); } }
.next-t { margin: 0; max-width: 18ch; font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: 22px; line-height: 1.05; }

/* IV. about: cards on the table */
.statements { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 7vh 5vw; }
.statements b { display: block; margin-bottom: 14px; font-family: var(--display); font-stretch: 125%; font-weight: 700; font-size: 13px; color: var(--gold); }
.statements h3 { margin: 0; font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(28px, 2.9vw, 48px); line-height: 0.95; }
.statements p { margin: 14px 0 0; font-size: 17px; line-height: 1.6; color: var(--pearl-2); max-width: 44ch; }
.lift { position: relative; height: 190vh; margin: 6vh 0; --lp: 0; }
.lift-in { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; overflow: hidden; }
.lift-in p { grid-area: 1 / 1; margin: 0; text-align: center; font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(40px, 7.6vw, 150px); line-height: 0.92; letter-spacing: -0.02em; max-width: 14ch; }
.lift-a { opacity: calc(1 - var(--lp) * 2.4); transform: translateY(calc(var(--lp) * -60px)) scale(calc(1 - var(--lp) * 0.06)); filter: blur(calc(var(--lp) * 6px)); }
.lift-b { color: var(--gold); opacity: calc(var(--lp) * 2.4 - 1.2); transform: translateY(calc((1 - var(--lp)) * 60px)); }
.pillars-t { margin: 0 0 3vh; font-size: 13.5px; font-weight: 500; color: var(--gold); }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pillars li { padding: 28px 26px; border-radius: 20px; background: rgba(238, 231, 219, 0.03); box-shadow: inset 0 0 0 1px rgba(238, 231, 219, 0.07); }
.pillars li.in:hover { box-shadow: inset 0 0 0 1px rgba(216, 195, 160, 0.4); }
.pillars i { font-style: normal; font-size: 9px; color: var(--gold); }
.pillars h4 { margin: 14px 0 0; font-size: 18px; font-weight: 500; color: var(--pearl); }
.pillars p { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--pearl-2); }

/* contact head */
.c-head { position: relative; max-width: 1480px; margin: 0 auto 11vh; }
.c-big { font-size: clamp(44px, 6.6vw, 122px); max-width: 15ch; }
.c-line { margin: 30px 0 0; font-size: 19px; line-height: 1.6; color: var(--pearl-2); max-width: 52ch; }
.c-line strong { font-weight: 500; color: var(--pearl); }
.c-title { font-size: clamp(28px, 2.7vw, 44px); }
.f-status { border-radius: 14px; padding: 16px 18px; font-size: 15px; line-height: 1.55; color: var(--pearl); background: rgba(216, 195, 160, 0.08); box-shadow: inset 2px 0 0 var(--gold); }
.f-status.bad { background: rgba(232, 149, 127, 0.08); box-shadow: inset 2px 0 0 var(--err); }
.f-status a { color: var(--gold); border-bottom: 1px solid rgba(216, 195, 160, 0.5); }
.fin p.fin-note { margin-top: -12px; font-size: 13.5px; color: var(--pearl-3); }
.fin-note b { font-family: var(--display); font-stretch: 125%; font-weight: 700; color: var(--gold); margin-right: 8px; }

/* ---------- footer ---------- */
.site-foot { position: relative; z-index: 3; background: var(--ink); padding: 14vh var(--gutter) 28px; }
.sf-in { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 5vw; max-width: 1480px; margin: 0 auto; }
.sf-mark { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 28px; letter-spacing: -0.012em; }
.sf-tag { margin: 26px 0 34px; font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(28px, 2.9vw, 50px); line-height: 0.95; max-width: 13ch; }
.sf-tag em { font-style: italic; color: var(--gold); }
.sf-col h2 { margin: 6px 0 18px; font-size: 13px; font-weight: 500; color: var(--gold); }
.sf-col .sf-h2b { margin-top: 34px; }
.sf-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.sf-col a { font-size: 15px; color: var(--pearl-2); transition: color .3s; }
.sf-col a:hover, .sf-col a:focus-visible { color: var(--pearl); }
.sf-col a b { display: inline-block; min-width: 34px; font-family: var(--display); font-stretch: 125%; font-weight: 700; font-size: 11px; color: var(--gold-2); }
.sf-muted { margin: 0; font-size: 14px; color: var(--pearl-3); }
.sf-base { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; max-width: 1480px; margin: 12vh auto 0; padding-top: 24px; border-top: 1px solid rgba(238, 231, 219, 0.08); font-size: 13px; color: var(--pearl-3); }
.sf-legal { display: flex; gap: 24px; flex-wrap: wrap; }
.sf-base a { transition: color .3s; }
.sf-base a:hover, .sf-base a:focus-visible { color: var(--pearl); }

/* ---------- inner pages ---------- */
body.page { min-height: 100vh; }
.page-main { position: relative; z-index: 2; }
.page-head { padding: 24vh var(--gutter) 9vh; max-width: 1480px; margin: 0 auto; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; font-size: 13px; color: var(--pearl-3); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: rgba(238, 231, 219, 0.25); }
.crumbs a { transition: color .3s; }
.crumbs a:hover, .crumbs a:focus-visible { color: var(--pearl); }
.page-title { margin: 0; font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(40px, 6vw, 108px); line-height: 0.92; letter-spacing: -0.012em; }
.page-title em { font-style: italic; color: var(--gold); }
mark.todo { background: rgba(232, 149, 127, 0.14); color: #f3b5a4; padding: 1px 7px; border-radius: 6px; font-weight: 500; box-shadow: inset 0 0 0 1px rgba(232, 149, 127, 0.45); white-space: nowrap; }

/* legal pages */
.legal-in { display: grid; grid-template-columns: 260px minmax(0, 760px); gap: 6vw; max-width: 1480px; margin: 0 auto; padding: 0 var(--gutter) 16vh; }
.toc { position: sticky; top: 120px; align-self: start; }
.toc h2 { margin: 0 0 16px; font-size: 13px; font-weight: 500; color: var(--gold); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: flex; gap: 12px; font-size: 14px; color: var(--pearl-3); transition: color .3s; }
.toc a::before { content: counter(t, decimal-leading-zero); font-family: var(--display); font-stretch: 125%; font-weight: 700; font-size: 11px; color: var(--gold-2); padding-top: 2px; }
.toc a:hover, .toc a:focus-visible, .toc a.on { color: var(--pearl); }
.legal-meta { margin: 26px 0 0; font-size: 14px; color: var(--pearl-3); }
.notice { margin: 30px 0 0; padding: 16px 20px; border-radius: 16px; max-width: 70ch; font-size: 15px; line-height: 1.55; color: var(--pearl-2); background: rgba(232, 149, 127, 0.07); box-shadow: inset 2px 0 0 var(--err); }
.legal-sec { padding: 0 0 7vh; scroll-margin-top: 120px; }
.legal-sec h2 { margin: 0 0 18px; display: flex; gap: 16px; align-items: baseline; font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(22px, 2vw, 30px); line-height: 1.05; }
.legal-sec h2 span { font-size: 12px; font-weight: 700; color: var(--gold); }
.legal-sec p, .legal-sec li { font-size: 16.5px; line-height: 1.72; color: var(--pearl-2); }
.legal-sec p { margin: 0 0 14px; }
.legal-sec ul { margin: 0 0 14px; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.legal-sec li { display: flex; gap: 12px; }
.legal-sec li::before { content: ""; flex: none; width: 5px; height: 5px; margin-top: 12px; background: var(--gold); transform: rotate(45deg); }
.legal-sec a { color: var(--pearl); border-bottom: 1px solid rgba(216, 195, 160, 0.5); }

/* 404 */
.nf { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: auto minmax(0, 680px); gap: 7vw; align-items: center; justify-content: center; padding: 120px var(--gutter) 80px; }
.nf-card { width: clamp(150px, 18vw, 240px); aspect-ratio: 1 / 1.397; border-radius: 14px; position: relative; perspective: 900px; }
.nf-card > div { position: absolute; inset: 0; border-radius: inherit; display: grid; place-items: center; backface-visibility: hidden;
  background: radial-gradient(120% 90% at 30% 10%, #221d16, #070607 62%); box-shadow: inset 0 0 0 1.5px rgba(216, 195, 160, 0.7), inset 0 0 0 7px #080708, inset 0 0 0 8px rgba(216, 195, 160, 0.3), 0 40px 80px -30px rgba(0, 0, 0, 0.9);
  animation: nfflip 7s var(--ease) infinite; }
.nf-card .nf-back { transform: rotateY(180deg); animation-name: nfflip2; }
.nf-card b { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(54px, 6vw, 84px); color: var(--gold); }
.nf-card i { position: absolute; left: 14px; top: 12px; font-style: normal; font-family: var(--display); font-stretch: 125%; font-weight: 700; font-size: 13px; color: var(--gold); }
.nf-card .nf-back span { width: 46%; aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(216, 195, 160, 0.5), 0 0 0 10px rgba(216, 195, 160, 0.06), 0 0 0 22px rgba(216, 195, 160, 0.04); }
@keyframes nfflip { 0%, 40% { transform: rotateY(0); } 50%, 90% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }
@keyframes nfflip2 { 0%, 40% { transform: rotateY(180deg); } 50%, 90% { transform: rotateY(360deg); } 100% { transform: rotateY(540deg); } }
.nf .page-title { font-size: clamp(36px, 5vw, 86px); }
.nf p.nf-text { margin: 24px 0 34px; font-size: 18.5px; line-height: 1.6; color: var(--pearl-2); max-width: 46ch; }

@media (max-width: 1100px) {
  .layers-in { grid-template-columns: 1fr; }
  .layers-side { position: relative; top: 0; }
  .st-grid, .pillars { grid-template-columns: 1fr 1fr; }
  .sf-in { grid-template-columns: 1fr 1fr; }
  .legal-in { grid-template-columns: 1fr; }
  .toc { position: static; }
}
@media (max-width: 760px) {
  .inter { padding: 30vh 0 24vh; }
  .sec { padding: 9vh 20px; }
  .ch-intro { font-size: 17px; }
  .stack-fig { height: 46vh; }
  .stratum { grid-template-columns: 44px 1fr; }
  .stratum.in { opacity: 1; }
  .method-grid { grid-template-columns: 1fr; }
  .rail { display: none; }
  .step.in { opacity: 1; }
  .step { padding: 6vh 0; }
  .step .sum { font-size: 18.5px; }
  .st-grid, .pillars, .statements { grid-template-columns: 1fr; }
  .results { margin: 6px 0 0; width: 100%; }
  .lift { height: 150vh; }
  .sf-in { grid-template-columns: 1fr; gap: 44px; }
  .sf-base { flex-direction: column; align-items: flex-start; }
  .page-head { padding: 18vh 20px 7vh; }
  .legal-in { padding: 0 20px 12vh; }
  .nf { grid-template-columns: 1fr; justify-items: start; gap: 40px; }
  .menu > a { font-size: clamp(28px, 8.6vw, 60px); }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal], .ch-title .w > span, .rise { transition: none !important; opacity: 1 !important; transform: none !important; }
  .nf-card > div, .next-card { animation: none; }
  .nf-card .nf-back { display: none; }
  .lift { height: auto; }
  .lift-in { position: static; height: auto; padding: 10vh 0; display: block; }
  .lift-in p { opacity: 1 !important; transform: none !important; filter: none !important; margin: 0 auto; }
  .lift-in .lift-a { margin-bottom: 20px; }
}

.toc-other { margin: 30px 0 0; font-size: 14px; }

@media (max-width: 760px) {
  .page-title { font-size: clamp(22px, 6.3vw, 56px); }
  .ch-title, .c-big { font-size: clamp(30px, 8.4vw, 60px); overflow-wrap: break-word; hyphens: auto; }
  .step h3, .lift-in p { overflow-wrap: break-word; hyphens: auto; }
  .step h3 { font-size: clamp(34px, 10vw, 60px); }
}

/* =====================================================================
   Height: every screen, including a 15" laptop at 125 % (≈ 1536 × 730)
   ===================================================================== */
/* the captions of the film live inside the frame, never in a bar that may be too thin */
.ov.cap { left: 53%; top: 55%; bottom: auto; height: auto; width: min(540px, 40vw); transform: none; align-items: flex-start; justify-content: flex-start; text-align: left; gap: 10px; }
.ov.cap p { font-size: clamp(15px, 1.15vw, 18px); }
.ov.hand-in { left: 50%; top: 61%; bottom: auto; height: auto; width: min(660px, 80vw); transform: translateX(-50%); }
/* the chapter and the eight ticks go to the bottom bar, beside the timecode */
.topline { top: auto; bottom: 0; align-items: center; padding: 0 200px 0 0; justify-content: flex-start; gap: 30px; }
html.wide .fin { left: var(--gutter); transform: none; text-align: left; width: min(520px, 40vw); bottom: max(9vh, calc(var(--bar) + 30px)); }
html.wide .fin p { margin-left: 0; }

@media (max-height: 820px) and (min-width: 761px) {
  .top { padding-top: 16px; padding-bottom: 16px; }
  .hero-copy { bottom: 5vh; }
  .hero-copy .eyebrow { margin-bottom: 10px; }
  .hero-copy .lead { font-size: 16.5px; max-width: 42ch; }
  .hero-copy .ctas { margin-top: 20px; }
  .pill.big { height: 50px; }
  .cue { bottom: 5vh; }
  .c-intro { position: static; }
  .ch-title { font-size: clamp(36px, 4.7vw, 86px); }
  .step h3 { font-size: clamp(38px, 5.2vw, 92px); }
  .lift-in p { font-size: clamp(36px, 6.8vw, 118px); }
  .c-big { font-size: clamp(40px, 5.6vw, 100px); }
  .menu { padding-top: 84px; }
  .menu > a { font-size: clamp(30px, 8.6vh, 96px); }
  .menu-foot { margin-top: 30px; }
  .layers-side { top: 11vh; }
  .stack-fig { height: min(56vh, 520px); }
  .nf { padding-top: 96px; }
}
@media (max-height: 640px) and (min-width: 761px) {
  .hero-copy .lead { font-size: 15.5px; }
  .menu > a { font-size: clamp(26px, 8vh, 80px); }
  .fin p { font-size: 16px; margin-bottom: 18px; }
}
@media (max-width: 760px) {
  .ov.cap, .ov.hand-in { left: 20px; right: 20px; top: auto; bottom: 26px; width: auto; transform: none; text-align: left; align-items: flex-start; }
}

/* =====================================================================
   Quality pass (QA report of 7 November)
   ===================================================================== */
/* fonts are served by the site itself: no third party, no wait on another server */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("fonts/archivo-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: italic; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("fonts/archivo-italic.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("fonts/geist-normal.woff2") format("woff2"); }

/* B3: the opening copy stays put while it fades at the first scroll */
.hero-copy { position: fixed; z-index: 3; will-change: opacity, transform; }
.cue { position: fixed; z-index: 3; }
.hero .reveal:nth-child(1) { transition-delay: .15s; }
.hero .reveal:nth-child(2) { transition-delay: .27s; }
.hero .reveal:nth-child(3) { transition-delay: .39s; }

/* I4: a real backdrop behind the header whenever content passes under it */
.top::before { inset: 0; background: rgba(7, 6, 8, 0.9); -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1); box-shadow: 0 1px 0 rgba(238, 231, 219, 0.06); }

/* I6: the consent box keeps its square (the generic field label rule made it a flex row) */
.fld > label.chk { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; margin: 0; font-size: 14.5px; font-weight: 300; color: var(--pearl-2); }
.chk .box { flex: 0 0 22px; width: 22px; height: 22px; }

/* the nine small cards of the form are thumbnails of the real cards */
.pc-card { background: none; box-shadow: none; aspect-ratio: auto; max-width: 84px; border-radius: 0; overflow: visible; transition: transform .6s var(--ease), filter .5s var(--ease), opacity .5s; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.6)); }
.pc-card::after { display: none; }
.pc-card img { display: block; width: 100%; height: auto; }
.pc:hover .pc-card { --ty: -6px; box-shadow: none; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.7)) brightness(1.12); }
.pc input:checked + .pc-card { --ty: -12px; box-shadow: none; filter: drop-shadow(0 0 14px rgba(216, 195, 160, 0.55)) drop-shadow(0 14px 18px rgba(0, 0, 0, 0.7)) brightness(1.15); }
.pc input:focus-visible + .pc-card { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
.pc-name { font-size: 12.5px; line-height: 1.32; }
.pick { gap: 14px 12px; }
@media (max-width: 1400px) and (min-width: 761px) { .pick { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px 14px; } }

/* F1: the last study tile becomes a banner across the grid */
.st-next { grid-column: 1 / -1; flex-direction: row; justify-content: center; gap: 34px; padding: 34px 40px; text-align: left; }
@media (max-width: 760px) { .st-next { flex-direction: column; text-align: center; } }

/* F2: the two lines cross sooner (no dark gap), over a shorter passage */
.lift { height: 150vh; }
.lift-a { opacity: calc(1 - var(--lp) * 2); }
.lift-b { opacity: calc(var(--lp) * 2.2 - 0.75); }

/* F6: a little more air under the mask in the centred finale */
.fin { bottom: clamp(30px, 6vh, 80px); }

/* B4: titles never break inside a word (their size is fitted to the longest word by ui.js) */
.page-title, .x-title, .ch-title, .c-big { overflow-wrap: normal; word-break: normal; hyphens: manual; }

/* =====================================================================
   Passe mobile (7 novembre) : téléphones, téléphone en paysage, tablette.
   Rien ici ne touche un ordinateur à la souris de plus de 1100 px de large (1366, 1536…) :
   tout est sous « pointer: coarse », « max-width: 760px / 1000px / 1100px » ou « max-aspect-ratio: 4/5 ».
   ===================================================================== */

/* --- écran tactile : cibles d'au moins 44 px (sans changer le dessin), pas de survol collant --- */
@media (pointer: coarse) {
  .menu-btn, .pill, .chip-btn, .seg-pills span { height: 44px; }
  .brand { padding: 15px 0; margin: -15px 0; }
  .sf-mark { display: inline-block; padding: 7px 0; margin: -7px 0; }
  /* zone de toucher agrandie par un calque invisible : le lien garde sa taille à l'œil */
  .link::before, .subs a::before, .crumbs a::before, .menu-mail::before, .nav a::before { content: ""; position: absolute; inset: -12px -6px; }
  .crumbs a::before, .subs a::before { inset: -14px -8px; }
  .subs a, .crumbs a, .menu-mail { position: relative; }
  /* listes de liens du pied de page et du sommaire : 44 px par ligne */
  .sf-col ul, .toc ol { gap: 0; }
  .sf-col a, .toc a { display: inline-block; padding: 13px 0; }
  .sf-base a { display: inline-block; padding: 14px 0; }
  .toc a { display: flex; }
  .sf-legal { gap: 0 24px; }
  .f-summary a { display: inline-block; padding: 10px 0; border-bottom: 0; text-decoration: underline; text-decoration-color: rgba(232, 149, 127, 0.5); text-underline-offset: 3px; }
  /* un toucher laisse :hover collé sur l'élément : pas de carte qui reste soulevée */
  .st article:hover { transform: none; box-shadow: inset 0 0 0 1px rgba(238, 231, 219, 0.08); }
  .st article:hover .st-art { transform: none; opacity: .85; }
  .pn:hover { transform: none; }
  /* le menu plein écran défile s'il est plus haut que l'écran (paysage) */
  .menu { overflow-y: auto; justify-content: safe center; }
  /* le grain (fusion « overlay » au-dessus de la 3D) : même dessin, calque 2,8 fois plus petit à composer */
  .grain { inset: -10%; }
}

/* --- téléphone (portrait) --- */
@media (max-width: 760px) {
  /* un bouton ne se casse jamais en deux lignes ; le lien passe dessous s'il manque de place */
  .pill { white-space: nowrap; }
  .hero-copy .ctas { flex-wrap: wrap; gap: 12px 22px; margin-top: 20px; }
  .hero-copy .eyebrow { margin-bottom: 12px; }
  .hero-copy .lead { font-size: 16px; line-height: 1.5; }
  /* texte final du film : plus compact, pour laisser le masque et « CHANGE LA DONNE. » au-dessus */
  .fin p { font-size: 16px; line-height: 1.5; margin-bottom: 20px; }
  .fin p.fin-note { margin-top: -8px; font-size: 13px; }
  .fin .pill.big { height: 50px; }
  /* légende des cartes : le lien se touche facilement */
  .ov.cap a { margin-top: 6px; }
  /* titres de page (mentions, confidentialité, 404, appel à l'action) : grands, ajustés au mot le plus long par ui.js */
  .page-title { font-size: clamp(26px, 8vw, 56px); }
  /* « Ce n'est pas de la magie » : centré dans la partie visible de l'écran (barre d'adresse comprise) */
  .lift-in { height: 100svh; }
  .legal-sec h2 { gap: 12px; }
}
/* « INFRASTRUCTURE » (strate 05) faisait 292 px : en 360 px de large, toute la page débordait (366 px) */
@media (max-width: 1100px) {
  .layers-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .stratum { grid-template-columns: 44px minmax(0, 1fr); }
  .stratum h3 { font-size: clamp(17px, 6vw, 24px); }
}
@media (max-width: 380px) {
  .hero-copy .pill.big { padding: 0 20px; }
  .hero-copy .ctas { gap: 10px 18px; }
}

/* --- formulaire : les deux champs côte à côte ne tiennent pas sous 1000 px --- */
@media (max-width: 1000px) {
  .f-row { grid-template-columns: 1fr; }
}

/* --- tablette en portrait (le film y prend déjà la mise en page « téléphone ») --- */
@media (min-width: 761px) and (max-aspect-ratio: 4/5) {
  .pill { white-space: nowrap; }
  .hero-copy { width: min(560px, calc(100vw - 2 * var(--gutter))); }
  .hero-copy .ctas { flex-wrap: wrap; row-gap: 12px; }
  .ov.cap, .ov.hand-in { left: var(--gutter); right: var(--gutter); top: auto; bottom: 34px; width: auto; max-width: 640px; height: auto; transform: none; text-align: left; align-items: flex-start; }
  .cue, .timecode { display: none; }
}

/* --- téléphone en paysage (≈ 844 × 390, aussi 667 × 375) : le film « ordinateur », resserré en hauteur --- */
@media (pointer: coarse) and (max-height: 500px) and (orientation: landscape) {
  /* la page s'étend sous l'encoche (viewport-fit=cover) : la gouttière l'évite */
  :root { --gutter: max(clamp(20px, 3.4vw, 58px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); }
  .top { padding: 10px var(--gutter); }
  .sec, .contact, .page-head, .legal-in, .site-foot { padding-left: var(--gutter); padding-right: var(--gutter); }
  .top .pill { display: none; }
  .brand { font-size: 17px; }
  .cue, .timecode, .topline { display: none !important; }
  .pill { white-space: nowrap; }
  .pill.big { height: 44px; padding: 0 22px; font-size: 14.5px; }
  .hero-copy { left: var(--gutter); right: auto; bottom: 14px; width: min(560px, 62vw); }
  .hero-copy .eyebrow { margin-bottom: 6px; font-size: 12.5px; }
  .hero-copy .lead { font-size: 14px; line-height: 1.5; max-width: min(400px, 46vw); }
  .hero-copy .ctas { margin-top: 12px; flex-wrap: wrap; gap: 10px 20px; }
  /* légendes : dans le cadre comme sur ordinateur, lisibles au-dessus de l'éventail */
  .ov.cap { left: 53%; right: auto; top: 55%; bottom: auto; width: min(400px, 42vw); height: auto; transform: none; text-align: left; align-items: flex-start; justify-content: flex-start; gap: 6px; }
  .ov.cap p { font-size: 14px; line-height: 1.45; }
  .ov.cap .k { font-size: 13px; }
  .ov.hand-in { left: 50%; right: auto; top: auto; bottom: calc(var(--bar) + 14px); width: min(640px, 82vw); height: auto; transform: translateX(-50%); text-align: center; align-items: center; }
  .ov.hand-in p { font-size: 14px; line-height: 1.45; }
  .subs p, .subs .k, .subs a { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.95), 0 0 2px rgba(0, 0, 0, 0.8); }
  /* final : le texte à gauche, le masque et ses deux lignes à droite */
  .fin, html.wide .fin { left: var(--gutter); right: auto; transform: none; text-align: left; width: min(400px, 46vw); bottom: 16px; }
  .fin p { font-size: 14.5px; line-height: 1.5; margin: 0 0 12px; }
  .fin p.fin-note { margin-top: -2px; font-size: 12.5px; }
  /* menu plein écran : tient dans la hauteur */
  .menu { padding: 64px var(--gutter) 20px; }
  .menu > a { font-size: clamp(24px, 7.4vh, 40px); }
  .menu-foot { margin-top: 16px; gap: 18px; }
}

/* formulaire sur écran tactile : un champ qui reçoit le focus (ou le résumé des erreurs) ne se cache pas sous l'en-tête fixe */
@media (pointer: coarse) {
  .f-summary, .fld input, .fld textarea, .f-cards, .consent { scroll-margin-top: 110px; scroll-margin-bottom: 24px; }
}

/* iPhone : les textes posés en bas de l'écran restent au-dessus de la barre d'accueil (zone sûre) */
@media (pointer: coarse) and (max-width: 760px) and (orientation: portrait) {
  .hero-copy { bottom: calc(30px + env(safe-area-inset-bottom, 0px)); }
  .ov.cap, .ov.hand-in { bottom: calc(26px + env(safe-area-inset-bottom, 0px)); }
  .fin { bottom: calc(clamp(30px, 6vh, 80px) + env(safe-area-inset-bottom, 0px)); }
}

/* écran tactile : le flou derrière l'en-tête (backdrop-filter) recalculait la 3D floutée à chaque image ;
   sa mise en route coûtait 250 ms au premier défilement (CPU ×4). Fond presque opaque à la place : même aspect. */
@media (pointer: coarse) {
  .top::before { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(7, 6, 8, 0.95); }
}
