/* ==========================================================================
   Ridgeline Marketing - Master Stylesheet
   Lane: Cartographic Editorial ("Surveyor's Field Guide")
   Palette: Blue Ridge (locked). Type: Playfair Display / Inter / Poppins.
   Single source of truth for tokens; see MASTER.md for the design system.
   ========================================================================== */

/* --- 1. Design tokens ---------------------------------------------------- */
:root {
  /* Blue Ridge palette (locked brand) */
  --spruce:        #1C3A34;   /* primary ink, dark sections, mark base */
  --spruce-deep:   #142B26;   /* footer / deepest background */
  --ridge-haze:    #94A7A1;   /* soft blue-grey, decorative / large text only */
  --summit-gold:   #E8A33D;   /* the one accent - waypoints, CTAs, summit dot */
  --fog:           #F5F4F0;   /* warm off-white alternating sections */
  --white:         #FFFFFF;

  /* Derived, accessibility-safe (a11y wins over "links are gold" - see BUILD-NOTES) */
  --ink:           #18302B;   /* body text on light (>=12:1 on white) */
  --ink-soft:      #46564F;   /* secondary text, AA on white/fog (>=7:1) */
  --haze-line:     #C9D2CE;   /* hairlines / contour strokes on light */
  --haze-line-dk:  #33534B;   /* hairlines on spruce */
  --gold-deep:     #8A5C10;   /* deep bronze - legible gold for small text/labels on light, AA >=5:1 on white & fog */
  --on-spruce:     #EAF0ED;   /* body text on spruce */
  --on-spruce-dim: #A9BBB4;   /* secondary text on spruce */

  /* Type */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-label:   "Poppins", system-ui, sans-serif;

  /* Modular scale (1.250 major third), clamped fluid */
  --step--1: clamp(0.83rem, 0.80rem + 0.15vw, 0.92rem);
  --step-0:  clamp(1rem, 0.96rem + 0.20vw, 1.125rem);
  --step-1:  clamp(1.25rem, 1.16rem + 0.45vw, 1.55rem);
  --step-2:  clamp(1.56rem, 1.40rem + 0.80vw, 2.15rem);
  --step-3:  clamp(1.95rem, 1.66rem + 1.45vw, 3.05rem);
  --step-4:  clamp(2.44rem, 1.95rem + 2.45vw, 4.20rem);
  --step-5:  clamp(3.05rem, 2.25rem + 4.00vw, 5.60rem);

  /* Space scale */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;  --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;    --sp-7: 3rem;     --sp-8: 4.5rem;
  --sp-9: 6.5rem;   --sp-10: 9rem;

  --measure: 68ch;
  --container: 76rem;     /* 1216px */
  --container-wide: 84rem;
  --radius: 4px;          /* restrained, field-guide precision (not pill-soft) */
  --radius-lg: 8px;
  --ring: 0 0 0 3px rgba(232,163,61,0.55);
  --shadow-sm: 0 1px 2px rgba(20,43,38,0.06), 0 2px 6px rgba(20,43,38,0.05);
  --shadow-md: 0 6px 18px rgba(20,43,38,0.08), 0 2px 6px rgba(20,43,38,0.05);
  --shadow-lg: 0 24px 60px -20px rgba(20,43,38,0.28);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 4.75rem;
}

/* --- 2. Reset / base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "cv05" 1;
  overflow-x: hidden;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; color: var(--spruce); letter-spacing: -0.01em; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
p { max-width: var(--measure); }

::selection { background: var(--summit-gold); color: var(--spruce); }

/* --- 3. Layout helpers --------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.15rem, 5vw, 2.5rem); }
.container--wide { max-width: var(--container-wide); }
.section { padding-block: clamp(3.5rem, 8vw, var(--sp-9)); position: relative; }
.section--fog { background: var(--fog); }
.section--spruce { background: var(--spruce); color: var(--on-spruce); }
.section--spruce h1, .section--spruce h2, .section--spruce h3 { color: var(--white); }
.section--tight { padding-block: clamp(2.5rem, 5vw, var(--sp-8)); }
.skip-link {
  position: absolute; left: 0.75rem; top: -3rem; z-index: 200;
  background: var(--spruce); color: var(--white); padding: 0.6rem 1rem;
  border-radius: var(--radius); transition: top 0.18s var(--ease); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 0.75rem; }

/* --- 4. Eyebrow / waypoint label (the recurring signature) --------------- */
.waypoint {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-label); font-weight: 600;
  font-size: var(--step--1); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft);
}
/* Eyebrow marker is a small gold ridgeline peak, NOT a circle - the gold dot is reserved for the hero summit only. */
.waypoint::before {
  content: ""; flex: none; width: 0; height: 0;
  border-left: 0.3rem solid transparent;
  border-right: 0.3rem solid transparent;
  border-bottom: 0.42rem solid var(--summit-gold);
}
.section--spruce .waypoint { color: var(--on-spruce-dim); }
.waypoint--coord { letter-spacing: 0.24em; }

