/* Aldorith Chouna Nguefa — portfolio.
   Design system adapted from my Yamoo Drive project ("Champagne"): warm monochrome (ink, cream, ivory, sand),
   one gold accent, one bright blue reserved for the primary action. Self-hosted fonts only (strict CSP). */

@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-400.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-400-italique.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/instrument-400.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/instrument-500.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/instrument-600.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/instrument-700.woff2) format("woff2"); }

:root {
  /* Palette */
  --encre: #0E0F12; --encre-2: #1A1B1F; --encre-3: #2A2B30; --noir: #08090B;
  --creme: #F7F4EE; --ivoire: #FBF9F5; --sable: #EFE9DF; --sable-2: #E7E0D3;
  --gris: #64646A; --gris-2: #6E6E74; --trait: #E4DED3; --trait-2: #D3CBBD;
  --or: #B8913F; --or-survol: #C9A453; --or-texte: #7D5F22; --or-clair: #D9B872; --or-pale: #F3EAD6;
  --azur: #2F7BFF; --azur-fonce: #1A5FE8; --azur-clair: #8CB8FF;
  --azur-bouton: linear-gradient(180deg, #2E78FF 0%, #1A5FE8 55%, #1450D0 100%);
  --azur-lueur: 0 10px 30px -10px rgb(47 123 255 / .75), 0 0 0 1px rgb(140 184 255 / .35);
  --palme: #1F6E43; --palme-pale: #E3F1E8; --laterite: #B03A1B;
  --blanc-70: rgb(255 255 255 / .72); --blanc-50: rgb(255 255 255 / .5); --blanc-12: rgb(255 255 255 / .12); --blanc-08: rgb(255 255 255 / .08);
  --trait-nuit: rgb(255 255 255 / .14);
  /* Semantic tokens (light) */
  --bg: var(--creme); --surface: var(--ivoire); --surface-2: var(--sable); --ink: var(--encre); --muted: var(--gris); --faint: var(--gris-2);
  --line: var(--trait); --line-2: var(--trait-2); --accent-text: var(--or-texte); --accent: var(--or); --accent-soft: var(--or-pale);
  --header-bg: rgb(251 249 245 / .86);
  --shadow: 0 1px 2px rgb(14 15 18 / .06), 0 12px 32px -14px rgb(14 15 18 / .22);
  --shadow-lg: 0 30px 80px -30px rgb(14 15 18 / .45);
  /* Shape & motion */
  --r-xl: 28px; --r-l: 20px; --r-m: 14px; --r-s: 10px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace;
  --max: 1200px;
  --tabbar: calc(70px + env(safe-area-inset-bottom));
  color-scheme: light;
}
@media (min-width: 1040px) { :root { --tabbar: 0px; } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--encre); --surface: var(--encre-2); --surface-2: #222328; --ink: #F4F1EA; --muted: #B4B0A8; --faint: #9A968E;
    --line: rgb(255 255 255 / .1); --line-2: rgb(255 255 255 / .18); --accent-text: var(--or-clair); --accent-soft: rgb(184 145 63 / .16);
    --header-bg: rgb(14 15 18 / .82); --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 14px 34px -16px rgb(0 0 0 / .7); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: var(--encre); --surface: var(--encre-2); --surface-2: #222328; --ink: #F4F1EA; --muted: #B4B0A8; --faint: #9A968E;
  --line: rgb(255 255 255 / .1); --line-2: rgb(255 255 255 / .18); --accent-text: var(--or-clair); --accent-soft: rgb(184 145 63 / .16);
  --header-bg: rgb(14 15 18 / .82); --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 14px 34px -16px rgb(0 0 0 / .7); color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; padding-bottom: var(--tabbar); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--azur); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--or-clair); color: var(--encre); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--ivoire); color: var(--encre); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.shell { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .shell { padding: 0 32px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; } }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent-text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; line-height: 1.15; transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s; }
