/* HEARTH & HONE — limewash & brass. Light morning-lit home; dark evening interlude + footer.
   One shared stylesheet; deliberately NOT Terramar (dark aquatic). Register: plaster ground,
   Bodoni Moda + Karla, glazed-green + brass, the wandering brass vein. */

:root {
  /* six-token set — light morning register (PLAN §2) */
  --plaster:  #f1ece4;  /* page ground — limewash plaster in morning light */
  --bone:     #e6dfd3;  /* raised panel — bone, unbleached linen */
  --espresso: #251e17;  /* primary text — espresso ink */
  --umber:    #7c7060;  /* secondary text — raw umber (≥18px only) */
  --glaze:    #2f5347;  /* accent — glazed cabinet green (eyebrows, links, focus) */
  --brass:    #a07c48;  /* fine detail — unlacquered brass: numerals, hairlines, the vein */

  --glaze-deep: #24413785;  /* glaze at low alpha for hairlines on light */
  --line-light: rgba(37, 30, 23, .14);
  --line-fine:  rgba(37, 30, 23, .08);

  /* dark evening register — charred walnut (inverse of Terramar: dark is the exception) */
  --char:       #1c1610;  /* evening ground — charred walnut */
  --char-panel: #2a2118;  /* evening raised panel */
  --char-text:  #efe8dc;  /* evening primary text */
  --char-soft:  #9b8d7a;  /* evening secondary text */
  --glaze-lit:  #5f8d7d;  /* links/accent on dark ground */
  --brass-lit:  #c39a5f;  /* brass reads brighter on dark */

  --display: "Bodoni Moda", "Didot", Georgia, serif;
  --body: "Karla", system-ui, -apple-system, sans-serif;

  --e-lux: cubic-bezier(0.6, 0, 0.05, 1);

  --pad-section: clamp(4.5rem, 11vh, 9rem);
  --pad-x: clamp(1.5rem, 6vw, 6rem);

  /* layered, espresso-tinted shadows on light ground (never flat shadow-md) */
  --shadow-raised: 0 1px 0 rgba(255, 252, 246, .5), 0 20px 44px -28px rgba(37, 30, 23, .34);
  --shadow-float:  0 2px 0 rgba(255, 252, 246, .5), 0 44px 88px -44px rgba(37, 30, 23, .46);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--plaster);
  color: var(--espresso);
  font-family: var(--body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

img, video { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--glaze);
  outline-offset: 3px;
}

::selection { background: rgba(47, 83, 71, .18); color: var(--espresso); }

/* ============================================================
   SHARED TYPE
   ============================================================ */

.eyebrow {
  font-family: var(--body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--glaze);
  margin-bottom: 1.35rem;
}

.display {
  font-family: var(--display);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.display--sm { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }

.amp {
  font-style: italic;
  font-weight: 500;
  color: var(--brass);
}

.lede {
  max-width: 42ch;
  margin-top: 1.5rem;
  font-size: 1.1875rem;
  line-height: 1.62;
  color: var(--umber);
}
.lede em, .pull em, .statement-lead em { font-family: var(--display); font-style: italic; }

.text-link {
  display: inline-block;
  margin-top: 2rem;
  font-family: var(--body);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--espresso);
  border-bottom: 1px solid var(--brass);
  padding-bottom: .4rem;
  transition: color .4s var(--e-lux), border-color .4s var(--e-lux);
}
.text-link:hover { color: var(--glaze); border-bottom-color: var(--glaze); }
.text-link:active { color: var(--brass); }

/* ============================================================
   THE VEIN — signature divider (wandering brass hairline, drawn once)
   ============================================================ */

.vein-rule {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 22px;
  overflow: visible;
  margin: 0;
}
.vein-rule path {
  fill: none;
  stroke: var(--brass);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  transition: stroke-dashoffset 1.5s var(--e-lux);
}
.vein-rule.is-in path,
.reveal.is-in .vein-rule path { stroke-dashoffset: 0; }
/* a vein-rule that is itself a .reveal draws when it enters */
.vein-rule.reveal.is-in path { stroke-dashoffset: 0; }
/* modal top-edge vein shares the hairline treatment */
.cm-vein {
  display: block;
  width: 100%;
  height: 16px;
  overflow: visible;
}
.cm-vein path {
  fill: none;
  stroke: var(--brass);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
}

/* ============================================================
   REVEAL
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--e-lux), transform 1s var(--e-lux);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; }
.reveal.d2 { transition-delay: .24s; }
.reveal.d3 { transition-delay: .36s; }
.reveal.d4 { transition-delay: .48s; }

/* ============================================================
   HEADER — default dark-ink-on-plaster; recolors to light-on-dark
   ============================================================ */

