/* Stapur — site styles (Field Notes design) */

:root {
  --bg: #ffffff;
  --ink: #15171b;
  --mute: #5b606a;
  --line: #e2e3e6;
  --soft: #f3f4f2;
  --soft-line: #d9dbd7;
  --acc: #15171b;
  --acc-dark: #3a3d44;
  --acc-tint: #ecedef;
  --on-dark: #ffffff;
  --on-dark-mute: #c9d1cc;
  --on-dark-line: #2e3238;
  --on-dark-acc: #c9ccd1;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 5.5vw, 80px);
  --section: clamp(72px, 9vw, 128px);
  --max: 1440px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 400; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; 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;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 4px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .on-green :focus-visible { outline-color: #ffffff; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Type helpers ---------- */
.kicker {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--acc);
}
.on-dark .kicker { color: var(--on-dark-acc); }
.display { font-family: var(--serif); letter-spacing: -0.03em; line-height: 1.05; }
.h2 { font-family: var(--serif); font-size: clamp(2.125rem, 4vw, 3.25rem); line-height: 1.07; letter-spacing: -0.025em; }
.lead { font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); line-height: 1.6; color: var(--mute); }
.on-dark .lead { color: var(--on-dark-mute); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  padding: 14px 28px; border-radius: 999px; border: 0;
  background: var(--ink); color: #fff; font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--acc-dark); }
/* On dark or green backgrounds, invert to white so the button stays visible. */
.on-dark .btn, .on-green .btn { background: #fff; color: var(--ink); }
.on-dark .btn:hover, .on-green .btn:hover { background: var(--acc-tint); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 10px 22px; font-size: .9375rem; }
.btn-lg { min-height: 60px; padding: 18px 34px; font-size: 1.125rem; }
.text-link { font-weight: 500; text-underline-offset: 4px; }
.text-link:hover { text-decoration-thickness: 2px; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--ink); color: #d9dbd8; font-size: .8125rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 10px; }
.topbar a { color: #fff; text-underline-offset: 3px; }

.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255,255,255,.88); backdrop-filter: blur(8px); } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 18px; }
.wordmark { font-family: var(--serif); font-size: 1.75rem; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }
.brand { display: inline-flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); }
.brand .wordmark { line-height: 1; }
.tagline { font-size: .75rem; font-weight: 500; letter-spacing: .06em; color: var(--mute); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: clamp(20px, 2.8vw, 40px); }
.nav-links { display: flex; gap: clamp(18px, 2.6vw, 40px); list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--mute); text-decoration: none; font-size: .9375rem; padding-block: 10px; }
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--ink); }
.nav-links .mobile-only { display: none; }
.menu-toggle {
  display: none; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); cursor: pointer;
}