.btn:hover { border-color: var(--ink); }
.btn:active { transform: scale(.97); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn.gold { background: var(--or); border-color: var(--or); color: var(--encre); }
.btn.gold:hover { background: var(--or-survol); border-color: var(--or-survol); }
.btn.primary { background: var(--azur-bouton); border-color: transparent; color: #fff; box-shadow: var(--azur-lueur); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.small { min-height: 38px; padding: 7px 15px; font-size: 14px; }
.btn.on-dark { color: #fff; border-color: var(--trait-nuit); }
.btn.on-dark:hover { border-color: #fff; background: var(--blanc-08); }
.icon-btn { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); background: transparent; color: inherit; }
.icon-btn svg { width: 19px; height: 19px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.kbd { font-family: var(--mono); font-size: 11.5px; padding: 1px 6px; border-radius: 6px; border: 1px solid currentColor; opacity: .7; }

/* Header: transparent over the dark hero, frosted once scrolled */
.nav { position: fixed; inset: 0 0 auto; z-index: 40; color: #fff; border-bottom: 1px solid transparent; transition: background .3s, color .3s, border-color .3s; }
.nav.scrolled { background: var(--header-bg); color: var(--ink); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 10px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; min-width: 0; }
.brand-mark { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--or); color: var(--encre); font-family: var(--serif); font-size: 19px; }
.brand-name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-name small { display: block; font-weight: 500; font-size: 12px; opacity: .72; }
.nav-links { display: none; gap: 2px; }
.nav-links a { text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 9px 12px; border-radius: 999px; opacity: .86; }
.nav-links a:hover, .nav-links a[aria-current="true"] { opacity: 1; background: var(--blanc-12); }
.nav.scrolled .nav-links a:hover, .nav.scrolled .nav-links a[aria-current="true"] { background: var(--surface-2); }
.nav .btn.small:not(.gold) { color: inherit; border-color: color-mix(in srgb, currentColor 30%, transparent); }
.desk-only { display: none !important; }
@media (min-width: 1040px) { .nav-links { display: flex; } .desk-only { display: inline-flex !important; } .menu-btn { display: none; } }

/* Mobile tab bar (Yamoo pattern): thumb-reachable, raised gold CV action in the centre */
.tabbar { position: fixed; inset: auto 0 0; z-index: 45; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: var(--header-bg); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-top: 1px solid var(--line); }
.tabbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 0 2px; text-decoration: none; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a[aria-current="true"] { color: var(--ink); }
.tabbar a[aria-current="true"] svg { color: var(--accent); }
.tabbar .tab-main { position: relative; top: -14px; }
.tabbar .disc { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--or); color: var(--encre); box-shadow: 0 10px 24px -8px rgb(184 145 63 / .8), 0 0 0 5px var(--bg); }
.tabbar .tab-main svg, .tabbar .tab-main[aria-current="true"] svg { color: var(--encre); }
@media (min-width: 1040px) { .tabbar { display: none; } }

/* Sheets: mobile menu + command palette */
.sheet { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 560px; max-height: 88vh; border-radius: var(--r-xl) var(--r-xl) 0 0; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.sheet::backdrop { background: rgb(8 9 11 / .5); backdrop-filter: blur(3px); }
.sheet[open] { animation: sheet-up .35s var(--ease); }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 6px; }
.sheet-head strong { font-family: var(--serif); font-size: 28px; font-weight: 400; }
.sheet-links { list-style: none; padding: 6px 12px 16px; display: grid; }
.sheet-links a { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 10px; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.sheet-links a span { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.sheet-foot { display: flex; gap: 10px; flex-wrap: wrap; padding: 4px 20px 24px; }
@media (min-width: 720px) { .sheet { margin: 12vh auto auto; border-radius: var(--r-xl); } }
.palette { max-width: 640px; }
.palette-input { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 18px; padding: 18px 20px; outline: none; }
.palette-list { list-style: none; max-height: 52vh; overflow: auto; padding: 8px; }
.palette-list li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 10px; cursor: pointer; font-size: 15px; }
.palette-list li small { color: var(--faint); font-size: 12.5px; white-space: nowrap; }
.palette-list li[aria-selected="true"] { background: var(--accent-soft); }
.palette-empty { padding: 18px 20px; color: var(--muted); }
.palette-foot { display: flex; gap: 14px; flex-wrap: wrap; padding: 10px 20px 16px; font-size: 12.5px; color: var(--faint); border-top: 1px solid var(--line); }

/* Hero (always dark, Yamoo-style immersive) */
.hero { position: relative; overflow: hidden; background: var(--noir); color: #fff; padding: 104px 0 36px; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 120%; z-index: -1; background: radial-gradient(60% 55% at 72% 18%, rgb(47 123 255 / .28), transparent 70%), radial-gradient(45% 40% at 10% 8%, rgb(184 145 63 / .24), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--blanc-08) 1px, transparent 1px), linear-gradient(90deg, var(--blanc-08) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%); opacity: .55; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.overline { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--or-clair); }
.overline::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 9.4vw, 108px); line-height: .94; letter-spacing: -0.02em; }
.hero h1 em { color: var(--or-clair); }
.hero .lead { color: var(--blanc-70); font-size: clamp(16px, 1.6vw, 18.5px); max-width: 60ch; }
.hero .lead strong { color: #fff; font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: 8px; width: fit-content; font-size: 13.5px; font-weight: 500; color: var(--blanc-70); border: 1px solid var(--trait-nuit); background: var(--blanc-08); padding: 6px 14px 6px 12px; border-radius: 999px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(61 220 151 / .6); } 70% { box-shadow: 0 0 0 9px rgb(61 220 151 / 0); } 100% { box-shadow: 0 0 0 0 rgb(61 220 151 / 0); } }
.hero-side { display: grid; gap: 14px; }
.id-card { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 16px; border-radius: var(--r-l); background: rgb(255 255 255 / .06); border: 1px solid var(--trait-nuit); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.avatar-ring { width: 92px; height: 92px; border-radius: 50%; padding: 3px; background: conic-gradient(from 210deg, var(--or-clair), var(--or), var(--azur), var(--or-clair)); }
.avatar-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--noir); }
.id-card strong { display: block; font-size: 17px; }
.id-card span { display: block; font-size: 13.5px; color: var(--blanc-70); }
.id-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 13.5px; }
.id-links a { color: var(--or-clair); text-decoration: none; }
.id-links a:hover { text-decoration: underline; }
.terminal { border-radius: var(--r-l); background: rgb(8 9 11 / .8); border: 1px solid var(--trait-nuit); font-family: var(--mono); font-size: 12.6px; line-height: 1.75; overflow: hidden; box-shadow: 0 30px 60px -30px rgb(47 123 255 / .55); }
.terminal-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--trait-nuit); color: var(--blanc-50); font-size: 12px; }
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.terminal-bar i:nth-child(2) { background: #febc2e; } .terminal-bar i:nth-child(3) { background: #28c840; }
.terminal-bar b { margin-left: 8px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.terminal pre { margin: 0; padding: 14px 16px 18px; min-height: 232px; white-space: pre-wrap; word-break: break-word; color: var(--blanc-70); font: inherit; }
.t-cmd { color: #fff; } .t-ok { color: #3ddc97; } .t-gold { color: var(--or-clair); } .t-dim { color: var(--blanc-50); } .t-blue { color: var(--azur-clair); }
.caret { display: inline-block; width: 8px; height: 1.05em; vertical-align: text-bottom; background: var(--or-clair); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 36px; border-radius: var(--r-l); overflow: hidden; background: var(--trait-nuit); border: 1px solid var(--trait-nuit); }
.hero-stats div { padding: 16px; background: rgb(14 15 18 / .86); display: grid; gap: 4px; align-content: start; }
.hero-stats strong { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 44px); line-height: 1; color: #fff; }
.hero-stats span { font-size: 13px; color: var(--blanc-70); }
@media (min-width: 820px) { .hero-stats { grid-template-columns: repeat(4, 1fr); } .hero-stats div { padding: 20px; } }
@media (min-width: 1040px) { .hero { padding: 136px 0 56px; } .hero-grid { grid-template-columns: 1.3fr 1fr; gap: 56px; } }

/* Sections */
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 112px 0; } }
.section.alt { background: var(--surface-2); }
.section-head { display: grid; gap: 16px; margin-bottom: 40px; }
.index-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.index-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 8.4vw, 96px); line-height: .9; letter-spacing: -0.02em; }
.index-head .count { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-bottom: 8px; }
.lead { font-size: 17.5px; color: var(--muted); max-width: 68ch; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.chip-list li { font-size: 13px; font-weight: 500; padding: 4px 11px; border-radius: 999px; background: var(--surface); color: var(--muted); border: 1px solid var(--line); }

/* Reveal on scroll (only once JS runs, so content is never hidden without it) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Experience */
.xp { display: grid; gap: 28px; }
.xp-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 18px; display: grid; gap: 24px; box-shadow: var(--shadow); }
@media (min-width: 720px) { .xp-card { padding: 32px; } }
.xp-head { display: grid; gap: 10px; }
.xp-head h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4.4vw, 48px); }
.xp-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.xp-meta span { padding: 3px 11px; border-radius: 999px; border: 1px solid var(--line-2); }
.xp-grid { display: grid; gap: 28px; }
@media (min-width: 960px) { .xp-grid { grid-template-columns: 1.1fr 1fr; gap: 40px; } }
.xp-body { display: grid; gap: 18px; align-content: start; }
.bullets { list-style: none; display: grid; gap: 11px; }
.bullets li { position: relative; padding-left: 22px; color: var(--muted); }
.bullets li::before { content: ""; position: absolute; left: 3px; top: .66em; width: 8px; height: 8px; border-radius: 50%; background: var(--or); }
.bullets strong { color: var(--ink); font-weight: 600; }
.result { display: grid; gap: 4px; padding: 18px 20px; border-radius: var(--r-m); background: var(--encre); color: #fff; }
.result strong { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.12; color: var(--or-clair); }
.result span { font-size: 14px; color: var(--blanc-70); }
.shot { margin: 0; display: grid; gap: 10px; }
.browser { border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--line); background: #111; box-shadow: var(--shadow); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #1d1e22; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3b40; }
.browser-bar b { margin-left: 8px; font-weight: 500; font-size: 12px; color: #a3a3a8; font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot figcaption { font-size: 13.5px; color: var(--muted); }
.notice { display: flex; gap: 10px; padding: 14px 16px; border-radius: var(--r-m); background: var(--accent-soft); color: var(--ink); font-size: 14px; line-height: 1.55; border: 1px solid color-mix(in srgb, var(--or) 35%, transparent); }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--accent-text); }
.notice a { color: var(--accent-text); }
.quote { margin: 0; padding: 18px 20px; border-left: 2px solid var(--or); background: var(--surface-2); border-radius: 0 var(--r-m) var(--r-m) 0; }
.quote p { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.4; }
.quote footer { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.video-wrap { display: grid; gap: 10px; align-content: start; }
.video-wrap video { width: 100%; border-radius: var(--r-m); border: 1px solid var(--line); background: #000; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.tabs button { border: 0; background: transparent; padding: 7px 15px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); min-height: 36px; }
.tabs button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* Architecture flow */
.flow { list-style: none; display: grid; gap: 10px; counter-reset: step; }
.flow li { position: relative; display: grid; gap: 2px; padding: 12px 14px 12px 52px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); font-size: 14.5px; counter-increment: step; }
.flow li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 14px; top: 12px; font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--accent-text); }
.flow li strong { font-weight: 650; }
.flow li span { color: var(--muted); font-size: 13.5px; }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 23px; bottom: -11px; width: 2px; height: 10px; background: var(--or); opacity: .6; }
.flow-title { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }

