/* =========================================================================
   BERTOG LANDSCAPE — DESIGN SYSTEM
   ========================================================================= */

:root {
  /* Brand color tokens */
  --green-900: #15281f;
  --green-800: #1d3a30;
  --green-700: #244840;
  --green-600: #2d544a;
  /* DESIGN FEEDBACK (June 2026): gold-500 normalized to designer spec
     #C89E69 (was #c89e6a). One-character cascade. */
  --gold-500: #c89e69;
  --gold-400: #d4a574;
  --gold-300: #dcb586;
  --cream-100: #f7f5f0;
  --cream-200: #f2efe8;
  --cream-300: #e8e2d5;
  --ink: #1a1a1a;
  --ink-soft: #2c2c2c;
  --text-on-dark: #e8e2d5;
  --text-on-dark-muted: #b8b0a0;
  --rule-on-dark: rgba(232, 226, 213, 0.18);
  --rule-on-light: rgba(26, 26, 26, 0.12);

  /* Typography */
  --font-serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --font-sans: "Outfit", "Helvetica Neue", Helvetica, sans-serif;

  /* DESIGN FEEDBACK (June 2026) — locked body sizes: exactly two scales.
     P1 = primary body (19px), P2 = secondary/supporting (16px). */
  --p1: 19px;
  --p2: 16px;

  /* Layout */
  --max-w: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  /* DESIGN FEEDBACK (June 2026): flatten rhythm — was clamp(64,8vw,112).
     Cap at 100px so every section breathes equally. */
  --section-y: clamp(64px, 10vw, 100px);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* P1 / P2 utility classes (June 2026 design feedback). */
.p1 { font-size: var(--p1); line-height: 1.7; }
.p2 { font-size: var(--p2); line-height: 1.65; }

/* Reset / base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body {
  /* Fallback for iOS Safari <16 which doesn't support `clip` and falls
     back to `visible` — allowing horizontal scroll if any element renders
     wider than viewport. `hidden` is the universally-supported fallback. */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--p1); /* was 18.75px — locked to P1 per design feedback #2 */
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* Type */
.serif { font-family: var(--font-serif); font-weight: 500; }
.italic { font-style: italic; font-weight: 500; }
.eyebrow {
  font-family: var(--font-sans);
  font-size: 13.75px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 500; margin: 0; line-height: 1.15; letter-spacing: -0.005em; }
h1 { font-size: clamp(50px, 5vw, 80px); }
h2 { font-size: clamp(37.5px, 3.4vw, 55px); }
h3 { font-size: clamp(27.5px, 2vw, 35px); }
p  { margin: 0 0 1em; }
p.lede { font-size: var(--p1); line-height: 1.65; } /* was 20px — locked to P1 per design feedback #2 */

/* Layout helpers */
.wrap { max-width: var(--max-w); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: var(--section-y) 0; }
/* Tight-top modifier: when the previous section shares the same background
   (cream-into-white or white-into-white), the full 100px feels like a void.
   Use --tight-top to drop padding-top to ~40-56px so the rhythm reads. */
.section--tight-top { padding-top: clamp(40px, 5vw, 56px); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: var(--font-sans);
  font-size: 13.75px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--gold-500);
  color: #fff;
  transition: background 220ms var(--ease-out), transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
  position: relative;
  overflow: hidden;
}
.btn:hover { background: var(--gold-400); transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgba(200,158,106,0.5); }
.btn--ghost { background: transparent; color: var(--text-on-dark); border: 1px solid var(--rule-on-dark); }
.btn--ghost:hover { background: rgba(255,255,255,0.06); }

/* Design gap #18: on dark green section backgrounds (intro-standalone,
   section--dark, banner, process, cta-banner), ensure the standard gold
   .btn hover keeps clear white text with elevated contrast against the
   lighter gold-400 tone. Also raise the hover to gold-300 so it reads as
   a clear brightness change on green, not gold-on-gold. */
.intro-standalone .btn:hover,
.section--dark .btn:hover,
.process .btn:hover,
.banner .btn:hover,
.cta-banner .btn:hover {
  background: var(--gold-300);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(220,181,134,0.55);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--rule-on-light);
  transition: box-shadow 220ms var(--ease-out);
}
.site-header.is-scrolled { box-shadow: 0 4px 24px -16px rgba(0,0,0,0.2); }
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand svg, .brand img {
  display: block;
  /* DESIGN FEEDBACK (June 2026, follow-up): logo still reading too small
     relative to nav. Bump 80 -> 132 on desktop so it commands the header.
     Tablet floor 96, phones 72.
     "Logo overlaps into the next section" — bumped overlap from -16 -> -56
     so the bottom of the logo sits clearly past the white header band into
     the hero below. position:relative + z-index keeps it on top. */
  height: 132px;
  width: auto;
  margin-bottom: -56px;
  position: relative;
  z-index: 2;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  margin-left: 12px;
  flex-wrap: nowrap;
}
.nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
  transition: color 200ms var(--ease-out);
  white-space: nowrap;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 280ms var(--ease-out);
}
.nav-links a:hover { color: var(--green-800); }
.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); }
.nav .btn { padding: 10px 18px; font-size: 11.5px; white-space: nowrap; }
.nav-toggle { display: none; }

@media (max-width: 1024px) {
  .nav { flex-wrap: wrap; }
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    padding: 10px;
    align-items: center;
    justify-content: center;
  }
  .nav-toggle span {
    display: block; width: 22px; height: 1.5px; background: var(--ink); position: relative;
  }
  .nav-toggle span::before, .nav-toggle span::after {
    content: ""; position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--ink);
  }
  .nav-toggle span::before { top: -7px; }
  .nav-toggle span::after { top: 7px; }
  .nav-links {
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 320ms var(--ease-out);
  }
  .nav.is-open .nav-links {
    /* FIX (June 2026): was max-height 600px + overflow:hidden — clipped the
       expanded menu (14 DB sub-pages, etc.) invisible past 600px. Now scrolls
       within the drawer; overscroll-behavior keeps the page underneath locked. */
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0 16px;
  }
  /* Lock the page behind when mobile nav is open — prevents background
     scroll-through and double-scroll confusion. */
  body.nav-open { overflow: hidden; overscroll-behavior: contain; }
  .nav-links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--rule-on-light); }
  .nav .btn { display: none; }
}

/* =========================================================================
   HERO
   ========================================================================= */

.hero {
  position: relative;
  /* Same DESIGNER FINAL SPEC v2 as .page-hero: pure aspect-ratio + mobile
     floor. No caps so box stays 2.4:1 at all widths. */
  aspect-ratio: 12 / 5;
  min-height: 540px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  /* DESIGN FEEDBACK (June 2026): bump overlay opacity for legibility.
     Was .10/.35/.55 — text was hard to read on bright photos. Now
     .35/.55/.70 plus a flat .45 floor (rgba(0,0,0,0.45) per designer). */
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(21,40,31,0.55) 60%, rgba(21,40,31,0.78) 100%),
              var(--photo, linear-gradient(135deg, #2a4a3a 0%, #1d3a30 60%, #15281f 100%));
  background-size: cover;
  background-position: center;
  /* Removed transform: scale(1.05) — magnified the crop beyond cover().
     With aspect-ratio matching the image, no scale needed. */
  transform: none;
}
/* .hero.is-loaded scale removed (no longer needed — aspect-ratio matches image) */
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px var(--gutter);
  width: 100%;
  display: grid;
  /* DESIGN FEEDBACK (June 2026): widen headline column so h1 stays
     <=3 lines. Was 1.1fr/1fr, now 1.4fr/1fr. */
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: end;
}
.hero__eyebrow {
  color: var(--gold-400);
  display: block;
  margin-bottom: 18px;
}
.hero__title {
  /* DESIGN FEEDBACK (June 2026): headline was running 4 lines on desktop;
     designer requires max 3. Reduce cap (80 -> 64), tighten line-height
     (1.08 -> 1.04). Container max-width bumped on .hero__inner below so
     each line carries more characters. */
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1.04;
  margin-bottom: 8px;
  overflow-wrap: break-word;
  word-break: normal;
  /* Headlines should fill 70-85% of column - removing forced break-all so
     long words don't fracture mid-word. */
}
.hero__title .italic { color: var(--gold-300); }
.hero__copy {
  font-size: var(--p1); /* was 17.5px — locked to P1 per design feedback #2 */
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
  max-width: 440px;
  margin-bottom: 24px;
}
.hero__cta { display: flex; gap: 12px; }

@media (max-width: 820px) {
  .hero__inner { grid-template-columns: 1fr; gap: 24px; padding: 60px var(--gutter); }
  .hero { min-height: 540px; }
}

/* =========================================================================
   SECTIONS — DARK
   ========================================================================= */

.section--dark {
  background: var(--green-800);
  color: var(--text-on-dark);
  position: relative;
}
.section--dark::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 0%, rgba(200,158,106,0.06), transparent 40%),
    radial-gradient(circle at 80% 100%, rgba(200,158,106,0.04), transparent 40%);
  pointer-events: none;
}
.section--dark > .wrap { position: relative; z-index: 1; }
.section--cream { background: var(--cream-200); }

/* "Why Clients Choose" — 3-col with iconography */
.pillars { text-align: center; }
.pillars__title {
  color: var(--text-on-dark);
  margin-bottom: 56px;
  font-size: clamp(35px, 2.6vw, 47.5px);
}
.pillars__title .italic { color: var(--gold-300); }
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  /* DESIGN FEEDBACK (June 2026): dividers must start at top of text and
     end at bottom of text, NOT span the full section. Move dividers onto
     the .pillar flex items themselves (via border-left + alignment), and
     stretch each pillar to the natural text height with align-items:stretch.
     Old approach used pseudo-elements on the grid with top:12%/bottom:12% —
     that's a fraction of the section, not of the text. */
  align-items: stretch;
}
/* Remove old grid pseudos */
.pillars__grid::before, .pillars__grid::after { display: none; }

