/* FALAK Defense — site styles
   Modern defense-industrial landing. Steel palette (inherited from slides.css).
   Heavy on hierarchy and motion; restrained on chrome. */

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body { min-height: 100vh; position: relative; }

/* Atmospheric grain — subtle film texture across whole page */
body::after {
  content: ""; position: fixed; inset: 0;
  pointer-events: none;
  z-index: 99;
  opacity: 0.025;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .5 0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}

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

.container {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 56px;
  box-sizing: border-box;
}

/* ────────── NAV ────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px 0;
  transition: backdrop-filter .25s, background .25s, border-color .25s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: var(--line);
}
.nav .row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.nav .brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none;
  color: var(--ink);
}
.nav .brand-mark {
  width: 28px; height: 28px;
  border: 1.5px solid var(--ink);
  position: relative;
}
.nav .brand-mark::after {
  content: ""; position: absolute; inset: 5px;
  background: var(--accent);
  transition: transform .3s;
}
.nav .brand:hover .brand-mark::after { transform: scale(1.15); }
.nav .brand-text {
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.06em;
}
.nav .brand-text em {
  color: var(--accent);
  font-style: normal;
}

.nav .links {
  display: flex; align-items: center; gap: 36px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav .links a {
  color: var(--ink-2);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color .15s;
}
.nav .links a:hover { color: var(--ink); }
.nav .links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s;
}
.nav .links a:hover::after { transform: scaleX(1); }

.nav-side {
  display: flex; align-items: center; gap: 18px;
}
.nav-live {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.nav-live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--ok) 60%, transparent);
  animation: pulse-dot 1.8s ease-out infinite;
}
.nav-live-tag { color: var(--muted-2); letter-spacing: 0.18em; }
.nav-live-time {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.nav .cta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 10px 18px;
  text-decoration: none;
  transition: background .15s, transform .15s, box-shadow .25s;
  display: inline-flex; align-items: center; gap: 8px;
  position: relative;
  overflow: hidden;
}
.nav .cta::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, color-mix(in oklab, var(--bg) 35%, transparent) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}
.nav .cta:hover::before { transform: translateX(120%); }
.nav .cta:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -10px var(--accent);
}

/* Top scroll progress bar — width-based so glow doesn't bleed when empty */
.page-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 60;
  width: 0%;
  transition: width .15s linear;
  pointer-events: none;
}
.page-progress.has-progress {
  box-shadow: 0 0 10px color-mix(in oklab, var(--accent) 70%, transparent);
}

/* ────────── HERO ────────── */

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto auto auto;
  position: relative;
  overflow: hidden;
  padding-top: 88px;
}

.hero-bg {
  position: absolute; inset: 0;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 50% 110%, color-mix(in oklab, var(--accent) 18%, transparent) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 60%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 60%, black 30%, transparent 70%);
}

.hero-radar {
  position: absolute;
  right: -40px; top: 80px;
  width: 620px; height: 620px;
  opacity: .55;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, black 50%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, black 50%, transparent 90%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 0 56px;
  display: block;
  max-width: 1100px;
}

.hero-text { max-width: 820px; }

.hero-meta-wrap {
  position: relative;
  z-index: 2;
  padding: 24px 0 36px;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 36px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--surface) 80%, transparent);
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; background: var(--accent);
  position: relative;
}
.hero-eyebrow .dot::after {
  content:""; position:absolute; inset:-4px;
  border: 1px solid var(--accent); opacity:.6;
  animation: ping 2s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(2); opacity: 0; }
}

.hero h1 {
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(64px, 8.2vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.018em;
  margin: 0 0 32px;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: line-rise .9s cubic-bezier(.22, 1, .36, 1) forwards;
}
.hero h1 .line:nth-child(1) > span { animation-delay: 0.15s; }
.hero h1 .line:nth-child(2) > span { animation-delay: 0.30s; }
.hero h1 .line:nth-child(3) > span { animation-delay: 0.45s; }
@keyframes line-rise { to { transform: translateY(0); } }

.hero .sub {
  font-size: 22px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 0 44px;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(20px);
  animation: rise .8s cubic-bezier(.22,1,.36,1) .7s forwards;
}
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

.hero .ctas {
  display: flex; gap: 18px; flex-wrap: wrap;
  opacity: 0; transform: translateY(20px);
  animation: rise .8s cubic-bezier(.22,1,.36,1) .85s forwards;
}

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 28px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .2s, background .2s, color .2s, border-color .2s;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, color-mix(in oklab, var(--bg) 35%, transparent) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -16px var(--accent);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn .arr {
  display: inline-block;
  transition: transform .25s;
}
.btn:hover .arr { transform: translateX(4px); }

/* hero meta strip — horizontal row beneath content, dividers between cells */
.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(20px);
  animation: rise 1s cubic-bezier(.22,1,.36,1) 1s forwards;
}
.hero-meta .strip {
  padding: 22px 28px;
  border-right: 1px solid var(--line);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  display: flex; flex-direction: column; gap: 8px;
}
.hero-meta .strip:last-child { border-right: 0; }
.hero-meta .strip .k { color: var(--muted-2); }
.hero-meta .strip .v {
  color: var(--ink); font-size: 17px; letter-spacing: 0.02em;
  font-family: 'Saira Condensed', sans-serif; font-weight: 500;
  text-transform: none; line-height: 1.25;
}
.hero-meta .strip .v em { color: var(--accent); font-style: normal; }