.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem var(--pad-x);
  background: linear-gradient(rgba(241, 236, 228, .82), rgba(241, 236, 228, 0));
  transition: background .5s var(--e-lux);
}
.site-head::after {
  content: "";
  position: absolute;
  left: var(--pad-x); right: var(--pad-x); bottom: 0;
  height: 1px;
  background: var(--line-light);
  opacity: 0;
  transition: opacity .5s var(--e-lux);
}
.site-head.is-stuck::after { opacity: 1; }
.site-head.is-stuck { background: linear-gradient(rgba(241, 236, 228, .94), rgba(241, 236, 228, .8)); }

.wordmark {
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--espresso);
  white-space: nowrap;
}
.wordmark .amp { letter-spacing: 0; padding: 0 .06em; }

.site-nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.6vw, 2.4rem); }

.site-nav a {
  font-family: var(--body);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--umber);
  transition: color .35s var(--e-lux);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--espresso); }
.site-nav a:active { color: var(--glaze); }

.nav-cta {
  font-family: var(--body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--espresso);
  border: 1px solid var(--brass);
  border-radius: 999px;
  padding: .62rem 1.3rem;
  transition: background .4s var(--e-lux), color .4s var(--e-lux), border-color .4s var(--e-lux);
}
.nav-cta:hover { background: var(--glaze); color: var(--plaster); border-color: var(--glaze); }
.nav-cta:active { background: var(--brass); border-color: var(--brass); color: var(--plaster); }

/* recolor over dark (evening / footer) sections */
.site-head.header--on-dark {
  background: linear-gradient(rgba(28, 22, 16, .7), rgba(28, 22, 16, 0));
}
.header--on-dark .wordmark { color: var(--char-text); }
.header--on-dark .site-nav a { color: var(--char-soft); }
.header--on-dark .site-nav a:hover,
.header--on-dark .site-nav a[aria-current="page"] { color: var(--char-text); }
.header--on-dark .nav-cta { color: var(--char-text); border-color: var(--brass-lit); }
.header--on-dark .nav-cta:hover { background: var(--brass-lit); color: var(--char); border-color: var(--brass-lit); }
.header--on-dark.is-stuck { background: linear-gradient(rgba(28, 22, 16, .92), rgba(28, 22, 16, .78)); }
.header--on-dark::after { background: rgba(239, 232, 220, .1); }

/* ============================================================
   HERO — scroll-scrubbed morning-light sweep + vein wordmark
   ============================================================ */

.hero-track { height: 225vh; position: relative; background: var(--plaster); }

.hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  --progress: 0;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-poster,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  transform: scale(calc(1.14 - 0.14 * var(--progress)))
             translateY(calc(-4% * var(--progress)));
}
.hero-poster { z-index: 0; }
.hero-video { z-index: 1; opacity: 0; transition: opacity .8s ease; transform: none; }
body[data-scrub="video"] .hero-poster { opacity: 0; }
body[data-scrub="video"] .hero-video { opacity: 1; }

/* the morning-light sweep — a directional warm shaft crossing the frame (subtle) */
.hero-sweep {
  position: absolute;
  inset: -15% -18%;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: soft-light;
  background:
    radial-gradient(34% 46% at 26% 26%, rgba(255, 242, 210, .55), rgba(255, 242, 210, 0) 68%);
  transform: translateX(calc(-6% + 58% * var(--progress)))
             translateY(calc(3% * var(--progress)));
  will-change: transform;
}
/* second, brighter shaft in screen for the sun sharpening as it crosses */
.hero-sweep--screen {
  mix-blend-mode: screen;
  background:
    linear-gradient(112deg, rgba(255, 246, 222, 0) 42%, rgba(255, 238, 202, .16) 52%, rgba(255, 246, 222, 0) 62%);
  opacity: calc(.4 + .5 * var(--progress));
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(58% 32% at 50% 60%, rgba(243, 239, 231, .62), rgba(243, 239, 231, 0) 72%),
    radial-gradient(ellipse at 50% 44%, rgba(241, 236, 228, 0) 46%, rgba(241, 236, 228, .2) 100%),
    linear-gradient(rgba(241, 236, 228, .3), rgba(241, 236, 228, 0) 18%, rgba(241, 236, 228, 0) 62%, var(--plaster) 99%);
}

.hero-copy {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.25rem;
  will-change: opacity;
}

.hero-eyebrow {
  font-family: var(--body);
  font-size: clamp(.66rem, 1.1vw, .78rem);
  font-weight: 700;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--glaze);
  /* stays legible where the hero image runs bright behind it */
  text-shadow: 0 0 6px rgba(241, 236, 228, .85), 0 0 18px rgba(241, 236, 228, .6);
  margin-bottom: clamp(1.2rem, 2.6vh, 2rem);
  opacity: 0;
  transition: opacity 1.6s ease .3s;
}
.hero-copy.is-in .hero-eyebrow { opacity: 1; }