.pillar {
  /* DESIGN FEEDBACK (June 2026, follow-up #2): pillars still feel cramped.
     Reduce per-pillar padding 36 -> 20 to open up content width, and bump
     max-widths further (label 280 -> 360, copy 320 -> 420). */
  padding: 0 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pillar + .pillar { border-left: 1px solid var(--rule-on-dark); }
.pillar__icon {
  width: 40px; height: 40px;
  margin: 0 auto 18px;
  color: var(--gold-400);
}
.pillar__label {
  color: var(--gold-400);
  font-size: 13.75px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.5;
  margin-bottom: 14px;
  /* Widen further — was 280px, now 360 (still bounded but less cramped) */
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}
.pillar__copy {
  /* Locked to P1 — was one-off 16.88px */
  font-size: var(--p1);
  /* text-wrap: pretty prevents orphan words on the last line (Chrome 117+,
     Safari 17.4+, Firefox 124+). Non-supporting browsers still get widened
     max-width fallback (420px). */
  text-wrap: pretty;
  line-height: 1.7;
  color: var(--text-on-dark);
  /* Widen further — was 320px, now 420 (fewer wrap lines, less cramped) */
  max-width: 420px;
  margin: 0 auto;
}
@media (max-width: 820px) {
  .pillars__grid { grid-template-columns: 1fr; gap: 48px; }
  .pillars__grid::before, .pillars__grid::after { display: none; }
  /* Drop the per-pillar left border on stacked mobile layout. */
  .pillar + .pillar { border-left: 0; }
}

/* =========================================================================
   SPLIT — text + image
   ========================================================================= */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  /* Designer requirement (item #5): image fills full height of copy column,
     top-aligned with first element, bottom-aligned with last. Was center. */
  align-items: stretch;
}
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }
.split__copy h2 { margin-bottom: 20px; }
.split__copy h2 .italic { color: var(--gold-500); }
.section--dark .split__copy h2 .italic { color: var(--gold-300); }
.split__copy p { font-size: var(--p1); line-height: 1.75; color: inherit; } /* was 18.12px — locked to P1 per design feedback #2 */
.section--dark .split__copy p { color: var(--text-on-dark); }
.split__copy ul {
  font-size: var(--p1); /* was 17.5px — locked to P1 per design feedback #2 */
  line-height: 1.8;
  padding-left: 20px;
  margin: 12px 0 18px;
}
.split__copy ul li { margin-bottom: 4px; }
.split__copy .btn { margin-top: 12px; }

.split__media {
  position: relative;
  /* No aspect-ratio on desktop — media stretches to fill grid row height so
     top/bottom edges align with copy column (designer item #5). Mobile keeps
     aspect-ratio via the @media block below. */
  min-height: 320px;
}
.split__media .media {
  position: absolute; inset: 0;
}

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse { direction: ltr; }
  /* On mobile (single-column stack), restore a sensible aspect ratio for
     media — stretch is moot when there's no second column to match. */
  .split__media { min-height: 0; aspect-ratio: 4/3; }
}

/* =========================================================================
   FULL-BLEED QUOTE BANNER
   ========================================================================= */

.banner {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  padding: 96px var(--gutter);
}
.banner__bg {
  position: absolute; inset: 0;
  /* Lightened overlay so the photo shows through clearly. Text still has
     text-shadow for legibility — the overlay no longer needs to do all the
     work. Was 0.62/0.40/0.25 → now 0.35/0.20/0.10. */
  background:
    /* DESIGN FEEDBACK (June 2026): banner overlay was too light (text
       was relying on text-shadow alone). Bump to .55/.45/.40 so we hit
       the rgba(0,0,0,0.45) minimum floor across the whole banner. */
    radial-gradient(ellipse at center, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.40) 100%),
    var(--photo, none),
    var(--lqip, linear-gradient(135deg, #2a4a3a 0%, #1d3a30 100%));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #244840;
}
.banner__title, .banner__copy {
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}
.banner__inner { position: relative; z-index: 1; max-width: 720px; }
.banner__title { font-size: clamp(35px, 3vw, 50px); margin-bottom: 18px; line-height: 1.2; }
.banner__title .italic { color: var(--gold-300); }
.banner__copy { font-size: var(--p1); line-height: 1.75; color: rgba(255,255,255,0.92); } /* was 17.5px — locked to P1 per design feedback #2 */
.banner blockquote {
  margin: 0;
  padding: 0;
}
.banner blockquote p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.5;
  font-style: italic;
  margin: 0 0 20px;
}
.banner blockquote footer,
.banner blockquote cite {
  display: block;
  font-style: normal;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-300);
}

/* =========================================================================
   COLLAGE — 2 overlapping images
   ========================================================================= */

/* .collage rules removed — design-build hub now uses a single .media instead of a 2-photo collage */

/* =========================================================================
   SERVICES GRID — tile flips
   ========================================================================= */

.services__head { text-align: center; margin-bottom: 48px; }
.services__head .eyebrow { color: var(--gold-500); display: block; margin-bottom: 14px; }
.services__head h2 .italic { color: var(--gold-500); }

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.service-tile {
  position: relative;
  aspect-ratio: 16/10;
  perspective: 1200px;
  cursor: pointer;
}
.service-tile__inner {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transition: transform 700ms var(--ease-in-out);
}
.service-tile:hover .service-tile__inner,
.service-tile:focus-within .service-tile__inner {
  transform: rotateY(180deg);
}
.service-tile__face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 32px;
  overflow: hidden;
}
.service-tile__face--front .media {
  position: absolute; inset: 0;
}
.service-tile__face--front .media::after {
  content: "";
  position: absolute; inset: 0;
  /* DARKER OVERLAY (June 2026, v2): labels sit ~vertical center, so the middle
     of the gradient is where readability matters most. Three-stop ramp keeps
     the middle ~60% dark even where the photo is bright (white siding, pale
     pergola). Photo still shows but labels stay legible regardless. */
  background: linear-gradient(180deg,
    rgba(21,40,31,0.40) 0%,
    rgba(21,40,31,0.62) 50%,
    rgba(21,40,31,0.78) 100%);
}
.service-tile__label {
  position: relative;
  z-index: 1;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin: 0;
  /* Crisp edges so the label reads even if the underlying photo region is
     bright. Two-layer shadow: tight black halo + soft drop for separation. */
  text-shadow:
    0 1px 2px rgba(0,0,0,0.85),
    0 0 12px rgba(0,0,0,0.55);
  /* Subtle dark pill behind the text — only behind the letters thanks to
     padding + matching radius. Adds localized contrast without turning the
     tile into a solid color block. */
  padding: 10px 18px;
  background: rgba(11,22,17,0.45);
  border-radius: 4px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.service-tile__face--back {
  background: var(--green-800);
  transform: rotateY(180deg);
  flex-direction: column;
  gap: 14px;
}
.service-tile__face--back h3 {
  color: #fff;
  font-size: 27.5px;
}
.service-tile__face--back p {
  font-size: var(--p2); /* was 16.88px — locked to P2 per design feedback #2 */
  line-height: 1.65;
  color: var(--text-on-dark);
  margin: 0;
  max-width: 320px;
}
.service-tile__face--back .arrow {
  margin-top: 6px;
  color: var(--gold-400);
  font-size: 13.75px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.service-tile__face--back .arrow::after { content: "→"; transition: transform 220ms var(--ease-out); }
.service-tile:hover .service-tile__face--back .arrow::after { transform: translateX(4px); }

@media (max-width: 720px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   PROCESS — dark with numbered steps
   ========================================================================= */

.process {
  position: relative;
  color: #fff;
  padding: var(--section-y) 0;
  overflow: hidden;
}
.process__bg {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21,40,31,0.7), rgba(21,40,31,0.92)),
              var(--photo, linear-gradient(135deg, #2a4a3a 0%, #1d3a30 100%));
  background-size: cover;
  background-position: center;
}
.process > .wrap { position: relative; z-index: 1; }
.process h2 { margin-bottom: 56px; max-width: 520px; }
.process h2 .italic { color: var(--gold-300); }
.process__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
  /* DESIGN FEEDBACK (June 2026): center the 3-step group horizontally
     within the section. Individual step copy stays left-aligned in each
     column (default). max-width caps the group width so it doesn't sprawl
     edge-to-edge on wide viewports; margin:auto centers it. */
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}
.process__step .num {
  font-family: var(--font-serif);
  font-size: 45px;
  color: var(--gold-400);
  display: block;
  margin-bottom: 14px;
  line-height: 1;
  font-style: italic;
}
.process__step .label {
  font-size: 13.75px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--gold-300);
}
.process__step p { font-size: var(--p1); line-height: 1.7; color: var(--text-on-dark); max-width: 280px; }

/* Design gap #11: allow .process__steps inside light-bg .section (interior
   pages) as well as dark .process hero. On light bgs, flip label + body
   copy to dark-text tokens so they stay readable. */
.section:not(.section--dark) .process__step .label,
.section--cream .process__step .label {
  color: var(--gold-500);
}
.section:not(.section--dark) .process__step p,
.section--cream .process__step p {
  color: var(--ink-soft);
}

@media (max-width: 820px) { .process__steps { grid-template-columns: 1fr; gap: 32px; } }

.process:has(.process__steps),
.section:has(.process__steps) {
  padding-bottom: clamp(32px, 4vw, 56px);
}

@media (max-width: 820px) {
  .process > .wrap { text-align: center; }
  .process__step { text-align: center; }
  .process__step p { margin-left: auto; margin-right: auto; }
  .process h2 { text-align: center; margin-left: auto; margin-right: auto; }
}

@media (max-width: 820px) {
  :root {
    --section-y: clamp(48px, 8vw, 72px);
  }
}

/* =========================================================================
   FAQ
   ========================================================================= */

.faq-card {
  background: var(--cream-100);
  padding: clamp(28px, 4vw, 56px);
  display: grid;
  /* Title column grows for long interior headings (Commercial page has
     8-word titles). Homepage's short "What to Expect..." still fits in
     the min. */
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.faq-card .eyebrow { color: var(--gold-500); display: block; margin-bottom: 12px; }
.faq-card h2 {
  /* Restore card-scoped h2 size — global "single h2" rule pushed this to 55px
     which made long interior titles wrap to 8+ single-word lines. */
  font-size: clamp(26px, 2vw, 36px) !important;
  line-height: 1.15;
  text-wrap: balance;
}
.faq-card h2 .italic { color: var(--ink); }
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid var(--rule-on-light);
  padding: 18px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--rule-on-light); }