/* --- 5. Ridgeline divider (the mark, as a section seam) ------------------ */
.ridge-divider { display: block; width: 100%; height: 30px; color: var(--haze-line); }
.ridge-divider path { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.ridge-divider .summit { fill: var(--summit-gold); stroke: none; }
.section--spruce + .section .ridge-divider,
.ridge-divider--dk { color: var(--haze-line-dk); }

/* Ridge-seam: the mark sitting on a hairline - recurring section signature */
.ridgeseam { display: flex; align-items: center; gap: clamp(0.75rem, 3vw, 1.5rem); color: var(--haze-line); }
.ridgeseam::before, .ridgeseam::after { content: ""; height: 1px; flex: 1; background: currentColor; }
.ridgeseam svg { flex: none; width: 44px; height: 34px; overflow: visible; }
.ridgeseam svg path { fill: none; stroke: var(--ridge-haze); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.ridgeseam svg circle { display: none; } /* gold summit circle reserved for the hero only; seam keeps just the ridgeline */
.section--spruce .ridgeseam { color: var(--haze-line-dk); }
.section--spruce .ridgeseam svg path { stroke: var(--on-spruce-dim); }

/* Contour-ring backdrop (topographic texture) */
.contours { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.contours svg { position: absolute; opacity: 0.5; color: var(--haze-line); }
.section--spruce .contours svg { color: var(--haze-line-dk); opacity: 0.55; }
.section > .container { position: relative; z-index: 1; }

/* --- 6. Buttons ---------------------------------------------------------- */
.btn {
  --_bg: var(--summit-gold); --_fg: var(--spruce); --_bd: var(--summit-gold);
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-label); font-weight: 600; font-size: var(--step-0);
  line-height: 1; letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  padding: 0.95rem 1.6rem; border-radius: var(--radius);
  background: var(--_bg); color: var(--_fg); border: 1.5px solid var(--_bd);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform 0.18s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn--ghost {
  --_bg: transparent; --_fg: var(--spruce); --_bd: var(--haze-line);
  box-shadow: none;
}
.btn--ghost:hover { --_bd: var(--spruce); background: rgba(28,58,52,0.04); }
.section--spruce .btn--ghost,
.hero .btn--ghost { --_fg: var(--white); --_bd: var(--haze-line-dk); }
.section--spruce .btn--ghost:hover,
.hero .btn--ghost:hover { --_bd: var(--on-spruce-dim); background: rgba(255,255,255,0.06); }
.btn--lg { padding: 1.1rem 2rem; font-size: var(--step-1); }

/* Text link with gold underline marker (gold-as-text fails AA, so link is ink) */
.tlink {
  color: var(--spruce); text-decoration: none; font-weight: 600;
  background-image: linear-gradient(var(--summit-gold), var(--summit-gold));
  background-size: 100% 2px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size 0.2s var(--ease), color 0.2s var(--ease);
  padding-bottom: 1px;
}
.tlink:hover { background-size: 100% 100%; color: var(--white); border-radius: 2px; }
.section--spruce .tlink { color: var(--white); }
.section--spruce .tlink:hover { color: var(--spruce); }

/* --- 7. Header / nav ----------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.86); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--haze-line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: var(--sp-5); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 2.1rem; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.1rem); }
.nav__list { display: flex; align-items: center; gap: clamp(0.9rem, 2.2vw, 1.9rem); list-style: none; padding: 0; }
.nav__link {
  font-family: var(--font-label); font-weight: 500; font-size: var(--step--1);
  letter-spacing: 0.04em; text-decoration: none; color: var(--ink); position: relative;
  padding: 0.4rem 0.1rem; transition: color 0.16s var(--ease);
}
.nav__link:hover { color: var(--spruce); }
.nav__link[aria-current="page"] { color: var(--spruce); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: -0.2rem; transform: translateX(-50%);
  width: 1rem; height: 2px; border-radius: 2px; background: var(--summit-gold);
}
.nav__cta { margin-left: 0.25rem; }
.nav__toggle {
  display: none; background: none; border: 1.5px solid var(--haze-line); border-radius: var(--radius);
  width: 2.85rem; height: 2.85rem; cursor: pointer; align-items: center; justify-content: center;
}
.nav__toggle svg { width: 1.35rem; height: 1.35rem; color: var(--spruce); }

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--white); border-bottom: 1px solid var(--haze-line);
    padding: var(--sp-4) clamp(1.15rem, 5vw, 2.5rem) var(--sp-6);
    transform: translateY(-130%); transition: transform 0.28s var(--ease); box-shadow: var(--shadow-lg);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav[data-open="true"] { transform: translateY(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  /* display:block so each link is a full-width, non-overlapping tap target. As inline
     (desktop default), the 0.95rem vertical padding bled over neighbors and the 54px
     hit-boxes overlapped ~27px in the column - tapping a link could hit the next one. */
  .nav__link { display: block; padding: 0.95rem 0.25rem; border-bottom: 1px solid var(--haze-line); font-size: var(--step-0); }
  .nav__link[aria-current="page"]::after { left: auto; right: 0.25rem; bottom: 50%; transform: translateY(50%); }
  .nav__cta { margin: var(--sp-4) 0 0; }
  .nav__cta .btn { width: 100%; justify-content: center; }
}

/* --- 8. Hero (home) ------------------------------------------------------ */
.hero { position: relative; background: var(--spruce); color: var(--on-spruce); overflow: hidden; isolation: isolate; }
.hero__art { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.hero__art svg { width: 100%; height: 100%; object-fit: cover; }
.hero__inner {
  position: relative; z-index: 2;
  display: grid; gap: var(--sp-6); align-content: center;
  min-height: clamp(34rem, 82vh, 46rem);
  padding-block: clamp(4rem, 10vh, 7rem); max-width: 44rem;
}
.hero h1 { color: var(--white); text-wrap: balance; }
.hero h1 .glow { color: var(--summit-gold); }
.hero__lede { font-size: var(--step-1); color: var(--on-spruce); max-width: 40ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); margin-top: var(--sp-3); }
.hero__meta .waypoint { color: var(--on-spruce-dim); }
.hero__scrim { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(20,43,38,0.92) 0%, rgba(20,43,38,0.70) 42%, rgba(20,43,38,0.20) 100%); }
@media (max-width: 760px) {
  .hero__scrim { background: linear-gradient(180deg, rgba(20,43,38,0.78) 0%, rgba(20,43,38,0.66) 60%, rgba(20,43,38,0.80) 100%); }
}
.hero .waypoint { color: var(--on-spruce-dim); }

/* Photo hero (real Blue Ridge photography + silhouette baseline + gold summit dot) */
.hero--photo { --range-h: clamp(108px, 15vw, 196px); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 38%; z-index: 0; }
.hero--photo .hero__scrim {
  background:
    radial-gradient(120% 90% at 50% 42%, rgba(16,32,28,0.32) 0%, rgba(16,32,28,0.58) 70%, rgba(16,32,28,0.72) 100%),
    linear-gradient(180deg, rgba(20,43,38,0.62) 0%, rgba(16,32,28,0.42) 38%, rgba(16,32,28,0.40) 64%, rgba(16,32,28,0.16) 100%);
}
.hero--photo .hero__inner {
  max-width: 60rem; margin-inline: auto; text-align: center; justify-items: center;
  padding-bottom: calc(var(--range-h) + 1.5rem);
}
.hero--photo .hero__lede { margin-inline: auto; }
.hero--photo .hero__actions { justify-content: center; }
.hero--photo .hero__meta { justify-content: center; }
.hero--photo h1 { text-shadow: 0 2px 22px rgba(12,24,20,0.42); }
.hero--photo .hero__lede { text-shadow: 0 1px 14px rgba(12,24,20,0.5); }
.hero--photo .hero__inner .waypoint { color: #F2D9A6; }

.hero__range { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: var(--range-h); z-index: 2; display: block; pointer-events: none; }
.hero__range-fill { fill: var(--white); }
.hero__range-line { fill: none; stroke: #3F6157; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
/* gold summit dot sits on the silhouette crest (x 35%, y 54/200 of the band) */
.hero__summit {
  position: absolute; left: 35%; bottom: calc(var(--range-h) * 0.73); z-index: 3;
  width: 16px; height: 16px; border-radius: 50%; background: var(--summit-gold);
  transform: translate(-50%, 50%); pointer-events: none;
  box-shadow: 0 0 0 5px rgba(232,163,61,0.22), 0 0 22px 6px rgba(232,163,61,0.55), 0 0 0 1.5px rgba(255,255,255,0.7) inset;
}
.hero__summit::after {
  content: ""; position: absolute; inset: -16px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,163,61,0.45) 0%, rgba(232,163,61,0) 70%);
}

/* --- 9. Generic section header ------------------------------------------ */
.s-head { max-width: 52rem; display: grid; gap: var(--sp-4); margin-bottom: var(--sp-7); }
.s-head h2::after { content: ""; display: block; width: 2.75rem; height: 3px; border-radius: 2px; background: var(--summit-gold); margin-top: 1.1rem; }
.s-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.s-head--center h2::after { margin-inline: auto; }
.s-head p { color: var(--ink-soft); font-size: var(--step-1); }
.section--spruce .s-head p { color: var(--on-spruce); }
.lede { font-size: var(--step-1); color: var(--ink-soft); }

/* --- 10. Cards & grids --------------------------------------------------- */
.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--haze-line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.1rem); display: grid; gap: var(--sp-3); align-content: start;
  position: relative; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--ridge-haze); }
