/* ==========================================================================
   MachVizyon — design system + site styles
   Dark industrial AI. Tokens first, then base, components, sections.
   ========================================================================== */

@property --s { syntax: '<number>'; inherits: true; initial-value: 1; }
@property --p { syntax: '<number>'; inherits: true; initial-value: 0; }

:root {
  /* Surfaces */
  --bg: #05070c;
  --bg-1: #080b12;
  --bg-2: #0b101a;
  --bg-3: #101725;
  --glass: rgba(14, 20, 32, 0.62);
  --glass-strong: rgba(10, 14, 23, 0.86);

  /* Lines */
  --line: rgba(160, 190, 255, 0.09);
  --line-2: rgba(160, 190, 255, 0.16);
  --line-3: rgba(160, 190, 255, 0.28);

  /* Text */
  --text: #f3f6fb;
  --text-2: #c9d2e0;
  --muted: #8f9bb0;
  --dim: #5f6b80;

  /* Accent */
  --blue: #2e7bff;
  --blue-2: #5a9bff;
  --blue-deep: #1450c8;
  --cyan: #45e3ff;
  --green: #35e08f;
  --amber: #ffb547;
  --red: #ff4f61;

  /* AI overlay states */
  --ai: var(--cyan);
  --ai-ok: var(--green);
  --ai-warn: var(--amber);
  --ai-alert: var(--red);

  /* Type */
  --font: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  /* Layout */
  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1320px;
  --nav-h: 68px;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;

  /* Elevation */
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--line);
  --glow: 0 0 0 1px rgba(46, 123, 255, 0.35), 0 10px 40px -10px rgba(46, 123, 255, 0.45);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  color-scheme: dark;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(46, 123, 255, 0.45); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: clamp(96px, 14vw, 180px) 0; }
.section--tight { padding: clamp(72px, 10vw, 120px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-2);
}
.eyebrow::before {
  content: ""; width: 18px; height: 1px; background: currentColor; opacity: .8;
}
.eyebrow--plain::before { display: none; }