.faq-item__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 14.38px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 0;
  gap: 24px;
}
.faq-item__icon {
  flex-shrink: 0;
  width: 18px; height: 18px;
  position: relative;
}
.faq-item__icon::before, .faq-item__icon::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform 280ms var(--ease-out);
}
.faq-item__icon::before { left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -0.75px; }
.faq-item__icon::after { top: 0; bottom: 0; left: 50%; width: 1.5px; margin-left: -0.75px; }
.faq-item.is-open .faq-item__icon::after { transform: scaleY(0); }
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 360ms var(--ease-in-out);
  font-size: var(--p1); /* was 17.5px — locked to P1 per design feedback #2 */
  line-height: 1.7;
  color: var(--ink-soft);
}
.faq-item__a > div { padding: 12px 0 8px; max-width: 640px; }
.faq-item.is-open .faq-item__a { max-height: 480px; }

@media (max-width: 720px) { .faq-card { grid-template-columns: 1fr; } }

/* =========================================================================
   TESTIMONIAL
   ========================================================================= */

.testimonial {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.testimonial__media { aspect-ratio: 5/4; }
.testimonial__copy h3 { font-size: clamp(30px, 2.4vw, 40px); margin-bottom: 24px; }
.testimonial__copy h3 .italic { color: var(--gold-500); }
.testimonial__quote {
  font-size: var(--p1); /* was 18.12px — locked to P1 per design feedback #2 */
  line-height: 1.75;
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 18px;
  max-width: 480px;
}
.testimonial__attr {
  font-size: 13.75px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-500);
  font-weight: 500;
}
@media (max-width: 820px) { .testimonial { grid-template-columns: 1fr; } }

/* =========================================================================
   CTA BANNER + FOOTER
   ========================================================================= */

.cta-banner {
  position: relative;
  padding: clamp(56px, 7vw, 96px) var(--gutter);
  text-align: left;
}
.cta-banner__photo {
  height: clamp(280px, 35vw, 420px);
  background: var(--photo, linear-gradient(135deg, #4a6a5a 0%, #2d544a 60%, #1d3a30 100%));
  background-size: cover;
  background-position: center;
  margin-bottom: 0;
}
.cta-banner__inner {
  background: var(--green-800);
  color: #fff;
  padding: clamp(56px, 7vw, 96px) var(--gutter);
}
.cta-banner__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.cta-banner h2 { font-size: clamp(35px, 3vw, 50px); line-height: 1.15; }
.cta-banner h2 .italic { color: var(--gold-300); }
.cta-banner p { font-size: var(--p1); line-height: 1.7; color: var(--text-on-dark); margin: 0; } /* was 17.5px — locked to P1 per design feedback #2 */
.cta-banner .btn { margin-top: 24px; }
@media (max-width: 820px) { .cta-banner__grid { grid-template-columns: 1fr; gap: 24px; } }

.site-footer {
  background: var(--green-800);
  color: var(--text-on-dark);
  padding: clamp(48px, 6vw, 80px) 0 0;
  border-top: 1px solid var(--rule-on-dark);
}
.site-footer .wrap { padding-bottom: 32px; }
.footer-grid {
  display: grid;
  /* DB column (col 4) gets 2fr to accommodate the long sub-page list rendered
     as 2 sub-columns. Others stay 1fr so their visual balance is preserved. */
  grid-template-columns: 220px 1fr 1fr 2fr 1fr;
  gap: 40px;
}
/* Any footer-col with 12+ items (just Design + Build today) splits into two
   sub-columns so it doesn't tower over the others. Falls back gracefully:
   without :has() support the list just shows as one tall column. */
.footer-col ul:has(li:nth-child(12)) {
  column-count: 2;
  column-gap: 28px;
}
.footer-col ul:has(li:nth-child(12)) li {
  break-inside: avoid;
}
.footer-brand .brand svg, .footer-brand .brand img { height: 128px; width: auto; margin-bottom: 0; position: static; }
.footer-brand .btn { margin-top: 24px; }
.footer-socials { display: flex; gap: 12px; margin-top: 18px; }
.footer-socials a {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--rule-on-dark);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-on-dark);
  transition: background 220ms var(--ease-out), border-color 220ms var(--ease-out);
}
.footer-socials a:hover { background: var(--gold-500); border-color: var(--gold-500); color: #fff; }
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 13.75px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; font-size: var(--p2); } /* was 16.25px — locked to P2 per design feedback #2 */
.footer-col a { transition: color 200ms var(--ease-out); }
.footer-col a:hover { color: var(--gold-300); }
.footer-meta {
  border-top: 1px solid var(--rule-on-dark);
  padding: 28px var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: var(--p2); /* was 16.25px — locked to P2 per design feedback #2 */
}
.footer-meta a:hover { color: var(--gold-300); }
.footer-meta__strip {
  background: var(--gold-500);
  color: #fff;
  text-align: center;
  padding: 16px var(--gutter);
  font-size: 13.75px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
}
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   IMAGE PLACEHOLDERS
   ========================================================================= */

.media {
  position: relative;
  /* Solid color floor — guarantees we never show transparent (white-on-white)
     if the photo URL fails to load. Sits BELOW the background-image. */
  background-color: #244840;
  /* Photo if injected, gradient as image fallback if not. */
  background-image: var(--photo, linear-gradient(135deg, #3a5a4a 0%, #244840 40%, #1d3a30 100%));
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.media[data-placeholder]::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent 0,
    transparent 12px,
    rgba(255,255,255,0.04) 12px,
    rgba(255,255,255,0.04) 13px
  );
}
.media[data-placeholder]::after {
  content: attr(data-placeholder);
  position: absolute;
  bottom: 14px; left: 14px;
  font-family: "JetBrains Mono", "SF Mono", Consolas, monospace;
  font-size: 13.12px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.78);
  background: rgba(0,0,0,0.35);
  padding: 5px 9px;
  border-radius: 2px;
  max-width: calc(100% - 28px);
  pointer-events: none;
}

/* =========================================================================
   SUB-PAGE HERO (compact)
   ========================================================================= */

