/* ===========================================================
   Whitetail Builders LLC — design tokens
   Palette pulled from the job-site materials themselves:
   red Tennessee clay, weathered barn metal, CMU/limestone,
   antique brass hardware, treeline pine.
   =========================================================== */

:root {
  --charcoal: #17140f;
  --charcoal-soft: #2b2620;
  --limestone: #f4f3f1;
  --limestone-white: #ffffff;
  --clay: #c31f2b;
  --clay-dark: #9c1822;
  --barnwood: #55534c;
  --brass: #55534c;
  --brass-soft: #85827a;
  --pine: #17140f;
  --pine-soft: #2b2620;

  --ink: #17140f;
  --ink-soft: #4a473f;

  --font-display: "Bitter", Georgia, serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;
  --fs-lead: 1.25rem;
  --fs-h4: 1.375rem;
  --fs-h3: 1.75rem;
  --fs-h2: clamp(2rem, 3.4vw, 2.75rem);
  --fs-h1: clamp(2.5rem, 5.4vw, 4.25rem);

  --max-text: 62ch;
  --max-wide: 1240px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--limestone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.wrap {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 1.75rem;
}

.lede {
  max-width: var(--max-text);
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  line-height: 1.55;
}

.body-copy {
  max-width: var(--max-text);
  color: var(--ink-soft);
}

section {
  padding: 5.5rem 0;
}

.section-head {
  margin-bottom: 2.75rem;
}

.section-head h2 {
  font-size: var(--fs-h2);
  margin-bottom: 0.9rem;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

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

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

.btn-ghost {
  background: transparent;
  border-color: currentColor;
  color: var(--charcoal);
}

.btn-ghost:hover {
  background: var(--charcoal);
  color: var(--limestone-white);
}

.btn-ghost-light {
  background: transparent;
  border-color: rgba(247, 244, 236, 0.55);
  color: var(--limestone-white);
}

.btn-ghost-light:hover {
  background: rgba(247, 244, 236, 0.12);
  border-color: var(--limestone-white);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--limestone-white);
  border-bottom: 2px solid var(--clay);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.brand-mark {
  display: block;
  line-height: 0;
  flex-shrink: 0;
}

/* The logo file includes a black plate with a phone number along the bottom. The site is
   email-only, so the logo is shown cropped to its top 761 of 1024 rows (the house, antlers
   and wordmark), which ends just above the plate. The image file itself is unchanged. */
.brand-mark img {
  height: 80px;
  width: auto;
  aspect-ratio: 1536 / 761;
  object-fit: cover;
  object-position: top;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.85rem;
  margin: 0;
  padding: 0;
}

@media (min-width: 881px) and (max-width: 1140px) {
  .main-nav {
    gap: 1.1rem;
  }

  .main-nav ul {
    gap: 1rem;
  }

  .main-nav .btn {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }
}

.main-nav a:not(.btn) {
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.98rem;
  position: relative;
  padding-bottom: 3px;
}

.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--clay);
  transition: width 0.2s var(--ease);
}

.main-nav a:not(.btn):hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  position: relative;
  transition: transform 0.2s var(--ease);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: var(--limestone-white);
  background: linear-gradient(180deg, rgba(23, 20, 15, 0.3) 0%, rgba(23, 20, 15, 0.66) 48%, rgba(23, 20, 15, 0.93) 100%),
    url("assets/hero-front.jpg") center 100% / cover no-repeat;
  overflow: hidden;
}

.hero-content {
  padding: 4.5rem 0 4rem;
  max-width: 760px;
}

.hero h1 {
  color: var(--limestone-white);
  font-size: var(--fs-h1);
  opacity: 0;
  transform: translateY(18px);
}

.hero .lede {
  color: rgba(247, 244, 236, 0.86);
  margin-top: 1.4rem;
  opacity: 0;
  transform: translateY(18px);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
  opacity: 0;
  transform: translateY(18px);
}

