/* ============================================================
   AURA ENGINE — holographic interface
   Volumetric light / projected-pane aesthetic
   ============================================================ */

:root {
  --bg: #020507;
  --ink: #cfeef8;
  --ink-dim: #6e93a3;
  --holo: #7be4ff;          /* primary hologram cyan */
  --holo-soft: rgba(123, 228, 255, 0.55);
  --holo-faint: rgba(123, 228, 255, 0.16);
  --holo-ghost: rgba(123, 228, 255, 0.07);
  --warm: #ffc36b;
  --pane: linear-gradient(168deg, rgba(60, 170, 215, 0.15) 0%, rgba(8, 26, 36, 0.74) 45%, rgba(60, 170, 215, 0.10) 100%);
  --r-lg: 14px;   /* panes, video frames */
  --r-md: 10px;   /* cards, tiles, strips */
  --r-sm: 8px;    /* buttons, inputs, chips */
  --sans: 'Inter', system-ui, sans-serif;
  --display: 'Space Grotesk', 'Inter', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--holo); color: #021016; }

/* ---------------- MAP ---------------- */
#map { position: fixed; inset: 0; z-index: 0; }
.mapboxgl-ctrl-logo, .mapboxgl-ctrl-attrib { opacity: 0.25; }

/* volumetric light wash over the map */
#map::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(123,228,255,0.06), transparent 60%),
    radial-gradient(ellipse 100% 60% at 50% 110%, rgba(123,228,255,0.04), transparent 60%);
}

#map-fallback {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #06141c 0%, var(--bg) 70%);
}
#map-fallback.hidden { display: none; }
.fallback-inner {
  text-align: center;
  border: 1px solid var(--holo-faint);
  border-radius: var(--r-lg);
  padding: 40px 56px;
  background: var(--pane);
  backdrop-filter: blur(14px);
  box-shadow: 0 0 50px rgba(123,228,255,0.10), inset 0 0 40px rgba(123,228,255,0.04);
}
.fallback-code {
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: 0.22em;
  color: var(--holo);
  text-shadow: 0 0 16px var(--holo-soft);
  margin-bottom: 14px;
}
.fallback-inner p { font-size: 13px; color: var(--ink-dim); }
.fallback-inner span { color: var(--holo); font-family: var(--mono); font-size: 12px; }

/* ---------------- TELEMETRY BAR ---------------- */
#telemetry {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 10px 26px;
  border: 1px solid var(--holo-faint);
  border-top-color: rgba(123,228,255,0.3);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(123,228,255,0.07), rgba(4,12,18,0.7));
  backdrop-filter: blur(14px);
  box-shadow: 0 0 30px rgba(123,228,255,0.10);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  pointer-events: none;
  white-space: nowrap;
}
.tel-item { display: flex; align-items: center; gap: 8px; }
.tel-item:first-child {
  color: var(--holo);
  text-shadow: 0 0 12px var(--holo-soft);
}
.tel-sep { opacity: 0.4; }
.tel-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--holo);
  box-shadow: 0 0 10px var(--holo);
  animation: breathe 3s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: 0.4; } }

/* ---------------- LIVE GIS READOUT - HIDDEN ---------------- */
#gis-readout {
  display: none;
}
.gis-readout-label {
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--holo);
  text-shadow: 0 0 10px var(--holo-soft);
  white-space: nowrap;
}
.gis-readout-names {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
  line-height: 1.4;
  transition: color 0.5s;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
/* brief highlight when the active layer mix changes */
.gis-readout-names.flash {
  color: var(--holo);
  text-shadow: 0 0 10px var(--holo-soft);
}

/* ---------------- NAV ---------------- */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: linear-gradient(to bottom, rgba(2,5,7,0.8), transparent);
}
.nav-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}
.nav-glyph {
  height: 30px;
  width: auto;
  object-fit: contain;
  display: block;
}
.nav-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.3em;
  text-shadow: 0 0 14px rgba(123,228,255,0.35);
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  color: var(--ink-dim);
  text-decoration: none;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.2s, text-shadow 0.2s;
}
.nav-links a:hover {
  color: var(--holo);
  text-shadow: 0 0 12px var(--holo-soft);
}
.nav-links .nav-cta {
  color: var(--holo);
  border: 1px solid var(--holo-soft);
  border-radius: var(--r-sm);
  background: rgba(123,228,255,0.06);
  padding: 9px 26px;
  box-shadow: 0 0 18px rgba(123,228,255,0.15), inset 0 0 12px rgba(123,228,255,0.06);
  transition: all 0.25s;
}
.nav-links .nav-cta:hover {
  background: rgba(123,228,255,0.16);
  box-shadow: 0 0 34px rgba(123,228,255,0.4), inset 0 0 16px rgba(123,228,255,0.12);
  text-shadow: 0 0 10px var(--holo);
}

/* ---------------- CONTENT ---------------- */
#content { position: relative; z-index: 3; pointer-events: none; }

.sect {
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 104px 48px;
  position: relative;
}
/* hero keeps the full-screen first impression */
.sect.hero { min-height: 100vh; padding-top: 130px; }

/* New clean hero section — grows with its content; splash fills the first
   viewport, the video flows after it instead of overlapping the next section */
