/* ============ Tokens ============ */
:root {
  --ink: #0d0d0e;
  --ink-2: #17171a;
  --ink-3: #232328;
  --paper: #faf8f5;
  --sand: #f1ede6;
  --line: rgba(var(--ink-rgb), .12);
  --line-light: rgba(255, 255, 255, .14);
  --text: #1a1a1c;
  --muted: #6b6860;
  --muted-light: rgba(255, 255, 255, .62);
  --red: #e0131c;          /* accent for text, lines, icons */
  --red-deep: #b70d15;
  --fill: #e0131c;         /* filled buttons / badges (white text on top) */
  --fill-deep: #b70d15;
  --on-dark: #e0131c;      /* accent used on dark sections */
  --ink-rgb: 13, 13, 14;
  --paper-rgb: 250, 248, 245;
  --fill-rgb: 224, 19, 28;
  --sand-2: #ebe6dd;
  --surface: #fff;         /* cards and panels on light sections */
  --heading: var(--ink);   /* dark text on light surfaces */
  --body: #36363a;         /* secondary body text on light surfaces */
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 18px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; }
h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -.01em;
  max-width: 18ch;
}
h2 em, h1 em { font-style: italic; color: var(--red); }
h3 { font-size: 21px; font-weight: 500; letter-spacing: -.01em; line-height: 1.25; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 22px;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before { content: none; }
.eyebrow--light { color: #fff; }
.eyebrow--light::before { background: var(--red); }
.eyebrow .dot { display: none; }

.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--text); max-width: 60ch; }
.lead--light { color: rgba(255, 255, 255, .82); }
.muted { color: var(--muted); max-width: 42ch; margin: 0; }
.muted--light { color: var(--muted-light); }

/* ============ Buttons ============ */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 500 15px/1 var(--sans); letter-spacing: .01em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .3s var(--ease), background .3s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn--red { --bg: var(--fill); box-shadow: 0 10px 30px -10px rgba(var(--fill-rgb), .6); }
.btn--red:hover { --bg: var(--fill-deep); }
.btn--dark { --bg: var(--ink); }
.btn--ghost { --bg: transparent; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn--sm { padding: 11px 20px; font-size: 14px; }

/* ============ Mock badge ============ */
.mock-badge {
  position: fixed; left: 16px; bottom: 16px; z-index: 90;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(var(--ink-rgb), .82); color: #fff; backdrop-filter: blur(10px);
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  pointer-events: none;
}

/* ============ Nav ============ */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 80;
  transition: background .4s, box-shadow .4s, color .4s;
  color: #fff;
}
.nav.is-scrolled {
  background: rgba(var(--paper-rgb), .86);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--heading);
}
.nav__inner {
  max-width: 1400px; margin: 0 auto; padding: 16px var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.brand__name { font-weight: 600; font-size: 15px; line-height: 1.15; }
.brand__name small { display: block; font-weight: 400; font-size: 12px; opacity: .65; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { text-decoration: none; font-size: 14px; font-weight: 500; opacity: .85; position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; text-decoration: none; opacity: .75; transition: opacity .2s; }
.lang:hover { opacity: 1; }
.lang__flag { display: inline-flex; width: 20px; height: 14px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.5), 0 1px 3px rgba(0,0,0,.35); flex: none; }
.lang__flag svg { width: 100%; height: 100%; display: block; }
.burger { display: none; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; padding: 10px; color: inherit; }
.burger span { display: block; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .3s; }
.nav.is-open .burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav.is-open .burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.mobile-menu { display: none; }

/* ============ Hero ============ */
.hero {
  position: relative; min-height: 100svh;
  display: grid; align-items: end;
  background: var(--ink); color: #fff; overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%;
  transform: scale(1.08); animation: heroZoom 14s var(--ease) forwards;
  filter: saturate(.9) contrast(1.05);
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(var(--ink-rgb), .94) 0%, rgba(var(--ink-rgb), .7) 38%, rgba(var(--ink-rgb), .1) 70%),
    linear-gradient(0deg, rgba(var(--ink-rgb), .85) 0%, rgba(var(--ink-rgb), 0) 45%);
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__content {
  width: 100%; max-width: var(--wrap); margin: 0 auto;
  padding: 160px var(--gutter) clamp(72px, 12vh, 130px);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(46px, 6.6vw, 100px);
  line-height: .98; letter-spacing: -.02em;
  margin-bottom: 30px;
}
.hero h1 > * , .hero h1 { animation: rise 1.1s var(--ease) both; }
.hero__lede { max-width: 50ch; font-size: clamp(17px, 1.5vw, 20px); color: rgba(255,255,255,.8); margin: 0 0 36px; animation: rise 1.1s .15s var(--ease) both; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; animation: rise 1.1s .3s var(--ease) both; }
.hero .eyebrow { animation: rise 1s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 40px;
  width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.4); border-radius: 20px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  background: #fff; border-radius: 2px; animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ============ Creds ============ */
.creds { background: var(--ink); color: #fff; border-top: 1px solid var(--line-light); }
.creds__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.cred { padding: 34px 24px 38px 0; border-right: 1px solid var(--line-light); }
.cred + .cred { padding-left: 24px; }
.cred:last-child { border-right: 0; }
.cred strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; margin-bottom: 6px; }
.cred span { font-size: 14px; color: var(--muted-light); }

/* ============ Quote ============ */
.quote { padding: clamp(90px, 14vw, 180px) var(--gutter); text-align: center; }
.quote blockquote { margin: 0 auto; max-width: 1000px; }
.quote p {
  font-family: var(--serif); font-size: clamp(30px, 4.4vw, 58px); line-height: 1.12; margin: 0;
  letter-spacing: -.01em;
}
.quote p::first-letter { color: var(--red); }

/* ============ Sections ============ */
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section--ink { background: var(--ink); color: #fff; }
.section--sand { background: var(--sand); }
.section__head { margin-bottom: clamp(44px, 6vw, 72px); }
.section__head .lead { margin-top: 26px; }
.section__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }

/* ============ Split (chirurgien) ============ */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.split__media { position: sticky; top: 110px; }
.frame { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; transition: transform 1.2s var(--ease); }
.frame:hover img { transform: scale(1.03); }
.logos { display: flex; gap: 20px; align-items: center; margin-top: 24px; }
.logos img { height: 72px; width: auto; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.split__text h2 { margin-bottom: 28px; }
.timeline-list { list-style: none; padding: 0; margin: 44px 0 32px; border-top: 1px solid var(--line); }
.timeline-list li {
  display: grid; grid-template-columns: 130px 1fr; gap: 20px;
  padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--body);
}
.timeline-list span { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.inline-links { display: flex; gap: 28px; flex-wrap: wrap; }
.inline-links a { font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--red); padding-bottom: 2px; }

/* ============ Pillars ============ */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); border-radius: var(--radius); overflow: hidden; }
.pillar { background: var(--ink); padding: 44px 36px 52px; transition: background .4s; }
.pillar:hover { background: var(--ink-2); }
.pillar__num { display: block; font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--red); margin-bottom: 40px; }
.pillar h3 { margin-bottom: 14px; }
.pillar p { margin: 0; color: var(--muted-light); font-size: 16px; }