/* Projects: index list + sticky hover preview on desktop, thumbnail rows on mobile */
.work { display: grid; gap: 32px; align-items: start; }
.work > *, .xp-grid > *, .detail-grid > *, .cv-box > *, .refs > *, .ref-letter > div, .hero-grid > * { min-width: 0; }
.work-preview { display: none; }
.work-list { list-style: none; border-top: 1px solid var(--ink); }
.work-list li { border-bottom: 1px solid var(--line-2); }
.work-row { display: grid; grid-template-columns: 72px 1fr; gap: 4px 14px; align-items: center; width: 100%; padding: 16px 0; border: 0; background: none; text-align: left; }
.work-thumb { grid-row: span 2; width: 72px; height: 72px; border-radius: var(--r-m); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; }
.work-thumb .project-diagram { padding: 7px; gap: 3px; height: 100%; }
.work-thumb .project-diagram span { font-size: 0; padding: 3px; min-height: 9px; }
.work-main { display: grid; gap: 3px; min-width: 0; }
.work-title { display: flex; align-items: center; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.05; transition: color .2s; }
.work-arrow { display: inline-block; width: 0; overflow: hidden; opacity: 0; color: var(--accent); font-family: var(--sans); transition: width .3s var(--ease), opacity .3s, margin .3s var(--ease); }
.work-sub { font-size: 14px; color: var(--muted); }
.work-cat { grid-column: 2; font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.work-cat small { font-size: 13px; color: var(--faint); }
.work-cat small::before { content: "· "; }
.work-row:hover .work-title, .work-row:focus-visible .work-title, .work-row[aria-current="true"] .work-title { color: var(--accent-text); }
.work-row:hover .work-arrow, .work-row:focus-visible .work-arrow, .work-row[aria-current="true"] .work-arrow { width: 1.05em; opacity: 1; margin-right: .2em; }
@media (min-width: 640px) {
  .work-row { grid-template-columns: 72px 1fr auto; padding: 18px 0; }
  .work-thumb { grid-row: auto; }
  .work-cat { grid-column: auto; flex-direction: column; align-items: flex-end; gap: 0; text-align: right; }
  .work-cat small::before { content: none; }
}
@media (min-width: 1040px) {
  .work { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; }
  .work-preview { display: block; position: sticky; top: 100px; }
  .work-frame { margin: 0; display: grid; gap: 14px; }
  .work-frame[hidden] { display: none; }
  .work-media { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px var(--r-xl) var(--r-xl) var(--r-xl); border: 1px solid var(--line); background: var(--surface-2); box-shadow: var(--shadow); animation: reveal .4s var(--ease); }
  img.work-media[data-pos="top"] { object-position: top; }
  img.work-media[data-pos="left"] { object-position: left top; }
  .work-frame figcaption { display: grid; gap: 4px; font-size: 15px; color: var(--muted); }
  .work-frame figcaption span { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
  .work-row { grid-template-columns: 1fr auto; padding: 22px 0; }
  .work-thumb { display: none; }
}
@keyframes reveal { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }
.project-diagram { display: grid; align-content: center; gap: 8px; padding: 26px; background: radial-gradient(80% 70% at 80% 0%, rgb(184 145 63 / .2), transparent 70%), var(--surface-2); }
.project-diagram span { display: block; font-size: 13px; font-family: var(--mono); padding: 9px 12px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-diagram span:nth-child(2) { margin-left: 8%; }
.project-diagram span:nth-child(3) { margin-left: 16%; }
.project-diagram span:nth-child(4) { margin-left: 24%; border-color: var(--or); color: var(--ink); }

/* Project dialog */
dialog#project-dialog { width: min(1080px, calc(100% - 16px)); max-height: calc(100% - 16px); padding: 0; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--bg); color: var(--ink); box-shadow: var(--shadow-lg); }
dialog#project-dialog::backdrop { background: rgb(8 9 11 / .62); backdrop-filter: blur(4px); }
dialog#project-dialog[open] { animation: sheet-up .35s var(--ease); }
body.dialog-open { overflow: hidden; }
.dialog-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--header-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.dialog-body { padding: 20px 16px 28px; display: grid; gap: 26px; }
@media (min-width: 720px) { .dialog-body { padding: 30px 36px 40px; } }
.detail-head { display: grid; gap: 10px; }
.detail-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 58px); line-height: 1; }
.detail-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .detail-grid { grid-template-columns: 1.1fr 1fr; } }
.portrait { max-height: 72vh; width: auto !important; margin: 0 auto; }
.chapters { display: flex; flex-wrap: wrap; gap: 6px; }
.stack { display: grid; grid-template-columns: minmax(96px, auto) 1fr; gap: 8px 16px; margin: 0; font-size: 14.5px; }
.stack dt { color: var(--faint); }
.stack dd { margin: 0; }
.case { display: grid; gap: 12px; }
@media (min-width: 760px) { .case { grid-template-columns: repeat(3, 1fr); } }
.case section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px; display: grid; gap: 6px; align-content: start; }
.case h3 { font-size: 15px; font-weight: 650; }
.case p { font-size: 14.5px; color: var(--muted); }
.honest { font-size: 13.5px; color: var(--muted); border-top: 1px dashed var(--line-2); padding-top: 14px; }