.card h3 { font-size: var(--step-1); }
.card p { color: var(--ink-soft); }
.card__idx { font-family: var(--font-label); font-weight: 600; font-size: var(--step--1); color: var(--gold-deep); letter-spacing: 0.12em; }

/* --- 11. Footer ---------------------------------------------------------- */
.site-footer { background: var(--spruce-deep); color: var(--on-spruce-dim); padding-block: var(--sp-8) var(--sp-6); }
.site-footer a { color: var(--on-spruce); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
/* Service-area cross-links (location pages) */
.arealinks { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); margin: 0; font-family: var(--font-label); font-weight: 600; }
.arealinks a { color: var(--gold-deep); }

/* Footer "Areas we serve" - wrapped row below the 4-col grid (no grid change, no overflow) */
.footer__areas { margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--haze-line-dk); }
.footer__areas h4 { font-family: var(--font-label); font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); margin-bottom: var(--sp-3); font-weight: 600; }
.footer__areas ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); }
.footer__areas li { font-size: var(--step--1); }
.footer__areas a { text-decoration: underline; text-underline-offset: 3px; }

.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--sp-6); }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6) var(--sp-5); } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand img { height: 2rem; margin-bottom: var(--sp-4); }
.footer__brand p { color: var(--on-spruce-dim); font-size: var(--step--1); max-width: 30ch; }
.footer__col h4 { font-family: var(--font-label); font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); margin-bottom: var(--sp-4); font-weight: 600; }
.footer__col ul { list-style: none; padding: 0; display: grid; gap: var(--sp-3); }
.footer__col li { font-size: var(--step--1); }
.footer__slogan { font-family: var(--font-display); font-size: var(--step-1); color: var(--white); font-style: italic; }
.footer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid var(--haze-line-dk); font-size: var(--step--1); }
.footer__bar a { text-decoration: underline; text-underline-offset: 3px; }

