:root {
  color-scheme: dark;
  --bg: #161616;
  --bg-deep: #101010;
  --surface-1: #1f1f1f;
  --surface-2: #2a2a29;
  --hairline: #333332;
  --text-primary: #ffffff;
  --text-secondary: #c3c2b7;
  --text-muted: #8f8e86;
  --brand: #a01d2b;
  --brand-bright: #d0344a;
  /* one accent per case study, used only to tie a project to its place in the chain */
  --waste: #e8a33d;
  --cfr: #4c9be8;
  --promo: #e0485e;
  --fc: #5cbf8a;
  --pnl: #a98bf0;
  --radius: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
html, body { margin: 0; background: var(--bg); color: var(--text-primary); }
body { font: 16px/1.55 Inter, system-ui, -apple-system, Segoe UI, sans-serif; overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 3px; border-radius: 6px; }

/* ---------- header ---------- */
header.top { position: sticky; top: 0; z-index: 20; background: rgba(18, 18, 18, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 3px solid var(--brand); }
header.top .bar { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 30px; height: auto; }
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: .2px; line-height: 1.1; }
.brand-name .camp { color: var(--brand-bright); }
.brand-sub { color: var(--text-secondary); font-size: 12.5px; }
.spacer { flex: 1; }
nav.links { display: flex; gap: 2px; }
nav.links a { color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
nav.links a:hover { color: #fff; background: var(--surface-1); }
.lang { display: flex; border: 1px solid var(--hairline); border-radius: 999px; overflow: hidden; flex: none; }
.lang button { background: none; border: 0; color: var(--text-secondary); padding: 6px 12px; font-size: 13px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--brand); color: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; padding: 72px 0 40px; }
.hero::before { content: ""; position: absolute; inset: -120px 0 auto 0; height: 760px; z-index: -1;
  background:
    radial-gradient(520px 380px at 78% 40%, rgba(160, 29, 43, .30), transparent 70%),
    radial-gradient(700px 420px at 10% 0%, rgba(255, 255, 255, .04), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-secondary); border: 1px solid var(--hairline); border-radius: 999px; padding: 4px 12px; margin-bottom: 22px; background: rgba(31, 31, 31, .6); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-bright); box-shadow: 0 0 0 4px rgba(208, 52, 74, .18); }
.hero h1 { font-size: clamp(34px, 5.6vw, 64px); line-height: 1.04; letter-spacing: -.025em; margin: 0 0 22px; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--brand-bright); }
.lead { color: var(--text-secondary); font-size: clamp(16px, 1.6vw, 18.5px); max-width: 640px; margin: 0 0 30px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 10px; padding: 11px 18px; font-size: 15px; font-weight: 600; text-decoration: none; border: 1px solid var(--hairline); color: var(--text-primary); background: var(--surface-1); transition: background .2s, border-color .2s, transform .2s var(--ease); }
.btn:hover { border-color: var(--text-muted); transform: translateY(-1px); }
.btn.primary { background: var(--brand); border-color: var(--brand); }
.btn.primary:hover { background: var(--brand-bright); border-color: var(--brand-bright); }
.btn svg { width: 16px; height: 16px; }

.hero-mark { position: relative; justify-self: center; width: min(320px, 70vw); aspect-ratio: 1; display: grid; place-items: center; }
.hero-mark::before { content: ""; position: absolute; inset: 6%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .06); }
.hero-mark::after { content: ""; position: absolute; inset: 20%; border-radius: 50%; border: 1px dashed rgba(208, 52, 74, .35); animation: spin 60s linear infinite; }
.hero-mark img { width: 56%; filter: drop-shadow(0 18px 40px rgba(160, 29, 43, .35)); }
.ember { position: absolute; bottom: 30%; left: 50%; width: 4px; height: 4px; border-radius: 50%; background: #ff8a5c; opacity: 0; animation: ember 4.5s ease-out infinite; }
.ember:nth-child(2) { margin-left: -18px; animation-delay: 1.4s; }
.ember:nth-child(3) { margin-left: 16px; animation-delay: 2.6s; width: 3px; height: 3px; }
.ember:nth-child(4) { margin-left: -4px; animation-delay: 3.5s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ember { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: .9; } 100% { opacity: 0; transform: translate(10px, -130px); } }

/* headline figures */
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 56px; }
.figure { position: relative; display: block; text-decoration: none; background: linear-gradient(180deg, var(--surface-1), rgba(31, 31, 31, .55)); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 22px 22px 20px; overflow: hidden; transition: border-color .25s, transform .25s var(--ease); }
.figure::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.figure:hover { transform: translateY(-2px); border-color: var(--accent); }
.figure .num { font-size: clamp(32px, 4vw, 46px); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.figure .label { color: var(--text-secondary); font-size: 14.5px; margin-top: 8px; }
.figure .from { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 12.5px; margin-top: 14px; }
.figure .from::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.figure .arrow { position: absolute; right: 18px; top: 20px; color: var(--text-muted); transition: transform .25s var(--ease), color .25s; }
.figure:hover .arrow { transform: translate(3px, -3px); color: var(--accent); }

.facts { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 26px; padding: 16px 4px 0; border-top: 1px solid var(--hairline); color: var(--text-muted); font-size: 13.5px; }
.facts b { color: var(--text-primary); font-size: 17px; font-weight: 700; margin-right: 6px; font-variant-numeric: tabular-nums; }

/* ---------- sections ---------- */
section.block { padding: 84px 0 0; }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-bright); margin: 0 0 10px; }
h2.title { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 12px; max-width: 760px; }
p.sub { color: var(--text-secondary); max-width: 700px; margin: 0; }