.sect.hero-new {
  min-height: 100vh;
  height: auto;
  display: block;
  padding: 0;
  overflow: visible;
  position: relative;
  background: linear-gradient(180deg, rgba(2,5,7,0.4), rgba(2,5,7,0));
  pointer-events: auto;
}

/* ---------- holographic pane ---------- */
.frame {
  pointer-events: auto;
  max-width: 620px;
  background:
    repeating-linear-gradient(0deg, rgba(123,228,255,0.025) 0 1px, transparent 1px 4px),
    var(--pane);
  border: 1px solid var(--holo-faint);
  border-top-color: rgba(123,228,255,0.35);
  border-radius: var(--r-lg);
  padding: 48px 52px;
  backdrop-filter: blur(14px);
  position: relative;
  box-shadow:
    0 0 60px rgba(123,228,255,0.08),
    inset 0 0 80px rgba(123,228,255,0.03);
  opacity: 0;
  transform: translateY(32px) perspective(900px) rotateX(2deg);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.sect.visible .frame {
  opacity: 1;
  transform: translateY(0) perspective(900px) rotateX(0deg);
  animation: holoFlicker 7s linear infinite;
}
@keyframes holoFlicker {
  0%, 100% { opacity: 1; }
  97.4% { opacity: 1; }
  97.7% { opacity: 0.92; }
  98% { opacity: 1; }
  98.6% { opacity: 0.96; }
  99% { opacity: 1; }
}

/* corner accents — curved arcs tracing the pane's rounded corners */
.frame::before, .frame::after {
  content: '';
  position: absolute;
  width: 30px; height: 30px;
  pointer-events: none;
}
/* glow via drop-shadow, not box-shadow: box-shadow wraps the pseudo's full
   30×30 box and leaves a phantom square at the arc's open ends */
.frame::before {
  top: -1px; left: -1px;
  border-top: 1px solid var(--holo);
  border-left: 1px solid var(--holo);
  border-top-left-radius: var(--r-lg);
  filter: drop-shadow(-2px -2px 6px rgba(123,228,255,0.35));
}
.frame::after {
  bottom: -1px; right: -1px;
  border-bottom: 1px solid var(--holo);
  border-right: 1px solid var(--holo);
  border-bottom-right-radius: var(--r-lg);
  filter: drop-shadow(2px 2px 6px rgba(123,228,255,0.35));
}

.frame.right { margin-left: auto; }
.frame.center { margin: 0 auto; text-align: center; }

/* ---------- paired panes — two frames flanking the globe ---------- */
.sect.pair {
  justify-content: space-between;
  align-items: center;
  gap: clamp(60px, 16vw, 380px);
}
.sect.pair .frame {
  flex: 1 1 0;
  min-width: 0;
  max-width: 520px;
  margin: 0;
  padding: 40px 42px;
}
@media (max-width: 1100px) {
  .sect.pair { flex-direction: column; align-items: stretch; gap: 40px; }
  .sect.pair .frame { max-width: 620px; width: 100%; margin: 0 auto; flex: none; }
}
.frame.wide { max-width: 780px; }
.frame.xwide { max-width: 1040px; margin: 0 auto; }
.frame.team-frame { max-width: 1280px; margin: 0 auto; }
.hero-frame { max-width: 820px; }

/* ---------- free-floating technical diagrams ---------- */
/* thin-line schematics anchored in the empty globe-space opposite each
   side-justified frame. centered/full-width frames carry no diagram. */
.diagram {
  position: absolute;
  top: 50%;
  width: clamp(320px, 34vw, 560px);
  height: auto;
  opacity: 0;
  transform: translateY(calc(-50% + 26px));
  transition: opacity 1.1s ease, transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 0 6px rgba(123,228,255,0.22));
}
.diagram.right { right: 4vw; }
.diagram.left  { left: 4vw; }
.sect.visible .diagram { opacity: 0.92; transform: translateY(-50%); }

