/* =========================================================
   jnermano.com — Architecture & clarté
   Palette : fond clair, bleu nuit (gouvernance), un seul accent (CTA)
   ========================================================= */

:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --ink: #0e1a2b;
  --navy: #13284c;
  --navy-deep: #0b1a36;
  --slate: #33415c;
  --muted: #5a6578;
  --line: #dde3ea;
  --line-strong: #c5cdd8;
  --accent: #e3781c;
  --accent-strong: #c4640f;
  --accent-ink: #1a1203;
  --accent-soft: #fdf1e5;
  --ok: #1f7a4d;
  --ok-soft: #e6f4ec;
  --warn: #b45309;
  --warn-soft: #fff4e5;
  --on-navy: #e8eef7;
  --on-navy-muted: #a9b7cc;
  --header-h: 72px;
  --container: 1140px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 10px 30px rgba(14, 26, 43, 0.08);
  --shadow-lg: 0 24px 60px rgba(14, 26, 43, 0.16);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0b1320;
  --surface: #121d31;
  --surface-2: #182640;
  --ink: #e7edf5;
  --navy: #0f1d38;
  --navy-deep: #08122a;
  --slate: #cbd5e3;
  --muted: #a3afc2;
  --line: #243654;
  --line-strong: #324770;
  --accent: #f08a2e;
  --accent-strong: #ffa052;
  --accent-ink: #1a1203;
  --accent-soft: #2a1d0f;
  --ok: #4ade80;
  --ok-soft: #10281c;
  --warn: #fbbf24;
  --warn-soft: #2d2208;
  --on-navy: #e8eef7;
  --on-navy-muted: #a9b7cc;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Inter", "SF Pro Text", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 760; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