/* ============ Interventions ============ */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 34px; }
.tab {
  padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; font: 500 14px var(--sans); color: var(--text); cursor: pointer;
  transition: all .25s;
}
.tab:hover { border-color: var(--heading); }
.tab.is-active { background: var(--ink); color: #fff; border-color: var(--heading); }
.panel { display: none; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.panel.is-active { display: grid; animation: rise .5s var(--ease); }
.proc {
  position: relative; display: block; text-decoration: none;
  padding: 28px 28px 30px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.proc:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(0,0,0,.25); border-color: transparent; }
.proc h4 { font-family: var(--serif); font-size: 28px; line-height: 1.1; margin-bottom: 8px; }
.proc p { margin: 0; color: var(--muted); font-size: 15px; padding-right: 30px; }
.proc span {
  position: absolute; right: 22px; top: 24px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--sand); font-size: 15px;
  transition: background .3s, color .3s, transform .3s;
}
.proc:hover span { background: var(--fill); color: #fff; transform: rotate(-45deg); }
.fineprint { margin: 30px 0 0; font-size: 14px; color: var(--muted); }
.fineprint a { color: var(--text); font-weight: 500; }

/* ============ Parcours ============ */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.step { background: var(--sand); padding: 36px 32px 40px; transition: background .3s; }
.step:hover { background: var(--sand-2); }
.step__n {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--red); color: var(--red); font-weight: 600; font-size: 15px; margin-bottom: 26px;
}
.step h3 { margin-bottom: 10px; }
.step p { margin: 0; color: var(--body); font-size: 15.5px; }
.fees { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 14px; margin-top: 14px; }
.fee { background: var(--surface); border-radius: var(--radius); padding: 28px 30px; }
.fee span { display: block; font-size: 14px; color: var(--muted); }
.fee strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1.1; margin: 6px 0 2px; }
.fee em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--red); letter-spacing: .04em; }
.fee--note { background: var(--ink); color: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.fee--note p { margin: 0; color: var(--muted-light); font-size: 15px; }
.fee--note a { font-weight: 500; text-decoration: none; }

/* ============ Humanitaire ============ */
.hum-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; margin-bottom: clamp(60px, 8vw, 100px); }
.hum-hero h2 { margin-bottom: 28px; }
.hum-hero .lead { margin-bottom: 36px; }
.hum-hero__img { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; }
.hum-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hum-hero__img figcaption {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  padding: 10px 14px; border-radius: 12px; font-size: 13px;
  background: rgba(var(--ink-rgb), .6); backdrop-filter: blur(10px);
}
.missions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mission { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink-3); aspect-ratio: 4 / 5; }
.mission img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.mission::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.2) 55%, rgba(0,0,0,0) 100%); }
.mission:hover img { transform: scale(1.06); }
.mission div { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 26px; }
.mission time { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--fill); background: #fff; padding: 4px 9px; border-radius: 999px; }
.mission h4 { font-family: var(--serif); font-size: 32px; line-height: 1.05; margin: 14px 0 6px; }
.mission p { margin: 0; font-size: 15px; color: rgba(255,255,255,.78); }