/* ---------- Hero ---------- */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 520px); align-items: center; gap: clamp(40px, 5vw, 72px); padding-block: clamp(56px, 6vw, 88px) clamp(72px, 7vw, 104px); }
.hero-copy { display: flex; flex-direction: column; gap: 32px; padding-top: 24px; }
.hero h1 { font-size: clamp(2.75rem, 6.2vw, 5.25rem); }
.hero .lead { max-width: 37.5em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-top: 8px; }
.hero-figure { display: flex; flex-direction: column; gap: 14px; }
.hero-figure img { width: 100%; aspect-ratio: 460 / 560; object-fit: cover; border-radius: 4px; background: var(--soft); }
.hero-figure figcaption { font-size: .8125rem; line-height: 1.5; font-style: italic; color: var(--mute); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-head { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; margin-bottom: 56px; }
.section-head .title-group { display: flex; flex-direction: column; gap: 20px; }
.rule-top { border-top: 2px solid var(--ink); padding-top: 40px; }

/* ---------- Capabilities ---------- */
.capabilities { padding-top: 56px; }
.cap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.cap {
  display: flex; flex-direction: column; gap: 18px; padding: clamp(28px, 3vw, 40px);
  background: var(--soft); border-radius: 4px;
}
.cap-top { display: flex; align-items: center; justify-content: space-between; }
.cap-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; background: var(--acc); color: #fff; }
.cap-num { font-family: var(--serif); font-style: italic; font-size: 1.375rem; color: var(--acc); }
.cap h3 { font-family: var(--serif); font-size: clamp(1.75rem, 2.6vw, 2.25rem); letter-spacing: -0.025em; line-height: 1.1; }
.cap > p { color: var(--mute); }
.cap-list { list-style: none; margin: 0; padding: 0; flex: 1; }
.cap-list li { display: flex; gap: 10px; align-items: flex-start; padding-block: 11px; border-bottom: 1px solid var(--soft-line); font-size: .9375rem; font-weight: 500; }
.cap-list .icon { width: 16px; height: 16px; margin-top: 4px; color: var(--acc); }
.cap-outcome { display: flex; gap: 10px; align-items: center; padding-top: 8px; font-size: .9375rem; font-weight: 600; }
.cap-outcome .icon { width: 16px; height: 16px; }

.cap.featured { background: var(--acc); color: #fff; }
.cap.featured .cap-icon { background: #fff; color: var(--acc); }
.cap.featured .cap-num { color: #c9ccd1; }
.cap.featured > p { color: #d6d8dc; }
.cap.featured .cap-list li { border-color: #3a3d44; }
.cap.featured .cap-list .icon { color: #fff; }
.cap.featured a { color: #fff; font-size: .875rem; font-weight: 600; text-underline-offset: 3px; }

/* ---------- Agent index ---------- */
.agents .wrap { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); }
.agents-intro { display: flex; flex-direction: column; gap: 20px; align-self: start; position: sticky; top: 110px; }
.agent-index { list-style: none; margin: 0; padding: 0; counter-reset: agent; }
.agent-index li { display: grid; grid-template-columns: 40px minmax(0, 1fr) 160px; gap: 32px; padding-block: 26px; border-bottom: 1px solid var(--line); }
.agent-index li::before { counter-increment: agent; content: counter(agent, decimal-leading-zero); font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--acc); }
.agent-index h3 { font-family: var(--serif); font-size: 1.625rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.agent-index p { color: var(--mute); font-size: .9375rem; line-height: 1.55; }
.agent-index .metric { font-size: .8125rem; font-weight: 600; text-align: right; padding-top: 8px; }

/* ---------- CoE (dark) ---------- */
.on-dark { background: var(--ink); color: var(--on-dark); }
/* CoE deep dive */
.coe-intro .wrap { padding-block: var(--section) clamp(64px, 7vw, 96px); }
.coe-header { display: flex; flex-direction: column; gap: 24px; max-width: 1000px; margin-bottom: 64px; }
.coe-header h2 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1; }
.coe-header .lead { max-width: 44em; }
.coe-short { padding-block: var(--section); display: flex; flex-direction: column; gap: 56px; }
.coe-short .coe-header { margin-bottom: 0; }
.coe-glance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--on-dark-line); }
.coe-glance li { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-bottom: 1px solid var(--on-dark-line); border-left: 1px solid var(--on-dark-line); }
.coe-glance li:nth-child(3n+1) { border-left: 0; padding-left: 0; }
.coe-glance li:nth-child(3n) { padding-right: 0; }
.coe-glance-head { display: flex; align-items: center; gap: 12px; }
.coe-glance h3 { font-family: var(--serif); font-size: 1.625rem; letter-spacing: -0.02em; }
.coe-glance p { color: var(--on-dark-mute); font-size: .9375rem; line-height: 1.5; }
.coe-foot { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.coe-foot p { color: var(--on-dark-mute); font-size: 1.0625rem; max-width: 40em; }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.compare-col { padding: clamp(24px, 3vw, 40px); border: 1px solid var(--on-dark-line); border-radius: 4px; }
.compare-col h3 { font-family: var(--serif); font-size: 1.625rem; letter-spacing: -0.02em; margin-bottom: 16px; color: var(--on-dark-mute); }
.compare-col ul { list-style: none; margin: 0; padding: 0; }
.compare-col li { display: flex; gap: 12px; align-items: flex-start; padding-block: 12px; border-top: 1px solid var(--on-dark-line); color: var(--on-dark-mute); }
.compare-col li .icon { width: 18px; height: 18px; margin-top: 4px; color: #e08a7a; }
.compare-good { background: #fff; border-color: #fff; }
.compare-good h3, .compare-good li { color: var(--ink); }
.compare-good li { border-color: var(--line); }
.compare-good li .icon { color: var(--ink); }

.coe-block { padding-block: clamp(64px, 8vw, 112px); border-top: 1px solid var(--line); }
.coe-block.on-dark { border-top: 0; }
.coe-catalog { background: var(--soft); border-top: 0; }
.coe-subhead { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin-bottom: 48px; }
.coe-step-label { font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--acc); }
.on-dark .coe-step-label { color: var(--on-dark-acc); }
.coe-subhead h3 { font-family: var(--serif); font-size: clamp(1.875rem, 3.4vw, 2.75rem); line-height: 1.1; letter-spacing: -0.025em; }
.coe-subhead > p:last-child { color: var(--mute); font-size: 1.0625rem; }
.on-dark .coe-subhead > p:last-child { color: var(--on-dark-mute); }

.blocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.block { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 3vw, 36px); background: #fff; border-radius: 4px; }
.block h4 { font-family: var(--serif); font-size: 2.25rem; letter-spacing: -0.025em; }
.block > p { color: var(--mute); }
.block .block-label { font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); padding-top: 8px; }

.roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 2px solid var(--ink); }
.roles > div { padding: 24px 24px 28px 0; border-bottom: 1px solid var(--line); }
.roles > div:not(:nth-child(4n+1)) { padding-left: 24px; border-left: 1px solid var(--line); }
.roles dt { font-family: var(--serif); font-size: 1.375rem; letter-spacing: -0.015em; margin-bottom: 8px; }
.roles dd { color: var(--mute); font-size: .9375rem; line-height: 1.55; }
.roles .role-stapur dt { color: var(--acc); }

.coe-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 480px); gap: clamp(40px, 6vw, 80px); align-items: start; margin-bottom: 72px; }
.coe-top .coe-subhead { margin-bottom: 0; }

.coe-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 96px); }
.coe-two .coe-subhead { margin-bottom: 28px; }
.checklist { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.checklist li { display: flex; gap: 14px; align-items: flex-start; padding-block: 16px; border-bottom: 1px solid var(--line); font-weight: 500; }
.checklist .icon { width: 20px; height: 20px; color: var(--acc); margin-top: 2px; }
.measures { margin: 0; border-top: 2px solid var(--ink); }
.measures > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.measures dt { font-weight: 600; }
.measures dd { color: var(--mute); }

.phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.phases li { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 2px solid var(--acc); }
.phase-num { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--acc); }
.phases h4 { font-family: var(--serif); font-size: 1.75rem; letter-spacing: -0.02em; }
.phases p { color: var(--mute); font-size: .9375rem; }
.coe-cta { margin-top: 56px; padding: 32px; background: #fff; border-radius: 6px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.coe-cta p { font-family: var(--serif); font-size: 1.5rem; line-height: 1.3; max-width: 30em; }

.catalog-card { background: #fff; color: var(--ink); border-radius: 6px; }
.catalog-card header { padding: 24px 28px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.card-type-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.card-type { font-size: .75rem; font-weight: 600; letter-spacing: .13em; color: var(--mute); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--acc-tint); color: var(--acc); font-size: .75rem; font-weight: 600; }
.pill .icon { width: 14px; height: 14px; }
.catalog-card h4 { font-family: var(--serif); font-size: 1.75rem; letter-spacing: -0.02em; }
.approvals { list-style: none; margin: 0; padding: 8px 28px; }
.approvals li { display: grid; grid-template-columns: 18px 130px minmax(0, 1fr); gap: 12px; align-items: center; padding-block: 14px; border-bottom: 1px solid var(--line); font-size: .875rem; color: var(--mute); }
.approvals li .icon { width: 18px; height: 18px; color: var(--acc); }
.approvals strong { color: var(--ink); font-size: .9375rem; }
.catalog-card footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 28px; font-size: .875rem; font-weight: 500; }
.catalog-card footer em { color: var(--mute); font-size: .75rem; }

.lifecycle { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--on-dark-line); }
.lifecycle li { display: flex; flex-direction: column; gap: 14px; padding: 32px 24px 0; border-left: 1px solid var(--on-dark-line); }
.lifecycle li:first-child { border-left: 0; padding-left: 0; }
.step-head { display: flex; align-items: center; gap: 12px; }
.step-num { font-family: var(--serif); font-style: italic; font-size: 1.125rem; color: var(--on-dark-acc); }
.lifecycle h4 { font-family: var(--serif); font-size: 1.625rem; letter-spacing: -0.02em; }
.lifecycle p { color: var(--on-dark-mute); font-size: .9375rem; line-height: 1.55; }

