/* ===== Fonts (self-hosted, OFL) ===== */
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("../fonts/source-sans-3-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("../fonts/source-sans-3-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: optional; src: url("../fonts/space-grotesk-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: optional; src: url("../fonts/space-grotesk-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans Fallback"; src: local("Arial"); size-adjust: 93%; ascent-override: 110%; descent-override: 30%; line-gap-override: 0%; }

/* ===== Tokens: light editorial palette ===== */
:root {
  --paper: #f5f2ea; --surface: #fffdf8; --surface-2: #ece7db; --line: #d9d2c3; --line-strong: #b9b0a0;
  --ink: #23262e; --muted: #5d6170; --heading: #111318; --accent: #b93c0b; --accent-hover: #93300a; --accent-soft: #f6e3d8;
  --info: #1e3a8a; --info-soft: #e3e8f6; --ok: #166534; --danger: #b91c1c; --footer: #15171d;
  --font: "Source Sans 3", "Source Sans Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Space Grotesk", "Source Sans 3", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 3px; --container: 1180px; --gap: clamp(1rem, 2.4vw, 2rem); --header-h: 64px;
  --fs-sm: clamp(.86rem, .84rem + .12vw, .92rem); --fs-base: clamp(1.02rem, .99rem + .16vw, 1.1rem);
  --fs-lg: clamp(1.12rem, 1.05rem + .35vw, 1.32rem); --fs-h4: 1.05rem; --fs-h3: clamp(1.12rem, 1.05rem + .3vw, 1.28rem);
  --fs-h2: clamp(1.5rem, 1.28rem + 1vw, 2.2rem); --fs-h1: clamp(2.1rem, 1.5rem + 2.8vw, 3.6rem);
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: var(--fs-base)/1.62 var(--font); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--info); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--heading); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: var(--fs-h1); font-weight: 700; } h2, .h2 { font-size: var(--fs-h2); } h3, .h3 { font-size: var(--fs-h3); } .h4 { font-size: var(--fs-h4); }
p { margin: 0 0 1em; } ul, ol { margin: 0 0 1.2em; padding-left: 1.2rem; }
code, .mono { font-family: var(--mono); font-size: .88em; }
code { background: var(--surface-2); border-radius: 2px; padding: .05em .35em; }
pre { background: var(--surface); border: 1px solid var(--line); padding: 1rem; overflow-x: auto; font-size: .86rem; }
pre code { background: none; padding: 0; }
.prose code, .card code { overflow-wrap: anywhere; } .prose { overflow-wrap: break-word; }
main:focus { outline: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -200px; background: var(--heading); color: var(--paper); padding: .6rem 1rem; z-index: 200; }
.skip-link:focus { top: .5rem; color: var(--paper); }

