/* =========================================================
   BLUESTONE — Operational / GSOC design system. Dark mode.
   ========================================================= */

:root {
  --bg: #050810;
  --bg-2: #080C18;
  --surface: #0B1220;
  --surface-2: #101A2C;
  --surface-3: #16243C;
  --border: #1B2942;
  --border-2: #243556;

  --navy: #0D2240;
  --blue: #2E78B7;
  --cyan: #4FB3E8;
  --cyan-dim: #2A8FCC;
  --cyan-bright: #6FC3F0;
  --pale: #A8D5F0;

  --text: #E8ECF1;
  --text-mute: #8A9AB5;
  --text-dim: #5A6B85;

  --warn: #FFB454;
  --danger: #FF6B6B;
  --ok: #4FB3E8;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Inter Tight", "Inter", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px; --s-11: 192px;

  --container: 1280px;
  --radius: 4px;
  --radius-lg: 8px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html { overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}
main { overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.1; font-weight: 600; }
p { margin: 0; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--cyan); color: var(--bg); }

/* Background grid + radial glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    linear-gradient(to right, rgba(46, 120, 183, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(46, 120, 183, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* ========== Scroll progress ========== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-bright));
  z-index: 200;
  width: 0%;
  box-shadow: 0 0 16px rgba(79,179,232,0.6);
  transition: width 0.05s linear;
}

/* ========== Custom cursor (desktop pointer only) ========== */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, input, textarea, select, label { cursor: none; }
  .cursor {
    position: fixed;
    pointer-events: none;
    z-index: 999;
    width: 28px; height: 28px;
    margin: -14px 0 0 -14px;
    border: 1px solid var(--cyan);
    border-radius: 50%;
    transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease), opacity 0.2s ease;
    mix-blend-mode: screen;
  }
  .cursor::before, .cursor::after {
    content: "";
    position: absolute;
    background: var(--cyan);
  }
  .cursor::before { top: 50%; left: -6px; right: -6px; height: 1px; transform: translateY(-50%); }
  .cursor::after { left: 50%; top: -6px; bottom: -6px; width: 1px; transform: translateX(-50%); }
  .cursor.dot {
    position: fixed;
    width: 4px; height: 4px;
    margin: -2px 0 0 -2px;
    background: var(--cyan);
    border-radius: 50%;
    border: 0;
    z-index: 1000;
    transition: transform 0.05s linear;
  }
  .cursor.dot::before, .cursor.dot::after { display: none; }
  .cursor.is-hover {
    transform: scale(1.6);
    border-color: var(--cyan-bright);
    background: rgba(79, 179, 232, 0.08);
  }
}

/* ========== Layout ========== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-5);
  position: relative;
  z-index: 2;
}
.section {
  padding: var(--s-10) 0;
  position: relative;
  z-index: 2;
}
.section-sm { padding: var(--s-9) 0; }
@media (max-width: 768px) {
  .section { padding: var(--s-8) 0; }
  .section-sm { padding: var(--s-7) 0; }
}

/* ========== Type ========== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--cyan);
  display: inline-block;
}

.display-1 { font-size: clamp(40px, 6vw, 88px); letter-spacing: -0.03em; font-weight: 600; }
.display-2 { font-size: clamp(32px, 4.5vw, 64px); letter-spacing: -0.025em; font-weight: 600; }
.display-3 { font-size: clamp(24px, 3vw, 40px); letter-spacing: -0.02em; font-weight: 600; }
.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--text-mute); max-width: 64ch; }
.text-mute { color: var(--text-mute); }
.text-dim { color: var(--text-dim); }
.text-cyan { color: var(--cyan); }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }

/* Word reveal for hero */
.reveal-words .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.3em);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-words.in .word { opacity: 1; transform: translateY(0); }

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 8, 16, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-4) 0;
  gap: var(--s-6);
}
.brand { display: flex; align-items: center; gap: var(--s-3); }
.brand__mark { width: 36px; height: 36px; object-fit: contain; flex: none; }
.brand__name { display: flex; flex-direction: column; line-height: 1; }
.brand__name b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
}
.brand__name span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-top: 3px;
  white-space: nowrap;
}

.nav { display: flex; gap: var(--s-5); align-items: center; flex-wrap: nowrap; }
.nav a { font-size: 14px; color: var(--text-mute); transition: color 0.2s var(--ease); position: relative; white-space: nowrap; }
.nav a:hover { color: var(--text); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: var(--s-4); }
.phone-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-mute);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.phone-link::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(79, 179, 232, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(79, 179, 232, 0.18); }
  50% { box-shadow: 0 0 0 7px rgba(79, 179, 232, 0.05); }
}

/* Hide phone link + status chip earlier — too crowded between 960-1200 */
@media (max-width: 1200px) {
  .phone-link, .phone-status { display: none !important; }
}
@media (max-width: 960px) {
  .nav { display: none; }
}
/* Tighter nav between 960-1200 */
@media (min-width: 961px) and (max-width: 1199px) {
  .nav { gap: var(--s-4); }
  .nav a { font-size: 13px; }
  .site-header__inner { gap: var(--s-4); }
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  transition: all 0.2s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
  position: relative;
  will-change: transform;
}
.btn--primary {
  background: var(--cyan);
  color: var(--bg);
  font-weight: 600;
}
.btn--primary:hover {
  background: var(--cyan-bright);
  box-shadow: 0 8px 24px -8px rgba(79, 179, 232, 0.6);
}
.btn--ghost {
  border-color: var(--border-2);
  color: var(--text);
  background: rgba(11,18,32,0.4);
}
.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.btn--lg { padding: 16px 28px; font-size: 15px; }
.btn .arrow { display: inline-block; transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn--magnetic { transition: transform 0.25s var(--ease-out), background 0.2s, box-shadow 0.2s; }

/* ========== Hero ========== */
.hero {
  position: relative;
  padding: var(--s-10) 0 var(--s-9);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 75% 30%, rgba(46, 120, 183, 0.14), transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(79, 179, 232, 0.06), transparent 70%);
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s-8);
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero h1 { margin-top: var(--s-5); }
.hero h1 .accent {
  color: var(--cyan);
  font-style: normal;
  position: relative;
  background-image: linear-gradient(90deg, var(--cyan), transparent);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 2px;
  padding-bottom: 4px;
}
.hero p.lead { margin-top: var(--s-5); }
.hero__cta {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-7);
  flex-wrap: wrap;
}
.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin-left: auto;
}

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
}

/* Status bar */
.status-bar {
  margin-top: var(--s-9);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
}
.status-bar__item { display: flex; flex-direction: column; gap: var(--s-2); }
.status-bar__item .mono { color: var(--text-dim); }
.status-bar__item strong {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(79, 179, 232, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@media (max-width: 768px) {
  .status-bar { grid-template-columns: repeat(2, 1fr); }
}

/* ========== Radar ========== */
.radar { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.radar svg { width: 100%; height: 100%; }
.radar__sweep { transform-origin: 50% 50%; animation: sweep 6s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }

/* ========== GSOC console feed ========== */
.console {
  margin-top: var(--s-9);
  background: linear-gradient(180deg, rgba(11,18,32,0.6), rgba(8,12,24,0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-4) var(--s-5);
  font-family: var(--font-mono);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: var(--s-5);
  position: relative;
  overflow: hidden;
}
.console::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(79,179,232,0.04), transparent);
  animation: scan 8s linear infinite;
}
@keyframes scan { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.console__label {
  color: var(--cyan);
  font-weight: 500;
  letter-spacing: 0.18em;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex: none;
}
.console__feed {
  flex: 1;
  height: 18px;
  overflow: hidden;
  position: relative;
}
.console__line {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--text-mute);
  letter-spacing: 0.06em;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s;
}
.console__line.in { opacity: 1; transform: translateY(0); }
.console__line.out { opacity: 0; transform: translateY(-8px); }
.console__line .ts { color: var(--text-dim); }
.console__line .tag {
  color: var(--cyan);
  border: 1px solid var(--border-2);
  padding: 1px 6px;
  border-radius: 2px;
  font-size: 10px;
  letter-spacing: 0.14em;
}
.console__line .tag--ok { color: #6FE3B5; border-color: rgba(111,227,181,0.25); }
.console__line .tag--watch { color: var(--warn); border-color: rgba(255,180,84,0.25); }
@media (max-width: 640px) {
  .console { flex-direction: column; align-items: flex-start; gap: var(--s-2); }
  .console__feed { width: 100%; }
}

/* ========== Pillars (tilt) ========== */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-7);
}
.pillar {
  padding: var(--s-7) var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  min-height: 360px;
  transition: transform 0.3s var(--ease-out), border-color 0.3s, background 0.3s;
  transform-style: preserve-3d;
  will-change: transform;
}
.pillar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(79,179,232,0.12), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.pillar:hover::before { opacity: 1; }
.pillar:hover {
  border-color: var(--cyan-dim);
  background: var(--surface-2);
}
.pillar__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.14em;
  transition: color 0.3s;
}
.pillar:hover .pillar__num { color: var(--cyan); }
.pillar h3 { font-size: 22px; letter-spacing: -0.01em; font-weight: 600; }
.pillar p { font-size: 14px; color: var(--text-mute); line-height: 1.6; flex: 1; }
.pillar__sub {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pillar__sub li {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-transform: uppercase;
}
@media (max-width: 960px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }

/* ========== Section header ========== */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: end;
  margin-bottom: var(--s-7);
}
.section-head h2 { font-size: clamp(28px, 3.5vw, 48px); }
.section-head__intro p { color: var(--text-mute); }
@media (max-width: 768px) { .section-head { grid-template-columns: 1fr; } }