/* ---------- Foundations ---------- */
.foundations-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.panel { display: flex; flex-direction: column; gap: 24px; padding: clamp(28px, 3.4vw, 48px); border-radius: 4px; background: var(--soft); }
.panel.on-dark { background: var(--ink); }
.panel-tag { display: flex; align-items: center; gap: 10px; font-size: .75rem; font-weight: 600; letter-spacing: .15em; color: var(--acc); }
.panel.on-dark .panel-tag { color: var(--on-dark-acc); }
.panel h3 { font-family: var(--serif); font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.1; letter-spacing: -0.025em; }
.panel > p { color: var(--mute); }
.panel.on-dark > p { color: var(--on-dark-mute); }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 20px; padding-block: 16px; border-top: 1px solid var(--soft-line); }
.panel.on-dark .steps li { border-color: var(--on-dark-line); }
.steps .step-num { color: var(--acc); }
.panel.on-dark .steps .step-num { color: var(--on-dark-acc); }
.steps h4 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.steps p { font-size: .875rem; line-height: 1.5; color: var(--mute); }
.panel.on-dark .steps p { color: var(--on-dark-mute); }
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 24px 0 0; border-top: 1px solid var(--on-dark-line); }
.timeline strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin-bottom: 6px; }
.timeline span { font-size: .8125rem; line-height: 1.45; color: var(--on-dark-mute); }

