:root {
  color-scheme: light;
  --ink: #f8f3ea;
  --ink-soft: rgba(248, 243, 234, 0.78);
  --charcoal: #181713;
  --timber: #b87942;
  --sage: #8f9a72;
  --line: rgba(248, 243, 234, 0.26);
}

/* Lean service page layout */
.simple-page {
  background: #f4efe5;
  color: #1f1d18;
}

.simple-hero {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: 34px 0 54px;
}

.simple-copy {
  max-width: 520px;
}

.simple-copy h1 {
  margin: 0;
  color: #1f1d18;
  font-size: clamp(2.6rem, 5vw, 4.25rem);
  line-height: 0.96;
  letter-spacing: 0;
  font-weight: 900;
}

.simple-copy p:not(.eyebrow) {
  margin: 24px 0 0;
  color: rgba(31, 29, 24, 0.7);
  font-size: 1.08rem;
  line-height: 1.58;
}

.simple-hero-image {
  width: 100%;
  height: min(72vh, 720px);
  min-height: 520px;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.joinery-main-image {
  object-position: 64% 50%;
}

.build-main-image {
  object-position: center;
}

.simple-services {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid rgba(31, 29, 24, 0.16);
  border-bottom: 1px solid rgba(31, 29, 24, 0.16);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.simple-services span {
  color: rgba(31, 29, 24, 0.72);
  font-weight: 800;
  font-size: 0.96rem;
}

.simple-photo-pair {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 84px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.simple-photo-pair figure {
  margin: 0;
}

.simple-photo-pair img {
  width: 100%;
  height: 440px;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.simple-photo-pair figcaption {
  margin-top: 12px;
  color: rgba(31, 29, 24, 0.66);
  font-size: 0.95rem;
  line-height: 1.4;
}

.joinery-detail-image {
  object-position: 50% 44%;
}

.joinery-shelf-image {
  object-position: 58% 50%;
}

.build-detail-image {
  object-position: 56% 38%;
}

.build-view-image {
  object-position: 58% 42%;
}

@media (max-width: 820px) {
  .simple-hero,
  .simple-photo-pair,
  .simple-services {
    grid-template-columns: 1fr;
  }

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

  .simple-hero-image {
    height: 420px;
    min-height: 0;
  }

  .simple-services {
    gap: 12px;
  }

  .simple-photo-pair {
    padding-top: 38px;
  }

  .simple-photo-pair img {
    height: 330px;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--charcoal);
  color: var(--ink);
}

a {
  color: inherit;
}

.landing {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

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

.hero-image {
  object-fit: cover;
  object-position: center;
  z-index: -3;
}

.shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(24, 23, 19, 0.9) 0%, rgba(24, 23, 19, 0.66) 43%, rgba(24, 23, 19, 0.18) 100%),
    linear-gradient(180deg, rgba(24, 23, 19, 0.18), rgba(24, 23, 19, 0.82));
}

.topbar {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.nav a {
  text-decoration: none;
}

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

.hero-copy {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  align-self: center;
  padding: 72px 0 96px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(4.5rem, 17vw, 12rem);
  line-height: 0.86;
  letter-spacing: 0;
  font-weight: 900;
}

.intro {
  max-width: 540px;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: 1.18rem;
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-width: 164px;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 24px;
  text-decoration: none;
  font-weight: 800;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

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

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

.secondary {
  background: rgba(24, 23, 19, 0.34);
  color: var(--ink);
  backdrop-filter: blur(14px);
}

.secondary:hover,
.secondary:focus-visible {
  border-color: var(--sage);
  background: rgba(143, 154, 114, 0.22);
}

.service-strip {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.service-strip article {
  padding: 18px 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  align-items: start;
}

.service-strip span {
  color: var(--timber);
  font-weight: 800;
  font-size: 0.78rem;
}

.service-strip h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0;
}

.service-strip h2 a {
  text-decoration: none;
}

.service-strip p {
  grid-column: 2;
  margin: 6px 0 0;
  max-width: 360px;
  color: var(--ink-soft);
  line-height: 1.45;
  font-size: 0.92rem;
}

.page-body {
  background: #f5f0e8;
  color: #1f1d18;
}

.site-header {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand.dark {
  color: #1f1d18;
}

.dark-nav {
  color: rgba(31, 29, 24, 0.68);
}

.dark-nav a:hover,
.dark-nav a:focus-visible,
.dark-nav [aria-current="page"] {
  color: #1f1d18;
}

.joinery-hero,
.options-section,
.image-feature,
.process-section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.joinery-hero {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: 36px 0 72px;
}

.joinery-hero-copy h1,
.section-heading h2,
.image-feature h2 {
  margin: 0;
  color: #1f1d18;
  letter-spacing: 0;
}

.joinery-hero-copy h1 {
  max-width: 680px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.95;
  font-weight: 900;
}

.joinery-hero-copy p:not(.eyebrow),
.image-feature p:not(.eyebrow) {
  max-width: 610px;
  color: rgba(31, 29, 24, 0.7);
  font-size: 1.08rem;
  line-height: 1.58;
}

.dark-eyebrow {
  color: rgba(31, 29, 24, 0.6);
}

.dark-button {
  width: fit-content;
  margin-top: 16px;
  background: #1f1d18;
  color: #f8f3ea;
  border-color: #1f1d18;
}

.joinery-hero-image {
  margin: 0;
  min-height: 640px;
  overflow: hidden;
  border-radius: 8px;
}

.joinery-hero-image img,
.image-feature img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.options-section,
.process-section {
  padding: 76px 0;
  border-top: 1px solid rgba(31, 29, 24, 0.16);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 32px;
}

.section-heading h2,
.image-feature h2 {
  max-width: 760px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1;
  font-weight: 900;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(31, 29, 24, 0.16);
}

.options-grid article {
  min-height: 280px;
  padding: 26px;
  background: #f5f0e8;
  display: flex;
  flex-direction: column;
}

.options-grid span {
  color: #b87942;
  font-weight: 900;
  font-size: 0.78rem;
}

.options-grid h3 {
  margin: auto 0 12px;
  font-size: 1.4rem;
  letter-spacing: 0;
}

.options-grid p {
  margin: 0;
  color: rgba(31, 29, 24, 0.66);
  line-height: 1.5;
}

.image-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: 28px 0 88px;
}

.image-feature img {
  min-height: 460px;
  max-height: 640px;
  border-radius: 8px;
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(31, 29, 24, 0.16);
}

.process-list li {
  min-height: 180px;
  padding: 24px;
  border-right: 1px solid rgba(31, 29, 24, 0.16);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.process-list li:last-child {
  border-right: 0;
}

.process-list strong {
  font-size: 1.05rem;
}

.process-list span {
  color: rgba(31, 29, 24, 0.66);
  line-height: 1.5;
}

.build-page {
  background: #f4efe5;
}

.build-hero {
  position: relative;
  min-height: calc(100vh - 88px);
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-items: end;
}

.build-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(24, 23, 19, 0.82), rgba(24, 23, 19, 0.48) 46%, rgba(24, 23, 19, 0.08)),
    linear-gradient(180deg, rgba(24, 23, 19, 0.1), rgba(24, 23, 19, 0.76));
}

.build-hero > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.build-hero-copy {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 120px 0 84px;
  color: #f8f3ea;
}

.build-hero-copy h1 {
  max-width: 760px;
  font-size: clamp(3.4rem, 9vw, 7.5rem);
  line-height: 0.94;
}

.build-hero-copy p:not(.eyebrow) {
  max-width: 610px;
  color: rgba(248, 243, 234, 0.82);
  font-size: 1.08rem;
  line-height: 1.58;
}

.build-options {
  border-top: 0;
}

.build-gallery,
.joinery-gallery {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0 0 88px;
}

.build-gallery figure,
.joinery-gallery figure {
  margin: 0;
  min-height: 360px;
  overflow: hidden;
  border-radius: 8px;
  background: #e7ded1;
}

.build-gallery .gallery-large,
.joinery-gallery .gallery-large {
  grid-row: span 2;
  min-height: 738px;
}

.build-gallery img,
.joinery-gallery img {
  width: 100%;
  height: calc(100% - 62px);
  min-height: 298px;
  display: block;
  object-fit: cover;
}

.build-gallery .gallery-large img,
.joinery-gallery .gallery-large img {
  min-height: 676px;
}

.build-gallery figcaption,
.joinery-gallery figcaption {
  min-height: 62px;
  padding: 16px 18px;
  color: rgba(31, 29, 24, 0.7);
  line-height: 1.35;
  font-size: 0.94rem;
}

.joinery-gallery {
  padding-top: 0;
}

.build-feature {
  border-top: 1px solid rgba(31, 29, 24, 0.16);
  padding-top: 76px;
}

@media (max-width: 700px) {
  .landing {
    min-height: 100svh;
  }

  .shade {
    background:
      linear-gradient(180deg, rgba(24, 23, 19, 0.66) 0%, rgba(24, 23, 19, 0.9) 60%, rgba(24, 23, 19, 0.92) 100%),
      linear-gradient(90deg, rgba(24, 23, 19, 0.64), rgba(24, 23, 19, 0.22));
  }

  .topbar {
    padding-top: 20px;
  }

  .hero-copy {
    padding: 56px 0 66px;
  }

  h1 {
    font-size: clamp(4.25rem, 26vw, 7rem);
  }

  .intro {
    font-size: 1.02rem;
  }

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

  .service-strip {
    grid-template-columns: 1fr;
    margin-bottom: 18px;
  }

  .site-header {
    padding-top: 20px;
  }

  .joinery-hero,
  .image-feature {
    grid-template-columns: 1fr;
  }

  .joinery-hero {
    min-height: auto;
    padding: 34px 0 58px;
  }

  .joinery-hero-image {
    min-height: 360px;
  }

  .section-heading {
    display: block;
  }

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

  .options-grid article {
    min-height: 220px;
  }

  .image-feature {
    padding-bottom: 62px;
  }

  .image-feature img {
    min-height: 320px;
  }

  .process-list li {
    border-right: 0;
    border-bottom: 1px solid rgba(31, 29, 24, 0.16);
  }

  .process-list li:last-child {
    border-bottom: 0;
  }

  .build-hero {
    min-height: 82svh;
  }

  .build-hero-copy {
    padding: 80px 0 54px;
  }

  .build-gallery,
  .joinery-gallery {
    grid-template-columns: 1fr;
    padding-bottom: 62px;
  }

  .build-gallery .gallery-large,
  .build-gallery figure,
  .joinery-gallery .gallery-large,
  .joinery-gallery figure {
    min-height: 360px;
  }

  .build-gallery .gallery-large img,
  .build-gallery img,
  .joinery-gallery .gallery-large img,
  .joinery-gallery img {
    min-height: 298px;
  }
}
