:root {
  --ink: #141816;
  --spruce: #1a3d32;
  --spruce-deep: #0e241e;
  --moss: #3f6d5c;
  --cream: #f4efe6;
  --paper: #faf7f2;
  --sand: #e6dccb;
  --copper: #c45c26;
  --copper-dark: #9a4318;
  --blush: #e8c4a8;
  --muted: #5c635f;
  --line: rgba(20, 24, 22, 0.12);
  --white: #fff;
  --max: 1180px;
  --wide: 1360px;
  --header: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-serif: "Fraunces", "Source Serif 4", Georgia, serif;
  --font-sans: "Outfit", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img {
  max-width: 100%;
  display: block;
  background: var(--sand);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
}

.skip:focus {
  left: 8px;
  z-index: 100;
  background: var(--copper);
  color: var(--white);
  padding: 8px 14px;
}

.wrap {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.wrap-wide {
  width: min(calc(100% - 40px), var(--wide));
  margin-inline: auto;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--copper);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--copper);
}

.lede {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 42rem;
}

.section {
  padding: 88px 0;
}

.section-head {
  display: grid;
  gap: 16px;
  margin-bottom: 48px;
  max-width: 640px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
}

.header-inner {
  width: min(calc(100% - 40px), var(--wide));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand img {
  width: 40px;
  height: 40px;
  background: transparent;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.brand-name span {
  display: block;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--spruce);
}

.nav a:hover,
.nav a.is-active {
  color: var(--copper);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-phone {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--spruce);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  content: "";
}

.menu-toggle span {
  top: 21px;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

body.nav-open .menu-toggle span {
  background: transparent;
}

body.nav-open .menu-toggle span::before {
  top: 0;
  transform: rotate(45deg);
}

body.nav-open .menu-toggle span::after {
  top: 0;
  transform: rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s;
}

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

.btn-primary {
  background: var(--copper);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--copper-dark);
}

.btn-dark {
  background: var(--spruce);
  color: var(--cream);
}

.btn-ghost {
  background: transparent;
  border-color: color-mix(in srgb, var(--spruce) 28%, transparent);
  color: var(--spruce);
}

.btn-light {
  background: var(--cream);
  color: var(--spruce);
}

/* Hero */
.hero {
  padding: 28px 0 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: end;
}

.hero h1 {
  font-size: clamp(2.7rem, 6.4vw, 5.4rem);
  margin: 18px 0 22px;
  max-width: 11ch;
}

.hero .lede {
  margin-bottom: 32px;
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-meta strong {
  display: block;
  color: var(--spruce);
  font-size: 1rem;
  font-weight: 650;
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.hero-visual .main {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: 4px 88px 4px 4px;
}

.hero-card {
  position: absolute;
  left: -36px;
  bottom: 36px;
  width: min(280px, 70%);
  background: var(--spruce);
  color: var(--cream);
  padding: 22px;
  border-radius: 4px;
}

.hero-card small {
  color: var(--blush);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
}

.hero-card strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 500;
  margin: 8px 0 6px;
}

.hero-card p {
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--cream) 78%, transparent);
}

.ticker {
  border-block: 1px solid var(--line);
  margin-top: 56px;
  overflow: hidden;
  padding: 16px 0;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.ticker-track {
  display: flex;
  gap: 42px;
  width: max-content;
  animation: ticker 32s linear infinite;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss);
  font-weight: 600;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.stat {
  padding: 32px 24px 32px 0;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat b {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 500;
  color: var(--spruce);
}

.stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Services */
.service-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.service-row.reverse {
  grid-template-columns: 1.1fr 0.9fr;
}

.service-row.reverse .service-copy {
  order: 2;
}

.service-row img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 4px;
}

.ref-photos {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.service-row .ref-photos img {
  width: 100%;
  max-width: 100%;
  height: 220px;
}

.service-num {
  font-family: var(--font-serif);
  font-size: 4rem;
  color: var(--sand);
  line-height: 1;
  margin-bottom: 8px;
}

.service-copy h3 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 14px;
}

.service-copy p {
  color: var(--muted);
  margin-bottom: 22px;
  max-width: 38rem;
}

.service-copy ul {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.service-copy li {
  padding-left: 18px;
  position: relative;
}

.service-copy li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--copper);
  position: absolute;
  left: 0;
  top: 0.55em;
}

.link-arrow {
  font-weight: 650;
  color: var(--spruce);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.link-arrow::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

/* Split why */
.why {
  background: var(--spruce-deep);
  color: var(--cream);
}

.why .kicker {
  color: var(--blush);
}

.why .kicker::before {
  background: var(--blush);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.why h2 {
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  margin: 16px 0 20px;
}

.why .lede {
  color: color-mix(in srgb, var(--cream) 72%, transparent);
}

.why-list {
  display: grid;
  gap: 0;
}

.why-item {
  padding: 24px 0;
  border-top: 1px solid color-mix(in srgb, var(--cream) 12%, transparent);
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
}

.why-item strong {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
}

.why-item p {
  color: color-mix(in srgb, var(--cream) 70%, transparent);
  margin-top: 6px;
}

.why-item em {
  font-style: normal;
  color: var(--blush);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.why .faq summary {
  color: var(--cream);
}

.why .faq details p {
  color: color-mix(in srgb, var(--cream) 72%, transparent);
}

.why .checklist li {
  border-bottom-color: color-mix(in srgb, var(--cream) 14%, transparent);
}

/* Process */
.process-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.process-item {
  background: var(--paper);
  padding: 32px 28px 36px;
  min-height: 220px;
}

.process-item span {
  display: block;
  color: var(--copper);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 650;
  margin-bottom: 16px;
}

.process-item h3 {
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.process-item p {
  color: var(--muted);
}

/* Projects */
.project-bento {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}

.project {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  color: var(--white);
}

.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.7s var(--ease);
}

.project:hover img {
  transform: scale(1.05);
}

.project.featured {
  min-height: 496px;
  grid-row: 1 / span 2;
}

.project-bento:has(.project:only-child) {
  grid-template-columns: 1fr;
}

.project-bento:has(.project:only-child) .project.featured {
  grid-row: auto;
  min-height: 460px;
}

.project figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(14, 36, 30, 0.82));
}

.project small {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--blush);
}