/* ---------- Statement ---------- */
.on-green { background: var(--acc); color: #fff; }
.statement .wrap { display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; padding-block: 120px; }
.statement blockquote { margin: 0; max-width: 26em; font-family: var(--serif); font-size: clamp(1.625rem, 3vw, 2.5rem); line-height: 1.25; letter-spacing: -0.02em; }
.statement p { font-size: .8125rem; font-weight: 600; letter-spacing: .15em; color: #c9ccd1; }

/* ---------- Why Stapur ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); list-style: none; margin: 0; padding: 0; }
.why-grid li { display: flex; flex-direction: column; gap: 14px; border-top: 2px solid var(--ink); padding-top: 28px; }
.why-grid .icon { width: 26px; height: 26px; color: var(--acc); }
.why-key { font-size: .75rem; font-weight: 600; letter-spacing: .15em; color: var(--mute); }
.why-grid h3 { font-family: var(--serif); font-size: 1.75rem; line-height: 1.15; letter-spacing: -0.02em; }
.why-grid p { color: var(--mute); }
.why-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
.why-grid .text-link { margin-top: 4px; font-size: .9375rem; }
.why-lead { border-top-width: 4px; }

/* ---------- Insights ---------- */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; list-style: none; margin: 0; padding: 0; }
.post { display: flex; flex-direction: column; gap: 16px; position: relative; }
.post img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; background: var(--soft); }
.post-meta { display: flex; gap: 12px; font-size: .8125rem; color: var(--mute); }
.post-meta span { color: var(--acc); font-weight: 600; }
.post h3 { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.015em; }
.post h3 a { text-decoration: none; }
.post h3 a::after { content: ""; position: absolute; inset: 0; }
.post:hover h3 a { text-decoration: underline; text-underline-offset: 4px; }
.post p { color: var(--mute); font-size: .9375rem; }