/* ===== Layout ===== */
.container { width: min(100% - 2 * var(--gap), var(--container)); margin-inline: auto; }
.narrow { max-width: 820px; } .narrow-left > * { max-width: 780px; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.grid-tight { gap: 0 1rem; }
.span-3 { grid-column-end: span 3; } .span-4 { grid-column-end: span 4; } .span-5 { grid-column-end: span 5; } .span-6 { grid-column-end: span 6; }
.span-7 { grid-column-end: span 7; } .span-8 { grid-column-end: span 8; } .span-12 { grid-column-end: span 12; }
.start-9 { grid-column-start: 9; } .start-10 { grid-column-start: 10; }
.self-center { align-self: center; } .mt-2 { margin-top: 1.5rem; } .row-between { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 1023px) {
  .span-3 { grid-column-end: span 6; } .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column-end: span 12; }
  .start-9, .start-10 { grid-column-start: auto; } .cards > .span-4 { grid-column-end: span 6; }
}
@media (max-width: 639px) {
  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .span-3, .span-4, .span-5, .span-6, .span-7, .span-8, .span-12, .cards > .span-4 { grid-column-end: span 6; }
}

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; font: 600 var(--fs-sm)/1.2 var(--font); padding: .75rem 1.2rem; border-radius: 2px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; letter-spacing: .01em; }
.btn-sm { padding: .5rem .85rem; font-size: .86rem; } .btn-lg { padding: .95rem 1.5rem; font-size: var(--fs-base); }
.btn-primary { background: var(--accent); color: #fff; } .btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-outline, .btn-ghost { background: transparent; color: var(--heading); border-color: var(--heading); } .btn-outline:hover, .btn-ghost:hover { background: var(--heading); color: var(--paper); }
.link-arrow { font-weight: 600; text-decoration: none; } .link-arrow::after { content: " ↗"; } .link-arrow.back::after { content: ""; } .link-arrow.back::before { content: "← "; }

/* ===== Top bar + header ===== */
.topbar { background: var(--heading); color: #cfc9bb; font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 1rem; }
.topbar-tag { margin: 0; font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang-switch { position: relative; }
.lang-switch summary { list-style: none; cursor: pointer; color: #f5f2ea; padding: .35rem .2rem; font-size: .84rem; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary::after { content: " ▾"; color: #9c968a; }
.lang-switch ul { position: absolute; right: 0; top: calc(100% + 2px); z-index: 80; list-style: none; margin: 0; padding: .3rem; background: var(--surface); border: 1px solid var(--line); min-width: 160px; box-shadow: 0 10px 30px rgba(17,19,24,.12); }
.lang-switch li a { display: block; padding: .45rem .7rem; color: var(--ink); text-decoration: none; font-size: var(--fs-sm); }
.lang-switch li a:hover { background: var(--surface-2); } .lang-switch li a[aria-current="true"] { color: var(--accent); font-weight: 600; }
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: var(--paper); border-bottom: 1.5px solid var(--heading); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 100%; }
.brand img { width: 176px; height: 28px; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; }
.nav-list a { display: block; padding: .45rem .6rem; color: var(--ink); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; border-bottom: 2px solid transparent; }
.nav-list a:hover { color: var(--heading); border-bottom-color: var(--line-strong); }
.nav-list a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.nav-toggle { display: none; height: 40px; padding: 0 .9rem; border: 1.5px solid var(--heading); border-radius: 2px; background: transparent; cursor: pointer; font: 600 .82rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--heading); }
.nav-toggle[aria-expanded="true"] { background: var(--heading); color: var(--paper); }
@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: var(--header-h); flex-direction: column; align-items: stretch; gap: .75rem; background: var(--paper); border-bottom: 1.5px solid var(--heading); padding: 1rem var(--gap) 1.25rem; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; } .nav-list a { padding: .75rem .2rem; font-size: var(--fs-base); border-bottom: 1px solid var(--line); }
  .header-cta { align-self: flex-start; }
}
@media (max-width: 639px) { .topbar-tag { display: none; } .topbar-inner { justify-content: flex-end; } }

/* ===== Sections ===== */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; } .section-tight { padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 2.25rem; max-width: 760px; } .section-head.row-between { max-width: none; } .section-head p { color: var(--muted); margin: 0; }
.section-head h2 { position: relative; padding-top: 1rem; } .section-head h2::before { content: ""; position: absolute; top: 0; left: 0; width: 48px; height: 4px; background: var(--accent); }
.eyebrow { font: 500 .76rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--info); margin-bottom: 1rem; }
.eyebrow a { text-decoration: none; color: inherit; }
.lead { font-size: var(--fs-lg); color: var(--ink); } .lead-sm { color: var(--ink); }
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.25rem); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 22ch; }

/* ===== Hero ===== */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 4vw, 3rem); }
.hero-copy { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1rem 3rem; align-items: end; }
.hero-copy .eyebrow { grid-column: 1 / -1; }
.hero-copy h1 { margin: 0; max-width: 16ch; }
.hero-copy .lead { margin: 0; border-left: 4px solid var(--accent); padding-left: 1.25rem; }
.hero-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .75rem; margin: 1rem 0 0; }
@media (max-width: 1023px) { .hero-copy { grid-template-columns: minmax(0, 1fr); } }
.hero-figure { margin: 0; background: var(--surface); border: 1.5px solid var(--heading); padding: clamp(.6rem, 1.5vw, 1rem); }
.hero-figure img { width: 100%; height: auto; aspect-ratio: 2 / 1; }
.hero-figure figcaption { font-size: var(--fs-sm); color: var(--muted); padding-top: .7rem; border-top: 1px solid var(--line); margin-top: .7rem; }
.hero-figure figcaption .mono { color: var(--accent); margin-right: .5rem; }

