:root {
  --paper:      #fbfbfc;
  --paper-2:    #f2f4f7;
  --card:       #ffffff;
  --ink:        #10141a;
  --ink-soft:   #48525e;
  --ink-faint:  #636d79;
  --accent:     #0b6070;
  --accent-2:   #0a4f5d;
  --accent-wash:#e6f2f4;
  --verified:   #2b6b4e;
  --caution:    #8a5a1f;
  --rule:       #e2e6ec;
  --rule-hard:  #ccd4dd;
  --shadow:     0 1px 2px rgba(16, 20, 26, .04), 0 8px 24px -12px rgba(16, 20, 26, .12);
  --shadow-lift:0 2px 4px rgba(16, 20, 26, .05), 0 16px 40px -16px rgba(16, 20, 26, .2);

  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;

  --page: 68rem;
  --measure: 64ch;
  --s1: .35rem; --s2: .7rem; --s3: 1.1rem; --s4: 1.8rem; --s5: 3rem; --s6: 5rem;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b0e13; --paper-2: #111620; --card: #141a23; --ink: #e6eaf0;
    --ink-soft: #9aa5b2; --ink-faint: #7a8593; --accent: #56c2d4; --accent-2: #7ad3e2;
    --accent-wash: #11242b; --verified: #6fb18c; --caution: #c89a5b;
    --rule: #202834; --rule-hard: #2e3846;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
    --shadow-lift: 0 2px 4px rgba(0,0,0,.45), 0 16px 40px -16px rgba(0,0,0,.75);
  }
}
:root[data-theme="dark"] {
  --paper: #0b0e13; --paper-2: #111620; --card: #141a23; --ink: #e6eaf0;
  --ink-soft: #9aa5b2; --ink-faint: #7a8593; --accent: #56c2d4; --accent-2: #7ad3e2;
  --accent-wash: #11242b; --verified: #6fb18c; --caution: #c89a5b;
  --rule: #202834; --rule-hard: #2e3846;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
  --shadow-lift: 0 2px 4px rgba(0,0,0,.45), 0 16px 40px -16px rgba(0,0,0,.75);
}
:root[data-theme="light"] {
  --paper: #fbfbfc; --paper-2: #f2f4f7; --card: #ffffff; --ink: #10141a;
  --ink-soft: #48525e; --ink-faint: #636d79; --accent: #0b6070; --accent-2: #0a4f5d;
  --accent-wash: #e6f2f4; --verified: #2b6b4e; --caution: #8a5a1f;
  --rule: #e2e6ec; --rule-hard: #ccd4dd;
  --shadow: 0 1px 2px rgba(16,20,26,.04), 0 8px 24px -12px rgba(16,20,26,.12);
  --shadow-lift: 0 2px 4px rgba(16,20,26,.05), 0 16px 40px -16px rgba(16,20,26,.2);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--s4); }
.prose { max-width: var(--measure); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; text-wrap: balance; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); letter-spacing: -.028em; }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.35rem); letter-spacing: -.018em; }
h3 { font-size: 1.24rem; }
h4 { font-size: 1.02rem; font-family: var(--sans); font-weight: 650; letter-spacing: -.005em; }
p { margin: 0 0 var(--s3); }
ul { margin: 0 0 var(--s3); padding-left: 1.15rem; }
li { margin-bottom: var(--s2); }
strong { font-weight: 650; color: var(--ink); }

.eyebrow {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-faint); margin: 0 0 var(--s2);
}
.eyebrow-accent { color: var(--accent); }

/* ---- the two claim treatments: the page's core idea ---- */
a { color: inherit; }
a.v {
  text-decoration: none;
  border-bottom: 2px solid var(--verified);
  padding-bottom: 1px;
  transition: background-color .15s ease;
}
a.v:hover, a.v:focus-visible { background: color-mix(in srgb, var(--verified) 16%, transparent); }
a.v::after { content: "\2197"; font-size: .78em; color: var(--verified); margin-left: .12em; vertical-align: .12em; }
.limit {
  border-left: 3px solid var(--caution);
  background: color-mix(in srgb, var(--caution) 6%, transparent);
  border-radius: 0 6px 6px 0;
  padding: var(--s3);
  margin: var(--s3) 0;
  color: var(--ink-soft);
  font-size: .95rem;
}
.limit ul { margin: var(--s2) 0 0; }
.limit li:last-child { margin-bottom: 0; }
.limit .tag {
  display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--caution); margin-bottom: var(--s1);
}
a:not(.v) { color: var(--accent); text-underline-offset: 2px; text-decoration-thickness: 1px; }