/* ========== Approach ========== */
.approach {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.approach__step {
  padding: var(--s-7) var(--s-5);
  border-right: 1px solid var(--border);
  position: relative;
  transition: background 0.3s;
}
.approach__step:hover { background: rgba(79,179,232,0.03); }
.approach__step:last-child { border-right: 0; }
.approach__step .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.18em;
  margin-bottom: var(--s-4);
  display: block;
}
.approach__step h4 { font-size: 20px; margin-bottom: var(--s-3); }
.approach__step p { font-size: 14px; color: var(--text-mute); line-height: 1.6; }
@media (max-width: 960px) {
  .approach { grid-template-columns: repeat(2, 1fr); }
  .approach__step:nth-child(2n) { border-right: 0; }
  .approach__step:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 560px) {
  .approach { grid-template-columns: 1fr; }
  .approach__step { border-right: 0; border-bottom: 1px solid var(--border); }
  .approach__step:last-child { border-bottom: 0; }
}

/* ========== Live Watch panel ========== */
.watch {
  background:
    linear-gradient(180deg, var(--surface), var(--bg-2)),
    radial-gradient(circle at 20% 0%, rgba(79,179,232,0.08), transparent 50%);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.watch__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
}
.watch__title {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.watch__legend {
  display: flex;
  gap: var(--s-4);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.watch__legend span { display: inline-flex; align-items: center; gap: 6px; }
.watch__legend i {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block;
}
.legend-ok { background: #6FE3B5; box-shadow: 0 0 6px rgba(111,227,181,0.6); }
.legend-watch { background: var(--warn); box-shadow: 0 0 6px rgba(255,180,84,0.6); }
.legend-active { background: var(--cyan); box-shadow: 0 0 6px rgba(79,179,232,0.6); }

.watch__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.watch__item {
  padding: var(--s-5);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  position: relative;
  min-height: 200px;
}
.watch__item:last-child { border-right: 0; }
.watch__item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
}
.watch__item-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.14em;
}
.watch__item-status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.watch__item-status::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: pulse 2s infinite;
}
.status-active { color: var(--cyan); }
.status-ok { color: #6FE3B5; }
.status-watch { color: var(--warn); }

.watch__item h5 { font-size: 16px; font-weight: 600; }
.watch__item p { font-size: 12px; color: var(--text-mute); line-height: 1.55; flex: 1; }
.watch__item-meta {
  display: flex;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  border-top: 1px solid var(--border);
  padding-top: var(--s-3);
}
@media (max-width: 1024px) {
  .watch__grid { grid-template-columns: repeat(2, 1fr); }
  .watch__item:nth-child(2n) { border-right: 0; }
  .watch__item:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 560px) {
  .watch__grid { grid-template-columns: 1fr; }
  .watch__item { border-right: 0; border-bottom: 1px solid var(--border); }
  .watch__item:last-child { border-bottom: 0; }
}

/* ========== Industries ========== */
.industries {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-6);
}
.industry-card {
  padding: var(--s-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
  min-height: 220px;
}
.industry-card:hover {
  border-color: var(--cyan-dim);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.industry-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.industry-card:hover::before { opacity: 1; }
.industry-card .icon { width: 28px; height: 28px; color: var(--cyan); }
.industry-card h4 { font-size: 18px; }
.industry-card p { font-size: 13px; color: var(--text-mute); line-height: 1.5; flex: 1; }
.industry-card .more {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
@media (max-width: 1024px) { .industries { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .industries { grid-template-columns: repeat(2, 1fr); } }

/* ========== Pedigree ========== */
.pedigree {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-8);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--s-8);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.pedigree::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(46, 120, 183, 0.12), transparent 60%);
  pointer-events: none;
}
.pedigree h2 { font-size: clamp(28px, 3vw, 40px); }
.pedigree p { color: var(--text-mute); margin-top: var(--s-4); }
.agencies {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-2);
  position: relative;
  z-index: 2;
}
.agency {
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--border-2);
  background: var(--bg-2);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s, background 0.2s;
}
.agency:hover { border-color: var(--cyan-dim); background: var(--surface-2); }
.agency b {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}
.agency span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--cyan);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
@media (max-width: 960px) {
  .pedigree { grid-template-columns: 1fr; padding: var(--s-6); }
}

/* ========== Counters / Standards ========== */
.counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  margin-bottom: var(--s-7);
}
.counter {
  padding: var(--s-7) var(--s-5);
  border-right: 1px solid var(--border);
  text-align: left;
}
.counter:last-child { border-right: 0; }
.counter__num {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.counter__suffix { color: var(--text); font-size: 0.5em; margin-left: 2px; }
.counter__label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: var(--s-3);
}
@media (max-width: 800px) {
  .counters { grid-template-columns: repeat(2, 1fr); }
  .counter:nth-child(2n) { border-right: 0; }
  .counter:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 480px) {
  .counters { grid-template-columns: 1fr; }
  .counter { border-right: 0; border-bottom: 1px solid var(--border); }
  .counter:last-child { border-bottom: 0; }
}

.standards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}
.standard {
  padding: var(--s-6);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  transition: background 0.3s;
}
.standard:hover { background: var(--surface); }
.standard:nth-child(3n) { border-right: 0; }
.standard:nth-last-child(-n+3) { border-bottom: 0; }
.standard .mono { color: var(--cyan); }
.standard h5 { font-size: 17px; margin-top: var(--s-2); font-weight: 600; }
.standard p { font-size: 13px; color: var(--text-mute); line-height: 1.55; }
@media (max-width: 800px) {
  .standards { grid-template-columns: repeat(2, 1fr); }
  .standard { border-right: 1px solid var(--border) !important; }
  .standard:nth-child(2n) { border-right: 0 !important; }
  .standard:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .standard:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 520px) {
  .standards { grid-template-columns: 1fr; }
  .standard { border-right: 0 !important; border-bottom: 1px solid var(--border) !important; }
  .standard:last-child { border-bottom: 0 !important; }
}

/* ========== Inline RFP / consultation form ========== */
.intake {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--s-8);
  align-items: start;
  background:
    linear-gradient(135deg, rgba(13, 34, 64, 0.95), rgba(11, 18, 32, 0.98)),
    radial-gradient(circle at 80% 30%, rgba(79, 179, 232, 0.18), transparent 50%);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: var(--s-9) var(--s-8);
  position: relative;
  overflow: hidden;
}
.intake::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}
.intake__copy h2 { font-size: clamp(28px, 3.4vw, 44px); }
.intake__copy p { color: var(--text-mute); margin-top: var(--s-4); max-width: 42ch; }
.intake__copy .channels {
  margin-top: var(--s-7);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.intake__copy .channel {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-mute);
}
.intake__copy .channel b { color: var(--cyan); font-weight: 500; flex: none; min-width: 56px; }

