/* ==========================================================================
   Smokies Staging and Design — site styles
   Single stylesheet. Sections in order:
   1. Tokens  2. Reset/base  3. Layout  4. Type  5. Buttons  6. Header/nav
   7. Hero  8. Components  9. Before/after  10. Forms  11. Footer  12. Utilities
   ========================================================================== */

/* 1. Tokens ------------------------------------------------------------- */
:root {
  /* Charcoal / cream / gold, sampled from the wordmark artwork.
     Neutrals carry a faint warm bias so they sit with the gold rather than
     fighting it — a true grey would read cold against it. */
  --ink:       #1a1c1d;   /* deepest ground — footer, ink sections */
  --slate:     #2e3234;   /* primary buttons, links on light */
  --slate-dk:  #26292b;   /* dark section ground */
  --gold:      #b0904f;   /* accent — eyebrows, focus, primary CTA */
  --gold-lt:   #cdae72;   /* accent on dark grounds */
  --cream:     #f2efe7;   /* page ground */
  --cream-dk:  #e6e1d5;   /* placeholder fills */
  --stone:     #8a867d;   /* de-emphasised text */
  --white:     #ffffff;

  --bg:         var(--cream);
  --fg:         var(--ink);
  --muted:      #5c5f60;
  --rule:       rgba(26, 28, 29, 0.13);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Playfair Display", "Iowan Old Style", Georgia, "Times New Roman", serif;

  --page:   1240px;
  --narrow: 760px;
  --gutter: clamp(1.25rem, 5vw, 4rem);

  --s1: 0.5rem;  --s2: 0.75rem; --s3: 1rem;   --s4: 1.5rem;
  --s5: 2rem;    --s6: 3rem;    --s7: 4.5rem; --s8: 7rem;

  --radius: 2px;
  --shadow: 0 1px 2px rgba(26,28,29,.04), 0 12px 32px -12px rgba(26,28,29,.14);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* 2. Reset / base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--cream);
  padding: var(--s2) var(--s4); z-index: 200;
}
.skip:focus { left: var(--s3); top: var(--s3); }

/* 3. Layout -------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: calc(var(--narrow) + var(--gutter) * 2); }

.section { padding-block: clamp(3.5rem, 9vw, var(--s8)); }
.section--tight { padding-block: clamp(2.5rem, 6vw, var(--s7)); }

.section--dark { background: var(--slate-dk); color: var(--cream); }
.section--dark .eyebrow { color: var(--gold-lt); }
.section--dark .lede,
.section--dark p { color: rgba(242, 239, 231, 0.82); }
.section--dark a { color: var(--cream); }

.section--ink { background: var(--ink); color: var(--cream); }
.section--ink .eyebrow { color: var(--gold-lt); }
.section--ink p { color: rgba(242, 239, 231, 0.78); }

.section--paper { background: var(--white); }

.grid { display: grid; gap: var(--s5); }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--split { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
  .grid--split-wide { grid-template-columns: 5fr 6fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
}

/* 4. Type ---------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  /* Playfair is a high-contrast didone; it wants a touch less negative tracking
     than Fraunces did, or the thin strokes start colliding at display sizes. */
  letter-spacing: -0.01em;
  margin: 0 0 var(--s3);
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6.2vw, 4.15rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.2; }
h4 { font-size: 1.0625rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 var(--s4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s3);
}

.lede {
  font-size: clamp(1.1rem, 1.9vw, 1.3rem);
  line-height: 1.55;
  color: var(--muted);
}

.small { font-size: 0.9rem; }
.fine {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--stone);
}

.measure { max-width: 62ch; }
.measure-tight { max-width: 46ch; }

/* 5. Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.7em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--slate); color: var(--cream); }
.btn--primary:hover { background: var(--ink); }

.btn--gold { background: var(--gold); color: var(--white); }
.btn--gold:hover { background: #96793f; }

.btn--ghost { border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.section--dark .btn--ghost:hover,
.section--ink .btn--ghost:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--slate);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: gap .25s var(--ease), border-color .25s var(--ease);
}
.link-arrow:hover { gap: 0.85em; border-color: currentColor; }
.section--dark .link-arrow,
.section--ink .link-arrow { color: var(--gold-lt); border-color: rgba(205,174,114,.4); }

/* 6. Header / nav -------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(242, 239, 231, 0.9);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--rule);
  transition: background .3s var(--ease);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: 74px;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.05;
}
/* Mirrors the wordmark: caps serif over wide-tracked sans. */
.brand__mark {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
}
.brand__sub {
  font-size: 0.56rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 6px;
  /* the last letter's tracking would otherwise push the lockup off-centre */
  margin-right: -0.3em;
}

