/* ============================================================
   AOtech — global styles
   Layered over Tailwind utilities for things Tailwind doesn't
   express well: the hero network animation, the Tweaks panel,
   the Stockman Atlas paper card, focus rings, etc.
   ============================================================ */

:root {
  --bg-0: #030810;
  --bg-1: #060d1a;
  --bg-2: #091422;
  --bg-3: #0d1c30;
  --bg-4: #10233b;
  --accent: #d42020;          /* live, may be overridden by Tweaks */
  --accent-red: #d42020;
  --accent-blue: #00436E;
  --ink-0: #ffffff;
  --ink-1: #c8dff4;
  --ink-2: #5d8fb5;
  --ink-3: #2a4d68;

  /* Stockman Atlas (used only inside its card) */
  --sa-navy: #0d1117;
  --sa-ink: #07090d;
  --sa-paper: #f3ece0;
  --sa-paper-dim: #e8dfce;
  --sa-bone: #d9cfbf;
  --sa-bone-dim: #a89c87;
  --sa-steel: #4A7FB5;
  --sa-crimson: #8B1A1A;

  --hair: rgba(42, 77, 104, 0.45);  /* card border (= ink-3 at ~45%) */
  --hair-soft: rgba(42, 77, 104, 0.22);

  --rad-lg: 14px;
  --rad-md: 10px;
}

html, body {
  background: var(--bg-0);
  color: var(--ink-1);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; text-decoration: none; }

.font-display { font-family: "Space Grotesk", "Inter", system-ui, sans-serif; }
.font-mono    { font-family: "JetBrains Mono", ui-monospace, monospace; }
.font-serif-display { font-family: "DM Serif Display", "Times New Roman", serif; }
.font-fell    { font-family: "IM Fell English SC", "Cormorant Garamond", serif; }
.font-cormorant { font-family: "Cormorant Garamond", "Times New Roman", serif; }

/* Density variants (toggled via Tweaks) */
html[data-density="compact"] .sec { padding-top: 64px; padding-bottom: 64px; }
@media (min-width: 768px) {
  html[data-density="compact"] .sec { padding-top: 88px; padding-bottom: 88px; }
}

/* Section eyebrow visibility */
html[data-eyebrow="off"] .eyebrow { display: none; }

/* Italic emphasis toggle */
html[data-italic-emphasis="off"] .emph { font-style: normal; }
.emph { font-style: italic; font-weight: 500; }

/* ============================================================
   Section primitives
   ============================================================ */

.sec {
  position: relative;
  padding-top: 96px;
  padding-bottom: 96px;
}
@media (min-width: 768px) { .sec { padding-top: 112px; padding-bottom: 112px; } }
@media (min-width: 1280px) { .sec { padding-top: 128px; padding-bottom: 128px; } }

.wrap { max-width: 1280px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .wrap { padding-inline: 40px; } }
@media (min-width: 1280px) { .wrap { padding-inline: 56px; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px; height: 1px;
  background: var(--accent);
  opacity: 0.9;
}

h1.headline, h2.headline {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--ink-0);
}
.headline-xl { font-size: clamp(40px, 8vw, 96px); }
.headline-lg { font-size: clamp(34px, 5.2vw, 64px); }
.headline-md { font-size: clamp(26px, 3.4vw, 40px); }

.sub {
  color: var(--ink-1);
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.6;
  max-width: 64ch;
}

/* ============================================================
   Buttons / CTAs
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px;
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
  min-height: 44px;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 0 0 1px rgba(255,255,255,0.04) inset;
}
.btn-primary:hover { background: color-mix(in oklab, var(--accent) 88%, white); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink-0);
  border: 1px solid var(--hair);
}
.btn-ghost:hover { border-color: var(--ink-2); background: var(--bg-3); }
.btn-mini {
  height: 38px; padding: 0 14px; font-size: 13px; border-radius: 6px;
}

/* tap target for phone link */
.tel-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--ink-0); font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.tel-link:hover { color: var(--accent); }

/* Underline link */
.u-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink-0);
  border-bottom: 1px solid var(--ink-3);
  padding-bottom: 2px;
  transition: border-color .18s ease, color .18s ease;
  font-weight: 500;
}
.u-link:hover { border-bottom-color: var(--accent); }

/* ============================================================
   Card system — hairline border + 1px inner top highlight
   ============================================================ */
.card {
  position: relative;
  background: var(--bg-3);
  border: 1px solid var(--hair);
  border-radius: var(--rad-lg);
  isolation: isolate;
  transition: background .2s ease, border-color .2s ease, transform .25s ease;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 0 rgba(200, 223, 244, 0.05);
}
.card-link:hover {
  background: var(--bg-4);
  border-color: rgba(93, 143, 181, 0.45);
}
.card-link:hover .card-arrow { transform: translateX(4px); color: var(--accent); }
.card-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink-2); font-weight: 500; font-size: 14px;
  transition: transform .25s ease, color .2s ease;
}

/* tag chip */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 4px 9px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  color: var(--ink-2);
}
.chip-accent {
  color: #ffd4d4;
  border-color: color-mix(in oklab, var(--accent) 55%, transparent);
  background: color-mix(in oklab, var(--accent) 12%, transparent);
}

/* index numerals */
.numeral {
  font-family: "Space Grotesk", sans-serif;
  font-feature-settings: "tnum";
  font-weight: 500;
  color: var(--ink-3);
  font-size: 13px;
  letter-spacing: 0.18em;
}

/* hairline divider */
.hair-h { height: 1px; background: var(--hair-soft); width: 100%; }
.hair-v { width: 1px; background: var(--hair-soft); }

/* ============================================================
   Header / navigation
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(3, 8, 16, 0.78);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hair-soft);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.nav-logo img { height: 36px; width: auto; display: block; }
.nav-links {
  display: none;
  gap: 22px;
  font-size: 14px;
  color: var(--ink-1);
}
.nav-links a {
  position: relative;
  padding: 6px 2px;
  transition: color .18s ease;
}
.nav-links a:hover { color: var(--ink-0); }
.nav-links a.is-featured { color: var(--ink-0); }
/* .nav-links a.is-featured::after — removed per Josh: red underline disliked */
@media (min-width: 1024px) {
  .nav-links { display: flex; }
}
.nav-right {
  margin-left: auto;
  display: flex; align-items: center; gap: 16px;
}
.nav-tel { display: none; }
@media (min-width: 768px) { .nav-tel { display: inline-flex; } }

