/* ==========================================================================
   Integrated Life Safety Systems
   main.css
   Base, layout, components, sections. Animations live in animations.css.
   ========================================================================== */

/* --- Design tokens -------------------------------------------------------- */
:root {
  --bg:            #05070B;
  --bg-2:          #080B12;
  --bg-3:          #0B0F18;
  --panel:         #0F131D;
  --panel-2:       #141923;
  --line:          #1B212D;
  --line-hot:      #2B3342;
  --text:          #ECF1F7;
  --text-strong:   #FFFFFF;
  --muted:         #8892A0;
  --dim:           #535D6C;
  --navy:          #1B3E72;
  --navy-2:        #2E5BA3;
  --accent:        #4BA3E0;
  --accent-soft:   #2E7BB8;
  --accent-bright: #7CC0EC;
  --accent-glow:   rgba(75, 163, 224, 0.22);
  --warn:          #FF8A3D;
  --green:         #5AE6A5;

  --sans:          "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono:          "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  --nav-h:         76px;
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     18px;
  --radius-pill:   999px;

  --ease-out:      cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in-out:   cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
blockquote { margin: 0; }
::selection { background: var(--accent); color: #02121F; }

/* --- Layout container ----------------------------------------------------- */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 860px) { .wrap { padding: 0 28px; } }
@media (max-width: 560px) { .wrap { padding: 0 22px; } }

/* --- Scroll progress bar -------------------------------------------------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 200; pointer-events: none;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-bright) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  box-shadow: 0 0 10px rgba(75, 163, 224, 0.6);
}

/* --- Logo mark ------------------------------------------------------------ */
.logo-mark { display: inline-flex; align-items: center; gap: 12px; transition: opacity 0.2s ease; }
.logo-mark:hover { opacity: 0.92; }
.logo-img {
  width: 36px; height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(75, 163, 224, 0.22));
  transition: transform 0.4s var(--ease-spring);
}
.logo-mark:hover .logo-img { transform: scale(1.06) rotate(-1.5deg); }
.logo-name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-strong);
  line-height: 1;
  white-space: nowrap;
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 14.5px; font-weight: 600;
  padding: 15px 26px; border-radius: var(--radius-pill);
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out),
              background 0.2s ease,
              color 0.2s ease,
              border-color 0.2s ease,
              box-shadow 0.3s ease;
  position: relative;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #02121F;
  box-shadow: 0 0 0 0 rgba(75, 163, 224, 0);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 40px -8px rgba(75, 163, 224, 0.55);
  background: var(--accent-bright);
}
.btn-ghost {
  background: transparent; color: var(--text-strong);
  border-color: var(--line-hot);
}
.btn-ghost:hover {
  border-color: var(--accent); color: var(--accent);
  background: rgba(75, 163, 224, 0.05);
}
.btn .arrow { width: 16px; height: 16px; transition: transform 0.3s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-small { padding: 10px 18px; font-size: 13px; }

/* --- Section scaffolding -------------------------------------------------- */
section { position: relative; padding: 180px 0; }
.section-label {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  color: var(--accent); text-transform: uppercase;
  margin-bottom: 28px;
}
.section-label::before {
  content: ""; width: 24px; height: 1px;
  background: var(--accent); opacity: 0.6;
  transition: width 0.5s var(--ease-out), opacity 0.5s ease;
}
.reveal.in .section-label::before { width: 40px; opacity: 1; }

.section-h {
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 600; letter-spacing: -0.025em; line-height: 1.04;
  color: var(--text-strong); margin: 0 0 28px; max-width: 18ch;
}
.section-h .accent { color: var(--accent); }
.section-h .dim { color: var(--muted); font-weight: 500; }
.section-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--muted); line-height: 1.55; max-width: 640px; margin: 0;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h); display: flex; align-items: center;
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  background: linear-gradient(180deg, rgba(5,7,11,0.78) 0%, rgba(5,7,11,0.30) 100%);
  border-bottom: 1px solid rgba(27, 33, 45, 0.5);
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
.nav.scrolled {
  background: rgba(5, 7, 11, 0.92);
  border-bottom-color: rgba(27, 33, 45, 0.8);
}
.nav-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.nav-links { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative;
  font-size: 11px; color: var(--muted); font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 8px 2px;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.4s var(--ease-out);
}
.nav-links a:hover { color: var(--text-strong); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--text-strong); }

