/* ==========================================================================
   Three Nails Fencing Co. — Built Right. Built to Last.
   Design tokens + base + components
   ========================================================================== */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius — restrained, rugged. Almost square. */
  --radius-sm: 2px;
  --radius-md: 3px;
  --radius-lg: 4px;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 680px;
  --content-default: 1020px;
  --content-wide: 1320px;

  --font-display: 'Arvo', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --header-h: 76px;
}

/* ---------- Light (default) ---------- */
:root,
[data-theme='light'] {
  --color-bg: #f4efe5; /* Bone */
  --color-surface: #faf7f0;
  --color-surface-2: #ffffff;
  --color-surface-offset: #e8dcc7; /* Warm Cream */
  --color-surface-deep: #171613; /* Three Nails Black */
  --color-divider: #ded2ba;
  --color-border: #cdbfa4;

  --color-text: #171613;
  --color-text-muted: #4d463b;
  --color-text-faint: #8a7965; /* Weathered Taupe */
  --color-text-inverse: #f4efe5;

  --color-primary: #171613;
  --color-primary-hover: #37342f;
  --color-accent: #5b5043; /* Dark Earth */
  --color-accent-soft: #8a7965;

  --shadow-sm: 0 1px 2px rgba(23, 22, 19, 0.07);
  --shadow-md: 0 6px 18px rgba(23, 22, 19, 0.1);
  --shadow-lg: 0 18px 44px rgba(23, 22, 19, 0.16);

  --grain-opacity: 0.035;
}

/* ---------- Dark ---------- */
[data-theme='dark'] {
  --color-bg: #171613;
  --color-surface: #1f1d19;
  --color-surface-2: #262320;
  --color-surface-offset: #24211c;
  --color-surface-deep: #0f0e0c;
  --color-divider: #322e28;
  --color-border: #423d35;

  --color-text: #ece4d4;
  --color-text-muted: #b3a894;
  --color-text-faint: #8a7965;
  --color-text-inverse: #171613;

  --color-primary: #e8dcc7;
  --color-primary-hover: #f4efe5;
  --color-accent: #b3a894;
  --color-accent-soft: #8a7965;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.55);

  --grain-opacity: 0.05;
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
}

body {
  min-height: 100dvh;
  line-height: 1.65;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
ul[role='list'],
ol[role='list'] {
  list-style: none;
}
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  text-wrap: balance;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

p,
li,
figcaption {
  text-wrap: pretty;
  max-width: 68ch;
}

a {
  color: inherit;
}

::selection {
  background: var(--color-surface-offset);
  color: var(--color-text);
}

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

a,
button,
input,
textarea,
select,
[role='button'] {
  transition:
    color var(--transition-interactive),
    background-color var(--transition-interactive),
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive);
}

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

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

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 999;
  background: var(--color-text);
  color: var(--color-text-inverse);
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 600;
}
.skip-link:focus {
  top: var(--space-4);
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */
.wrap {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 5vw, var(--space-16));
}
.wrap--default {
  max-width: var(--content-default);
}
.wrap--narrow {
  max-width: var(--content-narrow);
}

.section {
  padding-block: clamp(var(--space-16), 9vw, var(--space-32));
}
.section--tight {
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
}
.section--dark {
  background: var(--color-surface-deep);
  color: #ece4d4;
}
.section--dark h2,
.section--dark h3 {
  color: #f4efe5;
}
.section--cream {
  background: var(--color-surface-offset);
}

/* Eyebrow label */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-5);
  max-width: none;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: currentColor;
  flex: none;
}
.section--dark .eyebrow {
  color: #a6957e;
}

.lede {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--color-text-muted);
  font-weight: 400;
}
.section--dark .lede {
  color: #c3b8a5;
}

.muted {
  color: var(--color-text-muted);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-3) var(--space-8);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}
.btn--primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--ghost:hover {
  border-color: var(--color-text);
  background: rgba(23, 22, 19, 0.04);
}
[data-theme='dark'] .btn--ghost:hover {
  background: rgba(236, 228, 212, 0.06);
}

.btn--onDark {
  background: #e8dcc7;
  color: #171613;
  border-color: #e8dcc7;
}
.btn--onDark:hover {
  background: #fff;
  border-color: #fff;
  transform: translateY(-1px);
}

.btn--outlineDark {
  background: transparent;
  color: #ece4d4;
  border-color: rgba(236, 228, 212, 0.35);
}
.btn--outlineDark:hover {
  border-color: #ece4d4;
  background: rgba(236, 228, 212, 0.08);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

/* Text link with underline animation */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text);
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 4px;
}
.tlink:hover {
  border-color: var(--color-text);
  gap: var(--space-3);
}
.section--dark .tlink {
  color: #ece4d4;
  border-color: rgba(236, 228, 212, 0.3);
}
.section--dark .tlink:hover {
  border-color: #ece4d4;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 250ms ease,
    background-color 250ms ease;
}
.header.is-scrolled {
  border-bottom-color: var(--color-divider);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  flex: none;
}
/* The owner's full lockup — mark plus distressed wordmark — as one image.
   Masked so it takes currentColor: black on cream, cream on dark. Guarded:
   without mask support it stays blank rather than a solid block. The aspect
   ratio is the image's own (835x150); change both together. */