.h-display {
  font-size: clamp(2.6rem, 6.6vw, 6.4rem);
  line-height: 0.98; letter-spacing: -0.045em; font-weight: 600;
}
.h-1 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1.02; letter-spacing: -0.04em; font-weight: 600;
}
.h-2 {
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.06; letter-spacing: -0.035em; font-weight: 600;
}
.h-3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
.lede { font-size: clamp(1.05rem, 1.35vw, 1.25rem); line-height: 1.6; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.grad-text {
  background: linear-gradient(100deg, #ffffff 0%, #bcd4ff 35%, var(--blue-2) 70%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dim-text { color: var(--dim); }

.section-head { max-width: 860px; margin-bottom: clamp(48px, 7vw, 88px); }
.section-head .eyebrow { margin-bottom: 22px; }
.section-head .lede { margin-top: 22px; }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head--center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  --bh: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--bh); padding: 0 24px; border-radius: 999px;
  font-size: 0.96rem; font-weight: 550; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform .35s var(--ease), background-color .25s, box-shadow .35s var(--ease), border-color .25s, color .25s;
  will-change: transform;
}
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 12px 34px -12px rgba(46,123,255,.8);
}
.btn--primary:hover { background: #3a86ff; transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 18px 44px -12px rgba(46,123,255,.95); }
.btn--ghost {
  background: rgba(255,255,255,0.04); color: var(--text);
  box-shadow: 0 0 0 1px var(--line-2) inset;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn--ghost:hover { background: rgba(255,255,255,0.08); box-shadow: 0 0 0 1px var(--line-3) inset; }
.btn--sm { --bh: 40px; padding: 0 18px; font-size: 0.88rem; }
.btn--lg { --bh: 58px; padding: 0 30px; font-size: 1.02rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--blue-2); font-weight: 550; font-size: 0.95rem;
}
.link-arrow svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 12px; border-radius: 999px;
  font-size: 0.8rem; color: var(--text-2);
  background: rgba(255,255,255,0.035); box-shadow: 0 0 0 1px var(--line) inset;
  white-space: nowrap;
}
.chip--mono { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); flex: none; }
.dot--blue { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.dot--red { background: var(--red); box-shadow: 0 0 10px var(--red); }
.dot.pulse { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), -webkit-backdrop-filter .4s, backdrop-filter .4s, transform .5s var(--ease);
}
.nav.is-scrolled {
  background: rgba(6, 9, 15, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.12rem; letter-spacing: -0.03em; }
.logo svg { width: 28px; height: 28px; flex: none; }
.logo b { font-weight: 600; color: var(--blue-2); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  font-size: 0.9rem; color: var(--text-2); transition: color .2s, background-color .2s;
}
.nav-links a:hover, .nav-links a.is-active { color: #fff; background: rgba(255,255,255,0.06); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-burger { display: none; width: 44px; height: 44px; border-radius: 50%; position: relative; }
.nav-burger span {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: #fff; border-radius: 2px;
  transition: transform .45s var(--ease), top .45s var(--ease), opacity .3s;
}
.nav-burger span:nth-child(1) { top: 17px; }
.nav-burger span:nth-child(2) { top: 25px; }
.menu-open .nav-burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .nav-burger span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99; padding: calc(var(--nav-h) + 28px) var(--gutter) 40px;
  background: rgba(5, 7, 12, 0.94);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s linear .45s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.mobile-menu ul { list-style: none; }
.mobile-menu li { overflow: hidden; border-bottom: 1px solid var(--line); }
.mobile-menu li a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; font-size: 2rem; font-weight: 550; letter-spacing: -0.035em;
  transform: translateY(100%); transition: transform .6s var(--ease);
}
.mobile-menu li a span { font-family: var(--mono); font-size: .75rem; color: var(--dim); letter-spacing: .1em; }
.menu-open .mobile-menu li a { transform: none; }
.menu-open .mobile-menu li:nth-child(2) a { transition-delay: .04s; }
.menu-open .mobile-menu li:nth-child(3) a { transition-delay: .08s; }
.menu-open .mobile-menu li:nth-child(4) a { transition-delay: .12s; }
.menu-open .mobile-menu li:nth-child(5) a { transition-delay: .16s; }
.menu-open .mobile-menu li:nth-child(6) a { transition-delay: .2s; }
.mobile-menu .btn { width: 100%; }
.mobile-menu-foot { display: grid; gap: 18px; }
.mobile-menu-foot p { font-family: var(--mono); font-size: .76rem; color: var(--dim); letter-spacing: .06em; }
body.menu-open { overflow: hidden; }

/* ==========================================================================
   AI OVERLAY SYSTEM (reusable)
   A .vstage holds media + layers. Children are positioned in % of the
   source frame using --x --y --w --h.
   ========================================================================== */
.vstage {
  position: relative; overflow: hidden; background: #000;
  aspect-ratio: var(--ar, 16 / 9);
  container-type: inline-size;
}
.vstage .vimg, .vstage picture, .vstage video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.vstage--cover { position: absolute; aspect-ratio: auto; background: transparent; overflow: visible; }
.vlayer { position: absolute; inset: 0; pointer-events: none; }
.vlayer > * { position: absolute; }

.ai-box {
  left: calc(var(--x) * 1%); top: calc(var(--y) * 1%);
  width: calc(var(--w) * 1%); height: calc(var(--h) * 1%);
  --c: var(--ai);
  border: 1.5px solid color-mix(in srgb, var(--c) 90%, transparent);
  background: color-mix(in srgb, var(--c) 6%, transparent);
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 0 18px -4px color-mix(in srgb, var(--c) 60%, transparent);
  transition: opacity .5s var(--ease), transform .6s var(--ease), clip-path .9s var(--ease);
}
.ai-box::before, .ai-box::after {
  content: ""; position: absolute; width: 10px; height: 10px; border-color: var(--c); border-style: solid;
}
.ai-box::before { left: -3px; top: -3px; border-width: 3px 0 0 3px; }
.ai-box::after { right: -3px; bottom: -3px; border-width: 0 3px 3px 0; }
.ai-box.is-ok { --c: var(--ai-ok); }
.ai-box.is-warn { --c: var(--ai-warn); }
.ai-box.is-alert { --c: var(--ai-alert); }
.ai-box.is-blue { --c: var(--blue-2); }

.ai-label {
  position: absolute; left: -1.5px; bottom: 100%; margin-bottom: 4px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 7px; border-radius: 3px;
  background: color-mix(in srgb, var(--c) 92%, #000);
  color: #001018; font-family: var(--mono); font-weight: 600;
  font-size: clamp(8px, calc(1.05cqi / var(--s, 1)), 12px); line-height: 1.2;
  letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
}
.ai-label i { font-style: normal; opacity: .62; font-weight: 500; }
.ai-label--in { bottom: auto; top: 4px; left: 4px; margin: 0; }
.ai-label--below { bottom: auto; top: 100%; margin: 4px 0 0; }
.ai-box.is-alert .ai-label, .ai-box.is-blue .ai-label { color: #fff; }

.ai-zone {
  inset: 0; width: 100%; height: 100%;
  overflow: visible;
}
.ai-zone polygon { fill: rgba(53, 224, 143, 0.12); stroke: var(--ai-ok); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ai-zone.is-alert polygon { fill: rgba(255, 79, 97, 0.12); stroke: var(--ai-alert); }
.ai-zone.is-cyan polygon { fill: rgba(69, 227, 255, 0.08); stroke: var(--ai); stroke-dasharray: 6 5; }
.ai-zone line, .ai-zone .cline { stroke: var(--amber); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-dasharray: 8 6; }
.ai-zone .trail { fill: none; stroke: var(--cyan); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 3 5; opacity: .9; }
.ai-zone .trail--b { stroke: var(--blue-2); }
.ai-zone circle { fill: var(--cyan); }

.ai-tag {
  left: calc(var(--x) * 1%); top: calc(var(--y) * 1%);
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 8px; border-radius: 4px;
  background: rgba(3, 8, 14, 0.78); color: #e9f7ff;
  box-shadow: 0 0 0 1px rgba(69, 227, 255, 0.35) inset;
  font-family: var(--mono); font-size: clamp(8px, calc(1.05cqi / var(--s, 1)), 12px); font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.ai-tag.is-ok { box-shadow: 0 0 0 1px rgba(53, 224, 143, .45) inset; color: #c9ffe4; }
.ai-tag.is-alert { box-shadow: 0 0 0 1px rgba(255, 79, 97, .6) inset; color: #ffd5da; background: rgba(40, 4, 10, .78); }
.ai-tag.is-warn { box-shadow: 0 0 0 1px rgba(255, 181, 71, .55) inset; color: #ffe6bf; }
.ai-tag--osd { background: transparent; box-shadow: none; color: rgba(255,255,255,.88); text-shadow: 0 1px 2px #000; -webkit-backdrop-filter: none; backdrop-filter: none; letter-spacing: .1em; }

.ai-panel {
  left: calc(var(--x) * 1%); top: calc(var(--y) * 1%);
  min-width: calc(var(--w, 22) * 1%);
  padding: clamp(6px, 1.1cqi, 14px) clamp(8px, 1.3cqi, 16px);
  border-radius: 6px; background: rgba(3, 8, 14, 0.82);
  box-shadow: 0 0 0 1px rgba(69, 227, 255, 0.28) inset, 0 12px 30px -10px rgba(0,0,0,.6);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-family: var(--mono); color: #eaf7ff;
  font-size: clamp(8px, calc(1.1cqi / var(--s, 1)), 13px); letter-spacing: 0.06em; text-transform: uppercase;
}
.ai-panel .row { display: flex; justify-content: space-between; gap: 1.6em; line-height: 1.75; }
.ai-panel .row span:first-child { color: rgba(200, 225, 255, 0.55); }
.ai-panel .big { font-size: 2.3em; line-height: 1; font-weight: 600; letter-spacing: -0.02em; color: #fff; font-variant-numeric: tabular-nums; }
.ai-panel .hl { color: var(--cyan); }
.ai-panel .ok { color: var(--green); }
.ai-panel .warn { color: var(--amber); }
.ai-panel .bad { color: var(--red); }

.ai-scan {
  left: 0; right: 0; top: 0; height: 18%;
  background: linear-gradient(180deg, transparent 0%, rgba(69, 227, 255, 0.0) 40%, rgba(69, 227, 255, 0.18) 92%, rgba(170, 245, 255, .9) 100%);
  border-bottom: 1px solid rgba(170, 245, 255, .9);
  transform: translateY(-110%); opacity: 0;
}
.ai-scan.run { animation: scan 1.6s var(--ease-io) forwards; }
@keyframes scan {
  0% { transform: translateY(-110%); opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(560%); opacity: 0; }
}

.osd-rec { display: inline-flex; align-items: center; gap: 6px; }
.osd-rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); animation: pulse 1.4s infinite; }

/* grain + scanlines */
.fx-grain::after {
  content: ""; position: absolute; inset: -50%; pointer-events: none; z-index: 2; opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-4%, 3%); }
  50% { transform: translate(3%, -2%); } 75% { transform: translate(-2%, -4%); } 100% { transform: translate(0, 0); }
}
.fx-scan::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: .22;
  background: repeating-linear-gradient(180deg, rgba(0,0,0,.5) 0 1px, transparent 1px 3px);
}

/* Reveal states for overlay children: hidden until parent gets .ai-on */
[data-ai] { opacity: 0; }
.ai-on [data-ai] { opacity: 1; }
.ai-on .ai-box[data-ai] { animation: boxIn .7s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes boxIn {
  0% { opacity: 0; transform: scale(1.18); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: scale(1); }
}
.ai-on .jitter { animation: boxIn .7s var(--ease) both, jitter 4.5s ease-in-out infinite; animation-delay: var(--d, 0s), calc(var(--d, 0s) + .8s); }
@keyframes jitter {
  0%, 100% { translate: 0 0; } 25% { translate: .3% -.2%; } 50% { translate: -.2% .3%; } 75% { translate: .2% .1%; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden;
  background: #000; isolation: isolate;
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
  transform: scale(calc(1.06 + var(--hp, 0) * 0.08)); transform-origin: 60% 40%;
  will-change: transform;
}
.hero-media .vimg {
  filter: grayscale(.9) contrast(1.08) brightness(.72);
  transition: filter 1.6s var(--ease);
}
.hero.is-ai .hero-media .vimg { filter: grayscale(.35) saturate(.9) contrast(1.06) brightness(.58); }
.hero-tint {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: radial-gradient(120% 90% at 65% 35%, rgba(46, 123, 255, .16), transparent 60%);
  mix-blend-mode: screen; transition: opacity 1.6s var(--ease);
}
.hero.is-ai .hero-tint { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5,7,12,.85) 0%, rgba(5,7,12,0) 22%),
    linear-gradient(0deg, var(--bg) 0%, rgba(5,7,12,.86) 20%, rgba(5,7,12,0) 58%),
    linear-gradient(90deg, rgba(5,7,12,.92) 0%, rgba(5,7,12,.6) 32%, rgba(5,7,12,0) 62%);
}
.hero-layer { z-index: 2; }
.hero-content {
  position: absolute; z-index: 4; inset: auto 0 0 0;
  padding-bottom: clamp(40px, 9vh, 110px);
  opacity: calc(1 - var(--hp, 0) * 1.6);
  transform: translateY(calc(var(--hp, 0) * -60px));
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; }
.hero-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 26px; }
.hero h1 { font-size: clamp(2.9rem, 7.2vw, 7.2rem); line-height: .94; letter-spacing: -0.05em; font-weight: 600; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero h1 .line { white-space: nowrap; }
.hero-sub { text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
@keyframes rise { to { transform: none; } }
.hero-sub { margin-top: 26px; max-width: 560px; font-size: clamp(1.02rem, 1.3vw, 1.2rem); color: var(--text-2); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-fade { opacity: 0; transform: translateY(16px); animation: fadeUp 1s var(--ease) forwards; animation-delay: var(--d, .4s); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.hero-pipe {
  display: flex; align-items: center; gap: 0;
  padding: 14px 18px; border-radius: 14px;
  background: rgba(8, 12, 20, 0.55); box-shadow: 0 0 0 1px var(--line-2) inset;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
}
.hero-pipe .st { display: flex; align-items: center; gap: 8px; color: var(--dim); transition: color .6s; }
.hero-pipe .st i { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); transition: background-color .6s, box-shadow .6s; }
.hero-pipe .st.on { color: #fff; }
.hero-pipe .st.on i { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.hero-pipe .bar { width: 44px; height: 1px; margin: 0 12px; background: var(--line-2); position: relative; overflow: hidden; }
.hero-pipe .bar::after { content: ""; position: absolute; inset: 0; background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); }
.hero-pipe .bar.on::after { transform: scaleX(1); }

.hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.hero-hud { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.hero-hud .osd-rec { margin-right: 8px; }
.hero-mode { transition: color .5s; }
.hero.is-ai .hero-mode { color: var(--cyan); }
.scroll-cue {
  position: absolute; z-index: 4; left: 50%; bottom: 18px; transform: translateX(-50%);
  width: 22px; height: 34px; border-radius: 12px; box-shadow: 0 0 0 1.5px var(--line-3) inset;
  opacity: calc(.8 - var(--hp, 0) * 3);
}
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 2px; height: 7px; margin-left: -1px; border-radius: 2px; background: #fff; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

/* ==========================================================================
   TRUST STRIP
   ========================================================================== */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-item { padding: 26px 24px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.strip-item:first-child { border-left: 0; padding-left: 0; }
.strip-item b { font-size: 1.02rem; font-weight: 600; letter-spacing: -.02em; }
.strip-item span { font-size: .86rem; color: var(--muted); }

/* ==========================================================================
   WORD REVEAL STATEMENT
   ========================================================================== */
.statement { padding-top: clamp(110px, 16vw, 220px); padding-bottom: clamp(60px, 8vw, 110px); }
.statement p {
  font-size: clamp(2rem, 5.2vw, 5rem); line-height: 1.04; letter-spacing: -0.045em; font-weight: 600; max-width: 16ch;
}
[data-words] .w { opacity: .14; transition: opacity .35s linear; }
[data-words] .w.on { opacity: 1; }
[data-words] .w.accent.on { color: var(--blue-2); }

/* ==========================================================================
   STORY (sticky camera → intelligence)
   ========================================================================== */
.story-track { position: relative; height: 640vh; }
.story-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: grid; align-items: center;
  padding: calc(var(--nav-h) + 12px) 0 28px;
}
.story-grid { display: grid; grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.7fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.story-copy { position: relative; min-height: 300px; }
.story-step {
  position: absolute; inset: 0 0 auto 0;
  opacity: 0; transform: translateY(24px); filter: blur(6px);
  transition: opacity .6s var(--ease), transform .8s var(--ease), filter .6s var(--ease);
  pointer-events: none;
}
.story-step.on { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.story-step .num { font-family: var(--mono); font-size: .76rem; letter-spacing: .16em; color: var(--blue-2); text-transform: uppercase; }
.story-step h3 { margin: 16px 0 14px; font-size: clamp(1.7rem, 3vw, 2.8rem); line-height: 1.04; letter-spacing: -.04em; font-weight: 600; }
.story-step p { color: var(--muted); font-size: 1.04rem; line-height: 1.6; max-width: 420px; }

.story-rail { display: flex; gap: 6px; margin-bottom: 16px; }
.story-rail button {
  flex: 1; text-align: left; padding: 10px 0 0; position: relative;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim);
  transition: color .4s;
}
.story-rail button::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--line-2); }
.story-rail button::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); box-shadow: 0 0 10px var(--cyan); }
.story-rail button.on { color: #fff; }
.story-rail button.on::after { transform: scaleX(1); }

.story-frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow); background: #000;
}
.story-cam {
  --s: 1;
  transform-origin: var(--ox, 50%) var(--oy, 50%);
  transform: scale(var(--s));
  transition: --s 1.2s var(--ease), transform-origin 1.2s var(--ease), transform 1.2s var(--ease);
}
.story-cam .vimg { filter: grayscale(.95) brightness(.78) contrast(1.05); transition: filter 1s var(--ease); }
.st.s1 .story-cam .vimg { filter: grayscale(.45) brightness(.62) contrast(1.06); }
.story-frame .lyr { opacity: 0; transition: opacity .6s var(--ease); }
.st.s1 .lyr-detect, .st.s2 .lyr-track, .st.s3 .lyr-count, .st.s4 .lyr-decide, .st.s5 .lyr-alert { opacity: 1; }
.st.s3 .lyr-detect .is-person { opacity: .25; }
.lyr-detect .ai-box { transform: scale(1.12); opacity: 0; transition: transform .7s var(--ease), opacity .5s var(--ease); transition-delay: var(--d, 0s); }
.st.s1 .lyr-detect .ai-box { transform: none; opacity: 1; }
.st.s3 .lyr-detect .ai-box.is-person { opacity: .25; }
.lyr-track .id { opacity: 0; transition: opacity .4s; }
.st.s2 .lyr-track .id { opacity: 1; }
.lyr-track .trail { stroke-dashoffset: 400; stroke-dasharray: 400; transition: stroke-dashoffset 2s var(--ease); }
.st.s2 .lyr-track .trail { stroke-dashoffset: 0; }

.story-ui { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.story-osd { position: absolute; left: 0; top: 0; right: 0; padding: 12px 14px 34px; display: flex; justify-content: space-between; gap: 10px; background: linear-gradient(180deg, rgba(0,0,0,.82), rgba(0,0,0,.55) 55%, transparent); }
.story-osd-b { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; text-align: right; font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.75); background: linear-gradient(0deg, rgba(0,0,0,.8), transparent); }
.st.s4 .story-osd-b, .st.s5 .story-osd-b { opacity: 0; }
.story-osd .ai-tag { position: static; }
.story-decision {
  position: absolute; right: 14px; bottom: 14px; width: min(300px, 46%);
  opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.st.s4 .story-decision { opacity: 1; transform: none; }
.story-decision .ai-panel { position: static; width: 100%; }
.story-alerts { position: absolute; right: 14px; top: 56px; width: min(320px, 50%); display: grid; gap: 8px; }
.alert-card {
  display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start;
  padding: 10px 12px; border-radius: 8px;
  background: rgba(6, 10, 18, 0.88); box-shadow: 0 0 0 1px var(--line-2) inset, 0 12px 30px -12px #000;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: .78rem; line-height: 1.4;
  opacity: 0; transform: translateX(24px); transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.alert-card .ico { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: rgba(53, 224, 143, .15); color: var(--green); font-family: var(--mono); font-size: .7rem; }
.alert-card.is-alert .ico { background: rgba(255, 79, 97, .15); color: var(--red); }
.alert-card.is-info .ico { background: rgba(69, 227, 255, .14); color: var(--cyan); }
.alert-card b { display: block; font-weight: 600; font-size: .8rem; }
.alert-card small { color: var(--muted); font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; }
.st.s5 .alert-card { opacity: 1; transform: none; }
.st.s5 .alert-card:nth-child(2) { transition-delay: .25s; }
.st.s5 .alert-card:nth-child(3) { transition-delay: .5s; }

/* ==========================================================================
   PLATFORM PIPELINE
   ========================================================================== */
.pipeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 20px; }
.pipe-line { position: absolute; left: 12.5%; right: 12.5%; top: 64px; height: 2px; background: var(--line-2); border-radius: 2px; }
.pipe-line::before {
  content: ""; position: absolute; inset: 0; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(var(--p)); transform-origin: left;
  box-shadow: 0 0 18px rgba(69, 227, 255, .6);
}
.pipe-line::after {
  content: ""; position: absolute; top: -4px; width: 10px; height: 10px; border-radius: 50%;
  left: calc(var(--p) * 100%); margin-left: -5px; background: #fff;
  box-shadow: 0 0 0 4px rgba(69, 227, 255, .25), 0 0 24px var(--cyan);
  opacity: calc(min(1, var(--p) * 20));
}
.pipe-stage { position: relative; text-align: center; padding: 0 clamp(8px, 1.5vw, 24px); }
.pipe-node {
  position: relative; z-index: 1; width: 128px; height: 128px; margin: 0 auto 30px; border-radius: 32px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-1));
  box-shadow: 0 0 0 1px var(--line-2) inset, 0 24px 60px -30px #000;
  transition: box-shadow .8s var(--ease), transform .8s var(--ease);
}
.pipe-node svg { width: 56px; height: 56px; color: var(--dim); transition: color .8s var(--ease); }
.pipe-stage.on .pipe-node { box-shadow: 0 0 0 1px rgba(69, 227, 255, .55) inset, 0 0 60px -14px rgba(46, 123, 255, .8); transform: translateY(-4px); }
.pipe-stage.on .pipe-node svg { color: #fff; }
.pipe-num { font-family: var(--mono); font-size: .74rem; letter-spacing: .16em; color: var(--dim); transition: color .6s; }
.pipe-stage.on .pipe-num { color: var(--cyan); }
.pipe-stage h3 { margin: 10px 0 10px; font-size: clamp(1.1rem, 1.6vw, 1.4rem); letter-spacing: -.025em; font-weight: 600; }
.pipe-stage p { color: var(--muted); font-size: .94rem; line-height: 1.55; max-width: 250px; margin: 0 auto; }
.pipe-node .pulse-ring { position: absolute; inset: -1px; border-radius: inherit; box-shadow: 0 0 0 1px var(--cyan); opacity: 0; }
.pipe-stage.on .pulse-ring { animation: ring 2.6s var(--ease) infinite; }
@keyframes ring { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.3); } }

.caps { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(80px, 10vw, 140px); border-top: 1px solid var(--line); }
.cap { padding: 34px 30px 34px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 36px 1fr; gap: 16px; }
.cap:not(:nth-child(3n+1)) { padding-left: 30px; border-left: 1px solid var(--line); }
.cap svg { width: 26px; height: 26px; color: var(--blue-2); margin-top: 2px; }
.cap h4 { font-size: 1.04rem; font-weight: 600; letter-spacing: -.015em; margin-bottom: 6px; }
.cap p { color: var(--muted); font-size: .92rem; line-height: 1.55; }

/* ==========================================================================
   3D SECTION
   ========================================================================== */
.v3d-track { position: relative; height: 300vh; }
.v3d-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.v3d-canvas { position: absolute; inset: 0; }
.v3d-canvas canvas { width: 100% !important; height: 100% !important; }
.v3d-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.v3d-label {
  position: absolute; left: 0; top: 0; will-change: transform;
  padding: 3px 7px; border-radius: 3px; white-space: nowrap;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  background: rgba(69, 227, 255, .92); color: #001018;
}
.v3d-label.is-ok { background: rgba(53, 224, 143, .92); }
.v3d-label.is-blue { background: rgba(90, 155, 255, .95); color: #fff; }
.v3d-label.is-ghost { background: rgba(4, 8, 14, .8); color: #dff6ff; box-shadow: 0 0 0 1px rgba(69,227,255,.4) inset; }
.v3d-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(5,7,12,0) 18%, rgba(5,7,12,0) 70%, var(--bg) 100%),
              linear-gradient(90deg, rgba(5,7,12,.94) 0%, rgba(5,7,12,.7) 30%, rgba(5,7,12,0) 50%); }
.v3d-copy { position: absolute; inset: 0; display: flex; align-items: center; pointer-events: none; }
.v3d-copy .wrap { pointer-events: none; }
.v3d-head { max-width: 520px; }
.v3d-head .h-1 { margin: 18px 0 18px; font-size: clamp(2rem, 3.8vw, 3.6rem); }
.v3d-head .lede { font-size: 1.02rem; }
.v3d-steps { margin-top: 26px; display: grid; gap: 2px; max-width: 420px; }
.v3d-step { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); opacity: .38; transition: opacity .5s var(--ease); }
.v3d-step.on { opacity: 1; }
.v3d-step span { font-family: var(--mono); font-size: .72rem; color: var(--cyan); letter-spacing: .1em; padding-top: 3px; }
.v3d-step b { display: block; font-weight: 600; font-size: 1.02rem; letter-spacing: -.015em; }
.v3d-step em { font-style: normal; color: var(--muted); font-size: .9rem; }
.v3d-fallback { position: absolute; inset: 0; display: none; }
.v3d-fallback img { width: 100%; height: 100%; object-fit: cover; opacity: .35; filter: grayscale(.4); }
.no-webgl .v3d-fallback { display: block; }
.v3d-hint { position: absolute; right: var(--gutter); bottom: 28px; font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; color: var(--dim); text-transform: uppercase; }

/* ==========================================================================
   USE CASES (What we see)
   ========================================================================== */
.uc { display: grid; grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.6fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.uc-list { list-style: none; border-top: 1px solid var(--line); }
.uc-list li { border-bottom: 1px solid var(--line); }
.uc-list button {
  width: 100%; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px;
  padding: 15px 4px; text-align: left; color: var(--muted);
  transition: color .3s, padding .4s var(--ease);
}
.uc-list button span { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; color: var(--dim); transition: color .3s; }
.uc-list button b { font-weight: 550; font-size: 1.02rem; letter-spacing: -.015em; }
.uc-list button em { font-style: normal; font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.uc-list button:hover { color: var(--text); }
.uc-list button[aria-selected="true"] { color: #fff; padding-left: 12px; }
.uc-list button[aria-selected="true"] span { color: var(--cyan); }
.uc-list .uc-group { padding: 22px 4px 10px; font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-2); border-bottom: 1px solid var(--line); }

.uc-viewer { min-width: 0; position: sticky; top: calc(var(--nav-h) + 24px); }
.uc-panel { display: none; }
.uc-panel.on { display: block; animation: panelIn .7s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.uc-media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.uc-media .vimg { transition: transform 6s linear; }
.uc-panel.on .uc-media .vimg { transform: scale(1.04); }
.uc-meta { position: absolute; z-index: 3; left: 14px; bottom: 12px; right: 14px; display: flex; justify-content: space-between; gap: 10px; pointer-events: none; }
.uc-meta .ai-tag { position: static; }
.uc-body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; margin-top: 28px; }
.uc-body h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -.035em; line-height: 1.08; font-weight: 600; margin-bottom: 12px; }
.uc-body p { color: var(--muted); }
.uc-body ul { list-style: none; display: grid; gap: 8px; align-content: start; }
.uc-body li { position: relative; padding-left: 20px; color: var(--text-2); font-size: .94rem; }
.uc-body li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border: 1.5px solid var(--cyan); border-radius: 2px; }
.uc-body .link-arrow { margin-top: 18px; }
.uc-tabs-sm { display: none; }

/* ==========================================================================
   PROJECTS / CASE STUDIES
   ========================================================================== */
.case {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 88px); align-items: start;
}
.case-copy { position: sticky; top: calc(var(--nav-h) + 40px); }
.case-tag { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.case-copy h3 { font-size: clamp(1.9rem, 3.4vw, 3rem); letter-spacing: -.04em; line-height: 1.04; font-weight: 600; }
.case-flow { margin-top: 34px; display: grid; }
.case-flow > div { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.case-flow dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-2); padding-top: 3px; }
.case-flow dd { color: var(--text-2); font-size: .98rem; line-height: 1.55; }
.case-media { display: grid; gap: 18px; }
.case-media figure { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); position: relative; background: #000; }
.case-media figcaption {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 14px 18px; background: var(--bg-1); border-top: 1px solid var(--line);
  font-size: .86rem; color: var(--muted);
}
.case-media figcaption b { color: var(--text); font-weight: 550; }

.bp-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin: clamp(100px, 12vw, 160px) 0 34px; }
.bp-nav { display: flex; gap: 8px; }
.bp-nav button { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-2) inset; display: grid; place-items: center; transition: background-color .25s; }
.bp-nav button:hover { background: rgba(255,255,255,.06); }
.bp-nav svg { width: 18px; height: 18px; }
.bp-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(560px, 82vw); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.bp-track::-webkit-scrollbar { display: none; }
.bp-card {
  scroll-snap-align: start; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); box-shadow: 0 0 0 1px var(--line) inset;
  display: flex; flex-direction: column;
}
.bp-card .vstage { border-radius: 0; }
.bp-card .vimg { transition: transform 1.2s var(--ease); }
.bp-card:hover .vimg { transform: scale(1.04); }
.bp-body { padding: 24px 26px 28px; display: grid; gap: 14px; }
.bp-body h4 { font-size: 1.3rem; font-weight: 600; letter-spacing: -.025em; }
.bp-body dl { display: grid; gap: 10px; }
.bp-body dl div { display: grid; grid-template-columns: 82px 1fr; gap: 12px; font-size: .9rem; }
.bp-body dt { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding-top: 3px; }
.bp-body dd { color: var(--text-2); }
.note { font-size: .8rem; color: var(--dim); margin-top: 18px; }

