/* ============================================================
   The Measured Home — editorial design language · By Design Builders
   Loads after components.css; uses the tokens from tokens.css. All classes
   are namespaced .m-* so they never collide with the existing .plate-* /
   .eyebrow system.

   DIAL-BACK (2026-11-27, owner direction "dumb it down a tad"): the heavy
   "dossier" overlay was pulled back to a calmer editorial system. The busy
   decorative marks are switched OFF here at the source so the change is
   consistent across every partial and reversible in one place:
     · registration corner ticks on photos      (.m-ticks)        — off
     · dimension-line hairlines + end ticks      (.m-dim__line)    — off
     · specification-plaque borders              (.m-spec)         — borderless
     · hero architect's drawing sheet + ticks    (.m-sheet)        — off
     · full-bleed spread corner tick             (.m-spread__reg)  — off
     · draw-in line animation                    (html.bdb-anim)   — no-op
   KEPT (clean type the owner is fine with): plate numbers (.m-plate),
   measured stat numbers (.m-stat), the pine family surface, the clay/bronze
   accent, sentence-case utility, and the full-bleed spread caption.
   To restore any mark, re-enable its rule below — nothing was deleted.
   ============================================================ */

:root {
  /* warm bronze accent legible on the pine surface (clay is too dark on pine) */
  --bdb-warm-bronze: #c89b63;
}

/* ---- clay accent span for sentence-case headlines (Option A, no underline) ---- */
.m-accent { color: var(--clay); }
.on-pine .m-accent { color: var(--bdb-warm-bronze); }

/* ---- sentence-case utility (removes the uppercase label treatment) ---- */
.m-editorial { text-transform: none !important; letter-spacing: -0.02em !important; }

/* ---- plate number / label ---- */
.m-plate {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}
.m-plate--on-dark { color: var(--on-dark-faint); }

/* ---- dimension label pair (line + end-ticks removed in the dial-back) ----
   The line is now an invisible flex spacer so paired labels still justify to
   the two edges (e.g. "Est. 1992 ............ Prescott, AZ" reads as
   "Est. 1992            Prescott, AZ"), with no drawn hairline or ticks. */
.m-dim { display: flex; align-items: center; gap: 12px; }
.m-dim__line {
  flex: 1 1 auto; height: 0; background: transparent;
  position: relative; transform-origin: left center;
}
.m-dim__line::before, .m-dim__line::after { content: none; }
.m-dim__label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-muted); white-space: nowrap;
}
.m-dim--on-dark .m-dim__label { color: var(--on-dark-faint); }

/* ---- specification key/value (dial-back: borderless, no plaque box) ----
   Was a bordered "spec plaque"; now plain mono rows with a single hairline
   separating each row, so the data reads as a quiet caption, not a drawing
   callout. */
.m-spec {
  border: 0; padding: 0; display: grid; gap: 0;
}
.m-spec__row {
  display: flex; justify-content: space-between; gap: 18px;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 9px 0; border-top: 1px solid var(--border-subtle);
}
.m-spec__row:first-child { border-top: 0; }
.m-spec__k { color: var(--text-muted); }
.m-spec__v { color: var(--text-primary); text-align: right; }
.m-spec--on-dark .m-spec__row { border-top-color: var(--on-dark-line); }
.m-spec--on-dark .m-spec__k { color: var(--on-dark-faint); }
.m-spec--on-dark .m-spec__v { color: var(--on-dark); }

/* ---- registration corner ticks (dial-back: OFF — plain photo edges) ---- */
.m-ticks { position: relative; }
.m-ticks::before, .m-ticks::after { content: none; }

/* ---- measured stat (big number + dimension line + mono label) ---- */
.m-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 2.25rem); }
.m-stat__num {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2rem, 3.4vw, 3rem); letter-spacing: -0.03em; line-height: 1;
  color: var(--text-primary);
}
.m-stat .m-dim { margin: 12px 0 10px; }
.m-stat__label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-muted); line-height: 1.6;
}

/* ============================================================
   Hero — drawing sheet + title block (additive over the existing hero)
   ============================================================ */
/* Dial-back: the hero architect's drawing sheet (border + corner ticks) is
   OFF. The hero markup no longer emits .m-sheet, but this stays neutralized
   in case the element lingers in a cached layout. */
.m-sheet { display: none; }

.m-titleblock {
  display: grid; grid-template-columns: repeat(4, auto) 1fr; gap: 0;
  border-top: 1px solid var(--on-dark-line); padding-top: 14px;
}
.m-tb { padding-right: clamp(1.1rem, 3vw, 3rem); }
.m-tb__k {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--on-dark-faint);
  display: block; margin-bottom: 5px;
}
.m-tb__v {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--on-dark);
}
.m-tb--idx { justify-self: end; text-align: right; padding-right: 0; }

/* ============================================================
   Full-bleed measured spread (new section: spread.php)
   ============================================================ */
.m-spread { position: relative; width: 100%; height: clamp(460px, 82vh, 820px); overflow: hidden; background: var(--ink); }
.m-spread > img { width: 100%; height: 100%; object-fit: cover; }
.m-spread__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,12,8,0.78) 0%, rgba(13,12,8,0.12) 46%, rgba(13,12,8,0.30) 100%);
}
.m-spread__top { position: absolute; top: 0; left: 0; right: 0; padding: clamp(1.25rem,4vw,2.5rem) var(--gutter); display: flex; justify-content: space-between; align-items: flex-start; z-index: 2; }
.m-spread__reg { display: none; } /* dial-back: corner tick off */
.m-spread__bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 var(--gutter) clamp(1.5rem,4vw,3rem); z-index: 2; max-width: var(--container); margin-inline: auto; }
.m-spread__cap { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; font-size: clamp(1.6rem,3vw,2.6rem); color: var(--on-dark); margin: 0 0 14px; }
.m-spread__meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--on-dark-soft); margin: 0 0 20px; }
.m-spread .m-dim { max-width: 360px; }

/* ============================================================
   Pine family — reversed-type surface for connected-brands
   ============================================================ */
.m-pine-surface { background: var(--pine); color: var(--on-dark); }
.m-pine-surface .eyebrow { color: var(--on-dark-soft); }
.m-pine-surface .eyebrow .eyebrow__rule { background: var(--on-dark-soft); }
.m-disc-rule { border-top: 1px solid var(--on-dark-line); }
.m-disc__i { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.3em; color: var(--on-dark-faint); }

/* ============================================================
   Contact — inquiry sheet (dossier skin over the existing form/Fluent block)
   ============================================================ */
.m-inquiry { border: 1px solid var(--border-strong); padding: clamp(1.5rem,3vw,2.25rem); position: relative; background: #e7e4d4; }
.m-inquiry__head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-subtle); padding-bottom: 14px; margin-bottom: 22px; }

/* ============================================================
   Draw-in motion — dial-back: no-op. The dimension hairline it animated is
   gone, so there is nothing to draw in. Left here (neutralized) so any
   lingering measured-reveal.js hook can't reintroduce a transform.
   ============================================================ */
html.bdb-anim .m-dim__line { transform: none; transition: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 820px) {
  .m-titleblock { grid-template-columns: 1fr 1fr; gap: 14px 0; }
  .m-tb--idx { grid-column: 1 / -1; justify-self: start; text-align: left; padding-top: 4px; }
  .m-stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
@media (max-width: 540px) {
  .m-stats { grid-template-columns: 1fr; gap: 1.25rem; }
  .m-spec__row { font-size: 10px; }
}