.nav-cta a {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 700; color: var(--text-strong);
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 11px 20px; border: 1px solid var(--line-hot); border-radius: var(--radius-pill);
  background: transparent;
  transition:
    color 0.35s ease,
    border-color 0.35s ease,
    transform 0.35s var(--ease-out),
    box-shadow 0.4s ease;
}
/* Sweep fill that slides in from the left */
.nav-cta a::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--accent);
  transform: translateX(-101%);
  transition: transform 0.5s var(--ease-out);
  z-index: -1;
}
.nav-cta a:hover,
.nav-cta a:focus-visible {
  color: #02121F;
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -10px rgba(75, 163, 224, 0.55);
  outline: none;
}
.nav-cta a:hover::before,
.nav-cta a:focus-visible::before { transform: translateX(0); }

/* Mobile menu button (hidden on desktop) */
.nav-menu-btn {
  display: none;
  width: 40px; height: 40px;
  padding: 0;
  align-items: center; justify-content: center;
  border-radius: 10px;
  transition: background 0.2s ease;
}
.nav-menu-btn:hover { background: rgba(255, 255, 255, 0.04); }
.nav-menu-btn span {
  display: block; width: 20px; height: 1.5px;
  background: var(--text-strong); position: relative;
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}
.nav-menu-btn span::before,
.nav-menu-btn span::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 1.5px;
  background: var(--text-strong);
  transition: transform 0.3s var(--ease-out);
}
.nav-menu-btn span::before { top: -6px; }
.nav-menu-btn span::after  { top:  6px; }
.nav-menu-btn.open span { transform: rotate(45deg); }
.nav-menu-btn.open span::before { transform: translateY(6px) rotate(-90deg); opacity: 0; }
.nav-menu-btn.open span::after  { transform: translateY(-6px) rotate(-90deg); }

