/* RIDGELINE — storm-slate & the light on inside. Dark cinematic home; light text-forward inner pages. */

:root {
  /* six-token set — dark (PLAN §2) */
  --storm:   #0e141a;  /* page ground — storm sky at dusk */
  --slate:   #19222b;  /* raised panel — wet slate roof */
  --chalk:   #eceef0;  /* primary text — chalk line */
  --zinc:    #90a0ab;  /* secondary text — weathered galvanized */
  --lamp:    #e7a44e;  /* accent — the light on inside (sparingly) */
  --steel:   #b9c6ce;  /* fine detail — flashing/metal numerals/hairlines/prices */

  /* light variant — inner-page bodies (chalk paper) */
  --paper:       #f0f1f2;
  --ink:         #141c22;
  --panel-light: #e3e6e8;
  --ink-soft:    #4b5860;  /* secondary text on light */
  --lamp-ink:    #9a5f16;  /* warm link/accent text with contrast on light */
  --line-light:  rgba(20, 28, 34, .14);

  --display: "Sora", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --serif: "Newsreader", Georgia, serif;

  --e-ridge: cubic-bezier(0.16, 1, 0.3, 1);

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

  /* layered, color-tinted shadows (tint = depth) */
  --shadow-raised: 0 1px 0 rgba(236, 238, 240, .04), 0 18px 40px -24px rgba(14, 20, 26, .9);
  --shadow-float:  0 2px 0 rgba(236, 238, 240, .05), 0 40px 80px -40px rgba(14, 20, 26, .95);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--storm);
  color: var(--chalk);
  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(--lamp);
  outline-offset: 3px;
}

::selection { background: rgba(231, 164, 78, .28); color: var(--chalk); }

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

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

.display {
  font-family: var(--display);
  font-weight: 600;
  font-optical-sizing: auto;
  font-size: clamp(2.2rem, 5vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.display--sm {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
}

.lede {
  max-width: 40ch;
  margin-top: 1.5rem;
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--zinc);
}

.lede em, .pull em { font-family: var(--serif); }

.text-link {
  display: inline-block;
  margin-top: 2rem;
  font-family: var(--body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--chalk);
  border-bottom: 1px solid var(--lamp);
  padding-bottom: .4rem;
  transition: color .4s var(--e-ridge), border-color .4s var(--e-ridge);
}
.text-link:hover { color: var(--lamp); }
.text-link:active { color: var(--steel); }
.panel-light .lede { color: var(--ink-soft); }
.panel-light .text-link { color: var(--ink); border-bottom-color: var(--lamp-ink); }
.panel-light .text-link:hover { color: var(--lamp-ink); }

/* ============================================================
   REVEAL + GRAIN + WATERLINE DIVIDER
   ============================================================ */

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

.grain {
  position: fixed;
  inset: -100px;
  z-index: 60;
  pointer-events: none;
  opacity: .06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 900ms steps(3) infinite;
}
@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-40px, 25px); }
  66%  { transform: translate(30px, -35px); }
  100% { transform: translate(0, 0); }
}

/* the recurring ridge divider — a steel flashing-line with a lamp-lit apex (the roof ridge) */
.ridge-rule {
  position: relative;
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg,
    transparent,
    rgba(185, 198, 206, .12) 15%,
    rgba(185, 198, 206, .5) 50%,
    rgba(185, 198, 206, .12) 85%,
    transparent);
}
/* the apex: a small chevron peak, warm-lit — the signature ridge point */
.ridge-rule::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -4px;
  width: 9px;
  height: 9px;
  transform: translateX(-50%) rotate(45deg);
  border-top: 1.5px solid var(--lamp);
  border-right: 1.5px solid var(--lamp);
  box-shadow: 0 0 12px rgba(231, 164, 78, .5);
}
.panel-light .ridge-rule {
  background: linear-gradient(90deg,
    transparent,
    rgba(75, 88, 96, .16) 15%,
    rgba(75, 88, 96, .45) 50%,
    rgba(75, 88, 96, .16) 85%,
    transparent);
}
.panel-light .ridge-rule::after {
  border-color: var(--lamp-ink);
  box-shadow: none;
}

/* ============================================================
   HEADER
   ============================================================ */