/* --- signature: HEARTH & HONE wordmark with the vein drawn through it --- */
.hero-mark {
  position: relative;
  display: inline-block;
  line-height: .96;
}
.wm {
  display: block;
  font-family: var(--display);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(2.5rem, 10.5vw, 9rem);
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--espresso);
  opacity: 0;
  transition: letter-spacing 2.2s var(--e-lux), opacity 1.8s ease;
}
.wm .amp {
  color: var(--brass);
  font-style: italic;
  padding: 0 .04em;
}
.hero-mark.is-in .wm { letter-spacing: .02em; opacity: 1; }

/* the wandering brass vein SVG spanning the wordmark block */
.wm-vein {
  position: absolute;
  left: -4%; right: -4%;
  top: 46%;
  width: 108%;
  height: 60px;
  transform: translateY(-50%);
  overflow: visible;
  z-index: -1;
  pointer-events: none;
}
.wm-vein path {
  fill: none;
  stroke: var(--brass);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
}
.hero-mark.is-in .wm-vein path {
  transition: stroke-dashoffset 1.6s var(--e-lux) .2s;
  stroke-dashoffset: 0;
}

.hero-h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.05rem, 2.1vw, 1.5rem);
  line-height: 1.4;
  letter-spacing: .01em;
  color: var(--espresso);
  margin-top: clamp(1.6rem, 3.6vh, 2.6rem);
  opacity: 0;
  transition: opacity 1.6s ease .8s;
}
.hero-copy.is-in .hero-h1 { opacity: 1; }
.hero-support {
  max-width: 46ch;
  margin: 1rem auto 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: #3d3226;
  opacity: 0;
  transition: opacity 1.6s ease .95s;
}
.hero-copy.is-in .hero-support { opacity: 1; }

.hero-cta {
  margin-top: clamp(1.6rem, 3.4vh, 2.4rem);
  opacity: 0;
  transition: opacity 1.6s ease 1.1s;
}
.hero-copy.is-in .hero-cta { opacity: 1; }

.hero-cue {
  position: absolute;
  z-index: 3;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  color: var(--umber);
  font-family: var(--body);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .38em;
  text-transform: uppercase;
}
.hero-cue i {
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--brass), transparent);
  animation: cue-drop 2.6s ease-in-out infinite;
}
@keyframes cue-drop {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  padding: .95rem 1.9rem;
  border-radius: 999px;
  border: 1px solid var(--glaze);
  background: var(--glaze);
  color: var(--plaster);
  transition: background .4s var(--e-lux), color .4s var(--e-lux), transform .4s var(--e-lux), border-color .4s var(--e-lux);
}
.btn:hover { background: transparent; color: var(--glaze); transform: translateY(-2px); }
.btn:active { transform: translateY(0); color: var(--brass); border-color: var(--brass); }

.btn--ghost {
  background: transparent;
  color: var(--espresso);
  border-color: var(--brass);
}
.btn--ghost:hover { border-color: var(--glaze); color: var(--glaze); background: transparent; }

/* buttons on dark ground */
.on-dark .btn,
.cta-band .btn {
  background: var(--brass-lit);
  border-color: var(--brass-lit);
  color: var(--char);
}
.on-dark .btn:hover,
.cta-band .btn:hover { background: transparent; color: var(--brass-lit); }
.on-dark .btn--ghost,
.cta-band .btn--ghost {
  background: transparent;
  color: var(--char-text);
  border-color: rgba(239, 232, 220, .34);
}
.on-dark .btn--ghost:hover,
.cta-band .btn--ghost:hover { border-color: var(--brass-lit); color: var(--brass-lit); }

/* ============================================================
   HOME — STATEMENT
   ============================================================ */

.statement {
  position: relative;
  z-index: 2;
  background: var(--plaster);
  padding: var(--pad-section) var(--pad-x);
}
.statement-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}
.statement-lead {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.4vw, 2.9rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
}
.statement-lead .accent { color: var(--glaze); font-style: italic; }
.statement-body { color: var(--umber); margin-top: 1.75rem; font-size: 1.08rem; }
.statement-body p + p { margin-top: 1.2rem; }
.statement-figure {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: var(--shadow-float);
}
.statement-figure img { width: 100%; height: 100%; object-fit: cover; }
.statement-figure::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(37, 30, 23, .28), transparent 46%);
}

/* ============================================================
   HOME — SERVICES DIPTYCH + CABINETRY BAND
   ============================================================ */

.section {
  position: relative;
  z-index: 2;
  background: var(--plaster);
  padding: var(--pad-section) var(--pad-x);
}
.section-head { max-width: 60rem; margin: 0 auto 3.25rem; }
.section-head.center { text-align: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }

.diptych {
  max-width: 76rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 2.6vw, 2rem);
}
.room-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 30rem;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  border-radius: 2px;
  overflow: hidden;
  text-decoration: none;
  color: var(--plaster);
  box-shadow: var(--shadow-raised);
  transition: transform .5s var(--e-lux), box-shadow .5s var(--e-lux);
}
.room-panel:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.room-panel img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 1.2s var(--e-lux);
}
.room-panel:hover img { transform: scale(1.04); }
.room-panel::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(28, 22, 16, .82) 4%, rgba(28, 22, 16, .28) 42%, rgba(28, 22, 16, .06) 100%);
}
.room-panel > * { position: relative; z-index: 2; }
.room-eyebrow {
  font-size: .7rem; font-weight: 700; letter-spacing: .38em;
  text-transform: uppercase; color: var(--brass-lit); margin-bottom: .85rem;
}
.room-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.04;
  color: var(--char-text);
}
.room-desc { color: rgba(239, 232, 220, .82); margin-top: .9rem; font-size: 1rem; max-width: 34ch; }
.room-more {
  margin-top: 1.4rem; font-size: .72rem; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase; color: var(--brass-lit);
  display: inline-flex; align-items: center; gap: .5rem;
}
.room-panel:hover .room-more { color: var(--char-text); }
.room-more span { transition: transform .4s var(--e-lux); }
.room-panel:hover .room-more span { transform: translateX(5px); }

/* cabinetry band — full-width beneath the diptych */
.cabinetry-band {
  max-width: 76rem;
  margin: clamp(1.25rem, 2.6vw, 2rem) auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  border-radius: 2px;
  overflow: hidden;
  background: var(--bone);
  box-shadow: var(--shadow-raised);
}
.cabinetry-copy {
  padding: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cabinetry-copy .room-eyebrow { color: var(--glaze); }
.cabinetry-copy h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.06;
  color: var(--espresso);
}
.cabinetry-copy p { color: var(--umber); margin-top: 1rem; max-width: 40ch; }
.cabinetry-figure {
  position: relative;
  min-height: 20rem;
  overflow: hidden;
}
.cabinetry-figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   HOME — EVENING INTERLUDE (dark register)
   ============================================================ */

.evening {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--char);
  color: var(--char-text);
}
.evening-media {
  position: absolute;
  inset: -12% 0;
  z-index: 0;
  will-change: transform;
}
.evening-media img { width: 100%; height: 100%; object-fit: cover; }
.evening-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(28, 22, 16, .9) 16%, rgba(28, 22, 16, .34) 62%, rgba(28, 22, 16, .62)),
    linear-gradient(var(--char), transparent 16%, transparent 82%, var(--char));
}
.evening-copy {
  position: relative;
  z-index: 2;
  padding: clamp(6rem, 14vh, 10rem) var(--pad-x);
  max-width: 46rem;
}
.evening-copy .eyebrow { color: var(--brass-lit); }
.evening-copy .display { color: var(--char-text); }
.evening-copy .lede { color: var(--char-soft); }
.evening-copy .lede em { color: var(--char-text); }

/* ============================================================
   HOME — PROCESS (five acts — a real sequence)
   ============================================================ */

.process { max-width: 72rem; margin: 0 auto; }
.act {
  display: grid;
  grid-template-columns: minmax(0, 5rem) 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(1.75rem, 4vh, 2.75rem) 0;
  border-top: 1px solid var(--line-light);
  align-items: baseline;
}
.act:last-child { border-bottom: 1px solid var(--line-light); }
.act-num {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  color: var(--brass);
  font-variant-numeric: lining-nums;
  letter-spacing: -0.02em;
}
.act-body h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
  line-height: 1.08;
}
.act-body p { color: var(--umber); margin-top: .7rem; max-width: 50ch; }

/* ============================================================
   PROJECT CARDS (home featured + projects index)
   ============================================================ */

.card-grid {
  max-width: 78rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.project-card {
  display: block;
  text-decoration: none;
  color: var(--espresso);
  background: var(--bone);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--shadow-raised);
  transition: transform .5s var(--e-lux), box-shadow .5s var(--e-lux);
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.project-figure {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}
.project-figure img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--e-lux);
}
.project-card:hover .project-figure img { transform: scale(1.05); }
.project-figure::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(37, 30, 23, .38), transparent 52%);
}
.project-info { padding: 1.4rem 1.5rem 1.7rem; }
.project-loc {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--glaze);
}
.project-name {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.55rem;
  line-height: 1.08;
  margin-top: .55rem;
}
.project-specs {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  font-size: .82rem;
  color: var(--umber);
}
.project-specs span { position: relative; }
.project-specs span + span::before {
  content: "·";
  color: var(--brass);
  margin-right: 1rem;
}

/* ============================================================
   HOME — REVIEWS (six-card wall, unstructured)
   ============================================================ */