.page-hero {
  position: relative;
  /* DESIGNER FINAL SPEC v2 (June 2026): pure aspect-ratio, no max caps.
     aspect-ratio: 12/5 makes the hero box itself 2.4:1 — the SAME SHAPE
     as the cropped photo. When box and image are the same shape, cover()
     does nothing extra — the whole image shows with no zoom on any
     monitor (laptop, desktop, ultrawide, 4K).
     min-height: 440px = mobile floor only (narrow phones where
                          width * 5/12 < 440px would collapse otherwise).
     NO max-height — the previous 820px cap broke aspect ratio at
                     viewports >1968w (forced box wider than 2.4:1 →
                     cover() cropped the image again).
     NO max-width  — same issue: capping width forced the box ratio
                     wider than 2.4:1 on wide monitors. Plus added
                     ugly side margins on ultrawides. */
  aspect-ratio: 12 / 5;
  min-height: 440px;
  display: flex;
  /* DESIGN FEEDBACK (June 2026): vertically center copy so h1 and sub
     have EVEN spacing top/bottom. Was flex-end (bottom-anchored). */
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.page-hero__bg {
  position: absolute; inset: 0;
  /* DESIGNER FIX (June 2026): three changes from the original to keep
     architecturally-anchored photos (house, arch, entry) visible:
       1. background-position: center 30% (was: center center)
          — moves the focal point UP into the upper third so the building,
            arch, and entry don't get hidden behind the headline.
            Per-page override available via --photo-pos (nudge 20%–40% to taste).
       2. transform: none — kills any inherited scale-up that magnifies
          the crop further.
       3. Source image: a 2:1 (or wider) photo crops better in a short
          banner than a 3:2 photo. Tag accordingly in the DAM. */
  /* DESIGNER v2 (June 2026): darker overlay (0.35 → 0.75) so text stays
     legible without biasing the photo crop. With darker overlay handling
     contrast, we can use plain 'center' position and let the full
     composition show through. */
  background:
    /* DESIGN FEEDBACK (June 2026): bump dark overlay from .35/.75 to
       .50/.80 — designer wants rgba(0,0,0,0.45) MINIMUM. */
    linear-gradient(180deg, rgba(0,0,0,0.50) 0%, rgba(21,40,31,0.80) 100%),
    var(--photo, none),
    var(--lqip, linear-gradient(135deg, #2a4a3a, #1d3a30));
  background-size: cover;
  background-position: var(--photo-pos, center);
  background-repeat: no-repeat;
  background-color: #244840;
  transform: none;
}
.page-hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px var(--gutter);
  width: 100%;
  /* Defensive: clip any child that escapes (belt + suspenders for the
     hero h1 wrap bug — if any child overflows for any reason, contain it
     inside the hero box rather than letting it bleed past the viewport). */
  overflow: hidden;
}
.page-hero__eyebrow { color: var(--gold-400); display: block; margin-bottom: 14px; }
.page-hero h1 {
  font-size: clamp(32px, 4.4vw, 70px);
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
  line-height: 1.15;
  /* DESIGN FEEDBACK (June 2026): explicit margin for even h1-to-sub gap. */
  margin-bottom: 20px;
}
.page-hero h1 .italic { color: var(--gold-300); }
.page-hero__sub {
  font-size: var(--p1);
  line-height: 1.6;
  color: rgba(255,255,255,0.92);
  max-width: 640px;
  margin: 0;
}
.page-hero .btn { margin-top: 24px; }

.crumbs {
  font-size: 13.75px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  /* DESIGN FEEDBACK (June 2026): tighten breadcrumb padding so the gap
     between breadcrumb and the next section matches site rhythm. */
  padding: 14px var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}
/* Section following the breadcrumb gets a reduced top padding so the gap
   between breadcrumb and eyebrow/headline matches internal site rhythm,
   not the full --section-y. */
.crumbs + section.section,
.crumbs + .section,
.crumbs + .intro-standalone {
  padding-top: clamp(40px, 5vw, 64px);
}
.crumbs a:hover { color: var(--green-800); }
.crumbs span { opacity: 0.5; margin: 0 8px; }

/* =========================================================================
   PORTFOLIO GRID
   ========================================================================= */

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}
.portfolio-filter {
  padding: 10px 18px;
  font-size: 13.12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--rule-on-light);
  transition: all 220ms var(--ease-out);
}
.portfolio-filter:hover { border-color: var(--gold-500); color: var(--gold-500); }
.portfolio-filter.is-active { background: var(--green-800); color: #fff; border-color: var(--green-800); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.portfolio-item {
  position: relative;
  aspect-ratio: 1/1;          /* square */
  overflow: hidden;
  cursor: pointer;
  background-color: #1d3a30;
}
.portfolio-item .media,
.portfolio-item img.media {
  /* Image is already a perfect square crop from Supabase server-side transform.
     Just display it filling the tile. No object-fit shenanigans. */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 800ms var(--ease-out);
}
.portfolio-item:hover img.media { transform: scale(1.04); }
.portfolio-item__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(21,40,31,0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #fff;
  opacity: 0;
  transition: opacity 320ms var(--ease-out);
}
.portfolio-item:hover .portfolio-item__overlay { opacity: 1; }
.portfolio-item__cat {
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 8px;
}
.portfolio-item__title {
  font-family: var(--font-serif);
  font-size: 27.5px;
  font-style: italic;
}
@media (max-width: 820px) { .portfolio-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .portfolio-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   ABOUT — team, values
   ========================================================================= */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 44px 28px;
  align-items: start;
}
/* Card container — clean, no shadow per reference */
.team-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  height: 100%;
}
/* Photo well — 4:5 portrait, head-centered crop.
   The compound selector is more specific than .media[data-ml-shape="square"]
   (line ~1710), which would otherwise force these wells to 4/3 landscape with
   a 240px floor — wrong for headshots. background-position anchors toward
   the top so any residual vertical crop happens at the bottom (full forehead
   stays visible). */
.team-card__photo,
.team-card__photo.media,
.team-card__photo.media[data-ml-shape] {
  position: relative;
  aspect-ratio: 4/5;
  min-height: 0;
  background-color: var(--green-800, #1d3a30);
  background-image: var(--photo, none);
  background-size: cover;
  background-position: var(--photo-pos, center 15%);
  background-repeat: no-repeat;
  flex-shrink: 0;
  margin-bottom: 16px;
}
.team-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.18);
}
.team-card__placeholder svg { width: 56%; height: 56%; max-width: 140px; max-height: 140px; }
.team-card__photo[style*="--photo"] .team-card__placeholder { display: none; }
/* inject-heroes drops an actual <img class="media__img"> inside .media
   containers (not a CSS background-image). Without these rules the img
   would render at intrinsic source dimensions — 2000+px tall — making
   each card span the page. Fill the well with object-fit:cover and
   anchor toward the top so faces stay visible. */
