/* ========================================================================
   NAVADA Edge Network — Shared Design System
   ======================================================================== */

:root {
  --paper:    #F2EFEA;
  --card:     #FBFAF7;
  --card-2:   #ECE8E0;
  --ink:      #0A0F14;
  --ink-2:    #2A3239;
  --dim:      #5A6670;
  --mute:     #8A94A0;
  --rule:     #0A0F14;
  --hair:     #C8C2B6;
  --hair-2:   #D9D4C8;
  --accent:   #2B4FD9;
  --accent-2: #1C3AB8;
  --accent-3: #5DE38B;
  --warn:     #C14A1A;
  --max:      1360px;
  --pad:      40px;
  --r-sm:     0;
  --r-md:     0;
  --t-fast:   .18s ease;
  --t-med:    .35s cubic-bezier(.2,.7,.2,1);
  --t-slow:   .8s cubic-bezier(.2,.7,.2,1);
  --shadow-1: 0 1px 0 rgba(10,15,20,.04);
  --shadow-2: 0 12px 30px rgba(10,15,20,.08);
  --shadow-3: 0 30px 80px rgba(10,15,20,.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.mono { font-family: 'Geist Mono', ui-monospace, monospace; font-feature-settings: 'ss01'; letter-spacing: 0.02em; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

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

/* ======================== AMBIENT MESH BACKGROUND ======================== */
.mesh-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.04;
  animation: meshPulse 8s ease-in-out infinite;
}
.mesh-bg.static { animation: none; opacity: 0.04; }
.mesh-bg svg { width: 100%; height: 100%; display: block; }
.mesh-bg .mb-line { stroke: var(--accent); stroke-width: 0.8; fill: none; }
.mesh-bg .mb-dot  { fill: var(--ink); }

@keyframes meshPulse {
  0%, 100% { opacity: 0.04; }
  50%      { opacity: 0.10; }
}

/* Lift content above the mesh */
header.nav, main, footer.site { position: relative; z-index: 1; }

/* ======================== TOP NAV ======================== */
.nav {
  position: sticky; top: 0; z-index: 80; background: rgba(242,239,234,.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--ink);
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; padding: 14px 28px; gap: 40px;
}
.nav .brand { display: flex; align-items: center; gap: 12px; }
.nav .brand svg { width: 28px; height: 28px; }
.nav .brand .wm { font-weight: 600; letter-spacing: -0.01em; font-size: 17px; }
.nav .brand .wm span { color: var(--dim); font-weight: 400; }
.nav ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 28px; justify-content: center;
  font-family: 'Geist Mono'; font-size: 12px;
}
.nav ul a {
  color: var(--ink-2); padding: 6px 2px;
  border-bottom: 1px solid transparent; transition: color var(--t-fast), border-color var(--t-fast);
}
.nav ul a:hover, .nav ul a.active { border-color: var(--accent); color: var(--accent); }
.nav .cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent-2); color: var(--paper);
  padding: 10px 16px; font-family: 'Geist Mono'; font-size: 12px; letter-spacing: 0.04em;
  transition: background var(--t-fast);
}
.nav .cta:hover { background: var(--accent); }
.nav .cta .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-3); box-shadow: 0 0 0 3px rgba(93,227,139,.2);
  animation: pulse 2s ease-in-out infinite;
}
.nav .menu-toggle { display: none; background: none; border: 1px solid var(--ink); padding: 8px 12px; font-family: 'Geist Mono'; font-size: 12px; color: var(--ink); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(93,227,139,.2); }
  50% { box-shadow: 0 0 0 6px rgba(93,227,139,0); }
}

/* ======================== LAYOUT ======================== */
main { padding: 0; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.block { padding: 100px 0; border-top: 1px solid var(--ink); }
.block:first-of-type { border-top: 0; }

.sec-head {
  display: grid; grid-template-columns: 1fr auto auto;
  align-items: end; gap: 40px; margin-bottom: 48px;
  border-bottom: 1px solid var(--ink); padding-bottom: 20px;
}
.sec-kicker {
  font-family: 'Geist Mono'; font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--dim); margin-bottom: 12px;
}
.sec-kicker b { color: var(--ink); font-weight: 500; }
.sec-title {
  font-size: clamp(36px, 4.5vw, 56px); line-height: 1.02;
  letter-spacing: -0.025em; margin: 0; font-weight: 400;
}
.sec-title em { font-style: italic; color: var(--accent); font-weight: 400; }
.sec-coord {
  font-family: 'Geist Mono'; font-size: 11px; color: var(--dim);
  text-align: right; line-height: 1.6;
}
.sec-coord b { color: var(--ink); font-weight: 500; }

/* ======================== HERO ======================== */
.hero { padding: 80px 0 60px; border-bottom: 1px solid var(--ink); position: relative; overflow: hidden; }
.hero .tag {
  font-family: 'Geist Mono'; font-size: 12px; letter-spacing: 0.18em;
  color: var(--accent); display: flex; align-items: center; gap: 12px;
  margin-bottom: 28px; text-transform: uppercase;
}
.hero .tag::before { content: ''; width: 28px; height: 1px; background: var(--accent); }
.hero h1 {
  font-size: clamp(48px, 6.5vw, 108px); line-height: 0.95;
  letter-spacing: -0.035em; margin: 0; font-weight: 400;
}
.hero h1 .light { font-weight: 300; }
.hero h1 .accent { color: var(--accent); font-style: italic; font-weight: 400; }
.hero .sub {
  font-family: 'Geist Mono'; font-size: 14px; color: var(--dim);
  margin-top: 28px; max-width: 64ch; line-height: 1.65;
}
.hero .sub b { color: var(--ink); font-weight: 500; }