/* Ticker */
.ticker {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--surface) 60%, transparent);
  padding: 18px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.ticker-track {
  display: flex; gap: 64px; width: max-content;
  animation: ticker 60s linear infinite;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.ticker-track span {
  display: inline-flex; align-items: center; gap: 18px;
  white-space: nowrap;
}
.ticker-track span::after {
  content: "•"; color: var(--accent);
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ────────── Section primitives ────────── */

section {
  padding: 140px 0;
  position: relative;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  margin-bottom: 80px;
  align-items: end;
}
.section-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.section-eyebrow .num {
  color: var(--muted-2);
  margin-right: 14px;
}
.section-head h2 {
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(48px, 5.5vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.012em;
  margin: 0;
}
.section-head h2 em { color: var(--accent); font-style: normal; }
.section-head .lede {
  font-size: 21px;
  color: var(--muted);
  line-height: 1.55;
  padding-bottom: 10px;
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

/* ────────── Threat / Manifesto ────────── */

.manifesto {
  position: relative;
  padding: 200px 0 180px;
}
.manifesto-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, color-mix(in oklab, var(--accent) 12%, transparent) 0%, transparent 60%);
}
.manifesto .container { position: relative; }
.manifesto-text {
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(56px, 7vw, 132px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  max-width: 1300px;
}
.manifesto-text em { color: var(--accent); font-style: normal; }
.manifesto-text .strike {
  text-decoration: line-through;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 6px;
  color: var(--muted);
}
.manifesto-footnote {
  margin-top: 60px;
  max-width: 800px;
  font-size: 21px;
  color: var(--muted);
  line-height: 1.55;
}

/* ────────── 4 LAYERS BENTO ────────── */

.layers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.layer-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 36px 30px;
  display: flex; flex-direction: column;
  gap: 18px;
  min-height: 380px;
  position: relative;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.22,1,.36,1), border-color .25s, background .25s;
}
.layer-tile::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--accent);
  transform: scaleY(0); transform-origin: top;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.layer-tile:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  background: var(--surface-2);
}
.layer-tile:hover::before { transform: scaleY(1); }
.layer-tile .ln { 
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 700;
  font-size: 86px;
  line-height: 0.9;
  color: var(--accent);
  letter-spacing: -0.03em;
}
.layer-tile .icon {
  width: 40px; height: 40px;
  color: var(--accent);
}
.layer-icon-stage {
  width: 100%; height: 88px;
  display: flex; align-items: center; justify-content: flex-start;
  color: var(--accent);
  position: relative;
}
.layer-icon-stage::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transform: scaleX(0); transform-origin: left;
  transition: opacity .3s, transform .5s cubic-bezier(.22,1,.36,1);
}
.layer-tile:hover .layer-icon-stage::after { opacity: 0.6; transform: scaleX(1); }
.layer-anim {
  width: 80px; height: 80px;
  flex-shrink: 0;
}

/* Layer 01 - radar sweep via SMIL on the path */
.layer-anim .li-pulse-ring {
  animation: li-pulse 2.4s ease-out infinite;
}
@keyframes li-pulse {
  0%   { r: 4;  opacity: 0.9; }
  100% { r: 28; opacity: 0; }
}
/* li-sweep speed via SMIL, not CSS */

/* Layer 02 - spectrum bars */
.layer-anim .li-spectrum rect {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: li-spec 1.2s ease-in-out infinite;
}
.layer-anim .li-spectrum rect:nth-child(2) { animation-delay: .1s; }
.layer-anim .li-spectrum rect:nth-child(3) { animation-delay: .2s; }
.layer-anim .li-spectrum rect:nth-child(4) { animation-delay: .3s; }
.layer-anim .li-spectrum rect:nth-child(5) { animation-delay: .4s; }
.layer-anim .li-spectrum rect:nth-child(6) { animation-delay: .5s; }
.layer-anim .li-spectrum rect:nth-child(7) { animation-delay: .6s; }
@keyframes li-spec {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.45); }
}
.layer-anim .li-spec-cursor {
  animation: li-cursor 3s linear infinite;
}
@keyframes li-cursor {
  from { transform: translateX(0); }
  to   { transform: translateX(64px); }
}
.layer-tile:hover .layer-anim .li-spectrum rect { animation-duration: 0.6s; }

/* Layer 03 - jam burst */
.layer-anim .li-burst circle {
  transform-box: view-box;
  transform-origin: 32px 32px;
  animation: li-burst 2.4s ease-out infinite;
  opacity: 0;
}
.layer-anim .li-burst circle:nth-child(2) { animation-delay: .6s; }
.layer-anim .li-burst circle:nth-child(3) { animation-delay: 1.2s; }
.layer-anim .li-burst circle:nth-child(4) { animation-delay: 1.8s; }
@keyframes li-burst {
  0%   { transform: scale(0.4); opacity: 0.9; stroke-width: 1.4; }
  100% { transform: scale(1.2); opacity: 0; stroke-width: 0.4; }
}
.layer-anim .li-bolt {
  animation: li-bolt 1.2s ease-in-out infinite;
  transform-box: fill-box;
}
.layer-anim .li-bolt--2 { animation-delay: 0.6s; }
@keyframes li-bolt {
  0%, 100% { opacity: 0; }
  10%, 30% { opacity: 1; }
  35%, 100% { opacity: 0; }
}
.layer-tile:hover .layer-anim .li-burst circle { animation-duration: 1.2s; }

