/* ZillA Technologies site.
   Concept: a control room at night. Dark navy ground, one cyan for the xZane runtime, one amber reserved for a
   device's own safety. Hairline structure, quiet panels, and a single illustrated moment in the hero.
   Display type is a condensed machine-label face; mono is kept for code, protocols and schema only. */
:root {
  --bg: #0A1530;
  --sunken: #071026;
  --surface: #0F1E42;
  --surface-2: #14264F;
  --ink: #E8EFFC;
  --ink-2: #B7C5E0;
  --ink-3: #93A6C9;
  --rule: #1E3060;
  --rule-strong: #38507F;
  --accent: #5CC8FF;
  --accent-ink: #04122A;
  --accent-glow: rgba(92, 200, 255, 0.28);
  --deep: #081331;
  --head: rgba(20, 38, 79, 0.6);
  --note-bg: rgba(20, 38, 79, 0.55);
  --band-soft: rgba(7, 16, 38, 0.55);
  --safety: #FFB52E;
  --safety-soft: #2A2109;
  --safety-ink: #FFD27A;
  --bad: #FF8F85;

  --font-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  color-scheme: dark;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-block: 0.35em; }
strong { font-weight: 600; }
::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.005em;
  text-wrap: balance;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(3rem, 6.6vw, 5.2rem); line-height: 0.93; font-weight: 700; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1; }
h3 { font-size: 1.55rem; line-height: 1.1; }

.wrap {
  max-width: 1160px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.band { padding-block: clamp(48px, 7vw, 92px); }
.band.alt { background: var(--sunken); border-block: 1px solid var(--rule); }
.prose p { max-width: 62ch; }
.lede { font-size: 1.18rem; color: var(--ink-2); max-width: 58ch; }

/* Section kicker: says which part of the pitch this is. Sentence case, no decoration beyond a signal dot. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font: 500 0.92rem/1.2 var(--font-body);
  color: var(--ink-3);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow), 0 0 12px var(--accent);
}

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(10, 21, 48, 0.86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
/* Paints the phone's status-bar inset so content never shows above the sticky header. */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  background: var(--bg); z-index: 21;
}
html { scroll-padding-top: 92px; }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 28px; padding-block: 14px;
}
.brand {
  font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; line-height: 1;
  color: var(--ink); text-decoration: none; display: inline-flex; gap: 0.35em; align-items: baseline;
}
.brand-x { color: var(--accent); text-shadow: 0 0 18px var(--accent-glow); }
.site-header nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; list-style: none; margin: 0; padding: 0; }
.site-header nav li { margin: 0; }
.site-header nav a:not(.btn) {
  color: var(--ink-2); text-decoration: none; font-size: 0.95rem; padding-block: 8px; display: inline-block;
  border-bottom: 2px solid transparent;
}
.site-header nav a:not(.btn):hover { color: var(--ink); border-bottom-color: var(--rule-strong); }
.site-header nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

