:root {
  --navy: #071525;
  --ink: #102033;
  --blue: #0c4f86;
  --deep-blue: #0a2e57;
  --silver: #d8dee7;
  --mist: #f4f7fa;
  --white: #ffffff;
  --line: #dce3ea;
  --accent: #7aa7c9;
  --success: #2f7d6d;
  --shadow: 0 24px 70px rgba(7, 21, 37, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: 1.05rem;
  letter-spacing: 0;
}

.brand small {
  color: #607084;
  font-size: 0.74rem;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.site-nav a {
  padding: 9px 10px;
  color: #435266;
  font-size: 0.88rem;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid #cbd5df;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  padding: 12px 13px;
}

.header-actions select {
  width: auto;
  padding: 8px 28px 8px 10px;
}

.ghost-link,
.primary-link,
.button,
.inline-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  font-weight: 700;
  line-height: 1.15;
}

.ghost-link {
  color: var(--deep-blue);
  border-color: var(--line);
}

.primary-link,
.button.primary,
.inline-form button {
  color: var(--white);
  background: var(--blue);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--navy);
}

.page {
  display: none;
}

.active-page {
  display: block;
}

.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: end;
  padding: clamp(28px, 5vw, 68px);
  color: var(--white);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 21, 37, 0.94), rgba(7, 21, 37, 0.72) 46%, rgba(7, 21, 37, 0.2));
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("https://images.unsplash.com/photo-1581093458791-9f3c3900df7b?auto=format&fit=crop&w=1800&q=82");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding-top: 84px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  color: var(--navy);
  font-size: clamp(1.55rem, 3vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 1.05rem;
}

.hero p {
  max-width: 700px;
  color: #e7edf4;
  font-size: clamp(1rem, 1.8vw, 1.24rem);
}

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

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 620px;
  margin: 42px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.proof-strip div {
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.proof-strip div:last-child {
  border-right: 0;
}

.proof-strip dt {
  font-size: 1.45rem;
  font-weight: 800;
}

.proof-strip dd {
  margin: 0;
  color: #d3dde8;
  font-size: 0.86rem;
}

.section {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 76px);
}