.nav { display: flex; align-items: center; gap: var(--s5); }
.nav__list {
  display: flex;
  gap: var(--s5);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  padding-block: 0.4em;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--ink); border-color: var(--gold); }

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.6em 0.85em;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--rule);
    padding: var(--s3) var(--gutter) var(--s5);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav[data-open="true"] { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link {
    display: block;
    padding: var(--s3) 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--rule);
  }
  .nav .btn { margin-top: var(--s4); justify-content: center; }
}

/* 7. Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--slate-dk);
  color: var(--cream);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  background-color: var(--slate-dk);
  background-image: url("../img/hero-living-fireplace.jpg");
  background-size: cover;
  /* Framed so the lit fireplace and styled mantle stay in view on the right,
     clear of the headline, in the lighter part of the wash where it reads. */
  background-position: 0% 38%;
}
.hero__media::after {
  /* Darkening wash so the headline stays legible over the photograph.
     Weighted to the left, where the text sits. */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(18,20,21,.92) 0%, rgba(18,20,21,.78) 38%,
                    rgba(18,20,21,.42) 68%, rgba(18,20,21,.30) 100%),
    linear-gradient(to top, rgba(18,20,21,.75), transparent 45%);
}
@media (max-width: 760px) {
  /* On narrow screens the text covers the frame, so lean harder on the wash. */
  .hero__media::after {
    background: linear-gradient(to bottom, rgba(18,20,21,.88), rgba(18,20,21,.80));
  }
}
.hero__inner {
  position: relative;
  padding-block: clamp(4rem, 12vw, 8.5rem);
  max-width: 46rem;
}
.hero h1 { color: var(--cream); }
.hero .lede { color: rgba(242,239,231,.84); max-width: 40ch; }
.hero .btn-row { margin-top: var(--s5); }
.hero__note {
  margin-top: var(--s5);
  font-size: 0.82rem;
  color: rgba(242,239,231,.6);
  max-width: 46ch;
}

/* Stat strip */
.stats {
  display: grid;
  gap: var(--s4);
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--rule);
  padding-top: var(--s5);
}
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat__num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat__label {
  display: block;
  margin-top: var(--s2);
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted);
}
.section--dark .stat__label,
.section--ink .stat__label { color: rgba(242,239,231,.62); }

/* 8. Components ---------------------------------------------------------- */
.card {
  background: var(--white);
  /* Cards are light even inside .section--dark, so reassert the light-surface
     colours rather than inheriting the dark section's cream. */
  color: var(--fg);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { color: var(--fg); }
.card p { color: var(--muted); font-size: 0.97rem; }
.card .list-check li { color: var(--muted); }
.card .link-arrow { color: var(--slate); border-color: var(--rule); }

.card__tier {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.card__price {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1;
  padding-top: var(--s3);
  border-top: 1px solid var(--rule);
  margin-top: auto;
}
.card__price span {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--stone);
  margin-top: 6px;
  letter-spacing: 0;
}

.list-check { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.list-check li {
  position: relative;
  padding-left: 1.6em;
  font-size: 0.95rem;
  color: var(--muted);
}
.list-check li::before {
  content: "";
  position: absolute;
  left: 0.15em; top: 0.5em;
  width: 0.4em; height: 0.72em;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(42deg);
}
.section--dark .list-check li { color: rgba(242,239,231,.8); }

/* Numbered process steps */
.steps { counter-reset: step; display: grid; gap: var(--s5); }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 860px) { .steps--5 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .steps--5 { grid-template-columns: repeat(5, 1fr); } }
.step { counter-increment: step; border-top: 1px solid var(--rule); padding-top: var(--s3); }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--gold);
  display: block;
  margin-bottom: var(--s2);
}
.step h3 { font-size: 1.1rem; margin-bottom: var(--s2); }
.step p { font-size: 0.93rem; color: var(--muted); margin: 0; }
.section--dark .step { border-color: rgba(242,239,231,.18); }

