:root {
  --page: #f4f7fb;
  --paper: rgba(255, 255, 255, 0.84);
  --paper-solid: #ffffff;
  --ink: #101b2a;
  --muted: #596679;
  --line: rgba(28, 51, 82, 0.14);
  --blue: #123f78;
  --cyan: #4078a8;
  --violet: #5a6678;
  --teal: #1e6e80;
  --orange: #9f6a3f;
  --green: #2f7460;
  --shadow: 0 18px 48px rgba(18, 43, 73, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 10%, rgba(118, 138, 188, 0.14), transparent 34%),
    radial-gradient(circle at 18% 8%, rgba(42, 36, 62, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(252, 252, 255, 0.18), rgba(240, 243, 248, 0.28)),
    var(--page);
  font-family: "Manrope", sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.flow-canvas,
.noise-layer,
.aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.flow-canvas {
  z-index: 1;
  opacity: 1;
  filter: saturate(0.8) contrast(1.03);
}

.noise-layer {
  z-index: 2;
  opacity: 0.01;
  background-image:
    linear-gradient(rgba(21, 45, 75, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 45, 75, 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
  animation: noiseDrift 110s linear infinite;
}

.aurora {
  z-index: 2;
  opacity: 0.04;
  background:
    linear-gradient(122deg, transparent 0 13%, rgba(72, 82, 150, 0.16) 34%, transparent 62%),
    linear-gradient(148deg, transparent 0 48%, rgba(183, 113, 68, 0.09) 66%, transparent 88%);
  filter: blur(50px);
  transform: scale(1.08);
  animation: glassDrift 68s ease-in-out infinite;
}

.aurora-two {
  animation-direction: reverse;
  opacity: 0.03;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 3;
}

.site-header,
main,
.footer-inner,
.footer-bottom {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 24px 0 8px;
}

.brand img,
.footer-brand img {
  width: 130px;
  height: auto;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 34px;
}

.nav a {
  color: #1c2d43;
  font-size: 14px;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.button span {
  font-size: 20px;
  line-height: 1;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(18, 43, 73, 0.16);
}

.button.primary {
  color: #fff;
  background: linear-gradient(180deg, #1b4f86, #102f55);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 34px rgba(16, 47, 85, 0.24);
}

.button.secondary {
  color: #102f55;
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(18, 63, 120, 0.22);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
  gap: 30px;
  align-items: center;
  min-height: 650px;
  padding: 28px 0 18px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #2f5f8f;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.career-copy h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 560px;
  font-size: 68px;
}

.hero-copy h1 span {
  display: inline-block;
  color: transparent;
  background: linear-gradient(90deg, #102f55, #2f5f8f 58%, #6f7f91);
  -webkit-background-clip: text;
  background-clip: text;
}

.lede {
  max-width: 520px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.hero-panel {
  position: relative;
  min-height: 590px;
  display: flex;
  align-items: center;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 18% 4% 10% 8%;
  border: 1px solid rgba(47, 95, 143, 0.18);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 26% 0 16% 18%;
  border: 1px solid rgba(91, 106, 126, 0.16);
  border-radius: 50%;
  transform: rotate(12deg);
}

.hero-asset {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  filter: drop-shadow(0 38px 58px rgba(18, 43, 73, 0.2));
}

.section-heading {
  text-align: center;
}

.section-heading {
  max-width: 680px;
  margin: 42px auto 0;
}

.section-heading h2 {
  font-size: 42px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.service-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.service-card {
  min-height: 270px;
  padding: 26px;
}

.service-icon {
  display: flex;
  width: 94px;
  height: 94px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border-radius: 8px;
  background: transparent;
  overflow: hidden;
}

.service-icon img {
  width: 94px;
  height: 94px;
  object-fit: contain;
}

.blue {
  color: var(--blue);
}

.sky {
  color: var(--cyan);
}

.teal {
  color: var(--teal);
}

.violet {
  color: var(--violet);
}

.orange {
  color: var(--orange);
}

.green {
  color: var(--green);
}

.service-card h3 {
  margin: 0 0 10px;
  color: #0e2b37;
  font-size: 20px;
  line-height: 1.18;
}

.service-card p,
.career-copy p,
.testimonial-card p,
.contact-item span,
.footer-brand p,
.footer-links a,
.footer-bottom {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.impact-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 20px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(90deg, #102f55, #1b4f86 52%, #5f6d7c);
  box-shadow: var(--shadow);
}

.impact-bar article {
  padding: 28px 16px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.impact-bar article:last-child {
  border-right: 0;
}

.impact-bar strong {
  display: block;
  color: #fff;
  font-size: 34px;
}

.impact-bar span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
}

.career-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  gap: 28px;
  align-items: center;
  margin-top: 26px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.career-copy h2 {
  font-size: 42px;
}

.career-copy p {
  max-width: 420px;
  margin: 16px 0 24px;
}

.team-photo {
  position: relative;
  display: block;
  min-height: 300px;
  overflow: hidden;
  border-radius: 25px;
  box-shadow: var(--shadow);
}

.team-photo img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.contact-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 34px 0 0;
  padding: 18px 0 30px;
  border-top: 1px solid var(--line);
}

.contact-item {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.contact-item strong {
  color: #142160;
}

.site-footer {
  margin-top: 0;
  padding: 42px 0 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(239, 244, 255, 0.9));
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
}

.footer-brand img {
  width: 118px;
  margin-bottom: 14px;
}

.footer-brand p {
  max-width: 320px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-links h3 {
  margin: 0 0 12px;
  color: #142160;
  font-size: 15px;
}

.footer-links a {
  display: block;
  margin-top: 8px;
  font-size: 14px;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  gap: 18px;
  margin: auto;
  margin-top: 36px;
  padding: 24px 0 34px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
}

.footer-bottom nav {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-self: center;
}

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

@keyframes glassDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1.08);
  }
  50% {
    transform: translate3d(-18px, 12px, 0) scale(1.12);
  }
}

@keyframes noiseDrift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-18px, -18px, 0);
  }
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .nav {
    flex-wrap: wrap;
  }

  .hero,
  .career-panel,
  .contact-panel,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy h1,
  .lede {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-panel {
    min-height: auto;
  }

  .services-grid,
  .impact-bar,
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-panel .button {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .site-header,
  main,
  .footer-inner,
  .footer-bottom {
    width: min(100vw - 24px, 1180px);
  }

  .brand img {
    width: 112px;
  }

  .header-cta {
    display: none;
  }

  .nav {
    gap: 14px 20px;
  }

  .nav a {
    font-size: 13px;
  }

  .hero {
    padding-top: 22px;
  }

  .hero-copy h1 {
    font-size: 46px;
  }

  .section-heading h2,
  .career-copy h2 {
    font-size: 32px;
  }

  .hero-actions,
  .button,
  .footer-bottom {
    width: 100%;
  }

  .services-grid,
  .impact-bar,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .impact-bar article {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .impact-bar article:last-child {
    border-bottom: 0;
  }

  .team-photo {
    min-height: 230px;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 10px;
    justify-items: center;
    margin-top: 24px;
    padding: 18px 0 26px;
  }

  .footer-bottom nav {
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