@media (prefers-reduced-motion: no-preference) {
  .hero h1 {
    animation: rise 0.8s var(--ease) 0.15s forwards;
  }
  .hero .lede {
    animation: rise 0.8s var(--ease) 0.35s forwards;
  }
  .hero-ctas {
    animation: rise 0.8s var(--ease) 0.55s forwards;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1,
  .hero .lede,
  .hero-ctas {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- build strip ---------- */

.build {
  background: var(--limestone);
  border-bottom: 1px solid rgba(85, 83, 76, 0.25);
}

.build-intro {
  max-width: 46ch;
  margin-bottom: 3rem;
}

.build-intro h2 {
  font-size: var(--fs-h2);
  margin-bottom: 0.75rem;
}

.build-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.build-row::before {
  content: "";
  position: absolute;
  top: 96px;
  left: 0;
  right: 0;
  height: 1px;
  background-image: repeating-linear-gradient(
    to right,
    var(--brass) 0,
    var(--brass) 1px,
    transparent 1px,
    transparent 14px
  );
  opacity: 0.55;
  z-index: 0;
}

.build-step {
  position: relative;
  padding: 0 1.75rem;
  opacity: 0;
  transform: translateY(16px);
}

.build-step:first-child {
  padding-left: 0;
}

.build-step:last-child {
  padding-right: 0;
}

.build-step.is-visible {
  animation: rise 0.7s var(--ease) forwards;
}

.build-step:nth-child(2).is-visible {
  animation-delay: 0.12s;
}

.build-step:nth-child(3).is-visible {
  animation-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  .build-step {
    opacity: 1;
    transform: none;
  }
}

.build-figure {
  border: 1px solid var(--barnwood);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--charcoal);
}

.build-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.build-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--brass);
  margin: 1.15rem 0 0.35rem;
}

.build-step h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.build-step p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  max-width: 32ch;
}

/* ---------- services ---------- */

.services-list {
  border-top: 1px solid rgba(85, 83, 76, 0.3);
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  padding: 3.25rem 0;
  border-bottom: 1px solid rgba(85, 83, 76, 0.3);
}

.service-row:nth-child(even) .service-figure {
  order: 2;
}

.service-text h3 {
  font-size: var(--fs-h3);
  margin-bottom: 1rem;
}

.service-text p {
  color: var(--ink-soft);
  max-width: 42ch;
}

.service-figure {
  border: 1px solid var(--barnwood);
  aspect-ratio: 5 / 4;
  overflow: hidden;
}

.service-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.service-row:hover .service-figure img {
  transform: scale(1.035);
}

/* ---------- featured builds ---------- */

.builds {
  background: var(--limestone-white);
}

.build-project {
  margin-bottom: 5rem;
}

.build-project:last-child {
  margin-bottom: 0;
}

.build-project-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--barnwood);
  padding-bottom: 1rem;
  margin-bottom: 1.75rem;
}

.build-project-head h3 {
  font-size: var(--fs-h3);
}

.build-project-tag {
  font-size: 0.92rem;
  color: var(--brass);
  font-weight: 600;
}

.build-project p.body-copy {
  margin-bottom: 1.75rem;
}

.build-project-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.75rem;
}

.build-project-grid .frame-tall {
  grid-row: span 2;
  aspect-ratio: 4 / 5;
}

.build-project-grid .frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--barnwood);
}

.build-project-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--barnwood);
}

.build-project-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.build-project-grid figure:hover img {
  transform: scale(1.04);
}

.build-project-grid .stack {
  display: grid;
  gap: 0.75rem;
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}

.mosaic + .mosaic {
  margin-top: 0.75rem;
}

.mosaic figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--barnwood);
  background: var(--charcoal);
  aspect-ratio: 3 / 2;
}

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

.mosaic figure:hover img {
  transform: scale(1.04);
}