.brand__lockup {
  display: block;
  height: 43px;
  aspect-ratio: 835 / 150;
  flex: none;
}
@supports (mask-image: url(#m)) or (-webkit-mask-image: url(#m)) {
  .brand__lockup {
    background-color: currentColor;
    -webkit-mask: url('../img/logo-lockup.webp') center / contain no-repeat;
    mask: url('../img/logo-lockup.webp') center / contain no-repeat;
  }
}
/* Header also carries the theme toggle and menu button on phones. */
@media (max-width: 480px) {
  .header .brand__lockup {
    height: 33px;
  }
}
.footer__brand .brand__lockup {
  height: 54px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(var(--space-4), 2vw, var(--space-8));
  margin-left: clamp(var(--space-4), 2.5vw, var(--space-10));
  margin-right: auto;
}
/* The in-nav CTA is a mobile-menu affordance only; the header already has one. */
.nav > .btn {
  display: none;
}
.nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  color: var(--color-text-muted);
  padding-block: var(--space-2);
  position: relative;
}
.nav a:hover {
  color: var(--color-text);
}
.nav a[aria-current='page'] {
  color: var(--color-text);
  font-weight: 600;
}
.nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--color-text);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  border: 1px solid transparent;
}
.icon-btn:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}
[data-theme='dark'] .icon-btn:hover {
  background: var(--color-surface-2);
}

.btn--call {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-text);
}
.btn--call:hover {
  background: var(--color-text);
  color: var(--color-text-inverse);
  transform: translateY(-1px);
}
.btn--call svg {
  flex: none;
}
/* Two lines — "CALL NOW" over the number — so the button stays about as
   wide as the number itself; one line of both would push the nav into a
   wrap on ordinary laptop widths. */
.btn--call__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}
.btn--call__label {
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  opacity: 0.8;
}
.btn--call__num {
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  text-transform: none;
}
/* Shown only where the header buttons are hidden; still dials. */
.call-icon {
  display: none;
}

.header .btn {
  min-height: 44px;
  padding-inline: var(--space-5);
}
.nav a {
  white-space: nowrap;
}

.nav-toggle {
  display: none;
}

/* Menu: the nav folds away first, below the width where logo + four links
   + both buttons fit on one line. */
@media (max-width: 1260px) {
  .nav {
    display: none;
  }
  .nav-toggle {
    display: grid;
  }
  .nav.is-open {
    margin: 0;
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100dvh - var(--header-h));
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: var(--color-bg);
    padding: var(--space-6) clamp(var(--space-5), 5vw, var(--space-16))
      var(--space-12);
    overflow-y: auto;
  }
  .nav.is-open a:not(.btn) {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    color: var(--color-text);
    padding-block: var(--space-4);
    border-bottom: 1px solid var(--color-divider);
  }
  .nav.is-open a[aria-current='page']::after {
    display: none;
  }
  .nav.is-open .btn {
    display: inline-flex;
    align-self: flex-start;
    margin-top: var(--space-8);
    color: var(--color-text-inverse);
  }
  .nav.is-open .btn + .btn {
    margin-top: var(--space-3);
  }
}

/* Phones: the two buttons go (they live in the open menu), the phone icon
   stays so the number is one tap away on every page. */
@media (max-width: 800px) {
  .header__actions .btn {
    display: none;
  }
  .call-icon {
    display: grid;
  }
}
@media (max-width: 480px) {
  .header__inner {
    gap: var(--space-3);
  }
  .header__actions {
    gap: var(--space-1);
  }
  .header .icon-btn {
    width: 40px;
    height: 40px;
  }
}

/* Smallest phones: no room for three icons beside the logo. The toggle goes;
   the theme follows the phone's own light/dark setting. */
@media (max-width: 359px) {
  .header [data-theme-toggle] {
    display: none;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: flex-end;
  background: var(--color-surface-deep);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  filter: saturate(0.86) contrast(1.04);
}
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #6b4f2c;
  mix-blend-mode: soft-light;
  opacity: 0.55;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(15, 14, 12, 0.78) 0%,
      rgba(15, 14, 12, 0.6) 34%,
      rgba(15, 14, 12, 0.34) 62%,
      rgba(15, 14, 12, 0.55) 100%
    );
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: clamp(var(--space-16), 10vw, var(--space-32));
}
.hero__eyebrow {
  color: #b9a68c;
  margin-bottom: var(--space-6);
}
.hero h1 {
  font-size: var(--text-3xl);
  color: #fdfaf4;
  max-width: 16ch;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 0.98;
}
.hero p {
  margin-top: var(--space-6);
  max-width: 54ch;
  font-size: var(--text-lg);
  line-height: 1.5;
  color: #d8cdba;
}