/* Client Portal — lives inside .nav-links as the first item.
   Same type as other links + a small external-link arrow. */
.nav-portal-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-portal-link svg {
  opacity: 0.6;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-portal-link:hover svg { opacity: 1; transform: translate(1px, -1px); }

.hamburger {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--hair);
  border-radius: 8px;
  background: transparent;
  color: var(--ink-0);
}
@media (min-width: 1024px) { .hamburger { display: none; } }

/* Full-screen mobile nav */
.mnav {
  position: fixed; inset: 0;
  background: var(--bg-0);
  z-index: 60;
  transform: translateY(-100%);
  transition: transform .35s cubic-bezier(.16,.84,.44,1);
  display: flex; flex-direction: column;
}
.mnav.open { transform: translateY(0); }
.mnav-head {
  display: flex; align-items: center;
  height: 72px;
  padding: 0 20px;
  border-bottom: 1px solid var(--hair-soft);
}
.mnav-head img { height: 32px; }
.mnav-close {
  margin-left: auto;
  width: 44px; height: 44px;
  border: 1px solid var(--hair); border-radius: 8px;
  background: transparent; color: var(--ink-0);
  display: inline-flex; align-items: center; justify-content: center;
}
.mnav-body {
  flex: 1;
  padding: 24px 20px 32px;
  overflow-y: auto;
}
.mnav-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 4px;
  border-bottom: 1px solid var(--hair-soft);
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--ink-0);
}
.mnav-link .num {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.2em;
  color: var(--ink-3);
}
.mnav-foot {
  padding: 24px 20px 32px;
  border-top: 1px solid var(--hair-soft);
  display: grid; gap: 12px;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding-top: 80px;
  padding-bottom: 96px;
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero { padding-top: 96px; padding-bottom: 128px; }
}
@media (min-width: 1280px) {
  .hero { padding-top: 120px; padding-bottom: 160px; }
}
.hero-grid {
  display: grid;
  gap: 56px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 72px;
  }
}
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 36px;
}
.hero-tel-row {
  display: flex; align-items: center; gap: 14px;
  margin-top: 22px;
  color: var(--ink-2);
  font-size: 13px;
}
.hero-tel-row .pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: pulse-dot 2.4s ease-out infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* Decorative background grid */
.bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(42, 77, 104, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42, 77, 104, 0.12) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 80%);
}

/* ============================================================
   Network graph (hero right)
   ============================================================ */
.hero-graph-wrap {
  position: relative;
  aspect-ratio: 5 / 4;
  width: 100%;
  border: 1px solid var(--hair);
  border-radius: 16px;
  background:
    radial-gradient(ellipse 80% 80% at 50% 50%, rgba(0, 67, 110, 0.18), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg-1));
  overflow: hidden;
}
.hero-graph-wrap::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(42, 77, 104, 0.18) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42, 77, 104, 0.18) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: -1px -1px;
  opacity: 0.45;
  pointer-events: none;
}
.hero-graph-wrap::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 1px 0 0 rgba(200, 223, 244, 0.06);
  border-radius: inherit;
  pointer-events: none;
}

/* Top-left corner label inside the graph */
.gx-label {
  position: absolute;
  z-index: 2;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.gx-label .live {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
}
.gx-label.tl { top: 18px; left: 18px; }
.gx-label.br { bottom: 18px; right: 18px; color: var(--ink-3); }

/* The graph itself */
#hero-graph { position: absolute; inset: 0; width: 100%; height: 100%; }
#hero-graph .g-edge {
  stroke: rgba(93, 143, 181, 0.28);
  stroke-width: 0.16;
  transition: stroke .6s ease, stroke-width .6s ease;
}
#hero-graph .g-edge[data-state="alert"] {
  stroke: rgba(212, 32, 32, 0.7);
  stroke-width: 0.28;
}
#hero-graph .g-edge[data-state="healed"] {
  stroke: rgba(74, 222, 128, 0.55);
  stroke-width: 0.24;
}

#hero-graph .g-node .g-ring {
  fill: var(--bg-2);
  stroke: rgba(93, 143, 181, 0.55);
  stroke-width: 0.16;
  transition: stroke .5s ease, fill .5s ease, stroke-width .5s ease;
}
#hero-graph .g-node .g-dot {
  fill: var(--ink-2);
  transition: fill .5s ease;
}
#hero-graph .g-node .g-pulse {
  fill: transparent;
  stroke: transparent;
  stroke-width: 0;
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  transition: opacity .4s ease;
}
/* hub node — bigger, with steel ring */
#hero-graph .g-node--hub .g-ring {
  stroke: rgba(0, 67, 110, 0.9);
  stroke-width: 0.22;
  fill: var(--bg-3);
}
#hero-graph .g-node--hub .g-dot { fill: var(--ink-1); }

/* alert state */
#hero-graph .g-node[data-state="alert"] .g-ring {
  stroke: var(--accent-red);
  stroke-width: 0.24;
  fill: rgba(212, 32, 32, 0.18);
}
#hero-graph .g-node[data-state="alert"] .g-dot { fill: var(--accent-red); }
#hero-graph .g-node[data-state="alert"] .g-pulse {
  stroke: rgba(212, 32, 32, 0.55);
  stroke-width: 0.18;
  opacity: 1;
  animation: graph-pulse 2.2s ease-out infinite;
}
@keyframes graph-pulse {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* healed state */
#hero-graph .g-node[data-state="healed"] .g-ring {
  stroke: #4ade80;
  stroke-width: 0.24;
  fill: rgba(74, 222, 128, 0.15);
}
#hero-graph .g-node[data-state="healed"] .g-dot { fill: #4ade80; }