.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(14, 20, 26, .72), transparent);
  transition: background .5s var(--e-ridge);
}
.site-head::after {
  content: "";
  position: absolute;
  left: var(--pad-x); right: var(--pad-x); bottom: 0;
  height: 1px;
  background: rgba(236, 238, 240, .08);
  opacity: 0;
  transition: opacity .5s var(--e-ridge);
}
.site-head.is-stuck::after { opacity: 1; }

.wordmark {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: .34em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--chalk);
  white-space: nowrap;
}

.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: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--zinc);
  transition: color .35s var(--e-ridge);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--chalk); }
.site-nav a:active { color: var(--lamp); }

.nav-cta {
  font-family: var(--body);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--chalk);
  border: 1px solid rgba(231, 164, 78, .5);
  border-radius: 999px;
  padding: .62rem 1.25rem;
  transition: background .4s var(--e-ridge), color .4s var(--e-ridge), border-color .4s var(--e-ridge);
}
.nav-cta:hover { background: var(--lamp); color: var(--storm); border-color: var(--lamp); }
.nav-cta:active { background: var(--steel); border-color: var(--steel); }

/* header recolor over light sections */
.site-head.header--on-light {
  background: linear-gradient(rgba(240, 241, 242, .85), transparent);
}
.header--on-light .wordmark { color: var(--ink); }
.header--on-light .site-nav a { color: var(--ink-soft); }
.header--on-light .site-nav a:hover,
.header--on-light .site-nav a[aria-current="page"] { color: var(--ink); }
.header--on-light .nav-cta { color: var(--ink); border-color: rgba(154, 95, 22, .55); }
.header--on-light .nav-cta:hover { background: var(--lamp-ink); color: var(--paper); border-color: var(--lamp-ink); }
.header--on-light::after { background: rgba(20, 28, 34, .12); }

/* ============================================================
   HERO — scroll-scrubbed underwater ascent + ridge wordmark
   ============================================================ */

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

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

.hero-poster,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-poster { z-index: 0; }
.hero-video { z-index: 1; opacity: 0; transition: opacity .8s ease; }
body[data-scrub="ready"] .hero-video,
body[data-scrub="playing"] .hero-video { opacity: 1; }

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse at 50% 42%, transparent 34%, rgba(14, 20, 26, .55) 100%),
    linear-gradient(rgba(14, 20, 26, .5), transparent 26%, transparent 60%, var(--storm) 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: 600;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--lamp);
  margin-bottom: clamp(1.4rem, 3vh, 2.4rem);
  opacity: 0;
  transition: opacity 1.6s ease .3s;
  text-shadow: 0 2px 20px rgba(14, 20, 26, .8);
}
.hero-mark.is-in ~ .hero-eyebrow,
.hero-eyebrow.is-in { opacity: 1; }

/* --- signature: RIDGELINE wordmark sitting on a warm-lit roof ridge --- */
.hero-mark {
  position: relative;
  display: inline-block;
  line-height: .92;
  padding-bottom: .34em; /* room for the ridge line below the letters */
}
/* the warm "light on inside" glow rising from behind the ridge */
.hero-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6%;
  width: 74%;
  height: 128%;
  transform: translateX(-50%);
  background: radial-gradient(58% 54% at 50% 100%,
    rgba(231, 164, 78, .30), rgba(231, 164, 78, .09) 42%, transparent 72%);
  opacity: 0;
  transition: opacity 2s ease .5s;
  pointer-events: none;
  z-index: -1;
}
.hero-mark.is-in::after { opacity: 1; }
.wm {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 9.2vw, 7rem);
  letter-spacing: .28em;
  text-indent: .28em; /* balance trailing track */
  text-transform: uppercase;
  white-space: nowrap;
}
.wm-base {
  color: var(--chalk);
  opacity: 0;
  transition: letter-spacing 2.4s var(--e-ridge), text-indent 2.4s var(--e-ridge), opacity 1.8s ease;
  text-shadow: 0 6px 44px rgba(14, 20, 26, .75);
}
.hero-mark.is-in .wm-base {
  letter-spacing: .1em;
  text-indent: .1em;
  opacity: 1;
}
/* the ridgeline: a steel flashing line that peaks under the wordmark, drawing in on load */
.wm-ridge {
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: 0;
  width: 108%;
  height: .5em;
  overflow: visible;
  pointer-events: none;
}
.wm-ridge polyline {
  fill: none;
  stroke: var(--steel);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 7px rgba(231, 164, 78, .55));
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
  transition: stroke-dashoffset 2.2s var(--e-ridge) .5s, opacity 1.2s ease .4s;
}
.hero-mark.is-in .wm-ridge polyline { stroke-dashoffset: 0; opacity: 1; }