/* ---- sticky nav ---- */
nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-in {
  max-width: var(--page); margin: 0 auto; padding: .6rem var(--s4);
  display: flex; align-items: center; gap: var(--s3);
}
.mark { font-family: var(--serif); font-weight: 600; font-size: 1rem; letter-spacing: -.01em; text-decoration: none; margin-right: auto; }
.nav-links { display: flex; gap: var(--s3); align-items: center; }
.nav-links a {
  font-size: .87rem; color: var(--ink-soft); text-decoration: none;
  padding: .25rem 0; border-bottom: 1px solid transparent;
}
.nav-links a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.nav-links a[aria-current] { color: var(--accent); border-bottom-color: var(--accent); }

/* Menu button, mobile only. Before this the nav links were simply hidden under
   52rem, which left a phone with no way to reach a section at all. */
#menu {
  display: none; font: inherit; background: none; cursor: pointer;
  border: 1px solid var(--rule-hard); border-radius: 999px; color: var(--ink-soft);
  padding: .3rem .55rem; line-height: 0;
}
#menu:hover { border-color: var(--accent); color: var(--accent); }
#menu svg { width: 1.05rem; height: 1.05rem; display: block; }
#menu .close, nav[data-open] #menu .open { display: none; }
nav[data-open] #menu .close { display: block; }

@media (max-width: 52rem) {
  #menu { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule-hard);
    padding: 0 var(--s3) var(--s2); box-shadow: var(--shadow-lift);
  }
  nav[data-open] .nav-links { display: flex; }
  .nav-links a { padding: .75rem .25rem; border-bottom: 1px solid var(--rule); font-size: .97rem; }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a[aria-current] { border-bottom-color: var(--rule); }
}
/* Segmented language toggle. Two full words in a pill read as a stray link
   next to the section list; a two-state control reads as a switch. */
.lang-toggle {
  display: inline-flex; align-items: stretch; flex: none;
  border: 1px solid var(--rule-hard); border-radius: 999px; overflow: hidden;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .07em;
}
.lang-toggle a, .lang-toggle span {
  padding: .3rem .5rem; line-height: 1.35; text-decoration: none;
  color: var(--ink-faint); transition: background-color .15s ease, color .15s ease;
}
.lang-toggle a:hover { color: var(--accent); background: var(--accent-wash); }
.lang-toggle [aria-current] { background: var(--accent); color: var(--paper); font-weight: 600; }

/* Icon, not the word "theme": the label named the setting, not the action. */
#theme {
  font: inherit; background: none; cursor: pointer; flex: none;
  border: 1px solid var(--rule-hard); border-radius: 999px; color: var(--ink-soft);
  padding: .3rem .55rem; line-height: 0;
}
#theme:hover { border-color: var(--accent); color: var(--accent); }
#theme svg { width: 1.05rem; height: 1.05rem; display: block; }

/* Show the theme you would switch *to*. Light is the default branch, so the
   dark rules come after it and the explicit override after those. */
#theme .sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #theme .sun { display: block; }
  :root:not([data-theme="light"]) #theme .moon { display: none; }
}
:root[data-theme="dark"] #theme .sun { display: block; }
:root[data-theme="dark"] #theme .moon { display: none; }
:root[data-theme="light"] #theme .sun { display: none; }
:root[data-theme="light"] #theme .moon { display: block; }

/* ---- hero ---- */
header {
  padding: var(--s5) 0;
  background:
    radial-gradient(ellipse 70% 60% at 12% -10%, var(--accent-wash), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--s5) var(--s6); align-items: start; }
@media (max-width: 58rem) { .hero-grid { grid-template-columns: 1fr; gap: var(--s4); } }

.panel {
  border: 1px solid var(--rule); background: var(--card); border-radius: var(--radius);
  padding: var(--s4); box-shadow: var(--shadow);
}
.panel dl { margin: 0; }
.panel dt {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--accent);
}
.panel dd { margin: var(--s1) 0 0; font-size: .95rem; line-height: 1.55; color: var(--ink-soft); }
.panel dd strong { color: var(--ink); }
.panel .row + .row { margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--rule); }
/* Portrait and status share one row: stacked, they pushed the proof band, which
   is the whole argument of the page, below the fold on a 900px viewport. */
