/* MERVAUX: shared tokens, type, header, footer, buttons, reveals */
:root {
  --salt: #f3f1ec; --fog: #e4e1d9; --stone: #cfcac0; --basalt: #14181b; --ink2: #4f565b;
  --atlantic: #1c3540; --deep: #0e1a20; --seaglass: #a6c4bc; --lamp: #e8c27c;
  --line: rgba(20, 24, 27, .16); --line-d: rgba(243, 241, 236, .2);
  --serif: 'Bodoni Moda', 'Didot', Georgia, serif;
  --sans: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'DM Mono', ui-monospace, Menlo, monospace;
  --gut: clamp(16px, 4vw, 64px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.rm { scroll-behavior: auto; }
body { margin: 0; background: var(--salt); color: var(--basalt); font: 400 17px/1.6 var(--sans); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; }
.on-light :focus-visible, body:not(.home) main :focus-visible { outline-color: var(--atlantic); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--basalt); color: var(--salt); padding: 10px 16px; border-radius: 2px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1480px; margin: 0 auto; padding: 0 var(--gut); }

/* type */
.d { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; line-height: .98; margin: 0; }
.d em { font-style: italic; }
.d-xl { font-size: clamp(56px, 10.5vw, 188px); }
.d-l { font-size: clamp(42px, 6.4vw, 112px); }
.d-m { font-size: clamp(32px, 3.8vw, 64px); line-height: 1.04; }
.d-s { font-size: clamp(24px, 2.2vw, 34px); line-height: 1.12; }
.k { font: 500 11.5px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; margin: 0 0 18px; }
.lede { font-size: clamp(17px, 1.35vw, 21px); line-height: 1.55; max-width: 34em; margin: 0; color: var(--ink2); }
.on-dark { color: var(--salt); }
.on-dark .lede { color: rgba(243, 241, 236, .82); }
.num { font-variant-numeric: tabular-nums; }

/* buttons and links */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 26px; border: 1px solid currentColor; border-radius: 999px; background: transparent; text-decoration: none; font: 500 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background .35s var(--ease), color .35s var(--ease); }
.btn:hover { background: var(--basalt); color: var(--salt); border-color: var(--basalt); }
.btn-solid { background: var(--basalt); color: var(--salt); border-color: var(--basalt); }
.btn-solid:hover { background: var(--atlantic); border-color: var(--atlantic); }
.on-dark .btn:hover { background: var(--salt); color: var(--basalt); border-color: var(--salt); }
.on-dark .btn-solid { background: var(--salt); color: var(--basalt); border-color: var(--salt); }
.on-dark .btn-solid:hover { background: var(--lamp); border-color: var(--lamp); color: var(--basalt); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.link { display: inline-flex; gap: 10px; align-items: center; font: 500 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: 10px 0; border-bottom: 1px solid currentColor; }
.link::after { content: '\2192'; transition: transform .35s var(--ease); }
.link:hover::after { transform: translateX(5px); }

/* header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; padding: 0 var(--gut); color: var(--salt); transition: background .4s, color .4s, height .4s; }
.top.solid { background: rgba(243, 241, 236, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--basalt); height: 62px; border-bottom: 1px solid var(--line); }
body.solid-top .top { color: var(--basalt); }
.top nav { display: flex; gap: 28px; align-items: center; }
.top nav.r { justify-content: flex-end; }
.top nav a { font: 500 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; padding: 8px 0; border-bottom: 1px solid transparent; }
.top nav a:hover, .top nav a[aria-current] { border-bottom-color: currentColor; }
.logo { text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.logo b { font: 400 24px/1 var(--serif); letter-spacing: .32em; padding-left: .32em; }
.logo small { font: 400 9px/1 var(--mono); letter-spacing: .3em; opacity: .75; }
.top .btn { min-height: 38px; padding: 0 18px; font-size: 11.5px; }
.menu-btn { display: none; }
.drawer { position: fixed; inset: 0; z-index: 60; background: var(--deep); color: var(--salt); padding: 88px var(--gut) 40px; display: flex; flex-direction: column; gap: 6px; transform: translateY(-102%); transition: transform .6s var(--ease); visibility: hidden; }
.drawer.open { transform: none; visibility: visible; }
.drawer a { font: 400 clamp(34px, 9vw, 54px)/1.15 var(--serif); text-decoration: none; }
.drawer .x { position: absolute; top: 16px; right: var(--gut); min-height: 40px; }
@media (max-width: 1080px) {
  .top nav.l a, .top nav.r > a { display: none; }
  .menu-btn { display: inline-flex; }
}

/* media helpers */
.media { position: relative; overflow: hidden; background: var(--fog); }
.media > img, .media > video { width: 100%; height: 100%; object-fit: cover; }
.credit { position: absolute; right: 10px; bottom: 8px; margin: 0; font: 400 10px/1 var(--mono); letter-spacing: .06em; color: rgba(255, 255, 255, .78); text-shadow: 0 1px 2px rgba(0, 0, 0, .5); pointer-events: none; }

/* reveal: the hidden state is set by JS only on observed elements */
.rv-on { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.rv-on.rv-in { opacity: 1; transform: none; }
html.rm .rv-on { opacity: 1; transform: none; transition: none; }

/* footer */
.ft { background: var(--deep); color: var(--salt); padding: 96px 0 0; overflow: hidden; }
.ft-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 64px; border-bottom: 1px solid var(--line-d); }
.ft h2 { font: 500 11px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; margin: 0 0 18px; color: var(--seaglass); }
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ft a { text-decoration: none; opacity: .86; }
.ft a:hover { opacity: 1; text-decoration: underline; }
.ft-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; padding: 26px 0; font-size: 13px; color: rgba(243, 241, 236, .72); }
.ft-legal p { margin: 0; max-width: 60em; }
.ft-legal a { opacity: 1; text-decoration: underline; }
.ft-big { font: 400 15vw/0.8 var(--serif); letter-spacing: .12em; padding-left: .12em; margin: 10px 0 -2vw; white-space: nowrap; text-align: center; color: rgba(243, 241, 236, .08); user-select: none; }
@media (max-width: 860px) { .ft-grid { grid-template-columns: 1fr 1fr; } .ft-grid > div:first-child { grid-column: 1 / -1; } }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 140%); background: var(--basalt); color: var(--salt); padding: 14px 22px; border-radius: 999px; font-size: 14px; transition: transform .5s var(--ease); max-width: calc(100vw - 32px); }
.toast.on { transform: translate(-50%, 0); }

/* film modal (home) and inner page head */
.page-head { padding: 150px 0 56px; }
.page-head .lede { margin-top: 22px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; font-size: 14px; }
.chip[aria-pressed="true"], .chip[aria-checked="true"] { border-color: var(--basalt); background: var(--basalt); color: var(--salt); }
.dot { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); flex: none; }

/* facts list (home chapters, maison) */
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.facts li { display: grid; grid-template-columns: minmax(5.2em, auto) 1fr; gap: 18px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 16px; color: var(--ink2); }
.facts b { color: var(--basalt); white-space: nowrap; }