.team-card__photo > img,
.team-card__photo .media__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-pos, center 15%);
  display: block;
}
/* Hide the silhouette placeholder once the real img has loaded. */
.team-card__photo:has(img) .team-card__placeholder { display: none; }
/* Body */
.team-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
}
.team-card__title {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-500, #b08a3e);
  /* Alignment fix (July 2026): titles like 'General Manager · Landscape
     Designer' wrap to 2 lines while 'President' fits on 1, so employee
     names ended up on different rows across the grid. Reserve exactly 2
     lines of title height on desktop/tablet so every name sits on the
     same y-position regardless of title length. */
  min-height: calc(11.5px * 1.5 * 2);
  display: flex;
  align-items: flex-end;
  margin: 0;
  line-height: 1.4;
  /* Reserve 2 lines so single-line titles (PRESIDENT, ACCOUNTANT, etc.)
     take the same vertical space as multi-line titles (GENERAL MANAGER ·
     LANDSCAPE DESIGNER). Keeps all team names aligned to the same row
     across the grid. */
  min-height: calc(1.4em * 2);
  display: flex;
  align-items: flex-end;
}
.team-card__name {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink-900, #1d3a30);
  margin: 6px 0 0;
  overflow-wrap: break-word;
}
.team-card__credentials {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-700, #4a5550);
  margin: 4px 0 0;
  /* Reserve 1 line of space so cards WITHOUT credentials still leave the
     same gap before the bio, keeping bio start rows aligned too. */
  min-height: 1.4em;
}
.team-card__bio-wrap { margin-top: 14px; }
.team-card__bio {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-700, #4a5550);
  margin: 0;
  overflow-wrap: break-word;
  /* Default: clamp to 4 lines with ellipsis. Expanded state removes clamp. */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.team-card.is-expanded .team-card__bio {
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
}
.team-card__readmore {
  display: inline-block;
  background: none;
  border: 0;
  padding: 14px 0 0;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-500, #b08a3e);
  cursor: pointer;
}
.team-card__readmore:hover { color: var(--gold-300, #d4b078); }
.team-card.is-expanded .team-card__readmore { display: none; }
/* Responsive: 4 → 2 → 1 */
@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 28px; }
}
@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; gap: 32px; }
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--green-800);
}
.value {
  background: var(--green-800);
  padding: 40px 32px;
}
.value .num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 40px;
  color: var(--gold-400);
  display: block;
  margin-bottom: 16px;
  line-height: 1;
}
.value h3 { color: #fff; font-size: 27.5px; margin-bottom: 12px; }
.value p { color: var(--text-on-dark); font-size: var(--p2); line-height: 1.7; margin: 0 0 20px; } /* was 16.88px — locked to P2 per design feedback #2; margin-bottom added per design feedback #1 (paragraph/button spacing) */
@media (max-width: 820px) { .values-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   CONTACT FORM
   ========================================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.contact-info h2 { margin-bottom: 16px; }
.contact-info h2 .italic { color: var(--gold-500); }
.contact-info p { font-size: var(--p1); line-height: 1.7; } /* was 18.12px — locked to P1 per design feedback #2 */
.contact-info dl { margin: 24px 0 0; }
.contact-info dt {
  font-size: 13.75px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 6px;
}
.contact-info dd {
  font-family: var(--font-serif);
  font-size: 25px;
  margin: 0 0 22px;
}

.form-card {
  background: var(--cream-100);
  padding: clamp(28px, 4vw, 48px);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.field { display: flex; flex-direction: column; }
.field label {
  font-size: 13.12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
  font-weight: 500;
}
.field input, .field select, .field textarea {
  font-family: var(--font-sans);
  font-size: var(--p1); /* was 17.5px — locked to P1 per design feedback #2 */
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--rule-on-light);
  color: var(--ink);
  transition: border-color 220ms var(--ease-out);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-500);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-card .btn { margin-top: 12px; }

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* =========================================================================
   ARTICLE / NEWS CARDS
   ========================================================================= */

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.article-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 0 26px 28px;
  transition: transform 320ms var(--ease-out);
}
.article-card:hover { transform: translateY(-4px); }
/* Media bleeds to the card edges even though the text is inset */
.article-card .media { aspect-ratio: 4/3; margin: 0 -26px 22px; }
.article-card__cat {
  font-size: 13.12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 10px;
}
.article-card__title {
  font-family: var(--font-serif);
  font-size: 27.5px;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 10px;
}
.article-card__excerpt {
  font-size: var(--p2); /* was 16.88px — locked to P2 per design feedback #2 */
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.article-card__meta {
  font-size: 13.75px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: auto;
}
.article-card__feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 0;
}
.article-card__feature .media { aspect-ratio: 16/10; margin: 0; }
.article-card__feature .article-card__title { font-size: clamp(35px, 3vw, 47.5px); }
.article-card__feature .article-card__excerpt { font-size: var(--p1); } /* was 18.75px — locked to P1 per design feedback #2 */

@media (max-width: 980px) { .article-grid { grid-template-columns: 1fr 1fr; } .article-card__feature { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .article-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   CAREERS — open positions list
   ========================================================================= */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.benefit {
  padding: 32px 24px;
  background: var(--cream-100);
  border-top: 2px solid var(--gold-500);
}
.benefit h3 {
  font-size: 22.5px;
  margin-bottom: 8px;
  font-family: var(--font-serif);
  font-style: italic;
}
.benefit p { font-size: var(--p2); line-height: 1.65; color: var(--ink-soft); margin: 0; } /* was 16.25px — locked to P2 per design feedback #2 */
@media (max-width: 820px) { .benefits-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .benefits-grid { grid-template-columns: 1fr; } }

.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--rule-on-light);
  border-top: 1px solid var(--rule-on-light);
  border-bottom: 1px solid var(--rule-on-light);
}
.job-row {
  background: #fff;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 24px 8px;
  transition: background 220ms var(--ease-out);
}
.job-row:hover { background: var(--cream-100); }
.job-row__title { font-family: var(--font-serif); font-size: 27.5px; }
.job-row__meta {
  font-size: 13.75px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.job-row__apply {
  font-size: 13.75px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-500);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.job-row__apply::after { content: "→"; transition: transform 220ms var(--ease-out); }
.job-row:hover .job-row__apply::after { transform: translateX(4px); }
@media (max-width: 820px) {
  .job-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 24px 4px;
  }
}

/* =========================================================================
   SCROLL-REVEAL ANIMATIONS — keyframe-based for reliability
   ========================================================================= */

@keyframes om-reveal-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes om-reveal-left {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes om-reveal-right {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes om-reveal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes om-reveal-zoom {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes om-word-rise {
  from { opacity: 0; transform: translateY(110%); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Pre-animation: hidden. .is-visible: visible (with optional animation). */
[data-reveal] { opacity: 0; transform: translateY(28px); }
[data-reveal="fade"]    { transform: none; }
[data-reveal="slide-l"] { transform: translateX(-32px); }
[data-reveal="slide-r"] { transform: translateX(32px); }
[data-reveal="zoom"]    { transform: scale(1.04); }
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  animation: om-reveal-up 800ms var(--ease-out) both;
}
[data-reveal="fade"].is-visible    { animation-name: om-reveal-fade; }
[data-reveal="slide-l"].is-visible { animation-name: om-reveal-left; }
[data-reveal="slide-r"].is-visible { animation-name: om-reveal-right; }
[data-reveal="zoom"].is-visible    { animation-name: om-reveal-zoom; }

.flyin {
  display: block;
  overflow: hidden;
  max-width: 100%;
  width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  /* Descender rescue: overflow:hidden is needed for the word-rise animation,
     but combined with the tight line-height on hero titles it clips the
     descenders on g, y, p, q, j. Extra padding-bottom (below the baseline
     of the last visible line) gives them room inside the clipping box. */
  padding-bottom: 0.18em;
}
.flyin .word {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
  opacity: 0;
  transform: translateY(110%);
}
.flyin.is-visible .word {
  opacity: 1;
  transform: translateY(0);
  animation: om-word-rise 900ms var(--ease-out) both;
}

[data-stagger] > * { opacity: 0; transform: translateY(24px); }
[data-stagger].is-visible > * {
  opacity: 1;
  transform: none;
  animation: om-reveal-up 700ms var(--ease-out) both;
}

/* Honor reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal], .flyin .word, [data-stagger] > * { opacity: 1; transform: none; }
}


/* ========================================================================
   UTILITY BAR — phone, address, hours, portal link, socials (above nav)
   ======================================================================== */
.utility-bar {
  background: #1d3a30;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-sans);
  font-size: 15px;
  letter-spacing: 0.06em;
}
.utility-bar__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.utility-bar__left,
.utility-bar__right {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.utility-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  transition: color 200ms;
}
.utility-bar__item svg {
  color: #c89e6a;
  flex-shrink: 0;
}
.utility-bar__phone:hover { color: #fff; }
.utility-bar__portal {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 3px;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 500;
  transition: background 200ms, border-color 200ms;
}
.utility-bar__portal:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}
.utility-bar__socials {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.utility-bar__socials a {
  color: rgba(255, 255, 255, 0.75);
  display: inline-flex;
  transition: color 200ms;
}
.utility-bar__socials a:hover { color: #c89e6a; }

@media (max-width: 920px) {
  .utility-bar__addr,
  .utility-bar__hours { display: none; }
}
@media (max-width: 640px) {
  .utility-bar__inner { padding: 8px 16px; }
  .utility-bar__socials { display: none; }
  .utility-bar__portal {
    font-size: 13.75px;
    padding: 4px 10px;
  }
}

/* ========================================================================
   NAV — keep all items on one line
   ======================================================================== */
.nav-links a {
  white-space: nowrap;
}
.nav-links {
  gap: 22px;
}

@media (min-width: 1100px) {
  .nav-links { gap: 28px; }
  .nav-links a { font-size: 13.75px; }
}

/* ========================================================================
   MOBILE STICKY CALL BAR — bottom of viewport, mobile only
   ======================================================================== */
.mobile-call-bar {
  display: none;
}
@media (max-width: 640px) {
  .mobile-call-bar {
    display: flex;
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: #c89e6a;
    color: #1d3a30;
    padding: 12px 22px;
    border-radius: 999px;
    box-shadow: 0 6px 24px rgba(29, 58, 48, 0.35);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 17.5px;
    letter-spacing: 0.04em;
    text-decoration: none;
    align-items: center;
    gap: 8px;
    z-index: 100;
    transition: transform 200ms;
  }
  .mobile-call-bar:hover { transform: translateX(-50%) translateY(-2px); }
  .mobile-call-bar svg { color: #1d3a30; }
  /* Add bottom padding to body so content isn't hidden behind the floating button */
  body { padding-bottom: 80px; }
}

/* ========================================================================
   MOBILE FIX — hide utility bar, accent Customer Portal in hamburger menu
   ======================================================================== */

/* Hide the entire utility bar on tablet + mobile. Phone is on the sticky
   bottom call button; Customer Portal moves into the hamburger menu. */
@media (max-width: 768px) {
  .utility-bar { display: none; }
}

/* Style Customer Portal link inside the hamburger menu so it stands out */
.nav-link--accent {
  /* Desktop: hidden because portal is in the utility bar */
}
@media (min-width: 1025px) {
  .nav-link--accent { display: none; }
}
@media (max-width: 1024px) {
  .nav.is-open .nav-link--accent {
    background: #c89e6a;
    color: #1d3a30 !important;
    text-align: center;
    margin-top: 12px;
    padding: 14px 16px !important;
    border-radius: 4px;
    border-bottom: none !important;
    font-weight: 600;
    letter-spacing: 0.12em;
  }
  .nav.is-open .nav-link--accent::before { display: none; }
  .nav.is-open .nav-link--accent::after { display: none; }
}


/* =========================================================================
   NAV DROPDOWN — hover-reveal sub-menu on About / Resources
   ========================================================================= */
.nav-dropdown { position: relative; display: inline-block; }
.nav-dropdown__trigger { cursor: pointer; }
.nav-dropdown__menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  z-index: 100;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(21,40,31,0.10);
  padding: 8px 0;
  margin-top: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 60;
}
.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown__menu a {
  display: block;
  padding: 9px 18px;
  font-size: 14px;
  color: var(--text-dark);
  text-decoration: none;
  letter-spacing: 0;
  text-transform: none;
  transition: background 0.12s, color 0.12s;
}
.nav-dropdown__menu a:hover {
  background: var(--cream-100);
  color: var(--gold-500);
}


/* The rightmost dropdown (About) should align to right edge to avoid overflow */
.nav-links > .nav-dropdown:last-of-type .nav-dropdown__menu { left: auto; right: 0; }

/* Mobile menu: dropdown collapses, all links visible inline */
@media (max-width: 900px) {
  .nav-dropdown { display: block; width: 100%; }
  .nav-dropdown__trigger svg { display: none; }
  .nav-dropdown__menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; padding: 0; margin: 0; background: transparent;
  }
  .nav-dropdown__menu a {
    padding: 8px 0 8px 16px;
    color: var(--ink-soft);
    font-size: 13.5px;
  }
}


/* Save horizontal space on tighter desktops by tightening nav further */
@media (max-width: 1180px) and (min-width: 1025px) {
  .nav { gap: 14px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 11px; letter-spacing: 0.10em; }
  .nav-dropdown__trigger svg { display: none; }
}


/* Case studies often pull portrait-orientation photos. Taller hero +
   bottom-biased crop lets the actual subject show through. */
.case-study .page-hero,
.page-hero[data-screen-label="01 Hero"]:has(+ * .case-study) {
  min-height: clamp(620px, 80vh, 880px);
}


/* Homepage bottom: cta-banner padded too much creating dead air before footer.
   Tighten the bottom and the section above it. */
.cta-banner { padding-bottom: clamp(36px, 4vw, 56px); }
.section + .cta-banner { padding-top: clamp(36px, 4vw, 56px); }


/* Perf: deep below-the-fold sections defer paint until they scroll near viewport.
   Skipping 04/04b/05 because they're close to fold on desktop and were rendering empty
   momentarily while the user scrolled — better UX to paint them eagerly. */
.section[data-screen-label^="06"],
.section[data-screen-label^="07"],
.section[data-screen-label^="08"],
.section[data-screen-label^="09"],
.section[data-screen-label^="10"],
.section[data-screen-label^="11"],
.process[data-screen-label^="08"],
.cta-banner[data-screen-label^="11"] {
  content-visibility: auto;
  contain-intrinsic-size: 1px 800px;
}


/* Aspect-ratio fallback: if a .media element has aspect-ratio: 4/3 inline but the
   browser isn't honoring it (rare but reported), force min-height via the padding hack.
   The .media is position:relative so its absolute children still position correctly. */
.media[style*="aspect-ratio: 4/3"] { min-height: 0; }
.media[style*="aspect-ratio: 4/3"]::before {
  content: "";
  display: block;
  padding-top: 75%; /* 3/4 = 75%, matches 4:3 aspect */
}
.media[data-placeholder][style*="aspect-ratio: 4/3"]::before {
  /* When data-placeholder is set the existing ::before rule draws stripes — we don't want
     two ::before pseudos competing. Drop the padding hack in that case; the existing
     placeholder ::before is absolutely positioned and doesn't affect layout, so the
     element needs to get height from somewhere — fall back to min-height. */
  padding-top: 0;
}
.media[data-placeholder][style*="aspect-ratio: 4/3"] {
  min-height: 280px;
}


/* Belt-and-suspenders: every case-study-style .media gets a guaranteed minimum
   height so photos always have a canvas to render in, no matter what's happening
   with aspect-ratio support or build-time injection. */
div.media[data-ml-hero^="Case Study ::"] {
  min-height: 240px !important;
}


/* Case study cards (data-ml-shape="square") get their box sizing from CSS, not
   inline style — so inject-heroes can freely overwrite inline style with
   --photo: url(...) without worrying about preserving aspect-ratio. */
.media[data-ml-shape="square"] {
  aspect-ratio: 4/3;
  min-height: 240px;
}


/* =========================================================================
   PHOTO INJECTION — img tags inside .media (refactor 2026-06-04)
   ========================================================================= */

/* When inject-heroes injects a real <img> tag inside .media, it fills the
   parent (whatever aspect-ratio or absolute positioning the parent has) and
   covers it. Works for case study cards, split-media columns, testimonial
   photo slots, article cards, team cards — anywhere we use the .media class. */
.media__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* Smooth load-in so images don't pop when network is slow */
  opacity: 0;
  transition: opacity 0.4s ease;
}
.media__img[src] { opacity: 1; }

/* When a real <img> is inside a .media, hide the placeholder banner + stripes
   since the img is now the source of truth for what's rendering. */
.media:has(.media__img) {
  background-image: none !important;
}
.media:has(.media__img)::before,
.media:has(.media__img)::after {
  display: none;
}

/* The .media background-color floor (set elsewhere) still shows briefly while
   the img is loading via the opacity transition above. Result: smooth fade
   from dark green into the photo, never white-on-white. */


/* Tighten the homepage testimonial section's bottom padding so the CTA
   banner doesn't have a huge gap above it. */
.section[data-screen-label="10 Testimonial"] {
  padding-bottom: clamp(40px, 5vw, 64px);
}

/* =========================================================================
   REVIEW BANNER — single-quote dark section used on every sub-page.
   Drop-in replacement for class="testimonial section--dark" when there's
   only one blockquote child (the .testimonial class is a 2-col grid that
   leaves the right column empty when used alone).
   ========================================================================= */
.review-banner {
  padding-block: clamp(72px, 9vw, 120px);
  text-align: center;
}
.review-banner .wrap {
  max-width: 840px;
  position: relative;
  z-index: 1;
}
.review-banner blockquote {
  margin: 0;
  padding: 0;
}
.review-banner blockquote p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.5;
  font-style: italic;
  color: #f7f5f0;
  margin: 0 0 28px;
}
.review-banner blockquote cite {
  display: block;
  font-style: normal;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-500, #c89e6a);
  font-weight: 500;
}

/* =========================================================================
   VIDEO HERO — when inject-heroes injects <video class="hero__video"> into
   a .hero__bg / .page-hero__bg / .banner__bg / .process__bg / .cta-banner__photo
   element. Matches the size and position of the background-image stack so the
   video covers the same area, with the still-image poster painting instantly
   on first frame while the video buffers.
   ========================================================================= */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none; /* don't block clicks on overlays */
}

/* NOTE: .hero__bg / .page-hero__bg / .banner__bg / .process__bg are
   already position: absolute (see their own rules above). That makes them
   positioning contexts for absolutely-positioned children automatically.
   Earlier I added a 'position: relative' override here — that broke layout
   sitewide by knocking the background elements out of absolute positioning
   so they collapsed into document flow and pushed text around. Removed. */

/* Respect prefers-reduced-motion — pause autoplay video for users who've
   opted out of motion at the OS level. */
@media (prefers-reduced-motion: reduce) {
  .hero__video { animation-play-state: paused; display: none; }
  /* The --photo background-image (poster image) remains visible, so the
     hero still has a still image when motion is reduced. */
}


/* =========================================================================
   DESIGN HANDOFF — sub-page refinement components (June 2026)
   Imported from the Bertog design handoff package. Powers the new
   centered-lede + 2-col gold-check pattern on service detail pages.
   ========================================================================= */

/* Centered lede — a confident opening statement, replaces orphaned
   left-aligned intros on sub-pages. ~720px max width, serif, centered. */
.lede-block {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.lede-block .eyebrow { color: var(--gold-500); display: block; margin-bottom: 18px; }
.lede-block h2 {
  font-family: var(--font-serif);
  margin-bottom: 20px;
}
.lede-block p {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.1vw, 26px);
  line-height: 1.5;
  color: var(--ink-soft);
}
.lede-block p .italic { color: var(--gold-500); }

/* Feature list — roomy two-column checklist with gold-circle check bullets,
   replaces the cramped <ul class="checks"> on sub-pages. Stacks at 560px. */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
}
.feature-list li {
  position: relative;
  padding-left: 30px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gold-500);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 6'/%3E%3C/svg%3E") center / 12px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 6'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.section--dark .feature-list li { color: var(--text-on-dark); }
.section--dark .feature-list li::before { background: var(--gold-400); }
.feature-list--single { grid-template-columns: 1fr; }
@media (max-width: 560px) { .feature-list { grid-template-columns: 1fr; } }

/* 4-column values-grid variant (used on Seasonal Rotations Seasonal Cadence
   section). Stacks to 1-col below 820px. */
.values-grid--4col {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1024px) {
  .values-grid--4col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .values-grid--4col { grid-template-columns: 1fr; }
}

/* === FIX: phone number wrapping on mobile === */
.utility-bar__phone {
  white-space: nowrap;
}

/* =========================================================================
   MOBILE AUDIT (June 2026) — modifier classes + responsive coverage
   ========================================================================= */

/* process__steps variants — keeps the col count config-driven instead of
   inline-style-driven so media queries can override on mobile. */
.process__steps--3col {
  grid-template-columns: repeat(3, 1fr);
}
.process__steps--4col {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1024px) {
  .process__steps--4col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .process__steps--3col,
  .process__steps--4col { grid-template-columns: 1fr; gap: 32px; }
}

/* values-grid 3-col variant (companion to .values-grid--4col already
   shipped in last commit). */
.values-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 820px) {
  .values-grid--3col { grid-template-columns: 1fr; }
}

/* Phone nowrap — strengthened. The earlier rule was on .utility-bar__phone
   only. Also apply to the parent item with !important to defeat any
   inherited word-break/overflow-wrap rules. */
.utility-bar__phone,
.utility-bar__item.utility-bar__phone {
  white-space: nowrap !important;
}
.utility-bar__phone * {
  white-space: nowrap !important;
}

/* Same protection for any tel: link sitewide so footer phone, contact
   page phone, etc. all stay one-line on mobile. */
a[href^="tel:"] {
  white-space: nowrap;
}

/* Catch-all: ensure any remaining grid pattern stacks below 560px.
   Safety net for one-offs that don't have an explicit @media rule. */
@media (max-width: 560px) {
  .values-grid,
  .process__steps,
  .footer-grid,
  .article-grid,
  .benefits-grid,
  .team-grid,
  .portfolio-grid,
  .contact-grid,
  .form-row,
  .pillars__grid,
  .services-grid,
  .cta-banner__grid,
  .testimonial,
  .split {
    grid-template-columns: 1fr !important;
  }
}




/* =========================================================================
   FAQ — interior page parity (June 2026 design feedback).
   Interior pages use <details class="faq-item"><summary>...</summary><p>...
   markup (different from homepage's button-based .faq-item__q / __a).
   This block makes the native details/summary version render IDENTICALLY
   to the homepage version: same typography, same divider treatment, same
   plus/minus icon, same open/close motion. Standardization without
   touching 40+ HTML files. Sibling .faqs container styled as the column.
   ========================================================================= */
.faqs {
  display: flex;
  flex-direction: column;
  margin: 0;
}

/* Each details.faq-item — equivalent to homepage's .faq-item div. */
details.faq-item {
  border-top: 1px solid var(--rule-on-light);
  padding: 18px 0;
}
details.faq-item:last-child {
  border-bottom: 1px solid var(--rule-on-light);
}

/* Hide the default <summary> marker (triangle/arrow). */
details.faq-item > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 14.38px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 0;
  gap: 24px;
}
details.faq-item > summary::-webkit-details-marker { display: none; }
details.faq-item > summary::marker { content: ""; }