/* Under the hood */
.hood { display: grid; gap: 14px; }
@media (min-width: 760px) { .hood { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .hood { grid-template-columns: repeat(3, 1fr); } }
.hood-card { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); }
.hood-card .num { font-family: var(--mono); font-size: 12.5px; color: var(--accent-text); }
.hood-card h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; }
.hood-card p { font-size: 14.5px; color: var(--muted); }
.hood-card code { font-family: var(--mono); font-size: 12.5px; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); overflow-wrap: anywhere; }

/* Certifications */
.certs { display: grid; gap: 14px; }
@media (min-width: 720px) { .certs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .certs { grid-template-columns: repeat(3, 1fr); } }
.cert { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 18px; }
.cert-logo { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font-family: var(--serif); font-size: 22px; background: var(--encre); color: var(--or-clair); }
.cert h3 { font-size: 16px; font-weight: 650; line-height: 1.3; }
.cert p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.cert .tag { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--palme-pale); color: var(--palme); }
.cert .tag.alt { background: var(--surface-2); color: var(--muted); }
.cert .btn { margin-top: 10px; }
.edu { display: grid; gap: 14px; margin-top: 28px; }
@media (min-width: 720px) { .edu { grid-template-columns: repeat(3, 1fr); } }
.edu div { padding: 18px; border-radius: var(--r-l); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 4px; }
.edu strong { font-family: var(--serif); font-weight: 400; font-size: 26px; }
.edu span { font-size: 14px; color: var(--muted); }

