:root {
  --ink: #161613;
  --paper: #f6f1e8;
  --paper-deep: #ebe3d5;
  --clay: #9f5540;
  --moss: #4e634a;
  --carbon: #242824;
  --line: rgba(22, 22, 19, 0.16);
  --white: #fffaf1;
  --shadow: 0 24px 60px rgba(22, 22, 19, 0.14);
}

* {
  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;
  line-height: 1.5;
}

body.nav-open {
  overflow: hidden;
}

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

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

.site-header {
  align-items: center;
  background: rgba(246, 241, 232, 0.9);
  border-bottom: 1px solid rgba(22, 22, 19, 0.12);
  backdrop-filter: blur(18px);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  left: 0;
  padding: 20px clamp(20px, 5vw, 72px);
  position: fixed;
  right: 0;
  top: 0;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
  z-index: 20;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(246, 241, 232, 0.96);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.brand {
  align-items: center;
  display: flex;
  gap: 14px;
  min-width: 0;
}

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

.brand-text {
  display: grid;
  line-height: 1;
  min-width: 0;
}

.brand-title {
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: clamp(18px, 3vw, 34px);
  font-size: 0.88rem;
  font-weight: 750;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  background: currentColor;
  bottom: -7px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
  width: 100%;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  display: none;
  height: 42px;
  justify-content: center;
  padding: 0;
  width: 42px;
}

.nav-toggle span {
  background: currentColor;
  display: block;
  height: 2px;
  position: absolute;
  transition: transform 180ms ease;
  width: 24px;
}

.nav-toggle span:first-child {
  transform: translateY(-5px);
}

.nav-toggle span:last-child {
  transform: translateY(5px);
}

.nav-open .nav-toggle span:first-child {
  transform: rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: rotate(-45deg);
}

.hero {
  align-items: end;
  display: grid;
  min-height: 92svh;
  overflow: hidden;
  padding: 120px clamp(20px, 5vw, 72px) 76px;
  position: relative;
}

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

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(22, 22, 19, 0.82) 0%, rgba(22, 22, 19, 0.5) 42%, rgba(22, 22, 19, 0.16) 100%),
    linear-gradient(0deg, rgba(22, 22, 19, 0.7) 0%, rgba(22, 22, 19, 0) 46%);
}

.hero-content {
  color: var(--white);
  max-width: 790px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f2c7a8;
}

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

h1 {
  font-size: clamp(4rem, 12vw, 11rem);
  letter-spacing: 0;
  line-height: 0.86;
  margin-bottom: 28px;
  max-width: 980px;
}

h2 {
  font-size: clamp(2rem, 4.8vw, 4.7rem);
  letter-spacing: 0;
  line-height: 0.98;
  margin-bottom: 0;
}

