:root {
  --primary: #173f64;
  --primary-light: #319dcf;
  --secondary: #0a1f3d;
  --text-dark: #203054;
  --text-light: #f1f2f5;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --bg-white: #fff;
  --radius: 16px;
  --transition: all 0.4s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* body padded to clear fixed navbar */
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  padding-top: var(--site-nav-h-px, 90px);
}

/* ===== Skip link ===== */
.skip-link {
  position: absolute;
  top: -120%;
  left: 16px;
  padding: 10px 22px;
  background: var(--secondary);
  color: #f1f5fa;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 0 0 10px 10px;
  z-index: 10000;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--primary-light);
  outline-offset: 2px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 100px 0;
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }
}

section {
  scroll-margin-top: var(--site-nav-h-px, 90px);
}

/* ===== Smooth in-page scrolling ===== */
html {
  scroll-behavior: smooth;
}

main[id],
.faq-item[id],
.faq-answer[id] {
  scroll-margin-top: calc(var(--site-nav-h-px, 90px) + 12px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ===== Section title ===== */
.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 2.8rem;
  color: var(--secondary);
  font-weight: 800;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-light);
  border-radius: 2px;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(97, 123, 146, 0.3);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(7, 29, 50, 0.4);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--site-nav-h-px, 90px));
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #ffffff;

 /* 🌈 Unique premium gradient background */
  background: linear-gradient(
    180deg,
    #0a1f3d 0%,
    #173f64 40%,
    #246791 100%
  );
}


.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  opacity: 0.55;
}

/* Soft overlay improves text readability over video */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(10,31,61,0.12) 0%,
    rgba(10,31,61,0.52) 100%
  );
  pointer-events: none;
}


/* content block */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 40px 0 60px;
}

.hero h1 {
  font-size: clamp(4.5rem, 9vw, 7.5rem);
  font-weight: 900;
  line-height: 0.95;
  margin-bottom: 0.3rem;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.hero-tagline {
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 600;
  color: rgba(255,255,255,0.68);
  line-height: 1.3;
  margin-bottom: 1.2rem;
  letter-spacing: 0.01em;
}

.hero-buttons {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* ===== HERO – MOBILE VIDEO BEHAVIOUR ===== */
@media (max-width: 768px) {
  .hero {
    background: linear-gradient(
      180deg,
      #0a1f3d 0%,
      #173f64 30%,
      #1c587c 100%
    );
  }

  /* Boost video presence on mobile — more cinematic depth */
  .hero-video {
    top: 0;
    height: 112%;
    opacity: 0.70;
    object-position: center center;
  }

  /* Lighter overlay so video breathes through */
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(10,31,61,0.08) 0%,
      rgba(10,31,61,0.45) 100%
    );
  }

  /* Tech glass backdrop on hero content block */
  .hero-content {
    background: rgba(9, 20, 36, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(49,157,207,0.12);
    border-radius: 16px;
    padding: 28px 24px 32px;
    margin: 0;
  }
}


/* ===== Premium Capability Showcase ===== */
.cap-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  perspective: 1200px;
}

@media (max-width: 992px) {
  .cap-showcase {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .cap-showcase {
    gap: 12px;
  }
}

/* ===== Capability panel ===== */
.cap-panel {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: 14px;
  overflow: hidden;
  height: 280px;
  background: var(--secondary);
  transition: box-shadow 0.35s ease;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.cap-panel:hover {
  box-shadow: 0 16px 40px rgba(23, 63, 100, 0.32), 0 0 0 1.5px rgba(49, 157, 207, 0.32);
}

/* Boot sweep — off-screen left until .is-powered fires */
.cap-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    transparent 35%,
    rgba(49, 157, 207, 0.12) 50%,
    transparent 65%
  );
  transform: translateX(-130%);
  pointer-events: none;
  z-index: 1;
}

/* Sweep travels left → right once on power-on */
.cap-panel.is-powered::before {
  transform: translateX(130%);
  transition: transform 0.68s cubic-bezier(0.22, 0, 0.1, 1);
}

/* Image settles to slightly warmer state after module is online */
.cap-panel.is-powered > img {
  filter: brightness(1.05) saturate(1.06);
}

.cap-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 31, 61, 0) 0%,
    rgba(10, 31, 61, 0.15) 45%,
    rgba(10, 31, 61, 0.76) 78%,
    rgba(10, 31, 61, 0.92) 100%
  );
  transition: background 0.35s ease;
  pointer-events: none;
}

.cap-panel:hover::after {
  background: linear-gradient(
    to bottom,
    rgba(10, 31, 61, 0) 0%,
    rgba(10, 31, 61, 0.42) 40%,
    rgba(10, 31, 61, 0.9) 78%,
    rgba(10, 31, 61, 0.97) 100%
  );
}

.cap-panel > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1);
  transition: transform 0.55s ease, filter 0.55s ease;
}

.cap-panel:hover > img {
  transform: scale(1.06);
  filter: brightness(1.07) saturate(1.04);
}

.cap-panel-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 20px 20px;
  z-index: 2;
}

.cap-panel-title {
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5fa;
  margin: 0 0 5px;
  line-height: 1.3;
  font-family: 'Lato', sans-serif;
}

.cap-panel-desc {
  display: block;
  font-size: 0.78rem;
  color: rgba(241, 245, 250, 0.7);
  line-height: 1.45;
  margin-bottom: 9px;
}

.cap-panel-arrow {
  display: inline-flex;
  align-items: center;
  color: var(--primary-light);
  font-size: 0.82rem;
  transition: transform 0.28s ease;
}

.cap-panel:hover .cap-panel-arrow {
  transform: translateX(5px);
}

@media (max-width: 768px) {
  .cap-panel { height: 240px; }
  .cap-panel-title { font-size: 0.92rem; }
  .cap-panel::before { display: none; }
}

@media (max-width: 480px) {
  .cap-panel { height: 185px; }
  .cap-panel-title { font-size: 0.85rem; }
  .cap-panel-desc { display: none; }
}

/* Homepage hero height — other pages' heroes unaffected */
#home.hero {
  min-height: 72vh;
}

@media (max-width: 768px) {
  #home.hero {
    min-height: 100vh;
    min-height: 100svh; /* short viewport unit — notch/bar aware */
    min-height: 100dvh; /* dynamic viewport height — handles URL bar */
    padding-bottom: 48px;
  }
}

#home .hero-content {
  padding-bottom: 20px;
}

/* ===== Pre-hide scroll-reveal cards ===== */
.js-enabled .wvb-card,
.js-enabled .cap-panel {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-enabled .wvb-card.is-visible,
.js-enabled .cap-panel.is-visible {
  opacity: 1;
  transform: none;
  transition: box-shadow 0.35s ease;
}

/* Prevent .motion-reveal's transition:transform from firing on cap-panels.
   Specificity 0,2,0 beats .motion-reveal (0,1,0). CSS-variable tilt owns transform. */
.cap-panel.motion-reveal,
.cap-panel.motion-reveal.is-visible {
  transition: box-shadow 0.35s ease;
}

/* ===== Mobile hero layout ===== */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    display: block;
    padding: 80px 20px 60px; /* gap from navbar + bottom space */
  }

  .hero-content {
    max-width: 100%;
    text-align: left;
    /* padding handled by glass backdrop rule above */
  }

  .hero h1 {
    font-size: clamp(2.8rem, 11vw, 4.5rem);
    line-height: 1.0;
  }

  .hero-tagline {
    font-size: clamp(1rem, 3.5vw, 1.25rem);
    margin-bottom: 1rem;
  }

  .hero-buttons {
    margin-top: 1.8rem;
    gap: 14px;
  }

  .btn {
    padding-inline: 24px;
  }

  /* Reposition rings to center of viewport for intentional mobile composition */
  .hero-ring {
    width: 320px;
    height: 320px;
    left: 50%;
    top: 45%;
  }
}

/* ===== Hero eyebrow, sub, philosophy ===== */
.hero-eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.75;
  max-width: 560px;
  margin-top: 1rem;
}

.hero-philosophy {
  margin-top: 1.6rem;
  font-size: 0.92rem;
  color: var(--primary-light);
  font-style: italic;
  opacity: 0.9;
}

/* ===== HERO RESONANCE LAYER ===== */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(49,157,207,0.15) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
  animation: grid-breathe 24s ease-in-out infinite;
}

.hero-resonance {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(49, 157, 207, 0.18);
  width: 440px;
  height: 440px;
  top: 50%;
  left: 22%;
  transform: translate(-50%, -50%);
  animation: ring-pulse 8s ease-out infinite;
}

.hero-ring--1 { animation-delay: -5.34s; }
.hero-ring--2 { animation-delay: -2.67s; }
.hero-ring--3 { animation-delay: 0s; }

.hero-node {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(49, 157, 207, 0.80);
  animation: node-signal 5s ease-in-out infinite;
}

