/* ═══════════════════════════════════════════════════════════════════════
   Quality Fence Works LLC
   Palette and accent gradient lifted from the company's own yard sign:
   solid black ink, a bronze band (#71583A → #8D7456 → #AF916D), white type.
   Motif: the vertical picket rhythm, used as texture and as rules.
   ═══════════════════════════════════════════════════════════════════════ */

/* === defensive base — injected by harden_css.py; do not hand-edit === */
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-padding-top: calc(var(--nav-h, 72px) + 1rem); }
img, svg, video, iframe, canvas, table { display: block; max-width: 100%; }
p, li, h1, h2, h3, h4, blockquote, td, dd, dt { overflow-wrap: anywhere; }
form[style*="min-height"] { align-content: center; }
/* === end defensive base === */

:root {
  --ink:        #12100E;
  --ink-2:      #191612;
  --ink-3:      #221E18;
  --ink-4:      #2C2720;

  --bone:       #F3EFE7;
  --bone-2:     #D8D2C6;
  --bone-dim:   rgba(243, 239, 231, .60);
  --bone-faint: rgba(243, 239, 231, .34);

  --bronze:     #AF916D;
  --bronze-mid: #8D7456;
  --bronze-deep:#71583A;
  --bronze-lift:#C9AC86;

  --rule:       rgba(175, 145, 109, .22);
  --rule-soft:  rgba(243, 239, 231, .10);

  --band: linear-gradient(90deg, var(--bronze-deep) 0%, var(--bronze-mid) 38%, var(--bronze-lift) 62%, var(--bronze-mid) 100%);

  --display: "Archivo Black", "Arial Black", sans-serif;
  --body:    "Barlow", system-ui, sans-serif;

  --nav-h: 4.5rem;
  --wrap: 74rem;
  --pad: clamp(1.15rem, 4vw, 2.5rem);

  --r: 4px;
  --shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, .5);
}

/* ── base ───────────────────────────────────────────────────────────── */

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: clamp(1rem, .96rem + .18vw, 1.075rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Faint grain over everything — the sign stock had a brushed texture. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='.5'/></svg>");
}

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: .96; letter-spacing: -.015em; margin: 0; }
p { margin: 0; }
img { display: block; }
a { color: inherit; }

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

/* Hidden by clipping, not by an off-canvas offset — a negative `left` would
   register as horizontal overflow on the page. */
.skip {
  position: absolute; top: .5rem; left: .5rem; z-index: 100;
  width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
  background: var(--bronze); color: #14110D; font-weight: 600;
}
.skip:focus {
  width: auto; height: auto; padding: .75rem 1.25rem; clip-path: none;
}

:where(a, button, input, textarea, select):focus-visible {
  outline: 2px solid var(--bronze-lift);
  outline-offset: 3px;
}

/* ── buttons ────────────────────────────────────────────────────────── */

.btn {
  --btn-y: .95rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: var(--btn-y) 1.65rem;
  font-family: var(--body);
  font-size: .95rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; border-radius: var(--r);
  cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, box-shadow .22s ease, background-position .35s ease, border-color .2s ease, color .2s ease;
}
.btn--primary {
  background: var(--band); background-size: 200% 100%; background-position: 0% 0;
  color: #17130D; box-shadow: 0 .5rem 1.5rem rgba(175, 145, 109, .22);
}
.btn--primary:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 .75rem 2rem rgba(175, 145, 109, .34); }
.btn--ghost { border-color: var(--rule); color: var(--bone); background: rgba(243, 239, 231, .03); }
.btn--ghost:hover { border-color: var(--bronze); color: var(--bronze-lift); transform: translateY(-2px); }
.btn--sm { --btn-y: .62rem; padding-inline: 1.15rem; font-size: .8rem; }
.btn--lg { --btn-y: 1.1rem; padding-inline: 2.1rem; }