/* Hero stat strip */
.hero__strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(236, 228, 212, 0.16);
  background: #0f0e0c;
}
.hero__strip .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.hero__stat {
  padding: var(--space-6) var(--space-4) var(--space-6) 0;
}
.hero__stat + .hero__stat {
  border-left: 1px solid rgba(236, 228, 212, 0.16);
  padding-left: clamp(var(--space-4), 3vw, var(--space-10));
}
.hero__stat dt {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: #f4efe5;
  line-height: 1.1;
}
.hero__stat dd {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9c8c76;
  margin-top: var(--space-2);
}
@media (max-width: 700px) {
  .hero__strip .wrap {
    grid-template-columns: 1fr;
  }
  .hero__stat + .hero__stat {
    border-left: 0;
    border-top: 1px solid rgba(236, 228, 212, 0.16);
    padding-left: 0;
  }
  .hero__stat {
    padding-block: var(--space-4);
  }
}

/* Page hero (interior pages) */
.pagehero {
  position: relative;
  background: var(--color-surface-deep);
  overflow: hidden;
  isolation: isolate;
}
.pagehero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.pagehero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  object-position: center 55%;
  filter: saturate(0.8) contrast(1.03);
}
.pagehero__inner {
  padding-block: clamp(var(--space-16), 11vw, var(--space-24));
}
.pagehero h1 {
  font-size: var(--text-2xl);
  color: #fdfaf4;
  text-transform: uppercase;
  max-width: 18ch;
}
.pagehero p {
  margin-top: var(--space-5);
  color: #cdc1ae;
  font-size: var(--text-lg);
  line-height: 1.5;
  max-width: 56ch;
}
.pagehero .eyebrow {
  color: #a6957e;
}

/* Breadcrumb */
.crumbs {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a7965;
  margin-bottom: var(--space-6);
  max-width: none;
}
.crumbs a {
  color: #a6957e;
  text-decoration: none;
}
.crumbs a:hover {
  color: #e8dcc7;
}
.crumbs span {
  margin-inline: var(--space-2);
}

/* ==========================================================================
   Problem / promise split
   ========================================================================== */
.split {
  display: grid;
  gap: clamp(var(--space-8), 6vw, var(--space-20));
  align-items: center;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .split--reverse .split__media {
    order: -1;
  }
  .split--wideMedia {
    grid-template-columns: 0.9fr 1.1fr;
  }
}
.split h2 {
  font-size: var(--text-xl);
  text-transform: uppercase;
}
.split p + p {
  margin-top: var(--space-4);
}
.split__media img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.split__body > p {
  margin-top: var(--space-5);
  color: var(--color-text-muted);
}
.section--dark .split__body > p {
  color: #c3b8a5;
}

/* Pain-point list */
.painlist {
  margin-top: var(--space-8);
  display: grid;
  gap: var(--space-4);
  list-style: none;
}
.painlist li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: var(--space-4);
  align-items: start;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-divider);
  color: var(--color-text-muted);
  max-width: none;
}
.section--dark .painlist li {
  border-color: rgba(236, 228, 212, 0.14);
  color: #c3b8a5;
}
.painlist svg {
  margin-top: 5px;
  color: var(--color-text-faint);
}
.painlist strong {
  color: var(--color-text);
  font-weight: 600;
}
.section--dark .painlist strong {
  color: #f4efe5;
}

/* ==========================================================================
   Values — three columns, editorial not carded
   ========================================================================== */
.values {
  display: grid;
  gap: clamp(var(--space-8), 5vw, var(--space-12));
  margin-top: clamp(var(--space-10), 6vw, var(--space-16));
}
@media (min-width: 800px) {
  .values {
    grid-template-columns: repeat(3, 1fr);
  }
}
.value {
  border-top: 2px solid var(--color-text);
  padding-top: var(--space-6);
}
.section--dark .value {
  border-top-color: #8a7965;
}
.value__num {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  color: var(--color-text-faint);
  display: block;
  margin-bottom: var(--space-3);
}
.value h3 {
  font-size: var(--text-lg);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.value p {
  margin-top: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-base);
}
.section--dark .value p {
  color: #b9ac98;
}

/* ==========================================================================
   Services
   ========================================================================== */
