/* NorthSky AERO — shared site styles
   Tokens, layout primitives, and reusable components.
   Page-specific styles still live inline per page where needed. */

*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}

:root{
  --bg:#0A0E1A;
  --bg-2:#0F1420;
  --surface:#131826;
  --surface-2:#1A2030;
  --surface-3:#222A3E;
  --border:rgba(255,255,255,.07);
  --border-2:rgba(255,255,255,.14);
  --text:#E8EDF5;
  /* Bumped 2026-06-21 for low-brightness readability across the site.
     All three tiers nudged up; visual hierarchy stays intact, but every
     tier now passes WCAG AA on a monitor below full brightness.
       --text-2  B0B8CC (7.6:1)  → C2C9D9 (8.6:1)  body / lead paragraph
       --muted   6E7891 (4.0:1)  → 8892AB (5.2:1)  eyebrows, paths, meta
       --dim     3E4860 (2.5:1)  → 5A6680 (3.6:1)  ghosted future-state */
  --text-2:#C2C9D9;
  --muted:#8892AB;
  --dim:#5A6680;
  --accent:#00E5FF;
  --accent-soft:rgba(0,229,255,.14);
  --accent-line:rgba(0,229,255,.4);
  --amber:#FFB547;
  --amber-soft:rgba(255,181,71,.14);
  --green:#4ADE80;
  --green-soft:rgba(74,222,128,.14);
  --red:#FF6B6B;
  --serif:'Fraunces',Georgia,serif;
  --sans:'Geist',-apple-system,system-ui,sans-serif;
  --mono:'JetBrains Mono',ui-monospace,monospace;
  --maxw:1440px;
}

