:root {
  --bg: #f7f8fa; --surface: #ffffff; --text: #14181f; --muted: #566070; --line: #dde1e8;
  --accent: #1f5fd1; --ok: #15803d; --ok-text: #0f6b31; --warn: #b45309; --chip: #eef1f6;
  --radius: 14px; --gap: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116; --surface: #161b22; --text: #e8ecf2; --muted: #a2adbd; --line: #2a313c;
    --accent: #7aa7ff; --ok: #4ade80; --ok-text: #4ade80; --warn: #fbbf24; --chip: #1f2630;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); }
a:focus-visible, .skip:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.brand .brand-name > span { color: var(--muted); font-weight: 500; }
.projects-link { text-decoration: none; font-weight: 600; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; }
.projects-link:hover { border-color: var(--accent); }
.sample-banner { background: var(--chip); border-bottom: 1px solid var(--line); color: var(--muted); font-size: .9rem; padding: 8px 0; }
.sample-banner[hidden] { display: none; }

main.wrap { padding-top: 32px; padding-bottom: 48px; }
section + section { margin-top: 48px; }
h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); line-height: 1.12; margin: .2em 0 .4em; letter-spacing: -.02em; }
h2 { font-size: 1.4rem; margin: 0 0 .2em; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin: 0; }
.lede { color: var(--muted); font-size: 1.1rem; max-width: 40em; }
.section-note { color: var(--muted); margin: 0 0 var(--gap); }