/* --- 12. Utilities ------------------------------------------------------- */
.u-center { text-align: center; }
.u-mt-6 { margin-top: var(--sp-6); }
.u-flow > * + * { margin-top: var(--sp-4); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.pill {
  display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--font-label);
  font-size: var(--step--1); font-weight: 600; letter-spacing: 0.05em;
  padding: 0.35rem 0.8rem; border-radius: 999px; border: 1px solid var(--haze-line);
  color: var(--ink-soft); background: var(--white);
}
.pill--gold { border-color: rgba(232,163,61,0.4); color: var(--gold-deep); background: rgba(232,163,61,0.08); }

/* .reveal is a grouping hook only - decorative scroll motion is intentionally
   NOT applied (animations are opt-in per project guardrails). Content is always
   visible; hover/focus transitions below are standard interaction states. */
.reveal { opacity: 1; transform: none; }

/* ==========================================================================
   PAGE-SPECIFIC ARCHETYPES
   ========================================================================== */

/* --- Services overview grid (home + reusable) --------------------------- */
.svc-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--sp-5); }
.svc {
  display: grid; gap: var(--sp-3); align-content: start; text-decoration: none; color: inherit;
  background: var(--white); border: 1px solid var(--haze-line); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 1.9rem);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--ridge-haze); }
