/* V3 Navy Command — premium operations */
@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@400;600;700&display=swap');

:root {
  --navy: #0c2340;
  --navy-mid: #153456;
  --navy-deep: #081a30;
  --accent: #4db5ff;
  --accent-glow: rgba(77, 181, 255, 0.35);
  --white: #fff;
  --off: #f7f8fa;
  --muted: #8fa3b8;
  --text: #2a3544;
  --font: 'Libre Franklin', system-ui, sans-serif;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--off);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { color: var(--navy); font-weight: 700; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible { opacity: 1; transform: none; }

.utility {
  background: var(--navy-deep);
  color: var(--muted);
  font-size: 0.75rem;
  padding: 0.4rem 0;
}

.utility a { color: var(--accent); }

.shell-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.shell-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  padding: 0.65rem 0;
}

.shell-header .logo img { height: 69px; width: auto; }

.shell-nav { display: flex; gap: 2rem; align-items: center; }

.shell-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.15s;
}

.shell-nav a:hover,
.shell-nav a.active { color: #fff; }

.shell-nav .cta {
  background: var(--accent);
  color: var(--navy) !important;
  padding: 0.5rem 1.2rem;
  font-weight: 700;
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
}

.nav-mobile {
  display: none;
  background: var(--navy-mid);
  flex-direction: column;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

@media (max-width: 768px) {
  .shell-nav { display: none; }
  .nav-toggle { display: block; }
  .utility { display: none; }
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 80%, var(--accent-glow), transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(77, 181, 255, 0.12), transparent 45%);
  animation: mesh-drift 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes mesh-drift {
  from { opacity: 0.7; transform: scale(1) translate(0, 0); }
  to { opacity: 1; transform: scale(1.05) translate(2%, -2%); }
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 3.5rem 2rem 3.5rem max(1.5rem, (100vw - var(--max)) / 2 + 1.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.hero-copy h1 {
  color: #fff;
  font-size: clamp(1.85rem, 3.5vw, 2.65rem);
  line-height: 1.12;
  margin-bottom: 1rem;
}

.hero-copy .kicker {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 28em;
  margin-bottom: 0;
}

.hero-cta {
  margin-top: 1.25rem;
  width: fit-content;
}

.hero-strong { color: #fff; }

.hero-btns { margin-top: 1.5rem; }

.btn {
  display: inline-flex;
  padding: 0.7rem 1.4rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 2px;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  margin-right: 0.5rem;
  transition: transform 0.15s, box-shadow 0.15s;
}

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

.btn-accent {
  background: var(--accent);
  color: var(--navy);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-ghost {
  border: 2px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  background: transparent;
}

.hero-media {
  position: relative;
  min-height: 300px;
  z-index: 1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 520px;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--navy) 0%, transparent 40%);
}

.hero-glass-card {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  z-index: 2;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.glass-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.hero-glass-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
  .page-about .ops-media-inner {
    transform: none !important;
  }

  .hero-mesh,
  .hero-grid { animation: none; }

  [data-reveal],
  [data-reveal-stagger] > * {
    opacity: 1;
    transform: none;
  }

  .hero-particles { display: none; }
}

/* —— Motion & atmosphere (Waxley-inspired, data-center theme) —— */

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

.hero-grid {
  position: absolute;
  inset: -20% -10%;
  background-image:
    linear-gradient(rgba(77, 181, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 181, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(165deg, rgba(0, 0, 0, 0.85) 0%, transparent 72%);
  animation: grid-pan 28s linear infinite;
}

@keyframes grid-pan {
  from { background-position: 0 0; }
  to { background-position: 56px 56px; }
}

.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.page-home .hero-atmosphere {
  z-index: 1;
}

.page-home .hero-copy {
  z-index: 3;
}

.page-home .hero-media {
  z-index: 2;
}

.page-home .hero-mesh {
  display: block;
  opacity: 0.9;
}

/* Accent bar on existing section titles (not extra kickers) */
h1[data-accent-line],
h2[data-accent-line] {
  position: relative;
  padding-left: 1rem;
}

h1[data-accent-line]::before,
h2[data-accent-line]::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.08em;
  bottom: 0.08em;
  width: 3px;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(77, 181, 255, 0.4) 100%);
  border-radius: 2px;
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

h1[data-accent-line].is-accent-visible::before,
h2[data-accent-line]:not([data-accent-center]).is-accent-visible::before {
  transform: scaleY(1);
}

/* Centered titles — horizontal bar under the heading */
h2[data-accent-center] {
  padding-left: 0;
  padding-bottom: 0.5rem;
}

h2[data-accent-center]::before {
  left: 50%;
  right: auto;
  top: auto;
  bottom: 0;
  width: 0;
  height: 3px;
  transform: translateX(-50%);
  transform-origin: center;
  transition: width 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  background: linear-gradient(90deg, var(--accent) 0%, rgba(77, 181, 255, 0.25) 100%);
}

h2[data-accent-center].is-accent-visible::before {
  width: 3.25rem;
  transform: translateX(-50%);
}

[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.55s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal-stagger].is-visible > * {
  opacity: 1;
  transform: none;
}

[data-reveal-stagger].is-visible > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: 80ms; }
[data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 160ms; }
[data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 240ms; }
[data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: 320ms; }
[data-reveal-stagger].is-visible > *:nth-child(6) { transition-delay: 400ms; }

.page-about .page-hero {
  position: relative;
  overflow: hidden;
}

.page-about .page-hero .container {
  position: relative;
  z-index: 1;
}

.page-about .page-hero .hero-atmosphere,
.page-team .page-hero .hero-atmosphere {
  opacity: 0.75;
}

.page-team .page-hero {
  position: relative;
  overflow: hidden;
}

.page-team .page-hero .container {
  position: relative;
  z-index: 1;
}

.page-team .page-hero-kicker {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.page-about .page-hero .hero-grid {
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, transparent 90%);
}

/* Operations pipeline animation */
.ops-steps {
  position: relative;
}

.ops-steps::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: #c5d4e3;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}

.ops-steps.is-flowing::before {
  transform: scaleX(1);
}

.ops-steps li {
  position: relative;
  z-index: 1;
}

.ops-steps li span {
  transition:
    background 0.35s ease,
    color 0.35s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

.ops-steps li.is-lit span {
  background: var(--accent);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--accent-glow);
}

.solution-card {
  transition:
    background 0.25s ease,
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease;
}

.solution-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(12, 35, 64, 0.08);
}

.cap-card {
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.page-home .home-teaser--banner img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-home .home-teaser--banner:hover img {
  transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .ops-steps::before { transform: scaleX(1); }

  .ops-steps li span {
    background: rgba(77, 181, 255, 0.14);
  }

  .solution-card:hover,
  .page-home .home-teaser--banner:hover img {
    transform: none;
  }
}

/* Metrics */
.metrics-wrap {
  padding: 0 1.5rem;
  margin-top: -2.5rem;
  position: relative;
  z-index: 5;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  box-shadow: 0 12px 40px rgba(12, 35, 64, 0.14);
  border: 1px solid #e2e8ef;
}

.metric {
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.metric:not(:last-child) {
  border-right: 1px solid #e2e8ef;
}

.metric.is-lit {
  background: linear-gradient(180deg, #f0f8ff 0%, var(--white) 100%);
  box-shadow: inset 0 -3px 0 var(--accent);
}

.metric .num {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--navy);
  display: block;
  transition: color 0.3s;
}

.metric.is-lit .num { color: #1a5f9e; }

.metric .lbl {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
  margin-top: 0.5rem;
  display: block;
}

.metric-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transform: translateX(-50%);
  transition: width 0.4s ease;
}

.metric.is-lit .metric-line { width: 60%; }

/* Statement */
.statement-band {
  padding: 4rem 0;
  text-align: center;
  background: var(--off);
}

.statement-band h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  max-width: 20ch;
  margin: 0 auto 0.75rem;
}

.statement-band p {
  max-width: 40rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Operations — full-width band (V4 layout) */
.ops-band {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  width: 100%;
  margin: 0 0 4rem;
  background: var(--white);
  border-top: 1px solid #dde3ea;
  border-bottom: 1px solid #dde3ea;
}

.ops-band figure {
  margin: 0;
  min-height: 360px;
  overflow: hidden;
}

.ops-band figure img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.ops-copy {
  padding: clamp(2.5rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ops-copy .kicker {
  color: var(--navy-mid);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.ops-copy h2 {
  font-size: 1.65rem;
  margin-bottom: 0.75rem;
}

.ops-copy p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.ops-steps {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ops-steps li span {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  background: #e8f4fc;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.8125rem;
  border-radius: 4px;
}

/* Contact */
.contact {
  padding: 4rem 0;
  background: var(--white);
  border-top: 1px solid #dde3ea;
}

.contact-intro { color: var(--muted); margin-bottom: 1.5rem; }

.contact-split {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

.form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.form input,
.form textarea {
  width: 100%;
  padding: 0.65rem;
  border: 1px solid #ccc;
  margin-bottom: 0.75rem;
  font-family: inherit;
  border-radius: 2px;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(77, 181, 255, 0.25);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-card {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 1.75rem;
  border-radius: 4px;
}

.contact-card h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-card a { color: var(--accent); }

.contact-card span {
  font-size: 0.85rem;
  opacity: 0.75;
}

/* Footer */
.footer {
  background: var(--navy);
  color: var(--muted);
  padding: 2.5rem 0;
  font-size: 0.9rem;
}

.footer-inner img { height: 36px; margin-bottom: 1rem; }

.footer-inner p { max-width: 28em; margin: 0 0 0.5rem; line-height: 1.5; }

.footer .copy { font-size: 0.8rem; opacity: 0.65; margin-top: 1rem; }

.footer a { color: var(--accent); }

/* Inner pages */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 3rem 0;
}

.page-hero h1,
.page-hero p { color: #fff; }

.page-hero p { opacity: 0.8; max-width: 36em; }

.mission {
  padding: 3.5rem 0;
}

.mission-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.offer-band {
  padding: 3rem 0 4rem;
}

.offer-section {
  padding: 0;
}

.offer-intro {
  color: var(--muted);
  margin: 0 0 1.75rem;
}

.flip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.35rem;
}

.flip-card {
  perspective: 1200px;
  min-height: 250px;
  cursor: pointer;
  border-radius: 8px;
}

.flip-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 250px;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
  border-radius: 8px;
}

.flip-card:not(.is-flipped):hover .flip-card-inner {
  transform: translateY(-4px);
}

.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card.is-flipped:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
}

.flip-front {
  justify-content: space-between;
  overflow: hidden;
  background: linear-gradient(155deg, var(--navy-deep) 0%, var(--navy) 45%, var(--navy-mid) 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 28px rgba(12, 35, 64, 0.2);
}

.flip-front::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -15%;
  width: 55%;
  height: 70%;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 68%);
  pointer-events: none;
}

.flip-front::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(77, 181, 255, 0.35) 100%);
}

.flip-front h3 {
  position: relative;
  z-index: 1;
  color: #fff;
  margin: 0;
  font-size: 1.2rem;
  padding-left: 0.25rem;
}

.flip-front .front-preview {
  position: relative;
  z-index: 1;
  margin: 0.7rem 0 1rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  max-width: 34ch;
}

.flip-front .tap {
  position: relative;
  z-index: 1;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
  letter-spacing: 0.02em;
}

.flip-back {
  justify-content: flex-start;
  background: var(--white);
  transform: rotateY(180deg);
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
  overflow: visible;
  border: 1px solid #dde3ea;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.flip-back p {
  margin: 0 0 0.5rem;
}

.flip-back p:last-child {
  margin-bottom: 0;
}

.flip-back ul {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
}

.flip-back li {
  margin-bottom: 0.2rem;
}

.flip-back li:last-child {
  margin-bottom: 0;
}

.team-stack { display: grid; gap: 1.5rem; padding: 3rem 0; }

.team-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid #dde3ea;
  overflow: hidden;
}

.team-row img {
  width: 100%;
  min-height: 180px;
  object-fit: cover;
  object-position: top;
}

.team-row .body { padding: 1.5rem 2rem; }

.team-row .role {
  color: #1a5f9e;
  font-weight: 700;
  font-size: 0.85rem;
}

.cta-navy {
  background: var(--navy);
  padding: 2rem;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.cta-navy h2 { color: #fff; margin: 0; }

/* Home — landing hero (see hero--landing block at end of file) */
.page-home .hero-glass-card { display: none; }

.home-overview {
  padding: 3.5rem 0;
  text-align: center;
  background: var(--white);
  border-bottom: 1px solid #dde3ea;
}

.home-overview h2 {
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  max-width: 24ch;
  margin: 0 auto 0.75rem;
}

.home-overview p {
  max-width: 38rem;
  margin: 0 auto 1.25rem;
  color: var(--muted);
}

.home-overview-link {
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}

.home-overview-link:hover { color: #1a5f9e; }

.home-teaser {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  max-width: var(--max);
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
  gap: 0;
  background: var(--white);
  border: 1px solid #dde3ea;
  overflow: hidden;
}

.home-teaser-visual img {
  width: 100%;
  min-height: 260px;
  height: 100%;
  object-fit: cover;
}

.home-teaser-copy {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-teaser-copy p {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

/* About — capabilities (titles + detail, no numbering) */
.cap-section {
  padding: 3rem 0 3.5rem;
  background: var(--white);
  border-top: 1px solid #dde3ea;
  border-bottom: 1px solid #dde3ea;
}

.cap-section .kicker {
  color: var(--navy-mid);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.cap-intro {
  color: var(--muted);
  max-width: 42em;
  margin: 0 0 2rem;
}

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

.cap-card {
  position: relative;
  padding: 1.65rem 1.5rem 1.5rem 1.85rem;
  background: var(--white);
  border: 1px solid #dde3ea;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(12, 35, 64, 0.08);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.cap-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--navy-mid) 100%);
}

.cap-card::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle, rgba(77, 181, 255, 0.14) 0%, transparent 70%);
  pointer-events: none;
}

.cap-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(12, 35, 64, 0.12);
  border-color: #c5d4e3;
}

.cap-card h3 {
  position: relative;
  font-size: 1.02rem;
  margin: 0 0 0.55rem;
  color: var(--navy);
}

.cap-card p {
  position: relative;
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

/* About page — alternating bands + section dividers */
.page-about {
  background: var(--white);
}

.page-about .page-hero {
  padding: clamp(2.75rem, 5vw, 3.75rem) 0 clamp(3.25rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}

.page-about .page-hero .container {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-capabilities .page-hero p {
  max-width: 40em;
}

.page-about .page-hero-kicker {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.page-about .about-section {
  border-top: 1px solid #d5dee8;
}

.page-capabilities #core-capabilities {
  border-top: none;
}

.page-capabilities .page-hero::after {
  display: none;
}

.page-about .about-section .kicker {
  color: var(--navy-mid);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.page-about .about-section h2 {
  color: var(--navy);
}

/* Accent bars sit lower on About section titles */
.page-about h1[data-accent-line]::before,
.page-about h2[data-accent-line]:not([data-accent-center])::before {
  top: 0.45em;
  bottom: 0.1em;
}

.page-about .ops-copy p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 1rem;
}

.page-about .ops-copy p:last-child {
  margin-bottom: 0;
}

/* White — mission */
.page-about .mission {
  background: var(--white);
  padding: clamp(3rem, 5vw, 4rem) 0;
  margin-top: -1.25rem;
  position: relative;
  z-index: 1;
}

.page-about .mission-media {
  width: 100%;
  height: auto;
  display: block;
  border: none;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(12, 35, 64, 0.12);
}

/* White — capabilities */
.page-about .cap-section {
  background: var(--white);
  border-bottom: none;
  padding: clamp(3.25rem, 5vw, 4rem) 0;
}

.page-about .cap-card {
  border-color: #d5dee8;
  box-shadow: 0 4px 18px rgba(12, 35, 64, 0.05);
}

.page-about .cap-card:hover {
  border-color: rgba(77, 181, 255, 0.35);
}

/* Off — operations */
.page-about .ops-band {
  margin: 0;
  border-bottom: none;
  background: var(--off);
}

.page-about .ops-copy {
  background: var(--off);
}

.page-about .ops-steps li span {
  background: rgba(77, 181, 255, 0.14);
}

/* Ops image — scroll drift (image always visible) */
.page-about .ops-media {
  margin: 0;
  min-height: 360px;
}

.page-about .ops-media-inner {
  width: 100%;
  min-height: 360px;
  overflow: hidden;
  will-change: transform;
}

.page-about .ops-media-inner img {
  display: block;
  width: 100%;
  min-height: 360px;
  height: 100%;
  object-fit: cover;
}

/* White — offering */
.page-about .offer-band {
  position: relative;
  overflow: hidden;
  background: var(--white);
  padding: clamp(3.25rem, 5vw, 4.25rem) 0 clamp(3.5rem, 5vw, 4.75rem);
}

.page-about .offer-band .section-atmosphere {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  pointer-events: none;
}

.page-about .offer-band .section-atmosphere .hero-grid {
  animation-duration: 40s;
  opacity: 0.55;
}

.page-about .offer-band .offer-section {
  position: relative;
  z-index: 1;
}

.page-about .flip-back {
  border-color: #d5dee8;
  box-shadow: 0 6px 24px rgba(12, 35, 64, 0.06);
}

.page-about .footer {
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 900px) {
  .hero,
  .mission-inner,
  .ops-band,
  .metrics { grid-template-columns: 1fr; }

  .metrics { grid-template-columns: 1fr 1fr; margin-top: 0; }

  .metric { border-bottom: 1px solid #e2e8ef; }

  .metric:not(:last-child) { border-right: none; }

  .hero-media img { min-height: 280px; }

  .hero-glass-card { left: 1rem; right: 1rem; bottom: 1rem; }

  .flip-grid,
  .contact-split,
  .home-teaser { grid-template-columns: 1fr; }

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

  .page-about .mission {
    margin-top: 0;
    padding-top: 2.5rem;
  }

  .page-about .page-hero::after {
    height: 48px;
  }

  .team-row { grid-template-columns: 1fr; }
}

/* —— Home landing hero: see .hero--landing at end of file —— */

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.solutions-strip {
  background: var(--off);
  border-bottom: 1px solid #dde3ea;
}

.solutions-strip .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.solution-card {
  padding: 1.75rem 1.5rem;
  border-right: 1px solid #dde3ea;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}

.solution-card:last-child { border-right: none; }

.solution-card:hover {
  background: var(--white);
  text-decoration: none;
}

.solution-card h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.solution-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.page-home .home-teaser--banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: none;
  margin: 0 0 3rem;
  padding: 0;
  border: none;
  background: var(--navy);
}

.page-home .home-teaser--banner img {
  width: 100%;
  min-height: 340px;
  height: 100%;
  object-fit: cover;
}

.page-home .home-teaser--banner .home-teaser-copy {
  padding: clamp(2rem, 4vw, 3.5rem);
}

.page-home .home-teaser--banner .home-teaser-copy h2 {
  color: #fff;
}

.page-home .home-teaser--banner .home-teaser-copy p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1rem;
  line-height: 1.55;
}

.page-home .home-teaser--banner .home-teaser-copy p:last-child {
  margin-bottom: 0;
}

.btn-white {
  background: #fff;
  color: var(--navy) !important;
}

.btn-white:hover {
  background: var(--off);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 2.5rem;
  margin-top: 1.5rem;
  align-items: start;
}

.contact-side h3 {
  color: #fff;
  margin-bottom: 1rem;
}

.contact-side p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.contact-side .role {
  font-size: 0.875rem;
  display: block;
  color: var(--muted);
}

.form-status.ok { color: #0d6b3a; }
.form-status.err { color: #b42318; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 1.25rem;
}

.footer-grid h4 {
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-links li { margin-bottom: 0.4rem; }

.footer-brand img { height: 36px; margin-bottom: 1rem; }

.footer-brand p {
  margin: 0;
  line-height: 1.55;
  max-width: 22em;
}

.footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  opacity: 0.65;
}

@media (max-width: 900px) {
  .solutions-strip .container { grid-template-columns: 1fr; }
  .solution-card {
    border-right: none;
    border-bottom: 1px solid #dde3ea;
  }
  .solution-card:last-child { border-bottom: none; }
  .page-home .home-teaser--banner { grid-template-columns: 1fr; }
  .contact-grid,
  .footer-grid { grid-template-columns: 1fr; }
}

/* —— Home: full-viewport editorial hero (Waxley-inspired) —— */

.page-home .shell-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  box-shadow: none;
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.4s ease;
}

.page-home .shell-header::before,
.page-home .shell-header::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.page-home .shell-header::before {
  background: linear-gradient(
    180deg,
    rgba(8, 26, 48, 0.82) 0%,
    rgba(8, 26, 48, 0.45) 45%,
    transparent 100%
  );
  opacity: 1;
}

.page-home .shell-header::after {
  background: var(--navy);
  opacity: 0;
}

.page-home .shell-header.is-solid {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.page-home .shell-header.is-solid::before {
  opacity: 0;
}

.page-home .shell-header.is-solid::after {
  opacity: 1;
}

.page-home .shell-header.is-solid .nav-mobile {
  background: var(--navy-mid);
}

.page-home .shell-header .inner,
.page-home .shell-header .nav-mobile {
  position: relative;
  z-index: 1;
}

.page-home .hero--landing {
  display: block;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--navy-deep);
  overflow: hidden;
}

.page-home .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-home .hero-bg--slideshow {
  opacity: 1;
}

.page-home .hero-bg--slideshow::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    155deg,
    rgba(8, 26, 48, 0.52) 0%,
    rgba(12, 35, 64, 0.38) 45%,
    rgba(8, 26, 48, 0.58) 100%
  );
}

.page-home .hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
  opacity: 0;
  filter: saturate(0.7) brightness(0.88);
  /* Crossfade length — keep a bit shorter than SLIDE_INTERVAL_MS in site.js */
  transition: opacity 0.75s ease-in-out;
}

.page-home .hero-bg-slide.is-active {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-bg-slide {
    transition: none;
  }

  .page-home .hero-bg-slide:not(.is-active) {
    visibility: hidden;
  }
}

.page-home .hero--landing .hero-atmosphere {
  z-index: 1;
}

.page-home .hero--landing .hero-mesh {
  opacity: 0.55;
}

.page-home .hero--landing .hero-grid {
  mask-image: linear-gradient(200deg, rgba(0, 0, 0, 0.5) 0%, transparent 65%);
}

.page-home .hero-stage {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: 100vh;
  min-height: 100dvh;
  padding:
    clamp(5rem, 10vh, 6.5rem)
    clamp(1.5rem, 5vw, 4rem)
    clamp(5.5rem, 16vh, 10rem)
    max(1.5rem, (100vw - var(--max)) / 2 + 1.5rem);
}

.page-home .hero--landing .hero-copy {
  width: min(42rem, 92vw);
  max-width: 38em;
  padding: 0;
  justify-content: flex-end;
}

.page-home .hero-eyebrow {
  color: var(--accent);
  font-size: clamp(0.65rem, 1.2vw, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
}

.page-home .hero--landing .hero-copy h1 {
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  max-width: 14ch;
  text-shadow: none;
}

.page-home .hero-lead {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  max-width: 34em;
  margin: 0 0 1.75rem;
}

.page-home .hero-powers {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.35rem;
  margin: 0 0 2rem;
  padding-bottom: 0.75rem;
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  border-bottom: 3px solid var(--accent);
  width: fit-content;
  max-width: 100%;
  line-height: 1.2;
}

.page-home .hero-powers span {
  display: inline-block;
}

.page-home .hero--landing .hero-cta {
  margin-top: 0;
  padding: 0.85rem 1.65rem;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .page-home .hero--landing .hero-copy h1 {
    max-width: none;
    font-size: clamp(1.85rem, 8vw, 2.5rem);
  }
}

/* —— Capabilities: photo header —— */

.page-capabilities .cap-hero {
  position: relative;
  min-height: clamp(280px, 42vh, 480px);
  overflow: hidden;
  background: var(--navy-deep);
}

.page-capabilities .cap-hero-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.page-capabilities .cap-hero .hero-atmosphere {
  z-index: 1;
  opacity: 0.8;
}

.page-capabilities .cap-hero .hero-grid {
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 88%);
}

.page-capabilities .cap-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: clamp(5rem, 14vh, 6.5rem) 0 clamp(2.5rem, 5vh, 3.5rem);
  background: linear-gradient(
    180deg,
    rgba(8, 26, 48, 0.45) 0%,
    rgba(8, 26, 48, 0.62) 40%,
    rgba(8, 26, 48, 0.88) 100%
  );
  pointer-events: none;
}

.page-capabilities .cap-hero-overlay .container {
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.page-capabilities .cap-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 0.75rem;
}

.page-capabilities .cap-hero-lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.55;
  max-width: 42em;
  margin: 0;
}

.page-capabilities #core-capabilities {
  margin-top: 0;
}