.hero-top {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 8px;
}
.hero-text { min-width: 0; }
.hero-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.video-wrap {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 10;
}
.video-wrap video {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
}
/* SVG marquee around the perimeter */
.edge-marquee {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 2;
}
/* pop-out badge over the top-right corner — clickable */
.pop-badge {
  position: absolute;
  top: 10px; right: 10px;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-2); color: var(--paper);
  padding: 6px 10px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.14em; font-weight: 600;
  border: 1px solid var(--accent-2);
  cursor: pointer;
  z-index: 3;
  opacity: 0; transform: scale(0.5) translateY(-6px);
  animation: popIn 700ms cubic-bezier(.2, 1.4, .4, 1) 600ms both,
             popPulse 7s ease-in-out 2s infinite;
  transition: background 150ms ease;
}
.pop-badge:hover { background: var(--accent); border-color: var(--accent); }
.pop-badge .pop-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 0 3px rgba(93, 227, 139, 0.25);
  animation: lPulse 1.5s ease-in-out infinite;
}
.pop-badge .pop-label {
  background: var(--accent-3); color: var(--ink);
  padding: 2px 5px; font-weight: 700; letter-spacing: 0.08em;
}
.pop-badge .pop-text { white-space: nowrap; }

@keyframes popIn {
  0%   { opacity: 0; transform: scale(0.4) translateY(-8px); }
  60%  { opacity: 1; transform: scale(1.08) translateY(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes popPulse {
  0%, 92%, 100% { transform: scale(1); }
  95%           { transform: scale(1.06); }
}

@media (max-width: 700px) {
  .pop-badge .pop-text { display: none; }
}
.hero-figure img {
  width: 100%;
  max-width: 560px;
  height: auto;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: contain;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.hero-figure img {
  mix-blend-mode: multiply;
  animation: heroFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 12px 40px rgba(28, 58, 184, 0.18));
}
.hero-figure video {
  background: transparent;        /* WebM has real alpha — no blend trick */
  filter: drop-shadow(0 14px 28px rgba(10, 15, 20, 0.18));
  animation: heroFloat 6s ease-in-out infinite;
}
.hero-figure img:hover, .hero-figure video:hover { transform: scale(1.02); }

/* ─────── 3D rotating laptop (pure SVG + CSS) ─────── */
.laptop-3d {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 3 / 2;
  perspective: 1600px;
  perspective-origin: center;
  filter: drop-shadow(0 22px 32px rgba(10, 15, 20, 0.18))
          drop-shadow(0 6px 12px rgba(28, 58, 184, 0.12));
}
.laptop-stage {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  animation: laptopSpin 16s linear infinite;
  will-change: transform;
}
.laptop-face {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.laptop-face svg { width: 100%; height: 100%; display: block; }
.laptop-face.face-back { transform: rotateY(180deg); }

@keyframes laptopSpin {
  from { transform: rotateX(8deg) rotateY(0deg); }
  to   { transform: rotateX(8deg) rotateY(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .laptop-stage { animation: none; transform: rotateX(8deg) rotateY(-12deg); }
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@media (max-width: 1024px) {
  .hero-top { grid-template-columns: 1fr; gap: 28px; }
  .hero-figure { order: -1; max-width: 360px; margin: 0 auto; }
}

.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: end; margin-top: 60px; }
.hero-attribution {
  font-family: 'Geist Mono'; font-size: 12px; color: var(--dim);
  border-top: 1px solid var(--ink); padding-top: 14px;
  display: flex; flex-wrap: wrap; gap: 22px;
}
.hero-attribution b { color: var(--ink); font-weight: 500; }
.hero-ctas { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; font-family: 'Geist Mono'; font-size: 13px;
  cursor: pointer; border: 1px solid var(--ink);
  background: var(--accent-2); color: var(--paper);
  transition: all var(--t-fast); letter-spacing: 0.04em;
}
.btn.secondary { background: transparent; color: var(--ink); }
.btn.secondary:hover { background: var(--accent-2); color: var(--paper); }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-1px); }
.btn .arrow { transition: transform var(--t-fast); }
.btn:hover .arrow { transform: translateX(4px); }

/* ======================== ISO STAGE / NETWORK CANVAS ======================== */
.iso-stage {
  position: relative; aspect-ratio: 16/8; min-height: 540px;
  border: 1px solid var(--ink);
  background:
    linear-gradient(var(--hair-2) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--hair-2) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--card);
  overflow: hidden;
}
.iso-stage canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.iso-stage canvas:active { cursor: grabbing; }
.iso-stage .corner {
  position: absolute; font-family: 'Geist Mono'; font-size: 10px;
  color: var(--dim); letter-spacing: 0.16em; padding: 10px 12px; background: var(--card); z-index: 4;
}
.iso-stage .tl { top: 0; left: 0; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.iso-stage .tr { top: 0; right: 0; border-left: 1px solid var(--ink); border-bottom: 1px solid var(--ink); color: var(--accent); }
.iso-stage .bl { bottom: 0; left: 0; border-right: 1px solid var(--ink); border-top: 1px solid var(--ink); }
.iso-stage .br { bottom: 0; right: 0; border-left: 1px solid var(--ink); border-top: 1px solid var(--ink); }

.net-tip {
  position: absolute; font-family: 'Geist Mono'; font-size: 11px;
  background: var(--accent-2); color: var(--paper); padding: 6px 10px;
  pointer-events: none; opacity: 0; transition: opacity .15s; z-index: 5;
  white-space: nowrap;
}
.net-legend {
  position: absolute; bottom: 38px; left: 12px;
  display: flex; flex-wrap: wrap; gap: 8px 14px; font-family: 'Geist Mono'; font-size: 10px;
  letter-spacing: 0.14em; color: var(--dim); z-index: 4; max-width: 60%;
}
.net-legend span { display: inline-flex; align-items: center; gap: 6px; }
.net-legend i { width: 8px; height: 8px; display: inline-block; border-radius: 50%; }
.net-hud {
  position: absolute; top: 38px; right: 12px;
  background: var(--card); border: 1px solid var(--ink);
  padding: 12px 14px; font-family: 'Geist Mono'; font-size: 10px;
  letter-spacing: 0.1em; line-height: 1.7; min-width: 150px; z-index: 4;
}
.net-hud .title { color: var(--accent); font-weight: 500; margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--hair); }
.net-hud .row { display: flex; justify-content: space-between; gap: 14px; }
.net-hud .row b { color: var(--dim); font-weight: 400; }
.net-hud .row .v { color: var(--ink); font-weight: 500; }
.net-controls {
  position: absolute; bottom: 38px; right: 12px;
  display: flex; flex-direction: column; gap: 6px; z-index: 4;
}
.net-controls .chip-row { display: flex; gap: 4px; }
.net-controls .chip, .net-controls button {
  background: var(--card); border: 1px solid var(--ink); color: var(--ink);
  padding: 6px 10px; font-family: 'Geist Mono'; font-size: 10px;
  letter-spacing: 0.1em; cursor: pointer; transition: all var(--t-fast);
}
.net-controls .chip.active, .net-controls button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.net-controls .chip:hover, .net-controls button:hover { background: var(--accent-2); color: var(--paper); }

.net-panel {
  position: absolute; top: 38px; left: 12px;
  background: var(--card); border: 1px solid var(--ink);
  padding: 16px 18px; min-width: 280px; max-width: 320px;
  font-family: 'Geist Mono'; font-size: 11px; line-height: 1.7;
  display: none; z-index: 5;
}
.net-panel.open { display: block; animation: panelIn .25s ease; }
@keyframes panelIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.net-panel .close-x { position: absolute; top: 6px; right: 8px; cursor: pointer; color: var(--dim); font-size: 18px; }
.net-panel .p-id { color: var(--accent); font-size: 10px; letter-spacing: 0.16em; }
.net-panel h5 { font-family: 'Geist'; font-size: 16px; margin: 4px 0 6px; letter-spacing: -0.01em; font-weight: 500; }
.net-panel .p-role { color: var(--dim); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 10px; }
.net-panel ul { padding-left: 14px; margin: 0; color: var(--ink-2); }

/* ======================== METRICS GRID ======================== */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ink); background: var(--card); }
.metric { padding: 32px 28px; border-right: 1px solid var(--ink); position: relative; transition: background var(--t-fast); }
.metric:hover { background: var(--card-2); }
.metric:last-child { border-right: 0; }
.metric .tick { font-family: 'Geist Mono'; font-size: 10px; letter-spacing: 0.16em; color: var(--accent); margin-bottom: 28px; }
.metric .num {
  font-size: clamp(56px, 7vw, 88px); line-height: 1;
  letter-spacing: -0.04em; font-weight: 400; color: var(--ink);
}
.metric .num sup { font-size: 0.4em; vertical-align: super; color: var(--accent); margin-left: 4px; }
.metric .lbl { margin-top: 14px; font-size: 14px; font-weight: 500; }
.metric .sub { margin-top: 8px; font-family: 'Geist Mono'; font-size: 11px; color: var(--dim); line-height: 1.55; }

/* ======================== VS TABLE ======================== */
.vs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); background: var(--card); }
.vs > div { padding: 36px 32px; }
.vs .before { background: var(--card-2); border-right: 1px solid var(--ink); }
.vs .label { display: flex; justify-content: space-between; font-family: 'Geist Mono'; font-size: 10px; letter-spacing: 0.16em; color: var(--dim); margin-bottom: 22px; }
.vs h3 { font-size: clamp(22px, 2.4vw, 28px); margin: 0; font-weight: 400; letter-spacing: -0.015em; }
.vs ul { padding: 0; margin: 22px 0 0; list-style: none; font-family: 'Geist Mono'; font-size: 13px; line-height: 1.85; color: var(--ink-2); }
.vs ul li { padding: 6px 0; border-bottom: 1px dashed var(--hair); display: flex; gap: 10px; }
.vs ul li:last-child { border-bottom: 0; }
.vs .bullet { color: var(--warn); font-weight: 600; min-width: 14px; }
.vs .after .bullet { color: var(--accent-3); }

