/* =============================================================
   GROUNDROOTS CUSTOM CARPENTRY
   Shared stylesheet — design tokens + components
   Dark editorial / premium furniture-maker aesthetic
   ============================================================= */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* Surfaces — charcoal / near-black, matching the logo */
  --ink:      #0f0f10;   /* near-black, dominant background */
  --ink-2:    #171719;   /* raised surface / cards */
  --ink-3:    #201f22;   /* hover surface */
  --paper:    #ece7dd;   /* warm bone light section */
  --paper-2:  #e1dbcf;   /* light section, slightly deeper */

  /* Monochrome + restrained bronze accent (drawn from the logo) */
  --bone:     #e9e2d4;   /* primary light / knockout tone (logo lettering) */
  --walnut:   #4a4038;   /* deep warm charcoal */
  --oak:      #b09a78;   /* alias → muted bronze */
  --amber:    #b09a78;   /* alias → muted bronze */
  --bronze:   #b09a78;   /* muted, desaturated accent — used sparingly */
  --brass:    #b09a78;   /* alias kept for existing rules → muted bronze */
  --brass-dim:#83745b;

  /* Text */
  --text:     #e9e4da;   /* primary on dark */
  --text-dim: #a8a297;   /* secondary on dark */
  --text-faint:#726d63;  /* tertiary on dark */
  --text-ink: #191817;   /* primary on light */
  --text-ink-dim: #55504a;

  /* Lines */
  --line:      rgba(176,154,120,0.16);   /* bronze hairline on dark */
  --line-soft: rgba(233,228,218,0.08);
  --line-ink:  rgba(25,24,23,0.12);

  /* Type — Cinzel (engraved Roman caps, matches logo) + Cormorant + Inter */
  --display: "Cinzel", "Times New Roman", serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing scale (8px base) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 96px; --sp-10: 128px;

  /* Layout */
  --container: 1200px;
  --radius: 4px;
  --radius-lg: 10px;

  /* Elevation */
  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 10px 30px rgba(0,0,0,.35);
  --shadow-3: 0 24px 60px rgba(0,0,0,.45);

  /* Motion */
  --ease-out: cubic-bezier(.22,.61,.36,1);
  --dur: 220ms;

  /* z-index scale */
  --z-nav: 100;
  --z-drawer: 200;
  --z-toast: 400;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }

::selection { background: var(--amber); color: #1a1206; }

/* Focus visibility (accessibility) */
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  background: var(--brass);
  color: #1a1206;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 500;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 16px; }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.9rem, 6.6vw, 4.8rem); line-height: 1.04; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 600; }
.serif { font-family: var(--serif); }

/* Cinzel engraved caps — brand voice, echoes the logo lettering */
.display, .hero h1, .cta-band h2 {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: .015em;
  line-height: 1.08;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.cta-band h2 { font-size: clamp(1.7rem, 3.8vw, 2.6rem); }

.kicker {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--brass-dim);
}
.kicker.center::before { display: none; }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 60ch;
}