.mosaic .full {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.mosaic .half {
  grid-column: span 3;
}

.mosaic .lead {
  grid-column: span 4;
  grid-row: span 2;
  aspect-ratio: auto;
}

.mosaic .side {
  grid-column: span 2;
}

.mosaic.flip .lead {
  grid-column: 3 / span 4;
  grid-row: 1 / span 2;
}

.mosaic.flip .side {
  grid-column: 1 / span 2;
}

/* ---------- gallery ---------- */

.gallery-grid {
  column-count: 3;
  column-gap: 0.75rem;
}

.gallery-grid figure {
  margin: 0 0 0.75rem;
  break-inside: avoid;
  border: 1px solid var(--barnwood);
  overflow: hidden;
  position: relative;
}

.gallery-grid img {
  width: 100%;
  display: block;
  transition: transform 0.5s var(--ease);
}

.gallery-grid figure:hover img {
  transform: scale(1.045);
}

/* ---------- about ---------- */

.about {
  position: relative;
  overflow: hidden;
  color: var(--charcoal);
  background: var(--limestone-white);
}

/* The Whitetail logo as a large, faded background mark. The aspect ratio crops the
   bottom of the image, which carries a phone number. */
.about::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1100px, 100%);
  aspect-ratio: 1536 / 761;
  transform: translate(-50%, -50%);
  background: url("assets/logo-white.webp") top center / 100% auto no-repeat;
  opacity: 0.13;
  pointer-events: none;
}

.about .wrap {
  position: relative;
  max-width: 800px;
}

.about h2 {
  color: var(--charcoal);
  font-size: var(--fs-h2);
  margin-bottom: 0.6rem;
}

.about .about-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--clay);
  margin-bottom: 1.75rem;
}

.about .lede-dark {
  color: var(--charcoal);
  font-size: var(--fs-lead);
  max-width: var(--max-text);
  line-height: 1.55;
  margin-bottom: 1.85rem;
}

.about p {
  color: rgba(23, 20, 15, 0.86);
  font-size: 1.03rem;
  max-width: var(--max-text);
  line-height: 1.7;
}

.about p + p {
  margin-top: 1.15rem;
}

/* ---------- estimates ---------- */

.estimates {
  background: var(--limestone-white);
  border-top: 1px solid rgba(85, 83, 76, 0.25);
}

section[id] {
  scroll-margin-top: 6.5rem;
}

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

.calc {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2.5rem 3.5rem;
  align-items: start;
}

.calc-form {
  grid-column: 1;
}

.calc-intro {
  margin-bottom: 1.75rem;
}

.calc-field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}

.calc-hint {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
  max-width: 52ch;
}

.calc-sqft {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.calc-sqft input {
  width: 11rem;
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 600;
  padding: 0.65rem 0.9rem;
  color: var(--charcoal);
  background: var(--limestone-white);
  border: 1px solid var(--barnwood);
  border-radius: 0;
}

.calc-sqft input[aria-invalid="true"] {
  border-color: var(--clay);
  box-shadow: inset 0 0 0 1px var(--clay);
}

.calc-unit {
  font-weight: 600;
  color: var(--ink-soft);
}

.calc-error {
  margin-top: 0.6rem;
  font-weight: 600;
  color: var(--clay-dark);
  max-width: 52ch;
}

.calc-q {
  border: 0;
  padding: 0;
  margin: 2rem 0 0;
  min-width: 0;
}

.calc-q legend {
  padding: 0;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--charcoal);
}

.calc-options {
  display: grid;
  gap: 0.5rem;
}

.calc-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.calc-option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.calc-option-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1rem 0.85rem 3.1rem;
  min-height: 3.25rem;
  justify-content: center;
  background: var(--limestone-white);
  border: 1px solid rgba(85, 83, 76, 0.55);
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}

.calc-option-body::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: -0.575rem;
  border: 2px solid var(--barnwood);
  border-radius: 50%;
  background: var(--limestone-white);
}

.calc-option:hover .calc-option-body {
  border-color: var(--charcoal);
}