/* Layer 04 - drone rotors */
.layer-anim .li-rotor {
  transform-box: fill-box;
  transform-origin: center;
  animation: li-rotor 1s linear infinite;
}
.layer-anim .li-rotor--2 { animation-direction: reverse; }
@keyframes li-rotor {
  from { transform: rotate(0); opacity: 0.5; }
  50%  { opacity: 0.9; }
  to   { transform: rotate(360deg); opacity: 0.5; }
}
.layer-anim .li-drone {
  animation: li-hover 3s ease-in-out infinite;
  transform-origin: 32px 32px;
  transform-box: fill-box;
}
@keyframes li-hover {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
.layer-anim .li-reticle {
  animation: li-reticle 2.4s ease-in-out infinite;
  transform-box: fill-box; transform-origin: center;
}
@keyframes li-reticle {
  0%, 100% { opacity: 0.4; transform: translate(32px, 32px) scale(0.85); }
  50%      { opacity: 0.9; transform: translate(32px, 32px) scale(1.1); }
}
.layer-tile:hover .layer-anim .li-rotor { animation-duration: 0.4s; }
.layer-tile h3 {
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 1.05;
  margin: 0;
}
.layer-tile p {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
}
.layer-tile .units {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.command-strip {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 26px 32px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
}
.command-strip .icon { color: var(--accent); width: 36px; height: 36px; }
.command-strip h4 {
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 600; font-size: 24px; margin: 0 0 4px;
}
.command-strip p { color: var(--ink-2); margin: 0; font-size: 16px; }
.command-strip .tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
}

/* ────────── PRODUCTS BENTO ────────── */

.products-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(260px, auto);
  gap: 14px;
}
.product-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px 26px 24px;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
  gap: 10px;
  transition: transform .45s cubic-bezier(.22,1,.36,1), border-color .25s, background .25s, box-shadow .35s;
  text-decoration: none;
  color: var(--ink);
}
.product-tile::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--accent);
  transform: scaleY(0); transform-origin: top;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.product-tile:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: 0 24px 60px -30px color-mix(in oklab, var(--accent) 70%, transparent);
}
.product-tile:hover::before { transform: scaleY(1); }

/* head row: code + status */
.pt-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}
.pt-head .code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.pt-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
  padding: 4px 10px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 50%, transparent);
}
.pt-status .status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--ok) 60%, transparent);
  animation: pulse-dot 2s ease-out infinite;
}
.pt-status .status-dot--hot {
  background: var(--danger);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--danger) 60%, transparent);
  animation: pulse-dot-hot 1.2s ease-out infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--ok) 60%, transparent); }
  70% { box-shadow: 0 0 0 8px color-mix(in oklab, var(--ok) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--ok) 0%, transparent); }
}
@keyframes pulse-dot-hot {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--danger) 60%, transparent); }
  70% { box-shadow: 0 0 0 10px color-mix(in oklab, var(--danger) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--danger) 0%, transparent); }
}

.product-tile h4 {
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 600;
  font-size: 26px;
  line-height: 1.05;
  margin: 0;
  position: relative;
  z-index: 1;
}
.product-tile p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
  position: relative;
  z-index: 1;
  max-width: 92%;
}

/* Spec chips */
.pt-specs {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 2px;
  position: relative; z-index: 1;
}
.pt-specs span {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  background: color-mix(in oklab, var(--bg) 35%, transparent);
  transition: border-color .25s, color .25s;
}
.pt-specs span i {
  font-style: normal;
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: 0.18em;
}
.product-tile:hover .pt-specs span {
  border-color: color-mix(in oklab, var(--accent) 50%, var(--line));
  color: var(--ink);
}

/* ─── Device stage (animated SVG canvas) ─── */
.device-stage {
  position: relative;
  margin-top: auto;
  flex: 1;
  min-height: 180px;
  background:
    radial-gradient(ellipse at 50% 60%, color-mix(in oklab, var(--accent) 8%, transparent) 0%, transparent 70%),
    var(--bg);
  border: 1px solid var(--line);
  overflow: hidden;
  color: var(--accent);
  transition: border-color .3s, background .3s;
}
.device-stage--tall { min-height: 320px; }
.device-stage--wide { min-height: 220px; }
.product-tile:hover .device-stage {
  border-color: color-mix(in oklab, var(--accent) 60%, var(--line));
}

.device-grid-bg, .device {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.device-grid-bg { color: var(--ink); opacity: 0.35; }
.device { color: var(--ink); }

/* Corner brackets */
.stage-corners i {
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--muted-2);
  border-style: solid;
  transition: border-color .25s, width .25s, height .25s;
}
.stage-corners i:nth-child(1) { top: 8px;    left: 8px;    border-width: 1px 0 0 1px; }
.stage-corners i:nth-child(2) { top: 8px;    right: 8px;   border-width: 1px 1px 0 0; }
.stage-corners i:nth-child(3) { bottom: 8px; left: 8px;    border-width: 0 0 1px 1px; }
.stage-corners i:nth-child(4) { bottom: 8px; right: 8px;   border-width: 0 1px 1px 0; }
.product-tile:hover .stage-corners i { border-color: var(--accent); width: 18px; height: 18px; }