html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{background:var(--bg);color:var(--text);font-family:var(--sans);font-weight:400;line-height:1.55;overflow-x:hidden;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
img,svg{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font:inherit;cursor:pointer;border:0;background:none;color:inherit}
::selection{background:var(--accent);color:#001218}

/* Global keyboard-focus ring — replaces the browser default that
   is invisible on this dark theme. Targets focus-visible only so
   mouse users don't see it. WCAG 2.4.7. */
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:2px}

/* Skip-to-content link — visually hidden until focused. Inserted at
   the top of every page so keyboard users can bypass the nav. */
.skip-link{position:absolute;top:-100px;left:14px;z-index:9999;padding:10px 16px;background:var(--accent);color:#001218;font-family:var(--mono);font-size:12px;letter-spacing:.14em;text-transform:uppercase;border-radius:2px;transition:top .15s}
.skip-link:focus-visible{top:14px;outline:2px solid #fff}

/* utilities */
.mono{font-family:var(--mono);font-feature-settings:"tnum","ss01";letter-spacing:.02em}
.serif{font-family:var(--serif);font-optical-sizing:auto}
.label{font-family:var(--mono);font-size:11px;font-weight:500;letter-spacing:.18em;text-transform:uppercase;color:var(--muted)}
.label-accent{color:var(--accent)}
.chip{font-family:var(--mono);font-size:9px;letter-spacing:.14em;text-transform:uppercase;color:var(--text-2);border:1px solid var(--border);padding:5px 9px;border-radius:2px;white-space:nowrap;display:inline-block}
.chip--accent{color:var(--accent);border-color:var(--accent-line)}
.chip--amber{color:var(--amber);border-color:rgba(255,181,71,.4)}
.chip--green{color:var(--green);border-color:rgba(74,222,128,.4)}
.chip--muted{color:var(--muted);border-color:var(--border)}

/* stage badges — product maturity */
.stage{font-family:var(--mono);font-size:10px;letter-spacing:.16em;text-transform:uppercase;padding:4px 9px;border-radius:2px;border:1px solid;display:inline-block;vertical-align:middle}
.stage--live{color:var(--green);border-color:rgba(74,222,128,.5);background:rgba(74,222,128,.08)}
.stage--deploy{color:#7DEEFF;border-color:rgba(125,238,255,.5);background:rgba(125,238,255,.08)}
.stage--pilot{color:var(--accent);border-color:var(--accent-line);background:var(--accent-soft)}
.stage--roadmap{color:var(--amber);border-color:rgba(255,181,71,.4);background:var(--amber-soft)}
.stage--early{color:var(--muted);border-color:var(--border-2)}

/* inline capability stage chip — for use inside text rows / matrix cells */
.cap-stage{font-family:var(--mono);font-size:9.5px;letter-spacing:.14em;text-transform:uppercase;padding:3px 7px;border-radius:2px;border:1px solid;display:inline-block;vertical-align:middle;white-space:nowrap}
.cap-stage--live{color:var(--green);border-color:rgba(74,222,128,.5);background:rgba(74,222,128,.08)}
.cap-stage--deploy{color:#7DEEFF;border-color:rgba(125,238,255,.5);background:rgba(125,238,255,.08)}
.cap-stage--pilot{color:var(--accent);border-color:var(--accent-line);background:var(--accent-soft)}
.cap-stage--roadmap{color:var(--amber);border-color:rgba(255,181,71,.4);background:var(--amber-soft)}
.cap-stage--none{color:var(--muted);border-color:var(--border)}

/* capability matrix — for modules.html (capability families × products) */
.capability-matrix{border:1px solid var(--border);overflow:hidden;margin-top:32px}
.capability-matrix table{width:100%;border-collapse:collapse;font-size:13px}
.capability-matrix th,.capability-matrix td{padding:14px 16px;text-align:left;border-bottom:1px solid var(--border);border-right:1px solid var(--border);vertical-align:middle}
.capability-matrix th:last-child,.capability-matrix td:last-child{border-right:0}
.capability-matrix tr:last-child td{border-bottom:0}
.capability-matrix thead th{background:#0B1020;font-family:var(--mono);font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);font-weight:500}
.capability-matrix td:first-child{font-family:var(--serif);font-size:15px;font-weight:500;color:var(--text);letter-spacing:-.005em}
.capability-matrix td:first-child small{display:block;font-family:var(--sans);font-weight:400;color:var(--text-2);font-size:12.5px;margin-top:2px;letter-spacing:0}
.capability-matrix td.dash{color:var(--muted);font-family:var(--mono);font-size:14px;text-align:center}
@media (max-width:800px){.capability-matrix{overflow-x:auto}.capability-matrix table{min-width:720px}}

/* zone card — for solutions.html (one platform, six zones)
   Per user request 2026-06-27: when the last row is partially
   filled, the empty cells should blend into the section's dark
   background — not show the grid's translucent border-tint backdrop.
   Achieved by:
   1. Removing the `background:var(--border)` on the grid container
      so empty space matches the section bg.
   2. Drawing the 1px hairlines directly on each card via outline
      so present cards still read as a grid, and absent cells
      contribute nothing (no tint, no lines). */
.zone-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;border:1px solid var(--border);margin-top:40px}
.zone-grid > .zone-card{outline:1px solid var(--border);outline-offset:0}

/* Same orphan-row blend recipe, applied generically to every other
   3-col card grid across the marketing site. Each per-page stylesheet
   used the same `background:var(--border)` backdrop trick which made
   empty cells on a partially-filled last row read as a lighter strip.
   Listing the grids here lets us drop the backdrop in each per-page
   block (next commit) and draw the hairlines on each direct child
   via outline. Add new grid classes here when they're introduced. */
:is(.dir-grid,
    .err-grid,
    .principles,
    .channels,
    .personas,
    .channels-grid,
    .device,
    .zones,
    .aer-channels,
    .aer-models,
    .aer-dash,
    .flow,
    .ai-layer,
    .next-strip,
    .events,
    .tech-shape,
    .models,
    .map-status,
    .scale-band__kpis,
    .pricing-teaser,
    .pillars,
    .guarantees,
    .hero-strip,
    .powers,
    .fams,
    .arch-stack,
    .plist,
    .steps,
    .faq,
    .pricing-proof,
    .integrations) > * { outline:1px solid var(--border); outline-offset:0 }
@media (max-width:1000px){
  .zone-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:600px){
  .zone-grid{grid-template-columns:1fr}
}
.zone-card{background:var(--bg);padding:28px 26px;display:flex;flex-direction:column;gap:14px;min-height:220px}
.zone-card__head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}
.zone-card__num{font-family:var(--mono);font-size:10px;letter-spacing:.18em;color:var(--accent)}
.zone-card__title{font-family:var(--serif);font-size:24px;font-weight:500;letter-spacing:-.015em;line-height:1.15}
.zone-card__title em{font-style:italic;color:var(--accent)}
.zone-card__problem{color:var(--text-2);font-size:14px;line-height:1.55}
.zone-card__problem b{color:var(--text);font-weight:500}
.zone-card__caps{display:flex;flex-direction:column;gap:6px;font-family:var(--mono);font-size:11.5px;color:var(--text-2);line-height:1.5}
.zone-card__caps span{padding-left:14px;position:relative}
.zone-card__caps span::before{content:'◆';position:absolute;left:0;color:var(--accent);font-size:8px;top:3px}
.zone-card__products{font-family:var(--mono);font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin-top:auto;padding-top:8px;border-top:1px dashed rgba(255,255,255,.06)}
.zone-card__products b{color:var(--text);font-weight:500}
.zone-card__roadmap{font-size:12.5px;color:var(--text-2);line-height:1.5;font-style:italic}
@media (max-width:900px){.zone-card__roadmap a{display:inline-block;padding:8px 0;min-height:44px;line-height:1.4}}

/* Reserve space for the JS-loaded header so it doesn't cause CLS
   when it lands. Statusbar (~32px) + nav (~68px) ≈ 100px on desktop. */
#header-placeholder:empty{display:block;min-height:100px}
#footer-placeholder:empty{display:block;min-height:520px}
@media (max-width:900px){
  #header-placeholder:empty{min-height:88px}
  #footer-placeholder:empty{min-height:760px}
}

/* status bar */
.statusbar{position:relative;z-index:100;background:#070A12;border-bottom:1px solid var(--border);font-family:var(--mono);font-size:11px;letter-spacing:.10em;color:var(--text-2)}
.statusbar__inner{max-width:var(--maxw);margin:0 auto;padding:9px 24px;display:flex;gap:28px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.statusbar__live{display:flex;align-items:center;gap:9px;color:var(--text)}
.statusbar__dot{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 0 0 rgba(74,222,128,.7);animation:pulse 2.4s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(74,222,128,.6)}70%{box-shadow:0 0 0 8px rgba(74,222,128,0)}100%{box-shadow:0 0 0 0 rgba(74,222,128,0)}}
.statusbar__ticker{flex:1;overflow:hidden;white-space:nowrap;mask-image:linear-gradient(90deg,transparent 0,#000 5%,#000 95%,transparent 100%)}
.ticker-track{display:inline-block;white-space:nowrap;animation:ticker 80s linear infinite;padding-left:100%}
.ticker-track span{padding:0 24px;color:var(--text-2)}
.ticker-track i{color:var(--accent);font-style:normal;margin-right:6px}
@keyframes ticker{from{transform:translateX(0)}to{transform:translateX(-100%)}}
.statusbar__zulu{display:flex;gap:14px;align-items:center}
.statusbar__zulu strong{color:var(--text);font-weight:500}

/* navigation */
.nav{position:sticky;top:0;z-index:50;backdrop-filter:blur(18px) saturate(160%);-webkit-backdrop-filter:blur(18px) saturate(160%);background:rgba(10,14,26,.78);border-bottom:1px solid var(--border)}
.nav__inner{max-width:var(--maxw);margin:0 auto;padding:18px 24px;display:flex;align-items:center;gap:48px}
.brand{display:flex;align-items:center;gap:12px;flex-shrink:0;padding:6px 0;min-height:44px}
.brand__mark{width:32px;height:32px;position:relative}
.brand__mark svg{width:100%;height:100%}
.brand__name{font-family:var(--serif);font-weight:500;font-size:20px;letter-spacing:-.01em;font-feature-settings:"ss01"}
.brand__name em{font-style:italic;color:var(--accent);font-weight:400}
.brand__name sup{font-family:var(--mono);font-size:9px;letter-spacing:.18em;color:var(--muted);margin-left:6px;vertical-align:middle;position:relative;top:-2px;font-weight:500;text-transform:uppercase}
.nav__links{display:flex;gap:30px;font-size:14px;color:var(--text-2)}
.nav__links a{transition:color .2s;position:relative;padding:6px 0}
.nav__links a:hover{color:var(--text)}
.nav__links a.active{color:var(--text)}
.nav__links a.active::after{content:'';position:absolute;bottom:-2px;left:0;right:0;height:1px;background:var(--accent)}
.nav__cta{margin-left:auto;display:flex;gap:12px;align-items:center}

/* buttons */
.btn{display:inline-flex;align-items:center;gap:10px;padding:11px 18px;font-size:13.5px;font-weight:500;letter-spacing:.005em;border-radius:2px;transition:all .25s cubic-bezier(.4,0,.2,1);white-space:nowrap;-webkit-tap-highlight-color:transparent;cursor:pointer}
.btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.btn:active{transform:translateY(1px)}
.btn--ghost{color:var(--text-2);border:1px solid var(--border-2)}
.btn--ghost:hover{color:var(--text);border-color:var(--text-2)}
.btn--primary{background:var(--accent);color:#001218;font-weight:600;position:relative;overflow:hidden}
.btn--primary:hover{box-shadow:0 0 32px rgba(0,229,255,.35)}
.btn--text{color:var(--text-2);padding:11px 4px}
.btn--text:hover{color:var(--accent)}
.btn .arrow{transition:transform .25s}
.btn:hover .arrow{transform:translateX(3px)}
.nav__burger{display:none;background:none;border:1px solid var(--border);color:var(--text);width:44px;height:44px;padding:0;cursor:pointer;align-items:center;justify-content:center;flex-direction:column;gap:5px;transition:border-color .2s,background .2s;-webkit-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent}
.nav__burger:hover{border-color:var(--border-2);background:var(--surface)}
.nav__burger span{display:block;width:18px;height:1.5px;background:var(--text);transition:transform .25s,opacity .2s}
.nav__burger[aria-expanded="true"] span:nth-child(1){transform:translateY(6.5px) rotate(45deg)}
.nav__burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.nav__burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-6.5px) rotate(-45deg)}
.nav__drawer{display:none;flex-direction:column;gap:4px;padding:18px 28px 28px;border-top:1px solid var(--border);background:rgba(10,14,26,.96);backdrop-filter:blur(18px) saturate(160%);-webkit-backdrop-filter:blur(18px) saturate(160%)}
.nav__drawer a:not(.btn){padding:14px 0;color:var(--text-2);font-size:15px;border-bottom:1px solid var(--border)}
.nav__drawer .btn{margin-top:14px;justify-content:center;padding:14px 18px}
.nav__drawer a.active,.nav__drawer a:not(.btn):hover{color:var(--text)}
.nav__drawer[data-open="true"]{display:flex}
@media (max-width:900px){
  .nav__links{display:none}
  .nav__cta{display:none}
  .nav__burger{display:inline-flex!important;margin-left:auto}
  .statusbar__ticker{display:none}
}

/* page hero */
.page-hero{position:relative;padding:56px 24px 40px;border-bottom:1px solid var(--border);overflow:hidden}
.page-hero__inner{max-width:var(--maxw);margin:0 auto;position:relative;z-index:2}
.page-hero__crumb{display:flex;align-items:center;gap:14px;margin-bottom:32px;font-family:var(--mono);font-size:11px;letter-spacing:.20em;text-transform:uppercase;color:var(--muted)}
.page-hero__crumb .line{flex:0 0 56px;height:1px;background:linear-gradient(90deg,var(--accent),transparent)}
.page-hero__crumb strong{color:var(--text);font-weight:500}
.page-hero__crumb a{transition:color .2s;display:inline-block}.page-hero__crumb a:hover{color:var(--accent)}
@media (max-width:900px){.page-hero__crumb a{padding:8px 4px;min-height:44px;line-height:1;display:inline-flex;align-items:center}}
.page-hero__title{font-family:var(--serif);font-weight:300;font-size:clamp(40px,6.5vw,86px);line-height:.98;letter-spacing:-.03em;color:var(--text);margin-bottom:28px;font-feature-settings:"ss01";max-width:18ch}
.page-hero__title em{font-style:italic;color:var(--accent)}
.page-hero__lead{font-size:19px;line-height:1.55;color:var(--text-2);max-width:640px}
.page-hero__lead b{color:var(--text);font-weight:500}

/* section heads */
.section-head{display:flex;justify-content:space-between;align-items:end;flex-wrap:wrap;gap:32px;margin-bottom:32px}
.section-head__title{font-family:var(--serif);font-weight:300;font-size:clamp(32px,4vw,54px);line-height:1.05;letter-spacing:-.022em;max-width:760px}
.section-head__title em{font-style:italic;color:var(--accent)}
.section-head__meta{display:flex;flex-direction:column;gap:8px;text-align:right;font-family:var(--mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);max-width:280px}
.section-head__meta strong{color:var(--text);font-weight:500}

/* generic section */
/* Section vertical rhythm bumped 2026-06-22.
   Previously 44px top + bottom. On dense product pages every section
   read as if it butted into the next — the eye couldn't see where one
   block ended. Bumped to 88px so each section has room to breathe.
   Matches the spacing Stripe / Linear / Vercel use on B2B product
   pages. The adjacency rule below stays smaller because the surviving
   gap between two stacked sections is still padding-bottom (88px) +
   padding-top (64px now, was 32) = 152px. */
.section{padding:88px 24px;border-bottom:1px solid var(--border)}
.section--alt{background:#070A12}
.section__inner{max-width:var(--maxw);margin:0 auto}
/* Section-head already supplies the bottom rhythm (32px). Cancel the
   top-margin that page-level grids tend to bake in (40-48px) so the
   spacing isn't doubled. This catches every grid/panel without having
   to enumerate class names. */
.section-head + *{margin-top:0!important}
/* Same neutralizer for the first child of a section's __inner — many
   pages skip the .section-head entirely and just drop a grid in. */
.section__inner > *:first-child{margin-top:0}
/* When two banded sections stack, trim the gap between them — the
   border-bottom already separates them visually, so we don't need
   100%+100% of vertical padding. Keep a small breathing space (28px)
   so adjacent sections don't read as one continuous wall of text.
   Earlier this was `padding-top:0` which produced a zero-gap stack
   that looked compressed on every page; the modest top inset is the
   smallest amount that restores rhythm without losing the tightness
   the layout was tuned for. */
.section + .section,
.section + .cta-band,
.section + .aai-band,
.section + .scale-band,
.section + .trust-section,
.aai-band + .section,
.aai-band + .cta-band,
.aai-band + .scale-band,
.cta-band + .section,
.scale-band + .section,
.scale-band + .aai-band,
.scale-band + .cta-band,
.trust-section + .section,
.trust-section + .cta-band,
.page-hero + .section,
.page-hero + .cta-band,
.page-hero + .aai-band,
.page-hero + .scale-band,
.page-hero + .trust-section,
.hero + .section,
.hero + .scale-band,
.hero + .aai-band{padding-top:64px}

/* cards */
.card{border:1px solid var(--border);background:var(--surface);padding:32px;transition:border-color .25s, background .25s}
.card:hover{border-color:var(--border-2);background:var(--surface-2)}
.card__eyebrow{font-family:var(--mono);font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:var(--accent);margin-bottom:14px}
.card__title{font-family:var(--serif);font-size:24px;font-weight:500;letter-spacing:-.015em;line-height:1.15;margin-bottom:12px}
.card__title em{font-style:italic;color:var(--accent)}
.card__text{font-size:14.5px;line-height:1.6;color:var(--text-2)}

/* CTA band */
.cta-band{padding:48px 24px;text-align:center;border-bottom:1px solid var(--border);position:relative;overflow:hidden}
.cta-band h2{font-family:var(--serif);font-weight:300;font-size:clamp(36px,5vw,68px);line-height:1.02;letter-spacing:-.03em;margin-bottom:24px}
.cta-band h2 em{font-style:italic;color:var(--accent)}
.cta-band p{color:var(--text-2);font-size:17px;max-width:560px;margin:0 auto 32px;line-height:1.55}
.cta-band__buttons{display:inline-flex;gap:14px;flex-wrap:wrap;justify-content:center}

/* footer */
footer{padding:60px 24px 36px;background:#050810}
.footer__inner{max-width:var(--maxw);margin:0 auto}
.footer__top{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr 1fr;gap:40px;padding-bottom:44px;border-bottom:1px solid var(--border)}
@media (max-width:1100px){.footer__top{grid-template-columns:1.5fr 1fr 1fr;gap:40px}}
@media (max-width:800px){.footer__top{grid-template-columns:1fr 1fr;gap:32px}}
@media (max-width:500px){.footer__top{grid-template-columns:1fr}}
.footer__brand{max-width:340px}
.footer__tag{color:var(--text-2);font-size:13.5px;margin-top:16px;line-height:1.6}
.footer__col h5{font-family:var(--mono);font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:var(--muted);margin-bottom:18px;font-weight:500}
.footer__col ul{list-style:none;display:flex;flex-direction:column;gap:10px}
.footer__col li a{color:var(--text-2);font-size:13.5px;transition:color .2s;display:inline-block;padding:8px 0;min-height:44px;line-height:1.4}
@media (min-width:901px){.footer__col li a{padding:0;min-height:0}}
.footer__col li a:hover{color:var(--accent)}
.footer__bottom{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:24px;padding-top:32px;font-family:var(--mono);font-size:10.5px;letter-spacing:.12em;color:var(--muted)}
.footer__bottom .compliance{display:flex;gap:10px;flex-wrap:wrap}
.footer__bottom .compliance span{border:1px solid var(--border);padding:5px 9px;border-radius:2px}

/* reveal animations — gated behind html.js-reveal so JS-off readers,
   crawlers, and reduced-motion users always see content. The class is
   set by loader.js on first parse. */
html.js-reveal .reveal{opacity:0;transform:translateY(20px);transition:opacity .8s cubic-bezier(.65,0,.35,1),transform .8s cubic-bezier(.65,0,.35,1)}
html.js-reveal .reveal.in{opacity:1;transform:translateY(0)}
html.js-reveal .stagger > *{opacity:0;transform:translateY(14px);transition:opacity .7s cubic-bezier(.65,0,.35,1),transform .7s cubic-bezier(.65,0,.35,1)}
html.js-reveal .stagger.in > *{opacity:1;transform:translateY(0)}
html.js-reveal .stagger.in > *:nth-child(1){transition-delay:0s}
html.js-reveal .stagger.in > *:nth-child(2){transition-delay:.06s}
html.js-reveal .stagger.in > *:nth-child(3){transition-delay:.12s}
html.js-reveal .stagger.in > *:nth-child(4){transition-delay:.18s}
html.js-reveal .stagger.in > *:nth-child(5){transition-delay:.24s}
html.js-reveal .stagger.in > *:nth-child(6){transition-delay:.3s}
html.js-reveal .stagger.in > *:nth-child(7){transition-delay:.36s}
html.js-reveal .stagger.in > *:nth-child(8){transition-delay:.42s}
/* Reduced motion: skip the animation but never leave content hidden. */
@media (prefers-reduced-motion:reduce){
  html.js-reveal .reveal,html.js-reveal .stagger > *{opacity:1!important;transform:none!important;transition:none!important}
  *{animation:none!important}
}

/* ── Global mobile pass ───────────────────────────────────────────── */
@media (max-width:1000px){
  /* tighter side padding so content uses the viewport */
  .section,.cta-band,.aai-band,.page-hero{padding-left:20px;padding-right:20px}
  .nav__inner{padding-left:20px;padding-right:20px;gap:20px}
  footer{padding-left:20px;padding-right:20px}
  /* two-up content layouts collapse */
  .about-grid,.contact-grid,.case-head,.case-grid{grid-template-columns:1fr!important;gap:32px!important}
  .aai-band__inner{grid-template-columns:1fr!important;gap:32px!important}
  /* 4-col / 3-col tile grids → 2-col */
  .hero__proof,.compliance-grid,.cust-strip,.sectors__grid,.outcomes,.hero-strip,.flow-rail,.standards,.tiers,.flow,.phase-rail,.principles,.pillars,.products,.capabilities,.cap-grid,.faq{grid-template-columns:repeat(2,1fr)!important}
  /* row-style layouts stack */
  .product-row{grid-template-columns:1fr!important;gap:24px!important;padding:32px 0!important}
  .family-row{grid-template-columns:1fr!important;gap:8px!important;padding:18px 20px!important}
  .arch-layer{grid-template-columns:1fr!important;gap:8px!important}
  .trust-layout{grid-template-columns:1fr!important;gap:32px!important;padding:40px 20px!important}
  .kv__row{grid-template-columns:1fr!important;gap:6px!important}
  /* section heads stack neatly */
  .section-head{flex-direction:column;align-items:flex-start;gap:18px;margin-bottom:28px}
  .section-head__meta{text-align:left;max-width:none}
  /* form fields stack */
  .form__grid{grid-template-columns:1fr!important}
  /* 5-channel grid → 2-col */
  .channels{grid-template-columns:repeat(2,1fr)!important}
}
@media (max-width:640px){
  .section,.cta-band,.aai-band{padding-top:56px;padding-bottom:56px}
  .page-hero{padding-top:40px;padding-bottom:32px}
  /* Tighten the home hero so the first product strip is within the
     first 1.5 scrolls on a phone. The reserved 2-line title height
     was wasting ~80px below the headline on a wrapped title. */
  .hero{padding:36px 20px 32px}
  .hero__title{margin-bottom:20px;min-height:0}
  .hero__eyebrow{margin-bottom:20px}
  .hero__lead{margin-bottom:24px;font-size:17px}
  .hero__proof{margin-top:36px}
  .hero__proof > div{padding:18px 16px}
  .hero__proof .v{font-size:17px}
  /* Apple HIG / WCAG 2.5.5: 44×44 minimum tap target */
  .btn{padding:13px 20px;min-height:44px}
  /* On mobile, give links inside body text a touch-friendly hit area */
  a:active{opacity:.7}
  /* collapse 2-col tile grids to a single column on narrow phones */
  .hero__proof,.compliance-grid,.cust-strip,.sectors__grid,.outcomes,.hero-strip,.flow-rail,.standards,.tiers,.flow,.phase-rail,.principles,.pillars,.products,.capabilities,.cap-grid,.faq,.channels,.aai-band__kpis{grid-template-columns:1fr!important}
  .zone-grid{grid-template-columns:1fr!important}
  /* statusbar: only the live badge + clock */
  .statusbar__inner{padding-left:14px;padding-right:14px;gap:14px}
  /* footer fully stacks */
  .footer__top{grid-template-columns:1fr!important;gap:24px}
  .footer__bottom{flex-direction:column;align-items:flex-start;gap:14px}
  /* dial down the large display type so it doesn't overflow */
  .page-hero__title,.hero__title,.cta-band h2,.aai-band h2,.section-head__title{font-size:clamp(28px,8vw,44px)!important;line-height:1.08!important}
  /* horizontally-scroll any wide table */
  table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
  /* card padding tighter */
  .card{padding:22px}
}

/* ── Aviation atmosphere ──────────────────────────────────────────
   Three subtle background layers evoking the airspace surveillance
   we sell: a slow radar conic-sweep, drifting flight-corridor lines,
   and pinpoint particles standing in for radar contacts / contrails.
   All three are pointer-events:none and behind everything (z-index
   computed against body's stacking context — see body rule).
   Reduced-motion users get the static gradient only.

   Why this is in shared CSS:
   - One injected DOM node per page (via loader.js), one ruleset, no
     per-page wiring.
   - Lives behind .nav (which is sticky with backdrop-blur), behind
     .statusbar, behind every section. Never blocks reading. */

#aero-bg{
  position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden;
  contain:strict;
}
/* Body needs a positioning context so z-index:-1 children sit BEHIND
   normal-flow content but in front of body's background color. */
body{position:relative;z-index:0}

/* Layer 1 — radar sweep. Conic-gradient cone slowly rotating from
   the center of the viewport, with a wider visible wedge so the
   effect actually reads as a sweep rather than ambient glow. The
   cone tapers from bright at center to transparent at the edge,
   then we layer concentric range rings on top for the airport-radar
   silhouette. */
.aero-bg__radar{
  position:absolute;
  width:160vmax;height:160vmax;
  left:50%;top:50%;
  transform-origin:center;
  margin:-80vmax 0 0 -80vmax;
  background:
    conic-gradient(from 0deg at 50% 50%,
      transparent 0deg,
      transparent 320deg,
      rgba(0,229,255,.05) 335deg,
      rgba(0,229,255,.18) 355deg,
      rgba(0,229,255,.22) 360deg,
      rgba(0,229,255,.10) 8deg,
      transparent 25deg,
      transparent 360deg);
  animation:aero-radar 45s linear infinite;
  filter:blur(20px);
  opacity:.7;
}
/* Concentric range rings — static, evoke the literal radar
   silhouette. Three rings via repeating-radial-gradient. */
.aero-bg__radar::before{
  content:'';position:absolute;inset:0;
  background:
    radial-gradient(circle at 50% 50%,
      transparent 0,
      transparent calc(20vmax - 1px),
      rgba(0,229,255,.10) 20vmax,
      transparent calc(20vmax + 1px),
      transparent calc(40vmax - 1px),
      rgba(0,229,255,.07) 40vmax,
      transparent calc(40vmax + 1px),
      transparent calc(60vmax - 1px),
      rgba(0,229,255,.05) 60vmax,
      transparent calc(60vmax + 1px));
}
@keyframes aero-radar{
  from{transform:rotate(0deg)}
  to{transform:rotate(360deg)}
}

/* ── Print stylesheet ─────────────────────────────────────────────
   Trust pages, pricing pages, and customer case studies get printed
   often — procurement attaches them to RFI packages, legal teams
   mark them up. The dark UI inverts to legible black-on-white. */
@media print{
  *,*::before,*::after{
    background:transparent!important;color:#000!important;
    box-shadow:none!important;text-shadow:none!important;
    animation:none!important;transition:none!important
  }
  html,body{background:#fff!important;color:#000!important;font-size:11pt;line-height:1.45}
  /* Hide chrome that doesn't print */
  .statusbar,.nav,#aero-bg,.skip-link,.btn,.cta-band,.cta-band--photo,
  .footer__top .footer__col h3+ul li:last-child,
  #footer-placeholder ul{display:none!important}
  /* Reveal animations always shown */
  .reveal,.stagger > *{opacity:1!important;transform:none!important}
  /* Borders + KV rows visible in print */
  .kv,.kv__row,.zone-card,.product,.principle,.prod,.compliance-cell,
  .pricing-proof__cell,.integ,.suite-tile,.err-tile,.role-tile,
  .scale-band__kpis > div,.flow > div,.steps > div,.faq > div,
  .aai-band__kpis > div{
    border:1px solid #999!important;background:#fff!important;page-break-inside:avoid
  }
  /* Headings + accent — black + bold */
  h1,h2,h3,h4,h5{color:#000!important;page-break-after:avoid}
  em{font-style:italic;color:#000!important}
  /* Tables print legibly */
  table,th,td{border:1px solid #999!important;background:#fff!important;color:#000!important}
  /* Links: show the URL inline */
  a[href^="http"]::after,a[href^="/"]::after{
    content:" ("attr(href)")";font-size:9pt;color:#444!important
  }
  /* Don't print URLs on internal anchors */
  a[href^="#"]::after,a[href^="mailto:"]::after{content:""!important}
  /* Page footer */
  @page{margin:18mm 14mm 18mm 14mm}
}

/* Layer 2 — flight corridors. Three diagonal hairlines drift across
   the viewport on long loops, suggesting airspace traffic vectors.
   Using ::before/::after + the element itself gives us three layers
   from one DOM node. */
.aero-bg__corridors{position:absolute;inset:0}
.aero-bg__corridors::before,
.aero-bg__corridors::after,
.aero-bg__corridors{
  background-repeat:no-repeat;
  background-size:300% 1px,300% 1px,300% 1px;
}
.aero-bg__corridors{
  background-image:
    linear-gradient(90deg,transparent 0,rgba(0,229,255,.4) 50%,transparent 100%);
  background-position:-300% 22%;
  background-size:300% 1.5px;
  animation:aero-drift-1 80s linear infinite;
}
.aero-bg__corridors::before{
  content:'';position:absolute;inset:0;
  background:linear-gradient(90deg,transparent 0,rgba(125,238,255,.3) 50%,transparent 100%);
  background-repeat:no-repeat;
  background-size:300% 1.5px;
  background-position:-300% 58%;
  transform:rotate(-3deg);
  animation:aero-drift-2 110s linear infinite;
}
.aero-bg__corridors::after{
  content:'';position:absolute;inset:0;
  background:linear-gradient(90deg,transparent 0,rgba(167,139,250,.26) 50%,transparent 100%);
  background-repeat:no-repeat;
  background-size:300% 1.5px;
  background-position:-300% 81%;
  transform:rotate(2deg);
  animation:aero-drift-3 95s linear infinite;
}
@keyframes aero-drift-1{from{background-position:-300% 22%}to{background-position:200% 22%}}
@keyframes aero-drift-2{from{background-position:-300% 58%}to{background-position:200% 58%}}
@keyframes aero-drift-3{from{background-position:-300% 81%}to{background-position:200% 81%}}

/* Layer 3 — radar contacts. 10 tiny cyan dots placed at irregular
   positions, each slowly drifting + pulsing. The fixed nth-child
   coordinates give an asymmetric distribution that doesn't read as
   a grid. */
.aero-bg__particles{position:absolute;inset:0}
.aero-bg__dot{
  position:absolute;width:4px;height:4px;border-radius:50%;
  background:rgba(0,229,255,.85);
  box-shadow:0 0 10px rgba(0,229,255,.85),0 0 20px rgba(0,229,255,.4);
  animation:aero-pulse 6s ease-in-out infinite;
}
.aero-bg__dot--1{top:12%;left:8%;animation-delay:0s;animation-duration:7s}
.aero-bg__dot--2{top:28%;left:74%;animation-delay:1.2s;animation-duration:9s}
.aero-bg__dot--3{top:46%;left:18%;animation-delay:2.4s;animation-duration:6s}
.aero-bg__dot--4{top:62%;left:88%;animation-delay:3.0s;animation-duration:8s}
.aero-bg__dot--5{top:74%;left:32%;animation-delay:0.6s;animation-duration:11s}
.aero-bg__dot--6{top:88%;left:62%;animation-delay:4.2s;animation-duration:7s}
.aero-bg__dot--7{top:18%;left:48%;animation-delay:2.0s;animation-duration:10s}
.aero-bg__dot--8{top:38%;left:42%;animation-delay:5.0s;animation-duration:8s}
.aero-bg__dot--9{top:56%;left:58%;animation-delay:1.6s;animation-duration:9s}
.aero-bg__dot--10{top:80%;left:14%;animation-delay:3.6s;animation-duration:6s}
@keyframes aero-pulse{
  0%,100%{opacity:.18;transform:scale(.7)}
  50%{opacity:.85;transform:scale(1.3)}
}

@media (prefers-reduced-motion:reduce){
  .aero-bg__radar,
  .aero-bg__corridors,
  .aero-bg__corridors::before,
  .aero-bg__corridors::after,
  .aero-bg__dot{animation:none!important}
  /* Keep the static silhouette of the corridors as a calmer backdrop. */
  .aero-bg__dot{opacity:.3}
}

/* Reduce particle count + corridor opacity on small phones — already
   not literally a feature, no need to render 10 tiny dots on a 5"
   screen where they're decoration only. */
@media (max-width:640px){
  .aero-bg__dot--6,
  .aero-bg__dot--7,
  .aero-bg__dot--8,
  .aero-bg__dot--9,
  .aero-bg__dot--10{display:none}
  .aero-bg__radar{filter:blur(60px)}
}
