:root {
  --ink: #111827;
  --muted: #526173;
  --line: #d9e1ea;
  --panel: #ffffff;
  --paper: #f6f8fb;
  --navy: #102036;
  --blue: #3682ae;
  --teal: #21a39a;
  --gold: #d79f35;
  --green: #164a3b;
  --shadow: 0 24px 70px rgba(16, 32, 54, 0.12);
  --max: 1180px;
  --scrollbar-comp: 15px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: 124px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(54, 130, 174, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 46%, #eef3f7 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page-top-anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
}

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  transform: none;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin: 0;
  padding: 18px max(20px, calc((100vw - var(--max)) / 2 + 20px)) 14px;
  border: 1px solid transparent;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(54, 130, 174, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
  box-shadow: none;
  backdrop-filter: none;
}

.brand {
  flex: 0 0 218px;
  width: 218px;
}

.brand img {
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #4c5c6d;
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a:hover {
  color: var(--blue);
}

.back-footer {
  display: flex;
  justify-content: center;
  width: min(calc(100% - 40px), var(--max));
  margin: 26px auto 44px;
}

.back-footer a {
  color: #4f5870;
  font-size: 0.94rem;
  font-weight: 800;
}

.back-footer a:hover {
  color: var(--blue);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  font-weight: 800;
}

.nav-cta {
  color: #ffffff;
  background: var(--navy);
}

main {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: 28px;
  align-items: end;
  width: calc(100vw - var(--scrollbar-comp));
  min-height: 0;
  aspect-ratio: 1578 / 643;
  margin-inline: calc(50% - 50vw + (var(--scrollbar-comp) / 2));
  overflow: hidden;
  padding: clamp(34px, 4vw, 56px) max(54px, calc((100vw - var(--max)) / 2 + 54px));
  border-radius: 0;
  background: var(--navy);
  box-shadow: var(--shadow);
}

.hero-background {
  position: absolute;
  inset: 0;
}

.hero-background img,
.hero-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-background video {
  display: block;
}

.hero-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 10, 20, 0.76) 0%, rgba(3, 10, 20, 0.52) 38%, rgba(3, 10, 20, 0.12) 78%),
    linear-gradient(180deg, rgba(3, 10, 20, 0.06), rgba(3, 10, 20, 0.62));
}

.hero-background::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  width: min(760px, 72%);
  height: 42%;
  background: linear-gradient(90deg, rgba(3, 10, 20, 0.78), rgba(3, 10, 20, 0.58) 55%, transparent);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 720px;
  min-height: 0;
  padding: 0;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 14px;
  color: #c9b6ff;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  color: var(--navy);
  font-weight: 900;
  line-height: 1.02;
}

h1 {
  max-width: 18ch;
  color: #ffffff;
  font-size: clamp(2rem, 3.55vw, 3.9rem);
  text-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.25;
}

.hero-text,
.section-intro p,
.service-grid p,
.process-grid p,
.proof-list p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.hero-text {
  max-width: 62ch;
  margin: 18px 0 0;
  color: #d6e3eb;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.button.primary {
  color: #ffffff;
  background: var(--teal);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 0;
}

.hero-stats div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.hero-stats dt {
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 900;
}

.hero-stats dd {
  margin: 6px 0 0;
  color: #d4e0e8;
  font-size: 0.9rem;
  line-height: 1.35;
}

.hero-panel {
  position: relative;
  z-index: 2;
  align-self: end;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 101px;
  height: 101px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(8, 18, 31, 0.68);
  backdrop-filter: blur(16px);
}

.hero-panel span {
  display: block;
  margin-bottom: 7px;
  color: #a8e3db;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  font-size: clamp(1.08rem, 1.5vw, 1.35rem);
  line-height: 1.12;
}

.hero-panel p {
  display: none;
}

.logo-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin: 28px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.logo-strip span {
  padding: 18px 10px;
  color: #3c4d5f;
  background: rgba(255, 255, 255, 0.9);
  text-align: center;
  font-size: 0.92rem;
  font-weight: 900;
}

.section {
  padding: 96px 0 0;
}

.split {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 34px;
  align-items: start;
}