/* ---------- At a glance ---------- */
.glance { background: var(--soft); }
.facts { margin: 0; }
.facts > div { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 48px; align-items: baseline; padding-block: 28px; border-top: 1px solid #d3d5d1; }
.facts dt { font-family: var(--serif); font-size: 1.625rem; letter-spacing: -0.02em; }
.facts dd { font-size: 1.0625rem; line-height: 1.55; }

/* ---------- Contact ---------- */
.contact .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 480px); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact h2 { font-size: clamp(2.5rem, 5.4vw, 5rem); line-height: 1; letter-spacing: -0.03em; margin-bottom: 24px; }
.contact .lead { max-width: 35em; margin-bottom: 28px; }
.contact-mail { display: inline-flex; align-items: center; gap: 10px; font-size: 1.125rem; font-weight: 600; color: var(--acc); text-underline-offset: 4px; }
.contact-form { display: flex; flex-direction: column; gap: 18px; padding: 32px; background: var(--soft); border-radius: 6px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .875rem; font-weight: 600; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #8a8f98; border-radius: 4px;
  background: #fff; color: var(--ink); font: 1rem/1.5 var(--sans);
}
.field textarea { resize: vertical; min-height: 128px; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--acc); }
.field [aria-invalid="true"] { border-color: #b42318; }
.form-error { color: #b42318; font-size: .875rem; font-weight: 500; }
.form-note { color: var(--mute); font-size: .8125rem; }
.contact-form .btn { align-self: flex-start; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b8bbb7; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; padding-block: 40px; }
.site-footer .wordmark { color: #fff; font-size: 1.5rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: #fff; text-decoration: none; font-size: .875rem; padding-block: 6px; display: inline-block; }
.footer-links a:hover { text-decoration: underline; }
.site-footer small { font-size: .875rem; }

/* ---------- Article pages ---------- */
.article-head { padding-block: clamp(48px, 6vw, 88px) 40px; }
.article-head .wrap, .article-body .wrap { max-width: 860px; }
.breadcrumb { font-size: .875rem; margin-bottom: 32px; }
.breadcrumb a { color: var(--mute); text-underline-offset: 3px; }
.article-head h1 { font-size: clamp(2.25rem, 4.6vw, 3.75rem); margin-block: 16px 20px; }
.article-hero { max-width: 1100px; margin: 0 auto 56px; padding-inline: var(--gutter); }
.article-hero { display: flex; justify-content: center; }
.article-hero img { width: auto; max-width: 100%; max-height: 520px; border-radius: 4px; }
.prose { font-size: 1.125rem; line-height: 1.75; padding-bottom: var(--section); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--serif); font-size: 2rem; line-height: 1.2; letter-spacing: -0.02em; margin-top: 2em; }
.prose h3 { font-size: 1.1875rem; font-weight: 600; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--acc); text-underline-offset: 3px; }
.article-cta { margin-top: 3em; padding: 32px; background: var(--soft); border-radius: 6px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.article-cta p { font-family: var(--serif); font-size: 1.5rem; line-height: 1.25; margin: 0; }

.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: var(--section); }
.notfound h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-block: 16px 20px; }
.notfound-actions { margin-top: 28px; }


