:root {
  --ink: #071827;
  --ink-soft: #112b3e;
  --teal: #168b9c;
  --cyan: #3cb7c4;
  --ice: #eaf4f5;
  --mist: #f5f7f8;
  --white: #ffffff;
  --line: rgba(7, 24, 39, 0.14);
  --shadow: 0 24px 70px rgba(7, 24, 39, 0.13);
  --serif: "Montserrat", sans-serif;
  --sans: "DM Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 78px;
  padding: 0 4.5vw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(7, 24, 39, 0.96);
  color: var(--white);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
}

.brand-mark {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.brand-name {
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.32);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav a {
  padding: 26px 0 23px;
  border-bottom: 2px solid transparent;
  font-size: 0.9rem;
  transition: color 180ms ease, border-color 180ms ease;
}

nav a:hover,
nav a:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
}

.header-cta {
  justify-self: end;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  font-size: 0.84rem;
  font-weight: 600;
  transition: background 180ms ease, color 180ms ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  background: var(--white);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(2, 12, 23, 0.94) 0%, rgba(5, 25, 40, 0.78) 48%, rgba(5, 25, 40, 0.24) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(690px, 88vw);
  margin-left: 8vw;
  padding: 80px 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.13;
  text-wrap: balance;
}

h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2.8rem, 6.1vw, 5.7rem);
  letter-spacing: -0.045em;
}

.hero-copy {
  max-width: 580px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--cyan);
  color: var(--ink);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #75d4dc;
}

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

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.hero-signature {
  position: absolute;
  z-index: 2;
  right: 5vw;
  bottom: 3.5vw;
  font-family: var(--serif);
  font-size: clamp(5rem, 14vw, 12rem);
  line-height: 1;
  opacity: 0.14;
}

.credentials {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1160px, 90vw);
  margin: -42px auto 0;
  background: var(--white);
  box-shadow: var(--shadow);
}

.credentials div {
  padding: 30px 36px;
  border-right: 1px solid var(--line);
}

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

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

.credentials strong {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 500;
}

.credentials span {
  margin-top: 3px;
  color: #61707b;
  font-size: 0.84rem;
}

.section {
  padding: 118px max(6vw, 24px);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.35fr 1fr;
  align-items: start;
  gap: 48px;
  width: min(1160px, 100%);
  margin: 0 auto 62px;
}

.section-heading.compact {
  display: block;
  margin: 0;
}

.section-heading h2,
.standards h2,
.contact h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4.5vw, 4.3rem);
  letter-spacing: -0.04em;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 76px;
  align-items: center;
  width: min(1160px, 100%);
  margin: 0 auto;
}

.profile-copy {
  max-width: 610px;
}

.profile-copy p {
  margin: 0 0 22px;
  color: #4c5e6a;
}

.profile-copy .lead {
  color: var(--ink-soft);
  font-size: 1.2rem;
}

.text-link {
  display: inline-flex;
  gap: 16px;
  margin-top: 12px;
  border-bottom: 1px solid var(--teal);
  color: var(--teal);
  font-weight: 600;
}

.profile-visual {
  position: relative;
  margin: 0;
}

.profile-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -24px;
  bottom: -24px;
  width: 58%;
  height: 58%;
  background: var(--ice);
}

.profile-visual img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
}

.profile-visual figcaption {
  position: absolute;
  left: 22px;
  bottom: 20px;
  padding: 9px 14px;
  background: rgba(7, 24, 39, 0.9);
  color: var(--white);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.services {
  background: var(--ink);
  color: var(--white);
}

.services-intro {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 90px;
  align-items: end;
  width: min(1160px, 100%);
  margin: 0 auto 64px;
}

.services-intro > p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.66);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1160px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.service-card {
  min-height: 460px;
  padding: 42px 36px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.025);
}

.service-card:last-child {
  border-right: 0;
}

.service-card.featured {
  background: var(--teal);
}

.service-number {
  color: var(--cyan);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
}

.featured .service-number {
  color: rgba(255, 255, 255, 0.72);
}

.service-card h3 {
  min-height: 70px;
  margin: 58px 0 26px;
  font-size: 1.75rem;
}

.service-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.72);
  list-style: none;
}

.service-card li {
  position: relative;
  padding-left: 18px;
}

.service-card li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
}

.featured li::before {
  background: var(--white);
}

.service-gallery {
  display: block;
  width: min(1160px, 100%);
  height: 320px;
  margin: 18px auto 0;
}

.service-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.03);
}

.standards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8vw;
  align-items: center;
  background: var(--mist);
}

.standards-image img {
  width: 100%;
  min-height: 580px;
  object-fit: cover;
}

.standards-copy {
  max-width: 630px;
  padding-right: 4vw;
}

.check-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 34px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.contact {
  padding-top: 96px;
  background: var(--white);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 80px;
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 68px;
  background: linear-gradient(135deg, var(--ink) 0%, #0d3447 100%);
  color: var(--white);
  box-shadow: var(--shadow);
}

.contact-heading p:last-child {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.7);
}

.contact-actions {
  display: grid;
  align-content: center;
}

.contact-link {
  display: grid;
  gap: 4px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 180ms ease, padding-left 180ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  padding-left: 28px;
  background: rgba(255, 255, 255, 0.08);
}

.contact-link.primary {
  background: var(--teal);
}

.contact-link span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-link strong {
  font-size: 1rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 36px;
  padding: 32px max(4.5vw, 24px);
  background: #04111c;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
}

.footer-brand {
  color: var(--white);
}

footer p {
  margin: 0;
  text-align: center;
}

footer > a:last-child {
  justify-self: end;
}

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

  .brand-name,
  .header-cta {
    display: none;
  }

  .credentials {
    width: 92vw;
  }

  .credentials div {
    padding: 24px 20px;
  }

  .section-heading,
  .profile-grid,
  .services-intro,
  .contact-panel {
    gap: 42px;
  }

  .profile-grid,
  .standards,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .standards-image img {
    min-height: 420px;
  }

  .standards-copy {
    padding: 0 2vw 0;
  }

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

  .service-card {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .service-card:last-child {
    border-bottom: 0;
  }

  .service-card h3 {
    min-height: 0;
    margin-top: 24px;
  }

  footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand,
  footer > a:last-child {
    justify-self: center;
  }
}

@media (max-width: 700px) {
  .site-header {
    min-height: 68px;
    padding: 0 20px;
  }

  nav {
    gap: 16px;
  }

  nav a {
    padding: 22px 0 19px;
    font-size: 0.82rem;
  }

  .hero {
    min-height: 720px;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(2, 12, 23, 0.95), rgba(5, 25, 40, 0.62));
  }

  .hero-content {
    margin: 0 24px;
    padding-bottom: 150px;
  }

  h1 {
    font-size: clamp(2.7rem, 13vw, 4.2rem);
  }

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

  .credentials {
    grid-template-columns: 1fr;
    margin-top: -80px;
  }

  .credentials div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding: 82px 22px;
  }

  .section-heading,
  .services-intro {
    grid-template-columns: 1fr;
    margin-bottom: 42px;
  }

  .section-heading h2,
  .standards h2,
  .contact h2 {
    font-size: 2.35rem;
  }

  .profile-visual img {
    min-height: 300px;
  }

  .service-card {
    padding: 34px 26px;
  }

  .service-gallery {
    height: auto;
  }

  .service-gallery img {
    height: 240px;
  }

  .standards {
    gap: 44px;
  }

  .standards-image img {
    min-height: 340px;
  }

  .check-list {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    padding: 38px 24px;
  }

  .contact-link {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
