:root {
  --ink: #141414;
  --muted: #68625b;
  --paper: #f7f3ed;
  --warm: #e7ded1;
  --cream: #fffaf3;
  --clay: #8b6f54;
  --olive: #596151;
  --line: rgba(20, 20, 20, 0.14);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

body.modal-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 92px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(247, 243, 237, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img,
.footer-brand img {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 0 0 1px rgba(20, 20, 20, 0.08);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
}

nav a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  min-height: 100vh;
  padding: 124px clamp(20px, 5vw, 72px) 44px;
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(54px, 7vw, 108px);
  line-height: 1.03;
}

h2 {
  max-width: 860px;
  font-size: clamp(38px, 5vw, 74px);
  line-height: 1.02;
}

h3 {
  font-size: 30px;
  line-height: 1.08;
}

.intro,
.section-heading p,
.about-copy p,
.contact-section p,
.faq-grid p,
.service-card p,
.process-list p,
footer p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.intro {
  max-width: 650px;
  margin-bottom: 34px;
  font-size: 20px;
}

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

.button,
.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 15px 24px;
  border: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-decoration: none;
  text-transform: uppercase;
}

.button-dark,
.contact-form button {
  background: var(--ink);
  color: #fff;
}

.button-light {
  background: transparent;
}

.hero-media {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: var(--warm);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: #fff;
}

.stats-band div {
  display: grid;
  gap: 12px;
  padding: 30px clamp(20px, 5vw, 72px);
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.stats-band div:last-child {
  border-right: 0;
}

.stats-band span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 3vw, 34px);
}

.section,
.portfolio-section,
.about-section,
.contact-section {
  padding: 100px clamp(20px, 5vw, 72px);
}

.section-heading {
  display: grid;
  gap: 22px;
  margin-bottom: 48px;
}

.section-heading.split {
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  align-items: end;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 380px));
  justify-content: center;
  gap: 18px;
}

.service-card,
.faq-grid article {
  min-height: 270px;
  padding: 32px;
  background: var(--cream);
  border: 1px solid var(--line);
  display: grid;
  align-content: center;
  gap: 16px;
}

.service-card h3,
.faq-grid h3 {
  margin-bottom: 0;
}

.portfolio-section {
  background: #ece4d8;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 0.85fr;
  grid-auto-rows: minmax(260px, 330px);
  gap: 18px;
}

.project {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border: 0;
  background: #d8cfc3;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.project-large {
  grid-column: span 1;
  grid-row: span 2;
}

.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

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

.project:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.project::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.04) 58%);
  content: "";
}

.project div {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
  z-index: 1;
  color: #fff;
}

.project span {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.project p {
  display: inline-flex;
  margin-top: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  line-height: 1.6;
  text-transform: uppercase;
}

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

.detail-card {
  display: grid;
  grid-template-rows: clamp(340px, 28vw, 460px) auto;
  min-height: 100%;
  background: var(--cream);
  border: 1px solid var(--line);
}

.detail-card img {
  width: 100%;
  height: 100%;
  min-height: clamp(340px, 28vw, 460px);
  object-fit: cover;
  object-position: center;
}

.detail-card:nth-child(1) img {
  object-position: center 42%;
}

.detail-card:nth-child(2) img {
  object-position: center 38%;
}

.detail-card:nth-child(3) img {
  object-position: center 55%;
}

.detail-card div {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.detail-card span {
  color: var(--olive);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.detail-card p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  padding: clamp(14px, 3vw, 34px);
  background: rgba(20, 20, 20, 0.78);
}

.gallery-modal.is-open {
  display: grid;
  place-items: center;
}

.gallery-panel {
  width: min(1180px, 100%);
  max-height: min(900px, 92vh);
  overflow: auto;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.34);
}

.gallery-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 4vw, 42px);
  border-bottom: 1px solid var(--line);
}

.gallery-header .eyebrow {
  margin-bottom: 12px;
}

.gallery-header h2 {
  font-size: clamp(34px, 5vw, 62px);
}

.gallery-close {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.gallery-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.32fr);
  gap: 18px;
  padding: clamp(18px, 4vw, 42px);
}

.gallery-feature {
  display: grid;
  gap: 14px;
}

.gallery-feature img {
  width: 100%;
  max-height: 68vh;
  background: var(--warm);
  object-fit: contain;
}

.gallery-feature figcaption {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.gallery-thumbs {
  display: grid;
  align-content: start;
  grid-template-columns: 1fr;
  gap: 12px;
}

.gallery-thumb {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.gallery-thumb img {
  width: 92px;
  height: 92px;
  object-fit: cover;
}

.gallery-thumb span {
  padding-right: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.35;
  text-transform: uppercase;
}

.gallery-thumb.is-active {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.gallery-close:focus-visible,
.gallery-thumb:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.process-section {
  background: var(--cream);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.process-list article {
  min-height: 250px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-list span {
  display: block;
  margin-bottom: 72px;
  color: var(--olive);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.about-image {
  min-height: 560px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.about-copy {
  display: grid;
  gap: 24px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 380px));
  justify-content: center;
  gap: 18px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(32px, 7vw, 96px);
  background: var(--ink);
  color: #fff;
}

.contact-section .eyebrow {
  color: #c8b89e;
}

.contact-section p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.72);
}

.contact-email {
  margin-top: 24px;
}

.contact-email a {
  display: inline-block;
  margin-top: 6px;
  color: #fff;
  font-weight: 800;
  text-decoration-color: rgba(255, 255, 255, 0.42);
  text-underline-offset: 5px;
}

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

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  padding: 16px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.contact-form button {
  border-color: #fff;
  cursor: pointer;
}

.form-note {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.5;
}

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

.footer-brand img {
  width: 48px;
  height: 48px;
}

.footer-email {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration-color: rgba(20, 20, 20, 0.28);
  text-underline-offset: 4px;
}

@media (max-width: 980px) {
  .hero,
  .about-section,
  .contact-section,
  .section-heading.split {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 150px;
  }

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

  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .project-large {
    grid-row: span 1;
  }

  .detail-strip {
    grid-template-columns: 1fr;
  }

  .detail-card {
    grid-template-rows: minmax(360px, 58vw) auto;
  }

  .detail-card img {
    min-height: 360px;
  }

  .gallery-body {
    grid-template-columns: 1fr;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-thumb {
    grid-template-columns: 1fr;
  }

  .gallery-thumb img {
    width: 100%;
    height: 140px;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    flex-direction: column;
    gap: 16px;
    padding: 16px 20px;
  }

  .brand {
    text-align: center;
  }

  .brand img {
    width: 58px;
    height: 58px;
  }

  nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 20px;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  h1 {
    font-size: clamp(46px, 16vw, 64px);
  }

  h2 {
    font-size: clamp(34px, 12vw, 48px);
  }

  .hero-media,
  .hero-media img,
  .about-image,
  .about-image img {
    min-height: 380px;
  }

  .stats-band {
    grid-template-columns: 1fr;
  }

  .stats-band div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .stats-band div:last-child {
    border-bottom: 0;
  }

  .section,
  .portfolio-section,
  .about-section,
  .contact-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

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

  .portfolio-grid {
    grid-auto-rows: minmax(300px, 360px);
  }

  .gallery-header {
    flex-direction: column;
  }

  .gallery-panel {
    max-height: 94vh;
  }

  .gallery-thumbs {
    grid-template-columns: 1fr;
  }

  .process-list span {
    margin-bottom: 36px;
  }

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