@media (max-width: 980px) {
  .nav-menu-btn { display: inline-flex; margin-left: auto; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; gap: 0;
    padding: 32px 32px;
    background: rgba(5, 7, 11, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    border-top: 1px solid var(--line);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a {
    font-size: 14px; letter-spacing: 0.18em;
    padding: 22px 0; border-bottom: 1px solid var(--line);
  }
  .nav-links a::after { display: none; }
  body.nav-open { overflow: hidden; }
  /* Solid nav strip when the menu is open so the top bar reads as one surface with the drawer. */
  body.nav-open .nav { background: rgba(5, 7, 11, 0.98); }
  .nav-cta { display: none; }
}
@media (max-width: 560px) {
  .logo-name { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh; width: 100%;
  display: flex; align-items: center;
  padding-top: var(--nav-h); padding-bottom: 96px;
  overflow: hidden; isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(1200px 800px at 15% 20%, rgba(75, 163, 224, 0.12), transparent 60%),
    radial-gradient(1000px 700px at 90% 80%, rgba(46, 91, 163, 0.10), transparent 65%),
    linear-gradient(180deg, #05070B 0%, #070A10 60%, #05070B 100%);
}
.hero-video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; overflow: hidden; pointer-events: none;
}
.hero-video video {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  filter: brightness(0.82) contrast(1.05) saturate(0.9);
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,7,11,0.88) 0%, rgba(5,7,11,0.55) 45%, rgba(5,7,11,0.35) 100%),
    linear-gradient(180deg, rgba(5,7,11,0.55) 0%, rgba(5,7,11,0.15) 30%, rgba(5,7,11,0.70) 100%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(1000px 700px at 50% 40%, rgba(0, 0, 0, 0.95), transparent 85%);
  -webkit-mask-image: radial-gradient(1000px 700px at 50% 40%, rgba(0, 0, 0, 0.95), transparent 85%);
}

/* HUD corner brackets. Camera viewfinder markers in each corner of the hero. */
.hud {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
}
.hud-corner {
  position: absolute; width: 52px; height: 52px;
  opacity: 0;
  animation: hudCornerIn 0.9s var(--ease-out) forwards;
}
.hud-corner::before,
.hud-corner::after {
  content: ""; position: absolute;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(75, 163, 224, 0.45);
}
.hud-corner.tl { top: 104px; left: 40px; animation-delay: 0.55s; }
.hud-corner.tl::before { top: 0; left: 0; width: 1.5px; height: 22px; }
.hud-corner.tl::after  { top: 0; left: 0; width: 22px; height: 1.5px; }

.hud-corner.tr { top: 104px; right: 40px; animation-delay: 0.65s; }
.hud-corner.tr::before { top: 0; right: 0; width: 1.5px; height: 22px; }
.hud-corner.tr::after  { top: 0; right: 0; width: 22px; height: 1.5px; }

.hud-corner.bl { bottom: 84px; left: 40px; animation-delay: 0.75s; }
.hud-corner.bl::before { bottom: 0; left: 0; width: 1.5px; height: 22px; }
.hud-corner.bl::after  { bottom: 0; left: 0; width: 22px; height: 1.5px; }

.hud-corner.br { bottom: 84px; right: 40px; animation-delay: 0.85s; }
.hud-corner.br::before { bottom: 0; right: 0; width: 1.5px; height: 22px; }
.hud-corner.br::after  { bottom: 0; right: 0; width: 22px; height: 1.5px; }

@keyframes hudCornerIn {
  from { opacity: 0; transform: scale(0.75); }
  to   { opacity: 1; transform: scale(1); }
}

@media (max-width: 860px) {
  .hud-corner { width: 40px; height: 40px; }
  .hud-corner.tl, .hud-corner.tr { top: 96px; }
  .hud-corner.tl, .hud-corner.bl { left: 22px; }
  .hud-corner.tr, .hud-corner.br { right: 22px; }
  .hud-corner.bl, .hud-corner.br { bottom: 104px; }
  .hud-corner::before { height: 16px; }
  .hud-corner::after  { width: 16px; }
}

.hero-inner {
  position: relative; z-index: 1; width: 100%;
  padding-block: 0; /* keep horizontal padding from .wrap */
}
.hero-content { max-width: 1100px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  color: var(--accent); text-transform: uppercase;
  padding: 7px 14px; border: 1px solid rgba(75, 163, 224, 0.28);
  border-radius: var(--radius-pill); background: rgba(75, 163, 224, 0.05);
  margin-bottom: 40px;
}
.hero-pill .pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
h1.hero-title {
  font-family: var(--sans);
  font-size: clamp(44px, 8.6vw, 120px);
  font-weight: 600; letter-spacing: -0.035em; line-height: 0.98;
  margin: 0 0 28px; color: var(--text-strong); max-width: 16ch;
  will-change: transform;
}
h1.hero-title .accent { color: var(--accent); }
.hero-sub {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.45; color: var(--muted);
  max-width: 720px; margin: 0 0 52px; font-weight: 400;
  text-align: justify;
  text-justify: inter-word;
  hyphens: manual;
  -webkit-hyphens: manual;
}
.hero-sub strong { color: var(--text); font-weight: 500; }
@media (max-width: 560px) {
  /* On narrow screens, justify produces too many gaps. Fall back to left. */
  .hero-sub { text-align: left; }
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.hero-ticker {
  position: absolute; bottom: 28px; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 40px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim); z-index: 2;
}
.hero-ticker .t-group { display: flex; gap: 24px; align-items: center; }
.hero-ticker .t-item { display: flex; align-items: center; gap: 8px; }
.hero-ticker .t-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 6px var(--accent);
}
.scroll-hint {
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--dim);
}
.scroll-hint span { font-size: 10px; }