/* Scan line */
.stage-scan {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 60%;
  background: linear-gradient(180deg,
    transparent 0%,
    color-mix(in oklab, var(--accent) 0%, transparent) 60%,
    color-mix(in oklab, var(--accent) 35%, transparent) 85%,
    color-mix(in oklab, var(--accent) 55%, transparent) 100%);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity .3s;
  mix-blend-mode: screen;
}
.product-tile:hover .stage-scan {
  opacity: 0.9;
  animation: scan-sweep 2.6s cubic-bezier(.5,0,.5,1) infinite;
}
@keyframes scan-sweep {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(180%); }
}

/* Readout strip */
.stage-readout {
  position: absolute;
  left: 10px; bottom: 10px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 5px 9px;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2;
}
.stage-readout .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}
.stage-readout .dot--hot { background: var(--danger); box-shadow: 0 0 6px var(--danger); }

/* ─── Device-specific animations ─── */

/* LED blink */
.led-blink { animation: led-blink 1.6s steps(2) infinite; transform-origin: center; }
@keyframes led-blink {
  0%, 60% { opacity: 1; filter: drop-shadow(0 0 3px var(--accent)); }
  61%, 100% { opacity: 0.25; filter: none; }
}

/* AX directional - RF cone breathing + waves traveling outward */
.device-stage[data-device="ax"] .rf-cone { animation: cone-pulse 3.4s ease-in-out infinite; transform-origin: 180px 145px; }
@keyframes cone-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
.device-stage[data-device="ax"] .rf-wave {
  animation: rf-wave-flow 2.2s ease-out infinite;
  transform-box: view-box;
  transform-origin: 195px 145px;
}
.device-stage[data-device="ax"] .rf-wave:nth-child(2) { animation-delay: .5s; }
.device-stage[data-device="ax"] .rf-wave:nth-child(3) { animation-delay: 1s; }
.device-stage[data-device="ax"] .rf-wave:nth-child(4) { animation-delay: 1.5s; }
@keyframes rf-wave-flow {
  0%   { opacity: 0; transform: translateX(-30px) scale(0.6); }
  20%  { opacity: 0.9; }
  100% { opacity: 0; transform: translateX(20px) scale(1.05); }
}
.device-stage[data-device="ax"] .target-lock {
  transform-box: fill-box;
  transform-origin: center;
  animation: target-blink 1.4s steps(2) infinite;
}
@keyframes target-blink {
  0%, 60% { opacity: 1; }
  61%, 100% { opacity: 0.3; }
}
.product-tile:hover .device-stage[data-device="ax"] .rf-cone { animation-duration: 1.8s; }
.product-tile:hover .device-stage[data-device="ax"] .rf-wave { animation-duration: 1.2s; }

/* DR omni dome - expanding pulses */
.device-stage[data-device="dr"] .dome-pulse {
  animation: dome-expand 3.2s ease-out infinite;
  transform-box: view-box;
  transform-origin: 150px 290px;
  opacity: 0;
}
.device-stage[data-device="dr"] .dome-pulse:nth-child(2) { animation-delay: 1.05s; }
.device-stage[data-device="dr"] .dome-pulse:nth-child(3) { animation-delay: 2.1s; }
@keyframes dome-expand {
  0%   { transform: scale(0.4); opacity: 0; stroke-width: 1.4; }
  15%  { opacity: 0.9; }
  100% { transform: scale(1.5); opacity: 0; stroke-width: 0.4; }
}
.device-stage[data-device="dr"] .apex-pulse {
  animation: apex-glow 2.2s ease-in-out infinite;
}
@keyframes apex-glow {
  0%, 100% { opacity: 0.4; r: 6; }
  50% { opacity: 1; r: 10; }
}
.product-tile:hover .device-stage[data-device="dr"] .dome-pulse { animation-duration: 1.8s; }

/* RX radar — sweep rotation via SMIL on the path */
.device-stage[data-device="rx"] .rx-rings circle {
  animation: ring-fade 4s ease-in-out infinite;
}
.device-stage[data-device="rx"] .rx-rings circle:nth-child(2) { animation-delay: 1s; }
.device-stage[data-device="rx"] .rx-rings circle:nth-child(3) { animation-delay: 2s; }
.device-stage[data-device="rx"] .rx-rings circle:nth-child(4) { animation-delay: 3s; }
@keyframes ring-fade {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}
.device-stage[data-device="rx"] .blip   { animation: blip-pulse 2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.device-stage[data-device="rx"] .blip-2 { animation-delay: 0.4s; }
.device-stage[data-device="rx"] .blip-3 { animation-delay: 0.8s; }
.device-stage[data-device="rx"] .blip-4 { animation-delay: 1.2s; }
@keyframes blip-pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.6); }
}
/* rx-sweep hover speed-up requires JS to retarget SMIL; skipped */

/* CX combined - data links flowing */
.device-stage[data-device="cx"] .cx-link {
  animation: dash-flow 2s linear infinite;
}
@keyframes dash-flow {
  to { stroke-dashoffset: -16; }
}
.product-tile:hover .device-stage[data-device="cx"] .cx-link { animation-duration: 1s; }