/* ---------- 4. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}
.section { padding-block: clamp(56px, 9vw, var(--sp-9)); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }

.section-head { max-width: 62ch; margin-bottom: var(--sp-7); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .kicker { margin-bottom: var(--sp-4); }
.section-head p { margin-top: var(--sp-4); color: var(--text-dim); }

.bg-paper { background: var(--paper); color: var(--text-ink); }
.bg-paper h1, .bg-paper h2, .bg-paper h3 { color: var(--text-ink); }
.bg-paper .lead, .bg-paper .section-head p { color: var(--text-ink-dim); }
.bg-paper .kicker { color: var(--walnut); }
.bg-paper .kicker::before { background: var(--amber); }

.grid { display: grid; gap: var(--sp-5); }
.hairline { height: 1px; background: var(--line); border: 0; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .01em;
  touch-action: manipulation;
  transition: transform var(--dur) var(--ease-out),
              background var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out);
  will-change: transform;
}
.btn svg { width: 19px; height: 19px; }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--bone);
  color: #17130e;
  box-shadow: var(--shadow-1);
}
.btn--primary:hover { background: #f4efe5; }
.bg-paper .btn--primary { background: var(--text-ink); color: var(--paper); }
.bg-paper .btn--primary:hover { background: #000; }

.btn--solid-ink {
  background: var(--text-ink);
  color: var(--paper);
}
.btn--solid-ink:hover { background: #000; }

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--brass); background: rgba(202,164,106,.06); }

.bg-paper .btn--ghost { border-color: var(--line-ink); color: var(--text-ink); }
.bg-paper .btn--ghost:hover { border-color: var(--walnut); background: rgba(91,58,33,.05); }

.btn--lg { min-height: 56px; padding: 16px 32px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- 6. Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(14,14,15,.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--sp-5);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px;
  flex: none;
  object-fit: contain;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { line-height: 1; }
.brand-name {
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text);
}
.brand-kicker {
  display: block;
  font-size: .58rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  padding: 9px 14px;
  font-size: .95rem;
  color: var(--text-dim);
  border-radius: var(--radius);
  transition: color var(--dur) var(--ease-out);
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--brass); }
.nav-cta { margin-left: 10px; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  color: var(--text);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  background: rgba(8,8,9,.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease-out), visibility var(--dur);
}
.drawer.open { opacity: 1; visibility: visible; }
.drawer-panel {
  position: absolute;
  top: 0; right: 0;
  width: min(86vw, 340px);
  height: 100%;
  background: var(--ink-2);
  border-left: 1px solid var(--line);
  padding: 22px 22px calc(22px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateX(100%);
  transition: transform var(--dur) var(--ease-out);
  overflow-y: auto;
}
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.drawer-close { width: 46px; height: 46px; display: grid; place-items: center; color: var(--text); }
.drawer-close svg { width: 24px; height: 24px; }
.drawer a.d-link {
  padding: 15px 12px;
  font-size: 1.1rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--line-soft);
}
.drawer a.d-link.active { color: var(--brass); }
.drawer .btn { margin-top: 18px; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(60px, 10vw, 120px);
  overflow: hidden;
  /* No photo — a quiet, layered "dark studio" backdrop: fine wood-grain lines,
     a faint brass sheen top-right, and a soft floor glow. */
  background:
    linear-gradient(180deg, rgba(14,14,15,0) 0%, rgba(14,14,15,.55) 78%, var(--ink) 100%),
    radial-gradient(120% 90% at 85% -10%, rgba(198,168,120,.14), transparent 55%),
    radial-gradient(90% 70% at 8% 108%, rgba(176,134,88,.10), transparent 60%),
    repeating-linear-gradient(100deg,
      rgba(255,255,255,.022) 0px, rgba(255,255,255,.022) 1px,
      transparent 1px, transparent 9px,
      rgba(0,0,0,.20) 9px, rgba(0,0,0,.20) 10px,
      transparent 10px, transparent 26px),
    linear-gradient(160deg, #17161a 0%, var(--ink) 58%, #0a0a0b 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-media { display: block; }
.hero-media .photo-slot--hero {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 6;
  min-height: 0;
}
.hero h1 { margin-bottom: var(--sp-5); }
.hero .lead { margin-bottom: var(--sp-6); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line-soft);
}
.hero-meta div { line-height: 1.2; }
.hero-meta b {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--brass);
  font-weight: 500;
}
.hero-meta span { display: block; font-size: .8rem; color: var(--text-faint); margin-top: 4px; }

/* Hero brand logo (lockup above the headline) */
.hero-brand-logo {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
  margin-bottom: var(--sp-5);
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.35));
}
@media (max-width: 960px) {
  .hero-brand-logo { max-width: 360px; }
}