/* Centered hero scroll indicator. Vertical track with a dot that travels down. */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex; flex-direction: column; align-items: center; gap: 14px;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.25s ease, transform 0.4s var(--ease-out);
  cursor: pointer;
}
.hero-scroll:hover { color: var(--accent); transform: translate(-50%, -3px); }
.hero-scroll-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1;
}
.hero-scroll-track {
  position: relative;
  width: 1px; height: 56px;
  background: linear-gradient(180deg,
    transparent 0%,
    var(--line-hot) 18%,
    var(--line-hot) 82%,
    transparent 100%);
  overflow: hidden;
}
.hero-scroll-dot {
  position: absolute;
  left: 50%; top: 0;
  width: 3px; height: 10px;
  background: var(--accent);
  border-radius: 2px;
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(75, 163, 224, 0.7);
}
@media (max-width: 720px) {
  .hero-scroll { bottom: 28px; gap: 10px; }
  .hero-scroll-track { height: 44px; }
  .hero-scroll-label { font-size: 9.5px; }
}

@media (max-width: 860px) {
  .hero { padding-bottom: 120px; }
  .hero-ticker { padding: 0 28px; }
  .hero-ticker .t-group:first-child .t-item:last-child,
  .hero-ticker .t-group:last-child .t-item:first-child { display: none; }
}
@media (max-width: 560px) {
  .hero-ticker { padding: 0 22px; font-size: 10px; }
  .hero-pill { font-size: 10px; padding: 6px 12px; }
}

/* ============================================================
   STATEMENT
   ============================================================ */
.statement { padding: 220px 0 180px; }
.statement-inner { max-width: 1100px; }
.statement-head {
  font-size: clamp(44px, 7.5vw, 104px);
  font-weight: 600; letter-spacing: -0.035em; line-height: 0.98;
  color: var(--text-strong); margin: 0 0 60px;
}
.statement-head .line { display: block; }
.statement-head .line.faded { color: var(--muted); }
.statement-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 60px; padding-top: 48px; border-top: 1px solid var(--line);
}
.stat-big {
  font-family: var(--sans); font-size: clamp(48px, 6vw, 80px);
  font-weight: 300; letter-spacing: -0.04em; line-height: 1;
  color: var(--text-strong); margin: 0 0 14px;
}
.stat-big .unit { color: var(--accent); font-weight: 400; }
.stat-label { font-size: 14px; color: var(--muted); line-height: 1.5; max-width: 280px; }
@media (max-width: 860px) { .statement-stats { grid-template-columns: 1fr; gap: 40px; } }

/* ============================================================
   PIPELINE
   ============================================================ */
.pipeline {
  position: relative;
  isolation: isolate;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
/* Image fills the section. Sits beneath the overlay and content. */
.pipeline-bg {
  position: absolute; inset: 0; z-index: -2;
  overflow: hidden;
  background: var(--bg); /* fallback while image loads */
}
.pipeline-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  filter: brightness(0.55) saturate(0.85);
}
/* Overlay carries the dark wash for readability plus the accent radial glow. */
.pipeline-bg-overlay {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 50% 0%, rgba(75, 163, 224, 0.10), transparent 60%),
    linear-gradient(180deg,
      rgba(5, 7, 11, 0.82) 0%,
      rgba(5, 7, 11, 0.58) 35%,
      rgba(5, 7, 11, 0.58) 65%,
      rgba(5, 7, 11, 0.88) 100%);
}
.pipeline-head { text-align: left; margin-bottom: 100px; max-width: 860px; }

.pipeline-stage-list { position: relative; padding: 40px 0; }
.pipeline-track {
  position: absolute; left: 0; right: 0; top: 64px; height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 8%, var(--accent) 92%, transparent 100%);
  opacity: 0.28;
}
.pipeline-stages {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 28px; position: relative;
}
.pstage { position: relative; text-align: left; padding: 0; }
.pstage .pdot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
  position: relative; z-index: 2; margin-bottom: 36px;
  box-shadow: 0 0 0 6px var(--bg), 0 0 18px rgba(75, 163, 224, 0.45);
}
.pstage .pnum {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  color: var(--dim); text-transform: uppercase; margin-bottom: 8px;
}
.pstage .ptitle {
  font-size: 22px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--text-strong); margin: 0 0 12px;
}
.pstage .pdesc { font-size: 13.5px; color: var(--muted); line-height: 1.55; max-width: 200px; }

