/* Fiacre Landscapes. One stylesheet; every color and font comes from these tokens. */

:root {
  /* Brand palette (from Micah's hex sheet) */
  --forest: #2F4A37; /* Primary brand color: headers, buttons, footer, links */
  --sage:   #7C8B74; /* Secondary botanical color: accents, large eyebrows, icons */
  --stone:  #C8B99A; /* Warm neutral accent: borders, dividers, text on Forest */
  --soil:   #4A3E31; /* Dark earthy neutral: alternate dark sections */
  --cream:  #F2EFE6; /* Light background color: main page background */

  /* Supporting neutrals (derived) */
  --paper:  #FAF8F2; /* form fields and the closing call to action, raised on Cream */
  --line:   #D9D1BF; /* hairlines and borders */
  --ink:    #26302A; /* body text */
  --muted:  #5C6558; /* secondary text */

  /* Type */
  --font-display: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --font-caps:    "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --font-body:    "Source Sans 3", "Helvetica Neue", Arial, sans-serif;

  --t-h1:    clamp(2.375rem, 1.9rem + 2.6vw, 4rem);
  --t-h2:    clamp(1.875rem, 1.5rem + 1.6vw, 3rem);
  --t-h3:    clamp(1.375rem, 1.25rem + 0.5vw, 1.75rem);
  --t-quote: clamp(1.625rem, 1.45rem + 0.8vw, 2rem);
  --t-body:  clamp(1rem, 0.95rem + 0.2vw, 1.125rem);

  /* Layout */
  /* One left edge for everything, including full-bleed stages. Content tops out at 1248px. */
  --gutter: max(clamp(16px, 4vw, 56px), calc((100vw - 1248px) / 2));
  --header-h: 68px;
  --section: clamp(72px, 10vw, 152px);
  --radius: 2px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);

  /* Hover states darken the brand color rather than introducing a new one */
  --forest-hover: color-mix(in srgb, var(--forest) 80%, var(--ink));
}

@media (min-width: 900px) {
  :root { --header-h: 84px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg, canvas { display: block; }
img { max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--forest);
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); line-height: 1.04; }
h2 { font-size: var(--t-h2); line-height: 1.08; }
h3 { font-size: var(--t-h3); line-height: 1.15; }
p { text-wrap: pretty; }

a { color: var(--forest); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

::selection { background: var(--forest); color: var(--cream); }

:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--cream); }

.wrap {
  width: 100%;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--forest);
  color: var(--cream);
  font-weight: 600;
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

/* Cinzel labels: capitals only, never a sentence. Small sizes stay off Sage on Cream (3.2:1). */
.eyebrow {
  font-family: var(--font-caps);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--muted);
}
.on-dark .eyebrow { color: var(--stone); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--cream); }

/* ---------- Logo ---------- */

.logo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4414 / 1163;
  fill: currentColor;
  overflow: visible;
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  background: var(--forest);
  border: 1px solid var(--forest);
  border-radius: var(--radius);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease), transform 120ms var(--ease);
}
.btn:hover { background: var(--forest-hover); border-color: var(--forest-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.7; cursor: wait; }

.btn--outline { background: transparent; color: var(--forest); }
.btn--outline:hover { background: var(--forest); border-color: var(--forest); color: var(--cream); }

.btn--reverse { background: var(--cream); border-color: var(--cream); color: var(--forest); }
.btn--reverse:hover { background: var(--stone); border-color: var(--stone); }

.link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--forest);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--stone);
  text-decoration-thickness: 1px;
  transition: text-decoration-color 160ms var(--ease);
}
.link:hover { text-decoration-color: var(--forest); }
.on-dark .link { color: var(--cream); }
.on-dark .link:hover { text-decoration-color: var(--cream); }

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  padding-inline: var(--gutter);
}

.site-header__logo {
  display: block;
  flex: none;
  width: 132px;
  color: var(--forest);
}

.nav-toggle {
  display: none;
  min-height: 44px;
  padding: 8px 2px 8px 16px;
  background: none;
  border: 0;
  color: var(--forest);
  font: 600 0.9375rem/1 var(--font-body);
  cursor: pointer;
}

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

.site-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.site-nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--forest);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  text-underline-offset: 0.5em;
}
.site-nav__links a:hover,
.site-nav__links a[aria-current] { text-decoration: underline; text-decoration-thickness: 1px; }

