/* ============================================================
   TRUELINE BUILDERS — trust-register remodeler
   Tokens → base → components → sections → inner pages → motion
   Only transform/opacity animate. No transition-all.
   ============================================================ */

:root {
  /* six-token palette (PLAN §2) */
  --paper:  #ece6d8;   /* page ground — warm linen/oat */
  --card:   #f7f3e9;   /* raised panel */
  --ink:    #1b1c18;   /* primary text — warm near-black */
  --slate:  #6a685c;   /* secondary text — olive-grey */
  --pine:   #26463a;   /* primary accent — workwear green */
  --brass:  #a8763c;   /* fine detail — warm metal */
  --pine-deep: #17332a;
  --pine-mid:  #2f5849;
  --line:   #d8cfba;   /* hairline on paper */
  --line-soft: #e5ddcc;

  /* on-dark (pine band) */
  --on-dark-fg:  #f2ede1;
  --on-dark-dim: #a9bcb0;
  --on-dark-line: rgba(242,237,225,.16);

  /* type */
  --display: "Bricolage Grotesque", "Public Sans", system-ui, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* fluid type scale */
  --fs-eyebrow: .7rem;
  --fs-body: 1.0625rem;
  --fs-lede: clamp(1.15rem, 1.02rem + .55vw, 1.4rem);
  --fs-h3: clamp(1.2rem, 1.05rem + .7vw, 1.55rem);
  --fs-h2: clamp(1.9rem, 1.4rem + 2.2vw, 3.1rem);
  --fs-h1: clamp(2.5rem, 1.7rem + 3.6vw, 4.6rem);
  --fs-display: clamp(3rem, 1.9rem + 5vw, 6rem);

  /* spacing */
  --pad-x: clamp(1.15rem, .6rem + 3vw, 4rem);
  --section-y: clamp(4rem, 2.6rem + 6vw, 8rem);
  --maxw: 1240px;
  --measure: 64ch;

  /* depth: warm ink-tinted layered shadows */
  --sh-1: 0 1px 2px rgba(27,28,24,.05), 0 4px 12px rgba(27,28,24,.05);
  --sh-2: 0 2px 4px rgba(27,28,24,.06), 0 12px 30px rgba(27,28,24,.09);
  --sh-3: 0 4px 8px rgba(27,28,24,.08), 0 24px 60px rgba(27,28,24,.14);

  --radius: 4px;
  --radius-lg: 8px;

  --e-firm: cubic-bezier(.22, 1, .36, 1);
  --e-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.02em;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
img { max-width: 100%; display: block; }
a { color: inherit; }

.mono { font-family: var(--mono); }

/* eyebrow / label */
.eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1.1rem;
  display: block;
}
.eyebrow--dark { color: var(--brass); }

/* layout */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--section-y); }
.measure { max-width: var(--measure); }

.skip-link {
  position: absolute; left: 8px; top: -60px;
  background: var(--pine); color: var(--on-dark-fg);
  padding: .6rem 1rem; border-radius: var(--radius); z-index: 200;
  transition: top .2s var(--e-firm);
}
.skip-link:focus { top: 8px; }

:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 3px;
  border-radius: 2px;
}
.header--on-dark :focus-visible,
[data-header-color="dark"] :focus-visible { outline-color: var(--brass); }

/* ============================================================
   THE SIGNATURE — level bubble
   ============================================================ */