/* Pull quote */
.quote { border-left: 2px solid var(--gold); padding-left: var(--s5); }
.quote blockquote {
  margin: 0 0 var(--s3);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.quote cite { font-style: normal; font-size: 0.85rem; color: var(--stone); letter-spacing: 0.04em; }
/* --stone only clears ~3.8:1 on the dark ground, so lift it there. */
.section--dark .quote cite,
.section--ink .quote cite { color: rgba(242, 239, 231, 0.62); }

/* Image placeholder — remove once real photography is in place.
   Usage: <div class="ph" data-label="Kitchen — 2919 Tipi Way"></div>          */
.ph {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, var(--cream-dk) 0%, #ded6c8 50%, #cfc6b6 100%);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.ph--tall  { aspect-ratio: 3 / 4; }
.ph--wide  { aspect-ratio: 16 / 9; }
.ph--square{ aspect-ratio: 1 / 1; }
.ph::after {
  content: attr(data-label);
  position: absolute;
  inset: auto var(--s3) var(--s3) var(--s3);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(26,28,29,.42);
}
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: .5;
}

/* Project tiles */
.project { display: block; text-decoration: none; }
.project .ph { transition: transform .5s var(--ease); }
.project:hover .ph { transform: scale(1.015); }
.project__meta { display: flex; justify-content: space-between; gap: var(--s3); margin-top: var(--s3); align-items: baseline; }
.project__name { font-family: var(--serif); font-size: 1.2rem; }
.project__tag { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); }
.project__result {
  margin-top: var(--s2);
  font-size: 0.9rem;
  color: var(--slate);
  font-weight: 600;
}

/* Gallery grid. Uniform 4:3 crops so a mixed shoot still reads as a set. */
.gallery {
  display: grid;
  gap: var(--s3);
  grid-template-columns: repeat(2, 1fr);
  /* the double-width tiles leave holes when they wrap; dense backfills them */
  grid-auto-flow: dense;
}
@media (min-width: 760px)  { .gallery { grid-template-columns: repeat(3, 1fr); gap: var(--s4); } }
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(4, 1fr); } }

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform .5s var(--ease);
}
.gallery img:hover { transform: scale(1.015); }

/* Two tiles earn more room; they carry the wide shots. */
.gallery img.wide { grid-column: span 2; aspect-ratio: 16 / 9; }
@media (max-width: 759px) { .gallery img.wide { grid-column: span 2; aspect-ratio: 4 / 3; } }

/* Credentials row.
   The badge artwork has a white background, so this must sit on a white
   surface (.section--paper) or the boxes will show. */
.creds {
  display: grid;
  gap: var(--s5);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: start;
}
.cred { display: flex; align-items: center; gap: var(--s3); }
.cred img {
  width: auto;
  height: 62px;
  flex: none;
  mix-blend-mode: multiply; /* melts the white matte into the surface */
}
.cred__name {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
}
.cred__body { font-size: 0.78rem; color: var(--stone); margin-top: 3px; line-height: 1.35; }

/* Logo / entity lockup for the SPMS relationship */
.lockup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s4);
  padding: var(--s4);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--white);
}
.lockup__entity { font-family: var(--serif); font-size: 1.05rem; }
.lockup__div { color: var(--stone); }

/* Callout / disclosure box */
.note {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--gold);
  background: var(--white);
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius);
}
.note h3 { font-size: 1.15rem; }
.note p { color: var(--muted); font-size: 0.97rem; }
.section--dark .note { background: rgba(255,255,255,.04); border-color: rgba(242,239,231,.2); border-left-color: var(--gold); }

/* Surface overrides.
   Cards and notes can each sit on either a light or a dark section, and the
   section-level colour rules would otherwise leak into them. These come last so
   the surface wins over the section, whichever way round it is. */
.card .list-check li,
.card p { color: var(--muted); }
.card h3, .card h4 { color: var(--fg); }

.section--dark .note p,
.section--ink .note p { color: rgba(242, 239, 231, 0.82); }
.section--dark .note .list-check li,
.section--ink .note .list-check li { color: rgba(242, 239, 231, 0.8); }
.section--dark .note .link-arrow,
.section--ink .note .link-arrow { color: var(--gold-lt); }

/* FAQ */
.faq { border-top: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s4);
  background: none;
  border: 0;
  text-align: left;
  padding: var(--s4) 0;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  cursor: pointer;
}
.faq__q::after {
  content: "+";
  font-family: var(--sans);
  font-size: 1.3rem;
  color: var(--gold);
  flex: none;
  transition: transform .3s var(--ease);
}
.faq__q[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease);
}
.faq__a > div { overflow: hidden; }
.faq__item[data-open="true"] .faq__a { grid-template-rows: 1fr; }
.faq__a p { color: var(--muted); padding-bottom: var(--s4); max-width: 68ch; }

