:root {
  color-scheme: light;
  --paper: #f5f1e8;
  --paper-deep: #ebe1d1;
  --ink: #17211f;
  --muted: #5d6660;
  --line: rgba(23, 33, 31, 0.14);
  --forest: #23443a;
  --moss: #6f7d52;
  --clay: #b66f48;
  --white: #fffdf8;
  --shadow: 0 24px 70px rgba(22, 31, 29, 0.16);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 32px), var(--max));
  margin: 16px auto 0;
  padding: 12px 14px 12px 12px;
  color: var(--white);
  background: rgba(20, 29, 27, 0.42);
  border: 1px solid rgba(255, 253, 248, 0.24);
  border-radius: 8px;
  backdrop-filter: blur(18px);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.88);
  border-color: var(--line);
  box-shadow: 0 12px 32px rgba(23, 33, 31, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  place-items: center;
  background: var(--white);
  color: var(--forest);
  border-radius: 8px;
}

.brand-mark svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  font-weight: 650;
}

.site-nav a {
  padding: 8px 10px;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 253, 248, 0.16);
  outline: none;
}

.site-header.is-scrolled .site-nav a:hover,
.site-header.is-scrolled .site-nav a:focus-visible {
  background: rgba(35, 68, 58, 0.08);
}

.hero {
  position: relative;
  display: grid;
  min-height: clamp(560px, 88svh, 780px);
  overflow: hidden;
  isolation: isolate;
  background: #d9e1dd;
}

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

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

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(16, 23, 21, 0.74) 0%, rgba(16, 23, 21, 0.42) 42%, rgba(16, 23, 21, 0.05) 82%),
    linear-gradient(0deg, rgba(245, 241, 232, 0.72) 0%, rgba(245, 241, 232, 0) 36%);
}

.hero-content {
  align-self: end;
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 136px 0 90px;
  color: var(--white);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f2c0a5;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: 6.8rem;
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 560px;
  margin-bottom: 30px;
  color: rgba(255, 253, 248, 0.9);
  font-size: 1.28rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

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

.button:focus-visible {
  outline: 3px solid rgba(182, 111, 72, 0.35);
  outline-offset: 2px;
}

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

.button-primary:hover {
  background: #f3eadc;
}

.button-secondary {
  background: rgba(255, 253, 248, 0.12);
  border-color: rgba(255, 253, 248, 0.4);
  color: var(--white);
}

.button-secondary:hover {
  background: rgba(255, 253, 248, 0.2);
}

.section {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 92px 0;
}

.intro-grid,
.section-heading,
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(28px, 7vw, 96px);
}

.intro {
  padding-top: 76px;
}

.intro h2,
.section-heading h2,
.contact h2 {
  margin-bottom: 0;
  font-size: 3.65rem;
  line-height: 1;
  letter-spacing: 0;
}

.intro-copy,
.section-heading > p,
.contact-panel p {
  color: var(--muted);
  font-size: 1.04rem;
}

.intro-copy p:last-child,
.contact-panel p:last-child {
  margin-bottom: 0;
}

.section-heading {
  align-items: end;
  margin-bottom: 32px;
}

.section-heading > p {
  max-width: 480px;
  margin-bottom: 0;
}

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

.service-card {
  min-height: 250px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(23, 33, 31, 0.04);
}

.service-index {
  display: block;
  margin-bottom: 48px;
  color: var(--moss);
  font-size: 0.84rem;
  font-weight: 900;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  letter-spacing: 0;
}

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

.process {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.process-list li {
  position: relative;
  min-height: 180px;
  padding: 26px 28px 26px 0;
  border-top: 1px solid var(--line);
  counter-increment: process;
}

.process-list li + li {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.process-list li::before {
  content: "0" counter(process);
  display: block;
  margin-bottom: 32px;
  color: var(--clay);
  font-size: 0.8rem;
  font-weight: 900;
}

.process-list span {
  display: block;
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: 850;
}

.process-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.contact {
  padding-bottom: 80px;
}

.contact-panel {
  align-items: center;
  padding: clamp(28px, 6vw, 56px);
  background: var(--forest);
  color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-panel p {
  color: rgba(255, 253, 248, 0.76);
}

.contact-actions {
  justify-content: flex-end;
}

.contact .button-secondary {
  background: transparent;
}

.copy-status {
  flex-basis: 100%;
  min-height: 1.2em;
  margin: 0;
  text-align: right;
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 0 0 34px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 750;
}

.not-found-page {
  min-height: 100svh;
  background: var(--forest);
  color: var(--white);
}

.not-found {
  display: grid;
  align-content: center;
  width: min(calc(100% - 32px), 720px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 56px 0;
}

.not-found-brand {
  margin-bottom: 46px;
}

.not-found h1 {
  margin-bottom: 14px;
  font-size: 5rem;
}

.not-found p {
  max-width: 420px;
  margin-bottom: 28px;
  color: rgba(255, 253, 248, 0.76);
}

.not-found .button {
  justify-self: start;
}

@media (max-width: 820px) {
  .site-header {
    width: calc(100% - 24px);
    margin-top: 12px;
  }

  .site-nav {
    gap: 0;
  }

  .site-nav a {
    padding-inline: 8px;
  }

  .hero {
    min-height: 82svh;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(16, 23, 21, 0.78) 0%, rgba(16, 23, 21, 0.42) 72%, rgba(16, 23, 21, 0.18) 100%),
      linear-gradient(0deg, rgba(245, 241, 232, 0.8) 0%, rgba(245, 241, 232, 0) 34%);
  }

  .hero-content {
    padding-bottom: 72px;
  }

  h1 {
    font-size: 4.7rem;
  }

  .intro h2,
  .section-heading h2,
  .contact h2 {
    font-size: 2.8rem;
  }

  .intro-grid,
  .section-heading,
  .contact-panel {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .section {
    padding-block: 68px;
  }

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

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

  .service-index {
    margin-bottom: 28px;
  }

  .process-list li,
  .process-list li + li {
    min-height: auto;
    padding: 24px 0;
    border-left: 0;
  }

  .process-list li::before {
    margin-bottom: 18px;
  }

  .contact-actions {
    justify-content: flex-start;
  }

  .copy-status {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .brand {
    gap: 8px;
  }

  .brand > span:last-child {
    display: none;
  }

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

  .site-nav a {
    font-size: 0.82rem;
  }

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

  .hero-content {
    width: calc(100% - 28px);
  }

  h1 {
    font-size: 2.85rem;
    line-height: 0.98;
  }

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

  .intro h2,
  .section-heading h2,
  .contact h2 {
    font-size: 2.25rem;
  }

  .not-found h1 {
    font-size: 3rem;
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section {
    width: calc(100% - 28px);
  }

  .contact-panel {
    padding: 28px 20px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    width: calc(100% - 28px);
  }
}

@media (max-width: 380px) {
  .site-nav a {
    padding-inline: 6px;
  }

  h1,
  .not-found h1 {
    font-size: 2.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
