/* Homepage-only visual system. */
.home-carousel {
  position: relative;
  height: clamp(620px, calc(100svh - 76px), 760px);
  overflow: hidden;
  background: #071522;
  touch-action: pan-y;
}

/* The carousel now owns the homepage hero; keep the legacy hero markup as a safe fallback. */
.home-carousel + .hero { display: none; }

/* Homepage content below the carousel must remain visible after a hard refresh.
   The legacy hero stays hidden, while the real content never waits on reveal JS. */
.js .home-carousel ~ .section .reveal,
.js .home-carousel ~ .section-sm .reveal {
  opacity: 1;
  transform: none;
}

.carousel-viewport { display: flex; width: 100%; height: 100%; transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1); }

.carousel-slide { min-height: 100%; }

.carousel-slide {
  position: relative;
  flex: 0 0 100%;
  overflow: hidden;
  opacity: 1;
  pointer-events: auto;
}

.carousel-slide > img {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.035);
  transform-origin: center center;
}

.js .carousel-slide > img {
  will-change: transform;
}

.js .carousel-slide.is-active > img {
  animation: carousel-image-zoom 5s cubic-bezier(0.37, 0, 0.63, 1) both;
}

.carousel-slide::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(4, 13, 25, 0.92) 0%, rgba(4, 13, 25, 0.72) 35%, rgba(4, 13, 25, 0.16) 74%, rgba(4, 13, 25, 0.38) 100%);
}

.carousel-slide--welcome > img { object-position: center; }
.carousel-slide--operations > img { object-position: center; }
.carousel-slide--aegisface > .carousel-face-background {
  object-position: center;
  opacity: 0.92;
}

.face-scan-overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}

.face-scan-frame {
  position: absolute;
  top: 23%;
  right: 12.5%;
  width: min(26vw, 500px);
  height: min(60vw, 570px);
  transform-origin: center center;
}

.js .carousel-slide--aegisface.is-active .face-scan-frame {
  animation: face-frame-scale 5s cubic-bezier(0.37, 0, 0.63, 1) both;
}