/* Delays ordered by left% position — signal travels left → right */
.hero-node--1 { top: 24%; left: 64%; animation-delay: 1.00s; animation-duration: 5.0s; }
.hero-node--2 { top: 58%; left: 77%; animation-delay: 1.50s; animation-duration: 5.2s; }
.hero-node--3 { top: 34%; left: 87%; animation-delay: 2.50s; animation-duration: 4.8s; }
.hero-node--4 { top: 72%; left: 54%; animation-delay: 0.50s; animation-duration: 5.4s; }
.hero-node--5 { top: 18%; left: 43%; animation-delay: 0s;    animation-duration: 5.0s; }
.hero-node--6 { top: 48%; left: 81%; animation-delay: 2.00s; animation-duration: 5.2s; }

@keyframes ring-pulse {
  0%   { transform: translate(-50%, -50%) scale(0.25); opacity: 0; }
  5%   { opacity: 0.50; }
  72%  { opacity: 0.06; }
  100% { transform: translate(-50%, -50%) scale(3.0); opacity: 0; }
}

@keyframes node-signal {
  0%   { transform: scale(1);   opacity: 0.18; }
  15%  { transform: scale(2.8); opacity: 0.85; }
  32%  { transform: scale(1.2); opacity: 0.28; }
  60%  { transform: scale(1);   opacity: 0.18; }
  100% { transform: scale(1);   opacity: 0.18; }
}

@keyframes grid-breathe {
  0%   { opacity: 0.28; }
  20%  { opacity: 0.30; }
  55%  { opacity: 0.04; }
  100% { opacity: 0.28; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero-ring,
  .hero-node {
    animation: none !important;
  }
}

/* Secondary outline CTA */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.45);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-4px);
}

/* ===== Capabilities strip ===== */
.stats-strip {
  background: var(--secondary);
  padding: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  border-right: 1px solid rgba(255,255,255,0.07);
  text-align: center;
}

.stat-item:last-child { border-right: none; }

.stat-icon {
  font-size: 1.3rem;
  color: var(--primary-light);
}

.stat-text {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.72);
  font-weight: 500;
  line-height: 1.35;
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-bottom: 1px solid rgba(255,255,255,0.07); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) { border-bottom: none; }
}

/* ===== Why M PRO9 ===== */
.why-section { background: #ffffff; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.why-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: 0 4px 20px rgba(23,63,100,0.07);
  transition: var(--transition);
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(23,63,100,0.12);
}

.why-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.why-icon i { font-size: 1.2rem; color: #ffffff; }

.why-card h3 {
  font-size: 1.1rem;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 10px;
}

.why-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

@media (max-width: 992px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ===== Featured Work ===== */
.featured-work { background: #ffffff; }

.fw-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  gap: 16px;
}

.fw-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 0.5rem;
}

.fw-heading {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--secondary);
  font-weight: 800;
  margin: 0;
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}

.fw-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary-light);
  border-radius: 2px;
}

.fw-all-link {
  color: var(--primary-light);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: gap 0.3s ease;
}

.fw-all-link:hover { gap: 12px; }

.fw-footer {
  text-align: center;
  margin-top: 2.5rem;
}

.fw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.fw-secondary {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.fw-secondary > .fw-card {
  min-height: 160px;
}

.fw-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
  border: 1px solid rgba(23,63,100,0.07);
}

.fw-card--feature {
  background: var(--secondary);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 400px;
  padding: 40px;
  border: none;
}

.fw-card:not(.fw-card--feature):hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(23,63,100,0.1);
}

.fw-card--feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 52px rgba(10,31,61,0.3);
}

.fw-tag {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary-light);
  display: block;
  margin-bottom: 12px;
}

.fw-card--feature .fw-tag {
  opacity: 0.65;
}

.fw-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 10px;
  font-family: 'Lato', sans-serif;
}

.fw-card--feature h3 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: #f1f5fa;
  margin-bottom: 14px;
}

.fw-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 22px;
}

.fw-card--feature p {
  color: rgba(241,245,250,0.72);
}

.fw-link {
  color: var(--primary-light);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s ease;
}

.fw-link:hover { gap: 10px; }

.fw-card--feature .fw-link { color: rgba(241,245,250,0.85); }

@media (max-width: 768px) {
  .fw-grid { grid-template-columns: 1fr; }
  .fw-header { flex-direction: column; align-items: flex-start; }
  .fw-card--feature { min-height: 300px; }
}

/* ===== Process ===== */
.process-section { background: var(--bg-light); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 16px);
  right: calc(12.5% + 16px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(49,157,207,0.25) 20%, rgba(49,157,207,0.25) 80%, transparent);
  pointer-events: none;
}

.process-step { position: relative; }

.ps-num {
  font-size: 2.8rem;
  font-weight: 900;
  font-family: 'Lato', sans-serif;
  color: var(--primary);
  opacity: 0.26;
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.process-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 10px;
}

.process-step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .process-steps {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .process-steps::before { display: none; }
  .ps-num { font-size: 2rem; }
}

@media (max-width: 480px) {
  .process-steps { grid-template-columns: 1fr; }
}

/* ===== Final CTA ===== */
.final-cta {
  background: var(--secondary);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 75% at 50% 55%, rgba(49, 157, 207, 0.10) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 18% 85%, rgba(23, 63, 100, 0.20) 0%, transparent 55%),
    radial-gradient(ellipse 35% 45% at 82% 18%, rgba(49, 157, 207, 0.05) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.fcta-inner {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.fcta-inner h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #f1f5fa;
  margin-bottom: 16px;
  font-family: 'Lato', sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.fcta-inner p {
  font-size: 1.05rem;
  color: rgba(241,245,250,0.65);
  margin-bottom: 40px;
  line-height: 1.6;
}

.fcta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.final-cta .btn-primary {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.final-cta .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(49, 157, 207, 0.36);
}

.fcta-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  background: transparent;
  color: rgba(241,245,250,0.85);
  border: 2px solid rgba(241,245,250,0.25);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.fcta-btn-ghost:hover {
  border-color: rgba(241,245,250,0.70);
  background: rgba(241,245,250,0.09);
  transform: translateY(-3px);
}

@media (max-width: 480px) {
  .final-cta { padding: 72px 0; }
  .fcta-buttons { flex-direction: column; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .final-cta .btn-primary { transition: none; }
  .final-cta .btn-primary:hover { transform: none; box-shadow: none; }
  .fcta-btn-ghost { transition: none; }
  .fcta-btn-ghost:hover { transform: none; }
}

/* ===== Capability hover tilt — CSS-variable-driven, fine-pointer only ===== */
@media (any-hover: hover) and (any-pointer: fine) and (prefers-reduced-motion: no-preference) {
  body .cap-panel.cap-tilt-active,
  body .cap-panel.cap-tilt-active:hover,
  body .cap-panel.cap-tilt-active:focus-within,
  body .cap-panel.cap-tilt-active.motion-reveal,
  body .cap-panel.cap-tilt-active.motion-reveal.is-visible {
    transform:
      perspective(900px)
      rotateX(var(--cap-tilt-rx, 0deg))
      rotateY(var(--cap-tilt-ry, 0deg))
      scale(var(--cap-tilt-scale, 1)) !important;
    transform-style: preserve-3d;
    transform-origin: 50% 50%;
    backface-visibility: hidden;
    will-change: transform;
    transition:
      box-shadow 0.35s ease,
      border-color 0.35s ease,
      filter 0.35s ease !important;
  }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  /* Stop background video */
  .hero-video {
    display: none;
  }

  /* Kill boot sweep and power-on settle */
  .cap-panel::before,
  .cap-panel.is-powered::before { display: none !important; }
  .cap-panel.is-powered > img { filter: brightness(1) !important; transition: none !important; }

  /* Kill hover transitions */
  .btn,
  .btn-primary,
  .btn-secondary,
  .cap-panel,
  .cap-panel > img,
  .cap-panel-arrow,
  .cap-panel::after,
  .cap-panel:hover > img,
  .why-card,
  .fw-card,
  .fw-all-link,
  .fw-link,
  .fcta-btn-ghost,
  .skip-link,
  .wvb-card,
  .cs-card,
  .wvb-link-primary,
  .wvb-link-external,
  .wvb-preview,
  .wvb-preview-icon {
    transition: none !important;
  }

  body .cap-panel.cap-tilt-active {
    transform: none !important;
    will-change: auto;
  }
}

/* ===== What We've Built ===== */
.wvb-section { background: #ffffff; }

.wvb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

@media (max-width: 768px) {
  .wvb-grid { grid-template-columns: 1fr; }
}

.wvb-card {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
  transition: var(--transition);
}

.wvb-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-light);
  border-radius: 16px 16px 0 0;
}

.wvb-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 44px rgba(23, 63, 100, 0.12);
}

.wvb-tag {
  display: inline-block;
  background: rgba(49, 157, 207, 0.1);
  color: var(--primary);
  border-radius: 100px;
  padding: 3px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  align-self: flex-start;
}

.wvb-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  font-family: 'Lato', sans-serif;
  color: var(--secondary);
  margin: 0;
}

.wvb-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
  margin: 0;
}

.wvb-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: auto;
}

.wvb-link-primary {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.25s ease;
}

.wvb-link-primary:hover { gap: 10px; }

.wvb-link-external {
  color: var(--primary-light);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.25s ease;
}

.wvb-link-external:hover { opacity: 0.72; }

