:root {
  --ink: #161615;
  --ink-2: #2f2d2a;
  --paper: #f3eee6;
  --paper-2: #fbfaf7;
  --stone: #c8beb1;
  --oak: #a77750;
  --clay: #79372f;
  --olive: #566052;
  --glass: #dce3e4;
  --line: rgba(22, 22, 21, .14);
  --muted: rgba(22, 22, 21, .68);
  --soft: rgba(22, 22, 21, .06);
  --white: #fffefa;
  --shadow: 0 28px 80px rgba(22, 22, 21, .16);
  --radius: 6px;
  --max: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

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

.site-shell {
  width: min(var(--max), 100%);
  margin: 0 auto;
  background: var(--paper-2);
  box-shadow: 0 0 0 1px var(--line);
  overflow: hidden;
}

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px clamp(18px, 3.4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, .92);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: grid;
  gap: 2px;
  text-decoration: none;
  min-width: fit-content;
}

.brand--logo {
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 14px;
}

.brand__logo {
  width: clamp(118px, 12vw, 178px);
  height: auto;
  display: block;
}

.brand__meta {
  display: grid;
  gap: 2px;
}

.brand__name {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 2.8vw, 48px);
  font-weight: 600;
  line-height: .92;
  letter-spacing: 0;
}

.brand__line,
.eyebrow,
.micro,
.tag {
  font-size: 12px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0;
  color: rgba(22, 22, 21, .6);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: rgba(22, 22, 21, .7);
  font-size: 14px;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
}

.nav .button,
.nav .button--accent {
  color: var(--white);
}

.button,
.ghost-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
}

.button--accent {
  border-color: var(--clay);
  background: var(--clay);
}

.ghost-button {
  border: 1px solid var(--line);
  background: rgba(255, 254, 250, .48);
  color: var(--ink);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(390px, .93fr) minmax(460px, 1.07fr);
  min-height: 720px;
  border-bottom: 1px solid var(--line);
}

.hero > *,
.split > *,
.section__head > *,
.contact-layout > *,
.quote-card > * {
  min-width: 0;
}

.hero--doors {
  grid-template-columns: minmax(430px, 1.04fr) minmax(410px, .96fr);
}

.hero__copy {
  padding: clamp(50px, 6vw, 86px) clamp(22px, 4vw, 56px) clamp(42px, 4.5vw, 62px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 44px;
  min-width: 0;
}

.hero__text {
  max-width: 720px;
  min-width: 0;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

h1,
h2,
.serif {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0;
}

h1 {
  margin-top: 12px;
  font-size: clamp(56px, 6.4vw, 106px);
  line-height: .9;
  max-width: 100%;
  overflow-wrap: break-word;
}

.lead {
  max-width: 650px;
  margin-top: 26px;
  font-size: clamp(18px, 1.52vw, 23px);
  color: var(--muted);
  overflow-wrap: break-word;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 640px;
}

.proof-strip b {
  display: block;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: .9;
  font-weight: 600;
}

.proof-strip span {
  display: block;
  margin-top: 8px;
  color: rgba(22, 22, 21, .6);
  font-size: 13px;
}

.hero__media {
  min-height: 720px;
  position: relative;
  overflow: hidden;
  background: var(--stone);
}

.hero__media img {
  width: 100%;
  height: 100%;
  min-height: 720px;
  display: block;
  object-fit: cover;
  filter: saturate(.86) contrast(1.04);
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22,22,21,.02), rgba(22,22,21,.28));
  pointer-events: none;
}

.image-caption {
  position: absolute;
  left: clamp(18px, 2.4vw, 34px);
  right: clamp(18px, 2.4vw, 34px);
  bottom: clamp(20px, 2.5vw, 36px);
  color: var(--white);
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  text-shadow: 0 1px 18px rgba(0,0,0,.3);
}

.image-caption strong {
  max-width: 520px;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 44px);
  line-height: .96;
  font-weight: 600;
}

.image-caption span {
  max-width: 220px;
  font-size: 14px;
}

.section {
  padding: clamp(54px, 6vw, 88px) clamp(18px, 3.4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.section--dark {
  background: var(--ink);
  color: var(--white);
}

.section--dark .section__intro,
.section--dark .micro,
.section--dark .card p,
.section--dark .muted {
  color: rgba(255, 254, 250, .7);
}

.section__head {
  display: grid;
  grid-template-columns: minmax(250px, 440px) minmax(320px, 1fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: end;
  margin-bottom: 34px;
}

h2 {
  font-size: clamp(38px, 4vw, 72px);
  line-height: .94;
}

.section__intro {
  max-width: 790px;
  color: var(--muted);
  font-size: clamp(17px, 1.35vw, 20px);
}

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

.service-card,
.card,
.quote-card,
.form-card,
.faq-item {
  border: 1px solid var(--line);
  background: rgba(255, 254, 250, .58);
}

.service-card {
  min-height: 250px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: "";
  width: 120px;
  height: 120px;
  border: 1px solid rgba(22, 22, 21, .12);
  position: absolute;
  right: -28px;
  bottom: -28px;
  transform: rotate(11deg);
}

.service-card h3,
.card h3,
.faq-item h3,
.step h3 {
  font-size: 23px;
  line-height: 1.12;
}

.service-card p,
.card p,
.faq-item p,
.step p {
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: 1.1fr .9fr .9fr;
  gap: 16px;
}

.gallery--doors {
  grid-template-columns: 1.05fr .95fr;
}

.project-tile {
  min-height: 470px;
  position: relative;
  overflow: hidden;
  background: var(--stone);
}

.project-tile--wide {
  grid-row: span 2;
  min-height: 720px;
}

.project-tile img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
  transition: transform .6s ease;
}

.project-tile:hover img {
  transform: scale(1.025);
}

.project-tile figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: rgba(251, 250, 247, .88);
  backdrop-filter: blur(12px);
}

.project-tile figcaption b {
  font-size: 15px;
}

.project-tile figcaption span {
  color: rgba(22, 22, 21, .58);
  font-size: 12px;
}

.split {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: clamp(24px, 4vw, 58px);
  align-items: stretch;
}

.split__media {
  min-height: 520px;
  overflow: hidden;
  background: var(--stone);
}

.split__media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  display: block;
}