/* 9. Before / after slider ------------------------------------------------ */
.ba {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--rule);
  touch-action: pan-y;
  user-select: none;
}
.ba__layer { position: absolute; inset: 0; }
.ba__layer .ph { height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; }
.ba__after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba__after .ph {
  background: linear-gradient(135deg, #4a4e50 0%, #33373a 55%, #212426 100%);
}
.ba__after .ph::after { color: rgba(242,239,231,.6); }
.ba__after .ph::before { background-image:
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); }

.ba__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos, 50%);
  width: 2px;
  background: var(--cream);
  transform: translateX(-1px);
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(26,28,29,.15);
}
.ba__handle::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 44px; height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--cream);
  box-shadow: var(--shadow);
}
.ba__handle::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 13px; height: 9px;
  z-index: 1;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(to right, var(--slate) 4px, transparent 4px 9px, var(--slate) 9px);
  clip-path: polygon(0 50%, 4px 0, 4px 100%, 100% 50%, 9px 0, 9px 100%);
}
.ba__range {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.ba__tag {
  position: absolute;
  top: var(--s3);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.35em 0.7em;
  border-radius: var(--radius);
  background: rgba(26,28,29,.62);
  color: var(--cream);
  pointer-events: none;
}
.ba__tag--before { left: var(--s3); }
.ba__tag--after  { right: var(--s3); }

/* 10. Forms -------------------------------------------------------------- */
.form { display: grid; gap: var(--s4); }
.field { display: grid; gap: 0.45rem; }
.field label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; }
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 0.97rem;
  padding: 0.85em 1em;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--fg);
  width: 100%;
  transition: border-color .2s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--gold); }
.field textarea { min-height: 8rem; resize: vertical; }
.field__hint { font-size: 0.78rem; color: var(--stone); }

@media (min-width: 680px) { .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); } }
.hp { position: absolute; left: -9999px; }

/* Either/or block: listing link OR photos, one required. */
.pair {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--white);
  padding: clamp(1.1rem, 3vw, 1.6rem);
  margin: 0;
  display: grid;
  gap: var(--s3);
}
.pair legend {
  font-family: var(--serif);
  font-size: 1.15rem;
  padding-inline: 0.4em;
  margin-inline-start: -0.4em;
}
.pair__intro { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* "or" divider with a rule either side */
.pair__or {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
}
.pair__or::before,
.pair__or::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }

.pair__error {
  margin: 0;
  font-size: 0.85rem;
  color: #8c3a1c;
  background: #fbeee7;
  border: 1px solid #e6c9b8;
  border-radius: var(--radius);
  padding: 0.7em 0.9em;
}
.pair[data-invalid="true"] { border-color: #c98a6a; }

/* 11. Footer ------------------------------------------------------------- */
.footer { background: var(--ink); color: rgba(242,239,231,.72); padding-block: var(--s7) var(--s5); font-size: 0.9rem; }
.footer a { color: rgba(242,239,231,.72); text-decoration: none; }
.footer a:hover { color: var(--cream); }
.footer__grid { display: grid; gap: var(--s5); }
@media (min-width: 820px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: var(--s6); } }
.footer h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: var(--s3);
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer__brand .brand__mark { color: var(--cream); font-size: 1.3rem; }
.footer__brand .brand__sub { color: rgba(242,239,231,.5); }
.footer__legal {
  margin-top: var(--s6);
  padding-top: var(--s4);
  border-top: 1px solid rgba(242,239,231,.14);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s5);
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(242,239,231,.5);
}

/* 12. Utilities ---------------------------------------------------------- */
.stack > * + * { margin-top: var(--s4); }
.stack-lg > * + * { margin-top: var(--s5); }
.center { text-align: center; margin-inline: auto; }
.mt-5 { margin-top: var(--s5); }
.mt-6 { margin-top: var(--s6); }
.rule { border: 0; border-top: 1px solid var(--rule); margin-block: var(--s6); }

/* Reveal on scroll (progressive enhancement — JS adds .is-in) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal, .reveal.is-in { opacity: 1; transform: none; }

/* Draft flag: any number or claim that must be verified before launch.
   Delete this rule (and the class in the HTML) once the copy is signed off. */
body.draft .draft {
  border-bottom: 1px dashed rgba(168,131,78,.75);
  cursor: help;
}
