:root {
  --ink: #1f2020;
  --charcoal: #2c2c2b;
  --teal-900: #082a30;
  --teal-800: #123e45;
  --teal-700: #1f5960;
  --blue-soft: #9ecbd2;
  --sage: #4e6f3b;
  --sage-soft: #dfe9dc;
  --paper: #f7f8f5;
  --white: #ffffff;
  --line: #d8ddd7;
  --muted: #646a67;
  --shadow: 0 18px 45px rgba(18, 38, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

.site-header,
.site-header > *,
.brand,
.nav,
.hero,
.hero-content,
.section-inner,
.intro-grid,
.model-grid,
.when-grid,
.contact-grid,
.metric-row,
.metric,
.service-grid,
.service-card,
.process-line,
.process-line article,
.contact-panel,
.site-footer,
.site-footer nav {
  min-width: 0;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(8, 42, 48, 0.12);
  background: rgba(255, 255, 255, 0.94);
  padding: 12px clamp(18px, 4vw, 64px);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  min-width: 210px;
  align-items: center;
  gap: 14px;
  color: var(--teal-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.brand img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 1.8vw, 26px);
  color: var(--charcoal);
  font-size: 0.93rem;
  font-weight: 700;
}

.nav a,
.site-footer a {
  text-decoration: none;
}

.nav a:hover,
.site-footer a:hover {
  color: var(--teal-700);
}

.hero {
  position: relative;
  min-height: min(690px, calc(100vh - 128px));
  min-height: min(690px, calc(100svh - 128px));
  overflow: hidden;
  background: var(--teal-900);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 42, 48, 0.91) 0%, rgba(8, 42, 48, 0.75) 37%, rgba(8, 42, 48, 0.22) 72%),
    linear-gradient(0deg, rgba(8, 42, 48, 0.36), rgba(8, 42, 48, 0.06));
}

.hero-content {
  position: relative;
  display: flex;
  min-height: min(690px, calc(100vh - 128px));
  min-height: min(690px, calc(100svh - 128px));
  width: min(760px, 100%);
  flex-direction: column;
  justify-content: center;
  padding: clamp(44px, 6vw, 72px) clamp(22px, 7vw, 88px);
  color: var(--white);
}

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

.intro .eyebrow,
.services .eyebrow,
.when .eyebrow,
.process .eyebrow,
.contact .eyebrow,
.plain-page .eyebrow {
  color: var(--teal-700);
}

.hero h1,
.plain-page h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.04;
}

.hero h1 {
  max-width: 650px;
  font-size: clamp(2.9rem, 6vw, 4.9rem);
}

.lead {
  max-width: 700px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.91);
  font-size: clamp(1.08rem, 1.55vw, 1.24rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 12px 20px;
  font-weight: 800;
  text-decoration: none;
}

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

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

.button:hover {
  transform: translateY(-1px);
}

.section-inner {
  width: min(1160px, calc(100% - 44px));
  margin: 0 auto;
}

.intro {
  background: var(--white);
  padding: clamp(72px, 9vw, 112px) 0;
}

.intro-grid,
.model-grid,
.when-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(38px, 7vw, 86px);
  align-items: start;
}

h2 {
  color: var(--teal-900);
  font-size: clamp(2rem, 4vw, 3.65rem);
}

.intro-copy {
  color: var(--charcoal);
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
}

.intro-copy p:first-child {
  margin-top: 0;
}

.metrics {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--charcoal);
  color: var(--white);
}

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

.metric {
  min-height: 154px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  padding: 28px 24px;
}

.metric:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.metric span,
.card-number {
  display: block;
  color: var(--blue-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.42rem;
  font-weight: 700;
}

.metric strong {
  display: block;
  margin-top: 18px;
  font-size: 1.05rem;
  line-height: 1.25;
}

.services,
.process {
  padding: clamp(72px, 9vw, 112px) 0;
}

.when {
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: clamp(66px, 8vw, 104px) 0;
}

.section-heading {
  max-width: 790px;
  margin-bottom: clamp(34px, 5vw, 54px);
}

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

.service-card {
  min-height: 310px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  padding: 26px;
  box-shadow: 0 8px 22px rgba(18, 38, 42, 0.06);
}

.service-card h3 {
  margin: 32px 0 12px;
  color: var(--teal-900);
  font-size: 1.24rem;
  line-height: 1.2;
}

.service-card p,
.model-points span,
.process-line p,
.contact-panel p,
.plain-page p {
  color: var(--muted);
}

.model {
  background: var(--teal-900);
  padding: clamp(74px, 9vw, 118px) 0;
  color: var(--white);
}

.model h2 {
  color: var(--white);
}

.model-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
}

