/* EFS showcase: Decidr look. Inter stands in for Noi Grotesk. */
:root {
  --ink: #0A0A0A;
  --muted: #5B5F66;          /* 6.4:1 on white */
  --faint: #8A8F98;          /* decoration only, never body text */
  --grey: #F7F8F8;
  --line: #E3E4E4;
  --purple: #8E57FB;         /* fills and lines */
  --purple-text: #6D3CE6;    /* purple text, 5.6:1 on white */
  --tp: #EEE8FF;
  --tb: #F3F6FB;
  --orange: #F36744;
  --blue: #6790CA;
  --white: #FFFFFF;
  --r-control: 8px;
  --r-surface: 14px;
  --r-overlay: 18px;
  --gutter: 40px;
  --max: 1240px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ex-ai: #8E57FB;
  --ex-aih: #C7AEFD;
  --ex-human: #0A0A0A;
  --ex-client: #6790CA;
  --ex-system: #B4B8BE;
  --ex-third: #F36744;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: "Noi Grotesk", Inter, system-ui, sans-serif; font-weight: 400;
  font-size: 18px; line-height: 27px; -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--purple-text); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: 128px 0; }
section + section { border-top: 1px solid var(--line); }
section.dark + section { border-top: 0; }

/* type scale 72 / 56 / 48 / 36 / 28 / 24 / 18 / 16 / 14 */
.display { font-size: 72px; line-height: 79px; letter-spacing: -2.16px; font-weight: 400; margin: 0; }
h2 { font-size: 56px; line-height: 64px; letter-spacing: -1.12px; font-weight: 400; margin: 0 0 24px; max-width: 18ch; }
h3 { font-size: 36px; line-height: 44px; letter-spacing: -0.72px; font-weight: 400; margin: 0 0 16px; }
h4 { font-size: 24px; line-height: 32px; letter-spacing: -0.36px; font-weight: 400; margin: 0 0 12px; }
.lede { font-size: 24px; line-height: 34px; letter-spacing: -0.24px; color: var(--ink); max-width: 46ch; margin: 0; }
p { margin: 0 0 16px; max-width: 65ch; }
.eyebrow { font-size: 14px; line-height: 21px; color: var(--muted); margin: 0 0 24px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.eyebrow .num { color: var(--purple-text); font-variant-numeric: tabular-nums; }
.small { font-size: 14px; line-height: 21px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 13px; line-height: 20px; letter-spacing: 0; }
.tnum { font-variant-numeric: tabular-nums; }
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: end; margin-bottom: 64px; }
.section-head p { color: var(--muted); margin: 0; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.nav .logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.nav .logo img { height: 18px; width: auto; }
.nav .logo span { font-size: 14px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 12px; }
.nav ol { list-style: none; display: flex; gap: 4px; margin: 0 0 0 auto; padding: 0; overflow-x: auto; scrollbar-width: none; }
.nav ol::-webkit-scrollbar { display: none; }
.nav li a { display: block; font-size: 14px; line-height: 21px; padding: 8px 12px; border-radius: var(--r-control); text-decoration: none; color: var(--muted); white-space: nowrap; }
.nav li a:hover, .nav li a[aria-current="true"] { color: var(--ink); background: var(--grey); }

/* hero */
.hero { padding: 96px 0 128px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.hero .lede { margin-top: 32px; }
.hero figure { margin: 0; }
.hero figure img { border-radius: var(--r-surface); width: 100%; height: auto; }
.hero figcaption { font-size: 14px; color: var(--muted); margin-top: 12px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 96px; border-top: 1px solid var(--line); }
.stat { padding: 32px 24px 32px 0; border-bottom: 1px solid var(--line); }
.stat .v { font-size: 56px; line-height: 60px; letter-spacing: -1.68px; font-variant-numeric: tabular-nums; }
.stat .l { font-size: 16px; line-height: 24px; color: var(--muted); margin-top: 8px; max-width: 22ch; }
.stat .l b { font-weight: 400; color: var(--ink); }

.split { margin-top: 64px; }
.split .bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--grey); }
.split .bar i { display: block; height: 100%; }
.split .legend { display: flex; justify-content: space-between; gap: 24px; margin-top: 16px; flex-wrap: wrap; }
.split .legend div { max-width: 46ch; font-size: 16px; line-height: 24px; color: var(--muted); }
.split .legend b { display: block; font-weight: 400; font-size: 36px; line-height: 44px; letter-spacing: -0.72px; color: var(--ink); font-variant-numeric: tabular-nums; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: 1px; margin-right: 8px; flex: none; }