.reviews-score {
  margin-top: 1.1rem;
  font-family: var(--body);
  font-size: .95rem;
  color: var(--umber);
}
.reviews-score b { color: var(--espresso); font-weight: 600; }
.review-stars { color: var(--brass); font-size: .8rem; letter-spacing: .3em; }
.review-stars--lg { font-size: .95rem; margin-right: .5rem; }
.reviews-grid {
  max-width: 74rem;
  margin: 3.25rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.review-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  background: var(--bone);
  border: 1px solid var(--line-fine);
  border-radius: 3px;
  padding: 1.9rem 1.8rem 1.7rem;
  box-shadow: var(--shadow-raised);
}
.review-card blockquote {
  flex: 1;
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  font-size: 1.16rem;
  line-height: 1.46;
  color: var(--espresso);
}
.review-card cite {
  display: block;
  font-family: var(--body);
  font-style: normal;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--glaze);
}
.review-date {
  display: block;
  margin-top: .45rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--umber);
}
@media (max-width: 980px) { .reviews-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ============================================================
   HOME — COST BAND
   ============================================================ */

.cost-band {
  position: relative;
  z-index: 2;
  background: var(--bone);
  padding: var(--pad-section) var(--pad-x);
  border-top: 1px solid var(--line-fine);
  border-bottom: 1px solid var(--line-fine);
}
.cost-inner { max-width: 60rem; margin: 0 auto; text-align: center; }
.cost-range {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.3;
  margin-top: 1.3rem;
}
.cost-range b { color: var(--brass); font-weight: 500; }

/* ============================================================
   FORMS (consultation / contact)
   ============================================================ */

.form-section {
  position: relative;
  z-index: 2;
  background: var(--plaster);
  padding: var(--pad-section) var(--pad-x);
}
.form-wrap {
  max-width: 44rem;
  margin: 2.5rem auto 0;
  background: var(--bone);
  border: 1px solid var(--line-light);
  border-radius: 3px;
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: var(--shadow-raised);
}
.field { display: flex; flex-direction: column; gap: .55rem; margin-bottom: 1.6rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field label {
  font-family: var(--body);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--umber);
}
.field input,
.field select,
.field textarea {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(37, 30, 23, .24);
  border-radius: 0;
  color: var(--espresso);
  font-family: var(--body);
  font-size: 1.02rem;
  padding: .55rem 0;
  transition: border-color .4s var(--e-lux);
}
.field textarea { resize: vertical; min-height: 3.5rem; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237c7060' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .2rem center;
  padding-right: 1.5rem;
}
.field select option { background: var(--plaster); color: var(--espresso); }
.field input::placeholder,
.field textarea::placeholder { color: rgba(124, 112, 96, .7); }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--glaze); }

.form-hint { margin-top: 1.2rem; font-size: .92rem; color: var(--umber); text-align: center; }
.form-hint a { color: var(--glaze); }
.form-confirm .eyebrow { text-align: left; }
.form-confirm .display { margin-top: .4rem; }

/* ============================================================
   FOOTER (dark register)
   ============================================================ */

.site-foot {
  position: relative;
  z-index: 2;
  background: var(--char);
  color: var(--char-text);
  padding: clamp(3.5rem, 8vh, 6rem) var(--pad-x) 2.5rem;
}
.foot-vein { max-width: 78rem; margin: 0 auto 3rem; height: 30px; }
.foot-top {
  max-width: 78rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.foot-wordmark {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: .96;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--char-text);
}
.foot-wordmark .amp { color: var(--brass-lit); font-style: italic; }
.foot-tag { color: var(--char-soft); font-style: italic; font-family: var(--display); margin-top: .8rem; }
.foot-col h4 {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--brass-lit);
  margin-bottom: 1.1rem;
}
.foot-col a, .foot-col p {
  display: block;
  text-decoration: none;
  color: var(--char-soft);
  font-size: .96rem;
  padding: .28rem 0;
  transition: color .35s var(--e-lux);
}
.foot-col a:hover { color: var(--char-text); }
.foot-nap { font-style: normal; }
.foot-nap a:hover { color: var(--brass-lit); }
.foot-bottom {
  max-width: 78rem;
  margin: 3rem auto 0;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(239, 232, 220, .1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: .82rem;
  color: var(--char-soft);
}
.foot-bottom a { color: var(--char-soft); text-decoration: none; }
.foot-bottom a:hover { color: var(--char-text); }

/* ============================================================
   INNER PAGE TEMPLATE — light editorial masthead (NOT dark hero band)
   ============================================================ */

.page-masthead {
  position: relative;
  z-index: 2;
  background: var(--plaster);
  padding: clamp(7.5rem, 16vh, 11rem) var(--pad-x) clamp(2.5rem, 6vh, 4rem);
}
.masthead-inner {
  max-width: 78rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.masthead-copy h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 3.7rem);
  line-height: 1.03;
  letter-spacing: -0.015em;
  max-width: 15ch;
}
.masthead-copy .lede { color: var(--umber); max-width: 44ch; }
.masthead-figure {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: var(--shadow-float);
}
.masthead-figure.wide { aspect-ratio: 16 / 10; }
.masthead-figure img { width: 100%; height: 100%; object-fit: cover; }
.masthead-figure::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(37, 30, 23, .22), transparent 45%);
}
.breadcrumb {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--umber);
  margin-bottom: 1.3rem;
}
.breadcrumb a { text-decoration: none; color: var(--umber); transition: color .35s var(--e-lux); }
.breadcrumb a:hover { color: var(--glaze); }
.breadcrumb span[aria-hidden] { color: var(--brass); margin: 0 .5rem; }
.masthead-vein { height: 24px; margin-top: 1.6rem; max-width: 22rem; }

