/* hero.css: the hero film (December 2026 edition): a coordinated intrusion across US infrastructure,
   the country dark, then a rebuild. Loaded after page.css and viz.css. Scoped to .hero--lo so nothing
   else on the page moves. Structure and behaviour: see dist/js/visuals/lights-out.js and build/b1_index.py.

   The stage (.lo-sticky) pins under the top bar for --lo-len viewports of scroll (default 3.3) and
   fills the viewport. The title block (.lo-copywrap) sits over the first screen and scrolls away
   while fading; then the map has the whole stage. The three lines keep their slots in one centred
   block: line 1 arrives with the intrusion, line 2 when the map is dark, line 3 with the first amber
   light, and each stays once shown. */
.hero.hero--lo{display:block;padding:0;min-height:0;max-width:none;width:auto;margin:0;--lo-h:calc(100svh - var(--nav-h))}
.lo-track{position:relative;height:calc(var(--lo-h) + var(--lo-len,3.3) * 100vh)}
.lo-sticky{position:sticky;top:var(--nav-h);height:var(--lo-h);overflow:hidden;background:var(--bg)}
.hero--lo .gv{position:absolute;inset:0;min-height:0;padding:0;margin:0}
.hero--lo .gv canvas{position:absolute;inset:0}
.hero--lo .gv[data-state="loading"]::after{display:none}

/* shade behind the title, faded out with it by the module */
.lo-scrim{position:absolute;inset:0;pointer-events:none;z-index:1;
  background:linear-gradient(90deg,var(--bg) 0%,color-mix(in srgb,var(--bg) 84%,transparent) 28%,color-mix(in srgb,var(--bg) 38%,transparent) 50%,transparent 66%)}

/* title block: pulled up over the stage, scrolls past it */
.lo-copywrap{position:relative;min-height:var(--lo-h);margin-top:calc(-1 * var(--lo-h));pointer-events:none;z-index:2}
.hero--lo .hero-copy{pointer-events:auto;width:100%;max-width:calc(var(--wide) + 2 * var(--gutter));margin-inline:auto;
  padding:clamp(36px,8vh,104px) var(--gutter) var(--s7);will-change:opacity}
.hero--lo h1{font-size:clamp(40px,5.8vw,86px);line-height:.98;max-width:none;margin-top:var(--s5)}
.hero--lo h1 .thin{font-size:.46em;line-height:1.14;letter-spacing:-.02em;font-weight:350;max-width:24ch;margin-top:.5em;text-wrap:balance}
.hero--lo .dek{max-width:46ch;color:var(--text);text-shadow:0 0 18px var(--bg),0 0 6px var(--bg)}
.hero--lo .meta{display:flex;flex-wrap:wrap;row-gap:6px}

/* the three lines: one centred stack, shown together over the settled grid (the module staggers them in) */
.lo-lines{position:absolute;left:0;right:0;top:0;bottom:6%;z-index:1;pointer-events:none;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.7em;padding-inline:var(--gutter);
  font-size:clamp(24px,3.3vw,48px)}
.lo-line{position:static;margin:0;width:min(28em,100%);font-size:1em;font-weight:700;line-height:1.14;letter-spacing:-.022em;
  text-align:center;color:var(--text);text-wrap:balance;
  text-shadow:0 0 28px var(--bg),0 0 12px var(--bg),0 1px 2px rgba(0,0,0,.5);will-change:opacity,transform}
.js .lo-line{opacity:0;visibility:hidden}
.lo-line[data-lo-line="3"]{color:var(--accent)}

/* instrument strip along the bottom of the stage: the status console (added by the module) and the note */
.lo-hud{position:absolute;z-index:1;left:0;right:0;bottom:var(--s5);display:flex;align-items:flex-end;justify-content:space-between;gap:var(--s5);
  width:100%;max-width:calc(var(--wide) + 2 * var(--gutter));margin-inline:auto;padding-inline:var(--gutter);pointer-events:none;
  font-family:var(--font-mono);font-size:14px;letter-spacing:.14em;text-transform:uppercase;color:var(--faint)}
.lo-hud p{margin:0}
.lo-read{display:none}
.lo-cap{flex:1;min-width:0;letter-spacing:.08em;text-transform:none;color:var(--muted)}
.lo-note{text-align:right;letter-spacing:.1em}
.lo-k-s{display:none}