h3 {
  font-size: 1.35rem;
  letter-spacing: 0;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-copy {
  font-size: clamp(1.14rem, 2vw, 1.55rem);
  margin-bottom: 34px;
  max-width: 680px;
}

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

.button {
  align-items: center;
  border: 1px solid currentColor;
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

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

.hero .button-primary {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

.button-secondary {
  background: transparent;
  color: currentColor;
}

.intro {
  align-items: start;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  padding: 48px clamp(20px, 5vw, 72px) 88px;
}

.intro > p {
  font-size: clamp(1.45rem, 3vw, 2.8rem);
  line-height: 1.08;
  margin: 0;
}

.intro-metrics {
  display: grid;
  gap: 12px;
}

.intro-metrics div {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 16px 34px rgba(22, 22, 19, 0.08);
  display: grid;
  gap: 18px;
  grid-template-columns: 112px 1fr;
  min-height: 118px;
  padding: 22px;
}

.intro-metrics strong {
  border-right: 1px solid var(--line);
  display: grid;
  gap: 8px;
  justify-items: start;
  line-height: 1;
  padding-right: 18px;
}

.intro-metrics strong span {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: 0;
}

.intro-metrics small {
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.intro-metrics p {
  color: rgba(22, 22, 19, 0.68);
  font-weight: 700;
  margin: 0;
}

.intro-metrics b {
  color: var(--ink);
  display: block;
  font-size: 0.92rem;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.section {
  padding: 92px clamp(20px, 5vw, 72px);
}

.section-heading {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(120px, 0.36fr) minmax(0, 1fr);
  margin-bottom: 42px;
}

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

.service-card,
.work-panel {
  background: var(--white);
  border: 1px solid var(--line);
  min-height: 280px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-index {
  color: var(--moss);
  font-size: 0.82rem;
  font-weight: 900;
  margin-bottom: auto;
}

.service-card p,
.work-panel p,
.method-copy p,
.contact p {
  color: rgba(22, 22, 19, 0.7);
  margin-bottom: 0;
}

.method {
  background: var(--carbon);
  color: var(--white);
  display: grid;
  gap: 60px;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  padding: 104px clamp(20px, 5vw, 72px);
}

.method .eyebrow {
  color: #e6b06f;
}

.method-copy p {
  color: rgba(255, 250, 241, 0.74);
  font-size: 1.08rem;
  margin-top: 24px;
  max-width: 680px;
}

.method-list {
  border-top: 1px solid rgba(255, 250, 241, 0.2);
  counter-reset: method;
  list-style: none;
  margin: 0;
  padding: 0;
}

.method-list li {
  border-bottom: 1px solid rgba(255, 250, 241, 0.2);
  color: rgba(255, 250, 241, 0.72);
  counter-increment: method;
  padding: 24px 0 24px 58px;
  position: relative;
}

.method-list li::before {
  color: #e6b06f;
  content: counter(method, decimal-leading-zero);
  font-size: 0.8rem;
  font-weight: 900;
  left: 0;
  position: absolute;
  top: 28px;
}

.method-list span {
  color: var(--white);
  display: block;
  font-size: 1.25rem;
  font-weight: 850;
  margin-bottom: 6px;
}

.work {
  background: var(--paper-deep);
}

.work-panel {
  box-shadow: none;
}

.contact {
  display: grid;
  gap: 60px;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 0.58fr);
  padding: 104px clamp(20px, 5vw, 72px);
}

.contact h2 {
  margin-bottom: 24px;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  display: grid;
  gap: 18px;
  padding: 28px;
}

label {
  color: rgba(22, 22, 19, 0.78);
  display: grid;
  font-size: 0.82rem;
  font-weight: 850;
  gap: 8px;
  text-transform: uppercase;
}

input,
textarea {
  background: #fffdf8;
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  min-height: 48px;
  padding: 12px 14px;
  width: 100%;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
.button:focus-visible,
.nav-toggle:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(159, 85, 64, 0.34);
  outline-offset: 3px;
}

.form-note {
  color: var(--moss);
  font-size: 0.9rem;
  font-weight: 800;
  min-height: 1.4em;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 28px clamp(20px, 5vw, 72px);
}

.site-footer p {
  margin: 0;
}

.footer-brand {
  align-items: center;
  display: flex;
  gap: 12px;
  font-size: 1.02rem;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-logo {
  height: 64px;
  object-fit: contain;
  width: 70px;
}

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

  .site-nav {
    align-content: start;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    bottom: 0;
    display: grid;
    gap: 0;
    left: 0;
    opacity: 0;
    overflow-y: auto;
    padding: 84px 20px 24px;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 0;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease;
    z-index: -1;
  }

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

  .site-nav a {
    border-top: 1px solid var(--line);
    font-size: 1.2rem;
    padding: 18px 0;
  }

  .hero {
    min-height: 88svh;
  }

  .intro,
  .method,
  .contact,
  .section-heading {
    grid-template-columns: 1fr;
  }

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

  .service-card,
  .work-panel {
    min-height: 220px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 16px 18px;
  }

  .brand-logo {
    height: 50px;
    width: 54px;
  }

  .brand {
    gap: 10px;
  }

  .brand-title {
    font-size: 0.82rem;
  }

  .hero {
    min-height: 86svh;
    padding: 104px 18px 44px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(22, 22, 19, 0.86) 0%, rgba(22, 22, 19, 0.52) 100%),
      linear-gradient(0deg, rgba(22, 22, 19, 0.72) 0%, rgba(22, 22, 19, 0) 44%);
  }

  h1 {
    font-size: clamp(3.1rem, 18vw, 4.6rem);
  }

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

  .intro,
  .section,
  .method,
  .contact {
    padding-left: 18px;
    padding-right: 18px;
  }

  .intro {
    padding-top: 38px;
  }

  .intro-metrics div {
    align-items: stretch;
    gap: 14px;
    grid-template-columns: 82px 1fr;
    min-height: 0;
    padding: 18px;
  }

  .intro-metrics strong {
    padding-right: 14px;
  }

  .intro-metrics strong span {
    font-size: 2rem;
  }

  .intro-metrics small {
    font-size: 0.66rem;
  }

  .contact-form,
  .service-card,
  .work-panel {
    padding: 22px;
  }

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

  .footer-logo {
    height: 58px;
    width: 64px;
  }
}