.diagram .dg-l   { stroke: var(--holo); stroke-width: 1;   stroke-opacity: 0.5;  fill: none; }
.diagram .dg-l2  { stroke: var(--holo); stroke-width: 1.4; stroke-opacity: 0.8;  fill: none; }
.diagram .dg-w   { stroke: var(--warm); stroke-width: 1.3; stroke-opacity: 0.85; fill: none; }
.diagram .dg-dash{ stroke: var(--holo); stroke-width: 1;   stroke-opacity: 0.4;  fill: none; stroke-dasharray: 3 4; }
.diagram .dg-node  { stroke: var(--holo); stroke-width: 1.2; fill: #06121a; }
.diagram .dg-nodew { stroke: var(--warm); stroke-width: 1.3; fill: #06121a; }
.diagram .dg-fill  { fill: var(--holo); }
.diagram .dg-fillw { fill: var(--warm); }
.diagram rect { rx: 3px; }
.diagram .dg-lbl   { font-family: var(--mono); font-size: 8.5px; letter-spacing: 1.4px; fill: #b9d2dd; }
.diagram .dg-lblh  { font-family: var(--mono); font-size: 8.5px; letter-spacing: 1.4px; fill: var(--holo); }
.diagram .dg-ttl   { font-family: var(--mono); font-size: 10px;  letter-spacing: 2.2px; fill: var(--holo); }

@media (max-width: 1100px) { .diagram { display: none; } }
/* wide frames (780px) leave less globe-space — drop their diagrams sooner
   so they never slide behind the pane */
@media (max-width: 1380px) {
  #engine .diagram,
  #engine-core .diagram { display: none; }
}

/* ---------- hero hypertorus (S^3 stereographic solid) ---------- */
/* live Three.js canvas rendered with a transparent background — the
   glowing torus + live math float freely in front of the hero pane */
.hypertorus-hero {
  position: absolute;
  top: 50%;
  width: clamp(420px, 48vw, 760px);
  height: clamp(420px, 48vw, 720px);
  opacity: 0;
  transform: translateY(calc(-50% + 26px));
  transition: opacity 1.4s ease, transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 2;
}
.hypertorus-hero.right { right: 1vw; }
.hypertorus-hero.left  { left: 1vw; }
.sect.visible .hypertorus-hero { opacity: 1; transform: translateY(-50%); }
.hypertorus-hero canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  background: transparent;
}

/* free-floating live math notation, layered over the torus, facing the card */
.ht-math { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.ht-math .m {
  position: absolute;
  white-space: nowrap;
  letter-spacing: .05em;
  color: rgba(150, 205, 255, .40);
  text-shadow: 0 0 9px rgba(70, 150, 255, .30);
  font-family: var(--mono);
}
.ht-math .m i { font-style: italic; opacity: .85; }
.ht-math .m .n { color: rgba(190, 232, 255, .92); font-variant-numeric: tabular-nums; }
.ht-math .m .o { color: rgba(120, 170, 230, .5); }

/* ========== NEW CLEAN HERO SECTION ========== */
.hero-new-content {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  z-index: 3;
  pointer-events: none;
}

/* splash — banner, headline, formula, and CTAs centered as one group
   in the first viewport (normal flow: nothing can overlap) */
.hero-splash {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 4.2vh, 42px);
  padding: 120px 40px 80px;
}

/* staged entrance — each splash element rises in sequence on load */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
.hero-splash > * { animation: riseIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
.hero-splash > *:nth-child(1) { animation-delay: 0.05s; }
.hero-splash > *:nth-child(2) { animation-delay: 0.22s; }
.hero-splash > *:nth-child(3) { animation-delay: 0.4s; }
.hero-splash > *:nth-child(4) { animation-delay: 0.58s; }

.hero-headline {
  text-align: center;
  width: 100%;
  max-width: 1200px;
  pointer-events: auto;
}
.hero-headline h1 {
  font-size: clamp(48px, 8vw, 92px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #eafbff;
  text-shadow: 0 2px 18px rgba(2,8,12,0.6), 0 0 40px rgba(123,228,255,0.3);
  margin: 0;
}

/* fusion formula — the GIS + BIM + AI thesis as one luminous line */
.hero-formula {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  pointer-events: auto;
}
.hf-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-family: var(--display);
  text-transform: uppercase;
}
.hf-term {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--holo);
  text-shadow: 0 0 20px rgba(123,228,255,0.55), 0 1px 8px rgba(2,8,12,0.8);
}
.hf-op {
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 300;
  color: rgba(207,238,248,0.6);
  text-shadow: 0 1px 8px rgba(2,8,12,0.8);
}
.hf-arrow { color: var(--warm); opacity: 0.9; }
.hf-out {
  color: var(--warm);
  text-shadow: 0 0 20px rgba(255,195,107,0.5), 0 1px 8px rgba(2,8,12,0.8);
}
.hf-sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-shadow: 0 1px 6px rgba(2,8,12,0.9);
  text-align: center;
}

/* CTA buttons — with the boxes gone, these carry the splash */
.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  pointer-events: auto;
}
.hero-cta .btn { padding: 15px 42px; font-size: 14px; }
.hero-cta .btn.primary { animation: ctaBreath 4s ease-in-out infinite; }
.hero-cta .btn.primary:hover { animation: none; }
@keyframes ctaBreath {
  50% { box-shadow: 0 0 44px rgba(123,228,255,0.6), inset 0 0 10px rgba(255,255,255,0.5); }
}

/* Hero video section — framed with breathing room, flows below the splash */
.hero-video-section {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px) clamp(64px, 10vh, 120px);
  pointer-events: auto;
}
.hero-video-section .video-embed {
  width: 100%;
  margin: 0;
  border: 1px solid rgba(123,228,255,0.25);
  border-top: 2px solid rgba(123,228,255,0.4);
  box-shadow: 0 0 80px rgba(123,228,255,0.2);
}

/* Hero meta strip - HIDDEN */
.hero-meta {
  display: none;
}
.hero-meta span::before {
  content: '▸ ';
  color: var(--holo);
  opacity: 0.7;
}