/* hero animation kill switch */
html[data-hero-animation="off"] #hero-graph .g-node[data-state="alert"] .g-pulse { animation: none; opacity: 0; }
html[data-hero-animation="off"] #hero-graph .g-node[data-state="alert"] .g-ring { stroke: rgba(93, 143, 181, 0.55); fill: var(--bg-2); }
html[data-hero-animation="off"] #hero-graph .g-node[data-state="alert"] .g-dot { fill: var(--ink-2); }

/* ============================================================
   Credibility strip
   ============================================================ */
.creds {
  border-top: 1px solid var(--hair-soft);
  border-bottom: 1px solid var(--hair-soft);
}
.creds-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 768px) {
  .creds-grid { grid-template-columns: repeat(3, 1fr); }
}
.cred {
  padding: 36px 0;
  display: flex; flex-direction: column; gap: 8px;
  border-bottom: 1px solid var(--hair-soft);
}
@media (min-width: 768px) {
  .cred {
    padding: 56px 32px;
    border-bottom: none;
    border-left: 1px solid var(--hair-soft);
  }
  .cred:first-child { border-left: none; padding-left: 0; }
  .cred:last-child { padding-right: 0; }
}
.cred .num {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: -0.02em;
  color: var(--ink-0);
  line-height: 1;
}
.cred .label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-2);
  margin-top: 4px;
}
.cred .desc { color: var(--ink-1); font-size: 14px; line-height: 1.55; max-width: 36ch; }

/* ============================================================
   Services grid — asymmetric featured tiles
   New 4-card layout:
     Row 1: standard | featured (1fr | 2fr)
     Row 2: featured | standard (2fr | 1fr)
   The featured corners alternate diagonally for visual rhythm.
   ============================================================ */
.svc-grid-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .svc-grid-top { grid-template-columns: 1fr 2fr; gap: 24px; }
}
.svc-grid-bottom {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .svc-grid-bottom { grid-template-columns: 2fr 1fr; margin-top: 24px; gap: 24px; }
}

/* Even 2×2 alternative (Tweak: services layout = even) */
html[data-services-layout="even"] .svc-grid-top {
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { html[data-services-layout="even"] .svc-grid-top { grid-template-columns: 1fr 1fr; } }
html[data-services-layout="even"] .svc-grid-bottom {
  grid-template-columns: 1fr;
  margin-top: 20px;
}
@media (min-width: 640px) { html[data-services-layout="even"] .svc-grid-bottom { grid-template-columns: 1fr 1fr; margin-top: 24px; gap: 24px; } }

/* In even mode, drop the featured visual treatment so all 4 read equal. */
html[data-services-layout="even"] .svc.featured { min-height: 260px; padding: 28px; }
html[data-services-layout="even"] .svc.featured::after { display: none; }
html[data-services-layout="even"] .svc.featured .svc-icon {
  width: 44px; height: 44px;
  background: var(--bg-2);
  border-color: var(--hair);
  color: var(--ink-1);
}
html[data-services-layout="even"] .svc.featured h3 { font-size: 19px; }

.svc {
  position: relative;
  display: flex; flex-direction: column;
  padding: 28px;
  gap: 16px;
  min-height: 220px;
}
@media (min-width: 768px) { .svc { padding: 32px; } }
.svc.featured {
  min-height: 320px;
}
@media (min-width: 768px) {
  .svc.featured { padding: 40px; min-height: 360px; }
}
.svc-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--hair);
  color: var(--ink-1);
  flex-shrink: 0;
}
.svc.featured .svc-icon {
  width: 56px; height: 56px;
  background: color-mix(in oklab, var(--accent) 14%, var(--bg-3));
  border-color: color-mix(in oklab, var(--accent) 40%, transparent);
  color: #fff;
}
.svc h3 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.005em;
  color: var(--ink-0);
}
.svc.featured h3 {
  font-size: clamp(24px, 2.6vw, 30px);
}
.svc p {
  color: var(--ink-1);
  font-size: 14.5px;
  line-height: 1.55;
}
.svc .svc-foot {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px;
}
.svc .svc-tag {
  position: absolute;
  top: 20px; right: 20px;
  white-space: nowrap;
}
.svc.featured::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent 70%);
  border-radius: 2px 0 0 2px;
}

/* "Includes" sub-service list inside a service card */
.svc-incl {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.svc-incl li {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.svc-incl li::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ink-3);
  flex-shrink: 0;
}
.svc.featured .svc-incl li { color: var(--ink-1); }
.svc.featured .svc-incl li::before { background: var(--accent); opacity: 0.7; }
.svc-incl-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 10px;
}
.svc-incl-label::after { content: ""; flex: 1; height: 1px; background: var(--hair-soft); }

/* ============================================================
   The Difference
   ============================================================ */
.diff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 1024px) {
  .diff-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.diff {
  padding: 32px;
  display: flex; flex-direction: column; gap: 20px;
}
.diff .diff-num {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 11px; letter-spacing: 0.22em;
  color: var(--accent);
  font-feature-settings: "tnum";
}
.diff h3 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -0.01em;
  color: var(--ink-0);
  line-height: 1.2;
}
.diff p {
  color: var(--ink-1);
  font-size: 15px;
  line-height: 1.65;
}
.diff ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.diff ul li {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--ink-1);
  font-size: 13.5px;
}
.diff ul ul li::before {
  content: "";
  flex-shrink: 0;
  width: 14px; height: 1px;
  background: var(--ink-3);
  margin-top: 10px;
}

/* New diff card eyebrow — small mono red caps with thin 24px rule under */
.diff-eyebrow {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.diff-eyebrow::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

/* ============================================================
   How We Work (rail)
   ============================================================ */
.howwk {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--hair-soft);
}
@media (min-width: 768px) {
  .howwk { grid-template-columns: repeat(4, 1fr); }
}
.howwk-step {
  padding: 32px 0;
  border-bottom: 1px solid var(--hair-soft);
}
@media (min-width: 768px) {
  .howwk-step {
    padding: 40px 24px 40px 0;
    border-bottom: none;
    border-right: 1px solid var(--hair-soft);
  }
  .howwk-step:last-child { border-right: none; padding-right: 0; }
  .howwk-step:not(:first-child) { padding-left: 24px; }
}
.howwk-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.howwk-num::after {
  content: ""; flex: 1; height: 1px; background: var(--hair-soft);
}
.howwk h4 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.005em;
  color: var(--ink-0);
  margin-bottom: 8px;
}
.howwk p {
  color: var(--ink-1);
  font-size: 14px;
  line-height: 1.6;
}