/* ===== KPIs & trust ===== */
.kpis { background: var(--surface); border-bottom: 1px solid var(--line); }
.kpis .grid { gap: 0; }
.kpi { padding: 1.4rem 1.25rem; border-right: 1px solid var(--line); }
.kpi:last-child { border-right: 0; }
.kpi strong { display: block; font: 600 clamp(1.15rem, 1rem + .6vw, 1.45rem)/1.2 var(--font-head); color: var(--heading); margin-bottom: .25rem; }
.kpi span { color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 1023px) { .kpi:nth-child(2n) { border-right: 0; } .kpi { border-bottom: 1px solid var(--line); } }
.trust { padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.trust-item { display: flex; gap: .8rem; align-items: flex-start; }
.trust-item strong { display: block; color: var(--heading); font-size: var(--fs-sm); } .trust-item span { color: var(--muted); font-size: var(--fs-sm); }
.icon { width: 24px; height: 24px; flex: none; } .icon-lg { width: 44px; height: 44px; padding: 9px; background: var(--accent-soft); margin-bottom: 1rem; }

/* ===== Service rows (home) ===== */
.svc-list { list-style: none; padding: 0; margin: 0; border-top: 1.5px solid var(--heading); }
.svc-row { display: grid; grid-template-columns: 4rem minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.svc-no { font: 500 1.6rem/1 var(--mono); color: var(--accent); }
.svc-title { margin: 0 0 .35rem; } .svc-text { margin: 0; color: var(--muted); max-width: 70ch; }
.svc-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.svc-row-alt .svc-no { color: var(--info); }
@media (max-width: 760px) { .svc-row { grid-template-columns: 2.5rem minmax(0, 1fr); } .svc-actions { grid-column: 2; justify-content: flex-start; } }

/* ===== Cards (generic) ===== */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.2rem, 2.2vw, 1.6rem); }
.card-alt { background: transparent; border-style: dashed; }
.card-kicker { font: 500 .72rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--info); margin-bottom: .6rem; }
.card-title { font-size: var(--fs-h3); margin-bottom: .5rem; } .card-title a { color: var(--heading); text-decoration: none; }
.card-text { color: var(--muted); flex: 1; } .card-meta { font-size: var(--fs-sm); color: var(--muted); display: flex; gap: .45rem; flex-wrap: wrap; margin: 0; }
.card-actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; margin: 1rem 0 0; }
.service-card { display: flex; flex-direction: column; }
.card-link { font-weight: 600; font-size: var(--fs-sm); text-decoration: none; }
.chips { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.chips li { font: .76rem/1 var(--mono); color: var(--ink); background: var(--surface-2); padding: .4rem .6rem; }
.ticks, .cross, .checklist { list-style: none; padding: 0; }
.ticks li, .cross li, .checklist li { position: relative; padding-left: 1.6rem; margin-bottom: .55rem; }
.ticks li::before { content: "→"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }
.cross li::before { content: "×"; position: absolute; left: .1rem; top: -.05em; color: var(--danger); font-weight: 700; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .32em; width: 14px; height: 14px; border: 1.5px solid var(--heading); }

/* ===== Article rows ===== */
.article-list { border-top: 1.5px solid var(--heading); }
.article-row { position: relative; display: grid; grid-template-columns: 11rem minmax(0, 1fr) 9rem; gap: 1.5rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); transition: background .15s; }
.article-row:hover { background: var(--surface); }
.article-row-date { margin: 0; font: .82rem/1.5 var(--mono); color: var(--muted); display: flex; flex-direction: column; }
.article-row-title { font-size: var(--fs-h3); margin: 0 0 .35rem; } .article-row-title a { color: var(--heading); text-decoration: none; }
.article-row-title a::after { content: ""; position: absolute; inset: 0; }
.article-row-title a:hover { color: var(--accent); }
.article-row-text { color: var(--muted); margin: 0 0 .4rem; max-width: 72ch; }
.article-row-tag { margin: 0; text-align: right; font: 500 .72rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--info); }
@media (max-width: 760px) { .article-row { grid-template-columns: minmax(0, 1fr); gap: .4rem; } .article-row-date { flex-direction: row; gap: .8rem; } .article-row-tag { text-align: left; order: -1; } }