@media (max-width: 860px) {
  .hero-splash {
    padding: 96px 20px 56px;
    gap: 28px;
  }
  .hero-headline h1 {
    font-size: clamp(36px, 8vw, 56px);
  }
  .hf-line { gap: 8px 12px; }
  .hf-term { font-size: 17px; }
  .hf-op { font-size: 14px; }
  .hf-sub { font-size: 9px; letter-spacing: 0.24em; }
  .hero-banner { font-size: 10px; gap: 10px; }
  .hero-cta {
    gap: 14px;
  }
  .hero-cta .btn { padding: 13px 30px; font-size: 13px; }
  .hero-video-section {
    padding: 0 16px 64px;
  }
  .hero-meta {
    gap: 6px 16px;
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-splash > * { animation: none; }
  .hero-cta .btn.primary { animation: none; }
  .hb-dot { animation: none; }
}

@media (max-width: 1100px) { .hypertorus-hero { display: none; } }

/* ---------- floating raster diagram (screen-blended, edge-feathered) ---------- */
.diagram-img {
  position: absolute;
  top: 50%;
  width: clamp(420px, 44vw, 700px);
  height: auto;
  opacity: 0;
  transform: translateY(calc(-50% + 26px));
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 0 5px rgba(123, 228, 255, 0.35));
  -webkit-mask-image: radial-gradient(ellipse 78% 78% at 50% 50%, #000 60%, transparent 100%);
          mask-image: radial-gradient(ellipse 78% 78% at 50% 50%, #000 60%, transparent 100%);
}
.diagram-img.right { right: 4vw; }
.diagram-img.left  { left: 4vw; }
.sect.visible .diagram-img { opacity: 0.92; transform: translateY(-50%); }

@media (max-width: 1100px) { .diagram-img { display: none; } }

/* ---------- split-stack diagram (vertical split, halves stacked) ---------- */
.diagram-img-split {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(190px, 19vw, 290px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0.92;
  pointer-events: none;
  mix-blend-mode: screen;
}
.diagram-img-split.right { right: 4vw; }
.diagram-img-split.left { left: 4vw; }
.diagram-half {
  width: 100%;
  aspect-ratio: 5 / 8;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
}
.diagram-half img {
  width: 200%;
  height: 100%;
  max-width: none;
  max-height: none;
  position: absolute;
  top: 0;
  filter: contrast(1.05) brightness(0.95);
  object-fit: cover;
}
.diagram-left img {
  left: 0;
}
.diagram-right-half img {
  right: 0;
}
.diagram-half::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, transparent 40%, rgba(2,8,12,0.6) 100%);
  pointer-events: none;
}
@media (max-width: 1100px) { .diagram-img-split { display: none; } }

/* ---------- hero announcement banner — small live signal above the headline ---------- */
.hero-banner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 9px 7px 18px;
  border: 1px solid rgba(123,228,255,0.28);
  border-radius: 999px;
  background: rgba(4,14,20,0.6);
  backdrop-filter: blur(10px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  pointer-events: auto;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.hero-banner:hover {
  border-color: var(--holo-soft);
  box-shadow: 0 0 22px rgba(123,228,255,0.18);
  transform: translateY(-1px);
}
.hb-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 0 0 rgba(255,195,107,0.6);
  animation: hb-pulse 2s infinite;
}
@keyframes hb-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,195,107,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(255,195,107,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,195,107,0); }
}
.hb-cta {
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--holo);
  color: #021016;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--holo);
  text-shadow: 0 0 12px var(--holo-soft);
  border-left: 2px solid var(--holo);
  padding: 2px 0 2px 14px;
  margin-bottom: 26px;
}