/* ===== Engineering Capabilities ===== */
.eng-cap { background: var(--bg-light); }

/* Reset the old hero-proximity padding — Engineering Capabilities is no longer adjacent to hero */
#services.section {
  padding-top: 100px;
  padding-bottom: 100px;
}

#services .section-title {
  margin-bottom: 4rem;
}

#services .section-title p {
  margin-top: 16px;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  #services.section {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  #services .section-title { margin-bottom: 2.5rem; }
}

/* ===== Selected Client Solutions ===== */
.cs-section { background: #ffffff; }

.cs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 820px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .cs-grid { grid-template-columns: 1fr; }
}

.cs-card {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius);
  padding: 1.8rem 2rem 1.8rem 2.4rem;
  border: 1px solid rgba(23, 63, 100, 0.10);
  box-shadow: 0 2px 18px rgba(23, 63, 100, 0.055);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.cs-card::before {
  content: '';
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 3px;
  background: var(--primary-light);
  border-radius: 0 2px 2px 0;
  opacity: 0.55;
  transition: opacity 0.35s ease;
}

.cs-card:hover::before {
  opacity: 1;
}

.cs-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(23, 63, 100, 0.13);
  border-color: rgba(23, 63, 100, 0.18);
}

.cs-tag {
  display: inline-block;
  background: rgba(49, 157, 207, 0.07);
  color: var(--primary-light);
  border: 1px solid rgba(49, 157, 207, 0.20);
  border-radius: 100px;
  padding: 3px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  align-self: flex-start;
}

.cs-card h3 {
  font-size: 1.45rem;
  font-weight: 800;
  font-family: 'Lato', sans-serif;
  color: var(--secondary);
  letter-spacing: -0.01em;
  margin: 0;
}

.cs-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
  margin: 0;
}

.cs-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: auto;
}

.cs-card:hover .wvb-link-primary .fa-arrow-right {
  transform: translateX(4px);
  transition: transform 0.25s ease;
}

.wvb-link-primary .fa-arrow-right {
  transition: transform 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
  .cs-card::before { transition: none; }
  .cs-card { transition: none; }
  .cs-card:hover .wvb-link-primary .fa-arrow-right { transform: none; }
}

/* ===== Client Testimonials ===== */
.ct-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #0e2545 0%, #091c38 52%, #060f20 100%);
}

.ct-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 50% 100%, rgba(49, 157, 207, 0.12) 0%, transparent 65%),
    radial-gradient(ellipse 45% 50% at 10% 0%, rgba(49, 157, 207, 0.07) 0%, transparent 60%),
    linear-gradient(rgba(49, 157, 207, 0.05) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(49, 157, 207, 0.05) 1px, transparent 1px) 0 0 / 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.ct-section .container { position: relative; z-index: 1; }

.ct-title h2 { color: #f1f5fa; }
.ct-title p  { color: rgba(241, 245, 250, 0.65); }

/* ── Carousel shell — stacked 3D card deck ── */
.ct-carousel {
  /* Geometry (all X offsets are % of a card's own width).
     card-w + side-x are tuned so all three cards sit fully inside the
     viewport, overlapping the centre card instead of being cut off. */
  --ct-card-w: 34%;
  --ct-side-x: 93%;
  --ct-side-scale: 0.9;
  --ct-side-rotate: 11deg;
  --ct-side-z: -70px;
  --ct-side-y: 16px;
  --ct-side-opacity: 0.75;
  --ct-side-bright: 0.88;

  --ct-active-y: -10px;
  --ct-active-z: 50px;

  --ct-far-x: 108%;
  --ct-far-scale: 0.78;
  --ct-far-rotate: 16deg;
  --ct-far-z: -170px;

  --ct-duration: 0.72s;
  --ct-ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Side gutter the arrows live in, clear of the cards */
  --ct-gutter: 64px;

  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--ct-gutter);
}

/* Offset parent for the arrows on desktop/tablet so they centre against the
   cards; goes static on mobile so the arrows drop into the controls row. */
.ct-stage {
  position: relative;
}

.ct-viewport {
  overflow: hidden;
  padding: 34px 0 38px;
  touch-action: pan-y;
  outline: none;
}

.ct-viewport:focus-visible {
  border-radius: 24px;
  outline: 3px solid rgba(49, 157, 207, 0.55);
  outline-offset: 4px;
}

/* Perspective lives on the direct parent of the cards, so each card is
   projected individually and z-index still controls paint order. */
.ct-track {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  perspective: 1400px;
  perspective-origin: 50% 45%;
}

.ct-card {
  grid-area: 1 / 1;               /* every card shares one cell → tallest sets height */
  justify-self: center;
  align-self: stretch;
  width: var(--ct-card-w);
  /* Near-opaque and lighter than the section, so a dimmed card behind still
     reads as a card and the centre one fully occludes what it overlaps */
  background: linear-gradient(160deg, rgba(28, 60, 100, 0.97) 0%, rgba(16, 38, 68, 0.97) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transform-origin: center center;
  backface-visibility: hidden;
  will-change: transform, opacity, filter;
  transition:
    transform var(--ct-duration) var(--ct-ease),
    opacity var(--ct-duration) var(--ct-ease),
    filter var(--ct-duration) var(--ct-ease),
    border-color var(--ct-duration) var(--ct-ease),
    box-shadow var(--ct-duration) var(--ct-ease);
}

/* ── Centre card: brightest, largest, in front, lifted ── */
.ct-card.is-active {
  z-index: 5;
  transform: translate3d(0, var(--ct-active-y), var(--ct-active-z)) scale(1) rotateY(0deg);
  opacity: 1;
  filter: none;
  background: linear-gradient(160deg, rgba(36, 76, 122, 1) 0%, rgba(17, 41, 73, 1) 100%);
  border-color: rgba(49, 157, 207, 0.55);
  box-shadow:
    0 34px 78px rgba(0, 0, 0, 0.5),
    0 0 68px rgba(49, 157, 207, 0.22);
}

/* ── Side cards: smaller, dimmer, rotated, behind and slightly lower ── */
.ct-card.is-left,
.ct-card.is-right {
  z-index: 3;
  opacity: var(--ct-side-opacity);
  filter: brightness(var(--ct-side-bright)) saturate(0.88);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.ct-card.is-left {
  transform:
    translate3d(calc(var(--ct-side-x) * -1), var(--ct-side-y), var(--ct-side-z))
    scale(var(--ct-side-scale))
    rotateY(var(--ct-side-rotate));
}

.ct-card.is-right {
  transform:
    translate3d(var(--ct-side-x), var(--ct-side-y), var(--ct-side-z))
    scale(var(--ct-side-scale))
    rotateY(calc(var(--ct-side-rotate) * -1));
}

.ct-card.is-left:hover,
.ct-card.is-right:hover {
  opacity: calc(var(--ct-side-opacity) + 0.2);
  filter: brightness(calc(var(--ct-side-bright) + 0.16)) saturate(0.94);
}

/* ── Cards queued off-stage on either side ── */
.ct-card.is-hidden-left,
.ct-card.is-hidden-right {
  z-index: 1;
  opacity: 0;
  filter: brightness(0.55);
  box-shadow: none;
  pointer-events: none;
}

.ct-card.is-hidden-left {
  transform:
    translate3d(calc(var(--ct-far-x) * -1), var(--ct-side-y), var(--ct-far-z))
    scale(var(--ct-far-scale))
    rotateY(var(--ct-far-rotate));
}

.ct-card.is-hidden-right {
  transform:
    translate3d(var(--ct-far-x), var(--ct-side-y), var(--ct-far-z))
    scale(var(--ct-far-scale))
    rotateY(calc(var(--ct-far-rotate) * -1));
}

/* ── Loop-seam crossfade ──
   A card that has to jump from one end of the deck to the other fades out in
   place, is repositioned with transitions suppressed, then fades back in — so
   the loop never shows a card sliding through the middle or popping. */
.ct-card.is-fading {
  opacity: 0 !important;
  transition:
    opacity 0.3s ease,
    transform var(--ct-duration) var(--ct-ease),
    filter var(--ct-duration) var(--ct-ease);
}

.ct-card.is-teleporting {
  transition: none !important;
}

/* ── Navigation buttons ── */
.ct-nav {
  position: absolute;
  top: 50%;
  z-index: 6;
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(49, 157, 207, 0.4);
  border-radius: 50%;
  background: rgba(9, 30, 56, 0.86);
  color: #e8f3fb;
  font-size: 1rem;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

/* Pulled out into the carousel's gutter so they never sit over a card */
.ct-nav--prev { left: calc(var(--ct-gutter) * -1 + 6px); }
.ct-nav--next { right: calc(var(--ct-gutter) * -1 + 6px); }

.ct-nav:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: #041322;
  box-shadow: 0 12px 30px rgba(49, 157, 207, 0.35);
}

.ct-nav--prev:hover { transform: translateY(-50%) translateX(-3px); }
.ct-nav--next:hover { transform: translateY(-50%) translateX(3px); }

.ct-nav:focus-visible {
  outline: 3px solid rgba(49, 157, 207, 0.6);
  outline-offset: 3px;
}

/* Arrows stay clickable but read as inert while a transition is running */
.ct-carousel.is-animating .ct-nav {
  cursor: default;
}

/* ── Controls row (dots on desktop; prev · dots · next on mobile) ── */
.ct-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.ct-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.ct-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(241, 245, 250, 0.28);
  cursor: pointer;
  transition: background-color 0.3s ease, width 0.3s ease;
}

.ct-dot--active {
  width: 26px;
  border-radius: 50px;
  background: var(--primary-light);
}

.ct-dot:focus-visible {
  outline: 3px solid rgba(49, 157, 207, 0.6);
  outline-offset: 3px;
}

.ct-sr-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.ct-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(49, 157, 207, 0.35);
  margin-bottom: 16px;
}

