/* Aremis — Charte Forêt v1.0. Light Pierre ground, dark Profond/Forêt bands, amber Filon accent under 5% of surface.
   Layout: 1200px container, 8-point spacing, sections 96px apart. Single deliberate theme. */
:root {
  --foret: #183426;
  --profond: #0F231A;
  --olive: #506141;
  --filon: #C88210;
  --pierre: #E8DDC7;
  --blanc: #FFFFFF;
  --ink: #0F231A;
  --ink-soft: rgba(15, 35, 26, 0.78);
  --on-dark: #E8DDC7;
  --on-dark-soft: rgba(232, 221, 199, 0.80);
  --on-dark-quiet: rgba(232, 221, 199, 0.62);
  --rule: rgba(15, 35, 26, 0.14);
  --rule-dark: rgba(232, 221, 199, 0.14);
  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--pierre); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; }
a { color: var(--foret); }
a:hover { color: var(--olive); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--filon); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 300; text-wrap: balance; margin: 0; line-height: 1.08; letter-spacing: -0.01em; }
h3 { font-weight: 400; }
p { margin: 0; }

.wrap { max-width: 1248px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.section { padding-block: 96px; }
.section.tight { padding-block: 64px; }
.white { background: var(--blanc); }
.dark { background: var(--profond); color: var(--on-dark); }
.forest { background: var(--foret); color: var(--on-dark); }
.grid-bg { background-color: var(--profond); background-image: linear-gradient(rgba(232,221,199,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(232,221,199,0.05) 1px, transparent 1px); background-size: 56px 56px; color: var(--on-dark); }
.dark a, .forest a, .grid-bg a { color: var(--on-dark); }

.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--olive); }
.dark .eyebrow, .forest .eyebrow, .grid-bg .eyebrow { color: var(--filon); }
.rule-amber { width: 56px; height: 2px; background: var(--filon); border: 0; margin: 0; }
.h1 { font-size: clamp(44px, 6.4vw, 80px); line-height: 1.02; }
.h1-page { font-size: clamp(40px, 5vw, 64px); }
.h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.1; }
.h3 { font-size: 28px; }
.lead { font-size: 20px; line-height: 1.5; max-width: 62ch; }
.dark .lead, .grid-bg .lead, .forest .lead { color: var(--on-dark-soft); }
.prose { display: flex; flex-direction: column; gap: 20px; max-width: 66ch; font-size: 18px; }
.muted { color: var(--ink-soft); }
.dark .muted, .grid-bg .muted, .forest .muted { color: var(--on-dark-soft); }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack-s { display: flex; flex-direction: column; gap: 12px; }
.stack-l { display: flex; flex-direction: column; gap: 48px; }
.split { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.split > .main { flex: 999 1 520px; min-width: 0; }
.split > .side { flex: 1 1 320px; min-width: 0; }
.split.center { align-items: center; }
.link-arrow { font-weight: 600; font-size: 16px; }

/* Header */
.site-header { background: var(--blanc); border-bottom: 1px solid var(--rule); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--blanc); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.logo img { height: 40px; width: auto; display: block; }
.nav { display: flex; gap: 24px; align-items: center; font-size: 14px; font-weight: 600; }
.nav a { color: var(--ink); text-decoration: none; padding-block: 8px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--olive); }
.nav a[aria-current="page"] { border-bottom-color: var(--filon); }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 2px; font-weight: 600; font-size: 15px; text-decoration: none; background: var(--foret); color: var(--pierre); }
.btn:hover { background: var(--profond); color: var(--pierre); }
.btn-light { background: var(--pierre); color: var(--profond); }
.dark .btn-light, .grid-bg .btn-light { color: var(--profond); }
.btn-light:hover { background: var(--blanc); color: var(--profond); }
.btn-ghost { background: transparent; border: 1px solid rgba(232,221,199,0.4); color: var(--on-dark); }
.btn-ghost:hover { background: rgba(232,221,199,0.08); color: var(--on-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.menu-mobile { display: none; }
.menu-mobile summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; }
.menu-mobile summary::-webkit-details-marker { display: none; }
.menu-mobile nav { display: flex; flex-direction: column; gap: 4px; padding-block: 8px 16px; }
.menu-mobile nav a { color: var(--ink); text-decoration: none; padding-block: 10px; font-weight: 600; border-top: 1px solid var(--rule); }
@media (max-width: 1080px) { .nav, .header-cta { display: none; } .menu-mobile { display: block; } }

/* Hero */
.hero { padding-block: 112px; }
.hero-row { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.hero-visual { flex: 1 1 560px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.hero-visual img { width: 100%; height: auto; display: block; }
.caption { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.dark .caption, .grid-bg .caption, .forest .caption { color: var(--on-dark-quiet); }
.page-hero { padding-block: 96px 80px; }
.page-hero .wrap.stack > * { max-width: 860px; }
.photo-hero .eyebrow { color: var(--filon); }
.photo-hero .lead { color: var(--on-dark-soft); }

/* Facts band */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.fact { padding-block: 40px; padding-right: 32px; display: flex; flex-direction: column; gap: 8px; border-right: 1px solid var(--rule-dark); }
.fact + .fact { padding-left: 32px; }
.fact:last-child { border-right: 0; }
.fact .k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-quiet); }
.fact .v { font-family: var(--display); font-size: 28px; }
@media (max-width: 760px) { .fact { border-right: 0; border-bottom: 1px solid var(--rule-dark); padding-left: 0 !important; } }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.pillar { padding: 40px 32px; display: flex; flex-direction: column; gap: 16px; color: var(--on-dark); min-height: 280px; }
.pillar .num { font-family: var(--mono); font-size: 12px; color: var(--filon); }
.pillar p { color: var(--on-dark-soft); font-size: 16px; }
.pillar.p1 { background: var(--foret); }
.pillar.p2 { background: var(--olive); }
.pillar.p2 .num { color: var(--pierre); }
.pillar.p2 p { color: rgba(232,221,199,0.92); }
.pillar.p3 { background: var(--profond); }
.pillar a { margin-top: auto; color: var(--on-dark); }

/* Verify block */
.verify { background: var(--profond); color: var(--on-dark); padding: 40px; display: flex; flex-direction: column; gap: 16px; border-top: 2px solid var(--filon); }
.verify .big { font-family: var(--display); font-size: 22px; line-height: 1.35; font-weight: 300; }
.verify ul { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.verify li { padding-top: 12px; border-top: 1px solid var(--rule-dark); font-size: 15px; color: var(--on-dark-soft); }
.verify li strong { color: var(--on-dark); }

/* Data chain */
.chain { display: grid; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); gap: 1px; background: var(--rule-dark); }
.chain-step { background: var(--profond); padding: 24px; display: flex; flex-direction: column; gap: 12px; min-height: 172px; }
.chain-step .num { font-family: var(--mono); font-size: 12px; color: var(--filon); }
.chain-step .t { font-weight: 600; font-size: 16px; }
.chain-step .d { font-size: 14px; line-height: 1.5; color: var(--on-dark-soft); }
.chain-step svg { width: 28px; height: 28px; stroke: var(--pierre); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* Tables */
.table-box { overflow-x: auto; background: var(--blanc); }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 720px; }
table.data th { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 400; color: var(--olive); text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--rule); }
table.data td { padding: 20px; vertical-align: top; border-bottom: 1px solid var(--rule); line-height: 1.5; }
table.data tr:last-child td { border-bottom: 0; }
table.data td:first-child { font-weight: 700; white-space: nowrap; }
table.data .stage-n { font-family: var(--mono); font-size: 12px; color: var(--olive); font-weight: 400; display: block; }

/* Lists of principles */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.principle { border-top: 1px solid var(--rule); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.principle h3 { font-family: var(--body); font-weight: 700; font-size: 17px; letter-spacing: 0; }
.principle p { font-size: 15px; color: var(--ink-soft); }
.dark .principle, .grid-bg .principle, .forest .principle { border-top-color: var(--rule-dark); }
.dark .principle p, .grid-bg .principle p, .forest .principle p { color: var(--on-dark-soft); }

/* Frontiers */
.frontiers { display: flex; flex-direction: column; }
.frontier { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 32px; padding-block: 40px; border-top: 1px solid var(--rule); }
.frontier:last-child { border-bottom: 1px solid var(--rule); }
.frontier .n { font-family: var(--mono); font-size: 13px; color: var(--olive); padding-top: 8px; }
.frontier h3 { font-size: 30px; margin-bottom: 12px; }
.frontier p { max-width: 66ch; color: var(--ink-soft); }
@media (max-width: 640px) { .frontier { grid-template-columns: minmax(0, 1fr); gap: 8px; } }

/* Scales funnel (exploration) */
.scales { display: flex; flex-direction: column; gap: 8px; }
.scale { background: var(--foret); color: var(--on-dark); padding: 24px 32px; display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; align-items: baseline; }
.scale:nth-child(2) { margin-inline: 4%; background: var(--olive); }
.scale:nth-child(3) { margin-inline: 8%; background: var(--foret); }
.scale:nth-child(4) { margin-inline: 12%; background: var(--profond); border-bottom: 2px solid var(--filon); }
.scale .t { font-family: var(--display); font-size: 26px; }
.scale .q { font-weight: 600; }
.scale .d { color: var(--on-dark-soft); font-size: 15px; }
@media (max-width: 640px) { .scale { grid-template-columns: minmax(0, 1fr); margin-inline: 0 !important; gap: 8px; } }

/* Pills */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; padding: 8px 14px; border: 1px solid var(--rule); background: var(--blanc); }

/* Figures */
.figure { margin: 0; background: var(--blanc); padding: 40px 32px 24px; display: flex; flex-direction: column; gap: 16px; }
.figure-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: baseline; }
.figure-title { font-family: var(--display); font-size: 24px; }
.svg-scroll { overflow-x: auto; }
.svg-scroll svg { width: 100%; min-width: 760px; height: auto; display: block; }
.map { position: relative; }
.map img { width: 100%; height: auto; display: block; }
.map .lbl { position: absolute; transform: translate(-50%, -50%); font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: rgba(232,221,199,0.6); white-space: nowrap; }
.map .hub { position: absolute; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--pierre); white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; gap: 24px; font-family: var(--mono); font-size: 11px; color: var(--ink); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.sw-belt { width: 16px; height: 8px; background: var(--olive); border-radius: 4px; display: inline-block; }
.sw-hub { width: 8px; height: 8px; background: var(--filon); border-radius: 4px; display: inline-block; }
@media (max-width: 560px) { .map .lbl { display: none; } }