.model-points {
  display: grid;
  gap: 14px;
}

.model-points div {
  border-left: 4px solid var(--sage);
  background: rgba(255, 255, 255, 0.08);
  padding: 22px 24px;
}

.model-points strong {
  display: block;
  margin-bottom: 7px;
  color: var(--white);
  font-size: 1.05rem;
}

.model-points span {
  color: rgba(255, 255, 255, 0.8);
}

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

.when-list div {
  border-left: 4px solid var(--teal-700);
  background: var(--paper);
  padding: 22px 24px;
}

.when-list strong {
  display: block;
  margin-bottom: 7px;
  color: var(--teal-900);
  font-size: 1.04rem;
}

.when-list span {
  color: var(--muted);
}

.process-line {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 2px solid var(--teal-800);
}

.process-line article {
  min-height: 238px;
  border-right: 1px solid var(--line);
  padding: 24px 18px 0 0;
}

.process-line article:last-child {
  border-right: 0;
}

.process-line span {
  display: block;
  color: var(--teal-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.28rem, 2vw, 1.55rem);
  font-weight: 700;
}

.contact {
  background: var(--sage-soft);
  padding: clamp(72px, 9vw, 110px) 0;
}

.contact-panel {
  border-top: 3px solid var(--teal-800);
  background: var(--white);
  padding: clamp(24px, 4vw, 38px);
  box-shadow: var(--shadow);
}

.contact-panel a {
  display: block;
  color: var(--teal-900);
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  font-weight: 800;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.contact-panel a + a {
  margin-top: 8px;
}

.contact-panel p {
  margin: 24px 0 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.84);
  padding: 30px clamp(18px, 4vw, 64px);
}

.site-footer div {
  display: grid;
  gap: 4px;
}

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

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 700;
}

.plain-page {
  min-height: 62vh;
  background: var(--white);
  padding: clamp(72px, 9vw, 116px) 0;
}

.plain-page .section-inner {
  max-width: 780px;
}

.plain-page h1 {
  color: var(--teal-900);
  font-size: clamp(2.7rem, 7vw, 5rem);
}

.plain-page a {
  color: var(--teal-700);
  font-weight: 800;
}

.small-note {
  font-size: 0.92rem;
}

@media (max-width: 940px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .intro-grid,
  .model-grid,
  .when-grid,
  .contact-grid,
  .metric-row,
  .service-grid,
  .process-line {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: min(650px, calc(100vh - 144px));
    min-height: min(650px, calc(100svh - 144px));
  }

  .hero-content {
    min-height: min(650px, calc(100vh - 144px));
    min-height: min(650px, calc(100svh - 144px));
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: auto;
    gap: 10px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .nav {
    width: 100%;
    gap: 8px 16px;
    font-size: 0.88rem;
  }

  .hero,
  .hero-content {
    min-height: min(610px, calc(100vh - 180px));
    min-height: min(610px, calc(100svh - 180px));
  }

  .hero-content {
    padding-top: clamp(42px, 8vw, 58px);
    padding-bottom: clamp(42px, 8vw, 58px);
  }

  .hero-image {
    object-position: 67% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(8, 42, 48, 0.95), rgba(8, 42, 48, 0.7)),
      linear-gradient(0deg, rgba(8, 42, 48, 0.5), rgba(8, 42, 48, 0.05));
  }

  .hero h1 {
    font-size: clamp(2.85rem, 13vw, 3.55rem);
  }

  .hero-actions,
  .site-footer,
  .site-footer nav {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .intro-grid,
  .model-grid,
  .when-grid,
  .contact-grid,
  .metric-row,
  .service-grid,
  .process-line {
    grid-template-columns: 1fr;
  }

  .metric,
  .metric:last-child,
  .process-line article {
    border-right: 0;
    border-left: 0;
  }

  .metric {
    min-height: 128px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding-left: 0;
    padding-right: 0;
  }

  .service-card,
  .process-line article {
    min-height: auto;
  }
}