.intro-grid,
.split,
.contact-layout,
.job-board {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.intro-grid p {
  font-size: 1.12rem;
}

.specialties-band,
.choose,
.testimonials,
.job-board,
.newsletter {
  background: var(--mist);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.card,
.service-grid article,
.industry-matrix article,
.specialty-list article,
.insights-grid article,
.process article,
.timeline article,
.person,
.contact-card,
.form-panel,
.form-grid,
.filters {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(7, 21, 37, 0.03);
}

.card,
.service-grid article,
.industry-matrix article,
.specialty-list article,
.process article,
.timeline article,
.person,
.contact-card,
.form-panel,
.form-grid,
.filters {
  padding: clamp(22px, 3vw, 34px);
}

.card p,
.service-grid p,
.industry-matrix p,
.specialty-list p,
.process p,
.timeline p,
.person p {
  color: #58687b;
}

.image-panel {
  min-height: 520px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.image-panel.pipeline {
  background-image: linear-gradient(rgba(7, 21, 37, 0.08), rgba(7, 21, 37, 0.08)), url("https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1200&q=80");
}

.image-panel.lab {
  background-image: url("https://images.unsplash.com/photo-1579165466741-7f35e4755660?auto=format&fit=crop&w=1200&q=80");
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding-left: 30px;
  position: relative;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  border: 3px solid var(--success);
}

.logos {
  background: var(--navy);
  color: var(--white);
}

.logos h2,
.logos .eyebrow {
  color: var(--white);
}

.logo-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.logo-row span {
  min-height: 96px;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
  font-weight: 700;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-list > div {
  padding: 26px 0;
  border-top: 1px solid #cbd5df;
}

.feature-list span,
.process span,
.timeline span {
  display: block;
  margin-bottom: 18px;
  color: var(--blue);
  font-weight: 900;
}

.cta-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 0;
}

.cta-duo a {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: clamp(28px, 4vw, 48px);
  color: var(--white);
  background: var(--deep-blue);
}

.cta-duo a + a {
  background: var(--blue);
}

.cta-duo strong {
  font-size: clamp(1.5rem, 3vw, 2.6rem);
}

.quote {
  margin: 0;
  padding: clamp(24px, 3vw, 36px);
  background: var(--white);
  border-left: 4px solid var(--blue);
  color: #334256;
  font-size: 1.04rem;
}

.quote cite {
  display: block;
  margin-top: 24px;
  color: var(--navy);
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 800;
}

.page-hero {
  padding: clamp(84px, 12vw, 144px) clamp(18px, 5vw, 76px) clamp(52px, 8vw, 86px);
  color: var(--white);
  background: linear-gradient(rgba(7, 21, 37, 0.88), rgba(7, 21, 37, 0.88)), url("https://images.unsplash.com/photo-1532187863486-abf9dbad1b69?auto=format&fit=crop&w=1800&q=82") center/cover;
}

.page-hero.compact {
  background-image: linear-gradient(100deg, rgba(7, 21, 37, 0.94), rgba(10, 46, 87, 0.78)), url("https://images.unsplash.com/photo-1606206873764-fd15e242df52?auto=format&fit=crop&w=1800&q=80");
}

.page-hero h1 {
  max-width: 1040px;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
}

.page-hero p {
  max-width: 760px;
  color: #dce7f3;
}

.mission-grid,
.service-grid,
.industry-matrix,
.specialty-list,
.process,
.timeline,
.insights-grid,
.team-grid {
  display: grid;
  gap: 18px;
}

.mission-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.mission-grid article {
  padding: 24px;
  background: var(--mist);
  border-left: 4px solid var(--blue);
}

.service-grid,
.industry-matrix,
.specialty-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.person span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 18px;
  color: var(--white);
  background: var(--deep-blue);
  font-weight: 900;
}

.job-board {
  align-items: start;
}

.filters {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: #415066;
  font-size: 0.88rem;
  font-weight: 800;
}

input[type="range"] {
  padding: 0;
}

.job-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.job-summary a {
  color: var(--blue);
  font-weight: 800;
}

.job-list {
  display: grid;
  gap: 14px;
}

.job-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
}

.job-card header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.job-card h2 {
  margin-bottom: 4px;
  font-size: 1.35rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.tag-row span {
  padding: 6px 9px;
  background: var(--mist);
  color: #435266;
  font-size: 0.78rem;
  font-weight: 800;
}

.job-card a {
  color: var(--blue);
  font-weight: 900;
}

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

.insights-grid article {
  overflow: hidden;
}

.insights-grid img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.insights-grid article p,
.insights-grid article h2 {
  padding: 0 22px;
}

.insights-grid article p {
  margin: 22px 0 8px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.insights-grid article h2 {
  font-size: 1.15rem;
}

.newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.inline-form {
  display: flex;
  min-width: min(100%, 440px);
}

.inline-form input {
  border-right: 0;
}

.contact-layout {
  align-items: start;
}

.form-panel,
.form-grid {
  display: grid;
  gap: 18px;
}

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

.form-grid .full,
.form-grid button {
  grid-column: 1 / -1;
}

textarea {
  resize: vertical;
}

.contact-card p {
  display: grid;
  gap: 3px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.contact-card a {
  color: var(--blue);
  font-weight: 800;
}

.map {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 24px;
  color: var(--white);
  background: linear-gradient(rgba(7, 21, 37, 0.72), rgba(7, 21, 37, 0.72)), url("https://images.unsplash.com/photo-1524661135-423995f22d0b?auto=format&fit=crop&w=900&q=80") center/cover;
  font-weight: 800;
}

.map strong,
.map span {
  display: block;
}

.map span {
  max-width: 520px;
  margin-top: 8px;
  color: #dce7f3;
  font-size: 0.94rem;
  font-weight: 600;
}

.map-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.map-controls button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.map-controls button.active {
  background: var(--white);
  color: var(--navy);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 980px;
}

details {
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--line);
}

summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 900;
}

details p {
  margin: 14px 0 0;
  color: #536277;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr 1fr;
  gap: 28px;
  padding: clamp(42px, 6vw, 72px) clamp(18px, 5vw, 76px);
  color: #cbd7e3;
  background: var(--navy);
}

.site-footer h2 {
  color: var(--white);
  font-size: 0.94rem;
}

.site-footer a {
  display: block;
  margin-bottom: 8px;
}

.footer-brand {
  margin-bottom: 18px;
  color: var(--white);
}

.footer-brand .brand-mark {
  background: var(--blue);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  max-width: 360px;
  padding: 16px 18px;
  color: var(--white);
  background: var(--navy);
  box-shadow: var(--shadow);
  transform: translateY(120%);
  transition: transform 0.25s ease;
}

.toast.visible {
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .site-nav,
  .header-actions {
    display: none;
    grid-column: 1 / -1;
  }

  .site-header.open .site-nav,
  .site-header.open .header-actions {
    display: flex;
    justify-content: flex-start;
  }

  .site-nav {
    flex-direction: column;
  }
}

@media (max-width: 940px) {
  .intro-grid,
  .split,
  .contact-layout,
  .job-board,
  .newsletter {
    grid-template-columns: 1fr;
  }

  .card-grid.four,
  .card-grid.three,
  .service-grid,
  .industry-matrix,
  .specialty-list,
  .team-grid,
  .process,
  .timeline,
  .insights-grid,
  .feature-list,
  .logo-row,
  .cta-duo,
  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .filters {
    position: static;
  }

  .image-panel {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding-top: 82px;
  }

  .hero::after {
    background: rgba(7, 21, 37, 0.82);
  }

  .proof-strip,
  .card-grid.four,
  .card-grid.three,
  .service-grid,
  .industry-matrix,
  .specialty-list,
  .team-grid,
  .process,
  .timeline,
  .insights-grid,
  .feature-list,
  .logo-row,
  .cta-duo,
  .mission-grid,
  .form-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .proof-strip div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .proof-strip div:last-child {
    border-bottom: 0;
  }

  .header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .job-card header,
  .newsletter,
  .inline-form {
    display: grid;
  }

  .inline-form input {
    border-right: 1px solid #cbd5df;
  }
}