.split__copy {
  display: grid;
  gap: 28px;
  align-content: center;
}

.list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.list li {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.list li::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--clay);
  flex: 0 0 auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
}

.step {
  counter-increment: step;
  border-left: 1px solid var(--line);
  min-height: 190px;
  padding-left: 18px;
  display: grid;
  align-content: start;
  gap: 16px;
}

.step::before {
  content: "0" counter(step);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: .9;
  color: var(--clay);
}

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

.card {
  min-height: 230px;
  padding: 24px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.doors-types {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.door-type {
  min-height: 290px;
  border: 1px solid var(--line);
  padding: 20px;
  display: grid;
  gap: 18px;
  align-content: start;
  background: rgba(255, 254, 250, .62);
}

.door-visual {
  height: 128px;
  border: 1px solid rgba(22, 22, 21, .2);
  background:
    linear-gradient(90deg, transparent 47%, rgba(22,22,21,.14) 48%, rgba(22,22,21,.14) 52%, transparent 53%),
    linear-gradient(180deg, rgba(255,255,255,.56), rgba(167,119,80,.16));
}

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

.quote-card {
  padding: clamp(28px, 4vw, 52px);
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 34px;
  align-items: center;
}

.quote-card blockquote {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 3.8vw, 64px);
  line-height: .96;
}

.quote-card p {
  color: var(--muted);
  font-size: 18px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(320px, .86fr) minmax(360px, 1.14fr);
  gap: 18px;
}

.contact-panel,
.form-card {
  padding: clamp(24px, 3vw, 36px);
}

.contact-panel {
  background: var(--ink);
  color: var(--white);
  min-height: 100%;
  display: grid;
  align-content: space-between;
  gap: 36px;
}

.contact-panel a {
  text-decoration: none;
}

.contact-panel p,
.contact-panel .micro {
  color: rgba(255, 254, 250, .7);
}

.contact-number {
  display: block;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 4.4vw, 72px);
  line-height: .95;
  margin: 16px 0;
}

.form-card {
  box-shadow: var(--shadow);
}

.lead-form {
  display: grid;
  gap: 14px;
}

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

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

.field label {
  color: rgba(22, 22, 21, .64);
  font-size: 13px;
}

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

.field textarea {
  min-height: 106px;
  padding-top: 13px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(22, 22, 21, .5);
}

.form-status {
  min-height: 24px;
  color: var(--muted);
  font-size: 14px;
}

.form-status.is-error {
  color: #8f261e;
}

.form-status.is-success {
  color: #2f6b42;
}

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

.faq-item {
  padding: 22px;
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer {
  padding: 34px clamp(18px, 3.4vw, 48px) 44px;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  background: var(--ink);
  color: var(--white);
}

.footer a {
  color: rgba(255, 254, 250, .72);
  text-decoration: none;
}

.sticky-cta {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1060px) {
  .hero,
  .hero--doors,
  .split,
  .contact-layout,
  .quote-card {
    grid-template-columns: 1fr;
  }

  .hero__media,
  .hero__media img {
    min-height: 560px;
  }

  .service-grid,
  .cards,
  .gallery,
  .gallery--doors,
  .doors-types {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-tile--wide {
    grid-row: auto;
    min-height: 520px;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 70px;
  }

  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .brand--logo {
    grid-template-columns: 1fr;
    row-gap: 6px;
  }

  .brand__logo {
    width: 152px;
  }

  .nav {
    justify-content: flex-start;
  }

  .nav a:not(.button) {
    display: none;
  }

  h1 {
    font-size: clamp(38px, 9.6vw, 42px);
    line-height: 1.04;
  }

  .lead,
  .section__intro {
    max-width: 100%;
    font-size: 16px;
  }

  .hero__copy {
    padding-top: 46px;
  }

  .hero__actions {
    align-items: stretch;
  }

  .hero__actions .button,
  .hero__actions .ghost-button {
    width: 100%;
  }

  .hero__media,
  .hero__media img {
    min-height: 500px;
  }

  .image-caption {
    display: block;
  }

  .image-caption span {
    display: block;
    margin-top: 10px;
  }

  .section__head,
  .service-grid,
  .cards,
  .gallery,
  .gallery--doors,
  .doors-types,
  .steps,
  .proof-strip,
  .form-grid,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .project-tile,
  .project-tile--wide {
    min-height: 430px;
  }

  .project-tile figcaption {
    display: grid;
  }

  .quote-card blockquote {
    font-size: 38px;
  }

  .contact-number {
    font-size: 46px;
  }

  .sticky-cta {
    display: flex;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    background: var(--clay);
    color: var(--white);
    text-decoration: none;
    z-index: 30;
    box-shadow: 0 14px 34px rgba(22, 22, 21, .24);
  }
}