.section-intro {
  position: sticky;
  top: 112px;
}

.section-intro p {
  margin: 18px 0 0;
}

.service-grid,
.process-grid,
.role-grid {
  display: grid;
  gap: 14px;
}

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

.service-grid article,
.process-grid article,
.role-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 40px rgba(16, 32, 54, 0.07);
}

.service-grid article {
  min-height: 240px;
  padding: 26px;
}

.service-grid span,
.process-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  border-radius: 6px;
  color: #ffffff;
  background: var(--navy);
  font-weight: 900;
}

.dark-section {
  margin-top: 96px;
  padding: 64px;
  border-radius: 8px;
  color: var(--navy);
  background:
    linear-gradient(135deg, rgba(201, 182, 255, 0.64), rgba(236, 231, 255, 0.92)),
    #eee8ff;
}

.dark-section .section-intro {
  position: static;
  max-width: 780px;
}

.dark-section h2,
.dark-section h3 {
  color: var(--navy);
}

.dark-section .eyebrow {
  color: #6f55c9;
}

.dark-section .section-intro p {
  color: #4f5870;
}

.role-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
}

.role-grid div {
  padding: 24px;
  border-color: rgba(111, 85, 201, 0.18);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 16px 40px rgba(111, 85, 201, 0.08);
}

.role-grid p {
  margin: 0;
  padding: 11px 0;
  border-top: 1px solid rgba(111, 85, 201, 0.16);
  color: #4f5870;
  line-height: 1.35;
}

.role-grid p:first-of-type {
  border-top: 0;
}

.process-section .section-intro {
  position: static;
  max-width: 740px;
  margin-bottom: 28px;
}

.process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-grid article {
  padding: 28px;
}

.proof-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  align-items: center;
  margin-top: 96px;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(215, 159, 53, 0.14), transparent 38%),
    #ffffff;
  box-shadow: var(--shadow);
}

.proof-list {
  display: grid;
  gap: 12px;
}

.proof-list p {
  margin: 0;
  padding: 18px;
  border-left: 4px solid var(--teal);
  border-radius: 6px;
  background: #f7fafc;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 28px;
  align-items: stretch;
  margin-top: 96px;
  padding: 44px;
  border-radius: 8px;
  color: var(--navy);
  background:
    linear-gradient(135deg, rgba(201, 182, 255, 0.64), rgba(236, 231, 255, 0.92)),
    #eee8ff;
}

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

.contact-section .eyebrow {
  color: #6f55c9;
}

.contact-copy p {
  max-width: 62ch;
  color: #4f5870;
}

.contact-copy,
.contact-card,
.hero-copy,
.hero-panel {
  min-width: 0;
}

.contact-card {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 28px;
  border: 1px solid rgba(111, 85, 201, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.contact-card a {
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.contact-card p {
  margin: 0;
  color: #4f5870;
  line-height: 1.6;
}

@media (max-width: 1040px) {
  .site-header,
  .hero,
  .split,
  .proof-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .site-header {
    display: grid;
  }

  .hero {
    min-height: 640px;
    aspect-ratio: auto;
    padding: 40px;
  }

  .hero-copy {
    min-height: 0;
    justify-content: flex-start;
    padding-top: 28px;
  }

  h1 {
    max-width: 17ch;
    font-size: clamp(2rem, 4.9vw, 3rem);
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .section-intro {
    position: static;
  }

  .role-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header,
  main,
  .back-footer {
    width: min(calc(100% - 24px), var(--max));
  }

  .brand {
    width: 220px;
  }

  .site-nav {
    gap: 14px;
  }

  .hero {
    min-height: auto;
    padding: 28px;
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .dark-section,
  .proof-section,
  .contact-section {
    padding: 26px;
  }

  .hero-copy {
    min-height: 580px;
    padding: 0;
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(2.5rem, 11vw, 3.25rem);
  }

  .hero-stats,
  .logo-strip,
  .service-grid,
  .role-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .hero-background img,
  .hero-background video {
    object-position: 68% center;
  }

  .section,
  .dark-section,
  .proof-section,
  .contact-section {
    margin-top: 0;
    padding-top: 64px;
  }

}