.id-row { display: flex; align-items: center; gap: var(--s3); margin: 0 0 var(--s3); }
.portrait {
  width: 5rem; height: 5rem; border-radius: 50%; display: block; flex: none;
  object-fit: cover; border: 1px solid var(--rule-hard); box-shadow: var(--shadow);
}
.status {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft); border: 1px solid var(--rule-hard); background: var(--card);
  border-radius: 999px; padding: .3rem .75rem; margin: 0;
}
.dot { width: .45rem; height: .45rem; border-radius: 50%; background: var(--verified); flex: none; }
.tagline {
  font-family: var(--serif); font-size: clamp(1.35rem, 3.1vw, 1.85rem);
  /* 30ch, not 26: the French tagline is longer and wrapped to four lines,
     which pushed the proof band off a 900px viewport. */
  color: var(--ink); margin: var(--s3) 0 var(--s4); max-width: 30ch; line-height: 1.3;
  letter-spacing: -.012em;
}
.hero-hook { max-width: 52ch; color: var(--ink-soft); font-size: 1.06rem; }
.hero-hook strong { color: var(--ink); }

.cta-row { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); align-items: center; margin-top: var(--s4); }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .97rem; font-weight: 600; text-decoration: none;
  padding: .68rem 1.25rem; border-radius: 999px; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
/* a.btn-* rather than .btn-*: the generic `a:not(.v)` rule above is more
   specific than a bare class, and would paint the label accent-on-accent. */
a.btn-primary { background: var(--accent); color: var(--paper); box-shadow: var(--shadow); }
a.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: var(--shadow-lift); }
a.btn-ghost { border-color: var(--rule-hard); color: var(--ink); background: var(--card); }
a.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.meta { font-family: var(--mono); font-size: .78rem; color: var(--ink-faint); display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; margin: var(--s4) 0 0; }
.meta a { color: var(--ink-soft); text-decoration-color: var(--rule-hard); }
/* Copy button, injected by site.js next to the address. A mailto does nothing
   at all for a reader whose machine has no mail client configured, which is
   most people who read their mail in a browser tab. */
.copy-mail {
  font: inherit; font-family: var(--mono); font-size: .68rem; letter-spacing: .06em;
  background: none; border: 1px solid var(--rule-hard); color: var(--ink-faint);
  border-radius: 999px; padding: .12rem .5rem; cursor: pointer; margin-left: -.5rem;
}
.copy-mail:hover { border-color: var(--accent); color: var(--accent); }
.copy-mail[data-done] { border-color: var(--verified); color: var(--verified); }
.meta a:hover { color: var(--accent); }

/* ---- proof band: the one bold move ---- */
.proof { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: var(--s5) 0; }
.proof-head { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); align-items: baseline; justify-content: space-between; }
.proof-grid { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--s3); }
.proof-grid li { margin: 0; }
.proof-grid a {
  display: block; text-decoration: none; border: 1px solid var(--rule); background: var(--card);
  border-radius: var(--radius); padding: var(--s3) var(--s3) var(--s3);
  height: 100%; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.proof-grid a:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.proof-grid a::after { content: none; }
.fig { font-family: var(--serif); font-size: 2.7rem; line-height: 1; color: var(--accent); display: block; letter-spacing: -.03em; }
.fig-label { display: block; font-size: .92rem; color: var(--ink-soft); margin-top: var(--s2); }
.fig-go { display: block; margin-top: var(--s2); font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--verified); }
.proof-note { font-family: var(--mono); font-size: .74rem; color: var(--ink-faint); margin: var(--s4) 0 0; }

/* ---- sections ---- */
section { padding: var(--s6) 0; border-top: 1px solid var(--rule); }
.sec-head { margin-bottom: var(--s5); }
.sec-head p.lede { max-width: var(--measure); color: var(--ink-soft); margin: var(--s3) 0 0; font-size: 1.06rem; }
.group-head {
  margin: var(--s5) 0 var(--s3); font-family: var(--mono); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: var(--s3);
}
.group-head::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

/* ---- disclosure cards ---- */
details {
  border: 1px solid var(--rule); background: var(--card); border-radius: var(--radius);
  margin-bottom: .6rem; transition: border-color .15s ease, box-shadow .15s ease;
}
details:hover { border-color: var(--rule-hard); }
details[open] { border-color: var(--rule-hard); box-shadow: var(--shadow); }
summary {
  cursor: pointer; padding: var(--s3) var(--s4);
  list-style: none; display: grid; grid-template-columns: 1fr auto; gap: var(--s1) var(--s3);
  align-items: baseline; border-radius: var(--radius);
}
summary::-webkit-details-marker { display: none; }
summary:hover .s-title, summary:focus-visible .s-title { color: var(--accent); }
.s-title { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; line-height: 1.25; letter-spacing: -.012em; }
.s-sub { grid-column: 1 / -1; color: var(--ink-soft); font-size: .96rem; max-width: 68ch; }
.s-stack {
  grid-column: 1 / -1; font-family: var(--mono); font-size: .69rem; color: var(--ink-faint);
  letter-spacing: .03em; margin-top: var(--s1);
}
.s-mark {
  font-family: var(--mono); font-size: .95rem; color: var(--ink-faint); line-height: 1;
  border: 1px solid var(--rule-hard); border-radius: 50%; width: 1.6rem; height: 1.6rem;
  display: grid; place-items: center; flex: none; align-self: start;
}
summary:hover .s-mark { border-color: var(--accent); color: var(--accent); }
details[open] .s-mark { color: var(--accent); border-color: var(--accent); }
.body { padding: 0 var(--s4) var(--s4); max-width: 74ch; }
.body > :first-child { margin-top: 0; }
.body::before { content: ""; display: block; height: 1px; background: var(--rule); margin: 0 0 var(--s3); }