.ct-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ct-avatar--placeholder { border-color: rgba(241, 245, 250, 0.25); }

.ct-name {
  color: #f1f5fa;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 2px;
}

.ct-project {
  color: rgba(49, 157, 207, 0.85);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 14px;
}

.ct-review {
  color: rgba(241, 245, 250, 0.72);
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0;
}

/* Tablet — less overlap and gentler perspective, all three cards visible */
@media (max-width: 992px) {
  .ct-carousel {
    --ct-card-w: 42%;
    --ct-side-x: 90%;
    --ct-side-scale: 0.88;
    --ct-side-rotate: 8deg;
    --ct-side-z: -55px;
    --ct-active-z: 38px;
    --ct-far-x: 104%;
    --ct-gutter: 58px;
  }

  .ct-viewport {
    padding: 28px 0 32px;
  }

  .ct-nav {
    width: 46px;
    height: 46px;
  }
}

/* Mobile — one full card centred, a preview edge of the neighbours,
   arrows drop into the controls row below the deck */
@media (max-width: 700px) {
  .ct-carousel {
    --ct-card-w: 80%;
    --ct-side-x: 92%;
    --ct-side-scale: 0.86;
    --ct-side-rotate: 8deg;
    --ct-side-z: -60px;
    --ct-side-y: 12px;
    --ct-side-opacity: 0.4;
    --ct-side-bright: 0.6;
    --ct-active-y: -6px;
    --ct-active-z: 30px;
    --ct-far-x: 116%;
    --ct-gutter: 0px;
  }

  .ct-viewport {
    padding: 18px 0 26px;
  }

  .ct-card {
    padding: 26px 22px;
  }

  /* Side previews are decoration on touch — taps go to the arrows/swipe */
  .ct-card.is-left,
  .ct-card.is-right {
    cursor: default;
    pointer-events: none;
  }

  /* .ct-stage goes static so the arrows anchor to the carousel's bottom row */
  .ct-stage {
    position: static;
  }

  .ct-nav {
    top: auto;
    bottom: 0;
    width: 46px;
    height: 46px;
    transform: none;
  }

  .ct-nav--prev {
    left: calc(50% - 92px);
    right: auto;
  }

  .ct-nav--next {
    right: calc(50% - 92px);
    left: auto;
  }

  .ct-nav--prev:hover,
  .ct-nav--next:hover {
    transform: none;
  }

  .ct-controls {
    min-height: 46px;
  }

  .ct-dots {
    margin-top: 0;
  }
}

/* Reduced motion — plain crossfade, no depth, rotation or travel */
@media (prefers-reduced-motion: reduce) {
  .ct-card {
    transition: opacity 0.2s linear;
    will-change: auto;
  }

  .ct-track {
    perspective: none;
  }

  .ct-card.is-active {
    transform: none;
  }

  .ct-card.is-left,
  .ct-card.is-right,
  .ct-card.is-hidden-left,
  .ct-card.is-hidden-right {
    transform: none;
    opacity: 0;
    filter: none;
    pointer-events: none;
  }

  .ct-card.is-fading,
  .ct-card.is-teleporting {
    transition: none !important;
  }

  .ct-nav,
  .ct-dot {
    transition: none;
  }

  .ct-nav--prev:hover,
  .ct-nav--next:hover {
    transform: translateY(-50%);
  }
}

/* ===== ISO Certifications ===== */
.iso-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(49, 157, 207, 0.05) 0%, transparent 60%),
    #ffffff;
}

.iso-pattern {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(23, 63, 100, 0.02) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(23, 63, 100, 0.02) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 75%);
  pointer-events: none;
}

.iso-section .container { position: relative; z-index: 1; }

.iso-title p { max-width: 560px; margin-left: auto; margin-right: auto; }

.iso-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 72px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.iso-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 240px;
  border-radius: 18px;
  padding: 8px 6px;
  outline: none;
}

.iso-item:focus-visible {
  outline: 3px solid rgba(49, 157, 207, 0.55);
  outline-offset: 6px;
}

.iso-badge {
  position: relative;
  width: 168px;
  aspect-ratio: 1 / 0.82;
  margin-bottom: 22px;
  overflow: hidden;
  border-radius: 50%;
  transform: translateY(0);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.iso-badge::before {
  content: '';
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(49, 157, 207, 0.16) 0%, transparent 70%);
  opacity: 0.7;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 0;
}

.iso-badge img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.18);
  display: block;
  filter: drop-shadow(0 10px 26px rgba(23, 63, 100, 0.16));
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}

/* Hover + keyboard focus share one professional lift / brighten / glow */
.iso-item:hover .iso-badge,
.iso-item:focus-visible .iso-badge {
  transform: translateY(-8px);
}

.iso-item:hover .iso-badge img,
.iso-item:focus-visible .iso-badge img {
  transform: scale(1.24);
  filter:
    brightness(1.05) contrast(1.02)
    drop-shadow(0 18px 36px rgba(23, 63, 100, 0.24))
    drop-shadow(0 0 20px rgba(49, 157, 207, 0.3));
}

.iso-item:hover .iso-badge::before,
.iso-item:focus-visible .iso-badge::before {
  opacity: 1;
  transform: scale(1.12);
}

.iso-item:hover .iso-name,
.iso-item:focus-visible .iso-name {
  color: var(--primary-light);
}

.iso-name {
  font-family: 'Lato', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  transition: color 0.35s ease;
}

.iso-desc {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
}

.iso-divider {
  width: 1px;
  height: 128px;
  background: linear-gradient(to bottom, transparent, rgba(23, 63, 100, 0.14), transparent);
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .iso-showcase {
    flex-direction: column;
    gap: 40px;
  }
  .iso-divider {
    width: 96px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(23, 63, 100, 0.14), transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .iso-badge,
  .iso-badge img,
  .iso-badge::before,
  .iso-name {
    transition: none;
  }
  .iso-item:hover .iso-badge,
  .iso-item:focus-visible .iso-badge {
    transform: none;
  }
  .iso-item:hover .iso-badge img,
  .iso-item:focus-visible .iso-badge img {
    transform: scale(1.18);
  }
}

/* ===== Why M PRO9 — 3-column override ===== */
.why-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 992px) {
  .why-grid--3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .why-grid--3 { grid-template-columns: 1fr; }
}

/* ===== What We've Built — Product Identity Panels ===== */
.wvb-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(ellipse 90% 65% at 50% 50%, rgba(49,157,207,0.08) 0%, transparent 68%),
    linear-gradient(155deg, #0e2545 0%, #091c38 52%, #060f20 100%);
  border-radius: 10px;
  border: 1px solid rgba(49, 157, 207, 0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  user-select: none;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.wvb-card:hover .wvb-preview {
  border-color: rgba(49, 157, 207, 0.36);
  box-shadow: inset 0 1px 0 rgba(49, 157, 207, 0.16), 0 0 32px rgba(49, 157, 207, 0.08);
}

.wvb-preview-icon {
  font-size: 2.8rem;
  color: rgba(49, 157, 207, 0.62);
  filter: drop-shadow(0 0 10px rgba(49, 157, 207, 0.22));
  position: relative;
  z-index: 2;
  transition: color 0.35s ease, transform 0.35s ease, filter 0.35s ease;
}

.wvb-card:hover .wvb-preview-icon {
  color: rgba(49, 157, 207, 0.88);
  transform: scale(1.08);
  filter: drop-shadow(0 0 18px rgba(49, 157, 207, 0.44));
}

.wvb-preview-name {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  color: rgba(255, 255, 255, 0.095);
  letter-spacing: -0.01em;
  pointer-events: none;
  z-index: 1;
  white-space: nowrap;
  transition: color 0.35s ease, transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Equal-height cards: clamp description to 3 lines so row heights match */
.wvb-card > p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== WVB Premium Identity Plates ===== */

/* Radial glow behind icon */
.wvb-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 52%,
    rgba(49, 157, 207, 0.18) 0%,
    rgba(49, 157, 207, 0.06) 36%,
    transparent 64%
  );
  pointer-events: none;
  z-index: 0;
  transition: background 0.4s ease;
}

.wvb-card:hover .wvb-preview::before {
  background: radial-gradient(
    circle at 50% 52%,
    rgba(49, 157, 207, 0.30) 0%,
    rgba(49, 157, 207, 0.10) 36%,
    transparent 64%
  );
}

/* Light sweep on hover — one-shot, clipped by overflow:hidden */
.wvb-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    118deg,
    transparent 22%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 78%
  );
  transform: translateX(-120%);
  pointer-events: none;
  z-index: 3;
}