.svc__ico { width: 2.5rem; height: 2.5rem; color: var(--gold-deep); }
.svc__ico svg { width: 100%; height: 100%; }
/* Editorial serif numerals on service cards (replaces generic line-icons - AI-tell killer) */
.svc__n {
  font-family: var(--font-display); font-weight: 600; line-height: 1;
  font-size: var(--step-4); color: var(--summit-gold);
  letter-spacing: -0.01em; display: block;
}
.svc__n::after { content: ""; display: block; width: 1.6rem; height: 2px; background: var(--spruce); margin-top: var(--sp-3); opacity: 0.25; }
.svc h3 { font-size: var(--step-1); }
.svc p { color: var(--ink-soft); font-size: var(--step-0); }
.svc--cta { background: var(--spruce); border-color: var(--spruce); color: var(--on-spruce); }
.svc--cta h3 { color: var(--white); }
.svc--cta p { color: var(--on-spruce); }
.svc--cta .svc__ico { color: var(--summit-gold); }
.svc--cta:hover { border-color: var(--summit-gold); }

/* --- A. Home: two-stage ascent ------------------------------------------ */
.ascent { display: grid; gap: var(--sp-5); grid-template-columns: 1fr 1fr; align-items: stretch; }
@media (max-width: 820px) { .ascent { grid-template-columns: 1fr; } }
.stage {
  position: relative; background: var(--white); border: 1px solid var(--haze-line);
  border-radius: var(--radius-lg); padding: clamp(1.6rem, 3.5vw, 2.6rem);
  display: grid; gap: var(--sp-4); align-content: start; overflow: hidden;
}
.stage--retainer { background: var(--spruce); color: var(--on-spruce); border-color: var(--spruce); }
.stage--retainer h3 { color: var(--white); }
.stage--retainer p { color: var(--on-spruce); }
.stage__tag { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.stage__elev { font-family: var(--font-label); font-weight: 700; font-size: var(--step-2); color: var(--haze-line); line-height: 1; }
.stage--retainer .stage__elev { color: var(--haze-line-dk); }
.stage h3 { font-size: var(--step-2); }
.stage__list { list-style: none; padding: 0; display: grid; gap: var(--sp-3); margin-top: var(--sp-2); }
.stage__list li { position: relative; padding-left: 1.5rem; color: var(--ink-soft); }
.stage--retainer .stage__list li { color: var(--on-spruce); }
.stage__list li::before {
  content: ""; position: absolute; left: 0; top: 0.85em; width: 0.7rem; height: 2px;
  border-radius: 1px; background: var(--summit-gold);
}
.stage__note { font-size: var(--step--1); color: var(--ink-soft); }
.stage--retainer .stage__note { color: var(--on-spruce-dim); }

/* Differentiators contour band */
.diffs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.diffs--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .diffs, .diffs--3 { grid-template-columns: 1fr 1fr; gap: var(--sp-6) var(--sp-5); } }
@media (max-width: 460px) { .diffs { grid-template-columns: 1fr; } }
.diff { display: grid; gap: var(--sp-2); }
.diff__ico { width: 2.6rem; height: 2.6rem; color: var(--summit-gold); }
.diff h3 { font-size: var(--step-1); color: var(--white); }
.diff p { color: var(--on-spruce); font-size: var(--step-0); }

/* Big CTA band */
.cta-band { text-align: center; display: grid; gap: var(--sp-5); justify-items: center; }
.cta-band h2 { max-width: 18ch; }
.cta-band p { color: var(--ink-soft); font-size: var(--step-1); margin-inline: auto; }
.section--spruce .cta-band p { color: var(--on-spruce); }