/* ---- principle grid ---- */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: var(--s4); list-style: none; padding: 0; margin: 0; }
.principles li { margin: 0; border-top: 2px solid var(--accent); padding-top: var(--s3); }
.principles h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 650; letter-spacing: -.005em; margin-bottom: var(--s2); }
.principles p { color: var(--ink-soft); font-size: .96rem; margin: 0; }

/* ---- engagement cards ---- */
.shapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); gap: var(--s3); list-style: none; padding: 0; margin: var(--s4) 0 0; }
.shapes li { margin: 0; border: 1px solid var(--rule); background: var(--card); border-radius: var(--radius); padding: var(--s4) var(--s3); }
.shapes h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 650; margin-bottom: var(--s2); }
.shapes p { font-size: .93rem; color: var(--ink-soft); margin: 0; }
.dur { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: var(--s2); }

/* ---- closing CTA ---- */
.close-cta {
  border: 1px solid var(--rule-hard); background: var(--accent-wash);
  border-radius: var(--radius); padding: var(--s5) var(--s4); margin-top: var(--s5);
  text-align: center;
}
.close-cta h3 { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.015em; }
.close-cta p { max-width: 46ch; margin: var(--s3) auto var(--s4); color: var(--ink-soft); }
.close-cta .cta-row { justify-content: center; margin-top: 0; }

/* ---- tables ---- */
.tbl-scroll { overflow-x: auto; margin: 0 0 var(--s3); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
td, th { text-align: left; vertical-align: top; padding: var(--s3) var(--s3) var(--s3) 0; border-bottom: 1px solid var(--rule); }
th { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); font-weight: 400; }
td:first-child { white-space: nowrap; font-weight: 600; width: 1%; padding-right: var(--s4); }
td.wrapcell:first-child { white-space: normal; }

.links-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: var(--s2) var(--s4); }
.links-list li { margin-bottom: 0; }

footer { border-top: 1px solid var(--rule); padding: var(--s5) 0 var(--s6); font-family: var(--mono); font-size: .78rem; color: var(--ink-faint); }
footer a { color: var(--ink-soft); }

/* ---- motion ----
   Everything here is additive. The `.js-anim` class is set by site.js, so with
   JavaScript off nothing is ever hidden and the page reads exactly as before.
   Only elements that start below the fold are revealed, so a class arriving
   after first paint cannot flash content out of view. */
:root.js-anim .reveal { opacity: 0; transform: translateY(1rem); }
:root.js-anim .reveal.in {
  opacity: 1; transform: none;
  transition: opacity .55s cubic-bezier(.22,.61,.36,1), transform .55s cubic-bezier(.22,.61,.36,1);
}

#top-btn {
  position: fixed; right: var(--s3); bottom: var(--s3); z-index: 30;
  width: 2.6rem; height: 2.6rem; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; line-height: 0;
  background: var(--accent); color: var(--paper); border: 0;
  box-shadow: var(--shadow-lift);
  opacity: 0; visibility: hidden; transform: translateY(.5rem);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
#top-btn.in { opacity: 1; visibility: visible; transform: none; }
#top-btn:hover { background: var(--accent-2); }
#top-btn svg { width: 1.1rem; height: 1.1rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  /* Not just "do not animate": never leave content stuck at opacity 0. */
  :root.js-anim .reveal { opacity: 1; transform: none; }
  #top-btn { transition: none; }
}
@media (max-width: 40rem) {
  body { font-size: 16px; }
  .wrap { padding: 0 var(--s3); }
  .nav-in { padding: .5rem var(--s3); }
  .fig { font-size: 2.2rem; }
  header { padding: var(--s5) 0 var(--s4); }
  section { padding: var(--s5) 0; }
  summary { padding: var(--s3); }
  .body { padding: 0 var(--s3) var(--s3); }
  .btn { width: 100%; justify-content: center; }
}