h1 {
  font-family: var(--display);
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #eafbff;
  text-shadow: 0 0 28px rgba(123,228,255,0.35), 0 0 90px rgba(123,228,255,0.18);
  margin-bottom: 24px;
}
h2 {
  font-family: var(--display);
  font-size: clamp(27px, 3.4vw, 42px);
  line-height: 1.14;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #eafbff;
  text-shadow: 0 0 22px rgba(123,228,255,0.3);
  margin-bottom: 20px;
}
h3 {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #e2f6fc;
  margin-bottom: 6px;
}
h4 {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.grad {
  background: linear-gradient(100deg, var(--holo) 0%, #ffffff 60%, var(--holo) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 18px rgba(123,228,255,0.45));
}

p { margin-bottom: 16px; }
.lead { font-size: 17px; color: #b8dbe6; }
.dim { color: var(--ink-dim); }
.small { font-size: 13px; }

/* ---------------- BUTTONS ---------------- */
.hero-actions { display: flex; gap: 16px; margin: 32px 0 40px; flex-wrap: wrap; }
.hero-actions.center { justify-content: center; }

.btn {
  display: inline-block;
  padding: 13px 34px;
  border-radius: var(--r-sm);
  text-decoration: none;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all 0.25s;
  position: relative;
}
.btn.primary {
  color: #04141b;
  background: linear-gradient(180deg, #aef0ff, var(--holo));
  box-shadow: 0 0 26px rgba(123,228,255,0.35), inset 0 0 8px rgba(255,255,255,0.4);
}
.btn.primary:hover {
  box-shadow: 0 0 50px rgba(123,228,255,0.65), inset 0 0 10px rgba(255,255,255,0.5);
  transform: translateY(-2px);
}
.btn.ghost {
  border: 1px solid var(--holo-faint);
  color: var(--ink);
  background: rgba(123,228,255,0.04);
}
.btn.ghost:hover {
  border-color: var(--holo-soft);
  color: var(--holo);
  text-shadow: 0 0 10px var(--holo-soft);
  box-shadow: 0 0 22px rgba(123,228,255,0.18);
}

/* ---------------- FUSE (GIS + BIM + AI → ENGINE) ---------------- */
.fuse {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin: 30px 0 6px;
  flex-wrap: wrap;
}
.fuse-in {
  flex: 1 1 120px;
  min-width: 120px;
  border: 1px solid rgba(123,228,255,0.22);
  border-top: 2px solid var(--holo);
  padding: 12px 14px;
  background: linear-gradient(175deg, rgba(123,228,255,0.08), rgba(123,228,255,0.015));
  box-shadow: 0 0 14px rgba(123,228,255,0.08), inset 0 8px 18px -14px var(--holo-soft);
}
.fuse-tag {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--holo);
  text-shadow: 0 0 14px var(--holo-soft);
  margin-bottom: 4px;
}
.fuse-d {
  display: block;
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink-dim);
}
.fuse-op {
  align-self: center;
  font-family: var(--mono);
  font-size: 16px;
  color: var(--holo);
  text-shadow: 0 0 12px var(--holo-soft);
  opacity: 0.85;
}
.fuse-out {
  border-top-color: var(--warm);
  box-shadow: 0 0 20px rgba(255,195,107,0.14), inset 0 8px 18px -14px rgba(255,195,107,0.5);
}
.fuse-out .fuse-tag {
  color: var(--warm);
  text-shadow: 0 0 14px rgba(255,195,107,0.5);
}

/* ---------------- HERO STATS ---------------- */
.hero-stats {
  display: flex;
  gap: 48px;
  border-top: 1px solid var(--holo-faint);
  padding-top: 28px;
}
.stat-n {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 500;
  color: var(--holo);
  text-shadow: 0 0 18px var(--holo-soft);
}
.stat-l { font-size: 12px; color: var(--ink-dim); letter-spacing: 0.04em; }

/* ---------------- META STRIP ---------------- */
.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px dashed rgba(123,228,255,0.18);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
}
.meta-strip span::before {
  content: '\25B8 ';
  color: var(--holo);
  opacity: 0.7;
}

/* ---------------- CARDS / MODULES ---------------- */
.cards, .mod-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 30px;
}
.card, .mod {
  border: 1px solid rgba(123,228,255,0.22);
  border-radius: var(--r-md);
  padding: 22px 24px;
  background:
    /* technical tick ruler along the top edge */
    repeating-linear-gradient(90deg, rgba(123,228,255,0.35) 0 1px, transparent 1px 14px) top / 100% 5px no-repeat,
    linear-gradient(175deg, rgba(123,228,255,0.07), rgba(123,228,255,0.015)),
    linear-gradient(0deg, rgba(4,12,18,0.68), rgba(4,12,18,0.68));
  box-shadow: 0 0 14px rgba(123,228,255,0.07), inset 0 1px 0 rgba(123,228,255,0.25);
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
/* edge tick marks (left ruler) */
.card::before, .mod::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 5px;
  background: repeating-linear-gradient(180deg, rgba(123,228,255,0.3) 0 1px, transparent 1px 12px);
  pointer-events: none;
}
/* screen-blend light sweep */
.card::after, .mod::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(123,228,255,0.18) 50%, transparent 70%);
  background-size: 280% 100%;
  background-position: 120% 0;
  mix-blend-mode: screen;
  pointer-events: none;
  transition: background-position 0.9s ease;
}
.card:hover, .mod:hover {
  border-color: var(--holo-soft);
  box-shadow:
    0 0 30px rgba(123,228,255,0.22),
    0 0 4px rgba(123,228,255,0.5),
    inset 0 0 24px rgba(123,228,255,0.06);
  transform: translateY(-2px);
}
.card:hover::after, .mod:hover::after { background-position: -60% 0; }
.card:last-child { grid-column: 1 / -1; }
.card-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--holo);
  text-shadow: 0 0 8px var(--holo-soft);
  margin-bottom: 10px;
}
.card p, .mod p { font-size: 13px; color: var(--ink-dim); margin: 0; line-height: 1.6; }
.mod h4 {
  font-size: 15px;
  color: var(--holo);
  text-shadow: 0 0 12px rgba(123,228,255,0.4);
  margin-bottom: 8px;
}

/* ---------------- IN-ENGINE SHOTS ---------------- */
.shot {
  margin: 0;
  border: 1px solid rgba(123,228,255,0.22);
  border-radius: var(--r-md);
  background: linear-gradient(175deg, rgba(123,228,255,0.06), rgba(123,228,255,0.01)), linear-gradient(0deg, rgba(4,12,18,0.55), rgba(4,12,18,0.55));
  box-shadow: 0 0 16px rgba(123,228,255,0.08);
  padding: 8px;
  position: relative;
  transition: all 0.25s;
}
.shot:hover {
  border-color: var(--holo-soft);
  box-shadow: 0 0 34px rgba(123,228,255,0.24), 0 0 4px rgba(123,228,255,0.5);
  transform: translateY(-2px);
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--holo-ghost);
  border-radius: 6px;
}
.shot figcaption {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  padding: 10px 6px 4px;
}
.shot figcaption::before {
  content: '\25B8 ';
  color: var(--holo);
  opacity: 0.7;
}
.shot.feature { margin-top: 26px; }
.shot.feature figcaption { color: var(--holo); text-shadow: 0 0 8px rgba(123,228,255,0.3); }
.shot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