.intake__form {
  display: grid;
  gap: var(--s-4);
  background: rgba(5,8,16,0.45);
  padding: var(--s-6);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.intake__form .row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--cyan);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.field input, .field select, .field textarea {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--cyan);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(79,179,232,0.12);
}
.field textarea { resize: vertical; min-height: 96px; }
.intake__form .submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  margin-top: var(--s-3);
}
.intake__form .privacy {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.intake__form .privacy::before {
  content: "";
  width: 6px; height: 6px; background: var(--cyan); border-radius: 50%;
  box-shadow: 0 0 6px var(--cyan);
}
@media (max-width: 900px) {
  .intake { grid-template-columns: 1fr; padding: var(--s-7) var(--s-5); }
  .intake__form .row { grid-template-columns: 1fr; }
}

/* ========== Footer ========== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--s-9) 0 var(--s-6);
  position: relative;
  z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--s-7);
  margin-bottom: var(--s-7);
}
.footer-brand p {
  font-size: 13px;
  color: var(--text-mute);
  max-width: 36ch;
  margin-top: var(--s-4);
}
.footer-col h6 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: var(--s-4);
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.footer-col a { font-size: 14px; color: var(--text-mute); }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--s-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-5);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}
.footer-bottom .meta {
  display: flex;
  gap: var(--s-5);
  flex-wrap: wrap;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ========== Reveal ========== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* =========================================================
   MOBILE MENU
   ========================================================= */
.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: rgba(11,18,32,0.5);
  color: var(--text);
  position: relative;
  flex: none;
}
.menu-btn span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s var(--ease), opacity 0.2s, top 0.3s var(--ease);
}
.menu-btn span:nth-child(1) { top: 14px; }
.menu-btn span:nth-child(2) { top: 21px; }
.menu-btn span:nth-child(3) { top: 28px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.menu-panel {
  position: fixed;
  inset: 56px 0 0 0;
  background: rgba(5, 8, 16, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 90;
  padding: var(--s-7) var(--s-5) var(--s-9);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
  overflow-y: auto;
}
.menu-panel.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.menu-panel a {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.menu-panel a::after {
  content: "→";
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 18px;
  opacity: 0.6;
}
.menu-panel .panel-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding-top: var(--s-6);
}
.menu-panel .panel-foot a {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-bottom: 0;
  padding: var(--s-3) 0;
}
.menu-panel .panel-foot a::after { content: ""; }
.menu-panel .panel-foot .btn { justify-content: center; }

@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
}

/* =========================================================
   MOBILE OPTIMIZATIONS
   - iOS zoom prevention on inputs (16px+)
   - 44px min tap targets
   - Tighter spacing, full-width CTAs, smaller hero on phones
   ========================================================= */
@media (max-width: 960px) {
  /* Header tighter */
  .site-header__inner { padding: var(--s-3) 0; }
  .brand__mark { width: 32px; height: 32px; }
  .brand__name b { font-size: 14px; }
  .brand__name span { font-size: 9px; }

  /* Header CTA: hide button text on smallest, keep arrow only — actually keep "Talk" short */
  .header-actions .btn--primary { padding: 10px 16px; font-size: 13px; }

  /* Hero: keep a smaller radar visible at tablet, hide on small phone */
  .hero { padding: var(--s-9) 0 var(--s-7); }
  .hero__inner { gap: var(--s-7); }
  .hero__visual { display: block; max-width: 360px; aspect-ratio: 1/1; margin: 0 auto; }
}

@media (max-width: 768px) {
  .hero { padding: var(--s-8) 0 var(--s-6); }
  .hero__visual { display: none; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .status-bar { margin-top: var(--s-7); }

  /* Section padding tighter */
  .section { padding: var(--s-7) 0; }
  .section-sm { padding: var(--s-6) 0; }

  /* Section heads: gap tighter */
  .section-head { gap: var(--s-4); margin-bottom: var(--s-5); }

  /* Pillars: tighter padding */
  .pillar { padding: var(--s-6) var(--s-5); min-height: auto; }

  /* Watch */
  .watch__header { flex-direction: column; align-items: flex-start; gap: var(--s-3); padding: var(--s-3) var(--s-4); }
  .watch__legend { flex-wrap: wrap; gap: var(--s-3); }
  .watch__item { padding: var(--s-4); min-height: auto; }

  /* Industries */
  .industry-card { padding: var(--s-5); min-height: auto; }

  /* Pedigree */
  .pedigree { padding: var(--s-5); }
  .agencies { grid-template-columns: 1fr; }

  /* Counters */
  .counter { padding: var(--s-5); }
  .counter__num { font-size: clamp(36px, 12vw, 56px); }

  /* Standards */
  .standard { padding: var(--s-5); }

  /* Intake */
  .intake { padding: var(--s-6) var(--s-4); gap: var(--s-6); }
  .intake__form { padding: var(--s-4); gap: var(--s-3); }
  .intake__form .submit { flex-direction: column; align-items: stretch; gap: var(--s-3); }
  .intake__form .submit .btn { width: 100%; justify-content: center; }
  .intake__copy .channels { margin-top: var(--s-5); }

  /* Footer */
  .site-footer { padding: var(--s-7) 0 var(--s-5); }
  .footer-grid { gap: var(--s-5); margin-bottom: var(--s-5); }
  .footer-bottom { gap: var(--s-3); }
  .footer-bottom .meta { gap: var(--s-3); }

  /* Console feed: keep readable */
  .console { padding: var(--s-3) var(--s-4); }
  .console__label { font-size: 10px; }

  /* Pillar grid heading sizes */
  .pillar h3 { font-size: 20px; }
  .approach__step { padding: var(--s-5) var(--s-4); }
}

/* iOS zoom prevention + touch targets */
@media (max-width: 960px) {
  input, select, textarea {
    font-size: 16px !important;
  }
  .field input, .field select, .field textarea {
    font-size: 16px;
    padding: 13px 14px;
    min-height: 48px;
  }
  .field textarea { min-height: 110px; }
  .btn { min-height: 44px; padding: 12px 20px; }
  .btn--lg { min-height: 52px; padding: 14px 24px; }
  .nav a, .footer-col a, .menu-panel a { min-height: 44px; display: inline-flex; align-items: center; }

  /* Disable magnetic transforms on touch */
  .btn--magnetic { transform: none !important; }

  /* Smooth scroll less aggressive on mobile (avoids stutter with anchors) */
  html { scroll-behavior: auto; }

  /* Body grid less prominent on mobile */
  body::before { background-size: 48px 48px; }
}

/* Very small screens (≤380px) */
@media (max-width: 380px) {
  .display-1 { font-size: 36px; }
  .display-2 { font-size: 28px; }
  .display-3 { font-size: 22px; }
  .container { padding: 0 var(--s-4); }
  .status-bar { grid-template-columns: 1fr; }
  .hero h1 { margin-top: var(--s-4); }
  .hero p.lead { margin-top: var(--s-4); font-size: 16px; }
  .header-actions .btn--primary .arrow { display: none; }
  .pillar { min-height: auto; padding: var(--s-5) var(--s-4); }
  .approach__step { padding: var(--s-5) var(--s-4); }
}

/* Landscape phones — keep nav usable */
@media (max-width: 960px) and (orientation: landscape) {
  .menu-panel { padding-top: var(--s-5); padding-bottom: var(--s-7); }
  .menu-panel a { font-size: 22px; padding: var(--s-2) 0; }
}

/* =========================================================
   OPERATING-TEMPO STRIP (under header)
   ========================================================= */
.tempo {
  background: linear-gradient(90deg, rgba(13,34,64,0.5), rgba(11,18,32,0.85));
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-mute);
  position: relative;
  overflow: hidden;
}
.tempo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(79,179,232,0.06) 50%, transparent 100%);
  animation: scan 12s linear infinite;
  pointer-events: none;
}
.tempo__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  padding: 9px 0;
  text-transform: uppercase;
  flex-wrap: wrap;
}
.tempo__group { display: flex; gap: var(--s-5); flex-wrap: wrap; }
.tempo__item { display: inline-flex; align-items: center; gap: 6px; }
.tempo__item b { color: var(--cyan); font-weight: 500; }
.tempo__item .tempo-val { color: var(--text); font-weight: 500; }
.tempo__indicator {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500;
}
.tempo__indicator i {
  width: 8px; height: 8px; border-radius: 50%;
  background: #6FE3B5;
  box-shadow: 0 0 8px #6FE3B5;
  animation: pulse 2s infinite;
}
.tempo__indicator.elevated i { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.tempo__indicator span { color: #6FE3B5; }
.tempo__indicator.elevated span { color: var(--warn); }
@media (max-width: 768px) {
  .tempo { font-size: 10px; }
  .tempo__inner { gap: var(--s-3); padding: 7px 0; }
  .tempo__group { gap: var(--s-3); }
}

/* =========================================================
   PRESS TICKER
   ========================================================= */
.press {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--s-5) 0;
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
}
.press__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: var(--s-3);
  text-align: center;
}
.press__rail {
  display: flex;
  width: max-content;
  gap: var(--s-8);
  animation: marquee 50s linear infinite;
}
.press__item {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-dim);
  white-space: nowrap;
  padding: 0 var(--s-4);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  transition: color 0.3s;
}
.press__item:last-child { border-right: 0; }
.press__item:hover { color: var(--text); }
.press__item .placeholder-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--cyan);
  letter-spacing: 0.14em;
  border: 1px solid var(--border-2);
  padding: 2px 6px;
  border-radius: 2px;
  font-weight: 400;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================================
   COVERAGE MAP
   ========================================================= */
