/* ==========================================================================
   ORBITAL TECHNOLOGIES: v2 (overrides + new components)
   Loaded AFTER style.css to override
   ========================================================================== */

/* ---------- SEO breadcrumbs ---------- */
.breadcrumb-nav {
  padding: 14px 0 0;
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}
.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  color: var(--c-muted, #6b7280);
}
.breadcrumb-item:not(:last-child)::after {
  content: '/';
  margin-left: 8px;
  opacity: 0.45;
}
.breadcrumb-item a {
  color: inherit;
  text-decoration: none;
}
.breadcrumb-item a:hover {
  color: var(--c-primary-600);
}
.breadcrumb-item span[aria-current] {
  color: var(--c-text, #0a0a0a);
  font-weight: 500;
}

/* ---------- Turbo top progress bar (YouTube-style thin strip) ---------- */
.turbo-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 100000;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
  background: rgba(10, 10, 10, 0.06);
  transition: opacity .2s ease;
}
.turbo-progress.is-active { opacity: 1; }
.turbo-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  max-width: 100%;
  border: 0;
  margin: 0;
  padding: 0;
  background: var(--c-primary);
  box-shadow: none;
  transition: none;
}
.turbo-progress.is-finishing .turbo-progress-bar {
  transition: width .2s cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Turbo Drive: no full-page wipe, content swaps quietly ---------- */
html.turbo-loading .nav {
  pointer-events: none;
}

/* ---------- Modern navigation ---------- */
.nav {
  --nav-pad-y: 20px;
  --nav-bar-h: 76px;
  --mega-gap: 0px;
  --mega-top: 92px;
  padding: var(--nav-pad-y) 0 0;
  transition: padding .35s var(--ease);
}
.nav.scrolled {
  --nav-pad-y: 12px;
  padding: var(--nav-pad-y) 0 0;
}
.nav.scrolled .nav-inner {
  --nav-bar-h: 64px;
}

.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px 12px;
  min-height: var(--nav-bar-h);
  padding: 10px 12px 10px 26px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(10, 10, 10, 0.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 16px 48px -24px rgba(10, 10, 10, 0.18);
  overflow: visible;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  transition:
    min-height .35s var(--ease),
    padding .35s var(--ease),
    box-shadow .35s var(--ease),
    background .35s var(--ease),
    border-color .35s var(--ease);
}
.nav.scrolled .nav-inner {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(10, 10, 10, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 12px 40px -16px rgba(10, 10, 10, 0.14),
    0 0 0 1px rgba(43, 217, 141, 0.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding-right: 4px;
}
.nav-logo img {
  height: 42px;
  width: auto;
  transition: opacity .25s ease, transform .25s var(--ease);
}
.nav-logo:hover img {
  opacity: 0.88;
  transform: scale(1.02);
}

.nav-links {
  display: contents;
}

.nav-menu {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  border-radius: 0;
  max-width: 100%;
}

.nav-item { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 18px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(10, 10, 10, 0.68);
  transition:
    color .22s ease,
    background .22s var(--ease),
    box-shadow .22s var(--ease);
}
.nav-link:hover {
  color: var(--c-secondary);
  background: rgba(10, 10, 10, 0.05);
}
.nav-link.active {
  color: var(--c-primary-600);
  font-weight: 600;
  background: var(--c-primary-100);
  border: 1px solid rgba(43, 217, 141, 0.22);
  box-shadow: none;
}
.nav-link.active:hover {
  color: var(--c-primary-600);
  background: var(--c-primary-100);
  border-color: rgba(43, 217, 141, 0.28);
}

.nav-link .caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: 1px;
  color: var(--c-primary-600);
  opacity: 0.85;
  transition: transform .28s var(--ease), color .2s ease, opacity .2s ease;
}
.nav-link .caret svg {
  width: 12px;
  height: 12px;
  display: block;
}
.nav-item:hover .nav-link .caret,
.nav-item.is-open .nav-link .caret {
  color: var(--c-primary);
  opacity: 1;
  transform: rotate(180deg);
}
.nav-link.active .caret { color: var(--c-primary); }

.nav-actions {
  grid-column: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  justify-self: end;
}

.menu-toggle {
  grid-column: 4;
  justify-self: end;
}

.nav-link-ghost {
  border-radius: 9999px !important;
  padding: 9px 16px !important;
  font-size: 13px !important;
  color: rgba(10, 10, 10, 0.55) !important;
  background: transparent !important;
  box-shadow: none !important;
}
.nav-link-ghost:hover {
  color: var(--c-secondary) !important;
  background: rgba(10, 10, 10, 0.04) !important;
}

.nav-cta {
  margin-left: 0 !important;
  border-radius: 9999px !important;
  padding: 12px 24px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 8px 24px -8px rgba(10, 10, 10, 0.45);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s ease !important;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 12px 28px -6px rgba(10, 10, 10, 0.4),
    0 0 0 1px rgba(43, 217, 141, 0.25);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.03);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: background .2s ease, border-color .2s ease, transform .2s var(--ease);
}
.menu-toggle:hover {
  transform: scale(1.04);
  background: rgba(10, 10, 10, 0.06);
  border-color: rgba(10, 10, 10, 0.12);
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0;
  border-radius: 1px;
  background: var(--c-secondary);
  transition: transform .3s var(--ease), opacity .2s ease;
}

.mega-menu {
  position: fixed;
  top: var(--mega-top);
  left: 50%;
  transform: translateX(-50%);
  width: min(1080px, calc(100vw - 40px));
  margin-top: 0;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 20px;
  padding: 28px;
  overflow: hidden;
  box-shadow:
    0 24px 80px -24px rgba(10, 10, 10, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s var(--ease), visibility .2s var(--ease);
  z-index: 99;
}
/* invisible hover bridge above panel (active when open) */
.mega-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
  pointer-events: auto;
}
.nav.is-mega-active .mega-menu {
  box-shadow:
    0 24px 80px -24px rgba(10, 10, 10, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}
.nav-item.has-mega {
  position: relative;
}
.nav-item.has-mega::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -12px;
  right: -12px;
  height: 16px;
  background: transparent;
  pointer-events: auto;
}
.nav-item.is-mega-open .mega-menu,
.nav-item:hover .mega-menu,
.mega-menu:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%);
}
/* full-width bridge between bar and dropdown (shown via JS) */
.mega-hover-bridge {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  z-index: 98;
  background: transparent;
  pointer-events: auto;
}
.mega-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}
.mega-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mega-item {
  display: flex;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background .22s ease, border-color .22s ease, transform .22s var(--ease);
}
.mega-item:hover {
  background: rgba(43, 217, 141, 0.08);
  border-color: rgba(43, 217, 141, 0.15);
  transform: translateX(2px);
}
.mega-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(43,217,141,0.15), rgba(0,236,255,0.10));
  color: var(--c-primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all .3s ease;
}
.mega-item:hover .mega-item-icon { background: var(--c-secondary); color: var(--c-primary); }
.mega-item-text strong { display: block; font-size: 14.5px; color: var(--c-secondary); font-weight: 600; }
.mega-item-text p { margin: 2px 0 0; font-size: 12.5px; color: var(--c-muted); line-height: 1.45; }
/* Services menu: Build / Grow / Operate columns */
.mega-grid-groups { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mega-grid-groups .mega-list { grid-template-columns: 1fr; gap: 2px; }
.mega-group-label { margin: 0 0 8px 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-primary); }
.mega-feature {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #fff;
  background: linear-gradient(180deg, rgba(10,10,10,0.2) 0%, rgba(10,10,10,0.85) 100%), center/cover no-repeat;
}
/* Menu promo titles: styled like headings, but not part of the page outline. */
.mega-feature h5,
.mega-feature .mega-feature-title { font-family: 'Outfit', sans-serif; font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; color: #fff; margin: 0 0 6px; font-size: 18px; }
.mega-feature p { margin: 0 0 14px; font-size: 13px; color: rgba(255,255,255,0.8); line-height: 1.5; }
.mega-feature .btn { padding: 10px 18px; font-size: 13px; align-self: flex-start; }

/* Desktop: hover mega-menu. Mobile/tablet: accordion inside nav drawer (see responsive block). */

/* ---------- Client logo marquee ----------
   Every logo occupies an identical 170×64 optical slot.
   object-fit: contain preserves each logo's native aspect ratio
   inside the slot, so wide wordmarks and compact marks read
   at the same visual weight. */
.logo-marquee .marquee-track { gap: 56px; align-items: center; }
.client-logo {
  width: 153px;
  height: 58px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  filter: grayscale(100%) brightness(0.55) contrast(1.1);
  opacity: 0.65;
  transition: filter .35s ease, opacity .35s ease, transform .35s ease;
}
.client-logo:hover {
  filter: grayscale(0%) brightness(1) contrast(1);
  opacity: 1;
  transform: scale(1.06);
}
@media (max-width: 768px) {
  .logo-marquee .marquee-track { gap: 36px; }
  .client-logo { width: 117px; height: 47px; }
}

/* ---------- Hero rotating-word caret ---------- */
.hero-caret {
  display: inline-block;
  width: 4px;
  height: 0.85em;
  background: var(--c-primary);
  margin: 0 4px 0 2px;
  vertical-align: -0.08em;
  border-radius: 2px;
  animation: hero-caret-blink 1s steps(2, start) infinite;
}
@keyframes hero-caret-blink { 50% { opacity: 0; } }

/* ---------- HERO v2 (fanned card deck) ---------- */
.hero { padding: 200px 0 100px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 1200px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }
.hero h1.display { font-size: clamp(42px, 5.4vw, 82px); }

.hero-stage {
  position: relative;
  height: 560px;
  max-width: 560px;
  margin-left: auto;
  perspective: 1600px;
}
@media (max-width: 1200px) { .hero-stage { margin: 0 auto; } }

.hero-deck {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.hero-deck { --p: 0; }
.hero-deck-card {
  position: absolute;
  width: 320px;
  left: 50%;
  top: 50%;
  margin-left: -160px;
  margin-top: -100px;
  background: #ffffff;
  border: 1px solid var(--c-border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 30px 80px -20px rgba(10,10,10,0.35), 0 0 0 1px rgba(10,10,10,0.04);
  transition: box-shadow .45s var(--ease);
  will-change: transform;
  transform:
    translate(
      calc(var(--fan-x) * (1 - var(--p)) + var(--stack-x, -160px) * var(--p)),
      calc(var(--fan-y) * (1 - var(--p)) + var(--stack-y) * var(--p))
    )
    rotate(calc(var(--fan-r) * (1 - var(--p))));
}
.hero-deck-card .hdc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.hero-deck-card .hdc-icon {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--c-secondary);
  color: var(--c-primary);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.hero-deck-card .hdc-tag { font-size: 10.5px; font-weight: 700; color: var(--c-primary); text-transform: uppercase; letter-spacing: 0.12em; }
.hero-deck-card .hdc-title { font-family: 'Outfit', sans-serif; font-size: 15px; font-weight: 700; letter-spacing: -0.02em; color: var(--c-secondary); margin: 1px 0 0; line-height: 1.25; }
.hero-deck-card .hdc-body { font-size: 12.5px; color: var(--c-muted); line-height: 1.5; }
.hero-deck-card .hdc-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--c-border); font-size: 12.5px; }
.hero-deck-card .hdc-row:last-child { border-bottom: 0; }
.hero-deck-card .hdc-row strong { color: var(--c-secondary); font-weight: 600; }
.hero-deck-card .hdc-row .pill { background: rgba(43,217,141,0.12); color: var(--c-primary); padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; }
.hero-deck-card .hdc-stat { font-size: 28px; font-weight: 800; background: linear-gradient(135deg, #2BD98D, #00ECFF); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; margin-top: 6px; }
.hero-deck-card .hdc-stat-lbl { font-size: 11px; color: var(--c-muted); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.08em; }

/* Per-card fan offsets and stacked targets */
.hero-deck-card.hdc-1 { --fan-x: -130px; --fan-y: -200px; --fan-r: -7deg; --stack-y: -28px; z-index: 4; }
.hero-deck-card.hdc-2 { --fan-x:  140px; --fan-y: -130px; --fan-r:  5deg; --stack-y:  -9px; z-index: 3; }
.hero-deck-card.hdc-3 { --fan-x: -140px; --fan-y:   80px; --fan-r: -3deg; --stack-y:  10px; z-index: 2; }
.hero-deck-card.hdc-4 { --fan-x:  120px; --fan-y:  180px; --fan-r:  6deg; --stack-y:  29px; z-index: 1; }

.hero-deck-card:hover {
  box-shadow: 0 40px 100px -20px rgba(43,217,141,0.35), 0 0 0 1px rgba(43,217,141,0.2);
  z-index: 10;
}

@media (max-width: 1200px) {
  .hero-stage { height: 540px; max-width: 520px; }
  .hero-deck-card { --stack-x: 0px; }
}
@media (max-width: 1366px) {
  .hero { padding: 160px 0 88px; }
}
@media (max-width: 640px) {
  .hero-stage { height: 480px; max-width: 360px; }
  .hero-deck-card { width: 240px; padding: 16px; margin-left: -120px; margin-top: -90px; --stack-x: 0px; }
  .hero-deck-card.hdc-1 { --fan-x: -90px; --fan-y: -150px; }
  .hero-deck-card.hdc-2 { --fan-x:  90px; --fan-y: -90px; }
  .hero-deck-card.hdc-3 { --fan-x: -90px; --fan-y:  70px; }
  .hero-deck-card.hdc-4 { --fan-x:  90px; --fan-y: 150px; }
  .hero-deck-card .hdc-stat { font-size: 22px; }
}

/* ---------- HERO composite (person cutout + floating cards) ---------- */
.hero-stage { height: 600px; width: 100%; }
.hero-visual { position: absolute; inset: 0; pointer-events: none; }
.hv-disc {
  position: absolute;
  width: 440px; height: 440px;
  left: 50%; bottom: 40px;
  margin-left: -220px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.35), transparent 45%),
    linear-gradient(145deg, #2BD98D 0%, #1FC7A8 55%, #00ECFF 100%);
  box-shadow: 0 40px 120px -30px rgba(43,217,141,0.55);
}
.hv-ring {
  position: absolute;
  width: 540px; height: 540px;
  left: 50%; bottom: -10px;
  margin-left: -270px;
  border: 1px dashed rgba(43,217,141,0.45);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}
.hv-ring::before {
  content: ''; position: absolute; top: -6px; left: 50%;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--c-primary); box-shadow: 0 0 24px var(--c-primary);
}
.hv-ring-2 {
  width: 360px; height: 360px; bottom: 80px; margin-left: -180px;
  border-color: rgba(10,10,10,0.12);
  animation-duration: 28s; animation-direction: reverse;
}
.hv-ring-2::before { background: var(--c-secondary); box-shadow: none; width: 8px; height: 8px; top: -4px; }
.hv-spark {
  position: absolute; width: 10px; height: 10px; border-radius: 3px;
  background: var(--c-primary); transform: rotate(45deg);
  animation: hv-float 6s ease-in-out infinite;
}
.hv-spark-1 { left: 12%; top: 46%; }
.hv-spark-2 { right: 10%; top: 38%; width: 7px; height: 7px; background: #00ECFF; animation-delay: -2s; }
.hv-spark-3 { left: 30%; top: 8%; width: 6px; height: 6px; background: var(--c-secondary); animation-delay: -4s; }
@keyframes hv-float { 50% { transform: translateY(-10px) rotate(45deg); } }

.hv-person {
  position: absolute;
  left: 50%; bottom: 0;
  height: 100%;
  aspect-ratio: 880 / 1168;
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
}
.hv-person img {
  display: block; height: 100%; width: 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
  filter: drop-shadow(0 20px 30px rgba(10,10,10,0.18));
}
.hero-deck { z-index: 2; }

/* Cards become compact floating chips around the person */
.hero-deck-card {
  width: 220px; padding: 14px; margin-left: -110px; margin-top: -80px;
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px -20px rgba(10,10,10,0.35), 0 0 0 1px rgba(10,10,10,0.04);
}
.hero-deck-card .hdc-head { margin-bottom: 8px; gap: 8px; }
.hero-deck-card .hdc-icon { width: 30px; height: 30px; border-radius: 9px; }
.hero-deck-card .hdc-icon svg { width: 16px; height: 16px; }
.hero-deck-card .hdc-title { font-size: 13px; }
.hero-deck-card .hdc-tag { font-size: 9.5px; }
.hero-deck-card .hdc-row { padding: 5px 0; font-size: 11.5px; }
.hero-deck-card .hdc-body { font-size: 11.5px; margin: 0; }
.hero-deck-card .hdc-stat { font-size: 24px; }
.hero-deck-card .hdc-stat-lbl { font-size: 10px; }
.hero-deck-card.hdc-1 { --fan-x: -200px; --fan-y: -210px; --fan-r: -4deg; }
.hero-deck-card.hdc-2 { --fan-x:  195px; --fan-y: -150px; --fan-r:  4deg; }
.hero-deck-card.hdc-3 { --fan-x: -195px; --fan-y:  110px; --fan-r: -3deg; }
.hero-deck-card.hdc-4 { --fan-x:  185px; --fan-y:  190px; --fan-r:  3deg; }
/* Scroll no longer collapses the deck onto the person — cards just tighten inward */
.hero-deck-card.hero-deck-card {
  --stack-x: calc(var(--fan-x) * 0.9);
  --stack-y: calc(var(--fan-y) * 0.9);
}

@media (max-width: 1200px) {
  .hero-stage { height: 600px; max-width: 560px; }
}
@media (max-width: 640px) {
  .hero-stage { height: 460px; max-width: 360px; }
  .hv-disc { width: 300px; height: 300px; margin-left: -150px; bottom: 30px; }
  .hv-ring { width: 360px; height: 360px; margin-left: -180px; }
  .hv-ring-2 { width: 240px; height: 240px; margin-left: -120px; bottom: 60px; }
  .hero-deck-card { width: 170px; padding: 10px; margin-left: -85px; margin-top: -50px; }
  .hero-deck-card.hdc-1, .hero-deck-card.hdc-3 { display: none; }
  .hero-deck-card.hdc-2 { --fan-x:  100px; --fan-y: -150px; }
  .hero-deck-card.hdc-4 { --fan-x: -95px; --fan-y:  150px; }
  .hero-deck-card .hdc-stat { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .hv-ring, .hv-spark { animation: none; }
}

/* ---------- Comparison Calculator v2 ---------- */
.calc2 {
  background: linear-gradient(180deg, #0A0A0A 0%, #161616 100%);
  border-radius: 32px;
  padding: 48px;
  color: #fff;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.calc2::before { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 350px at 80% 0%, rgba(43,217,141,0.18), transparent 60%); pointer-events: none; }
@media (max-width: 768px) { .calc2 { padding: 32px 22px; } }

.calc2-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  position: relative;
  z-index: 1;
}
@media (max-width: 1024px) { .calc2-grid { grid-template-columns: 1fr; } }

.calc2-categories { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.calc2-cat-btn {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s ease;
  font-family: inherit;
}
.calc2-cat-btn.active { background: var(--c-primary); color: var(--c-secondary); border-color: var(--c-primary); }

.calc2-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-height: 360px; overflow-y: auto; padding-right: 4px; }
.calc2-list::-webkit-scrollbar { width: 6px; }
.calc2-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
@media (max-width: 640px) { .calc2-list { grid-template-columns: 1fr; max-height: none; } }

.calc2-chip {
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: all .25s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.calc2-chip:hover { background: rgba(43,217,141,0.06); border-color: rgba(43,217,141,0.3); }
.calc2-chip.selected { background: rgba(43,217,141,0.12); border-color: var(--c-primary); }
.calc2-chip-name { font-size: 13.5px; font-weight: 500; }
.calc2-chip-tag { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 2px; }
.calc2-chip-check { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid rgba(255,255,255,0.3); display: grid; place-items: center; flex-shrink: 0; transition: all .25s ease; }
.calc2-chip.selected .calc2-chip-check { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-secondary); }
.calc2-chip.selected .calc2-chip-check::after { content: '✓'; font-weight: 700; font-size: 13px; }

/* Compare panel */
.calc2-compare {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 28px;
  position: sticky;
  top: 100px;
}
.calc2-compare-head { font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em; color: rgba(255,255,255,0.5); font-weight: 700; margin-bottom: 16px; }

.calc2-vs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.calc2-vs-col {
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.calc2-vs-col.us { background: rgba(43,217,141,0.10); border-color: rgba(43,217,141,0.3); }
.calc2-vs-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.6); font-weight: 700; margin-bottom: 8px; }
.calc2-vs-col.us .calc2-vs-label { color: var(--c-primary); }
.calc2-vs-amount { font-size: 26px; font-weight: 800; letter-spacing: -0.025em; line-height: 1; }
.calc2-vs-col.us .calc2-vs-amount { background: linear-gradient(135deg, #2BD98D, #00ECFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.calc2-vs-col.them .calc2-vs-amount { color: rgba(255,255,255,0.8); text-decoration: line-through; text-decoration-color: rgba(255,255,255,0.3); }
.calc2-vs-sub { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 4px; }

.calc2-savings-box {
  padding: 18px;
  background: linear-gradient(135deg, rgba(43,217,141,0.15), rgba(0,236,255,0.08));
  border: 1px dashed rgba(43,217,141,0.4);
  border-radius: 14px;
  text-align: center;
}
.calc2-savings-amt { font-size: 32px; font-weight: 800; color: var(--c-primary); letter-spacing: -0.03em; line-height: 1; }
.calc2-savings-lbl { font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 6px; font-weight: 500; }

/* ---------- Imagery utilities ---------- */
.img-card { border-radius: 20px; overflow: hidden; position: relative; }
.img-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.img-card:hover img { transform: scale(1.04); }
.img-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,10,10,0.85) 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; color: #fff;
}
.img-card-overlay h3, .img-card-overlay h4 { color: #fff; margin: 0 0 4px; font-size: 20px; }
.img-card-overlay p { margin: 0; font-size: 13.5px; color: rgba(255,255,255,0.8); }

.img-round { border-radius: 24px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(10,10,10,0.25); }
.img-round img { width: 100%; height: auto; display: block; }

.img-grid-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.img-grid-collage > div { border-radius: 18px; overflow: hidden; }
.img-grid-collage > div:nth-child(1) { grid-row: span 2; aspect-ratio: 0.7; }
.img-grid-collage > div:nth-child(2) { aspect-ratio: 1.4; }
.img-grid-collage > div:nth-child(3) { aspect-ratio: 1.4; }
.img-grid-collage img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Sub-page hero ---------- */
.sub-hero { padding: 180px 0 80px; position: relative; overflow: hidden; }
.sub-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 1024px) { .sub-hero-grid { grid-template-columns: 1fr; } }
.sub-hero-img { border-radius: 28px; overflow: hidden; box-shadow: 0 40px 100px -20px rgba(10,10,10,0.3); aspect-ratio: 4/3; }
.sub-hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Misc ---------- */
.kicker { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; background: var(--c-primary); color: var(--c-secondary); }

/* ---------- Legal pages (privacy, terms) ---------- */
.legal-hero { padding-bottom: 40px; }
.legal-updated { margin-top: 20px; font-size: 13.5px; color: var(--c-muted); }
.legal { max-width: 760px; font-size: 16px; line-height: 1.75; color: var(--c-secondary); }
.legal h2 { font-size: 22px; line-height: 1.3; margin: 48px 0 14px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 17px; margin: 28px 0 10px; }
.legal p, .legal ul { margin: 0 0 16px; color: #2E343B; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: inherit; text-decoration: underline; text-decoration-color: var(--c-primary); text-underline-offset: 3px; }
.legal a:hover { text-decoration-thickness: 2px; }

/* ---------- Services: Build / Grow / Operate overview ---------- */
.services-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); margin-top: 56px; }
.services-groups .card { padding: 28px 30px; }
.services-groups .card a { display: block; padding: 9px 0; border-top: 1px solid var(--c-border); color: var(--c-secondary); font-weight: 600; font-size: 15px; text-decoration: none; }
.services-groups .card a::after { content: ' →'; color: var(--c-primary); opacity: 0; transition: opacity .2s ease; }
.services-groups .card a:hover::after { opacity: 1; }

/* ---------- Home: Build software strip above the service cards ---------- */
.home-build { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 12px; margin-bottom: var(--gutter); padding: 14px; border-radius: var(--radius); background: linear-gradient(135deg, #0A0A0A, #1a1a1a); }
.home-build-intro { padding: 12px 14px; }
.home-build-intro p { margin: 6px 0 0; color: rgba(255,255,255,0.7); font-size: 14px; line-height: 1.5; }
.home-build a { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 16px 18px; border-radius: 14px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); color: #fff; text-decoration: none; transition: border-color .25s ease, background .25s ease; }
.home-build a:hover { border-color: rgba(43,217,141,0.5); background: rgba(43,217,141,0.08); }
.home-build a strong { font-size: 15px; }
.home-build a span { font-size: 12.5px; color: rgba(255,255,255,0.6); }
@media (max-width: 1100px) { .home-build { grid-template-columns: repeat(2, 1fr); } .home-build-intro { grid-column: 1 / -1; } }
@media (max-width: 520px) { .home-build { grid-template-columns: 1fr; } }

/* ---------- Build service pages: proof section ---------- */
.build-proof { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gutter); }
.build-proof-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); color: #fff; text-decoration: none; transition: border-color .3s ease, transform .45s var(--ease); }
.build-proof-card:hover { border-color: rgba(43,217,141,0.5); transform: translateY(-4px); }
.build-proof-media { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,0.08); }
.build-proof-media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.build-proof-media-plain { display: grid; place-items: center; background: radial-gradient(500px 250px at 30% 0%, rgba(43,217,141,0.3), transparent 70%), #111; }
.build-proof-media-plain span { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; }
.build-proof-meta { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.55); }

@media (max-width: 900px) {
  .services-groups, .build-proof { grid-template-columns: 1fr; }
}

/* ---------- Icons (Lucide, via <x-icon>) ---------- */
/* style.css makes every svg a block; icons sit in the flow of text. */
.icon { display: inline-block; flex-shrink: 0; }
/* Feature-card icon on a mint tile. inline-grid so centred cards centre it. */
.icon-tile { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--c-primary-100); color: var(--c-primary); }
.icon-tile .icon { width: 26px; height: 26px; }
/* Icon at the start of a line of text, sized to that text. */
.icon-inline { width: 1.15em; height: 1.15em; vertical-align: -0.2em; margin-right: 0.4em; }
.icon-rating { display: inline-flex; gap: 3px; color: var(--c-primary); }
.icon-rating .icon { width: 22px; height: 22px; }
.flag { display: inline-block; width: 44px; height: 33px; border-radius: 6px; box-shadow: 0 0 0 1px var(--c-border); object-fit: cover; }

