/* Auvent: tokens -------------------------------------------------------- */
@font-face { font-family: "Young Serif"; src: url("fonts/YoungSerif-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Onest"; src: url("fonts/Onest-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
/* metric-matched fallbacks (measured against the real faces) */
@font-face { font-family: "YS Fallback"; src: local("Georgia"), local("Times New Roman"); size-adjust: 112%; ascent-override: 86%; descent-override: 24%; line-gap-override: 0%; }
@font-face { font-family: "Onest Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Helvetica"); size-adjust: 101%; ascent-override: 95%; descent-override: 25%; line-gap-override: 0%; }

:root {
  --sand: #F0E4D4;       /* paper */
  --sand-2: #E8D9C5;     /* alt band, sheet */
  --sand-3: #DECBB2;     /* building face, pressed */
  --ink: #2A1B2F;        /* aubergine */
  --ink-2: #5A4A5C;      /* muted text on sand (6.1:1) */
  --ink-soft: rgba(42, 27, 47, .14);
  --line: rgba(42, 27, 47, .18);
  --on-ink: #F0E4D4;
  --on-ink-2: #C8B9B9;   /* muted on aubergine (8:1) */
  --line-ink: rgba(240, 228, 212, .16);
  --teal: #1F6F63;       /* accent: primary CTA + canopy lit edge only */
  --teal-h: #185A50;

  --f-d: "Young Serif", "YS Fallback", Georgia, serif;
  --f-b: "Onest", "Onest Fallback", Arial, sans-serif;

  --m: clamp(1.25rem, 0.28rem + 4.13vw, 4rem);
  --g: clamp(1rem, 0.82rem + 0.75vw, 1.5rem);
  --nav-h: 64px;

  --t-0: clamp(1rem, 0.97rem + 0.13vw, 1.0625rem);
  --t-sm: 0.875rem;
  --t-xs: 0.75rem;
  --t-2: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  --t-3: clamp(1.75rem, 1.3rem + 2vw, 3.25rem);
  --t-4: clamp(2.4rem, 1.4rem + 4.4vw, 5.5rem);

  --e-settle: cubic-bezier(.2, .7, .1, 1);
  --e-move: cubic-bezier(.65, 0, .35, 1);
  --d-1: .22s; --d-2: .6s; --d-3: 1.1s;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
body { margin: 0; background: var(--sand); color: var(--ink); font: 400 var(--t-0)/1.55 var(--f-b); overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--sand); }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--sand); padding: 10px 14px; }
.skip:focus { left: 8px; }
[lang|="fr"] .h2, [lang|="fr"] .contact-h { hyphens: manual; }

/* Buttons --------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 2px; font: 500 0.9375rem/1 var(--f-b); letter-spacing: .005em; text-decoration: none; cursor: pointer; transition: background-color var(--d-1) var(--e-settle), color var(--d-1) var(--e-settle), transform var(--d-1) var(--e-settle), box-shadow var(--d-1) var(--e-settle); }
.btn:active { transform: translateY(1px); }
.btn-teal { background: var(--teal); color: var(--sand); }
.btn-teal:hover { background: var(--teal-h); }
.btn-ink { background: var(--ink); color: var(--sand); }
.btn-ink:hover { background: #3B2A40; }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .875rem; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1rem; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.link-quiet { font-weight: 500; font-size: .9375rem; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: var(--line); transition: text-decoration-color var(--d-1); }
.link-quiet:hover { text-decoration-color: var(--ink); }

/* Nav ------------------------------------------------------------------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--m); transition: background-color var(--d-2) var(--e-settle), box-shadow var(--d-2) var(--e-settle), color var(--d-2); }
.nav.is-solid { background: rgba(240, 228, 212, .94); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.nav.on-ink { color: var(--sand); }
.nav.on-ink.is-solid { background: rgba(42, 27, 47, .94); box-shadow: 0 1px 0 var(--line-ink); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 34px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.brand-mark .bm-lit { stroke: var(--teal); }
.nav.on-ink .brand-mark .bm-lit { stroke: #5FB3A5; }
.brand-word { font: 400 1.5rem/1 var(--f-d); letter-spacing: -.01em; }
.nav-links { display: none; gap: 28px; }
.nav-links a { font-size: .9375rem; text-decoration: none; position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform var(--d-2) var(--e-settle); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; box-shadow: inset 0 0 0 1px var(--line); border-radius: 2px; }
.nav.on-ink .lang { box-shadow: inset 0 0 0 1px var(--line-ink); }
.lang button { appearance: none; border: 0; background: transparent; min-width: 40px; height: 36px; padding: 0 8px; font: 600 .75rem/1 var(--f-b); letter-spacing: .06em; cursor: pointer; border-radius: 2px; color: inherit; opacity: .62; transition: opacity var(--d-1), background-color var(--d-1); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--sand); opacity: 1; }
.nav.on-ink .lang button[aria-pressed="true"] { background: var(--sand); color: var(--ink); }
.nav-cta { display: none; }
.nav-toggle { appearance: none; border: 0; background: transparent; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; margin-right: -10px; }
.nav-toggle .ic { width: 22px; height: 22px; }
.drawer { position: fixed; inset: var(--nav-h) 0 auto; z-index: 49; background: var(--sand); padding: 12px var(--m) 28px; box-shadow: 0 1px 0 var(--line), 0 24px 40px -24px rgba(42, 27, 47, .35); display: grid; gap: 20px; }
.drawer nav { display: grid; }
.drawer nav a { font: 400 1.75rem/1.2 var(--f-d); text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) {
  .nav-links, .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* Hero ------------------------------------------------------------------ */