.coverage {
  background:
    linear-gradient(180deg, var(--surface), var(--bg-2)),
    radial-gradient(circle at 50% 50%, rgba(46, 120, 183, 0.12), transparent 60%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s-7);
  position: relative;
  overflow: hidden;
}
.coverage__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s-5);
  flex-wrap: wrap;
  gap: var(--s-3);
}
.coverage__title {
  display: flex; align-items: center; gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.coverage__stats { display: flex; gap: var(--s-5); font-family: var(--font-mono); font-size: 11px; }
.coverage__stats span b {
  color: var(--cyan); font-weight: 500;
  display: block;
  font-size: 18px;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}
.coverage__stats span {
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.coverage__map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.coverage__map svg { width: 100%; height: 100%; display: block; }
.coverage__legend {
  display: flex;
  gap: var(--s-5);
  margin-top: var(--s-4);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  flex-wrap: wrap;
}
.coverage__legend span { display: inline-flex; align-items: center; gap: 6px; }
.coverage__legend i { width: 8px; height: 8px; border-radius: 50%; }

/* =========================================================
   CASE STUDIES
   ========================================================= */
.cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-6);
}
.case {
  position: relative;
  perspective: 1200px;
  height: 280px;
}
.case__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s var(--ease-out);
  transform-style: preserve-3d;
}
.case:hover .case__inner,
.case:focus-within .case__inner { transform: rotateY(180deg); }
.case__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  overflow: hidden;
}
.case__face::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}
.case__back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, rgba(13,34,64,0.95), rgba(11,18,32,0.98));
  border-color: var(--cyan-dim);
}
.case__sector {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-transform: uppercase;
}
.case__class {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.case__title { font-size: 22px; font-weight: 600; line-height: 1.2; }
.case__redacted {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.case__redacted::before {
  content: "";
  width: 90px; height: 12px;
  background: repeating-linear-gradient(45deg, var(--text-dim) 0 4px, transparent 4px 8px);
  opacity: 0.4;
  border-radius: 2px;
}
.case__face .flip-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--cyan);
  margin-top: auto;
  text-transform: uppercase;
}
.case__face .flip-hint::after { content: " →"; }
.case__metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-2);
}
.case__metric { display: flex; flex-direction: column; gap: 2px; }
.case__metric b {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--cyan);
  letter-spacing: -0.02em;
  line-height: 1;
}
.case__metric span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.case__outcome {
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.5;
  margin-top: auto;
}
@media (max-width: 768px) {
  .cases { grid-template-columns: 1fr; }
  .case { height: 260px; }
  .case__face { padding: var(--s-5); }
  .case__title { font-size: 19px; }
}

/* =========================================================
   THREAT ASSESSMENT MODAL
   ========================================================= */