/* ---------- value chain ---------- */
.chain { margin-top: 34px; display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 18px; row-gap: 10px; }
.station { position: relative; background: var(--surface-1); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 18px 16px; margin-bottom: 8px; transition: border-color .25s, background .25s; }
.station:not(:nth-child(4))::after { content: ""; position: absolute; right: -15px; top: 50%; width: 12px; height: 12px; border-top: 2px solid var(--text-muted); border-right: 2px solid var(--text-muted); transform: translateY(-50%) rotate(45deg); opacity: .6; }
.station .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-secondary); margin-bottom: 12px; }
.station .ico svg { width: 21px; height: 21px; }
.station h3 { font-size: 16px; margin: 0 0 4px; }
.station p { margin: 0; font-size: 13.5px; color: var(--text-muted); line-height: 1.45; }
.station .tags { display: none; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.station .tags span { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); }
.station.lit { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface-1)); }
.span { --accent: var(--text-muted); display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; position: relative; border-radius: 10px; padding: 11px 16px; font-size: 14px; background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); transition: background .25s, transform .25s var(--ease); }
.span b { color: var(--accent); font-weight: 600; }
.span small { color: var(--text-secondary); font-size: 13px; }
.span .go { color: var(--accent); flex: none; }
.span:hover, .span.lit { background: color-mix(in srgb, var(--accent) 26%, transparent); }
.span-waste { grid-column: 1 / 3; }
.span-cfr { grid-column: 1 / 4; }
.span-promo { grid-column: 3 / 5; }
.chain.dim .span:not(.lit) { opacity: .45; }

/* ---------- projects ---------- */
.project { display: grid; grid-template-columns: 1.08fr 1fr; gap: 52px; align-items: center; padding: 64px 0; border-bottom: 1px solid var(--hairline); }
.project:last-child { border-bottom: 0; }
.project.flip .media { order: 2; }
.media { position: relative; padding-bottom: 14%; }
.frame { border-radius: 12px; overflow: hidden; background: var(--bg-deep); border: 1px solid #3a3a39; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 0, 0, .4); }
.frame .chrome { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #1b1b1b; border-bottom: 1px solid #2c2c2b; }
.frame .chrome i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a39; }
.frame .chrome span { margin-left: 10px; font-size: 11.5px; color: var(--text-muted); background: #232322; border-radius: 6px; padding: 2px 10px; }
.frame img { width: 100%; height: auto; aspect-ratio: 1180 / 738; object-fit: cover; object-position: top; }
.frame.back { position: absolute; width: 58%; right: -4%; bottom: 0; transform: rotate(0deg); transition: transform .5s var(--ease); }
.project.flip .frame.back { right: auto; left: -4%; }
.media:hover .frame.back { transform: translateY(-8px); }
.media::after { content: ""; position: absolute; inset: 8% 10% 0; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), transparent); filter: blur(30px); }