/* ---------------- DUO ---------------- */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 26px 0 18px;
}
.duo-col {
  border: 1px solid rgba(123,228,255,0.2);
  border-radius: var(--r-md);
  padding: 20px 22px;
  background: linear-gradient(175deg, rgba(123,228,255,0.07), transparent), linear-gradient(0deg, rgba(4,12,18,0.6), rgba(4,12,18,0.6));
  box-shadow: 0 0 14px rgba(123,228,255,0.06);
}
.duo-col.good { border-top: 2px solid var(--holo); box-shadow: inset 0 12px 24px -18px var(--holo-soft); }
.duo-col.bad { border-top: 2px solid var(--warm); box-shadow: inset 0 12px 24px -18px rgba(255,195,107,0.5); }
.duo-col.good h4 { color: var(--holo); text-shadow: 0 0 10px var(--holo-soft); }
.duo-col.bad h4 { color: var(--warm); text-shadow: 0 0 10px rgba(255,195,107,0.4); }
.duo-col ul { list-style: none; }
.duo-col li {
  font-size: 13px;
  color: var(--ink-dim);
  padding: 5px 0 5px 16px;
  position: relative;
  line-height: 1.5;
}
.duo-col li::before {
  content: '';
  position: absolute;
  left: 0; top: 12px;
  width: 5px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* ---------------- SCALES ---------------- */
.scale-list { margin: 28px 0; }
.scale-row {
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding: 15px 0;
  border-bottom: 1px solid var(--holo-ghost);
  font-size: 14px;
  color: var(--ink-dim);
}
.scale-row:first-child { border-top: 1px solid var(--holo-ghost); }
.scale-tag {
  font-family: var(--display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--holo);
  text-shadow: 0 0 10px var(--holo-soft);
  min-width: 140px;
}

/* ---------------- APPLICATIONS ---------------- */
.app-list { margin-top: 26px; }
.app-row { padding: 20px 0; border-bottom: 1px solid var(--holo-ghost); }
.app-row:first-child { border-top: 1px solid var(--holo-ghost); }
.app-row p { font-size: 13px; color: var(--ink-dim); margin: 0; }

/* ---------------- TEAM ---------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
}
.member {
  border: 1px solid rgba(123,228,255,0.22);
  border-radius: var(--r-md);
  padding: 22px;
  background:
    repeating-linear-gradient(90deg, rgba(123,228,255,0.35) 0 1px, transparent 1px 14px) top / 100% 5px no-repeat,
    linear-gradient(175deg, rgba(123,228,255,0.07), rgba(123,228,255,0.015)),
    linear-gradient(0deg, rgba(4,12,18,0.68), rgba(4,12,18,0.68));
  box-shadow: 0 0 14px rgba(123,228,255,0.07), inset 0 1px 0 rgba(123,228,255,0.25);
  transition: all 0.25s;
  position: relative;
}
.member:hover {
  border-color: var(--holo-soft);
  box-shadow: 0 0 30px rgba(123,228,255,0.22), 0 0 4px rgba(123,228,255,0.5);
  transform: translateY(-2px);
}
.member img {
  mix-blend-mode: screen;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin-bottom: 16px;
  filter: saturate(0.55) contrast(1.05) brightness(0.95);
  border: 1px solid var(--holo-ghost);
  border-radius: 6px;
  transition: filter 0.3s;
}
.member:hover img { filter: saturate(0.9) contrast(1.02); }
.member h3 { font-size: 18px; margin-bottom: 2px; }
.member-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--holo);
  text-shadow: 0 0 8px var(--holo-soft);
  margin-bottom: 12px;
}
.member p { font-size: 12.5px; color: var(--ink-dim); margin: 0; line-height: 1.65; }
/* photographic portraits (full-frame, not cut-out) render without screen blend */
.member.photo img {
  mix-blend-mode: normal;
  object-fit: cover;
  object-position: center 28%;
  filter: saturate(0.96) contrast(1.02);
}

/* ---------------- PARTNERS ---------------- */
.partners-strip {
  margin-top: 30px;
  padding: 26px 28px;
  border: 1px solid rgba(123,228,255,0.18);
  border-top: 2px solid var(--holo);
  border-radius: var(--r-md);
  background: linear-gradient(175deg, rgba(123,228,255,0.05), rgba(123,228,255,0.01));
  box-shadow: 0 0 16px rgba(123,228,255,0.07), inset 0 0 40px rgba(0,0,0,0.35);
}
.partners-strip img { display: block; width: 100%; height: auto; border-radius: 6px; }

/* ---------------- PIPELINE ---------------- */
#pipeline .frame { max-width: 1200px; }
.pipeline {
  display: flex;
  align-items: stretch;
  gap: 6px;
  margin-top: 30px;
}
.pipe-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pipe-head {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--holo);
  text-shadow: 0 0 8px var(--holo-soft);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--holo-faint);
}
.pipe-cell {
  flex: 1;
  border: 1px solid rgba(123,228,255,0.2);
  border-left: 2px solid var(--holo);
  border-radius: var(--r-sm);
  padding: 11px 12px;
  background: linear-gradient(175deg, rgba(123,228,255,0.06), rgba(123,228,255,0.015)), linear-gradient(0deg, rgba(4,12,18,0.6), rgba(4,12,18,0.6));
  box-shadow: 0 0 12px rgba(123,228,255,0.05);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.pipe-cell:hover {
  border-color: var(--holo-soft);
  box-shadow: 0 0 18px rgba(123,228,255,0.18);
  transform: translateY(-1px);
}
.pipe-cell h4 { font-size: 12.5px; color: #dff3fb; margin-bottom: 3px; }
.pipe-cell p { font-size: 10.5px; color: var(--ink-dim); margin: 0; line-height: 1.45; }
.pipe-arrow {
  flex: 0 0 auto;
  align-self: center;
  color: var(--holo);
  opacity: 0.65;
  font-size: 15px;
}
.pipe-arrow.warm { color: var(--warm); }
.pipe-col.delivery .pipe-head {
  color: var(--warm);
  text-shadow: 0 0 8px rgba(255,195,107,0.4);
  border-bottom-color: rgba(255,195,107,0.25);
}
.pipe-col.delivery .pipe-cell { border-left-color: var(--warm); }
@media (max-width: 860px) {
  .pipeline { flex-direction: column; gap: 14px; }
  .pipe-arrow { transform: rotate(90deg); }
}

/* ---------------- QUOTE ---------------- */
blockquote {
  margin-top: 30px;
  padding: 24px 28px;
  border-left: 2px solid var(--holo);
  border-radius: var(--r-sm);
  background: linear-gradient(90deg, rgba(123,228,255,0.08), transparent);
  box-shadow: inset 12px 0 30px -20px var(--holo-soft);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: #cdeefa;
}
blockquote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
}

/* ---------------- VISION CARD ---------------- */
.vision-card {
  margin-top: 30px;
  padding: 34px 36px;
  border: 1px solid rgba(255,195,107,0.32);
  border-top: 2px solid var(--warm);
  border-radius: var(--r-md);
  background:
    repeating-linear-gradient(90deg, rgba(255,195,107,0.32) 0 1px, transparent 1px 14px) top / 100% 5px no-repeat,
    linear-gradient(170deg, rgba(255,195,107,0.10), rgba(255,195,107,0.02) 55%, rgba(123,228,255,0.04)),
    linear-gradient(0deg, rgba(10,8,6,0.6), rgba(10,8,6,0.6));
  box-shadow: 0 0 26px rgba(255,195,107,0.10), inset 0 1px 0 rgba(255,195,107,0.28);
  position: relative;
  overflow: hidden;
}
.vision-card .vc-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--warm);
  text-shadow: 0 0 10px rgba(255,195,107,0.4);
  margin-bottom: 14px;
}
.vision-card .vc-statement {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
  color: #fbe9cf;
}
.vision-card .vc-statement em {
  font-style: normal;
  color: var(--warm);
  text-shadow: 0 0 16px rgba(255,195,107,0.45);
}
.vision-card .vc-sub {
  margin: 16px 0 0;
  font-size: 13.5px;
  color: var(--ink-dim);
  line-height: 1.7;
}
@media (max-width: 760px) {
  .vision-card .vc-statement { font-size: 19px; }
}