.assess-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-5) var(--s-6);
  background: linear-gradient(135deg, rgba(13,34,64,0.7), rgba(11,18,32,0.95));
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  text-align: left;
  width: 100%;
  max-width: 540px;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease-out);
}
.assess-cta:hover { border-color: var(--cyan); transform: translateY(-2px); background: linear-gradient(135deg, rgba(13,34,64,0.9), rgba(16,26,44,0.98)); }
.assess-cta__icon {
  width: 44px; height: 44px;
  background: var(--cyan); color: var(--bg);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  flex: none;
}
.assess-cta__copy { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.assess-cta__copy b { font-size: 16px; font-weight: 600; }
.assess-cta__copy span { font-size: 13px; color: var(--text-mute); }
.assess-cta__arrow { color: var(--cyan); font-family: var(--font-mono); font-size: 16px; }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(5,8,16,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal__panel {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  width: min(640px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.4s var(--ease-out);
}
.modal.open .modal__panel { transform: translateY(0); }
.modal__head {
  padding: var(--s-5) var(--s-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 2;
}
.modal__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.modal__close {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 18px;
  transition: border-color 0.2s, background 0.2s;
}
.modal__close:hover { border-color: var(--cyan); background: rgba(79,179,232,0.08); }
.modal__body { padding: var(--s-6); }
.modal__progress {
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  position: relative;
  margin-bottom: var(--s-5);
}
.modal__progress::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-bright));
  border-radius: 1px;
  width: var(--p, 0%);
  transition: width 0.4s var(--ease-out);
  box-shadow: 0 0 12px rgba(79,179,232,0.6);
}
.q-step { display: none; }
.q-step.is-active { display: block; }
.q-step h3 { font-size: 22px; font-weight: 600; line-height: 1.25; margin-bottom: var(--s-2); }
.q-step p { color: var(--text-mute); font-size: 14px; margin-bottom: var(--s-5); }
.q-options { display: flex; flex-direction: column; gap: var(--s-2); }
.q-option {
  width: 100%;
  text-align: left;
  padding: var(--s-4);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}
.q-option:hover { border-color: var(--cyan-dim); background: var(--surface-2); }
.q-option.is-selected { border-color: var(--cyan); background: rgba(79,179,232,0.06); }
.q-option__radio {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  flex: none;
  position: relative;
  transition: border-color 0.2s;
}
.q-option.is-selected .q-option__radio { border-color: var(--cyan); }
.q-option.is-selected .q-option__radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--cyan);
  border-radius: 50%;
}
.q-actions {
  display: flex;
  justify-content: space-between;
  margin-top: var(--s-6);
  gap: var(--s-3);
}
.q-actions .spacer { flex: 1; }
.q-result { display: none; }
.q-result.is-active { display: block; }
.q-result__score {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  margin-bottom: var(--s-5);
  padding: var(--s-5);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.q-result__num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--cyan);
  line-height: 1;
}
.q-result__label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.q-result__band {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 4px;
}
.band-low { color: #6FE3B5; }
.band-med { color: var(--warn); }
.band-high { color: #FF6B6B; }
.q-result__recs {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-5) 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.q-result__recs li {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
}
.q-result__recs li::before {
  content: "→";
  color: var(--cyan);
  font-family: var(--font-mono);
  flex: none;
}
.q-capture .field { margin-bottom: var(--s-3); }

/* =========================================================
   TIMEZONE STRIP (footer)
   ========================================================= */
.timezones {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: var(--s-6);
  overflow: hidden;
}
.tz {
  padding: var(--s-4) var(--s-5);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tz:last-child { border-right: 0; }
.tz__city {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--cyan);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.tz__time {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.tz__zone {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
@media (max-width: 800px) {
  .timezones { grid-template-columns: repeat(2, 1fr); }
  .tz:nth-child(2n) { border-right: 0; }
  .tz:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}

/* =========================================================
   LICENSE BADGE
   ========================================================= */
.license-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  transition: border-color 0.2s, background 0.2s;
  margin-top: var(--s-3);
}
.license-badge:hover { border-color: var(--cyan-dim); background: var(--surface-2); color: var(--text); }
.license-badge .seal {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  display: flex; align-items: center; justify-content: center;
  color: var(--bg);
  font-size: 14px;
  flex: none;
}
.license-badge b { color: var(--text); font-weight: 500; letter-spacing: 0.06em; }
.license-badge .verify { color: var(--cyan); margin-left: var(--s-2); }

/* =========================================================
   PRIVACY-FIRST CONTACT OPTIONS
   ========================================================= */
.privacy-channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-2);
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
}
.privacy-channel {
  padding: var(--s-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s, background 0.2s;
  text-align: left;
  min-height: 84px;
}
.privacy-channel:hover { border-color: var(--cyan-dim); background: var(--surface-2); }
.privacy-channel .label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  text-transform: uppercase;
}
.privacy-channel b { font-size: 13px; font-weight: 500; }
.privacy-channel p { font-size: 11px; color: var(--text-mute); line-height: 1.5; }
@media (max-width: 768px) {
  .privacy-channels { grid-template-columns: 1fr; }
  .privacy-channel { min-height: auto; }
}

/* =========================================================
   NEWSLETTER SIGNUP
   ========================================================= */
.newsletter {
  background:
    linear-gradient(135deg, rgba(13,34,64,0.5), rgba(11,18,32,0.85));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  align-items: center;
  margin-top: var(--s-6);
}
.newsletter h4 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.newsletter p {
  font-size: 13px;
  color: var(--text-mute);
  margin-top: var(--s-2);
}
.newsletter form {
  display: flex;
  gap: var(--s-2);
}
.newsletter input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.newsletter input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(79,179,232,0.12); }
.newsletter button {
  background: var(--cyan);
  color: var(--bg);
  font-weight: 600;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .newsletter { grid-template-columns: 1fr; padding: var(--s-5); }
}

/* =========================================================
   CURSOR SPOTLIGHT (desktop only)
   ========================================================= */
@media (hover: hover) and (pointer: fine) {
  .spotlight {
    position: fixed;
    pointer-events: none;
    z-index: 1;
    width: 600px; height: 600px;
    margin: -300px 0 0 -300px;
    background: radial-gradient(circle at center, rgba(79,179,232,0.08), transparent 60%);
    transition: transform 0.15s linear;
    will-change: transform;
  }
}

/* =========================================================
   404
   ========================================================= */
.opsec {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--s-9) var(--s-5);
  gap: var(--s-5);
}
.opsec__code {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--cyan);
}
.opsec h1 {
  font-size: clamp(40px, 6vw, 80px);
  letter-spacing: -0.03em;
}
.opsec p { color: var(--text-mute); max-width: 50ch; }
.opsec__redirect {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.opsec__redirect b { color: var(--cyan); font-weight: 500; }

/* =========================================================
   DECRYPTION TEXT REVEAL
   ========================================================= */
.decrypt { display: inline-block; }
.decrypt[data-decrypting] { font-feature-settings: "tnum"; }
.decrypt[data-decrypting] .ch {
  display: inline-block;
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}
.decrypt[data-decrypting] .ch.is-locked {
  font-family: inherit;
  letter-spacing: -0.025em;
}

/* =========================================================
   CASE FILE REDACTION REVEAL
   ========================================================= */
.case__redacted-x {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.case__redacted-x .red-bar {
  position: relative;
  width: 120px;
  height: 14px;
  border-radius: 2px;
  overflow: hidden;
  cursor: crosshair;
  background: repeating-linear-gradient(45deg, var(--text-dim) 0 4px, transparent 4px 8px);
  opacity: 0.4;
}
.case__redacted-x .red-bar::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  background: var(--surface);
  -webkit-mask-image: radial-gradient(circle at var(--rx, -100px) var(--ry, 50%), black 0, black 28px, transparent 36px);
  mask-image: radial-gradient(circle at var(--rx, -100px) var(--ry, 50%), black 0, black 28px, transparent 36px);
  text-transform: uppercase;
  white-space: nowrap;
  transition: -webkit-mask-image 0.05s linear, mask-image 0.05s linear;
}

/* =========================================================
   LIVE ACTIVITY TOASTS
   ========================================================= */
.toasts {
  position: fixed;
  left: var(--s-4);
  bottom: 80px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  pointer-events: none;
  max-width: 320px;
}
.toast {
  background: rgba(11,18,32,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-2);
  border-left: 2px solid var(--cyan);
  border-radius: var(--radius);
  padding: var(--s-3) var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  pointer-events: auto;
}
.toast.in { opacity: 1; transform: translateX(0); }
.toast.out { opacity: 0; transform: translateX(-12px); }
.toast .head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.toast .head .ago { color: var(--text-dim); }
.toast .body { color: var(--text); font-size: 12.5px; line-height: 1.45; }
@media (max-width: 768px) {
  .toasts { left: var(--s-3); right: var(--s-3); bottom: 80px; max-width: none; }
}

/* =========================================================
   FLOATING CTA PILL (scroll-depth escalation)
   ========================================================= */
.float-cta {
  position: fixed;
  right: var(--s-5);
  bottom: var(--s-5);
  z-index: 88;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-bright));
  color: var(--bg);
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 32px -10px rgba(79,179,232,0.55);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), background 0.3s;
}
.float-cta.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.float-cta:hover { transform: translateY(-2px) scale(1.02); }
.float-cta::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 3px rgba(5,8,16,0.25);
}
@media (max-width: 768px) {
  .float-cta { display: none !important; }
}

/* =========================================================
   STICKY MOBILE BAR
   ========================================================= */
.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  display: none;
  background: rgba(5, 8, 16, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 10px var(--s-4);
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  gap: var(--s-2);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out);
}
.mobile-bar.show { transform: translateY(0); }
.mobile-bar a, .mobile-bar button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border-2);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: rgba(11,18,32,0.6);
  min-height: 44px;
}
.mobile-bar .primary {
  background: var(--cyan);
  color: var(--bg);
  border-color: var(--cyan);
  font-weight: 600;
}
@media (max-width: 768px) { .mobile-bar { display: flex; } body { padding-bottom: 64px; } }

/* =========================================================
   ASSESSMENT MINI SLIDE-IN
   ========================================================= */
.assess-mini {
  position: fixed;
  right: var(--s-5);
  bottom: var(--s-9);
  z-index: 87;
  width: 320px;
  background: rgba(11,18,32,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: var(--s-4) var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  opacity: 0;
  transform: translateX(120%);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.assess-mini.show { opacity: 1; transform: translateX(0); }
.assess-mini::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}
.assess-mini__head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-transform: uppercase;
}
.assess-mini__head button {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1;
  padding: 4px 8px;
}
.assess-mini h5 {
  font-size: 16px; font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.assess-mini p { font-size: 12.5px; color: var(--text-mute); line-height: 1.5; }
.assess-mini button.primary {
  background: var(--cyan);
  color: var(--bg);
  font-weight: 600;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-top: var(--s-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
@media (max-width: 768px) {
  .assess-mini { display: none !important; }
}

/* =========================================================
   GSOC EASTER-EGG OVERLAY
   ========================================================= */
.gsoc-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: radial-gradient(ellipse at center, rgba(5,8,16,0.92), rgba(5,8,16,0.98));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.gsoc-overlay.show { opacity: 1; pointer-events: auto; }
.gsoc-overlay__panel {
  background: var(--surface);
  border: 1px solid var(--cyan-dim);
  border-radius: var(--radius);
  padding: var(--s-7);
  max-width: 520px;
  width: 100%;
  position: relative;
  box-shadow: 0 0 80px rgba(79,179,232,0.18);
}
.gsoc-overlay__panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: scan 6s linear infinite;
}
.gsoc-overlay__title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}
.gsoc-overlay h3 {
  font-size: 24px;
  margin-bottom: var(--s-3);
}
.gsoc-overlay p {
  font-size: 14px;
  color: var(--text-mute);
  margin-bottom: var(--s-5);
}
.gsoc-overlay__lines {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: var(--s-5);
  padding: var(--s-3);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-height: 140px;
  overflow: hidden;
}
.gsoc-overlay__lines b { color: var(--cyan); font-weight: 500; }
.gsoc-overlay__close {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--text-mute);
}

