:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #5a665f;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --line: #d9ddd2;
  --teal: #0f766e;
  --teal-dark: #0b4f4a;
  --amber: #b45309;
  --blue: #2563eb;
  --green-soft: #dbeee8;
  --amber-soft: #f6e5cb;
  --blue-soft: #dce8ff;
  --shadow: 0 18px 50px rgba(23, 32, 29, 0.16);
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--ink);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  background: var(--ink);
  border-radius: 6px;
  font-size: 0.74rem;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  padding: 4px 0;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--teal-dark);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 74svh;
  overflow: hidden;
  padding: clamp(72px, 10vw, 120px) clamp(18px, 5vw, 72px) clamp(48px, 8vw, 88px);
  background: #e9efe8;
  isolation: isolate;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(233, 239, 232, 0.98) 0%, rgba(233, 239, 232, 0.91) 38%, rgba(233, 239, 232, 0.52) 100%),
    repeating-linear-gradient(0deg, rgba(23, 32, 29, 0.06) 0 1px, transparent 1px 58px),
    repeating-linear-gradient(90deg, rgba(23, 32, 29, 0.05) 0 1px, transparent 1px 58px);
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.scene-grid {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(760px, 70vw);
  height: min(500px, 58vh);
  border-left: 1px solid rgba(15, 118, 110, 0.2);
  background:
    linear-gradient(180deg, transparent 0 12%, rgba(255, 255, 255, 0.42) 12% 13%, transparent 13% 100%),
    linear-gradient(90deg, transparent 0 18%, rgba(255, 255, 255, 0.42) 18% 19%, transparent 19% 100%),
    repeating-linear-gradient(90deg, rgba(15, 118, 110, 0.2) 0 2px, transparent 2px 84px),
    repeating-linear-gradient(0deg, rgba(180, 83, 9, 0.17) 0 2px, transparent 2px 72px);
  transform: skewX(-10deg) translateX(8%);
}

.scene-line {
  position: absolute;
  right: -8%;
  width: 70vw;
  max-width: 860px;
  height: 3px;
  background: var(--teal);
  opacity: 0.62;
  transform-origin: right center;
}

.line-a {
  top: 30%;
  transform: rotate(-10deg);
}

.line-b {
  top: 56%;
  background: var(--amber);
  transform: rotate(7deg);
}