/* ============================================================
   Proof / case study grid
   ============================================================ */
.proof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px)  { .proof-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .proof-grid { grid-template-columns: repeat(4, 1fr); } }

.proof-grid .proof-feature {
  grid-column: 1 / -1;
}
@media (min-width: 1024px) {
  .proof-grid .proof-feature {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.cs {
  display: flex; flex-direction: column;
  padding: 24px;
  min-height: 240px;
  gap: 14px;
  overflow: hidden;
}
@media (min-width: 768px) { .cs { padding: 28px; } }
.cs-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-2);
}
.cs-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--ink-0);
  letter-spacing: -0.005em;
  line-height: 1.25;
}
.cs-outcome {
  color: var(--ink-1);
  font-size: 14px;
  line-height: 1.55;
}
.cs-thumb {
  margin-top: auto;
  background: var(--bg-2);
  border: 1px solid var(--hair-soft);
  border-radius: 8px;
  height: 80px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3);
}

/* Stockman Atlas feature card — paper aesthetic */
.cs-sa {
  background: var(--sa-paper);
  color: var(--sa-ink);
  border-color: rgba(7, 9, 13, 0.12);
  padding: 32px;
  min-height: 380px;
  position: relative;
  overflow: hidden;
}
.cs-sa::before { box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.6); }
@media (min-width: 768px) { .cs-sa { padding: 40px; } }
.cs-sa .cs-tag {
  color: var(--sa-bone-dim);
  font-family: "IM Fell English SC", serif;
  letter-spacing: 0.32em;
  font-size: 11px;
}
.cs-sa-mark {
  font-family: "DM Serif Display", serif;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
  letter-spacing: 4px;
  color: var(--sa-ink);
}
.cs-sa-sub {
  margin-top: 8px;
  display: flex; align-items: center; gap: 12px;
}
.cs-sa-sub .dash {
  width: 32px; height: 2px; background: var(--sa-crimson);
}
.cs-sa-sub .atlas {
  font-family: "IM Fell English SC", serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 8px;
  color: var(--sa-crimson);
  text-transform: uppercase;
}
.cs-sa-tagline {
  margin-top: 14px;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--sa-bone-dim);
}
.cs-sa-body {
  margin-top: 28px;
  font-family: "Cormorant Garamond", serif;
  font-size: 17.5px;
  line-height: 1.55;
  color: #2a241a;
  max-width: 44ch;
}
.cs-sa-stats {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.cs-sa-stat {
  border-top: 1px solid rgba(7, 9, 13, 0.14);
  padding-top: 10px;
}
.cs-sa-stat .v {
  font-family: "DM Serif Display", serif;
  font-size: 22px;
  color: var(--sa-ink);
  line-height: 1;
}
.cs-sa-stat .k {
  font-family: "IM Fell English SC", serif;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--sa-bone-dim);
  margin-top: 4px;
}
.cs-sa-link {
  margin-top: 28px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "IM Fell English SC", serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sa-crimson);
  border-bottom: 1px solid var(--sa-crimson);
  padding-bottom: 2px;
}

/* paper grain */
.cs-sa-grain {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.18;
}

/* ============================================================
   Social proof / testimonials
   ============================================================ */
.tq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px)  { .tq-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (min-width: 1024px) { .tq-grid { grid-template-columns: repeat(3, 1fr); } }
.tq {
  padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
  min-height: 220px;
}
.tq .mark {
  font-family: "Space Grotesk", serif;
  font-size: 36px;
  font-weight: 500;
  color: var(--accent);
  line-height: 0.7;
}
.tq .body {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-0);
  letter-spacing: -0.005em;
}
.tq .who {
  margin-top: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-2);
}
.tq .placeholder-note {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ============================================================
   Founder note
   ============================================================ */
.founder {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 768px) {
  .founder {
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    gap: 48px;
  }
}
@media (min-width: 1024px) {
  .founder {
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 72px;
  }
}
.founder-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--rad-lg);
  background:
    repeating-linear-gradient(135deg, rgba(93,143,181,0.06) 0 10px, rgba(93,143,181,0.02) 10px 20px),
    linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--hair);
  overflow: hidden;
  max-width: 360px;
}
.founder-portrait .placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
}
.founder-portrait .placeholder .ph-mono {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-3);
}
.founder-portrait .placeholder .ph-name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--ink-1);
}
.founder-quote {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 400;
  font-size: clamp(20px, 2.3vw, 28px);
  line-height: 1.4;
  color: var(--ink-0);
  letter-spacing: -0.01em;
}
.founder-sig {
  margin-top: 28px;
  display: flex; align-items: center; gap: 16px;
}
.founder-sig .sig-name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink-0);
}
.founder-sig .sig-role {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-2);
}

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  position: relative;
  padding: 88px 0;
  border-top: 1px solid var(--hair-soft);
  border-bottom: 1px solid var(--hair-soft);
  background:
    radial-gradient(ellipse 70% 100% at 50% 100%, color-mix(in oklab, var(--accent) 18%, transparent), transparent 70%),
    var(--bg-1);
}
@media (min-width: 768px) { .cta-band { padding: 112px 0; } }
.cta-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 768px) {
  .cta-inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; }
}
.cta-band h2 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 56px);
  letter-spacing: -0.015em;
  line-height: 1.05;
  color: var(--ink-0);
}
.cta-band .cta-meta {
  display: grid; gap: 14px;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--bg-1);
  padding: 64px 0 32px;
  color: var(--ink-1);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 768px)  { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; } }