.wvb-card:hover .wvb-preview::after {
  transform: translateX(120%);
  transition: transform 0.72s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Watermark hover brightening */
.wvb-card:hover .wvb-preview-name {
  color: rgba(255, 255, 255, 0.16);
}

/* Entry: watermark subtly rises as card is revealed */
@keyframes wvb-watermark-rise {
  from { transform: scale(0.94); }
  to   { transform: scale(1); }
}

.js-enabled .wvb-card.is-visible .wvb-preview-name {
  animation: wvb-watermark-rise 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s both;
}

/* Hover lift fix: .js-enabled .wvb-card.is-visible (0,3,0) overrides .wvb-card:hover (0,2,0) */
.js-enabled .wvb-card.is-visible:hover {
  transform: translateY(-6px);
}

@media (prefers-reduced-motion: reduce) {
  .wvb-preview::after { display: none !important; }
  .wvb-preview::before { transition: none !important; }
  .wvb-preview-name { transition: none !important; }
  .js-enabled .wvb-card.is-visible .wvb-preview-name { animation: none !important; }
}

/* ===== Company Introduction ===== */
.company-intro {
  background: var(--bg-white);
  border-bottom: 1px solid rgba(23,63,100,0.06);
  position: relative;
  overflow: hidden;
}

/* ── Blueprint grid atmosphere ── */
.company-intro::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(23,63,100,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,63,100,0.028) 1px, transparent 1px),
    linear-gradient(rgba(23,63,100,0.052) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,63,100,0.052) 1px, transparent 1px);
  background-size: 28px 28px, 28px 28px, 112px 112px, 112px 112px;
  pointer-events: none;
  z-index: 0;
}

/* ── Engineering scan line ── */
.company-intro::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(49,157,207,0.07) 20%,
    rgba(49,157,207,0.15) 50%,
    rgba(49,157,207,0.07) 80%,
    transparent 100%
  );
  animation: ci-scan 12s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes ci-scan {
  0%   { transform: translateY(0);    opacity: 0; }
  4%   { opacity: 1; }
  93%  { opacity: 0.85; }
  100% { transform: translateY(700px); opacity: 0; }
}

.company-intro .container {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .company-intro::after { animation: none !important; }
}

.ci-inner {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 72px;
  align-items: center;
}

.ci-statement {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--secondary);
  margin: 0;
}

.ci-copy {
  font-size: 1.05rem;
  color: #334155;
  line-height: 1.82;
  margin-bottom: 1rem;
}

.ci-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0.5rem;
}

.ci-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(23,63,100,0.06);
  border-radius: 100px;
  padding: 5px 14px;
}

@media (max-width: 768px) {
  .ci-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ===== What We've Built — Client Solutions divider ===== */
.wvb-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 72px 0 44px;
  color: var(--primary);
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wvb-divider::before,
.wvb-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(23, 63, 100, 0.15);
}


/* ===== Company Introduction — team visual ===== */
.ci-left-visual {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 12px;
  margin-top: 2rem;
  display: block;
}

.site-footer a { color: #d4e8ff; text-decoration: none; }

/* =====================================================================
   MOBILE EXPERIENCE PARITY — touch, active states, new breakpoints
   ===================================================================== */

/* ── Touch active feedback (coarse pointer = touch device) ──────────── */
@media (pointer: coarse) {
  /* Cap panels: subtle press-scale on touch */
  .cap-panel:active {
    transform: scale(0.985);
    box-shadow: 0 16px 40px rgba(23, 63, 100, 0.28),
                0 0 0 1.5px rgba(49, 157, 207, 0.28);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
  }

  /* Product cards: gentle lift feedback on tap */
  .wvb-card:active {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(23, 63, 100, 0.10);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }

  /* Client solution cards */
  .cs-card:active {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(23, 63, 100, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }

  /* Minimum 44 × 44px tap targets for inline links and CTAs */
  .wvb-link-primary,
  .wvb-link-external {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Cap-panel-desc: show on mobile so content is accessible on touch */
  .cap-panel-desc {
    display: block;
  }
}

/* ── 430px — hero CTA stacking, tight spacing ───────────────────────── */
@media (max-width: 430px) {
  .hero {
    padding: 72px 16px 56px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 11vw, 3.2rem);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    min-height: 52px;
    font-size: 1.05rem;
  }

  .wvb-card {
    padding: 1.5rem;
  }

  .cs-card {
    padding: 1.5rem 1.6rem 1.5rem 2rem;
  }
}

/* ── 390px — minor tightening ───────────────────────────────────────── */
@media (max-width: 390px) {
  .hero {
    padding: 68px 14px 52px;
  }

  .section-title h2 {
    font-size: clamp(1.55rem, 5vw, 1.85rem);
  }

  .wvb-card { padding: 1.25rem; }
}

/* ── 360px — floor sizes, nothing should collapse further ───────────── */
@media (max-width: 360px) {
  .hero h1 {
    font-size: clamp(2.2rem, 9vw, 2.6rem);
  }

  .hero-tagline {
    font-size: 0.95rem;
  }

  .hero-sub {
    font-size: 0.92rem;
  }

  .cap-panel {
    height: 155px;
  }

  .cap-panel-title {
    font-size: 0.82rem;
  }

  /* Keep description hidden on the smallest phones — panels too short */
  .cap-panel-desc {
    display: none;
  }

  .section-title h2 {
    font-size: clamp(1.4rem, 5vw, 1.65rem);
  }

  .wvb-card { padding: 1.1rem; }
}

/* ── Prevent horizontal overflow on all viewports ───────────────────── */
html,
body {
  overflow-x: hidden;
}

.hero,
.eng-cap,
.wvb-section,
.final-cta,
.company-intro {
  max-width: 100%;
}

/* ── Reduced-motion: active states should still be instantaneous ─────── */
@media (prefers-reduced-motion: reduce) {
  .cap-panel:active,
  .wvb-card:active,
  .cs-card:active {
    transition: none !important;
  }
}

/* =====================================================================
   MOBILE IMMERSIVE REBUILD — Tasks 1–8
   All rules are ≤768px or narrower. Desktop (≥769px) untouched.
   ===================================================================== */

/* ── TASK 1: Hero resonance node mobile redistribution ──────────────── */
@media (max-width: 768px) {
  .hero-node--1 { left: 80%; top: 20%; }
  .hero-node--2 { left: 15%; top: 65%; }
  .hero-node--3 { left: 88%; top: 50%; }
  .hero-node--4 { left: 10%; top: 30%; }
  .hero-node--5 { left: 70%; top: 75%; }
  .hero-node--6 { left: 40%; top: 85%; }
}

/* Smaller rings on very small phones */
@media (max-width: 430px) {
  .hero-ring { width: 260px; height: 260px; }
}

/* Scanning signal-line accent across hero on mobile */
@media (max-width: 768px) {
  #home.hero::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(49,157,207,0.4) 40%,
      rgba(49,157,207,0.4) 60%,
      transparent
    );
    animation: hero-signal-scan 8s linear infinite;
    z-index: 3;
    pointer-events: none;
  }
}