/* ---------- Illustrative UI panels (hero run, CoE catalog) ---------- */
:root { --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.run-panel, .cat-panel { margin: 0; background: #fff; color: var(--ink); border-radius: 10px; font-size: .8125rem; line-height: 1.4; overflow: hidden; }
.run-panel { border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(21, 23, 27, .08); }
.run-panel .icon, .cat-panel .icon { width: 15px; height: 15px; }
.rp-top, .cp-foot, .rp-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; }
.rp-top { border-bottom: 1px solid var(--line); }
.rp-title, .cp-title { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.rp-title code { font-family: var(--mono); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 .6875rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.rp-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.rp-catalog { padding: 14px 20px; background: var(--soft); }
.rp-label { font: 500 .6875rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.rp-catalog ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rp-catalog li { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 9px 12px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.rp-kind, .cp-kind { font: 500 .6875rem/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--mute); }
.rp-catalog strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-ver, .cp-ver { font-family: var(--mono); font-size: .75rem; color: var(--mute); font-weight: 400; }
.rp-ok, .cp-ok { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: .75rem; white-space: nowrap; }
.rp-ok .icon, .cp-ok .icon { width: 14px; height: 14px; }
.run-panel .rp-lanes { list-style: none; margin: 0; padding: 6px 20px; }
.rp-lanes li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.rp-lanes li:last-child { border-bottom: 0; }
.rp-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; transition: background-color .3s ease, color .3s ease; }
.rp-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rp-body strong { font-weight: 600; }
.rp-body > span:not(.rp-bar) { color: var(--mute); font-size: .75rem; }
.rp-st { font: 500 .6875rem/1.4 var(--mono); white-space: nowrap; }
.rp-bar { display: none; height: 3px; margin-top: 6px; background: var(--line); border-radius: 2px; overflow: hidden; }
.rp-bar i { display: block; height: 100%; width: 60%; background: var(--ink); border-radius: 2px; }
.rp-lanes li[data-state="run"] .rp-bar { display: block; }
.rp-lanes li[data-state="queued"] .rp-ico { background: var(--soft); color: var(--mute); }
.rp-lanes li[data-state="queued"] strong, .rp-lanes li[data-state="queued"] .rp-st { color: var(--mute); }
.rp-lanes li.gate { margin-block: 6px; padding: 11px 12px; background: var(--soft); border-radius: 6px; border-bottom: 0; }
.rp-lanes li.gate .rp-ico { background: #fff; color: var(--ink); border: 1px solid var(--ink); }
.rp-lanes li.gate[data-state="gate-wait"] .rp-st { font-weight: 700; }
.rp-foot, .cp-foot { border-top: 1px solid var(--line); color: var(--mute); font-size: .75rem; }
.rp-foot em, .cp-foot em { font-size: .6875rem; }
.run-panel.is-live .rp-lanes li[data-state="run"] .rp-bar i { animation: rp-fill 1.5s linear forwards; }
@keyframes rp-fill { from { width: 0; } to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .run-panel.is-live .rp-lanes li[data-state="run"] .rp-bar i { animation: none; } }

.coe-top-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 560px); gap: 64px; align-items: start; }
.coe-top-row .coe-header h2 { font-size: clamp(2.5rem, 4.6vw, 4rem); }
.cp-top { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cp-title-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cp-title { font-weight: 600; font-size: .9375rem; }
.cp-title .icon { width: 18px; height: 18px; }
.cp-count { font: 500 .6875rem/1.4 var(--mono); color: var(--mute); }
.cp-search { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--mute); font-size: .75rem; }
.cp-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.cp-tabs span { padding: 4px 12px; border-radius: 999px; background: var(--soft); font-weight: 600; font-size: .75rem; }
.cp-tabs .on { background: var(--ink); color: #fff; }
.cat-panel .cp-list { list-style: none; margin: 0; padding: 4px 20px; }
.cp-list > li { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cp-list > li:last-child { border-bottom: 0; }
.cp-kind { padding-top: 2px; }
.cp-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cp-body strong { font-weight: 600; }
.cp-body > span { color: var(--mute); font-size: .75rem; }
.cp-st { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.cp-reuse { font: 400 .6875rem/1.4 var(--mono); color: var(--mute); white-space: nowrap; }
.cp-pill { padding: 3px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: .75rem; white-space: nowrap; }
.cp-pill-line { background: transparent; color: var(--mute); border: 1px solid #8a8f98; }
.cp-list > li.cp-review { margin-block: 6px; padding: 12px; background: var(--soft); border-radius: 6px; border-bottom: 0; }
.cp-approvers { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 8px 0 0; padding: 0; }
.cp-approvers li { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--mute); font-size: .75rem; font-weight: 500; }
.cp-approvers li.ok { border-color: var(--ink); color: var(--ink); }
.cp-approvers .icon { width: 12px; height: 12px; }
.cp-proposed strong { color: var(--mute); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .lifecycle { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
  .lifecycle li:nth-child(4) { border-left: 0; padding-left: 0; }
  .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roles > div:not(:nth-child(4n+1)) { padding-left: 0; border-left: 0; }
  .roles > div:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--line); }
  .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .agent-index li { grid-template-columns: 40px minmax(0, 1fr); }
  .agent-index .metric { grid-column: 2; text-align: left; padding-top: 0; color: var(--acc); }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .nav { position: static; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px; background: #fff; border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding-block: 14px; font-size: 1.0625rem; color: var(--ink); border-bottom: 1px solid var(--line); }
  .header-inner { position: relative; }
  .hero .wrap, .coe-top, .contact .wrap, .agents .wrap { grid-template-columns: minmax(0, 1fr); }
  .agents-intro { position: static; }
  .hero-figure { max-width: 520px; }
  .section-head { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .foundations-grid { grid-template-columns: minmax(0, 1fr); }
  .why-grid { grid-template-columns: minmax(0, 1fr); }
  .compare, .blocks, .coe-two, .coe-top-row { grid-template-columns: minmax(0, 1fr); }
  .run-panel, .cat-panel { max-width: 600px; }
  .coe-glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coe-glance li:nth-child(n) { border-left: 1px solid var(--on-dark-line); padding: 24px; }
  .coe-glance li:nth-child(2n+1) { border-left: 0; padding-left: 0; }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

@media (max-width: 720px) {
  .topbar .wrap { flex-direction: column; gap: 4px; }
  .nav > .btn { display: none; }
  .nav-links .mobile-only { display: block; }
  .nav-links .mobile-only a { color: var(--acc); font-weight: 600; border-bottom: 0; }
  .cap-grid, .posts { grid-template-columns: minmax(0, 1fr); }
  .lifecycle { grid-template-columns: minmax(0, 1fr); }
  .lifecycle li, .lifecycle li:nth-child(4) { border-left: 0; padding: 24px 0 0; border-top: 1px solid var(--on-dark-line); }
  .lifecycle li:first-child { border-top: 0; }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roles, .phases { grid-template-columns: minmax(0, 1fr); }
  .rp-catalog li { grid-template-columns: minmax(0, 1fr) auto; }
  .rp-catalog .rp-kind, .rp-catalog .rp-ver { display: none; }
  .cp-list > li { grid-template-columns: minmax(0, 1fr) auto; }
  .cp-list .cp-kind { display: none; }
  .coe-glance { grid-template-columns: minmax(0, 1fr); }
  .coe-glance li:nth-child(n) { border-left: 0; padding: 22px 0; }
  .roles > div:nth-child(2n) { padding-left: 0; border-left: 0; }
  .measures > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .approvals li { grid-template-columns: 18px minmax(0, 1fr); }
  .approvals li span { grid-column: 2; }
  .statement .wrap { padding-block: 80px; }
  .contact-form { padding: 24px; }
}

@media print {
  .site-header, .topbar, .contact-form, .menu-toggle { display: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .on-dark, .on-green, .panel.on-dark { background: #fff !important; color: #000 !important; }
}
