:root {
  color-scheme: dark;
  --bg: #02060c;
  --text: #eef6ff;
  --muted: rgba(222, 233, 245, .82);
  --header-h: 104px;
  --content-max: 1080px;
  --hero-ratio: 1536 / 752;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, #02060c 0%, #04101c 38%, #02060c 100%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(1, 9, 16, .95);
  color: #fff;
  transform: translateY(-140%);
  transition: transform .2s ease;
}
.skip-link:focus-visible { transform: translateY(0); }

.site-shell {
  position: relative;
  min-height: 100vh;
  overflow: clip;
  isolation: isolate;
}

/* One continuous moving atmospheric field behind the entire page below the hero. */
.page-aura {
  position: absolute;
  z-index: 0;
  top: calc(var(--header-h) + min(48.958vw, 752px));
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 4%, rgba(64, 167, 235, .10) 0%, rgba(9, 40, 72, .05) 28%, transparent 58%),
    linear-gradient(180deg, rgba(4, 15, 27, .18), rgba(2, 7, 13, .12));
}
.page-aura::before,
.page-aura::after {
  content: "";
  position: absolute;
  inset: -10% -16%;
  filter: blur(46px);
  mix-blend-mode: screen;
  will-change: transform, opacity;
}
.page-aura::before {
  background:
    radial-gradient(ellipse at 16% 10%, rgba(125, 220, 255, .40) 0 7%, rgba(49, 145, 221, .24) 21%, rgba(20, 76, 137, .12) 36%, transparent 58%),
    radial-gradient(ellipse at 76% 22%, rgba(104, 210, 255, .34) 0 8%, rgba(47, 148, 225, .20) 23%, rgba(18, 70, 128, .09) 38%, transparent 60%),
    radial-gradient(ellipse at 34% 48%, rgba(123, 219, 255, .34) 0 7%, rgba(52, 147, 221, .19) 22%, rgba(17, 67, 121, .08) 38%, transparent 60%),
    radial-gradient(ellipse at 82% 64%, rgba(113, 214, 255, .30) 0 8%, rgba(49, 143, 216, .17) 24%, rgba(17, 62, 113, .07) 40%, transparent 62%),
    radial-gradient(ellipse at 26% 86%, rgba(130, 223, 255, .28) 0 7%, rgba(50, 145, 219, .16) 24%, transparent 58%);
  opacity: .78;
  animation: continuousSmokeA 19s ease-in-out infinite alternate;
}
.page-aura::after {
  background:
    radial-gradient(ellipse at 62% 8%, rgba(111, 214, 255, .25) 0 7%, rgba(41, 133, 207, .15) 25%, transparent 58%),
    radial-gradient(ellipse at 24% 31%, rgba(136, 226, 255, .28) 0 7%, rgba(51, 149, 223, .16) 24%, transparent 60%),
    radial-gradient(ellipse at 72% 45%, rgba(122, 220, 255, .26) 0 8%, rgba(45, 139, 214, .15) 24%, transparent 60%),
    radial-gradient(ellipse at 42% 69%, rgba(111, 214, 255, .25) 0 7%, rgba(46, 139, 213, .14) 24%, transparent 58%),
    radial-gradient(ellipse at 78% 90%, rgba(133, 226, 255, .24) 0 7%, rgba(49, 145, 218, .14) 24%, transparent 58%);
  opacity: .68;
  animation: continuousSmokeB 23s ease-in-out infinite alternate;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 18px 28px;
  background: linear-gradient(180deg, rgba(1, 6, 12, .92), rgba(2, 7, 13, .84));
  border-bottom: 1px solid rgba(255,255,255,.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.brand img {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  flex: 0 0 auto;
  box-shadow: 0 0 28px rgba(85, 174, 255, .22);
}
.brand span {
  font-size: .98rem;
  font-weight: 300;
  letter-spacing: .42em;
  white-space: nowrap;
  color: #f2f7fb;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.primary-nav a {
  position: relative;
  padding: 12px 18px;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .28em;
  color: rgba(223,236,247,.84);
  transition: color .2s ease;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #f7fbff, transparent);
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(255,255,255,.75);
  transition: width .24s ease;
}
.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a.is-active { color: #fff; }
.primary-nav a.is-active::after,
.primary-nav a:hover::after,
.primary-nav a:focus-visible::after { width: 74px; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 11px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1px;
  margin: 6px 0;
  background: #dce6ef;
  transition: transform .2s ease, opacity .2s ease;
}

main { position: relative; z-index: 1; }

.hero {
  position: relative;
  min-height: 0;
  padding: calc(var(--header-h) + 8px) 0 0;
  overflow: hidden;
  isolation: isolate;
  background: #02060c;
}
.hero-visual {
  position: relative;
  z-index: 1;
  width: min(100vw, 1536px);
  max-width: 1536px;
  aspect-ratio: var(--hero-ratio);
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  margin: 0 auto;
  pointer-events: none;
  overflow: hidden;
  background: #02060c;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: max(8px, env(safe-area-inset-bottom));
  left: 50%;
  width: 34px;
  height: 34px;
  transform: translateX(-50%);
  opacity: .48;
}
.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  border-right: 1px solid rgba(235,245,255,.78);
  border-bottom: 1px solid rgba(235,245,255,.78);
  transform: translate(-50%, 0) rotate(45deg);
  animation: drift 1.8s ease-in-out infinite;
}

.content-section {
  position: relative;
  padding: clamp(88px, 11vw, 144px) 24px;
  border-top: 1px solid rgba(255,255,255,.055);
  background: linear-gradient(180deg, rgba(3, 10, 18, .08), rgba(3, 10, 18, .13));
}
.section-inner {
  width: min(100%, var(--content-max));
  margin: 0 auto;
  text-align: left;
}
.eyebrow {
  margin: 0 0 18px;
  color: rgba(217,228,239,.82);
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .42em;
  text-transform: uppercase;
}
.content-section h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  line-height: .98;
  font-weight: 700;
  letter-spacing: -.03em;
  background: linear-gradient(180deg, #ffffff 0%, rgba(224,236,248,.9) 56%, rgba(224,236,248,.06) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.content-section p {
  width: min(100%, 880px);
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.36vw, 1.26rem);
  line-height: 1.68;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}
.capability-grid article {
  padding: 24px;
  min-height: 220px;
  border: 1px solid rgba(164, 198, 226, .18);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(6, 18, 31, .30), rgba(4, 12, 23, .36));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 24px 44px rgba(0,0,0,.16);
}
.capability-grid h3 {
  margin: 0 0 14px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .34em;
  color: #f2f8ff;
}
.capability-grid p {
  margin: 0;
  width: auto;
  font-size: 1rem;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 32px 24px 46px;
  text-align: center;
  color: rgba(215,227,237,.74);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .44em;
  text-transform: uppercase;
  background: rgba(2, 7, 13, .10);
}