/* Ambient glow behind hero */
.hero::before {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 55vw; height: 55vw;
  max-width: 720px; max-height: 720px;
  background: radial-gradient(circle, rgba(198,168,120,.18), transparent 62%);
  pointer-events: none;
  z-index: 0;
}
/* Warm floor glow + top vignette for depth */
.hero::after {
  content: "";
  position: absolute;
  left: -12%; bottom: -30%;
  width: 50vw; height: 50vw;
  max-width: 640px; max-height: 640px;
  background: radial-gradient(circle, rgba(176,154,120,.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }

/* ---------- 8. Photo slots (designed placeholders) ---------- */
.photo-slot {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(115deg,
      rgba(0,0,0,.20) 0px, rgba(0,0,0,.20) 2px,
      transparent 2px, transparent 9px),
    linear-gradient(150deg, #2c2b2d 0%, #201f21 46%, #131315 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  color: var(--brass);
  isolation: isolate;
}
.photo-slot::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.5));
  z-index: 1;
}
.photo-slot__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.photo-slot__icon {
  width: 46px; height: 46px;
  opacity: .75;
}
.photo-slot__label {
  font-family: var(--sans);
  font-size: .82rem;
  letter-spacing: .04em;
  color: #d9d3c7;
  max-width: 30ch;
}
.photo-slot__tag {
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(176,154,120,.85);
  border: 1px solid rgba(176,154,120,.35);
  padding: 4px 10px;
  border-radius: 999px;
}
.photo-slot--tall { aspect-ratio: 3 / 4; }
.photo-slot--wide { aspect-ratio: 16 / 9; }
.photo-slot--hero { aspect-ratio: 5 / 6; box-shadow: var(--shadow-3); }
.photo-slot--square { aspect-ratio: 1 / 1; }

/* Real photos dropped into a slot: fill + crop to the slot's aspect ratio */
img.photo-slot { width: 100%; height: auto; object-fit: cover; display: block; }

/* ---------- 9. Cards ---------- */
.card {
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  transition: transform var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              background var(--dur) var(--ease-out);
}
.card:hover { border-color: var(--line); background: var(--ink-3); }
.card-icon {
  width: 48px; height: 48px;
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--brass);
  background: rgba(202,164,106,.08);
  border: 1px solid var(--line);
  margin-bottom: var(--sp-5);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: .97rem; }

.bg-paper .card { background: #fff; border-color: var(--line-ink); }
.bg-paper .card:hover { border-color: rgba(91,58,33,.25); }
.bg-paper .card p { color: var(--text-ink-dim); }
.bg-paper .card-icon { background: rgba(91,58,33,.06); border-color: rgba(91,58,33,.18); color: var(--walnut); }

.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 10. Trust strip — engraved credentials band ---------- */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  background:
    radial-gradient(55% 130% at 50% 0%, rgba(198,168,120,.08), transparent 70%),
    var(--ink-2);
}
.trust div {
  padding: 46px 24px 42px;
  text-align: center;
  position: relative;
}
/* hollow brass diamond ornament above each credential */
.trust div::before {
  content: "";
  display: block;
  width: 7px; height: 7px;
  margin: 0 auto 18px;
  transform: rotate(45deg);
  border: 1px solid var(--brass);
  opacity: .85;
}
/* hairline dividers between cells */
.trust div + div::after {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  height: 58%; width: 1px;
  background: linear-gradient(180deg, transparent, var(--line), transparent);
}
.trust b {
  font-family: var(--display);
  display: block;
  font-size: clamp(1.2rem, 1.75vw, 1.7rem);
  line-height: 1.25;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
}
.trust span {
  display: block;
  margin-top: 10px;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
@media (max-width: 880px) {
  .trust div { padding: 30px 18px 28px; }
  .trust div:nth-child(odd)::after { display: none; }
  .trust div:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
}

/* ---------- 11. Work / project grid ---------- */
.work-item { display: block; }
.work-item .photo-slot { margin-bottom: 14px; }
.work-item h3 { font-size: 1.15rem; margin-bottom: 2px; }
.work-item .meta { font-size: .85rem; color: var(--text-faint); }
.bg-paper .work-item .meta { color: var(--text-ink-dim); }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--sp-6);
}
.filter-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-ink);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-ink-dim);
  transition: all var(--dur) var(--ease-out);
}
.filter-btn:hover { border-color: var(--walnut); }
.filter-btn.active { background: var(--text-ink); color: var(--paper); border-color: var(--text-ink); }