/* light prose body */
.prose-section { position: relative; z-index: 2; background: var(--plaster); padding: var(--pad-section) var(--pad-x); }
.prose-section.bone { background: var(--bone); }
.prose { max-width: 42rem; margin: 0 auto; }
.prose.wide { max-width: 60rem; }
.prose .eyebrow { color: var(--glaze); }
.prose h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 2.75rem 0 1.1rem;
}
.prose > h2:first-child, .prose > .eyebrow:first-child { margin-top: 0; }
.prose h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  margin: 2rem 0 .6rem;
}
.prose p { color: var(--espresso); margin-bottom: 1.15rem; }
.prose p.muted { color: var(--umber); }
.prose a:not(.btn):not(.text-link) {
  color: var(--glaze);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color .35s var(--e-lux);
}
.prose a:not(.btn):not(.text-link):hover { color: var(--brass); }
.prose ul { list-style: none; margin: 0 0 1.4rem; }
.prose li { position: relative; padding-left: 1.4rem; margin-bottom: .6rem; color: var(--espresso); }
.prose li::before {
  content: "";
  position: absolute;
  left: 0; top: .68em;
  width: .5rem; height: 1px;
  background: var(--brass);
}
.prose .lede { color: var(--umber); }
.prose blockquote.pull {
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  line-height: 1.3;
  color: var(--espresso);
  margin: 2.5rem 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--brass);
}
.prose .prose-vein { height: 22px; margin: 2.5rem 0; }

/* spec table (case studies + cost) */
.spec-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0 2rem; font-size: .98rem; }
.spec-table th, .spec-table td {
  text-align: left;
  padding: .95rem 1rem;
  border-bottom: 1px solid var(--line-light);
  vertical-align: top;
}
.spec-table th {
  font-family: var(--body);
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--umber);
  white-space: nowrap;
  width: 34%;
}
.spec-table td { color: var(--espresso); }
.spec-table .price { color: var(--brass); font-variant-numeric: lining-nums; }

/* FAQ */
.faq { margin-top: 1rem; }
.faq details { border-bottom: 1px solid var(--line-light); padding: 1.2rem 0; }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--espresso);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  transition: color .3s var(--e-lux);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--body);
  font-weight: 400;
  color: var(--brass);
  font-size: 1.4rem;
  transition: transform .4s var(--e-lux);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--glaze); }
.faq details p { margin: .9rem 0 0; color: var(--umber); }

/* content figures on light pages */
.content-figure { margin: 2.25rem 0; border-radius: 2px; overflow: hidden; box-shadow: var(--shadow-raised); }
.content-figure img { width: 100%; height: auto; }
.content-figure figcaption {
  font-family: var(--display);
  font-style: italic;
  font-size: .92rem;
  color: var(--umber);
  padding: .8rem 0 0;
}
.figure-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2.25rem 0; }
.figure-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 2px; box-shadow: var(--shadow-raised); }

/* CTA band (inner pages) — dark register */
.cta-band {
  position: relative;
  z-index: 2;
  background: var(--char);
  color: var(--char-text);
  padding: var(--pad-section) var(--pad-x);
  text-align: center;
}
.cta-band .eyebrow { color: var(--brass-lit); }
.cta-band h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.06;
  max-width: 20ch;
  margin: 1.2rem auto 0;
  color: var(--char-text);
}
.cta-band p { color: var(--char-soft); max-width: 46ch; margin: 1rem auto 0; }
.cta-band .btn { margin-top: 2rem; }

/* index intro */
.index-intro { max-width: 60rem; margin: 0 auto var(--pad-section); text-align: center; }