.foot-col h5 {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 18px;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-col ul a { color: var(--ink-1); font-size: 14.5px; }
.foot-col ul a:hover { color: var(--ink-0); }
.foot-tagline {
  font-family: "Space Grotesk", sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-0);
  line-height: 1.4;
  max-width: 32ch;
  margin-top: 14px;
}
.foot-meta {
  margin-top: 22px;
  display: grid; gap: 6px;
  font-size: 13.5px; color: var(--ink-1);
}
.foot-meta a:hover { color: var(--ink-0); }
.foot-bottom {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--hair-soft);
  display: flex; flex-wrap: wrap; gap: 18px;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3);
}
.foot-bottom a:hover { color: var(--ink-1); }

/* ============================================================
   Mobile sticky CTA bar
   ============================================================ */
.mob-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 30;
  display: flex; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(3, 8, 16, 0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--hair-soft);
}
.mob-bar .btn { flex: 1; height: 48px; min-height: 44px; font-size: 14px; }
@media (min-width: 768px) { .mob-bar { display: none; } }
body { padding-bottom: 80px; }
@media (min-width: 768px) { body { padding-bottom: 0; } }

/* ============================================================
   Reveal-on-scroll (CSS only; JS toggles .is-in)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Tweaks panel
   ============================================================ */
#aotech-tweaks {
  position: fixed;
  bottom: 92px;
  right: 20px;
  z-index: 90;
  width: 300px;
  max-height: calc(100vh - 120px);
  background: rgba(6, 13, 26, 0.96);
  border: 1px solid var(--hair);
  border-radius: 12px;
  color: var(--ink-1);
  font-family: "Inter", sans-serif;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
#aotech-tweaks.open { display: flex; }
@media (min-width: 768px) {
  #aotech-tweaks { bottom: 20px; }
}
.tw-head {
  display: flex; align-items: center;
  height: 44px; padding: 0 12px 0 16px;
  border-bottom: 1px solid var(--hair-soft);
}
.tw-title {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-1);
}
.tw-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}
.tw-close {
  margin-left: auto;
  width: 28px; height: 28px;
  border: 0; background: transparent;
  color: var(--ink-2);
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.tw-close:hover { color: var(--ink-0); background: var(--bg-3); }
.tw-body {
  padding: 14px 14px 16px;
  display: flex; flex-direction: column; gap: 16px;
  overflow-y: auto;
}
.tw-section { display: flex; flex-direction: column; gap: 8px; }
.tw-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-2);
}
.tw-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tw-pill {
  flex: 1;
  height: 32px; min-height: 32px;
  border: 1px solid var(--hair);
  background: transparent;
  color: var(--ink-1);
  font-size: 12px; font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.tw-pill:hover { background: var(--bg-3); color: var(--ink-0); }
.tw-pill.on {
  background: var(--ink-0);
  color: var(--bg-0);
  border-color: var(--ink-0);
}
.tw-swatches { display: flex; gap: 6px; }
.tw-swatches button {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  outline: 1px solid rgba(255,255,255,0.1);
  outline-offset: -1px;
}
.tw-swatches button.on {
  border-color: var(--ink-0);
  outline-color: transparent;
}
.tw-input {
  width: 100%;
  height: 32px;
  padding: 0 10px;
  background: var(--bg-0);
  border: 1px solid var(--hair);
  border-radius: 6px;
  color: var(--ink-0);
  font: inherit; font-size: 12px;
}
.tw-input:focus { outline: none; border-color: var(--ink-2); }
.tw-hint {
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.4;
}
.tw-hint em { color: var(--ink-2); }

/* Hide tweaks when user hasn't opened the panel */

/* ============================================================
   Hero intro overlay — Option A: "From Broken to Built."
   Lives over the entire viewport for ~3.5s on first visit.
   See assets/hero-intro.js for the choreography timeline.
   ============================================================ */
.hero-intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
  display: block;
  overflow: hidden;
  pointer-events: auto;
  transition: opacity .55s ease;
}
.hero-intro.is-fading { opacity: 0; pointer-events: none; }

.hero-intro svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-intro-skip {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid rgba(200, 223, 244, 0.18);
  border-radius: 6px;
  color: var(--ink-2);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease;
  opacity: 0;
  animation: hi-skip-fade-in 600ms 500ms ease forwards;
}
.hero-intro-skip:hover { color: var(--ink-0); border-color: var(--ink-2); }
@keyframes hi-skip-fade-in { to { opacity: 1; } }

/* Stage label in the corner — keeps cinematic feel grounded */
.hero-intro-tag {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 3;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: hi-skip-fade-in 600ms 300ms ease forwards;
}
.hero-intro-tag .blink {
  width: 6px; height: 6px; border-radius: 50%;
  background: #d42020;
  animation: hi-blink 1.1s steps(2) infinite;
}
@keyframes hi-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.2; }
}

/* ----- Nodes & edges in the intro SVG ----- */
.ix-edge {
  stroke: rgba(212, 32, 32, 0.45);
  stroke-width: 0.22;
  fill: none;
  transition: stroke-dashoffset 700ms cubic-bezier(.55,.1,.2,1),
              stroke .6s ease, stroke-width .6s ease;
}
.ix-edge.drawn { stroke-dashoffset: 0; }
.ix-edge.healed {
  stroke: rgba(74, 222, 128, 0.55);
}

.ix-node { opacity: 0; transition: transform 700ms cubic-bezier(.5,.05,.2,1); }
.stage-1 .ix-node { animation: hi-node-in 600ms ease-out forwards, hi-flicker 1.6s ease-in-out infinite; animation-delay: var(--flicker-delay, 0ms), calc(600ms + var(--flicker-delay, 0ms)); }
.stage-3 .ix-node { animation: hi-node-in 600ms ease-out forwards; animation-delay: var(--flicker-delay, 0ms); }

@keyframes hi-node-in {
  0%   { opacity: 0; }
  60%  { opacity: 0.55; }
  100% { opacity: 1; }
}
@keyframes hi-flicker {
  0%, 100% { opacity: 1; }
  43%      { opacity: 1; }
  46%      { opacity: 0.25; }
  48%      { opacity: 1; }
  72%      { opacity: 0.5; }
  75%      { opacity: 1; }
}
.stage-3 .ix-node, .stage-4 .ix-node { animation: hi-node-in 100ms ease forwards !important; opacity: 1; }