.svc-grid {
  display: grid;
  gap: var(--space-6);
  margin-top: clamp(var(--space-10), 6vw, var(--space-16));
}
@media (min-width: 760px) {
  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .svc-card--feature {
    grid-column: 1 / -1;
  }
}
.svc-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.svc-card__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--color-surface-offset);
}
.svc-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.svc-card:hover .svc-card__media img {
  transform: scale(1.04);
}
.svc-card__body {
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex: 1;
}
.svc-card h3 {
  font-size: var(--text-lg);
  text-transform: uppercase;
}
.svc-card p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
}
.svc-card ul {
  list-style: none;
  display: grid;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-2);
}
.svc-card ul li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: var(--space-3);
  align-items: start;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: none;
}
.svc-card ul svg {
  margin-top: 6px;
  color: var(--color-accent-soft);
}
@media (min-width: 760px) {
  .svc-grid .svc-card--feature {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: stretch;
  }
  .svc-grid .svc-card--feature .svc-card__media {
    aspect-ratio: auto;
    height: 100%;
    min-height: 380px;
  }
  .svc-grid .svc-card--feature .svc-card__body {
    justify-content: center;
  }
  /* The bottom-pinned list is for equal-height grid cards. In the tall
     feature card it opens a hole under the paragraph. */
  .svc-grid .svc-card--feature .svc-card__body ul {
    margin-top: var(--space-2);
  }
}

.svc-card__tag {
  display: inline-block;
  align-self: flex-start;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

/* Detail rows on services page */
.detail-row {
  display: grid;
  gap: clamp(var(--space-6), 5vw, var(--space-16));
  padding-block: clamp(var(--space-10), 6vw, var(--space-16));
  border-top: 1px solid var(--color-divider);
  align-items: start;
}
@media (min-width: 860px) {
  .detail-row {
    grid-template-columns: 0.34fr 0.66fr;
  }
}
.detail-row h3 {
  font-size: var(--text-lg);
  text-transform: uppercase;
  position: sticky;
  top: calc(var(--header-h) + var(--space-6));
}
.detail-row__body p {
  color: var(--color-text-muted);
}
.detail-row__body p + p {
  margin-top: var(--space-4);
}
.speclist {
  list-style: none;
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.speclist li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: var(--space-3);
  align-items: start;
  color: var(--color-text-muted);
  font-size: var(--text-base);
  max-width: none;
}
.speclist svg {
  margin-top: 7px;
  color: var(--color-accent-soft);
}

/* ==========================================================================
   Process — three steps
   ========================================================================== */
.steps {
  display: grid;
  gap: var(--space-8);
  counter-reset: step;
  margin-top: clamp(var(--space-10), 6vw, var(--space-16));
}
@media (min-width: 880px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-10);
  }
}
.step {
  position: relative;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(236, 228, 212, 0.22);
}
.step__n {
  position: absolute;
  top: var(--space-6);
  right: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1;
  color: rgba(236, 228, 212, 0.1);
  pointer-events: none;
}
.step h3 {
  font-size: var(--text-lg);
  text-transform: uppercase;
  position: relative;
}
.step p {
  margin-top: var(--space-4);
  color: #b9ac98;
  position: relative;
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gal {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-top: clamp(var(--space-8), 5vw, var(--space-12));
}
@media (min-width: 700px) {
  .gal {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }
}
@media (min-width: 1100px) {
  .gal {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 132px;
    grid-auto-flow: dense;
  }
  .gal__item {
    grid-column: span 1;
    grid-row: span 2;
  }
  .gal__item--wide {
    grid-column: span 2;
    grid-row: span 2;
  }
}
.gal__item[hidden] {
  display: none !important;
}
.gal__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-surface-offset);
  padding: 0;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
}
.gal__item--tall {
  aspect-ratio: 3 / 4;
}
@media (min-width: 1100px) {
  .gal__item,
  .gal__item--tall,
  .gal__item--wide {
    aspect-ratio: auto;
  }
}
.gal__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 400ms ease;
}
.gal__item:hover img,
.gal__item:focus-visible img {
  transform: scale(1.05);
}
.gal__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-8) var(--space-4) var(--space-4);
  background: linear-gradient(
    to top,
    rgba(15, 14, 12, 0.86),
    rgba(15, 14, 12, 0)
  );
  color: #f4efe5;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 300ms ease,
    transform 300ms ease;
}
.gal__item:hover .gal__cap,
.gal__item:focus-visible .gal__cap {
  opacity: 1;
  transform: none;
}