@keyframes hero-signal-scan {
  0%   { top: 0%;   opacity: 0; }
  5%   { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { top: 100%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  #home.hero::after { animation: none; opacity: 0; }
}

/* ── TASK 2: Engineering Capabilities — Horizontal Snap Carousel ────── */
@media (max-width: 768px) {
  /* Allow the carousel to bleed edge-to-edge from container */
  .eng-cap .container {
    overflow: visible;
  }

  .cap-showcase {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding: 8px 20px 12px;
    margin: 0 -20px;
    scrollbar-width: none;
    cursor: grab;
    /* Override grid perspective from desktop */
    perspective: none;
  }

  .cap-showcase::-webkit-scrollbar { display: none; }
  .cap-showcase:active { cursor: grabbing; }

  .cap-panel {
    scroll-snap-align: start;
    flex: 0 0 82vw;
    max-width: 340px;
    height: 300px;
    border-radius: 16px;
    transition: opacity 0.3s ease, box-shadow 0.3s ease;
    opacity: 0.88;
  }

  .cap-panel.cap-panel--active {
    opacity: 1;
    box-shadow: 0 12px 40px rgba(10,31,61,0.45), 0 0 0 1.5px rgba(49,157,207,0.3);
  }

  /* Description always visible in carousel — override the hidden rules */
  .cap-panel-desc { display: block !important; }

  /* Larger title */
  .cap-panel-title { font-size: 1rem; font-weight: 700; }

  /* Arrow always visible in carousel */
  .cap-panel-arrow { opacity: 1 !important; }

  /* Touch press feedback in carousel */
  .cap-panel:active {
    transform: scale(0.97) !important;
    transition: transform 0.12s ease !important;
  }

  /* Boot sweep still works in carousel */
  .cap-panel::before { display: block; }
}

@media (max-width: 430px) {
  .cap-panel {
    flex: 0 0 88vw;
    height: 280px;
  }
}

@media (max-width: 390px) {
  .cap-panel {
    flex: 0 0 92vw;
    height: 260px;
  }
}

/* Cap carousel hint — hidden on desktop */
.cap-carousel-hint {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

@media (max-width: 768px) {
  .cap-carousel-hint { display: flex; }
}

.cap-hint-text {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-light);
  opacity: 0.7;
}

.cap-hint-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.cap-hint-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(49,157,207,0.3);
  transition: width 0.3s ease, background 0.3s ease, border-radius 0.3s ease;
}

.cap-hint-dot--active {
  width: 18px;
  border-radius: 3px;
  background: var(--primary-light);
}

/* ── TASK 3: WVB Mobile Premium Product Plates ───────────────────────── */
@media (max-width: 768px) {
  .wvb-section { background: #f8fafc; }

  .wvb-card {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(23,63,100,0.10);
  }

  /* Taller preview area — more impactful on mobile */
  .wvb-preview {
    aspect-ratio: 4 / 3;
    border-radius: 12px;
  }

  /* Bigger icon */
  .wvb-preview-icon { font-size: 3.6rem; }

  /* Larger watermark */
  .wvb-preview-name { font-size: clamp(3rem, 10vw, 5rem); }

  /* Bigger product title */
  .wvb-card h3 { font-size: 1.6rem; }

  /* 4-line description on mobile (more room) */
  .wvb-card > p {
    -webkit-line-clamp: 4;
    font-size: 0.97rem;
  }
}

/* ── TASK 4: Client Solutions — Mobile Proof Ledger ─────────────────── */
/* cs-ledger-id — injected by JS, hidden on desktop */
.cs-ledger-id { display: none; }

@media (max-width: 768px) {
  .cs-ledger-id {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 0.60rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-light);
    opacity: 0.75;
    margin-bottom: 8px;
  }
}

@media (max-width: 768px) {
  .cs-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 16px;
  }

  .cs-card {
    border-radius: 14px;
    padding: 20px 20px 20px 24px;
  }

  /* Override desktop solid rail with gradient version on mobile */
  .cs-card::before {
    background: linear-gradient(
      to bottom,
      transparent 0%,
      var(--primary-light) 20%,
      var(--primary-light) 80%,
      transparent 100%
    );
    opacity: 1;
  }

  .cs-card h3 { font-size: 1.35rem; margin-bottom: 8px; }
  .cs-card p  { font-size: 0.92rem; line-height: 1.65; }
}

/* Suppress hover lift on touch — use active state instead */
@media (hover: none) {
  .cs-card:hover {
    transform: none;
    box-shadow: 0 2px 18px rgba(23,63,100,0.055);
    border-color: rgba(23,63,100,0.10);
  }
  .cs-card:hover::before { opacity: 1; }
}

/* ── TASK 7: Final CTA — Mobile Cinematic Closing ────────────────────── */
@media (max-width: 768px) {
  .final-cta {
    padding: 80px 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
  }

  .final-cta .container { width: 100%; }

  /* Energy line at top of CTA section */
  .final-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(49,157,207,0.5) 30%,
      rgba(49,157,207,0.5) 70%,
      transparent
    );
  }

  .fcta-inner h2 { font-size: clamp(1.75rem, 6vw, 2.4rem); }
  .fcta-inner p  { font-size: 0.95rem; margin-bottom: 32px; }

  .fcta-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .fcta-buttons .btn-primary,
  .fcta-buttons .fcta-btn-ghost {
    min-height: 54px;
    font-size: 1.05rem;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
}

@media (max-width: 430px) {
  .final-cta { padding: 72px 0; min-height: 55vh; }
}

/* ── TASK 8: Reduced-motion — keep wvb-cards visible when GSAP skips ── */
@media (prefers-reduced-motion: reduce) {
  .js-enabled .wvb-card {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   ART-DIRECTION PASS — Mobile Cinematic Chapters
   All rules ≤768px unless noted. Desktop ≥769px untouched.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── CHAPTER 1: Hero — integrated cinematic scene ────────────────────── */
@media (max-width: 768px) {
  /* Remove floating glass card — content merges with scene */
  .hero-content {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100%;
  }

  /* Anchor content to lower third of screen */
  #home.hero {
    align-items: flex-end;
    padding-bottom: 52px;
  }

  /* Deep cinematic bottom gradient — text anchored in depth */
  .hero-overlay {
    background: linear-gradient(
      to top,
      rgba(6,14,28,0.94) 0%,
      rgba(8,18,34,0.65) 26%,
      rgba(9,20,36,0.20) 55%,
      rgba(9,20,36,0.04) 100%
    ) !important;
  }

  /* Rings: stronger glow — emotionally present */
  .hero-ring {
    box-shadow:
      0 0 16px rgba(49,157,207,0.32),
      0 0 48px rgba(49,157,207,0.14),
      0 0 96px rgba(49,157,207,0.07);
  }

  /* Nodes: stronger signal pulse */
  .hero-node {
    box-shadow:
      0 0 8px rgba(49,157,207,0.75),
      0 0 20px rgba(49,157,207,0.40),
      0 0 40px rgba(49,157,207,0.18);
  }

  /* h1: larger mobile headline */
  #home.hero h1 {
    font-size: clamp(2.9rem, 11.5vw, 4.6rem) !important;
    line-height: 1.07;
    text-shadow: 0 2px 20px rgba(6,14,28,0.6);
  }

  /* Tagline: slight elevation */
  .hero-tagline {
    font-size: 1.05rem !important;
    text-shadow: 0 1px 8px rgba(6,14,28,0.5);
  }

  /* Sub: readable on gradient */
  .hero-sub {
    font-size: 0.96rem !important;
    opacity: 0.85;
    text-shadow: 0 1px 6px rgba(6,14,28,0.4);
    margin-bottom: 1.6rem;
  }

  /* Buttons: full-width launch controls */
  .hero-buttons {
    flex-direction: column !important;
    gap: 12px;
    width: 100%;
  }

  .hero-buttons .btn-primary {
    width: 100%;
    min-height: 58px;
    font-size: 1.08rem;
    justify-content: center;
  }

  .hero-buttons .btn-secondary,
  .hero-buttons .btn {
    width: 100%;
    min-height: 52px;
    font-size: 1.02rem;
    justify-content: center;
  }
}

@media (max-width: 430px) {
  #home.hero { padding-bottom: 44px; }
  .hero-buttons .btn-primary { min-height: 54px; font-size: 1.05rem; }
}

/* ── CHAPTER 2: Engineering — near full-screen panels ────────────────── */
@media (max-width: 768px) {
  .cap-panel {
    flex: 0 0 88vw !important;
    height: clamp(280px, 68vh, 540px) !important;
    max-width: none !important;
    border-radius: 18px;
  }

  .cap-panel-title {
    font-size: clamp(1.15rem, 4.2vw, 1.5rem) !important;
    font-weight: 800;
    line-height: 1.2;
  }

  .cap-panel-desc {
    font-size: 0.875rem !important;
    opacity: 0.82;
    line-height: 1.52;
  }

  /* Active panel: stronger glow ring + scale nudge */
  .cap-panel.cap-panel--active {
    box-shadow:
      0 20px 60px rgba(6,14,28,0.60),
      0 0 0 2px rgba(49,157,207,0.50),
      0 0 28px rgba(49,157,207,0.18) !important;
    transform: scale(1.008);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease !important;
  }

  /* System navigation dots */
  .cap-hint-text {
    font-family: 'Courier New', monospace !important;
    font-size: 0.64rem !important;
    letter-spacing: 0.14em !important;
    color: rgba(49,157,207,0.85) !important;
    opacity: 1 !important;
  }

  .cap-hint-dot {
    width: 6px !important;
    height: 6px !important;
    border: 1px solid rgba(49,157,207,0.25) !important;
    background: rgba(49,157,207,0.18) !important;
  }

  .cap-hint-dot--active {
    width: 22px !important;
    border-radius: 4px !important;
    background: var(--primary-light) !important;
    border-color: var(--primary-light) !important;
    box-shadow: 0 0 10px rgba(49,157,207,0.50);
  }
}

@media (max-width: 430px) {
  .cap-panel {
    flex: 0 0 92vw !important;
    height: clamp(260px, 72vh, 500px) !important;
  }
}

@media (max-width: 390px) {
  .cap-panel {
    flex: 0 0 94vw !important;
    height: clamp(240px, 76vh, 480px) !important;
  }
}