@media (max-width: 720px) {
  .site-header nav { width: 100%; }
  .site-header nav ul { flex-wrap: nowrap; overflow-x: auto; gap: 4px 18px; padding-bottom: 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .site-header nav li { flex: none; }
  html { scroll-padding-top: 112px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px;
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); border-radius: 4px;
  font: 600 0.98rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  box-shadow: 0 0 0 0 var(--accent-glow);
  transition: box-shadow 0.18s ease, background-color 0.18s ease;
}
.btn:hover { box-shadow: 0 0 0 4px var(--accent-glow), 0 0 24px var(--accent-glow); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); box-shadow: none; }
.btn-ghost:hover { border-color: var(--accent); box-shadow: none; background: rgba(92, 200, 255, 0.08); }
.btn-small { min-height: 38px; padding: 0 14px; font-size: 0.9rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Hero: blueprint grid fading into the page, with a glow behind the figure. */
.hero { position: relative; isolation: isolate; padding-block: clamp(36px, 6vw, 76px) clamp(36px, 5vw, 64px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(820px 460px at 80% 34%, rgba(63, 169, 255, 0.17), transparent 70%),
    linear-gradient(rgba(130, 170, 255, 0.07) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(130, 170, 255, 0.07) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, #000 52%, transparent);
  mask-image: linear-gradient(180deg, #000 52%, transparent);
}
.hero-grid {
  display: grid; gap: 36px 48px; align-items: start;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}
.hero-grid > * { min-width: 0; }
.hero-grid.has-scene { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: center; }
@media (max-width: 900px) { .hero-grid, .hero-grid.has-scene { grid-template-columns: minmax(0, 1fr); } }

/* Fact strip */
.facts-band { border-block: 1px solid var(--rule); background: var(--band-soft); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 0; }
.facts > div { padding: 22px 24px 22px 0; min-width: 0; }
.facts dt { font: 600 1rem/1.2 var(--font-body); color: var(--ink); margin-bottom: 6px; }
.facts dd { margin: 0; color: var(--ink-2); font-size: 0.98rem; }

/* Columns */
.cols { display: grid; gap: 32px 40px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 32px; }
.cols.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.col { position: relative; border-top: 1px solid var(--rule-strong); padding-top: 16px; min-width: 0; }
.col::before { content: ""; position: absolute; left: 0; top: -2px; width: 40px; height: 3px; background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
.col.safety::before { background: var(--safety); box-shadow: 0 0 12px rgba(255, 181, 46, 0.35); }
.col p:last-child { margin-bottom: 0; }
.col p { color: var(--ink-2); }

/* Vertical cards */
.vgrid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin-top: 28px; }
.vcard {
  display: flex; flex-direction: column; gap: 6px; padding: 0 0 26px; min-width: 0; overflow: hidden;
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 60%);
  border: 1px solid var(--rule); border-radius: 6px; color: var(--ink); text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.vcard > h3, .vcard > p, .vcard > .go { padding-inline: 26px; }
.vcard h3 { margin-top: 10px; }
.vcard:hover { border-color: var(--accent); }
.vcard p { color: var(--ink-2); }
.vcard .go { margin-top: auto; font: 600 0.95rem var(--font-body); color: var(--accent); }
.glyph { display: block; padding: 10px 10px 0; background: radial-gradient(260px 120px at 50% 62%, rgba(63, 169, 255, 0.2), transparent 75%); }
.glyph-svg { display: block; width: 100%; height: auto; max-height: 210px; }
.aside { margin-top: 24px; color: var(--ink-2); }

/* Code cards */
.code-card { background: var(--deep); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; min-width: 0; }
.code-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px;
  border-bottom: 1px solid var(--rule); background: var(--head);
  font: 500 0.86rem/1.2 var(--font-body); color: var(--ink-3);
}
.pill { padding: 3px 10px; border: 1px solid currentColor; border-radius: 99px; font: 500 0.8rem/1.2 var(--font-body); }
.pill-bad { color: var(--bad); }
.pill-safety { color: var(--safety-ink); background: var(--safety-soft); border-color: var(--safety); }
.code-card pre { margin: 0; padding: 16px; overflow-x: auto; font: 400 0.82rem/1.65 var(--font-mono); color: var(--ink); }
.code-card .c { color: var(--ink-3); }
.code-card .k-bad { color: var(--bad); }
.code-card .k-safety { color: var(--safety-ink); }
figure { margin: 0; }
.cap { font-size: 0.92rem; color: var(--ink-2); margin: 12px 0 0; max-width: 60ch; }
.pair { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin-top: 28px; }
.pair > * { min-width: 0; }
.links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; font-size: 0.95rem; font-weight: 500; }
.links li { margin: 0; }

/* Notes and panels */
.note { background: var(--note-bg); border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: 4px; padding: 16px 20px; color: var(--ink-2); max-width: 70ch; margin-top: 28px; }
.note strong { color: var(--ink); }
.note.safety { background: var(--safety-soft); border-color: rgba(255, 181, 46, 0.4); border-left-color: var(--safety); color: var(--safety-ink); }
.note.safety strong { color: var(--safety-ink); }
.panel { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--rule); border-radius: 6px; padding: 24px; min-width: 0; }
.panel h3 { margin-bottom: 0.4em; }
.panel ul { margin-bottom: 0; }

/* Use cases */
.cases { display: grid; gap: 28px 36px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 32px; }
.case { border-top: 1px solid var(--rule-strong); padding-top: 14px; min-width: 0; }
.case h3 { font-size: 1.35rem; }
.case p { color: var(--ink-2); margin-bottom: 0; }

/* Stats */
.stats { display: grid; gap: 24px 36px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 32px 0 8px; }
.stat { border-top: 1px solid var(--rule-strong); padding-top: 12px; min-width: 0; }
.stat .num { font: 700 3.4rem/1 var(--font-display); color: var(--accent); text-shadow: 0 0 28px var(--accent-glow); }
.stat .lab { color: var(--ink-2); font-size: 0.95rem; margin-top: 6px; }
.stat sup a { font-size: 0.75rem; }

/* Pilot to production: the sequence this page sells. Amber marks the safety sign-off gate. */
.runway { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 0 22px; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: none; }
.runway.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.runway > li { position: relative; margin: 0; padding: 40px 0 0; min-width: 0; }
.runway > li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(92, 200, 255, 0.25));
}
.runway > li:last-child::before { width: 28px; background: var(--accent); }
.runway > li::after {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent); box-shadow: 0 0 14px var(--accent-glow);
}
.runway > li.gate::after { border-radius: 2px; transform: rotate(45deg); border-color: var(--safety); box-shadow: 0 0 14px rgba(255, 181, 46, 0.45); }
.runway h3 { font-size: 1.4rem; margin-bottom: 6px; }
.runway p { color: var(--ink-2); font-size: 0.98rem; margin: 0; max-width: 34ch; }
.runway .when { display: block; font: 500 0.88rem/1.2 var(--font-body); color: var(--ink-3); margin-bottom: 6px; }
.runway li.gate .when { color: var(--safety-ink); }
@media (max-width: 820px) {
  .runway, .runway.three { grid-template-columns: minmax(0, 1fr); gap: 4px 0; }
  .runway > li { padding: 0 0 26px 40px; }
  .runway > li::before { left: 7px; top: 8px; width: 2px; height: 100%; background: linear-gradient(180deg, var(--accent), rgba(92, 200, 255, 0.25)); }
  .runway > li:last-child::before { height: 28px; width: 2px; }
  .runway > li::after { left: 0; top: 4px; }
  .runway p { max-width: none; }
}