.hero { position: relative; height: 260vh; height: 260svh; }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; padding: calc(var(--nav-h) + 6px) var(--m) 0; }
.hero-title { position: relative; z-index: 1; font: 400 clamp(5rem, 23.5vw, 15rem)/.86 var(--f-d); letter-spacing: -.035em; margin-left: -.05em; color: var(--ink); }
.ht { display: block; }
.ht-2 { padding-left: .55em; }
.hero-canvas { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.hero-copy { position: relative; z-index: 3; display: flex; flex-direction: column; gap: 18px; margin-top: 18px; max-width: 34rem; }
.hero-sub { font-size: 1rem; line-height: 1.5; max-width: 30ch; color: var(--ink); }
.hero-ctas { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.layer-cap { order: 3; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 2px; align-items: baseline; max-width: 22rem; min-height: 3.2em; }
.lc-n { font: 500 .75rem/1 var(--f-b); font-variant-numeric: tabular-nums; color: var(--ink-2); grid-row: span 2; padding-top: .2em; }
.lc-t { font: 400 1.25rem/1.1 var(--f-d); }
.lc-d { font-size: .875rem; line-height: 1.4; color: var(--ink-2); }
.layer-cap.swap .lc-t, .layer-cap.swap .lc-d { animation: capIn var(--d-2) var(--e-settle); }
@keyframes capIn { from { opacity: 0; transform: translateY(6px); } }
.hero-hint { position: absolute; z-index: 3; right: var(--m); bottom: 18px; font-size: .75rem; color: var(--ink-2); display: flex; align-items: center; gap: 8px; transition: opacity var(--d-2); pointer-events: none; }
.hero-hint::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.hero-hint.gone { opacity: 0; }
.hint-touch { display: none; }
@media (hover: none) { .hint-fine { display: none; } .hint-touch { display: inline; } }
@media (max-width: 759px) {
  .hero-sub { font-size: .9375rem; max-width: 34ch; }
  .hero-ctas .btn { min-height: 46px; }
  .layer-cap { margin-top: 2px; }
  .hero-hint { left: auto; bottom: auto; top: calc(var(--nav-h) + 8px); }
  .hero-hint::before { display: none; }
}
@media (min-width: 760px) {
  .hero-title { font-size: clamp(8rem, 16.4vw, 17rem); }
  .ht-2 { padding-left: 2.15em; }
  .hero-copy { position: absolute; left: var(--m); bottom: clamp(28px, 5vh, 56px); margin: 0; width: min(31vw, 27rem); }
  .layer-cap { order: 0; margin-bottom: 8px; padding-bottom: 18px; border-bottom: 1px solid var(--line); max-width: none; }
  .hero-sub { max-width: 32ch; }
}
@media (min-width: 760px) and (max-width: 1023px) {
  .hero-copy { width: 44vw; }
}

/* Section scaffolding --------------------------------------------------- */
.h2 { font: 400 var(--t-4)/.98 var(--f-d); letter-spacing: -.025em; text-wrap: balance; }
.sec-note { font-size: var(--t-sm); color: var(--ink-2); max-width: 36ch; }
.rv-lines .line-mask { overflow: clip; display: block; padding-bottom: .06em; margin-bottom: -.06em; }

/* Thesis ---------------------------------------------------------------- */
.thesis { position: relative; z-index: 4; background: var(--sand); padding: clamp(5rem, 3rem + 9vw, 11rem) var(--m) clamp(4rem, 2rem + 8vw, 9rem); display: grid; gap: 48px; }
.thesis-big { font: 400 var(--t-3)/1.12 var(--f-d); letter-spacing: -.015em; max-width: 22ch; text-wrap: pretty; }
.thesis-side { display: grid; gap: 28px; max-width: 30rem; }
.thesis-side > p { font-size: var(--t-0); }
.thesis-facts { display: grid; border-top: 1px solid var(--line); }
.thesis-facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
.thesis-facts dt { color: var(--ink-2); }
@media (min-width: 1024px) {
  .thesis { grid-template-columns: repeat(12, 1fr); column-gap: var(--g); }
  .thesis-big { grid-column: 2 / 11; font-size: clamp(2.6rem, 1rem + 3.2vw, 4.25rem); }
  .thesis-side { grid-column: 8 / 12; }
}

/* Cover index ----------------------------------------------------------- */
.cover { padding: 0 var(--m) clamp(5rem, 3rem + 8vw, 10rem); }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 5rem); }
@media (min-width: 1024px) { .sec-head { grid-template-columns: 7fr 3fr; align-items: end; column-gap: var(--g); } .sec-head .h2 { max-width: 13ch; } .sec-head .sec-note { justify-self: end; } }
.index { border-top: 1px solid var(--ink); counter-reset: idx; }
.row { border-bottom: 1px solid var(--line); }
.row-btn { appearance: none; width: 100%; background: none; border: 0; padding: 18px 0; cursor: pointer; text-align: start; display: grid; grid-template-columns: 2.25rem 1fr 28px; align-items: center; column-gap: 8px; row-gap: 4px; color: var(--ink); }
.row-n { font: 500 .75rem/1 var(--f-b); font-variant-numeric: tabular-nums; color: var(--ink-2); align-self: start; padding-top: .9em; }
.row-name { font: 400 clamp(1.6rem, 1rem + 2.6vw, 3.6rem)/1.02 var(--f-d); letter-spacing: -.02em; transition: transform var(--d-2) var(--e-settle); }
.row-abbr { font: 500 .8125rem/1 var(--f-b); color: var(--ink-2); letter-spacing: .02em; margin-left: .5em; vertical-align: .9em; }
.row-short { grid-column: 2; font-size: var(--t-sm); color: var(--ink-2); max-width: 44ch; }
.row-pm { grid-column: 3; grid-row: 1; width: 28px; height: 28px; display: grid; place-items: center; transition: transform var(--d-2) var(--e-settle); }
.row-btn[aria-expanded="true"] .row-pm { transform: rotate(45deg); }
.row-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--d-2) var(--e-settle); }
.row-panel > div { overflow: hidden; }
.row.open .row-panel { grid-template-rows: 1fr; }
.row-detail { display: grid; gap: 18px; padding: 4px 0 26px 2.75rem; }
.row-detail h4 { margin: 0 0 4px; font: 600 .75rem/1.2 var(--f-b); color: var(--ink-2); letter-spacing: .04em; }
.row-detail p { max-width: 42ch; }
.row-detail .edge p { font: 400 1.125rem/1.35 var(--f-d); }
.rib { display: none; }
@media (hover: hover) and (pointer: fine) {
  .row-btn:hover .row-name { transform: translateX(.18em); }
}
@media (min-width: 900px) {
  .row-btn { grid-template-columns: 4rem 6fr 4fr 40px; padding: 22px 0; }
  .row-short { grid-column: 3; grid-row: 1; padding-right: 24px; }
  .row-pm { grid-column: 4; }
  .row-detail { grid-template-columns: 6fr 4fr; padding: 0 40px 34px 4rem; column-gap: var(--g); }
  .row:nth-child(even) .row-name { padding-left: .8em; }
}