.hero-h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.1vw, 1.55rem);
  line-height: 1.4;
  letter-spacing: .01em;
  color: var(--chalk);
  margin-top: clamp(1.6rem, 3.6vh, 2.8rem);
  opacity: 0;
  transition: opacity 1.6s ease .8s;
  text-shadow: 0 2px 20px rgba(14, 20, 26, .85);
}
.hero-mark.is-in ~ .hero-h1 { opacity: 1; }

.hero-cta {
  margin-top: clamp(1.6rem, 3.4vh, 2.4rem);
  opacity: 0;
  transition: opacity 1.6s ease 1s;
}
.hero-mark.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(--zinc);
  font-family: var(--body);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .4em;
  text-transform: uppercase;
}
.hero-cue i {
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--lamp), 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: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  padding: .95rem 1.9rem;
  border-radius: 999px;
  border: 1px solid var(--lamp);
  background: var(--lamp);
  color: var(--storm);
  transition: background .4s var(--e-ridge), color .4s var(--e-ridge), transform .4s var(--e-ridge), border-color .4s var(--e-ridge);
}
.btn:hover { background: transparent; color: var(--lamp); transform: translateY(-2px); }
.btn:active { transform: translateY(0); color: var(--steel); border-color: var(--steel); }

.btn--ghost {
  background: transparent;
  color: var(--chalk);
  border-color: rgba(236, 238, 240, .35);
}
.btn--ghost:hover { border-color: var(--lamp); color: var(--lamp); background: transparent; }

.panel-light .btn { color: var(--paper); background: var(--lamp-ink); border-color: var(--lamp-ink); }
.panel-light .btn:hover { background: transparent; color: var(--lamp-ink); }
.panel-light .btn--ghost { color: var(--ink); border-color: var(--line-light); background: transparent; }
.panel-light .btn--ghost:hover { border-color: var(--lamp-ink); color: var(--lamp-ink); }

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

.statement {
  position: relative;
  z-index: 2;
  background: var(--storm);
  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: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.9rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
}
.statement-lead .accent { color: var(--lamp); font-style: italic; font-family: var(--serif); font-weight: 500; }
.statement-body { color: var(--zinc); margin-top: 1.75rem; }
.statement-body p + p { margin-top: 1.2rem; }
.statement-figure {
  position: relative;
  aspect-ratio: 3 / 4;
  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(14, 20, 26, .55), transparent 55%);
}

/* ============================================================
   HOME — FILM SECTION (dusk swim)
   ============================================================ */

.film-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--storm);
}
.film-media {
  position: absolute;
  inset: -12% 0;
  z-index: 0;
  will-change: transform;
}
.film-media video,
.film-media img { width: 100%; height: 100%; object-fit: cover; }
.film-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(14, 20, 26, .86) 18%, rgba(14, 20, 26, .3) 62%, rgba(14, 20, 26, .55)),
    linear-gradient(var(--storm), transparent 14%, transparent 84%, var(--storm));
}
.film-copy {
  position: relative;
  z-index: 2;
  padding: clamp(6rem, 14vh, 10rem) var(--pad-x);
  max-width: 44rem;
}

/* ============================================================
   HOME — SERVICES TRIPTYCH
   ============================================================ */

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

.triptych {
  max-width: 76rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(236, 238, 240, .09);
  border: 1px solid rgba(236, 238, 240, .09);
}
.service-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 22rem;
  padding: clamp(1.75rem, 3vw, 2.6rem);
  background: var(--slate);
  text-decoration: none;
  color: var(--chalk);
  overflow: hidden;
  transition: background .5s var(--e-ridge);
}
.service-panel::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: var(--lamp);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .6s var(--e-ridge);
}
.service-panel:hover { background: #12303c; }
.service-panel:hover::before,
.service-panel:focus-visible::before { transform: scaleY(1); }
.service-index {
  font-family: var(--display);
  font-size: .9rem;
  color: var(--steel);
  letter-spacing: .1em;
}
.service-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.12;
  margin-top: auto;
}
.service-desc { color: var(--zinc); margin-top: 1rem; font-size: 1rem; }
.service-more {
  margin-top: 1.5rem;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--lamp);
}