.face-scan-line {
  position: absolute;
  right: 7%;
  bottom: 33%;
  left: 7%;
  height: 5px;
  background: linear-gradient(90deg, transparent, #62e7ff 20%, #e4fcff 50%, #62e7ff 80%, transparent);
  box-shadow: 0 0 14px rgba(98, 231, 255, 0.9), 0 0 30px rgba(98, 231, 255, 0.45);
  animation: face-scan-line 2.8s ease-in-out infinite;
  transform: translateX(18px);
}

@keyframes face-frame-scale {
  from { transform: scale(1.035); }
  to { transform: scale(1.08); }
}

@keyframes face-scan-line {
  0%, 100% { bottom: 33%; opacity: 0.45; }
  50% { bottom: 96%; opacity: 1; }
}

.carousel-copy {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: inherit;
  align-items: center;
}

.carousel-copy-inner {
  max-width: 690px;
  padding: 76px 0 154px;
}

.js .carousel-slide .carousel-copy-inner > * {
  opacity: 0;
}

.js .carousel-slide.is-active .carousel-copy-inner > * {
  animation: carousel-content-in 900ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.js .carousel-slide.is-active .carousel-copy-inner > :nth-child(1) { animation-delay: 100ms; }
.js .carousel-slide.is-active .carousel-copy-inner > :nth-child(2) {
  animation-name: carousel-heading-in;
  animation-delay: 190ms;
}
.js .carousel-slide.is-active .carousel-copy-inner > :nth-child(3) { animation-delay: 290ms; }
.js .carousel-slide.is-active .carousel-copy-inner > :nth-child(4) {
  animation-name: carousel-actions-in;
  animation-delay: 400ms;
}

@keyframes carousel-image-zoom {
  from { transform: scale(1.035); }
  to { transform: scale(1.08); }
}

@keyframes carousel-content-in {
  from { opacity: 0; transform: translateX(-34px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes carousel-heading-in {
  from { opacity: 0; transform: translateX(34px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes carousel-actions-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.carousel-kicker {
  font-size: 1.125rem;
  letter-spacing: 0.18em;
}

.carousel-slide--welcome .carousel-copy-inner,
.carousel-slide--aegisface .carousel-copy-inner,
.carousel-slide--operations .carousel-copy-inner { max-width: 820px; }

.carousel-copy h1.carousel-feature-heading {
  font-size: clamp(2.5rem, 4.8vw, 4.375rem);
}

.carousel-copy h1 {
  max-width: 760px;
  margin: 18px 0;
  font-size: clamp(2.8rem, 5.8vw, 6.2rem);
}

.carousel-copy p {
  max-width: 610px;
  margin-bottom: 28px;
  color: #d1deec;
  font-size: 1.125rem;
}

.carousel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.carousel-actions .btn {
  font-size: 0.9375rem;
}

.carousel-actions .btn-primary,
.carousel-actions .btn-primary:hover {
  box-shadow: none;
}

.carousel-actions .btn-secondary:hover {
  box-shadow: inset 0 0 14px rgba(137, 196, 255, 0.2);
}

/* Keep both Welcome slide actions visually consistent on hover. */
.carousel-slide--welcome .carousel-actions .btn {
  transition: transform 260ms ease, box-shadow 260ms ease, background 260ms ease;
  will-change: transform, box-shadow;
}

.carousel-slide--welcome .carousel-actions .btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: none;
}

.carousel-slide--welcome .carousel-actions .btn-primary,
.carousel-slide--welcome .carousel-actions .btn-primary:hover {
  box-shadow: none;
}

.carousel-slide--welcome .carousel-actions .btn-secondary,
.carousel-slide--operations .carousel-actions .btn-secondary {
  color: #eff8ff;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.carousel-slide--welcome .carousel-actions .btn-secondary:hover,
.carousel-slide--operations .carousel-actions .btn-secondary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: inset 0 0 16px rgba(144, 224, 255, 0.2);
}

.carousel-slide--aegisface .carousel-actions .btn-secondary {
  padding-inline: 26px;
}

.carousel-slide--aegisface {
  background: radial-gradient(circle at 75% 28%, rgba(140, 108, 255, 0.28), transparent 26%), radial-gradient(circle at 62% 80%, rgba(72, 167, 255, 0.18), transparent 36%), #06101d;
}

.carousel-slide--aegisface::after {
  background: linear-gradient(90deg, rgba(4, 13, 25, 0.96) 0%, rgba(4, 13, 25, 0.66) 48%, rgba(4, 13, 25, 0.1) 100%);
}

.carousel-aegis-art {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 13%;
  width: min(38vw, 470px);
  height: min(38vw, 470px);
  background: radial-gradient(circle at 50% 50%, rgba(84, 229, 255, 0.08), transparent 62%);
  border: 1px solid rgba(84, 229, 255, 0.15);
  border-radius: 50%;
  transform: translateY(-50%);
}

.carousel-aegis-art .aegis-face { width: 190px; height: 250px; }

.carousel-face-background + .carousel-copy { z-index: 2; }

.carousel-controls {
  display: contents;
}

.carousel-arrow,
.carousel-dot {
  color: #eaf7ff;
  background: rgba(6, 16, 29, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.carousel-arrow {
  display: grid;
  position: absolute;
  z-index: 6;
  top: 50%;
  width: 44px;
  height: 44px;
  place-items: center;
  font-size: 1.2rem;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) scale(0.9);
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease, background 180ms ease;
}

.carousel-arrow[data-carousel-prev] { left: clamp(12px, 2.8vw, 48px); }
.carousel-arrow[data-carousel-next] { right: clamp(12px, 2.8vw, 48px); }

.carousel-arrow:hover { background: rgba(84, 229, 255, 0.18); }

.home-carousel:hover .carousel-arrow,
.home-carousel:focus-within .carousel-arrow {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%);
}

.carousel-dots {
  position: absolute;
  z-index: 6;
  bottom: 28px;
  left: 50%;
  display: flex;
  gap: 8px;
  margin: 0;
  pointer-events: auto;
  transform: translateX(-50%);
}

.carousel-dot {
  position: relative;
  width: 34px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 0;
}

.carousel-dot::after {
  position: absolute;
  top: 50%;
  right: 2px;
  left: 2px;
  height: 4px;
  content: "";
  background: rgba(6, 16, 29, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  transform: translateY(-50%);
}

.carousel-dot.is-active::after {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(84, 229, 255, 0.5);
}

.carousel-arrow:focus-visible,
.carousel-dot:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

@media (max-width: 640px), (hover: none), (pointer: coarse) {
  .carousel-arrow {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%);
  }
}

@media (max-width: 640px) {
  .home-carousel { height: 620px; }
  .carousel-copy-inner { padding: 70px 0 136px; }
  .carousel-kicker { font-size: clamp(0.9rem, 3.2vw, 1.125rem); }
  .carousel-copy h1.carousel-feature-heading { font-size: clamp(2rem, 10vw, 3rem); }
  .carousel-copy h1 { font-size: clamp(2.45rem, 12vw, 4rem); }
  .carousel-copy p { font-size: clamp(0.95rem, 3.4vw, 1.125rem); }
  .carousel-actions .btn { font-size: clamp(0.875rem, 3.8vw, 0.9375rem); }
  .carousel-actions { flex-direction: column; align-items: stretch; }
  .carousel-actions .btn { width: 100%; }
  .carousel-slide::after,
  .carousel-slide--aegisface::after { background: linear-gradient(180deg, rgba(4, 13, 25, 0.58) 0%, rgba(4, 13, 25, 0.94) 78%); }
  /* The face is positioned on the right side of the wide source image.
     Reposition only the phone crop; desktop and tablet keep their approved framing. */
  .carousel-slide--aegisface > .carousel-face-background { object-position: 83% center; }
  .carousel-slide--aegisface .face-scan-frame { display: none; }
  .carousel-aegis-art { top: 24%; right: 50%; width: 280px; height: 280px; transform: translate(50%, -50%); }
  .carousel-aegis-art .aegis-face { width: 130px; height: 175px; }
  .carousel-slide--aegisface .carousel-copy-inner { padding-top: 300px; }
  .carousel-dots { bottom: 22px; }
  .home-about-grid { grid-template-columns: 1fr; gap: 30px; }
  .home-about-media,
  .home-about-media img { min-height: 300px; }
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 76px);
  padding: clamp(58px, 5vw, 86px) 0 clamp(64px, 5vw, 90px);
  align-items: center;
  isolation: isolate;
}

.hero::after {
  position: absolute;
  z-index: -2;
  top: 7%;
  right: -160px;
  width: 520px;
  height: 520px;
  content: "";
  background: radial-gradient(circle, rgba(72, 167, 255, 0.19), rgba(140, 108, 255, 0.06) 46%, transparent 68%);
  border-radius: 50%;
  filter: blur(10px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(460px, 0.95fr);
  gap: clamp(44px, 5vw, 92px);
  align-items: center;
}

.hero-copy {
  position: relative;
  max-width: 820px;
}

.hero-copy .lead {
  max-width: 760px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: #9fb3c8;
  font-size: 0.9rem;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-row i {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(98, 230, 170, 0.65);
}

.hero-visual {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 560px;
  place-items: center;
  perspective: 1200px;
}

.visual-orbit {
  position: absolute;
  width: 510px;
  height: 510px;
  border: 1px solid rgba(113, 191, 255, 0.13);
  border-radius: 50%;
  box-shadow: inset 0 0 80px rgba(55, 149, 255, 0.06), 0 0 70px rgba(70, 134, 255, 0.05);
}

.visual-orbit::before,
.visual-orbit::after {
  position: absolute;
  inset: 0;
  content: "";
  border: 1px dashed rgba(140, 108, 255, 0.18);
  border-radius: 50%;
}

.visual-orbit::before {
  inset: 42px;
}

.visual-orbit::after {
  inset: 92px;
}

.visual-core {
  position: relative;
  width: min(100%, 570px);
  min-height: 360px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(14, 38, 58, 0.93), rgba(7, 20, 34, 0.95)), radial-gradient(circle at 70% 15%, rgba(140, 108, 255, 0.17), transparent 34%);
  border: 1px solid rgba(141, 211, 255, 0.18);
  border-radius: 28px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: rotateY(-5deg) rotateX(2deg);
}

.visual-top {
  display: flex;
  height: 46px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots b {
  width: 7px;
  height: 7px;
  background: #38516a;
  border-radius: 50%;
}

.window-dots b:nth-child(1) { background: #ff7e8d; }
.window-dots b:nth-child(2) { background: #ffd06a; }
.window-dots b:nth-child(3) { background: #62e6aa; }

.live-badge {
  padding: 5px 8px;
  color: #a7e5ff;
  font-size: 0.72rem;
  background: rgba(84, 229, 255, 0.06);
  border: 1px solid rgba(84, 229, 255, 0.24);
  border-radius: 999px;
}

.visual-body {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  padding: 16px;
}

.camera-panel,
.metric-card,
.event-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}

.camera-panel {
  position: relative;
  min-height: 245px;
  overflow: hidden;
  padding: 18px;
}

.camera-grid {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(84, 229, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(84, 229, 255, 0.035) 1px, transparent 1px);
  background-size: 30px 30px;
}

.scan-line {
  position: absolute;
  z-index: 4;
  top: 22%;
  right: 12%;
  left: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 18px rgba(84, 229, 255, 0.75);
}

.face-box {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: flex;
  width: 112px;
  height: 140px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(84, 229, 255, 0.76);
  border-radius: 18px;
  box-shadow: 0 0 24px rgba(84, 229, 255, 0.12);
  transform: translate(-50%, -45%);
}

.face-box::before,
.face-box::after {
  position: absolute;
  width: 18px;
  height: 18px;
  content: "";
  border-color: #9c83ff;
  border-style: solid;
}

.face-box::before { top: -3px; left: -3px; border-width: 2px 0 0 2px; border-radius: 6px 0 0; }
.face-box::after { right: -3px; bottom: -3px; border-width: 0 2px 2px 0; border-radius: 0 0 6px; }

.scan-face {
  width: 84%;
  height: 90%;
  fill: none;
  stroke: #58dcff;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.52;
  filter: drop-shadow(0 0 4px rgba(84, 229, 255, 0.25)) drop-shadow(0 0 12px rgba(140, 108, 255, 0.12));
}

.scan-face ellipse {
  fill: rgba(84, 229, 255, 0.025);
}

.camera-label {
  position: absolute;
  z-index: 5;
  bottom: 14px;
  left: 16px;
  color: #a9c0d7;
  font-size: 0.76rem;
}

.metric-stack {
  display: grid;
  gap: 12px;
}

.metric-card {
  padding: 16px;
}

.metric-card strong {
  display: block;
  font-size: 1.35rem;
}

.metric-card small {
  color: #91a8bf;
}

.mini-bar {
  height: 6px;
  margin-top: 10px;
  overflow: hidden;
  background: #142d43;
  border-radius: 999px;
}

.mini-bar span {
  display: block;
  width: 78%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  border-radius: inherit;
}

.mini-bar .bar-92 { width: 92%; }

.event-card {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.event-dot {
  width: 9px;
  height: 9px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(98, 230, 170, 0.55);
}

.event-card p {
  margin: 0;
  color: #b9c9d8;
  font-size: 0.84rem;
}

.float-chip {
  position: absolute;
  padding: 10px 12px;
  color: #dbe9f7;
  font-size: 0.82rem;
  background: rgba(8, 23, 38, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(10px);
}

.float-chip.one { top: 94px; left: -18px; }
.float-chip.two { right: -18px; bottom: 74px; }

.home-highlights {
  position: relative;
  z-index: 4;
  margin-top: 0;
  padding: 0;
  background: linear-gradient(90deg, #121d34, #14243a);
  border-top: 1px solid rgba(142, 181, 221, 0.14);
  border-bottom: 1px solid rgba(142, 181, 221, 0.14);
}

.home-highlights-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.home-highlight-card {
  display: flex;
  min-height: 106px;
  padding: 22px 18px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(142, 181, 221, 0.14);
}

.home-highlight-card:last-child {
  border-right: 0;
}

.home-highlight-icon {
  display: none;
}

.home-highlight-card h3 {
  margin: 0 0 6px;
  color: #a8bbd1;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.home-highlight-card p {
  margin: 0;
  color: #8198b1;
  font-size: 0.75rem;
  line-height: 1.45;
}

@media (max-width: 820px) {
  .home-highlights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-highlight-card:nth-child(2) { border-right: 0; }
  .home-highlight-card:nth-child(-n + 2) { border-bottom: 1px solid rgba(142, 181, 221, 0.14); }
}

@media (max-width: 520px) {
  .home-highlights-grid { grid-template-columns: 1fr; }
  .home-highlight-card,
  .home-highlight-card:nth-child(2) { min-height: 92px; border-right: 0; border-bottom: 1px solid rgba(142, 181, 221, 0.14); }
  .home-highlight-card:last-child { border-bottom: 0; }
}

.home-about {
  padding-top: clamp(52px, 4vw, 72px);
  padding-bottom: clamp(52px, 4vw, 72px);
  background: linear-gradient(135deg, rgba(11, 27, 47, 0.72), rgba(6, 16, 29, 0.18));
}

#about {
  scroll-margin-top: 88px;
}

.home-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(480px, 0.84fr);
  align-items: center;
  gap: clamp(38px, 6vw, 96px);
}

.home-about-copy {
  max-width: 950px;
}

.home-about-copy h2 {
  margin: 16px 0 20px;
  font-size: clamp(2.15rem, 3.4vw, 3.4375rem);
}

.home-about-copy .kicker {
  font-size: clamp(0.8125rem, 1vw, 0.9375rem);
}

.home-about-copy .lead {
  max-width: 950px;
  margin-bottom: 14px;
}

.home-about-copy > p:not(.lead) {
  max-width: 950px;
  margin: 0 0 28px;
  color: var(--muted);
  font-weight: 400;
  font-style: italic;
}

.home-core-services .section-heading {
  max-width: 950px;
}

.home-core-services {
  padding-top: clamp(72px, 5vw, 96px);
  padding-bottom: clamp(56px, 4vw, 72px);
}

.home-core-services .section-heading h2 {
  font-size: clamp(2.15rem, 3.4vw, 3.4375rem);
}

.home-core-services .section-heading .kicker {
  font-size: clamp(0.8125rem, 1vw, 0.9375rem);
}

.home-core-services .section-heading .lead {
  max-width: 950px;
  font-weight: 300;
  font-style: italic;
}

/* Match Home subtitles to the hero paragraph size, excluding italic copy. */
.home-about-copy .lead,
.home-vision-copy .lead,
.feature-split .lead,
.section-heading .lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
}

.home-about-copy .lead {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
}

.home-vision-copy .lead {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
}

.home-core-services .section-heading .lead {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  font-weight: 400;
  font-style: normal;
}

.home-aegis-overview .eyebrow {
  font-size: clamp(0.8125rem, 1vw, 0.9375rem);
}

.home-aegis-overview {
  padding-top: clamp(56px, 4vw, 72px);
  padding-bottom: clamp(40px, 3vw, 52px);
}

.home-aegis-overview h2 {
  font-size: clamp(2.15rem, 3.4vw, 3.4375rem);
}

.home-aegis-overview .lead {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
}

.home-industries .section-heading h2 {
  font-size: clamp(2.15rem, 3.4vw, 3.4375rem);
}

.home-industries {
  padding-top: clamp(40px, 3vw, 52px);
  padding-bottom: clamp(40px, 3vw, 52px);
}

.home-how-work {
  padding-top: clamp(40px, 3vw, 52px);
  padding-bottom: clamp(32px, 2.5vw, 40px);
}

.home-how-work .process-card::before {
  display: inline-block;
  margin: 0 12px 0 0;
  color: #8cabca;
  font-size: 1.45rem;
  line-height: 1;
  vertical-align: middle;
}

.home-how-work .process-card h3 {
  display: inline-block;
  margin: 0;
  vertical-align: middle;
}

.home-how-work .process-card p {
  margin-top: 22px;
}

.home-project-cta {
  padding-top: clamp(32px, 2.5vw, 40px);
  padding-bottom: clamp(32px, 2.5vw, 40px);
}

.home-project-cta .kicker {
  font-size: clamp(0.8125rem, 1vw, 0.9375rem);
}

.home-project-cta .cta h2 {
  font-size: clamp(2.15rem, 3.4vw, 3.4375rem);
}

.home-project-cta .cta p {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
}

.home-project-cta .btn-primary,
.home-project-cta .btn-primary:hover {
  box-shadow: none;
}

.home-project-cta + #site-footer .site-footer {
  margin-top: clamp(28px, 2.5vw, 40px);
}

.home-industries .section-heading .kicker {
  font-size: clamp(0.8125rem, 1vw, 0.9375rem);
}

.home-industries .section-heading .lead {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
}

.home-industries .industry-card span {
  margin-bottom: 24px;
}

.js .home-industries .industry-card.reveal.is-visible,
.home-industries .industry-card {
  transition: transform 0.26s ease, opacity 0.7s ease;
  will-change: transform;
}

@media (hover: hover) {
  .home-industries .industry-card:hover,
  .js .home-industries .industry-card.reveal.is-visible:hover {
    transform: translateY(-8px) !important;
  }
}

.home-aegis-overview .aegis-panel {
  isolation: isolate;
  background: #061525;
}

.home-aegis-overview .aegis-panel-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* hero3 places the subject on the right side of its original canvas. */
  object-position: right center;
  opacity: 0.92;
}

/* Tablet panels become wide; crop from the right and scale only the photo so the face remains centred. */
@media (min-width: 641px) and (max-width: 1024px) {
  .home-aegis-overview .aegis-panel {
    width: min(100%, 713px);
    margin-inline: auto;
  }

  .home-aegis-overview .aegis-panel-face {
    transform: scale(1.24);
    transform-origin: right center;
  }
}

/* On the narrow phone panel, a small offset centres the source subject without zooming it. */
@media (max-width: 640px) {
  .home-aegis-overview .aegis-panel-face {
    object-position: 87% center;
  }
}

.home-aegis-overview .aegis-panel::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  background: transparent;
}

.aegis-panel-scan {
  position: absolute;
  z-index: 2;
  top: 15%;
  left: 50%;
  width: min(76%, 330px);
  height: 65%;
  overflow: hidden;
  pointer-events: none;
  transform: translateX(-50%);
}

.aegis-panel-scan::before {
  position: absolute;
  top: 10px;
  right: -10%;
  left: -10%;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(98, 231, 255, 0.78) 14%, #d9fbff 50%, rgba(98, 231, 255, 0.78) 86%, transparent);
  box-shadow: 0 0 8px rgba(90, 225, 255, 0.95), 0 0 22px rgba(90, 225, 255, 0.62);
  animation: aegis-panel-face-scan 2.8s ease-in-out infinite alternate;
}

@keyframes aegis-panel-face-scan {
  from { top: 10px; }
  to { top: calc(100% - 13px); }
}

@media (prefers-reduced-motion: reduce) {
  .aegis-panel-scan::before { animation: none; top: 48%; }
}

.home-core-services .card .icon-box {
  display: grid;
  width: 40px;
  height: 40px;
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  border-radius: 12px;
}

.home-core-services .card .icon-box svg {
  width: 20px;
  height: 20px;
}

.home-core-services .card h3 {
  grid-column: 2;
  grid-row: 1;
  display: block;
  margin: 0;
  font-size: clamp(1.35rem, 1.5vw, 1.55rem);
  line-height: 1.1;
}

.home-core-services .card p {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 18px;
}

.home-core-services .card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
}

/* Core Services cards lift on pointer hover without adding a glow. */
.js .home-core-services .card.reveal.is-visible,
.home-core-services .card {
  transition: transform 0.26s ease, opacity 0.7s ease;
  will-change: transform;
}

@media (hover: hover) {
  .home-core-services .card:hover,
  .js .home-core-services .card.reveal.is-visible:hover {
    transform: translateY(-8px) !important;
  }

  .home-core-services .card:hover::before {
    opacity: 0;
  }
}

.home-about-media {
  position: relative;
  width: min(100%, 540px);
  height: 382px;
  margin: 0;
  justify-self: end;
  overflow: hidden;
  border: 1px solid rgba(127, 211, 255, 0.2);
  border-radius: 22px;
  background: #0b1b2d;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.home-about-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(10, 31, 53, 0.16), transparent 46%, rgba(84, 229, 255, 0.1));
  pointer-events: none;
}

.home-about-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.home-vision {
  padding-top: clamp(52px, 4vw, 72px);
  padding-bottom: clamp(52px, 4vw, 72px);
  background: linear-gradient(225deg, rgba(12, 35, 59, 0.54), rgba(6, 16, 29, 0.14));
}

.home-vision-grid {
  display: grid;
  grid-template-columns: minmax(480px, 0.84fr) minmax(0, 1.16fr);
  align-items: center;
  gap: clamp(38px, 6vw, 96px);
}

.home-vision-media {
  position: relative;
  width: min(100%, 540px);
  height: 382px;
  margin: 0;
  justify-self: start;
  overflow: hidden;
  border: 1px solid rgba(127, 211, 255, 0.2);
  border-radius: 22px;
  background: #0b1b2d;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.home-vision-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(225deg, rgba(10, 31, 53, 0.12), transparent 50%, rgba(84, 229, 255, 0.1));
  pointer-events: none;
}

.home-vision-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.home-vision-copy {
  max-width: 950px;
}

.home-vision-copy h2 {
  margin: 16px 0 20px;
  font-size: clamp(2.15rem, 3.4vw, 3.4375rem);
}

.home-vision-copy .kicker {
  font-size: clamp(0.8125rem, 1vw, 0.9375rem);
}

.home-vision-copy .lead {
  max-width: 950px;
  margin-bottom: 14px;
}

.home-vision-copy > p:not(.lead) {
  max-width: 950px;
  margin: 0;
  color: var(--muted);
  font-weight: 400;
  font-style: italic;
}

@media (max-width: 820px) {
  .home-about-grid,
  .home-vision-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .home-vision-media,
  .home-vision-media img {
    min-height: 300px;
  }

  .home-vision-media {
    justify-self: stretch;
    width: 100%;
    height: 300px;
  }

  .home-about-media {
    justify-self: stretch;
    width: 100%;
    height: 300px;
  }
}