@media (max-width: 980px) {
  .pipeline-track { display: none; }
  .pipeline-stages { grid-template-columns: 1fr 1fr; gap: 44px 28px; }
  .pstage .pdesc { max-width: none; }
}
@media (max-width: 600px) { .pipeline-stages { grid-template-columns: 1fr; } }

.pipeline-cta {
  margin-top: 88px; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 20px;
}
.pipeline-cta .cta-note {
  font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.06em;
}

/* ============================================================
   AUTONOMOUS
   ============================================================ */
.autonomous { position: relative; overflow: hidden; padding: 220px 0 180px; }
.autonomous-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(700px 500px at 75% 50%, rgba(75, 163, 224, 0.12), transparent 60%),
    radial-gradient(500px 350px at 25% 90%, rgba(255, 138, 61, 0.04), transparent 70%);
}
.autonomous-inner {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 80px; align-items: center;
}
.autonomous-copy .section-h { max-width: none; }
.autonomous-copy .section-sub {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
@media (max-width: 560px) {
  .autonomous-copy .section-sub { text-align: left; hyphens: manual; -webkit-hyphens: manual; }
}
.autonomous-specs {
  margin-top: 56px; display: grid; grid-template-columns: repeat(3, auto); gap: 48px;
}
.autonomous-specs .spec-n {
  font-size: 32px; font-weight: 400; letter-spacing: -0.02em;
  color: var(--text-strong); font-family: var(--sans);
}
.autonomous-specs .spec-n .unit { color: var(--accent); font-weight: 400; }
.autonomous-specs .spec-l {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-top: 6px;
}
.autonomous-visual {
  position: relative; aspect-ratio: 1 / 1; max-width: 560px; justify-self: end;
  transition: transform 0.6s var(--ease-out);
}
.autonomous-visual svg { width: 100%; height: 100%; }

@media (max-width: 1020px) {
  .autonomous-inner { grid-template-columns: 1fr; gap: 60px; }
  .autonomous-visual { justify-self: start; max-width: 480px; }
  .autonomous-specs { gap: 32px; }
}

/* ============================================================
   CAPABILITIES
   ============================================================ */
.capabilities { padding-top: 180px; padding-bottom: 180px; border-top: 1px solid var(--line); }
.capabilities-head { margin-bottom: 100px; }
.capability-moment {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center; padding: 72px 0; border-top: 1px solid var(--line);
  transition: background 0.5s ease;
}
.capability-moment:last-child { border-bottom: 1px solid var(--line); }
.capability-moment.reverse { direction: rtl; }
.capability-moment.reverse > * { direction: ltr; }
.cap-num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  color: var(--accent); text-transform: uppercase;
}
.cap-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1.1;
  color: var(--text-strong); margin: 16px 0 20px; max-width: 16ch;
}
.cap-desc {
  font-size: clamp(15px, 1.2vw, 17px); color: var(--muted); line-height: 1.6; max-width: 460px;
  text-align: justify;
  text-justify: inter-word;
  hyphens: manual;
  -webkit-hyphens: manual;
}
@media (max-width: 560px) {
  .cap-desc { text-align: left; }
}
.cap-visual {
  aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(160deg, rgba(75, 163, 224, 0.07) 0%, rgba(11, 15, 24, 0.6) 100%);
  border: 1px solid var(--line);
  position: relative;
  transition: transform 0.5s var(--ease-out), border-color 0.3s ease, box-shadow 0.4s ease;
}
.cap-visual:hover {
  transform: translateY(-4px);
  border-color: var(--line-hot);
  box-shadow: 0 24px 60px -20px rgba(75, 163, 224, 0.18);
}
.cap-visual svg { width: 100%; height: 100%; }

@media (max-width: 980px) {
  .capability-moment { grid-template-columns: 1fr; gap: 40px; padding: 56px 0; }
  .capability-moment.reverse { direction: ltr; }
}

/* ============================================================
   MARKETS
   ============================================================ */