/* ============================================================
   HOME — PROCESS (five acts)
   ============================================================ */

.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 rgba(236, 238, 240, .1);
  align-items: baseline;
}
.act:last-child { border-bottom: 1px solid rgba(236, 238, 240, .1); }
.act-num {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--steel);
  font-variant-numeric: oldstyle-nums;
}
.act-body h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.1;
}
.act-body p { color: var(--zinc); margin-top: .7rem; max-width: 48ch; }

/* ============================================================
   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(--chalk);
  background: var(--slate);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--shadow-raised);
  transition: transform .5s var(--e-ridge), box-shadow .5s var(--e-ridge);
}
.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-ridge);
}
.project-card:hover .project-figure img { transform: scale(1.05); }
.project-figure::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14, 20, 26, .5), transparent 50%);
}
.project-info { padding: 1.4rem 1.5rem 1.7rem; }
.project-loc {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--lamp);
}
.project-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.1;
  margin-top: .6rem;
}
.project-specs {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.1rem;
  font-size: .82rem;
  color: var(--zinc);
}
.project-specs span { position: relative; }
.project-specs span + span::before {
  content: "·";
  color: var(--steel);
  margin-right: 1.1rem;
}

/* ============================================================
   HOME — REVIEWS
   ============================================================ */

.reviews-score {
  margin-top: 1.2rem;
  font-family: var(--body);
  font-size: .95rem;
  color: var(--zinc);
}
.reviews-score b { color: var(--chalk); font-weight: 500; }
.review-stars {
  color: var(--steel);
  font-size: .78rem;
  letter-spacing: .32em;
}
.review-stars--lg { font-size: .92rem; margin-right: .5rem; }
.reviews-grid {
  max-width: 74rem;
  margin: 3.5rem 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(--slate);
  border: 1px solid rgba(236, 238, 240, .08);
  border-radius: 3px;
  padding: 1.9rem 1.8rem 1.7rem;
  box-shadow: var(--shadow-raised);
}
.review-card blockquote {
  flex: 1;
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.5;
}
.review-card cite {
  display: block;
  font-family: var(--body);
  font-style: normal;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--steel);
}
.review-date {
  display: block;
  margin-top: .45rem;
  font-weight: 400;
  letter-spacing: .12em;
  color: var(--zinc);
}
@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(--slate);
  padding: var(--pad-section) var(--pad-x);
  border-top: 1px solid rgba(236, 238, 240, .08);
  border-bottom: 1px solid rgba(236, 238, 240, .08);
}
.cost-inner {
  max-width: 60rem;
  margin: 0 auto;
  text-align: center;
}
.cost-range {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.3;
  margin-top: 1.5rem;
}
.cost-range b { color: var(--steel); font-weight: 400; }

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

.form-section {
  position: relative;
  z-index: 2;
  background: var(--storm);
  padding: var(--pad-section) var(--pad-x);
}
.form-wrap {
  max-width: 44rem;
  margin: 2.5rem auto 0;
  background: var(--slate);
  border: 1px solid rgba(231, 164, 78, .16);
  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: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--zinc);
}
.field input,
.field select,
.field textarea {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(236, 238, 240, .22);
  border-radius: 0;
  color: var(--chalk);
  font-family: var(--body);
  font-size: 1.02rem;
  padding: .55rem 0;
  transition: border-color .4s var(--e-ridge);
}
.field textarea { resize: vertical; min-height: 3.5rem; }
.field select option { background: var(--slate); color: var(--chalk); }
.field input::placeholder,
.field textarea::placeholder { color: rgba(144, 160, 171, .6); }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--lamp); }

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

/* light form variant */
.panel-light .form-wrap {
  background: var(--panel-light);
  border-color: var(--line-light);
  box-shadow: 0 30px 60px -40px rgba(20, 28, 34, .3);
}
.panel-light .field label { color: var(--ink-soft); }
.panel-light .field input,
.panel-light .field select,
.panel-light .field textarea {
  color: var(--ink);
  border-bottom-color: rgba(20, 28, 34, .22);
}
.panel-light .field select option { background: var(--panel-light); color: var(--ink); }
.panel-light .field input:focus,
.panel-light .field select:focus,
.panel-light .field textarea:focus { border-bottom-color: var(--lamp-ink); }
.panel-light .form-hint { color: var(--ink-soft); }