.reveal-ready {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal-ready.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.not-found-section { min-height: 100vh; padding-top: calc(var(--header-h) + 64px); }
.return-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  color: #f5fbff;
  letter-spacing: .08em;
}

@keyframes continuousSmokeA {
  0% { transform: translate3d(-6%, -2%, 0) scale(1.02) rotate(-1deg); opacity: .58; }
  45% { transform: translate3d(5%, 1%, 0) scale(1.10) rotate(2deg); opacity: .86; }
  100% { transform: translate3d(-1%, 5%, 0) scale(1.16) rotate(-2deg); opacity: .66; }
}
@keyframes continuousSmokeB {
  0% { transform: translate3d(5%, 3%, 0) scale(1.08) rotate(1deg); opacity: .50; }
  50% { transform: translate3d(-7%, -2%, 0) scale(1.14) rotate(-2deg); opacity: .74; }
  100% { transform: translate3d(3%, -5%, 0) scale(1.06) rotate(2deg); opacity: .56; }
}
@keyframes drift {
  0%,100% { transform: translate(-50%,0) rotate(45deg); opacity: .35; }
  50% { transform: translate(-50%,7px) rotate(45deg); opacity: 1; }
}

@media (max-width: 1100px) {
  .capability-grid { grid-template-columns: 1fr; }
  .capability-grid article { min-height: 0; }
}

@media (max-width: 900px) {
  :root { --header-h: 84px; }
  .site-header { padding: 14px 20px; }
  .brand img { width: 48px; height: 48px; border-radius: 12px; }
  .brand span { font-size: .76rem; letter-spacing: .22em; }
  .nav-toggle { display: block; z-index: 102; }
  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(82vw, 360px);
    height: 100svh;
    padding: 110px 34px 40px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    background: rgba(2,7,13,.97);
    border-left: 1px solid rgba(180,201,220,.13);
    transform: translateX(105%);
    transition: transform .24s ease;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  .primary-nav.is-open { transform: translateX(0); }
  .primary-nav a { width: 100%; padding: 18px 0; font-size: .78rem; }
  .primary-nav a::after { left: 0; transform: none; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Preserve the original approved mobile hero geometry. */
  .hero { padding-top: calc(var(--header-h) + 4px); }
  .hero-visual { width: 165vw; max-width: none; }
  .page-aura {
    top: calc(var(--header-h) + 80.781vw);
  }
  .page-aura::before,
  .page-aura::after {
    filter: blur(38px);
  }
  .page-aura::before { opacity: .88; }
  .page-aura::after { opacity: .78; }

  .content-section { padding: 76px 20px; }
  .content-section h2 { font-size: clamp(2.16rem, 10vw, 3.3rem); }
  .content-section p { font-size: 1rem; line-height: 1.72; }
}

@media (max-width: 520px) {
  .brand span {
    max-width: 190px;
    overflow: hidden;
    text-overflow: clip;
  }
  .primary-nav { width: 100%; }
  .scroll-cue { bottom: 4px; }
  .capability-grid article { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal-ready,
  .reveal-ready.is-visible {
    opacity: 1;
    transform: none;
  }
  .page-aura::before { opacity: .72; }
  .page-aura::after { opacity: .62; }
}