/* ======================== FLEET / NODE GRID ======================== */
.fleet { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); background: var(--card); }
.fleet-node { padding: 28px 24px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); position: relative; transition: background var(--t-fast); }
.fleet-node:hover { background: var(--card-2); }
.fleet-node:nth-child(3n) { border-right: 0; }
.fleet-node:nth-last-child(-n+3) { border-bottom: 0; }
.fleet-node .idx { display: flex; justify-content: space-between; font-family: 'Geist Mono'; font-size: 10px; letter-spacing: 0.16em; color: var(--dim); margin-bottom: 18px; }
.fleet-node .idx b { color: var(--accent); font-weight: 500; }
.fleet-node h4 { font-size: 18px; margin: 0; letter-spacing: -0.015em; font-weight: 500; }
.fleet-node .role { font-family: 'Geist Mono'; font-size: 11px; color: var(--accent); letter-spacing: 0.14em; margin-top: 6px; }
.fleet-node .hw { font-family: 'Geist Mono'; font-size: 12px; color: var(--ink-2); line-height: 1.7; margin-top: 16px; }
.fleet-footnote { display: flex; flex-wrap: wrap; gap: 28px; font-family: 'Geist Mono'; font-size: 11px; color: var(--dim); margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--hair); }
.fleet-footnote b { color: var(--accent); }

/* ======================== STACK ROWS ======================== */
.stack { border: 1px solid var(--ink); background: var(--card); }
.stack-row { display: grid; grid-template-columns: 200px 1fr auto; border-bottom: 1px solid var(--hair); padding: 22px 28px; align-items: center; gap: 28px; transition: background var(--t-fast); }
.stack-row:hover { background: var(--card-2); }
.stack-row:last-child { border-bottom: 0; }
.stack-row .tier { font-family: 'Geist Mono'; font-size: 11px; letter-spacing: 0.14em; color: var(--dim); }
.stack-row .tier b { color: var(--accent); font-weight: 500; }
.stack-row .name { font-size: 16px; letter-spacing: -0.01em; }
.stack-row .name small { display: block; font-family: 'Geist Mono'; font-size: 11px; color: var(--dim); margin-top: 4px; letter-spacing: 0.04em; }
.stack-row .note { font-family: 'Geist Mono'; font-size: 10px; color: var(--dim); letter-spacing: 0.14em; }