/* ── CHAPTER 3: WVB — dark product showcase posters ─────────────────── */
@media (max-width: 768px) {
  .wvb-section {
    background: #060e1c !important;
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .wvb-section .section-title h2 { color: rgba(235,244,252,0.94); }
  .wvb-section .section-title p  { color: rgba(160,190,215,0.65); }

  .wvb-card {
    background: rgba(12,24,50,0.96) !important;
    border: 1px solid rgba(49,157,207,0.10) !important;
    border-radius: 18px;
    box-shadow: 0 8px 48px rgba(0,0,0,0.50) !important;
    color: rgba(235,244,252,0.88);
    overflow: hidden;
  }

  /* Preview: larger presence, 16:9 maintains width better on mobile */
  .wvb-preview {
    aspect-ratio: 16 / 9 !important;
    border-radius: 0 !important;
    position: relative;
  }

  /* Dark atmospheric overlay on preview area */
  .wvb-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to top,
      rgba(6,14,28,0.88) 0%,
      rgba(6,14,28,0.42) 45%,
      transparent 100%
    );
    z-index: 2;
    pointer-events: none;
    border-radius: 0;
  }

  .wvb-preview-icon { font-size: 4.2rem !important; position: relative; z-index: 3; }
  .wvb-preview-name { font-size: clamp(3.5rem, 12vw, 6rem) !important; position: relative; z-index: 3; }

  .wvb-card h3 {
    font-size: 1.65rem !important;
    color: rgba(235,244,252,0.96);
    margin-top: 12px;
  }

  .wvb-card > p { color: rgba(160,190,215,0.70); font-size: 0.94rem; }

  /* Links and tags for dark background */
  .wvb-links {
    border-top: 1px solid rgba(49,157,207,0.12) !important;
    margin-top: 12px;
  }
  .wvb-link-primary, .wvb-link-external { color: var(--primary-light) !important; }
  .wvb-tag {
    background: rgba(49,157,207,0.10) !important;
    color: var(--primary-light) !important;
    border-color: rgba(49,157,207,0.20) !important;
  }

  /* Divider: adapt for dark context */
  .wvb-divider {
    color: rgba(235,244,252,0.75) !important;
    border-color: rgba(49,157,207,0.15) !important;
  }
}

/* ── CHAPTER 4: Client Proof Ledger — stronger records ──────────────── */
@media (max-width: 768px) {
  .cs-card {
    background: rgba(8,18,36,0.03) !important;
    border: 1px solid rgba(23,63,100,0.14) !important;
    border-left: none !important;
    padding: 24px 20px 24px 38px !important;
    border-radius: 14px;
    position: relative;
  }

  /* Thicker, brighter gradient rail */
  .cs-card::before {
    width: 4px !important;
    top: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(49,157,207,0.5) 10%,
      var(--primary-light) 30%,
      var(--primary-light) 70%,
      rgba(49,157,207,0.5) 90%,
      transparent 100%
    ) !important;
    opacity: 1 !important;
  }

  /* Proof node dot — centered on the left rail */
  .cs-card::after {
    content: '';
    position: absolute;
    top: 24px;
    left: -6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-light);
    border: 2px solid #0a1f3d;
    box-shadow:
      0 0 10px rgba(49,157,207,0.65),
      0 0 24px rgba(49,157,207,0.30);
    z-index: 3;
  }

  /* REC ID: clearer proof label */
  .cs-ledger-id {
    font-size: 0.68rem !important;
    font-weight: 900 !important;
    opacity: 1 !important;
    letter-spacing: 0.15em !important;
    margin-bottom: 10px !important;
    color: var(--primary-light) !important;
  }

  .cs-card h3 { font-size: 1.45rem !important; }
}

/* ── CHAPTER 7: Final CTA — cinematic closing chapter ────────────────── */
@media (max-width: 768px) {
  .final-cta {
    min-height: 72vh !important;
    padding: 88px 0 96px !important;
  }

  .fcta-inner h2 {
    font-size: clamp(2.1rem, 7.5vw, 2.9rem) !important;
    line-height: 1.12;
  }

  .fcta-inner p {
    font-size: 1.05rem !important;
    max-width: 32ch;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 36px;
    opacity: 0.80;
  }
}

/* ═══════════════════════════════════════════════════════
   FINAL POLISH PASS — surgical mobile refinements
   All rules ≤768px. Desktop ≥769px untouched.
   ═══════════════════════════════════════════════════════ */

/* ── Hero: final polish ──────────────────────────────── */
@media (max-width: 768px) {
  /* Eyebrow: text-shadow for depth on gradient background */
  .hero-eyebrow {
    text-shadow: 0 1px 10px rgba(6,14,28,0.5);
    letter-spacing: 0.08em;
  }

  /* Hero rings: subtle breathe animation for mobile only */
  .hero-ring {
    animation-play-state: running;
  }

  /* Boost ring border opacity so rings are emotionally present */
  .hero-ring:nth-child(1) { opacity: 0.75; }
  .hero-ring:nth-child(2) { opacity: 0.55; }
  .hero-ring:nth-child(3) { opacity: 0.40; }

  /* Hero: ensure content is never cramped at bottom */
  .hero-content .hero-eyebrow { margin-bottom: 0.5rem; }

  /* Eyebrow line: stronger color for readability on dark gradient */
  .hero-eyebrow-line {
    background: var(--primary-light) !important;
    opacity: 1;
    height: 2px;
  }

  /* Ensure video is the dominant visual layer on mobile */
  .hero-video {
    object-position: center center;
    height: 115% !important;
  }
}

/* 360px: hero should not overflow or feel cramped */
@media (max-width: 360px) {
  #home.hero { padding-bottom: 40px; }
  .hero-tagline { font-size: 0.95rem !important; }
  .hero-sub { font-size: 0.88rem !important; margin-bottom: 1.2rem; }
  .hero-buttons .btn-primary { min-height: 50px; font-size: 1rem; }
}

/* ── Engineering carousel: panel body overlay + image coverage ───────── */
@media (max-width: 768px) {
  /* Image: fill the full panel height */
  .cap-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.78;
  }

  /* Body: stronger gradient so title is readable on any image */
  .cap-panel-body {
    background: linear-gradient(
      to top,
      rgba(6,12,24,0.97) 0%,
      rgba(8,18,36,0.80) 40%,
      rgba(10,24,48,0.30) 72%,
      transparent 100%
    ) !important;
    padding: 20px 18px 22px !important;
  }

  /* Carousel section: reduce vertical margin above hint dots */
  .cap-carousel-hint {
    margin-top: 12px !important;
    margin-bottom: 4px;
  }

  /* Engineering section title: don't add large padding above carousel on mobile */
  .eng-cap .section-title { margin-bottom: 20px !important; }
}

/* ── WVB: product showcase plate spacing + depth ─────────────────────── */
@media (max-width: 768px) {
  /* More generous gap between product plates */
  .wvb-grid {
    gap: 24px !important;
  }

  /* Card body padding (below preview) */
  .wvb-card .wvb-card-body,
  .wvb-card > .wvb-tag,
  .wvb-card > h3 {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Preview name: slightly transparent so it doesn't overpower */
  .wvb-preview-name { opacity: 0.12 !important; }

  /* Touch active: premium feedback */
  .wvb-card:active {
    transform: scale(0.985) !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.60) !important;
    transition: transform 0.1s ease, box-shadow 0.15s ease !important;
  }

  /* Divider "Client Solutions" — better spacing in dark context */
  .wvb-divider {
    padding: 24px 20px !important;
    font-size: 1.1rem !important;
  }
}

/* ── Client proof ledger: final polish ───────────────────────────────── */
@media (max-width: 768px) {
  /* Cards: slightly more visible dark tint for record-card feel */
  .cs-card {
    background: rgba(10,22,46,0.06) !important;
    box-shadow: 0 2px 16px rgba(10,22,46,0.08) !important;
  }

  /* Grid: generous gap between records */
  .cs-grid { gap: 20px !important; }

  /* Proof node: ensure visible (z-index guard) */
  .cs-card::after { z-index: 4; }

  /* cs-card touch active: subtle tint */
  .cs-card:active {
    background: rgba(49,157,207,0.05) !important;
    border-color: rgba(49,157,207,0.22) !important;
    transition: background 0.1s ease, border-color 0.1s ease !important;
  }
}

/* ── Final CTA: closing screen premium ───────────────────────────────── */
@media (max-width: 768px) {
  /* h2: text-shadow for depth */
  .fcta-inner h2 {
    text-shadow: 0 2px 24px rgba(6,14,28,0.45);
  }

  /* Buttons: ensure both feel premium and equally weighted */
  .fcta-buttons .btn-primary {
    letter-spacing: 0.02em;
    font-weight: 700;
  }

  .fcta-buttons .fcta-btn-ghost {
    letter-spacing: 0.02em;
    font-weight: 600;
    opacity: 0.88;
  }
}

@media (max-width: 360px) {
  .final-cta { padding: 72px 0 80px !important; min-height: 65vh !important; }
}

/* ═════════════════════════════════════════════════════════════════════════
   QA POLISH PASS — Surgical mobile refinements
   All rules ≤768px unless noted. Desktop ≥769px untouched.
   ═════════════════════════════════════════════════════════════════════════ */

/* ── Hero: top padding correction ─────────────────────────────────────── */
@media (max-width: 768px) {
  /* Reduce padding-top to exact navbar height — no dead blank band above rings */
  #home.hero { padding-top: 64px; }
}

/* ── Hero: content depth — premium bottom accent line ─────────────────── */
@media (max-width: 768px) {
  /* Subtle tech-interface separator above the first word */
  .hero-content::before {
    content: '';
    display: block;
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light), transparent);
    margin-bottom: 14px;
    opacity: 0.65;
  }
}