.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px 40px; align-items: center; }
.hero-text { grid-column: 1; }
.machine { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.hud { display: block; width: 100%; height: auto; border-radius: 22px; overflow: hidden;
  box-shadow: 0 0 0 1px rgb(125 211 252 / .18), 0 18px 40px -18px rgb(0 0 0 / .55); }
.hud text { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.hud .hud-name { fill: #f1f5f9; font-size: 13.5px; font-weight: 700; letter-spacing: .02em; }
.hud .hud-sub { fill: #b4c0d0; font-size: 10.5px; }  /* >= 5.4:1 over the glow and grid (VIS-4) */
.hud .hud-tiny { fill: #b4c0d0; font-size: 10px; letter-spacing: .08em; }
.hud .corner { fill: none; stroke: #67e8f9; stroke-opacity: .55; stroke-width: 1.5; }
.hud .hud-dot { fill: #64748b; }  /* unknown until the facts load */
.hud .hud-dot[data-state="ok"] { fill: #4ade80; }
.hud .hud-dot[data-state="warn"] { fill: #fbbf24; }
.hud-plate { --c: #22d3ee; }
.hud-plate.hw { --c: #cbd5e1; } .hud-plate.vm { --c: #a78bfa; } .hud-plate.pf { --c: #38bdf8; } .hud-plate.app { --c: #4ade80; }
.hud-plate polygon { stroke: var(--c); stroke-width: 1; stroke-linejoin: round; }
.hud-plate .top { fill: var(--c); fill-opacity: .14; }
.hud-plate .side-l { fill: var(--c); fill-opacity: .07; }
.hud-plate .side-r { fill: var(--c); fill-opacity: .2; }
.hud-plate.hw .top { fill-opacity: .1; } .hud-plate.hw .side-l { fill: #1e293b; fill-opacity: 1; } .hud-plate.hw .side-r { fill: #334155; fill-opacity: 1; }
.hud-plate .inner { fill: none; stroke-opacity: .5; stroke-dasharray: 3 3; }
.hud-plate .tile .top { fill-opacity: .45; }
.hud-plate .port { stroke: #0f172a; stroke-width: 2.4; stroke-linecap: round; }
.hud-plate .vent { fill: #0f172a; }
.hud-plate .led { fill: #4ade80; }
.hud-label .leader { fill: none; stroke: #475569; stroke-dasharray: 2 3; }
.hud-label .node { fill: #0b1222; stroke-width: 1.5; }
.hud-label.hw .node { stroke: #cbd5e1; } .hud-label.vm .node { stroke: #a78bfa; } .hud-label.pf .node { stroke: #38bdf8; } .hud-label.app .node { stroke: #4ade80; }
.hud .beam { fill: none; stroke: #22d3ee; stroke-width: 1.5; stroke-dasharray: 3 9; stroke-opacity: .8; }
.hud .tunnel { fill: none; stroke: #f472b6; stroke-width: 1.5; stroke-dasharray: 4 6; }
.hud .globe { fill: #0b1222; stroke: #f472b6; stroke-width: 1.5; }
.hud .globe-l { fill: none; stroke: #f472b6; stroke-opacity: .6; }
.hud .scan { fill: #67e8f9; opacity: 0; }
.machine figcaption { margin-top: 10px; font-size: .78rem; color: var(--muted); text-align: right; }
.specs { grid-column: 1; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.specs div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.specs dt { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.specs dd { margin: 2px 0 0; font-weight: 650; overflow-wrap: anywhere; }

.status { display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px; font-weight: 600; margin: 6px 0 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.status[data-state="ok"] .dot { background: var(--ok); }
.status[data-state="warn"] .dot { background: var(--warn); }
.status[data-state="up"] .dot { background: var(--ok); }
.status[data-state="down"] .dot { background: var(--bad); }
.status[data-state="unknown"] .dot { background: var(--muted); }

.metrics { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.metric { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.metric .num { font-size: 2.4rem; font-weight: 750; line-height: 1; font-variant-numeric: tabular-nums; }
.metric .label { color: var(--muted); margin-top: 6px; }

.metrics.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metrics.three .num { font-size: 2rem; }
.chart { margin: var(--gap) 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.verdict { margin: 0 0 8px; font-weight: 650; }
.chart-svg { display: block; width: 100%; height: auto; touch-action: pan-y; border-radius: 8px; }
.chart-svg:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.chart-svg .axis, .chart-svg .tick { stroke: var(--line); stroke-width: 1; }
.chart-svg .zero { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 4; }
.chart-svg .nodata { fill: var(--chip); }
.chart-svg .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart-svg .label { fill: var(--muted); font-size: 11px; }
.chart-svg .cursor { stroke: var(--muted); stroke-width: 1; }
.chart-svg .dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.chart-svg .mark { fill: var(--ok); stroke: var(--surface); stroke-width: 2; }
.readout { margin: 8px 0 0; min-height: 1.55em; font-variant-numeric: tabular-nums; }
.chart figcaption { margin-top: 6px; color: var(--muted); font-size: .85rem; }
.data-table { margin-top: var(--gap); }
.data-table summary { cursor: pointer; font-weight: 600; }
.data-table table { width: 100%; border-collapse: collapse; margin-top: 8px; font-variant-numeric: tabular-nums; font-size: .9rem; }
.data-table th, .data-table td { text-align: right; padding: 4px 8px; border-bottom: 1px solid var(--line); }
.data-table th:first-child, .data-table td:first-child { text-align: left; }
.sub { margin: 28px 0 8px; font-size: 1.1rem; }
.breakdown { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.breakdown li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; }
.breakdown .amount { font-weight: 650; font-variant-numeric: tabular-nums; }
.breakdown .meter { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--chip); overflow: hidden; }
.breakdown .meter span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.fine { color: var(--muted); font-size: .88rem; max-width: 52em; }

.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--gap); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-width: 0; }
.card h3 { margin: 0; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.card p { margin: 4px 0 0; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { background: var(--chip); border-radius: 999px; padding: 2px 10px; font-size: .8rem; color: var(--muted); }
.chip.env-prod { color: var(--ok-text); font-weight: 600; }
.health { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.health[data-ok="true"] { background: var(--ok); }
.health[data-ok="false"] { background: var(--warn); }

.site-footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: .92rem; }
.site-footer p { margin: 4px 0; }
.noscript { color: var(--muted); }

@media (max-width: 800px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-text, .machine, .specs { grid-column: 1; grid-row: auto; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .metrics.three { grid-template-columns: minmax(0, 1fr); }
  .chart { padding: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .card, .metric { animation: rise .5s ease both; }
  .chart-svg .line.draw { stroke-dasharray: 1; animation: draw 1.1s ease-out both; }
  @keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes rise { from { opacity: 0; transform: translateY(6px); } }
}

/* Project page */
.site-header .bar { row-gap: 8px; }
.toc { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .92rem; }
.toc a { color: var(--muted); text-decoration: none; padding: 4px 2px; border-bottom: 2px solid transparent; }
.toc a:hover, .toc a:focus-visible { color: var(--text); border-bottom-color: var(--accent); }
html { scroll-behavior: smooth; scroll-padding-top: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .hud .beam { animation: hud-flow 1.4s linear infinite; }
  .hud .beam.b1 { animation-duration: 1.1s; } .hud .beam.b2 { animation-duration: 1.7s; }
  .hud .tunnel { animation: hud-flow 1.2s linear infinite reverse; }
  .hud .hud-dot[data-state], .hud-plate .led { animation: hud-blink 2.4s ease-in-out infinite; }
  .hud .scan { animation: hud-scan 6s ease-in-out infinite; }
  .hud-plate.app .tile { animation: hud-float 4s ease-in-out infinite; }
  .hud-plate.app .tile:nth-child(odd) { animation-delay: -2s; }
}
@keyframes hud-flow { to { stroke-dashoffset: -24; } }
@keyframes hud-blink { 50% { opacity: .35; } }
@keyframes hud-scan { 0% { transform: translateY(16px); opacity: 0; } 15% { opacity: .35; } 85% { opacity: .35; } 100% { transform: translateY(440px); opacity: 0; } }
@keyframes hud-float { 50% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
:root { --accent-2: #b45309; --kind-ai: #7c3aed; --kind-data: #0f766e; --kind-ops: #1f5fd1; --kind-app: #15803d; --kind-edge: #be185d; --kind-ext: #566070; --kind-lane: #b45309; --kind-aws: #c2410c; }
@media (prefers-color-scheme: dark) { :root { --accent-2: #fbbf24; --kind-ai: #c4b5fd; --kind-data: #5eead4; --kind-ops: #7aa7ff; --kind-app: #4ade80; --kind-edge: #f9a8d4; --kind-ext: #a2adbd; --kind-lane: #fbbf24; --kind-aws: #fdba74; } }

.brief { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: 12px; }
.brief article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.brief h3 { margin: 0 0 6px; font-size: 1rem; }
.brief p { margin: 0; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: var(--gap) 0 0; }
.facts div { border-left: 3px solid var(--accent); padding: 2px 12px; }
.facts dt { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.facts dd { margin: 2px 0 0; font-weight: 650; }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--gap); }
.grid-2 .chart { margin: 0; }
.chart-title { margin: 0 0 8px; font-size: 1rem; }
.bar.local { fill: var(--kind-ai); } .bar.prop { fill: var(--accent-2); }
.cursor-band { fill: var(--chip); opacity: .6; }
.key { margin: 8px 0 0; font-size: .85rem; color: var(--muted); }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: baseline; }
.swatch.local { background: var(--kind-ai); } .swatch.prop { background: var(--accent-2); }
.load { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.load li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; }
.load .amount { font-variant-numeric: tabular-nums; font-weight: 650; }
.meter.wide { grid-column: 1 / -1; height: 10px; border-radius: 5px; background: var(--chip); position: relative; overflow: hidden; }
.meter.wide span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; }
.meter.wide .want { background: var(--accent); opacity: .3; }
.meter.wide .used { background: var(--accent); }

/* Diagrams */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tab { font: inherit; font-weight: 600; background: var(--surface); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.tab:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.dg-view { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; min-width: 0; }
.dg-view[hidden] { display: none; }
.dg-view .chart-title { margin-bottom: 4px; }
.scroll { overflow-x: auto; }
/* A diagram fits the width it is given; on a narrow screen "Zoom in" draws it at a readable size to scroll sideways */
.diagram { display: block; width: 100%; height: auto; }
.dg-view.zoomed .diagram { min-width: 620px; }
.vs .dg-view.zoomed .diagram { min-width: 380px; }
.dg-view.zoomed .diagram.wide { min-width: 900px; }
.dg-tools { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.dg-tools[hidden] { display: none; }
.zoom { font: inherit; font-size: .85rem; font-weight: 600; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.zoom:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.diagram text { font-family: inherit; fill: var(--text); font-size: 12.5px; }
.diagram .group { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 5 4; }
.diagram .group-label { fill: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .03em; }
.diagram .node { cursor: pointer; outline: none; transition: opacity .15s; }
.diagram .node .box { fill: var(--bg); stroke: var(--c, var(--kind-ext)); stroke-width: 1.6; }
.diagram .node .name { font-weight: 700; }
.diagram .node .sub { fill: var(--muted); font-size: 11px; }
.diagram .kind-ai { --c: var(--kind-ai); } .diagram .kind-data { --c: var(--kind-data); } .diagram .kind-ops { --c: var(--kind-ops); }
.diagram .kind-app { --c: var(--kind-app); } .diagram .kind-edge { --c: var(--kind-edge); } .diagram .kind-ext { --c: var(--kind-ext); }
.diagram .kind-lane { --c: var(--kind-lane); } .diagram .kind-aws { --c: var(--kind-aws); } .diagram .kind-aws-off { --c: var(--kind-aws); }
.diagram .kind-aws-off .box { stroke-dasharray: 4 3; fill: none; }
.diagram .node:hover .box, .diagram .node:focus-visible .box, .diagram .node.hot .box { stroke-width: 3; fill: var(--chip); }
.diagram .node:focus-visible .box { stroke: var(--accent); }
.diagram .edge line { stroke: var(--muted); stroke-width: 1.5; }
.diagram .edge.dashed line { stroke-dasharray: 5 4; }
.diagram .arrow { fill: var(--muted); }
.diagram .edge-label { font-size: 10.5px; fill: var(--muted); paint-order: stroke; stroke: var(--surface); stroke-width: 5px; stroke-linejoin: round; }
.diagram.focus .dim { opacity: .22; }
.dg-panel { margin-top: 10px; padding: 10px 14px; background: var(--chip); border-radius: 10px; min-height: 4.5em; }
.dg-panel h4 { margin: 0 0 4px; }
.dg-panel p { margin: 2px 0; }
.dg-panel .q { font-weight: 650; } .dg-panel .hint { color: var(--muted); font-size: .9rem; }
.alt { margin-top: 8px; font-size: .9rem; color: var(--muted); }
.alt summary { cursor: pointer; font-weight: 600; color: var(--text); }
.vs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.estimate[hidden] { display: none; }
.est { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.est th, .est td { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.est td:last-child, .est thead th:last-child { text-align: right; }
.est tfoot th { text-align: left; } .est .total td, .est .total th { font-weight: 750; font-size: 1.05rem; }
.est .lab td, .est .lab th { color: var(--ok-text); font-weight: 650; }
.est tbody th { font-weight: 600; }

/* Services, layers, savings */
.blocks .use { color: var(--accent); font-size: .85rem; font-weight: 600; }
.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px var(--gap); }
.group h4 { margin: 0 0 8px; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.cards.compact { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.layers { list-style: none; counter-reset: layer; margin: 0; padding: 0; display: grid; gap: 10px; }
.layers li { counter-increment: layer; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 14px 60px; }
.layers li::before { content: counter(layer); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--chip); color: var(--accent); display: grid; place-items: center; font-weight: 750; }
.layers h3 { margin: 0; font-size: 1.05rem; } .layers p { margin: 2px 0 0; color: var(--muted); }
.savers .card h3 { font-size: 1rem; }
.about { max-width: 46em; }
.est-note, .fine { color: var(--muted); }

@media (max-width: 800px) {
  .brief, .grid-2, .vs { grid-template-columns: minmax(0, 1fr); }
  .toc { order: 3; width: 100%; }
}

.groups .group { margin-top: 0; }

/* The build's static diagrams (no script): the same classes as the interactive ones, plus their text */
.dg-view > .q { font-weight: 650; margin: 0 0 8px; }
.alt-text { margin: 10px 0 0; color: var(--muted); font-size: .92rem; }
.parts { margin: 8px 0 0; }
.parts dt { font-weight: 650; margin-top: 8px; color: var(--text); }
.parts dd { margin: 0; color: var(--muted); }
.stage > .dg-view + .dg-view { margin-top: var(--gap); }

.nodata-slot { fill: var(--chip); opacity: .9; }
.swatch.gap { background: var(--chip); border: 1px solid var(--line); margin-left: 10px; }

/* Logos: monochrome from the bundled sprite so they follow the theme; initials where no logo is bundled */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-icon { width: 32px; height: 32px; border-radius: 50%; }
.logo { width: 18px; height: 18px; flex: none; fill: currentColor; vertical-align: -3px; }
img.logo { border-radius: 50%; fill: none; }
.chip .logo { width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; }
.chip img.logo { border-radius: 50%; }
.card h3 .logo { color: var(--text); }
.mono { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; border-radius: 4px; background: var(--chip);
  color: var(--muted); font-size: 8.5px; font-weight: 800; letter-spacing: -.02em; line-height: 1; border: 1px solid var(--line); }
.chip .mono { width: 14px; height: 14px; margin-right: 6px; font-size: 7px; vertical-align: -2px; }
.diagram .logo { fill: var(--text); opacity: .85; }
.diagram .badge circle { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.diagram .mono-text { fill: var(--muted); font-size: 7.5px; font-weight: 800; }
.diagram .logo-img { pointer-events: none; }

/* Automation and core parts */
.featured { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; min-width: 0; }
.feature h3 { margin: 0 0 8px; font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.feature h3 .logo { width: 26px; height: 26px; }
.feature p { margin: 0 0 10px; color: var(--muted); }
.feature h4 { margin: 14px 0 4px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.feature ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.feature li { margin: 4px 0; }
.feature code, .cmds code { font: .85em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--chip); padding: 1px 6px; border-radius: 5px; color: var(--text); }
.cmds { margin: 0; display: grid; gap: 8px; }
.cmds div { display: grid; grid-template-columns: minmax(0, 12em) minmax(0, 1fr); gap: 4px 12px; align-items: baseline; }
.cmds dt { white-space: normal; }
.cmds dd { margin: 0; color: var(--muted); }
.flow { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.flow li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; color: var(--muted); font-size: .92rem; }
.flow li::before { content: counter(step); display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--chip); color: var(--accent); font-weight: 750; margin-bottom: 6px; }
.flow strong { display: block; color: var(--text); }
.parts-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.parts-grid .card h3 { flex-wrap: wrap; }
.parts-grid .why { color: var(--text); font-size: .9rem; margin-top: 8px; }
@media (max-width: 900px) { .featured { grid-template-columns: minmax(0, 1fr); } .flow { grid-template-columns: minmax(0, 1fr); } .cmds div { grid-template-columns: minmax(0, 1fr); } }

.feature.wide { margin-bottom: var(--gap); }
.caps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: 14px; }
.caps section { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.caps section + section { margin-top: 0; }
.caps h4 { margin: 0 0 6px; display: flex; align-items: center; gap: 8px; color: var(--text); text-transform: none; letter-spacing: 0; font-size: .98rem; }
.caps h4 .logo { color: var(--text); }
.caps ul { font-size: .92rem; }
.policy-wrap { overflow-x: auto; }
.policy { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
.policy th, .policy td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.policy thead th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.policy tbody th { white-space: nowrap; }
.policy tbody th .logo, .policy tbody th .mono { margin-right: 6px; }
.policy td { color: var(--muted); }
.policy td:last-child { color: var(--text); }
@media (max-width: 1000px) { .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .caps { grid-template-columns: minmax(0, 1fr); } }

.brand-name { color: var(--text); }
.brand-name span { color: var(--muted); font-weight: 500; }
.brand { white-space: nowrap; }
.toc { gap: 4px 12px; font-size: .88rem; flex: 1 1 auto; justify-content: center; }
.projects-link { white-space: nowrap; }

/* The section links get their own row under the brand and the projects link, at every width. */
.toc { order: 3; flex: 1 0 100%; justify-content: flex-start; padding-bottom: 8px; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; }
.bar { min-height: 0; padding-top: 10px; }

.dl { margin: 6px 0 0; font-size: .88rem; color: var(--muted); }

/* Models, code review, running costs */
.flow.six { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: var(--gap); }
.flow.six li { font-size: .88rem; padding: 10px 12px; }
.models-table th, .models-table td { vertical-align: top; }
.models-table tbody th { white-space: normal; min-width: 14em; }
.models-table td:last-child { color: var(--muted); }
.toolrow { margin: 6px 0 0; padding-left: 1.1em; color: var(--muted); }
.toolrow li { margin: 5px 0; }
.toolrow strong { color: var(--text); }
.callout { margin-top: var(--gap); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 4px 18px; }
.callout p { margin: 10px 0; color: var(--muted); }
.callout strong { color: var(--text); }
.chips.toolchips { list-style: none; padding: 0; margin: var(--gap) 0 0; }
.chips.toolchips .chip { display: inline-flex; align-items: center; }
.free { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.free .chip { display: inline-flex; align-items: center; padding: 4px 12px; }
.free .role { color: var(--muted); font-size: .8rem; margin-left: 4px; }
.est th .logo, .est th .mono, .est th img.logo { margin-right: 8px; }
.logo.inline, .mono.inline { margin-right: 6px; }
@media (max-width: 1000px) { .flow.six { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .flow.six { grid-template-columns: minmax(0, 1fr); } }

/* Status strip, traffic */
:root { --bad: #c62828; }
@media (prefers-color-scheme: dark) { :root { --bad: #f87171; } }
.chart-svg.strip { cursor: crosshair; }
.strip .cell { stroke: none; }
.strip .cell.green { fill: var(--ok); } .strip .cell.orange { fill: var(--warn); } .strip .cell.red { fill: var(--bad); }
.strip .cell.grey { fill: var(--chip); stroke: var(--line); stroke-width: 1; }
.strip .cell.on { stroke: var(--text); stroke-width: 2; }
.swatch.ok { background: var(--ok); } .swatch.warn { background: var(--warn); } .swatch.bad { background: var(--bad); }
.swatch.nodata { background: var(--chip); border: 1px solid var(--line); }
.key .swatch { margin-left: 12px; }
.metrics.two { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metrics.two .num { font-size: 1.5rem; }
.metrics.two .label { font-size: .85rem; }
#reliability .sub { margin-top: 0; }
#reliability > .chart { margin-top: var(--gap); }
.grid-2.lower { margin-top: var(--gap); align-items: start; }
@media (max-width: 800px) { .metrics.two { grid-template-columns: minmax(0, 1fr); } }

#status-table { min-width: 520px; }

@media (max-width: 1000px) { .metrics.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.chart-svg .estimated { fill: var(--accent); opacity: .1; }

/* The one-page poster is drawn 1200 wide, so its text is larger to stay readable when it is shown at page width */
.diagram.wide text { font-size: 15px; }
.diagram.wide .sub { font-size: 13px; }
.diagram.wide .group-label { font-size: 14px; }
.diagram.wide .edge-label { font-size: 13px; }

/* 90 slivers and the incident box */
.strip .cell { stroke: none; }
.infobox { margin-top: 10px; padding: 10px 14px; background: var(--chip); border-radius: 10px; }
.infobox h4 { margin: 0 0 6px; font-size: .9rem; }
.incidents { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 14em; overflow-y: auto; }
.incident { padding: 6px 8px; border-radius: 8px; border: 1px solid transparent; font-size: .92rem; }
.incident.current { border-color: var(--line); background: var(--surface); }
.incident:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.dotted { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; }
.dotted.orange { background: var(--warn); } .dotted.red { background: var(--bad); }