/* Filter chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}
.chip {
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) var(--space-5);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  background: transparent;
}
.chip:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}
.chip[aria-pressed='true'] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-inverse);
}

body.lb-open .header {
  opacity: 0;
  pointer-events: none;
}

/* Lightbox */
.lb {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  place-items: center;
  background: rgba(11, 10, 9, 0.94);
  padding: clamp(var(--space-4), 4vw, var(--space-12));
}
.lb[open],
.lb.is-open {
  display: grid;
}
.lb img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}
.lb__cap {
  color: #b9ac98;
  font-size: var(--text-sm);
  text-align: center;
  margin-top: var(--space-4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lb__close,
.lb__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  color: #f4efe5;
  background: rgba(236, 228, 212, 0.1);
  border: 1px solid rgba(236, 228, 212, 0.2);
}
.lb__close:hover,
.lb__nav:hover {
  background: rgba(236, 228, 212, 0.22);
}
.lb__close {
  top: var(--space-5);
  right: var(--space-5);
}
.lb__nav--prev {
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
}
.lb__nav--next {
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
}
@media (max-width: 640px) {
  .lb__nav--prev {
    left: var(--space-2);
  }
  .lb__nav--next {
    right: var(--space-2);
  }
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.quotes {
  display: grid;
  gap: var(--space-6);
  margin-top: clamp(var(--space-10), 6vw, var(--space-16));
}
@media (min-width: 860px) {
  .quotes {
    grid-template-columns: 1.3fr 1fr;
    align-items: start;
  }
  .quotes__stack {
    display: grid;
    gap: var(--space-6);
  }
}
.quote {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: clamp(var(--space-6), 3.5vw, var(--space-10));
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  height: 100%;
}
.quote--lead blockquote {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.4;
  color: var(--color-text);
}
.quote blockquote {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  font-style: normal;
}
.quote__stars {
  display: flex;
  gap: 3px;
  color: var(--color-accent-soft);
}
.quote__by {
  margin-top: auto;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.quote__by span {
  display: block;
  font-weight: 400;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-top: 2px;
}

/* ---------- Scrolling wall of reviews ----------
   The track holds the same run of cards twice and shifts by exactly one run,
   so the spacing has to be a per-card margin rather than a flex `gap` — a gap
   is one short between the two runs and the loop visibly jumps. */
.quotemarq {
  overflow: hidden;
  margin-top: clamp(var(--space-10), 6vw, var(--space-16));
  -webkit-mask: linear-gradient(
    90deg,
    transparent,
    #000 5%,
    #000 95%,
    transparent
  );
  mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.quotemarq__track {
  display: flex;
  align-items: stretch;
  width: max-content;
  animation: quote-scroll 250s linear infinite;
}
/* Every card the same box: wide and short, so the run reads as one band
   rather than a row of ragged towers. */
.quotemarq .quote {
  flex: 0 0 auto;
  width: min(520px, 86vw);
  height: 300px;
  margin-right: var(--space-6);
}
.quotemarq .quote blockquote {
  overflow: hidden;
}
/* Keeps moving under the cursor. Still stops on tab focus, or a keyboard user
   gets carried off the control they just landed on. */
.quotemarq:focus-within .quotemarq__track {
  animation-play-state: paused;
}
@keyframes quote-scroll {
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .quotemarq {
    overflow-x: auto;
  }
  .quotemarq__track {
    animation: none;
  }
}

/* ==========================================================================
   Marquee band
   ========================================================================== */
.band {
  background: var(--color-surface-deep);
  color: #8a7965;
  padding-block: var(--space-5);
  overflow: hidden;
  border-block: 1px solid rgba(236, 228, 212, 0.1);
}
.band__track {
  display: flex;
  gap: var(--space-10);
  width: max-content;
  animation: band-scroll 42s linear infinite;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}
.band__track span {
  display: flex;
  align-items: center;
  gap: var(--space-10);
}
.band__track span::after {
  content: '';
  width: 6px;
  height: 6px;
  background: currentColor;
  transform: rotate(45deg);
}
@keyframes band-scroll {
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .band__track {
    animation: none;
  }
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta {
  position: relative;
  background: var(--color-surface-deep);
  overflow: hidden;
  isolation: isolate;
}
.cta__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.cta__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}
.cta__inner {
  padding-block: clamp(var(--space-16), 9vw, var(--space-24));
  text-align: left;
}
.cta h2 {
  font-size: var(--text-2xl);
  color: #fdfaf4;
  text-transform: uppercase;
  max-width: 20ch;
}
.cta p {
  margin-top: var(--space-5);
  color: #c3b8a5;
  font-size: var(--text-lg);
  max-width: 52ch;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-layout {
  display: grid;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: start;
}
@media (min-width: 980px) {
  .form-layout {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: clamp(var(--space-6), 4vw, var(--space-12));
}
.fieldset {
  border: 0;
  display: grid;
  gap: var(--space-5);
}
.fieldset + .fieldset {
  margin-top: var(--space-10);
  padding-top: var(--space-10);
  border-top: 1px solid var(--color-divider);
}
.fieldset > legend {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  padding: 0;
  margin-bottom: var(--space-5);
  float: left;
  width: 100%;
}
.field-row {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 620px) {
  .field-row--2 {
    grid-template-columns: 1fr 1fr;
  }
}
.field {
  display: grid;
  gap: var(--space-2);
}
.field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.field label .opt,
.field .label .opt {
  font-weight: 400;
  color: var(--color-text-faint);
  text-transform: none;
  letter-spacing: 0;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  color: var(--color-text);
}
[data-theme='dark'] .field input,
[data-theme='dark'] .field select,
[data-theme='dark'] .field textarea {
  background: var(--color-bg);
}
.field textarea {
  min-height: 132px;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--color-text-faint);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-text);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 22%, transparent);
}
.field .hint {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.field .err {
  font-size: var(--text-xs);
  color: #a33a22;
  font-weight: 600;
  display: none;
}
[data-theme='dark'] .field .err {
  color: #e08a6d;
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: #a33a22;
}
.field.is-invalid .err {
  display: block;
}

/* Choice chips (fence type) */
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.choice {
  position: relative;
}
.choice input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--space-2) var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition:
    background-color var(--transition-interactive),
    border-color var(--transition-interactive),
    color var(--transition-interactive);
}
.choice input:checked + span {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-inverse);
}
.choice input:focus-visible + span {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.form__submit {
  margin-top: var(--space-10);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5);
}
.form__submit .btn {
  width: 100%;
}
@media (min-width: 620px) {
  .form__submit .btn {
    width: auto;
  }
}
.form__note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.form-status {
  display: none;
  margin-top: var(--space-6);
  padding: var(--space-5);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface-offset);
  color: var(--color-text);
}
.form-status.is-visible {
  display: block;
}
.form-status.is-error {
  border-color: #a33a22;
}