.ix-ring {
  fill: rgba(212, 32, 32, 0.10);
  stroke: rgba(212, 32, 32, 0.8);
  stroke-width: 0.22;
  transition: stroke .5s ease, fill .5s ease;
}
.ix-dot {
  fill: #d42020;
  transition: fill .5s ease;
}
.ix-pulse {
  fill: transparent;
  stroke: rgba(212, 32, 32, 0.6);
  stroke-width: 0.16;
  transform-origin: center;
  transform-box: fill-box;
  opacity: 0;
}
.stage-1 .ix-pulse { opacity: 1; animation: hi-pulse 2s ease-out infinite; }
@keyframes hi-pulse {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0; }
}

.ix-node--hub .ix-ring { stroke-width: 0.3; }
.ix-node--hub .ix-dot  { r: 1; }

/* Healed: wave sweeps outward */
.ix-node.healed .ix-ring {
  fill: rgba(74, 222, 128, 0.18);
  stroke: rgba(74, 222, 128, 0.85);
}
.ix-node.healed .ix-dot  { fill: #4ade80; }
.ix-node.healed .ix-pulse { animation: none; opacity: 0; }

/* While intro is running: hide the hero content (it'll fade in at stage 5) */
html.intro-running .hero > .wrap { opacity: 0; pointer-events: none; }
html.intro-running .hero-graph-wrap { visibility: hidden; }
html.intro-running body { overflow: hidden; }

/* Resolving stage: the overlay is fading; reveal the hero copy and steady-state graph */
html.intro-resolving .hero > .wrap { opacity: 1; transition: opacity .55s ease; pointer-events: auto; }
html.intro-resolving .hero-graph-wrap { visibility: visible; opacity: 0; animation: hi-graph-in .55s .15s ease forwards; }
@keyframes hi-graph-in { to { opacity: 1; } }

/* Sequential reveal of hero copy bits during resolving */
html.intro-resolving .hero .eyebrow,
html.intro-resolving .hero .headline,
html.intro-resolving .hero .sub,
html.intro-resolving .hero .hero-ctas,
html.intro-resolving .hero .hero-tel-row {
  opacity: 0;
  animation: hi-copy-in 520ms ease forwards;
}
html.intro-resolving .hero .eyebrow    { animation-delay:   0ms; }
html.intro-resolving .hero .headline   { animation-delay: 120ms; }
html.intro-resolving .hero .sub        { animation-delay: 280ms; }
html.intro-resolving .hero .hero-ctas  { animation-delay: 400ms; }
html.intro-resolving .hero .hero-tel-row { animation-delay: 520ms; }
@keyframes hi-copy-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-intro, .ix-edge, .ix-node, .ix-pulse { animation: none !important; transition: none !important; }
}

/* ============================================================
   Hero scene — "Standardize. Document. Done."
   Replaces the old #hero-graph. A real AOtech-standard environment:
   ghosted devices → VLAN bands → endpoint badges → doc cards → backup
   arcs → caption. Steady state: backup pulses + monitoring blinks +
   doc-card highlights cycle softly forever.
   ============================================================ */

.scene-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--hair);
  border-radius: 16px;
  background:
    radial-gradient(ellipse 80% 80% at 50% 50%, rgba(0, 67, 110, 0.12), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg-1));
  overflow: hidden;
  transition: transform .9s cubic-bezier(.45,.05,.1,1);
}
.scene-wrap::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(42, 77, 104, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42, 77, 104, 0.12) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: -1px -1px;
  opacity: 0.45;
  pointer-events: none;
}
.scene-wrap::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 1px 0 0 rgba(200, 223, 244, 0.06);
  border-radius: inherit;
  pointer-events: none;
}

.scene-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* VLAN palette — muted, single accent per band */
:root {
  --vlan-guest:    #4A7FB5;
  --vlan-business: #C8A65A;
  --vlan-servers:  #4A9F70;
  --vlan-payment:  #B5694A;
  --vlan-iot:      #8A7FB5;
}

/* ---------- Layer stage gating ----------
   Each .layer fades in transparent → opaque when its stage class lands
   on the scene root. Layers stack additively (once on, stay on),
   except .flat-net which fades out when stage 2 (VLAN segmentation) arrives. */
.layer {
  opacity: 0;
  transition: opacity .55s cubic-bezier(.45,.05,.1,1);
}
.layer.floor, .layer.devices, .layer.infra { opacity: 1; }
.scene.s1 .layer.flat-net { opacity: 1; }
.scene.s2 .layer.flat-net { opacity: 0; }
.scene.s2 .layer.vlans    { opacity: 1; }
.scene.s2 .layer.trunks   { opacity: 1; }
.scene.s3 .layer.badges   { opacity: 1; }
.scene.s4 .layer.docs     { opacity: 1; }
.scene.s5 .layer.backups  { opacity: 1; }
.scene.s6 .layer.caption  { opacity: 1; }

/* Devices: start ghosted (muted, low opacity), fully readable at stage 2 */
.scene .device, .scene .infra > g {
  opacity: 0.35;
  transition: opacity .55s ease;
}
.scene.s1 .device, .scene.s1 .infra > g { opacity: 0.55; }
.scene.s2 .device, .scene.s2 .infra > g { opacity: 1; }

/* ---------- Device shapes ---------- */
.dev-body {
  fill: var(--bg-3);
  stroke: rgba(200, 223, 244, 0.45);
  stroke-width: 1.2;
}
.dev-screen {
  fill: rgba(74, 127, 181, 0.18);
  stroke: rgba(200, 223, 244, 0.3);
  stroke-width: 0.8;
}
.dev-line {
  stroke: rgba(200, 223, 244, 0.4);
  stroke-width: 1;
}
.dev-led {
  fill: rgba(200, 223, 244, 0.55);
}
.dev-port {
  fill: var(--bg-2);
  stroke: rgba(200, 223, 244, 0.3);
  stroke-width: 0.6;
}
.wifi-wave {
  stroke: rgba(200, 223, 244, 0.4);
  stroke-width: 1.4;
  fill: none;
  stroke-linecap: round;
}