/* ============ Médias bento ============ */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(220px, auto); gap: 16px; }
.card { border-radius: var(--radius); padding: 34px; background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.card h3 { font-family: var(--serif); font-size: clamp(30px, 3vw, 42px); line-height: 1.05; margin-bottom: 14px; }
.card p { margin: 0; color: var(--muted); }
.tag { display: inline-block; font-size: 12px !important; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red) !important; margin-bottom: 18px !important; }
.tag--light { color: #fff !important; }
.card--podcast { grid-column: span 4; background: var(--fill); color: #fff; border: 0; min-height: 360px; display: flex; flex-direction: column; }
.card--podcast .tag { color: #fff !important; opacity: .85; }
.card--podcast p { color: rgba(255,255,255,.88); max-width: 46ch; }
.card--podcast h3 { font-size: clamp(40px, 5vw, 72px); }
.card__links { display: flex; gap: 12px; margin-top: 26px; position: relative; z-index: 1; flex-wrap: wrap; }
.card__links a { padding: 10px 18px; border-radius: 999px; background: rgba(0,0,0,.2); text-decoration: none; font-size: 14px; font-weight: 500; transition: background .3s; }
.card__links a:hover { background: var(--ink); }
.wave { position: absolute; right: 30px; bottom: 30px; display: flex; gap: 5px; align-items: flex-end; height: 90px; opacity: .45; }
.wave i { width: 5px; background: #fff; border-radius: 3px; animation: wave 1.4s ease-in-out infinite; }
.wave i:nth-child(odd) { animation-delay: -.4s; }
.wave i:nth-child(3n) { animation-delay: -.8s; }
.wave i:nth-child(4n) { animation-delay: -1.1s; }
@keyframes wave { 0%, 100% { height: 14px; } 50% { height: 90px; } }
.card--book { grid-column: span 2; background: var(--ink); color: #fff; border: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.card--book::before {
  content: "K"; position: absolute; right: -10px; top: -40px;
  font-family: var(--sans); font-weight: 600; font-size: 260px; line-height: 1; color: var(--red); opacity: .9;
  transform: skewX(-8deg);
}
.card--book p { color: var(--muted-light); position: relative; }
.card--book h3, .card--book .tag { position: relative; }
.card--img { grid-column: span 3; padding: 0; min-height: 380px; color: #fff; border: 0; }
.card--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card--img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.9), rgba(0,0,0,.1) 70%); }
.card--img > div { position: absolute; bottom: 0; left: 0; right: 0; padding: 34px; z-index: 1; }
.card--img p { color: rgba(255,255,255,.8); }
.card--paper { grid-column: span 3; background: var(--sand); border: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.card--paper h3 { font-size: clamp(26px, 2.4vw, 34px); }
.card--list { grid-column: span 6; background: transparent; }
.press { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 38px; }
.press li { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 36px); line-height: 1.2; color: var(--text); }
.press li:not(:last-child)::after { content: "✦"; font-size: 14px; color: var(--red); margin-left: 38px; vertical-align: middle; }

/* ============ Regard (marquee) ============ */
.regard { background: var(--ink); color: #fff; padding: clamp(80px, 11vw, 140px) 0; overflow: hidden; }
.marquee { overflow: hidden; }
.marquee__track { display: flex; gap: 16px; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee img { height: clamp(220px, 32vw, 380px); width: auto; border-radius: 14px; filter: grayscale(1) contrast(1.1); transition: filter .5s; }
.marquee img:hover { filter: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Collaborer ============ */
.collab { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.collab__item {
  display: flex; flex-direction: column; gap: 12px;
  padding: 32px 28px; border-radius: var(--radius);
  border: 1px solid var(--line); text-decoration: none; background: var(--surface);
  transition: background .35s, color .35s, transform .35s var(--ease);
}
.collab__item:hover { background: var(--ink); color: #fff; transform: translateY(-4px); }
.collab__item:hover p { color: var(--muted-light); }
.collab__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--sand); color: var(--red); font-size: 20px; margin-bottom: 18px; transition: background .35s; }
.collab__item:hover .collab__icon { background: var(--fill); color: #fff; }
.collab__item p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; transition: color .35s; }
.collab__cta { font-weight: 500; font-size: 14px; color: var(--red); margin-top: 10px; }

/* ============ Lieux ============ */
.places { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; }
.place { background: var(--surface); border-radius: var(--radius); padding: 34px; }
.place h3 { font-family: var(--serif); font-size: 30px; line-height: 1.1; margin-bottom: 12px; }
.place p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.place > a:not(.btn) { font-weight: 600; text-decoration: none; }
.place--main { background: var(--ink); color: #fff; grid-row: span 2; }
.place--main h3 { font-size: clamp(30px, 3vw, 40px); margin-bottom: 30px; }
.place dl { margin: 0 0 32px; }
.place dl div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-light); font-size: 15px; }
.place dt { color: var(--muted-light); }
.place dd { margin: 0; }
.place--main .btn--dark { --bg: #fff; --fg: var(--ink); }
.places .place:nth-child(2), .places .place:nth-child(3) { grid-column: span 2; }

/* ============ Contact ============ */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); }
.big-phone {
  display: block; margin: 34px 0 8px; text-decoration: none;
  font-family: var(--serif); font-size: clamp(48px, 7vw, 92px); line-height: 1; letter-spacing: -.01em;
  transition: color .3s;
}
.big-phone:hover { color: var(--red); }
.nowrap { white-space: nowrap; }
.contact__mail { display: inline-block; margin-top: 24px; font-size: 20px; text-decoration: none; border-bottom: 1px solid var(--red); padding-bottom: 3px; }
.urgent { margin-top: 44px; padding: 22px 24px; border-radius: 14px; border: 1px solid var(--line-light); border-left: 3px solid var(--red); }
.urgent strong { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.urgent p { margin: 6px 0 0; color: rgba(255,255,255,.82); font-size: 15px; }
.urgent a { text-decoration: none; font-weight: 600; }
.form { background: var(--ink-2); border: 1px solid var(--line-light); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 500; color: var(--muted-light); }
.form input, .form select, .form textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--line-light); background: rgba(255,255,255,.04); color: #fff;
  font: 400 16px var(--sans); transition: border-color .25s, background .25s;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.form select option { color: var(--heading); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--red); background: rgba(255,255,255,.07); }
.form textarea { resize: vertical; }
.form__note { margin: 0; font-size: 13px; color: var(--muted-light); }
.form .btn { align-self: flex-start; }
.form.is-sent { align-items: flex-start; justify-content: center; }

/* ============ Footer ============ */
.footer { background: #070708; color: #fff; padding: 80px 0 40px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid var(--line-light); }
.footer__brand { display: flex; gap: 18px; align-items: flex-start; }
.footer__brand img { border-radius: 12px; flex: none; }
.footer__brand p { margin: 0; color: var(--muted-light); font-size: 15px; max-width: 40ch; }
.footer__brand strong { color: #fff; font-weight: 600; }
.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a { text-decoration: none; color: var(--muted-light); font-size: 15px; transition: color .25s; }
.footer__nav a:hover { color: #fff; }
.footer__legal { padding-top: 34px; }
.footer__legal p { font-size: 13px; color: rgba(255,255,255,.45); max-width: 110ch; margin: 0 0 18px; line-height: 1.65; }
.footer__legal strong { color: rgba(255,255,255,.75); }
.footer__legal a { color: rgba(255,255,255,.75); }

/* ============ Reveal ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============ Responsive ============ */
@media (max-width: 1240px) {
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
  .burger { display: block; }
  .mobile-menu {
    display: flex; flex-direction: column; gap: 4px;
    max-height: 0; overflow: hidden; transition: max-height .45s var(--ease), padding .45s;
    padding: 0 var(--gutter);
    background: var(--paper); color: var(--heading);
  }
  .mobile-menu a { font-family: var(--serif); font-size: 34px; text-decoration: none; padding: 4px 0; }
  .nav.is-open { background: var(--paper); color: var(--heading); }
  .nav.is-open .mobile-menu { max-height: calc(100vh - 72px); overflow-y: auto; padding: 10px var(--gutter) 30px; }
}
@media (max-width: 1080px) {
  .panel { grid-template-columns: repeat(2, 1fr); }
  .collab { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .fees { grid-template-columns: 1fr 1fr; }
  .fee--note { grid-column: span 2; }
  .missions { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  .creds__inner { grid-template-columns: 1fr 1fr; }
  .cred { padding: 26px 16px 28px 0 !important; border-bottom: 1px solid var(--line-light); }
  .cred:nth-child(2n) { border-right: 0; padding-left: 16px !important; }
  .cred:nth-child(n+3) { border-bottom: 0; }
  .split, .hum-hero, .contact__grid { grid-template-columns: 1fr; }
  .split__media { position: static; }
  .frame { aspect-ratio: 4 / 3; }
  .pillars { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .card--podcast, .card--book, .card--img, .card--paper, .card--list { grid-column: auto; }
  .card--book { min-height: 280px; }
  .places { grid-template-columns: 1fr; }
  .places .place:nth-child(2), .places .place:nth-child(3) { grid-column: auto; }
  .place--main { grid-row: auto; }
  .timeline-list li { grid-template-columns: 1fr; gap: 4px; }
  .press li:not(:last-child)::after { margin-left: 20px; }
  .press { gap: 8px 20px; }
}

@media (max-width: 600px) {
  .brand__name small { display: none; }
  .nav__actions .btn { display: none; }
  .hero__media img { object-position: 62% 30%; }
  .hero__media::after { background: linear-gradient(0deg, rgba(var(--ink-rgb), .96) 0%, rgba(var(--ink-rgb), .7) 50%, rgba(var(--ink-rgb), .25) 100%); }
  .hero__scroll { display: none; }
  .panel, .collab, .steps, .missions, .fees { grid-template-columns: 1fr; }
  .fee--note { grid-column: auto; }
  .form__row { grid-template-columns: 1fr; }
  .place dl div { grid-template-columns: 1fr; gap: 2px; }
  .section__head--row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .mission { aspect-ratio: 4 / 4.4; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
}

/* =====================================================================
   Inner pages
   ===================================================================== */
.nav__links a[aria-current="page"] { opacity: 1; }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav--solid { background: rgba(var(--paper-rgb),.9); color: var(--heading); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(16px); }

/* Page header */
.phead { position: relative; padding: 170px 0 clamp(56px, 8vw, 96px); background: var(--sand); overflow: hidden; isolation: isolate; }
.phead--dark { background: var(--ink); color: #fff; }
.phead__img { position: absolute; inset: 0; z-index: -1; }
.phead__img img { width: 100%; height: 100%; object-fit: cover; object-position: 75% 30%; opacity: .6; }
.phead__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 15%, rgba(var(--ink-rgb), .55) 55%, rgba(var(--ink-rgb), .1)); }
.phead h1 { font-family: var(--serif); font-size: clamp(46px, 7vw, 96px); line-height: .98; letter-spacing: -.02em; max-width: 16ch; }
.phead h1 em { color: var(--red); font-style: italic; }
.phead .lead { margin-top: 28px; max-width: 58ch; }
.phead--dark .lead { color: rgba(255,255,255,.82); }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.phead--dark .crumbs { color: var(--muted-light); }
.phead__cta { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn--outline { --bg: transparent; --fg: var(--heading); border-color: var(--heading); }
.btn--outline:hover { --bg: var(--ink); --fg: #fff; }

/* Prose */
.prose { max-width: 68ch; }
.prose p, .prose li { color: var(--body); }
.prose p { margin: 0 0 1.15em; }
.prose h2 { font-size: clamp(30px, 3.4vw, 44px); margin: 1.6em 0 .6em; max-width: none; }
.prose h3 { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); font-weight: 400; margin: 1.6em 0 .5em; }
.prose h4 { font-size: 18px; font-weight: 600; margin: 1.4em 0 .4em; }
.prose a { color: var(--red); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: 12px; margin: 1.6em auto; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--red); font-family: var(--serif); font-size: 26px; line-height: 1.25; }
.prose table { border-collapse: collapse; width: 100%; margin: 1.4em 0; font-size: 15px; display: block; overflow-x: auto; }
.prose td { border: 1px solid var(--line); padding: 8px 12px; vertical-align: top; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose--wide { max-width: none; }
.prose .cols { columns: 2; column-gap: 48px; }

/* Layout helpers */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.two--sticky > :first-child { position: sticky; top: 110px; }
.stack > * + * { margin-top: 16px; }
.section--tight { padding: clamp(56px, 8vw, 100px) 0; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Cards & lists */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.box--ink { background: var(--ink); color: #fff; border: 0; }
.box--red { background: var(--fill); color: #fff; border: 0; }
.box--sand { background: var(--sand); border: 0; }
.box h3 { font-family: var(--serif); font-size: 28px; line-height: 1.1; font-weight: 400; margin-bottom: 14px; }
.box p { margin: 0 0 10px; color: var(--muted); font-size: 15.5px; }
.box--ink p, .box--red p { color: rgba(255,255,255,.75); }
.box--red p { color: rgba(255,255,255,.9); }
.box ul { margin: 0; padding: 0; list-style: none; }
.box li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.box--ink li { border-color: var(--line-light); }
.box li:first-child { border-top: 0; padding-top: 0; }
.box a { text-underline-offset: 3px; }
.tick li { position: relative; padding-left: 26px; }
.tick li::before { content: ""; position: absolute; left: 0; top: 18px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--red); }
.tick li:first-child::before { top: 7px; }
.pill { color: var(--text); display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--sand); text-decoration: none; font-size: 14px; font-weight: 500; transition: background .25s, color .25s; }
.pill:hover { background: var(--ink); color: #fff; }
.pill--red { background: var(--fill); color: #fff; }
.pill--red:hover { color: #fff; }
.pill:hover { color: #fff; }
.pill--red:hover { background: var(--fill-deep); }
.pill--line { background: transparent; border: 1px solid var(--line); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.callout { padding: 22px 26px; border-radius: 14px; background: var(--sand); border-left: 3px solid var(--red); font-size: 15.5px; color: var(--body); }
.callout--dark { background: var(--ink-2); color: rgba(255,255,255,.85); }
.callout strong { color: inherit; }

/* Filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.filters .tab[hidden] { display: none; }

/* Interventions */
.icards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.icard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px 26px; display: flex; flex-direction: column; gap: 14px; transition: box-shadow .35s, transform .35s var(--ease); scroll-margin-top: 110px; }
.icard:hover { box-shadow: 0 26px 50px -28px rgba(0,0,0,.3); transform: translateY(-3px); }
.icard:target { outline: 2px solid var(--red); }
.icard[hidden] { display: none; }
.icard__cat { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.icard h3 { font-family: var(--serif); font-size: 30px; line-height: 1.05; font-weight: 400; }
.icard p { margin: 0; color: var(--muted); font-size: 15.5px; flex: 1; }
.icard .pills { margin-top: 4px; }

/* Accordion */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--serif); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-family: var(--sans); font-size: 26px; color: var(--red); transition: transform .3s; flex: none; }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc .acc__body { padding: 0 0 28px; max-width: 72ch; color: var(--body); }
.acc .acc__body p { margin: 0 0 14px; }

/* Side nav layout */
.with-side { display: grid; grid-template-columns: 220px 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.sidenav { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--line); }
.sidenav a { padding: 8px 0 8px 18px; text-decoration: none; font-size: 15px; color: var(--muted); margin-left: -1px; border-left: 2px solid transparent; transition: color .2s, border-color .2s; }
.sidenav a:hover, .sidenav a.is-active { color: var(--heading); border-color: var(--red); }
.chapter { padding-bottom: clamp(56px, 8vw, 96px); scroll-margin-top: 100px; }
.chapter > h2 { margin-bottom: 28px; }
.chapter .num { display: block; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }

/* Video / media cards */
.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vcard { display: block; text-decoration: none; position: relative; }
.vcard__img { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--ink-3); }
.vcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.vcard:hover .vcard__img img { transform: scale(1.05); }
.vcard__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.45), transparent 50%); }
.play { position: absolute; z-index: 2; left: 16px; bottom: 16px; width: 46px; height: 46px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; box-shadow: 0 8px 24px -6px rgba(0,0,0,.5); transition: transform .3s var(--ease); }
.play::before { content: ""; margin-left: 3px; border-left: 14px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.vcard:hover .play { transform: scale(1.12); }
.vcard h4 { font-size: 17px; font-weight: 500; line-height: 1.3; margin: 14px 0 4px; letter-spacing: -.005em; }
.vcard p { margin: 0; font-size: 14px; color: var(--muted); }
.section--ink .vcard p, .phead--dark .vcard p { color: var(--muted-light); }
.vcard__tag { position: absolute; z-index: 2; top: 12px; left: 12px; background: #fff; color: var(--ink); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.vcard--tall .vcard__img { aspect-ratio: 3 / 4; }

/* Missions list */
.mgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mcard { position: relative; display: block; text-decoration: none; color: #fff; border-radius: 14px; overflow: hidden; background: var(--ink-3); aspect-ratio: 4 / 5; }
.mcard[hidden] { display: none; }
.mcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.mcard:hover img { transform: scale(1.06); }
.mcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.15) 62%); }
.mcard div { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 18px; }
.mcard time { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--fill); padding: 3px 9px; border-radius: 999px; }
.mcard h4 { font-family: var(--serif); font-size: 24px; line-height: 1.05; margin: 10px 0 4px; }
.mcard p { margin: 0; font-size: 13px; color: rgba(255,255,255,.75); line-height: 1.4; }
.mcard .play { left: auto; right: 14px; top: 14px; bottom: auto; width: 38px; height: 38px; }
.mcard .play::before { border-left-width: 11px; border-top-width: 6px; border-bottom-width: 6px; }
.filters--dark .tab { color: #fff; border-color: var(--line-light); }
.filters--dark .tab:hover { border-color: #fff; }
.filters--dark .tab.is-active { background: #fff; color: var(--ink); border-color: #fff; }

/* Results */
.gate { position: relative; }
.gate__veil { position: absolute; inset: 0; z-index: 5; display: grid; place-items: start center; padding-top: 60px; background: rgba(var(--paper-rgb),.55); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px); text-align: center; border-radius: var(--radius); min-height: 420px; }
.gate__veil > div { max-width: 460px; padding: 32px; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0,0,0,.35); }
.gate__veil h3 { font-family: var(--serif); font-size: 32px; font-weight: 400; margin-bottom: 10px; }
.gate__veil p { margin: 0 0 20px; font-size: 15px; color: var(--muted); }
.gate.is-open .gate__veil { display: none; }
.gate:not(.is-open) .gate__body { max-height: 640px; overflow: hidden; pointer-events: none; }
.rsec { margin-bottom: clamp(56px, 7vw, 96px); scroll-margin-top: 100px; }
.rsec[hidden] { display: none; }
.rsec__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 26px; flex-wrap: wrap; }
.rsec__head h2 { font-size: clamp(32px, 4vw, 52px); }
.rsec__head .pills { flex: none; }
.masonry { columns: 3; column-gap: 14px; }
.masonry a, .masonry figure { display: block; break-inside: avoid; margin: 0 0 14px; border-radius: 12px; overflow: hidden; background: var(--sand); cursor: zoom-in; position: relative; }
.masonry img { width: 100%; height: auto; transition: transform .7s var(--ease); }
.masonry a:hover img { transform: scale(1.03); }
.masonry--dark a { background: var(--ink-3); }
.masonry--photo { columns: 4; }
.masonry--wide { columns: 2; }
.tag-ba { position: absolute; left: 10px; bottom: 10px; z-index: 2; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; background: rgba(var(--ink-rgb), .78); color: #fff; padding: 3px 9px; border-radius: 999px; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 200; display: none; background: rgba(8,8,9,.94); align-items: center; justify-content: center; padding: 24px; }
.lb.is-open { display: flex; animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.lb__inner { max-width: min(1200px, 100%); max-height: 100%; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lb img { max-width: 100%; max-height: calc(100vh - 110px); border-radius: 8px; object-fit: contain; }
.lb__frame { width: min(1100px, 100%); aspect-ratio: 16 / 9; border: 0; border-radius: 10px; background: #000; }
.lb__cap { color: rgba(255,255,255,.75); font-size: 14px; text-align: center; }
.lb button { position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 22px; cursor: pointer; transition: background .2s; }
.lb button:hover { background: var(--fill); }
.lb__x { top: 20px; right: 20px; }
.lb__p { left: 20px; top: 50%; margin-top: -23px; }
.lb__n { right: 20px; top: 50%; margin-top: -23px; }
.lb--single .lb__p, .lb--single .lb__n { display: none; }

/* Journal */
.jgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.jcard { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s; }
.jcard:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -28px rgba(0,0,0,.3); }
.jcard[hidden] { display: none; }
.jcard__meta { display: flex; gap: 12px; align-items: center; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.jcard__meta b { color: var(--red); font-weight: 600; }
.jcard h3 { font-family: var(--serif); font-size: 27px; line-height: 1.1; font-weight: 400; }
.jcard p { margin: 0; font-size: 15px; color: var(--muted); flex: 1; }
.jcard--lead { grid-column: span 2; background: var(--ink); color: #fff; border: 0; }
.jcard--lead h3 { font-size: clamp(32px, 3.4vw, 46px); }
.jcard--lead p { color: var(--muted-light); }
.jcard--lead .jcard__meta { color: var(--muted-light); }
.search { width: 100%; max-width: 420px; padding: 13px 18px 13px 44px; border-radius: 999px; border: 1px solid var(--line); font: 400 15px var(--sans); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%236b6860' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m13 13 4 4'/%3E%3C/svg%3E") no-repeat 16px center; }
.search:focus { outline: 0; border-color: var(--heading); }
.article { padding-top: 40px; }
.article__head { max-width: 900px; }
.article__head h1 { font-family: var(--serif); font-size: clamp(38px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -.015em; font-weight: 400; }
.article__meta { margin-top: 24px; display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.article__meta b { color: var(--red); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
.article .prose { margin: 0 auto; }
.article .prose p.dropcap::first-letter { float: left; font-family: var(--serif); font-weight: 400; font-style: normal;
  font-size: 4.6em; line-height: .8; margin: .06em .1em 0 0; color: var(--red); }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 64px; }
.pn a { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .25s; }
.pn a:hover { border-color: var(--heading); }
.pn small { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); font-weight: 600; margin-bottom: 6px; }
.pn span { font-family: var(--serif); font-size: 22px; line-height: 1.15; }
.pn a:last-child { text-align: right; }

/* Docs list */
.docs { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.docs li { border-bottom: 1px solid var(--line); }
.docs a { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 4px; text-decoration: none; transition: padding .3s var(--ease), color .2s; }
.docs a:hover { padding-left: 14px; color: var(--red); }
.docs small { color: var(--muted); font-size: 13px; white-space: nowrap; }
.docs span { font-size: 16.5px; line-height: 1.4; }
.docs b { font-weight: 500; }

/* Contact page */
.maps { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.maps figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.maps figcaption { padding: 16px 20px; font-size: 14px; color: var(--muted); }
.maps img { width: 100%; height: 320px; object-fit: cover; cursor: zoom-in; }
.form--light { background: var(--surface); border: 1px solid var(--line); }
.form--light label { color: var(--muted); }
.form--light input, .form--light select, .form--light textarea { background: var(--paper); border-color: var(--line); color: var(--text); }
.form--light select { background-image: linear-gradient(45deg, transparent 50%, #111 50%), linear-gradient(135deg, #111 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.form--light input:focus, .form--light select:focus, .form--light textarea:focus { background: var(--surface); }
.form--light .form__note { color: var(--muted); }
.form--light select option { color: var(--heading); }
.hours { display: flex; gap: 16px; flex-wrap: wrap; }
.hours div { flex: 1; min-width: 150px; padding: 16px 18px; border-radius: 12px; background: var(--sand); }
.hours b { display: block; font-family: var(--serif); font-size: 26px; font-weight: 400; }
.hours span { font-size: 13px; color: var(--muted); }

@media (max-width: 1080px) {
  .icards, .vgrid, .jgrid { grid-template-columns: repeat(2, 1fr); }
  .mgrid { grid-template-columns: repeat(3, 1fr); }
  .cards, .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .masonry { columns: 2; }
  .masonry--photo { columns: 3; }
  .with-side { grid-template-columns: 1fr; }
  .sidenav { position: static; flex-direction: row; flex-wrap: wrap; border-left: 0; gap: 8px; }
  .sidenav a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; margin: 0; }
  .sidenav a:hover, .sidenav a.is-active { background: var(--ink); color: #fff; border-color: var(--heading); }
}
@media (max-width: 820px) {
  .two, .maps { grid-template-columns: 1fr; }
  .two--sticky > :first-child { position: static; }
  .jcard--lead { grid-column: auto; }
  .mgrid { grid-template-columns: repeat(2, 1fr); }
  .prose .cols { columns: 1; }
  .pn { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .icards, .vgrid, .jgrid, .cards, .cards--2, .cards--4 { grid-template-columns: 1fr; }
  .mgrid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .mcard h4 { font-size: 20px; }
  .mcard p { display: none; }
  .masonry, .masonry--photo, .masonry--wide { columns: 2; column-gap: 10px; }
  .masonry a, .masonry figure { margin-bottom: 10px; }
  .phead { padding-top: 130px; }
  .gate__veil { padding-top: 24px; }
}

a.card { text-decoration: none; color: inherit; transition: transform .35s var(--ease), box-shadow .35s; display: block; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -28px rgba(0,0,0,.35); }
a.card--paper h3 { text-decoration: none; }
.card--paper { display: flex !important; }
.box--ink .pill, .box--red .pill { color: var(--ink); }
.box--ink .pill:hover, .box--red .pill:hover { background: #fff; color: var(--red); }
.box--ink .pill--line { color: #fff; border-color: var(--line-light); }

/* Blurred medical photographs: hidden until the visitor chooses to reveal them */
.rsec__title { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.blur-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border-radius: 999px; border: 1px solid var(--line); background-color: var(--surface); color: var(--text); font: 500 14px var(--sans); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.blur-toggle:hover { background: var(--ink); color: #fff; border-color: var(--heading); }
.blur-toggle__ico { display: inline-flex; }
.blur-toggle .eye-off, .blur-veil .eye-off { display: none; }
.rsec:not(.is-blurred) > .rsec__head .blur-toggle .eye-on { display: none; }
.rsec:not(.is-blurred) > .rsec__head .blur-toggle .eye-off { display: inline; }
.rsec:not(.is-blurred) > .rsec__head .blur-toggle { background: var(--sand); }
.rsec__body { position: relative; }
.rsec.is-blurred > .rsec__body .masonry img { filter: blur(26px) saturate(.85); transform: scale(1.12); }
.blur-veil { display: none; position: absolute; z-index: 4; top: 36px; left: 50%; transform: translateX(-50%); align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font: 500 15px var(--sans); cursor: pointer; box-shadow: 0 18px 40px -14px rgba(0,0,0,.5); white-space: nowrap; }
.blur-veil:hover { background: var(--fill); }
.rsec.is-blurred > .rsec__body > .blur-veil { display: inline-flex; }
.rsec.is-blurred > .rsec__body { min-height: 260px; }
.rsec__body .masonry { max-height: none; }
.rsec.is-blurred > .rsec__body .masonry { max-height: 560px; overflow: hidden; }
@media (max-width: 600px) { .blur-veil { white-space: normal; text-align: left; width: calc(100% - 32px); justify-content: center; } }
.rsec:not(.is-blurred) > .rsec__head .blur-toggle:hover { background: var(--ink); color: #fff; }

.form__status { margin: 4px 0 0; padding: 14px 18px; border-radius: 12px; font-size: 15px; line-height: 1.5; }
.form__status[hidden] { display: none; }
.form__status.is-ok { background: #e7f5ec; color: #14532d; }
.form__status.is-err { background: #fdecec; color: #7f1d1d; }
.form__status a { color: inherit; font-weight: 600; }
.form .btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* =====================================================================
   Palettes — html[data-palette]. Dark sections use --on-dark as accent.
   ===================================================================== */
.hero, .creds, .section--ink, .phead--dark, .regard, .footer, .box--ink, .card--book,
.fee--note, .place--main, .mcard, .mission, .card--img, .hum-hero__img, .lb { --red: var(--on-dark); }

html[data-palette="marine"] {
  --ink: #0f1e2e; --ink-2: #16273a; --ink-3: #203449; --ink-rgb: 15, 30, 46;
  --paper: #f8f6f2; --paper-rgb: 248, 246, 242; --sand: #eee8de; --sand-2: #e5dccd;
  --text: #17212c; --muted: #5f656c;
  --red: #7d5f33; --red-deep: #654c28; --fill: #86653a; --fill-deep: #6d522f; --fill-rgb: 134, 101, 58; --on-dark: #d6b684;
}
html[data-palette="sauge"] {
  --ink: #1b2a26; --ink-2: #22342f; --ink-3: #2c4039; --ink-rgb: 27, 42, 38;
  --paper: #f6f5f0; --paper-rgb: 246, 245, 240; --sand: #e9ebe3; --sand-2: #dde2d5;
  --text: #1c2421; --muted: #5d6862;
  --red: #3e6f5f; --red-deep: #2f5649; --fill: #3e6f5f; --fill-deep: #2f5649; --fill-rgb: 62, 111, 95; --on-dark: #a9cbb9;
}
html[data-palette="clinique"] {
  --ink: #0e2230; --ink-2: #15303f; --ink-3: #1e3c4d; --ink-rgb: 14, 34, 48;
  --paper: #f5f8f9; --paper-rgb: 245, 248, 249; --sand: #e6eef1; --sand-2: #d7e4e9;
  --text: #13232d; --muted: #58676f;
  --red: #1f6a8e; --red-deep: #175470; --fill: #1f6a8e; --fill-deep: #175470; --fill-rgb: 31, 106, 142; --on-dark: #8cc7e3;
}
html[data-palette="taupe"] {
  --ink: #2a2320; --ink-2: #342c28; --ink-3: #40362f; --ink-rgb: 42, 35, 32;
  --paper: #faf7f2; --paper-rgb: 250, 247, 242; --sand: #f0e9df; --sand-2: #e6dbcb;
  --text: #2a2320; --muted: #6c6259;
  --red: #8f5236; --red-deep: #74422b; --fill: #9a5b3c; --fill-deep: #7e4a30; --fill-rgb: 154, 91, 60; --on-dark: #e0b393;
}

/* Palette picker (mockup only) */
.pal { position: fixed; left: 16px; bottom: 56px; z-index: 95; display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border-radius: 999px; background: rgba(255,255,255,.94); box-shadow: 0 10px 30px -10px rgba(0,0,0,.35); border: 1px solid rgba(0,0,0,.08); font: 600 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #333; }
.pal button { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; cursor: pointer; padding: 0; box-shadow: 0 0 0 1px rgba(0,0,0,.15); background: linear-gradient(135deg, var(--a) 0 50%, var(--b) 50% 100%); }
.pal button[aria-pressed="true"] { box-shadow: 0 0 0 2px #111; }
.pal__name { min-width: 92px; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 12px; color: #555; }
@media (max-width: 600px) { .pal { bottom: 52px; } .pal__name { display: none; } }

/* =====================================================================
   Featured book
   ===================================================================== */
.book { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: clamp(80px, 11vw, 150px) 0; isolation: isolate; --red: var(--on-dark); }
.book::before { content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; left: -220px; top: 50%; transform: translateY(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--fill-rgb), .45), rgba(var(--fill-rgb), 0)); }
.book__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(48px, 7vw, 110px); align-items: center; }
.book__visual { display: flex; flex-direction: column; align-items: center; gap: 36px; }
.book__stage { position: relative; perspective: 1400px; width: min(340px, 72vw); }
.book__glow { position: absolute; inset: 8% -6% -10% 6%; z-index: 0; border-radius: 30px; background: rgba(var(--fill-rgb), .55); filter: blur(60px); animation: glow 6s ease-in-out infinite; }
.book__cover { position: relative; z-index: 1; border-radius: 4px 12px 12px 4px; overflow: hidden; transform-style: preserve-3d;
  transform: rotateY(var(--ry, -16deg)) rotateX(var(--rx, 4deg)); transition: transform .5s var(--ease);
  box-shadow: 1px 1px 0 rgba(255,255,255,.15) inset, 30px 40px 60px -10px rgba(0,0,0,.65), 60px 70px 120px -20px rgba(0,0,0,.55), -2px 0 0 rgba(0,0,0,.4);
  animation: floaty 7s ease-in-out infinite; }
.book__cover img { width: 100%; height: auto; display: block; }
.book__cover::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 18px; z-index: 2; background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(255,255,255,.18) 45%, rgba(0,0,0,.08)); }
.book__cover::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(115deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 38%); pointer-events: none; }
.book__stage:hover .book__cover { --ry: -4deg; --rx: 2deg; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes glow { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
.book__buy { position: relative; z-index: 3; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.book__buy > span { width: 100%; text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-light); }
.buy { display: inline-flex; align-items: center; justify-content: center; height: 58px; min-width: 138px; padding: 0 22px; border-radius: 14px; background: #fff;
  box-shadow: 0 14px 30px -14px rgba(0,0,0,.6); transition: transform .3s var(--ease), box-shadow .3s; }
.buy:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -14px rgba(0,0,0,.7); }
.buy img { height: 44px; width: auto; }
.buy--amazon img { height: 22px; margin-top: 6px; }
.book__text h2 { font-size: clamp(52px, 7.5vw, 104px); line-height: .95; margin-bottom: 14px; max-width: none; }
.book__text h2 em { color: #fff; }
.book__sub { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.2; color: var(--on-dark); margin: 0 0 28px; }
.book__text .lead { margin: 0 0 30px; }
.book__meta { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 36px; border-top: 1px solid var(--line-light); }
.book__meta div { padding: 16px 28px 0 0; margin-right: 28px; }
.book__meta dt { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 4px; }
.book__meta dd { margin: 0; font-size: 16px; }
.card--wide { grid-column: span 6 !important; }
@media (max-width: 820px) {
  .book__grid { grid-template-columns: 1fr; text-align: left; }
  .book__visual { order: 0; }
  .book::before { left: 50%; top: 22%; transform: translate(-50%, -50%); width: 600px; height: 600px; }
}
@media (prefers-reduced-motion: reduce) { .book__cover { transform: rotateY(-10deg); } }

/* =====================================================================
   Regard: photo series cards (open a carousel)
   ===================================================================== */
.series-group + .series-group { margin-top: clamp(64px, 8vw, 110px); }
.series-group__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line-light); }
.series-group__head h2 { color: #fff; font-size: clamp(32px, 4vw, 52px); }
.series-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.series__open { display: block; width: 100%; padding: 0; border: 0; background: none; color: #fff; text-align: left; cursor: pointer; font: inherit; }
.series__cover { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--ink-3); display: grid; grid-template-columns: 2fr 1fr; gap: 3px; }
.series__cover > img { grid-row: span 2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.series__mini { display: grid; grid-template-rows: 1fr 1fr; gap: 3px; }
.series__mini img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.series__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,0) 45%); pointer-events: none; }
.series__count { position: absolute; z-index: 2; left: 14px; bottom: 14px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); }
.series__play { position: absolute; z-index: 2; right: 14px; bottom: 14px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); color: #fff; font-size: 13px; padding-left: 3px; transform: scale(.85); opacity: .9; transition: transform .3s var(--ease), opacity .3s; }
.series__open:hover .series__cover > img, .series__open:hover .series__mini img { transform: scale(1.05); }
.series__open:hover .series__play, .series__open:focus-visible .series__play { transform: scale(1); opacity: 1; }
.series__open:focus-visible { outline: 2px solid var(--on-dark); outline-offset: 6px; border-radius: 14px; }
.series__txt { padding: 16px 2px 0; }
.series__txt h3 { font-family: var(--serif); font-size: 27px; line-height: 1.1; font-weight: 400; }
.series__txt p { margin: 6px 0 0; font-size: 14px; color: var(--muted-light); }

/* carousel extras */
.lb__stage { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; touch-action: pan-y; }
.lb__thumbs { display: flex; gap: 6px; overflow-x: auto; max-width: min(1100px, 100%); padding: 4px 2px; scrollbar-width: thin; }
.lb__thumbs button { position: static; flex: none; width: 64px; height: 46px; padding: 0; border-radius: 6px; overflow: hidden; background: #000; opacity: .5; border: 2px solid transparent; margin: 0; transition: opacity .2s, border-color .2s; }
.lb__thumbs button:hover { background: #000; opacity: .85; }
.lb__thumbs button.is-on { opacity: 1; border-color: #fff; }
.lb__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb img.lb__img { max-height: calc(100vh - 190px); }
@media (max-width: 1080px) { .series-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .series-grid { grid-template-columns: 1fr; }
  .lb__thumbs { display: none; }
  .lb img.lb__img { max-height: calc(100vh - 120px); }
  .lb__p, .lb__n { top: auto !important; bottom: 18px; margin-top: 0 !important; }
}

.series--wide { grid-column: span 2; }
.series--wide .series__cover { aspect-ratio: 8 / 2.95; grid-template-columns: 3fr 1fr 1fr; }
.series--wide .series__cover > img { grid-row: span 2; }
.series--wide .series__mini { grid-column: span 2; grid-template-rows: 1fr 1fr; }
@media (max-width: 1080px) { .series--wide { grid-column: span 2; } .series--wide .series__cover { aspect-ratio: 8 / 3.1; } }
@media (max-width: 600px) { .series--wide { grid-column: auto; } .series--wide .series__cover { aspect-ratio: 4 / 3; grid-template-columns: 2fr 1fr; } .series--wide .series__mini { grid-column: auto; } }

/* =====================================================================
   Navigation with sub-sections (hover / focus panels)
   ===================================================================== */
.nav__links { align-items: center; gap: 6px; }
.navi { position: relative; }
.navi__top { display: inline-block; padding: 10px 11px; }
.nav__links .navi__top::after { left: 11px; right: 11px; bottom: 2px; }
.navi__panel { position: absolute; top: 100%; left: 50%; z-index: 90; padding-top: 10px; min-width: 250px;
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s; }
.navi:hover .navi__panel, .navi:focus-within .navi__panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .2s, transform .25s var(--ease), visibility 0s; }
.navi__inner { display: flex; flex-direction: column; padding: 10px; border-radius: 16px; background: var(--surface); color: var(--heading);
  box-shadow: 0 24px 60px -18px rgba(var(--ink-rgb), .45), 0 0 0 1px rgba(var(--ink-rgb), .06); }
.navi__inner::before { content: ""; position: absolute; top: 5px; left: 50%; width: 12px; height: 12px; background: var(--surface); transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.navi__title { padding: 6px 12px 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.nav__links .navi__inner a { position: relative; z-index: 1; display: block; padding: 9px 12px; border-radius: 9px; font-size: 14px; font-weight: 500; opacity: 1; color: var(--heading); white-space: nowrap; transition: background .15s, color .15s, padding .2s var(--ease); }
.nav__links .navi__inner a::after { display: none; }
.nav__links .navi__inner a:hover, .nav__links .navi__inner a:focus-visible { background: var(--sand); color: var(--red); padding-left: 16px; outline: 0; }

/* mobile menu grouped by section */
.mobile-menu { overflow-y: auto; }
.mgroup { padding: 10px 0 12px; border-bottom: 1px solid var(--line); }
.mgroup:last-child { border-bottom: 0; }
.mobile-menu .mgroup__top { font-family: var(--serif); font-size: 30px; line-height: 1.1; text-decoration: none; padding: 0; display: block; }
.mgroup__subs { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 8px; }
.mobile-menu .mgroup__subs a { font-family: var(--sans); font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--sand); text-decoration: none; }


.home-more { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

#chirurgien .split { align-items: center; }
#chirurgien .split__media { position: static; }
#chirurgien .frame { aspect-ratio: 5 / 4; }

/* home icon in the menu */
.nav__links .navhome { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-right: 4px; border-radius: 50%; opacity: .85; transition: background .2s, opacity .2s; }
.nav__links .navhome::after { display: none; }
.nav__links .navhome:hover, .nav__links .navhome[aria-current="page"] { opacity: 1; background: rgba(255,255,255,.14); }
.nav.is-scrolled .navhome:hover, .nav--solid .navhome:hover, .nav.is-scrolled .navhome[aria-current="page"], .nav--solid .navhome[aria-current="page"] { background: var(--sand); }
.mgroup__home { display: flex !important; align-items: center; gap: 10px; }
.mgroup__home svg { width: 24px; height: 24px; }

.navi__top, .brand__name, .nav__actions .btn { white-space: nowrap; }

/* footer social logos */
.social { display: flex; gap: 10px; margin-top: 6px; }
.footer__nav .social a { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.07); color: rgba(255,255,255,.72); transition: background .2s, color .2s, transform .2s var(--ease); }
.footer__nav .social a:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }

/* sensitive video thumbnails: blurred, the video itself plays normally on click */
.vcard--blur .vcard__img img { filter: blur(18px) saturate(.7); transform: scale(1.15); }
.vcard--blur:hover .vcard__img img { transform: scale(1.18); }
.vcard__warn { position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%, -50%); white-space: nowrap;
  padding: 7px 14px; border-radius: 999px; background: rgba(13,13,14,.72); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.sensitive-note { margin: 28px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--sand); font-size: 14px; color: var(--muted); max-width: 70ch; }

/* =====================================================================
   Dark theme (html[data-theme="dark"]), toggled by the moon/sun button
   ===================================================================== */
html[data-theme="dark"][data-palette] {
  color-scheme: dark;
  --paper: #0d1820; --paper-rgb: 13, 24, 32;
  --sand: #13222c; --sand-2: #1a2c38; --surface: #162632;
  --text: #e3eaef; --heading: #f1f5f8; --body: #c3ced6; --muted: #93a4b0;
  --line: rgba(255, 255, 255, .12);
  --ink: #07121a; --ink-2: #0c1a24; --ink-3: #132430; --ink-rgb: 7, 18, 26;
  --red: #7cc0e3; --red-deep: #a4d4ee;
}
html[data-theme="dark"] .tab.is-active,
html[data-theme="dark"] .sidenav a.is-active,
html[data-theme="dark"] .blur-toggle:hover { background: var(--fill); border-color: var(--fill); color: #fff; }
html[data-theme="dark"] .tab:hover, html[data-theme="dark"] .search:focus, html[data-theme="dark"] .pn a:hover { border-color: var(--heading); }
html[data-theme="dark"] .collab__item:hover { background: var(--ink-3); }
html[data-theme="dark"] .proc:hover, html[data-theme="dark"] .icard:hover, html[data-theme="dark"] .jcard:hover { box-shadow: 0 26px 50px -28px rgba(0,0,0,.8); }
html[data-theme="dark"] .jcard--lead, html[data-theme="dark"] .box--ink, html[data-theme="dark"] .fee--note, html[data-theme="dark"] .place--main { background: var(--ink-2); }
html[data-theme="dark"] .nav__links .navi__inner a:hover { background: var(--sand-2); }
html[data-theme="dark"] .logos img { background: #fff; }
html[data-theme="dark"] .btn--outline:hover { --bg: var(--heading); --fg: var(--ink); }
html[data-theme="dark"] .box--ink .pill, html[data-theme="dark"] .box--red .pill { color: var(--heading); }
html[data-theme="dark"] .box--ink .pill:hover { background: #fff; color: var(--ink); }
html[data-theme="dark"] .card--img, html[data-theme="dark"] .mission { background: var(--ink-3); }
html[data-theme="dark"] .form--light select, html[data-theme="dark"] .form select { background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%); }
html[data-theme="dark"] .phead__img img { opacity: .5; }

/* theme toggle button */
.theme-toggle { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: inherit; cursor: pointer; opacity: .85; transition: background .2s, opacity .2s; }
.theme-toggle:hover { opacity: 1; background: rgba(255,255,255,.14); }
.nav.is-scrolled .theme-toggle:hover, .nav--solid .theme-toggle:hover, .nav.is-open .theme-toggle:hover { background: var(--sand); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .ico-sun { display: none; }
html[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
html[data-theme="dark"] .theme-toggle .ico-moon { display: none; }
.box--ink .hours span { color: var(--muted-light); }

/* journal article photos: blurred by default, eye toggle under each photo */
.prose .ph { display: block; position: relative; margin: 1.6em 0; }
.prose .ph a { display: block; overflow: hidden; border-radius: 12px; }
.prose .ph img { margin: 0 auto; transition: filter .35s var(--ease), transform .35s var(--ease); }
.prose .ph.is-blurred img { filter: blur(24px) saturate(.8); transform: scale(1.08); }
.ph__toggle { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 7px 14px 7px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 500 13px var(--sans); cursor: pointer; transition: background .2s, color .2s; }
.ph__toggle:hover { background: var(--fill); border-color: var(--fill); color: #fff; }
.ph__toggle .eye-off { display: none; }
.ph:not(.is-blurred) .ph__toggle .eye-on { display: none; }
.ph:not(.is-blurred) .ph__toggle .eye-off { display: inline; }
.ph__toggle svg { width: 16px; height: 16px; }
.photobar { display: flex; align-items: center; gap: 12px; width: fit-content; max-width: 100%; margin: 0 auto 36px;
  padding: 6px 6px 6px 14px; border-radius: 999px; font-size: 13.5px; color: var(--text);
  background: rgba(var(--fill-rgb), .08); border: 1px solid rgba(var(--fill-rgb), .28); }
.photobar::before { content: ""; flex: none; width: 16px; height: 16px; background: var(--red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18M10.6 5.1A10 10 0 0 1 12 5c6.4 0 10 7 10 7a17 17 0 0 1-3.2 4.2M6.6 6.6C3.7 8.4 2 12 2 12s3.6 7 10 7c1.6 0 3-.4 4.2-1M9.9 9.9a3 3 0 0 0 4.2 4.2'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18M10.6 5.1A10 10 0 0 1 12 5c6.4 0 10 7 10 7a17 17 0 0 1-3.2 4.2M6.6 6.6C3.7 8.4 2 12 2 12s3.6 7 10 7c1.6 0 3-.4 4.2-1M9.9 9.9a3 3 0 0 0 4.2 4.2'/%3E%3C/svg%3E") center / contain no-repeat; }
.photobar .btn { padding: 8px 14px; font-size: 13px; }
@media (max-width: 600px) { .photobar { border-radius: 16px; flex-wrap: wrap; padding: 10px 12px; } }
/* toggle sits on the photo's top-left corner so it is always visible */
.prose .ph .ph__toggle { position: absolute; z-index: 3; top: 12px; left: 12px; margin: 0;
  background: rgba(13,13,14,.72); color: #fff; border-color: transparent; backdrop-filter: blur(6px); }
.prose .ph .ph__toggle:hover { background: var(--fill); }

/* article photos: same width as the text column, centred in a soft frame */
.prose .ph { display: block; width: 100%; margin: 1.6em 0 .6em; border-radius: 12px; overflow: hidden; background: var(--sand); }
.prose .ph a { display: flex; justify-content: center; border-radius: 0; }
.prose .ph img { width: auto; max-width: 100%; max-height: 520px; margin: 0; border-radius: 0; }
.prose p:has(> .ph:only-child) { margin: 0; }
/* bibliography folded */
.biblio { margin: 2.4em 0 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.biblio summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 20px;
  font-weight: 600; font-size: 15px; letter-spacing: .02em; }
.biblio summary::-webkit-details-marker { display: none; }
.biblio summary span { font-weight: 400; color: var(--muted); font-size: 14px; }
.biblio summary::after { content: "+"; margin-left: auto; font-size: 22px; line-height: 1; color: var(--red); transition: transform .25s; }
.biblio[open] summary::after { transform: rotate(45deg); }
.biblio__list { padding: 4px 20px 16px; border-top: 1px solid var(--line); }
.biblio__list p { font-size: 14px; line-height: 1.55; margin: .7em 0; color: var(--body); }

/* photo grids in articles: wider than the text column, captions kept under each photo */
.prose .ph-grid { display: grid; gap: 22px 18px; margin: 2em 0; position: relative;
  width: min(1100px, calc(100vw - 2 * var(--gutter))); left: 50%; transform: translateX(-50%); }
.prose .ph-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(960px, calc(100vw - 2 * var(--gutter))); }
.prose .ph-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ph-item { margin: 0; display: flex; flex-direction: column; }
.prose .ph-item .ph { margin: 0; aspect-ratio: 4 / 3; }
.prose .ph-item .ph a { height: 100%; align-items: center; }
.prose .ph-item .ph img { max-height: 100%; max-width: 100%; object-fit: contain; }
.ph-item figcaption { margin-top: 10px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.ph-item figcaption u, .ph-item figcaption a { color: var(--text); }
@media (max-width: 820px) { .prose .ph-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .prose .ph-grid { gap: 16px 10px; }
  .prose .ph-item .ph__txt { display: none; }
  .prose .ph-item .ph .ph__toggle { padding: 7px; top: 8px; left: 8px; }
  .ph-item figcaption { font-size: 12.5px; }
}
