:root {
  --blue: #005a94;
  --blue-dark: #0d4b73;
  --gold: #d7a600;
  --ink: #1f2933;
  --muted: #667085;
  --line: #d8dee8;
  --paper: #ffffff;
  --soft: #f3f6f9;
  --soft-blue: #e7f0f7;
  --max: 1180px;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: #eef2f6;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--blue-dark);
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: 86px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 250px;
  max-width: 58vw;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--blue-dark);
  font-size: 22px;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 6px;
  color: #243240;
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a[aria-current="page"] {
  background: var(--soft-blue);
  color: var(--blue-dark);
}

.hero {
  background: var(--blue-dark);
  color: white;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  align-items: stretch;
  width: min(var(--max), 100%);
  margin: 0 auto;
  min-height: 430px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 32px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #b8d7ec;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.08;
}

.hero p {
  max-width: 610px;
  margin: 20px 0 0;
  color: #e8f3fb;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-media {
  min-height: 360px;
}

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

.credential-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.credential-row span,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.86rem;
  font-weight: 700;
}

.page-hero {
  background: linear-gradient(90deg, var(--blue-dark), var(--blue));
  color: white;
}

.hero-market {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 36px;
  align-items: center;
}

.hero-market .client-context-copy h1 {
  margin-bottom: 12px;
}

.hero-market .client-context-copy .lead {
  color: #e9f4fb;
}

.page-hero .inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
  position: relative;
}

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

.hero-watermark {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: 420px;
  opacity: 0.04;
  pointer-events: none;
  overflow: hidden;
}

.hero-watermark img {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: cover;
  object-position: left center;
  filter: brightness(0) invert(1);
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: #e9f4fb;
  font-size: 1.1rem;
}

.section {
  background: var(--paper);
}

.section.alt {
  background: var(--soft);
}

.section-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
}

.section h2 {
  margin: 0 0 18px;
  color: var(--blue-dark);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.18;
}

.section h3 {
  margin: 0 0 10px;
  color: var(--blue-dark);
  font-size: 1.15rem;
  line-height: 1.25;
}

.lead {
  max-width: 850px;
  color: #344454;
  font-size: 1.1rem;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.card-body {
  padding: 22px;
}

.card p,
.section p {
  margin-top: 0;
}

.card p:last-child,
.section p:last-child {
  margin-bottom: 0;
}

.image-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.link-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.link-card:hover,
.link-card:focus-visible {
  box-shadow: 0 14px 30px rgba(13, 75, 115, 0.16);
  border-color: var(--blue);
  transform: translateY(-3px);
}

.link-card .image-card img,
.link-card img {
  transition: transform 0.4s ease;
}

.link-card:hover img,
.link-card:focus-visible img {
  transform: scale(1.04);
}

.link-card h2 {
  color: var(--blue-dark);
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--blue);
  font-weight: 750;
  font-size: 0.92rem;
}

.card-arrow {
  transition: transform 0.2s ease;
}

.link-card:hover .card-arrow,
.link-card:focus-visible .card-arrow {
  transform: translateX(4px);
}

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

.service-card {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 2rem;
}

.service-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: #cbd8e1;
  border: 1px solid #cbd8e1;
}

.service-directory article {
  background: #fff;
  padding: 1.5rem;
}

.alt .service-directory article {
  background: #f7fafc;
}

.service-directory h3 {
  margin-top: 0;
  color: var(--blue-dark);
}

.service-directory p {
  margin-bottom: 0;
}

.service-jump {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 1.5rem;
}

.disciplines-band {
  background: #eaf1f5;
  border-bottom: 1px solid var(--line);
}

.disciplines-band .section-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.disciplines-band h2 {
  margin-bottom: 10px;
}

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

.discipline-list span {
  position: relative;
  display: flex;
  min-height: 56px;
  align-items: center;
  padding: 10px 16px 10px 46px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--blue-dark);
  text-align: left;
  font-weight: 700;
}

