:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #52606d;
  --line: #d8dee4;
  --paper: #f7f6f1;
  --white: #ffffff;
  --navy: #173149;
  --blue: #315b78;
  --green: #647760;
  --clay: #9a6b53;
  --gold: #b58a3a;
  --focus: #0f6b9f;
  --shadow: 0 18px 50px rgba(23, 33, 43, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0;
  z-index: 20;
  transform: translateY(-120%);
  background: var(--ink);
  color: var(--white);
  padding: 0.65rem 1rem;
  border-radius: 0 0 8px 8px;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 246, 241, 0.94);
  border-bottom: 1px solid rgba(23, 33, 43, 0.1);
  backdrop-filter: blur(16px);
}

.site-nav {
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: #2f3a44;
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: 6.5rem 0 5rem;
  background:
    linear-gradient(90deg, rgba(247, 246, 241, 0.98) 0%, rgba(247, 246, 241, 0.9) 45%, rgba(247, 246, 241, 0.28) 100%),
    url("images/bg.jpg") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 9px;
  background: linear-gradient(90deg, var(--navy), var(--green), var(--clay), var(--gold));
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.64fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: center;
}

.hero-copy {
  min-width: 0;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.08;
}

h1 {
  max-width: 780px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.9rem, 4.9vw, 4.85rem);
  font-weight: 700;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.2vw, 3.7rem);
  font-weight: 700;
}

h3 {
  font-size: 1.05rem;
  font-weight: 760;
  line-height: 1.25;
}

.hero-lede {
  max-width: 690px;
  margin-top: 2rem;
  color: var(--ink);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.5;
}

.hero-copy p:not(.eyebrow):not(.hero-lede) {
  max-width: 690px;
  margin: 1.1rem 0 0;
  color: #3d4953;
  font-size: 1.04rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.72rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 760;
  line-height: 1.1;
  text-decoration: none;
}

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

.button.primary:hover {
  background: #0f2539;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(23, 33, 43, 0.2);
  color: var(--ink);
}

.button.secondary:hover {
  background: var(--white);
}

.hero-panel {
  display: grid;
  gap: 1rem;
  align-self: stretch;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 33, 43, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel div {
  display: grid;
  align-content: center;
  min-height: 128px;
  padding: 1.2rem;
  border-left: 4px solid var(--green);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 6px;
}

.hero-panel div:nth-child(2) {
  border-left-color: var(--blue);
}

.hero-panel div:nth-child(3) {
  border-left-color: var(--clay);
}

.hero-panel span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-panel strong {
  margin-top: 0.5rem;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.34;
}

.section {
  padding: 6.2rem 0;
}

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

.card-grid {
  display: grid;
  gap: 1rem;
}

.services-grid {
  grid-template-columns: repeat(6, 1fr);
}

.service-card {
  grid-column: span 2;
  min-height: 285px;
  padding: 1.35rem;
  background: var(--white);
  border: 1px solid rgba(23, 33, 43, 0.1);
  border-radius: 8px;
  box-shadow: 0 10px 34px rgba(23, 33, 43, 0.05);
}

.service-card:nth-child(4),
.service-card:nth-child(5) {
  grid-column: span 3;
}

.card-number {
  display: inline-block;
  margin-bottom: 1.6rem;
  color: var(--clay);
  font-size: 0.82rem;
  font-weight: 800;
}

.service-card p,
.step p,
.value-grid p,
.section-copy p,
.experience-grid p,
.contact-card p {
  color: var(--muted);
}

.service-card p {
  margin: 1rem 0 0;
}

.context-section,
.about-section {
  background: var(--white);
  border-top: 1px solid rgba(23, 33, 43, 0.08);
  border-bottom: 1px solid rgba(23, 33, 43, 0.08);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 4rem;
  align-items: start;
}

.split-section .section-heading {
  margin-bottom: 0;
}

.section-copy {
  max-width: 640px;
  font-size: 1.08rem;
}

.section-copy p {
  margin: 0 0 1.1rem;
}

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

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(23, 33, 43, 0.12);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.step {
  min-height: 250px;
  padding: 1.4rem;
  border-right: 1px solid rgba(23, 33, 43, 0.12);
}

.step:last-child {
  border-right: 0;
}

.step span {
  display: block;
  margin-bottom: 3.2rem;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 700;
}

.step p {
  margin: 0;
}

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

.contrast-section .eyebrow {
  color: #c9b06d;
}

.contrast-section h2,
.contrast-section p {
  color: var(--white);
}

.experience-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 4rem;
  align-items: start;
}

.experience-grid p {
  max-width: 640px;
  margin-top: 1.6rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

.capability-list {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.capability-list li {
  position: relative;
  padding: 0.9rem 1rem 0.9rem 2.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
}

.capability-list li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.42rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #c9b06d;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.value-grid p {
  min-height: 120px;
  margin: 0;
  padding: 1.1rem;
  background: var(--white);
  border: 1px solid rgba(23, 33, 43, 0.1);
  border-radius: 8px;
}

.contact-section {
  padding-bottom: 4rem;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 3rem;
  align-items: center;
  padding: 2rem;
  background: var(--white);
  border: 1px solid rgba(23, 33, 43, 0.1);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-card p {
  margin: 1.2rem 0 0;
  max-width: 720px;
  font-size: 1.04rem;
}

.contact-actions {
  display: grid;
  justify-items: start;
  gap: 0.9rem;
}

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

.contact-actions .contact-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(23, 33, 43, 0.1);
  background: var(--white);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner a {
  color: var(--navy);
  font-weight: 760;
  text-decoration: none;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding: 5rem 0 4.5rem;
  }

  .hero-grid,
  .split-section,
  .experience-grid,
  .contact-card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-panel {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-panel div {
    min-height: 155px;
  }

  .service-card,
  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    grid-column: span 3;
  }

  .steps,
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .step:nth-child(2) {
    border-right: 0;
  }

  .step:nth-child(1),
  .step:nth-child(2) {
    border-bottom: 1px solid rgba(23, 33, 43, 0.12);
  }
}

@media (max-width: 760px) {
  .container,
  .site-nav {
    width: min(100% - 28px, 1120px);
  }

  .site-nav {
    min-height: 66px;
  }

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

  .js .nav-links {
    position: fixed;
    left: 14px;
    right: 14px;
    top: 74px;
    display: grid;
    gap: 0;
    padding: 0.55rem;
    background: var(--white);
    border: 1px solid rgba(23, 33, 43, 0.12);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .js .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem;
  }

  .hero {
    padding: 4rem 0 3.8rem;
    background:
      linear-gradient(180deg, rgba(247, 246, 241, 0.98) 0%, rgba(247, 246, 241, 0.92) 58%, rgba(247, 246, 241, 0.76) 100%),
      url("images/bg.jpg") center / cover no-repeat;
  }

  h1 {
    font-size: clamp(2.2rem, 10.5vw, 2.95rem);
  }

  .hero-panel,
  .services-grid,
  .steps,
  .value-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    grid-column: auto;
    min-height: auto;
  }

  .step,
  .step:nth-child(2) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(23, 33, 43, 0.12);
  }

  .step:last-child {
    border-bottom: 0;
  }

  .step span {
    margin-bottom: 1.5rem;
  }

  .section {
    padding: 4.5rem 0;
  }

  .value-grid p {
    min-height: auto;
  }

  .contact-card {
    padding: 1.35rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .brand {
    gap: 0.55rem;
    font-size: 0.95rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }
}