/* References */
.refs { display: grid; gap: 20px; }
@media (min-width: 960px) { .refs { grid-template-columns: repeat(2, 1fr); } }
.ref { display: grid; gap: 18px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 22px; box-shadow: var(--shadow); }
.ref blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.4; }
.ref blockquote p + p { margin-top: 12px; }
.ref-who { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.ref-who .avatar { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--encre); color: var(--or-clair); font-family: var(--serif); font-size: 20px; }
.ref-who strong { display: block; }
.ref-who .role { display: block; font-size: 14px; color: var(--muted); }
.ref-letter { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; border-radius: var(--r-m); background: var(--surface-2); border: 1px solid var(--line); }
.ref-letter img { width: 64px; border-radius: 4px; border: 1px solid var(--line); background: #fff; }
.ref-letter p { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.ref-letter .actions { gap: 8px; }
.ref-letter .btn { white-space: normal; overflow-wrap: anywhere; text-align: left; }
@media (min-width: 520px) { .ref-letter { grid-template-columns: 80px minmax(0, 1fr); } .ref-letter img { width: 80px; } }

/* CV picker */
.cv-box { display: grid; gap: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 18px; box-shadow: var(--shadow); }
@media (min-width: 960px) { .cv-box { grid-template-columns: 1fr 1.1fr; padding: 32px; gap: 40px; } }
.cv-step { display: grid; gap: 10px; }
.cv-step > span { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.roles { display: grid; gap: 8px; }
.roles button { display: grid; gap: 2px; text-align: left; padding: 13px 16px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--bg); transition: border-color .2s, background .2s; }
.roles button strong { font-size: 16px; }
.roles button span { font-size: 13.5px; color: var(--muted); }
.roles button[aria-pressed="true"] { border-color: var(--or); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--or); }
.cv-preview { display: grid; gap: 18px; align-content: start; }
.cv-preview h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 40px); }
.cv-all { margin-top: 22px; }
.cv-all summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.cv-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14.5px; }
.cv-table th, .cv-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.cv-table thead th { color: var(--faint); font-weight: 600; font-size: 13px; }
.cv-table a { color: var(--accent-text); font-weight: 600; }