.btn[aria-busy='true'] {
  opacity: 0.72;
  pointer-events: none;
}

/* Contact aside */
.contact-info {
  display: grid;
  gap: var(--space-8);
}
.info-block h3 {
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.info-block p,
.info-block a {
  font-size: var(--text-base);
  color: var(--color-text);
  text-decoration: none;
}
.info-block a:hover {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.info-block .big {
  font-family: var(--font-display);
  font-size: var(--text-lg);
}
.info-block ul {
  list-style: none;
  display: grid;
  gap: var(--space-2);
}
.info-block li {
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
  margin-top: clamp(var(--space-8), 5vw, var(--space-12));
  border-top: 1px solid var(--color-divider);
}
.faq details {
  border-bottom: 1px solid var(--color-divider);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-6);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--color-text-faint);
  border-bottom: 2px solid var(--color-text-faint);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 250ms ease;
}
.faq details[open] summary::after {
  transform: rotate(-135deg) translateY(-3px);
}
.faq details p {
  padding-bottom: var(--space-6);
  color: var(--color-text-muted);
}

/* ==========================================================================
   About page bits
   ========================================================================== */
.pull {
  margin-block: clamp(var(--space-10), 6vw, var(--space-16));
  padding-left: clamp(var(--space-5), 3vw, var(--space-10));
  border-left: 3px solid var(--color-text);
  max-width: 34ch;
}
.pull p {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.35;
  color: var(--color-text);
}
.section--dark .pull {
  border-left-color: #8a7965;
}
.section--dark .pull p {
  color: #f4efe5;
}

.figpair {
  display: grid;
  gap: var(--space-4);
  margin-top: clamp(var(--space-10), 6vw, var(--space-16));
}
@media (min-width: 760px) {
  .figpair {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
  .figpair figure:first-child {
    margin-top: var(--space-16);
  }
}
.figpair img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.figpair figcaption {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.areas {
  display: grid;
  gap: var(--space-2) var(--space-6);
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  list-style: none;
  margin-top: var(--space-8);
}
.areas li {
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--color-divider);
  color: var(--color-text-muted);
  font-size: var(--text-base);
  max-width: none;
}
.section--dark .areas li {
  border-color: rgba(236, 228, 212, 0.14);
  color: #b9ac98;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--color-surface-deep);
  color: #b9ac98;
  padding-block: clamp(var(--space-12), 7vw, var(--space-20))
    var(--space-8);
}
.footer__grid {
  display: grid;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
}
@media (min-width: 780px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
.footer__brand .brand {
  color: #f4efe5;
}
.footer__brand p {
  margin-top: var(--space-5);
  color: #9c8c76;
  font-size: var(--text-sm);
  max-width: 34ch;
}
.footer__slogan {
  font-family: var(--font-display);
  color: #e8dcc7;
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: var(--space-6);
}
.footer h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a7965;
  margin-bottom: var(--space-5);
}
.footer ul {
  list-style: none;
  display: grid;
  gap: var(--space-3);
}
.footer a {
  color: #cdc1ae;
  text-decoration: none;
  font-size: var(--text-sm);
}
.footer a:hover {
  color: #fff;
}
.footer__bottom {
  margin-top: clamp(var(--space-10), 6vw, var(--space-16));
  padding-top: var(--space-6);
  border-top: 1px solid rgba(236, 228, 212, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-8);
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: #7d7060;
}
.footer__bottom p {
  max-width: none;
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
/* Scoped to .has-js (set by an inline head script) so that with JavaScript
   disabled nothing is ever hidden — the reveal class simply does nothing. */
.has-js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .has-js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   USER FLOW — ranch-first components
   Appended after the base sheet on purpose: these are all new selectors,
   and every media query below sits after its own base rules.
   ========================================================================== */

/* ---------- Group label used where there is no single <label> ---------- */
.field > .label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

/* ---------- Home: two paths ---------- */
.paths {
  display: grid;
  gap: var(--space-6);
}
.path {
  position: relative;
  display: grid;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  transition:
    transform var(--transition-interactive),
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive);
}
.path:hover {
  transform: translateY(-3px);
  border-color: var(--color-accent-soft);
  box-shadow: var(--shadow-md);
}
.path:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}
.path__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-surface-offset);
}
.path__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}
.path:hover .path__media img {
  transform: scale(1.04);
}
.path__body {
  display: grid;
  gap: var(--space-3);
  align-content: start;
  padding: var(--space-6);
}
.path__body h3 {
  font-size: var(--text-lg);
  margin: 0;
}
.path__body p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  max-width: 46ch;
}
.path__tag {
  align-self: start;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  color: var(--color-text-inverse);
  background: var(--color-primary);
  border-radius: var(--radius-sm);
}
.path__more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
}
.path__more svg {
  transition: transform var(--transition-interactive);
}
.path:hover .path__more svg {
  transform: translateX(4px);
}