.calc-option input:checked + .calc-option-body {
  border-color: var(--clay);
  background: rgba(195, 31, 43, 0.05);
  box-shadow: inset 4px 0 0 var(--clay);
}

.calc-option input:checked + .calc-option-body::before {
  border-color: var(--clay);
  background: radial-gradient(circle, var(--clay) 0 42%, var(--limestone-white) 46%);
}

.calc-option input:focus-visible + .calc-option-body {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
}

.calc-option-label {
  font-weight: 500;
  color: var(--charcoal);
}

.calc-option-flag {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clay-dark);
}

.calc-included {
  margin-top: 1.75rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

.calc-bar {
  display: none;
}

.calc-result {
  grid-column: 2;
  position: sticky;
  top: 7.5rem;
  padding: 2rem 2rem 1.75rem;
  background: var(--charcoal);
  color: var(--limestone-white);
  border-top: 4px solid var(--clay);
}

.calc-result h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--limestone-white);
}

.calc-badge {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  background: var(--barnwood);
  color: var(--limestone-white);
}

.calc-total {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.1vw, 2.5rem);
  line-height: 1.1;
}

.calc-rate {
  margin-top: 0.55rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.calc-basis {
  margin-top: 0.15rem;
  font-size: 0.95rem;
  color: rgba(247, 244, 236, 0.72);
}

.calc-site {
  margin-top: 1.25rem;
  padding: 0.8rem 1rem;
  border-left: 4px solid var(--clay);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
}

.calc-site strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--limestone-white);
}

.calc-fineprint {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(247, 244, 236, 0.75);
}

.calc-discuss {
  margin-top: 1.5rem;
  width: 100%;
  justify-content: center;
}

.calc-discuss[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

.calc-result.is-stale .calc-total,
.calc-result.is-stale .calc-rate,
.calc-result.is-stale .calc-basis,
.calc.is-stale .calc-bar-total {
  opacity: 0.4;
}

.calc-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(85, 83, 76, 0.3);
}