/* ---------- Pricing: jump links ---------- */
.pricing-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.pricing-jump a { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--c-border); background: #fff; color: var(--c-secondary); font-size: 14px; font-weight: 600; text-decoration: none; transition: border-color .2s ease, background .2s ease; }
.pricing-jump a:hover { border-color: var(--c-primary); background: var(--c-primary-100); }

/* ---------- Work / case studies ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gutter); }
.card.work-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-decoration: none; color: inherit; }
.work-card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-bg-soft); border-bottom: 1px solid var(--c-border); }
.work-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; transition: transform .6s var(--ease); }
.work-card:hover .work-card-media img { transform: scale(1.03); }
.work-card-media-plain { display: grid; place-items: center; background: radial-gradient(600px 300px at 30% 0%, rgba(43,217,141,0.28), transparent 70%), linear-gradient(135deg, #0A0A0A, #1a1a1a); }
.work-card-media-plain span { color: #fff; font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -0.03em; }
.work-card-body { padding: 28px 30px 30px; }
.work-card-meta { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-muted); }
.work-card-result { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--c-border); font-size: 14.5px; color: var(--c-muted); }
.work-card-result strong { color: var(--c-secondary); font-size: 20px; margin-right: 4px; }
.work-hero-media { border-radius: 24px; overflow: hidden; border: 1px solid var(--c-border); box-shadow: var(--shadow-soft); }
.work-hero-media img { width: 100%; height: auto; display: block; }
.work-body { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.work-results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.work-results .stat-num { font-size: clamp(36px, 3.6vw, 56px); }
.work-quote { max-width: 860px; margin: 0 auto; text-align: center; }
.work-quote blockquote { margin: 0; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.45; font-weight: 500; letter-spacing: -0.01em; }
.work-quote figcaption { margin-top: 24px; display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; }
.work-quote figcaption span { color: var(--c-muted); }
.work-next { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--gutter); }

@media (max-width: 900px) {
  .work-grid, .work-body { grid-template-columns: 1fr; }
  .work-body { gap: 48px; }
  .work-results { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   RESPONSIVE: 14″ laptops, tablets, phones
   ========================================================================== */