@media (max-width: 899px) {
  .js .nav-toggle { display: inline-flex; align-items: center; }
  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px var(--gutter) 28px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav__links { flex-direction: column; }
  .js .site-nav__links a { min-height: 48px; font-size: 0.875rem; }
  /* Without JavaScript the links simply wrap under the logo */
  html:not(.js) .site-header__inner { height: auto; flex-wrap: wrap; padding-block: 12px; }
  html:not(.js) .site-nav { justify-content: flex-start; }
}

@media (min-width: 900px) {
  .site-header__logo { width: 168px; }
  .site-nav { flex-wrap: nowrap; gap: 36px; }
  .site-nav__links { flex-wrap: nowrap; gap: 32px; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--forest);
  color: var(--cream);
  padding-block: clamp(56px, 7vw, 88px) 28px;
}
.site-footer a { color: var(--cream); }
.site-footer :focus-visible { outline-color: var(--cream); }

.site-footer__grid {
  display: grid;
  gap: 40px 48px;
}

.site-footer__brand { color: var(--cream); }
.site-footer__brand .logo { width: 200px; }

.site-footer__rule {
  display: block;
  width: 56px;
  height: 1px;
  margin-block: 24px 14px;
  background: var(--stone);
}

.site-footer__tagline {
  font-family: var(--font-caps);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  line-height: 1.8;
  text-transform: uppercase;
  color: var(--stone);
}

.site-footer__label {
  margin-bottom: 12px;
  font-family: var(--font-caps);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--stone);
}

.site-footer__cities { margin-top: 6px; font-size: 0.9375rem; line-height: 1.5; color: var(--stone); }

.site-footer__list { display: grid; gap: 6px; }

.site-footer__legal {
  margin-top: clamp(40px, 5vw, 64px);
  font-size: 0.875rem;
  color: var(--stone);
}

@media (min-width: 620px) {
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

/* ---------- Entrance fades ---------- */

.js [data-in] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-in].is-in { opacity: 1; transform: none; }

/* ---------- Layout ---------- */

.section { padding-block: var(--section); }
/* Neighbouring sections share the same ground, so they share one gap rather than two. */
.section:not(.band-forest) + .section:not(.band-forest) { padding-top: 0; }

/* One grid for the whole page: a narrow label column and a wide content column. */
.split { display: grid; gap: 16px clamp(32px, 4vw, 64px); }
.split > .eyebrow { padding-top: 0.5em; }

.rule-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
}

/* Stock photographs arrive more saturated than the brand. This keeps them muted without looking filtered. */
.hero__photo, .bleed img, .belief__photo img, .svc__photo, .philosophy__photo img { filter: saturate(0.82); }