.calc-detail h4 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.calc-selections dt {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.calc-selections dt:first-child {
  margin-top: 0;
}

.calc-selections dd {
  margin: 0.1rem 0 0;
}

.calc-table {
  width: 100%;
  border-collapse: collapse;
}

.calc-table th,
.calc-table td {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(85, 83, 76, 0.25);
  vertical-align: top;
}

.calc-table th {
  padding-right: 1rem;
  text-align: left;
  font-weight: 500;
}

.calc-table td {
  text-align: right;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.calc-row-detail {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ink-soft);
}

.calc-row-strong th,
.calc-row-strong td {
  font-weight: 700;
  border-bottom-color: var(--barnwood);
}

.calc-row-range th,
.calc-row-range td {
  font-weight: 700;
  color: var(--clay-dark);
  border-bottom: 0;
}

.calc-note {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.estimate-summary {
  margin: 0 0 2rem;
  padding: 1.5rem 1.75rem;
  max-width: 560px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-left: 4px solid var(--clay);
}

.estimate-summary h3 {
  margin-bottom: 0.9rem;
  font-size: 1.2rem;
  color: var(--limestone-white);
}

.estimate-summary ul {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

.estimate-summary li {
  margin-bottom: 0.4rem;
  color: rgba(247, 244, 236, 0.9);
}

.estimate-summary-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.estimate-summary-status {
  font-size: 0.9rem;
  color: rgba(247, 244, 236, 0.8);
}

.estimate-summary-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(247, 244, 236, 0.65);
}

@media (max-width: 880px) {
  .calc {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .calc-form,
  .calc-result {
    grid-column: 1;
  }

  .calc-result {
    position: static;
  }

  .calc-detail {
    grid-template-columns: 1fr;
    margin-top: 2rem;
  }

  .calc-bar {
    display: flex;
    position: sticky;
    bottom: 0;
    z-index: 20;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 0.7rem 1rem;
    background: var(--charcoal);
    color: var(--limestone-white);
    border-top: 3px solid var(--clay);
  }

  .calc-bar.is-hidden {
    visibility: hidden;
    pointer-events: none;
  }

  .calc-bar-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(247, 244, 236, 0.75);
  }

  .calc-bar-total {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
  }

  .calc-bar-link {
    flex-shrink: 0;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--limestone-white);
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

/* ---------- contact / footer ---------- */

.contact {
  background: var(--charcoal);
  color: var(--limestone-white);
  padding-top: 5rem;
  padding-bottom: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.contact h2 {
  color: var(--limestone-white);
  font-size: var(--fs-h2);
  margin-bottom: 1.1rem;
}

.contact-lede {
  color: rgba(247, 244, 236, 0.78);
  max-width: 44ch;
  font-size: var(--fs-lead);
  margin-bottom: 2rem;
}

.email-link {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 4.6vw, 2rem);
  color: var(--limestone-white);
  text-decoration: none;
  border-bottom: 2px solid var(--clay);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.email-link:hover {
  color: var(--brass-soft);
}

.contact-note {
  margin-top: 1.75rem;
  max-width: 48ch;
}

.contact-note h3 {
  margin-bottom: 0.35rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--brass-soft);
}

.contact-note p {
  color: rgba(247, 244, 236, 0.82);
}

.contact-meta {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  color: rgba(247, 244, 236, 0.78);
}

.contact-meta a {
  color: rgba(247, 244, 236, 0.78);
  text-decoration: underline;
  text-decoration-color: rgba(195, 31, 43, 0.7);
  text-underline-offset: 3px;
}

.contact-meta a:hover {
  color: var(--limestone-white);
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-content: flex-start;
}

.service-tags span {
  background: var(--barnwood);
  color: var(--limestone-white);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 0.95rem;
}

.contact-side h4 {
  color: var(--brass-soft);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  margin-bottom: 0.9rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.75rem 0;
  color: rgba(247, 244, 236, 0.55);
  font-size: 0.85rem;
}

.footer-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  text-align: right;
}

.footer-logo {
  display: inline-flex;
  background: var(--limestone-white);
  padding: 0.6rem 0.9rem;
  line-height: 0;
}

.footer-logo img {
  height: 64px;
  width: auto;
  aspect-ratio: 1536 / 761;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* ---------- responsive ---------- */

@media (max-width: 880px) {
  section {
    padding: 3.75rem 0;
  }

  .brand-mark img {
    height: 58px;
  }

  .hero {
    background-size: 100% 100%, auto 140%;
    background-position: 0 0, 50% 100%;
  }

  .main-nav {
    position: fixed;
    inset: 82px 0 0 0;
    background: var(--limestone-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.75rem;
    gap: 1.75rem;
    transform: translateX(100%);
    transition: transform 0.25s var(--ease);
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1.25rem;
    font-size: 1.15rem;
  }

  .nav-toggle {
    display: block;
  }

  .build-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .build-row::before {
    display: none;
  }

  .build-step {
    padding: 0 !important;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2.5rem 0;
  }

  .service-row:nth-child(even) .service-figure {
    order: 0;
  }

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

  .build-project-grid .frame-tall {
    grid-row: span 1;
    aspect-ratio: 4 / 3;
  }

  .gallery-grid {
    column-count: 2;
  }

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

  .mosaic .full,
  .mosaic .lead {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 3 / 2;
  }

  .mosaic .half,
  .mosaic .side,
  .mosaic.flip .side {
    grid-column: span 1;
  }

  .mosaic.flip .lead {
    grid-column: 1 / -1;
    grid-row: auto;
    order: -1;
    aspect-ratio: 3 / 2;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding: 0 1.25rem;
  }

  .gallery-grid {
    column-count: 1;
  }

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

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

  .mosaic .half,
  .mosaic .side,
  .mosaic.flip .side {
    grid-column: 1 / -1;
  }

  .hero {
    min-height: 92vh;
    align-items: flex-end;
  }

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

  .footer-text {
    align-items: flex-start;
    text-align: left;
  }
}