/* ============================================================
   FOOTER
   ============================================================ */

.site-foot {
  position: relative;
  z-index: 2;
  background: var(--storm);
  padding: clamp(3.5rem, 8vh, 6rem) var(--pad-x) 2.5rem;
  border-top: 1px solid rgba(236, 238, 240, .08);
}
.foot-top {
  max-width: 78rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.foot-wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: .95;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.foot-tag { color: var(--zinc); font-style: italic; font-family: var(--serif); margin-top: .8rem; }
.foot-col h4 {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--lamp);
  margin-bottom: 1.1rem;
}
.foot-col a, .foot-col p {
  display: block;
  text-decoration: none;
  color: var(--zinc);
  font-size: .96rem;
  padding: .28rem 0;
  transition: color .35s var(--e-ridge);
}
.foot-col a:hover { color: var(--chalk); }
.foot-nap { font-style: normal; }
.foot-nap a:hover { color: var(--lamp); }
.foot-bottom {
  max-width: 78rem;
  margin: 3rem auto 0;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(236, 238, 240, .08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: .82rem;
  color: var(--zinc);
}
.foot-bottom a { color: var(--zinc); text-decoration: none; }
.foot-bottom a:hover { color: var(--chalk); }

/* ============================================================
   INNER PAGE TEMPLATE
   ============================================================ */

.page-hero {
  position: relative;
  min-height: clamp(60vh, 68vh, 640px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--storm);
}
.page-hero-media { position: absolute; inset: 0; z-index: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(15deg, rgba(14, 20, 26, .9) 20%, rgba(14, 20, 26, .4) 70%),
    linear-gradient(rgba(14, 20, 26, .55), transparent 30%, transparent 55%, var(--storm));
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 78rem;
  margin: 0 auto;
  padding: clamp(6rem, 12vh, 8rem) var(--pad-x) clamp(3rem, 7vh, 5rem);
}
.page-hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  max-width: 20ch;
}
.page-hero .lede { color: var(--chalk); opacity: .82; max-width: 46ch; }
.breadcrumb {
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--zinc);
  margin-bottom: 1.4rem;
}
.breadcrumb a { text-decoration: none; color: var(--zinc); transition: color .35s var(--e-ridge); }
.breadcrumb a:hover { color: var(--lamp); }
.breadcrumb span[aria-hidden] { color: var(--steel); margin: 0 .5rem; }

/* light body */
.panel-light {
  background: var(--paper);
  color: var(--ink);
}
.prose-section {
  padding: var(--pad-section) var(--pad-x);
}
.prose {
  max-width: 42rem;
  margin: 0 auto;
}
.prose.wide { max-width: 60rem; }
.prose .eyebrow { color: var(--lamp-ink); }
.prose h2 {
  font-family: var(--display);
  font-weight: 600;
  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 { margin-top: 0; }
.prose h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  margin: 2rem 0 .6rem;
}
.prose p { color: var(--ink); margin-bottom: 1.15rem; }
.prose p.muted { color: var(--ink-soft); }
.prose a:not(.btn):not(.text-link) {
  color: var(--lamp-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.prose ul { list-style: none; margin: 0 0 1.4rem; }
.prose li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: .6rem;
  color: var(--ink);
}
.prose li::before {
  content: "";
  position: absolute;
  left: 0; top: .68em;
  width: .5rem; height: 1px;
  background: var(--lamp-ink);
}
.prose .lede { color: var(--ink-soft); }
.prose blockquote.pull {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  line-height: 1.3;
  color: var(--ink);
  margin: 2.5rem 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--lamp-ink);
}

/* 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: 600;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
  width: 34%;
}
.spec-table td { color: var(--ink); }
.spec-table .price { color: var(--lamp-ink); font-variant-numeric: oldstyle-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: 400;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  transition: color .3s var(--e-ridge);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--body);
  font-weight: 400;
  color: var(--lamp-ink);
  font-size: 1.4rem;
  transition: transform .4s var(--e-ridge);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--lamp-ink); }
.faq details p { margin: .9rem 0 0; color: var(--ink-soft); }

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

/* CTA band (inner pages) */
.cta-band {
  position: relative;
  z-index: 2;
  background: var(--storm);
  color: var(--chalk);
  padding: var(--pad-section) var(--pad-x);
  text-align: center;
}
.cta-band h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
  max-width: 20ch;
  margin: 1.2rem auto 0;
}
.cta-band .btn { margin-top: 2rem; }