/* ---------- Hero: over its full-height image, with the header laid on top ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 28px;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 32px) var(--gutter) clamp(28px, 6vh, 64px);
  background: var(--forest);
  color: var(--cream);
  overflow: hidden;
}
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 100%;
}
/* Ink shading keeps the header and headline legible on any photograph. The lower one is tied to
   the copy block, so it still covers the text when a small screen makes the copy tall. */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  height: 220px;
  background: linear-gradient(to bottom, rgb(0 0 0 / 0.68), rgb(0 0 0 / 0.52) 45%, rgb(0 0 0 / 0));
  pointer-events: none;
}
.hero__copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -200px;
  left: calc(-1 * var(--gutter));
  right: calc(-1 * var(--gutter));
  bottom: calc(-1 * clamp(28px, 6vh, 64px));
  background: linear-gradient(to top, rgb(0 0 0 / 0.57) calc(100% - 200px), rgb(0 0 0 / 0));
  pointer-events: none;
}
/* Services and About headers use lighter shading than Home. */
.hero--page::before { background: linear-gradient(to bottom, rgb(0 0 0 / 0.44), rgb(0 0 0 / 0.34) 45%, rgb(0 0 0 / 0)); }
.hero--page .hero__copy::before { background: linear-gradient(to top, rgb(0 0 0 / 0.37) calc(100% - 200px), rgb(0 0 0 / 0)); }
/* About's photo is brighter behind the copy, so its header is shaded a little more. */
.hero--deep::before { background: linear-gradient(to bottom, rgb(0 0 0 / 0.62), rgb(0 0 0 / 0.5) 45%, rgb(0 0 0 / 0)); }
.hero--deep .hero__copy::before { background: linear-gradient(to top, rgb(0 0 0 / 0.58) calc(100% - 200px), rgb(0 0 0 / 0)); }
@media (min-width: 1200px) {
  /* Wide screens have room beside the copy, so the shading fades out and lets the photograph show. */
  .hero__copy::before { mask-image: linear-gradient(to right, #000 72%, transparent); }
}
.hero__copy { position: relative; z-index: 2; }
.hero .eyebrow { color: var(--cream); }
.hero h1 { max-width: 13em; margin-top: 14px; }
.hero h1 br { display: none; }
.hero__support { max-width: 30rem; margin-top: 16px; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin-top: 28px;
}

body:has(.hero) .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: none;
  border-bottom: 0;
}
body:has(.hero) .site-header__logo,
body:has(.hero) .nav-toggle { color: var(--cream); }
body:has(.hero) .site-header__logo:focus-visible,
body:has(.hero) .nav-toggle:focus-visible { outline-color: var(--cream); }

@media (max-width: 899px) {
  html:not(.js) body:has(.hero) .site-nav__links a { color: var(--cream); }
}

@media (min-width: 700px) {
  .hero h1 br { display: inline; }
}

@media (min-width: 900px) {
  body:has(.hero) .site-nav__links a { color: var(--cream); }
  body:has(.hero) .site-nav :focus-visible { outline-color: var(--cream); }
  body:has(.hero) .site-nav .btn { background: transparent; border-color: var(--cream); color: var(--cream); }
  body:has(.hero) .site-nav .btn:hover { background: var(--cream); color: var(--forest); }
}

/* ---------- What we believe: one quiet photograph in the label column ---------- */

.belief__side .eyebrow { padding-top: 0.5em; }
.belief__photo { position: relative; margin-top: 16px; aspect-ratio: 3 / 2; }
.belief__photo img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 900px) {
  .belief__photo { margin-top: 24px; aspect-ratio: 4 / 5; }
}

/* ---------- Approach ---------- */

.statement p { max-width: 38em; margin-top: clamp(20px, 2.4vw, 32px); }

/* ---------- Project tiles and before-and-after: used by the unpublished Our Work page ---------- */

.work {
  display: grid;
  gap: clamp(40px, 5vw, 72px) clamp(20px, 2.4vw, 32px);
  margin-top: clamp(20px, 2.4vw, 32px);
}
.tile { position: relative; min-width: 0; }
.tile img, .tile .ph { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.tile h2, .tile h3 { margin-top: 16px; font-size: var(--t-h3); line-height: 1.15; }
.tile h3 a { color: inherit; text-decoration: none; }
.tile h3 a::after { content: ""; position: absolute; inset: 0; }
.tile:hover h3 a { text-decoration: underline; text-decoration-thickness: 1px; }
.tile__meta { margin-top: 2px; color: var(--muted); }
.work__note { margin-top: clamp(28px, 3vw, 40px); font-size: 0.875rem; color: var(--muted); }

@media (min-width: 900px) {
  .work { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .tile--feature { grid-column: 1 / -1; }
  .tile--wide { grid-column: span 7; }
  .tile--narrow { grid-column: span 5; }
  .tile--half { grid-column: span 6; }
  .tile--feature img { aspect-ratio: auto; height: clamp(420px, 44vw, 720px); }
  .tile--wide img, .tile--narrow img { aspect-ratio: auto; height: clamp(320px, 34vw, 560px); }
  .tile--half img { aspect-ratio: 3 / 2; }
}

/* ---------- Services: three equal columns ---------- */

.services {
  display: grid;
  gap: 48px clamp(32px, 4vw, 64px);
  margin-top: clamp(40px, 5vw, 80px);
}
.service { border-top: 1px solid var(--forest); padding-top: 16px; }
.service h3 a { color: inherit; text-decoration: none; }
.service h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.service > p { margin-top: 12px; }
.service ul { margin-top: 24px; }

.ruled li { padding-block: 10px; border-top: 1px solid var(--line); }
.ruled li:last-child { border-bottom: 1px solid var(--line); }

@media (min-width: 900px) {
  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; }
}

/* ---------- Full-width image ---------- */

.bleed { position: relative; height: clamp(240px, 34vw, 600px); }
.bleed img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 66%;
}
/* Darker top and bottom, clearer through the middle. */
.bleed::after,
.belief__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(38 48 42 / 0.62), rgb(38 48 42 / 0.34) 18%, rgb(38 48 42 / 0.2) 42%, rgb(38 48 42 / 0.2) 55%, rgb(38 48 42 / 0.48) 82%, rgb(38 48 42 / 0.62));
  pointer-events: none;
}
/* The About photo band matches the Services and About headers: black at their lighter strength. */
.bleed::after { background: linear-gradient(to bottom, rgb(0 0 0 / 0.44), rgb(0 0 0 / 0.24) 18%, rgb(0 0 0 / 0.14) 42%, rgb(0 0 0 / 0.14) 55%, rgb(0 0 0 / 0.34) 82%, rgb(0 0 0 / 0.44)); }