.discipline-list span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 34px;
  background: var(--gold);
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.service-jump a {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  background: var(--paper);
  color: var(--blue-dark);
  text-align: center;
  font-weight: 750;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-jump a:hover,
.service-jump a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(13, 75, 115, 0.18);
}

.service-jump-hero {
  margin-top: 28px;
}

.service-feature-head {
  display: grid;
  grid-template-columns: minmax(220px, .85fr) minmax(0, 1.5fr);
  gap: 34px;
  align-items: center;
  margin-bottom: 28px;
}

.service-feature-head > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
}

.service-feature-head h2 {
  margin-bottom: 12px;
}

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

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

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

.service-tiles article {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-tiles article > img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-tiles h3,
.service-tiles p {
  margin-left: 16px;
  margin-right: 16px;
}

.service-tiles h3 {
  margin-top: 16px;
  color: var(--blue-dark);
  font-size: 1rem;
}

.service-tiles p {
  margin-bottom: 18px;
  font-size: .92rem;
}

.support-strip {
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 4px solid var(--gold);
  background: var(--blue-dark);
  color: #f5f8fb;
}

.service-card img {
  width: 124px;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
}

.quick-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.quick-list li {
  padding-left: 16px;
  position: relative;
}

.quick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  background: var(--gold);
}

.word-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
}

.word-grid span {
  padding: 13px 14px;
  border-left: 4px solid var(--gold);
  background: var(--soft);
  color: var(--blue-dark);
  font-weight: 750;
}

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

.client-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.client-context {
  background: #eaf1f5;
  border-bottom: 1px solid var(--line);
}

.client-context .section-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 36px;
  align-items: center;
}

.client-context-copy h2 {
  margin-bottom: 12px;
}

.market-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.market-list span {
  padding: 15px 16px;
  border-left: 4px solid var(--gold);
  background: #fff;
  color: var(--blue-dark);
  font-weight: 750;
}

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

.portfolio-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.portfolio-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.portfolio-item h3 {
  padding: 16px 18px;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.experience-group {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.experience-group img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  display: block;
}

.experience-content {
  padding: 24px;
}

.experience-content h2,
.experience-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--blue-dark);
}

.cta-band .section-inner {
  text-align: center;
}

.cta-band h2 {
  margin-bottom: 12px;
}

.cta-band .lead {
  max-width: 60ch;
  margin: 0 auto 20px;
}

.experience-list {
  columns: 2;
  column-gap: 22px;
  margin: 18px 0 0;
  padding-left: 18px;
}

.experience-list li {
  margin-bottom: 7px;
  break-inside: avoid;
}

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

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

.resource-card {
  padding: 24px;
}

.resource-card img {
  max-height: 130px;
  width: 100%;
  object-fit: contain;
  margin-top: 20px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
}

.map-frame {
  width: 100%;
  min-height: 330px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(13, 75, 115, 0.1);
  overflow: hidden;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: #344454;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #c8d1dc;
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
  background: white;
}

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

.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: white;
  font-weight: 750;
  cursor: pointer;
}

.button:hover,
.button:focus {
  background: var(--blue-dark);
  color: white;
  text-decoration: none;
}

.contact-box {
  padding: 24px;
  background: var(--blue-dark);
  color: white;
  border-radius: 8px;
}

.contact-box h2,
.contact-box h3,
.contact-box a {
  color: white;
}

.contact-box p {
  color: #e7f1f8;
}

.badge-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.badge-row img {
  max-width: 125px;
}

.site-footer {
  background: #21394b;
  color: #cfd8e3;
}

.footer-certification {
  display: block;
  width: min(95px, 100%);
  height: auto;
  margin-top: 1rem;
  background: #fff;
  padding: .35rem;
}

/* Draft 2 visual direction: restrained technical imagery and editorial spacing. */
.hero-v2 {
  background: #0b2942;
}

.hero-v2 .hero-copy {
  padding-right: 48px;
}

.hero-v2 .hero-media img {
  object-position: center;
}