/* Section header row (title + CTA): also matches legacy inline grid-2 headers */
.section-head,
.grid-2[style*="align-items: end"][style*="margin-bottom"] {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  margin-bottom: 60px;
}
.section-head-actions,
.grid-2[style*="align-items: end"] > .reveal[style*="text-align: right"] { text-align: right; }

/* Wide cards with inline grid-column span */
.card[style*="grid-column: span 2"] { grid-column: span 2; }
.card[style*="grid-column: span 2"][style*="display: flex"] {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Hero stat row */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 540px;
}
.hero-stats .stat-num { font-size: 38px; }

/* Bundle / wide cards spanning grid */
.card-span-2 { grid-column: span 2; }
.card-bundle {
  display: flex;
  align-items: center;
  padding: 36px 44px;
}
.card-bundle .btn { margin-left: 24px; flex-shrink: 0; }

/* Footer: dark base + pixel pattern (footer-bg-pattern.avif) */
.footer {
  padding-bottom: 10px;
}

.footer-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.footer > .container {
  position: relative;
  padding-bottom: 0;
}

/* The watermark is wider than the footer on purpose. Clip it here: left to
   overflow, it widened the page on phones, pushing the fixed nav off-screen. */
.footer { overflow-x: clip; }

.footer-watermark {
  position: relative;
  width: 100%;
  z-index: 0;
  pointer-events: none;
  margin-top: clamp(20px, 3vw, 36px);
  padding: 0;
  overflow: visible;
  line-height: 0;
}