/* Partner table cards */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.door { background: var(--blanc); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.door h3 { font-size: 22px; font-weight: 400; }
.door p { font-size: 15px; color: var(--ink-soft); flex-grow: 1; }
.door .meta { font-family: var(--mono); font-size: 12px; color: var(--olive); }

/* Contact */
.email-box { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; background: var(--blanc); padding: 24px 32px; }
.email-box .addr { font-family: var(--mono); font-size: 20px; user-select: all; }

/* Footer */
.site-footer { background: var(--profond); color: var(--on-dark); padding-block: 64px 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { width: 40px; height: auto; }
.footer-brand .w { font-family: var(--display); font-size: 20px; letter-spacing: 0.3em; }
.footer-brand .tag { font-family: var(--mono); font-size: 12px; color: var(--on-dark-quiet); }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(140px, auto)); gap: 8px 40px; font-size: 14px; }
.footer-nav a { color: var(--on-dark-soft); text-decoration: none; }
.footer-nav a:hover { color: var(--on-dark); }
.footer-contact { font-family: var(--mono); font-size: 13px; line-height: 1.8; color: var(--on-dark-soft); }
.footer-rule { height: 1px; background: var(--filon); opacity: 0.6; margin-block: 40px; border: 0; }
.disclaimer { font-size: 13px; line-height: 1.6; color: var(--on-dark-quiet); max-width: 880px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 24px; font-family: var(--mono); font-size: 12px; color: var(--on-dark-quiet); }
.footer-legal a { color: var(--on-dark-quiet); }