.level {
  --bubble-off: 0px;
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
  max-width: 220px;
  margin: 1.5rem 0;
}
.level-line {
  flex: 1;
  height: 1px;
  background: var(--brass);
  opacity: .5;
}
.level-vial {
  position: relative;
  width: 58px;
  height: 15px;
  border: 1px solid var(--brass);
  border-radius: 8px;
  background: rgba(168,118,60,.06);
  flex: 0 0 auto;
}
/* the two centre guide marks */
.level-vial::before,
.level-vial::after {
  content: "";
  position: absolute;
  top: 2px; bottom: 2px;
  width: 1px;
  background: var(--brass);
  opacity: .55;
}
.level-vial::before { left: calc(50% - 6px); }
.level-vial::after  { left: calc(50% + 6px); }
.level-bubble {
  position: absolute;
  top: 50%; left: 50%;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--pine);
  box-shadow: 0 0 0 1px rgba(38,70,58,.25), inset 0 1px 1px rgba(255,255,255,.25);
  transform: translate(calc(-50% + var(--bubble-off)), -50%);
}
.level.is-settling .level-bubble {
  transition: transform .95s var(--e-spring);
}
/* dark-band variant */
.level--dark .level-line { background: var(--on-dark-dim); opacity: .5; }
.level--dark .level-vial { border-color: var(--on-dark-dim); background: rgba(242,237,225,.05); }
.level--dark .level-vial::before,
.level--dark .level-vial::after { background: var(--on-dark-dim); }
.level--dark .level-bubble { background: var(--brass); box-shadow: 0 0 0 1px rgba(168,118,60,.3); }
/* centered / inline mini variant used beside stats + steps */
.level--mini { max-width: 96px; margin: 0; }
.level--center { margin-inline: auto; }

@media (prefers-reduced-motion: reduce) {
  .level-bubble { --bubble-off: 0px !important; transition: none !important; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: .96rem;
  line-height: 1;
  padding: .95rem 1.5rem;
  border-radius: var(--radius);
  background: var(--pine);
  color: var(--on-dark-fg);
  border: 1px solid var(--pine);
  text-decoration: none;
  cursor: pointer;
  transition: transform .3s var(--e-firm), background-color .3s var(--e-firm), box-shadow .3s var(--e-firm);
  box-shadow: var(--sh-1);
}
.btn:hover { background: var(--pine-deep); transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn:active { transform: translateY(0); box-shadow: var(--sh-1); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn--on-dark.btn--ghost { color: var(--on-dark-fg); border-color: var(--on-dark-line); }
.btn--on-dark.btn--ghost:hover { background: var(--on-dark-fg); color: var(--pine-deep); border-color: var(--on-dark-fg); }
.btn--lg { padding: 1.1rem 1.9rem; font-size: 1.02rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--pine);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(38,70,58,.3);
  padding-bottom: 1px;
  transition: border-color .25s var(--e-firm), color .25s var(--e-firm);
}
.text-link:hover { border-color: var(--pine); }
.text-link .arw { transition: transform .3s var(--e-firm); }
.text-link:hover .arw { transform: translateX(3px); }
.header--on-dark .text-link, [data-header-color="dark"] .text-link { color: var(--brass); border-color: rgba(168,118,60,.4); }

/* ============================================================
   HEADER + NAV
   ============================================================ */
.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: .85rem var(--pad-x);
  transition: background-color .3s var(--e-firm), box-shadow .3s var(--e-firm), border-color .3s var(--e-firm);
  border-bottom: 1px solid transparent;
}
.site-head.is-stuck {
  background: rgba(236,230,216,.9);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom-color: var(--line);
  box-shadow: var(--sh-1);
}
.site-head.header--on-dark { color: var(--on-dark-fg); }
.site-head.header--on-dark.is-stuck {
  background: rgba(23,51,42,.72);
  border-bottom-color: var(--on-dark-line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: -.02em;
  color: inherit;
  text-decoration: none;
  margin-right: auto;
}
.brand .brand-mark {
  width: 26px; height: 26px;
  flex: 0 0 auto;
  display: block;
}
.brand b { font-weight: 700; }
.brand span { color: var(--brass); font-weight: 700; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.site-nav a:not(.nav-cta) {
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  color: inherit;
  opacity: .85;
  position: relative;
  padding: .3rem 0;
  transition: opacity .25s var(--e-firm);
}
.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--e-firm);
}
.site-nav a:not(.nav-cta):hover { opacity: 1; }
.site-nav a:not(.nav-cta):hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { opacity: 1; color: var(--brass); }

.head-phone {
  font-family: var(--mono);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
  opacity: .9;
}
.head-phone:hover { color: var(--brass); opacity: 1; }
.nav-cta { }

@media (max-width: 900px) {
  .site-nav a:not(.nav-cta), .site-nav .nav-cta { display: none; }
}
@media (max-width: 620px) {
  .head-phone { display: none; }
}

/* mobile menu button (JS-injected) */
.menu-btn {
  display: none;
  width: 44px; height: 40px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
}
.menu-line { width: 18px; height: 1.5px; background: currentColor; display: block; transition: transform .3s var(--e-firm), opacity .2s; }
@media (max-width: 900px) { .menu-btn { display: inline-flex; } }
body.menu-open .menu-line:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
body.menu-open .menu-line:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--pine-deep);
  color: var(--on-dark-fg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .3rem;
  padding: clamp(2rem,8vw,4rem) var(--pad-x) 3rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .35s var(--e-firm), transform .35s var(--e-firm), visibility 0s .35s;
}
body.menu-open .menu-overlay { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--e-firm), transform .35s var(--e-firm); }
.menu-links { display: flex; flex-direction: column; gap: .1rem; }
.menu-links a {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  color: var(--on-dark-fg);
  text-decoration: none;
  padding: .35rem 0;
  transition: color .2s var(--e-firm), transform .2s var(--e-firm);
}
.menu-links a:hover { color: var(--brass); transform: translateX(6px); }
.menu-links a[aria-current="page"] { color: var(--brass); }
.menu-hr { height: 1px; background: var(--on-dark-line); margin: 1.5rem 0; }
.menu-cta { align-self: flex-start; margin-top: .5rem; }
.menu-nap {
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--on-dark-dim);
  margin-top: 1.6rem;
  line-height: 1.9;
}
.menu-nap a { color: var(--on-dark-fg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--pine-deep);
  color: var(--on-dark-fg);
  overflow: hidden;
  padding-top: clamp(7rem, 12vh, 10rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(23,51,42,.94) 0%, rgba(23,51,42,.86) 42%, rgba(23,51,42,.5) 78%, rgba(23,51,42,.35) 100%),
    linear-gradient(0deg, rgba(23,51,42,.85) 0%, rgba(23,51,42,.1) 40%);
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 { color: var(--on-dark-fg); margin-bottom: 1.3rem; }
.hero .hero-lede {
  font-size: var(--fs-lede);
  color: var(--on-dark-fg);
  opacity: .92;
  max-width: 52ch;
  margin-bottom: 1.9rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
  border-top: 1px solid var(--on-dark-line);
}
.hero-stat {
  flex: 1 1 160px;
  padding: 1.3rem 1.4rem 0 0;
  margin-top: 1.3rem;
}
.hero-stat .num {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem);
  color: var(--on-dark-fg);
  letter-spacing: -.02em;
  display: block;
}
.hero-stat .lbl {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
  margin-top: .35rem;
  display: block;
}