/* projects 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; }
.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(--ink);
  margin-top: 1.5rem;
}
.contact-info .nap-block a { color: var(--lamp-ink); 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(--ink-soft); }
.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(--storm);
}
.error-page .big {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(3rem, 12vw, 8rem);
  line-height: 1;
  color: var(--steel);
}

/* ============================================================
   HEADER PHONE (click-to-call, sits before the CTA pill)
   ============================================================ */

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--body);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--chalk);
  white-space: nowrap;
  transition: color .35s var(--e-ridge);
}
.nav-phone svg { width: 14px; height: 14px; stroke: var(--lamp); flex: none; }
.nav-phone:hover { color: var(--lamp); }
.header--on-light .nav-phone { color: var(--ink); }
.header--on-light .nav-phone:hover { color: var(--lamp-ink); }
.header--on-light .nav-phone svg { stroke: var(--lamp-ink); }
@media (max-width: 940px) { .nav-phone { display: none; } }

/* ============================================================
   TRUST BAR (certifications strip under the statement)
   ============================================================ */

.trust-bar {
  position: relative;
  z-index: 2;
  background: var(--slate);
  border-top: 1px solid rgba(236, 238, 240, .07);
  border-bottom: 1px solid rgba(236, 238, 240, .07);
  padding: clamp(1.6rem, 4vh, 2.4rem) var(--pad-x);
}
.trust-inner {
  max-width: 78rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem clamp(1.4rem, 3.5vw, 3rem);
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--body);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--zinc);
}
.trust-item b { color: var(--chalk); font-weight: 600; }
.trust-item::before {
  content: "";
  width: 8px; height: 8px;
  transform: rotate(45deg);
  border-top: 1.5px solid var(--lamp);
  border-right: 1.5px solid var(--lamp);
  flex: none;
}
.trust-rating { color: var(--steel); letter-spacing: .28em; }

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

@media (max-width: 900px) {
  .statement-inner { grid-template-columns: 1fr; }
  .statement-figure { max-width: 22rem; aspect-ratio: 4/3; }
  .triptych { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr; gap: 3rem; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .figure-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .hero-track { height: 180vh; }
  .wm { letter-spacing: .14em; text-indent: .14em; }
  .hero-mark.is-in .wm-base { letter-spacing: .05em; text-indent: .05em; }
  .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; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain,
  .hero-cue i { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-eyebrow,
  .hero-h1,
  .hero-cta,
  .wm-base { opacity: 1; transition: none; }
  .wm-base { letter-spacing: .1em; text-indent: .1em; }
  .wm-ridge polyline { stroke-dashoffset: 0; opacity: 1; transition: none; }
  .hero-mark::after { opacity: 1; transition: none; }
  .film-media { inset: 0; }
  .project-card:hover { transform: none; }
}

/* ============================================================
   DEV HOOKS — ?static / ?static&only=  (added via body classes by JS)
   ============================================================ */

body.dev-static .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
body.dev-static .grain { display: none; }
body.dev-static .hero-track { height: 820px !important; }
body.dev-static .hero-stage { position: relative; height: 820px; }
body.dev-static .film-section { min-height: 720px !important; }
body.dev-static .page-hero { min-height: 620px !important; }
body.dev-static .hero-eyebrow,
body.dev-static .hero-h1,
body.dev-static .hero-cta,
body.dev-static .wm-base { opacity: 1 !important; transition: none !important; }
body.dev-static .wm-base { letter-spacing: .1em !important; text-indent: .1em !important; }
body.dev-static .wm-ridge polyline { stroke-dashoffset: 0 !important; opacity: 1 !important; transition: none !important; }
body.dev-static .hero-mark::after { opacity: 1 !important; transition: none !important; }
[data-dev-hidden] { display: none !important; }
[data-dev-solo] { min-height: 0 !important; }

/* ============================================================
   MOBILE MENU (elements injected by main.js)
   ============================================================ */

.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(--chalk);
  transition: transform .5s var(--e-ridge), background-color .35s var(--e-ridge);
}
.header--on-light .menu-line { background: var(--ink); }
body.menu-open .menu-line { background: var(--chalk); }
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: 1px solid var(--lamp); outline-offset: 3px; }
.menu-btn:active .menu-line { background: var(--lamp); }

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 40; /* below the fixed header (50): wordmark + button stay usable */
  display: none;
  flex-direction: column;
  justify-content: center;
  padding: 6.5rem var(--pad-x) 3rem;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(25, 34, 43, .92), transparent 60%),
    var(--storm);
  opacity: 0;
  visibility: hidden;
  transition: opacity .55s var(--e-ridge), visibility 0s .55s;
}
body.menu-open .menu-overlay {
  opacity: 1;
  visibility: visible;
  transition: opacity .55s var(--e-ridge);
}
body.menu-open { overflow: hidden; }
/* the header must read dark while the overlay is up, whatever section is behind it */
body.menu-open .site-head { background: none; }
body.menu-open .site-head .wordmark { color: var(--chalk); }
body.menu-open .site-head .nav-cta { color: var(--chalk); border-color: rgba(231, 164, 78, .45); }
body.menu-open .site-head::after { opacity: 0; }

