:root {
  --ink: #22282a;
  --paper: #fbfbf7;
  --surface: #ffffff;
  --line: #d8ded8;
  --muted: #63716e;
  --teal: #33747a;
  --coral: #cf5b49;
  --ochre: #ba9545;
  --moss: #5d8860;
  --deep: #253438;
  --shadow: 0 18px 44px rgba(34, 40, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.menu-open {
  overflow: hidden;
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--ink);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 251, 247, 0.94);
  border-bottom: 1px solid rgba(216, 222, 216, 0.82);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--deep);
  border-radius: 8px;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-links a {
  padding: 0.65rem 0.82rem;
  border-radius: 8px;
  color: #354246;
  font-size: 0.94rem;
  font-weight: 650;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  color: #fff;
  background: var(--teal);
  outline: none;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
}

.menu-toggle {
  flex-direction: column;
  gap: 5px;
}

.hero {
  position: relative;
  min-height: calc(88dvh - 72px);
  display: flex;
  align-items: end;
  overflow: hidden;
  background: var(--deep);
}

.hero.compact {
  min-height: 58dvh;
}

.hero-media {
  position: absolute;
  inset: 0;
}

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

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(25, 32, 34, 0.86) 0%, rgba(25, 32, 34, 0.62) 42%, rgba(25, 32, 34, 0.08) 100%),
    linear-gradient(0deg, rgba(25, 32, 34, 0.72), transparent 44%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: calc(100% - 32px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 5rem 0 5.5rem;
  color: #fff;
}

.eyebrow {
  margin: 0 0 1rem;
  color: #d7e8e4;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 800px;
  font-size: clamp(2.7rem, 8vw, 6.4rem);
  overflow-wrap: break-word;
}

.brand-title span {
  display: block;
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
}

h3 {
  font-size: 1.28rem;
}

.hero-copy {
  max-width: 640px;
  margin: 1.25rem 0 0;
  color: #eef4f0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--coral);
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.1);
}

.button.dark {
  color: #fff;
  background: var(--deep);
}

.section {
  padding: 5rem 0;
}

.section.alt {
  background: #eef3ef;
}

.wrap {
  width: calc(100% - 32px);
  max-width: 1180px;
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.7fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

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

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

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

.card {
  min-height: 100%;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 6px 20px rgba(34, 40, 42, 0.05);
}

.card.accent-teal {
  border-top: 5px solid var(--teal);
}

.card.accent-coral {
  border-top: 5px solid var(--coral);
}

.card.accent-ochre {
  border-top: 5px solid var(--ochre);
}

.card.accent-moss {
  border-top: 5px solid var(--moss);
}

.card p {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.visual-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center;
}

.visual {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.metric {
  padding: 1.2rem;
  background: var(--surface);
}

.metric strong {
  display: block;
  color: var(--teal);
  font-size: 1.7rem;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.service-row {
  display: grid;
  grid-template-columns: 0.34fr 1fr 0.46fr;
  gap: 1rem;
  align-items: start;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}

.service-row:last-child {
  border-bottom: 1px solid var(--line);
}

.service-row .code {
  color: var(--coral);
  font-weight: 850;
}

.service-row h2,
.insight h2 {
  font-size: clamp(1.45rem, 3vw, 2.15rem);
}

.service-row p {
  margin: 0;
  color: var(--muted);
}

.timeline {
  counter-reset: step;
  display: grid;
  gap: 1rem;
}

.step {
  counter-increment: step;
  position: relative;
  padding: 1.2rem 1.2rem 1.2rem 4.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 1rem;
  top: 1.2rem;
  color: var(--coral);
  font-weight: 850;
}

.insight-list {
  display: grid;
  gap: 1rem;
}

.insight {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.insight time {
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 2rem;
}

.contact-panel {
  padding: 1.5rem;
  border-radius: 8px;
  background: var(--deep);
  color: #fff;
}

.contact-panel p,
.contact-panel a {
  color: #e7eeee;
}

.contact-panel h1 {
  font-size: clamp(2.2rem, 5vw, 3.7rem);
}

form {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.45rem;
  color: var(--deep);
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.8rem 0.9rem;
  border: 1px solid #b9c4bf;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(207, 91, 73, 0.36);
  outline-offset: 2px;
}

.site-footer {
  padding: 2.2rem 0;
  background: #1f282b;
  color: #dfe7e4;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.muted {
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1200px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    inset: 72px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  body.menu-open .nav-links {
    display: flex;
  }

  .nav-links a {
    min-height: 46px;
  }

  .hero,
  .hero.compact {
    min-height: 68dvh;
  }

  .hero-content {
    width: 100%;
    max-width: 342px;
    margin-left: 16px;
    margin-right: auto;
    padding: 4rem 0 4.5rem;
  }

  .hero-copy {
    max-width: 318px;
    font-size: 1rem;
  }

  .hero .eyebrow {
    max-width: 300px;
    font-size: 0.68rem;
  }

  .brand-title {
    max-width: 310px;
    font-size: 2.35rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 318px;
  }

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

  .section {
    padding: 3.5rem 0;
  }

  .section-head,
  .visual-band,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section-head h2,
  .section-head p,
  .card,
  .service-row,
  .insight,
  .step {
    max-width: 100%;
  }

  .section-head h2 {
    font-size: 1.85rem;
    overflow-wrap: anywhere;
  }

  .grid.three,
  .grid.two,
  .metrics {
    grid-template-columns: 1fr;
  }

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