/* ---------------- PRICING ---------------- */
.price-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin: 4px 0 14px;
}
.price-n {
  font-family: var(--display);
  font-size: 54px;
  font-weight: 500;
  line-height: 1;
  color: var(--holo);
  text-shadow: 0 0 24px var(--holo-soft);
}
.price-u {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.price-badge {
  padding: 5px 14px;
  border: 1px solid rgba(255,195,107,0.4);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm);
  text-shadow: 0 0 8px rgba(255,195,107,0.4);
  align-self: center;
}
.price-list {
  list-style: none;
  margin: 20px 0 4px;
}
.price-list li {
  font-size: 13.5px;
  color: var(--ink-dim);
  line-height: 1.5;
  padding: 9px 0 9px 22px;
  position: relative;
  border-bottom: 1px solid var(--holo-ghost);
}
.price-list li:first-child { border-top: 1px solid var(--holo-ghost); }
.price-list li::before {
  content: '\25B8';
  position: absolute;
  left: 2px;
  color: var(--holo);
  opacity: 0.8;
}

/* ---------------- STUDIO ---------------- */
.studio-list { max-width: 620px; margin-left: auto; margin-right: auto; text-align: left; }
.studio-contact {
  margin: 32px auto 6px;
  max-width: 560px;
  padding: 30px 34px;
  border: 1px solid var(--holo-soft);
  border-radius: 10px;
  background: linear-gradient(0deg, rgba(4,12,18,0.5), rgba(4,12,18,0.5)), var(--pane);
  box-shadow: 0 0 40px rgba(123,228,255,0.08), inset 0 0 30px rgba(123,228,255,0.04);
  text-align: center;
}
.studio-contact .vc-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--holo);
  text-shadow: 0 0 10px rgba(123,228,255,0.4);
  margin-bottom: 16px;
}
.studio-contact-name {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
}
.studio-contact-role {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 4px;
}
.studio-contact-email {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--holo);
  text-decoration: none;
  border-bottom: 1px solid var(--holo-faint);
  transition: color 0.2s, border-color 0.2s;
}
.studio-contact-email:hover {
  color: #aef0ff;
  border-color: var(--holo-soft);
}
.studio-contact .hero-actions { margin-top: 22px; }
@media (max-width: 760px) {
  .studio-contact { padding: 24px; }
  .studio-contact-name { font-size: 19px; }
}