small { font-size: 0.85em; }
strong { font-weight: 720; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 2000;
  padding: 10px 14px;
  color: #fff; background: var(--navy);
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.header-inner {
  height: 100%;
  display: flex; align-items: center; gap: 28px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; min-width: 0;
}
.brand-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px; flex: 0 0 auto;
  color: #fff; background: var(--navy);
  border-radius: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.04em;
}
[data-theme="dark"] .brand-mark { background: var(--accent); color: var(--accent-ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-weight: 760; font-size: 15px; white-space: nowrap; }
.brand-tagline { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.site-nav {
  display: flex; align-items: center; gap: 6px;
  margin-left: auto;
}
.site-nav a {
  position: relative;
  padding: 8px 11px;
  color: var(--slate);
  font-size: 14px; font-weight: 640;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color 160ms var(--ease), background 160ms var(--ease);
}
.site-nav a:hover { color: var(--ink); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px;
  height: 2px; background: var(--accent); border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 8px; }

.icon-button {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--ink); background: transparent;
  cursor: pointer; text-decoration: none;
  transition: background 160ms var(--ease), border-color 160ms var(--ease);
}
.icon-button:hover { background: var(--surface-2); border-color: var(--line-strong); }
.icon-button .icon { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

.menu-toggle { display: none; }
.menu-toggle .icon-x { display: none; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon-x { display: block; }

/* ---------- Buttons ---------- */
.button {
  min-height: 48px;
  padding: 11px 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease), background 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button .icon { width: 18px; height: 18px; }
.button-primary { color: var(--accent-ink); background: var(--accent); box-shadow: 0 6px 18px rgba(227, 120, 28, 0.28); }
.button-primary:hover { background: var(--accent-strong); }
.button-secondary { color: var(--ink); background: var(--surface); border-color: var(--line-strong); }
.button-secondary:hover { border-color: var(--ink); }
.button-ghost { color: var(--ink); background: transparent; border-color: var(--line-strong); }
.button-ghost:hover { background: var(--surface-2); }
.on-dark .button-secondary,
.on-dark .button-ghost { color: var(--on-navy); background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.28); }
.on-dark .button-secondary:hover,
.on-dark .button-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.12); }
.button-small { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.button-block { width: 100%; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--navy); font-weight: 700; text-decoration: none;
  border-bottom: 1px solid transparent;
}
[data-theme="dark"] .text-link { color: var(--accent-strong); }
.text-link:hover { border-bottom-color: currentColor; }
.text-link .icon { width: 16px; height: 16px; transition: transform 160ms var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Typo helpers ---------- */
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 12.5px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
}
[data-theme="dark"] .eyebrow { color: var(--accent); }
.on-dark .eyebrow { color: #ffb570; }
.lead { font-size: 18.5px; color: var(--slate); max-width: 68ch; }
.on-dark .lead { color: var(--on-navy-muted); }
.muted { color: var(--muted); }
.section-heading { max-width: 780px; margin-bottom: 44px; }
.section-heading h2 { font-size: clamp(30px, 4vw, 44px); }
.section-heading p { margin-top: 14px; }
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-navy { background: var(--navy-deep); color: var(--on-navy); }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .muted { color: var(--on-navy-muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy-deep); color: var(--on-navy);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(227, 120, 28, 0.28), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(56, 118, 255, 0.22), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.8fr);
  gap: 56px; align-items: center;
  padding: 96px 0 88px;
}
.hero h1 {
  font-size: clamp(36px, 5.2vw, 60px);
  color: #fff; max-width: 19ch;
}
.hero .lead { margin-top: 22px; max-width: 58ch; font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--on-navy-muted); font-size: 14px; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note .icon { width: 16px; height: 16px; color: #8fd3a5; }

.hero-card {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}
.hero-card h2 { font-size: 18px; color: #fff; margin-bottom: 8px; }
.hero-card .eyebrow { color: #ffb570; }
.hero-card ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.hero-card li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--on-navy); }
.hero-card li .icon { color: #ffb570; margin-top: 2px; width: 18px; height: 18px; }
.hero-card .text-link { color: #ffb570; margin-top: 18px; }
.hero-portrait-wrap { display: flex; justify-content: center; }
.hero-portrait {
  width: 100%; max-width: 420px; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* ---------- Proof band ---------- */
.proof-band { background: var(--surface); border-bottom: 1px solid var(--line); }
.proof-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.proof-item {
  padding: 28px 26px;
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.proof-item:last-child { border-right: 1px solid var(--line); }
.proof-value { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--navy); }
[data-theme="dark"] .proof-value { color: var(--accent); }
.proof-label { color: var(--muted); font-size: 14px; line-height: 1.4; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }
.card .icon-badge { margin-bottom: 18px; }
.icon-badge {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 10px;
  color: var(--navy); background: var(--surface-2);
}
[data-theme="dark"] .icon-badge { color: var(--accent); }
.icon-badge .icon { width: 22px; height: 22px; }
.card-accent { border-top: 3px solid var(--accent); }
.card-navy { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }
.card-navy h3 { color: #fff; }
.card-navy p { color: var(--on-navy-muted); }
.card-navy .icon-badge { background: rgba(255, 255, 255, 0.1); color: #ffb570; }

.card-list { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.card-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--slate); }
.card-list .icon { width: 18px; height: 18px; color: var(--ok); margin-top: 3px; }
.card-navy .card-list li { color: var(--on-navy); }
.card-navy .card-list .icon { color: #8fd3a5; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font-size: 12.5px; font-weight: 650;
  background: var(--surface);
}
.tag-accent { color: var(--accent-strong); border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: var(--accent-soft); }
.tag-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: var(--ok-soft); }
.tag-navy { color: #fff; background: var(--navy); border-color: var(--navy); }

/* ---------- Need selector ---------- */
.need-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.need-chip {
  padding: 10px 16px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font-size: 14.5px; font-weight: 650; cursor: pointer;
  transition: background 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease);
}
.need-chip:hover { border-color: var(--ink); transform: translateY(-1px); }
.need-chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
[data-theme="dark"] .need-chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.need-panel {
  display: none;
  padding: 28px;
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); background: var(--surface);
  animation: fade-up 320ms var(--ease);
}
.need-panel.is-active { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 32px; }
.need-panel h3 { font-size: 22px; margin-bottom: 10px; }
.need-panel h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 10px; }
.need-panel .card-list { margin-top: 0; }

/* ---------- Two-step path ---------- */
.path { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; }
.path-arrow { display: grid; place-items: center; color: var(--accent); }
.path-arrow .icon { width: 36px; height: 36px; }
.path-step { position: relative; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.path-step-number {
  position: absolute; top: -14px; left: 28px;
  padding: 4px 12px; border-radius: 999px;
  background: var(--navy); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
[data-theme="dark"] .path-step-number { background: var(--accent); color: var(--accent-ink); }
.path-step h3 { font-size: 22px; margin: 6px 0 8px; }
.path-step .funding {
  margin-top: 20px; padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft); color: var(--ink);
  font-size: 14px; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.path-step .funding strong { color: var(--accent-strong); }
[data-theme="dark"] .path-step .funding strong { color: var(--accent-strong); }

/* ---------- Callouts ---------- */
.callout {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  padding: 20px 22px;
  border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent);
  border-radius: var(--radius); background: var(--warn-soft);
  color: var(--ink);
}
.callout .icon { width: 24px; height: 24px; color: var(--warn); margin-top: 2px; }
.callout strong { color: var(--ink); }
.callout p { margin: 0; font-size: 15px; }
.callout-ok { border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: var(--ok-soft); }
.callout-ok .icon { color: var(--ok); }
.callout-info { border-color: var(--line-strong); background: var(--surface-2); }
.callout-info .icon { color: var(--navy); }
[data-theme="dark"] .callout-info .icon { color: var(--accent); }

/* ---------- Stats / market ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.stat { padding: 26px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); }
.stat-value { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: #ffb570; }
.stat-value .vs { font-size: 20px; color: var(--on-navy-muted); font-weight: 600; margin: 0 6px; }
.stat-label { margin-top: 10px; color: var(--on-navy); font-size: 15px; }
.stat-source { margin-top: 8px; font-size: 12.5px; color: var(--on-navy-muted); }

/* ---------- Tabs ---------- */
.tabs { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.tablist { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); background: var(--surface-2); scrollbar-width: none; }
.tablist::-webkit-scrollbar { display: none; }
.tab {
  flex: 1 0 auto;
  padding: 16px 20px;
  border: 0; border-bottom: 3px solid transparent;
  background: transparent; color: var(--muted);
  font-size: 14.5px; font-weight: 700; white-space: nowrap; cursor: pointer;
  transition: color 160ms var(--ease), border-color 160ms var(--ease), background 160ms var(--ease);
}
.tab:hover { color: var(--ink); background: var(--surface); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); background: var(--surface); }
.tabpanel { padding: 36px; animation: fade-up 300ms var(--ease); }
.tabpanel[hidden] { display: none; }
.tabpanel-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 36px; }
.tabpanel h3 { font-size: 24px; margin-bottom: 10px; }
.tabpanel h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 22px 0 10px; }
.tabpanel .card-list { margin-top: 0; }
.level-badges { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 4px; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: 0 0 auto;
  width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line-strong);
  color: var(--muted); font-weight: 600; transition: transform 200ms var(--ease);
}
.faq details[open] summary::after { content: "–"; transform: rotate(180deg); }
.faq .faq-body { padding: 0 4px 22px; color: var(--muted); max-width: 72ch; }