/* Pilot */
.tiers { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 28px; }
.tier { position: relative; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--rule); border-radius: 6px; padding: 26px; min-width: 0; }
.tier::before { content: ""; position: absolute; left: 26px; top: -1px; width: 44px; height: 3px; background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
.tier .name { font: 600 1rem/1.2 var(--font-body); color: var(--ink-2); margin: 0 0 10px; }
.tier .price { font: 700 3.5rem/1 var(--font-display); margin: 0 0 6px; }
.tier .scope { color: var(--ink-2); margin-bottom: 16px; }
.tier ul { color: var(--ink-2); margin-bottom: 0; }

/* Contact */
.contact-grid { display: grid; gap: 36px 56px; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; }
.contact-grid > * { min-width: 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.addr-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 22px; }
.addr { font: 500 0.98rem var(--font-mono); overflow-wrap: anywhere; user-select: all; }

/* Sources and footer */
.sources { font-size: 0.86rem; color: var(--ink-2); margin-top: 28px; max-width: 80ch; }
.sources ol { padding-left: 1.3em; margin: 8px 0 0; }
.site-footer { border-top: 1px solid var(--rule); background: var(--sunken); padding-block: 28px 36px; color: var(--ink-2); font-size: 0.92rem; }
.site-footer p { margin: 0 0 6px; }
.site-footer .fine { color: var(--ink-3); font-size: 0.82rem; max-width: 80ch; }

/* Hero scene: three kinds of site around one runtime. The only illustrated element on the page. */
.scene { position: relative; }
.scene-svg { display: block; width: 100%; height: auto; overflow: visible; }
.scene-cap { margin-top: 6px; font-size: 0.92rem; color: var(--ink-2); max-width: 58ch; }
.scene-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 0.86rem; color: var(--ink-2); }
.scene-legend li { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.scene-legend i { display: inline-block; width: 26px; height: 0; border-top: 2px dashed var(--accent); }
.scene-legend i.amber { width: 12px; height: 12px; border: 2px solid var(--safety); border-radius: 50%; background: rgba(255, 181, 46, 0.18); }
.ledger-chip {
  position: relative; margin: -4px 0 0; max-width: 480px;
  background: rgba(8, 19, 49, 0.92); border: 1px solid var(--rule-strong); border-radius: 6px;
  font: 400 0.78rem/1.6 var(--font-mono); color: var(--ink-2); padding: 10px 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.ledger-chip b { font: 600 0.8rem/1.4 var(--font-body); color: var(--ink-3); display: block; margin-bottom: 4px; }
.ledger-chip .no { color: var(--bad); }
.ledger-chip .stop { color: var(--safety-ink); }
@media (min-width: 1100px) { .ledger-chip { position: absolute; left: 0; top: 4%; margin: 0; width: 36%; max-width: 236px; font-size: 0.72rem; } }

/* Isometric illustration parts (shared by the hero scene and the card glyphs) */
.sc-plate { fill: #0B1A3E; stroke: rgba(92, 200, 255, 0.42); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sc-plate-side-l { fill: #08122C; stroke: rgba(92, 200, 255, 0.3); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sc-plate-side-r { fill: #060E22; stroke: rgba(92, 200, 255, 0.3); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sc-grid { fill: none; stroke: rgba(92, 200, 255, 0.11); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sc-grid.major { stroke: rgba(92, 200, 255, 0.2); }
.sc-top { fill: #35589F; stroke: rgba(160, 220, 255, 0.55); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.sc-l { fill: #1B346F; stroke: rgba(160, 220, 255, 0.4); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.sc-r { fill: #0F2049; stroke: rgba(160, 220, 255, 0.35); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.sc-wh.sc-top { fill: #2D4F93; } .sc-wh.sc-l { fill: #17306A; } .sc-wh.sc-r { fill: #0C1D45; }
.sc-hub.sc-top { fill: #123A66; stroke: var(--accent); } .sc-hub.sc-l { fill: #0C2850; stroke: rgba(92, 200, 255, 0.7); } .sc-hub.sc-r { fill: #081C3E; stroke: rgba(92, 200, 255, 0.6); }
.sc-ai.sc-top { fill: #1A4778; } .sc-ai.sc-l { fill: #11305E; } .sc-ai.sc-r { fill: #0A2146; }
.sc-saw { fill: #3A63B0; stroke: rgba(160, 220, 255, 0.55); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.sc-glaze { stroke: #A8DEFF; stroke-width: 2; opacity: 0.85; fill: none; }
.sc-rib { stroke: rgba(160, 220, 255, 0.32); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.sc-win { fill: rgba(150, 205, 255, 0.1); }
.sc-win.on { fill: #BCE4FF; opacity: 0.82; }
.sc-door { fill: rgba(5, 14, 36, 0.8); stroke: rgba(160, 220, 255, 0.3); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sc-door.on { fill: rgba(188, 228, 255, 0.55); }
.sc-led { fill: rgba(150, 205, 255, 0.25); } .sc-led.on { fill: #6EE7B7; }
.sc-mast { stroke: #8CD6FF; stroke-width: 1.4; fill: none; }
.sc-beacon { fill: var(--accent); filter: drop-shadow(0 0 5px var(--accent)); }
.sc-glow { pointer-events: none; }
.sc-link { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-dasharray: 5 7; stroke-linecap: round; stroke-linejoin: round; opacity: 0.95; filter: drop-shadow(0 0 3px rgba(92, 200, 255, 0.7)); }
.sc-ring { fill: rgba(255, 181, 46, 0.14); stroke: var(--safety); stroke-width: 2.2; filter: drop-shadow(0 0 4px rgba(255, 181, 46, 0.7)); }
.sc-hub-ring { fill: none; stroke: var(--accent); stroke-width: 2; filter: drop-shadow(0 0 5px var(--accent)); }
.sc-hub-pulse { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.sc-hub-text { font: 700 22px var(--font-display); letter-spacing: 0.04em; fill: #E4F6FF; }
.sc-tag { font: 500 15px var(--font-body); fill: var(--ink); paint-order: stroke; stroke: #0A1530; stroke-width: 5px; stroke-linejoin: round; }
.sc-tag-ref { font: 600 14.5px var(--font-body); fill: var(--safety-ink); paint-order: stroke; stroke: #0A1530; stroke-width: 5px; stroke-linejoin: round; opacity: 0; }
.sc-pkt { display: none; fill: #fff; opacity: 0; filter: drop-shadow(0 0 5px var(--accent)) drop-shadow(0 0 9px var(--accent)); }
@media (max-width: 640px) {
  .sc-tag, .sc-tag-ref { font-size: 22px; stroke-width: 6px; }
  .sc-hub-text { font-size: 22px; }
}

@keyframes sc-flow { to { stroke-dashoffset: -24; } }
@keyframes sc-travel { 0% { offset-distance: 0%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@keyframes sc-pulse { 0% { opacity: 0.8; transform: scale(0.55); } 70%, 100% { opacity: 0; transform: scale(1.15); } }
@keyframes sc-blink { 0%, 80%, 100% { opacity: 1; } 90% { opacity: 0.25; } }
/* One unit's own safety trips: its link, packets and ring change; every other path keeps flowing. */
@keyframes wh-link { 0%, 46% { stroke: #5CC8FF; stroke-dasharray: 5 7; } 50%, 80% { stroke: #FFB52E; stroke-dasharray: 1 9; } 84%, 100% { stroke: #5CC8FF; stroke-dasharray: 5 7; } }
@keyframes wh-pk { 0%, 46% { opacity: 1; } 50%, 82% { opacity: 0; } 86%, 100% { opacity: 1; } }
@keyframes wh-ring { 0%, 46%, 84%, 100% { fill: rgba(255, 181, 46, 0.14); stroke-width: 2.2; } 52%, 80% { fill: rgba(255, 181, 46, 0.5); stroke-width: 3.6; } }
@keyframes wh-tag { 0%, 50%, 82%, 100% { opacity: 0; } 55%, 78% { opacity: 1; } }

@media (prefers-reduced-motion: no-preference) {
  .scene .sc-link { animation: sc-flow 1.3s linear infinite; }
  .scene .sc-beacon { animation: sc-blink 3.2s ease-in-out infinite; }
  .scene .sc-hub-pulse { animation: sc-pulse 3.2s ease-out infinite; }
  .scene .l-wh { animation: sc-flow 1.3s linear infinite, wh-link 12s ease-in-out infinite; }
  .scene .r-wh { animation: wh-ring 12s ease-in-out infinite; }
  .scene .pk-wh { animation: wh-pk 12s ease-in-out infinite; }
  .scene .sc-tag-ref { animation: wh-tag 12s ease-in-out infinite; }
  @supports (offset-path: path("M0 0 L1 1")) {
    .scene .sc-pkt { display: block; animation: sc-travel 2.6s linear infinite; }
  }
}

/* Diagram */
.dg-block { margin-top: 28px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tab {
  min-height: 42px; padding: 0 16px; border: 1px solid var(--rule-strong); background: transparent; color: var(--ink-2);
  font: 500 0.92rem/1 var(--font-body); border-radius: 4px; cursor: pointer;
}
.tab:hover { border-color: var(--accent); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: 0 0 18px var(--accent-glow); }
.dg-fig { margin: 0; }
.dg-stage { background: var(--deep); border: 1px solid var(--rule); border-radius: 6px; padding: 14px; overflow-x: auto; min-height: 220px; }
.dg { display: block; width: 100%; height: auto; color: var(--ink); }
.dg-narrow .dg { max-width: 520px; margin-inline: auto; }
.dg-node { fill: var(--surface); stroke: var(--rule-strong); stroke-width: 1.3; }
.dg-xz { fill: rgba(92, 200, 255, 0.05); stroke: var(--accent); stroke-width: 1.6; filter: drop-shadow(0 0 8px rgba(92, 200, 255, 0.35)); }
.dg-stage-box, .dg-stg { fill: var(--surface-2); stroke: var(--rule-strong); stroke-width: 1.2; }
.dg-gate { fill: var(--safety-soft); stroke: var(--safety); stroke-width: 1.7; }
.dg-safe { fill: var(--safety-soft); stroke: var(--safety); stroke-width: 1.4; }
.dg-line { stroke: var(--ink-3); stroke-width: 1.4; fill: none; }
.dg-amber { stroke: var(--safety); stroke-width: 1.7; fill: none; }
.dash { stroke-dasharray: 5 4; }
.dg-t { fill: var(--ink); font: 500 12.5px var(--font-body); }
.dg-s { fill: var(--ink-3); font: 400 10.5px var(--font-mono); }
.dg-h { fill: var(--ink-3); font: 500 11px var(--font-mono); letter-spacing: 0.06em; }
.dg-p { fill: var(--ink-2); font: 500 11px var(--font-mono); }
.dg-ta { fill: var(--safety-ink); font: 500 12px var(--font-body); }
.dg-tas { fill: var(--safety-ink); font: 400 10.5px var(--font-mono); }
.dg-amber-t { fill: var(--safety-ink); font: 500 11px var(--font-mono); }
.mk { fill: var(--ink-3); }
.mk-s { fill: var(--safety); }
.dg-fig figcaption { margin-top: 14px; color: var(--ink-2); font-size: 0.95rem; max-width: 74ch; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print {
  :root { --deep: #fff; --head: #f1f3f4; --note-bg: #f1f3f4; --band-soft: transparent; --surface-2: #fff; --accent-glow: transparent; }
  .hero::before, body::before { display: none !important; }
  .site-header { position: static; }
  .btn:hover { box-shadow: none; }
}