/* ============================================================
   PROOF STRIP
   ============================================================ */
.proof {
  background: var(--card);
  border-block: 1px solid var(--line);
}
.proof-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2rem;
  padding-block: 1.5rem;
}
.proof-item {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--slate);
  text-transform: uppercase;
}
.proof-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pine); flex: 0 0 auto; }
.proof-item b { color: var(--ink); font-weight: 600; }
.proof-item .star { color: var(--brass); }

/* ============================================================
   STATEMENT
   ============================================================ */
.statement { background: var(--paper); }
.statement-grid {
  display: grid;
  grid-template-columns: 1.3fr .85fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.statement-lead {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.35rem);
  line-height: 1.28;
  letter-spacing: -.02em;
}
.statement-lead em { font-style: italic; color: var(--brass); }
.statement-body { color: var(--slate); max-width: 52ch; margin-top: 1.4rem; }
.statement-body strong { color: var(--ink); font-weight: 600; }
.statement-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--sh-2);
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
}
.statement-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 800px) {
  .statement-grid { grid-template-columns: 1fr; }
  .statement-media { aspect-ratio: 16 / 10; order: -1; }
}

/* ============================================================
   SECTION HEADER (shared)
   ============================================================ */
.sec-head { max-width: 620px; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head p { color: var(--slate); margin-top: .9rem; margin-bottom: 0; }
.sec-head.center .level { margin-inline: auto; }

/* ============================================================
   BEFORE / AFTER
   ============================================================ */
.ba-wrap { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.ba {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--sh-2);
  border: 1px solid var(--line);
  user-select: none;
  touch-action: pan-y;
  background: var(--pine-deep);
}
.ba-img { position: absolute; inset: 0; }
.ba-img img { width: 100%; height: 100%; object-fit: cover; }
.ba-after { z-index: 1; }
.ba-before { z-index: 2; clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba-tag {
  position: absolute;
  bottom: 1rem;
  z-index: 4;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-dark-fg);
  background: rgba(23,51,42,.72);
  backdrop-filter: blur(3px);
  padding: .4rem .7rem;
  border-radius: 3px;
}
.ba-tag--before { left: 1rem; }
.ba-tag--after { right: 1rem; }
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos, 50%);
  z-index: 5;
  width: 2px;
  background: var(--paper);
  transform: translateX(-1px);
  cursor: ew-resize;
}
.ba-grip {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--sh-2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--pine);
}
.ba-grip::before, .ba-grip::after {
  content: "";
  width: 0; height: 0;
  border-block: 5px solid transparent;
}
.ba-grip::before { border-right: 6px solid var(--pine); }
.ba-grip::after { border-left: 6px solid var(--pine); }
.ba-handle:focus-visible { outline: none; }
.ba-handle:focus-visible .ba-grip { outline: 2px solid var(--brass); outline-offset: 3px; }
.ba-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: .9rem;
  flex-wrap: wrap;
}
.ba-caption h3 { font-size: 1.15rem; }
.ba-caption .meta { font-family: var(--mono); font-size: .78rem; color: var(--brass); letter-spacing: .04em; }
@media (min-width: 820px) {
  .ba-wrap.ba-2 { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   SERVICES
   ============================================================ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.1rem, 2.5vw, 1.8rem);
}
.svc-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--sh-1);
  transition: transform .4s var(--e-firm), box-shadow .4s var(--e-firm), border-color .4s var(--e-firm);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: var(--brass); }