/* Easter egg input indicator */
.egg-indicator {
  position: fixed;
  bottom: var(--s-3);
  left: var(--s-3);
  z-index: 89;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  background: rgba(11,18,32,0.85);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 2px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.egg-indicator.show { opacity: 1; transform: translateY(0); }
.egg-indicator b { color: var(--cyan); font-weight: 500; }
@media (max-width: 768px) { .egg-indicator { display: none; } }

/* =========================================================
   FOUNDER / NOTE FROM THE PRINCIPAL
   ========================================================= */
.founder {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: var(--s-8);
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s-8);
  position: relative;
  overflow: hidden;
}
.founder::before {
  content: "";
  position: absolute;
  top: -30%; right: -10%;
  width: 50%; height: 160%;
  background: radial-gradient(ellipse at center, rgba(46,120,183,0.12), transparent 60%);
  pointer-events: none;
}
.founder__sig {
  position: relative;
}
.founder__monogram {
  width: 120px; height: 120px;
  border: 1px solid var(--border-2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-2);
  position: relative;
  margin-bottom: var(--s-5);
}
.founder__monogram::before {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--cyan-dim);
  border-radius: 50%;
  opacity: 0.4;
  animation: pulse 3.5s ease-in-out infinite;
}
.founder__monogram img { width: 60%; height: 60%; object-fit: contain; }
.founder__sig-name { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.founder__sig-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-top: 4px;
}
.founder__credentials {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: var(--s-3);
  line-height: 1.8;
}
.founder__letter h2 { font-size: clamp(28px, 3.4vw, 44px); margin-bottom: var(--s-5); }
.founder__letter p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: var(--s-4);
}
.founder__letter p.lead-line {
  font-size: 18px;
  color: var(--text);
}
.founder__letter .signoff {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-mute);
  margin-top: var(--s-5);
}
@media (max-width: 900px) {
  .founder { grid-template-columns: 1fr; padding: var(--s-6); gap: var(--s-5); }
  .founder__monogram { width: 88px; height: 88px; margin-bottom: var(--s-4); }
}

/* =========================================================
   COMPARISON TABLE
   ========================================================= */
.compare {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: var(--s-6);
  background: var(--surface);
}
.compare__row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.compare__row:last-child { border-bottom: 0; }
.compare__row.compare__head {
  background: var(--bg-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.compare__row.compare__head .cell--us { color: var(--cyan); }
.compare__row.compare__head .cell--them { color: var(--text-mute); }
.compare__row:hover:not(.compare__head) { background: var(--surface-2); }
.compare__row .cell {
  padding: var(--s-4) var(--s-5);
  display: flex;
  align-items: center;
  gap: var(--s-2);
  border-right: 1px solid var(--border);
  font-size: 14px;
}
.compare__row .cell:last-child { border-right: 0; }
.compare__row .cell--criterion {
  font-weight: 500;
  color: var(--text);
  font-size: 14px;
}
.compare__row .cell--us {
  color: var(--text);
  font-weight: 500;
  background: rgba(79,179,232,0.04);
}
.compare__row .cell--us::before {
  content: "";
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--cyan);
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
  position: relative;
}
.compare__row .cell--us::after {
  content: "";
  position: absolute;
  width: 6px; height: 3px;
  border-left: 1.5px solid var(--bg);
  border-bottom: 1.5px solid var(--bg);
  transform: rotate(-45deg) translate(11px, -2px);
}
.compare__row .cell--them { color: var(--text-mute); font-size: 13px; }
.compare__row .cell--them::before {
  content: "";
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  flex: none;
  background: transparent;
}
@media (max-width: 768px) {
  .compare__row { grid-template-columns: 1fr; }
  .compare__row .cell { border-right: 0; border-bottom: 1px solid var(--border); padding: var(--s-3) var(--s-4); }
  .compare__row .cell:last-child { border-bottom: 0; }
  .compare__row.compare__head .cell { padding: var(--s-3) var(--s-4); }
  .compare__row .cell--criterion { background: var(--bg-2); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }
}

/* =========================================================
   GLOSSARY POPOVER
   ========================================================= */
.gloss {
  border-bottom: 1px dashed var(--cyan-dim);
  cursor: help;
  position: relative;
  color: inherit;
  text-decoration: none;
}
.gloss:hover { border-bottom-color: var(--cyan); }
.gloss-popover {
  position: fixed;
  z-index: 220;
  background: var(--surface);
  border: 1px solid var(--cyan-dim);
  border-radius: var(--radius);
  padding: var(--s-4);
  width: 280px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-mute);
  letter-spacing: 0;
  text-transform: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s var(--ease-out);
  box-shadow: 0 18px 40px -12px rgba(0,0,0,0.5);
}
.gloss-popover.show { opacity: 1; transform: translateY(0); }
.gloss-popover::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}
.gloss-popover b {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}

/* =========================================================
   PHONE-LINE STATUS CHIP
   ========================================================= */
.phone-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6FE3B5;
  border: 1px solid rgba(111,227,181,0.25);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(111,227,181,0.06);
  white-space: nowrap;
  flex: none;
}
.phone-status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #6FE3B5;
  box-shadow: 0 0 8px #6FE3B5;
  animation: pulse 2s infinite;
}

/* =========================================================
   KEYBOARD SHORTCUTS OVERLAY
   ========================================================= */
.shortcut-hint {
  position: fixed;
  bottom: var(--s-3);
  right: 0;
  z-index: 86;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  text-transform: uppercase;
  padding: 6px 10px;
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  border-radius: 2px 0 0 0;
  background: rgba(11,18,32,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s;
}
.shortcut-hint.show { opacity: 1; transform: translateY(0); }
.shortcut-hint kbd {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 2px;
  padding: 1px 5px;
  color: var(--cyan);
  font-family: inherit;
  font-size: 10px;
}
@media (max-width: 768px) { .shortcut-hint { display: none; } }

.shortcuts-overlay {
  position: fixed;
  inset: 0;
  z-index: 240;
  background: rgba(5,8,16,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.shortcuts-overlay.show { opacity: 1; pointer-events: auto; }
.shortcuts-panel {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: var(--s-7);
  max-width: 480px;
  width: 100%;
}
.shortcuts-panel h3 {
  font-size: 22px;
  margin-bottom: var(--s-2);
}
.shortcuts-panel p {
  color: var(--text-mute);
  font-size: 13px;
  margin-bottom: var(--s-5);
}
.shortcuts-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: var(--s-2);
}
.shortcuts-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-3) var(--s-4);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-mute);
}
.shortcuts-list kbd {
  background: var(--surface);
  border: 1px solid var(--border-2);
  color: var(--cyan);
  padding: 3px 8px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

/* =========================================================
   PUBLIC SECURITY DISCLOSURE
   ========================================================= */
.disclosure {
  margin-top: var(--s-5);
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-4);
  align-items: center;
  background: var(--bg-2);
}
.disclosure__icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--cyan-dim);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
}
.disclosure__copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-mute);
  line-height: 1.6;
}
.disclosure__copy b { color: var(--cyan); font-weight: 500; }
@media (max-width: 600px) {
  .disclosure { grid-template-columns: 1fr; text-align: left; padding: var(--s-3) var(--s-4); }
  .disclosure__icon { display: none; }
}

/* =========================================================
   B-MARK LOGO DRAW-ON (hero)
   ========================================================= */