.project h3 {
  font-size: 1.5rem;
  margin-top: 6px;
}

/* Calculator */
.calc-panel {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  background: var(--cream);
  border: 1px solid var(--line);
}

.calc-form,
.calc-result {
  padding: 40px;
}

.calc-form {
  display: grid;
  gap: 16px;
  align-content: start;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--spruce);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  min-height: 48px;
  padding: 0 14px;
  border-radius: 4px;
  color: var(--ink);
}

.field textarea {
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
}

.calc-result {
  background: var(--spruce);
  color: var(--cream);
}

.calc-result h3 {
  font-size: 1.8rem;
  margin: 8px 0 28px;
}

.result-grid {
  display: grid;
  gap: 18px;
}

.result-grid div {
  border-top: 1px solid color-mix(in srgb, var(--cream) 14%, transparent);
  padding-top: 16px;
}

.result-grid b {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
}

.result-note {
  margin-top: 28px;
  font-size: 0.88rem;
  color: color-mix(in srgb, var(--cream) 68%, transparent);
}

/* FAQ */
.faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.08rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--copper);
  font-size: 1.4rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  color: var(--muted);
  margin-top: 12px;
  max-width: 52rem;
}

/* Page hero */
.page-hero {
  padding: 56px 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: end;
}

.page-hero:not(:has(img)) {
  grid-template-columns: 1fr;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  margin: 14px 0 16px;
}

.page-hero img {
  height: 280px;
  width: 100%;
  object-fit: cover;
  border-radius: 4px 48px 4px 4px;
}

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

.type-card {
  background: var(--cream);
  padding: 28px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.type-card h3 {
  font-size: 1.6rem;
  margin: 12px 0;
}

.type-card p {
  color: var(--muted);
}

.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
}

.checklist li {
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--copper);
  font-weight: 700;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
}

.contact-aside {
  background: var(--spruce-deep);
  color: var(--cream);
  padding: 40px;
}

.contact-aside h2 {
  font-size: 2.4rem;
  margin: 10px 0 24px;
}

.contact-aside a {
  color: var(--blush);
}

.contact-line {
  padding: 16px 0;
  border-top: 1px solid color-mix(in srgb, var(--cream) 12%, transparent);
}

.contact-line span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 6px;
}

.form-card {
  display: grid;
  gap: 16px;
}

.form-card .btn {
  justify-self: start;
  min-width: 220px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-success {
  display: none;
  background: var(--cream);
  padding: 28px;
  border: 1px solid var(--line);
}

.form-success.is-visible {
  display: block;
}

form.is-hidden {
  display: none;
}

.cta-band {
  background: var(--copper);
  color: var(--white);
}

.cta-band .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.cta-band h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  max-width: 16ch;
}

/* Footer */
.site-footer {
  background: var(--spruce-deep);
  color: color-mix(in srgb, var(--cream) 78%, transparent);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid color-mix(in srgb, var(--cream) 12%, transparent);
}

.site-footer .brand-name,
.site-footer h3 {
  color: var(--cream);
}

.site-footer h3 {
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.site-footer a:hover {
  color: var(--blush);
}

.site-footer li + li {
  margin-top: 8px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  font-size: 0.85rem;
}

.mobile-panel {
  display: none;
}

@media (max-width: 980px) {
  .hero h1,
  .page-hero h1 {
    max-width: none;
  }
  .nav,
  .header-phone {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-grid,
  .page-hero,
  .why-grid,
  .service-row,
  .service-row.reverse,
  .project-bento,
  .calc-panel,
  .types,
  .contact-grid,
  .checklist,
  .process-list,
  .stats,
  .footer-grid,
  .form-row,
  .cta-band .wrap {
    grid-template-columns: 1fr;
    display: grid;
  }

  .service-row.reverse .service-copy {
    order: 0;
  }

  .hero-visual,
  .hero-visual .main,
  .project.featured {
    min-height: 360px;
    height: 360px;
  }

  .hero-card {
    left: 16px;
    bottom: 16px;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
  }

  .cta-band .wrap {
    justify-items: start;
  }

  .mobile-panel {
    display: none;
    position: fixed;
    inset: var(--header) 0 0;
    background: var(--spruce-deep);
    z-index: 40;
    padding: 32px 24px;
  }

  body.nav-open .mobile-panel {
    display: grid;
    align-content: start;
    gap: 22px;
  }

  .mobile-panel a {
    color: var(--cream);
    font-family: var(--font-serif);
    font-size: 2rem;
  }

  .header-actions .btn {
    display: none;
  }
}

@media (max-width: 640px) {
  .wrap,
  .wrap-wide,
  .header-inner {
    width: calc(100% - 28px);
  }

  .section {
    padding: 64px 0;
  }

  .hero h1 {
    max-width: none;
  }

  .calc-form,
  .calc-result,
  .contact-aside {
    padding: 24px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