/* ===== Steps ===== */
.steps { list-style: none; padding: 0; margin: 0; position: relative; }
.step { position: relative; padding: 2.2rem 1rem 0 0; border-top: 1.5px solid var(--heading); }
.step-no { position: absolute; top: -.85rem; left: 0; background: var(--paper); padding-right: .6rem; font: 500 1rem/1.6 var(--mono); color: var(--accent); }
.section-alt .step-no { background: var(--surface); }
.step h3 { font-size: var(--fs-h4); } .step p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.steps-v { list-style: none; padding: 0; counter-reset: s; }
.steps-v li { counter-increment: s; position: relative; padding: 0 0 1.1rem 2.8rem; }
.steps-v li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: .1rem; font: 500 .9rem/1 var(--mono); color: var(--accent); }
.steps-v strong { display: block; color: var(--heading); } .steps-v span { color: var(--muted); font-size: var(--fs-sm); }
.flow { padding-left: 1.4rem; } .flow li { margin-bottom: .5rem; } .flow li::marker { color: var(--accent); font-family: var(--mono); }

/* ===== Services / blueprints / scenarios ===== */
.toc-inline ul, .tag-filter ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.toc-inline a, .tag-filter a { display: inline-block; font-size: .86rem; padding: .4rem .75rem; border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; background: var(--surface); }
.toc-inline a:hover, .tag-filter a:hover, .tag-filter a[aria-current="page"] { border-color: var(--accent); color: var(--accent); }
.service-detail, .blueprint { padding: clamp(2.5rem, 5vw, 3.5rem) 0; border-bottom: 1px solid var(--line); }
.service-detail h3, .blueprint h3, .scenario h3 { font: 500 .8rem/1.4 var(--mono); color: var(--info); text-transform: uppercase; letter-spacing: .1em; margin-top: 0; }
.blueprint-head { max-width: 860px; margin-bottom: 1.5rem; }
.meta-list { display: grid; gap: .75rem; margin: 1rem 0 0; } .meta-list div { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; }
.meta-list dt { color: var(--muted); font-size: var(--fs-sm); } .meta-list dd { margin: 0; }
.diagram { margin: 0 0 2rem; border: 1.5px solid var(--heading); background: var(--surface); padding: .6rem; }
.diagram img { width: 100%; height: auto; }
.decisions dt { color: var(--heading); font-weight: 600; } .decisions dd { margin: .2rem 0 1rem; color: var(--muted); }
.related { font-size: var(--fs-sm); color: var(--muted); }

.notice-arch { display: flex; gap: 1rem; align-items: flex-start; background: var(--info-soft); border-left: 4px solid var(--info); padding: 1rem 1.25rem; margin: 1.5rem 0 0; font-size: var(--fs-sm); color: var(--heading); }
.notice-arch .mono { color: var(--info); flex: none; font-weight: 500; }
.scenario { padding: clamp(2.25rem, 5vw, 3.25rem) 0; border-bottom: 1px solid var(--line); }
.scenario-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; margin-bottom: 1.25rem; }
.scenario-head h2 { margin: 0; flex: 1 1 420px; }
.scenario-no { font: 500 .9rem/1 var(--mono); color: var(--accent); }
.domain-badge { font: 500 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--info); border: 1px solid var(--info); padding: .4rem .55rem; }
.scenario-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 1.25rem; }
.scenario-body section { border-top: 3px solid var(--line-strong); padding-top: .9rem; }
.scenario-body section:nth-child(1) { border-top-color: var(--danger); }
.scenario-body section:nth-child(2) { border-top-color: var(--accent); }
.scenario-body section:nth-child(3) { border-top-color: var(--ok); }
.scenario-body p { margin: 0; }
@media (max-width: 1023px) { .scenario-body { grid-template-columns: minmax(0, 1fr); } }
.scenario-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 1023px) { .scenario-strip { grid-template-columns: minmax(0, 1fr); } }
.scenario-card { display: flex; flex-direction: column; position: relative; }
.scenario-card .diagram-thumb { border-bottom: 1px solid var(--line); margin: -1.2rem -1.2rem 1rem; padding: .5rem; background: var(--paper); }
.scenario-card .card-title a { color: var(--heading); text-decoration: none; } .scenario-card .card-title a::after { content: ""; position: absolute; inset: 0; }
.scenario-card:hover { border-color: var(--accent); }