/* sources */
.sankey-scroll { overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
.sankey { min-width: 860px; }
.sankey text { font-family: Inter, sans-serif; font-size: 13px; fill: var(--ink); }
.sankey .n { fill: var(--muted); font-variant-numeric: tabular-nums; }
.sankey .colhead { font-size: 12px; fill: var(--muted); letter-spacing: 0.4px; text-transform: uppercase; }
.sankey path { fill: none; stroke-opacity: 0.22; transition: stroke-opacity 160ms; }
.sankey path.hi { stroke-opacity: 0.6; }
.caption { font-size: 14px; line-height: 21px; color: var(--muted); margin-top: 16px; }
.captured { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.card { background: var(--grey); border-radius: var(--r-surface); padding: 24px; }
.card .v { font-size: 36px; line-height: 44px; letter-spacing: -0.72px; font-variant-numeric: tabular-nums; }
.card .l { font-size: 14px; line-height: 21px; color: var(--muted); margin-top: 4px; }
.registers { columns: 2; column-gap: 40px; margin: 40px 0 0; padding: 0; list-style: none; font-size: 16px; line-height: 24px; }
.registers li { break-inside: avoid; padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }
.registers li span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }

/* dark focal section: the schema */
.dark { background: #050507 url("img/grad-dark.jpg") center / cover no-repeat; color: #fff; }
.dark h2, .dark h3, .dark h4 { color: #fff; }
.dark .section-head p, .dark .muted, .dark .caption { color: rgba(255,255,255,0.72); }
.dark a { color: #fff; }
.graph-shell { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.graph { position: relative; border-radius: var(--r-overlay); background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); overflow: hidden; }
.graph svg { display: block; width: 100%; height: 640px; cursor: grab; }
.graph svg:active { cursor: grabbing; }
.graph .edge { stroke: rgba(255,255,255,0.22); }
.graph .edge.hi { stroke: rgba(199,174,253,0.95); }
.graph .node circle { stroke: rgba(0,0,0,0.4); stroke-width: 1; cursor: pointer; }
.graph .node.sel circle { stroke: #fff; stroke-width: 2.5; }
.graph .node text { fill: rgba(255,255,255,0.86); font-size: 12px; font-family: Inter, sans-serif; pointer-events: none; paint-order: stroke; stroke: rgba(5,5,7,0.85); stroke-width: 3px; }
.graph .node.dim { opacity: 0.42; }
.graph .tools { position: absolute; left: 16px; bottom: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.chipbtn { font-size: 14px; line-height: 21px; padding: 6px 12px; border-radius: 6px; border: 1px solid rgba(0,0,0,0.15); background: #fff; cursor: pointer; }
.dark .chipbtn { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.2); }
.dark .chipbtn[aria-pressed="true"] { background: #fff; color: var(--ink); }
.panel { background: #fff; color: var(--ink); border-radius: var(--r-overlay); padding: 24px; max-height: 640px; overflow: auto; }
.panel h3 { color: var(--ink); font-size: 28px; line-height: 36px; letter-spacing: -0.5px; margin-bottom: 4px; }
.panel .kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 20px; }
.panel .kv div { background: var(--grey); border-radius: var(--r-control); padding: 12px; }
.panel .kv b { display: block; font-weight: 400; font-size: 24px; line-height: 30px; font-variant-numeric: tabular-nums; }
.panel .kv span { font-size: 12px; line-height: 18px; color: var(--muted); }
.attr-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.attr-table th { text-align: left; font-weight: 400; color: var(--muted); font-size: 12px; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); }
.attr-table td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--grey); vertical-align: top; }
.attr-table td.fill { width: 64px; font-variant-numeric: tabular-nums; color: var(--muted); text-align: right; }
.attr-table .ex { color: var(--muted); display: block; margin-top: 2px; font-size: 13px; overflow-wrap: anywhere; }
.typelist { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.legend-row { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 24px; font-size: 14px; color: rgba(255,255,255,0.8); }

/* explorer */
.searchbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; position: relative; }
.searchbar input { flex: 1 1 320px; font: inherit; font-size: 18px; padding: 12px 16px; border-radius: var(--r-control); border: 1px solid var(--line); background: #fff; }
.searchbar input:hover { border-color: #cfd1d1; }
.results { position: absolute; top: 56px; left: 0; right: 0; z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: var(--r-surface); box-shadow: 0 8px 24px -4px rgba(0,0,0,0.12); max-height: 420px; overflow: auto; padding: 8px; }
.results button { display: flex; width: 100%; justify-content: space-between; gap: 16px; text-align: left; padding: 10px 12px; border: 0; background: none; border-radius: var(--r-control); cursor: pointer; font-size: 16px; }
.results button:hover, .results button:focus-visible { background: var(--grey); }
.results .t { color: var(--muted); font-size: 14px; white-space: nowrap; }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 24px; min-height: 24px; }
.crumbs button { border: 0; background: none; padding: 2px 6px; border-radius: 6px; cursor: pointer; color: var(--muted); font-size: 14px; }
.crumbs button:hover { color: var(--ink); background: var(--grey); }
.crumbs .sep { color: var(--faint); }
.explorer { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 40px; align-items: start; }
.entity-card { position: sticky; top: 84px; }
.entity-card .photo { border-radius: var(--r-surface); overflow: hidden; background: var(--grey); margin-bottom: 20px; }
.entity-card .photo img { width: 100%; height: auto; }
.entity-card .photo.page { max-height: 360px; overflow-y: auto; }
.entity-card .type { font-size: 14px; color: var(--purple-text); margin-bottom: 8px; }
.entity-card h3 { margin-bottom: 8px; overflow-wrap: anywhere; }
.entity-card .key { color: var(--muted); overflow-wrap: anywhere; }
.entity-card .kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px 0; }
.entity-card .kv div { background: var(--grey); border-radius: var(--r-control); padding: 12px; }
.entity-card .kv b { display: block; font-weight: 400; font-size: 24px; line-height: 30px; font-variant-numeric: tabular-nums; }
.entity-card .kv span { font-size: 12px; line-height: 18px; color: var(--muted); }
.radial svg { width: 100%; height: auto; display: block; }
.radial .spoke { stroke: var(--line); }
.radial circle.nb { cursor: pointer; }
.radial circle.nb:hover, .radial circle.nb:focus-visible { stroke: var(--ink); stroke-width: 2; outline: none; }
.radial text { font-size: 11px; fill: var(--muted); font-family: Inter, sans-serif; }
.vals .grp { border-top: 1px solid var(--line); }
.vals .grp > button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; background: none; border: 0; cursor: pointer; text-align: left; font-size: 20px; line-height: 28px; letter-spacing: -0.2px; }
.vals .grp > button .c { margin-left: auto; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.vals .grp > button::after { content: "+"; font-size: 22px; color: var(--muted); width: 16px; text-align: center; }
.vals .grp > button[aria-expanded="true"]::after { content: "\2013"; }
.row { display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr) auto; gap: 16px; padding: 12px 0; border-top: 1px solid var(--grey); align-items: start; }
.row:first-child { border-top: 0; }
.row .a { font-family: var(--mono); font-size: 13px; line-height: 22px; color: var(--muted); overflow-wrap: anywhere; }
.row .v { font-size: 16px; line-height: 24px; overflow-wrap: anywhere; }
.row .v .more { color: var(--muted); font-size: 14px; }
.row .v p { margin: 0 0 6px; }
.link { display: inline-flex; align-items: baseline; gap: 6px; padding: 2px 10px; margin: 0 6px 6px 0; border-radius: 6px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 15px; line-height: 24px; text-align: left; }
.link:hover { border-color: var(--purple); }
.link small { color: var(--muted); font-size: 12px; }
.srcbtn { font-size: 13px; line-height: 20px; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--line); background: #fff; cursor: pointer; white-space: nowrap; color: var(--muted); }
.srcbtn:hover { color: var(--ink); border-color: var(--purple); }
.inbound { margin-top: 48px; }
.inbound h4 { margin-bottom: 8px; }
.inb { padding: 16px 0; border-top: 1px solid var(--line); }
.inb .h { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.inb .h b { font-weight: 400; color: var(--ink); }

/* provenance drawer */
.drawer { position: fixed; inset: 0; z-index: 80; display: none; }
.drawer.open { display: block; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(10,10,10,0.32); }
.drawer .sheet { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: #fff; padding: 32px; overflow: auto; box-shadow: -8px 0 24px -4px rgba(0,0,0,0.12); }
.drawer .close { position: absolute; top: 20px; right: 20px; }
.prov { padding: 20px 0; border-top: 1px solid var(--line); }
.prov .val { font-size: 18px; line-height: 27px; margin-bottom: 12px; overflow-wrap: anywhere; }
.prov blockquote { margin: 0 0 12px; padding: 12px 16px; background: var(--tb); border-radius: var(--r-control); font-size: 15px; line-height: 23px; overflow-wrap: anywhere; }
.prov .why { font-size: 15px; line-height: 23px; color: var(--ink); margin-bottom: 12px; }
.prov .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.prov .meta a { color: var(--muted); overflow-wrap: anywhere; }
.badge { display: inline-block; font-size: 13px; line-height: 20px; padding: 2px 8px; border-radius: 6px; background: var(--grey); color: var(--ink); white-space: nowrap; }
.badge.stated { background: var(--tb); }
.badge.inferred { background: var(--tp); }
.badge.fsg { background: var(--tb); }
.badge.estimate { background: var(--tp); }
.conf { font-variant-numeric: tabular-nums; }

/* brand */
.persona { font-size: 48px; line-height: 56px; letter-spacing: -1.2px; max-width: 24ch; margin: 0 0 16px; }
.how { font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.values3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 64px 0 24px; }
.values3 .card h4 { font-size: 36px; line-height: 44px; letter-spacing: -0.72px; margin-bottom: 12px; }
.values3 .card p { font-size: 16px; line-height: 24px; margin-bottom: 16px; }
.pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.pair { padding: 20px 0; border-top: 1px solid var(--line); }
.pair .k { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.pair .v { font-size: 20px; line-height: 28px; letter-spacing: -0.2px; }
.taglist { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 15px; line-height: 22px; padding: 4px 10px; border-radius: 6px; background: var(--grey); max-width: 100%; overflow-wrap: anywhere; }
.tag.p { background: var(--tp); }
.sub { margin-top: 96px; }
.sub > h3 { margin-bottom: 8px; }
.sub > p.muted { margin-bottom: 40px; }
.scales { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.scale { background: var(--grey); border-radius: var(--r-surface); padding: 20px; }
.scale .q { font-size: 15px; line-height: 22px; min-height: 44px; }
.scale .v { font-size: 36px; line-height: 44px; letter-spacing: -0.72px; margin-top: 12px; font-variant-numeric: tabular-nums; }
.scale .v small { font-size: 16px; color: var(--muted); letter-spacing: 0; }
.pips { display: flex; gap: 4px; margin-top: 8px; }
.pips i { flex: 1; height: 4px; border-radius: 2px; background: #DCDDDE; }
.pips i.on { background: var(--ink); }
.scale .poles { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; line-height: 16px; color: var(--muted); margin-top: 8px; }
.qtools { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.qtools select { font: inherit; font-size: 16px; padding: 10px 40px 10px 14px; border-radius: var(--r-control); border: 1px solid var(--line); background: #fff; max-width: 100%; }
.review-tally { font-size: 14px; color: var(--muted); margin-left: auto; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.qa { padding: 24px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 72px minmax(0, 1fr) 240px; gap: 24px; }
.qa .id { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.qa .q { font-size: 18px; line-height: 27px; margin-bottom: 8px; }
.qa .ans { font-size: 20px; line-height: 28px; letter-spacing: -0.2px; margin-bottom: 8px; overflow-wrap: anywhere; }
.qa .ans .multi { display: flex; flex-wrap: wrap; gap: 6px; }
.qa details { margin-top: 8px; }
.qa summary { cursor: pointer; font-size: 14px; color: var(--muted); }
.qa summary:hover { color: var(--ink); }
.qa .side { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.agree { display: flex; gap: 6px; flex-wrap: wrap; }
.agree button { font-size: 13px; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.agree button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.gaps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gap { background: var(--grey); border-radius: var(--r-surface); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.gap .sev { font-size: 14px; display: flex; align-items: center; gap: 8px; }
.gap h4 { font-size: 22px; line-height: 30px; margin: 0; }
.gap p { font-size: 16px; line-height: 24px; margin: 0; }
.gap .fix { font-size: 16px; line-height: 24px; padding-top: 12px; border-top: 1px solid var(--line); }
.gap .fix b { font-weight: 400; color: var(--purple-text); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--r-control); border: 2px solid rgba(255,255,255,0.1); background: var(--purple); color: #fff; font-size: 14px; line-height: 21px; font-weight: 500; cursor: pointer; text-decoration: none; }
.btn:hover { background: #8350E7; color: #fff; }
.btn.secondary { background: #fff; color: var(--ink); border: 1px solid rgba(0,0,0,0.15); }
.btn.secondary:hover { border-color: var(--purple); }
.decide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }

/* agentified */
.ex-bar { display: flex; height: 40px; border-radius: var(--r-control); overflow: hidden; gap: 2px; }
.ex-bar i { display: block; height: 100%; }
.ex-legend { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.ex-legend div { font-size: 14px; line-height: 20px; color: var(--muted); }
.ex-legend b { display: block; font-weight: 400; font-size: 28px; line-height: 36px; color: var(--ink); font-variant-numeric: tabular-nums; }
.effort { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.effort .big { font-size: 72px; line-height: 79px; letter-spacing: -2.16px; font-variant-numeric: tabular-nums; }
.effort .big small { font-size: 24px; letter-spacing: -0.24px; color: var(--muted); }
.ebars { display: flex; flex-direction: column; gap: 14px; }
.ebar { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; align-items: center; font-size: 14px; }
.ebar .tracks { display: flex; flex-direction: column; gap: 4px; }
.ebar .t { height: 10px; border-radius: 5px; background: var(--ink); }
.ebar .g { height: 10px; border-radius: 5px; background: var(--purple); }
.ebar .lbl { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.areas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.area { background: var(--grey); border-radius: var(--r-surface); padding: 20px; text-align: left; border: 1px solid var(--grey); display: flex; flex-direction: column; gap: 8px; min-height: 168px; }
button.area { cursor: pointer; }
button.area:hover { border-color: #E3E4E4; box-shadow: 0 8px 24px -4px rgba(0,0,0,0.12); }
button.area[aria-pressed="true"] { background: var(--tp); border-color: var(--purple); }
.area .n { font-size: 18px; line-height: 24px; letter-spacing: -0.2px; }
.area .m { font-size: 13px; line-height: 19px; color: var(--muted); margin-top: auto; }
.area .h { font-size: 28px; line-height: 34px; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }
.area.pending { background: #fff; border: 1px dashed #D5D7D9; }
.tree { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 40px; margin-top: 56px; align-items: start; }
.svc-list { max-height: 880px; overflow: auto; border-top: 1px solid var(--line); position: sticky; top: 84px; }
.svc-list button { width: 100%; text-align: left; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 12px; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; }
.svc-list button:hover { background: var(--grey); }
.svc-list button[aria-current="true"] { background: var(--tp); }
.svc-list .nm { font-size: 16px; line-height: 22px; }
.svc-list .pr { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.svc-list .st { font-size: 12px; color: var(--muted); grid-column: 1 / -1; }
.svc h3 { margin-bottom: 8px; }
.svc .one { color: var(--muted); margin-bottom: 32px; }
.pricebox { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-bottom: 32px; }
.pricebox .card .v { font-size: 32px; line-height: 40px; }
.derivation { font-size: 14px; line-height: 21px; color: var(--muted); margin: -16px 0 32px; max-width: 80ch; }
.gates { display: flex; flex-direction: column; gap: 8px; margin-bottom: 32px; }
.gate { font-size: 15px; line-height: 22px; padding: 12px 16px; border-radius: var(--r-control); background: var(--tb); }
.gate b { font-weight: 500; }
.outputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 40px; }
.outputs .card h4 { font-size: 18px; line-height: 24px; margin-bottom: 12px; }
.tokens { display: flex; flex-wrap: wrap; gap: 4px; }
.tokens span { font-family: var(--mono); font-size: 12px; line-height: 18px; padding: 2px 6px; background: #fff; border-radius: 4px; }
.stage { margin-bottom: 32px; }
.stage > h4 { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); margin: 0; }
.stage > h4 span { font-size: 14px; color: var(--muted); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.task { border-bottom: 1px solid var(--line); }
.task > button { width: 100%; display: grid; grid-template-columns: 168px minmax(0, 1fr) 140px; gap: 16px; padding: 14px 0; border: 0; background: none; cursor: pointer; text-align: left; align-items: start; }
.task > button:hover { background: linear-gradient(90deg, var(--grey), rgba(247,248,248,0)); }
.task .who { font-size: 13px; line-height: 20px; display: flex; gap: 8px; align-items: flex-start; }
.task .who .dot { margin-top: 5px; }
.task .tn { font-size: 16px; line-height: 24px; }
.task .tn em { font-style: normal; font-size: 13px; color: var(--muted); display: block; }
.task .tn em.after { line-height: 19px; margin-top: 2px; }
.task .mins { font-size: 14px; line-height: 20px; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.task .mins b { font-weight: 400; color: var(--ink); }
.flag { display: inline-block; font-size: 12px; line-height: 18px; padding: 0 6px; border-radius: 4px; background: #FDE7E1; color: #8A2A12; margin-left: 6px; vertical-align: 1px; }
.lock { display: inline-block; font-size: 12px; line-height: 18px; padding: 0 6px; border-radius: 4px; background: var(--tb); color: #2E4F80; margin-left: 6px; vertical-align: 1px; }
.task .body { padding: 0 0 20px 184px; display: none; }
.task.open .body { display: block; }
.task .body dl { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px 16px; margin: 0 0 16px; font-size: 15px; line-height: 22px; }
.task .body dt { color: var(--muted); }
.task .body dd { margin: 0; }
.ctx { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.ctx span { font-family: var(--mono); font-size: 12px; padding: 1px 6px; background: var(--grey); border-radius: 4px; }
.ctx i { color: var(--faint); font-style: normal; font-size: 12px; }
.fields { width: 100%; border-collapse: collapse; font-size: 13px; }
.fields td { padding: 6px 12px 6px 0; border-top: 1px solid var(--grey); }
.fields td:first-child { font-family: var(--mono); }
.notdone { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.nd { padding: 24px; border-radius: var(--r-surface); background: var(--grey); }
.nd .s { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.nd .t { font-size: 20px; line-height: 28px; letter-spacing: -0.2px; margin-bottom: 8px; }
.nd .w { font-size: 15px; line-height: 22px; margin: 0; }
.nd .m { font-size: 13px; color: var(--muted); margin-top: 12px; font-variant-numeric: tabular-nums; }
.ladder { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.offer { background: var(--grey); border-radius: var(--r-surface); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.offer .layer { font-size: 12px; color: var(--purple-text); letter-spacing: 0.4px; text-transform: uppercase; }
.offer .n { font-size: 18px; line-height: 24px; }
.offer .p { font-size: 24px; line-height: 30px; letter-spacing: -0.3px; font-variant-numeric: tabular-nums; margin-top: auto; }
.offer ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 21px; color: var(--muted); }
.holders { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

/* closing */
.closing { background: var(--grey); }
.partners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.partners .card { background: #fff; }
.partners h4 { font-size: 28px; line-height: 36px; letter-spacing: -0.5px; }
.partners p { font-size: 16px; line-height: 24px; color: var(--muted); margin: 0; }
footer { padding: 56px 0 64px; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
footer img { height: 20px; width: auto; }

.loading { color: var(--muted); font-size: 14px; padding: 24px 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* responsive */
@media (max-width: 1100px) {
  .graph-shell { grid-template-columns: minmax(0, 1fr); }
  .panel { max-height: 560px; }
  .explorer { grid-template-columns: minmax(0, 1fr); }
  .entity-card { position: static; }
  .tree { grid-template-columns: minmax(0, 1fr); }
  .svc-list { position: static; max-height: 420px; }
  .areas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ex-legend { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qa { grid-template-columns: 56px minmax(0, 1fr); }
  .qa .side { grid-column: 2; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; line-height: 24px; }
  section { padding: 80px 0; }
  .hero { padding: 48px 0 80px; }
  .display { font-size: 44px; line-height: 48px; letter-spacing: -1.3px; }
  h2 { font-size: 36px; line-height: 42px; letter-spacing: -0.72px; }
  h3 { font-size: 28px; line-height: 34px; }
  .lede { font-size: 20px; line-height: 28px; }
  .persona { font-size: 30px; line-height: 36px; letter-spacing: -0.6px; }
  .hero-grid, .section-head, .effort { grid-template-columns: 1fr; gap: 32px; }
  .section-head { margin-bottom: 40px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 56px; }
  .stat { padding: 24px 12px 24px 0; }
  .stat .v { font-size: 36px; line-height: 42px; letter-spacing: -0.9px; }
  .stat .l { font-size: 14px; line-height: 20px; }
  .captured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .registers { columns: 1; }
  .graph svg { height: 520px; }
  .values3, .pairs, .scales, .gaps, .decide, .notdone, .outputs, .partners, .holders { grid-template-columns: 1fr; }
  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .area { min-height: 140px; padding: 16px; }
  .ex-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .effort .big { font-size: 48px; line-height: 54px; }
  .ebar { grid-template-columns: 1fr; gap: 6px; }
  .row { grid-template-columns: 1fr auto; }
  .row .a { grid-column: 1 / -1; }
  .task > button { grid-template-columns: 1fr auto; }
  .task .who { grid-column: 1 / -1; }
  .task .body { padding-left: 0; }
  .task .body dl { grid-template-columns: 1fr; gap: 2px; }
  .task .body dd { margin-bottom: 8px; }
  .pricebox { grid-template-columns: 1fr 1fr; }
  .nav .logo span { display: none; }
  .nav ol { margin-left: 8px; }
  .drawer .sheet { padding: 24px 16px; }
  .kv b { font-size: 20px !important; }
}

details > summary { cursor: pointer; font-size: 14px; line-height: 21px; color: var(--muted); list-style-position: outside; margin-top: 4px; }
details > summary:hover { color: var(--ink); }
.graph .node text .c { fill: rgba(255,255,255,0.55); }
.lean { display: grid; grid-template-columns: auto minmax(80px, 1fr) auto; gap: 12px; align-items: center; font-size: 15px; margin: 6px 0 8px; }
.lean .pips { margin: 0; }
.lean .pips i { height: 8px; border-radius: 4px; }
.lean .pips i.on { background: var(--purple); }
.offer .badge, .pricebox .badge { align-self: flex-start; }
.nav nav { min-width: 0; margin-left: auto; }
.nav nav ol { margin-left: 0; }
.attr-table { table-layout: fixed; }
.attr-table .mono { overflow-wrap: anywhere; }
.drawer #drawer-title { padding-right: 96px; overflow-wrap: anywhere; }
.people { margin-bottom: 56px; }
.faces { display: grid; grid-auto-flow: column; grid-auto-columns: 128px; gap: 16px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: thin; }
.face { display: flex; flex-direction: column; gap: 4px; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; }
.face img { width: 128px; height: auto; border-radius: var(--r-surface); background: var(--grey); }
.face:hover img { box-shadow: 0 8px 24px -4px rgba(0,0,0,0.12); }
.face .nm { font-size: 14px; line-height: 20px; margin-top: 8px; }
.face .tt { font-size: 12px; line-height: 17px; color: var(--muted); }
.entity-card .photo.portrait { max-width: 240px; }