/* TI interceptor - flight path trace */
.device-stage[data-device="ti"] .ti-flight-path {
  animation: dash-trace 2s linear infinite;
}
@keyframes dash-trace {
  to { stroke-dashoffset: -12; }
}
.product-tile:hover .device-stage[data-device="ti"] .ti-interceptor { animation: jitter 0.4s linear infinite; }
@keyframes jitter {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(0, -1px); }
}

/* SW software — sweep via SMIL */
.device-stage[data-device="sw"] .sw-sweep { /* rotation on child path */ }
.device-stage[data-device="sw"] .sw-bars rect {
  animation: bar-bounce 1.4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center bottom;
}
.device-stage[data-device="sw"] .sw-bars rect:nth-child(2) { animation-delay: .1s; }
.device-stage[data-device="sw"] .sw-bars rect:nth-child(3) { animation-delay: .2s; }
.device-stage[data-device="sw"] .sw-bars rect:nth-child(4) { animation-delay: .3s; }
.device-stage[data-device="sw"] .sw-bars rect:nth-child(5) { animation-delay: .4s; }
.device-stage[data-device="sw"] .sw-bars rect:nth-child(6) { animation-delay: .5s; }
.device-stage[data-device="sw"] .sw-bars rect:nth-child(7) { animation-delay: .6s; }
.device-stage[data-device="sw"] .sw-bars rect:nth-child(8) { animation-delay: .7s; }
@keyframes bar-bounce {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.55); }
}
.cursor-blink { animation: led-blink 1s steps(2) infinite; }
.device-stage[data-device="sw"] .row-pulse {
  animation: row-glow 2.4s ease-in-out infinite;
}
@keyframes row-glow {
  0%, 100% { opacity: 0.05; }
  50% { opacity: 0.25; }
}

/* Annotations fade-in on hover */
.device .annotations {
  opacity: 0.5;
  transition: opacity .3s;
}
.product-tile:hover .device .annotations { opacity: 1; }

.pt-large { grid-column: span 3; grid-row: span 2; min-height: 460px; }
.pt-med   { grid-column: span 3; grid-row: span 1; min-height: 320px; }
.pt-tall  { grid-column: span 2; grid-row: span 2; min-height: 460px; }
.pt-wide  { grid-column: span 4; }
.pt-1     { grid-column: span 2; min-height: 380px; }
.pt-2     { grid-column: span 3; min-height: 380px; }
.pt-3     { grid-column: span 3; min-height: 380px; }

/* ────────── ENGAGEMENT THEATRE ────────── */

.engagement {
  position: relative;
  overflow: hidden;
}
.engagement::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 50%, color-mix(in oklab, var(--accent) 6%, transparent), transparent 70%);
  pointer-events: none;
}

.theatre {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  position: relative;
}