/* ======================== PRODUCT CARDS ======================== */
.products { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); background: var(--card); }
.product { padding: 32px 28px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); position: relative; transition: background var(--t-fast); display: flex; flex-direction: column; }
.product:hover { background: var(--card-2); }
.product:nth-child(3n) { border-right: 0; }
.product:nth-last-child(-n+3) { border-bottom: 0; }
.product .idx { font-family: 'Geist Mono'; font-size: 10px; letter-spacing: 0.16em; color: var(--accent); margin-bottom: 16px; display: flex; justify-content: space-between; }
.product h4 { font-size: 22px; margin: 0; letter-spacing: -0.015em; font-weight: 500; }
.product .tagline { font-family: 'Geist Mono'; font-size: 11px; color: var(--dim); margin-top: 8px; letter-spacing: 0.06em; text-transform: uppercase; }
.product p { font-family: 'Geist Mono'; font-size: 12px; color: var(--ink-2); line-height: 1.75; margin: 18px 0 0; flex-grow: 1; }
.product .link { font-family: 'Geist Mono'; font-size: 11px; color: var(--accent); margin-top: 22px; letter-spacing: 0.06em; display: inline-flex; align-items: center; gap: 6px; transition: gap var(--t-fast); }
.product:hover .link { gap: 12px; }

/* ======================== SERVICES (PRICING) ======================== */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--ink); background: var(--card); }
.service { padding: 38px 32px; border-right: 1px solid var(--ink); position: relative; display: flex; flex-direction: column; }
.service:last-child { border-right: 0; }
.service.featured { background: var(--accent-2); color: var(--paper); }
.service.featured h3, .service.featured .price { color: var(--paper); }
.service.featured .name { color: var(--accent-3); }
.service.featured ul li { color: var(--paper); border-color: rgba(255,255,255,.12); }
.service.featured .btn { background: var(--accent-3); color: var(--ink); border-color: var(--accent-3); }
.service.featured .btn:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.service .name { font-family: 'Geist Mono'; font-size: 11px; letter-spacing: 0.16em; color: var(--accent); }
.service h3 { font-size: 28px; margin: 14px 0 0; letter-spacing: -0.02em; font-weight: 500; }
.service .price { font-size: 38px; margin-top: 18px; letter-spacing: -0.025em; font-weight: 400; }
.service .price small { display: block; font-family: 'Geist Mono'; font-size: 11px; color: var(--dim); margin-top: 4px; letter-spacing: 0.06em; text-transform: uppercase; }
.service.featured .price small { color: var(--mute); }
.service ul { list-style: none; padding: 0; margin: 28px 0; font-family: 'Geist Mono'; font-size: 12px; line-height: 1.75; flex-grow: 1; }
.service ul li { padding: 8px 0; border-bottom: 1px dashed var(--hair); display: flex; gap: 10px; align-items: flex-start; }
.service ul li::before { content: '✓'; color: var(--accent-3); font-weight: 600; }
.service .btn { width: 100%; justify-content: center; }

/* ======================== USE CASES ======================== */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--ink); background: var(--card); }
.case { padding: 36px 32px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); display: flex; flex-direction: column; gap: 16px; transition: background var(--t-fast); }
.case:hover { background: var(--card-2); }
.case:nth-child(2n) { border-right: 0; }
.case:nth-last-child(-n+2) { border-bottom: 0; }
.case .tag { font-family: 'Geist Mono'; font-size: 11px; letter-spacing: 0.16em; color: var(--accent); }
.case h3 { font-size: 26px; margin: 0; letter-spacing: -0.015em; font-weight: 500; }
.case p { font-family: 'Geist Mono'; font-size: 12px; color: var(--ink-2); line-height: 1.75; margin: 0; }
.case .outcomes { font-family: 'Geist Mono'; font-size: 11px; color: var(--dim); margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--hair); }
.case .outcomes b { color: var(--accent); }

/* ======================== CONTACT FORM ======================== */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: start; }
.form { display: flex; flex-direction: column; gap: 18px; border: 1px solid var(--ink); padding: 36px 32px; background: var(--card); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { font-family: 'Geist Mono'; font-size: 11px; letter-spacing: 0.14em; color: var(--dim); text-transform: uppercase; display: block; margin-bottom: 6px; }
.form input, .form textarea, .form select {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--ink); background: var(--paper);
  font-family: 'Geist Mono'; font-size: 13px; color: var(--ink);
  transition: border-color var(--t-fast);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--accent); }
.form textarea { resize: vertical; min-height: 120px; font-family: 'Geist'; }
.form .submit-row { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.form-note { font-family: 'Geist Mono'; font-size: 11px; color: var(--dim); line-height: 1.6; }
.form-status { font-family: 'Geist Mono'; font-size: 12px; padding: 12px 14px; display: none; }
.form-status.ok { display: block; background: rgba(93,227,139,.12); border: 1px solid var(--accent-3); color: var(--ink); }
.form-status.err { display: block; background: rgba(193,74,26,.12); border: 1px solid var(--warn); color: var(--warn); }
.contact-aside { display: flex; flex-direction: column; gap: 24px; }
.contact-card { padding: 24px 28px; border: 1px solid var(--ink); background: var(--card); }
.contact-card .label { font-family: 'Geist Mono'; font-size: 11px; letter-spacing: 0.16em; color: var(--accent); margin-bottom: 12px; }
.contact-card h4 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.01em; font-weight: 500; }
.contact-card a { font-family: 'Geist Mono'; font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--accent); padding-bottom: 1px; }
.contact-card .small { font-family: 'Geist Mono'; font-size: 11px; color: var(--dim); margin-top: 8px; line-height: 1.6; }

/* ======================== FAQ ======================== */
.faq { border: 1px solid var(--ink); background: var(--card); }
.faq details { padding: 22px 28px; border-bottom: 1px solid var(--hair); transition: background var(--t-fast); }
.faq details:last-child { border-bottom: 0; }
.faq details:hover { background: var(--card-2); }
.faq summary { font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; font-weight: 500; letter-spacing: -0.005em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: 'Geist Mono'; color: var(--accent); font-size: 22px; transition: transform var(--t-fast); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 14px 0 0; font-family: 'Geist Mono'; font-size: 13px; line-height: 1.75; color: var(--ink-2); }

/* ======================== CHAT WIDGET ======================== */
.chat-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--accent-2); color: var(--paper); border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-2); transition: all var(--t-med);
  cursor: pointer; font-family: 'Geist Mono';
}
.chat-fab:hover { background: var(--accent); transform: scale(1.06); }
.chat-fab .badge { position: absolute; top: -4px; right: -4px; background: var(--accent-3); color: var(--ink); font-size: 10px; padding: 2px 6px; border-radius: 10px; font-weight: 600; }