/* Survey photo ---------------------------------------------------------- */
.survey { position: relative; background: var(--ink); color: var(--sand); }
.survey-fig { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.survey-fig picture, .survey-fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.survey-fig::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(42, 27, 47, .86) 0%, rgba(42, 27, 47, .3) 34%, rgba(42, 27, 47, 0) 58%), linear-gradient(to bottom, rgba(42, 27, 47, .35), rgba(42, 27, 47, 0) 22%); pointer-events: none; z-index: 1; }
.marks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; fill: none; stroke: var(--sand); stroke-width: 1.6; vector-effect: non-scaling-stroke; pointer-events: none; }
.marks path, .marks circle { vector-effect: non-scaling-stroke; }
.marks circle { stroke-dasharray: 3 5; }
.marks-tall { display: none; }
@media (max-width: 760px) { .marks-wide { display: none; } .marks-tall { display: block; } }
.notes { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.note { position: absolute; left: 0; top: 0; display: grid; gap: 2px; padding: 8px 11px 9px; background: rgba(42, 27, 47, .82); color: var(--sand); max-width: 15rem; transform: translate(var(--x, -999px), var(--y, -999px)); }
.note span { font-size: .75rem; color: var(--on-ink-2); line-height: 1.3; }
.note b { font: 400 1.0625rem/1.2 var(--f-d); }
.survey-cap { position: absolute; z-index: 3; left: var(--m); right: var(--m); bottom: clamp(28px, 6vh, 64px); display: grid; gap: 10px; }
.survey-h { font: 400 var(--t-4)/1 var(--f-d); letter-spacing: -.025em; max-width: 15ch; }
.survey-cap p { font-size: var(--t-xs); color: var(--on-ink-2); }
.js .mk path, .js .mk circle { stroke-dashoffset: var(--len, 0); stroke-dasharray: var(--len, 0) var(--len, 0); transition: stroke-dashoffset 1.1s var(--e-settle); }
.js .mk circle { stroke-dasharray: var(--len, 0) var(--len, 0); }
.js .mk.on path, .js .mk.on circle { stroke-dashoffset: 0; }
.js .note { opacity: 0; transition: opacity var(--d-2) var(--e-settle) .35s; }
.js .note.on { opacity: 1; }

/* Method ---------------------------------------------------------------- */
.method { background: var(--ink); color: var(--sand); }
.method-stage { padding: clamp(5rem, 3rem + 6vw, 8rem) var(--m); display: grid; gap: 40px; }
.method-top { display: grid; gap: 28px; }
.method-h { font: 400 var(--t-2)/1.2 var(--f-d); }
.year { display: grid; gap: 10px; }
.year-rule { position: relative; height: 10px; border-left: 1px solid var(--line-ink); border-right: 1px solid var(--line-ink); background: linear-gradient(var(--line-ink), var(--line-ink)) 0 50% / 100% 1px no-repeat; }
.year-fill { position: absolute; top: 2px; bottom: 2px; left: 0; width: 8.333%; background: var(--sand); transition: left var(--d-2) var(--e-move), width var(--d-2) var(--e-move), opacity var(--d-2); }
.year-fill.any { opacity: .35; }
.year-months { display: grid; grid-template-columns: repeat(12, 1fr); font: 500 .6875rem/1 var(--f-b); font-variant-numeric: tabular-nums; color: var(--on-ink-2); }
.year-months li { padding-left: 4px; border-left: 1px solid var(--line-ink); transition: color var(--d-2); }
.year-months li.on { color: var(--sand); }
.steps { display: grid; gap: 48px; }
.step { display: grid; gap: 12px; max-width: 40rem; }
.step-when { font: 500 .8125rem/1 var(--f-b); color: var(--on-ink-2); font-variant-numeric: tabular-nums; }
.step-t { font: 400 clamp(3.5rem, 1rem + 11vw, 11.5rem)/.9 var(--f-d); letter-spacing: -.035em; }
.step p { font-size: var(--t-2); line-height: 1.4; max-width: 30ch; color: var(--sand); }
/* pinned mode (JS, motion allowed) */
.method.pinned { height: 420vh; position: relative; }
.method.pinned .method-stage { position: sticky; top: 0; height: 100vh; height: 100svh; padding-top: calc(var(--nav-h) + 3vh); padding-bottom: 6vh; grid-template-rows: auto 1fr; align-content: stretch; }
.method.pinned .steps { position: relative; display: block; }
.method.pinned .step { position: absolute; inset: auto 0 0 0; opacity: 0; visibility: hidden; transform: translateY(24px); transition: opacity var(--d-2) var(--e-settle), transform var(--d-2) var(--e-settle), visibility 0s linear var(--d-2); }
.method.pinned .step.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (min-width: 900px) {
  .method-top { grid-template-columns: 3fr 9fr; align-items: end; column-gap: var(--g); }
  .method.pinned .step { display: grid; grid-template-columns: 7fr 4fr; column-gap: var(--g); align-items: end; max-width: none; }
  .method.pinned .step-when { grid-column: 1 / -1; }
  .method.pinned .step p { padding-bottom: 1.2em; }
}

/* Finder ---------------------------------------------------------------- */
.finder { padding: clamp(5rem, 3rem + 8vw, 10rem) var(--m); }
.finder-head { display: grid; gap: 18px; margin-bottom: clamp(2rem, 1rem + 3vw, 4rem); }
.finder-lede { font-size: var(--t-2); line-height: 1.35; max-width: 34ch; }
@media (min-width: 1024px) { .finder-head { grid-template-columns: 5fr 5fr; column-gap: var(--g); align-items: end; } .finder-lede { justify-self: end; } }
.finder-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1024px) { .finder-grid { grid-template-columns: 6fr 5fr; column-gap: clamp(2rem, 4vw, 5rem); } .sheet { position: sticky; top: calc(var(--nav-h) + 20px); } }
.fq { border-top: 1px solid var(--ink); padding-top: 18px; display: grid; gap: 18px; }
.fq-progress { height: 2px; background: var(--line); position: relative; }
.fq-progress span { position: absolute; inset: 0 auto 0 0; width: 25%; background: var(--ink); transition: width var(--d-2) var(--e-settle); }
.fq-count { font: 500 .75rem/1 var(--f-b); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.fq-step { border: 0; padding: 0; margin: 0; min-width: 0; display: none; }
.fq-step.on { display: block; animation: capIn var(--d-2) var(--e-settle); }
.fq-step legend { padding: 0; font: 400 var(--t-3)/1.05 var(--f-d); letter-spacing: -.015em; margin-bottom: 20px; max-width: 18ch; }
.fq-sub { font: 600 .75rem/1.2 var(--f-b); letter-spacing: .04em; color: var(--ink-2); margin: 22px 0 6px; }
.opts { display: grid; border-top: 1px solid var(--line); }
.opt { position: relative; display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 12px; min-height: 56px; padding: 10px 4px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background-color var(--d-1); }
.opt:hover { background: rgba(42, 27, 47, .04); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt-mark { width: 26px; height: 16px; }
.opt-mark path { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; opacity: .35; transition: opacity var(--d-1), stroke var(--d-1); }
.opt-mark path + path { opacity: 0; }
.opt input:checked + .opt-mark path { opacity: 1; }
.opt input:checked + .opt-mark path + path { opacity: 1; stroke: var(--teal); }
.opt input:checked ~ .opt-l { font-weight: 600; }
.opt input:focus-visible + .opt-mark { outline: 2px solid var(--teal); outline-offset: 4px; }
.opt-l { font-size: 1rem; line-height: 1.35; }
.opt-l small { display: block; font-size: .8125rem; color: var(--ink-2); font-weight: 400; }
.fq-nav { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; }
.fq-nav #fq-back[hidden] { display: inline-flex; visibility: hidden; }
.sheet { background: var(--sand-2); padding: clamp(20px, 3vw, 36px); display: grid; gap: 20px; box-shadow: inset 0 0 0 1px rgba(42, 27, 47, .06); }
.sheet-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.sheet-h { font: 400 var(--t-2)/1.1 var(--f-d); }
.mini { width: 150px; height: auto; flex: none; overflow: visible; }
.mini .lit { stroke: var(--teal); }
.sheet-body { display: grid; gap: 22px; min-height: 12rem; }
.sheet-empty { color: var(--ink-2); font-size: var(--t-sm); max-width: 34ch; }
.sg h4 { margin: 0 0 8px; font: 600 .75rem/1.2 var(--f-b); letter-spacing: .04em; color: var(--ink-2); }
.sg ul { display: grid; }
.sg li { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.sg li b { font: 400 1.125rem/1.25 var(--f-d); }
.sg li span { font-size: .875rem; color: var(--ink-2); line-height: 1.45; }
.sg.ready li { grid-template-columns: 22px 1fr; gap: 8px; align-items: start; font-size: .9375rem; }
.sg.ready li .ic { width: 16px; height: 16px; margin-top: 3px; }
.sheet-fine { font-size: .75rem; color: var(--ink-2); line-height: 1.5; border-top: 1px solid var(--line); padding-top: 14px; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sheet-actions .btn-teal[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* Cases ----------------------------------------------------------------- */
.cases { padding: 0 var(--m) clamp(5rem, 3rem + 8vw, 10rem); }
.cases-head { display: grid; gap: 12px; margin-bottom: clamp(2rem, 1rem + 3vw, 4rem); position: relative; }
.tag-sample { justify-self: start; font: 600 .6875rem/1 var(--f-b); letter-spacing: .06em; padding: 6px 8px; box-shadow: inset 0 0 0 1px var(--ink); }
.case-rail { display: grid; gap: 36px; }
.case { border-top: 1px solid var(--ink); padding-top: 16px; display: grid; gap: 12px; align-content: start; }
.case-meta { display: flex; justify-content: space-between; gap: 12px; font: 500 .75rem/1.3 var(--f-b); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.case-t { font: 400 var(--t-2)/1.15 var(--f-d); letter-spacing: -.01em; max-width: 18ch; }
.case p:last-child { font-size: .9375rem; color: var(--ink-2); max-width: 36ch; }
@media (min-width: 900px) {
  .cases-head { grid-template-columns: auto auto 1fr; align-items: end; column-gap: 20px; }
  .cases-head .sec-note { justify-self: end; }
  .tag-sample { align-self: start; margin-top: .6em; }
  .case-rail { grid-template-columns: repeat(3, 1fr); column-gap: var(--g); }
  .case:nth-child(2) { margin-top: 96px; }
  .case:nth-child(3) { margin-top: 192px; }
}

/* People ---------------------------------------------------------------- */
.people { padding: 0 var(--m) clamp(5rem, 3rem + 8vw, 10rem); }
.people-grid { display: grid; gap: 32px; margin-bottom: clamp(3rem, 2rem + 4vw, 6rem); }
.people-grid header { display: grid; gap: 16px; align-content: start; }
.roles { display: grid; border-top: 1px solid var(--ink); }
.roles li { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.roles h3 { font: 400 clamp(1.5rem, 1rem + 1.8vw, 2.6rem)/1.05 var(--f-d); letter-spacing: -.015em; }
.roles p { color: var(--ink-2); font-size: .9375rem; max-width: 40ch; }
@media (min-width: 900px) {
  .people-grid { grid-template-columns: 4fr 8fr; column-gap: var(--g); }
  .people-grid header { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; }
  .roles li { grid-template-columns: 6fr 5fr; align-items: baseline; column-gap: var(--g); padding: 24px 0; }
}
.gov { display: grid; background: var(--sand-2); margin: 0 calc(var(--m) * -1); padding: clamp(28px, 4vw, 48px) var(--m); gap: 22px; }
.gov div { display: grid; gap: 6px; }
.gov dt { font: 600 .75rem/1.2 var(--f-b); letter-spacing: .04em; }
.gov dd { font-size: .9375rem; color: var(--ink-2); max-width: 34ch; }
@media (min-width: 760px) { .gov { grid-template-columns: repeat(2, 1fr); column-gap: var(--g); } }
@media (min-width: 1200px) { .gov { grid-template-columns: repeat(4, 1fr); } .gov div + div { border-left: 1px solid var(--line); padding-left: var(--g); } }

/* Contact --------------------------------------------------------------- */
.contact { padding: clamp(5rem, 3rem + 8vw, 10rem) var(--m) clamp(4rem, 2rem + 6vw, 8rem); }
.contact-grid { display: grid; gap: 48px; }
.contact-h { font: 400 clamp(3rem, 1rem + 7.6vw, 8.5rem)/.92 var(--f-d); letter-spacing: -.035em; max-width: 9ch; }
.contact-sub { font-size: var(--t-2); line-height: 1.35; margin-top: 20px; max-width: 26ch; }
.contact-dl { margin-top: 36px; display: grid; border-top: 1px solid var(--line); max-width: 28rem; }
.contact-dl div { display: grid; grid-template-columns: 6rem 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.contact-dl dt { color: var(--ink-2); }
.contact-dl a { text-decoration: none; }
.contact-dl a:hover { text-decoration: underline; text-underline-offset: 4px; }
.form { display: grid; gap: 22px 20px; align-content: start; }
.fld { display: grid; gap: 6px; }
.fld label { font: 500 .8125rem/1.2 var(--f-b); color: var(--ink-2); }
.fld input, .fld select, .fld textarea { width: 100%; border: 0; border-bottom: 1px solid var(--ink); background: transparent; padding: 10px 0; min-height: 46px; font-size: 1rem; border-radius: 0; appearance: none; transition: border-color var(--d-1), background-color var(--d-1); }
.fld select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A1B2F' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; background-size: 18px; padding-right: 28px; }
.fld textarea { resize: vertical; min-height: 110px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-bottom: 2px solid var(--teal); background: rgba(42, 27, 47, .03); }
.fld input[aria-invalid="true"] { border-bottom-color: #8C1F3A; }
.form-err { color: #7A1A33; font-size: .875rem; }
.form .btn { justify-self: start; }
.form-ok { padding: 22px; background: var(--sand-2); display: grid; gap: 8px; }
.form-ok b { font: 400 1.5rem/1.2 var(--f-d); }
.form-ok p { color: var(--ink-2); font-size: .9375rem; }
@media (min-width: 760px) { .form { grid-template-columns: 1fr 1fr; } .fld-wide, .form-err, .form .btn, .form-ok { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 6fr 6fr; column-gap: clamp(2rem, 5vw, 6rem); } .form { padding-top: 12px; } }

/* Footer ---------------------------------------------------------------- */
.foot { background: var(--ink); color: var(--sand); padding: clamp(3rem, 2rem + 3vw, 5rem) var(--m) calc(76px + env(safe-area-inset-bottom)); overflow: hidden; }
.foot-top { display: grid; gap: 20px; padding-bottom: 28px; border-bottom: 1px solid var(--line-ink); }
.foot-line { font: 400 var(--t-2)/1.2 var(--f-d); max-width: 22ch; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .9375rem; }
.foot-nav a { text-decoration: none; color: var(--on-ink-2); }
.foot-nav a:hover { color: var(--sand); }
@media (min-width: 900px) { .foot-top { grid-template-columns: 1fr auto; align-items: end; } }
.foot-word { font: 400 30vw/.8 var(--f-d); letter-spacing: -.045em; white-space: nowrap; margin: 28px 0 8px -.04em; color: var(--sand); }
.foot-word span { display: inline-block; }
.foot-base { display: grid; gap: 10px; font-size: .8125rem; color: var(--on-ink-2); padding-top: 20px; border-top: 1px solid var(--line-ink); }
.foot-legal { color: var(--sand); }
@media (min-width: 900px) { .foot-base { grid-template-columns: 4fr 5fr 2fr; column-gap: var(--g); } .foot-copy { justify-self: end; } }

/* Concept badge --------------------------------------------------------- */
.concept-badge { position: fixed; left: 12px; bottom: 12px; z-index: 60; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 2px; background: var(--ink); color: var(--sand); font: 500 12px/1.2 var(--f-b); text-decoration: none; box-shadow: 0 8px 24px -12px rgba(42, 27, 47, .6); transition: transform var(--d-1) var(--e-settle); }
.concept-badge:hover { transform: translateY(-1px); }

/* Reduced motion -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .hero { height: 100vh; height: 100svh; }
}

/* Choreography (motion allowed only) ------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js .ht { animation: htIn 1.15s var(--e-settle) both; }
  .js .ht-2 { animation-delay: .12s; }
  .js .hero-copy { animation: copyIn .8s var(--e-settle) .5s both; }
  .js .hero-canvas { animation: canvasIn 1s var(--e-settle) .15s both; }
  .motion-ok .rv-lines { clip-path: inset(-0.3em -1em 100% -1em); transform: translateY(.4em); transition: clip-path 1.1s var(--e-settle), transform 1.1s var(--e-settle); }
  .motion-ok .rv-lines.in { clip-path: inset(-0.3em -1em -0.3em -1em); transform: none; }
}
@keyframes htIn { from { clip-path: inset(0 0 100% 0); transform: translateY(.32em); } to { clip-path: inset(-0.2em 0 -0.2em 0); transform: none; } }
@keyframes copyIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes canvasIn { from { opacity: 0; } }

/* Form sent state -------------------------------------------------------- */
.form.sent > :not(.form-ok) { display: none; }
.form-ok:focus { outline: none; }
.sheet-h:focus { outline: none; }
.drawer[hidden] { display: none; }
@media (min-width: 1024px) { .drawer { display: none !important; } }

/* Survey: photo frame, caption below on ink */
.survey-fig { height: auto; min-height: 0; overflow: visible; }
.survey-frame { position: relative; height: 100vh; height: 100svh; min-height: 560px; max-height: 1000px; overflow: hidden; }
.survey-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(42, 27, 47, .45), rgba(42, 27, 47, 0) 24%), linear-gradient(to top, rgba(42, 27, 47, .5), rgba(42, 27, 47, 0) 30%); pointer-events: none; z-index: 1; }
.survey-fig::after { display: none; }
.survey-cap { position: relative; left: auto; right: auto; bottom: auto; padding: clamp(2.5rem, 1.5rem + 4vw, 5rem) var(--m) 0; display: grid; gap: 14px; }
@media (min-width: 1024px) { .survey-cap { grid-template-columns: 8fr 4fr; align-items: end; column-gap: var(--g); } .survey-cap p { justify-self: end; max-width: 30ch; } }
.form-ok[hidden], .form-err[hidden] { display: none; }
.concept-badge { box-shadow: 0 8px 24px -12px rgba(42, 27, 47, .6), inset 0 0 0 1px rgba(240, 228, 212, .22); }

/* Method, wide screens: a diagonal page per step (word bottom-left, note top-right) */
@media (min-width: 900px) {
  .method.pinned .step { inset: 0; grid-template-columns: 7fr 4fr; grid-template-rows: auto 1fr auto; align-items: start; }
  .method.pinned .step-when { grid-column: 2; grid-row: 1; padding-top: clamp(1.5rem, 4vh, 3rem); }
  .method.pinned .step p { grid-column: 2; grid-row: 2; padding: 14px 0 0; }
  .method.pinned .step-t { grid-column: 1 / -1; grid-row: 3; align-self: end; font-size: clamp(8rem, 17vw, 19rem); line-height: .82; margin-bottom: -.06em; }
}
@media (max-width: 899px) {
  .method.pinned .step { inset: 0; display: flex; flex-direction: column; gap: 12px; padding: 4vh 0 52px; }
  .method.pinned .step-t { font-size: clamp(4.5rem, 23vw, 10rem); }
  .method.pinned .step p { margin-top: auto; }
  [lang|="fr"] .method.pinned .step-t { font-size: clamp(3.5rem, 15.5vw, 7rem); }
}
@media (min-width: 900px) { [lang|="fr"] .method.pinned .step-t { font-size: clamp(6rem, 13.5vw, 15rem); } }

/* French hero: room for the grave accent, shorter indent for the longer word */
[lang|="fr"] .hero-title { padding-top: .14em; }
[lang|="fr"] .ht-2 { padding-left: 0; }
@media (min-width: 760px) { [lang|="fr"] .ht-2 { padding-left: 1em; } }
@media (min-width: 1024px) { [lang|="fr"] .ht-2 { padding-left: 1.6em; } }