.kicker { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted); font-weight: 500; }
.kicker .no { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.kicker .line { width: 28px; height: 2px; background: var(--accent); }
.project .name { margin: 10px 0 6px; font-size: 14px; font-weight: 600; color: var(--text-secondary); letter-spacing: .02em; }
.project h3 { font-size: clamp(23px, 2.6vw, 30px); line-height: 1.18; letter-spacing: -.015em; margin: 0 0 14px; }
.project .desc { color: var(--text-secondary); margin: 0 0 22px; }
.pstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.pstat { border-top: 2px solid var(--accent); padding-top: 10px; }
.pstat b { display: block; font-size: 22px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.pstat span { display: block; color: var(--text-muted); font-size: 13px; line-height: 1.4; margin-top: 2px; }
.check { display: flex; gap: 10px; font-size: 14px; color: var(--text-secondary); background: var(--surface-1); border: 1px solid var(--hairline); border-radius: 10px; padding: 12px 14px; margin-bottom: 18px; }
.check svg { flex: none; width: 18px; height: 18px; color: var(--accent); margin-top: 2px; }
.views { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.views span { font-size: 12.5px; color: var(--text-secondary); background: var(--surface-2); border-radius: 999px; padding: 3px 11px; }
.project .btn.primary { background: var(--accent); border-color: var(--accent); color: #111; }
.project .btn.primary:hover { filter: brightness(1.1); }

/* ---------- threads ---------- */
.threads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.thread { background: var(--surface-1); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 22px; }
.thread .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(160, 29, 43, .18); color: var(--brand-bright); margin-bottom: 14px; }
.thread .ico svg { width: 22px; height: 22px; }
.thread h3 { margin: 0 0 14px; font-size: 18px; }
.thread ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.thread li { position: relative; padding-left: 14px; font-size: 14px; color: var(--text-secondary); }
.thread li::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 2px; background: var(--accent); }
.thread li b { display: block; color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 2px; }

/* ---------- method ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 34px; counter-reset: step; }
.step { position: relative; padding: 20px; border-radius: var(--radius); background: var(--surface-1); border: 1px solid var(--hairline); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-size: 13px; font-weight: 700; color: var(--brand-bright); margin-bottom: 10px; }
.step:not(:last-child)::after { content: ""; position: absolute; right: -13px; top: 26px; width: 10px; height: 2px; background: var(--hairline); }
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--text-secondary); font-size: 14px; }
.step code { font: 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text-muted); display: block; margin-top: 12px; }
.validation { margin-top: 18px; border-radius: var(--radius); border: 1px solid var(--hairline); background: linear-gradient(135deg, rgba(160, 29, 43, .16), rgba(31, 31, 31, .4) 55%); padding: 26px; display: grid; grid-template-columns: 1.1fr 2fr; gap: 26px; align-items: center; }
.validation h3 { margin: 0 0 6px; font-size: 19px; }
.validation p { margin: 0; color: var(--text-secondary); font-size: 14.5px; }
.vals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.val { background: rgba(16, 16, 16, .55); border: 1px solid var(--hairline); border-radius: 10px; padding: 14px; }
.val b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.val > span { display: block; color: var(--text-muted); font-size: 12.5px; margin-top: 4px; line-height: 1.4; }
.val i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); margin-right: 6px; }
.stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.stack span { font-size: 13px; color: var(--text-secondary); border: 1px solid var(--hairline); border-radius: 999px; padding: 4px 12px; }

/* ---------- footer ---------- */
footer { margin-top: 96px; border-top: 1px solid var(--hairline); background: var(--bg-deep); }
footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 30px; padding-top: 36px; padding-bottom: 40px; }
footer img { width: 120px; margin-bottom: 12px; }
footer p { color: var(--text-muted); font-size: 13.5px; margin: 0 0 8px; }
footer h4 { margin: 0 0 10px; font-size: 13px; color: var(--text-secondary); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
footer a { color: var(--text-secondary); text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--brand-bright); text-underline-offset: 3px; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- accents ---------- */
.a-waste { --accent: var(--waste); }
.a-cfr { --accent: var(--cfr); }
.a-promo { --accent: var(--promo); }
.a-fc { --accent: var(--fc); }
.a-pnl { --accent: var(--pnl); }
.a-hub { --accent: var(--brand-bright); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  nav.links { display: none; }
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
  .project, .project.flip { grid-template-columns: 1fr; gap: 30px; padding: 48px 0; }
  .project.flip .media { order: 0; }
  .threads, .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2)::after { display: none; }
  .validation { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .brand-sub { display: none; }
  .figures { grid-template-columns: 1fr; margin-top: 40px; }
  .chain { grid-template-columns: 1fr; }
  .station { margin-bottom: 0; }
  .station:not(:nth-child(4))::after { right: auto; left: 30px; top: auto; bottom: -11px; transform: rotate(135deg); }
  .station .tags { display: flex; }
  .span { display: none; }
  .media { padding-bottom: 0; }
  .frame.back { display: none; }
  .pstats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .pstat b { font-size: 18px; }
  .threads, .steps, .vals { grid-template-columns: 1fr; }
  .step::after { display: none; }
  footer .wrap { grid-template-columns: 1fr; }
  section.block { padding-top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ================= product layer (product.html) ================= */
.tag { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); white-space: nowrap; }
.p-hero { padding-bottom: 8px; }
.p-hero h1 { max-width: 820px; }
.vision { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; margin-top: 8px; }
.vision > div { background: var(--surface-1); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 18px 20px; }
.vision > div:first-child { border-left: 3px solid var(--brand-bright); }
.vision span { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.vision p { margin: 6px 0 0; font-size: 17px; line-height: 1.45; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.kpi { border-top: 2px solid var(--hairline); padding-top: 10px; }
.kpi b { display: block; font-size: 26px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.kpi span { color: var(--text-muted); font-size: 13px; }

/* flow */
.ex-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.ex-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.ex-tabs button, .chips button { background: var(--surface-1); color: var(--text-secondary); border: 1px solid var(--hairline); border-radius: 999px; padding: 6px 14px; font-size: 13.5px; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.ex-tabs button:hover, .chips button:hover { color: #fff; border-color: var(--text-muted); }
.ex-tabs button[aria-selected="true"] { color: #111; background: var(--accent); border-color: var(--accent); font-weight: 600; }
.ex-src { font-size: 12.5px; color: var(--text-muted); }
.flow { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: fs; }
.fstep { position: relative; background: var(--surface-1); border: 1px solid var(--hairline); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 16px; }
.fstep::before { counter-increment: fs; content: "0" counter(fs); display: block; font-size: 12.5px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.fstep:not(:last-child)::after { content: ""; position: absolute; right: -10px; top: 22px; width: 8px; height: 8px; border-top: 2px solid var(--text-muted); border-right: 2px solid var(--text-muted); transform: rotate(45deg); opacity: .6; }
.fstep h3 { margin: 0 0 4px; font-size: 16px; }
.fstep .what { margin: 0 0 12px; font-size: 12.5px; color: var(--text-muted); line-height: 1.4; }
.fstep .ex { margin: 0; font-size: 14px; color: var(--text-secondary); line-height: 1.5; padding-top: 12px; border-top: 1px dashed var(--hairline); }
.pgrid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; margin-top: 14px; }
.dod, .cadence { background: var(--surface-1); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 20px; }
.dod h3, .cadence h3 { margin: 0 0 12px; font-size: 17px; }
.dod ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dod li { position: relative; padding-left: 26px; font-size: 14px; color: var(--text-secondary); }
.dod li::before { content: ""; position: absolute; left: 2px; top: 3px; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--brand-bright); }
.dod li::after { content: ""; position: absolute; left: 7px; top: 5px; width: 4px; height: 8px; border: solid var(--brand-bright); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cads { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cads > div { border-left: 3px solid var(--accent); padding: 2px 0 2px 12px; }
.cads b { display: block; font-size: 14.5px; }
.cads span { display: block; font-size: 13px; color: var(--text-muted); line-height: 1.4; margin-top: 2px; }

/* roadmap */
.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 30px; }
.rcol { background: rgba(31, 31, 31, .45); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.rhead { padding: 4px 4px 6px; }
.rhead b { display: block; font-size: 15px; }
.rhead span { font-size: 12.5px; color: var(--text-muted); }
.rc-now { border-color: color-mix(in srgb, var(--brand-bright) 55%, var(--hairline)); background: linear-gradient(180deg, rgba(160, 29, 43, .14), rgba(31, 31, 31, .45)); }
.rc-now .rhead b { color: var(--brand-bright); }
.rc-done .rcard { opacity: .82; }
.rcard { background: var(--surface-1); border: 1px solid var(--hairline); border-left: 3px solid var(--accent); border-radius: 10px; padding: 12px 14px; }
.rcard h3 { margin: 8px 0 4px; font-size: 15px; line-height: 1.3; }
.rcard p { margin: 0; font-size: 13px; color: var(--text-secondary); line-height: 1.45; }
.rcard .rm { margin-top: 10px; font-size: 12.5px; color: var(--text-muted); }
.rcard .rm span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); opacity: .8; }

/* filters */
.filters { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin: 28px 0 12px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { padding: 5px 12px; font-size: 13px; }
.chips button[aria-pressed="true"] { color: #fff; border-color: var(--accent, var(--brand-bright)); background: color-mix(in srgb, var(--accent, var(--brand-bright)) 22%, var(--surface-1)); }
.filters .count { margin-left: auto; font-size: 13px; color: var(--text-muted); }

/* backlog */
.backlog { display: grid; gap: 8px; }
.story { background: var(--surface-1); border: 1px solid var(--hairline); border-left: 3px solid var(--accent); border-radius: 10px; }
.story[open] { border-color: color-mix(in srgb, var(--accent) 55%, var(--hairline)); }
.story summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; }
.story summary::-webkit-details-marker { display: none; }
.story .sid { font: 600 12.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--accent); }
.story .stext { font-size: 14.5px; color: var(--text-secondary); line-height: 1.45; }
.story .stext b { color: var(--text-primary); font-weight: 600; }
.story .smeta { display: flex; align-items: center; gap: 8px; }
.story.is-done .stext { color: var(--text-muted); }
.st { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-secondary); white-space: nowrap; }
.st-ready { background: rgba(92, 191, 138, .16); color: #8ad9ae; }
.st-prog { background: rgba(208, 52, 74, .2); color: #ff9aa8; }
.st-done { background: transparent; border: 1px solid var(--hairline); color: var(--text-muted); }
.ws { position: relative; display: inline-flex; align-items: center; width: 74px; height: 22px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.ws i { position: absolute; left: 0; top: 0; bottom: 0; background: color-mix(in srgb, var(--accent) 45%, transparent); }
.ws b { position: relative; margin-left: 8px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.sbody { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; padding: 2px 14px 16px 80px; }
.sbody h4 { margin: 8px 0 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.sbody ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.sbody li, .sbody p { font-size: 13.5px; color: var(--text-secondary); margin: 0; }
.sbody .calc { font-variant-numeric: tabular-nums; }
.empty { color: var(--text-muted); font-size: 14px; }

/* decision log */
.decisions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.dec { background: var(--surface-1); border: 1px solid var(--hairline); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 18px 20px; }
.dec header { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-muted); }
.dec .did { font: 600 12.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--accent); }
.dec .ds { margin-left: auto; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.ds-impl { background: rgba(92, 191, 138, .18); color: #8ad9ae; }
.ds-pilot { background: rgba(76, 155, 232, .18); color: #92c4f2; }
.ds-approved { background: rgba(232, 163, 61, .16); color: #f0c27c; }
.ds-open { background: rgba(208, 52, 74, .22); color: #ff9aa8; }
.ds-deferred { background: var(--surface-2); color: var(--text-muted); }
.dec h3 { margin: 10px 0 6px; font-size: 17px; line-height: 1.3; }
.dec .dctx { margin: 0 0 12px; font-size: 14px; color: var(--text-secondary); }
.dec h4 { margin: 0 0 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.opts { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; }
.opts li { font-size: 13.5px; color: var(--text-muted); padding: 5px 10px; border-radius: 8px; background: rgba(16, 16, 16, .5); }
.opts li.on { color: var(--text-primary); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.opts em { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--accent); margin-left: 4px; }
.dec dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13.5px; }
.dec dt { color: var(--text-muted); }
.dec dd { margin: 0; color: var(--text-secondary); }

/* teaser on the hub */
.po-teaser { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; }
.po-card { display: block; text-decoration: none; background: var(--surface-1); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 20px; transition: border-color .25s, transform .25s var(--ease); }
.po-card:hover { border-color: var(--brand-bright); transform: translateY(-2px); }
.po-card b { display: block; font-size: 28px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.po-card h3 { margin: 6px 0 4px; font-size: 16px; }
.po-card p { margin: 0; font-size: 13.5px; color: var(--text-secondary); }
.po-cta { margin-top: 18px; }

@media (max-width: 980px) {
  .flow { grid-template-columns: 1fr 1fr; }
  .fstep::after { display: none; }
  .roadmap, .po-teaser { grid-template-columns: 1fr 1fr; }
  .pgrid, .decisions, .vision { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .flow, .roadmap, .cads, .po-teaser { grid-template-columns: 1fr; }
  .story summary { grid-template-columns: 1fr; gap: 8px; }
  .sbody { grid-template-columns: 1fr; padding-left: 14px; gap: 6px; }
  .filters .count { margin-left: 0; }
}