/* ── nav ────────────────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(18, 16, 14, .88);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--rule-soft);
}
.nav__inner {
  width: min(100% - (var(--pad) * 2), var(--wrap));
  margin-inline: auto;
  min-height: var(--nav-h);
  display: flex; align-items: center; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand__mark { width: auto; height: 2.1rem; opacity: .95; }
.brand__type { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--display); font-size: 1.02rem; letter-spacing: -.01em; text-transform: uppercase;
}
.brand__meta {
  font-size: .62rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--bronze); margin-top: .3rem;
}

.nav__links { display: flex; align-items: center; gap: 1.75rem; }
.nav__links a {
  text-decoration: none; font-size: .84rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--bone-dim);
  position: relative; padding-block: .35rem;
  transition: color .2s ease;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--bronze); transition: width .25s ease;
}
.nav__links a:hover { color: var(--bone); }
.nav__links a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: .75rem; }

.nav__toggle {
  display: none;
  width: 2.6rem; height: 2.6rem; padding: 0;
  background: none; border: 1px solid var(--rule); border-radius: var(--r);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav__toggle span { display: block; width: 1.05rem; height: 1.5px; background: var(--bone); transition: transform .25s ease, opacity .2s ease; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── hero ───────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: flex; align-items: center;
  padding-block: clamp(1.5rem, 4svh, 3.5rem);
  overflow-x: clip;
  isolation: isolate;
}

/* The picket rhythm, drawn in CSS. */
.hero__slats {
  position: absolute; inset: 0; z-index: -2;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(243, 239, 231, .035) 0 2px,
    transparent 2px 46px
  );
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 68%, transparent);
}
.hero__glow {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(58rem 32rem at 78% 18%, rgba(175, 145, 109, .17), transparent 62%),
    radial-gradient(40rem 30rem at 8% 88%, rgba(113, 88, 58, .16), transparent 66%);
}