.svc-media { aspect-ratio: 3 / 2; overflow: hidden; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--e-firm); }
.svc-card:hover .svc-media img { transform: scale(1.04); }
.svc-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.svc-body h3 { margin-bottom: .5rem; }
.svc-body p { color: var(--slate); font-size: .96rem; margin-bottom: 1.1rem; }
.svc-more { margin-top: auto; font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--pine); display: inline-flex; align-items: center; gap: .5rem; }
.svc-card:hover .svc-more { color: var(--brass); }
.svc-more .arw { transition: transform .3s var(--e-firm); }
.svc-card:hover .svc-more .arw { transform: translateX(4px); }
@media (max-width: 840px) { .svc-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* ============================================================
   PROCESS — five acts
   ============================================================ */
.process { background: var(--card); border-block: 1px solid var(--line); }
.steps { display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: minmax(56px, 84px) 1fr;
  gap: clamp(1rem, 3vw, 2.4rem);
  padding: clamp(1.5rem, 3vw, 2.2rem) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num { font-family: var(--mono); font-size: 1.05rem; font-weight: 500; color: var(--brass); padding-top: .35rem; }
.step-body h3 { margin-bottom: .5rem; }
.step-body p { color: var(--slate); margin: 0; max-width: 60ch; }
.step-body .level { margin: .9rem 0 0; }

/* ============================================================
   PROJECTS
   ============================================================ */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.1rem, 2.5vw, 1.8rem); }