.dev-label, .band-label, .band-empty, .caption-text, .doc-label, .doc-sub, .flat-label {
  font-family: "JetBrains Mono", "Inter", monospace;
  fill: var(--ink-2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.dev-label { font-size: 10px; }
.band-label { font-size: 9px; fill: var(--ink-2); letter-spacing: 0.32em; }
.band-empty { font-size: 8px; fill: var(--ink-3); letter-spacing: 0.28em; }
.flat-label { font-size: 9px; fill: var(--ink-3); letter-spacing: 0.32em; }
.caption-text {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: none;
  fill: var(--ink-1);
}

/* ---------- Flat shared-network line (the "before" state) ---------- */
.flat-line {
  stroke: rgba(212, 32, 32, 0.55);
  stroke-width: 1.5;
  stroke-dasharray: 6 4;
  fill: none;
}

/* ---------- VLAN bands ---------- */
.band rect.band-fill {
  fill: transparent;
  transition: fill .6s ease;
}
.scene.s2 .band.guest    rect.band-fill { fill: rgba(74, 127, 181, 0.06); }
.scene.s2 .band.business rect.band-fill { fill: rgba(200, 166, 90, 0.06); }
.scene.s2 .band.servers  rect.band-fill { fill: rgba(74, 159, 112, 0.06); }
.scene.s2 .band.payment  rect.band-fill { fill: rgba(181, 105, 74, 0.05); }
.scene.s2 .band.iot      rect.band-fill { fill: rgba(138, 127, 181, 0.06); }

.band .band-hair {
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 2 3;
}
.band.guest    .band-hair { stroke: rgba(74, 127, 181, 0.7); }
.band.business .band-hair { stroke: rgba(200, 166, 90, 0.7); }
.band.servers  .band-hair { stroke: rgba(74, 159, 112, 0.7); }
.band.payment  .band-hair { stroke: rgba(181, 105, 74, 0.7); }
.band.iot      .band-hair { stroke: rgba(138, 127, 181, 0.7); }

.band.guest    .band-label { fill: var(--vlan-guest); }
.band.business .band-label { fill: var(--vlan-business); }
.band.servers  .band-label { fill: var(--vlan-servers); }
.band.payment  .band-label { fill: var(--vlan-payment); }
.band.iot      .band-label { fill: var(--vlan-iot); }

/* ---------- Trunk lines ---------- */
.trunk-line, .trunk-tap {
  stroke: rgba(200, 223, 244, 0.35);
  stroke-width: 1.2;
  fill: none;
}
.trunk-tap { stroke-dasharray: 2 4; }

/* ---------- Badges ---------- */
.badge {
  opacity: 0;
  transition: opacity .35s cubic-bezier(.5,0,.2,1), transform .35s cubic-bezier(.5,0,.2,1);
}
.scene.s3 .badge { opacity: 1; }
.badge-fill   { fill: var(--bg-3); stroke: var(--ink-2); stroke-width: 1; }
.badge-stroke { stroke: var(--ink-1); }
.badge-dot-fill { fill: #4ade80; }
.badge-dot-ring { fill: none; stroke: rgba(74, 222, 128, 0.6); stroke-width: 1; }

/* Monitoring dot blinks softly when ambient is on */
.scene.is-ambient .badge-dot-fill {
  animation: scene-blink 2.8s ease-in-out infinite;
}
.scene.is-ambient g[data-device="laptop-01"]  .badge-dot-fill { animation-delay: .0s; }
.scene.is-ambient g[data-device="laptop-02"]  .badge-dot-fill { animation-delay: .7s; }
.scene.is-ambient g[data-device="desktop-01"] .badge-dot-fill { animation-delay: 1.4s; }
.scene.is-ambient g[data-device="server-01"]  .badge-dot-fill { animation-delay: 2.1s; }
.scene.is-ambient g[data-device="server-02"]  .badge-dot-fill { animation-delay: 2.8s; }
@keyframes scene-blink {
  0%, 60%, 100% { opacity: 1; }
  70%           { opacity: 0.25; }
  80%           { opacity: 1; }
}

/* ---------- Documentation cards ---------- */
.doc-card {
  fill: var(--bg-4);
  stroke: rgba(200, 223, 244, 0.18);
  stroke-width: 0.8;
}
.doc-label {
  font-size: 8px;
  letter-spacing: 0.22em;
  fill: var(--ink-1);
}
.doc-sub {
  font-size: 7px;
  letter-spacing: 0.28em;
  fill: var(--ink-3);
}
.doc.is-active .doc-card {
  fill: var(--bg-4);
  stroke: rgba(255, 255, 255, 0.55);
  transition: stroke .35s ease;
}
.doc.is-active .doc-label { fill: #fff; transition: fill .35s ease; }

/* ---------- Backup arcs ---------- */
.backup-arc {
  fill: none;
  stroke: rgba(74, 222, 128, 0.45);
  stroke-width: 1.4;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  transition: stroke-dashoffset 800ms cubic-bezier(.5,0,.2,1);
}
.scene.s5 .backup-arc { stroke-dashoffset: 0; }

/* steady-state: backup pulses travel along each arc one by one */
.backup-pulse {
  fill: #4ade80;
  opacity: 0;
}
.scene.is-ambient .backup-pulse {
  animation: backup-pulse-cycle 8s linear infinite;
}
.scene.is-ambient .backup-pulse-1 { animation-delay: 0s; }
.scene.is-ambient .backup-pulse-2 { animation-delay: 1.6s; }
.scene.is-ambient .backup-pulse-3 { animation-delay: 3.2s; }
.scene.is-ambient .backup-pulse-4 { animation-delay: 4.8s; }
.scene.is-ambient .backup-pulse-5 { animation-delay: 6.4s; }
@keyframes backup-pulse-cycle {
  0%   { opacity: 0; offset-distance: 0%; }
  10%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { opacity: 0; offset-distance: 100%; }
}

/* ---------- Caption ---------- */
.layer.caption { transition: opacity .8s ease; }

/* ---------- Intro presentation ----------
   On first visit we dim everything but the scene so it reads as a splash.
   Header chrome fades; hero copy fades; bg darkens. The scene plays in
   place. After ~3.9s html.intro-running flips to .intro-done and the
   chrome fades back in around the now-ambient scene. */
html.intro-running body { background: #000; }
html.intro-running .site-header,
html.intro-running .mob-bar,
html.intro-running .sec,
html.intro-running .cta-band,
html.intro-running .site-footer,
html.intro-running .creds {
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s ease;
}
html.intro-running .hero > .wrap > .hero-grid > div:first-child { opacity: 0; }
html.intro-running .hero { padding-bottom: 0; padding-top: 0; min-height: 100vh; display: flex; align-items: center; }
html.intro-running .hero .scene-wrap { transform: scale(1.05); }
html.intro-resolving .hero .scene-wrap { transform: scale(1); }
html.intro-resolving .hero > .wrap > .hero-grid > div:first-child { opacity: 1; transition: opacity .6s .2s ease; }

/* Skip + status tag during intro */
#intro-chrome {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease;
}
html.intro-running #intro-chrome { opacity: 1; }
#intro-chrome .skip,
#intro-chrome .tag {
  position: absolute;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-2);
}
#intro-chrome .tag { top: 22px; left: 24px; }
#intro-chrome .tag .blink {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: hi-blink 1.1s steps(2) infinite;
}
#intro-chrome .skip {
  top: 22px; right: 24px;
  height: 36px; padding: 0 14px;
  background: transparent;
  border: 1px solid rgba(200, 223, 244, 0.18);
  border-radius: 6px;
  cursor: pointer;
}
#intro-chrome .skip:hover { color: var(--ink-0); border-color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  .scene-wrap, .layer, .badge, .backup-arc { transition: none !important; }
  .scene.is-ambient .badge-dot-fill,
  .scene.is-ambient .backup-pulse { animation: none !important; }
}