@media (min-width: 860px) {
  /* Two full-width rows, mirrored — no orphaned half-column. */
  .path {
    grid-template-columns: 1fr 1.05fr;
    align-items: stretch;
  }
  .path__media {
    aspect-ratio: auto;
    height: 100%;
    min-height: 300px;
  }
  .path__body {
    padding: var(--space-10);
    align-content: center;
  }
  .path--lead {
    grid-template-columns: 1.15fr 1fr;
  }
  .path--lead .path__media {
    min-height: 400px;
  }
  .path--lead .path__body h3 {
    font-size: var(--text-xl);
  }
  .path--lead .path__body p {
    font-size: var(--text-base);
  }
  /* Mirror the second row so the eye zig-zags down the page. */
  .path:not(.path--lead) .path__media {
    order: 2;
  }
  .path:not(.path--lead) .path__body {
    order: 1;
  }
}

/* ---------- Alternating explainer rows ---------- */
.unit-row {
  display: grid;
  gap: var(--space-3);
  align-items: start;
}
.unit-row > * {
  min-width: 0;
}
@media (min-width: 560px) {
  .unit-row {
    grid-template-columns: 1fr 150px;
  }
  .unit-row--flip {
    grid-template-columns: 190px 1fr;
  }
}

/* ---------- The fork ---------- */
.fork {
  padding: var(--space-8);
  margin-bottom: var(--space-10);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
}
.fork__q {
  font-size: var(--text-lg);
  margin: var(--space-2) 0 var(--space-6);
}
.fork__opts {
  display: grid;
  gap: var(--space-4);
}
.fork__opt {
  display: grid;
  gap: var(--space-2);
  text-align: left;
  padding: var(--space-5) var(--space-6);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition:
    border-color var(--transition-interactive),
    background-color var(--transition-interactive),
    transform var(--transition-interactive);
}
.fork__opt:hover {
  border-color: var(--color-accent-soft);
  border-left-color: var(--color-accent);
  transform: translateX(2px);
}
.fork__opt:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}
.fork__opt--lead {
  border-left-color: var(--color-primary);
}
.fork__optTitle {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
}
.fork__optSub {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 52ch;
}
@media (min-width: 720px) {
  .fork__opts {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Progress + screens ---------- */
.progress {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.progress__bar {
  flex: 1;
  height: 3px;
  background: var(--color-divider);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress__fill {
  display: block;
  height: 100%;
  width: 25%;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width 400ms cubic-bezier(0.16, 1, 0.3, 1);
}
.progress__label {
  flex: none;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.screen[hidden] {
  display: none !important;
}
.screen__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}
.screen__nav .btn {
  flex: 1 1 100%;
}
@media (min-width: 560px) {
  /* Back stays a quiet, fixed-width secondary; Continue takes the rest so a
     lone Back button never reads like the primary action. */
  .screen__nav {
    flex-wrap: nowrap;
  }
  .screen__nav .btn--ghost {
    flex: 0 0 auto;
    min-width: 120px;
  }
  .screen__nav .btn--primary {
    flex: 1 1 auto;
  }
}
/* Stepped: only one fieldset shows at a time, so the divider that separates
   stacked fieldsets in the no-JS form would float above the first field. */
.form.is-stepped .fieldset + .fieldset {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* ---------- Stacked choice groups (long ranch job lists) ---------- */
.choices--stack {
  display: grid;
  gap: var(--space-2);
}
.choices--stack .choice span {
  width: 100%;
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-5);
}
@media (min-width: 620px) {
  .choices--stack {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Stock are out now ---------- */
.urgent {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding: var(--space-5);
  background: var(--color-surface-offset);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
}
.urgent p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 56ch;
}
.urgent[hidden] {
  display: none !important;
}

/* ---------- Progressive disclosure ---------- */
.disclose {
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
}
.disclose > summary {
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  list-style: none;
}
.disclose > summary::-webkit-details-marker {
  display: none;
}
.disclose > summary::before {
  content: '+';
  display: inline-block;
  width: 1.1em;
  font-weight: 700;
}
.disclose[open] > summary::before {
  content: '–';
}
.disclose > summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}
.disclose__body {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-5);
}

/* ---------- Honeypot ---------- */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Callouts (statute, wildlife spec, cost-share) ---------- */
.callout {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
}
.callout h3 {
  margin: 0;
  font-size: var(--text-base);
}
.callout p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.callout__src {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.callout__src a {
  color: inherit;
}

/* ---------- Acreage reference table ---------- */
.acretable {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.acretable caption {
  text-align: left;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  padding-bottom: var(--space-3);
}
.acretable th,
.acretable td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-divider);
}
.acretable th {
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  font-weight: 700;
}
.acretable td:first-child {
  font-weight: 600;
}

/* ---------- Small print / notes ---------- */
.note {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  max-width: 62ch;
}

/* ---------- Single testimonial ---------- */
.quotes--single {
  grid-template-columns: 1fr;
  max-width: var(--content-narrow);
  margin-inline: auto;
}
.quote__note {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-faint);
}

/* ---------- Service card deep link ---------- */
.svc-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.svc-card__link:hover {
  border-bottom-color: currentColor;
}

/* ---------- Lightbox CTA ---------- */
.lb__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-5);
  min-height: 40px;
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  color: #171613;
  background: #e8dcc7;
  border-radius: var(--radius-full);
  transition: background-color var(--transition-interactive);
}
.lb__cta:hover {
  background: #f4efe5;
}

