/* procurement.club — layout: dark brand bar, photo heroes, reading column 68ch; module pages = sticky process loop aside + prose */
:root {
  --bg: #ffffff;
  --bg-2: #f4f1ed;
  --fg: #1b1815;
  --muted: #5d554b;
  --line: #e2dbd1;
  --accent: #8a5a1c;     /* bronze of the process diagrams */
  --accent-fg: #ffffff;
  --sand: #d4bea5;       /* original nav colour */
  --ink: #0f0e0d;        /* brand bar, always dark */
  --ink-fg: #efe7dc;
  --ink-muted: #a89a88;
  --f-body: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --f-mono: "Roboto Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --w: 1180px;
  --read: 68ch;
  --r: 6px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141210; --bg-2: #1c1916; --fg: #ece6de; --muted: #b2a796; --line: #302a24;
    --accent: #d9b88f; --accent-fg: #141210; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141210; --bg-2: #1c1916; --fg: #ece6de; --muted: #b2a796; --line: #302a24;
  --accent: #d9b88f; --accent-fg: #141210; color-scheme: dark;
}

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.65 var(--f-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.2; margin: 0; }
p { margin: 0; }
.vh, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--accent); color: var(--accent-fg); padding: 8px 14px; border-radius: var(--r); }
.skip:focus { top: 12px; }
.wrap { max-width: var(--w); margin-inline: auto; padding-inline: max(16px, 4vw); }
.kicker { font: 500 12px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

/* ---------- brand bar ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--ink); color: var(--ink-fg); border-bottom: 1px dashed #4a4239; }
.top-in { max-width: var(--w); margin-inline: auto; padding-inline: max(16px, 4vw); display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand img { width: 168px; height: auto; }
.nav { margin-left: auto; }
.nav > ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--sand); text-decoration: none; font-weight: 300; font-size: 18px; display: block; padding: 10px 12px; border-radius: var(--r); }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav > ul > li > a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--sand); border-radius: 0; }
.has-sub { position: relative; }
.sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 280px; background: var(--ink); border: 1px solid #2c2620; border-radius: var(--r); box-shadow: 0 18px 40px rgba(0,0,0,.35); opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { font-size: 15px; padding: 7px 10px; }
.sub .sub-top a { color: #fff; font-weight: 500; }
.sub .sub-child a { padding-left: 24px; color: var(--ink-muted); }
.sub .sub-child a:hover, .sub a[aria-current="page"] { color: var(--sand); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid #4a4239; color: var(--ink-fg); border-radius: var(--r); padding: 8px 12px; font: 500 14px var(--f-body); align-items: center; gap: 10px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: ""; }
.bars::before { position: absolute; top: -6px; } .bars::after { position: absolute; top: 6px; }

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); border-bottom: 1px solid #2c2620; max-height: calc(100vh - 72px); overflow: auto; display: none; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; padding: 8px max(16px, 4vw) 20px; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px; min-width: 0; }
  .nav > ul > li > a[aria-current="page"] { box-shadow: none; color: #fff; }
}

/* ---------- heroes ---------- */
.hero { position: relative; color: #fff; background-color: #1b1815; background-position: center; background-size: cover; background-repeat: no-repeat; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12,10,9,.85) 0%, rgba(12,10,9,.62) 45%, rgba(12,10,9,.12) 100%); }
.hero-in { max-width: var(--w); margin-inline: auto; padding: clamp(64px, 10vw, 128px) max(16px, 4vw); display: grid; gap: 18px; }
.hero h1 { font-weight: 300; font-size: clamp(32px, 5vw, 56px); max-width: 20ch; letter-spacing: -.01em; }
.hero .lead { display: grid; gap: 10px; max-width: 58ch; font-size: clamp(17px, 1.6vw, 20px); font-weight: 300; color: #ece4d9; }
.hero .kicker { color: var(--sand); }
.hero-home h1 { font-weight: 700; max-width: 16ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }

.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 16px; text-decoration: none; color: var(--accent); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.btn:hover { gap: 12px; }
.btn.solid { background: var(--sand); color: #1b1815; border: 0; padding: 12px 20px; border-radius: var(--r); }
.btn.ghost { color: #fff; border: 1px solid rgba(255,255,255,.5); padding: 11px 19px; border-radius: var(--r); }
.btn.solid:hover, .btn.ghost:hover { gap: 8px; filter: brightness(1.08); }

.mhead { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.mhead .wrap { padding-block: clamp(40px, 6vw, 72px); display: grid; gap: 14px; }
.mhead h1 { font-weight: 300; font-size: clamp(32px, 4.6vw, 52px); }
.mhead .lead { max-width: 60ch; font-size: 19px; color: var(--muted); font-weight: 300; }

/* ---------- prose ---------- */
.page { padding-block: clamp(40px, 6vw, 72px); }
.prose { max-width: var(--read); min-width: 0; display: flow-root; }
.prose.wide { max-width: none; }
.prose.wide > :not(.mods):not(.cols):not(.fig):not(.table-wrap):not(.person):not(.pmap):not(.orgx):not(.s2p) { max-width: 74ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h1 { font-weight: 300; font-size: clamp(30px, 4vw, 44px); margin-bottom: .4em; }
.prose h2 { font-weight: 400; font-size: clamp(24px, 2.6vw, 30px); margin-top: 2em; }
.prose h3 { font-weight: 500; font-size: 20px; margin-top: 1.6em; }
.prose h4 { font-weight: 500; font-size: 17px; margin-top: 1.4em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: .55em; margin-bottom: 0; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 500; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--accent); font-size: 19px; font-weight: 300; color: var(--fg); }
.prose blockquote p + p { margin-top: .8em; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--r); margin-inline: auto; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose h2.sec { display: flex; align-items: center; gap: 14px; padding-top: 1.4em; border-top: 1px solid var(--line); }
.ico { width: 40px; height: 40px; flex: none; padding: 8px; border-radius: 50%; background: var(--bg-2); color: var(--accent); border: 1px solid var(--line); }
.more { margin-top: 1.4em; }

.table-wrap { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); border-radius: var(--r); }
table { border-collapse: collapse; width: 100%; font-size: 15px; font-variant-numeric: tabular-nums; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
td:first-child, th:first-child { white-space: nowrap; }
table { min-width: 640px; }
thead th { background: var(--bg-2); font-weight: 500; }
tbody th { font-weight: 500; color: var(--muted); }
tr:last-child > * { border-bottom: 0; }

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: 2em; }
.col { min-width: 0; }
.col > * + * { margin-top: 1em; }
.col h2, .col h3 { margin-top: 0; }

/* process module cards */
.mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; margin-top: 1.4em; }
.mod { display: grid; gap: 12px; align-content: start; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--fg); background: var(--bg); transition: border-color .15s, transform .15s; }
.mod:hover { border-color: var(--accent); transform: translateY(-2px); }
.mod-name { font-size: 19px; font-weight: 500; }
.chips { list-style: none; padding: 0 !important; margin: 0; display: flex !important; flex-wrap: wrap; gap: 6px !important; }
.chips li { font: 400 12px/1.3 var(--f-mono); padding: 4px 8px; border-radius: 3px; background: var(--bg-2); color: var(--muted); }
.mod-go { color: var(--accent); font-size: 14px; font-weight: 500; margin-top: auto; }

/* module page layout */
.module { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-block: clamp(40px, 6vw, 72px); align-items: start; }
.loop { position: sticky; top: 96px; display: grid; gap: 12px; }
.loop-home { font-size: 20px; font-weight: 500; color: var(--fg); text-decoration: none; }
.loop-home:hover { color: var(--accent); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; border-left: 1px solid var(--line); }
.steps a { display: flex; gap: 12px; align-items: baseline; padding: 8px 12px; text-decoration: none; color: var(--muted); margin-left: -1px; border-left: 2px solid transparent; }
.steps a:hover { color: var(--fg); }
.steps a[aria-current="page"] { color: var(--fg); font-weight: 500; border-left-color: var(--accent); }
.steps .n { font: 400 12px var(--f-mono); color: var(--accent); }
.loop-fig { margin: 8px 0 0; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
@media (max-width: 900px) {
  .module { grid-template-columns: minmax(0, 1fr); }
  .loop { position: static; }
  .loop-fig { display: none; }
  .steps { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-left: 0; gap: 4px; }
  .steps a { border: 1px solid var(--line); border-radius: var(--r); margin: 0; }
  .steps a[aria-current="page"] { border-color: var(--accent); }
}
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 3.2em !important; padding-top: 1.6em; border-top: 1px solid var(--line); }
.pg { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--fg); font-weight: 500; }
.pg:hover { border-color: var(--accent); }
.pg.next { text-align: right; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pg.next { text-align: left; } }

/* FAQ */
.faq { border-bottom: 1px solid var(--line); margin-top: 0 !important; }
.faq + .faq { border-top: 0; }
h2 + .faq { border-top: 1px solid var(--line); margin-top: 1em !important; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-size: 19px; font-weight: 400; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font: 300 28px var(--f-body); color: var(--accent); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq-a { padding-bottom: 22px; display: grid; gap: .9em; color: var(--fg); }
.faq-a ol, .faq-a ul { padding-left: 1.3em; display: grid; gap: .5em; margin: 0; }

/* about */
.person { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; padding: 28px; background: var(--bg-2); border-radius: var(--r); }
.person img { border-radius: var(--r); width: 100%; background: #fff; }
.person-body { display: grid; gap: .8em; min-width: 0; }
.person-name { font-size: 28px; font-weight: 300; }
.person-body .kicker { margin-top: -.6em; }
@media (max-width: 640px) { .person { grid-template-columns: 1fr; padding: 20px; } .person img { max-width: 200px; } }

/* home */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(24px, 4vw, 48px); padding-block: clamp(48px, 7vw, 88px); }
.door { display: grid; gap: 22px; align-content: start; min-width: 0; }
.door-img img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; border-radius: var(--r); }
.door-body { display: grid; gap: 1em; }
.door h2 { font-weight: 300; font-size: clamp(26px, 3vw, 34px); }
.door-body p { color: var(--muted); }
.door-body .more { margin-top: .2em; }
.band { background: var(--bg-2); border-top: 1px solid var(--line); padding-block: clamp(48px, 7vw, 88px); }
.band-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 28px; }
.band-head h2 { font-weight: 300; font-size: clamp(26px, 3vw, 34px); }

/* blog cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.card { display: grid; grid-template-rows: auto 1fr; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; min-width: 0; }
.card[hidden] { display: none; }
.card-img img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.03); }
.card-img { overflow: hidden; }
.card-body { display: grid; gap: 10px; align-content: start; padding: 18px 20px 20px; }
.card h3 { font-size: 20px; font-weight: 500; line-height: 1.3; }
.card h3 a { color: var(--fg); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card-body > p:not(.meta):not(.tags) { color: var(--muted); font-size: 15px; }
.meta { font: 400 13px var(--f-mono); color: var(--muted); }
.meta a { color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font: 400 12px var(--f-mono); padding: 3px 8px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { font: 500 14px var(--f-body); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* post */
.post-head .wrap { padding-block: clamp(40px, 6vw, 72px) 28px; display: grid; gap: 14px; max-width: calc(var(--read) + 8vw); }
.post-head h1 { font-weight: 300; font-size: clamp(30px, 4.4vw, 50px); }
.byline { color: var(--muted); }
.post-cover { max-width: var(--w); margin: 0 auto clamp(32px, 5vw, 56px); }
.post-cover img { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--r); }
.post .prose { margin-inline: auto; padding-bottom: 24px; }
.post-pager { max-width: var(--read); margin: 0 auto clamp(48px, 7vw, 88px) !important; }