.chat-panel {
  position: fixed; bottom: 100px; right: 28px; z-index: 90;
  width: 380px; max-width: calc(100vw - 56px); height: 540px; max-height: calc(100vh - 140px);
  background: var(--paper); border: 1px solid var(--ink);
  display: none; flex-direction: column; box-shadow: var(--shadow-3);
  transform-origin: bottom right; animation: chatIn .28s ease;
}
.chat-panel.open { display: flex; }
@keyframes chatIn { from { opacity: 0; transform: scale(.92) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.chat-header { padding: 16px 20px; border-bottom: 1px solid var(--ink); display: flex; align-items: center; justify-content: space-between; background: var(--accent-2); color: var(--paper); }
.chat-header .who { display: flex; align-items: center; gap: 10px; }
.chat-header .av { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: 13px; font-family: 'Geist Mono'; }
.chat-header .nm { font-family: 'Geist Mono'; font-size: 12px; letter-spacing: 0.06em; }
.chat-header .nm small { display: block; color: var(--mute); font-size: 10px; margin-top: 2px; }
.chat-header .x { background: none; border: none; color: var(--paper); font-size: 22px; cursor: pointer; padding: 0; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.chat-msg { font-family: 'Geist Mono'; font-size: 12px; line-height: 1.65; padding: 10px 14px; max-width: 86%; }
.chat-msg.bot { background: var(--card); border: 1px solid var(--hair); color: var(--ink-2); align-self: flex-start; }
.chat-msg.user { background: var(--accent-2); color: var(--paper); align-self: flex-end; }
.chat-msg.typing { display: flex; gap: 4px; }
.chat-msg.typing span { width: 6px; height: 6px; background: var(--mute); border-radius: 50%; animation: typingBounce 1.4s infinite; }
.chat-msg.typing span:nth-child(2) { animation-delay: .2s; }
.chat-msg.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typingBounce { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-input { display: flex; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--ink); background: var(--card); }
.chat-input input { flex: 1; padding: 10px 12px; border: 1px solid var(--ink); background: var(--paper); font-family: 'Geist Mono'; font-size: 12px; }
.chat-input input:focus { outline: none; border-color: var(--accent); }
.chat-input button { padding: 10px 16px; background: var(--accent-2); color: var(--paper); border: 1px solid var(--ink); font-family: 'Geist Mono'; font-size: 11px; letter-spacing: 0.08em; cursor: pointer; transition: background var(--t-fast); }
.chat-input button:hover { background: var(--accent); border-color: var(--accent); }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 20px 12px; }
.chat-suggestions button { background: var(--card); border: 1px solid var(--hair); padding: 6px 10px; font-family: 'Geist Mono'; font-size: 10px; cursor: pointer; transition: all var(--t-fast); color: var(--ink-2); }
.chat-suggestions button:hover { border-color: var(--accent); color: var(--accent); }

/* ======================== POPUP / MODAL ======================== */
.modal-backdrop { position: fixed; inset: 0; background: rgba(10,15,20,.6); z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal-backdrop.open { display: flex; animation: backdropIn .25s ease; }
@keyframes backdropIn { from { opacity: 0; } to { opacity: 1; } }
.modal { background: var(--paper); border: 1px solid var(--ink); max-width: 520px; width: 100%; padding: 36px 36px 32px; position: relative; box-shadow: var(--shadow-3); animation: modalIn .35s cubic-bezier(.2,.7,.2,1); }
@keyframes modalIn { from { opacity: 0; transform: scale(.94) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal .x { position: absolute; top: 14px; right: 18px; background: none; border: none; font-size: 22px; color: var(--ink); cursor: pointer; }
.modal .kicker { font-family: 'Geist Mono'; font-size: 11px; letter-spacing: 0.18em; color: var(--accent); text-transform: uppercase; }
.modal h3 { font-size: 26px; margin: 8px 0 12px; letter-spacing: -0.02em; font-weight: 500; }
.modal p { font-family: 'Geist Mono'; font-size: 12px; line-height: 1.7; color: var(--ink-2); }
.modal .actions { display: flex; gap: 10px; margin-top: 22px; }

/* ======================== FOOTER ======================== */
footer.site {
  background: var(--accent-2);  /* deep blue, not black */
  color: var(--paper); padding: 80px 0 40px;
  border-top: 1px solid var(--ink); margin-top: 0;
}
footer.site .container { max-width: var(--max); }
footer.site .grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 50px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.18);
}
footer.site .col h6 {
  font-family: 'Geist Mono'; font-size: 11px;
  letter-spacing: 0.16em; color: var(--paper);
  margin: 0 0 18px; text-transform: uppercase; font-weight: 600;
  opacity: .92;
}
footer.site .col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
footer.site .col a {
  color: var(--paper); font-family: 'Geist Mono'; font-size: 12px;
  opacity: .78; transition: opacity var(--t-fast), color var(--t-fast);
}
footer.site .col a:hover { opacity: 1; color: var(--paper); border-bottom: 1px solid var(--paper); }
footer.site .brand-block { padding-right: 30px; }
footer.site .brand-block .wm {
  display: flex; align-items: center; gap: 10px;
  font-weight: 500; font-size: 18px; letter-spacing: -0.01em; margin-bottom: 14px;
}
footer.site .brand-block .wm svg { width: 28px; height: 28px; }
footer.site .brand-block p { font-family: 'Geist Mono'; font-size: 12px; opacity: .82; line-height: 1.7; max-width: 36ch; }
footer.site .legal {
  padding-top: 30px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; font-family: 'Geist Mono'; font-size: 11px;
  color: rgba(255,255,255,.65); letter-spacing: 0.04em;
}
footer.site .legal a { color: rgba(255,255,255,.78); margin-right: 18px; }
footer.site .legal a:hover { color: var(--accent-3); }
footer.site .badge-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
footer.site .badge-row span { font-family: 'Geist Mono'; font-size: 10px; opacity: .7; padding: 4px 8px; border: 1px solid rgba(255,255,255,.28); letter-spacing: 0.12em; }

/* ======================== TERMS/PRIVACY (PROSE) ======================== */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 28px; margin: 40px 0 14px; letter-spacing: -0.02em; font-weight: 500; }
.prose h3 { font-size: 18px; margin: 28px 0 10px; letter-spacing: -0.01em; font-weight: 500; color: var(--ink-2); }
.prose p, .prose li { font-family: 'Geist'; font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.prose ul { padding-left: 22px; }
.prose .updated { font-family: 'Geist Mono'; font-size: 12px; color: var(--dim); letter-spacing: 0.06em; margin-bottom: 28px; }

/* ======================== MOTION UTILS ======================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--t-slow), transform var(--t-slow); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ======================== RESPONSIVE ======================== */
@media (max-width: 1024px) {
  .nav { grid-template-columns: auto auto auto; gap: 16px; padding: 12px 20px; }
  .nav ul { display: none; }
  .nav .menu-toggle { display: inline-flex; }
  .nav.menu-open ul {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--ink); padding: 0;
  }
  .nav.menu-open ul li { width: 100%; border-bottom: 1px solid var(--hair); }
  .nav.menu-open ul a { display: block; padding: 16px 28px; }
  .container { padding: 0 24px; }
  .block { padding: 70px 0; }
  .sec-head { grid-template-columns: 1fr; gap: 14px; }
  .sec-coord { text-align: left; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .iso-stage { min-height: 420px; aspect-ratio: 4/3; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric { border-bottom: 1px solid var(--ink); }
  .metric:nth-child(2) { border-right: 0; }
  .vs { grid-template-columns: 1fr; }
  .vs .before { border-right: 0; border-bottom: 1px solid var(--ink); }
  .fleet { grid-template-columns: 1fr 1fr; }
  .fleet-node:nth-child(3n) { border-right: 1px solid var(--ink); }
  .fleet-node:nth-child(2n) { border-right: 0; }
  .stack-row { grid-template-columns: 1fr; gap: 8px; }
  .products { grid-template-columns: 1fr 1fr; }
  .product:nth-child(3n) { border-right: 1px solid var(--ink); }
  .product:nth-child(2n) { border-right: 0; }
  .services { grid-template-columns: 1fr; }
  .service { border-right: 0; border-bottom: 1px solid var(--ink); }
  .service:last-child { border-bottom: 0; }
  .cases { grid-template-columns: 1fr; }
  .case { border-right: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  footer.site .grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  footer.site .brand-block { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: clamp(40px, 11vw, 64px); }
  .iso-stage { min-height: 360px; }
  .metrics { grid-template-columns: 1fr; }
  .metric, .fleet-node, .product { border-right: 0; }
  .fleet { grid-template-columns: 1fr; }
  footer.site .grid { grid-template-columns: 1fr; gap: 30px; }
  .chat-panel { width: calc(100vw - 32px); right: 16px; height: 70vh; }
  .chat-fab { bottom: 76px; right: 16px; }   /* lift above bottom bar */
}

/* ============= MOBILE-NATIVE LAYOUT (≤ 760px) =============
   Strips long copy and section count to give a focused app feel.
   Hides desktop-only ornaments and adds a sticky bottom action bar. */
@media (max-width: 760px) {
  body { font-size: 15px; }
  .container { padding: 0 18px; }
  .block { padding: 44px 0; }

  /* Tighter type scale */
  .hero { padding: 32px 0 24px; }
  .hero h1 { font-size: clamp(34px, 9vw, 48px); line-height: 1; letter-spacing: -0.02em; }
  .hero .sub { font-size: 13px; line-height: 1.55; margin-top: 16px; }
  .hero-attribution { font-size: 11px; gap: 12px; }
  .sec-title { font-size: clamp(26px, 6.5vw, 34px); line-height: 1.05; }
  .sec-head { margin-bottom: 24px; padding-bottom: 14px; }

  /* Hide the heavy 3D mesh canvas on phones */
  .iso-stage { display: none; }

  /* Hide sub-bullets in capability cards — keep titles only */
  #capabilities ul { display: none; }
  #capabilities h3 { font-size: 18px; }
  #capabilities p  { font-size: 13px; line-height: 1.55; -webkit-line-clamp: 4; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }

  /* Compress doctrine VS table to a stack */
  .vs h3 { font-size: 19px; }
  .vs ul { font-size: 12px; line-height: 1.7; }
  .vs ul li:nth-child(n+5) { display: none; }   /* keep top 4 points each side */

  /* Compress fleet cards */
  .fleet-node h4 { font-size: 16px; }
  .fleet-node .hw { font-size: 12px; line-height: 1.55; -webkit-line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .fleet-footnote { display: none; }

  /* Stack rows: hide the right-side note column, drop sub-text */
  .stack-row .note { display: none; }
  .stack-row .name small { display: none; }

  /* Product cards: hide body paragraph */
  .product p { -webkit-line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; }

  /* Services cards: tighter */
  .service { padding: 26px 22px; }
  .service h3 { font-size: 22px; }
  .service .price { font-size: 30px; }
  .service ul { font-size: 12px; }

  /* Use-case cards: shorter copy */
  .case p { -webkit-line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; }
  .case .outcomes { display: none; }

  /* Tighten the marquee on small screens */
  .edge-marquee text { font-size: 9px; opacity: .7; }

  /* Sticky bottom action bar — always-visible CTA */
  .mobile-bottom-bar {
    position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 70;
    display: flex; align-items: stretch;
    background: var(--accent-2); color: var(--paper);
    border-top: 1px solid var(--ink);
    box-shadow: 0 -6px 18px rgba(10, 15, 20, 0.16);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bottom-bar a {
    flex: 1;
    text-align: center;
    padding: 14px 8px;
    font-family: 'Geist Mono'; font-size: 12px; font-weight: 600;
    letter-spacing: 0.08em; color: var(--paper);
    border-right: 1px solid rgba(255,255,255,.18);
  }
  .mobile-bottom-bar a:last-child { border-right: 0; background: var(--accent-3); color: var(--ink); }
  .mobile-bottom-bar a:active { opacity: .7; }
  /* lift footer + main content so they don't sit behind the bar */
  footer.site, main { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}
.mobile-bottom-bar { display: none; }   /* desktop default */
@media (max-width: 760px) { .mobile-bottom-bar { display: flex; } }

/* ============= MOBILE-ONLY APP (parallel layout) =============
   Desktop: hidden completely.
   Mobile:  swap out the desktop <main> for a focused, scroll-snap, app-feel page. */
.m-app { display: none; }

@media (max-width: 760px) {
  .m-app { display: block; }
  main    { display: none; }     /* pure-CSS — works without JS */
  .nav    { display: none; }     /* hide top nav too, bottom bar takes over */
}

@media (max-width: 760px) {
  .m-app {
    background: var(--paper);
    scroll-snap-type: y proximity;
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }
  .m-card {
    min-height: 100vh; min-height: 100svh;
    padding: 56px 26px 96px;
    display: flex; flex-direction: column; justify-content: center;
    border-bottom: 1px solid var(--ink);
    scroll-snap-align: start;
    position: relative;
  }
  .m-card.m-dark { background: var(--accent-2); color: var(--paper); }
  .m-card.m-dark p, .m-card.m-dark h2 { color: var(--paper); }

  .m-tag {
    font-family: 'Geist Mono'; font-size: 10px;
    letter-spacing: 0.18em; color: var(--accent);
    margin-bottom: 18px; font-weight: 600;
  }
  .m-card h1 {
    font-size: clamp(40px, 11vw, 56px);
    line-height: 0.96; letter-spacing: -0.025em;
    font-weight: 300; margin: 0;
  }
  .m-card h1 em { font-style: italic; color: var(--accent); font-weight: 400; }
  .m-card h2 {
    font-size: clamp(34px, 9vw, 48px);
    line-height: 1; letter-spacing: -0.02em;
    font-weight: 400; margin: 0;
  }
  .m-card p {
    font-family: 'Geist Mono'; font-size: 13px;
    line-height: 1.6; color: var(--ink-2);
    margin: 18px 0 0; max-width: 36ch;
  }
  .m-card .m-caption {
    font-size: 11px; color: var(--dim);
    margin-top: 32px;
  }

  .m-cta-row { margin-top: 36px; }
  .m-cta {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 16px 22px;
    background: var(--ink); color: var(--paper);
    font-family: 'Geist Mono'; font-size: 12px; font-weight: 600;
    letter-spacing: 0.1em; text-decoration: none;
    border: 1px solid var(--ink);
  }
  .m-cta.primary { background: var(--accent-2); border-color: var(--accent-2); }
  .m-cta:active  { opacity: .75; }
  .m-card.m-dark .m-cta.primary { background: var(--accent-3); color: var(--ink); border-color: var(--accent-3); }

  .m-scroll-hint {
    position: absolute; bottom: 90px; left: 50%; transform: translateX(-50%);
    font-family: 'Geist Mono'; font-size: 10px;
    letter-spacing: 0.2em; color: var(--dim);
    animation: mScrollPulse 2.4s ease-in-out infinite;
  }
  @keyframes mScrollPulse {
    0%, 100% { transform: translate(-50%, 0); opacity: .5; }
    50%      { transform: translate(-50%, 6px); opacity: 1; }
  }

  /* Numbers card — big stats */
  .m-numbers { gap: 0; }
  .m-stat {
    border-bottom: 1px solid var(--hair);
    padding: 22px 0;
    display: flex; align-items: baseline; gap: 18px;
  }
  .m-stat:last-of-type { border-bottom: 1px solid var(--ink); }
  .m-stat-num {
    font-size: clamp(56px, 18vw, 96px);
    line-height: 1; letter-spacing: -0.04em;
    font-weight: 400; color: var(--ink);
    flex: 0 0 auto;
  }
  .m-stat-num sup {
    font-size: 0.32em; vertical-align: super;
    color: var(--accent); margin-left: 4px;
  }
  .m-stat-lbl {
    font-family: 'Geist Mono'; font-size: 13px;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--dim);
  }

  /* Argos card — video front and centre */
  .m-video-wrap {
    width: 100%;
    aspect-ratio: 16 / 10;
    margin-bottom: 28px;
    border: 1px solid rgba(255,255,255,.18);
    overflow: hidden;
    background: rgba(255,255,255,.04);
  }
  .m-video-wrap video {
    width: 100%; height: 100%; object-fit: cover; display: block;
  }

  /* Tracks card */
  .m-track-card {
    display: block; padding: 22px 24px; margin-top: 16px;
    background: var(--card); border: 1px solid var(--ink);
    text-decoration: none; color: var(--ink);
    transition: background 150ms ease;
  }
  .m-track-card:active { background: var(--card-2); }
  .m-track-card.alt   { background: var(--accent-2); color: var(--paper); border-color: var(--accent-2); }
  .m-track-id {
    font-family: 'Geist Mono'; font-size: 10px;
    letter-spacing: 0.16em; opacity: .7;
    margin-bottom: 8px;
  }
  .m-track-name {
    font-size: 22px; letter-spacing: -0.02em; font-weight: 500;
  }
  .m-track-price {
    font-family: 'Geist Mono'; font-size: 13px; font-weight: 600;
    margin-top: 8px;
  }
  .m-track-card.alt .m-track-price { color: var(--accent-3); }

  /* Contact card */
  .m-action-list {
    margin-top: 28px;
    display: flex; flex-direction: column; gap: 12px;
  }
  .m-action {
    display: grid; grid-template-columns: 110px 1fr;
    align-items: center; gap: 16px;
    padding: 18px 22px;
    background: var(--card); border: 1px solid var(--ink);
    text-decoration: none; color: var(--ink);
    transition: background 150ms ease;
  }
  .m-action:active { background: var(--card-2); }
  .m-action.primary { background: var(--accent-2); color: var(--paper); border-color: var(--accent-2); }
  .m-action-label {
    font-family: 'Geist Mono'; font-size: 10px;
    letter-spacing: 0.16em; font-weight: 600; opacity: .7;
  }
  .m-action-value {
    font-family: 'Geist'; font-size: 16px; font-weight: 500;
    letter-spacing: -0.01em;
  }

  /* mesh-bg fades to nearly invisible on mobile so cards breathe */
  .mesh-bg { opacity: 0.025; animation: none; }

  /* welcome modal disabled on mobile to keep flow clean */
  #welcome-modal { display: none !important; }

  /* keep chat fab on mobile — repositioned + smaller */
  .chat-fab {
    width: 52px; height: 52px;
    bottom: 76px; right: 14px;     /* above the bottom bar */
  }
  .chat-fab .badge { font-size: 9px; }
  /* mobile chat panel = full bottom sheet */
  .chat-panel {
    width: 100vw; max-width: 100vw;
    height: 85vh; max-height: 85vh;
    bottom: 0; right: 0;
    border: none; border-top: 1px solid var(--ink);
    border-radius: 0;
  }

  /* Mobile footer — drastically simplified */
  footer.site { padding: 40px 0 32px; background: var(--accent-2); }
  footer.site .grid {
    display: block;          /* stack everything */
    padding-bottom: 24px;
    gap: 0;
    border-bottom: 1px solid rgba(255,255,255,.18);
  }
  footer.site .col { display: none; }   /* hide all 4 link columns */
  footer.site .brand-block { display: block; padding: 0; }
  footer.site .brand-block .wm { font-size: 16px; margin-bottom: 10px; }
  footer.site .brand-block p { font-size: 11px; line-height: 1.55; max-width: 30ch; opacity: .82; }
  footer.site .brand-block .badge-row { display: none; }   /* less noise */

  /* Compact legal row — single line */
  footer.site .legal {
    padding-top: 18px;
    flex-direction: column-reverse;
    gap: 12px;
    text-align: center;
    font-size: 10px;
  }
  footer.site .legal a { margin: 0 8px; opacity: .8; }

  /* Fleet (lanes) card */
  .m-fleet { background: var(--card-2); }
  .m-lanes {
    margin-top: 24px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
    background: var(--ink);
    border: 1px solid var(--ink);
  }
  .m-lane {
    background: var(--paper);
    padding: 14px 14px;
    display: flex; flex-direction: column; gap: 2px;
  }
  .m-lane-no {
    font-family: 'Geist Mono'; font-size: 9px; font-weight: 600;
    letter-spacing: 0.16em; color: var(--accent);
  }
  .m-lane-name {
    font-size: 16px; font-weight: 500; letter-spacing: -0.015em;
    color: var(--ink); margin-top: 2px;
  }
  .m-lane-desc {
    font-family: 'Geist Mono'; font-size: 10px; color: var(--dim);
    margin-top: 2px;
  }

  /* Capabilities card */
  .m-caps { background: var(--paper); }
  .m-cap-list {
    margin-top: 24px;
    display: flex; flex-direction: column; gap: 14px;
  }
  .m-cap {
    display: grid; grid-template-columns: 36px 1fr;
    gap: 14px; align-items: start;
    padding: 14px 16px;
    background: var(--card); border: 1px solid var(--ink);
  }
  .m-cap-id {
    font-family: 'Geist Mono'; font-size: 14px; font-weight: 700;
    letter-spacing: 0.04em; color: var(--accent);
  }
  .m-cap-name {
    font-family: 'Geist'; font-size: 15px; font-weight: 600;
    letter-spacing: -0.01em; color: var(--ink); margin-bottom: 2px;
  }
  .m-cap-desc {
    font-family: 'Geist Mono'; font-size: 11px; line-height: 1.55;
    color: var(--ink-2);
  }

  /* Founder card */
  .m-founder { background: var(--card); }
  .m-founder .m-avatar {
    width: 64px; height: 64px;
    background: var(--accent-2); color: var(--paper);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Geist Mono'; font-size: 20px; font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 18px;
  }
  .m-founder .m-role {
    font-family: 'Geist Mono'; font-size: 12px;
    letter-spacing: 0.06em; color: var(--accent);
    margin-top: 8px; text-transform: uppercase;
  }
  .m-founder .m-chips {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin: 24px 0;
  }
  .m-founder .m-chips span {
    font-family: 'Geist Mono'; font-size: 11px;
    letter-spacing: 0.06em;
    padding: 5px 9px;
    border: 1px solid var(--ink);
    color: var(--ink-2);
  }
  .m-founder .m-cta { margin-top: 4px; }
}

/* ===== MOBILE LOCK — no rubber-band, no horizontal wobble ===== */
@media (max-width: 760px) {
  html, body {
    overscroll-behavior-y: none;
    overscroll-behavior-x: none;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
  }
  body { position: relative; touch-action: pan-y; }
  .m-app { overscroll-behavior: contain; }
  .mobile-bottom-bar {
    user-select: none;
    -webkit-user-select: none;
  }
}

/* ===== MOBILE CARD REVEAL ANIMATION ===== */
@media (max-width: 760px) {
  /* Default: visible. JS adds .needs-reveal to enable the entrance animation. */
  .m-card.needs-reveal > * {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 600ms cubic-bezier(.2,.7,.2,1), transform 600ms cubic-bezier(.2,.7,.2,1);
  }
  .m-card.in > * { opacity: 1; transform: translateY(0); }
  .m-card.in > *:nth-child(1) { transition-delay: 80ms; }
  .m-card.in > *:nth-child(2) { transition-delay: 180ms; }
  .m-card.in > *:nth-child(3) { transition-delay: 280ms; }
  .m-card.in > *:nth-child(4) { transition-delay: 380ms; }
  .m-card.in > *:nth-child(5) { transition-delay: 480ms; }
  .m-card.in > *:nth-child(6) { transition-delay: 580ms; }
  .m-card.in > *:nth-child(7) { transition-delay: 680ms; }

  /* always-on subtle motion */
  .m-stat-num {
    animation: mNumIn 1200ms cubic-bezier(.2,.7,.2,1) both;
  }
  @keyframes mNumIn {
    from { opacity: 0; transform: translateY(8px) scale(.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }
  /* video subtle float */
  .m-video-wrap video { animation: mFloat 5s ease-in-out infinite; }
  @keyframes mFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
  }
}

/* PWA standalone mode — hide nav (we use bottom bar instead) */
@media all and (display-mode: standalone) {
  @media (max-width: 760px) {
    header.nav ul, header.nav .cta { display: none; }
    header.nav { grid-template-columns: 1fr; }
  }
}