.proj-card {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
  transition: transform .4s var(--e-firm), box-shadow .4s var(--e-firm);
}
.proj-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.proj-media { aspect-ratio: 3 / 2; overflow: hidden; }
.proj-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--e-firm); }
.proj-card:hover .proj-media img { transform: scale(1.04); }
.proj-body { padding: 1.3rem 1.3rem 1.5rem; }
.proj-body .place { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.proj-body h3 { margin: .5rem 0 .7rem; font-size: 1.2rem; }
.proj-specs { display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-family: var(--mono); font-size: .74rem; color: var(--slate); border-top: 1px solid var(--line); padding-top: .8rem; margin-top: .3rem; }
.proj-specs span b { color: var(--ink); font-weight: 600; }
@media (max-width: 840px) { .proj-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews { background: var(--paper); }
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.2vw, 1.5rem); }
.rev-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.6rem;
  box-shadow: var(--sh-1);
  display: flex; flex-direction: column;
}
.rev-stars { color: var(--brass); letter-spacing: .12em; font-size: .8rem; margin-bottom: .9rem; }
.rev-quote { font-size: .98rem; color: var(--ink); margin-bottom: 1.2rem; }
.rev-who { margin-top: auto; font-size: .85rem; }
.rev-who b { font-weight: 600; }
.rev-who .rev-meta { font-family: var(--mono); font-size: .72rem; color: var(--slate); letter-spacing: .04em; display: block; margin-top: .2rem; }
.rev-agg { text-align: center; margin-top: 2.2rem; font-family: var(--mono); font-size: .82rem; letter-spacing: .06em; color: var(--slate); }
.rev-agg b { color: var(--ink); }
@media (max-width: 840px) { .rev-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* ============================================================
   GUARANTEE BAND (pine-deep)
   ============================================================ */
.band-dark { background: var(--pine-deep); color: var(--on-dark-fg); position: relative; }
.band-dark .eyebrow { color: var(--brass); }
.guarantee-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.guarantee-grid h2 { color: var(--on-dark-fg); }
.guarantee-lede { color: var(--on-dark-fg); opacity: .9; font-size: var(--fs-lede); }
.guarantee-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.guarantee-points li { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; }
.guarantee-points .gp-mark {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--brass);
  color: var(--brass);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; flex: 0 0 auto; margin-top: .2rem;
}
.guarantee-points b { display: block; color: var(--on-dark-fg); font-weight: 600; font-family: var(--display); font-size: 1.1rem; margin-bottom: .15rem; }
.guarantee-points span { color: var(--on-dark-dim); font-size: .92rem; line-height: 1.6; }
@media (max-width: 800px) { .guarantee-grid { grid-template-columns: 1fr; } }

/* ============================================================
   COST BAND
   ============================================================ */
.cost { background: var(--card); border-block: 1px solid var(--line); }
.cost-grid { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.cost h2 { margin-bottom: .8rem; }
.cost-range { font-family: var(--mono); color: var(--slate); font-size: 1rem; }
.cost-range b { color: var(--pine); font-weight: 600; }
@media (max-width: 720px) { .cost-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FORM
   ============================================================ */
.form-section { background: var(--paper); }
.form-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem,5vw,4.5rem); align-items: start; }
.form-intro h2 { margin-bottom: 1rem; }
.form-intro p { color: var(--slate); }
.form-intro .form-phone { font-family: var(--mono); font-size: 1.05rem; color: var(--pine); margin-top: 1.4rem; display: inline-block; text-decoration: none; border-bottom: 1px solid rgba(38,70,58,.3); }
.form-intro .form-phone:hover { border-color: var(--pine); }