.legal { padding-block: clamp(40px, 6vw, 72px); }
.legal h2 { font-size: 22px; }
.legal h3 { font-size: 18px; }
.nf { min-height: 40vh; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--ink-fg); font-size: 15px; }
.foot a { color: var(--sand); }
.foot-in { max-width: var(--w); margin-inline: auto; padding: clamp(40px, 6vw, 64px) max(16px, 4vw); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px; }
.foot-co { display: grid; gap: 14px; align-content: start; }
.foot-co img { width: 150px; }
.news { display: grid; gap: 12px; align-content: start; }
.news-h { font-weight: 300; font-size: 24px; }
.news p { color: var(--ink-muted); }
.news-row { display: flex; flex-wrap: wrap; gap: 8px; }
.news input[type="email"] { flex: 1 1 220px; min-width: 0; font: 400 16px var(--f-body); padding: 12px 14px; border-radius: var(--r); border: 1px solid #4a4239; background: #1b1815; color: #fff; }
.news button { font: 500 15px var(--f-body); padding: 12px 18px; border-radius: var(--r); border: 0; background: var(--sand); color: #1b1815; cursor: pointer; }
.news button:disabled { opacity: .6; cursor: default; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-muted); font-size: 14px; }
.check input { margin-top: 3px; accent-color: #d4bea5; }
.news-msg { color: var(--sand) !important; }
.foot-bar { max-width: var(--w); margin-inline: auto; padding: 18px max(16px, 4vw) calc(18px + env(safe-area-inset-bottom, 0px)); border-top: 1px dashed #4a4239; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--ink-muted); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* update notes, marks */
.update { background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r); padding: 18px 20px; display: grid; gap: 8px; margin-bottom: 2em; }
.update p { margin: 0; }
mark { background: #fbe7a1; color: #1b1815; padding: 0 3px; border-radius: 2px; }

/* audience entry points */
.aud { padding-block: 0 clamp(48px, 7vw, 88px); display: grid; gap: 24px; }
.aud h2 { font-weight: 300; font-size: clamp(26px, 3vw, 34px); }
.aud-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.aud-card { display: grid; gap: 10px; align-content: start; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--fg); background: var(--bg); transition: border-color .15s, transform .15s; }
.aud-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.aud-t { font-size: 22px; font-weight: 400; }
.aud-d { color: var(--muted); font-size: 15px; }
.aud-card .mod-go { margin-top: 6px; }
.nav a { font-size: 17px; padding: 10px 10px; }
@media (max-width: 1100px) and (min-width: 901px) { .nav a { font-size: 16px; padding: 10px 7px; } .brand img { width: 140px; } }

/* ---------- interactive process map ---------- */
.pm-wrap { padding-top: clamp(28px, 4vw, 48px); }
.module-one { padding-block: clamp(24px, 4vw, 48px) clamp(40px, 6vw, 72px); }
.module-one .prose { margin-inline: auto; }
.pmap { display: grid; gap: 16px; padding: clamp(16px, 2.4vw, 28px); background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; }
.prose .pmap { margin-block: 1.6em; }
.pm-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px; }
.pm-cap { color: var(--muted); font-size: 15px; min-height: 1.5em; max-width: 60ch; }
.pm-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) auto minmax(0, 1fr); gap: 14px; align-items: stretch; }
.pm-panel { display: grid; grid-template-rows: auto 1fr; gap: 12px; padding: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.pm-panel.is-active { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.pm-title { display: grid; gap: 2px; font-size: 19px; font-weight: 500; color: var(--fg); text-decoration: none; }
.pm-title span { font: 400 11px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pm-title:hover, .pm-title[aria-current="page"] { color: var(--accent); }
.pm-loop { position: relative; aspect-ratio: 160 / 100; width: 100%; max-width: 100%; color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.pm-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pm-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; font: 500 11px/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pm-node { position: absolute; transform: translate(-50%, -50%); width: 28%; min-height: 54px; display: grid; align-content: center; gap: 2px; padding: 8px 10px; text-align: center;
  background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; font-size: 14px; line-height: 1.25; box-shadow: 0 1px 0 rgba(0,0,0,.03);
  transition: border-color .15s, background-color .15s, color .15s, transform .15s; }
.pm-loop .pm-node:hover, .pm-loop .pm-node:focus-visible { border-color: var(--accent); transform: translate(-50%, -50%) scale(1.04); }
.pm-n { font: 400 11px var(--f-mono); color: var(--accent); }
.pm-l { font-weight: 500; }
.pm-node.is-cur { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.pm-node.is-cur .pm-n { color: inherit; opacity: .8; }
.pm-here { font: 500 10px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.pm-chain { list-style: none; margin: 0; padding: 0 !important; display: grid !important; gap: 0 !important; align-content: center; }
.pm-chain li { display: grid; }
.pm-chain li + li::before { content: "↓"; display: block; text-align: center; color: color-mix(in srgb, var(--accent) 70%, var(--line)); font-size: 18px; line-height: 1.6; }
.pm-chain .pm-node { position: static; transform: none; width: 100%; }
.pm-chain .pm-node:hover, .pm-chain .pm-node:focus-visible { border-color: var(--accent); }
.pm-bridge { display: grid; align-content: center; justify-items: center; gap: 4px; color: var(--muted); font: 400 11px/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; text-align: center; max-width: 90px; }
.pm-ba { font-size: 22px; color: var(--accent); line-height: 1; }
@media (max-width: 960px) {
  .pm-grid { grid-template-columns: minmax(0, 1fr); }
  .pm-bridge { max-width: none; grid-auto-flow: column; justify-content: center; gap: 10px; }
  .pm-ba { transform: rotate(90deg); }
  .pm-chain { display: flex !important; align-items: stretch; gap: 0 !important; }
  .pm-chain li { flex: 1 1 0; min-width: 0; display: flex; align-items: center; }
  .pm-chain li + li::before { content: "→"; padding-inline: 6px; }
}
@media (max-width: 620px) {
  .pm-loop { aspect-ratio: auto; display: grid; gap: 8px; }
  .pm-svg, .pm-center { display: none; }
  .pm-loop .pm-node { position: static; transform: none; width: 100%; text-align: left; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; min-height: 0; }
  .pm-loop .pm-node:hover, .pm-loop .pm-node:focus-visible { transform: none; }
  .pm-loop .pm-node .pm-here { grid-column: 2; }
  .pm-chain { display: grid !important; grid-template-columns: minmax(0, 1fr); }
  .pm-chain li { display: grid; }
  .pm-chain li + li::before { content: "↓"; padding: 0; }
  .pm-chain .pm-node { text-align: left; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; }
  .pm-chain .pm-node .pm-here { grid-column: 2; }
}
.prose figure.fig img { max-width: min(100%, 760px); }

/* ---------- interactive org chart + matrix ---------- */
.orgx { display: grid; gap: 16px; padding: clamp(16px, 2.4vw, 28px); background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; margin-block: 1.6em; --lc: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.oc-scroll { overflow-x: auto; padding-bottom: 4px; }
.oc-tree, .oc-tree ul { display: flex; justify-content: center; list-style: none; margin: 0; padding: 0 !important; gap: 0 !important; position: relative; }
.oc-tree { min-width: 880px; }
.oc-tree ul { padding-top: 22px !important; }
.oc-tree li { display: flex; flex-direction: column; align-items: center; position: relative; padding: 22px 5px 0; }
.oc-tree > li { padding-top: 0; }
.oc-tree li::before, .oc-tree li::after { content: ""; position: absolute; top: 0; right: 50%; width: 50%; height: 22px; border-top: 1px solid var(--lc); }
.oc-tree li::after { right: auto; left: 50%; border-left: 1px solid var(--lc); }
.oc-tree li:first-child::before, .oc-tree li:last-child::after { border: 0; }
.oc-tree li:last-child::before { border-right: 1px solid var(--lc); border-radius: 0 6px 0 0; }
.oc-tree li:first-child::after { border-radius: 6px 0 0 0; }
.oc-tree li:only-child::before { display: none; }
.oc-tree li:only-child::after { border-top: 0; border-radius: 0; width: 0; }
.oc-tree > li::before, .oc-tree > li::after { display: none; }
.oc-tree ul::before { content: ""; position: absolute; top: 0; left: 50%; height: 22px; border-left: 1px solid var(--lc); }
.oc-node { display: grid; gap: 2px; align-content: center; width: 132px; min-height: 58px; padding: 8px 10px; text-align: center; font: inherit; font-size: 14px; line-height: 1.25;
  background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; transition: border-color .15s, background-color .15s, color .15s, transform .15s; }
.oc-node:hover, .oc-node:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.oc-node.is-proc { border-top: 3px solid var(--accent); }
.oc-node.is-sel { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.oc-node.is-sel .oc-s { color: inherit; opacity: .85; }
.oc-node.is-static { cursor: default; transform: none; }
.oc-t { font-weight: 500; }
.oc-s { font: 400 11px/1.3 var(--f-mono); color: var(--muted); }
.oc-detail { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.oc-panel { display: grid; gap: 10px; }
.oc-panel h3 { margin: 0 !important; font-size: 21px; font-weight: 500; }
.oc-panel h3 span { font-weight: 300; color: var(--muted); }
.oc-panel ul { margin: 0; padding-left: 1.2em; display: grid; gap: .4em; }
.oc-panel li::marker { color: var(--accent); }
.oc-note { border-left: 2px solid var(--accent); padding-left: 12px; color: var(--muted); }
@media (max-width: 720px) {
  .oc-tree { min-width: 0; display: block; }
  .oc-tree ul { display: block; padding: 0 0 0 16px !important; margin-left: 12px !important; border-left: 1px solid var(--lc); }
  .oc-tree li { display: block; padding: 8px 0 0; }
  .oc-tree > li { padding-top: 0; }
  .oc-tree li::before, .oc-tree li::after, .oc-tree ul::before { display: none; }
  .oc-node { width: 100%; text-align: left; min-height: 0; }
  .oc-node:hover, .oc-node:focus-visible { transform: none; }
}
.mx-top { display: flex; justify-content: center; }
.mx-top .oc-node { width: auto; padding-inline: 18px; }
.mx-scroll { overflow-x: auto; }
.mx-t { border-collapse: separate; border-spacing: 6px; min-width: 520px; width: 100%; font-size: 14px; }
.mx-t th, .mx-t td { padding: 0; border: 0; white-space: normal; background: none; }
.mx-corner { vertical-align: bottom; text-align: left; }
.mx-h, .mx-c { width: 100%; height: 100%; min-height: 58px; display: grid; gap: 2px; align-content: center; padding: 8px 10px; font: inherit; font-size: 14px; line-height: 1.25; text-align: center;
  background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
.mx-h { border-top: 3px solid var(--accent); }
.mx-t th[scope="row"] .mx-h { border-top: 1px solid var(--line); border-left: 3px solid var(--accent); text-align: left; }
.mx-c { background: color-mix(in srgb, var(--bg) 70%, var(--bg-2)); }
.mx-c .oc-t { font-weight: 400; }
.mx-h:hover, .mx-c:hover, .mx-h:focus-visible, .mx-c:focus-visible { border-color: var(--accent); }
.mx-t .is-hl { background: color-mix(in srgb, var(--accent) 16%, var(--bg)); border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.mx-t .is-on { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.mx-t .is-on .oc-s { color: inherit; opacity: .85; }
.mx-h, .mx-c { padding: 8px 8px; } .mx-t { table-layout: fixed; }

/* ---------- motion ---------- */
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-in { position: relative; z-index: 1; }
.hero-home .hero-in > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero-home .hero-in > :nth-child(2) { animation-delay: .08s; }
.hero-home .hero-in > :nth-child(3) { animation-delay: .18s; }
.hero-home .hero-in > :nth-child(4) { animation-delay: .28s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-home { min-height: min(640px, 82vh); display: grid; align-items: center; }
.hero-home .hero-in { width: 100%; }
@media (max-width: 1100px) and (min-width: 821px) { .hero-home .hero-in h1 { max-width: 50%; } .hero-home .lead { max-width: 46%; } }
.hero-home::before { background: linear-gradient(90deg, rgba(12,10,9,.86) 0%, rgba(12,10,9,.7) 50%, rgba(12,10,9,.62) 100%); }
.stats-band { border-bottom: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 24px; padding-block: clamp(28px, 4vw, 44px); }
.stat { display: grid; gap: 6px; align-content: start; border-left: 2px solid var(--accent); padding-left: 16px; }
.stat-n { font-size: clamp(36px, 4.4vw, 52px); font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; color: var(--fg); }
.stat-l { color: var(--muted); font-size: 15px; max-width: 26ch; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* process map: arrows draw in, current step pulses */
@keyframes pm-draw { from { stroke-dashoffset: 120; } to { stroke-dashoffset: 0; } }
.pm-svg path { stroke-dasharray: 120; animation: pm-draw 1.2s ease-out both; }
.pm-svg path:nth-child(2) { animation-delay: .15s; } .pm-svg path:nth-child(3) { animation-delay: .3s; }
.pm-svg path:nth-child(4) { animation-delay: .45s; } .pm-svg path:nth-child(5) { animation-delay: .6s; }
@keyframes pm-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 70% { box-shadow: 0 0 0 12px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.pm-node.is-cur { animation: pm-pulse 2.4s ease-out 1s infinite; }
.btn.solid, .btn.ghost { transition: filter .15s, transform .15s; }
.btn.solid:hover, .btn.ghost:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) {
  .hero-home .hero-in > *, .pm-svg path, .pm-node.is-cur { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Source2Pay cycle (basics) ---------- */
.s2p { display: grid; gap: 16px; padding: clamp(16px, 2.4vw, 28px); background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; margin-block: 1.6em; }
.sp-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-filter .chip { font-size: 13px; padding: 6px 12px; }
.sp-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: auto auto 64px auto auto; column-gap: 26px; row-gap: 8px; }
.sp-lane { grid-column: 1 / -1; font: 500 11px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.sp-lane-s2c { grid-row: 1; }
.sp-lane-p2p { grid-row: 5; text-align: right; }
.sp-card { position: relative; display: grid; gap: 4px; align-content: start; text-align: left; padding: 12px 12px 14px; min-height: 112px; font: inherit; color: var(--fg);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; transition: border-color .15s, background-color .15s, color .15s, opacity .2s, transform .15s; }
.sp-card.sp-s2c { border-top: 3px solid var(--accent); }
.sp-card.sp-p2p { border-bottom: 3px solid color-mix(in srgb, var(--accent) 55%, var(--line)); }
.sp-card:hover, .sp-card:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.sp-n { font: 400 11px var(--f-mono); color: var(--accent); }
.sp-name { font-weight: 500; font-size: 16px; line-height: 1.25; }
.sp-q { font-size: 13px; color: var(--muted); line-height: 1.35; }
.sp-card.is-sel { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.sp-card.is-sel .sp-n, .sp-card.is-sel .sp-q { color: inherit; opacity: .85; }
/* arrows between cards */
.sp-card.sp-s2c:not([data-step="5"])::after { content: "→"; position: absolute; right: -20px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 16px; }
.sp-card.sp-p2p:not([data-step="8"])::after { content: "←"; position: absolute; left: -20px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 16px; }
.sp-hand, .sp-up { grid-row: 3; display: grid; justify-items: center; align-content: center; gap: 2px; text-align: center; font: 400 11px/1.3 var(--f-mono); color: var(--muted); }
.sp-hand { grid-column: 5; } .sp-up { grid-column: 1; }
.sp-hand b, .sp-up b, .sp-data b { color: var(--accent); font-size: 20px; font-weight: 400; line-height: 1; }
.sp-data { grid-column: 1 / 3; grid-row: 4; display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: 13px; color: var(--muted); border: 1px dashed color-mix(in srgb, var(--accent) 55%, var(--line)); border-radius: var(--r); }
.sp-data b { order: 2; margin-left: auto; }
.s2p[data-focus="s2c"] .sp-p2p, .s2p[data-focus="p2p"] .sp-s2c { opacity: .3; }
.s2p[data-focus="s2c"] .sp-lane-p2p, .s2p[data-focus="p2p"] .sp-lane-s2c, .s2p[data-focus] .sp-data, .s2p[data-focus] .sp-up { opacity: .35; }
.sp-detail { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.sp-panel { display: grid; gap: 10px; }
.sp-panel h3 { margin: 0 !important; font-size: 21px; font-weight: 500; }
.sp-panel dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px 24px; }
.sp-panel dt { font: 500 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sp-panel dd { margin: 2px 0 0; }
.sp-panel .more { margin-top: 4px; }
@keyframes sp-flow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.sp-hand b, .sp-up b, .sp-data b { animation: sp-flow 2.4s ease-in-out infinite; }
@media (max-width: 860px) {
  .sp-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 22px; }
  .sp-grid > * { grid-column: 1 !important; grid-row: auto !important; }
  .sp-lane-s2c { order: 0; } .sp-card[data-step="1"] { order: 1; } .sp-card[data-step="2"] { order: 2; } .sp-card[data-step="3"] { order: 3; }
  .sp-card[data-step="4"] { order: 4; } .sp-card[data-step="5"] { order: 5; } .sp-hand { order: 6; } .sp-lane-p2p { order: 7; text-align: left; }
  .sp-card[data-step="6"] { order: 8; } .sp-card[data-step="7"] { order: 9; } .sp-card[data-step="8"] { order: 10; } .sp-data { order: 11; } .sp-up { display: none; }
  .sp-card { min-height: 0; }
  .sp-card::after { content: "↓" !important; left: 50% !important; right: auto !important; top: auto !important; bottom: -21px; transform: translateX(-50%) !important; }
  .sp-card[data-step="5"]::after, .sp-card[data-step="8"]::after { content: none !important; }
  .sp-hand { grid-auto-flow: column; gap: 8px; margin-block: -10px; }
  .sp-data b { transform: rotate(90deg); }
}
@media (prefers-reduced-motion: reduce) { .sp-hand b, .sp-up b, .sp-data b { animation: none; } }

/* language switch */
.nav li.lang { display: flex; align-items: center; }
.nav li.lang a { font-family: "Roboto Mono", ui-monospace, monospace; font-size: 13px; font-weight: 500; letter-spacing: .08em; padding: 5px 8px; margin-left: 6px; border: 1px solid rgba(212,190,165,.45); border-radius: 999px; line-height: 1; }
.nav li.lang a:hover { border-color: var(--sand); background: rgba(212,190,165,.12); }
@media (max-width: 900px) {
  .nav li.lang { margin-top: 10px; }
  .nav li.lang a { margin-left: 0; padding: 8px 14px; }
}

/* rich blog posts: lead, svg figures, example cards, calculator, closing */
.prose .post-lead { font-size: 21px; font-weight: 300; line-height: 1.6; color: var(--fg); }
.prose figure.svg-fig { margin: 2em 0; }
.prose figure.svg-fig svg { display: block; width: 100%; height: auto; border-radius: var(--r); }
.prose figcaption { margin-top: 10px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.prose caption { caption-side: top; text-align: left; padding: 10px 14px; font-size: 13px; color: var(--muted); }
.ex-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 1.8em 0; }
.ex-card { border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; background: var(--bg); font-size: 15px; line-height: 1.6; }
.ex-card strong { display: block; font-size: 17px; font-weight: 500; margin: 8px 0 6px; }
.ex-card p { margin: 0; }
.calc { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; margin: 1.8em 0; font-size: 15px; }
.calc p { margin: .4em 0 .8em; }
.calc label { display: block; margin: 14px 0; }
.calc input[type=range] { display: block; width: 100%; margin-top: 6px; accent-color: var(--accent); }
.calc-result { font-size: 28px; font-weight: 500; color: var(--accent); margin-top: 10px; }
.calc-note { font-size: 13px; color: var(--muted); }
.post-closing { background: #1f1b17; color: #ece6de; border-radius: var(--r); padding: 26px 28px; margin: 1.6em 0; }
.post-closing h3 { margin-top: 0; color: #d4bea5; }
.post-closing p:last-child { margin-bottom: 0; }
.prose .post-note { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 2em; }
@media (max-width: 700px) { .ex-grid { grid-template-columns: 1fr; } .prose .post-lead { font-size: 19px; } }