/* Skills */
.skills { display: grid; gap: 14px; }
@media (min-width: 720px) { .skills { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .skills { grid-template-columns: repeat(3, 1fr); } }
.skill { padding: 22px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.skill h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; }
.skill p { font-size: 14px; color: var(--muted); }
.skill.feature { background: var(--encre); color: #fff; border-color: var(--encre); }
.skill.feature h3 { color: var(--or-clair); }
.skill.feature p { color: var(--blanc-70); }
.skill.feature .chip-list li { background: var(--blanc-08); border-color: var(--trait-nuit); color: #fff; }

/* Contact band */
.contact-band { position: relative; overflow: hidden; background: var(--noir); color: #fff; border-radius: var(--r-xl); padding: 28px 18px; display: grid; gap: 28px; isolation: isolate; }
.contact-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 100% 0%, rgb(47 123 255 / .3), transparent 70%), radial-gradient(50% 70% at 0% 100%, rgb(184 145 63 / .25), transparent 70%); }
.contact-band h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 7.4vw, 88px); line-height: .95; }
.contact-band h2 em { color: var(--or-clair); }
.contact-band .lead { color: var(--blanc-70); }
.contact-band .overline { margin-bottom: 4px; }
@media (min-width: 960px) { .contact-band { grid-template-columns: 1.2fr 1fr; padding: 48px; align-items: center; } }
.contact-list { list-style: none; display: grid; gap: 10px; }
.contact-list a, .contact-list button { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 15px 18px; border-radius: var(--r-m); border: 1px solid var(--trait-nuit); background: var(--blanc-08); color: #fff; text-decoration: none; font-size: 15px; font-weight: 500; text-align: left; overflow-wrap: anywhere; transition: border-color .2s, background .2s; }
.contact-list a:hover, .contact-list button:hover { border-color: var(--or-clair); background: var(--blanc-12); }
.contact-list small { color: var(--or-clair); font-size: 12px; white-space: nowrap; letter-spacing: .06em; text-transform: uppercase; }
#copy-status { min-height: 1.5em; font-size: 14px; color: var(--or-clair); }

.footer { padding: 32px 0 40px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 13.5px; color: var(--muted); }
.footer a { color: var(--muted); }

/* Standalone contact page (contactme.aldorith.com) */
.contact-page { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 32px 16px; background: var(--noir); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.contact-page::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 50% at 80% 0%, rgb(47 123 255 / .32), transparent 70%), radial-gradient(50% 50% at 0% 100%, rgb(184 145 63 / .28), transparent 70%); }
.contact-card { width: 100%; max-width: 520px; display: grid; gap: 20px; justify-items: center; text-align: center; }
.contact-card .avatar-ring { width: 116px; height: 116px; }
.contact-card h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 10vw, 64px); line-height: 1; }
.contact-card h1 em { color: var(--or-clair); }
.contact-card p { color: var(--blanc-70); }
.contact-card .contact-list { width: 100%; text-align: left; }
.contact-card .btn { width: 100%; }
#open-status { font-size: 14px; color: var(--or-clair); min-height: 1.4em; }