.lead-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--sh-2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; display: flex; flex-direction: column; }
.field label { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); margin-bottom: .45rem; }
.field input, .field select, .field textarea {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .8rem .9rem;
  width: 100%;
  transition: border-color .25s var(--e-firm), box-shadow .25s var(--e-firm);
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--pine);
  box-shadow: 0 0 0 3px rgba(38,70,58,.12);
}
.field input:invalid:not(:placeholder-shown) { border-color: var(--brass); }
.lead-form .btn { width: 100%; justify-content: center; margin-top: .4rem; }
.form-hint { font-family: var(--mono); font-size: .78rem; color: var(--slate); margin: 1rem 0 0; text-align: center; }
.form-hint a { color: var(--pine); }
.form-confirm { text-align: center; padding: 1.5rem 0; }
.form-confirm .eyebrow { color: var(--pine); }
.form-confirm h3 { font-size: 1.4rem; }
@media (max-width: 800px) { .form-grid { grid-template-columns: 1fr; } .field-row { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-foot { background: var(--pine-deep); color: var(--on-dark-fg); padding-top: clamp(3.5rem, 6vw, 6rem); padding-bottom: 2.5rem; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.foot-brand { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.02em; color: var(--on-dark-fg); line-height: 1; }
.foot-brand span { color: var(--brass); }
.foot-tag { font-family: var(--mono); font-size: .8rem; color: var(--on-dark-dim); letter-spacing: .12em; text-transform: uppercase; margin-top: 1rem; }
.foot-col h4 { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin-bottom: 1rem; font-weight: 500; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.foot-col a, .foot-col address { color: var(--on-dark-fg); text-decoration: none; opacity: .85; font-style: normal; font-size: .92rem; line-height: 1.7; transition: opacity .2s, color .2s; }
.foot-col a:hover { opacity: 1; color: var(--brass); }
.foot-nap { font-family: var(--mono); font-size: .82rem; color: var(--on-dark-dim); line-height: 2; }
.foot-nap a { color: var(--on-dark-fg); text-decoration: none; }
.foot-line-sig { border-top: 1px solid var(--on-dark-line); margin: 0; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.8rem; font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; color: var(--on-dark-dim); }
.foot-bottom a { color: var(--on-dark-dim); text-decoration: none; }
.foot-bottom a:hover { color: var(--brass); }
@media (max-width: 780px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-top { grid-template-columns: 1fr; } }

/* ============================================================
   INNER PAGES
   ============================================================ */
.page-hero {
  background: var(--pine-deep);
  color: var(--on-dark-fg);
  position: relative;
  overflow: hidden;
  padding-top: clamp(7rem, 13vh, 10rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.page-hero .hero-media::after {
  background: linear-gradient(90deg, rgba(23,51,42,.94), rgba(23,51,42,.7) 60%, rgba(23,51,42,.5));
}
.page-hero-inner { position: relative; z-index: 1; max-width: 720px; }
.page-hero h1 { color: var(--on-dark-fg); margin-bottom: 1.1rem; }
.page-hero .lede { font-size: var(--fs-lede); color: var(--on-dark-fg); opacity: .9; max-width: 54ch; }
.crumbs { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; color: var(--on-dark-dim); margin-bottom: 1.4rem; }
.crumbs a { color: var(--on-dark-dim); text-decoration: none; }
.crumbs a:hover { color: var(--brass); }

.prose { max-width: var(--measure); }
.prose h2 { font-size: clamp(1.5rem,1.2rem+1.4vw,2.1rem); margin: 2.6rem 0 1rem; }
.prose h3 { margin: 2rem 0 .7rem; }
.prose p { color: var(--ink); margin-bottom: 1.1rem; }
.prose p.dim, .prose .dim { color: var(--slate); }
.prose ul { padding-left: 0; list-style: none; margin: 1rem 0 1.4rem; display: grid; gap: .7rem; }
.prose ul li { position: relative; padding-left: 1.4rem; color: var(--ink); }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--pine); }
.prose strong { font-weight: 600; }
.prose a:not(.btn) { color: var(--pine); text-decoration: underline; text-decoration-color: rgba(38,70,58,.3); text-underline-offset: 3px; }

.content-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 4rem); }
.content-2 { display: grid; grid-template-columns: 1.4fr .9fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
@media (max-width: 860px) { .content-2 { grid-template-columns: 1fr; } }
.aside-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--sh-1); position: sticky; top: 90px; }
.aside-card h3 { font-size: 1.15rem; margin-bottom: 1rem; }
.aside-card .kv { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--line); font-size: .9rem; }
.aside-card .kv:first-of-type { border-top: none; }
.aside-card .kv .k { color: var(--slate); font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; }
.aside-card .kv .v { font-weight: 600; text-align: right; }