.menu-links { display: flex; flex-direction: column; }
.menu-links a {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.1rem, 9.5vw, 3rem);
  line-height: 1.5;
  text-decoration: none;
  color: var(--chalk);
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--e-ridge), transform .7s var(--e-ridge), color .35s var(--e-ridge);
}
.menu-links a:hover, .menu-links a[aria-current="page"] { color: var(--lamp); }
.menu-links a:active { color: var(--steel); }
.menu-links a:focus-visible { outline: 1px solid var(--lamp); 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-ridge {
  height: 1px;
  margin: 2rem 0;
  background: linear-gradient(90deg,
    rgba(231, 164, 78, .85), rgba(231, 164, 78, .15) 70%, transparent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.1s var(--e-ridge) .35s;
}
body.menu-open .menu-ridge { transform: scaleX(1); }

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

.menu-nap {
  margin-top: 2.2rem;
  font-size: .82rem;
  color: var(--zinc);
  opacity: 0;
  transition: opacity .7s var(--e-ridge) .48s;
}
.menu-nap a { color: var(--zinc); }
.menu-nap a:hover { color: var(--lamp); }
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-ridge, .menu-cta, .menu-nap {
    transition: none;
  }
  .menu-links a { transform: none; }
  .menu-ridge { transform: none; }
}

/* dev: ?menu capture — skip entry staggering so scroll-0 shots show the settled state */
body.dev-static .menu-links a,
body.dev-static .menu-ridge,
body.dev-static .menu-cta,
body.dev-static .menu-nap,
body.dev-static .menu-overlay { transition: none !important; }

/* ============================================================
   CONSULTATION MODAL (JS-injected; every "Book a consultation"
   CTA opens this instead of navigating to /contact/)
   ============================================================ */

.consult-modal {
  position: fixed;
  inset: 0;
  z-index: 60; /* above header (50) and menu overlay (40) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  background: rgba(14, 20, 26, .72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .55s var(--e-ridge), visibility 0s linear .55s;
}
body.modal-open .consult-modal {
  opacity: 1;
  visibility: visible;
  transition: opacity .55s var(--e-ridge);
}
body.modal-open { overflow: hidden; }

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

/* caustic ridge across the panel's top edge */
.consult-modal-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(231, 164, 78, .75) 30%, rgba(231, 164, 78, .75) 70%, transparent);
  box-shadow: 0 0 14px rgba(231, 164, 78, .45);
}

.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(--zinc);
  font-family: var(--body);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: color .35s var(--e-ridge), transform .35s var(--e-ridge);
}
.cm-close:hover { color: var(--lamp); transform: rotate(90deg); }
.cm-close:active { transform: rotate(90deg) scale(.92); }
.cm-close:focus-visible { outline: 2px solid var(--lamp); 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.65;
  color: var(--zinc);
}
.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; }
}

/* dev: ?modal capture — settled state at scroll 0 */
body.dev-static .consult-modal,
body.dev-static .consult-modal-panel { transition: none !important; }