.brand-mark-anim {
  position: relative;
  display: inline-block;
}
.brand-mark-anim::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg);
  transform-origin: right center;
  transform: scaleX(1);
  animation: maskOff 1.6s var(--ease-out) 0.3s forwards;
  pointer-events: none;
}
@keyframes maskOff {
  0%   { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}
.brand-mark-anim::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 100%;
  width: 2px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: scanLine 1.6s var(--ease-out) 0.3s forwards;
  pointer-events: none;
}
@keyframes scanLine {
  0%   { left: 100%; opacity: 1; }
  90%  { opacity: 1; }
  100% { left: -2px; opacity: 0; }
}

/* =========================================================
   CLIENT DASHBOARD PREVIEW
   ========================================================= */
.dashboard-preview {
  background: linear-gradient(180deg, var(--bg-2), var(--surface));
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: var(--s-6);
  position: relative;
}
.dashboard-preview::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}
.dashboard-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-3) var(--s-5);
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.dashboard-bar__lights {
  display: flex; gap: 6px;
}
.dashboard-bar__lights span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--border-2);
}
.dashboard-bar__lights span:nth-child(1) { background: #FF6B6B; }
.dashboard-bar__lights span:nth-child(2) { background: var(--warn); }
.dashboard-bar__lights span:nth-child(3) { background: #6FE3B5; }
.dashboard-bar__url {
  flex: 1;
  text-align: center;
  color: var(--cyan);
}
.dashboard-bar__user { color: var(--text-mute); }

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1px;
  background: var(--border);
}
.dash-pane {
  background: var(--surface);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  min-height: 220px;
}
.dash-pane__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--border);
}
.dash-pane__head .live {
  display: inline-flex; align-items: center; gap: 5px;
  color: #6FE3B5;
}
.dash-pane__head .live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #6FE3B5;
  box-shadow: 0 0 8px #6FE3B5;
  animation: pulse 1.8s infinite;
}

/* Pane: Alerts */
.dash-alerts { display: flex; flex-direction: column; gap: var(--s-2); flex: 1; overflow: hidden; }
.dash-alert {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-3);
  padding: 8px 10px;
  border-left: 2px solid var(--cyan);
  background: rgba(79,179,232,0.04);
  border-radius: 2px;
  font-size: 12px;
}
.dash-alert--watch { border-left-color: var(--warn); background: rgba(255,180,84,0.04); }
.dash-alert--ok { border-left-color: #6FE3B5; background: rgba(111,227,181,0.04); }
.dash-alert .ts {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}
.dash-alert .body { color: var(--text); font-size: 12.5px; line-height: 1.4; }
.dash-alert .sev {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  padding: 2px 6px;
  border: 1px solid var(--border-2);
  border-radius: 2px;
  color: var(--text-mute);
  text-transform: uppercase;
}

/* Pane: Watch tiles */
.dash-watch { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-2); flex: 1; }
.dash-tile {
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 10px;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dash-tile .label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.dash-tile .val {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.dash-tile .delta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--cyan);
  letter-spacing: 0.04em;
}
.dash-tile .delta.up::before { content: "▲ "; }
.dash-tile .delta.down::before { content: "▼ "; color: #FF6B6B; }

/* Pane: Mini map */
.dash-map { padding: 0; min-height: 200px; }
.dash-map__inner {
  position: relative;
  width: 100%; height: 100%;
  background: var(--bg-2);
  border-radius: 0;
  overflow: hidden;
}
.dash-map svg { width: 100%; height: 100%; display: block; }

/* Pane: Comms log */
.dash-log { flex: 1; overflow: hidden; display: flex; flex-direction: column; gap: 6px; }
.dash-msg {
  display: flex;
  gap: var(--s-2);
  font-size: 12px;
  align-items: baseline;
}
.dash-msg .who {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--cyan);
  text-transform: uppercase;
  flex: none;
  min-width: 70px;
}
.dash-msg .text { color: var(--text); line-height: 1.45; }

@media (max-width: 900px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .dash-pane { min-height: auto; }
  .dash-watch { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   SERVICE-AREA TIERS
   ========================================================= */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-6);
}
.tier {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-6);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  transition: border-color 0.3s, background 0.3s;
}
.tier:hover { border-color: var(--cyan-dim); background: var(--surface-2); }
.tier::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px; height: 140px;
  border: 1px solid var(--cyan-dim);
  border-radius: 50%;
  opacity: 0.18;
}
.tier::after {
  content: "";
  position: absolute;
  top: -10px;
  right: -10px;
  width: 80px; height: 80px;
  border: 1px solid var(--cyan-dim);
  border-radius: 50%;
  opacity: 0.3;
}
.tier__label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--cyan);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.tier__time {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.tier__time-suffix {
  font-size: 0.45em;
  color: var(--text);
  margin-left: 4px;
  letter-spacing: -0.02em;
}
.tier__where { font-size: 14px; color: var(--text); font-weight: 500; }
.tier__detail { font-size: 12.5px; color: var(--text-mute); line-height: 1.55; }
.tier__bar {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-top: var(--s-3);
  overflow: hidden;
  position: relative;
}
.tier__bar-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-bright));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.2s var(--ease-out);
}
.tier.in .tier__bar-fill { transform: scaleX(var(--fill, 0.5)); }
@media (max-width: 768px) {
  .tiers { grid-template-columns: 1fr; }
}

/* =========================================================
   PRICING TRANSPARENCY BAND
   ========================================================= */