/* service-area list + contact */
.area-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .4rem 2rem; margin: 1rem 0 0; list-style: none; }
.area-list li { padding-left: 1.4rem; position: relative; color: var(--espresso); }
.area-list li::before { content: ""; position: absolute; left: 0; top: .8em; width: .5rem; height: 1px; background: var(--brass); }
.contact-grid { max-width: 68rem; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact-info .nap-block { font-style: normal; line-height: 2; color: var(--espresso); margin-top: 1.5rem; }
.contact-info .nap-block a { color: var(--glaze); text-decoration: none; }
.contact-info .nap-block a:hover { text-decoration: underline; }
.hours-list { margin-top: 1.75rem; }
.hours-list div { display: flex; justify-content: space-between; gap: 1.5rem; max-width: 24rem; padding: .55rem 0; border-bottom: 1px solid var(--line-light); }
.hours-list dt { color: var(--umber); }
.hours-list dd { font-family: var(--display); }

/* 404 */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem var(--pad-x);
  background: var(--plaster);
}
.error-page .big {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(3rem, 12vw, 8rem);
  line-height: 1;
  color: var(--brass);
}
.error-page .vein-rule { max-width: 18rem; margin: 1.5rem 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .statement-inner { grid-template-columns: 1fr; }
  .statement-figure { max-width: 24rem; aspect-ratio: 4/5; }
  .diptych { grid-template-columns: 1fr; }
  .cabinetry-band { grid-template-columns: 1fr; }
  .cabinetry-figure { min-height: 16rem; order: -1; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .figure-grid { grid-template-columns: 1fr; }
  .masthead-inner { grid-template-columns: 1fr; }
  .masthead-figure { max-width: 26rem; }
  .masthead-figure.wide { max-width: none; }
}

@media (max-width: 680px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .site-nav .nav-cta { display: none; }
  .hero-track { height: 180vh; }
  .wm { letter-spacing: .04em; }
  .hero-mark.is-in .wm { letter-spacing: .01em; }
  .card-grid { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .area-list { grid-template-columns: 1fr; }
  .act { grid-template-columns: 3rem 1fr; gap: 1.25rem; }
  .room-panel { min-height: 24rem; }
}

/* ============================================================
   REDUCED MOTION — hero parked at progress≈0.35, everything drawn/visible
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-cue i { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-stage { --progress: 0.35 !important; }
  .hero-poster, .hero-video { transform: scale(1.09) translateY(-1.4%); }
  .hero-eyebrow, .hero-h1, .hero-support, .hero-cta, .wm { opacity: 1; transition: none; }
  .wm { letter-spacing: .02em; }
  .wm-vein path, .vein-rule path, .cm-vein path { stroke-dashoffset: 0 !important; transition: none !important; }
  .evening-media { inset: 0; }
  .project-card:hover, .room-panel:hover { transform: none; }
  .room-panel:hover img { transform: none; }
}

/* ============================================================
   DEV HOOKS — ?static / ?static&only=  (body classes set by main.js)
   ============================================================ */

body.dev-static .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
body.dev-static .vein-rule path,
body.dev-static .cm-vein path,
body.dev-static .wm-vein path { stroke-dashoffset: 0 !important; transition: none !important; }
body.dev-static .hero-track { height: 820px !important; }
body.dev-static .hero-stage { position: relative; height: 820px; --progress: 0.4 !important; }
body.dev-static .hero-poster,
body.dev-static .hero-video { transform: scale(1.084) translateY(-1.6%); }
body.dev-static .evening { min-height: 720px !important; }
body.dev-static .hero-eyebrow,
body.dev-static .hero-h1,
body.dev-static .hero-support,
body.dev-static .hero-cta,
body.dev-static .wm { opacity: 1 !important; transition: none !important; letter-spacing: .02em; }
body.dev-static .hero-cue { display: none; }
[data-dev-hidden] { display: none !important; }
[data-dev-solo] { min-height: 0 !important; }

/* ============================================================
   MOBILE MENU (elements injected by main.js) — overlay on PLASTER
   ============================================================ */

.menu-btn {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.menu-line {
  width: 22px; height: 1.5px;
  background: var(--espresso);
  transition: transform .5s var(--e-lux), background-color .35s var(--e-lux);
}
.header--on-dark .menu-line { background: var(--char-text); }
body.menu-open .menu-line { background: var(--espresso); }
body.menu-open .menu-line:first-child { transform: translateY(4.25px) rotate(45deg); }
body.menu-open .menu-line:last-child { transform: translateY(-4.25px) rotate(-45deg); }
.menu-btn:focus-visible { outline: 2px solid var(--glaze); outline-offset: 3px; }
.menu-btn:active .menu-line { background: var(--glaze); }

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  flex-direction: column;
  justify-content: center;
  padding: 6.5rem var(--pad-x) 3rem;
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(230, 223, 211, .96), transparent 60%),
    var(--plaster);
  opacity: 0;
  visibility: hidden;
  transition: opacity .55s var(--e-lux), visibility 0s .55s;
}
body.menu-open .menu-overlay { opacity: 1; visibility: visible; transition: opacity .55s var(--e-lux); }
body.menu-open { overflow: hidden; }
/* header reads light-ground-ink while overlay is up, whatever section is behind */
body.menu-open .site-head { background: none; }
body.menu-open .site-head .wordmark { color: var(--espresso); }
body.menu-open .site-head .nav-cta { color: var(--espresso); border-color: var(--brass); }
body.menu-open .site-head .menu-line { background: var(--espresso); }
body.menu-open .site-head::after { opacity: 0; }

.menu-links { display: flex; flex-direction: column; }
.menu-links a {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.1rem, 9.5vw, 3rem);
  line-height: 1.5;
  text-decoration: none;
  color: var(--espresso);
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--e-lux), transform .7s var(--e-lux), color .35s var(--e-lux);
}
.menu-links a:hover, .menu-links a[aria-current="page"] { color: var(--glaze); }
.menu-links a:active { color: var(--brass); }
.menu-links a:focus-visible { outline: 2px solid var(--glaze); outline-offset: 4px; }
body.menu-open .menu-links a { opacity: 1; transform: none; }
body.menu-open .menu-links a:nth-child(1) { transition-delay: .08s; }
body.menu-open .menu-links a:nth-child(2) { transition-delay: .16s; }
body.menu-open .menu-links a:nth-child(3) { transition-delay: .24s; }
body.menu-open .menu-links a:nth-child(4) { transition-delay: .32s; }