/* ---------- Filters & work cards ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter-button {
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font-size: 14.5px; font-weight: 650; cursor: pointer;
  transition: background 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}
.filter-button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
[data-theme="dark"] .filter-button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.work-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  overflow: hidden;
  transition: transform 260ms var(--ease), opacity 260ms var(--ease), box-shadow 220ms var(--ease);
}
.work-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.work-card.is-hidden { display: none; }
.work-card.is-entering { animation: fade-up 320ms var(--ease); }
.work-visual {
  position: relative; height: 190px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--navy);
}
.work-visual img { width: 100%; height: 100%; object-fit: cover; }
.work-visual .icon { width: 48px; height: 48px; opacity: 0.85; }
.work-visual-navy { background: var(--navy); color: #ffb570; }
.work-visual-blue { background: #1d4ed8; color: #fff; }
.work-visual-green { background: #0f6b4f; color: #fff; }
.work-visual-amber { background: #b45309; color: #fff; }
.work-visual-slate { background: #334155; color: #fff; }
.work-visual-phones { background: #1f3b8a; padding: 22px 18% 0; gap: 18px; align-items: flex-start; }
.work-visual-phones img { width: 42%; height: auto; border-radius: 16px 16px 0 0; border: 4px solid #0b1220; border-bottom: 0; box-shadow: 0 10px 24px rgba(0,0,0,0.3); }
.work-visual-phones img:last-child { margin-top: 28px; }
.work-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.work-kicker { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: 8px; }
[data-theme="dark"] .work-kicker { color: var(--accent); }
.work-body h3 { font-size: 19px; margin-bottom: 8px; }
.work-body p { color: var(--muted); font-size: 14.5px; }
.work-metrics { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0 0; padding: 0; list-style: none; }
.work-metrics li { font-size: 13.5px; font-weight: 700; color: var(--navy); }
[data-theme="dark"] .work-metrics li { color: var(--on-navy); }
.work-actions { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }

/* ---------- Dialog ---------- */
dialog.sheet {
  width: min(calc(100% - 32px), 760px);
  padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-lg);
}
dialog.sheet::backdrop { background: rgba(8, 18, 42, 0.6); backdrop-filter: blur(3px); }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 28px 28px 0; }
.sheet-head h3 { font-size: 24px; }
.sheet-body { padding: 18px 28px 28px; display: grid; gap: 18px; }
.sheet-section h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 6px; }
.sheet-section p, .sheet-section li { color: var(--slate); font-size: 15px; }
.sheet-section ul { margin: 0; padding-left: 18px; }

