/* Kronos HERO block (home only, 2026-11-01). Switchable: this whole file plus the .kx-stage markup in index.html
   (between the KRONOS HERO START and END comments) is the dark cinematic hero. To go back to the light Option A
   gradient hero, delete the <link> to this file and that markup; kronos.css (titles, numbers, charts) is unaffected.
   From 721px the stage stops 128px above the slab bottom so the beam never runs beside Pause motion. */
:root{--kx-bg:#04080b;--kx-line:#10202a;--kx-teal:#3ad6c4;--kx-red:#e0675a;--kx-hi:#34e0d6;--kx-ease:cubic-bezier(.2,.8,.2,1)}
/* 3. Home hero: dark cinematic slab (option C of three; A put a dark stage card behind the headshot, B a thin band
   under the buttons; C won because it carries the scanner's dark stage feel across the whole first screen and keeps
   the headshot as the one light object). The stage fills the slab, motif weighted right, a dark scrim keeps the copy
   legible (body text over the scrim is #e2e8ec on about #0b0f12, over 14:1). */
body[data-page="home"] .hero{background:var(--kx-bg);color:#e2e8ec;border-color:rgba(255,255,255,.10);isolation:isolate}
body[data-page="home"] .hero::before{opacity:.22}
body[data-page="home"] .hero::after{opacity:.12}
body[data-page="home"] .hero-cursor-glow{background:radial-gradient(circle,rgba(52,224,214,.16) 0%,rgba(52,224,214,.06) 30%,transparent 60%)}
body[data-page="home"] .hero>.kx-stage{display:block;position:absolute;z-index:0;inset:0;border-radius:inherit;overflow:hidden;pointer-events:none}
body[data-page="home"] .kx-stage::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,8,11,.96) 0%,rgba(4,8,11,.9) 50%,rgba(4,8,11,.25) 74%,rgba(4,8,11,0) 100%)}
@media (max-width:720px){body[data-page="home"] .kx-stage::after{background:linear-gradient(180deg,rgba(4,8,11,.55),rgba(4,8,11,.9) 40%,rgba(4,8,11,.94))}}
body[data-page="home"] .hero :is(h1,.lead,.hero-text-link){color:#e2e8ec}
body[data-page="home"] .hero :is(.hero-eyebrow,.hero-detail,.hero-bottom,.motion-toggle){color:#b9c4c6}
body[data-page="home"] .hero-surname,body[data-page="home"] .hero-accent{color:#34e0d6}
body[data-page="home"] .hero .btn-ghost{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.22);color:#e2e8ec;box-shadow:inset 0 1px 0 rgba(255,255,255,.12)}
body[data-page="home"] .hero .btn-ghost:hover{background:rgba(255,255,255,.12);color:#fff}
body[data-page="home"] .hero-text-link:hover,body[data-page="home"] .motion-toggle:hover{color:#34e0d6}
body[data-page="home"] .hero-bottom{border-top-color:rgba(226,232,236,.14)}
body[data-page="home"] .hero :focus-visible{outline-color:#34e0d6}
body[data-page="home"] .hero-card{position:relative;z-index:2}
/* PW-392: the light panel belongs to the boxed card, which only exists from 1000px. Below that the card is the bare headshot and must sit on the dark slab. */
@media (min-width:1000px){body[data-page="home"] .hero-card{background:linear-gradient(160deg,#f7fefd,#e6ecf0)}body[data-page="home"] .hero-card-facts li{color:#1a1d1b}}
body[data-page="home"] .kx-note{z-index:1;background:#04080b;padding:4px 6px;border-radius:4px;left:auto;right:18px;bottom:14px}
/* PW-390: phone note sits 12px under the slab top; the slab top padding grows 20px to 36px so the photo keeps 12px+ below the note. */
@media (max-width:720px){body[data-page="home"] .kx-note{top:12px;padding:0;background:none;bottom:auto;right:16px;left:auto;font-size:11px;line-height:1}body[data-page="home"] .hero{padding-top:36px}}
@media (min-width:721px){body[data-page="home"] .hero>.kx-stage{bottom:128px}}
/* PW-403: from 901 to 1100 the stage's lower rim is visible 128px above the slab bottom and the bottom-right note hung off it, under the card and across the footer row at tall viewports. Pin it 12px under the slab top instead (same as phones), where nothing else sits at any viewport height. */
@media (min-width:721px) and (max-width:1100px){body[data-page="home"] .kx-note{top:12px;bottom:auto}}
/* PW-404: the same pin now starts at 721. At 721 to 900 the bottom-right note sat on .hero-copy (73px overlap at 900); the top-right corner is clear there too. */
.kx-svg{position:absolute;inset:0;width:100%;height:100%}
.kx-grid line{stroke:var(--kx-line);stroke-width:1}
.kx-c line{stroke-width:1.2}
.kx-c.up line,.kx-c.up rect{stroke:#5fa97c;fill:#5fa97c}
.kx-c.dn line,.kx-c.dn rect{stroke:#cb5d46;fill:#cb5d46}
.kx-fan path{fill:none;stroke-width:1;opacity:.45}
.kx-fan path.up{stroke:var(--kx-teal)} .kx-fan path.dn{stroke:var(--kx-red)}
.kx-med{fill:none;stroke:var(--kx-hi);stroke-width:2}
.kx-beam{fill:var(--kx-teal);opacity:.55}
.kx-orb{fill:var(--kx-teal);filter:drop-shadow(0 0 6px rgba(58,214,196,.9))}
.kx-note{position:absolute;left:14px;bottom:10px;font:500 11px/1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.12em;text-transform:uppercase;color:#9fb6ba}

@media (prefers-reduced-motion:no-preference){
  .kx-c{opacity:0;transform:translateY(6px);transform-box:fill-box;animation:kx-cand 14s var(--kx-ease) infinite;animation-delay:calc(var(--i) * 60ms)}
  .kx-beam{opacity:0;transform:scaleY(0);transform-origin:50% 0;transform-box:fill-box;animation:kx-beam 14s var(--kx-ease) infinite 1.9s}
  .kx-orb{opacity:0;transform-origin:center;transform-box:fill-box;animation:kx-orb 14s linear infinite 2.3s}
  .kx-fan path{opacity:0;animation:kx-fan 14s var(--kx-ease) infinite;animation-delay:calc(2.6s + var(--j) * 90ms)}
  .kx-med{opacity:0;animation:kx-med 14s var(--kx-ease) infinite 3.6s}
  body.motion-paused .kx-stage *,body:has(#chat:not([hidden])) .kx-stage *{animation-play-state:paused}
}
@keyframes kx-cand{0%{opacity:0;transform:translateY(6px)}4%,88%{opacity:1;transform:none}96%,100%{opacity:0;transform:none}}
@keyframes kx-beam{0%{opacity:0;transform:scaleY(0)}5%{opacity:.55;transform:scaleY(1)}75%{opacity:.55;transform:scaleY(1)}82%,100%{opacity:0;transform:scaleY(1)}}
@keyframes kx-orb{0%{opacity:0;transform:scale(.4)}3%{opacity:1;transform:scale(1)}9%{transform:scale(1.35)}15%{transform:scale(1)}21%{transform:scale(1.35)}27%,72%{opacity:1;transform:scale(1)}80%,100%{opacity:0}}
@keyframes kx-fan{0%{opacity:0}7%,68%{opacity:.45}76%,100%{opacity:0}}
@keyframes kx-med{0%{opacity:0}5%,62%{opacity:1}70%,100%{opacity:0}}


@media (prefers-reduced-transparency:reduce){.kx-stage{background:var(--kx-bg)}}
@media print{.kx-stage{display:none!important}
  body[data-page="home"] .hero{background:#fff!important;color:#111!important}
  body[data-page="home"] .hero :is(h1,.lead,.hero-detail,.hero-eyebrow,.hero-bottom,.hero-surname,.hero-accent,.hero-text-link,.motion-toggle){color:#111!important}
  body[data-page="home"] .hero .btn-ghost{color:#111!important;background:#fff!important;border-color:#111!important}}
/* Dark hero keeps the cyan ring (12:1 on the stage); light paper elsewhere uses --fairway #0b7a75 (4.75:1). */
body[data-page="home"] .hero :focus-visible{outline-color:#34e0d6}
/* PW-181C: the toggle label swaps after load; a fixed width keeps the pre-script text from shifting the row (CLS 0.0012 at 375). */
body[data-page="home"] .motion-toggle{width:10.5em;min-width:10.5em;flex:none;white-space:nowrap}
/* PW-212: Windows high contrast strips backgrounds, so the decorative stage (grid rules, candles, caption) showed through the
   headline and tagline. The motif is aria-hidden and carries no information; the caption and Pause motion only describe it. */
@media (forced-colors:active){
  body[data-page="home"] .hero>.kx-stage,body[data-page="home"] .hero .motion-toggle{display:none}
}