/* --- B. Services: comparison matrix ------------------------------------- */
.model-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); margin-bottom: var(--sp-8); }
@media (max-width: 720px) { .model-cols { grid-template-columns: 1fr; } }
.model-col { border: 1px solid var(--haze-line); border-radius: var(--radius-lg); padding: clamp(1.5rem,3vw,2.2rem); background: var(--white); display: grid; gap: var(--sp-3); align-content: start; }
.model-col--accent { border-color: var(--spruce); box-shadow: var(--shadow-md); }
.model-col__kicker { font-family: var(--font-label); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: var(--step--1); color: var(--gold-deep); }
.model-col h3 { font-size: var(--step-2); }
.model-col .stage__list { margin-top: var(--sp-2); }

.matrix { width: 100%; border-collapse: collapse; font-size: var(--step-0); }
.matrix caption { text-align: left; color: var(--ink-soft); margin-bottom: var(--sp-4); font-size: var(--step--1); }
.matrix th, .matrix td { text-align: left; padding: 1.05rem 1.1rem; border-bottom: 1px solid var(--haze-line); vertical-align: top; }
.matrix thead th { font-family: var(--font-label); font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; border-bottom: 1.5px solid var(--spruce); }
.matrix thead th:first-child { width: 30%; }
.matrix tbody th { font-family: var(--font-display); font-weight: 600; color: var(--spruce); font-size: var(--step-1); width: 30%; }
.matrix .cell-yes { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--spruce); font-weight: 600; }
.matrix .cell-yes svg { width: 1.1rem; height: 1.1rem; color: var(--gold-deep); flex: none; }
.matrix .cell-no { color: var(--ink-soft); font-size: var(--step--1); }
.matrix tbody tr:hover { background: var(--fog); }
.matrix .row-desc { color: var(--ink-soft); font-size: var(--step--1); margin-top: 0.3rem; }
@media (max-width: 720px) {
  .matrix, .matrix thead, .matrix tbody, .matrix tr, .matrix th, .matrix td { display: block; }
  .matrix thead { display: none; }
  .matrix tbody th { width: auto; border-bottom: none; padding-bottom: 0.3rem; }
  .matrix tbody tr { border: 1px solid var(--haze-line); border-radius: var(--radius-lg); margin-bottom: var(--sp-4); padding: var(--sp-3) var(--sp-4); }
  .matrix td { border-bottom: 1px dashed var(--haze-line); padding-inline: 0; }
  .matrix td:last-child { border-bottom: none; }
  .matrix td::before { content: attr(data-col); display: block; font-family: var(--font-label); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.2rem; }
}

/* Capability detail rows (alternating field-guide entries) */
.cap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding-block: var(--sp-7); border-top: 1px solid var(--haze-line); }
.cap:nth-child(even) .cap__media { order: 2; }
@media (max-width: 760px) { .cap { grid-template-columns: 1fr; gap: var(--sp-5); } .cap:nth-child(even) .cap__media { order: 0; } }
.cap h3[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }
.cap__n { font-family: var(--font-label); font-weight: 700; font-size: var(--step-3); color: var(--haze-line); line-height: 1; }
.cap h3 { font-size: var(--step-2); margin-top: var(--sp-2); }
.cap p { color: var(--ink-soft); margin-top: var(--sp-3); }
.cap__media { background: var(--fog); border: 1px solid var(--haze-line); border-radius: var(--radius-lg); aspect-ratio: 4/3; display: grid; place-items: center; overflow: hidden; }
.cap__media svg { width: 76%; height: 76%; }