/* ==========================================================================
   CCTV WALL
   ========================================================================== */
.wall-section { background: radial-gradient(80% 60% at 50% 0%, rgba(46, 123, 255, .08), transparent 70%), var(--bg); }
.console {
  border-radius: var(--r-lg); overflow: hidden;
  background: #04060a; box-shadow: 0 0 0 1px var(--line-2), 0 60px 120px -50px rgba(0,0,0,.9), 0 0 120px -60px rgba(46,123,255,.5);
}
.console-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.console-bar .l, .console-bar .r { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.console-bar .brand { color: #fff; display: flex; align-items: center; gap: 8px; }
.console-body { display: grid; grid-template-columns: 1fr 300px; }
.wall { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
.cam { position: relative; background: #000; }
.cam .vimg { filter: saturate(.85) brightness(.82) contrast(1.05); }
.cam-osd { position: absolute; z-index: 3; left: 0; right: 0; top: 0; padding: 10px 12px; display: flex; justify-content: space-between; gap: 8px; background: linear-gradient(180deg, rgba(0,0,0,.75), transparent); }
.cam-osd .ai-tag { position: static; }
.cam-osd .t { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; color: rgba(255,255,255,.85); text-shadow: 0 1px 2px #000; }
.cam-osd .n { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; color: #fff; text-transform: uppercase; }
.cam-osd .n b { color: var(--cyan); font-weight: 600; margin-right: 6px; }
.cam:hover .vimg { filter: saturate(1) brightness(.92) contrast(1.05); }
.cam .vimg { transition: filter .4s; }
.events { border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: #05080d; contain: size; overflow: hidden; }
.events-head { padding: 14px 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.kpi { padding: 14px 16px; border-right: 1px solid var(--line); }
.kpi:nth-child(2n) { border-right: 0; }
.kpi:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.kpi small { display: block; font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.kpi b { display: block; margin-top: 4px; font-size: 1.5rem; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.events-list { list-style: none; overflow: hidden; flex: 1; position: relative; }
.events-list::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(0deg, #05080d, transparent); pointer-events: none; }
.events-list li { padding: 11px 16px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 10px; font-size: .8rem; line-height: 1.35; animation: evIn .6s var(--ease); }
.events-list li i { margin-top: 5px; }
.events-list li small { display: block; font-family: var(--mono); font-size: .64rem; letter-spacing: .06em; color: var(--dim); margin-top: 2px; }
@keyframes evIn { from { opacity: 0; transform: translateY(-10px); background: rgba(69,227,255,.06); } to { opacity: 1; transform: none; } }
.wall-note { margin-top: 18px; text-align: center; font-size: .82rem; color: var(--dim); }

/* ==========================================================================
   ARCHITECTURE
   ========================================================================== */
.arch { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.arch-stack { display: grid; gap: 0; perspective: 1400px; }
.layer {
  position: relative; width: 100%; text-align: left;
  display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 16px; align-items: center;
  padding: 18px 20px; border-radius: 14px;
  background: linear-gradient(90deg, rgba(255,255,255,.025), rgba(255,255,255,.01));
  box-shadow: 0 0 0 1px var(--line) inset;
  transition: background-color .35s, box-shadow .35s var(--ease), transform .45s var(--ease);
}
.layer + .layer { margin-top: 22px; }
.layer + .layer::before {
  content: ""; position: absolute; left: 46px; top: -22px; width: 2px; height: 22px;
  background: linear-gradient(180deg, var(--line-2), var(--line-3));
}
.layer .ln { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; color: var(--dim); }
.layer b { display: block; font-size: 1.02rem; font-weight: 600; letter-spacing: -.01em; text-transform: uppercase; font-family: var(--mono); letter-spacing: .08em; font-size: .86rem; }
.layer .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.layer .tags span { font-size: .76rem; color: var(--muted); padding: 3px 9px; border-radius: 999px; box-shadow: 0 0 0 1px var(--line) inset; }
.layer:hover, .layer.on { background: linear-gradient(90deg, rgba(46, 123, 255, .14), rgba(46, 123, 255, .03)); box-shadow: 0 0 0 1px rgba(90, 155, 255, .5) inset, 0 20px 50px -30px rgba(46, 123, 255, .9); transform: translateX(6px); }
.layer.on .ln { color: var(--cyan); }
.layer.on .tags span { color: var(--text-2); box-shadow: 0 0 0 1px var(--line-2) inset; }
.layer .flow { position: absolute; left: 45px; top: -22px; width: 4px; height: 22px; overflow: hidden; }
.layer .flow::after { content: ""; position: absolute; left: 0; width: 4px; height: 8px; border-radius: 2px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: drip 1.6s linear infinite; animation-delay: var(--fd, 0s); }
@keyframes drip { from { top: -8px; } to { top: 22px; } }
.arch-detail { position: sticky; top: calc(var(--nav-h) + 32px); }
.arch-card {
  border-radius: var(--r-lg); padding: clamp(26px, 3vw, 40px);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); box-shadow: 0 0 0 1px var(--line-2) inset, var(--shadow);
}
.arch-card .eyebrow { margin-bottom: 18px; }
.arch-card h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -.035em; line-height: 1.08; font-weight: 600; }
.arch-card p { color: var(--muted); margin-top: 14px; }
.arch-card .arch-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.arch-card [data-arch-body] { transition: opacity .3s; }
.arch-card.swap [data-arch-body] { opacity: 0; }

.deploy { margin-top: 26px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; box-shadow: 0 0 0 1px var(--line-2) inset; background: rgba(255,255,255,.02); }
.seg button { padding: 9px 16px; border-radius: 999px; font-size: .84rem; color: var(--muted); font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; transition: background-color .3s, color .3s; }
.seg button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.deploy-diagram { margin-top: 18px; display: grid; grid-template-columns: 1fr 34px 1fr; align-items: stretch; gap: 0; }
.dd-box { border-radius: 12px; padding: 16px; box-shadow: 0 0 0 1px var(--line) inset; transition: box-shadow .4s, background-color .4s; }
.dd-box small { font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.dd-box ul { list-style: none; margin-top: 8px; display: grid; gap: 6px; }
.dd-box li { font-size: .84rem; color: var(--dim); display: flex; align-items: center; gap: 8px; transition: color .4s; }
.dd-box li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--dim); transition: background-color .4s, box-shadow .4s; }
.dd-box li.on { color: var(--text); }
.dd-box li.on::before { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.dd-box.on { box-shadow: 0 0 0 1px rgba(90, 155, 255, .5) inset; background: rgba(46, 123, 255, .06); }
.dd-link { position: relative; }
.dd-link::before { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 1px; background: var(--line-3); }
.dd-link.on::before { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.deploy p { margin-top: 14px; color: var(--muted); font-size: .92rem; min-height: 3em; }

/* ==========================================================================
   EDGE AI
   ========================================================================== */
.edge { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.edge-points { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 40px; border-top: 1px solid var(--line); }
.edge-points li { padding: 18px 14px 18px 0; border-bottom: 1px solid var(--line); }
.edge-points li:nth-child(2n) { padding-left: 18px; border-left: 1px solid var(--line); }
.edge-points b { display: block; font-size: .98rem; font-weight: 600; letter-spacing: -.01em; }
.edge-points span { font-size: .86rem; color: var(--muted); }
.edge-vis {
  position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5 / 4;
  background:
    radial-gradient(60% 50% at 50% 50%, rgba(46, 123, 255, .14), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg-1));
  box-shadow: 0 0 0 1px var(--line-2) inset, var(--shadow);
}
.edge-vis::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 80%);
}
.edge-vis svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.edge-vis .site-box { fill: rgba(46, 123, 255, .04); stroke: rgba(90, 155, 255, .35); stroke-dasharray: 5 6; }
.edge-vis .node rect { fill: #0c1322; stroke: rgba(160, 190, 255, .28); }
.edge-vis .node.hot rect { stroke: rgba(69, 227, 255, .8); }
.edge-vis .node text { fill: #e8f1ff; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.edge-vis .node .sub { fill: #8f9bb0; font-size: 9.5px; letter-spacing: .08em; }
.edge-vis .wire { fill: none; stroke: rgba(160, 190, 255, .22); stroke-width: 1.5; }
.edge-vis .wire-glow { fill: none; stroke: url(#wireGrad); stroke-width: 2; stroke-dasharray: 40 400; animation: wire 3.2s linear infinite; }
@keyframes wire { from { stroke-dashoffset: 440; } to { stroke-dashoffset: 0; } }
.edge-vis .pkt { fill: #bff6ff; filter: url(#glow); }
.edge-vis .lbl { fill: #5f6b80; font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }

/* ==========================================================================
   VALUE
   ========================================================================== */
.value-statement { font-size: clamp(2.3rem, 6vw, 5.8rem); line-height: 1; letter-spacing: -0.05em; font-weight: 600; max-width: 14ch; }
.values { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: clamp(64px, 9vw, 120px); border-top: 1px solid var(--line); }
.value { padding: clamp(28px, 4vw, 48px) clamp(0px, 3vw, 40px) clamp(28px, 4vw, 48px) 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 48px 1fr; gap: 12px; }
.value:nth-child(2n) { padding-left: clamp(20px, 3vw, 40px); border-left: 1px solid var(--line); }
.value .vn { font-family: var(--mono); font-size: .72rem; color: var(--dim); letter-spacing: .1em; padding-top: 14px; }
.value h3 { font-size: clamp(1.8rem, 3.6vw, 3.2rem); letter-spacing: -.045em; line-height: 1.02; font-weight: 600; font-variant-numeric: tabular-nums; }
.value p { color: var(--muted); margin-top: 10px; font-size: 1rem; }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 88px); align-items: start; margin-top: clamp(100px, 12vw, 160px); padding-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line); }
.about p { color: var(--text-2); font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.6; }
.about p + p { margin-top: 18px; color: var(--muted); font-size: 1rem; }
.kw { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 80px); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-size: 1.08rem; font-weight: 550; letter-spacing: -.015em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary i { width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-2) inset; position: relative; flex: none; transition: transform .4s var(--ease), background-color .3s; }
.faq-list summary i::before, .faq-list summary i::after { content: ""; position: absolute; left: 8px; right: 8px; top: 12px; height: 1.5px; background: var(--text-2); }
.faq-list summary i::after { transform: rotate(90deg); transition: transform .4s var(--ease); }
.faq-list details[open] summary i { background: var(--blue); }
.faq-list details[open] summary i::after { transform: rotate(0); }
.faq-list details p { padding: 0 48px 24px 0; color: var(--muted); }

/* ==========================================================================
   FINAL CTA + CONTACT
   ========================================================================== */
.cta { position: relative; overflow: hidden; padding: clamp(120px, 16vw, 220px) 0 clamp(80px, 10vw, 140px); }
.cta-bg { position: absolute; inset: 0 0 auto 0; height: min(100%, 1100px); z-index: -1; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .16; filter: grayscale(.6) brightness(.6) blur(3px); transform: scale(1.04); }
.cta-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 30%, rgba(46, 123, 255, .22), transparent 65%), linear-gradient(180deg, var(--bg) 0%, rgba(5,7,12,.6) 40%, var(--bg) 100%); }
.cta h2 { font-size: clamp(2.4rem, 6.4vw, 6rem); line-height: .98; letter-spacing: -.05em; font-weight: 600; text-align: center; max-width: 15ch; margin: 0 auto; }
.cta .lede { text-align: center; margin: 26px auto 0; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }

.contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 80px); margin-top: clamp(80px, 10vw, 140px); align-items: start; }
.contact-info h3 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); letter-spacing: -.035em; line-height: 1.08; font-weight: 600; }
.contact-info > p { color: var(--muted); margin-top: 14px; }
.steps-mini { list-style: none; margin-top: 30px; display: grid; gap: 0; border-top: 1px solid var(--line); counter-reset: s; }
.steps-mini li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: .95rem; }
.steps-mini li::before { content: "0" counter(s); font-family: var(--mono); font-size: .72rem; color: var(--cyan); padding-top: 3px; }
.contact-lines { margin-top: 30px; display: grid; gap: 12px; }
.contact-lines a { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: .98rem; transition: color .2s; }
.contact-lines a:hover { color: #fff; }
.contact-lines svg { width: 18px; height: 18px; color: var(--blue-2); flex: none; }

.form {
  position: relative; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(16, 23, 37, .9), rgba(9, 13, 21, .9));
  box-shadow: 0 0 0 1px var(--line-2) inset, var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: grid; gap: 7px; margin-bottom: 16px; }
.form-group label { font-size: .8rem; font-weight: 500; color: var(--muted); letter-spacing: .01em; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; height: 50px; padding: 0 16px; border-radius: 10px; border: 0;
  background: rgba(0, 0, 0, .35); color: var(--text); font-size: .98rem;
  box-shadow: 0 0 0 1px var(--line-2) inset; transition: box-shadow .25s, background-color .25s;
  -webkit-appearance: none; appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238f9bb0' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.form-group select option { background: #0b101a; color: var(--text); }
.form-group textarea { height: 120px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--dim); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; box-shadow: 0 0 0 1.5px var(--blue-2) inset, 0 0 0 4px rgba(46, 123, 255, .15); background: rgba(0, 0, 0, .5); }
.form-group .error { box-shadow: 0 0 0 1.5px var(--red) inset; }
.form-submit { width: 100%; margin-top: 6px; }
.form-submit:disabled { opacity: .7; cursor: default; transform: none; }
.form-status { min-height: 1.4em; font-size: .88rem; margin: 2px 0 8px; }
.form-status.error { color: #ff8a96; }
.form-status.success { color: var(--green); }
.form-foot { margin-top: 14px; font-size: .78rem; color: var(--dim); text-align: center; }
.form-foot a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { border-top: 1px solid var(--line); padding: 72px 0 36px; background: var(--bg); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-brand p { margin-top: 16px; color: var(--muted); font-size: .92rem; max-width: 300px; }
.footer h4 { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 500; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { color: var(--text-2); font-size: .92rem; transition: color .2s; }
.footer ul a:hover { color: #fff; }
.footer-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; color: var(--dim); }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--text); }
.footer-word { margin-top: 56px; font-size: clamp(3.4rem, 15vw, 15rem); font-weight: 600; letter-spacing: -.06em; line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(160, 190, 255, .12); user-select: none; white-space: nowrap; overflow: hidden; }

/* ==========================================================================
   COOKIE BANNER
   ========================================================================== */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120; max-width: 560px;
  padding: 18px 20px; border-radius: 16px;
  background: rgba(10, 14, 23, .92); box-shadow: 0 0 0 1px var(--line-2) inset, 0 30px 60px -20px #000;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  animation: fadeUp .6s var(--ease) both;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-text { font-size: .86rem; color: var(--text-2); line-height: 1.55; }
.cookie-banner-text strong { color: #fff; }
.cookie-banner-text a { color: var(--blue-2); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 8px; margin-top: 14px; justify-content: flex-end; }
.cookie-btn { height: 38px; padding: 0 16px; border-radius: 999px; font-size: .86rem; font-weight: 550; }
.cookie-btn-ghost { box-shadow: 0 0 0 1px var(--line-2) inset; color: var(--text-2); }
.cookie-btn-ghost:hover { background: rgba(255,255,255,.06); }
.cookie-btn-primary { background: var(--blue); color: #fff; }
.cookie-btn-primary:hover { background: #3a86ff; }

/* ==========================================================================
   REVEAL
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--rd, 0s); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-mask { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease); }
.reveal-mask.visible { clip-path: inset(0 0 0 0); }
.reveal-scale { transform: scale(.94); opacity: 0; transition: transform 1.4s var(--ease), opacity 1s var(--ease); }
.reveal-scale.visible { transform: none; opacity: 1; }

/* Pause decorative loops offscreen */
.paused *, .paused *::before, .paused *::after { animation-play-state: paused !important; }

/* ==========================================================================
   INNER PAGES (solutions, legal, 404)
   ========================================================================== */
.page-hero { position: relative; padding: calc(var(--nav-h) + clamp(56px, 8vw, 110px)) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 70% at 80% 0%, rgba(46, 123, 255, .16), transparent 70%);
}
.crumbs { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 28px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: #fff; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.page-hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.8rem); line-height: 1; letter-spacing: -.05em; font-weight: 600; }
.page-hero .lede { margin-top: 22px; }
.page-hero .hero-actions { margin-top: 30px; }
.page-hero .vstage { border-radius: var(--r-lg); box-shadow: var(--shadow); }
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.feature-list > div { padding: 30px 28px 30px 0; border-bottom: 1px solid var(--line); }
.feature-list > div:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.feature-list h3 { font-size: 1.08rem; font-weight: 600; letter-spacing: -.015em; margin-bottom: 8px; }
.feature-list p { color: var(--muted); font-size: .94rem; }
.flow-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: f; }
.flow-steps > div { counter-increment: f; padding: 24px 20px; border-radius: var(--r); background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); box-shadow: 0 0 0 1px var(--line) inset; }
.flow-steps > div::before { content: "0" counter(f); display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; color: var(--cyan); margin-bottom: 14px; }
.flow-steps h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; letter-spacing: -.01em; }
.flow-steps p { font-size: .88rem; color: var(--muted); line-height: 1.5; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.list-card { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); box-shadow: 0 0 0 1px var(--line) inset; }
.list-card h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.015em; margin-bottom: 14px; }
.list-card ul { list-style: none; display: grid; gap: 0; }
.list-card li { padding: 11px 0 11px 22px; border-top: 1px solid var(--line); position: relative; color: var(--text-2); font-size: .95rem; }
.list-card li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 8px; height: 8px; border: 1.5px solid var(--cyan); border-radius: 2px; }
.band { padding: clamp(80px, 10vw, 130px) 0; text-align: center; background: radial-gradient(60% 80% at 50% 100%, rgba(46, 123, 255, .2), transparent 70%); border-top: 1px solid var(--line); }
.band h2 { max-width: 18ch; margin: 0 auto; }
.band .lede { margin: 18px auto 0; }
.band .hero-actions { justify-content: center; }

.legal { padding: calc(var(--nav-h) + 64px) 0 100px; }
.legal .wrap { max-width: 860px; }
.legal h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: -.045em; line-height: 1.02; font-weight: 600; margin-bottom: 10px; }
.legal .updated { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 40px; }
.legal h2 { font-size: 1.3rem; letter-spacing: -.02em; font-weight: 600; margin: 40px 0 12px; }
.legal h3 { font-size: 1.05rem; font-weight: 600; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--text-2); font-size: .98rem; line-height: 1.7; }
.legal ul { padding-left: 20px; margin: 10px 0; display: grid; gap: 6px; }
.legal a { color: var(--blue-2); text-decoration: underline; text-underline-offset: 2px; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .92rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--text-2); vertical-align: top; }
.legal th { color: var(--muted); font-weight: 500; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }

.err { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: var(--gutter); }
.err .code { font-family: var(--mono); font-size: .8rem; letter-spacing: .2em; color: var(--cyan); }
.err h1 { margin: 16px 0 12px; }
.err p { color: var(--muted); margin-bottom: 30px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
  .console-body { grid-template-columns: 1fr; }
  .events { border-left: 0; border-top: 1px solid var(--line); contain: none; }
  .events-list { max-height: 260px; }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .kpi { border-bottom: 0 !important; border-right: 1px solid var(--line) !important; }
  .kpi:last-child { border-right: 0 !important; }
}

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav-right .btn { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { align-items: flex-start; }
  .story-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .story-sticky { align-items: start; padding-top: calc(var(--nav-h) + 8px); }
  .story-copy { order: 2; min-height: 210px; }
  .story-step h3 { margin: 10px 0 8px; font-size: clamp(1.5rem, 5vw, 2.1rem); }
  .story-step p { font-size: .98rem; }
  .uc { grid-template-columns: minmax(0, 1fr); }
  .uc-list { display: none; }
  .uc-tabs-sm { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 14px; margin-bottom: 16px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .uc-tabs-sm::-webkit-scrollbar { display: none; }
  .uc-tabs-sm button { flex: none; scroll-snap-align: start; height: 38px; padding: 0 14px; border-radius: 999px; font-size: .84rem; color: var(--muted); box-shadow: 0 0 0 1px var(--line-2) inset; white-space: nowrap; }
  .uc-tabs-sm button[aria-selected="true"] { background: var(--blue); color: #fff; box-shadow: none; }
  .uc-viewer { position: static; }
  .case { grid-template-columns: minmax(0, 1fr); }
  .case-copy { position: static; }
  .arch { grid-template-columns: minmax(0, 1fr); }
  .arch-detail { position: static; }
  .edge { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .page-hero-grid { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .strip-inner { grid-template-columns: 1fr 1fr; }
  .strip-item { padding: 20px 16px; }
  .strip-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .strip-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .pipeline { grid-template-columns: 1fr; gap: 0; padding-left: 0; }
  .pipe-line { left: 39px; right: auto; top: 40px; bottom: 40px; width: 2px; height: auto; }
  .pipe-line::before { transform: scaleY(var(--p)); transform-origin: top; }
  .pipe-line::after { left: -4px; margin-left: 0; top: calc(var(--p) * 100%); margin-top: -5px; }
  .pipe-stage { display: grid; grid-template-columns: 80px 1fr; gap: 20px; text-align: left; padding: 0 0 36px; align-items: start; }
  .pipe-node { width: 80px; height: 80px; border-radius: 22px; margin: 0; }
  .pipe-node svg { width: 36px; height: 36px; }
  .pipe-stage p { margin: 0; max-width: none; }
  .pipe-stage h3 { margin-top: 4px; }
  .caps { grid-template-columns: 1fr; }
  .cap, .cap:not(:nth-child(3n+1)) { padding: 24px 0; border-left: 0; }
  .values { grid-template-columns: 1fr; }
  .value, .value:nth-child(2n) { padding-left: 0; padding-right: 0; border-left: 0; }
  .about { grid-template-columns: 1fr; }
  .uc-body { grid-template-columns: 1fr; gap: 18px; }
  .feature-list { grid-template-columns: 1fr; }
  .feature-list > div, .feature-list > div:not(:nth-child(3n+1)) { padding: 24px 0; border-left: 0; }
  .two-col { grid-template-columns: 1fr; }
  .edge-points { grid-template-columns: 1fr; }
  .edge-points li:nth-child(2n) { padding-left: 0; border-left: 0; }
  .bp-head { flex-direction: column; align-items: start; }
  .v3d-head .h-1 { margin: 14px 0 14px; }
  .v3d-copy { align-items: flex-start; padding-top: calc(var(--nav-h) + 24px); }
  .v3d-shade { background: linear-gradient(180deg, var(--bg) 0%, rgba(5,7,12,.75) 35%, rgba(5,7,12,0) 62%, var(--bg) 100%); }
  .v3d-steps { display: none; }
  .v3d-step { padding: 10px 0; }
  .v3d-hint { display: none; }
}

@media (max-width: 640px) {
  :root { --nav-h: 60px; }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3.4rem); }
  .hero-sub { margin-top: 18px; font-size: 1rem; }
  .hero-actions { margin-top: 24px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-kicker { margin-bottom: 18px; }
  .hero-kicker .chip:nth-child(n+2) { display: none; }
  .hero-pipe { display: none; }
  .hero h1 .line { white-space: normal; }
  .hide-sm { display: none !important; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(5,7,12,.8) 0%, rgba(5,7,12,0) 20%),
      linear-gradient(0deg, var(--bg) 0%, rgba(5,7,12,.92) 34%, rgba(5,7,12,.2) 62%, rgba(5,7,12,0) 75%);
  }
  .story-track { height: 560vh; }
  .story-rail button { font-size: 0; padding-top: 8px; }
  .story-alerts { top: auto; bottom: 10px; right: 10px; width: 62%; }
  .alert-card { padding: 7px 9px; font-size: .7rem; }
  .alert-card b { font-size: .72rem; }
  .alert-card:nth-child(n+3) { display: none; }
  .story-decision { right: 8px; bottom: 8px; width: 58%; }
  .story-osd .ai-tag:nth-child(n+2) { display: none; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .wall { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:nth-child(2n) { border-right: 0 !important; }
  .kpi:nth-child(-n+2) { border-bottom: 1px solid var(--line) !important; }
  .case-flow > div { grid-template-columns: 1fr; gap: 6px; }
  .flow-steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-actions .btn { width: 100%; }
  .deploy-diagram { grid-template-columns: 1fr; }
  .dd-link { height: 18px; }
  .dd-link::before { left: 50%; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .seg button { padding: 9px 12px; font-size: .74rem; }
  .console-bar .r span:nth-child(n+2) { display: none; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, .reveal-scale { opacity: 1; transform: none; }
  .reveal-mask { clip-path: none; }
  .hero h1 .line > span { transform: none; }
  .hero-fade { opacity: 1; transform: none; }
  .fx-grain::after { display: none; }
  [data-words] .w { opacity: 1; }
}
.legal .crumbs a { text-decoration: none; color: var(--muted); }

/* ==========================================================================
   TOUCH DEVICES (iPhone / Android) — performance-first
   Blur, grain, infinite micro-animations and WebGL are the main causes of
   scroll jank on mobile GPUs, so they are replaced with static equivalents.
   ========================================================================== */
.is-touch *, .is-touch *::before, .is-touch *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.is-touch .nav.is-scrolled { background: rgba(6, 9, 15, 0.96); }
.is-touch .mobile-menu { background: rgba(5, 7, 12, 0.99); }
.is-touch .ai-tag, .is-touch .ai-panel { background: rgba(3, 8, 14, 0.9); }
.is-touch .btn--ghost { background: rgba(20, 27, 40, 0.9); }
.is-touch .hero-pipe { background: rgba(8, 12, 20, 0.92); }
.is-touch .cookie-banner { background: rgba(10, 14, 23, 0.98); }
.is-touch .fx-grain::after, .is-touch .fx-scan::before { display: none; }
.is-touch .hero-media { transform: none; will-change: auto; }
.is-touch .hero-content { opacity: 1; transform: none; }
.is-touch .hero-media .vimg, .is-touch .story-cam .vimg, .is-touch .cam .vimg { transition: none; }
.is-touch .ai-on .jitter { animation: boxIn .7s var(--ease) both; animation-delay: var(--d, 0s); }
.is-touch .story-step { filter: none; transition: opacity .4s var(--ease), transform .5s var(--ease); }
.is-touch .btn { will-change: auto; }
.is-touch .uc-media .vimg, .is-touch .bp-card .vimg { transition: none; transform: none !important; }
.is-touch .layer .flow::after { animation: none; display: none; }
.is-touch .cta-bg img { filter: grayscale(.6) brightness(.5); transform: none; }
.is-touch .scroll-cue { display: none; }

/* 3D section becomes a normal, static section with the live-grid image */
.is-touch .v3d-track { height: auto; }
.is-touch .v3d-sticky { position: relative; height: auto; overflow: visible; display: flex; flex-direction: column; padding: clamp(80px, 12vw, 120px) 0 clamp(40px, 8vw, 80px); }
.is-touch .v3d-canvas, .is-touch .v3d-labels, .is-touch .v3d-shade, .is-touch .v3d-hint { display: none; }
.is-touch .v3d-copy { position: static; order: 1; padding-top: 0; }
.is-touch .v3d-steps { display: grid; }
.is-touch .v3d-step { opacity: 1; }
.is-touch .v3d-fallback { display: block; order: 2; position: relative; inset: auto; margin: 32px var(--gutter) 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1600 / 904; box-shadow: var(--shadow); }
.is-touch .v3d-fallback img { opacity: 1; filter: none; }
.is-touch .story-track { height: 420vh; }