.theatre-rail {
  display: flex; flex-direction: column;
  gap: 10px;
}
.t-toggle {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px;
  align-items: baseline;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: left;
  font-family: 'IBM Plex Mono', monospace;
  cursor: pointer;
  transition: border-color .25s, background .25s, transform .25s;
  position: relative;
  overflow: hidden;
  color: var(--ink);
}
.t-toggle::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--accent);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.t-toggle:hover,
.t-toggle.is-active {
  border-color: var(--accent);
  background: var(--surface-2);
  transform: translateX(4px);
}
.t-toggle:hover::before,
.t-toggle.is-active::before { transform: scaleY(1); transform-origin: top; }
.t-toggle.locked {
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--accent), 0 12px 30px -18px var(--accent);
}
.t-toggle.locked::after {
  content: "PIN";
  position: absolute;
  top: 6px; right: 10px;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.t-toggle .t-num {
  font-size: 18px; font-weight: 600; color: var(--accent);
  font-family: 'Saira Condensed', sans-serif;
}
.t-toggle .t-name {
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-2);
}
.t-toggle .t-range {
  font-size: 11px; letter-spacing: 0.1em;
  color: var(--muted);
}
.t-toggle[data-layer="detect"] .t-num    { color: #6db48a; }
.t-toggle[data-layer="recon"] .t-num     { color: var(--accent-2); }
.t-toggle[data-layer="jam"] .t-num       { color: var(--accent); }
.t-toggle[data-layer="intercept"] .t-num { color: var(--danger); }

.theatre-canvas {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  overflow: hidden;
  min-height: 540px;
}
.theatre-canvas svg {
  display: block;
  width: 100%;
  height: 100%;
  color: var(--ink);
}

/* ── Range rings ── */
.th-ring { transition: opacity .35s; }
.th-ring .th-ring-circle { transition: stroke-width .35s, fill-opacity .35s, stroke .35s, opacity .35s; }
.th-ring .th-ring-label  { transition: opacity .35s, fill .35s; }
.th-ring .th-ring-circle { opacity: 0.55; }

/* hover spotlight from a toggle */
.th-ring.is-hover .th-ring-circle { opacity: 1; stroke-width: 2; fill-opacity: 0.12; }

/* phase active — ring engaging */
.th-ring.is-engaging .th-ring-circle {
  opacity: 1;
  stroke-width: 2.4;
  fill-opacity: 0.14;
  filter: drop-shadow(0 0 6px currentColor);
}
.th-ring.is-engaging .th-ring-label { opacity: 1; }

/* disarmed: gray dashed + struck-through label */
.th-ring.is-disarmed .th-ring-circle {
  stroke: var(--muted-2) !important;
  fill: transparent !important;
  stroke-dasharray: 2 6 !important;
  opacity: 0.35;
}
.th-ring.is-disarmed .th-ring-label {
  fill: var(--muted-2) !important;
  text-decoration: line-through;
  opacity: 0.5;
}

/* th-sweep rotation handled by SMIL animateTransform on the path */

/* ── Threat marker ── */
.th-threat { transition: opacity .25s; pointer-events: none; }
.th-threat[data-state="hidden"] { opacity: 0; }
.th-threat[data-state="undetected"] { opacity: 0; }
.th-threat[data-kind="ok"] .th-marker-box    { fill: var(--ok); }
.th-threat[data-kind="ok"] .th-marker-pulse  { stroke: var(--ok); }
.th-threat[data-kind="ok"] .th-callout rect  { stroke: var(--ok); }
.th-threat[data-kind="ok"] .th-call-id       { fill: var(--ok); }

.th-marker-pulse {
  animation: th-marker-pulse 1.4s ease-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes th-marker-pulse {
  0%   { r: 8;  opacity: 0.9; }
  100% { r: 22; opacity: 0; }
}

/* jammed: shaking */
.th-threat[data-state="jammed"] .th-marker {
  animation: th-jammed-shake 0.16s linear infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes th-jammed-shake {
  0%,100% { transform: translate(0, 0); }
  25%     { transform: translate(1.5px, -1px); }
  50%     { transform: translate(-1px, 1.5px); }
  75%     { transform: translate(1px, 1px); }
}

/* neutralized: gray, fading */
.th-threat[data-state="neutralized"] .th-marker-box {
  fill: var(--muted-2); stroke: var(--muted);
  animation: th-neut-fade 1.6s ease-out forwards;
  transform-origin: center; transform-box: fill-box;
}
@keyframes th-neut-fade {
  to { opacity: 0.3; transform: scale(0.85); }
}
.th-threat[data-state="neutralized"] .th-marker-pulse { display: none; }

/* unstoppable: red blink, all layers failed */
.th-threat[data-state="unstoppable"] .th-marker-box {
  animation: th-unstop 0.35s ease-in-out infinite alternate;
  transform-origin: center; transform-box: fill-box;
}
@keyframes th-unstop {
  to { fill: #ff6450; transform: scale(1.15); }
}

/* friendly: ok color */
.th-threat[data-state="friendly"] .th-marker-box { fill: var(--ok); }
.th-threat[data-state="friendly"] .th-marker-pulse { stroke: var(--ok); }

/* ── Callout & spectrum reveal ── */
.th-callout  { opacity: 0; transition: opacity .35s; }
.th-spectrum { opacity: 0; transition: opacity .35s; }
.th-threat[data-state="classifying"] .th-callout,
.th-threat[data-state="jammed"]      .th-callout,
.th-threat[data-state="targeted"]    .th-callout,
.th-threat[data-state="friendly"]    .th-callout,
.th-threat[data-state="neutralized"] .th-callout,
.th-threat[data-state="unknown"]     .th-callout,
.th-threat[data-state="unstoppable"] .th-callout {
  opacity: 1;
}
.th-threat[data-state="classifying"] .th-spectrum { opacity: 1; }

.th-spectrum .sb {
  animation: th-sb-bounce 0.7s ease-in-out infinite;
  transform-origin: center bottom;
  transform-box: fill-box;
}
.th-spectrum .sb-2 { animation-delay: .1s; }
.th-spectrum .sb-3 { animation-delay: .2s; }
.th-spectrum .sb-4 { animation-delay: .3s; }
.th-spectrum .sb-5 { animation-delay: .4s; }
.th-spectrum .sb-6 { animation-delay: .5s; }
@keyframes th-sb-bounce {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(0.4); }
}

/* unknown classification: orange/danger callout text */
.th-threat[data-state="unknown"] .th-call-cls,
.th-threat[data-state="unknown"] .th-call-freq { fill: var(--danger); }

/* ── Jam waves emanating from center ── */
.th-jam-waves { opacity: 0; transition: opacity .25s; }
.th-jam-waves.is-active { opacity: 1; }
.th-jam-waves .jw {
  animation: th-jam-expand 1.4s ease-out infinite;
  transform-origin: 450px 300px;
  transform-box: view-box;
}
.th-jam-waves .jw-2 { animation-delay: .45s; }
.th-jam-waves .jw-3 { animation-delay: .9s; }
@keyframes th-jam-expand {
  0%   { r: 50;  opacity: 0; stroke-width: 1.8; }
  20%  { opacity: 0.9; }
  100% { r: 140; opacity: 0; stroke-width: 0.4; }
}

/* ── Interceptor ── */
.th-interceptor { transition: opacity .15s; }
.th-interceptor[data-state="hidden"] { opacity: 0; }
.th-interceptor[data-state="flying"] { opacity: 1; }
.th-interceptor .ti-rotor {
  animation: th-rotor 0.35s linear infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes th-rotor {
  to { transform: rotate(360deg); }
}

/* ── Blast ── */
.th-blast circle { opacity: 0; r: 2; }
.th-blast.is-active circle {
  animation: th-blast 1.2s cubic-bezier(.22,1,.36,1) forwards;
  transform-box: fill-box; transform-origin: center;
}
.th-blast.is-active circle:nth-child(2) { animation-delay: .1s; }
@keyframes th-blast {
  0%   { r: 2;  opacity: 1; stroke-width: 3; }
  100% { r: 50; opacity: 0; stroke-width: 0.4; }
}

/* ── Asset (hex bunker) ── */
.th-asset .th-asset-rect,
.th-asset .th-asset-hex,
.th-asset .th-asset-core { transition: fill .3s, stroke .3s; }

/* aura ring breathing around the bunker */
.th-asset-aura {
  animation: th-asset-aura 3.4s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes th-asset-aura {
  0%, 100% { opacity: 0.18; r: 36; }
  50%      { opacity: 0.5;  r: 44; }
}

/* breach: hex glows red, core flips inverted */
.th-asset.is-breached .th-asset-hex {
  fill: color-mix(in oklab, var(--danger) 30%, var(--bg-2));
  stroke: var(--danger);
}
.th-asset.is-breached .th-asset-rect {
  fill: var(--danger);
  stroke: var(--danger);
  animation: th-asset-hit 0.5s ease-out;
  transform-box: fill-box; transform-origin: center;
}
.th-asset.is-breached .th-asset-core { fill: var(--ink); }
.th-asset.is-breached .th-asset-aura {
  animation: th-asset-aura-breach 0.5s ease-out 3;
}
@keyframes th-asset-aura-breach {
  0%   { opacity: 0.9; r: 38; stroke: var(--danger); }
  100% { opacity: 0;   r: 90; stroke: var(--danger); }
}
@keyframes th-asset-hit {
  0%   { transform: scale(1.6); }
  100% { transform: scale(1); }
}

.th-breach-flash { transition: opacity .3s; }
.th-breach-flash.is-active { animation: th-breach-flash 2.4s ease-out forwards; }
@keyframes th-breach-flash {
  0%   { opacity: 0; }
  10%  { opacity: 0.45; }
  100% { opacity: 0; }
}
.th-breach-banner { transition: opacity .25s; }
.th-breach-banner.is-active { animation: th-banner 2.4s ease-out forwards; }
@keyframes th-banner {
  0%       { opacity: 0; }
  10%, 80% { opacity: 1; }
  100%     { opacity: 0; }
}

/* ── Toggle DISARMED + ENGAGING ── */
.t-toggle.is-disarmed {
  border-color: var(--muted-2) !important;
  background: var(--bg-2) !important;
  opacity: 0.6;
  transform: none !important;
}
.t-toggle.is-disarmed::before { display: none; }
.t-toggle.is-disarmed .t-num,
.t-toggle.is-disarmed .t-name,
.t-toggle.is-disarmed .t-range { color: var(--muted-2) !important; }
.t-toggle.is-disarmed .t-name { text-decoration: line-through; }
.t-toggle.is-disarmed::after {
  content: "DISARM";
  position: absolute;
  top: 6px; right: 10px;
  font-size: 9px; letter-spacing: 0.18em;
  color: var(--danger);
}

.t-toggle.is-engaging {
  border-color: var(--accent) !important;
  background: var(--surface-2) !important;
  box-shadow: 0 0 0 1px var(--accent), 0 16px 36px -22px var(--accent);
  transform: translateX(6px);
}
.t-toggle.is-engaging::before { transform: scaleY(1); transform-origin: top; }

/* deprecate old locked styling (replaced by armed/disarmed) */
.t-toggle.locked { box-shadow: none; }
.t-toggle.locked::after { content: none; }

/* telemetry strip overlaid bottom-left */
.theatre-telemetry {
  position: absolute;
  left: 18px; right: 18px; bottom: 18px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
}
.tel-cell {
  padding: 12px 16px;
  border-right: 1px solid var(--line);
  font-family: 'IBM Plex Mono', monospace;
  display: flex; flex-direction: column; gap: 4px;
}
.tel-cell:last-child { border-right: 0; }
.tel-cell i {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.tel-cell b {
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.tel-cell--live b {
  color: var(--ok);
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px;
  letter-spacing: 0.12em;
  transition: color .25s;
}
.tel-cell--live .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
  animation: pulse-dot 1.6s ease-out infinite;
  transition: background .25s, box-shadow .25s;
}
/* status levels (set on the b element via JS) */
.tel-cell--live b[data-level="engaging"] { color: var(--accent); }
.tel-cell--live b[data-level="engaging"] .dot { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.tel-cell--live b[data-level="warning"]  { color: #e2b878; }
.tel-cell--live b[data-level="warning"] .dot { background: #e2b878; box-shadow: 0 0 8px #e2b878; }
.tel-cell--live b[data-level="breach"]   { color: var(--danger); }
.tel-cell--live b[data-level="breach"]  .dot { background: var(--danger); box-shadow: 0 0 8px var(--danger); animation-duration: 0.6s; }
.tel-cell--live b[data-level="ok"]       { color: var(--ok); }

.theatre-legend {
  margin-top: 36px;
  max-width: 900px;
  font-size: 17px;
  color: var(--muted);
  line-height: 1.55;
}
.theatre-legend em { color: var(--accent); font-style: normal; }

@media (max-width: 1100px) {
  .theatre { grid-template-columns: 1fr; }
  .theatre-rail { flex-direction: row; flex-wrap: wrap; }
  .t-toggle { flex: 1 1 calc(50% - 5px); }
  .theatre-canvas { min-height: 420px; }
  .theatre-telemetry { grid-template-columns: repeat(2, 1fr); }
  .tel-cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .tel-cell:nth-child(2n) { border-right: 0; }
}

/* ────────── PROOF / STATS ────────── */

.proof {
  background: color-mix(in oklab, var(--surface) 35%, var(--bg));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.stat-tile {
  padding: 40px 36px;
  border-right: 1px solid var(--line);
}
.stat-tile:last-child { border-right: 0; }
.stat-tile .num {
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(80px, 9vw, 156px);
  line-height: 0.88;
  letter-spacing: -0.025em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
}
.stat-tile .num .unit {
  font-size: 0.4em;
  margin-left: 12px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0;
}
.stat-tile .lbl {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 18px;
}
.stat-tile .note {
  font-size: 16px;
  color: var(--ink-2);
  margin-top: 16px;
  max-width: 360px;
  line-height: 1.55;
}

.proof-quote {
  margin-top: 80px;
  padding: 36px 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  font-family: 'Saira Condensed', sans-serif;
  font-size: clamp(24px, 2vw, 36px);
  line-height: 1.25;
  max-width: 1300px;
}
.proof-quote em { color: var(--accent); font-style: normal; }

/* ────────── CLIMATE ────────── */

.climate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.climate-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 36px 32px;
  display: flex; flex-direction: column;
  gap: 22px;
  transition: transform .35s cubic-bezier(.22,1,.36,1), border-color .25s;
}
.climate-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.climate-card .env-icon {
  width: 88px; height: 44px;
  color: var(--accent);
}
.climate-card .kicker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.climate-card h4 {
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 600; font-size: 30px;
  line-height: 1.1; margin: 0;
}
.climate-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.climate-card li {
  padding-left: 18px; position: relative;
  font-size: 15px; color: var(--ink-2); line-height: 1.5;
}
.climate-card li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 8px; height: 1px; background: var(--accent);
}

/* ────────── CTA ────────── */

.cta-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.cta-section::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 80% 100%, color-mix(in oklab, var(--accent) 18%, transparent) 0%, transparent 70%);
  pointer-events: none;
}
.cta-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  align-items: center;
}
.cta-h {
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(54px, 6vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.012em;
  margin: 0 0 32px;
}
.cta-h em { color: var(--accent); font-style: normal; }
.cta-h .small {
  display: block;
  font-size: 0.32em;
  color: var(--muted);
  margin-top: 28px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.lang-cards { display: flex; flex-direction: column; gap: 14px; }
.lang-card {
  display: grid;
  grid-template-columns: 76px 1fr 32px;
  gap: 24px;
  align-items: center;
  padding: 26px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: transform .25s, border-color .25s, background .25s;
}
.lang-card:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  transform: translateX(-4px);
}
.lang-card .code {
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 700; font-size: 44px;
  color: var(--accent); line-height: 1;
}
.lang-card .name {
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 600; font-size: 26px; line-height: 1.05;
}
.lang-card .desc {
  font-size: 14px; color: var(--muted); margin-top: 4px;
}
.lang-card .arr { font-size: 22px; color: var(--muted); transition: transform .25s, color .25s; }
.lang-card:hover .arr { transform: translateX(6px); color: var(--accent); }

/* ────────── FOOTER ────────── */

footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  background: var(--bg-2);
}
footer .row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
footer .col h5 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 16px;
  font-weight: 500;
}
footer .col p, footer .col a {
  font-size: 15px;
  color: var(--ink-2);
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  transition: color .15s;
}
footer .col a:hover { color: var(--accent); }
footer .brand {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 22px;
}
footer .brand-mark {
  width: 28px; height: 28px;
  border: 1.5px solid var(--ink);
  position: relative;
}
footer .brand-mark::after {
  content:""; position:absolute; inset:5px; background:var(--accent);
}
footer .brand-text {
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.06em;
}
footer .legal {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex; justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ────────── Counter style ────────── */

[data-counter] { font-variant-numeric: tabular-nums; }

/* ────────── Reduced motion ────────── */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; }
  .hero .sub, .hero .ctas, .hero-meta { opacity: 1; transform: none; }
}

/* ────────── Responsive ────────── */

@media (max-width: 1100px) {
  .container { padding: 0 32px; }
  .hero-content { padding: 64px 0 40px; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
  .hero-meta .strip:nth-child(2) { border-right: 0; }
  .hero-meta .strip:nth-child(1), .hero-meta .strip:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .layers-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .pt-large, .pt-med, .pt-tall, .pt-wide, .pt-1, .pt-2, .pt-3 {
    grid-column: span 2; grid-row: auto; min-height: 360px;
  }
  .climate-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-tile { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat-tile:last-child { border-bottom: 0; }
  .cta-grid { grid-template-columns: 1fr; gap: 48px; }
  footer .row { grid-template-columns: 1fr 1fr; }
  .nav .links { display: none; }
  .nav-live { display: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  section { padding: 80px 0; }
  .layers-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .pt-large, .pt-med, .pt-tall, .pt-wide, .pt-1, .pt-2, .pt-3 {
    grid-column: span 1; min-height: 220px;
  }
  footer .row { grid-template-columns: 1fr; }
  footer .legal { flex-direction: column; gap: 12px; }
  .hero-meta { grid-template-columns: 1fr; }
  .hero-meta .strip { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px 20px; }
  .hero-meta .strip:last-child { border-bottom: 0; }
}