/* Photography */
.photo-hero { position: relative; background: var(--profond); color: var(--on-dark); overflow: hidden; }
.photo-hero > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.photo-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,35,26,0.94) 0%, rgba(15,35,26,0.82) 45%, rgba(15,35,26,0.35) 100%); }
.photo-hero > .wrap { position: relative; z-index: 1; }
.photo-hero .photo-credit { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); bottom: 12px; z-index: 1; font-family: var(--mono); font-size: 10px; color: rgba(232,221,199,0.6); }
@media (max-width: 760px) { .photo-hero::after { background: rgba(15,35,26,0.86); } }
.photo { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.photo img { width: 100%; height: auto; display: block; }
.photo.cover img { aspect-ratio: 4 / 5; object-fit: cover; }
.photo.wide img { aspect-ratio: 16 / 9; object-fit: cover; }
.band-photo { height: clamp(240px, 36vw, 480px); position: relative; overflow: hidden; }
.band-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.verify.with-photo { padding: 0; overflow: hidden; }
.verify.with-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.verify.with-photo .inner { padding: 32px 40px 40px; display: flex; flex-direction: column; gap: 16px; }
.credits { font-size: 13px; color: var(--ink-soft); display: flex; flex-direction: column; gap: 6px; }

/* Process: five gates from signal to gold */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.gate { background: var(--blanc); padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; }
.gate.last { background: var(--profond); color: var(--on-dark); }
.gate .scale-row { display: flex; justify-content: space-between; align-items: center; }
.gate .stage-no { font-family: var(--mono); font-size: 12px; color: var(--olive); }
.gate.last .stage-no { color: var(--filon); }
.gate .km { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.gate.last .km { color: var(--on-dark-quiet); }
.nest { width: 44px; height: 44px; position: relative; }
.nest span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 1px solid var(--olive); }
.gate.last .nest span { border-color: var(--pierre); }
.nest .s1 { width: 44px; height: 44px; } .nest .s2 { width: 30px; height: 30px; } .nest .s3 { width: 18px; height: 18px; } .nest .s4 { width: 9px; height: 9px; } .nest .s5 { width: 4px; height: 4px; background: var(--filon); border-color: var(--filon) !important; }
.gate h3 { font-family: var(--display); font-weight: 400; font-size: 26px; }
.gate .q { font-weight: 600; font-size: 15px; line-height: 1.4; }
.gate dl { margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.45; }
.gate dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--olive); }
.gate.last dt { color: var(--filon); }
.gate dd { margin: 0; color: var(--ink-soft); }
.gate.last dd { color: var(--on-dark-soft); }
.gate .gate-line { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 13px; }
.gate.last .gate-line { border-top-color: var(--rule-dark); }
.gate .gate-line b { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; font-weight: 400; color: var(--filon); display: block; margin-bottom: 4px; }
.cost { height: 4px; background: var(--rule); }
.cost i { display: block; height: 100%; background: var(--olive); }
.gate.last .cost { background: var(--rule-dark); } .gate.last .cost i { background: var(--filon); }
.process-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }
.loop { display: flex; align-items: center; gap: 12px; }
.loop svg { width: 120px; height: 20px; stroke: var(--olive); fill: none; stroke-width: 1.25; }
@media (max-width: 1100px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gate.last { grid-column: 1 / -1; } }
@media (max-width: 620px) { .process { grid-template-columns: minmax(0, 1fr); } }
.photo-hero.dense::after { background: linear-gradient(90deg, rgba(15,35,26,0.96) 0%, rgba(15,35,26,0.9) 45%, rgba(15,35,26,0.55) 100%); }