/* ---------- 12. Process timeline ---------- */
.steps { display: grid; gap: var(--sp-6); counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: var(--sp-5);
  align-items: start;
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--line-ink);
}
.step:last-child { border-bottom: 0; padding-bottom: 0; }
.step-num {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--amber);
  line-height: 1;
  font-weight: 500;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-ink-dim); }

/* ---------- 14. CTA band ---------- */
.cta-band {
  background:
    radial-gradient(120% 140% at 80% 0%, rgba(176,154,120,.14), transparent 55%),
    linear-gradient(180deg, #1b1a1c, #0d0d0e);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 72px);
  text-align: center;
}
.cta-band h2 { margin-bottom: var(--sp-4); }
.cta-band p { color: var(--text-dim); max-width: 52ch; margin: 0 auto var(--sp-6); }
.cta-band .hero-cta { justify-content: center; }

/* ---------- 15. Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.contact-actions { display: grid; gap: 14px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ink-2);
  transition: border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.contact-card:hover { border-color: var(--brass); background: var(--ink-3); }
.contact-card .ci {
  width: 48px; height: 48px; flex: none;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(202,164,106,.1);
  color: var(--brass);
  border: 1px solid var(--line);
}
.contact-card .ci svg { width: 24px; height: 24px; }
.contact-card .ct { line-height: 1.3; }
.contact-card .ct span { display: block; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
.contact-card .ct b { font-size: 1.14rem; color: var(--text); font-weight: 600; }

/* ---------- 16. Form ---------- */
.form {
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 4vw, 36px);
}
.field { margin-bottom: var(--sp-5); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.field label {
  display: block;
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--text);
  margin-bottom: 8px;
}
.field label .req { color: var(--amber); margin-left: 3px; }
.field .hint { font-size: .78rem; color: var(--text-faint); margin-top: 6px; }
.input, .select, .textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  background: var(--ink);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.textarea { min-height: 118px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23caa46a' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 42px; }
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brass);
  background: #100f0d;
}
.field.invalid .input, .field.invalid .select, .field.invalid .textarea { border-color: #d9736b; }
.error-msg {
  display: none;
  font-size: .8rem;
  color: #e0897f;
  margin-top: 7px;
}
.field.invalid .error-msg { display: block; }

.form-status {
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: .92rem;
  margin-bottom: var(--sp-5);
  display: none;
  align-items: center;
  gap: 10px;
}
.form-status.show { display: flex; }
.form-status.success { background: rgba(120,170,110,.12); border: 1px solid rgba(120,170,110,.4); color: #b6d6ac; }
.form-status.error   { background: rgba(217,115,107,.1); border: 1px solid rgba(217,115,107,.4); color: #e6a89f; }
.form-status.info    { background: rgba(202,164,106,.1); border: 1px solid var(--line); color: var(--brass); }

.btn.is-loading { pointer-events: none; opacity: .8; }
.btn.is-loading .btn-label { visibility: hidden; }
.btn .spinner {
  display: none;
  width: 20px; height: 20px;
  border: 2px solid rgba(26,18,6,.35);
  border-top-color: #1a1206;
  border-radius: 999px;
  position: absolute;
  animation: spin .7s linear infinite;
}
.btn.is-loading .spinner { display: block; }
.btn { position: relative; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 17. FAQ ---------- */
.faq { border-top: 1px solid var(--line-ink); }
.faq details {
  border-bottom: 1px solid var(--line-ink);
  padding: 20px 0;
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--text-ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { flex: none; transition: transform var(--dur) var(--ease-out); color: var(--walnut); }
.faq details[open] summary .chev { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--text-ink-dim); max-width: 68ch; }

/* ---------- 18. Footer ---------- */
.site-footer {
  background: #0a0a0b;
  border-top: 1px solid var(--line-soft);
  padding-block: var(--sp-8) var(--sp-6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--sp-6);
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid var(--line-soft);
}
.footer-grid h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px; font-weight: 600; }
.footer-grid p { color: var(--text-dim); font-size: .95rem; max-width: 34ch; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: var(--text-dim); font-size: .95rem; }
.footer-links a:hover { color: var(--brass); }
.footer-contact a { display: block; color: var(--text-dim); margin-bottom: 8px; }
.footer-contact a:hover { color: var(--brass); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: var(--sp-5);
  flex-wrap: wrap;
}
.footer-bottom p { font-size: .82rem; color: var(--text-faint); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }

/* ---------- 19. Scroll reveal ---------- */
/* Hidden state only applies once JS confirms it's running (html.js), so if
   the script ever fails to load, all content stays visible instead of blank. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  will-change: opacity, transform;
}
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .06s; }
.reveal.d2 { transition-delay: .12s; }
.reveal.d3 { transition-delay: .18s; }
.reveal.d4 { transition-delay: .24s; }

/* ---------- 20. Utilities ---------- */
.center { text-align: center; }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.note {
  font-size: .86rem;
  color: var(--text-faint);
  border-left: 2px solid var(--brass-dim);
  padding: 10px 0 10px 16px;
  background: rgba(202,164,106,.03);
  max-width: 64ch;
}
.bg-paper .note { color: var(--text-ink-dim); border-color: var(--amber); background: rgba(181,121,58,.05); }
.eyebrow-page {
  padding-block: clamp(40px, 7vw, 88px) clamp(24px, 3vw, 40px);
}
.page-title { max-width: 22ch; }

/* ---------- 21. Responsive ---------- */
/* Hero pairs into two columns only when there's room to balance them; stacks below that */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 580px; }
}
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-links, .nav > .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .step { grid-template-columns: 56px 1fr; gap: var(--sp-4); }
  .step-num { font-size: 1.9rem; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .hero-meta { gap: 16px; }
  .hero-meta b { font-size: 1.3rem; }
  .hero-media .photo-slot--hero { min-height: 0; aspect-ratio: 5 / 6; }
}

/* ---------- 22a. Mobile quick-contact bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 720px) {
  .mobile-bar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: var(--z-nav);
    background: rgba(15,15,16,.96);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-top: 1px solid var(--line);
    padding: 10px max(10px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-right));
    gap: 10px;
  }
  .has-mobile-bar { padding-bottom: 78px; }
  .mobile-bar__btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 6px;
    min-height: 54px;
    border-radius: var(--radius);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--text-dim);
    border: 1px solid var(--line-soft);
  }
  .mobile-bar__btn svg { width: 20px; height: 20px; }
  .mobile-bar__btn--primary { background: var(--bone); color: #17130e; border-color: transparent; }
}

/* ---------- 22b. Quote form: file field + success panel ---------- */
.field input[type="file"] {
  width: 100%;
  min-height: 50px;
  padding: 10px 12px;
  background: var(--ink);
  border: 1px dashed var(--line-soft);
  border-radius: var(--radius);
  color: var(--text-faint);
  font: inherit;
  font-size: .92rem;
}
.field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--ink-3);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.field input[type="file"]::file-selector-button:hover { border-color: var(--brass); }

.form-success {
  display: none;
  background: var(--ink-2);
  border: 1px solid rgba(120,170,110,.4);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 44px);
  text-align: center;
}
.form-success.show { display: block; }
.form-success .fs-icon {
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(120,170,110,.14);
  color: #9fcf94;
  border: 1px solid rgba(120,170,110,.4);
}
.form-success .fs-icon svg { width: 28px; height: 28px; }
.form-success h3 { margin-bottom: 10px; }
.form-success p { color: var(--text-dim); max-width: 46ch; margin: 0 auto; }
.form-success .btn { margin-top: 24px; }

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