.menu-vein { height: 22px; margin: 2rem 0; max-width: 20rem; }
.menu-vein path { stroke-dashoffset: 1200; transition: stroke-dashoffset 1.1s var(--e-lux) .35s; }
body.menu-open .menu-vein path { stroke-dashoffset: 0; }

.menu-cta { align-self: flex-start; opacity: 0; transition: opacity .7s var(--e-lux) .4s; }
body.menu-open .menu-cta { opacity: 1; }

.menu-nap { margin-top: 2.2rem; font-size: .82rem; color: var(--umber); opacity: 0; transition: opacity .7s var(--e-lux) .48s; }
.menu-nap a { color: var(--umber); }
.menu-nap a:hover { color: var(--glaze); }
body.menu-open .menu-nap { opacity: 1; }

@media (max-width: 680px) {
  .menu-btn { display: flex; }
  .menu-overlay { display: flex; }
  .site-head { gap: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .menu-line, .menu-overlay, .menu-links a, .menu-cta, .menu-nap { transition: none; }
  .menu-links a { transform: none; }
  .menu-vein path { transition: none; }
}

body.dev-static .menu-links a,
body.dev-static .menu-cta,
body.dev-static .menu-nap,
body.dev-static .menu-vein path,
body.dev-static .menu-overlay { transition: none !important; }
body.dev-static .menu-vein path { stroke-dashoffset: 0 !important; }

/* ============================================================
   CONSULTATION MODAL (JS-injected; every booking CTA opens it)
   ============================================================ */

.consult-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  background: rgba(28, 22, 16, .5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .55s var(--e-lux), visibility 0s linear .55s;
}
body.modal-open .consult-modal { opacity: 1; visibility: visible; transition: opacity .55s var(--e-lux); }
body.modal-open { overflow: hidden; }

.consult-modal-panel {
  position: relative;
  width: min(34rem, 100%);
  max-height: min(92vh, 100%);
  overflow-y: auto;
  background: var(--bone);
  border: 1px solid var(--line-light);
  border-radius: 3px;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-float), 0 40px 90px -30px rgba(28, 22, 16, .55);
  transform: translateY(26px) scale(.985);
  transition: transform .55s var(--e-lux);
}
body.modal-open .consult-modal-panel { transform: none; }

/* vein hairline across the panel's top edge */
.cm-vein { position: absolute; top: 0; left: 0; right: 0; height: 16px; }
.cm-vein path { stroke-dashoffset: 1200; }
body.modal-open .cm-vein path { transition: stroke-dashoffset 1.2s var(--e-lux) .1s; stroke-dashoffset: 0; }

.cm-close {
  position: absolute;
  top: .9rem; right: .9rem;
  width: 2.4rem; height: 2.4rem;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--umber);
  font-family: var(--body);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: color .35s var(--e-lux), transform .35s var(--e-lux);
}
.cm-close:hover { color: var(--glaze); transform: rotate(90deg); }
.cm-close:active { transform: rotate(90deg) scale(.92); }
.cm-close:focus-visible { outline: 2px solid var(--glaze); outline-offset: 2px; }

.consult-modal .eyebrow { text-align: left; }
.cm-title { margin-top: .5rem; }
.cm-lede { margin: .9rem 0 1.7rem; font-size: .95rem; line-height: 1.62; color: var(--umber); }
.consult-modal .field { margin-bottom: 1.25rem; }
.consult-modal .form-hint { margin-top: 1rem; font-size: .85rem; }
.cm-confirm .display { margin-top: .5rem; }

@media (max-width: 640px) {
  .consult-modal { align-items: flex-end; padding: 0; }
  .consult-modal-panel {
    width: 100%;
    max-height: 88vh;
    border-radius: 3px 3px 0 0;
    border-left: 0; border-right: 0; border-bottom: 0;
  }
  .consult-modal .field-row { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .consult-modal, .consult-modal-panel, .cm-close { transition: none; }
  .consult-modal-panel { transform: none; }
  .cm-vein path { transition: none; stroke-dashoffset: 0; }
}

body.dev-static .consult-modal,
body.dev-static .consult-modal-panel { transition: none !important; }
body.dev-static .cm-vein path { stroke-dashoffset: 0 !important; transition: none !important; }