.hero__inner {
  width: min(100% - (var(--pad) * 2), var(--wrap));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

/* Container query source: the headline scales to THIS column, not the viewport,
   so it can never overflow or push the CTA past the fold on a narrow phone. */
.hero__copy {
  container-type: inline-size;
  display: flex; flex-direction: column;
  gap: clamp(.85rem, 2.2cqi, 1.6rem);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: clamp(.66rem, 1.9cqi, .78rem); font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase; color: var(--bronze);
}
.eyebrow__dot { width: 6px; height: 6px; background: var(--bronze); border-radius: 50%; flex: none; }

.hero__title {
  /* Capped so "THE RIGHT FENCE" holds one line in this column rather than
     orphaning "FENCE"; cqi keeps it proportional on narrow screens. */
  font-size: clamp(2.05rem, 11.4cqi, 4.2rem);
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.hero__title em {
  font-style: normal;
  background: var(--band); background-size: 180% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero__sub {
  font-size: clamp(.94rem, 2.6cqi, 1.16rem);
  color: var(--bone-dim);
  max-width: 34ch;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: .7rem; }

.hero__proof {
  display: flex; align-items: center; gap: .7rem;
  font-size: clamp(.78rem, 2.2cqi, .92rem);
  color: var(--bone-dim);
}
.proof__badge {
  font-family: var(--display); font-size: .82em; letter-spacing: -.02em;
  color: #17130D; background: var(--band);
  padding: .3em .55em; border-radius: 3px; flex: none;
}

.hero__shot {
  position: relative; margin: 0;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero__shot img {
  width: 100%; height: 100%;
  aspect-ratio: 4 / 5;
  max-height: min(62svh, 34rem);
  object-fit: cover; object-position: center 30%;
}
.hero__shot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(190deg, transparent 45%, rgba(18, 16, 14, .72));
}
.hero__tag {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  display: flex; align-items: baseline; gap: .5rem;
  padding: .8rem 1.1rem;
  background: var(--band);
  color: #17130D;
}
.hero__tag strong { font-family: var(--display); font-size: 1.85rem; line-height: 1; }
.hero__tag span { font-size: .6rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; line-height: 1.15; }

/* ── trust strip ────────────────────────────────────────────────────── */

.strip {
  border-block: 1px solid var(--rule);
  background: var(--ink-2);
}
.strip__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
}
.strip__item {
  background: var(--ink-2);
  padding: clamp(1.4rem, 3.5vw, 2.4rem) clamp(.9rem, 2vw, 1.5rem);
  display: flex; flex-direction: column; gap: .35rem; align-items: center; text-align: center;
}
.strip__item strong {
  font-family: var(--display); font-size: clamp(1.7rem, 4.2vw, 2.6rem); line-height: 1;
  background: var(--band); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.strip__item span {
  font-size: .74rem; font-weight: 500; letter-spacing: .13em; text-transform: uppercase;
  color: var(--bone-dim);
}

/* ── section scaffolding ────────────────────────────────────────────── */

.section { padding-block: clamp(4rem, 10vw, 7.5rem); }
.section--alt { background: var(--ink-2); border-block: 1px solid var(--rule-soft); }

.head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.kicker {
  display: flex; align-items: center; gap: .7rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--bronze); margin-bottom: 1.1rem;
}
.kicker::before { content: ""; width: 2rem; height: 1px; background: var(--bronze); flex: none; }
.kicker--light { justify-content: center; }

.h2 {
  font-size: clamp(1.85rem, 5.2vw, 3.3rem);
  text-transform: uppercase;
  letter-spacing: -.025em;
  text-wrap: balance;   /* stops a single word orphaning onto its own line */
}
.lede { margin-top: 1.15rem; color: var(--bone-dim); font-size: clamp(1rem, 1.9vw, 1.12rem); max-width: 52ch; }

/* ── work grid ──────────────────────────────────────────────────────── */

.grid-work {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: clamp(.9rem, 2vw, 1.35rem);
  grid-auto-flow: dense;   /* backfill any cell a wide tile would leave open */
}
.shot {
  position: relative; margin: 0;
  border: 1px solid var(--rule-soft); border-radius: var(--r);
  overflow: hidden; background: var(--ink-3);
  transition: border-color .3s ease, transform .3s ease;
}
.shot img {
  width: 100%; height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .3, 1), filter .4s ease;
  filter: saturate(.88) contrast(1.04);
}
.shot figcaption {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 2.6rem .95rem .85rem;
  font-size: .78rem; font-weight: 500; letter-spacing: .04em;
  color: var(--bone);
  background: linear-gradient(transparent, rgba(12, 10, 8, .92));
}
.shot:hover { border-color: var(--rule); transform: translateY(-3px); }
.shot:hover img { transform: scale(1.045); filter: saturate(1) contrast(1.06); }

@media (min-width: 62rem) {
  .grid-work { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shot--wide { grid-column: span 2; }
  .shot--wide img { aspect-ratio: 2 / 1; }
}

/* ── materials ──────────────────────────────────────────────────────── */

/* Fixed 3-up at desktop: six materials tile into two clean rows. auto-fit would
   resolve to four columns here and leave two dead cells on the second row. */
.grid-mat {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r);
  overflow: hidden;
}
.mat {
  background: var(--ink-2);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  position: relative;
  transition: background .3s ease;
}
.mat::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--band); transform: scaleY(0); transform-origin: top;
  transition: transform .35s ease;
}
.mat:hover { background: var(--ink-3); }
.mat:hover::after { transform: scaleY(1); }
.mat__no {
  font-family: var(--display); font-size: .78rem; letter-spacing: .1em;
  color: var(--bronze-mid); display: block; margin-bottom: .9rem;
}
.mat h3 { font-size: 1.32rem; text-transform: uppercase; margin-bottom: .6rem; }
.mat p { color: var(--bone-dim); font-size: .95rem; }