.pricing-band {
  margin-top: var(--s-6);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--s-7);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s-7) var(--s-6);
  align-items: center;
}
.pricing-band__copy h3 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: var(--s-3); }
.pricing-band__copy p { font-size: 14px; color: var(--text-mute); line-height: 1.6; }
.pricing-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}
.ptier {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-4) var(--s-4);
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s, background 0.2s;
}
.ptier:hover { border-color: var(--cyan-dim); background: var(--surface-2); }
.ptier__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-transform: uppercase;
}
.ptier__amount {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.ptier__amount span { font-size: 12px; color: var(--text-mute); font-weight: 400; letter-spacing: 0; margin-left: 2px; }
.ptier__what { font-size: 11.5px; color: var(--text-mute); line-height: 1.5; }
@media (max-width: 900px) {
  .pricing-band { grid-template-columns: 1fr; padding: var(--s-5); gap: var(--s-5); }
  .pricing-tiers { grid-template-columns: 1fr; }
}

/* =========================================================
   MOBILE TWEAKS — sections added in latest pass
   ========================================================= */
@media (max-width: 768px) {
  /* Dashboard preview */
  .dashboard-bar { padding: var(--s-2) var(--s-3); font-size: 9px; gap: var(--s-2); }
  .dashboard-bar__url {
    font-size: 9px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 50vw;
  }
  .dashboard-bar__user { display: none; }
  .dash-pane { padding: var(--s-4); min-height: auto; gap: var(--s-2); }
  .dash-pane__head { font-size: 9px; padding-bottom: 6px; }
  .dash-alert { padding: 6px 8px; gap: var(--s-2); grid-template-columns: auto 1fr; }
  .dash-alert .ts { font-size: 9px; }
  .dash-alert .body { font-size: 11.5px; }
  .dash-alert .sev { display: none; }
  .dash-watch { gap: 6px; }
  .dash-tile { padding: 8px; }
  .dash-tile .label { font-size: 8.5px; }
  .dash-tile .val { font-size: 18px; }
  .dash-tile .delta { font-size: 9.5px; }
  .dash-map { min-height: 180px; }
  .dash-map .dash-pane__head { padding: var(--s-3) var(--s-4) 6px !important; }
  .dash-msg { font-size: 11.5px; }
  .dash-msg .who { min-width: 60px; font-size: 9px; }

  /* Tiers */
  .tier { padding: var(--s-5); }
  .tier__time { font-size: 32px; }

  /* Pricing band */
  .pricing-band { padding: var(--s-5) var(--s-4); gap: var(--s-4); }
  .pricing-band__copy h3 { font-size: 22px; }
  .pricing-band__copy p { font-size: 13px; }
  .ptier { padding: var(--s-3) var(--s-4); }
  .ptier__amount { font-size: 20px; }

  /* Comparison table */
  .compare__row .cell { font-size: 13px; padding: 10px var(--s-3); gap: 10px; }
  .compare__row .cell--criterion { font-size: 10px; padding: 6px var(--s-3); }
  .compare__row .cell--us::before, .compare__row .cell--them::before { width: 14px; height: 14px; }

  /* Founder letter */
  .founder { padding: var(--s-5); gap: var(--s-4); }
  .founder__monogram { width: 72px; height: 72px; margin-bottom: var(--s-3); }
  .founder__sig-name { font-size: 16px; }
  .founder__credentials { font-size: 9px; }
  .founder__letter h2 { font-size: 26px; margin-bottom: var(--s-3); }
  .founder__letter p { font-size: 14.5px; line-height: 1.6; }
  .founder__letter p.lead-line { font-size: 16px; }

  /* Glossary popover */
  .gloss-popover {
    width: calc(100vw - 32px);
    max-width: 320px;
    padding: var(--s-3);
    font-size: 12px;
  }

  /* Toasts: avoid covering mobile bar */
  .toasts { bottom: 88px; }

  /* Comparison head row hidden on mobile (cells handle labels) */
  .compare__row.compare__head { display: none; }
}

@media (max-width: 480px) {
  .dash-watch { grid-template-columns: 1fr 1fr; }
  .dash-alerts .dash-alert:nth-child(n+4) { display: none; }
  .dash-pane__head .live { font-size: 8px; }
  .tier__time { font-size: 28px; }
  .ptier__amount { font-size: 18px; }
}

/* =========================================================
   MOBILE PASS 2 — performance + edge cases
   ========================================================= */
@media (max-width: 768px) {
  /* Hero size — was 88px max, too big on phone */
  .display-1 { font-size: clamp(34px, 8.5vw, 56px) !important; line-height: 1.05; }
  .display-2 { font-size: clamp(26px, 6.5vw, 40px) !important; line-height: 1.1; }
  .display-3 { font-size: clamp(20px, 5vw, 28px) !important; }
  .hero { padding: var(--s-7) 0 var(--s-5); }
  .hero h1 { margin-top: var(--s-4); }
  .lead { font-size: 15px !important; line-height: 1.55; }

  /* Eyebrow tighter so it doesn't take 2 lines */
  .eyebrow { font-size: 10px; letter-spacing: 0.14em; }
  .eyebrow::before { width: 16px; }

  /* Tempo strip — scroll horizontally instead of wrap */
  .tempo__inner { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 7px var(--s-4); scrollbar-width: none; }
  .tempo__inner::-webkit-scrollbar { display: none; }
  .tempo__group { flex-wrap: nowrap; flex: none; }
  .tempo__item { white-space: nowrap; flex: none; }

  /* Press ticker slower on mobile (perf + readability) */
  .press__rail { animation-duration: 60s; }
  .press__item { padding: 0 var(--s-3); font-size: 11px; }
  .press__item .placeholder-tag { font-size: 9px; padding: 1px 6px; }

  /* Coverage map: cap height, smaller labels */
  .coverage__map { aspect-ratio: 5/4; max-height: 360px; }
  .coverage__map svg text { font-size: 12px !important; }
  .coverage__stats { flex-wrap: wrap; gap: var(--s-3); font-size: 10px; }
  .coverage__legend { flex-wrap: wrap; gap: var(--s-3); font-size: 10px; }

  /* Threat assessment modal — fit phone */
  .modal__body { padding: var(--s-5) var(--s-4); }
  .modal__progress { margin-bottom: var(--s-4); }
  .q-step h3 { font-size: 19px; }
  .q-step p { font-size: 13.5px; margin-bottom: var(--s-4); }
  .q-option { padding: var(--s-3) var(--s-4); font-size: 13.5px; min-height: 48px; }
  .q-actions { flex-direction: column-reverse; gap: var(--s-2); }
  .q-actions .btn { width: 100%; justify-content: center; }
  .q-actions .spacer { display: none; }
  .q-result__score { flex-direction: column; align-items: flex-start; gap: var(--s-3); padding: var(--s-4); }
  .q-result__num { font-size: 44px !important; }

  /* Backdrop filters drop on mobile — perf + battery */
  .site-header { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .menu-panel, .gloss-popover, .gsoc-overlay, .shortcuts-overlay,
  .toast, .float-cta, .mobile-bar, .assess-mini {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* Body grid less intensive */
  body::before { background-size: 96px 96px; opacity: 0.5; }

  /* Watch board headers */
  .watch__title { font-size: 10px; letter-spacing: 0.12em; }

  /* Newsletter form: stack input + button */
  [data-newsletter] { flex-direction: column; gap: var(--s-2); }
  [data-newsletter] input { font-size: 16px; min-height: 48px; }
  [data-newsletter] button { width: 100%; min-height: 44px; }

  /* Status bar item value smaller */
  .status-bar__item strong { font-size: 13px; }

  /* Footer disclosure tighter */
  .disclosure__copy { font-size: 10.5px; line-height: 1.5; }

  /* Compare table head label inside cell on mobile */
  .compare__row .cell--us, .compare__row .cell--them { padding-left: var(--s-3); }
  .compare__row .cell--us::before, .compare__row .cell--them::before { width: 12px; height: 12px; }

  /* Operating standards counters tighter */
  .counter { padding: var(--s-5) var(--s-4); }

  /* Operators agencies stacking gap */
  .agencies { gap: 6px; }
  .agency { padding: 10px var(--s-3); }
  .agency b { font-size: 13px; }
  .agency span { font-size: 9px; }
}

/* Very small phones */
@media (max-width: 380px) {
  .display-1 { font-size: 30px !important; }
  .lead { font-size: 14px !important; }
  .container { padding: 0 var(--s-3); }
  .pillar { padding: var(--s-5) var(--s-3); }
  .q-option { font-size: 13px; padding: var(--s-3); }
  .modal__body { padding: var(--s-4) var(--s-3); }
}

/* =========================================================
   FORM STATE — Formspree AJAX responses
   ========================================================= */
.form-state {
  margin-top: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: 0.04em;
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  border: 1px solid var(--border-2);
  animation: stateIn 0.4s var(--ease-out);
}
@keyframes stateIn {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}
.form-state::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px currentColor;
}
.form-state--ok { color: #6FE3B5; border-color: rgba(111,227,181,0.3); background: rgba(111,227,181,0.06); }
.form-state--ok::before { background: #6FE3B5; }
.form-state--err { color: var(--warn); border-color: rgba(255,180,84,0.3); background: rgba(255,180,84,0.06); }
.form-state--err::before { background: var(--warn); }

/* =========================================================
   PRINT STYLESHEET
   ========================================================= */
@media print {
  :root { color-scheme: light; }
  * { background: transparent !important; color: black !important; box-shadow: none !important; }
  body, html { background: white !important; color: black !important; }
  body::before, .scroll-progress, .spotlight, .cursor, .toasts, .float-cta, .mobile-bar,
  .assess-mini, .gsoc-overlay, .egg-indicator, .shortcut-hint, .shortcuts-overlay,
  .menu-panel, .menu-btn, .console, .modal, .tempo, .press,
  .radar, .hero__visual, video, audio { display: none !important; }
  .site-header, .site-footer, .site-header__inner { background: white !important; border-color: #ccc !important; }
  .site-header__inner { padding: 12px 0 !important; }
  .header-actions .btn { display: none !important; }
  .container { max-width: 100% !important; padding: 0 24pt !important; }
  .section { padding: 24pt 0 !important; page-break-inside: avoid; }
  h1, h2, h3, h4, h5 { color: #050810 !important; page-break-after: avoid; }
  .display-1, .display-2, .display-3 { font-size: 24pt !important; }
  .pillar, .industry-card, .standard, .case, .agency, .watch__item, .counter, .approach__step,
  .pedigree, .intake, .footer-grid, .timezones {
    border-color: #ccc !important; background: white !important; transform: none !important;
  }
  a { color: #050810 !important; text-decoration: underline; }
  .eyebrow, .mono { color: #555 !important; }
  .eyebrow::before { background: #555 !important; }
  .pillar { page-break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .reveal-words .word { opacity: 1; transform: none; }
  body { cursor: auto; }
  a, button { cursor: pointer; }
  .cursor { display: none; }
}