.markets-sec {
  position: relative;
  isolation: isolate;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 180px 0;
}
/* Full-section background image. Sits beneath overlay and content. */
.markets-bg {
  position: absolute; inset: 0; z-index: -2;
  overflow: hidden;
  background: var(--bg); /* fallback while image loads */
}
.markets-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  filter: brightness(0.55) saturate(0.85);
}
/* Darkening overlay with accent glow for readability. */
.markets-bg-overlay {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(75, 163, 224, 0.08), transparent 60%),
    linear-gradient(180deg,
      rgba(5, 7, 11, 0.85) 0%,
      rgba(5, 7, 11, 0.60) 35%,
      rgba(5, 7, 11, 0.60) 65%,
      rgba(5, 7, 11, 0.90) 100%);
}
.markets-strip {
  margin-top: 80px;
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.mk {
  padding: 44px 26px; border-right: 1px solid var(--line);
  transition: background 0.25s ease, transform 0.35s var(--ease-out);
  position: relative; overflow: hidden;
}
.mk::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--accent);
  transform: scaleY(0); transform-origin: top center;
  transition: transform 0.45s var(--ease-out);
}
.mk:last-child { border-right: none; }
.mk:hover { background: rgba(75, 163, 224, 0.04); }
.mk:hover::before { transform: scaleY(1); }
.mk-num {
  font-family: var(--mono); font-size: 11px; color: var(--dim);
  letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 40px;
  transition: color 0.3s ease;
}
.mk:hover .mk-num { color: var(--accent); }
.mk-title { font-size: 19px; font-weight: 600; color: var(--text-strong); margin: 0 0 10px; line-height: 1.25; }
.mk-note { font-size: 13px; color: var(--muted); line-height: 1.55; }

@media (max-width: 980px) {
  .markets-strip { grid-template-columns: 1fr 1fr; }
  .mk { border-bottom: 1px solid var(--line); }
  .mk:nth-child(2n) { border-right: none; }
}
@media (max-width: 600px) {
  .markets-strip { grid-template-columns: 1fr; }
  .mk { border-right: none; }
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.final {
  position: relative; overflow: hidden; padding: 200px 0;
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(75, 163, 224, 0.14), transparent 55%),
    radial-gradient(700px 400px at 80% 120%, rgba(46, 91, 163, 0.10), transparent 55%),
    var(--bg);
  border-top: 1px solid var(--line); text-align: center;
}
.final::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(800px 500px at 50% 40%, rgba(0, 0, 0, 0.85), transparent 80%);
  -webkit-mask-image: radial-gradient(800px 500px at 50% 40%, rgba(0, 0, 0, 0.85), transparent 80%);
}
.final > * { position: relative; z-index: 1; }
.final h2 {
  font-size: clamp(44px, 6.5vw, 92px); font-weight: 600; letter-spacing: -0.03em;
  line-height: 1; color: var(--text-strong); margin: 0 0 28px;
}
.final h2 .accent { color: var(--accent); }
.final p {
  font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); line-height: 1.5;
  max-width: 580px; margin: 0 auto 48px;
}
.final-cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: 96px 0 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent 0%, rgba(8, 11, 18, 0.6) 100%);
}
.foot-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 72px;
}
.foot-brand .logo-mark { margin-bottom: 20px; }
.foot-brand p {
  color: var(--muted); font-size: 14px; line-height: 1.6;
  max-width: 360px; margin: 0 0 24px;
}
.foot-brand .foot-contact {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border: 1px solid var(--line-hot); border-radius: var(--radius-pill);
  font-size: 13px; color: var(--text); font-weight: 500;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.foot-brand .foot-contact:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

.foot-col h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent);
  margin: 0 0 22px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 12px; }
.foot-col a {
  font-size: 14px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
  transition: color 0.2s ease, transform 0.2s ease;
}
.foot-col a::before {
  content: ""; width: 0; height: 1px; background: var(--accent);
  transition: width 0.3s var(--ease-out);
}
.foot-col a:hover { color: var(--text-strong); transform: translateX(4px); }
.foot-col a:hover::before { width: 16px; }

