/* The opening map is illustrative; leaderboard evidence remains below. */
.home-hero{position:relative;isolation:isolate;min-height:calc(100svh - var(--home-nav-height,100px));display:flex;align-items:center;justify-content:center;text-align:center;overflow:hidden;padding:80px 0 120px;border-bottom:1px solid var(--rule)}
.home-hero-copy{width:100%;position:relative;z-index:1}
.home-hero-eyebrow{font:600 11px/1.5 var(--mono);text-transform:uppercase;letter-spacing:.12em;color:var(--orange-ink);margin:0 0 30px}
.home-hero h1{font:500 clamp(42px,5.3vw,76px)/1.09 var(--sans);letter-spacing:-.055em;color:var(--fg);margin:0 auto;max-width:29ch;text-wrap:balance}
.home-hero h1 strong{font-weight:700;color:var(--orange-ink)}
.home-eval-word{color:var(--home-agent-ink)}
.home-hero-subline{font:400 clamp(17px,1.5vw,21px)/1.6 var(--sans);color:var(--fg-muted);max-width:58ch;margin:30px auto 36px;text-wrap:pretty}
.home-hero-cta{display:inline-flex;align-items:center;justify-content:center;min-height:38px;margin-inline:auto}
.home-hero-cta .lbl{padding-block:8px}
.home-hero-cta .lbl{display:flex;align-items:center;gap:28px}
.home-hero-scroll{position:absolute;bottom:28px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:24px;white-space:nowrap;font:500 10px/1.5 var(--mono);color:var(--fg-muted);padding:12px}
.home-hero-scroll span{color:var(--teal);font-size:19px}
.home-hero a:focus-visible{outline:2px solid var(--teal);outline-offset:6px}
.home-reach-map{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none}
.home-reach-map path{fill:none;stroke:var(--teal);stroke-width:1}
.home-map-grid{opacity:.08}
#home-map-grid path{stroke:var(--fg);stroke-dasharray:3 4}
.home-map-branches{opacity:.18}
.home-map-signals{opacity:.6}
.home-map-signals path{stroke-width:2;stroke-dasharray:30 970}
.home-map-signals .home-map-leak{stroke:var(--orange-ink)}
.home-map-nodes>*{fill:var(--bg);stroke:var(--teal);stroke-width:1.5;opacity:.55}
.home-map-nodes .home-map-sink{stroke:var(--orange-ink)}
.home-map-rings circle{fill:none;stroke:var(--teal);stroke-width:1;opacity:.18;transform-box:fill-box;transform-origin:center}
#leaderboard{scroll-margin-top:calc(var(--home-nav-height,100px) + 16px)}
@media(prefers-reduced-motion:no-preference){
 html{scroll-behavior:smooth}
 .home-map-signals path{animation:home-map-flow 10s linear infinite}
 .home-map-signals path:nth-child(2){animation-delay:-4s}
 .home-map-signals path:nth-child(3){animation-delay:-7s}
 .home-map-rings circle{animation:home-map-pulse 6s ease-in-out infinite}
 .home-map-rings circle:nth-child(2){animation-delay:-2s}
 .home-map-rings circle:nth-child(3){animation-delay:-4s}
 .home-hero-copy{animation:home-copy-enter .8s ease both}
 .home-hero[data-paused] .home-reach-map *{animation-play-state:paused}
 @keyframes home-map-flow{from{stroke-dashoffset:1030}to{stroke-dashoffset:0}}
 @keyframes home-map-pulse{0%,100%{transform:scale(.8);opacity:.12}50%{transform:scale(1.3);opacity:.4}}
 @keyframes home-copy-enter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
}
@media(max-width:600px){.home-hero{padding:65px 0 110px}.home-hero h1{font-size:clamp(35px,9.5vw,48px);max-width:18ch}.home-hero-eyebrow{margin-bottom:24px}.home-hero-subline{font-size:17px;max-width:30ch;margin:26px auto 30px}.home-hero-scroll{bottom:18px;font-size:9px}.home-reach-map{opacity:.75}}
@media(max-height:600px) and (min-width:601px){.home-hero{padding:40px 0 85px}.home-hero h1{font-size:44px}.home-hero-eyebrow{margin-bottom:18px}.home-hero-subline{margin:20px auto}}
@media print{.home-reach-map,.home-hero-scroll{display:none}.home-hero{min-height:0;padding:30px 0}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.home-hero-scroll.btn-cut{padding:0;min-height:36px;color:var(--noir);font-size:12px}
.home-hero-scroll.btn-cut .lbl{padding-block:7px}
.home-hero-scroll.btn-cut .lbl{display:flex;align-items:center;gap:24px;font-size:12px}
.home-hero-scroll.btn-cut .lbl>span{color:inherit;font-size:18px}
@media(max-width:600px){.home-hero-scroll.btn-cut .lbl{font-size:10px;gap:14px;padding-inline:12px}}

.home-hero{--home-agent-ink:#2a6377}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]) .home-hero{--home-agent-ink:var(--teal)}}
:root[data-theme="dark"] .home-hero{--home-agent-ink:var(--teal)}

/* An illustrative engine cycle: inspect → decide → resolve → return to node. */
.home-security-overlay{position:absolute;inset:0;pointer-events:none;z-index:0;--engine-gold:#795408}
.home-security-status,.home-mobile-status{--status-color:var(--home-agent-ink);--cycle-delay:0s;position:absolute;left:33.33%;top:16%;width:234px;height:96px;transform:translate(-50%,-50%);border:1px solid var(--status-color);border-radius:5px;background:color-mix(in srgb,var(--status-color) 4%,var(--bg));color:var(--status-color);overflow:hidden}
.home-status-blocked{--status-color:var(--orange-ink);--cycle-delay:0s;left:66.67%}
.home-status-taint{--status-color:var(--engine-gold);--cycle-delay:0s;left:83.33%;top:90%}
.home-status-content{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:234px;height:96px;text-align:left}
.home-status-content:before,.home-status-content:after{content:"";position:absolute;width:12px;height:12px;border-color:var(--status-color);border-style:solid;opacity:.75}
.home-status-content:before{left:4px;top:4px;border-width:1px 0 0 1px}
.home-status-content:after{right:4px;bottom:4px;border-width:0 1px 1px 0}
.home-engine-header{position:absolute;inset:12px 15px auto;display:flex;align-items:center;justify-content:space-between;font:600 10px/1.2 var(--mono);color:var(--fg)}
.home-engine-header>span{font:500 7px/1.2 var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--fg-muted)}
.home-engine-check,.home-engine-alert,.home-engine-result{position:absolute;top:35px;left:15px;font:600 13px/1.3 var(--mono);white-space:nowrap}
.home-engine-check{font-size:11px;color:var(--fg-muted);opacity:0}
.home-engine-alert{color:var(--engine-gold);opacity:0}
.home-engine-detail{position:absolute;left:15px;top:58px;font:400 10px/1.3 var(--mono);color:var(--fg-muted);white-space:nowrap}
.home-engine-progress{position:absolute;left:15px;right:15px;bottom:11px;height:2px;background:var(--status-color);transform-origin:left}
.home-mobile-status{display:none}

@media(prefers-color-scheme:dark){:root:not([data-theme="light"]) .home-security-overlay{--engine-gold:var(--mustard)}}
:root[data-theme="dark"] .home-security-overlay{--engine-gold:var(--mustard)}
@media(prefers-reduced-motion:no-preference){
 .home-security-status,.home-mobile-status{animation:home-engine-cycle 10s cubic-bezier(.22,.8,.25,1) var(--cycle-delay) infinite}
 .home-status-content{animation:home-engine-shell 10s ease var(--cycle-delay) infinite}
 .home-engine-check{animation:home-engine-check 10s ease var(--cycle-delay) infinite}
 .home-engine-result,.home-engine-detail{animation:home-engine-result 10s ease var(--cycle-delay) infinite}
 .home-engine-progress{animation:home-engine-progress 10s ease var(--cycle-delay) infinite}
 .home-status-taint .home-engine-alert,.home-mobile-status[data-outcome="taint"] .home-engine-alert{animation:home-engine-alert 10s ease var(--cycle-delay) infinite}
 .home-hero[data-paused] .home-security-overlay *{animation-play-state:paused}
 @keyframes home-engine-cycle{0%,7%,91%,100%{width:14px;height:14px;border-radius:50%;opacity:0}15%{width:234px;height:14px;border-radius:3px;opacity:1}23%,77%{width:234px;height:96px;border-radius:5px;opacity:1}85%{width:234px;height:14px;border-radius:3px;opacity:1}}
 @keyframes home-engine-shell{0%,20%,83%,100%{opacity:0}26%,76%{opacity:1}}
 @keyframes home-engine-check{0%,24%,43%,100%{opacity:0}28%,39%{opacity:1}}
 @keyframes home-engine-alert{0%,43%,53%,100%{opacity:0}46%,50%{opacity:1}}
 @keyframes home-engine-result{0%,52%,80%,100%{opacity:0}57%,75%{opacity:1}}
 @keyframes home-engine-progress{0%,24%{transform:scaleX(0);opacity:1}49%,76%{transform:scaleX(1);opacity:1}82%,100%{transform:scaleX(1);opacity:0}}
}
@media(max-width:1023px){
 .home-security-status{display:none}
 .home-mobile-status{display:block;left:50%;top:10%}
 .home-mobile-status[data-outcome="blocked"]{--status-color:var(--orange-ink)}
 .home-mobile-status[data-outcome="taint"]{--status-color:var(--engine-gold)}
}
@media(max-height:650px){.home-security-overlay{display:none}}
@media print{.home-security-overlay{display:none}}

/* One engine decision is active; the other graph entities remain visible. */
.home-security-status{display:none}
.home-security-overlay[data-active-status="allowed"] .home-status-allowed,
.home-security-overlay[data-active-status="blocked"] .home-status-blocked,
.home-security-overlay[data-active-status="taint"] .home-status-taint{display:block}
.home-map-nodes .home-entity{fill:none;stroke:none;opacity:1;color:var(--home-agent-ink)}
.home-map-nodes .home-entity-model{color:#335f91}
.home-map-nodes .home-entity-tool{color:#795408}
.home-entity rect{fill:var(--bg);stroke:currentColor;stroke-width:1;opacity:.65}
.home-entity use{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;opacity:.8}
.home-reach-map symbol path{stroke:currentColor}
.home-entity text{fill:currentColor;stroke:none;font:500 8px var(--mono);letter-spacing:.8px;opacity:.75}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]) .home-entity-model{color:#9bc1ef}:root:not([data-theme="light"]) .home-entity-tool{color:var(--mustard)}}
:root[data-theme="dark"] .home-map-nodes .home-entity-model{color:#9bc1ef}
:root[data-theme="dark"] .home-map-nodes .home-entity-tool{color:var(--mustard)}
@media(max-width:1023px){.home-security-overlay[data-active-status] .home-security-status{display:none}.home-entity text{font-size:9px}}

/* Phones: the hero has no free band above the headline, so the engine card would sit on it. */
@media(max-width:600px){.home-mobile-status{display:none}}
@media(max-width:600px) and (max-height:700px){.home-hero{padding:36px 0 96px}.home-hero h1{font-size:clamp(32px,9vw,40px)}.home-hero-subline{font-size:16px;margin:18px auto 22px}}

/* GitHub: a badge above the headline, and the PR node the map signals flow out of. */
.home-gh-badge{display:inline-flex;align-items:center;gap:10px;margin:0 auto 28px;padding:7px 14px 7px 10px;border:1.5px solid var(--rule);border-radius:999px;background:var(--card-bg);font:600 11px/1.2 var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--fg)}
.home-gh-badge svg{width:18px;height:18px;fill:currentColor;flex:none}
.home-gh-soon{padding-left:10px;border-left:1.5px solid var(--rule);color:var(--orange-ink)}
@media(prefers-reduced-motion:no-preference){
 .home-gh-badge svg{animation:home-gh-float 3s ease-in-out infinite}
 @keyframes home-gh-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}
}
@media(max-width:600px){.home-gh-badge{font-size:9.5px;gap:8px;margin-bottom:20px}.home-gh-soon{padding-left:8px}}

/* PR -> security evaluation -> deploy -> runtime. Arrows between the steps;
   a dot runs along each one in turn. Phones keep one row and stack each
   step's icon over its label. */
.home-flow{list-style:none;display:flex;align-items:center;justify-content:center;margin:34px auto 0;padding:0;max-width:1080px}
.home-flow-step{display:flex;align-items:center;gap:8px;flex:none;padding:9px 12px;border:1.5px solid var(--rule);background:var(--card-bg);font:600 10.5px/1.2 var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--fg)}
.home-flow-step svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.home-flow-step .home-flow-fill{fill:currentColor;stroke:none}
.home-flow-step.is-taint{border-color:var(--orange-ink);color:var(--orange-ink)}
.home-flow-step.is-deploy{border-color:#335f91;color:#335f91}
.home-flow-step.is-runtime{border-color:var(--home-agent-ink);color:var(--home-agent-ink)}
.home-flow-step.is-continuous{border-color:var(--teal);color:var(--teal)}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]) .home-flow-step.is-deploy{border-color:#9bc1ef;color:#9bc1ef}}
:root[data-theme="dark"] .home-flow-step.is-deploy{border-color:#9bc1ef;color:#9bc1ef}
.home-flow-rt{display:flex;flex-direction:column;gap:3px;text-align:left}
.home-flow-rt b{font-weight:600}
.home-flow-rt em{font:400 9px/1.2 var(--mono);font-style:normal;text-transform:none;letter-spacing:.02em;color:var(--fg-muted)}
.home-flow-wire{position:relative;flex:1 1 30px;min-width:22px;max-width:64px;height:1.5px;margin:0 2px 0 4px;background:var(--fg-muted)}
.home-flow-wire::after{content:"";position:absolute;right:-1px;top:50%;width:7px;height:7px;border-top:1.5px solid var(--fg-muted);border-right:1.5px solid var(--fg-muted);transform:translateY(-50%) rotate(45deg)}
.home-flow-wire i{position:absolute;top:50%;left:0;width:6px;height:6px;margin-top:-3px;border-radius:50%;background:var(--orange-ink);opacity:0}
.home-flow-return{position:relative;width:100%;max-width:1080px;height:54px;margin:0 auto;color:var(--fg-muted);font:600 9px/1.3 var(--mono);letter-spacing:.09em;text-transform:uppercase;text-align:right}
.home-flow-return svg{display:block;width:100%;height:30px;overflow:visible}
.home-flow-return path{fill:none;stroke:var(--fg-muted);stroke-width:1.5;vector-effect:non-scaling-stroke}
.home-flow-return span{display:block;padding-right:8%;margin-top:3px}
@media(prefers-reduced-motion:no-preference){
 .home-flow-wire i{animation:home-flow-dot 3.6s linear infinite}
 .home-flow-wire:nth-child(4) i{animation-delay:1.2s}
 .home-flow-wire:nth-child(6) i{animation-delay:2.4s}
 .home-flow-wire:nth-child(8) i{animation-delay:3.6s}
 .home-hero[data-paused] .home-flow *{animation-play-state:paused}
 @keyframes home-flow-dot{0%{left:0;opacity:0}3%{opacity:1}30%{left:calc(100% - 10px);opacity:1}33%,100%{left:calc(100% - 10px);opacity:0}}
}
@media(max-width:700px){
 .home-flow{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-width:none;margin:26px 0 0;align-items:stretch}
 .home-flow-step{min-width:0;flex-direction:row;justify-content:flex-start;gap:7px;padding:10px 9px;font-size:9px;line-height:1.25;letter-spacing:.03em;text-align:left}
 .home-flow-step svg{width:18px;height:18px}
 .home-flow-rt{text-align:left;gap:2px}
 .home-flow-rt em{font-size:7.5px;line-height:1.25}
 .home-flow-wire{display:none}
 .home-flow-step.is-continuous{grid-column:1/-1}
 .home-flow-return{height:42px;margin-top:2px;font-size:8px}
 .home-flow-return svg{height:19px}
 .home-flow-return span{padding-right:0;margin-top:2px;text-align:center}
}
@media(max-width:600px) and (max-height:560px){.home-flow{display:none}}
@media(max-height:600px) and (min-width:601px){.home-flow{display:none}}

/* Homepage-only design. This stylesheet is linked only by index.html; shared
   public headers and the generated Docs header do not receive these rules. */
:root{
  --home-header-height:66px;
  --home-loop-ink:#795408;
  --home-grid:linear-gradient(rgba(var(--fg-rgb),.035) 1px,transparent 1px),linear-gradient(90deg,rgba(var(--fg-rgb),.035) 1px,transparent 1px),var(--bg);
}
:root[data-theme="dark"]{--home-loop-ink:#d9a441}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]){--home-loop-ink:#d9a441}}
.home-nav,.home-hero{background:var(--home-grid);background-size:32px 32px}
.home-nav{background-position:0 0}
.home-hero{min-height:calc(100svh - 66px);padding:76px 0 72px;background-position:0 calc(-1 * var(--home-header-height));border-bottom:1px solid color-mix(in srgb,var(--fg) 16%,transparent)}
.home-reach-map,.home-security-overlay{display:none}
.home-hero-copy{text-align:center}
.home-hero::before{content:"// CI → RUNTIME → CI";position:absolute;top:24px;right:max(28px,calc((100vw - 1180px)/2));z-index:1;font:600 10px/1.2 var(--mono);letter-spacing:.09em;color:var(--teal)}
.home-gh-badge{margin:0 auto 28px;border-radius:2px;background:var(--surface)}
.home-hero h1{margin:0 auto;max-width:30ch;font:700 clamp(44px,4.45vw,64px)/1.12 var(--mono);letter-spacing:-.06em;text-wrap:balance}
.home-eval-word{color:var(--teal);text-decoration:underline;text-decoration-color:var(--mustard);text-decoration-thickness:.075em;text-underline-offset:.11em}
.home-hero h1 strong{color:var(--orange-ink)}
.home-hero-subline{margin:26px auto 30px;max-width:66ch;font:400 clamp(15px,1.4vw,18px)/1.6 var(--mono);letter-spacing:-.025em}
.home-hero-cta{margin-inline:auto}
.home-flow{width:100%;max-width:1140px;margin:48px auto 0}
.home-flow-step{border-width:1px;border-radius:2px;background:var(--surface)}
.home-flow-step.is-continuous{border-color:var(--mustard);color:var(--home-loop-ink)}
.home-flow-return{max-width:1140px;color:var(--home-loop-ink)}
.home-flow-return path{stroke:var(--mustard)}
.home-hero-scroll{display:none}
@media(max-width:860px){:root{--home-header-height:58px}}
@media(max-width:700px){
  .home-hero{min-height:auto;padding:64px 0 70px}
  .home-hero::before{display:none}
  .home-hero h1{max-width:21ch;font-size:clamp(34px,8.7vw,52px)}
  .home-hero-subline{max-width:34ch;font-size:14px}
  .home-flow{margin-top:34px}
}