/* ---------- Why Fiacre ---------- */

.why__row {
  display: grid;
  gap: 6px 32px;
  padding-block: 22px 26px;
  border-top: 1px solid var(--line);
}
.why__row:last-child { border-bottom: 1px solid var(--line); }

@media (min-width: 900px) {
  .why__lead { position: sticky; top: 40px; align-self: start; }
  .why__row { grid-template-columns: minmax(0, 3fr) minmax(0, 5fr); align-items: baseline; padding-block: 26px 30px; }
}

/* ---------- Forest band and ruled columns ---------- */

.band-forest { background: var(--forest); color: var(--cream); }

.cols {
  display: grid;
  gap: 40px clamp(32px, 4vw, 64px);
  margin-top: clamp(40px, 5vw, 80px);
}
.cols > div { border-top: 1px solid var(--line); padding-top: 16px; }
.on-dark .cols > div { border-top-color: var(--stone); }

/* Optional wide photo in the philosophy band, set per page with philosophyPhoto. */
.philosophy__photo { margin: clamp(32px, 4vw, 56px) 0 0; }
.philosophy__photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) {
  .philosophy__photo img { aspect-ratio: 21 / 9; }
}
.cols p { margin-top: 12px; max-width: 30em; }

@media (min-width: 620px) {
  .cols--2, .cols--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Testimonial ---------- */

.quote blockquote {
  max-width: 24em;
  font-family: var(--font-display);
  font-size: var(--t-quote);
  font-style: italic;
  font-weight: 400;
  line-height: 1.25;
  color: var(--forest);
}
.quote figcaption { margin-top: 16px; font-size: 0.9375rem; font-weight: 600; color: var(--muted); }

/* ---------- Closing call to action ---------- */

.close { padding-block: clamp(64px, 8vw, 120px); background: var(--paper); }
.close__inner { display: grid; gap: 16px clamp(32px, 4vw, 64px); }
.close__inner > .eyebrow { padding-top: 0.5em; }
.close h2 { max-width: 15em; }
.close .btn { margin-top: clamp(24px, 3vw, 36px); }

/* The label holds the left edge; the headline and button sit in the right half of the section. */
@media (min-width: 700px) {
  .close__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.btn--arrow svg { margin-left: 12px; transition: transform 200ms var(--ease); }
.btn--arrow:hover svg { transform: translateX(3px); }

/* ---------- Inner pages: shorter hero, plain page head, jump links ---------- */

.hero--page { min-height: clamp(460px, 68vh, 680px); }
.page-head { padding-block: clamp(56px, 7vw, 112px) clamp(32px, 4vw, 56px); }
.page-head p { max-width: 38em; margin-top: 16px; }

.jump { border-bottom: 1px solid var(--line); }
.jump__inner { display: flex; flex-wrap: wrap; gap: 0 clamp(20px, 3vw, 40px); }
.jump a {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  color: var(--forest);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  text-underline-offset: 0.5em;
}
.jump a:hover { text-decoration: underline; text-decoration-thickness: 1px; }

/* ---------- Services: alternating text and photograph ---------- */

.svc__grid { display: grid; gap: 32px; }
.svc__text > p { max-width: 36em; margin-top: 16px; }
.svc__text .ruled { margin-top: 28px; }
.svc__photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.services-why + .cols { margin-top: 20px; }

@media (min-width: 900px) {
  .svc__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 32px); align-items: center; }
  .svc__text { grid-column: 1 / span 5; }
  .svc__photo { grid-column: 7 / -1; aspect-ratio: 1 / 1; max-height: 640px; }
  .svc--flip .svc__text { grid-column: 8 / -1; grid-row: 1; }
  .svc--flip .svc__photo { grid-column: 1 / span 6; grid-row: 1; }
}