/* Plus/minus icon — pseudo-element on summary to mirror .faq-item__icon. */
details.faq-item > summary::after {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background-image:
    linear-gradient(var(--ink), var(--ink)),
    linear-gradient(var(--ink), var(--ink));
  background-size: 100% 1.5px, 1.5px 100%;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 280ms var(--ease-out);
}
details[open].faq-item > summary::after {
  /* Vertical bar disappears (becomes horizontal): rotate so only the
     horizontal bar remains visible. */
  background-size: 100% 1.5px, 0 100%;
}

/* Answer body — paragraphs inside the details. */
details.faq-item > p,
details.faq-item > div {
  font-size: var(--p1);
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 12px 0 8px;
  max-width: 720px;
}

/* MOBILE HERO TYPE FIX (June 2026): on very narrow screens (≤480px),
   scale headlines down more aggressively so they don't bleed past the
   viewport. Also tighten inner padding to claim back side margin. */
@media (max-width: 480px) {
  /* was 30px — long homepage headline was wrapping to 4 lines on iPhone widths */
  .hero__title { font-size: 32px; line-height: 1.1; text-wrap: balance; }
  .page-hero h1 { font-size: 30px; line-height: 1.15; text-wrap: balance; }
  .page-hero__sub { font-size: 14px; }
  .page-hero__inner { padding: 40px 18px; }
  .hero__inner { padding: 40px 18px; }
}
@media (max-width: 360px) {
  .hero__title { font-size: 28px; }  /* was 26 — tighten floor for 360px viewports */
  .page-hero h1 { font-size: 27px; }
}