/* ---------------- VIDEO EMBED ---------------- */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(123,228,255,0.22);
  border-top: 2px solid var(--holo);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(4,12,18,0.7);
  box-shadow: 0 0 30px rgba(123,228,255,0.14), inset 0 0 40px rgba(0,0,0,0.4);
}
.video-embed iframe,
.video-embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ---------------- BOOKS ---------------- */
.books-block { margin-top: 30px; }
.books {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 14px;
}
.book {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--holo-faint);
  border-left: 2px solid var(--holo);
  background: rgba(4, 12, 18, 0.55);
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.book:hover {
  border-color: var(--holo-soft);
  transform: translateY(-2px);
  box-shadow: 0 0 26px rgba(123, 228, 255, 0.16);
}
.book-cover { flex: 0 0 96px; }
.book-cover img {
  width: 96px;
  height: auto;
  display: block;
  border: 1px solid var(--holo-faint);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}
.book-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.book-vol {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--warm);
}
.book-title {
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.25;
  color: var(--ink);
}
.book-sub {
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.5;
}
.book-cta {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--holo);
}
.book:hover .book-cta { color: var(--warm); }

/* ---------------- OUTRO ---------------- */
.outro footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--holo-faint);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.outro footer span:first-child {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--holo);
  text-shadow: 0 0 14px var(--holo-soft);
}

/* ---------------- EMAIL SUBSCRIBE ---------------- */
.subscribe-form { width: 100%; max-width: 640px; margin: 32px auto 0; }
.subscribe-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
}
.subscribe-input {
  flex: 1 1 180px;
  padding: 13px 18px;
  background: rgba(123,228,255,0.05);
  border: 1px solid var(--holo-faint);
  border-radius: var(--r-sm);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.subscribe-input::placeholder { color: var(--ink-dim); }
.subscribe-input:focus {
  border-color: var(--holo-soft);
  box-shadow: 0 0 14px rgba(123,228,255,0.12);
}
.subscribe-btn { flex-shrink: 0; white-space: nowrap; }
.subscribe-msg {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  min-height: 20px;
}
.subscribe-msg.ok  { color: var(--holo); text-shadow: 0 0 10px var(--holo-soft); }
.subscribe-msg.err { color: #ff6b6b; }
@media (max-width: 600px) {
  .subscribe-row { flex-direction: column; }
  .subscribe-btn { width: 100%; }
}

/* ---------------- RESPONSIVE ---------------- */
/* nav collapses to the hamburger before the links can overflow */
@media (max-width: 1020px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: transparent;
    border: 1px solid var(--holo-faint);
    border-radius: var(--r-sm);
    cursor: pointer;
    z-index: 20;
  }
  .nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--holo);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-links {
    position: fixed;
    top: 60px;
    right: -100%;
    width: min(280px, 80vw);
    height: calc(100vh - 60px);
    flex-direction: column;
    gap: 0;
    padding: 20px;
    background: rgba(2, 5, 7, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--holo-faint);
    transition: right 0.3s ease;
    z-index: 19;
  }
  .nav-links.open { right: 0; }
  .nav-links a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(123, 228, 255, 0.1);
    font-size: 14px;
  }
  .nav-links a.nav-cta {
    margin-top: 20px;
    text-align: center;
  }
}

@media (max-width: 860px) {
  #nav { padding: 14px 18px; }

  .sect { padding: 80px 16px; }
  .frame { padding: 28px 22px; max-width: 100%; }
  .frame.wide, .frame.xwide { max-width: 100%; }
  .hero-frame { max-width: 100%; }

  .cards, .duo, .mod-grid, .team-grid, .shot-grid, .books { grid-template-columns: 1fr; }
  .fuse { flex-direction: column; }
  .fuse-op { align-self: flex-start; padding-left: 4px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }

  #telemetry { gap: 12px; padding: 8px 14px; font-size: 10px; bottom: 16px; }
  .tel-item:nth-child(2), .tel-item:nth-child(4) { display: none; }
  #gis-readout { display: none; }

  /* Typography scaling */
  h1 { font-size: clamp(28px, 6vw, 42px); }
  h2 { font-size: clamp(24px, 5vw, 36px); }
  .lead { font-size: 15px; }
  .kicker { font-size: 10px; letter-spacing: 0.2em; }

  /* Hero adjustments */
  .hero-banner { font-size: 11px; padding: 10px 12px 10px 16px; gap: 10px; }
  .hb-text { max-width: 140px; line-height: 1.4; }
  .video-embed { margin: 30px 0 0; }

  /* Better touch targets */
  .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .card, .mod, .pipe-cell { padding: 20px; }
  .app-row { padding: 16px 0; }

  /* Pipeline mobile */
  .pipeline { flex-direction: column; gap: 14px; }
  .pipe-arrow { transform: rotate(90deg); }

  /* Grid single column */
  .shot-grid { grid-template-columns: 1fr; gap: 16px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .mod-grid { gap: 16px; }

  /* Vision card */
  .vision-card { padding: 24px; }
  .vision-card .vc-statement { font-size: 18px; }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .stat-n { font-size: 28px; }
  .stat-l { font-size: 11px; }
  .hero-stats { gap: 20px; }
  .fuse-in { min-width: auto; }
  .pipe-cell h4 { font-size: 13px; }
}

@media (min-width: 1021px) {
  .nav-toggle { display: none; }
}