/* ── also-build band ────────────────────────────────────────────────── */

.also {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--rule); border-radius: var(--r);
  padding: clamp(1.6rem, 3.5vw, 2.5rem);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center;
  background:
    linear-gradient(rgba(175, 145, 109, .05), rgba(175, 145, 109, .05)),
    var(--ink-3);
}
.also__head h3 { font-size: clamp(1.25rem, 3vw, 1.7rem); text-transform: uppercase; margin-bottom: .6rem; text-wrap: balance; }
.also__head p { color: var(--bone-dim); font-size: .95rem; }
.also__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: .6rem 1.25rem;
}
.also__list li {
  display: flex; align-items: center; gap: .6rem;
  font-size: .93rem; font-weight: 500; color: var(--bone-2);
}
.also__list li::before {
  content: ""; flex: none; width: 7px; height: 12px;
  background: var(--bronze);
  clip-path: polygon(0 22%, 50% 0, 100% 22%, 100% 100%, 0 100%); /* picket top */
}

/* ── quote note ─────────────────────────────────────────────────────── */

.quote-note {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px dashed var(--rule); border-radius: var(--r);
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center;
}
.quote-note h3 { font-size: clamp(1.15rem, 2.6vw, 1.45rem); text-transform: uppercase; margin-bottom: .65rem; text-wrap: balance; }
.quote-note p { color: var(--bone-dim); font-size: .95rem; }
.quote-note .btn { justify-self: start; }

/* ── reviews ────────────────────────────────────────────────────────── */

.grid-rev {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: clamp(1rem, 2.2vw, 1.5rem);
}
.rev {
  margin: 0; padding: clamp(1.5rem, 3vw, 2.1rem);
  border: 1px solid var(--rule-soft); border-radius: var(--r);
  background: var(--ink-2);
  display: flex; flex-direction: column; gap: 1.35rem;
  position: relative;
}
.rev::before {
  content: "”";
  font-family: var(--display); font-size: 4.5rem; line-height: .7;
  color: var(--bronze); opacity: .28;
  position: absolute; top: .9rem; right: 1.1rem;
}
.rev p { font-size: 1.02rem; color: var(--bone-2); padding-right: 2.25rem; }  /* clear the quote glyph */
.rev cite { font-style: normal; display: flex; flex-direction: column; gap: .2rem; margin-top: auto; }
.rev__who { font-family: var(--display); font-size: .95rem; text-transform: uppercase; letter-spacing: -.01em; }
.rev__src { font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; color: var(--bronze-mid); }

/* ── service area ───────────────────────────────────────────────────── */

.area {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.area__facts {
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 1.35rem 1.75rem;
}
.area__facts dt {
  font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--bronze); margin-bottom: .35rem;
}
.area__facts dd { margin: 0; font-size: .98rem; color: var(--bone-2); }
.area__facts a { text-decoration: none; border-bottom: 1px solid var(--rule); transition: border-color .2s ease, color .2s ease; }
.area__facts a:hover { color: var(--bronze-lift); border-color: var(--bronze); }
.area__cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: clamp(1.75rem, 4vw, 2.5rem); }

.area__sign { margin: 0; }
.area__sign img {
  width: 100%; height: auto;
  border: 1px solid var(--rule); border-radius: var(--r);
  box-shadow: var(--shadow);
}
.area__sign figcaption {
  margin-top: .9rem; font-size: .82rem; color: var(--bone-faint); text-align: center; font-style: italic;
}

/* ── final CTA ──────────────────────────────────────────────────────── */