.scene-panel {
  position: absolute;
  display: grid;
  gap: 2px;
  width: 190px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(23, 32, 29, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-a {
  right: 12%;
  top: 18%;
}

.panel-b {
  right: 26%;
  bottom: 18%;
}

.panel-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.scene-panel strong {
  color: var(--teal-dark);
  font-size: 2.2rem;
  line-height: 1;
}

.scene-panel span:last-child {
  color: var(--muted);
  font-size: 0.9rem;
}

.scene-table {
  position: absolute;
  right: 6%;
  bottom: 6%;
  display: grid;
  grid-template-columns: repeat(3, minmax(42px, 1fr));
  gap: 8px;
  width: min(360px, 44vw);
  padding: 12px;
  background: rgba(23, 32, 29, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.scene-table span {
  display: block;
  height: 14px;
  background: #cfe7df;
  border-radius: 3px;
}

.scene-table span:nth-child(3n + 2) {
  background: #f4d7a8;
}

.scene-table span:nth-child(4n) {
  background: #c9d9ff;
}

.hero-content {
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: 4.5rem;
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 3.4rem;
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.22;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 28px;
  color: #2c3833;
  font-size: 1.24rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

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

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.62);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--teal-dark);
  color: var(--teal-dark);
}

.button.full {
  width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(760px, 100%);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(23, 32, 29, 0.18);
  border-radius: 8px;
  background: rgba(23, 32, 29, 0.18);
}

.quick-facts div {
  padding: 15px;
  background: rgba(251, 250, 247, 0.86);
}

.quick-facts dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-facts dd {
  margin: 0;
  font-weight: 800;
  line-height: 1.3;
}

.section {
  padding: clamp(54px, 8vw, 100px) clamp(18px, 5vw, 72px);
}

.section[id] {
  scroll-margin-top: 94px;
}

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.intro-band {
  color: #ffffff;
  background: var(--ink);
}

.intro-band .eyebrow,
.intro-band p {
  color: #dce8e2;
}

.intro-band h2 {
  color: #ffffff;
}

.intro-band p:last-child {
  margin-bottom: 0;
  font-size: 1.1rem;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1fr);
  gap: clamp(22px, 5vw, 64px);
  align-items: end;
  margin-bottom: clamp(28px, 5vw, 54px);
}

.section-heading.compact {
  display: block;
  max-width: 720px;
}

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

.service-card {
  min-height: 280px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-card:nth-child(1) {
  border-top: 5px solid var(--teal);
}

.service-card:nth-child(2) {
  border-top: 5px solid var(--amber);
}

.service-card:nth-child(3) {
  border-top: 5px solid var(--blue);
}

.service-card:nth-child(4) {
  border-top: 5px solid var(--ink);
}

.service-index {
  display: block;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.service-card p,
.project-list p,
.process-list p,
.contact-layout p,
.fine-print {
  color: var(--muted);
}

.process-section {
  background: #edf3f0;
  border-block: 1px solid var(--line);
}

.fit-section {
  background: #f2f5ef;
  border-bottom: 1px solid var(--line);
}

.fit-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.fit-list li {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 700;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 34px 0 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 24px 0;
  border-top: 2px solid rgba(23, 32, 29, 0.16);
}

.process-list span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #ffffff;
  background: var(--teal-dark);
  border-radius: 50%;
  font-weight: 800;
}

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

.project-list article {
  min-height: 170px;
  padding: clamp(22px, 4vw, 34px);
  background: var(--surface);
}

.project-list article:nth-child(1) {
  background: linear-gradient(180deg, var(--surface), var(--green-soft));
}

.project-list article:nth-child(2) {
  background: linear-gradient(180deg, var(--surface), var(--amber-soft));
}

.project-list article:nth-child(3) {
  background: linear-gradient(180deg, var(--surface), var(--blue-soft));
}

.project-list article:nth-child(4) {
  background: linear-gradient(180deg, var(--surface), #ecefe8);
}

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

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
}

.contact-panel {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(23, 32, 29, 0.08);
}

.fine-print {
  margin: 14px 0 0;
  font-size: 0.88rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: #dce8e2;
  background: var(--ink);
}

.not-found-page {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: clamp(24px, 6vw, 72px);
  background:
    linear-gradient(135deg, rgba(219, 238, 232, 0.72), rgba(251, 250, 247, 0.96)),
    var(--paper);
}

.not-found-card {
  width: min(680px, 100%);
  padding: clamp(28px, 6vw, 64px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 6px solid var(--teal);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.not-found-card h1 {
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
}

.not-found-card p:not(.eyebrow) {
  max-width: 48ch;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.1rem;
}

.site-footer p {
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  color: #dce8e2;
  font-size: 0.92rem;
  font-weight: 800;
}

.footer-nav a {
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: #ffffff;
}

@media (max-width: 960px) {
  .hero {
    min-height: auto;
    padding-top: 74px;
  }

  h1 {
    font-size: 3.8rem;
  }

  h2 {
    font-size: 2.7rem;
  }

  .scene-panel,
  .scene-table {
    opacity: 0.28;
  }

  .quick-facts,
  .service-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .split,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-block: 10px;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 6px 12px;
    overflow: visible;
    padding-bottom: 0;
    font-size: 0.88rem;
    white-space: normal;
  }

  .site-nav a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 6px 0;
  }

  .hero {
    padding-top: 46px;
  }

  .section[id] {
    scroll-margin-top: 24px;
  }

  h1 {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  h3 {
    font-size: 1.08rem;
  }

  .hero-copy {
    font-size: 1.08rem;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .quick-facts,
  .project-list {
    grid-template-columns: 1fr;
  }

  .panel-a {
    right: -40px;
  }

  .panel-b {
    right: 40px;
  }

  .scene-table {
    width: 300px;
    right: -90px;
  }
}