/* the status console: one row per kind of site, a count and a state that degrade and recover */
.lo-con{display:grid;gap:8px;font-size:14px;letter-spacing:.1em;line-height:1.2;font-variant-numeric:tabular-nums;
  padding:12px 14px 12px;background:color-mix(in srgb,var(--bg) 72%,transparent);border:1px solid var(--line);border-left:2px solid var(--line-2);
  -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.lo-con-h{display:flex;justify-content:space-between;align-items:baseline;gap:24px;padding-bottom:8px;border-bottom:1px solid var(--line);white-space:nowrap}
.lo-ph{font-weight:500;color:var(--muted);transition:color var(--dur-base) var(--ease-out)}
.lo-con[data-ph="inbound"] .lo-ph,.lo-con[data-ph="attack"] .lo-ph{color:var(--alert)}
.lo-con[data-ph="dark"] .lo-ph{color:var(--text)}
.lo-con[data-ph="build"] .lo-ph,.lo-con[data-ph="hard"] .lo-ph{color:var(--accent)}
.lo-con[data-ph="inbound"],.lo-con[data-ph="attack"]{border-left-color:var(--alert)}
.lo-con[data-ph="build"],.lo-con[data-ph="hard"]{border-left-color:var(--accent)}
.lo-con ol{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.lo-con li{display:grid;grid-template-columns:15px 9ch 64px 5ch 8.5ch;align-items:center;column-gap:12px;white-space:nowrap;color:var(--muted);--st:var(--info)}
.lo-g{width:15px;height:15px;fill:none;stroke:var(--st);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
.lo-k{color:var(--muted)}
.lo-bar{position:relative;height:3px;background:var(--line);overflow:hidden}
.lo-bar i{position:absolute;inset:0;background:var(--st);transform-origin:0 50%;transition:transform 160ms linear}
.lo-n{color:var(--text);text-align:right}
.lo-s{color:var(--st)}
.lo-con li[data-st="ok"]{--st:var(--info)}
.lo-con li[data-st="alert"],.lo-con li[data-st="down"]{--st:var(--alert)}
.lo-con li[data-st="dark"]{--st:var(--faint)}
.lo-con li[data-st="dark"] .lo-n{color:var(--faint)}
.lo-con li[data-st="build"],.lo-con li[data-st="hard"]{--st:var(--accent)}
.hero--lo .hero-scroll{z-index:3;bottom:calc(var(--s5) + 34px);font-size:13px}

@media (max-width:640px){
  .lo-scrim{background:linear-gradient(180deg,var(--bg) 0%,color-mix(in srgb,var(--bg) 86%,transparent) 48%,color-mix(in srgb,var(--bg) 30%,transparent) 72%,transparent 88%)}
  .hero--lo .hero-copy{padding-top:var(--s7)}
  .hero--lo h1{font-size:clamp(40px,12.5vw,56px)}
  .hero--lo h1 .thin{font-size:.5em}
  .lo-lines{bottom:24%;font-size:clamp(24px,6.6vw,26px);gap:.8em}
  .lo-line{line-height:1.2;letter-spacing:-.015em}
  .lo-hud{bottom:var(--s4);font-size:13px;letter-spacing:.1em;gap:8px;flex-direction:column-reverse;align-items:stretch}
  .lo-note{text-align:left;letter-spacing:.06em;max-width:none}
  .lo-note{text-shadow:0 0 10px var(--bg),0 0 4px var(--bg)}
  /* on a phone the console turns into five columns: mark and name, count, bar; the header carries the state */
  .lo-con{font-size:13px;letter-spacing:.04em;gap:8px;padding:9px 10px 10px}
  .lo-con-h{padding-bottom:7px}
  .lo-con ol{grid-template-columns:repeat(5,minmax(0,1fr));gap:0 8px}
  .lo-con li{grid-template-columns:13px minmax(0,1fr);grid-template-areas:"g k" "n n" "b b";column-gap:5px;row-gap:4px}
  .lo-g{grid-area:g;width:13px;height:13px}
  .lo-k{display:none}
  .lo-k-s{grid-area:k;color:var(--muted);overflow:hidden}
  .lo-n{grid-area:n;text-align:left;letter-spacing:0}
  .lo-bar{grid-area:b;height:2px}
  .lo-s{display:none}
  .hero--lo .meta{letter-spacing:.08em}
  .lo-cap{display:none}
  .hero--lo .hero-scroll{display:none}
}
@media (min-width:641px) and (max-width:1099px){
  .lo-scrim{background:linear-gradient(90deg,var(--bg) 0%,color-mix(in srgb,var(--bg) 80%,transparent) 44%,transparent 82%)}
}

/* reduced motion, ?static and no script: one still screen (the rebuilt map under the title), no pin.
   With script the stage stops being a positioning box, so the map and the console anchor to the whole
   track, and the title leaves room above the console however long it runs. */
.reduced .lo-track,html:not(.js) .lo-track{height:auto;min-height:var(--lo-h)}
.reduced .lo-sticky,html:not(.js) .lo-sticky{position:relative;top:auto}
.reduced .lo-sticky{position:static}
.reduced .lo-copywrap{padding-bottom:200px}
@media (max-width:640px){.reduced .lo-copywrap{padding-bottom:150px}}
.reduced .hero--lo .hero-scroll,html:not(.js) .hero--lo .hero-scroll{display:none}
.reduced .lo-lines{display:none}
html:not(.js) .lo-lines{display:none}
@media print{.lo-track{height:auto}.lo-sticky{display:none}.lo-copywrap{margin:0;min-height:0}}

/* the console and corner note stay out of the way of the title screen (verifier, 2026-12-01) */
.lo-hud{transition:opacity .45s ease}
.lo-hud:has([data-ph="nominal"]){opacity:0;pointer-events:none}
