:root {
  --brown: #6d4933;
  --olive: #4c4d2e;
  --plaster: #c9bcad;
  --taupe: #917c64;
  --ink: #26231d;
  --muted: #6f665b;
  --paper: #f7f2ea;
  --paper-strong: #fffaf2;
  --line: rgba(77, 67, 55, 0.2);
  --shadow: 0 22px 60px rgba(38, 35, 29, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(247, 242, 234, 0.9), rgba(247, 242, 234, 0.94)),
    url("assets/generated/plaster-wall-texture.jpg") center / 720px auto repeat;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

::selection {
  background: var(--olive);
  color: var(--paper-strong);
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper-strong);
  transform: translateY(-160%);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  min-height: 78px;
  padding: 18px 36px;
  color: var(--paper-strong);
  border-bottom: 1px solid rgba(255, 250, 242, 0.18);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-header--solid,
.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(247, 242, 234, 0.94);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  width: fit-content;
  flex-direction: column;
  line-height: 1;
  text-transform: uppercase;
}

.brand span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.36rem;
  font-weight: 500;
}

.brand--footer {
  text-transform: none;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  font-size: 0.9rem;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 8px 10px;
  background: transparent;
  color: inherit;
}

.hero,
.page-hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--paper-strong);
}

.hero picture,
.hero > img,
.page-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero img,
.page-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero--home img {
  object-position: center 42%;
}

.page-hero--projects img {
  object-position: center 48%;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(38, 35, 29, 0.78), rgba(38, 35, 29, 0.36) 46%, rgba(38, 35, 29, 0.08)),
    linear-gradient(0deg, rgba(38, 35, 29, 0.64), rgba(38, 35, 29, 0.05) 54%);
}

.hero__copy,
.page-hero__copy {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 40px));
  margin: 0 0 86px;
  padding-left: max(28px, calc((100vw - 1180px) / 2));
}

.hero__copy h1,
.page-hero__copy h1,
.text-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.7rem;
  line-height: 0.98;
  font-weight: 500;
}

.page-hero__copy h1,
.text-hero h1 {
  font-size: 4.1rem;
  max-width: 940px;
}

.hero__copy p,
.page-hero__copy p,
.text-hero > p {
  max-width: 680px;
  font-size: 1.16rem;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--taupe);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow {
  color: #e8dac8;
}

.hero__actions,
.cta-section__actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 11px 18px;
  font-weight: 700;
  line-height: 1.2;
}

.button--light {
  background: var(--paper-strong);
  color: var(--ink);
}

.button--ghost {
  border-color: rgba(255, 250, 242, 0.7);
  color: var(--paper-strong);
}

.button--dark {
  background: var(--olive);
  color: var(--paper-strong);
}

.button--outline {
  border-color: var(--line);
  color: var(--ink);
}

.button--outline-light {
  border-color: rgba(255, 250, 242, 0.5);
  color: var(--paper-strong);
}

.text-link {
  display: inline-flex;
  width: fit-content;
  border-bottom: 1px solid currentColor;
  color: var(--brown);
  font-weight: 700;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: rgba(247, 242, 234, 0.92);
}