/* =========================================================================
   STANDALONE INTRO SECTION (June 2026 design feedback)
   Commercial pages + Our Team page need a standalone intro section with
   darker green background + heading above paragraph, NOT bleeding into
   the next section. Use class="intro-standalone" on the <section>.
   ========================================================================= */
.intro-standalone {
  background: var(--green-900);
  color: var(--text-on-dark);
  padding: var(--section-y) 0;
}
.intro-standalone .wrap {
  max-width: 920px;
}
.intro-standalone .eyebrow {
  color: var(--gold-400);
  display: block;
  margin-bottom: 16px;
}
.intro-standalone h2 {
  color: #fff;
  margin-bottom: 24px;
}
.intro-standalone h2 .italic { color: var(--gold-300); }
.intro-standalone p {
  font-size: var(--p1);
  line-height: 1.7;
  color: var(--text-on-dark);
  max-width: 760px;
}
.intro-standalone p.lede {
  font-size: clamp(20px, 2vw, 24px);
  color: #fff;
  margin-bottom: 18px;
}

/* =========================================================================
   CASE STUDY SECTION SPACING (June 2026 design feedback — item 20).
   Reduce bottom spacing on the over-padded result section.
   ========================================================================= */
.section--tight-bottom { padding-bottom: clamp(32px, 4vw, 48px); }

/* =========================================================================
   H2 SIZE LOCK (June 2026) — designer requires ONE h2 size site-wide.
   Older inline styles set custom sizes on section headers; the .lede /
   .pillars__title / .banner__title had their own clamps. Normalize them.
   ========================================================================= */
.pillars__title { font-size: clamp(37.5px, 3.4vw, 55px) !important; }
.faq-card h2 { font-size: clamp(37.5px, 3.4vw, 55px); }

/* =========================================================================
   MOBILE RESPONSIVENESS COVERAGE (June 2026 design feedback — items 24-27)
   ========================================================================= */
@media (max-width: 820px) {
  /* Logo: pull back from 80 -> 56 on tablets/phones so it doesn't dominate
     the header. Also remove the overlap offset on mobile (it can crowd the
     hero on narrow screens). */
  .brand svg, .brand img {
    height: 96px;
    /* keep partial overlap on tablets — half of desktop's */
    margin-bottom: -32px;
  }
  /* Wrap and section gutters comfortable on mobile. */
  .wrap { padding-left: 20px; padding-right: 20px; }
  /* Buttons full-width inside flex containers on mobile. */
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn,
  .page-hero .btn,
  .cta-banner .btn { width: 100%; text-align: center; }
  /* Body copy never exceeds viewport. */
  .hero__copy, .page-hero__sub, .split__copy p, .cta-banner p,
  .testimonial__quote, .lede-block p, .pillar__copy {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  /* Smaller logo on phones. */
  .brand svg, .brand img { height: 72px; margin-bottom: -16px; }
  /* Comfortable inner padding on hero/page-hero on phones. */
  .hero__inner, .page-hero__inner { padding-left: 18px; padding-right: 18px; }
  /* Process steps centered group — drop max-width so single column flows. */
  .process__steps { max-width: 100%; }
  /* Article cards stack with the safety-net rule (already in catch-all),
     this just removes the side padding once stacked. */
  /* was padding: 0 — designer feedback #21: cards need side breathing room on mobile */
  .article-grid { padding: 0 16px; gap: 24px; }
  /* Footer logo — was 128, drop to 88 on phones. */
  .footer-brand .brand svg, .footer-brand .brand img { height: 88px; }
}


/* =========================================================================
   PROCESS STEP — light background variant (June 2026 design feedback,
   item 11). Interior pages put .process__steps inside .section--cream
   without the .process dark wrapper. These rules ensure text reads on
   light bg WITHOUT requiring per-element inline styles in HTML.
   Step typography matches homepage exactly — only the color shifts.
   ========================================================================= */
.section--cream .process__step .num,
.section .process__step .num:not(.process .process__step .num) {
  color: var(--gold-500);
}
.section--cream .process__step .label,
.section .process__step .label:not(.process .process__step .label) {
  color: var(--gold-500);
}
.section--cream .process__step p,
.section .process__step p:not(.process .process__step p) {
  color: var(--ink-soft);
}
/* Center the 3-step group even on light-bg variants (parity with homepage). */
.section--cream .process__steps,
.section .process__steps {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================================
   INTERIOR BODY COPY — P1 LOCK (July 2026, design feedback item #13)
   Any p/li inside a .section on interior pages defaults to P1 unless a more
   specific rule already applies. Doesn't touch headings, eyebrows, captions,
   or explicit .p2 utility use. Catches default 18.75px body text that wasn't
   otherwise selected.
   ========================================================================= */
.section p:not(.eyebrow):not(.lede):not(.testimonial__attr):not(.testimonial__quote),
.section li:not(.eyebrow) {
  font-size: var(--p1);
}
/* But P2 utility class always wins */
.section p.p2, .section li.p2 { font-size: var(--p2); }
/* Small helper text (below-form captions, footnotes) remains at P2 default */
.section p.caption, .section small { font-size: var(--p2); }

/* =========================================================================
   INTERIOR PAGE INTRO TOP SPACING (July 2026, design feedback item #14)
   Belt-and-suspenders — cover every section variant that can follow crumbs
   so top-of-page rhythm stays consistent no matter what the next block is.
   ========================================================================= */
.crumbs + .section,
.crumbs + section.section,
.crumbs + .intro-standalone,
.crumbs + .section--dark,
.crumbs + .section--cream,
.crumbs + .section--tight-top,
.crumbs + .banner,
.crumbs + .cta-banner {
  padding-top: clamp(40px, 5vw, 64px) !important;
}


/* =========================================================================
   MOBILE HOVER-STATE DEGRADATION (July 2026, mobile usability item #1)
   Touch devices never fire :hover cleanly. Content that only revealed on
   hover was invisible to mobile users. Below: give touch/coarse-pointer
   users the same information without requiring hover.
   ========================================================================= */

/* --- Service tiles: show the back-face content statically at mobile widths.
   Desktop keeps the 3D flip. Approach: at the same breakpoint the layout
   already collapses to one column (720), collapse the flip too: front-face
   image stays visible, back-face content sits below it always visible.
*/
@media (hover: none) and (pointer: coarse), (max-width: 720px) {
  .service-tile { aspect-ratio: auto; perspective: none; cursor: default; }
  .service-tile__inner { position: relative; transform: none !important; transition: none; }
  .service-tile__face {
    position: relative;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
  }
  .service-tile__face--front {
    aspect-ratio: 16/10;
    display: block;
    padding: 0;
  }
  .service-tile__face--back {
    transform: none;
    padding: 24px 20px 28px;
    background: var(--green-800);
    align-items: flex-start;
    text-align: left;
    gap: 10px;
  }
  .service-tile__face--back h3 { font-size: 22px; }
  .service-tile__face--back p { font-size: var(--p2); max-width: none; }
  .service-tile__face--back .arrow { margin-top: 4px; }
  /* Front label anchored bottom-left so it doesn't sit mid-photo without
     a dark base. */
  .service-tile__label {
    position: absolute;
    left: 16px;
    bottom: 16px;
    padding: 8px 14px;
    font-size: 13px;
  }
}

/* --- Portfolio items: overlay was opacity:0 until hover. On touch show
   the title + category caption statically at the bottom of the tile.
*/
@media (hover: none) and (pointer: coarse) {
  .portfolio-item__overlay {
    opacity: 1;
    /* Softer gradient than the hover state so photos still read. */
    background: linear-gradient(180deg, transparent 40%, rgba(21,40,31,0.85) 100%);
    padding: 20px;
  }
  .portfolio-item__cat { font-size: 11.5px; margin-bottom: 4px; }
  .portfolio-item__title { font-size: 22px; }
}

/* =========================================================================
   MOBILE BOTTOM-VIEWPORT WIDGET COORDINATION (July 2026, item #2)
   Three floating widgets crowded bottom-right on small phones: sticky call
   bar, feedback FAB, chat iframe. Keep the call bar as the top-priority
   safety CTA. The feedback FAB is an internal-review tool — hide it on
   mobile so it can't collide with the call bar or chat. Also nudge any
   feedback tooltip smaller so it doesn't dominate a mobile viewport.
   ========================================================================= */
@media (max-width: 640px) {
  .fb-btn { display: none !important; }
  .fb-tip { top: 12px !important; font-size: 12px !important; padding: 8px 14px !important; }
}

/* =========================================================================
   .checks and .bullets UTILITY LISTS (July 2026, item #3)
   Previously undefined, rendering as browser-default bullets. Design intent:
   .checks = gold checkmark before each item; .bullets = gold accent dot.
   Used across case-studies, commercial pages, about/our-team, maintenance.
   ========================================================================= */
.checks {
  list-style: none;
  padding: 0;
  margin: 12px 0 18px;
}
.checks li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 8px;
  line-height: 1.6;
}
.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold-500);
  font-weight: 700;
  font-size: 1.05em;
  line-height: 1.6;
}
.section--dark .checks li::before { color: var(--gold-300); }

