/* ============================================
   EGP VISION — Global Styles
   Dark tech theme · Apple-style layout
   ============================================ */

/* --- CSS Variables --- */
:root {
  /* Colors */
  --bg-primary: #111111;
  --text-primary: #f2f9ff;
  --text-secondary: #c9cdd4;
  --text-muted: #a1abb4;
  --accent-green: #11be62;
  --gradient-text: linear-gradient(0deg, #9ab5cb 0%, #f2f9ff 100%);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace;

  /* Layout */
  --design-width: 1440px;   /* the page is always laid out at this width */
  --container-width: 1440px;
  --radius-card: 28px;
  --radius-btn: 100px;

  /* Transitions */
  --transition-fast: 0.2s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: #111111;   /* fills the gutters on screens wider than the design */
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Fixed layout: always the 1440px design. Narrower windows scale the whole
     page down proportionally (see js/fixed-scale.js) instead of reflowing. */
  width: var(--design-width);
  margin: 0 auto;   /* centred when the window is wider than the design */
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;   /* neutralise the HTML height attribute (prevents stretching) */
  display: block;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* --- Utilities --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-ball {
  position: absolute;
  width: 732px;
  height: 712px;
  border-radius: 50%;
  filter: blur(150px);
  pointer-events: none;
  z-index: 0;
}

.glow-ball--green { background: rgba(17, 190, 98, 0.12); }
.glow-ball--blue { background: #122563; }

.section-eyebrow,
.hero__eyebrow,
.pillar__num,
.bento__num,
.va-feature__num,
.shot__caption {
  font-family: var(--font-mono);
}

/* ============================================
   NAVIGATION — floating glass pill
   ============================================ */
.navbar {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  max-width: 820px;
  margin: 0 auto;
  height: 60px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 46px;
  border-radius: var(--radius-btn);
  background: rgba(17, 17, 17, 0.45);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.35s ease, background 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}

.navbar.scrolled {
  background: rgba(17, 17, 17, 0.75);
  border-color: rgba(255, 255, 255, 0.12);
}

/* --- Brand mark, sitting where the wordmark used to be in the pill --- */
.site-logo {
  display: block;
  line-height: 0;
  flex-shrink: 0;
  transition: opacity 0.25s ease;
}

.site-logo img {
  height: 34px;
  width: auto;
}

.site-logo:hover {
  opacity: 0.8;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-btn {
  padding: 9px 16px;
  border-radius: var(--radius-btn);
  color: var(--text-secondary);
  font-size: 15px;
  transition: var(--transition-fast);
}

.nav-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.nav-btn--cta {
  background: var(--text-primary);
  color: #111;
  font-weight: 500;
  padding: 9px 20px;
}

.nav-btn--cta:hover {
  background: #fff;
  color: #111;
  transform: scale(1.03);
}

/* --- Mobile menu --- */
.navbar__menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  cursor: pointer;
}

.navbar__menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-size: 24px;
  padding: 10px 20px;
}

/* ============================================
   HERO — LIDAR POINT CLOUD
   ============================================ */
.hero {
  position: relative;
  height: var(--viewport-height, 100vh);   /* set in scaled units by fixed-scale.js */
  min-height: 520px;   /* low enough not to fight --viewport-height when scaled up */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg--fallback {
  background:
    radial-gradient(ellipse 80% 60% at 50% 45%, rgba(18, 37, 99, 0.25) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 50% 80%, rgba(17, 190, 98, 0.06) 0%, transparent 70%),
    linear-gradient(180deg, #0a0d10 0%, #05080a 55%, #111111 100%);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.55) 0%, transparent 18%, transparent 70%, #111111 100%),
    radial-gradient(ellipse 120% 90% at 50% 50%, transparent 55%, rgba(5, 8, 10, 0.6) 100%);
}

/* faint scanlines for a sensor-feed feel */
.hero__vignette::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.015) 0px,
    rgba(255, 255, 255, 0.015) 1px,
    transparent 1px,
    transparent 4px
  );
}

/* --- HUD overlay --- */
.hero__hud {
  position: absolute;
  inset: 110px 32px 40px;
  pointer-events: none;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.7;
  color: rgba(242, 249, 255, 0.75);
}

.hud-corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(17, 190, 98, 0.55);
}