.cta {
  position: relative;
  padding-block: clamp(4rem, 10vw, 7rem);
  text-align: center;
  border-top: 1px solid var(--rule);
  overflow-x: clip;
  isolation: isolate;
  background: radial-gradient(46rem 24rem at 50% 0%, rgba(175, 145, 109, .16), transparent 68%), var(--ink);
}
.cta__slats {
  position: absolute; inset: 0; z-index: -1;
  background-image: repeating-linear-gradient(90deg, rgba(243, 239, 231, .04) 0 2px, transparent 2px 40px);
  mask-image: linear-gradient(180deg, #000, transparent 78%);
}
.cta__title { font-size: clamp(2rem, 6vw, 3.6rem); text-transform: uppercase; margin-bottom: 1rem; }
.cta__sub { color: var(--bone-dim); max-width: 40ch; margin-inline: auto; font-size: 1.05rem; }
.cta__row { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 2.25rem; }

/* ── footer ─────────────────────────────────────────────────────────── */

.foot { background: var(--ink-2); border-top: 1px solid var(--rule); padding-top: clamp(3rem, 6vw, 4.5rem); }
.foot__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.foot__brand { display: flex; gap: 1rem; align-items: flex-start; }
.foot__brand .brand__mark { height: 3.1rem; opacity: .9; }
.foot__name { font-family: var(--display); font-size: 1.05rem; text-transform: uppercase; margin-bottom: .45rem; }
.foot__tag { font-size: .88rem; color: var(--bone-dim); line-height: 1.5; }

.foot__nav { display: flex; flex-direction: column; gap: .6rem; }
.foot__nav a {
  text-decoration: none; font-size: .84rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--bone-dim); transition: color .2s ease;
}
.foot__nav a:hover { color: var(--bronze-lift); }

.foot__contact { display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.foot__contact a { text-decoration: none; font-size: .9rem; color: var(--bone-dim); transition: color .2s ease; }
.foot__contact a:hover { color: var(--bronze-lift); }
.foot__phone {
  font-family: var(--display); font-size: 1.4rem !important; letter-spacing: -.01em;
  background: var(--band); -webkit-background-clip: text; background-clip: text; color: transparent !important;
}

.foot__base {
  border-top: 1px solid var(--rule-soft);
  padding-block: 1.5rem;
  font-size: .78rem; color: var(--bone-faint);
}

/* ── contact page ───────────────────────────────────────────────────── */

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

/* The page header is its own short section so it resolves cleanly above the
   fold; the form grid below carries the page's real height. */
.contact-hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: 0; }
.contact-hero .head { margin-bottom: 0; }
.contact-body { padding-top: clamp(1.75rem, 4vw, 2.75rem); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 56rem) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

.form-card {
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background:
    linear-gradient(rgba(175, 145, 109, .04), rgba(175, 145, 109, .04)),
    var(--ink-2);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}
.form-card form { display: grid; gap: 1.5rem; }

