/* T. C. Dirtworks — proof of concept
   Neutral palette with one earth accent.
   Fonts: Instrument Serif and Outfit, SIL OFL. See fonts/OFL-*.txt. */

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f4f3f0;
  --surface: #fffcf8;
  --ink: #141311;
  --muted: #5c574f;
  --line: #e4dfd6;
  --clay: #7a3e12;
  --accent: var(--clay);
  --charcoal: #0c0b0a;
  --accent-soft: #f6eadf;
  --dark: #121110;
  --muted-on-dark: #cfc8be;
  --header-max: 7.25rem;
  --header-min: 5rem;
  --header-h: var(--header-max);
  --container: 1240px;
  --container-wide: 1480px;
  --gutter: clamp(1.15rem, 2.2vw, 2.75rem);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Outfit", "Segoe UI", Helvetica, Arial, sans-serif;
  --shadow: 0 18px 40px rgba(20, 19, 17, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

html.is-compact {
  --header-h: var(--header-min);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  padding-top: var(--header-h);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  transition: padding-top 0.28s var(--ease);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

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

::selection {
  background: #f0dcc8;
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--ink);
  color: #fff;
  padding: 0.55rem 0.9rem;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.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;
}

.wrap {
  width: min(var(--container), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.wrap-wide {
  width: min(var(--container-wide), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.lede,
.about-copy p,
.section-head {
  max-width: 62ch;
}

.section {
  padding-block: clamp(2.4rem, 4vw, 4.25rem);
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.band {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.eyebrow,
.trust-kicker {
  margin: 0 0 0.7rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
.serif {
  font-family: var(--serif);
  font-weight: 400;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(2.8rem, 6.4vw, 5.4rem);
  line-height: 0.92;
}

h1 span,
.hero h1 span {
  display: block;
}

h2 {
  margin: 0;
  font-size: clamp(2.15rem, 4vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

p {
  margin: 0;
}

.lede {
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-head {
  display: grid;
  gap: 0.85rem;
  max-width: 40rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.process-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.process-intro .section-head {
  margin-bottom: 0;
}

.process-logo {
  display: none;
  width: 7.75rem;
  height: auto;
  flex: 0 0 auto;
  margin-left: auto;
}

@media (min-width: 900px) {
  .process-logo {
    display: block;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.2rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font: 560 0.98rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:hover {
  background: #2a2622;
}

.btn:active {
  transform: translateY(1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: rgba(20, 19, 17, 0.05);
}

.text-link {
  font-weight: 600;
  text-underline-offset: 0.18em;
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(244, 243, 240, 0.97);
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: height 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease), background 0.28s var(--ease);
}

html.is-compact .site-header {
  background: rgba(255, 252, 248, 0.96);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(20, 19, 17, 0.05);
}

.header-inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  height: 100%;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.logo {
  display: block;
  width: 5.5rem;
  height: auto;
  background: transparent;
  transition: width 0.28s var(--ease);
}

html.is-compact .logo {
  width: 3.85rem;
}

.footer-logo {
  display: inline-flex;
  margin-bottom: 0.75rem;
}

.footer-logo img {
  display: block;
  width: 5.25rem;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-left: auto;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover,
.nav-cta {
  color: var(--ink);
}

.header-phone {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.header-phone-label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.menu-toggle,
.nav-scrim {
  display: none;
}

.menu-toggle {
  position: relative;
  z-index: 5;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
}

.burger,
.burger::before,
.burger::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  content: "";
  transition: transform 0.25s var(--ease), background 0.2s;
}

.burger {
  position: relative;
}

.burger::before,
.burger::after {
  position: absolute;
  left: 0;
}

.burger::before {
  top: -6px;
}

.burger::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] .burger {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .burger::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .burger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Hero */

.hero {
  position: relative;
  display: grid;
  background: var(--bg);
  min-height: calc(100vh - var(--header-max));
  min-height: calc(100svh - var(--header-max));
  container-type: inline-size;
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 1.25rem;
  justify-items: start;
  padding: clamp(2.25rem, 5vw, 4.5rem) var(--gutter) clamp(3.5rem, 7vw, 5rem);
  padding-left: max(var(--gutter), calc((100cqw - var(--container)) / 2));
  padding-right: var(--gutter);
}

.hero-copy .lede {
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  height: 70vh;
  height: 70svh;
  height: 70dvh;
  min-height: 260px;
  max-height: 560px;
  background: #c9bfb2;
}

.hero-parallax picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero-parallax {
  position: absolute;
  inset: -6%;
  transform: translate3d(0, var(--hero-y, 0px), 0);
}

.hero-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: 64% 78%;
  background: #1c1916;
  transform-origin: center center;
  animation: kenburns 32s ease-in-out infinite alternate;
}

@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.stamp {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  padding: 0.35rem 0.55rem;
  background: rgba(18, 17, 16, 0.88);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 17, 16, 0.05), transparent 28%, rgba(18, 17, 16, 0.45));
  pointer-events: none;
}

.scroll-cue {
  position: absolute;
  left: max(var(--gutter), calc((100cqw - var(--container)) / 2));
  bottom: 1.1rem;
  z-index: 2;
  width: 1.5rem;
  height: 2.4rem;
  color: var(--ink);
}

.scroll-cue-line {
  display: block;
  width: 1px;
  height: 100%;
  margin-inline: auto;
  background: var(--accent);
  transform-origin: top;
  animation: cue 1.8s var(--ease) infinite;
}

@keyframes cue {
  0% { transform: scaleY(0.2); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* Trust */

.trust {
  background: var(--dark);
  color: #f6f3ee;
}

.trust-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: min(var(--container), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.trust-list li {
  min-width: 0;
  padding: 1.35rem 1rem;
}

.trust-note a {
  color: #fff;
  font-weight: 600;
  text-underline-offset: 0.15em;
}

.trust-value {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.1;
}

.trust-note,
.trust .trust-kicker {
  color: var(--muted-on-dark);
}

.trust .trust-kicker {
  margin-bottom: 0.3rem;
  color: #e4c4a4;
}

/* Cards */

.card-grid,
.gallery,
.steps {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.card {
  display: grid;
  gap: 0.55rem;
  height: 100%;
  padding: 1.35rem 1.25rem 1.45rem;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease), transform 0.22s var(--ease);
}

.card:hover {
  border-color: #e0cbb8;
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.35rem;
  background: var(--accent-soft);
  color: var(--accent);
}

.icon svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card p:last-child,
.steps p:last-child {
  color: var(--muted);
}

/* Steps */

.steps {
  counter-reset: none;
}

.steps li {
  display: grid;
  gap: 0.45rem;
  align-content: start;
  padding-top: 1rem;
  border-top: 2px solid var(--line);
}

.step-num {
  margin: 0;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
}

/* About */

.about-grid,
.area-grid {
  display: grid;
  align-items: stretch;
  gap: 1.5rem;
}

.area-grid > * {
  min-width: 0;
}

.about-copy {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.about-copy p {
  max-width: 40rem;
}

.standard {
  margin-top: 0.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.2;
}

.standard span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nap {
  padding: 1.4rem 1.3rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.nap h3 {
  margin-bottom: 1rem;
}

.nap dl {
  display: grid;
  gap: 0.9rem;
  margin: 0;
}

.nap dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nap dd {
  margin: 0.15rem 0 0;
}

.nap a {
  color: var(--ink);
  font-weight: 600;
  text-underline-offset: 0.15em;
}

/* Gallery */

.gallery {
  gap: 1.1rem;
}

.shot {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #c9bfb2;
  cursor: pointer;
  transition: transform 0.28s var(--ease);
}

.shot picture {
  position: absolute;
  inset: 0;
  display: block;
}

.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.shot:hover {
  transform: translateY(-2px);
}

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

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

.js .gallery:not(.is-expanded) > li:nth-child(n + 7) {
  display: none;
}

.gallery-more-wrap {
  display: none;
  margin-top: 1.35rem;
  justify-content: center;
}

.js .gallery-more-wrap {
  display: flex;
}

.js .gallery.is-expanded + .gallery-more-wrap,
.js .gallery-more-wrap:has(.gallery-more[hidden]) {
  display: none;
}

.gallery-more {
  min-width: 10.5rem;
}

.review,
.review-empty {
  max-width: 40rem;
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
}

.review p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  line-height: 1.35;
}

.review footer {
  margin-top: 1.1rem;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.review-empty h3 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
}

.review-empty p:last-child {
  margin-top: 0.7rem;
  color: var(--muted);
}

/* Area */

.area-address {
  margin: 1rem 0 0.6rem;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.15;
}

.area-address a {
  text-decoration: none;
}

.area-address a:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.area-panel {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 12rem;
  aspect-ratio: 8 / 5;
  margin: 0;
  overflow: hidden;
  background: #c5ddd4;
}

.area-panel picture {
  display: contents;
}

.area-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right bottom;
}

.area-caption {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 1.05rem 1.2rem 2.6rem;
  background: linear-gradient(to bottom, rgba(12, 11, 10, 0.78) 0%, rgba(12, 11, 10, 0.4) 46%, rgba(12, 11, 10, 0) 100%);
  pointer-events: none;
}

.area-pin {
  margin: 0;
  color: #f7f4ef;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  line-height: 1.08;
  text-shadow: 0 1px 2px rgba(12, 11, 10, 0.45);
}

/* Estimate */

.estimate {
  background: var(--charcoal);
  color: #f6f3ee;
  padding-block: clamp(1.75rem, 3.2vw, 3rem);
}

.estimate-grid {
  position: relative;
  display: grid;
  align-items: stretch;
  gap: clamp(1.25rem, 2.4vw, 2.5rem);
}

.estimate-intro {
  display: grid;
  align-content: center;
  gap: 0.85rem;
  padding: 0.25rem 0;
}

.estimate-intro .eyebrow {
  color: #e8c4ae;
  margin-bottom: 0;
}

.estimate-intro h2::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  margin-top: 0.75rem;
  background: var(--clay);
}

.estimate-intro .lede {
  color: var(--muted-on-dark);
}

.estimate-phone {
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
  text-decoration: none;
}

.estimate-intro a:not(.btn):not(.estimate-phone) {
  color: #d9d3cb;
}

.estimate-form-wrap {
  background: #f6f3ee;
  color: #141311;
  padding: clamp(1.15rem, 2vw, 1.75rem);
}

.estimate .req {
  color: var(--clay);
}

.estimate-form-wrap input,
.estimate-form-wrap select {
  border: 1px solid #d5d0c8;
  background: #fff;
  color: #141311;
}

.form-success {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.form-success h3 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  margin: 0.2rem 0 0.55rem;
}

#form-success:has(#quote-thanks:target) {
  display: block;
}

.form-success p:last-of-type {
  margin-bottom: 1rem;
  color: var(--muted);
}

.form-hint,
.field-error,
.form-status {
  color: var(--muted);
  font-size: 0.9rem;
}

.form-hint {
  margin-bottom: 1rem;
}

.form-status:empty {
  display: none;
}

.form-status {
  margin: 0 0 0.8rem;
  color: #8d2f2f;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-size: 0.9rem;
  font-weight: 600;
}

.req {
  color: var(--accent);
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.75rem;
  border: 1px solid #ccc6bc;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: 400 1rem/1.4 var(--sans);
  transition: border-color 0.15s var(--ease);
}

select {
  appearance: none;
  padding-right: 2.4rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 12px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

select:required:invalid {
  color: var(--muted);
}

input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.field.is-invalid input,
.field.is-invalid select {
  border-color: #8d2f2f;
}

.field-error {
  margin: 0;
  color: #8d2f2f;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.form-actions {
  margin-top: 0.35rem;
}

.form-helper {
  margin: 0.7rem 0 0;
  color: #5c574f;
  font-size: 0.85rem;
}

.estimate .form-actions .btn {
  background: #141311;
  border: 2px solid #ffffff;
  color: #ffffff;
}

.estimate .form-actions .btn:hover {
  background: #2a2622;
  border-color: #ffffff;
  color: #ffffff;
}

.form-actions .btn,
.form-success .btn {
  width: 100%;
}

/* Footer */

.site-footer {
  background: var(--charcoal);
  color: #f3f1ec;
  padding-block: clamp(2.5rem, 5vw, 3.75rem) 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.8rem;
  line-height: 1;
}

.footer-grid p,
.footer-grid a,
.footer-grid li {
  color: var(--muted-on-dark);
}

.footer-grid h2 {
  margin-bottom: 0.7rem;
  color: #fff;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.footer-grid ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid a:hover {
  color: #fff;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-facebook {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted-on-dark);
  font-weight: 400;
  text-underline-offset: 0.15em;
}

.footer-facebook svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

.footer-facebook:hover {
  color: #fff;
}

.legal {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--muted-on-dark);
  font-size: 0.9rem;
}

.site-footer :focus-visible,
.estimate-intro :focus-visible,
.hero-figure :focus-visible,
.trust :focus-visible,
.area-panel :focus-visible {
  outline-color: #fff;
}

/* Lightbox */

dialog {
  width: min(32rem, calc(100% - 2rem));
  padding: 0;
  border: 0;
  background: transparent;
}

dialog::backdrop {
  background: rgba(12, 11, 10, 0.62);
}

.lightbox-card {
  display: grid;
  gap: 0.75rem;
  padding: 1.4rem 1.3rem 1.5rem;
  background: var(--surface);
  color: var(--ink);
}

.lightbox-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.lightbox-card h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.lightbox-card .stamp {
  position: static;
  justify-self: start;
}

/* Call dock */

.call-dock {
  display: none;
}

/* Reveal and scroll motion */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: 3px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(var(--scroll-p, 0));
  transform-origin: left;
}

.marquee {
  overflow: hidden;
  width: 100%;
  background: var(--ink);
  color: #f6f3ee;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px var(--ink);
  contain: paint;
  isolation: isolate;
  transform: translateZ(0);
}

.marquee-track {
  display: flex;
  width: max-content;
  padding: 0.85rem 0;
  animation: drift 160s linear infinite;
}

.marquee-group {
  display: flex;
  flex: none;
  gap: 2.2rem;
  padding-right: 2.2rem;
}

.marquee span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee span::before {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-right: 2.2rem;
  background: var(--accent);
  transform: translateY(-0.05rem);
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.js .reveal .section-head,
.js .reveal .card,
.js .reveal .steps li,
.js .reveal .review,
.js .reveal .review-empty,
.js .reveal .about-copy,
.js .reveal .nap,
.js .reveal .shot {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.js .reveal:nth-of-type(odd) .section-head {
  transform: translate3d(-28px, 0, 0);
}

.js .reveal:nth-of-type(even) .section-head {
  transform: translate3d(28px, 0, 0);
}

.js .card-grid li:nth-child(odd) .card {
  transform: translate3d(-32px, 16px, 0);
}

.js .card-grid li:nth-child(even) .card {
  transform: translate3d(32px, 16px, 0);
}

.js .reveal.is-inview .section-head,
.js .reveal.is-inview .steps li,
.js .reveal.is-inview .review,
.js .reveal.is-inview .review-empty,
.js .reveal.is-inview .about-copy,
.js .reveal.is-inview .nap,
.js .reveal.is-inview .shot,
.js .reveal.is-inview .card-grid li .card {
  opacity: 1;
  transform: translate3d(0, var(--py, 0px), 0);
}

.js .card-grid li:nth-child(2) .card { transition-delay: 0.05s; }
.js .card-grid li:nth-child(3) .card { transition-delay: 0.1s; }
.js .card-grid li:nth-child(4) .card { transition-delay: 0.15s; }
.js .card-grid li:nth-child(5) .card { transition-delay: 0.2s; }
.js .card-grid li:nth-child(6) .card { transition-delay: 0.25s; }
.js .card-grid li:nth-child(7) .card { transition-delay: 0.3s; }
.js .card-grid li:nth-child(8) .card { transition-delay: 0.35s; }
.js .card-grid li:nth-child(9) .card { transition-delay: 0.4s; }

.js .steps li:nth-child(2) { transition-delay: 0.1s; }
.js .steps li:nth-child(3) { transition-delay: 0.2s; }

.steps {
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(var(--steps-p, 0));
  transform-origin: left;
  pointer-events: none;
}

.eyebrow {
  display: inline-block;
}

.section-head .eyebrow::after {
  content: "";
  display: block;
  width: 2.4rem;
  height: 2px;
  margin-top: 0.45rem;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease);
}

.js .reveal.is-inview .eyebrow::after,
.hero .eyebrow::after {
  transform: scaleX(1);
}

.js .hero-copy .eyebrow,
.js .hero-copy h1,
.js .hero-copy .lede,
.js .hero-copy .hero-actions {
  animation: rise 0.75s var(--ease) both;
}

.js .hero-copy h1 { animation-delay: 0.12s; }
.js .hero-copy .lede { animation-delay: 0.24s; }
.js .hero-copy .hero-actions { animation-delay: 0.38s; }

@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: none; }
}

/* Layout */

@media (min-width: 700px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

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

  .trust-list li {
    padding: 1.5rem 1.15rem;
  }

  .trust-list li + li {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
  }

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

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

  .form-actions .btn,
  .form-success .btn {
    width: auto;
    min-width: 16rem;
  }

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

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    /* Cap the row so the 16:9 field photo can keep the whole machine in frame. */
    min-height: min(clamp(520px, calc(100vh - var(--header-max)), 900px), 38vw);
    min-height: min(clamp(520px, calc(100svh - var(--header-max)), 900px), 38vw);
    max-height: 920px;
  }

  .hero-copy {
    padding-right: clamp(2rem, 4vw, 4.5rem);
  }

  .hero-figure {
    height: auto;
    min-height: 100%;
    max-height: none;
  }

  .steps,
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-grid,
  .area-grid,
  .estimate-grid {
    grid-template-columns: 0.92fr 1.08fr;
  }

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

  .nav-cta {
    display: none;
  }
}

@media (max-width: 959px) {
  .hero-figure {
    height: auto;
    aspect-ratio: 3 / 2;
    min-height: 220px;
    max-height: 26rem;
  }

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

  .header-cta,
  .nav-scrim {
    display: none;
  }

  .site-nav {
    display: flex;
    position: fixed;
    z-index: 2;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: min(20rem, 88vw);
    margin: 0;
    padding: 0.5rem 1.4rem 2rem;
    background: var(--surface);
    box-shadow: -16px 0 40px rgba(20, 19, 17, 0.12);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
  }

  .site-nav:not(.is-open) {
    visibility: hidden;
  }

  .site-nav.is-open {
    visibility: visible;
    transform: translateX(0);
  }

  .site-nav a {
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 1.15rem;
  }

  .nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 1;
    border: 0;
    background: rgba(12, 11, 10, 0.46);
    cursor: pointer;
  }

  body.nav-open .nav-scrim {
    display: block;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .call-dock {
    visibility: hidden;
  }
}

@media (max-width: 760px) {
  :root {
    --header-max: 5.25rem;
    --header-min: 4.25rem;
  }

  .logo {
    width: 3.65rem;
  }

  html.is-compact .logo {
    width: 3rem;
  }

  .header-phone {
    display: none;
  }

  .hero h1 {
    font-size: 2.45rem;
  }

  .hero-copy {
    gap: 0.85rem;
    padding-top: 1.35rem;
    padding-bottom: 1rem;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .call-dock {
    display: flex;
    position: fixed;
    z-index: 45;
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 52px;
    padding: 0.75rem 1rem;
    background: var(--ink);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(20, 19, 17, 0.28);
  }

  .call-dock small {
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .call-dock.is-hidden,
  .scroll-cue {
    display: none;
  }

  body {
    padding-bottom: calc(5.25rem + env(safe-area-inset-bottom));
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    min-height: 100svh;
    max-height: 100dvh;
  }

  .hero-figure {
    height: auto;
    min-height: 100%;
    max-height: none;
  }

  .scroll-cue {
    display: none;
  }
}

@media (max-width: 1399px) {
  .js .card-grid li:nth-child(n) .card,
  .js .reveal:nth-of-type(n) .section-head {
    transform: translate3d(0, 16px, 0);
  }

  .js .reveal.is-inview .card-grid li:nth-child(n) .card,
  .js .reveal.is-inview:nth-of-type(n) .section-head {
    transform: translate3d(0, var(--py, 0px), 0);
  }
}

@media (max-width: 759px) {
  .js .card-grid li:nth-child(n) .card,
  .js .reveal:nth-of-type(n) .section-head {
    transform: translate3d(0, 12px, 0);
  }

  .js .reveal.is-inview .card-grid li:nth-child(n) .card,
  .js .reveal.is-inview:nth-of-type(n) .section-head {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .js .reveal .section-head,
  .js .reveal .card,
  .js .reveal .steps li,
  .js .reveal .review,
  .js .reveal .review-empty,
  .js .reveal .about-copy,
  .js .reveal .nap,
  .js .reveal .shot,
  .js .hero-copy .eyebrow,
  .js .hero-copy h1,
  .js .hero-copy .lede,
  .js .hero-copy .hero-actions,
  .hero-photo,
  .hero-parallax,
  .marquee-track,
  .scroll-cue-line,
  .card:hover,
  .shot:hover,
  .btn:active {
    opacity: 1;
    transform: none;
  }

  .steps::before,
  .section-head .eyebrow::after,
  .hero .eyebrow::after {
    transform: none;
  }

  .scroll-progress,
  .scroll-cue {
    display: none;
  }
}

@media print {
  .site-header,
  .call-dock,
  .menu-toggle,
  .hero-actions,
  .form-actions,
  .nav-scrim {
    display: none !important;
  }

  body {
    padding: 0;
    background: #fff;
    color: #000;
  }
}