.hud-corner--tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.hud-corner--tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.hud-corner--bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.hud-corner--br { bottom: 0; right: 0; border-left: none; border-top: none; }

.hud-block { position: absolute; }
.hud-block--tl { top: 14px; left: 18px; }
.hud-block--tr { top: 14px; right: 18px; text-align: right; }
.hud-block--br { bottom: 14px; right: 18px; text-align: right; }

.hud-dim {
  color: rgba(161, 171, 180, 0.65);
  font-size: 11px;
}

.hud-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  margin-right: 6px;
  box-shadow: 0 0 8px rgba(17, 190, 98, 0.9);
  animation: hudBlink 1.6s ease-in-out infinite;
}

@keyframes hudBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* --- Hero copy --- */
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  padding: 40px 48px 46px;
  will-change: transform, opacity; /* promote to its own compositor layer */
  transform: translateZ(0);
}

/* Soft frosted scrim — dims + blurs the busy point cloud directly behind
   the text, with a radial mask so the edges fade out (no hard box) */
.hero__content::before {
  content: '';
  position: absolute;
  inset: -24px -36px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 72% 84% at 50% 46%,
    rgba(6, 9, 12, 0.62) 0%, rgba(6, 9, 12, 0.34) 52%, transparent 80%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  -webkit-mask: radial-gradient(ellipse 72% 84% at 50% 46%, #000 42%, transparent 82%);
  mask: radial-gradient(ellipse 72% 84% at 50% 46%, #000 42%, transparent 82%);
}

/* HUD-style corner brackets — ties the title to the LiDAR overlay theme */
.hero__content::after {
  content: '';
  position: absolute;
  inset: -10px -22px;
  z-index: 1;
  pointer-events: none;
  --c: rgba(140, 210, 190, 0.45);
  --s: 20px;
  --t: 1px;
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / var(--s) var(--t),
    linear-gradient(var(--c), var(--c)) 0 0 / var(--t) var(--s),
    linear-gradient(var(--c), var(--c)) 100% 0 / var(--s) var(--t),
    linear-gradient(var(--c), var(--c)) 100% 0 / var(--t) var(--s),
    linear-gradient(var(--c), var(--c)) 0 100% / var(--s) var(--t),
    linear-gradient(var(--c), var(--c)) 0 100% / var(--t) var(--s),
    linear-gradient(var(--c), var(--c)) 100% 100% / var(--s) var(--t),
    linear-gradient(var(--c), var(--c)) 100% 100% / var(--t) var(--s);
  background-repeat: no-repeat;
}

.hero__eyebrow {
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--accent-green);
  margin-bottom: 22px;
  opacity: 0;
  animation: heroFadeIn 1s ease 0.1s forwards;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
}

.hero__title {
  font-size: clamp(48px, 7vw, 90px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.72), 0 1px 4px rgba(0, 0, 0, 0.6);
}

.hero__title strong {
  font-weight: 700;
  text-shadow:
    0 0 6px rgba(17, 190, 98, 0.42),
    0 0 20px rgba(17, 190, 98, 0.55),
    0 0 42px rgba(17, 190, 98, 0.35),
    0 2px 22px rgba(0, 0, 0, 0.72);
}

/* second title line — small optical nudge to the right */
.hero__title span.hero__title-l2 {
  display: inline-block;
  transform: translateX(8px);
  animation: none;
  opacity: 1;
}

.hero__title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  animation: wordFadeIn 0.6s ease forwards;
}

.hero__title span:nth-child(1) { animation-delay: 0.2s; }
.hero__title span:nth-child(2) { animation-delay: 0.4s; }
.hero__title span:nth-child(3) { animation-delay: 0.6s; }
.hero__title span:nth-child(4) { animation-delay: 0.8s; }

@keyframes heroFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes wordFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero__sub {
  margin: 26px auto 0;
  max-width: 520px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-secondary);
  font-weight: 300;
  opacity: 0;
  animation: heroFadeIn 1s ease 1.1s forwards;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.75);
}