/* ---------- Page furniture ---------- */
.pagehero--short {
  padding-block: var(--space-16) var(--space-10);
}
.section--tall {
  padding-block: var(--space-24);
}
.thanks {
  max-width: var(--content-narrow);
  margin-inline: auto;
  text-align: center;
  display: grid;
  gap: var(--space-5);
}
.thanks .btn-row {
  justify-content: center;
  margin-top: var(--space-4);
}
.thanks p {
  margin: 0;
  color: var(--color-text-muted);
}
.form-col {
  min-width: 0;
}

/* ==========================================================================
   [hidden] must win
   Author `display` declarations beat the UA sheet's `[hidden] { display: none }`,
   which silently broke the stepper, the track filter and the urgent block.
   ========================================================================== */
[hidden] {
  display: none !important;
}

/* Screen-reader-only live region for stepper + acreage announcements */
.sr-live {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Prose + section rhythm fixes ---------- */
.lede + .lede {
  margin-top: var(--space-4);
}
/* Two padded sections back to back left a dead band between the ranch
   intro and the card grid. */
.section + .section--tight {
  padding-top: 0;
}
/* A tinted band starts a new block, so it keeps its top padding. */
.section + .section--tight.section--cream {
  padding-top: clamp(var(--space-12), 6vw, var(--space-20));
}

/* Cross-link note sitting under a card grid needs air above it */
.svc-grid + .note {
  margin-top: var(--space-10);
}

/* Centred confirmation block: centre the eyebrow rule with it */
.thanks .eyebrow {
  justify-content: center;
}

/* Track qualifiers only matter in the no-JS form, where both tracks render at
   once. With JS only one track shows, so they would be redundant noise. */
.nojs-tag {
  color: var(--color-text-muted);
  font-weight: 400;
}
.has-js .nojs-tag {
  display: none;
}

/* Secondary route to the detailed estimate, under the contact buttons. */
.cta__alt,
.form-alt {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
}
.form-alt {
  margin-top: var(--space-6);
  color: var(--color-text-muted);
}
.cta__alt a,
.form-alt a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Privacy page: plain reading column on the thank-you layout. */
.privacy h2 {
  margin-top: var(--space-8);
  font-size: var(--text-lg);
  text-transform: uppercase;
}
.privacy a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.form__note a {
  color: inherit;
  text-decoration: underline;
}

/* Keyword line inside the H1: looks like the old eyebrow above it. */
h1 > .eyebrow {
  font-family: var(--font-body);
  line-height: 1.4;
  max-width: none;
}