/* ---------- Flat placeholders, where no photograph can stand in yet ---------- */

.ph {
  display: flex;
  align-items: flex-end;
  padding: 16px;
  border: 1px solid var(--sage);
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}
.ph--portrait { aspect-ratio: 4 / 5; max-width: min(100%, 280px); }
.portrait { width: 100%; max-width: 320px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }

/* Process steps on Services: numbered, ruled rows. */
.steps { margin: clamp(24px, 3vw, 36px) 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  column-gap: 16px;
  padding-block: 20px 24px;
  border-top: 1px solid var(--line);
  counter-increment: step;
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  grid-row: 1 / span 2;
  padding-top: 0.45em;
  font-family: var(--font-caps);
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  color: var(--sage);
}
.steps h3 { font-size: var(--t-h3); line-height: 1.2; }
.statement .steps p { margin-top: 6px; }

/* ---------- Before and after ---------- */

.ba { display: grid; gap: 24px clamp(20px, 2.4vw, 32px); margin-top: clamp(32px, 4vw, 56px); }
.ba img, .ba .ph { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.ba figcaption { margin-top: 10px; font-size: 0.9375rem; font-weight: 600; color: var(--muted); }

@media (min-width: 620px) {
  .ba { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Contact ---------- */

.contact { padding-top: clamp(48px, 6vw, 96px); }
.contact__side p { max-width: 26em; margin-top: 16px; }
.contact .split { gap: 48px clamp(32px, 4vw, 64px); }

.contact__details { margin: 32px 0 0; }
.contact__details > div { padding-block: 12px; border-top: 1px solid var(--line); }
.contact__details > div:last-child { border-bottom: 1px solid var(--line); }
.contact__details dt { font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.contact__details dd { margin: 0; }

.contact__photo { display: none; }
@media (min-width: 900px) {
  .contact__photo { display: block; max-width: 320px; margin: 32px 0 0; }
  .contact__photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
  .contact__photo figcaption { margin-top: 10px; font-size: 0.875rem; color: var(--muted); }
}

.form { display: grid; align-content: start; gap: 24px; min-width: 0; }
.form__trap { display: none; }
.form__row { display: grid; gap: 24px clamp(20px, 2.4vw, 32px); }

.field { min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label,
.field > legend {
  display: block;
  margin-bottom: 6px;
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}
.field > label span { font-weight: 400; color: var(--muted); }
.field > legend span { font-weight: 400; color: var(--muted); }

/* Property address: street on its own line, then city, state, and ZIP. */
.address { display: grid; gap: 16px; }
.address .field > label { font-weight: 400; color: var(--muted); }
.address__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px clamp(20px, 2.4vw, 32px); }
.address__city { grid-column: 1 / -1; }

.field input:not([type="checkbox"]),
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--sage);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  transition: border-color 160ms var(--ease);
}
.field input:not([type="checkbox"]):hover,
.field select:hover,
.field textarea:hover { border-color: var(--forest); }
.field textarea { resize: vertical; }
.field input:user-invalid { border-color: var(--soil); border-width: 2px; }

.field select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%232F4A37' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.checks { display: grid; gap: 2px 24px; }
.checks label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  cursor: pointer;
}
.checks input { width: 20px; height: 20px; margin: 0; accent-color: var(--forest); }

.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form__notice { font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.form__status { font-weight: 600; color: var(--forest); }
.form__status:empty { display: none; }

@media (min-width: 620px) {
  .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .address__row { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
  .address__city { grid-column: auto; }
}

/* ---------- Reduced motion: fades only, no travel ---------- */

@media (prefers-reduced-motion: reduce) {
  .js [data-in] { transform: none; transition-duration: 300ms; transition-delay: 0ms; }
  .btn, .link, .btn--arrow svg { transition: none; }
  .btn--arrow:hover svg { transform: none; }
}