/* ---------- Simulator ---------- */
.simulator { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.simulator-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.simulator-form { padding: 32px; border-right: 1px solid var(--line); }
.simulator-result { padding: 32px; background: var(--surface-2); }
.simulator fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.simulator legend { font-weight: 750; margin-bottom: 10px; font-size: 15.5px; }
.choice-list { display: grid; gap: 8px; }
.choice {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); cursor: pointer; font-size: 14.5px;
  transition: border-color 160ms var(--ease), background 160ms var(--ease);
}
.choice:hover { border-color: var(--ink); }
.choice:has(input:checked) { border-color: var(--navy); background: color-mix(in srgb, var(--navy) 6%, var(--surface)); }
[data-theme="dark"] .choice:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.choice input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.choice-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.result-placeholder { color: var(--muted); }
.result-card { animation: fade-up 300ms var(--ease); }
.result-card h3 { font-size: 22px; margin-bottom: 8px; }
.result-programs { display: grid; gap: 12px; margin: 18px 0; }
.result-program { padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
.result-program strong { display: block; margin-bottom: 4px; }
.result-program span { font-size: 14px; color: var(--muted); }

.deadline {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-strong);
  font-weight: 750; font-size: 14px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.deadline .icon { width: 16px; height: 16px; }

/* ---------- Program cards (subventions) ---------- */
.program { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; }
.program-key { padding: 22px; border-radius: var(--radius); background: var(--navy); color: var(--on-navy); }
.program-key .big { display: block; font-size: 34px; font-weight: 800; letter-spacing: -0.03em; color: #ffb570; line-height: 1.05; }
.program-key .sub { font-size: 13.5px; color: var(--on-navy-muted); }
.program-key + .program-key { margin-top: 12px; }
.criteria { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.criteria li { display: grid; grid-template-columns: auto 1fr; gap: 10px; font-size: 15px; color: var(--slate); }
.criteria .icon { width: 18px; height: 18px; color: var(--navy); margin-top: 3px; }
[data-theme="dark"] .criteria .icon { color: var(--accent); }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { position: relative; padding: 26px 24px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: inline-block; margin-bottom: 14px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.1em; color: var(--accent-strong);
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line-strong); }
.timeline-item { position: relative; padding: 0 0 26px 44px; }
.timeline-item::before {
  content: ""; position: absolute; left: 4px; top: 8px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--navy);
}
[data-theme="dark"] .timeline-item::before { border-color: var(--accent); }
.timeline-item.is-education::before { border-color: var(--accent); }
.timeline-toggle {
  width: 100%; text-align: left;
  display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; align-items: baseline;
  padding: 6px 0; border: 0; background: transparent; cursor: pointer;
}
.timeline-date { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-strong); }
[data-theme="dark"] .timeline-date { color: var(--accent); }
.timeline-title { font-size: 18px; font-weight: 750; }
.timeline-title small { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.timeline-toggle .icon { width: 18px; height: 18px; color: var(--muted); transition: transform 200ms var(--ease); }
.timeline-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.timeline-detail { padding: 10px 0 0 138px; color: var(--muted); max-width: 72ch; animation: fade-up 240ms var(--ease); }
.timeline-detail[hidden] { display: none; }
.timeline-detail ul { margin: 8px 0 0; padding-left: 18px; }

.cert-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cert { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); display: flex; gap: 14px; align-items: flex-start; }
.cert .icon { width: 22px; height: 22px; color: var(--navy); margin-top: 2px; }
[data-theme="dark"] .cert .icon { color: var(--accent); }
.cert strong { display: block; font-size: 15px; }
.cert span { font-size: 13.5px; color: var(--muted); }