.footer-watermark svg {
  --wm-width: 125%;
  width: var(--wm-width);
  max-width: none;
  margin-left: calc((100% - var(--wm-width)) / 2);
  margin-top: 0;
  height: auto;
  display: block;
  overflow: visible;
}

.footer-grid {
  position: relative;
  z-index: 1;
}

.footer-bg img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: none;
  object-position: left top;
  display: block;
  -webkit-mask-image: linear-gradient(
    105deg,
    #000 0%,
    #000 38%,
    rgba(0, 0, 0, 0.55) 62%,
    transparent 88%
  );
  mask-image: linear-gradient(
    105deg,
    #000 0%,
    #000 38%,
    rgba(0, 0, 0, 0.55) 62%,
    transparent 88%
  );
}
.footer h2,
.footer h4 {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.14em;
}
.footer a {
  color: rgba(255, 255, 255, 0.62);
}
.footer a:hover {
  color: var(--c-primary);
}
.footer-brand-logo {
  display: block;
  width: auto;
  height: clamp(48px, 5vw, 56px);
  margin-bottom: 24px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.58);
}

/* Footer layout */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}
.footer-brand { grid-column: span 5; }
.footer-col { grid-column: span 2; }
.footer-col-wide { grid-column: span 3; }

/* Card images that bleed to card edges */
.card .img-card-bleed {
  aspect-ratio: 16 / 10;
  margin: -36px -36px 24px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}