.form-fields { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .5rem; }
.field label {
  font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--bronze);
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--body); font-size: 1rem; color: var(--bone);
  background: var(--ink); border: 1px solid var(--rule-soft); border-radius: var(--r);
  padding: .85rem 1rem;
  transition: border-color .2s ease, background .2s ease;
}
.field textarea { resize: vertical; min-height: 7.5rem; line-height: 1.55; }
.field input::placeholder,
.field textarea::placeholder { color: var(--bone-faint); }
.field input:focus,
.field textarea:focus { border-color: var(--bronze); background: var(--ink-3); outline-offset: 1px; }
.field input:user-invalid,
.field textarea:user-invalid { border-color: #9E5B47; }
.field__hint { font-size: .82rem; color: var(--bone-faint); }

.form-card .btn { justify-self: start; }
.btn.is-sent {
  background: none; border-color: var(--bronze); color: var(--bronze-lift);
  box-shadow: none; cursor: default; opacity: 1;
}

.form-status {
  font-size: .95rem; line-height: 1.55;
  padding: .9rem 1.1rem; border-radius: var(--r);
  border-left: 3px solid var(--bronze);
  background: rgba(175, 145, 109, .09);
  color: var(--bone-2);
}
.form-status.is-err { border-left-color: #C4735A; background: rgba(196, 115, 90, .1); }

.turnstile-box { margin-block: .25rem; }

.contact-side { display: grid; gap: clamp(1.1rem, 2.5vw, 1.5rem); }
.side-block {
  border: 1px solid var(--rule-soft); border-radius: var(--r);
  background: var(--ink-2);
  padding: clamp(1.15rem, 2.5vw, 1.5rem);
}
.side-block h2 {
  font-size: .95rem; text-transform: uppercase; letter-spacing: 0;
  margin-bottom: .55rem;
}
.side-block p { font-size: .93rem; color: var(--bone-dim); }
.side-block a { color: var(--bone-2); text-decoration: none; border-bottom: 1px solid var(--rule); }
.side-block a:hover { color: var(--bronze-lift); border-color: var(--bronze); }

.side-phone {
  display: inline-block; margin-top: .9rem;
  font-family: var(--display); font-size: clamp(1.5rem, 4.5vw, 1.95rem); letter-spacing: -.02em;
  background: var(--band); -webkit-background-clip: text; background-clip: text;
  color: transparent !important; border: 0 !important; text-decoration: none;
}
.side-actions { display: flex; gap: .55rem; margin-top: 1rem; }

.side-sign img {
  width: 100%; height: auto;
  border: 1px solid var(--rule); border-radius: var(--r);
  opacity: .88;
}
.side-sign { margin: 0; }

/* ── scroll reveal (below the fold only) ────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ── responsive ─────────────────────────────────────────────────────── */

/* Must sit AFTER the base .grid-mat rule: a media query adds no specificity,
   so with auto-fit declared later in the sheet this would never apply. */
@media (min-width: 62rem) {
  .grid-mat { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 61.99rem) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: clamp(1.25rem, 3.5vh, 2rem); }
  .hero__shot img { aspect-ratio: 16 / 9; max-height: 26svh; }
  .hero__tag { padding: .6rem .85rem; }
  .hero__tag strong { font-size: 1.4rem; }
  .strip__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* The CTA lives in the drawer on small screens — see the nav rules below. */
.nav__cta-mobile { display: none; }

@media (max-width: 53rem) {
  .nav__toggle { display: flex; }
  .nav__links {
    display: none;               /* real hide — a class alone would lose to [hidden] */
    position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-2);
    border-bottom: 1px solid var(--rule);
    padding: .5rem var(--pad) 1.25rem;
    box-shadow: var(--shadow);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding-block: .9rem; border-bottom: 1px solid var(--rule-soft); font-size: .92rem; }
  .nav__links a::after { display: none; }
  .nav { position: sticky; }

  /* 390px can't hold mark + wordmark + a CTA + the hamburger. Keep the brand on
     one line and move the CTA into the drawer rather than let them collide. */
  .brand__name { font-size: .95rem; white-space: nowrap; }
  .brand__meta { display: none; }
  .nav__actions > .btn { display: none; }
  .nav__links .nav__cta-mobile {
    display: inline-flex;
    margin-top: 1rem; border-bottom: 0; font-size: .85rem;
  }
}

@media (max-width: 30rem) {
  .hero__sub { max-width: none; }
  .btn { padding-inline: 1.3rem; font-size: .88rem; }
  .strip__item { padding-block: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* === site credit (injected by credit_footer.py); do not hand-edit === */
.site-credit {
  margin: 2.25rem 0 0;
  padding-inline: 1.25rem;
  font-size: .73rem;
  line-height: 1.5;
  letter-spacing: .06em;
  text-align: center;
  opacity: .65;
}
.site-credit a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(128, 128, 128, .5);
  border-bottom: 1px solid color-mix(in srgb, currentColor 45%, transparent);
  transition: border-bottom-color .25s ease;
}
.site-credit a:hover,
.site-credit a:focus-visible { border-bottom-color: currentColor; }
@media (prefers-reduced-motion: reduce) {
  .site-credit a { transition: none; }
}
/* === end site credit === */