.metric-strip article {
  min-height: 160px;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.metric-strip article:last-child {
  border-right: 0;
}

.metric-strip span,
.process-grid span,
.service-detail-grid span,
.contact-details span {
  color: var(--taupe);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-strip strong {
  display: block;
  margin-top: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 500;
}

.metric-strip p {
  margin: 10px 0 0;
  color: var(--muted);
}

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

.section--olive {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 92px max(20px, calc((100vw - 1180px) / 2));
  background: var(--olive);
  color: var(--paper-strong);
}

.section__intro {
  max-width: 760px;
  margin-bottom: 38px;
}

.section__intro--split {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section h2,
.section__intro h2,
.cta-section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  line-height: 1.06;
  font-weight: 500;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: 70px;
}

.intro-grid__copy {
  align-self: end;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.project-tile {
  display: grid;
  min-height: 470px;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 242, 0.16);
  border-radius: 6px;
  background: rgba(255, 250, 242, 0.08);
}

.project-tile img {
  width: 100%;
  height: 310px;
  object-fit: cover;
}

.project-tile__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.project-tile h3,
.service-detail-grid h2,
.process-grid h3,
.contact-details a {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.46rem;
  line-height: 1.18;
  font-weight: 500;
}

.project-tile p {
  margin: 0;
  color: rgba(255, 250, 242, 0.78);
  font-size: 0.95rem;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.project-meta span {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 5px 8px;
  color: inherit;
  font-size: 0.76rem;
}

.services-band {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 54px;
}

.service-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.service-list a {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.service-list span {
  color: var(--brown);
  font-weight: 800;
}

.service-list strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.2;
}

.process-grid,
.service-detail-grid,
.contact-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.process-grid article,
.service-detail-grid article,
.contact-details article {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px;
  background: rgba(255, 250, 242, 0.56);
}

.process-grid p,
.service-detail-grid p,
.contact-details p {
  color: var(--muted);
}

.cta-section {
  margin: 0 auto 76px;
  width: min(1180px, calc(100% - 40px));
  padding: 62px;
  border-radius: 6px;
  background: var(--brown);
  color: var(--paper-strong);
}

.cta-section .eyebrow {
  color: var(--plaster);
}

.text-hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 162px 0 72px;
}

.text-hero--wide {
  padding-bottom: 54px;
}

.text-hero p {
  color: var(--muted);
}

.project-browser {
  padding-top: 72px;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.filter-button.is-active {
  background: var(--olive);
  color: var(--paper-strong);
}

.project-list {
  display: grid;
  gap: 72px;
}

.project-feature {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  min-height: 640px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
  gap: 30px;
}

.project-feature__media {
  display: grid;
  grid-template-columns: 1fr 0.48fr;
  gap: 12px;
  min-height: 560px;
}

.project-feature__media button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.project-feature__media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.project-feature__hero {
  min-height: 560px;
}

.project-feature__thumbs {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 12px;
}

.project-feature__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.project-feature h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.2rem;
  line-height: 1;
  font-weight: 500;
}

.project-feature p {
  margin: 0;
  color: var(--muted);
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.project-gallery button {
  aspect-ratio: 4 / 3;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.project-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  padding: 22px;
  background: rgba(28, 25, 20, 0.94);
  color: var(--paper-strong);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  width: 100%;
  height: min(78vh, 860px);
  object-fit: contain;
}

.lightbox__close {
  justify-self: end;
  border: 1px solid rgba(255, 250, 242, 0.45);
  border-radius: 4px;
  padding: 8px 12px;
  background: transparent;
  color: var(--paper-strong);
}

.lightbox p {
  margin: 0;
  text-align: center;
}

.split-showcase {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  align-items: center;
  gap: 60px;
}

.split-showcase--reverse {
  grid-template-columns: 0.72fr 1fr;
}

.split-showcase figure {
  margin: 0;
}

.split-showcase img {
  width: 100%;
  max-height: 720px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.split-showcase p {
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding-left: 22px;
  position: relative;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--olive);
  content: "";
}

.contact-layout {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 156px 0 70px;
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 58px;
  align-items: start;
}

.contact-layout__intro h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.8rem;
  line-height: 1.04;
  font-weight: 500;
}

.contact-layout__intro p {
  color: var(--muted);
}

.inquiry-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
  background: rgba(255, 250, 242, 0.72);
}

.inquiry-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.inquiry-form .honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.inquiry-form .full {
  grid-column: 1 / -1;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px;
  background: var(--paper-strong);
  color: var(--ink);
}

.inquiry-form textarea {
  resize: vertical;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: start;
  padding: 42px 36px;
  border-top: 1px solid var(--line);
  background: rgba(247, 242, 234, 0.94);
}

.site-footer nav,
.site-footer address {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-style: normal;
}

.site-footer address {
  justify-content: flex-end;
}

.site-footer p {
  margin: 10px 0 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 16px 20px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px;
    background: var(--paper-strong);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .hero__copy h1,
  .page-hero__copy h1,
  .text-hero h1,
  .contact-layout__intro h1 {
    font-size: 3.2rem;
  }

  .metric-strip,
  .intro-grid,
  .services-band,
  .split-showcase,
  .split-showcase--reverse,
  .contact-layout,
  .project-feature {
    grid-template-columns: 1fr;
  }

  .featured-projects,
  .process-grid,
  .service-detail-grid,
  .contact-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-feature__media {
    grid-template-columns: 1fr;
  }

  .project-feature__thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .project-feature__hero {
    min-height: 430px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer address {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
    overflow-x: clip;
  }

  .hero,
  .page-hero {
    min-height: 78vh;
  }

  .hero__copy,
  .page-hero__copy {
    margin-bottom: 48px;
    padding-left: 20px;
  }

  .hero__copy h1,
  .text-hero h1,
  .contact-layout__intro h1 {
    font-size: 2.55rem;
  }

  .page-hero__copy h1 {
    max-width: 320px;
    font-size: 2.28rem;
  }

  .section,
  .text-hero,
  .contact-layout,
  .cta-section {
    width: min(100% - 28px, 1180px);
  }

  .section,
  .section--olive {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section h2,
  .section__intro h2,
  .cta-section h2,
  .project-feature h2 {
    font-size: 2.25rem;
  }

  .section__intro--split {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-filters {
    justify-content: flex-start;
  }

  .featured-projects,
  .process-grid,
  .service-detail-grid,
  .contact-details,
  .project-gallery,
  .inquiry-form {
    grid-template-columns: 1fr;
  }

  .service-list a {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .metric-strip article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-strip article:last-child {
    border-bottom: 0;
  }

  .project-tile {
    min-height: 420px;
  }

  .project-feature__hero,
  .project-feature__media {
    min-height: 360px;
  }

  .project-feature__thumbs {
    display: none;
  }

  .cta-section {
    padding: 34px 22px;
  }
}