.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; }
.about-portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-facts { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 14.5px; color: var(--slate); }
.about-facts li { display: flex; gap: 10px; align-items: flex-start; }
.about-facts .icon { width: 18px; height: 18px; color: var(--navy); margin-top: 3px; }
[data-theme="dark"] .about-facts .icon { color: var(--accent); }

.principles { counter-reset: principle; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.principles li { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.principles li::before { counter-increment: principle; content: "0" counter(principle); display: block; font-size: 13px; font-weight: 800; letter-spacing: 0.1em; color: var(--accent-strong); margin-bottom: 14px; }
.principles h3 { font-size: 18px; margin-bottom: 8px; }
.principles p { color: var(--muted); font-size: 14.5px; }

/* ---------- Forms ---------- */
.form-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 36px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field legend { font-weight: 700; font-size: 14.5px; }
.field .hint { font-size: 13px; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink);
  font: inherit; font-size: 15px;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px color-mix(in srgb, var(--navy) 18%, transparent); }
[data-theme="dark"] .field input:focus, [data-theme="dark"] .field select:focus, [data-theme="dark"] .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.field textarea { min-height: 120px; resize: vertical; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #c0392b; }
.profile-select { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.profile-option {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); cursor: pointer;
  transition: border-color 160ms var(--ease), background 160ms var(--ease);
}
.profile-option:hover { border-color: var(--ink); }
.profile-option:has(input:checked) { border-color: var(--navy); background: color-mix(in srgb, var(--navy) 6%, var(--surface)); }
[data-theme="dark"] .profile-option:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.profile-option input { position: absolute; opacity: 0; pointer-events: none; }
.profile-option strong { font-size: 15px; }
.profile-option span { font-size: 13.5px; color: var(--muted); }
.profile-option:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
fieldset.conditional { border: 0; padding: 0; margin: 0; display: contents; }
fieldset.conditional[hidden] { display: none; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--slate); }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: 0 0 auto; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.form-status { margin-top: 16px; font-size: 15px; }
.form-status[data-state="error"] { color: #c0392b; }
.form-status[data-state="success"] { color: var(--ok); font-weight: 650; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { padding: 28px; border-radius: var(--radius); background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); }
.form-success h3 { font-size: 22px; margin-bottom: 8px; }
.form-success pre { white-space: pre-wrap; font: 13.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); max-height: 320px; overflow: auto; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr); gap: 32px; align-items: start; }
.contact-side { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 24px); }
.contact-side .card p { font-size: 14.5px; }
.contact-links { display: grid; gap: 10px; margin-top: 14px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy-deep); color: var(--on-navy); padding: 80px 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 400px at 90% 50%, rgba(227,120,28,0.26), transparent 60%); pointer-events: none; }
.cta-band .container { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px; align-items: center; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); }
.cta-band p { color: var(--on-navy-muted); margin-top: 12px; max-width: 60ch; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Legal ---------- */
.prose { max-width: 76ch; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; }
.prose h3 { font-size: 18px; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--slate); }
.prose ul { padding-left: 20px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0 20px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

.page-head { padding: 72px 0 48px; background: var(--surface); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(32px, 4.6vw, 52px); max-width: 20ch; }
.page-head .lead { margin-top: 16px; }
.page-head-navy { background: var(--navy-deep); color: var(--on-navy); border-bottom: 0; }
.page-head-navy h1 { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy-muted); padding: 56px 0 28px; font-size: 14px; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand strong { display: block; color: #fff; font-size: 16px; margin-bottom: 6px; }
.footer-brand p { max-width: 36ch; }
.site-footer h3 { color: #fff; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: #ffb570; }
.site-footer li a { display: inline-flex; align-items: center; gap: 8px; }
.site-footer .icon { width: 16px; height: 16px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 13px; }

/* ---------- Motion ---------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 560ms var(--ease), transform 560ms var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps, .steps-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-portrait-wrap { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 320px; }
  .brand-tagline { display: none; }
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-grid; margin-left: auto; }
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }
  .site-nav {
    position: fixed; top: var(--header-h); right: 0; left: 0; bottom: 0; z-index: 90;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 16px 20px 40px; margin: 0;
    background: var(--bg); border-top: 1px solid var(--line);
    overflow-y: auto;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 16px 6px; border-bottom: 1px solid var(--line); font-size: 17px; border-radius: 0; }
  .site-nav a[aria-current="page"]::after { display: none; }
  .site-nav a[aria-current="page"] { color: var(--accent-strong); }
  .header-actions .button { display: none; }
  .site-nav .nav-cta { display: block; margin-top: 18px; }
  .site-nav .nav-cta a { border: 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .path { grid-template-columns: 1fr; }
  .path-arrow .icon { transform: rotate(90deg); }
  .need-panel.is-active { grid-template-columns: 1fr; gap: 20px; }
  .tabpanel-grid { grid-template-columns: 1fr; gap: 20px; }
  .tabpanel { padding: 24px; }
  .simulator-grid { grid-template-columns: 1fr; }
  .simulator-form { border-right: 0; border-bottom: 1px solid var(--line); }
  .program { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-side { position: static; }
  .profile-select { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .cta-band .container { grid-template-columns: 1fr; }
  .timeline-toggle { grid-template-columns: 1fr auto; }
  .timeline-date { grid-column: 1 / -1; }
  .timeline-detail { padding-left: 0; }
  .section { padding: 72px 0; }
  .hero-grid { padding: 64px 0 56px; }
}

@media (min-width: 861px) { .site-nav .nav-cta { display: none; } }

@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .container { width: min(calc(100% - 32px), var(--container)); }
  .brand-name { display: none; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-item { border-left: 0; border-bottom: 1px solid var(--line); padding: 22px 18px; }
  .proof-item:last-child { border-right: 0; }
  .proof-value { font-size: 28px; }
  .work-grid { grid-template-columns: 1fr; }
  .steps, .steps-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .button, .cta-band .actions .button { width: 100%; }
  .choice-row { grid-template-columns: 1fr; }
  .stat-value { font-size: 36px; }
}

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

@media print {
  .site-header, .site-footer, .cta-band, .menu-toggle, .theme-toggle { display: none !important; }
  body { background: #fff; color: #000; }
}