/* inline media in prose */
.inline-media { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-2); margin: 1.8rem 0; }
.inline-media img { width: 100%; }
.inline-media figcaption { font-family: var(--mono); font-size: .74rem; color: var(--slate); padding: .7rem .9rem; background: var(--card); letter-spacing: .03em; }

/* specs table (case study) */
.specs-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.specs-table th, .specs-table td { text-align: left; padding: .85rem 0; border-top: 1px solid var(--line); font-size: .95rem; vertical-align: top; }
.specs-table th { font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); font-weight: 500; width: 34%; }
.specs-table td { color: var(--ink); font-weight: 500; }

/* pull quote */
.pullquote { border-left: 2px solid var(--brass); padding-left: 1.4rem; margin: 2.2rem 0; }
.pullquote p { font-family: var(--display); font-weight: 500; font-size: clamp(1.3rem,1.1rem+1vw,1.7rem); line-height: 1.3; font-style: italic; }
.pullquote cite { font-family: var(--mono); font-size: .78rem; color: var(--brass); font-style: normal; letter-spacing: .06em; }

/* FAQ */
.faq { display: grid; gap: 0; margin-top: 1.5rem; }
.faq details { border-top: 1px solid var(--line); padding: 1.1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-family: var(--display); font-weight: 600; font-size: 1.08rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--brass); font-size: 1.3rem; transition: transform .3s var(--e-firm); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--slate); margin: .9rem 0 0; max-width: 66ch; }

/* mini CTA band on inner pages */
.cta-band { background: var(--card); border-block: 1px solid var(--line); text-align: center; }
.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { color: var(--slate); max-width: 48ch; margin-inline: auto; margin-bottom: 1.6rem; }
.cta-band .level { margin-inline: auto; }

/* cards row for cost drivers */
.driver-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.5rem 0; }
.driver { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.driver h4 { font-family: var(--display); font-size: 1.02rem; margin-bottom: .35rem; }
.driver p { font-size: .88rem; color: var(--slate); margin: 0; }
@media (max-width: 640px) { .driver-grid { grid-template-columns: 1fr; } }

/* price range list */
.price-list { margin: 1.4rem 0; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .95rem 0; border-top: 1px solid var(--line); }
.price-row:last-child { border-bottom: 1px solid var(--line); }
.price-row .pr-name { font-weight: 600; }
.price-row .pr-val { font-family: var(--mono); color: var(--pine); font-weight: 500; white-space: nowrap; }

/* ============================================================
   MODAL (JS-injected estimate modal)
   ============================================================ */
.estimate-modal {
  position: fixed; inset: 0; z-index: 300;
  display: none;
  align-items: center; justify-content: center;
  padding: 1.2rem;
  background: rgba(23,51,42,.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .3s var(--e-firm);
}
body.modal-open { overflow: hidden; }
body.modal-open .estimate-modal { display: flex; opacity: 1; }
.em-panel {
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--sh-3);
  width: min(560px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  position: relative;
  transform: translateY(10px);
  transition: transform .3s var(--e-firm);
}
body.modal-open .em-panel { transform: none; }
.em-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card);
  color: var(--ink); cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.em-close:hover { background: var(--ink); color: var(--paper); }
.em-panel h2 { font-size: clamp(1.5rem,1.2rem+1vw,2rem); margin-bottom: .5rem; }
.em-panel .em-lede { color: var(--slate); font-size: .95rem; margin-bottom: 1.4rem; }
@media (prefers-reduced-motion: reduce) {
  .estimate-modal, .em-panel { transition: none; }
}

/* ============================================================
   REVEALS + reduced motion
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--e-firm), transform .7s var(--e-firm); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-i] { transition-delay: calc(var(--i, 0) * 80ms); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .svc-card, .proj-card, .svc-media img, .text-link .arw { transition: none !important; }
}

/* dev-static: force everything visible for headless capture */
body.dev-static .reveal { opacity: 1 !important; transform: none !important; }
body.dev-static .site-head { position: absolute; }
[data-dev-hidden] { display: none !important; }
body.dev-static [data-dev-solo] { margin-top: 0 !important; }

/* utilities */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.nowrap { white-space: nowrap; }