.foot-bar {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.foot-bar .copy {
  font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: 0.08em;
  text-transform: uppercase;
}
.foot-bar .legal { display: flex; gap: 28px; }
.foot-bar .legal a {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 0.2s ease;
}
.foot-bar .legal a:hover { color: var(--accent); }

@media (max-width: 980px) {
  .foot-top { grid-template-columns: 1fr 1fr; gap: 48px; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .foot-top { grid-template-columns: 1fr; gap: 40px; padding-bottom: 48px; }
  .foot-bar { flex-direction: column; align-items: flex-start; }
  .foot-bar .legal { flex-wrap: wrap; gap: 16px; }
}

/* --- Utilities ------------------------------------------------------------ */
.hide-mobile { display: initial; }
@media (max-width: 720px) { .hide-mobile { display: none; } }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   MOBILE PASS
   Tightens vertical rhythm, gaps, and font scaling across all sections.
   ========================================================================== */
@media (max-width: 860px) {
  /* Default vertical rhythm: cut section padding roughly in half. */
  section { padding: 110px 0; }
  .statement { padding: 130px 0 110px; }
  .autonomous { padding: 130px 0 110px; }
  .capabilities { padding-top: 110px; padding-bottom: 110px; }
  .markets-sec { padding: 110px 0; }
  .final { padding: 130px 0; }

  /* Section heading + subhead spacing */
  .section-h { margin-bottom: 22px; }
  .section-label { margin-bottom: 22px; }

  /* Statement section */
  .statement-head { margin-bottom: 44px; }
  .statement-stats { gap: 36px; padding-top: 36px; }
  .stat-big { margin-bottom: 10px; }

  /* Pipeline section */
  .pipeline-head { margin-bottom: 64px; }
  .pipeline-stage-list { padding: 24px 0; }
  .pstage .pdot { margin-bottom: 18px; }
  .pipeline-cta { margin-top: 56px; flex-direction: column; align-items: flex-start; }

  /* Autonomous section */
  .autonomous-specs { margin-top: 40px; gap: 28px; }
  .autonomous-specs .spec-n { font-size: 28px; }

  /* Capabilities */
  .capabilities-head { margin-bottom: 64px; }
  .capability-moment { padding: 44px 0; gap: 32px; }
  .cap-title { margin: 12px 0 14px; }

  /* Markets header gap */
  .markets-strip { margin-top: 56px; }
  .mk { padding: 36px 22px; }
  .mk-num { margin-bottom: 28px; }

  /* Final CTA */
  .final h2 { margin-bottom: 22px; }
  .final p { margin-bottom: 36px; }

  /* Footer */
  footer { padding-top: 72px; }
  .foot-brand p { margin-bottom: 20px; }
}

@media (max-width: 560px) {
  /* Even tighter on small phones */
  section { padding: 88px 0; }
  .statement { padding: 100px 0 88px; }
  .autonomous { padding: 100px 0 88px; }
  .capabilities { padding-top: 88px; padding-bottom: 88px; }
  .markets-sec { padding: 88px 0; }
  .final { padding: 100px 0; }

  .statement-stats { gap: 28px; padding-top: 28px; }
  .pipeline-head { margin-bottom: 48px; }
  .capabilities-head { margin-bottom: 48px; }
  .markets-strip { margin-top: 44px; }

  /* Hero CTAs stack full-width for easier tap targets */
  .hero-ctas { gap: 10px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-sub { margin-bottom: 40px; }

  /* Final CTA buttons */
  .final-cta { flex-direction: column; align-items: stretch; }
  .final-cta .btn { width: 100%; justify-content: center; }

  /* Section-h margins tightened further */
  .section-h { margin-bottom: 18px; }

  /* Pipeline cta full width on tap */
  .pipeline-cta .btn { width: 100%; justify-content: center; }
  .pipeline-cta .cta-note { font-size: 11px; }

  /* Autonomous specs go vertical to avoid cramped 3-up */
  .autonomous-specs { grid-template-columns: 1fr 1fr; gap: 24px 32px; }

  /* HUD corners pulled further in */
  .hud-corner.tl, .hud-corner.tr { top: 88px; }
  .hud-corner.bl, .hud-corner.br { bottom: 110px; }

  /* Footer column gap and brand */
  footer { padding-top: 64px; }
  .foot-bar { padding: 24px 0 0; }
}