/* --- C. Work: field map case study -------------------------------------- */
.fieldmap { position: relative; background: var(--spruce); border-radius: var(--radius-lg); overflow: hidden; color: var(--on-spruce); }
.fieldmap__grid { position: absolute; inset: 0; opacity: 0.5; color: var(--haze-line-dk); }
.fieldmap__inner { position: relative; z-index: 2; padding: clamp(1.8rem, 5vw, 3.5rem); display: grid; gap: var(--sp-5); }
.casestudy { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem,4vw,3rem); align-items: center; }
@media (max-width: 820px) { .casestudy { grid-template-columns: 1fr; } }
.casestudy h3 { color: var(--white); font-size: var(--step-3); }
.casestudy__body p { color: var(--on-spruce); }
.locked-banner {
  display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--font-label);
  font-weight: 600; font-size: var(--step--1); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--summit-gold); border: 1px solid var(--haze-line-dk); border-radius: 999px;
  padding: 0.4rem 0.9rem; background: rgba(0,0,0,0.18);
}
.locked-banner svg { width: 1rem; height: 1rem; }
.spec-list { list-style: none; padding: 0; display: grid; gap: var(--sp-3); }
.spec-list li { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; align-items: baseline; }
.spec-list dt { font-family: var(--font-label); font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-spruce-dim); }
.spec-grid { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem 1.2rem; }
.spec-grid dt { font-family: var(--font-label); font-size: var(--step--1); letter-spacing: 0.07em; text-transform: uppercase; color: var(--on-spruce-dim); white-space: nowrap; }
.spec-grid dd { color: var(--on-spruce); }
.placeholder-note { font-size: var(--step--1); color: var(--on-spruce-dim); background: rgba(0,0,0,0.18); border: 1px solid var(--haze-line-dk); border-radius: var(--radius); padding: var(--sp-4); }

.empty-slots { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-5); }
@media (max-width: 760px) { .empty-slots { grid-template-columns: 1fr; } }
.slot {
  border: 1.5px dashed var(--haze-line); border-radius: var(--radius-lg); padding: clamp(1.5rem,3vw,2.2rem);
  display: grid; gap: var(--sp-3); align-content: start; background: var(--white); min-height: 12rem;
}
.slot__pin { width: 1.6rem; height: 1.6rem; color: var(--ridge-haze); }
.slot h3 { font-size: var(--step-1); color: var(--ink-soft); }
.slot p { color: var(--ink-soft); font-size: var(--step--1); }

/* --- D. About: editorial portrait --------------------------------------- */
.editorial { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .editorial { grid-template-columns: 1fr; gap: var(--sp-6); } }
.editorial__portrait { position: relative; }
.editorial__portrait img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.editorial__portrait figcaption { font-family: var(--font-label); font-size: var(--step--1); color: var(--ink-soft); letter-spacing: 0.04em; margin-top: var(--sp-3); display: flex; align-items: center; gap: 0.5rem; }
.editorial__portrait figcaption::before { content: ""; width: 1.1rem; height: 2px; border-radius: 1px; background: var(--summit-gold); }
.editorial__body { max-width: 60ch; }
.editorial__body > * + * { margin-top: var(--sp-5); }
.editorial__body p { font-size: var(--step-1); color: var(--ink); max-width: none; }
.dropcap::first-letter { font-family: var(--font-display); font-size: 3.4em; line-height: 0.78; float: left; padding: 0.05em 0.12em 0 0; color: var(--spruce); font-weight: 600; }
.pullquote { font-family: var(--font-display); font-size: var(--step-3); line-height: 1.18; color: var(--spruce); font-style: italic; border-top: 1px solid var(--haze-line); border-bottom: 1px solid var(--haze-line); padding-block: var(--sp-5); max-width: none; }
.pullquote .glow { color: var(--gold-deep); font-style: normal; }

.locator { display: grid; gap: var(--sp-3); }
.locator__row { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: baseline; padding-block: var(--sp-3); border-bottom: 1px solid var(--haze-line); }
.locator__row dt { font-family: var(--font-label); font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.locator__row dd { color: var(--spruce); font-weight: 500; }

.values { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-5); }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }
.value { display: grid; gap: var(--sp-2); padding-top: var(--sp-4); border-top: 2px solid var(--summit-gold); }
.value h3 { font-size: var(--step-1); }
.value p { color: var(--ink-soft); }

/* How it works: numbered process (services) */
.howto { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-5); }
@media (max-width: 880px) { .howto { grid-template-columns: 1fr 1fr; gap: var(--sp-6) var(--sp-5); } }
@media (max-width: 460px) { .howto { grid-template-columns: 1fr; } }
.howto__step { display: grid; gap: var(--sp-2); align-content: start; padding-top: var(--sp-4); border-top: 2px solid var(--summit-gold); }
.howto__n { font-family: var(--font-label); font-weight: 700; font-size: var(--step-3); color: var(--haze-line); line-height: 1; }
.howto__step h3 { font-size: var(--step-1); }
.howto__step p { color: var(--ink-soft); }
.howto__note { margin-top: var(--sp-6); color: var(--ink-soft); font-size: var(--step--1); max-width: 46rem; }