/* 404 */
.notfound { min-height: 80vh; display: grid; place-content: center; gap: 18px; text-align: center; padding: 24px; }
.notfound h1 { font-family: var(--serif); font-weight: 400; font-size: 64px; }

/* Fixes after visual QA */
.id-card .id-links { display: flex; }
.hero-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mini-avatar { display: block; width: 48px; height: 48px; flex: none; border-radius: 50%; padding: 2px; background: conic-gradient(from 210deg, var(--or-clair), var(--or), var(--azur), var(--or-clair)); }
.mini-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--noir); }
@media (min-width: 1040px) { .mini-avatar { display: none; } }
@media (max-width: 479px) { .hero-top { flex-wrap: nowrap; gap: 10px; } .mini-avatar { width: 42px; height: 42px; } .hero-top .status { font-size: 12px; padding: 5px 10px 5px 9px; } }

/* ---------- Language switch ---------- */
.lang { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.lang a { display: grid; place-items: center; min-width: 34px; height: 32px; padding: 0 6px; border-radius: 999px; text-decoration: none; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; opacity: .75; }
.lang a:hover { opacity: 1; }
.lang a[aria-current="page"] { background: var(--or); color: var(--encre); opacity: 1; }
@media (max-width: 479px) { .brand-name small { display: none; } .nav .lang a { min-width: 30px; height: 30px; padding: 0 4px; font-size: 12px; } .nav-inner { gap: 6px; } }
@media (max-width: 419px) { .brand-name { display: none; } }
.sheet-foot .lang { color: var(--ink); }
.contact-card .lang { color: #fff; margin-top: 8px; }

/* ---------- AI architecture explorer ---------- */
.explorer { display: grid; gap: 18px; }
.explorer-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.explorer-tabs button { flex: 0 0 auto; scroll-snap-align: start; display: grid; gap: 1px; text-align: left; padding: 11px 16px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--surface); min-width: 170px; transition: border-color .2s, background .2s; }
.explorer-tabs button strong { font-size: 15px; }
.explorer-tabs button span { font-size: 12.5px; color: var(--muted); }
.explorer-tabs button[aria-selected="true"] { background: var(--encre); border-color: var(--encre); color: #fff; }
.explorer-tabs button[aria-selected="true"] span { color: var(--or-clair); }
@media (min-width: 1040px) { .explorer-tabs { display: grid; grid-template-columns: repeat(5, 1fr); overflow: visible; } .explorer-tabs button { min-width: 0; } }
.js .explorer-panel[data-hidden] { display: none; }
.explorer-panel { display: grid; gap: 22px; padding: 18px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.explorer-panel:focus-visible { outline-offset: 4px; }
@media (min-width: 720px) { .explorer-panel { padding: 30px; } }
.no-js-sep, .js .explorer-panel + .explorer-panel { margin-top: 0; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; }
.panel-head h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 46px); line-height: 1.02; margin: 4px 0 8px; }
.panel-head .muted { max-width: 62ch; }
.badge-status { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; white-space: nowrap; border: 1px solid var(--line-2); }
.badge-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gris-2); }
.badge-status.live::before { background: #3ddc97; } .badge-status.prod::before { background: var(--or); } .badge-status.lab::before { background: var(--azur); } .badge-status.design::before { background: var(--laterite); }
.panel-grid { display: grid; gap: 24px; }
@media (min-width: 960px) { .panel-grid { grid-template-columns: 1.45fr 1fr; gap: 36px; } }
.layers { list-style: none; display: grid; gap: 0; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); }
.layers li { display: grid; gap: 8px; padding: 12px 14px; background: var(--bg); border-bottom: 1px solid var(--line); position: relative; }
.layers li:last-child { border-bottom: 0; }
.layers li:nth-child(even) { background: var(--surface); }
.layer-name { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.layer-nodes { display: flex; flex-wrap: wrap; gap: 6px; }
.layer-nodes span { font-family: var(--mono); font-size: 12.5px; padding: 5px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line-2); }
.layers li:nth-child(even) .layer-nodes span { background: var(--bg); }
@media (min-width: 640px) { .layers li { grid-template-columns: 150px 1fr; align-items: center; } }
.panel-side { display: grid; gap: 16px; align-content: start; }