/* ============================================================
   New hero v2 — ambient mesh + kinetic headline + live signal
   No diagram. The typography is the hero. Mesh sits behind.
   ============================================================ */

/* The hero now wants to be tall + breathing */
.hero {
  position: relative;
  padding-top: 96px;
  padding-bottom: 112px;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
}
@media (min-width: 768px) {
  .hero { padding-top: 128px; padding-bottom: 160px; }
}
@media (min-width: 1280px) {
  .hero { padding-top: 144px; padding-bottom: 176px; }
}

/* Override the old 2-col grid so the right column is gone */
.hero .hero-grid {
  display: block;
  grid-template-columns: none;
  gap: 0;
  max-width: 1100px;
}
@media (min-width: 1024px) {
  .hero .hero-grid { grid-template-columns: none; }
}

/* Bigger headline now that it has the whole hero to itself */
.hero .headline-xl { font-size: clamp(44px, 9.5vw, 124px); }
.hero .sub { font-size: clamp(16px, 1.6vw, 21px); max-width: 56ch; }

/* Keep the .wrap above the mesh */
.hero > .wrap { position: relative; z-index: 2; }
.hero .bg-grid { z-index: 1; }

/* ----- Ambient mesh: 3 huge blurred radial blobs that drift slowly ----- */
.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  contain: layout style paint;
}
.mesh-blob.b1 {
  width: 65vw; max-width: 900px; aspect-ratio: 1;
  top: -18%; left: -12%;
  background: radial-gradient(circle, rgba(0, 67, 110, 0.55), transparent 70%);
  animation: drift-1 28s ease-in-out infinite alternate;
}
.mesh-blob.b2 {
  width: 55vw; max-width: 800px; aspect-ratio: 1;
  top: 12%; right: -18%;
  background: radial-gradient(circle, rgba(74, 127, 181, 0.42), transparent 70%);
  animation: drift-2 36s ease-in-out infinite alternate;
}
.mesh-blob.b3 {
  width: 40vw; max-width: 600px; aspect-ratio: 1;
  bottom: -22%; left: 28%;
  background: radial-gradient(circle, rgba(212, 32, 32, 0.16), transparent 70%);
  animation: drift-3 42s ease-in-out infinite alternate;
}
@keyframes drift-1 { to { transform: translate(8%, 6%) scale(1.1); } }
@keyframes drift-2 { to { transform: translate(-7%, -4%) scale(0.92); } }
@keyframes drift-3 { to { transform: translate(5%, -9%) scale(1.15); } }

/* ----- Headline kinetic wipe ----- */
.wipe-on {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  animation: wipe-reveal 800ms cubic-bezier(.5, 0, .15, 1) 600ms forwards;
  will-change: clip-path;
}
@keyframes wipe-reveal { to { clip-path: inset(0 0% 0 0); } }

/* Cursor that blinks once after the wipe completes, then fades */
.wipe-cursor {
  display: inline-block;
  width: 0.06em;
  height: 0.9em;
  margin-left: 0.04em;
  vertical-align: -0.05em;
  background: var(--accent);
  opacity: 0;
  animation: cursor-flash 1.6s ease-out 1400ms forwards;
}
@keyframes cursor-flash {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  35%  { opacity: 0; }
  55%  { opacity: 1; }
  80%  { opacity: 0; }
  100% { opacity: 0; }
}

/* ----- Live operator signal ----- */
.hero-live {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 56px;
  padding: 10px 16px;
  border: 1px solid var(--hair-soft);
  border-radius: 999px;
  background: rgba(6, 13, 26, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
  animation: live-breath 4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes live-breath {
  0%, 100% { opacity: 0.55; box-shadow: 0 0 6px rgba(74, 222, 128, 0.25); }
  50%      { opacity: 1;    box-shadow: 0 0 14px rgba(74, 222, 128, 0.65); }
}
.live-sep { color: var(--ink-3); opacity: 0.55; }
.live-time { color: var(--ink-0); font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .mesh-blob, .wipe-on, .wipe-cursor, .live-dot { animation: none !important; }
  .wipe-on { clip-path: none; }
  .wipe-cursor { opacity: 0; }
}

/* The scene moved out of the hero into "The Difference" — center + cap width */
.sec .scene-wrap {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