.bullets {
  list-style: none;
  padding: 0;
  margin: 12px 0 18px;
}
.bullets li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  line-height: 1.6;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-500);
}
.section--dark .bullets li::before { background: var(--gold-300); }

/* =========================================================================
   CASE STUDIES HUB — consistent mobile stack order (item #5)
   Desktop alternates photo/text row by row via DOM order (odd rows:
   photo-first, even rows: text-first). On mobile stack, that produces an
   inconsistent visual rhythm — image top, image top, image middle. Force
   photo above text on mobile regardless of desktop order. Applied to the
   .cs-row grid used on /case-studies/ and to any .split--reverse block
   that follows the same alternating pattern elsewhere.
   ========================================================================= */
@media (max-width: 820px) {
  .cs-row { display: flex !important; flex-direction: column; }
  .cs-row .cs-row__photo { order: -1; }
  .cs-row .cs-row__text { order: 0; }
  .split--reverse { display: flex !important; flex-direction: column; }
  .split--reverse .split__media { order: -1; }
  .split--reverse .split__copy { order: 0; }
}

/* =========================================================================
   PRICING TOOL — remove nested scroll on stacked mobile (item #8)
   Below 940 the layout collapses to one column. The 320px cap on the items
   panel then creates a nested scroll region inside the page scroll, a known
   mobile UX pain. Let the list grow with content instead.
   ========================================================================= */
@media (max-width: 940px) {
  .pc-panel__items { max-height: none !important; overflow-y: visible !important; }
}

/* =========================================================================
   TEAM CARDS — drop min-height reservations on 1-col mobile (item #9)
   The min-heights exist to align cards across a multi-column desktop grid
   (title reserves 2 lines, credentials reserves 1). When cards stack below
   560, each reservation wastes ~50px of vertical space per card.
   ========================================================================= */
@media (max-width: 560px) {
  .team-card__title,
  .team-card__credentials { min-height: 0 !important; }
}

/* =========================================================================
   MOBILE TITLE SCALE — Careers + News (item #10)
   .job-row__title and .article-card__title are hardcoded 27.5px. On stacked
   mobile lists that reads as visually loud. Scale down at small widths.
   ========================================================================= */
@media (max-width: 620px) {
  .job-row__title,
  .article-card__title { font-size: 22px; }
}

/* =========================================================================
   CAREERS APPLY — button treatment on mobile (item #11)
   Desktop "Apply →" is a plain span in the row. On mobile-stacked rows it
   feels afterthought-y. Give it a clear button presentation.
   ========================================================================= */
@media (max-width: 820px) {
  .job-row__apply {
    display: inline-block;
    padding: 10px 18px;
    background: var(--gold-500);
    color: var(--green-900, #15281f);
    border-radius: 2px;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-top: 8px;
    text-decoration: none;
  }
  /* When treated as a button the trailing arrow becomes visual noise —
     the button itself is the affordance. */
  .job-row__apply::after { content: none; }
}

/* ========================================================================

/* ========================================================================
   MOBILE SAFETY FIXES (July 2026, v2) — Billy's real-device screenshots
   showed the earlier fix was wrong. Live 386px iframe test revealed:
     • h1 was 1244px wide inside a 386px viewport — the h1 grew to content
       width instead of wrapping. Root cause: .hero__inner uses grid, and
       grid items default to min-width:auto (content-based). Content-min
       kept the h1 from shrinking, so words rendered on a single overflowing
       line and iOS Safari cut them off on the right.
     • .hero__cta stayed at opacity:0 after .is-visible was applied because
       the om-reveal-up animation-delay + fill-mode combination doesn't
       always resolve on iOS. Force opacity:1 hard on the .is-visible state.
     • body.nav-open with touch-action:none locked the whole page after a
       missed nav toggle (removed earlier).
   ======================================================================== */
@media (max-width: 820px) {
  /* THE fix for hero clipping: min-width:0 on every ancestor that's a
     flex or grid item, so the chain can shrink below its content's
     intrinsic width. Also drop aspect-ratio on mobile — aspect-ratio
     12/5 + min-height 540px forced .hero to 1296px wide (540*12/5),
     which was the actual root cause of horizontal scroll. On mobile
     the hero can size by content height instead. */
  .hero,
  .page-hero { min-width: 0; overflow-x: clip; aspect-ratio: auto; max-width: 100vw; }
  .hero { min-height: auto; }
  .hero__inner,
  .page-hero__inner { min-width: 0; max-width: 100vw; }
  .hero__inner > *,
  .page-hero__inner > * { min-width: 0; max-width: 100%; }
  .hero__title,
  .hero__title.flyin,
  .page-hero h1,
  .page-hero .flyin {
    min-width: 0;
    max-width: 100%;
    overflow: hidden; /* keep the vertical clip for the word-rise animation */
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  /* Force per-word wrapping so long words never blow past viewport width. */
  .flyin .word,
  .hero__title .word,
  .page-hero .word {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: normal; /* normal so words wrap at spaces first */
  }

  /* Guarantee reveal-state visibility. If the om-reveal-up animation
     doesn't resolve (iOS Safari + animation-delay + iframe timing edge
     cases), .is-visible must still show the content. */
  [data-reveal].is-visible,
  .flyin.is-visible,
  .flyin.is-visible .word {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Explicit guarantee: hero button text/background must always render. */
  .hero__cta .btn,
  .page-hero .btn {
    color: var(--ink) !important;
    background: var(--gold-500) !important;
  }
}

/* Case study Finished Property gallery — 3-col grid → 2 on tablet → 1 on mobile */
@media (max-width: 900px) {
  .cs-gallery-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 560px) {
  .cs-gallery-grid { grid-template-columns: 1fr !important; }
}

/* =========================================================================
   IMAGE OPTIMIZATION — WebP variants for --photo backgrounds
   =========================================================================
   sync-media-library.js now emits both a .jpg and a .webp for every DAM asset,
   and inject-heroes.js sets BOTH --photo (jpg fallback) and --photo-webp on
   every hero/banner/card element. Modern browsers get the WebP variant
   automatically via image-set(); older browsers ignore the rule and stay on
   the JPEG. WebP compresses ~30% smaller than same-quality JPEG on
   photographic content, so this is a page-weight win at zero visual cost.
   ========================================================================= */
@supports (background-image: image-set(url('a.webp') type('image/webp'))) {
  /* Override --photo itself (not background-image), so the surrounding
     background stack — gradient overlays for legibility — stays intact. */
  [style*="--photo-webp"] {
    --photo: image-set(
      var(--photo-webp) type('image/webp'),
      var(--photo-jpg) type('image/jpeg')
    );
  }
}

/* =========================================================================
   VALUE CARDS — EQUAL-HEIGHT LAYOUT WITH BOTTOM-ALIGNED CTAs
   =========================================================================
   .value cards were rendering with different heights and CTA buttons at
   different vertical positions because paragraphs vary in length. Making
   the card a flex column so:
     - cards stretch to equal height (parent grid already aligns stretch)
     - the CTA gets pushed to the bottom via margin-top:auto
     - button text renders centered and full-width for consistent visual
       weight across the row
   Applied to /maintenance, /enhancements, /design-build hubs and any
   other page using the values-grid + value pattern.
   ========================================================================= */
.value {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.value .btn,
.value .btn-outline {
  margin-top: auto !important;
  text-align: center;
  width: 100%;
  align-self: stretch;
  box-sizing: border-box;
  padding-top: 16px;
  padding-bottom: 16px;
  line-height: 1.25;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* =========================================================================
   POST FIGURE — inline photo blocks inside news / tip article bodies.
   The inner .media element carries data-ml-hero so the DAM script populates
   the image on page load. Falls back to the dark-green placeholder tile.
   ========================================================================= */
.post-figure {
  margin: 32px 0;
}
.post-figure .media {
  aspect-ratio: 3/2;
  border-radius: 2px;
}
.post-figure figcaption {
  margin-top: 10px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  text-align: center;
  font-style: italic;
}

/* =========================================================================
   SPLIT LIST COLUMN — align checklist to body copy, not the heading
   (July 2026 design feedback).
   .split uses align-items:stretch, so a .split__copy column built as
   "label paragraph + .feature-list" (no <h2>) was top-aligned to the row —
   meaning the checklist visually started level with the OPPOSITE column's
   <h2> instead of the paragraph text beside it.
   Fix: push these list-only columns down by the rendered height of one h2
   (these headings consistently wrap to ~2 lines at this column width) plus
   its margin-bottom, so the list's first line reads level with the body
   copy next to it. Desktop only — below 820px .split stacks to a single
   column and no offset is needed (reset to 0 there).
   Applies site-wide to every sub-page using the split + feature-list
   pattern (maintenance, enhancements, design-build, commercial,
   service-areas, about, careers, contact, news, case-studies, etc.) with
   no HTML changes required.
   ========================================================================= */
.split__copy:has(> .feature-list) {
  margin-top: calc(clamp(37.5px, 3.4vw, 55px) * 1.15 * 2 + 20px);
}
@media (max-width: 820px) {
  .split__copy:has(> .feature-list) {
    margin-top: 0;
  }
}