.hero__scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 22px;
  height: 36px;
  border: 1px solid rgba(242, 249, 255, 0.3);
  border-radius: 12px;
  opacity: 0;
  animation: heroFadeIn 1s ease 1.8s forwards;
}

.hero__scroll-cue span {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--accent-green);
  animation: scrollCue 1.8s ease-in-out infinite;
}

@keyframes scrollCue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ============================================
   SHARED SECTION HEAD
   ============================================ */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  margin-bottom: 64px;
  position: relative;
  z-index: 1;
}

.section-eyebrow {
  font-size: 13px;
  letter-spacing: 0.25em;
  color: var(--accent-green);
}

.section-title {
  font-size: clamp(44px, 5.5vw, 84px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.section-sub {
  font-size: 21px;
  line-height: 1.55;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 660px;
}

.section-sub strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ============================================
   STATEMENT — word-by-word reveal
   ============================================ */
.statement {
  padding: 160px 0 118px;
}

.statement__text {
  max-width: 920px;
  margin: 0 auto;
  font-size: clamp(30px, 3.8vw, 52px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.reveal-word {
  color: rgba(242, 249, 255, 0.15);
  transition: color 0.35s ease;
}

.reveal-word.lit { color: var(--text-primary); }
.reveal-word--accent.lit { color: var(--accent-green); }

/* --- Stats band --- */
.stats-band {
  max-width: 1100px;
  margin: 130px auto 0;
  padding-top: 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat__num {
  display: block;
  font-size: clamp(40px, 4.5vw, 68px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat__label {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================
   PILLARS — what we deliver
   ============================================ */
.offerings {
  padding: 36px 0 125px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pillar {
  display: block;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%);
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.pillar:hover {
  transform: translateY(-4px);
  border-color: rgba(17, 190, 98, 0.35);
}

/* clickable pillar -> jumps to the hardware lineup */
.pillar--link { cursor: pointer; color: inherit; }

.pillar--link:hover {
  border-color: rgba(17, 190, 98, 0.5);
}

.pillar__cue {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-green);
}

.pillar__cue svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.pillar--link:hover .pillar__cue svg {
  transform: translateX(5px);
}

.pillar__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.pillar__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* Systems Integration photo is pre-cropped to 4:3 with the robot already
   framed, so it fills the tile exactly — no further offset needed */
.pillar__media img[src*="systems-integration"] {
  object-fit: cover;
  object-position: center;
}

.pillar:hover .pillar__media img {
  transform: scale(1.045);
}

.pillar__body {
  padding: 26px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pillar__num {
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--accent-green);
}

.pillar__title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.pillar__desc {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* ============================================
   HARDWARE — robot | payloads | integration
   ============================================ */
.products {
  position: relative;
  padding: 125px 0;
  overflow: hidden;
}

.hw {
  display: grid;
  grid-template-columns: 1.15fr 1.1fr 0.95fr;   /* robot column carries a little more weight */
  gap: 40px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.hw__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 20px;
}

/* Left — robot */
.hw__robot-frame {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(ellipse 90% 80% at 50% 45%, rgba(18, 37, 99, 0.25) 0%, transparent 70%),
    #0a0d10;
  transition: border-color 0.35s ease;
}

.hw__robot:hover .hw__robot-frame {
  border-color: rgba(17, 190, 98, 0.45);
}

.hw__robot-frame img {
  width: 100%;
  display: block;
  transform: scale(1.06);          /* zoom in a touch so the robot fills more */
  transform-origin: center;        /* robot is centred in the file now */
  transition: transform 0.6s ease;
}

.hw__robot:hover .hw__robot-frame img {
  transform: scale(1.13);          /* extra zoom on hover, like the other cards */
}

.hw__robot-name {
  margin-top: 22px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.hw__robot-desc {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Middle — payload grid */
.payload-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.payload {
  margin: 0;
  transition: transform 0.3s ease;
}

.payload__img {
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0d0f12;
}

.payload__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.payload:hover {
  transform: translateY(-4px);
}

.payload:hover .payload__img {
  border-color: rgba(17, 190, 98, 0.45);
}

.payload figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.payload__img--more {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
}

/* Right — integration service */
.hw__svc-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.hw__svc-desc {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.hw__points {
  margin-top: 24px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hw__points li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: var(--text-primary);
}

.hw__points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 7px;
  border-left: 1.5px solid var(--accent-green);
  border-bottom: 1.5px solid var(--accent-green);
  transform: rotate(-45deg);
}



/* ============================================
   VIDEO ANALYTICS
   ============================================ */
.va {
  position: relative;
  padding: 125px 0 80px;   /* tighter below the panoramic */
  overflow: hidden;
}

.va__bg-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 601px;
  background: linear-gradient(180deg, transparent, rgba(18, 37, 99, 0.3));
  pointer-events: none;
}

.va-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: stretch;   /* screenshot matches the feature list's height */
}

.va-visual .shot {
  width: 100%;
}

.va-feature {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.va-feature:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.va-feature__num {
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--accent-green);
  padding-top: 4px;
}

.va-feature__title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.va-feature__desc {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* --- Screenshot frames (HUD corner accents) --- */
.shot {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.35s ease, border-color 0.35s ease;
}

/* same hover treatment as the cards elsewhere on the page */
.shot:hover {
  transform: translateY(-4px);
  border-color: rgba(17, 190, 98, 0.45);
}

.shot img {
  transition: transform 0.6s ease;
}

.shot:hover img {
  transform: scale(1.045);
}

.shot::before,
.shot::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  z-index: 2;
  pointer-events: none;
}

.shot::before {
  top: 10px;
  left: 10px;
  border-top: 1px solid rgba(17, 190, 98, 0.7);
  border-left: 1px solid rgba(17, 190, 98, 0.7);
}

.shot::after {
  bottom: 10px;
  right: 10px;
  border-bottom: 1px solid rgba(17, 190, 98, 0.7);
  border-right: 1px solid rgba(17, 190, 98, 0.7);
}

.shot img {
  width: 100%;
}

/* VA split visual — same frame shape as before, image scaled to fill (no distortion) */
.va-visual .shot img {
  width: 100%;
  object-fit: cover;
  object-position: left center;
}

.shot__caption {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding: 12px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.shot__caption .hud-dot {
  width: 6px;
  height: 6px;
  margin-right: 8px;
}

.va-gui {
  display: flex;
  flex-direction: column;
  gap: 34px;   /* breathing room between the thermal row and the panoramic */
  max-width: 1100px;
  margin: 56px auto 0;
  will-change: transform, opacity;
}

/* Two thermal frames side by side. Held to a modest width because the
   source captures are small — displaying them larger would soften them. */
.va-gui__pair {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;   /* same width as the panoramic below */
}

.va-gui__pair .shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}


/* ============================================
   DEPLOYMENTS — bento grid
   ============================================ */
.services {
  position: relative;
  padding: 125px 0;
  overflow: hidden;
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

.bento__card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-card);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.015) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.bento__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 85% 0%, rgba(17, 190, 98, 0.12) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.bento__card:hover {
  transform: translateY(-4px);
  border-color: rgba(17, 190, 98, 0.35);
}

.bento__card:hover::before {
  opacity: 1;
}

.bento__card--hero {
  grid-column: span 4;
  grid-row: span 2;
}

.bento > .bento__card:nth-child(4),
.bento > .bento__card:nth-child(5) {
  grid-column: span 3;
}

.bento__media {
  height: 210px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bento__card--hero .bento__media {
  flex: 1;
  min-height: 320px;
  height: auto;
}

.bento__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.bento__card:hover .bento__media img {
  transform: scale(1.045);
}

/* SP Gas photo — frame the robot's body (sensor head down to upper legs) */
.bento__media img[src*="sp-gas"] {
  object-position: center 57%;
}

/* Industrial O&M photo — keep the robot dog as the crop subject */
.bento__media img[src*="industrial-om"] {
  object-position: center 70%;
}

/* Disaster-rescue photo — keep the rescue dogs centred in the crop */
.bento__media img[src*="firefighting"] {
  object-position: center 42%;
}

.bento__body {
  padding: 24px 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bento__num {
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--accent-green);
}

.bento__title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.bento__desc {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  position: relative;
  padding: 125px 0 155px;
  overflow: hidden;
}

.contact__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
}

.contact__header.section-head {
  margin-bottom: 0;
}

.contact__buttons {
  display: flex;
  align-items: center;
  gap: 52px;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.3s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
}

/* Filled pill holding the text */
.cta-btn__pill {
  position: relative;
  overflow: hidden;
  display: inline-grid;
  place-items: center;
  min-width: 210px;
  padding: 20px 36px;
  border-radius: var(--radius-btn);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.cta-btn:hover .cta-btn__pill {
  border-color: var(--text-primary);
  color: #111;
}

/* Ink fill that expands from the cursor on hover */
.cta-btn__fill {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--text-primary);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s ease;
  z-index: 1;
  pointer-events: none;
}

.cta-btn:hover .cta-btn__fill {
  transform: translate(-50%, -50%) scale(13);
}

/* Swap label -> value on hover */
.cta-btn__label,
.cta-btn__value {
  grid-area: 1 / 1;
  position: relative;
  z-index: 2;
  transition: opacity 0.25s ease;
}

.cta-btn__value {
  opacity: 0;
  font-size: 16px;
}

.cta-btn:hover .cta-btn__label { opacity: 0; }
.cta-btn:hover .cta-btn__value { opacity: 1; }

/* Separate solid circle beside the pill */
.cta-btn__circle {
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.cta-btn:hover .cta-btn__circle {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: #111;
}

.cta-btn__circle svg {
  width: 18px;
  height: 18px;
  transform: rotate(-45deg);
}

.contact__address {
  text-align: center;
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact__address-label {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--accent-green);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */




/* ============================================
   HUMANOID — DR02
   ============================================ */
.humanoid {
  position: relative;
  padding: 125px 0;
  overflow: hidden;
}

.humanoid__split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* no HUD corner brackets on this one */
.humanoid__visual .shot::before,
.humanoid__visual .shot::after {
  display: none;
}

.humanoid__visual .shot {
  aspect-ratio: 5 / 4;
  background:
    radial-gradient(ellipse 80% 70% at 50% 45%, rgba(18, 37, 99, 0.35) 0%, transparent 70%),
    #0d0f12;
}

.humanoid__visual .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;   /* keep the robot's head in frame */
}

.humanoid__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 14px;
}

.humanoid__title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  white-space: nowrap;   /* keep it on one line */
}

.humanoid__desc {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.humanoid__uses {
  margin-top: 30px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 28px;
}

.humanoid__uses li {
  position: relative;
  padding-left: 26px;
}

.humanoid__uses li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 7px;
  border-left: 1.5px solid var(--accent-green);
  border-bottom: 1.5px solid var(--accent-green);
  transform: rotate(-45deg);
}

.humanoid__uses h4 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.humanoid__uses p {
  margin-top: 5px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}


/* ============================================
   DESKTOP-ONLY LAYOUT  (≥ 769px)
   Height-matching tricks that must never reach phones. Using a real media
   query means the browser decides — no dependency on a JS-applied class.
   ============================================ */
@media (min-width: 769px) {
  /* VA screenshot matches the feature list's height */
  .va-visual { display: flex; }
  .va-visual .shot { display: flex; }
  .va-visual .shot img { height: 100%; }
}

/* ============================================
   PHONE LAYOUT  (≤ 768px)
   The desktop design is fixed-width and scaled; phones instead get a real
   single-column layout so text stays readable. Nothing here affects desktop.
   ============================================ */
@media (max-width: 768px) {
  html.is-mobile,
  html.is-mobile body {
    width: 100%;
    zoom: normal;
  }

  .container { padding: 0 18px; }

  /* --- nav: logo + hamburger --- */
  .navbar {
    height: 54px;
    padding: 0 8px 0 18px;
    max-width: none;
  }

  .navbar__links { display: none; }
  .navbar__menu-toggle { display: flex; }
  .site-logo img { height: 26px; }

  /* --- hero --- */
  .hero { min-height: 560px; height: 100svh; }
  .hero__content { padding: 24px 20px 30px; max-width: none; }
  .hero__hud { inset: 78px 14px 26px; font-size: 9.5px; }
  .hud-block--tr { display: none; }
  .hud-block--br { bottom: 6px; }
  .hero__eyebrow { font-size: 10px; letter-spacing: 0.12em; margin-bottom: 14px; }
  .hero__title { font-size: 40px; }
  .hero__title span.hero__title-l2 { transform: none; }
  .hero__sub { font-size: 15px; margin-top: 18px; }

  /* --- section rhythm --- */
  .statement { padding: 76px 0 56px; }
  .offerings { padding: 16px 0 64px; }
  .products, .va, .services { padding: 64px 0; }
  .contact { padding: 64px 0 84px; }
  .section-head { margin-bottom: 36px; gap: 12px; }
  .section-title { font-size: 34px; }
  .section-sub { font-size: 16px; }
  .section-sub br { display: none; }
  .statement__text { font-size: 24px; line-height: 1.3; }

  /* --- stats: 2 up --- */
  .stats-band {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 16px;
    margin-top: 56px;
    padding-top: 36px;
  }
  .stat__num { font-size: 38px; }
  .stat__label { font-size: 11px; letter-spacing: 0.06em; }

  /* --- pillars: stack --- */
  .pillars { grid-template-columns: 1fr; gap: 16px; }
  .pillar__media { aspect-ratio: 16 / 10; }
  .pillar__body { padding: 20px 22px 24px; }
  .pillar__title { font-size: 21px; }

  /* --- hardware: stack the three columns --- */
  .hw { grid-template-columns: 1fr; gap: 44px; }
  .hw__label { margin-bottom: 14px; }
  .hw__robot-name { font-size: 21px; }
  .payload-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .payload figcaption { font-size: 11px; }
  .hw__svc-title { font-size: 24px; }
  .hw__svc-desc { font-size: 15px; }

  /* --- video analytics --- */
  .va-split { grid-template-columns: 1fr; gap: 28px; }
  .va-visual .shot img { height: auto; aspect-ratio: auto; }
  .va-feature { gap: 14px; padding: 18px 0; }
  .va-feature__title { font-size: 17px; }
  .va-feature__desc { font-size: 14px; }
  .va-gui { margin-top: 32px; gap: 20px; }
  .va-gui__pair { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .shot__caption { font-size: 9px; padding: 9px 10px; letter-spacing: 0.06em; }

  /* --- deployments: stack --- */
  .bento { grid-template-columns: 1fr; gap: 16px; }
  .bento__card,
  .bento__card--hero,
  .bento > .bento__card:nth-child(4),
  .bento > .bento__card:nth-child(5) { grid-column: auto; grid-row: auto; }
  .bento__media,
  .bento__card--hero .bento__media { height: 190px; min-height: 0; flex: none; }
  .bento__body { padding: 20px 22px 24px; }
  .bento__title { font-size: 21px; }
  .bento__desc { font-size: 15px; }

  /* --- contact --- */
  .contact__container { gap: 44px; }
  .contact__buttons { flex-direction: column; gap: 14px; width: 100%; }
  .cta-btn { width: 100%; justify-content: center; }
  .cta-btn__pill { min-width: 0; flex: 1; padding: 16px 20px; font-size: 17px; }
  .cta-btn__circle { width: 52px; height: 52px; }
  .contact__address { font-size: 15px; }

  /* --- humanoid --- */
  .humanoid { padding: 64px 0; }
  .humanoid__split { grid-template-columns: 1fr; gap: 30px; }
  .humanoid__visual .shot { aspect-ratio: 3 / 2; }
  .humanoid__title { font-size: 22px; white-space: normal; }
  .humanoid__desc { font-size: 15px; }
  .humanoid__uses { grid-template-columns: 1fr; gap: 18px; margin-top: 24px; }
  .humanoid__uses h4 { font-size: 16px; }
  .humanoid__uses p { font-size: 14px; }

  /* --- glow balls are huge on phones --- */
  .glow-ball { width: 400px; height: 400px; }
}