/* ===== CTA band ===== */
.cta-band { background: var(--accent); color: #fff; }
.cta-band h2 { color: #fff; } .cta-band h2::before { display: none; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-inner p { color: #fbe7dc; margin: 0; max-width: 60ch; }
.cta-band .btn-primary { background: var(--heading); color: var(--paper); } .cta-band .btn-primary:hover { background: #000; }

/* ===== Article ===== */
.article-wrap { padding: 1.5rem 0 clamp(3rem, 6vw, 4.5rem); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0 0 1.75rem; font-size: var(--fs-sm); color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .35rem; color: var(--line-strong); } .breadcrumb a { color: var(--muted); }
.article-head { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1.5px solid var(--heading); }
.prose { min-width: 0; } .prose h2 { font-size: clamp(1.28rem, 1.14rem + .6vw, 1.65rem); margin-top: 2.4rem; }
.prose h3 { margin-top: 1.6rem; } .prose li { margin-bottom: .45rem; } .prose ul:not([class]) li::marker, .prose ol li::marker { color: var(--accent); }
.keyfacts { margin-bottom: 1.5rem; border-left: 4px solid var(--accent); } .keyfacts dl { margin: 0; } .keyfacts dl div { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.keyfacts dt { color: var(--muted); font-size: .82rem; } .keyfacts dd { margin: 0; color: var(--heading); }
.toc-wrap { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; }
.toc-title { font: 500 .74rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; padding: 0; margin: 0 0 1.5rem; border-left: 2px solid var(--line); }
.toc a { display: block; padding: .3rem 0 .3rem .9rem; font-size: .88rem; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--accent); }
@media (max-width: 1023px) { .toc-wrap { position: static; } }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--info); padding: 1.2rem 1.4rem; margin: 2rem 0; }
.callout h2 { margin-top: 0; font-size: var(--fs-h3); }
.callout-success { border-left-color: var(--ok); } .callout-error { border-left-color: var(--danger); } .callout-error p { margin: 0; }
.notice { background: var(--info-soft); border-left: 4px solid var(--info); padding: .7rem 1rem; font-size: var(--fs-sm); margin: 1rem 0 0; }
.sources { font-size: var(--fs-sm); color: var(--muted); }
.article-back { margin-top: 2.5rem; }
.table-wrap { overflow-x: auto; margin: 0 0 1.5rem; border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 520px; }
th, td { text-align: left; vertical-align: top; padding: .7rem .85rem; border-bottom: 1px solid var(--line); }
thead th { background: var(--surface-2); color: var(--heading); font-weight: 600; } tbody tr:last-child td { border-bottom: 0; }

/* ===== FAQ ===== */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1.5px solid var(--heading); }
.faq summary { cursor: pointer; padding: 1.1rem 2.6rem 1.1rem 0; font-weight: 600; color: var(--heading); list-style: none; position: relative; font-size: var(--fs-lg); font-family: var(--font-head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .4rem; top: 1rem; font: 400 1.4rem/1 var(--mono); color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 1.2rem; margin: 0; color: var(--ink); max-width: 75ch; }

/* ===== Forms ===== */
.form { display: grid; gap: .25rem; }
.field { margin-bottom: 1.1rem; display: flex; flex-direction: column; gap: .35rem; }
.field label, .field-group legend { font-weight: 600; color: var(--heading); font-size: var(--fs-sm); }
.field-group { border: 1px solid var(--line-strong); padding: 1rem 1.1rem .2rem; margin: 0 0 1.1rem; background: var(--surface); }
.field-group legend { padding: 0 .4rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="time"], select, textarea {
  width: 100%; font: inherit; color: var(--heading); background: #fff; border: 1px solid var(--line-strong); border-radius: 2px; padding: .7rem .8rem; }
textarea { resize: vertical; min-height: 140px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.field-error { color: var(--danger); font-size: .86rem; margin: 0; }
.hint { color: var(--muted); font-size: .86rem; margin: 0 0 .25rem; }
.req { color: var(--accent); }
.field-check { flex-direction: row; align-items: flex-start; flex-wrap: wrap; gap: .6rem; }
.field-check input { width: 18px; height: 18px; margin-top: .2rem; accent-color: var(--accent); }
.field-check label { flex: 1; font-weight: 400; color: var(--ink); }
.field-check .field-error { flex-basis: 100%; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sidebar .card { position: sticky; top: calc(var(--header-h) + 1.5rem); border-top: 4px solid var(--heading); }
.contact-list { margin: 0 0 1rem; } .contact-list div { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--muted); font-size: .82rem; } .contact-list dd { margin: 0; word-break: break-all; }
@media (max-width: 1023px) { .sidebar .card { position: static; } }

/* ===== Legal / 404 ===== */
.legal { padding: clamp(2rem, 5vw, 3rem) 0 clamp(3rem, 6vw, 4rem); }
.page-404 { min-height: 50vh; }

/* ===== Footer ===== */
.site-footer { background: var(--footer); color: #b3ad9f; padding-top: clamp(2.5rem, 6vw, 3.5rem); font-size: var(--fs-sm); }
.site-footer a { color: #f1ede3; text-decoration: none; } .site-footer a:hover { color: #f59e6b; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.6fr 1fr 1fr 1fr; }
@media (max-width: 1023px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h2 { font: 500 .74rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #8d877a; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-brand img { width: 176px; height: 28px; margin-bottom: 1rem; }
.footer-col address { font-style: normal; line-height: 1.75; }
.footer-bottom { border-top: 1px solid #2c2f37; margin-top: 2.5rem; padding: 1.25rem 0 1.75rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.footer-bottom p { margin: 0; } .footer-disclaimer { max-width: 75ch; }

/* ===== Consent ===== */
.consent { position: fixed; left: 1rem; bottom: 1rem; z-index: 90; width: min(440px, calc(100% - 2rem)); }
.consent[hidden] { display: none; }
.consent-inner { background: var(--surface); border: 1.5px solid var(--heading); box-shadow: 8px 8px 0 rgba(17,19,24,.12); padding: 1.2rem 1.3rem; }
.consent h2 { font-size: var(--fs-h4); margin-bottom: .4rem; } .consent p { font-size: var(--fs-sm); }
.consent-prefs { border-top: 1px solid var(--line); margin: .25rem 0 1rem; } .consent-prefs[hidden] { display: none; }
.consent-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.consent-row strong { display: block; color: var(--heading); font-size: var(--fs-sm); } .consent-row span { display: block; color: var(--muted); font-size: .84rem; }
.consent-row label { cursor: pointer; }
.consent-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.consent-save { display: none; } .consent.is-custom .consent-save { display: inline-flex; } .consent.is-custom [data-consent="customize"] { display: none; }
.badge { font: 500 .7rem/1 var(--mono); color: var(--ok); background: #e3f1e7; padding: .35rem .55rem; white-space: nowrap; }
.switch { appearance: none; -webkit-appearance: none; width: 44px; height: 24px; border-radius: 999px; background: var(--line-strong); position: relative; cursor: pointer; flex: none; margin: 0; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch:checked { background: var(--accent); } .switch:checked::after { transform: translateX(20px); }

@media print { .topbar, .site-header, .site-footer, .consent, .toc-wrap, .cta-band { display: none !important; } body { background: #fff; color: #000; } }

/* =====================================================================
   v7 — younger, rounded, animated layer (overrides above)
   All motion is disabled under prefers-reduced-motion. Hidden-on-load
   states apply only when JS has set html.motion, so no-JS stays visible.
   ===================================================================== */
:root { --radius: 18px; --radius-sm: 12px; --pill: 999px; --ease: cubic-bezier(.22,1,.36,1);
  --shadow: 0 1px 2px rgba(17,19,24,.05), 0 8px 24px -12px rgba(17,19,24,.18);
  --shadow-lg: 0 2px 4px rgba(17,19,24,.06), 0 24px 48px -20px rgba(185,60,11,.35);
  --grad: linear-gradient(120deg, #e8540f 0%, #b93c0b 45%, #7a2fbf 100%); }

/* Logo */
.brand { display: inline-flex; align-items: center; }
.logo { width: 200px; height: 32px; display: block; overflow: visible; }
.logo .lt { transform-box: fill-box; transform-origin: center; transition: transform .5s var(--ease); }
.brand:hover .logo .lt1, .footer-brand:hover .logo .lt1 { transform: translate(9px, 0) rotate(90deg); }
.brand:hover .logo .lt2, .footer-brand:hover .logo .lt2 { transform: translate(0, 9px) rotate(90deg); }
.brand:hover .logo .lt4, .footer-brand:hover .logo .lt4 { transform: translate(-9px, 0) rotate(90deg); }
.brand:hover .logo .lt3, .footer-brand:hover .logo .lt3 { transform: translate(0, -9px) rotate(90deg); }
.footer-brand .logo { margin-bottom: 1rem; }

/* Buttons: pills with motion */
.btn { border-radius: var(--pill); padding: .8rem 1.45rem; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .2s, color .2s, border-color .2s; }
.btn-sm { padding: .55rem 1.1rem; }
.btn-lg { padding: 1rem 1.8rem; }
.btn-primary { background: var(--grad); background-size: 180% 100%; background-position: 0 0; border: 0; box-shadow: 0 10px 24px -12px rgba(185,60,11,.7); }
.btn-primary:hover { background: var(--grad); background-size: 180% 100%; background-position: 100% 0; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-primary { transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-position .6s var(--ease); }
.btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); }
.btn-primary:hover::after { transform: translateX(120%); transition: transform .8s var(--ease); }
.btn-outline, .btn-ghost { border-width: 1.5px; }
.btn-outline:hover, .btn-ghost:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.cta-band .btn-primary { background: #111318; box-shadow: 0 14px 30px -14px rgba(0,0,0,.6); }
.cta-band .btn-primary:hover { background: #000; }
.nav-toggle { border-radius: var(--pill); }

/* Header: glass + progress */
.site-header { background: rgba(245,242,234,.82); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -22px rgba(17,19,24,.45); }
.scroll-progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); pointer-events: none; }
.nav-list a { position: relative; }
.nav-list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .35s var(--ease); }
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); transform-origin: 0 50%; }

/* Hero: animated aurora */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none; }
.hero::before { width: 46vw; height: 46vw; max-width: 640px; max-height: 640px; right: -12vw; top: -18vw; background: radial-gradient(circle, #ff8a4c 0%, rgba(255,138,76,0) 70%); }
.hero::after { width: 38vw; height: 38vw; max-width: 520px; max-height: 520px; left: -14vw; bottom: -16vw; background: radial-gradient(circle, #9b6bff 0%, rgba(155,107,255,0) 70%); opacity: .35; }
.hero h1 .grad, .hero h1 { background: none; }
.hero-copy .lead { border-left: 0; padding-left: 0; position: relative; }
.hero-copy .lead::before { content: ""; position: absolute; left: -1.25rem; top: .3em; bottom: .3em; width: 4px; border-radius: 4px; background: var(--grad); }
@media (max-width: 900px) { .hero-copy .lead::before { display: none; } }
.hero-figure { border-radius: 26px; border: 1px solid var(--line); box-shadow: var(--shadow); background: rgba(255,253,248,.85); }
.hero-figure img { border-radius: 16px; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; border-radius: var(--pill); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(185,60,11,.5); }

/* Ticker */
.ticker { border-bottom: 1px solid var(--line); background: var(--surface); overflow: hidden; padding: .9rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; width: max-content; gap: 0; }
.ticker-track span { font: 500 .9rem/1 var(--mono); color: var(--muted); white-space: nowrap; padding: 0 1.4rem; display: inline-flex; align-items: center; gap: 1.4rem; }
.ticker-track span::after { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }

/* Rounded surfaces */
.card, .scenario, .notice-arch, .consent, .hero-figure, .diagram, figure.diagram, .kpi, .kpis .grid > *, .toc-inline a, .domain-badge,
.svc-row, .article-row, pre, .faq-item, details.faq, .form-card { border-radius: var(--radius); }
.toc-inline a, .domain-badge, .chip, .tag, .article-row-tag { border-radius: var(--pill); }
input, select, textarea { border-radius: var(--radius-sm) !important; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 4px var(--accent-soft); border-color: var(--accent); outline: none; }
code { border-radius: 6px; }
.diagram img, figure.diagram img, .diagram-thumb img { border-radius: 12px; }
.diagram-thumb { border-radius: 14px; overflow: hidden; }

/* Cards: lift + pointer glow */
.card { position: relative; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,138,76,.16), transparent 45%); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(185,60,11,.35); }
.card:hover::before { opacity: 1; }
.scenario-card .diagram-thumb img { transition: transform .8s var(--ease); }
.scenario-card:hover .diagram-thumb img { transform: scale(1.06); }

/* Service & article rows */
.svc-row, .article-row { position: relative; transition: background .35s, transform .45s var(--ease); padding-left: .75rem; padding-right: .75rem; }
.svc-row:hover, .article-row:hover { background: var(--surface); transform: translateX(6px); }
.svc-no { transition: color .3s, transform .45s var(--ease); display: inline-block; }
.svc-row:hover .svc-no { transform: scale(1.15) rotate(-6deg); }
.link-arrow, .card-link { transition: gap .3s var(--ease), color .2s; }
.link-arrow:hover, .card-link:hover { letter-spacing: .01em; }

/* CTA band: animated gradient */
.cta-band { background: linear-gradient(120deg, #e8540f, #b93c0b, #8a2c9e, #e8540f); background-size: 300% 300%; position: relative; overflow: hidden; border-radius: 32px; margin: 0 clamp(.5rem, 2vw, 1.5rem) clamp(2rem, 4vw, 3rem); }

/* KPI tiles */
.kpis .grid > * { transition: transform .45s var(--ease), background .3s; }
.kpis .grid > *:hover { transform: translateY(-4px); background: var(--surface); }

/* Steps */
.steps li { transition: transform .45s var(--ease); }
.steps li:hover { transform: translateY(-4px); }

/* Consent */
.consent { box-shadow: 0 24px 60px -24px rgba(17,19,24,.45); }

/* ---------- Motion (only with JS + no reduced-motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero::before { animation: blobA 18s ease-in-out infinite alternate; }
  .hero::after { animation: blobB 22s ease-in-out infinite alternate; }
  @keyframes blobA { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(-8vw, 6vw) scale(1.15); } 100% { transform: translate(-3vw, 12vw) scale(.95); } }
  @keyframes blobB { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(10vw, -4vw) scale(1.2); } 100% { transform: translate(4vw, -10vw) scale(1); } }
  .eyebrow::before { animation: ping 2.2s cubic-bezier(0,0,.2,1) infinite; }
  @keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(185,60,11,.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(185,60,11,0); } }
  .ticker-track { animation: tick 38s linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }
  @keyframes tick { to { transform: translateX(-50%); } }
  .cta-band { animation: gradShift 14s ease infinite; }
  @keyframes gradShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
  .logo .lt1 { animation: tileIn .7s var(--ease) both .05s; } .logo .lt2 { animation: tileIn .7s var(--ease) both .15s; }
  .logo .lt4 { animation: tileIn .7s var(--ease) both .25s; } .logo .lt3 { animation: tileIn .7s var(--ease) both .35s; }
  @keyframes tileIn { from { transform: scale(0) rotate(-90deg); opacity: 0; } }
  .hero-figure { animation: floaty 7s ease-in-out infinite; }
  @keyframes floaty { 50% { transform: translateY(-8px); } }

  html.motion .rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
  html.motion .rv.rv-l { transform: translateX(-36px); }
  html.motion .rv.rv-s { transform: scale(.94); }
  html.motion .rv.in { opacity: 1; transform: none; }
  html.motion .split .w { display: inline-block; opacity: 0; transform: translateY(.6em) rotate(3deg); filter: blur(6px);
    transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); transition-delay: var(--d, 0ms); }
  html.motion .split.in .w { opacity: 1; transform: none; filter: none; }
  html.motion .section-head h2::before { transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s var(--ease) .15s; }
  html.motion .section-head.in h2::before { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.section-head h2::before { border-radius: 4px; background: var(--grad); }
.page-head { position: relative; overflow: hidden; isolation: isolate; }
.page-head::before { content: ""; position: absolute; z-index: -1; right: -10vw; top: -14vw; width: 44vw; height: 44vw; max-width: 600px; max-height: 600px; border-radius: 50%; filter: blur(70px); opacity: .45; pointer-events: none; background: radial-gradient(circle, #ff8a4c 0%, rgba(255,138,76,0) 70%); }
.page-head::after { content: ""; position: absolute; z-index: -1; right: 18vw; bottom: -18vw; width: 30vw; height: 30vw; max-width: 420px; max-height: 420px; border-radius: 50%; filter: blur(70px); opacity: .3; pointer-events: none; background: radial-gradient(circle, #9b6bff 0%, rgba(155,107,255,0) 70%); }
@media (prefers-reduced-motion: no-preference) { .page-head::before { animation: blobA 18s ease-in-out infinite alternate; } .page-head::after { animation: blobB 22s ease-in-out infinite alternate; } }
