:root {
  color-scheme: dark;
  --bg: #07111f;
  --surface: #0d1a2b;
  --surface-2: #122238;
  --surface-3: #172b45;
  --text: #eef5ff;
  --muted: #9fb0c5;
  --line: rgba(173, 199, 229, .16);
  --blue: #68a7ff;
  --blue-2: #9bc5ff;
  --amber: #f3b451;
  --green: #69d6b1;
  --violet: #b69cff;
  --cyan: #63d5ed;
  --on-accent: #07111f;
  --focus: #68a7ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, .26);
  --max: 1180px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f8fc;
  --surface: #ffffff;
  --surface-2: #edf3fa;
  --surface-3: #e2ebf5;
  --text: #122033;
  --muted: #5c6d82;
  --line: rgba(28, 57, 92, .14);
  --blue: #1e66d0;
  --blue-2: #174c91;
  --amber: #9a5c00;
  --green: #087b61;
  --violet: #6941c6;
  --cyan: #06677d;
  --on-accent: #ffffff;
  --focus: #0057b8;
  --shadow: 0 24px 70px rgba(41, 65, 92, .13);
}

* { box-sizing: border-box; }
.system-hero h1 span { background-image: linear-gradient(110deg, var(--cyan), var(--blue), var(--violet)); }
.request-flow { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 1.4rem; list-style: none; }
.request-flow li { position: relative; min-height: 180px; padding: 1rem; display: flex; flex-direction: column; border-top: 2px solid var(--blue); background: var(--surface); }
.request-flow li:not(:last-child)::after { content: "→"; position: absolute; top: 50%; right: -1.1rem; color: var(--blue); transform: translate(50%, -50%); }
.request-flow span, .scale-ladder span, .data-grid article > span, .dual-flow header span, .resource-path article > span { color: var(--amber); font: 800 .68rem ui-monospace, monospace; letter-spacing: .09em; text-transform: uppercase; }
.request-flow strong { margin: 1.25rem 0 .45rem; }
.request-flow small { margin-top: auto; color: var(--muted); line-height: 1.45; }
.memory-strip, .practice-loop { margin-top: 1rem; padding: 1rem 1.2rem; display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; border: 1px solid var(--line); background: var(--surface-2); }
.memory-strip b, .practice-loop b { color: var(--green); }
.memory-strip span, .practice-loop span { color: var(--muted); }
.scale-ladder { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: end; gap: .65rem; }
.scale-ladder article { min-height: 205px; padding: 1rem; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: .75rem .75rem 0 0; background: var(--surface); }
.scale-ladder article:nth-child(2) { min-height: 225px; }
.scale-ladder article:nth-child(3) { min-height: 245px; }
.scale-ladder article:nth-child(4) { min-height: 265px; }
.scale-ladder article:nth-child(5) { min-height: 285px; }
.scale-ladder article:nth-child(6) { min-height: 305px; }
.scale-ladder article:nth-child(7) { min-height: 325px; border-color: color-mix(in srgb, var(--blue) 50%, var(--line)); }
.scale-ladder h3 { margin: .65rem 0; }
.scale-ladder p { margin: 0; color: var(--muted); font-size: .78rem; }
.scale-ladder small { margin-top: auto; padding-top: .8rem; color: var(--green); }
.data-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.data-grid article { min-height: 210px; padding: 1.25rem; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: .8rem; background: var(--surface); }
.data-grid h3 { margin: .6rem 0; font-size: 1.35rem; }
.data-grid p { margin: 0; color: var(--muted); }
.data-grid b { margin-top: auto; padding-top: 1rem; color: var(--green); font-size: .78rem; }
.replication-diagram { margin-top: .8rem; padding: 1.3rem; display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 1rem; align-items: center; border: 1px solid var(--line); border-radius: .8rem; background: var(--surface-2); }
.diagram-title { display: grid; }
.diagram-title span { color: var(--violet); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.replica-map, .shard-map { display: flex; gap: .45rem; align-items: center; }
.replica-map i, .shard-map i { flex: 1; padding: .65rem .4rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--surface); text-align: center; font-size: .72rem; font-style: normal; }
.replica-map b { color: var(--blue); }
.replica-fanout { display: grid; gap: .35rem; flex: 1.35; }
.replica-fanout span { padding: .45rem .55rem; border: 1px solid var(--line); border-radius: .45rem; background: var(--surface); color: var(--muted); font-size: .69rem; text-align: center; }
.shard-map i { border-top: 2px solid var(--violet); }
.cap-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.cap-triangle { position: relative; min-height: 430px; background: conic-gradient(from 150deg at 50% 62%, transparent 0 32%, rgba(104,167,255,.13) 32% 34%, transparent 34% 65%, rgba(182,156,255,.13) 65% 67%, transparent 67% 98%, rgba(99,213,237,.13) 98%); }
.cap-node { position: absolute; width: 150px; min-height: 125px; padding: 1rem; display: grid; text-align: center; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); box-shadow: var(--shadow); }
.cap-node b { color: var(--blue); font-size: 2rem; }
.cap-node span { font-weight: 800; }
.cap-node small { color: var(--muted); }
.cap-node.c { top: 0; left: 50%; transform: translateX(-50%); }
.cap-node.a { bottom: 0; left: 5%; }
.cap-node.p { right: 5%; bottom: 0; }
.cap-center { position: absolute; top: 54%; left: 50%; color: var(--amber); text-align: center; font: 800 .75rem ui-monospace, monospace; text-transform: uppercase; transform: translate(-50%, -50%); }
.tradeoff-list { display: grid; gap: .8rem; }
.tradeoff-list article { padding: 1.2rem; border-left: 3px solid var(--violet); background: var(--surface); }
.tradeoff-list span { color: var(--violet); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.tradeoff-list strong { display: block; margin: .35rem 0; }
.tradeoff-list p { margin: 0; color: var(--muted); font-size: .85rem; }
.dual-flow { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.dual-flow > article { padding: 1.3rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--surface); }
.dual-flow header { display: flex; gap: 1rem; align-items: baseline; }
.dual-flow header h3 { font-size: 1.45rem; }
.mini-flow { margin: 1rem 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: .9rem; list-style: none; }
.mini-flow li { position: relative; min-height: 100px; padding: .7rem; display: grid; place-items: center; text-align: center; background: var(--surface-2); font-size: .75rem; }
.mini-flow li:not(:last-child)::after { content: "→"; position: absolute; right: -.7rem; color: var(--blue); transform: translateX(50%); }
.mini-flow b { color: var(--amber); }
.mini-flow .decision-diamond { border: 1px solid var(--violet); transform: rotate(45deg) scale(.72); }
.dual-flow > article > p { margin: 0; color: var(--muted); font-size: .83rem; }
.reliability-stack { display: grid; grid-template-columns: repeat(6, 1fr); gap: .65rem; }
.reliability-stack article { min-height: 200px; padding: 1rem; display: flex; flex-direction: column; border-top: 3px solid var(--blue); background: var(--surface); }
.reliability-stack article:nth-child(2) { border-color: var(--cyan); }
.reliability-stack article:nth-child(3) { border-color: var(--green); }
.reliability-stack article:nth-child(4) { border-color: var(--amber); }
.reliability-stack article:nth-child(5) { border-color: var(--violet); }
.reliability-stack span { color: var(--amber); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.reliability-stack strong { margin: 1rem 0 .5rem; }
.reliability-stack small { margin-top: auto; color: var(--muted); }
.slo-equation { margin-top: .8rem; padding: 1rem; display: flex; gap: .8rem; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--surface-2); }
.slo-equation span { color: var(--violet); font-weight: 800; }
.slo-equation strong { color: var(--blue); }
.slo-equation i { color: var(--muted); font-size: .76rem; font-style: normal; }
.interview-system-loop { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; list-style: none; }
.interview-system-loop li { position: relative; min-height: 270px; padding: 1.25rem; display: flex; flex-direction: column; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: .8rem; background: var(--surface); }
.interview-system-loop li:not(:last-child)::after { content: "→"; position: absolute; top: 50%; right: -1.1rem; z-index: 1; color: var(--blue); font-size: 1.5rem; transform: translate(50%, -50%); }
.interview-system-loop span { color: var(--amber); font: 800 .7rem ui-monospace, monospace; text-transform: uppercase; }
.interview-system-loop strong { margin: 1.2rem 0 .6rem; font-size: 1.25rem; }
.interview-system-loop p { margin: 0; color: var(--muted); font-size: .83rem; }
.interview-system-loop small { margin-top: auto; padding-top: .8rem; color: var(--green); }
.estimation-card { margin-top: .8rem; padding: 1.3rem; display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--surface-2); }
.estimation-card span { color: var(--violet); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.estimation-card h3 { margin: .4rem 0 0; font-size: 1.4rem; }
.estimation-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; }
.estimation-card dt { color: var(--blue); font-weight: 800; }
.estimation-card dd { margin: 0; color: var(--muted); }
.resource-path { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.resource-path article { min-height: 280px; padding: 1.25rem; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: .8rem; background: var(--surface); }
.resource-path h3 { margin: .7rem 0; font-size: 1.3rem; }
.resource-path p { margin: 0; color: var(--muted); font-size: .86rem; }
.resource-path a { margin-top: auto; padding-top: 1rem; color: var(--blue-2); text-decoration: none; font-weight: 750; }
.practice-loop i { color: var(--blue); font-style: normal; }
.scenario-tabs { display: flex; justify-content: center; gap: .55rem; margin-bottom: .8rem; }
.scenario-tab { padding: .7rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); cursor: pointer; font-weight: 750; }
.scenario-tab:hover, .scenario-tab.active { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 13%, var(--surface)); color: var(--text); }
.scenario-brief { padding: clamp(1.2rem, 3vw, 2rem); display: grid; grid-template-columns: 1.4fr .6fr; gap: 2rem; align-items: center; border: 1px solid color-mix(in srgb, var(--blue) 40%, var(--line)); border-radius: 1rem; background: radial-gradient(circle at 90% 20%, rgba(104,167,255,.13), transparent 18rem), var(--surface); }
.scenario-brief h3 { margin: .45rem 0; font-size: clamp(1.5rem, 3vw, 2.25rem); }
.scenario-brief p { margin: 0; color: var(--muted); }
.scenario-signals { margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; }
.scenario-signals li { padding: .5rem .7rem; border: 1px solid color-mix(in srgb, var(--cyan) 35%, var(--line)); border-radius: 999px; background: color-mix(in srgb, var(--cyan) 8%, transparent); font-size: .75rem; font-weight: 750; }
.practice-checkpoints { margin: .8rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; list-style: none; }
.practice-checkpoints > li { min-width: 0; padding: 1.2rem; border: 1px solid var(--line); border-radius: .85rem; background: var(--surface); }
.practice-checkpoints header { display: flex; gap: 1rem; align-items: baseline; }
.practice-checkpoints header span { color: var(--amber); font: 800 .68rem ui-monospace, monospace; text-transform: uppercase; }
.practice-checkpoints header strong { font-size: 1.08rem; }
.practice-checkpoints > li > p { color: var(--muted); font-size: .82rem; }
.practice-question { min-height: 92px; padding: .9rem; display: grid; gap: .35rem; background: var(--surface-2); }
.practice-question b { color: var(--green); font-size: .7rem; text-transform: uppercase; }
.practice-question span { font-weight: 650; }
.practice-checkpoints details { margin-top: .65rem; border-top: 1px solid var(--line); }
.practice-checkpoints summary { padding: .75rem 0 0; color: var(--blue-2); cursor: pointer; font-size: .78rem; font-weight: 750; }
.practice-checkpoints details div { padding-top: .6rem; color: var(--muted); font-size: .82rem; }
.practice-checkpoints details p { margin: 0; }
.practice-checkpoints code { color: var(--green); }
.interviewer-pressure { margin-top: .8rem; padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: .9rem; background: var(--surface-2); }
.interviewer-pressure h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
.pressure-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; }
.pressure-grid article { padding: 1rem; border-top: 2px solid var(--violet); background: var(--surface); }
.pressure-grid span { color: var(--violet); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.pressure-grid p { margin: .4rem 0 0; color: var(--muted); font-size: .78rem; }
.scorecard { margin-top: .8rem; padding: 1.3rem; display: grid; grid-template-columns: .7fr 1.3fr; gap: 2rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--surface); }
.scorecard > div span { color: var(--amber); font: 800 .68rem ui-monospace, monospace; text-transform: uppercase; }
.scorecard h3 { margin: .45rem 0; font-size: 1.4rem; }
.scorecard ul { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; list-style: none; }
.scorecard li { padding: .75rem; display: grid; background: var(--surface-2); }
.scorecard li b { color: var(--blue); font-size: .78rem; }
.scorecard li span { color: var(--muted); font-size: .74rem; }
.master-design-flow { padding: clamp(1rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 1.1rem; background: linear-gradient(145deg, color-mix(in srgb, var(--surface-2) 86%, transparent), var(--surface)); box-shadow: var(--shadow); }
.design-flow-root { width: min(100%, 480px); margin: 0 auto; padding: 1rem 1.25rem; display: grid; text-align: center; border: 1px solid color-mix(in srgb, var(--blue) 52%, var(--line)); border-radius: .85rem; background: var(--surface); }
.design-flow-root span, .factor-center span { color: var(--amber); font: 800 .68rem ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.design-flow-root small { color: var(--muted); }
.vertical-connector { width: 1px; height: 38px; margin: 0 auto; background: var(--line); }
.design-flow-steps { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: .7rem; counter-reset: design-step; list-style: none; }
.design-flow-steps li { position: relative; min-height: 220px; padding: 1rem; display: flex; flex-direction: column; border: 1px solid var(--line); border-top: 2px solid var(--blue); border-radius: .7rem; background: var(--surface); }
.design-flow-steps li:nth-child(n+6) { border-top-color: var(--violet); }
.design-flow-steps li:not(:nth-child(5)):not(:last-child)::after { content: "→"; position: absolute; top: 50%; right: -.55rem; z-index: 1; color: var(--blue); transform: translate(50%, -50%); }
.design-flow-steps li:nth-child(5)::before { display: none; }
.design-flow-steps li > span { color: var(--amber); font: 800 .7rem ui-monospace, monospace; }
.design-flow-steps strong { display: block; margin: .7rem 0 .4rem; }
.design-flow-steps p { margin: 0; color: var(--muted); font-size: .78rem; }
.design-flow-steps small { margin-top: auto; padding-top: .8rem; color: var(--green); font-size: .7rem; }
.factor-compass { position: relative; margin-top: 1rem; padding: 9rem 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: .7rem; }
.factor-center { position: absolute; top: 1rem; left: 50%; width: min(350px, 90%); min-height: 100px; padding: 1rem; display: grid; place-content: center; text-align: center; border: 1px solid color-mix(in srgb, var(--amber) 45%, var(--line)); border-radius: 50%; background: var(--surface); transform: translateX(-50%); }
.factor-compass article { min-height: 180px; padding: 1rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--surface); }
.factor-compass article > span { color: var(--violet); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.factor-compass article strong { display: block; margin: .6rem 0 .35rem; }
.factor-compass article p { margin: 0; color: var(--muted); font-size: .77rem; }
.selector-heading { margin: 5rem 0 1.5rem; text-align: center; }
.selector-heading h3 { margin-bottom: .5rem; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.selector-heading > p:last-child { margin: 0 auto; max-width: 680px; color: var(--muted); }
.system-selector { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.system-selector article { min-height: 175px; padding: 1rem; display: flex; flex-direction: column; border-left: 3px solid var(--blue); background: var(--surface); }
.system-selector article:nth-child(3n+2) { border-left-color: var(--cyan); }
.system-selector article:nth-child(3n) { border-left-color: var(--violet); }
.system-selector span { color: var(--amber); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.system-selector strong { margin: .7rem 0 .4rem; }
.system-selector small { margin-top: auto; color: var(--muted); line-height: 1.45; }
.decision-gates { margin-top: .8rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
.decision-gates article { padding: 1rem; border-top: 2px solid var(--green); background: var(--surface-2); }
.decision-gates span { color: var(--green); font: 800 .68rem ui-monospace, monospace; text-transform: uppercase; }
.decision-gates strong { display: block; margin: .55rem 0; }
.decision-gates p { margin: 0; color: var(--muted); font-size: .77rem; }
.memory-strip i { color: var(--blue); font-style: normal; font-weight: 800; }
.bottleneck-catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.bottleneck-catalog article { min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--surface); }
.bottleneck-catalog header { display: grid; margin-bottom: .75rem; padding-bottom: .65rem; border-bottom: 1px solid var(--line); }
.bottleneck-catalog header span { color: var(--amber); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.bottleneck-catalog header strong { font-size: 1.08rem; }
.bottleneck-catalog dl { margin: 0; display: grid; gap: .25rem; }
.bottleneck-catalog dt { margin-top: .4rem; color: var(--violet); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.bottleneck-catalog dd { margin: 0; color: var(--muted); font-size: .76rem; }
.bottleneck-method { margin-top: .8rem; padding: 1rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--surface-2); }
.bottleneck-method > span { display: block; margin-bottom: .7rem; color: var(--green); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.bottleneck-method ol { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; list-style: none; }
.bottleneck-method li { position: relative; padding: .8rem; display: grid; background: var(--surface); }
.bottleneck-method li:not(:last-child)::after { content: "→"; position: absolute; top: 50%; right: -.85rem; color: var(--blue); transform: translate(50%, -50%); }
.bottleneck-method b { color: var(--blue); }
.bottleneck-method small { color: var(--muted); }
.pattern-handbook { display: grid; grid-template-columns: repeat(2, 1fr); gap: .65rem; }
.pattern-handbook details { min-width: 0; border: 1px solid var(--line); border-radius: .75rem; background: var(--surface); }
.pattern-handbook summary { min-height: 92px; padding: 1rem; display: grid; grid-template-columns: auto 1fr; column-gap: .8rem; align-content: center; cursor: pointer; list-style: none; }
.pattern-handbook summary::-webkit-details-marker { display: none; }
.pattern-handbook summary::after { content: "+"; grid-column: 3; grid-row: 1 / span 2; align-self: center; color: var(--blue); font-size: 1.35rem; }
.pattern-handbook details[open] summary::after { content: "−"; }
.pattern-handbook summary span { grid-row: 1 / span 2; color: var(--amber); font: 800 .7rem ui-monospace, monospace; }
.pattern-handbook summary strong { align-self: end; }
.pattern-handbook summary small { color: var(--muted); }
.pattern-handbook details > div { padding: 0 1rem 1rem; border-top: 1px solid var(--line); }
.pattern-handbook details p { margin: .7rem 0 0; color: var(--muted); font-size: .8rem; }
.pattern-handbook details p b { color: var(--green); }

/* Multi-track Atlas landing page */
.atlas-hero h1 span { background-image: linear-gradient(110deg, var(--cyan), var(--violet), var(--amber)); }
.track-map { position: relative; padding: clamp(1rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 1.1rem; background: linear-gradient(145deg, color-mix(in srgb, var(--surface-2) 86%, transparent), var(--surface)); box-shadow: var(--shadow); }
.track-root { width: min(100%, 460px); margin: 0 auto; padding: 1rem; display: grid; text-align: center; border: 1px solid color-mix(in srgb, var(--blue) 50%, var(--line)); border-radius: .8rem; background: var(--surface); }
.track-root span, .selector-question span { color: var(--amber); font: 800 .68rem ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.track-connector { width: 1px; height: 44px; margin: 0 auto; background: var(--line); }
.track-grid { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; }
.track-grid::before { content: ""; position: absolute; top: -22px; left: 10%; right: 10%; height: 1px; background: var(--line); }
.track-card { position: relative; min-height: 275px; padding: 1rem; display: flex; flex-direction: column; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: .8rem; background: var(--surface); text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.track-card::before { content: ""; position: absolute; top: -22px; left: 50%; width: 1px; height: 22px; background: var(--line); }
.track-card:hover, .track-card:focus-visible { transform: translateY(-5px); border-color: var(--blue); }
.track-card.systems { border-top-color: var(--violet); }
.track-card.hardware { border-top-color: var(--amber); }
.track-card.embedded { border-top-color: var(--green); }
.track-card.acim { border-top-color: var(--cyan); }
.track-card > span { color: var(--amber); font: 800 .66rem ui-monospace, monospace; text-transform: uppercase; }
.track-card h3 { margin: .9rem 0 .55rem; font-size: 1.2rem; }
.track-card p { margin: 0; color: var(--muted); font-size: .8rem; }
.track-card small { margin-top: auto; padding-top: .9rem; color: var(--blue-2); font-weight: 750; }
.atlas-loop { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: .7rem; list-style: none; }
.atlas-loop li { position: relative; min-height: 180px; padding: 1rem; display: flex; flex-direction: column; border-top: 2px solid var(--blue); background: var(--surface); }
.atlas-loop li:nth-child(n+6) { border-top-color: var(--violet); }
.atlas-loop li:not(:nth-child(5)):not(:last-child)::after { content: "→"; position: absolute; top: 50%; right: -.55rem; z-index: 1; color: var(--blue); transform: translate(50%, -50%); }
.atlas-loop li:nth-child(5)::before { display: none; }
.atlas-loop span { color: var(--amber); font: 800 .7rem ui-monospace, monospace; }
.atlas-loop strong { margin: .8rem 0 .4rem; }
.atlas-loop p { margin: auto 0 0; color: var(--muted); font-size: .78rem; }
.atlas-formula { margin-top: .8rem; padding: 1rem 1.2rem; display: flex; gap: 1rem; align-items: center; border: 1px solid var(--line); background: var(--surface-2); }
.atlas-formula b { color: var(--green); white-space: nowrap; }
.atlas-formula span { color: var(--muted); }
.atlas-formula i { color: var(--blue); font-style: normal; font-weight: 800; }
.atlas-selector { padding: clamp(1rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 1rem; background: var(--surface-2); }
.selector-question { width: min(100%, 480px); margin: 0 auto 3rem; padding: 1rem; display: grid; text-align: center; border: 1px solid color-mix(in srgb, var(--blue) 50%, var(--line)); border-radius: .8rem; background: var(--surface); }
.selector-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .7rem; }
.selector-grid article { min-height: 225px; padding: 1rem; display: flex; flex-direction: column; border-left: 3px solid var(--violet); background: var(--surface); }
.selector-grid article > span { color: var(--amber); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.selector-grid h3 { margin: .7rem 0 .4rem; }
.selector-grid p { margin: 0; color: var(--muted); font-size: .78rem; }
.selector-grid a { margin-top: auto; padding-top: .8rem; color: var(--blue-2); text-decoration: none; font-weight: 750; }
.practice-matrix { display: grid; grid-template-columns: repeat(5, 1fr); gap: .7rem; }
.practice-matrix a { min-height: 180px; padding: 1rem; display: flex; flex-direction: column; border: 1px solid var(--line); border-top: 2px solid var(--blue); border-radius: .75rem; background: var(--surface); text-decoration: none; }
.practice-matrix a:hover, .practice-matrix a:focus-visible { border-color: var(--blue); }
.practice-matrix span { color: var(--amber); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.practice-matrix strong { margin: .8rem 0 .45rem; }
.practice-matrix small { margin-top: auto; color: var(--muted); }

/* Shared track-page building blocks */
.track-page-hero { min-height: 690px; }
.track-page-hero h1 { font-size: clamp(3rem, 6vw, 5.8rem); }
.visual-board { padding: clamp(1rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 1rem; background: color-mix(in srgb, var(--surface) 88%, transparent); }
.source-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.source-list a { padding: 1rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--surface); color: var(--blue-2); text-decoration: none; font-weight: 700; }
.case-checkpoints { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; list-style: none; }
.case-checkpoints > li { padding: 1rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--surface); }
.case-checkpoints header { display: flex; gap: .8rem; align-items: baseline; }
.case-checkpoints header span { color: var(--amber); font: 800 .68rem ui-monospace, monospace; text-transform: uppercase; }
.case-checkpoints p { color: var(--muted); font-size: .82rem; }
.case-checkpoints details { margin-top: .7rem; border-top: 1px solid var(--line); }
.case-checkpoints summary { padding-top: .7rem; color: var(--blue-2); cursor: pointer; font-weight: 750; }
.case-checkpoints details div { color: var(--muted); font-size: .82rem; }

@media (max-width: 1050px) {
  .track-grid, .selector-grid, .practice-matrix { grid-template-columns: repeat(2, 1fr); }
  .track-grid::before, .track-card::before { display: none; }
  .atlas-loop { grid-template-columns: repeat(2, 1fr); }
  .atlas-loop li::after, .atlas-loop li::before { display: none; }
}
@media (max-width: 760px) {
  .track-grid, .selector-grid, .practice-matrix, .atlas-loop, .case-checkpoints, .source-list { grid-template-columns: 1fr; }
  .atlas-formula { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 1050px) {
  .request-flow { grid-template-columns: repeat(4, 1fr); }
  .request-flow li:nth-child(4)::after { display: none; }
  .scale-ladder { grid-template-columns: repeat(4, 1fr); align-items: stretch; }
  .scale-ladder article { min-height: 220px !important; }
  .reliability-stack { grid-template-columns: repeat(3, 1fr); }
  .design-flow-steps { grid-template-columns: repeat(2, 1fr); }
  .design-flow-steps li::after, .design-flow-steps li::before { display: none; }
  .factor-compass { grid-template-columns: repeat(2, 1fr); }
  .system-selector { grid-template-columns: repeat(2, 1fr); }
  .bottleneck-catalog { grid-template-columns: repeat(2, 1fr); }
  .decision-gates { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .request-flow, .data-grid, .resource-path, .interview-system-loop, .reliability-stack { grid-template-columns: 1fr; }
  .request-flow li::after, .interview-system-loop li::after { display: none; }
  .scale-ladder { grid-template-columns: repeat(2, 1fr); }
  .cap-layout, .dual-flow, .estimation-card, .replication-diagram { grid-template-columns: 1fr; }
  .scenario-brief, .practice-checkpoints, .scorecard { grid-template-columns: 1fr; }
  .pressure-grid, .scorecard ul { grid-template-columns: 1fr; }
  .design-flow-steps, .factor-compass, .system-selector, .decision-gates { grid-template-columns: 1fr; }
  .bottleneck-catalog, .pattern-handbook { grid-template-columns: 1fr; }
  .bottleneck-method ol { grid-template-columns: 1fr; }
  .bottleneck-method li::after { display: none; }
  .scenario-tabs { flex-wrap: wrap; }
  .mini-flow { grid-template-columns: 1fr; }
  .mini-flow li::after { display: none; }
  .slo-equation { flex-wrap: wrap; }
}
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 3%, rgba(70, 132, 220, .16), transparent 30rem),
    radial-gradient(circle at 90% 22%, rgba(243, 180, 81, .08), transparent 24rem),
    linear-gradient(rgba(104, 167, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(104, 167, 255, .025) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 52px 52px, 52px 52px, auto;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; }
button, input { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; left: 1rem; top: -4rem; padding: .7rem 1rem; background: var(--blue); color: var(--on-accent); border-radius: .5rem; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  min-height: 68px;
  padding: 0 max(1.2rem, calc((100vw - var(--max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-weight: 650; letter-spacing: -.02em; }
.brand-mark { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: .55rem; background: var(--blue); color: var(--on-accent); font: 800 .78rem ui-monospace, monospace; }
nav { display: flex; gap: 1.6rem; }
nav a { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 600; }
nav a:hover, nav a:focus-visible { color: var(--text); }
nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-decoration-thickness: .18em;
  text-underline-offset: .5em;
}
.icon-button { width: 2.5rem; height: 2.5rem; border: 1px solid var(--line); border-radius: 999px; color: var(--text); background: var(--surface); cursor: pointer; }

main { overflow: clip; }
.hero, .section, footer { width: min(calc(100% - 2.4rem), var(--max)); margin-inline: auto; }
.hero { min-height: 760px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(3rem, 7vw, 7rem); padding: 6rem 0 5rem; }
.eyebrow { margin: 0 0 .8rem; color: var(--amber); font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -.035em; }
h1 { max-width: 720px; margin-bottom: 1.4rem; font-size: clamp(3.2rem, 7vw, 6.5rem); }
h1 span { color: var(--blue); background: linear-gradient(110deg, var(--blue), var(--cyan), var(--violet)); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
h2 { margin-bottom: .8rem; font-size: clamp(2.1rem, 4vw, 3.8rem); }
h3 { font-size: 1.05rem; }
.hero-lead, .section-heading > p:not(.eyebrow) { max-width: 670px; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 2.4rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .75rem 1.15rem; border-radius: .65rem; text-decoration: none; font-weight: 750; }
.button.primary { background: var(--blue); color: var(--on-accent); }
.button.secondary { border: 1px solid var(--line); background: var(--surface); }
.hero-stats { display: flex; gap: 2.4rem; margin: 0; padding: 0; list-style: none; }
.hero-stats li { display: grid; }
.hero-stats strong { font-size: 1.35rem; }
.hero-stats span { color: var(--muted); font-size: .78rem; }
.hero-panel { position: relative; overflow: hidden; border: 1px solid color-mix(in srgb, var(--blue) 28%, var(--line)); border-radius: 1rem; background: #08101c; box-shadow: var(--shadow), 0 0 80px rgba(104,167,255,.12); transform: rotate(1deg); }
.hero-panel::after { content: ""; position: absolute; width: 180px; height: 180px; right: -80px; bottom: -100px; border-radius: 50%; background: rgba(99,213,237,.12); filter: blur(30px); pointer-events: none; }
.terminal-bar { height: 46px; display: flex; align-items: center; gap: .42rem; padding: 0 1rem; border-bottom: 1px solid rgba(255,255,255,.1); color: #8fa2bb; font: .75rem ui-monospace, monospace; }
.terminal-bar i { width: .66rem; height: .66rem; border-radius: 50%; background: #ff6b6b; }
.terminal-bar i:nth-child(2) { background: #f4bf4f; }
.terminal-bar i:nth-child(3) { background: #5fd38d; margin-right: .5rem; }
.hero-panel pre { margin: 0; padding: clamp(1.2rem, 3vw, 2.2rem); color: #dbe8f8; font: clamp(.78rem, 1.4vw, .96rem)/1.85 ui-monospace, SFMono-Regular, Consolas, monospace; overflow: auto; }
.hero-panel .muted { color: #70839b; }
.hero-panel b { color: #78b2ff; }
.section-source { max-width: 760px; margin-top: 1rem; color: var(--muted); font-size: .9rem; }
.section-source a { color: var(--blue-2); }
.advanced-hero { min-height: 700px; }
.advanced-hero h1 span { background-image: linear-gradient(110deg, var(--violet), var(--cyan), var(--blue)); }
.thinking-hero { min-height: 710px; }
.thinking-hero h1 span { background-image: linear-gradient(110deg, var(--amber), var(--cyan), var(--blue)); }

.section { padding: 7rem 0; }
.section-heading { margin-bottom: 3rem; }
.centered-heading { margin-inline: auto; text-align: center; }
.centered-heading > p:not(.eyebrow) { margin-inline: auto; }
.flow-grid { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); list-style: none; }
.flow-grid li { min-height: 190px; padding: 1.3rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); transition: transform .2s ease, background .2s ease; }
.flow-grid li:hover { transform: translateY(-3px); background: var(--surface); }
.flow-grid span { color: var(--blue); font: 700 .78rem ui-monospace, monospace; }
.flow-grid h3 { margin: 2.2rem 0 .45rem; }
.flow-grid p { margin: 0; color: var(--muted); font-size: .88rem; }

.decision-section { width: min(calc(100% - 2.4rem), 1320px); }
.decision-board { position: relative; padding: clamp(1.2rem, 3vw, 2.2rem); border: 1px solid var(--line); border-radius: 1.25rem; background: linear-gradient(145deg, color-mix(in srgb, var(--surface-2) 88%, transparent), color-mix(in srgb, var(--surface) 92%, transparent)); box-shadow: var(--shadow); }
.decision-board::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 50% 0, rgba(104,167,255,.12), transparent 38%); pointer-events: none; }
.decision-root { position: relative; z-index: 1; width: min(100%, 420px); margin: 0 auto; padding: 1.1rem 1.25rem; display: grid; text-align: center; border: 1px solid color-mix(in srgb, var(--blue) 48%, var(--line)); border-radius: .85rem; background: var(--surface); box-shadow: 0 14px 40px rgba(0,0,0,.16); }
.decision-root span, .decision-result-label { color: var(--amber); font: 800 .8125rem ui-monospace, monospace; letter-spacing: .11em; text-transform: uppercase; }
.decision-root strong { margin: .25rem 0; font-size: 1.05rem; }
.decision-root small { color: var(--muted); }
.decision-line { position: relative; width: 1px; height: 38px; margin: 0 auto; background: var(--line); }
.decision-line::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 7px; height: 7px; border-right: 1px solid var(--blue); border-bottom: 1px solid var(--blue); transform: translateX(-50%) rotate(45deg); }
.decision-branches { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; }
.decision-branches::before { content: ""; position: absolute; top: -18px; left: 10%; right: 10%; height: 1px; background: var(--line); }
.decision-node { position: relative; min-height: 82px; padding: 1rem .8rem; display: grid; place-items: center; gap: .25rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--surface); color: var(--muted); cursor: pointer; font-weight: 750; transition: transform .2s ease, border-color .2s ease, color .2s ease, background .2s ease; }
.decision-node::before { content: ""; position: absolute; top: -18px; left: 50%; width: 1px; height: 18px; background: var(--line); }
.decision-node span { color: var(--blue); font: 700 .8125rem ui-monospace, monospace; }
.decision-node:hover { transform: translateY(-3px); color: var(--text); border-color: color-mix(in srgb, var(--blue) 55%, var(--line)); }
.decision-node.active { color: var(--text); border-color: var(--blue); background: color-mix(in srgb, var(--blue) 13%, var(--surface)); box-shadow: 0 10px 30px rgba(34,104,200,.12); }
.decision-result { position: relative; margin-top: 1.5rem; padding: 1.25rem; display: grid; grid-template-columns: .85fr 1.15fr; gap: 2rem; align-items: center; border: 1px solid var(--line); border-radius: .85rem; background: color-mix(in srgb, var(--surface-3) 76%, transparent); }
.decision-result p { margin: .35rem 0 0; color: var(--text); font-weight: 650; }
.algorithm-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .45rem; }
.algorithm-chip { padding: .48rem .7rem; border: 1px solid color-mix(in srgb, var(--cyan) 38%, var(--line)); border-radius: 999px; background: color-mix(in srgb, var(--cyan) 8%, transparent); color: var(--text); font-size: .76rem; font-weight: 750; }

footer { min-height: 190px; display: grid; grid-template-columns: .6fr 1.2fr .4fr; gap: 2rem; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
footer div { display: flex; align-items: center; gap: .7rem; color: var(--text); }
footer a { justify-self: end; color: var(--blue-2); text-decoration: none; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (max-width: 900px) {
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 4rem; }
  .hero-panel { transform: none; }
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .decision-branches { grid-template-columns: repeat(2, 1fr); }
  .decision-branches::before, .decision-node::before { display: none; }
  .decision-result { grid-template-columns: 1fr; gap: 1rem; }
  footer { grid-template-columns: 1fr; padding: 2.5rem 0; }
  footer a { justify-self: start; }
}
@media (max-width: 560px) {
  .site-header { padding-inline: 1rem; }
  h1 { font-size: 3.1rem; }
  .hero-stats { gap: 1.25rem; }
  .flow-grid { grid-template-columns: 1fr; }
  .decision-branches { grid-template-columns: 1fr; }
  .section { padding: 5rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Systems Engineering track */
.se-hero h1 span { background-image: linear-gradient(110deg, var(--violet), var(--cyan), var(--green)); }
:is(.page-nav, .se-page-nav) { position: sticky; z-index: 40; top: 68px; width: min(calc(100% - 2.4rem), var(--max)); margin: -2.4rem auto 0; padding: .65rem; display: flex; gap: .35rem; overflow-x: auto; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(16px); }
:is(.page-nav, .se-page-nav) a { flex: 0 0 auto; padding: .45rem .65rem; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: .8125rem; font-weight: 700; }
:is(.page-nav, .se-page-nav) a:hover, :is(.page-nav, .se-page-nav) a:focus-visible { background: var(--surface); color: var(--text); }
:is(.page-nav, .se-page-nav) ~ section[id] { scroll-margin-top: 145px; }
.se-context-map { margin: 0; padding: 1rem; display: grid; gap: .65rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface-2); }
.se-context-ring { display: grid; grid-template-columns: repeat(2, 1fr); gap: .65rem; }
.se-context-exchanges { grid-template-columns: 1fr 1.25fr 1fr; }
.se-context-ring article, .se-system-of-interest { min-height: 115px; padding: 1rem; display: grid; align-content: center; text-align: center; border: 1px solid var(--line); border-radius: .7rem; background: var(--surface); }
.se-system-of-interest { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 10%, var(--surface)); }
.se-context-ring span, .se-architecture-column > span, .se-interface-contract > span { color: var(--amber); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.se-context-ring small, .se-architecture-column small { color: var(--muted); }
.se-context-map figcaption, .se-allocation-map figcaption, .se-v-model figcaption { padding: .5rem; color: var(--muted); text-align: center; font-size: .76rem; }
.se-allocation-map { margin: 0; padding: 1rem; display: grid; grid-template-columns: 1fr 90px 1fr; gap: .7rem; align-items: center; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface-2); }
.se-allocation-map figcaption { grid-column: 1 / -1; }
.se-architecture-column { display: grid; gap: .5rem; }
.se-architecture-column article { padding: .8rem; display: grid; border-left: 3px solid var(--violet); background: var(--surface); }
.se-allocation-connectors { display: grid; place-items: center; gap: .7rem; color: var(--blue); }
.se-allocation-connectors span { color: var(--amber); font-size: .65rem; text-transform: uppercase; }
.se-table-wrap { margin-top: .8rem; overflow-x: auto; border: 1px solid var(--line); border-radius: .8rem; }
.se-matrix { width: 100%; min-width: 760px; border-collapse: collapse; background: var(--surface); }
.se-matrix caption { padding: 1rem; color: var(--blue-2); text-align: left; font-weight: 800; }
.se-matrix th, .se-matrix td { padding: .8rem; border-top: 1px solid var(--line); text-align: left; font-size: .76rem; vertical-align: top; }
.se-matrix thead th { color: var(--amber); font-size: .68rem; text-transform: uppercase; }
.se-matrix tbody th { color: var(--text); }
.se-matrix td { color: var(--muted); }
.se-interface-contract { margin-top: .8rem; padding: 1rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--surface-2); }
.se-interface-contract ol { margin: .7rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: .5rem; list-style: none; }
.se-interface-contract li { padding: .7rem; display: grid; background: var(--surface); }
.se-interface-contract b { color: var(--blue); }
.se-interface-contract small { color: var(--muted); }
.se-requirement-anatomy, .se-case-assumptions { margin-top: .8rem; padding: 1rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--surface-2); }
.se-fault-tree { padding: 1rem; display: grid; justify-items: center; gap: .6rem; }
.se-fault-top { padding: .8rem 1rem; display: grid; text-align: center; border: 1px solid var(--amber); border-radius: .6rem; background: var(--surface-2); }
.se-fault-top small { color: var(--muted); }
.se-fault-gate { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--violet); border-radius: 50%; color: var(--violet); }
.se-fault-branches { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.se-fault-branches article { padding: .7rem; display: grid; border-top: 2px solid var(--violet); background: var(--surface-2); }
.se-fault-branches small { color: var(--muted); }
.se-v-model { margin: 0; padding: 1rem; display: grid; grid-template-columns: 1fr .55fr 1fr; gap: .7rem; align-items: end; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface-2); }
.se-v-left, .se-v-right { margin: 0; padding: 0; display: grid; gap: .5rem; list-style: none; }
.se-v-left li, .se-v-right li { padding: .7rem; display: grid; border-left: 3px solid var(--blue); background: var(--surface); }
.se-v-right li { border-left-color: var(--green); }
.se-v-left span, .se-v-right span { color: var(--amber); font-size: .65rem; text-transform: uppercase; }
.se-v-left small, .se-v-right small, .se-v-build small { color: var(--muted); }
.se-v-build { margin-bottom: 0; padding: 1rem; display: grid; text-align: center; border: 1px solid var(--violet); border-radius: .8rem; background: var(--surface); }
.se-v-build span { color: var(--violet); font-size: .68rem; text-transform: uppercase; }
.se-v-model figcaption { grid-column: 1 / -1; }
.se-practice-timeline { margin: .8rem 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; list-style: none; }
.se-practice-timeline li { padding: .8rem; display: grid; border-top: 2px solid var(--blue); background: var(--surface); }
.se-practice-timeline span { color: var(--amber); font: 800 .68rem ui-monospace, monospace; }
.se-practice-timeline small { color: var(--muted); }
.se-case-scorecard, .se-pressure-test { margin-top: .8rem; }

@media (max-width: 900px) {
  .site-header { flex-wrap: wrap; padding-block: .5rem; }
  .site-header nav { order: 3; width: 100%; display: flex; overflow-x: auto; gap: 1rem; padding-bottom: .25rem; }
  .site-header nav a { flex: 0 0 auto; }
  :is(.page-nav, .se-page-nav) { top: 105px; }
  :is(.page-nav, .se-page-nav) ~ section[id] { scroll-margin-top: 175px; }
  .se-allocation-map, .se-v-model { grid-template-columns: 1fr; }
  .se-allocation-connectors { grid-template-columns: repeat(6, auto); }
  .se-allocation-connectors b { transform: rotate(90deg); }
  .se-v-model figcaption { grid-column: 1; }
  .se-interface-contract ol, .se-practice-timeline { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .se-context-ring, .se-context-exchanges, .se-fault-branches, .se-interface-contract ol, .se-practice-timeline { grid-template-columns: 1fr; }
  :is(.page-nav, .se-page-nav) { top: 105px; border-radius: .75rem; }
}

.site-header nav, .page-nav, .se-page-nav {
  scrollbar-width: thin;
  scrollbar-color: var(--blue) transparent;
}
.site-header nav::-webkit-scrollbar, .page-nav::-webkit-scrollbar, .se-page-nav::-webkit-scrollbar {
  height: .28rem;
}
.site-header nav::-webkit-scrollbar-thumb, .page-nav::-webkit-scrollbar-thumb, .se-page-nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--blue);
}

/* Shared deep-dive and evidence components */
.deep-dive-section { position: relative; }
.reasoning-workbench { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 1rem; align-items: stretch; }
.workbench-main, .formula-board { padding: clamp(1.1rem, 2.5vw, 1.8rem); border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); box-shadow: var(--shadow); }
.workbench-main > span, .formula-board > span, .workbench-card > span, .source-map article > span { color: var(--amber); font: 800 .66rem ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .11em; text-transform: uppercase; }
.workbench-main h3, .formula-board h3 { margin: .7rem 0 1rem; font-size: clamp(1.25rem, 2.4vw, 1.8rem); }
.workbench-main > p, .formula-board > p { color: var(--muted); }
.evidence-chain { margin: 1.2rem 0 0; padding: 0; display: grid; gap: .55rem; counter-reset: evidence-step; list-style: none; }
.evidence-chain li { min-height: 72px; padding: .8rem .85rem; display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .75rem; align-items: start; border: 1px solid var(--line); border-left: 3px solid var(--blue); background: var(--surface-2); counter-increment: evidence-step; }
.evidence-chain li::before { content: counter(evidence-step, decimal-leading-zero); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: color-mix(in srgb, var(--blue) 16%, var(--surface)); color: var(--blue-2); font: 800 .65rem ui-monospace, monospace; }
.evidence-chain li div { min-width: 0; }
.evidence-chain li b { display: block; margin-bottom: .22rem; }
.evidence-chain li span { color: var(--muted); font-size: .78rem; line-height: 1.55; }
.formula-stack { display: grid; gap: .6rem; }
.formula-line { padding: .8rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--surface-2); }
.formula-line b { display: block; margin-bottom: .35rem; color: var(--text); font-size: .8rem; }
.formula-line code { display: block; overflow-wrap: anywhere; color: var(--cyan); font-size: .76rem; white-space: normal; }
.formula-line small { display: block; margin-top: .35rem; color: var(--muted); line-height: 1.45; }
.workbench-grid { margin-top: 1rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.workbench-card { min-height: 190px; padding: 1rem; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: .75rem; background: var(--surface); }
.workbench-card:nth-child(2) { border-top-color: var(--green); }
.workbench-card:nth-child(3) { border-top-color: var(--violet); }
.workbench-card:nth-child(4) { border-top-color: var(--amber); }
.workbench-card h3 { margin: .65rem 0 .5rem; }
.workbench-card p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.6; }
.reference-trail { margin-top: 1rem; padding: 1rem; display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; border: 1px solid var(--line); border-radius: .75rem; background: var(--surface-2); }
.reference-trail > strong { margin-right: .25rem; font-size: .78rem; }
.reference-trail a { padding: .48rem .65rem; border: 1px solid color-mix(in srgb, var(--blue) 30%, var(--line)); border-radius: 999px; background: color-mix(in srgb, var(--blue) 7%, transparent); color: var(--blue-2); font-size: .78rem; font-weight: 750; text-decoration: none; }
.reference-trail a:hover, .reference-trail a:focus-visible { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 14%, transparent); }
.source-map { margin-top: 1rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.source-map article { min-height: 150px; padding: 1rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--surface); }
.source-map strong { display: block; margin: .65rem 0 .4rem; }
.source-map p { margin: 0; color: var(--muted); font-size: .77rem; line-height: 1.55; }
.detail-table-wrap { margin-top: 1rem; overflow-x: auto; border: 1px solid var(--line); border-radius: .85rem; background: var(--surface); }
.detail-table { width: 100%; min-width: 780px; border-collapse: collapse; }
.detail-table caption { padding: .9rem 1rem; color: var(--muted); font-size: .82rem; line-height: 1.5; text-align: left; }
.detail-table th, .detail-table td { padding: .78rem .9rem; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.detail-table thead th { color: var(--amber); background: var(--surface-2); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.detail-table tbody th { color: var(--text); font-size: .82rem; }
.detail-table td { color: var(--muted); font-size: .82rem; line-height: 1.5; }
.hw-roofline-plot::before,
.hw-roofline-plot::after,
.hw-roofline-label,
.hw-roofline-dot small { font-size: .8125rem; }
.compact-flow { margin-top: 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1rem; list-style: none; }
.compact-flow li { position: relative; min-height: 105px; padding: .8rem; display: grid; align-content: center; border: 1px solid var(--line); border-top: 3px solid var(--violet); border-radius: .65rem; background: var(--surface); }
.compact-flow li:not(:last-child)::after { content: "→"; position: absolute; top: 50%; right: -.7rem; z-index: 1; color: var(--blue); transform: translate(50%, -50%); }
.compact-flow b { margin-bottom: .28rem; font-size: .78rem; }
.compact-flow span { color: var(--muted); font-size: .8rem; line-height: 1.45; }
.evidence-note { margin-top: 1rem; padding: .9rem 1rem; border-left: 3px solid var(--amber); background: var(--surface-2); color: var(--muted); font-size: .78rem; line-height: 1.6; }
.evidence-note b { color: var(--text); }

@media (max-width: 920px) {
  .reasoning-workbench { grid-template-columns: 1fr; }
  .workbench-grid, .source-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compact-flow li::after { display: none; }
}

@media (max-width: 560px) {
  .workbench-grid, .source-map { grid-template-columns: 1fr; }
  .evidence-chain li { grid-template-columns: 1fr; }
  .compact-flow { grid-template-columns: 1fr; gap: .55rem; }
  .compact-flow li { min-height: auto; }
  .compact-flow li::after { display: none; }
}