/* ---------- Backend cards ---------- */
.be-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .be-grid { grid-template-columns: repeat(2, 1fr); } .be-card.wide { grid-column: 1 / -1; } }
.be-card { display: grid; gap: 16px; align-content: start; padding: 20px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
@media (min-width: 720px) { .be-card { padding: 26px; } }
.be-head h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.4vw, 38px); margin: 4px 0 6px; }
.chain { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; padding: 14px; border-radius: var(--r-m); background: var(--encre); }
.chain li { font-family: var(--mono); font-size: 12.5px; color: #fff; padding: 6px 10px; border-radius: 8px; background: var(--blanc-08); border: 1px solid var(--trait-nuit); }
.chain li:not(:last-child)::after { content: "→"; margin-left: 10px; color: var(--or-clair); }
.chain li:not(:last-child) { padding-right: 8px; }
.routes { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--bg); }
.routes summary { cursor: pointer; padding: 10px 14px; font-size: 13.5px; font-weight: 600; }
.routes ul { list-style: none; display: grid; gap: 4px; padding: 0 14px 14px; }
.routes code { font-family: var(--mono); font-size: 12.5px; color: var(--accent-text); overflow-wrap: anywhere; }

/* ---------- Security band ---------- */
.sec-band { position: relative; overflow: hidden; isolation: isolate; background: var(--noir); color: #fff; border-radius: var(--r-xl); padding: 26px 18px; display: grid; gap: 26px; }
.sec-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 60% at 100% 0%, rgb(176 58 27 / .28), transparent 70%), radial-gradient(50% 60% at 0% 100%, rgb(47 123 255 / .22), transparent 70%); }
@media (min-width: 720px) { .sec-band { padding: 44px; } }
.sec-band .section-head { margin-bottom: 0; }
.index-head.on-dark { border-bottom-color: var(--trait-nuit); }
.index-head.on-dark .count { color: var(--blanc-50); }
.sec-band .index-head h2 em { color: var(--or-clair); }
.sec-band .lead, .sec-band .honest { color: var(--blanc-70); }
.sec-band .honest { border-top-color: var(--trait-nuit); }
.sec-band .flow-title { color: var(--or-clair); display: flex; gap: 8px; align-items: center; }
.sec-band .flow-title svg { width: 18px; height: 18px; }
.sec-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--trait-nuit); border: 1px solid var(--trait-nuit); border-radius: var(--r-l); overflow: hidden; }
.sec-stats div { padding: 16px; background: rgb(14 15 18 / .9); display: grid; gap: 2px; }
.sec-stats strong { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 44px); line-height: 1; }
.sec-stats span { font-size: 13px; color: var(--blanc-70); }
@media (min-width: 820px) { .sec-stats { grid-template-columns: repeat(4, 1fr); } }
.owasp { display: grid; gap: 10px; }
@media (min-width: 640px) { .owasp { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .owasp { grid-template-columns: repeat(4, 1fr); } }
.owasp article { display: grid; gap: 6px; align-content: start; padding: 16px; border-radius: var(--r-m); background: var(--blanc-08); border: 1px solid var(--trait-nuit); }
.owasp .code { font-family: var(--mono); font-size: 12px; color: var(--or-clair); }
.owasp h3 { font-size: 16px; font-weight: 650; }
.owasp p { font-size: 13.5px; color: var(--blanc-70); }
.owasp small { font-size: 12px; color: var(--azur-clair); }
.sec-cols { display: grid; gap: 18px; }
@media (min-width: 900px) { .sec-cols { grid-template-columns: repeat(3, 1fr); } }
.sec-band .bullets li { color: var(--blanc-70); }
.sec-band .bullets li::before { background: var(--or-clair); }
.sec-band code { font-family: var(--mono); font-size: 12.5px; color: #fff; }

/* Project detail diagram (no image) */
.detail-diagram { border-radius: var(--r-m); border: 1px solid var(--line); min-height: 220px; }