.card .img-card-bleed img { width: 100%; height: 100%; object-fit: cover; }

/* Inline stat grids (pricing etc.) */
.stat-grid-3,
div[style*="grid-template-columns: repeat(3, 1fr)"] {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Hero stats fallback for inline 4-col grid */
.reveal-stagger[style*="grid-template-columns: repeat(4"] {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 540px;
}

/* --- 14″ laptop (~1280–1366px) --- */
@media (max-width: 1366px) {
  .sub-hero { padding: 160px 0 72px; }
  .page-hero { padding: 170px 0 72px; }
  .section-head { gap: 32px; margin-bottom: 48px; }
}

/* --- Tablet landscape / small laptop (≤1200px) --- */
@media (max-width: 1200px) {
  .sub-hero-grid { gap: 40px; }
  .card-span-2,
  .card-bundle { grid-column: span 2; }
}

/* --- Tablet (≤1024px) --- */
@media (max-width: 1024px) {
  .hero { padding: 140px 0 72px; }
  .sub-hero { padding: 140px 0 64px; }
  .page-hero { padding: 150px 0 64px; }

  .section-head,
  .grid-2[style*="align-items: end"][style*="margin-bottom"] {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 40px;
  }
  .section-head-actions,
  .grid-2[style*="align-items: end"] > .reveal[style*="text-align: right"] { text-align: left; }

  .card[style*="grid-column: span 2"] { grid-column: span 2; }
  .card[style*="grid-column: span 2"][style*="display: flex"] {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px !important;
  }
  .card[style*="grid-column: span 2"] .btn[style*="margin-left"] {
    margin-left: 0 !important;
    margin-top: 20px;
    width: 100%;
    justify-content: center;
  }

  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col,
  .footer-col-wide { grid-column: auto; }

  .card { padding: 28px; }
  .card .img-card-bleed,
  .card .img-card[style*="margin: -36px"] { margin: -28px -28px 20px !important; }

  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-6px); }

  .stat-grid-3 { grid-template-columns: repeat(2, 1fr); }

  .orbit-1, .orbit-2 { display: none; }

  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px 8px 18px;
    border-radius: 9999px;
  }

  /* Mobile nav drawer */
  .nav-links {
    display: flex;
    position: fixed;
    top: calc(12px + var(--nav-bar-h) + 10px);
    left: var(--side);
    right: var(--side);
    flex: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 16px;
    padding-right: 16px;
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(10, 10, 10, 0.08);
    box-shadow: 0 24px 64px -20px rgba(10, 10, 10, 0.22);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform .35s var(--ease), opacity .35s var(--ease);
    z-index: 98;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
  }
  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 9999px;
    font-size: 15px;
  }
  .nav-item { width: 100%; }
  .nav-actions {
    position: static;
    transform: none;
    flex-direction: column;
    width: 100%;
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(10, 10, 10, 0.08);
    gap: 8px;
  }
  .nav-link-ghost {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .nav-cta {
    width: 100%;
    justify-content: center;
  }
  .menu-toggle {
    display: flex;
    margin-left: auto;
  }
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Mobile nav: mega menus as accordions */
  .mega-menu {
    position: static;
    width: 100%;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    margin-top: 0;
    border: none;
    border-radius: 16px;
    box-shadow: none;
    background: var(--c-bg-soft);
    transition: max-height .35s var(--ease), padding .35s var(--ease), margin .35s var(--ease);
  }
  .mega-menu::before { display: none; }
  .nav-item.has-mega::after { display: none; }
  .mega-hover-bridge { display: none !important; }
  .nav-item.is-mega-open .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .nav-item.is-open .mega-menu {
    max-height: 1200px;
    padding: 10px;
    margin: 6px 0 8px;
    border: 1px solid var(--c-border);
  }
  .mega-grid { grid-template-columns: 1fr; gap: 12px; }
  .mega-grid-groups .mega-group-label { margin-top: 6px; }
  .mega-list { grid-template-columns: 1fr; }
  .mega-feature { min-height: 180px; }
  .nav-item:hover .mega-menu {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
}

/* --- Tablet portrait (≤768px) --- */
@media (max-width: 768px) {
  .hero { padding: 120px 0 56px; }
  .sub-hero { padding: 120px 0 48px; }
  .page-hero { padding: 130px 0 48px; }

  .hero-stats,
  .reveal-stagger[style*="grid-template-columns: repeat(4"] {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 24px;
    max-width: 100%;
  }
  .hero-stats .stat-num,
  .reveal-stagger[style*="grid-template-columns: repeat(4"] .stat-num { font-size: 32px; }

  .hero h1.display { font-size: clamp(36px, 9vw, 52px); }
  .hero .lead { max-width: 100% !important; }

  .card-span-2,
  .card-bundle,
  .card[style*="grid-column: span 2"] { grid-column: span 1; }
  .card-bundle,
  .card[style*="grid-column: span 2"][style*="display: flex"] {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
  }
  .card-bundle .btn,
  .card[style*="grid-column: span 2"] .btn { margin: 20px 0 0; width: 100%; justify-content: center; }

  .card .img-card[style*="margin: -36px"],
  .card .img-card-bleed { margin: -22px -22px 18px !important; }

  .footer { padding: 72px 0 10px; }
  .footer > .container {
    padding-bottom: 0;
  }

  .img-grid-collage { grid-template-columns: 1fr; }
  .img-grid-collage > div:nth-child(1) { grid-row: auto; aspect-ratio: 16 / 10; }

  .timeline::before { left: 23px; }
  .timeline-num { width: 48px; height: 48px; font-size: 18px; }
  .timeline-item { gap: 18px; }

  .calc-total { font-size: 44px; }
  .calc2-total { font-size: 44px; }
  .price { font-size: 44px; }

  .tabs { flex-wrap: wrap; width: 100%; }
  .tab { flex: 1 1 auto; text-align: center; min-width: 0; padding: 10px 14px; font-size: 13px; }

  .faq-q { font-size: 17px; gap: 12px; }

  .stat-grid-3 { grid-template-columns: 1fr; }
}

/* --- Mobile (≤640px) --- */
@media (max-width: 640px) {
  .hero { padding: 108px 0 48px; }
  .sub-hero { padding: 108px 0 40px; }
  .page-hero { padding: 118px 0 40px; }

  .section-head { margin-bottom: 32px; }

  .hero-stats,
  .reveal-stagger[style*="grid-template-columns: repeat(4"] {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .hero-stats .stat-num,
  .reveal-stagger[style*="grid-template-columns: repeat(4"] .stat-num { font-size: 28px; }

  .card { padding: 22px; }
  .card .img-card-bleed { margin: -22px -22px 18px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand,
  .footer-col,
  .footer-col-wide { grid-column: 1; }

  .calc2-cat-btn { font-size: 11.5px; padding: 7px 12px; }

  .breadcrumb-nav { padding: 10px 0 0; }
  .breadcrumb-list { font-size: 12px; }

  .divider { margin: 48px 0; }
}

/* --- Small phones (≤480px) --- */
@media (max-width: 480px) {
  .hero-stats,
  .reveal-stagger[style*="grid-template-columns: repeat(4"] { gap: 12px 16px; }
  .hero-stats .stat-num,
  .reveal-stagger[style*="grid-template-columns: repeat(4"] .stat-num { font-size: 26px; }
  .hero-stats .text-muted,
  .reveal-stagger[style*="grid-template-columns: repeat(4"] .text-muted { font-size: 11.5px !important; }

  .eyebrow { font-size: 11px; padding: 6px 12px; letter-spacing: 0.14em; }

  .btn { padding: 14px 20px; font-size: 14px; }

  .h4 { font-size: 19px; }
}

/* Home AI-products grid: Spiffy is the full-width featured card.
   Spanning the whole row leaves the other six cards filling clean
   rows at 3-col and 2-col alike. */
.home-featured-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 34px;
  align-items: center;
}
.home-featured-card img { align-self: center; }

@media (max-width: 768px) {
  .home-featured-card { grid-template-columns: 1fr; gap: 22px; }
}

/* Sub-section headings that were h4s directly under an h2. They are h3s in the
   markup so the outline has no gaps, and keep the size an h4 rendered at. */
h3.h-sub { font-size: 1em; }

/* ---------- Contact form: hidden bot trap and submit feedback ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { border-radius: 14px; padding: 16px 18px; margin: 0 0 24px; font-size: 14.5px; line-height: 1.55; }
.form-note strong { display: block; margin-bottom: 2px; }
.form-note-ok { background: rgba(43,217,141,0.12); border: 1px solid rgba(43,217,141,0.35); color: #0b7a4b; }
.form-note-error { background: #fff6f5; border: 1px solid #f3c2bd; color: #b42318; }
.form-note ul { margin: 6px 0 0; padding-left: 18px; }

/* ---------- Spiffy application form ---------- */
.apply-set { border: 0; padding: 0; margin: 0 0 28px; }
.apply-set legend { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; color: var(--c-secondary); margin: 0 0 14px; padding: 0; }
.field input[type=file] { padding: 12px 14px; font-size: 14px; cursor: pointer; }
.apply-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: var(--c-muted); margin: 4px 0 20px; cursor: pointer; }
.apply-consent input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--c-primary); }
.apply-steps { margin: 0; padding-left: 20px; display: grid; gap: 12px; font-size: 14.5px; color: var(--c-muted); }
.apply-steps strong { color: var(--c-secondary); }
@media (max-width: 1024px) { .apply-grid { grid-template-columns: 1fr; } }