.hero-inner.hero-full {
  display: block;
  min-height: 0;
}

.hero-inner.hero-full .hero-media {
  min-height: 0;
}

.hero-inner.hero-full .hero-media img {
  display: block;
  width: 100%;
  height: 480px;
  object-fit: cover;
}

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

.technical-feature {
  background: #f7f8fa;
}

.home-cutaway {
  background: #eef3f5;
}

.home-cutaway-inner {
  position: relative;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 0;
}

.home-cutaway-inner > img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.home-cutaway-caption {
  max-width: 450px;
  margin: -74px 0 0 28px;
  position: relative;
  padding: 22px 26px;
  background: rgba(255, 255, 255, 0.95);
  border-left: 4px solid var(--gold);
  box-shadow: 0 8px 24px rgba(13, 75, 115, 0.12);
}

.home-cutaway-caption h2 {
  margin: 0 0 10px;
  color: var(--blue-dark);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.16;
}

.home-cutaway-caption p:last-child {
  margin-bottom: 0;
}

.technical-feature-image {
  min-height: 300px;
  overflow: hidden;
  border-radius: 8px;
}

.technical-feature-image img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.blueprint-band {
  background-image: linear-gradient(90deg, rgba(9, 38, 62, 0.91) 0%, rgba(13, 62, 94, 0.82) 54%, rgba(13, 62, 94, 0.66) 100%), url("../images/tmm-draft-2-blueprint.png");
  background-color: #10466a;
  background-position: center;
  background-size: cover;
  color: white;
}

.blueprint-band .section-inner {
  position: relative;
}

.blueprint-band article:first-child {
  max-width: 680px;
  padding: 26px 30px;
  border-left: 3px solid var(--gold);
  background: rgba(8, 39, 64, 0.6);
}

.blueprint-band h2,
.blueprint-band h3,
.blueprint-band p {
  color: white;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
  gap: 32px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: white;
  font-size: 1rem;
}

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

.site-footer li + li {
  margin-top: 7px;
}

.site-footer a {
  color: #dce7ef;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #aeb9c5;
}

.copyright-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0;
  font-size: 0.92rem;
}

@media (max-width: 920px) {
  .topbar {
    flex-wrap: wrap;
    min-height: 78px;
    padding: 12px 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 0 4px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    justify-content: flex-start;
  }

  .hero-inner,
  .grid.two,
  .grid.three,
  .contact-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-watermark {
    display: none;
  }

  .hero-copy {
    padding: 44px 24px;
  }

  .hero-media {
    min-height: 260px;
  }

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

  .service-grid,
  .portfolio-grid,
  .resource-grid,
  .experience-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 640px) {
  .section-inner,
  .page-hero .inner,
  .topbar,
  .footer-inner,
  .copyright-inner {
    width: min(100% - 24px, var(--max));
  }

  .section-inner {
    padding: 40px 0;
  }

  .home-cutaway-inner {
    width: min(100% - 24px, var(--max));
    padding-top: 24px;
  }

  .home-cutaway-inner > img {
    min-height: 250px;
  }

  .home-cutaway-caption {
    margin: -36px 12px 0;
    padding: 18px 20px;
  }

  .service-card {
    grid-template-columns: 1fr;
  }

  .service-directory {
    grid-template-columns: 1fr;
  }

  .service-jump,
  .client-context .section-inner,
  .hero-market,
  .market-list,
  .disciplines-band .section-inner,
  .discipline-list,
  .service-feature-head,
  .service-tiles,
  .service-tiles.four,
  .service-tiles.five,
  .experience-group {
    grid-template-columns: 1fr;
  }

  .service-feature-head {
    gap: 20px;
  }

  .service-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .experience-group img {
    aspect-ratio: 16 / 9;
  }

  .service-tiles article > img {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .experience-list {
    columns: 1;
  }

  .hero-v2 .hero-copy {
    padding-right: 24px;
  }

  .quick-list,
  .word-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .client-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .copyright-inner {
    flex-direction: column;
  }
}

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