/* --- E. Contact: utility split ------------------------------------------ */
.contact-split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .contact-split { grid-template-columns: 1fr; gap: var(--sp-7); } }
/* The `hidden` attribute must always win over component display rules. .form and
   .form__success set display:grid (specificity 0,1,0), which otherwise ties/overrides
   the low-specificity UA [hidden] rule and leaves "hidden" elements rendered. Without
   this, the contact success notice showed on every load and never cleared. */
[hidden] { display: none !important; }

.form { display: grid; gap: var(--sp-5); }
.field { display: grid; gap: var(--sp-2); }
.field label { font-family: var(--font-label); font-weight: 600; font-size: var(--step--1); letter-spacing: 0.04em; color: var(--spruce); }
.field .req { color: var(--gold-deep); }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.85rem 1rem; border: 1.5px solid var(--haze-line); border-radius: var(--radius);
  background: var(--white); color: var(--ink); transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--spruce); box-shadow: var(--ring); outline: none; }
.field textarea { min-height: 8rem; resize: vertical; }
.field__hint { font-size: var(--step--1); color: var(--ink-soft); }
.field--error input, .field--error textarea { border-color: #B3261E; }
.field__err { color: #B3261E; font-size: var(--step--1); font-weight: 600; min-height: 0; }
.honeypot { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: var(--step--1); color: var(--ink-soft); }
.form__consent input { width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; flex: none; }
.form__status { font-weight: 600; }
.form__status[data-state="ok"] { color: var(--spruce); }
.form__status[data-state="err"] { color: #B3261E; }

.form__success {
  display: grid; gap: var(--sp-4); justify-items: start; align-content: start;
  background: var(--fog); border: 1px solid var(--haze-line); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.6rem);
}
.form__success:focus { outline: none; box-shadow: var(--ring); }
.form__success-mark {
  display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--summit-gold); color: var(--spruce);
  box-shadow: 0 0 0 6px rgba(232,163,61,0.18);
}
.form__success-mark svg { width: 1.5rem; height: 1.5rem; }
.form__success h2 { font-size: var(--step-2); }
.form__success p { color: var(--ink-soft); }

.contact-aside { display: grid; gap: var(--sp-5); align-content: start; }
.contact-card { border: 1px solid var(--haze-line); border-radius: var(--radius-lg); padding: clamp(1.4rem,3vw,2rem); background: var(--fog); display: grid; gap: var(--sp-4); }
.contact-card h3 { font-size: var(--step-1); }
.contact-line { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; align-items: start; }
.contact-line svg { width: 1.3rem; height: 1.3rem; color: var(--gold-deep); margin-top: 0.15rem; }
.contact-line dt { font-family: var(--font-label); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.contact-line dd a { color: var(--spruce); font-weight: 600; }
.youarehere { position: relative; background: var(--spruce); border-radius: var(--radius-lg); overflow: hidden; min-height: 12rem; display: grid; }
.youarehere svg.map { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--haze-line-dk); }
.youarehere__label { position: relative; z-index: 2; align-self: end; padding: var(--sp-5); }
.youarehere__label .waypoint { color: var(--summit-gold); }
.youarehere__label p { color: var(--on-spruce); font-size: var(--step--1); margin-top: var(--sp-2); }

/* --- Mini page hero (interior pages) ------------------------------------ */
.page-hero { background: var(--fog); border-bottom: 1px solid var(--haze-line); position: relative; overflow: hidden; }
.page-hero__inner { display: grid; gap: var(--sp-5); max-width: 56rem; padding-block: clamp(3rem, 8vw, var(--sp-9)); position: relative; z-index: 1; }
.page-hero h1 { font-size: var(--step-4); }
.page-hero p { font-size: var(--step-1); color: var(--ink-soft); max-width: 50ch; }
.page-hero .crumb { font-family: var(--font-label); font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.page-hero .crumb a { color: var(--ink-soft); text-decoration: none; }
.page-hero .crumb a:hover { color: var(--spruce); }

/* Print */
@media print {
  .site-header, .site-footer, .nav__toggle, .hero__actions, .contours { display: none !important; }
  body { color: #000; background: #fff; }
}