/* ── Hero rings: fix opacity conflict with ring-pulse keyframe animation ── */
@media (max-width: 768px) {
  /* Unset the static opacity overrides that fight CSS keyframe animation.
     ring-pulse drives opacity through keyframes; a static opacity on the
     element acts as a cascade floor that can visually flatten the pulse.
     Instead boost visibility via border-color and border-width. */
  .hero-ring:nth-child(1) { opacity: unset; border-color: rgba(49,157,207,0.30); border-width: 1.5px; }
  .hero-ring:nth-child(2) { opacity: unset; border-color: rgba(49,157,207,0.20); border-width: 1.5px; }
  .hero-ring:nth-child(3) { opacity: unset; border-color: rgba(49,157,207,0.13); border-width: 1.5px; }

  /* Ensure rings are never clipped by a parent overflow:hidden */
  .hero-resonance {
    pointer-events: none;
    overflow: visible;
  }

  /* Nodes: slightly larger hit area for visual presence */
  .hero-node { width: 7px; height: 7px; }
}

/* ── Engineering carousel: active-panel selection feel ────────────────── */
@media (max-width: 768px) {
  .eng-cap.section {
    padding-top: 52px !important;
    padding-bottom: 44px !important;
  }

  /* Active panel: stronger border + glow — unambiguously selected */
  .cap-panel.cap-panel--active {
    box-shadow:
      0 24px 64px rgba(4,10,22,0.65),
      0 0 0 2px rgba(49,157,207,0.55),
      0 0 36px rgba(49,157,207,0.22),
      inset 0 1px 0 rgba(49,157,207,0.12) !important;
  }

  .eng-cap .section-title { padding-bottom: 8px; }
}

/* ── cs-card: allow proof-node dot to extend past card edge ───────────── */
@media (max-width: 768px) {
  /* .cs-card has overflow:hidden in base CSS which clips the ::after dot
     at left:-6px. Override so the dot renders outside the card boundary. */
  .cs-card { overflow: visible !important; }
}

/* ── wvb-preview::after overlay: keep behind icons on mobile ──────────── */
@media (max-width: 768px) {
  /* The art-direction pass set this overlay to z-index:2.
     Icons are at z-index:3, but z-index:1 gives a cleaner stacking context. */
  .wvb-preview::after { z-index: 1 !important; }
}

/* ── Company Intro: premium mobile module ─────────────────────────────── */
@media (max-width: 768px) {
  .company-intro {
    padding: 52px 0 48px;
    position: relative;
  }

  /* Blueprint grid: slightly more visible on mobile */
  .company-intro::before {
    background-image:
      linear-gradient(rgba(23,63,100,0.042) 1px, transparent 1px),
      linear-gradient(90deg, rgba(23,63,100,0.042) 1px, transparent 1px),
      linear-gradient(rgba(23,63,100,0.072) 1px, transparent 1px),
      linear-gradient(90deg, rgba(23,63,100,0.072) 1px, transparent 1px);
    background-size: 24px 24px, 24px 24px, 96px 96px, 96px 96px;
  }

  /* Scan line: faster on mobile for energy */
  .company-intro::after {
    animation-duration: 8s !important;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(49,157,207,0.10) 20%,
      rgba(49,157,207,0.22) 50%,
      rgba(49,157,207,0.10) 80%,
      transparent 100%
    ) !important;
  }

  /* Statement: premium typographic presence with left accent */
  .ci-statement {
    font-size: clamp(1.85rem, 7vw, 2.8rem) !important;
    line-height: 1.12;
    border-left: 2px solid rgba(49,157,207,0.35);
    padding-left: 16px;
    margin-left: -18px;
  }

  /* Inner: tighter but rhythmic gap */
  .ci-inner { gap: 24px !important; }

  /* Left column: flex stack */
  .ci-left { display: flex; flex-direction: column; gap: 20px; }

  /* Visual image: more presence */
  .ci-left-visual {
    width: 100%;
    border-radius: 12px;
    height: 220px;
    object-fit: cover;
    filter: saturate(0.95);
  }

  /* Copy: clean line-height */
  .ci-copy {
    font-size: 0.96rem !important;
    line-height: 1.80;
    color: #3d5270;
  }

  /* Tags: signal chips, not plain pill buttons */
  .ci-tag {
    background: rgba(23,63,100,0.07) !important;
    border: 1px solid rgba(23,63,100,0.14);
    border-radius: 6px !important;
    font-size: 0.69rem !important;
    letter-spacing: 0.08em !important;
    padding: 5px 12px !important;
    color: var(--primary) !important;
  }
}

/* 360px: prevent ci-statement negative margin from overflowing */
@media (max-width: 360px) {
  .ci-statement {
    font-size: clamp(1.6rem, 6vw, 2rem) !important;
    margin-left: 0 !important;
    padding-left: 14px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   IMMERSIVE MOBILE PASS — Engineering containment, WVB rhythm, swipe hint
   All rules ≤768px unless noted. Desktop ≥769px untouched.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── TASK 2: Engineering — command-module containment ──────────────────── */
@media (max-width: 768px) {
  /* Cool blue-gray tint base + blueprint grid overlay */
  .eng-cap.section {
    position: relative;
    overflow-x: clip; /* clip NOT hidden — preserves child overflow-x:auto scroll */
    background:
      linear-gradient(rgba(23,63,100,0.028) 1px, transparent 1px),
      linear-gradient(90deg, rgba(23,63,100,0.028) 1px, transparent 1px),
      linear-gradient(180deg, #edf1f7 0%, #f4f7fb 30%, #f4f7fb 70%, #edf1f7 100%);
    background-size: 28px 28px, 28px 28px, 100% 100%;
    box-shadow: inset 0 4px 40px rgba(49,157,207,0.07);
  }

  /* Signal separator — top edge */
  .eng-cap.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
      transparent 0%,
      rgba(49,157,207,0.30) 20%,
      rgba(49,157,207,0.55) 50%,
      rgba(49,157,207,0.30) 80%,
      transparent 100%
    );
    z-index: 1;
    pointer-events: none;
  }

  /* Signal separator — bottom edge */
  .eng-cap.section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
      transparent 0%,
      rgba(49,157,207,0.20) 20%,
      rgba(49,157,207,0.42) 50%,
      rgba(49,157,207,0.20) 80%,
      transparent 100%
    );
    z-index: 1;
    pointer-events: none;
  }

  /* Ensure all section content layers sit above the pseudo-element lines */
  .eng-cap .section-title,
  .eng-cap .section-label,
  .cap-showcase,
  .cap-carousel-hint {
    position: relative;
    z-index: 2;
  }
}

/* ── TASK 3: Engineering carousel — screen-dominant panels ────────────── */
/* NOTE: scroll container is .cap-showcase, not .cap-carousel */
@media (max-width: 768px) {
  .cap-showcase {
    padding-left: 12px !important;
    padding-right: 12px !important;
    gap: 10px !important;
    scroll-padding-left: 12px;
  }

  .cap-panel {
    flex: 0 0 91vw !important;
  }
}

@media (max-width: 430px) {
  .cap-showcase {
    padding-left: 10px !important;
    padding-right: 10px !important;
    gap: 10px !important;
  }
  .cap-panel { flex: 0 0 92vw !important; }
}

@media (max-width: 390px) {
  .cap-panel { flex: 0 0 93vw !important; }
}

@media (max-width: 360px) {
  .cap-showcase { padding-left: 8px !important; }
  .cap-panel { flex: 0 0 94vw !important; }
}

/* ── TASK 4: Swipe hint — premium system-navigation capsules ──────────── */
/* Active class confirmed from JS: cap-hint-dot--active (not .active) */
@media (max-width: 768px) {
  .cap-hint-dot {
    display: block;
    height: 3px !important;
    width: 6px !important;
    border-radius: 99px !important;
    background: rgba(23,63,100,0.20) !important;
    border: none !important;
    box-shadow: none !important;
    transition: width 0.28s ease, background 0.28s ease !important;
  }

  .cap-hint-dot--active {
    width: 16px !important;
    height: 3px !important;
    background: var(--primary-light) !important;
    border-radius: 99px !important;
    box-shadow: 0 0 6px rgba(49,157,207,0.45) !important;
    border: none !important;
  }

  /* Tighten dot cluster gap */
  .cap-hint-dots { gap: 5px !important; }
}

/* ── TASK 5: WVB — tighter vertical rhythm ────────────────────────────── */
/* Before: padding-top 56px / padding-bottom 64px / gap 24px */
/* After:  padding-top 44px / padding-bottom 36px / gap 16px  */
@media (max-width: 768px) {
  .wvb-section {
    padding-top: 44px !important;
    padding-bottom: 36px !important;
  }

  .wvb-grid {
    gap: 16px !important;
    margin-top: 20px !important;
  }
}

/* ── TASK 6: WVB — edge-to-edge product plate width ──────────────────── */
@media (max-width: 768px) {
  /* Reduce outer container side padding so cards use full screen width */
  .wvb-section .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .wvb-card {
    width: 100% !important;
    max-width: none !important;
    border-radius: 14px !important;
  }

  .wvb-preview {
    width: 100% !important;
  }
}

/* ── TASK 7: Footer spacing — no excessive gap ────────────────────────── */
/* Audit found no problematic margins on #footer-placeholder or .site-footer.
   Final-cta padding-bottom handles the gap. No rule needed. */
