/* =============================================================
   AJ Home Builders - Luxury Landing
   Brand: navy #013858 / coastal #2BAEC2 / Barlow Semi Condensed + Open Sans
   Shape system: all-sharp (radius 0)
   Theme: "Coastal Atlas" - deep-navy dark, coastal accent, gallery air
   ============================================================= */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Barlow Semi Condensed';
  src: url('../fonts/barlow-semi-condensed-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow Semi Condensed';
  src: url('../fonts/barlow-semi-condensed-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow Semi Condensed';
  src: url('../fonts/barlow-semi-condensed-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/open-sans-variable.woff2') format('woff2');
  font-weight: 300 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/open-sans-400-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Brand navy + coastal accent (accent hue unchanged) */
  --navy: #013858;
  --navy-deep: #04263A;     /* CTA band */
  --navy-footer: #03161F;   /* footer, deepest */
  --accent: #2BAEC2;        /* coastal - accent on dark + button fills */
  --accent-ink: #3CC0D3;    /* brighter coastal for small accent text/lines on dark */
  --accent-deep: #4AC6D8;   /* accent button hover (brightens = lift on dark) */
  --on-accent: #021A26;     /* near-black navy text on accent buttons */

  /* Deep-navy surfaces */
  --paper: #051E2B;         /* page base */
  --white: #0A3040;         /* elevated surface: cards, form, nav buttons */
  --band: #082836;          /* alternating section band */
  --mist: #082836;

  /* Light ink on dark */
  --ink: #ECF2F5;
  --body: #A3B7C2;
  --muted: #6E8794;

  /* Hairlines (light on dark) */
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.20);
  --line-dark: rgba(255, 255, 255, 0.12);

  --font-display: 'Barlow Semi Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Open Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 260ms;  /* hover + state feedback */
  --t-base: 600ms;  /* the one entrance: reveals, image settle, FAQ, video */
  --t-slow: 900ms;  /* hero entrance only */
  --container: 1280px;
  --container-wide: 1400px;
  --gutter: clamp(1.25rem, 4vw, 2.75rem);
  --section: clamp(5.5rem, 10vw, 9.5rem);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0; }
p { margin: 0; }
::selection { background: var(--navy); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.icon { width: 1.25em; height: 1.25em; flex: none; }
#top-sentinel { position: absolute; top: 0; width: 1px; height: 1px; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 0.75rem 1.25rem;
  font: 600 0.9rem var(--font-body);
}
.skip-link:focus { left: 0; }

/* ---------- Type scale ---------- */
.h-display {
  font-size: clamp(2.4rem, 5.4vw, 4.35rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.005em;
}
.h-section {
  font-size: clamp(1.9rem, 3.4vw, 2.85rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.h-card { font-size: clamp(1.3rem, 1.8vw, 1.6rem); font-weight: 600; line-height: 1.15; }
.lede { font-size: 1.0625rem; max-width: 58ch; }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .lede { margin-top: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.84rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 1.05rem 1.8rem;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.7); color: #fff;
  background: rgba(2, 43, 67, 0.18);
}
.btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; transform: translateY(-1px); }

.text-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.84rem; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--navy);
}
.text-link .icon { transition: transform var(--t-fast) var(--ease); width: 1.05em; height: 1.05em; }
.text-link:hover .icon { transform: translateX(4px); }

/* ---------- Reveal motion ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(60px) scale(0.97);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--rd, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* =============================================================
   Header
   ============================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(2, 43, 67, 0.08); }

/* Home: nav floats transparently over the hero, turns solid white on scroll */
.home .site-header { position: fixed; left: 0; right: 0; }
.home .site-header:not(.is-scrolled) {
  background: linear-gradient(to bottom, rgba(2, 31, 49, 0.55), rgba(2, 31, 49, 0));
  border-bottom-color: transparent;
}
.home .site-header:not(.is-scrolled) .nav-links a,
.home .site-header:not(.is-scrolled) .nav-phone,
.home .site-header:not(.is-scrolled) .nav-toggle { color: #fff; }
.home .site-header:not(.is-scrolled) .nav-logo img { filter: brightness(0) invert(1); }
.home .site-header:not(.is-scrolled) .nav-phone-sm { color: #fff; border-color: rgba(255, 255, 255, 0.6); }

body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; height: 76px;
}
.nav-logo img { height: 48px; width: auto; transition: filter var(--t-fast) var(--ease); }
.nav-links { display: flex; align-items: center; gap: clamp(1.2rem, 2.2vw, 2.1rem); list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.84rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink);
  padding-block: 0.4rem;
  background-image: linear-gradient(var(--accent-ink), var(--accent-ink));
  background-repeat: no-repeat;
  background-size: 0% 2px;
  background-position: left bottom;
  transition: background-size var(--t-fast) var(--ease);
}
.nav-links a:hover { background-size: 100% 2px; }
.nav-actions { display: flex; align-items: center; gap: 1.4rem; }
.nav-phone {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.04em; color: var(--navy);
}
.nav-phone .icon { width: 1.1em; height: 1.1em; }
.nav-phone:hover { color: var(--accent-ink); }
.nav-cta { padding: 0.85rem 1.4rem; }
.nav-toggle {
  display: none;
  background: none; border: 0; padding: 0.5rem; margin-right: -0.5rem;
  color: var(--ink); cursor: pointer;
}
.nav-toggle .icon { width: 1.7rem; height: 1.7rem; }
.nav-toggle .icon-close { display: none; }

.nav-phone-sm { display: none; }
@media (max-width: 1023px) {
  .nav-links, .nav-phone { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-bar { height: 68px; gap: 1rem; }
  .nav-logo img { height: 40px; }
  .nav-cta { padding: 0.7rem 1.05rem; font-size: 0.76rem; }
}
@media (max-width: 639px) {
  .nav-cta { display: none; }
  .nav-phone-sm {
    display: grid; place-items: center;
    width: 42px; height: 42px;
    border: 1px solid var(--line);
    color: var(--navy);
  }
  .nav-phone-sm .icon { width: 1.25rem; height: 1.25rem; }
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed; inset: 68px 0 0 0; z-index: 99;
  background: var(--navy-deep);
  padding: 2.5rem var(--gutter) 3rem;
  overflow-y: auto;
}
body.menu-open .mobile-menu { display: block; }
body.menu-open { overflow: hidden; }
body.menu-open .nav-toggle .icon-open { display: none; }
body.menu-open .nav-toggle .icon-close { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li + li { border-top: 1px solid var(--line-dark); }
.mobile-menu a:not(.btn) {
  display: block; padding: 1.05rem 0;
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 600;
  letter-spacing: 0.02em; color: #fff;
}
.mobile-menu .mobile-menu-cta { margin-top: 2rem; display: grid; gap: 1rem; }
.mobile-menu .nav-phone { display: inline-flex; color: #fff; font-size: 1.15rem; }

/* =============================================================
   Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex; align-items: center;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
/* Soft scrim: a translucent "cloud" concentrated behind the hero copy
   that fades outward so the rest of the photo stays visible. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 66% 85% at 29% 50%,
      rgba(1, 24, 40, 0.94) 0%,
      rgba(1, 24, 40, 0.78) 26%,
      rgba(1, 24, 40, 0.50) 48%,
      rgba(1, 24, 40, 0.20) 72%,
      rgba(1, 24, 40, 0) 100%),
    linear-gradient(to top, rgba(1, 24, 40, 0.34) 0%, rgba(1, 24, 40, 0) 24%);
}
.hero > .container { width: 100%; }
.hero-inner { width: 100%; max-width: 42rem; padding-block: clamp(5rem, 10vh, 7rem); }
.hero-eyebrow {
  display: flex; align-items: center; gap: 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(0.8rem, 1.1vw, 0.92rem);
  font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: #fff; margin-bottom: clamp(1rem, 2vw, 1.5rem);
}
.hero-eyebrow::before { content: ""; width: 2.4rem; height: 2px; background: var(--accent); flex: none; }
.hero-eyebrow, .hero h1, .hero .lede { text-shadow: 0 2px 28px rgba(2, 24, 40, 0.30); }
.hero h1 { color: #fff; max-width: 14em; }
.hero h1 .accent { color: var(--accent); }
.hero .lede {
  color: rgba(255, 255, 255, 0.92);
  margin-top: 1.5rem;
  max-width: 46ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.hero-scroll {
  position: absolute; left: 50%; bottom: clamp(1.4rem, 4vh, 2.4rem);
  transform: translateX(-50%); z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 0.55rem;
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
.hero-scroll:hover { color: #fff; }
.hero-scroll .icon { width: 1.05rem; height: 1.05rem; }
.br-lg { display: none; }
@media (min-width: 768px) { .br-lg { display: inline; } }
@media (max-width: 639px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-scroll { display: none; }
  /* Content is full-width and centered on phones: use a wide horizontal
     band behind the copy that fades up and down into the photo. */
  .hero::after {
    background:
      radial-gradient(ellipse 100% 68% at 50% 48%,
        rgba(1, 24, 40, 0.90) 0%,
        rgba(1, 24, 40, 0.66) 36%,
        rgba(1, 24, 40, 0.32) 62%,
        rgba(1, 24, 40, 0) 92%),
      linear-gradient(to top, rgba(1, 24, 40, 0.36) 0%, rgba(1, 24, 40, 0) 24%);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .js .hero-eyebrow, .js .hero h1, .js .hero .lede, .js .hero-cta {
    animation: hero-up var(--t-slow) var(--ease) both;
  }
  .js .hero h1 { animation-delay: 0.08s; }
  .js .hero .lede { animation-delay: 0.16s; }
  .js .hero-cta { animation-delay: 0.24s; }
}
@keyframes hero-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* =============================================================
   Hero scroll-scrub track (pin)
   Inert by default. JS adds html.has-scrub only on capable desktops,
   which turns the wrapper into a tall pinned track that maps scroll
   progress to the hero video's currentTime. Mobile / reduced-motion /
   data-saver never get .has-scrub, so the hero stays a normal one
   screen static poster hero.
   ============================================================= */
.hero-track { position: relative; }

/* 250dvh = 150dvh of scrub travel + 100dvh visible. One number tunes
   the scrub length: higher = slower/finer, lower = faster. */
html.has-scrub .hero-track { height: 250dvh; }
html.has-scrub .hero {
  position: sticky; top: 0;
  height: 100dvh; min-height: 100dvh;
}

/* Injected scrub video shares the poster's layer (.hero-media is
   position:absolute; inset:0; z-index:-2), so it sits behind the scrim
   and text. Opacity-only reveal => zero layout shift. */
.hero-media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
  pointer-events: none;
}
.hero-media[data-video-ready] video { opacity: 1; }

/* Safety: if reduced motion is on, never pin even if .has-scrub slips
   through; collapse the track back to a normal static hero. */
@media (prefers-reduced-motion: reduce) {
  html.has-scrub .hero-track { height: auto; }
  html.has-scrub .hero { position: relative; height: auto; min-height: 100dvh; }
}

/* =============================================================
   Proof strip
   ============================================================= */
.proof { background: var(--white); border-bottom: 1px solid var(--line); }
.proof-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
}
.proof-item {
  display: flex; align-items: center; justify-content: center; gap: 0.7rem;
  padding: 1.6rem 1rem;
  font-family: var(--font-display);
  font-size: 0.84rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink);
  text-align: center;
}
.proof-item + .proof-item { border-left: 1px solid var(--line); }
.proof-item .icon { color: var(--navy); width: 1.35em; height: 1.35em; }
@media (max-width: 879px) {
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-item { justify-content: flex-start; text-align: left; padding: 1.1rem 0.5rem; }
  .proof-item:nth-child(odd) { border-left: 0; }
  .proof-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* =============================================================
   Services
   ============================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}
.service-tile {
  position: relative; display: flex; align-items: flex-end;
  overflow: hidden;
  min-height: 320px;
  isolation: isolate;
}
.service-tile img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-fast) var(--ease);
}
.service-tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(2, 30, 46, 0.88) 0%, rgba(2, 30, 46, 0.38) 45%, rgba(2, 30, 46, 0.05) 70%);
}
.service-tile:hover img { transform: scale(1.045); }
@media (prefers-reduced-motion: reduce) { .service-tile:hover img { transform: none; } }
.service-tile-body { padding: clamp(1.5rem, 3vw, 2.4rem); }
.service-tile h3 { color: #fff; }
.service-tile p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem; line-height: 1.65;
  margin-top: 0.6rem; max-width: 44ch;
}
.service-tile .text-link { color: #fff; margin-top: 1.1rem; }
.tile-main { grid-column: span 7; min-height: 560px; }
.tile-stack { grid-column: span 5; display: grid; gap: 1.5rem; grid-template-rows: 1fr 1fr; }
.tile-stack .service-tile { min-height: 268px; }

.services-more {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.services-more a {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  border-top: 1px solid var(--navy);
  padding-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.02rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--ink);
}
.services-more a .icon { color: var(--accent-ink); transition: transform var(--t-fast) var(--ease); width: 1.1em; height: 1.1em; }
.services-more a:hover .icon { transform: translateX(4px); }
.services-more a:hover { color: var(--navy); }

@media (max-width: 1023px) {
  .services-grid { grid-template-columns: 1fr; }
  .tile-main, .tile-stack { grid-column: 1 / -1; }
  .tile-main { min-height: 420px; }
  .services-more { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 639px) {
  .tile-stack { grid-template-rows: none; }
  .tile-stack .service-tile { min-height: 300px; }
  .services-more { grid-template-columns: 1fr; gap: 1.1rem; }
}

/* =============================================================
   About / craftsmanship
   ============================================================= */
.about { background: var(--white); border-block: 1px solid var(--line); }
.about-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.about-media { grid-column: span 5; position: relative; }
.about-media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.about-media::before {
  content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border: 1px solid var(--line); z-index: -1;
}
.about-body { grid-column: span 7; }
.about-body .lede { margin-top: 1.3rem; }
.values { margin-top: 2.4rem; border-top: 1px solid var(--line); }
.value-row {
  display: grid; grid-template-columns: auto 1fr; gap: 1.25rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.value-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--navy);
  color: var(--navy);
}
.value-icon .icon { width: 1.35rem; height: 1.35rem; }
.value-row h3 { font-size: 1.12rem; }
.value-row p { font-size: 0.97rem; margin-top: 0.25rem; }

@media (max-width: 1023px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media, .about-body { grid-column: 1 / -1; }
  .about-media { max-width: 540px; }
}

/* =============================================================
   Process
   ============================================================= */
.process { background: var(--mist); }
.process-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
}
.process-intro { grid-column: span 4; }
.process-intro .lede { margin-top: 1.1rem; }
.process-steps { grid-column: span 8; }
.process-step {
  display: grid; grid-template-columns: minmax(150px, 230px) 1fr;
  gap: 1.5rem;
  padding-block: 1.7rem;
  border-top: 1px solid rgba(1, 56, 88, 0.25);
}
.process-step:last-child { border-bottom: 1px solid rgba(1, 56, 88, 0.25); }
.process-step h3 { font-size: 1.3rem; color: var(--navy); }
.process-step p { font-size: 1rem; }
@media (max-width: 1023px) {
  .process-grid { grid-template-columns: 1fr; }
  .process-intro, .process-steps { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  .process-step { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* =============================================================
   Showcase break
   ============================================================= */
.showcase {
  position: relative; isolation: isolate;
  min-height: min(72vh, 680px);
  display: flex; align-items: flex-end;
}
.showcase-media { position: absolute; inset: 0; z-index: -2; }
.showcase-media img { width: 100%; height: 100%; object-fit: cover; }
.showcase::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(10deg, rgba(2, 32, 50, 0.62) 0%, rgba(2, 32, 50, 0.08) 55%);
}
.showcase-card {
  margin-block: clamp(3rem, 8vh, 5rem);
  max-width: 34rem;
}
.showcase-card h2 { color: #fff; }
.showcase-card p { color: rgba(255, 255, 255, 0.9); margin-top: 1rem; }
.showcase-card .btn { margin-top: 1.8rem; }

/* =============================================================
   Testimonials
   ============================================================= */
.reviews-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; margin-bottom: clamp(2.2rem, 4vw, 3.2rem);
}
.reviews-nav { display: flex; gap: 0.6rem; }
.reviews-nav button {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--white);
  border: 1px solid var(--navy);
  color: var(--navy); cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.reviews-nav button:hover { background: var(--navy); color: #fff; }
.reviews-nav button:disabled { opacity: 0.3; pointer-events: none; }
.reviews-nav .icon { width: 1.2rem; height: 1.2rem; }
.reviews-track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: min(420px, 82%);
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}
.reviews-track::-webkit-scrollbar { display: none; }
.review-card {
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2rem;
  display: flex; flex-direction: column; gap: 1.2rem;
}
.review-stars { display: flex; gap: 0.25rem; color: var(--navy); }
.review-stars .icon { width: 1rem; height: 1rem; }
.review-card blockquote {
  margin: 0; font-style: italic;
  font-size: 1rem; line-height: 1.7;
  color: var(--body);
  flex: 1;
}
.review-card figcaption { display: flex; flex-direction: column; gap: 0.1rem; }
.review-card cite {
  font-style: normal; font-family: var(--font-display);
  font-weight: 600; font-size: 1rem; color: var(--ink);
}
.review-card span { font-size: 0.82rem; color: var(--muted); }

/* =============================================================
   Service area
   ============================================================= */
.area { background: var(--white); border-block: 1px solid var(--line); }
.area-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
.area-intro { grid-column: span 5; }
.area-intro .lede { margin-top: 1.1rem; }
.area-towns { grid-column: span 7; display: flex; flex-wrap: wrap; gap: 0.7rem; }
.area-towns li { list-style: none; }
.area-towns { padding: 0; margin: 0; }
.area-towns span {
  display: inline-block;
  border: 1px solid var(--line);
  padding: 0.55rem 1.05rem;
  font-family: var(--font-display);
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy);
  background: var(--paper);
}
@media (max-width: 1023px) {
  .area-grid { grid-template-columns: 1fr; }
  .area-intro, .area-towns { grid-column: 1 / -1; }
}

/* =============================================================
   FAQ
   ============================================================= */
.faq-list { max-width: 50rem; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.4rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.18rem; font-weight: 600; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon {
  color: var(--navy); width: 1.15rem; height: 1.15rem;
  transition: transform var(--t-fast) var(--ease);
}
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item summary:hover { color: var(--navy); }
.faq-body { padding: 0 0 1.5rem; max-width: 62ch; font-size: 1rem; }

/* =============================================================
   CTA / quote form
   ============================================================= */
.cta { background: var(--navy-deep); }
.cta-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(2.5rem, 5vw, 5rem); align-items: start;
}
.cta-body { grid-column: span 6; }
.cta-body h2 { color: #fff; }
.cta-body .lede { color: rgba(255, 255, 255, 0.85); margin-top: 1.2rem; }
.cta-phone { margin-top: 2.4rem; }
.cta-phone-label {
  font-family: var(--font-display);
  font-size: 0.84rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}
.cta-phone a {
  display: inline-flex; align-items: center; gap: 0.8rem;
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700;
  color: #fff;
}
.cta-phone a .icon { color: var(--accent); width: 1em; height: 1em; }
.cta-phone a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.cta-ticks { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; gap: 0.85rem; }
.cta-ticks li {
  display: flex; align-items: center; gap: 0.8rem;
  color: rgba(255, 255, 255, 0.9); font-size: 0.98rem;
}
.cta-ticks .icon { color: var(--accent); width: 1.2rem; height: 1.2rem; }

.quote-form {
  grid-column: span 6;
  background: var(--white);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
}
.quote-form h3 { font-size: 1.35rem; margin-bottom: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.form-field { display: flex; flex-direction: column; gap: 0.45rem; }
.form-field.is-full { grid-column: 1 / -1; }
.form-field label {
  font: 600 0.82rem var(--font-body);
  letter-spacing: 0.02em;
  color: var(--ink);
}
.form-field label .req { color: var(--accent); }
.form-field input,
.form-field select,
.form-field textarea {
  font: 400 0.97rem var(--font-body);
  color: var(--ink);
  background: var(--white);
  border: 1px solid #B9C9D2;
  padding: 0.85rem 1rem;
  border-radius: 0;
  width: 100%;
  appearance: none;
}
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%23013858'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1rem;
  padding-right: 2.6rem;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #62798A; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy);
}
.quote-form .btn { width: 100%; margin-top: 1.4rem; }
.form-note { display: none; }
.form-success {
  background: var(--mist);
  border: 1px solid var(--navy);
  color: var(--ink);
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}
.hp-field { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }

@media (max-width: 1023px) {
  .cta-grid { grid-template-columns: 1fr; }
  .cta-body, .quote-form { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* =============================================================
   Footer
   ============================================================= */
.site-footer { background: var(--navy-footer); color: rgba(255, 255, 255, 0.78); }
.footer-grid {
  display: grid; grid-template-columns: 4fr 2fr 2fr 3fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3.5rem, 6vw, 5rem);
}
.footer-brand img { height: 44px; width: auto; }
.footer-brand p { font-size: 0.93rem; margin-top: 1.4rem; max-width: 38ch; }
.footer-social { display: flex; gap: 0.7rem; margin-top: 1.6rem; }
.footer-social a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--line-dark);
  color: #fff;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.footer-social .icon { width: 1.2rem; height: 1.2rem; }
.footer-col h3 {
  color: #fff; font-size: 0.88rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 1.3rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.footer-col a { color: rgba(255, 255, 255, 0.78); font-size: 0.95rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-contact li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.95rem; }
.footer-contact .icon { color: var(--accent); margin-top: 0.25rem; width: 1.1rem; height: 1.1rem; }
.footer-contact a { color: #fff; font-weight: 600; }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-block: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
  font-size: 0.85rem;
}
.footer-bottom a { color: rgba(255, 255, 255, 0.78); }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 1023px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 639px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* =============================================================
   Motion polish: richer reveals + hover micro-interactions.
   Everything here degrades to static under reduced motion.
   ============================================================= */

/* Image zoom-settle: paired with [data-reveal], the image eases from
   slightly enlarged to its resting scale as the block reveals in. */
.js .reveal-zoom { overflow: hidden; }
.js .reveal-zoom img {
  transition: transform var(--t-base) var(--ease);
  transition-delay: var(--rd, 0ms);
}
.js [data-reveal].reveal-zoom:not(.is-in) img { transform: scale(1.06); }

/* Hover feedback (real pointers only, and never under reduced motion) */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  /* Cards are the one pick-up-able surface: a quiet lift, nothing else. */
  .review-card { transition: transform var(--t-fast) var(--ease); }
  .review-card:hover { transform: translateY(-3px); }

  /* Town pills: a calm navy fill, no lift. */
  .area-towns span {
    transition: background-color var(--t-fast) var(--ease),
                border-color var(--t-fast) var(--ease),
                color var(--t-fast) var(--ease);
  }
  .area-towns li:hover span { background: var(--navy); border-color: var(--navy); color: #fff; }
}

/* FAQ: smooth open/close. Progressive enhancement, browsers without
   ::details-content / interpolate-size simply snap (current behaviour). */
html { interpolate-size: allow-keywords; }
.faq-item::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size var(--t-base) var(--ease), content-visibility var(--t-base) var(--ease) allow-discrete;
}
.faq-item[open]::details-content { block-size: auto; }
@media (prefers-reduced-motion: reduce) {
  .faq-item::details-content { transition: none; }
}

/* =============================================================
   COASTAL ATLAS - deep-navy premium layer.
   Dark conversion + gallery refinements layered over the base so
   the hero / top section and all motion stay untouched. Token
   repoints (above) flip most colors; this block handles the
   remaining foreground colors, the section rhythm, and the
   signature gallery moves. No markup changes required.
   ============================================================= */

/* ---- Type: more presence, more air ---- */
.h-section { font-size: clamp(2.0rem, 3.6vw, 3.05rem); line-height: 1.07; letter-spacing: -0.014em; }
.lede { font-size: 1.1rem; line-height: 1.7; max-width: 54ch; }
.section-head { max-width: 48rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-head .lede { margin-top: 1.15rem; }

/* The section signature: a coastal rule above every section heading,
   drawing itself in as the heading reveals (hero uses .h-display, untouched). */
.h-section::before {
  content: ""; display: block;
  width: 2.4rem; height: 2px; background: var(--accent);
  margin-bottom: clamp(1.1rem, 2vw, 1.6rem);
  transform-origin: left center;
}
.js [data-reveal] .h-section::before {
  transform: scaleX(0);
  transition: transform var(--t-base) var(--ease);
  transition-delay: var(--rd, 0ms);
}
.js [data-reveal].is-in .h-section::before { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .h-section::before { transform: scaleX(1) !important; } }

/* ---- Foreground colors that the token repoint can't reach ---- */
a { color: var(--accent-ink); }
.text-link { color: var(--ink); }
.nav-phone, .nav-phone-sm { color: var(--ink); }
.nav-logo img { filter: brightness(0) invert(1); }
.site-header.is-scrolled { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38); }
::selection { background: var(--accent); color: var(--on-accent); }

/* ---- Section background rhythm (subtle gallery tones) ---- */
.proof { background: var(--band); border-block: 1px solid var(--line); border-bottom-color: var(--line); }
.about { background: var(--band); }
.process { background: var(--paper); }
.reviews { background: var(--band); }
.area { background: var(--paper); }
.faq { background: var(--band); }

/* ---- Proof strip ---- */
.proof-item .icon { color: var(--accent); }

/* ---- Services: tiles as mounted gallery plates ---- */
.service-tile { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10); }
.service-tile::after {
  background: linear-gradient(0deg, rgba(2, 16, 24, 0.92) 0%, rgba(2, 16, 24, 0.44) 46%, rgba(2, 16, 24, 0.05) 72%);
}
.tile-main { position: relative; }
.tile-main::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); z-index: 1; }
.service-tile .text-link {
  color: #fff;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat; background-size: 0% 2px; background-position: left bottom;
  padding-bottom: 3px; transition: background-size var(--t-fast) var(--ease);
}
.service-tile:hover .text-link { background-size: 100% 2px; }

/* services-more: a numbered contents index */
.services-more a { justify-content: flex-start; border-top-color: var(--line-strong); color: var(--ink); }
.services-more a .icon { color: var(--accent); margin-left: auto; }
.services-more a:hover { color: var(--accent-ink); }
.services-more { counter-reset: svc 4; }
.services-more a::before {
  content: counter(svc, decimal-leading-zero); counter-increment: svc;
  font-family: var(--font-display); font-weight: 600; color: var(--accent-ink);
  letter-spacing: 0.16em; margin-right: 0.85rem; font-size: 0.92rem;
}

/* ---- About: value icons + framed photo ---- */
.value-icon { border-color: var(--accent); color: var(--accent); }

/* ---- Process: a ruled schedule with tonal leading-zero numerals ---- */
.process-steps { counter-reset: step; }
.process-step {
  display: block; position: relative;
  grid-template-columns: none;
  padding: 2rem 0 2rem clamp(3.4rem, 6vw, 5.5rem);
  border-top: 1px solid var(--line);
}
.process-step:last-child { border-bottom: 1px solid var(--line); }
.process-step h3 { color: var(--ink); margin-bottom: 0.4rem; }
.process-step::before {
  content: counter(step, decimal-leading-zero); counter-increment: step;
  position: absolute; left: 0; top: 1.95rem;
  font-family: var(--font-display); font-weight: 600; line-height: 1;
  font-size: clamp(2rem, 3vw, 2.8rem); color: rgba(255, 255, 255, 0.18);
  transition: color var(--t-base) var(--ease);
}
.js .process-step.is-in::before { color: var(--accent-ink); }
@media (max-width: 639px) { .process-step { padding-left: 3rem; } }

/* ---- Showcase: a fuller cinematic plate ---- */
.showcase { min-height: min(78vh, 760px); }
.showcase::after { background: linear-gradient(8deg, rgba(2, 16, 24, 0.64) 0%, rgba(2, 16, 24, 0.04) 58%); }

/* ---- Reviews: box-free roman quotes with an oversized glyph ---- */
.reviews-nav button { background: var(--white); border-color: var(--line-strong); color: var(--ink); }
.reviews-nav button:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.review-stars { color: var(--accent); }
.review-card { background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--accent); padding: 2.4rem; }
.review-card blockquote { font-style: normal; color: var(--body); }
.review-card blockquote::before {
  content: "\201C"; display: block; font-family: var(--font-display);
  font-size: 2.6rem; line-height: 0.5; color: var(--accent-ink); margin-bottom: 0.5rem;
}
.review-card figcaption { border-top: 1px solid var(--line); padding-top: 1.1rem; margin-top: 0.3rem; }
.review-card cite { color: var(--ink); }

/* ---- Service area: pills as a typeset gazetteer ---- */
.area-towns span { background: var(--white); border-color: var(--line); color: var(--ink); }
.area-towns li:hover span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ---- FAQ ---- */
.faq-item summary { color: var(--ink); }
.faq-item summary .icon { color: var(--accent); }
.faq-item summary:hover { color: var(--accent-ink); }
.faq-body { color: var(--body); }

/* ---- CTA + form (dark elevated panel) ---- */
.quote-form { background: var(--white); border: 1px solid var(--line); }
.quote-form h3 { color: var(--ink); }
.form-field label { color: var(--ink); }
.form-field input, .form-field select, .form-field textarea {
  background-color: var(--paper); color: var(--ink); border-color: var(--line-strong);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--muted); }
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%232BAEC2'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline-color: var(--accent); border-color: var(--accent);
}
.form-success { background: rgba(43, 174, 194, 0.10); border-color: var(--accent); color: var(--ink); }

/* =============================================================
   Scroll-driven motion (Apple-style). Content rises into place as
   you scroll it into view, and the full-bleed showcase image drifts
   with parallax depth. Pure CSS scroll-driven animations - they run
   on the compositor (no JS scroll listeners), so they stay smooth.
   Unsupported browsers keep the IntersectionObserver reveal; reduced
   motion collapses everything to static.
   ============================================================= */
.showcase { overflow: hidden; }
.about-media { overflow: hidden; }
.about-media::before { display: none; }   /* drop the static frame - the image now zooms */

/* Parallax images keep a small base zoom so the JS drift never shows an
   edge. JS (main.js) drives translate each frame while they are in view.
   No JS / reduced motion = static image at natural scale. */
.js .has-parallax { transform: translate3d(0, 0, 0) scale(1.14); will-change: transform; }
@media (prefers-reduced-motion: reduce) { .js .has-parallax { transform: none; } }

/* =============================================================
   Quote drawer (slide-in form from any "Request a Consultation" CTA)
   ============================================================= */
.quote-drawer {
  position: fixed; inset: 0; z-index: 200; visibility: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 2rem);
}
.quote-drawer.is-open { visibility: visible; }
.quote-drawer-scrim {
  position: absolute; inset: 0; background: rgba(1, 10, 16, 0.62);
  opacity: 0; transition: opacity var(--t-base) var(--ease);
}
.quote-drawer.is-open .quote-drawer-scrim { opacity: 1; }
/* The panel scales open from the clicked button: JS sets transform-origin
   to the button's centre and animates scale(0.1) -> 1. */
.quote-drawer-panel {
  position: relative; z-index: 1;
  width: min(440px, 100%); max-height: 92dvh; overflow-y: auto;
  background: var(--white); border: 1px solid var(--line);
  padding: clamp(1.5rem, 3.2vw, 2.3rem);
  opacity: 0; transform: scale(0.1);
  transition: transform var(--t-base) var(--ease), opacity 0.28s var(--ease);
  will-change: transform, opacity;
}
/* Compact rhythm inside the modal so the whole form + CTA fit without scrolling */
.quote-drawer-panel .quote-drawer-eyebrow { margin-bottom: 0.25rem; }
.quote-drawer-panel .quote-drawer-title { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.quote-drawer-panel .quote-drawer-sub { font-size: 0.9rem; margin-top: 0.4rem; }
.quote-drawer-panel .quote-fields { gap: 0.6rem; margin-top: 0.9rem; }
.quote-drawer-panel .form-field { gap: 0.28rem; }
.quote-drawer-panel .form-field input,
.quote-drawer-panel .form-field select { padding: 0.62rem 0.85rem; }
.quote-drawer-panel .field-split { gap: 0.6rem; }
.quote-drawer-panel .field-split small { margin-top: 0.2rem; font-size: 0.74rem; }
.quote-drawer-panel .mock-captcha { padding: 0.5rem 0.8rem; }
.quote-drawer-panel .wpforms-container .wpforms-field { padding-bottom: 0.55rem !important; }
.quote-drawer-panel .wpforms-container input,
.quote-drawer-panel .wpforms-container select { padding: 0.62rem 0.85rem !important; }

/* Geolocation address: show only the single "Enter a location" autocomplete
   (Address Line 1). The addon fills the hidden Line 2 / City / State / Zip when
   a suggestion is picked, so just one clean field shows -- matching the live
   lead form on the current site. */
.wpforms-field-address .wpforms-field-row:not(:first-of-type) { display: none !important; }
.quote-drawer-fine { margin-top: 0.1rem; font-size: 0.85rem; }
@media (max-height: 860px) { .quote-drawer-panel .quote-drawer-sub { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .quote-drawer-scrim, .quote-drawer-panel { transition: none; }
}
.quote-drawer-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 42px; height: 42px; display: grid; place-items: center;
  background: none; border: 1px solid var(--line); color: var(--ink); cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.quote-drawer-close:hover { border-color: var(--accent); color: var(--accent); }
.quote-drawer-close .icon { width: 1.2rem; height: 1.2rem; }
.quote-drawer-eyebrow {
  font-family: var(--font-display); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 0.5rem;
}
.quote-drawer-title { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: clamp(1.55rem, 2.4vw, 1.95rem); line-height: 1.08; letter-spacing: -0.01em; }
.quote-drawer-sub { color: var(--body); font-size: 0.98rem; margin-top: 0.7rem; }
.quote-drawer-form { display: grid; gap: 1.1rem; margin-top: 1.7rem; }
.quote-drawer-form .btn { width: 100%; margin-top: 0.3rem; }
.quote-drawer-fine { font-size: 0.9rem; color: var(--muted); text-align: center; }
.quote-drawer-fine a { color: var(--accent-ink); font-weight: 600; }
body.drawer-open { overflow: hidden; }

/* =============================================================
   Quote form: preview mock fields + WPForms embed dark theming
   ============================================================= */
.quote-fields { display: grid; gap: 1.1rem; }
.quote-fields .btn { width: 100%; margin-top: 0.4rem; }
.field-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.field-split span { display: flex; flex-direction: column; }
.field-split small { color: var(--muted); font-size: 0.78rem; margin-top: 0.35rem; }
.mock-captcha {
  display: inline-flex; align-items: center; gap: 0.7rem;
  background: #f9f9f9; border: 1px solid #d3d3d3; border-radius: 3px;
  padding: 0.65rem 0.9rem; color: #222; font-size: 0.9rem; max-width: 304px;
}
.mock-captcha-box { width: 24px; height: 24px; background: #fff; border: 2px solid #c1c1c1; border-radius: 2px; flex: none; }
.mock-captcha-brand { margin-left: auto; font-size: 0.6rem; color: #9aa3a8; }

/* The real WordPress form (WPForms) themed onto the dark surface */
.quote-embed { margin-top: 0.2rem; }
.wpforms-container { margin: 0 !important; }
.wpforms-container .wpforms-field { padding: 0 0 1.05rem !important; }
.wpforms-container .wpforms-field-label,
.wpforms-container .wpforms-field-label-inline { color: var(--ink) !important; font: 600 0.82rem var(--font-body) !important; }
.wpforms-container .wpforms-field-sublabel { color: var(--muted) !important; font-weight: 400 !important; }
.wpforms-container .wpforms-required-label { color: var(--accent) !important; }
.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container input[type="tel"],
.wpforms-container input[type="url"],
.wpforms-container input[type="number"],
.wpforms-container select,
.wpforms-container textarea {
  background-color: var(--paper) !important; color: var(--ink) !important;
  border: 1px solid var(--line-strong) !important; border-radius: 0 !important;
  padding: 0.85rem 1rem !important; font: 400 0.97rem var(--font-body) !important;
}
.wpforms-container input::placeholder, .wpforms-container textarea::placeholder { color: var(--muted) !important; }
.wpforms-container input:focus, .wpforms-container select:focus, .wpforms-container textarea:focus {
  border-color: var(--accent) !important; outline: 2px solid var(--accent) !important; outline-offset: 0 !important; box-shadow: none !important;
}
.wpforms-container .wpforms-submit {
  background-color: var(--accent) !important; color: var(--on-accent) !important;
  border: 0 !important; border-radius: 0 !important;
  font: 600 0.84rem var(--font-display) !important; letter-spacing: 0.12em !important; text-transform: uppercase !important;
  padding: 1.05rem 1.8rem !important; width: 100% !important; cursor: pointer !important;
  transition: background-color var(--t-fast) var(--ease) !important;
}
.wpforms-container .wpforms-submit:hover { background-color: var(--accent-deep) !important; }
.wpforms-container .wpforms-field-description { color: var(--muted) !important; }

/* =============================================================
   Services as alternating full-bleed feature rows (product-page feel)
   ============================================================= */
.features { display: flex; flex-direction: column; gap: clamp(4rem, 9vw, 9rem); margin-top: clamp(3rem, 6vw, 5rem); }
.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.feature-media { display: block; overflow: hidden; align-self: stretch; }
.feature-media img { width: 100%; height: 100%; min-height: 56vh; object-fit: cover; }

/* Bold image entrance: each Services image wipes open the first time its row
   scrolls into view. Implemented as a keyframe that clips ONLY while it runs --
   with `.is-revealed` absent the image is fully visible, so a missed or failed
   observer callback can NEVER leave an image hidden. The observer (main.js) adds
   `.is-revealed` once and then unobserves, so the class never toggles -> the
   wipe cannot flicker. Clip-path is on the container, never the <img>, so it
   never fights parallax. */
@keyframes feature-wipe {
  from { clip-path: inset(0 0 100% 0); }
  to   { clip-path: inset(0 0 0 0); }
}
.js .feature .feature-media.is-revealed {
  animation: feature-wipe var(--t-slow) var(--ease) both;
}
@media (prefers-reduced-motion: reduce) {
  .js .feature .feature-media.is-revealed { animation: none; }
}
.feature-body { padding: clamp(2rem, 5vw, 4rem) clamp(2rem, 5vw, 5rem); max-width: 40rem; }
.feature:not(.feature-rev) .feature-body { justify-self: start; }
.feature-rev .feature-media { order: 2; }
.feature-rev .feature-body { order: 1; justify-self: end; }
.feature-index {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: 0.92rem; letter-spacing: 0.24em; color: var(--accent); margin-bottom: 1rem;
}
.h-feature {
  font-family: var(--font-display); font-weight: 600; color: var(--ink);
  font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.04; letter-spacing: -0.015em;
}
.feature-body p { margin-top: 1.15rem; max-width: 42ch; color: var(--body); }
.feature-body .text-link { margin-top: 1.7rem; color: var(--accent-ink); }
@media (max-width: 1023px) {
  .feature { grid-template-columns: 1fr; }
  .feature-media, .feature-rev .feature-media { order: 0; }
  .feature-body, .feature-rev .feature-body { order: 0; justify-self: stretch; max-width: none; padding: clamp(1.6rem, 5vw, 2.5rem) var(--gutter); }
  .feature-media img { min-height: 46vh; }
}

/* =============================================================
   INNER PAGES - "Coastal Atlas: Daylight"
   The homepage is the dark cinematic entry; the inner pages are the
   firm's daylight portfolio - a calm architectural light surface where
   long-form content (Services, About, FAQ, Blog, service pages, the
   bathroom calculator) reads cleanly in daylight, framed by the shared
   dark header and footer. Everything is scoped to body:not(.home):not(.ajhb-vv) and
   the #main content area, so the landing page and the dark chrome are
   untouched. Existing GenerateBlocks content (authored for a light
   background) renders as intended on this surface.
   ============================================================= */
body:not(.home):not(.ajhb-vv) {
  --page-surface: #f4f7f8;            /* architectural off-white, faint coastal-cool tint */
  --page-raised:  #ffffff;            /* cards / widgets */
  --page-ink:     #013858;            /* brand navy - headings */
  --page-body:    #34464f;            /* slate-navy - body text */
  --page-muted:   #5d7079;            /* captions, meta */
  --page-line:    rgba(1, 56, 88, 0.14);
  --page-line-strong: rgba(1, 56, 88, 0.24);
  --page-link:    #0a6076;            /* deepened coastal - readable on light */
  --page-link-hover: #02465a;
  background: var(--page-surface);
}

/* The light content panel between the dark header and dark footer */
body:not(.home):not(.ajhb-vv) #main {
  background: var(--page-surface);
  color: var(--page-body);
}

/* Page title (template <h1 class="h-section">): navy, with the coastal rule */
body:not(.home):not(.ajhb-vv) #main .h-section {
  color: var(--page-ink);
  font-size: clamp(2.15rem, 4.2vw, 3.25rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
body:not(.home):not(.ajhb-vv) #main .h-section::before { background: var(--accent); }

/* All headings inside content go navy (GenerateBlocks headings keep their own
   authored sizes/inline colors; this just guarantees a readable dark ink where
   the dark-theme token would otherwise paint them near-white). */
body:not(.home):not(.ajhb-vv) #main :is(h1, h2, h3, h4, h5, h6) { color: var(--page-ink); }

/* Prose body */
body:not(.home):not(.ajhb-vv) .entry-content { font-size: 1.075rem; line-height: 1.78; color: var(--page-body); }

/* Flow spacing for bare prose only - GenerateBlocks/core containers manage their own */
body:not(.home):not(.ajhb-vv) .entry-content > :is(p, h2, h3, h4, ul, ol, blockquote, hr, figure, table, pre)
  + :is(p, h2, h3, h4, ul, ol, blockquote, hr, figure, table, pre) { margin-top: 1.4rem; }
body:not(.home):not(.ajhb-vv) .entry-content > h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); margin-top: 2.6rem; line-height: 1.16; }
body:not(.home):not(.ajhb-vv) .entry-content > h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin-top: 2rem; line-height: 1.2; }
body:not(.home):not(.ajhb-vv) .entry-content :is(p, li) { max-width: 72ch; }

/* Inline text links (paragraphs/lists/quotes only - never button-like anchors) */
body:not(.home):not(.ajhb-vv) .entry-content :is(p, li, blockquote, td) a {
  color: var(--page-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in oklab, var(--page-link) 38%, transparent);
  transition: color var(--t-fast) var(--ease), text-decoration-color var(--t-fast) var(--ease);
}
body:not(.home):not(.ajhb-vv) .entry-content :is(p, li, blockquote, td) a:hover {
  color: var(--page-link-hover);
  text-decoration-color: currentColor;
}

/* Lists */
body:not(.home):not(.ajhb-vv) .entry-content :is(ul, ol) { padding-left: 1.5rem; }
body:not(.home):not(.ajhb-vv) .entry-content li + li { margin-top: 0.4rem; }
body:not(.home):not(.ajhb-vv) .entry-content li::marker { color: var(--accent); }

/* Blockquote: typeset, no side-stripe */
body:not(.home):not(.ajhb-vv) .entry-content blockquote {
  margin: 0; padding: 0;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.32;
  color: var(--page-ink);
}
body:not(.home):not(.ajhb-vv) .entry-content blockquote cite { display: block; margin-top: 0.7rem; font: 600 0.82rem var(--font-body); letter-spacing: 0.06em; color: var(--page-muted); font-style: normal; }

/* Rules, figures, tables */
body:not(.home):not(.ajhb-vv) .entry-content hr { border: 0; height: 1px; background: var(--page-line-strong); margin: 2.6rem 0; }
body:not(.home):not(.ajhb-vv) .entry-content figure { margin-inline: 0; }
body:not(.home):not(.ajhb-vv) .entry-content figure img { box-shadow: 0 16px 40px rgba(1, 32, 50, 0.12); }
body:not(.home):not(.ajhb-vv) .entry-content figcaption { color: var(--page-muted); font-size: 0.88rem; margin-top: 0.6rem; }
body:not(.home):not(.ajhb-vv) .entry-content table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
body:not(.home):not(.ajhb-vv) .entry-content :is(th, td) { padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--page-line); text-align: left; vertical-align: top; }
body:not(.home):not(.ajhb-vv) .entry-content th { color: var(--page-ink); font-family: var(--font-display); font-weight: 600; }

/* Core button blocks: align to brand, sharp */
body:not(.home):not(.ajhb-vv) .entry-content .wp-block-button__link {
  background: var(--accent); color: var(--on-accent); border-radius: 0;
  font-family: var(--font-display); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
body:not(.home):not(.ajhb-vv) .entry-content .wp-block-button__link:hover { background: var(--accent-deep); }

/* GenerateBlocks white/light containers read as raised panels on the off-white page */
body:not(.home):not(.ajhb-vv) .entry-content :is(.gb-container, .wp-block-group)[style*="background"] {
  box-shadow: 0 18px 44px rgba(1, 32, 50, 0.10);
}

/* =============================================================
   Services nav dropdown (restored). A hover/focus flyout listing the
   individual service pages under the primary "Services" item. Lives in
   the shared header, so it appears site-wide (home + inner) as before.
   ============================================================= */
.nav-links .has-dropdown { position: relative; }
.nav-links .has-dropdown > a { display: inline-flex; align-items: center; gap: 0.34rem; }
.nav-links .has-dropdown > a .nav-caret {
  width: 0.66em; height: 0.66em; flex: none; margin-top: 0.05em;
  transition: transform var(--t-fast) var(--ease);
}
.nav-links .has-dropdown:hover > a .nav-caret,
.nav-links .has-dropdown:focus-within > a .nav-caret { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute; top: 100%; left: -0.9rem;
  min-width: 256px; list-style: none; margin: 0;
  padding: 0.5rem 0;
  background: var(--white);
  border: 1px solid var(--line-strong);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.40);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility 0s linear var(--t-fast);
  z-index: 130;
}
/* invisible bridge so the hover gap between item and panel can't close it */
.nav-dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-links .has-dropdown:hover .nav-dropdown,
.nav-links .has-dropdown:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility 0s;
}
.nav-links .nav-dropdown a {
  display: block; padding: 0.62rem 1.3rem;
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); white-space: nowrap;
  background-image: none;            /* cancel the underline-grow from .nav-links a */
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.nav-links .nav-dropdown a:hover { background: rgba(255, 255, 255, 0.05); color: var(--accent-ink); }

/* Mobile: service sub-list under the Services item */
.mobile-menu .mobile-sub { list-style: none; margin: 0.2rem 0 0.5rem; padding: 0; }
.mobile-menu .mobile-sub li, .mobile-menu .mobile-sub li + li { border-top: 0; }
.mobile-menu .mobile-sub a:not(.btn) {
  padding: 0.5rem 0 0.5rem 1.1rem;
  font-size: 1.02rem; font-weight: 500; letter-spacing: 0.03em;
  color: var(--body);
}
.mobile-menu .mobile-sub a:not(.btn):hover { color: var(--accent-ink); }

/* Banner / CTA sections that sit on a dark photo or color get tagged
   .ajhb-on-dark by main.js. The GB Pro .gbp-section class is reused for BOTH
   dark photo banners and plain light content sections, so we can't key off it
   directly; the script classifies by actual backdrop. Tagged sections keep
   their overlaid text light; untagged sections take the navy page ink. */
body:not(.home):not(.ajhb-vv) #main .ajhb-on-dark :is(h1, h2, h3, h4, h5, h6) { color: #ffffff; }
body:not(.home):not(.ajhb-vv) #main .ajhb-on-dark :is(p, li) { color: rgba(255, 255, 255, 0.94); }
body:not(.home):not(.ajhb-vv) #main .ajhb-on-dark .gb-text:not(:is(h1, h2, h3, h4, h5, h6)) { color: rgba(255, 255, 255, 0.94); }
body:not(.home):not(.ajhb-vv) #main .ajhb-on-dark :is(p, li) a { color: #ffffff; text-decoration-color: rgba(255, 255, 255, 0.55); }

/* Brand-tint bands (e.g. the coastal sections) sit on a saturated mid-tone
   where dark navy ink reads better than white; main.js tags them .ajhb-on-tint
   and we pin their text to the page ink, overriding any authored coastal text
   that would otherwise vanish against the coastal background. Filled buttons
   keep their own label color. */
body:not(.home):not(.ajhb-vv) #main .ajhb-on-tint :is(h1, h2, h3, h4, h5, h6) { color: var(--page-ink); }
body:not(.home):not(.ajhb-vv) #main .ajhb-on-tint :is(p, li) { color: var(--page-ink); }
body:not(.home):not(.ajhb-vv) #main .ajhb-on-tint .gb-text:not([class*="button"]) { color: var(--page-ink); }
body:not(.home):not(.ajhb-vv) #main .ajhb-on-tint :is(p, li) a { color: var(--page-ink); text-decoration-color: rgba(1, 56, 88, 0.45); }

/* Bright-coastal copy on the light surface (tagged by main.js) deepened to the
   readable coastal so links and accent lines clear contrast. */
body:not(.home):not(.ajhb-vv) #main .ajhb-ink-deep { color: var(--page-link); }

/* =================================================================
   VOID & VEIN — INNER-PAGE LAYER (body.ajhb-vv)
   Append to the END of aj-home-builders/assets/css/main.css.
   Mostly-dark ultra-luxury surface; ivory marble as premium accent.
   Reuses existing tokens (--navy, --paper, --ink, --accent, --ease,
   --t-fast/base/slow) and the existing .js [data-reveal]/.is-in infra.
   EVERYTHING here is scoped to body.ajhb-vv; the .home page is
   never affected. All-sharp (radius 0). WCAG-AA throughout.
   ================================================================= */

/* ---------- Inner-page tokens (scoped so the homepage is untouched) ---------- */
body.ajhb-vv {
  /* Void surfaces */
  --v-void:      #04263A;  /* #main base */
  --v-void-deep: #03161F;  /* deepest sections / calculator backdrop */
  --v-band:      #013858;  /* standard navy void band */
  /* True 3-step elevation ladder (panels read as cast objects) */
  --v-elev-1:    #082836;
  --v-elev-2:    #0A3040;
  --v-elev-3:    #0E3B4D;
  /* Ivory / marble (the premium material) */
  --m-face:      #F4F1EA;
  --m-shadow:    #E7E2D6;
  --m-vein:      #D8D2C4;
  --m-ink:       #0C2230;  /* body on marble  ~15:1 */
  --m-head:      #013858;  /* headings on marble ~11:1 */
  --m-link:      #0B5E6F;  /* coastal link on marble, AA ~5.4:1 */
  /* Ink on dark */
  --v-ink:       #ECF2F5;  /* ~13.5:1 on void */
  --v-body:      #A3B7C2;  /* ~6.8:1 on void  */
  --v-muted:     #6E8794;  /* large display only */
  --v-meta:      #8FA6B2;  /* eyebrow / caption / field-label, AA ~4.9:1 on void */
  /* Hairlines on dark */
  --v-line:      rgba(236,242,245,0.12);
  --v-line-2:    rgba(236,242,245,0.22);
  --v-grid:      rgba(236,242,245,0.04);
  /* Rhythm */
  --v-section:   clamp(96px, 12vh, 184px);
  --v-gutter:    clamp(20px, 5vw, 64px);
  --v-panel-pad: clamp(32px, 4vw, 64px);
}

/* ---------- GLOBAL INVERSION: the void surface ---------- */
body.ajhb-vv {
  background: var(--v-void-deep);
  color: var(--v-body);
}
/* The lit gallery wall: one fixed warm light-pool (no hue) over the void. */
body.ajhb-vv::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%,
      rgba(251,248,242,0.05) 0%, rgba(251,248,242,0) 55%);
  transform: translateZ(0);
}
body.ajhb-vv #main {
  position: relative;
  z-index: 1;
  background: var(--v-void);
  /* measured void: a hairline pair at the container edges */
  background-image:
    linear-gradient(90deg, var(--v-grid) 0 1px, transparent 1px),
    linear-gradient(270deg, var(--v-grid) 0 1px, transparent 1px);
  background-size: 100% 100%;
  background-position:
    calc(50% - 620px) 0,
    calc(50% + 620px) 0;
  background-repeat: no-repeat;
}
body.ajhb-vv #main .container { max-width: 1240px; }

/* Light ink is the inner-page norm; coastal is reserved for active/hover. */
body.ajhb-vv #main,
body.ajhb-vv .entry-content { color: var(--v-body); }
body.ajhb-vv .entry-content :is(h1,h2,h3,h4) { color: var(--v-ink); }
body.ajhb-vv .entry-content :is(p, li) { color: var(--v-body); }
body.ajhb-vv .entry-content a:not(.btn):not([class*="gbp-button"]) {
  color: var(--accent-ink);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* Section rhythm + hairline separators (color changes are the exception) */
/* section rhythm left to GB Pro's own spacing */
body.ajhb-vv #main .gb-container + .gb-container {
  border-top: 1px solid var(--v-line);
}

/* ---------- Monumental H1 + the struck-chord hairline ---------- */
body.ajhb-vv #main .h-section,
body.ajhb-vv #main .entry-content > h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6.5vw, 5.25rem);
  line-height: 0.96;
  letter-spacing: -0.015em;
  color: var(--v-ink);
  max-width: 16ch;
  text-wrap: balance;
}
/* Two-tone editorial cadence (no gradient text): wrap trailing clause in
   <span class="vein-muted"> in WP, or it simply no-ops. */
body.ajhb-vv #main .vein-muted { color: var(--v-muted); }

/* Restyle the existing chunky ::before bar into a 1px x 64px coastal chord
   that DRAWS via scaleX from the left when its reveal fires. */
body.ajhb-vv #main .h-section::before,
body.ajhb-vv #main .entry-content > h1::before {
  content: "";
  display: block;
  width: 64px;
  height: 1px;
  margin-bottom: 24px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t-base) var(--ease);
}
body.ajhb-vv #main .h-section.is-in::before,
body.ajhb-vv #main .entry-content > h1.is-in::before { transform: scaleX(1); }

/* Eyebrow (replaces bright coastal labels) */
body.ajhb-vv #main .ajhb-eyebrow,
body.ajhb-vv #main .gbp-section__eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--v-meta);
  margin-bottom: 16px;
}

/* Ghost architect's plate numeral (Services / About) */
body.ajhb-vv #main .ajhb-plate { position: relative; }
body.ajhb-vv #main .ajhb-plate[data-numeral]::before {
  content: attr(data-numeral);
  position: absolute;
  top: -0.35em; left: -0.06em;
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 8rem;
  line-height: 1;
  color: rgba(236,242,245,0.06);
  pointer-events: none;
}
body.ajhb-vv #main .ajhb-plate > * { position: relative; z-index: 1; }

/* =================================================================
   HERO BANNER (.gbp-section with photo on an absolute .gb-element child)
   ================================================================= */
body.ajhb-vv #main .gbp-section {
  position: relative;
}
/* Bottom-anchored scrim so headline ink sits on void, not on busy photo. */
body.ajhb-vv #main .gbp-section:has(> .ajhb-hero-media)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(0deg,
    var(--v-void) 0%, rgba(4,38,58,0.65) 38%, rgba(4,38,58,0) 72%);
}
body.ajhb-vv #main .gbp-section__inner { position: relative; z-index: 2; }
/* The painted photo layer: settle 1.06 -> 1.0 (JS adds .ajhb-hero-media) */
body.ajhb-vv #main .gbp-section > [class*="gb-element-"] { z-index: 0; }
body.ajhb-vv #main .ajhb-hero-media {
  transform: scale(1.06);
  transition: transform var(--t-slow) var(--ease);
}
body.ajhb-vv #main .ajhb-hero-media.is-settled { transform: scale(1); }

/* =================================================================
   MARBLE PANELS — the brief's white/light cards, re-cast as quarried stone
   JS classifier adds .ajhb-marble to light-bg GB regions.
   ================================================================= */
body.ajhb-vv #main .ajhb-marble {
  position: relative;
  background: var(--m-face);
  color: var(--m-ink);
  border-radius: 0;
  padding: var(--v-panel-pad);
  box-shadow:
    inset 0 1px 0 var(--m-shadow),               /* base hairline where slab meets edge */
    0 30px 60px -30px rgba(0,0,0,0.55);           /* soft cast onto the void */
  overflow: clip;
}
/* (1) 2px top-light highlight — lit from above like stone in a vitrine */
body.ajhb-vv #main .ajhb-marble::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,0.85);
}
/* (2) a single faint vein, inset ~38% (one panel per view, never a pattern) */
body.ajhb-vv #main .ajhb-marble.ajhb-veined::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 38%;
  width: 1px;
  background: var(--m-vein);
  opacity: 0.5;
  pointer-events: none;
}
/* ink-on-stone recolor */
body.ajhb-vv #main .ajhb-marble :is(h1,h2,h3,h4) { color: var(--m-head); }
body.ajhb-vv #main .ajhb-marble :is(p, li, span) { color: var(--m-ink); }
body.ajhb-vv #main .ajhb-marble a:not(.btn):not(.gbp-button) { color: var(--m-link); }
/* buttons inside a marble panel flip to navy fill */
body.ajhb-vv #main .ajhb-marble :is(.gbp-button--primary, .btn-primary) {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
body.ajhb-vv #main .ajhb-marble :is(.gbp-button--primary, .btn-primary):hover {
  background: var(--navy-deep);
}

/* =================================================================
   COASTAL BAND — demoted from full coastal fill to deep-navy + one chord
   JS adds .ajhb-coastal-band to formerly-#2BAEC2 full-bleed regions.
   ================================================================= */
body.ajhb-vv #main .ajhb-coastal-band {
  position: relative;
  background: var(--v-elev-1);
}
body.ajhb-vv #main .ajhb-coastal-band::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--accent);          /* the single coastal hairline */
}
body.ajhb-vv #main .ajhb-coastal-band .ajhb-eyebrow,
body.ajhb-vv #main .ajhb-coastal-band .gbp-section__eyebrow {
  color: var(--accent-ink);           /* the one coastal-colored label */
}

/* =================================================================
   NAVY CTA BAND (rgba(1,57,89,0.97) half-column) — kept, full-bleed, raised
   JS adds .ajhb-cta-band.
   ================================================================= */
body.ajhb-vv #main .ajhb-cta-band {
  position: relative;
  background: rgba(1,57,89,0.97);
  margin-inline: calc(50% - 50vw);
  padding-inline: var(--v-gutter);
}
body.ajhb-vv #main .ajhb-cta-band::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--v-line-2);         /* top-light hairline = raised edge */
}
body.ajhb-vv #main .ajhb-cta-band :is(h1,h2,h3) { color: var(--v-ink); }
body.ajhb-vv #main .ajhb-cta-band .ajhb-eyebrow { color: var(--accent-ink); }
body.ajhb-vv #main .ajhb-cta-band .gbp-button--primary {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

/* =================================================================
   CALCULATOR — the hero marble moment: a single slab on the deepest void
   Container gets .ajhb-calc-void (deepest), card gets .ajhb-calc-slab.
   ================================================================= */
body.ajhb-vv #main .ajhb-calc-void { background: var(--v-void-deep); }
body.ajhb-vv #main .ajhb-calc-slab {
  position: relative;
  background: var(--m-face);
  color: var(--m-ink);
  padding: var(--v-panel-pad);
  border-radius: 0;
  box-shadow:
    inset 0 1px 0 var(--m-shadow),
    0 40px 80px -30px rgba(0,0,0,0.6);            /* strongest cast: floats like cut stone */
}
body.ajhb-vv #main .ajhb-calc-slab::before {       /* top-light, swept by JS */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,0.85);
  transform: scaleX(0);
  transform-origin: left center;
}
body.ajhb-vv #main .ajhb-calc-slab.is-cast::before {
  transform: scaleX(1);
  transition: transform var(--t-base) 120ms var(--ease);
}
body.ajhb-vv #main .ajhb-calc-slab :is(h1,h2,h3,h4) { color: var(--m-head); }
body.ajhb-vv #main .ajhb-calc-slab :is(p,li,label,span) { color: var(--m-ink); }
/* sharp inputs, marble-vein borders */
body.ajhb-vv #main .ajhb-calc-slab :is(input, select, textarea) {
  border-radius: 0;
  border: 1px solid var(--m-vein);
  background: #fff;
  color: var(--m-ink);
}
body.ajhb-vv #main .ajhb-calc-slab :is(input, select, textarea):focus {
  outline: none;
  border-color: var(--m-link);
  box-shadow: 0 0 0 1px var(--m-link);
}
/* primary action navy; coastal reserved for the progress hairline */
body.ajhb-vv #main .ajhb-calc-slab button[type="submit"],
body.ajhb-vv #main .ajhb-calc-slab .gbp-button--primary {
  border-radius: 0;
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy);
}
/* step indicator: coastal fill on a vein track */
body.ajhb-vv #main .ajhb-calc-slab [class*="progress"],
body.ajhb-vv #main .ajhb-calc-slab [role="progressbar"] {
  background: var(--m-vein);
  height: 2px;
  border-radius: 0;
}
body.ajhb-vv #main .ajhb-calc-slab [class*="progress"] > *,
body.ajhb-vv #main .ajhb-calc-slab [role="progressbar"] > * {
  background: var(--accent);
}
/* THE POUR — clip-path reveal, gated so its from-state is always visible.
   JS adds .ajhb-pourable (arms it) only after confirming IO is live, then
   toggles .is-cast. Without .ajhb-pourable the slab is fully open/visible. */
body.ajhb-vv #main .ajhb-calc-slab.ajhb-pourable {
  clip-path: inset(0 0 100% 0);
  transform: translateY(24px);
  transition: clip-path var(--t-slow) var(--ease),
              transform var(--t-slow) var(--ease);
}
body.ajhb-vv #main .ajhb-calc-slab.ajhb-pourable.is-cast {
  clip-path: inset(0 0 0 0);
  transform: none;
}

/* =================================================================
   WPFORMS (Contact) — keep dark, frame in an elev-1 panel
   ================================================================= */
body.ajhb-vv #main .wpforms-container {
  background: var(--v-elev-1);
  border: 1px solid var(--v-line);
  padding: var(--v-panel-pad);
}
body.ajhb-vv #main .wpforms-field-label { color: var(--v-body); }
body.ajhb-vv #main .wpforms-container :is(input, select, textarea) {
  border-radius: 0;
  background: var(--v-void);
  border: 1px solid rgba(236,242,245,0.18);
  color: var(--v-ink);
}
body.ajhb-vv #main .wpforms-container :is(input, select, textarea):focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
body.ajhb-vv #main .wpforms-container :is(input, textarea)::placeholder { color: var(--v-meta); opacity: 1; }
body.ajhb-vv #main .wpforms-container button[type="submit"] {
  border-radius: 0;
  background: var(--accent);
  color: var(--on-accent);
  border: 1px solid var(--accent);
}
body.ajhb-vv #main .wpforms-container button[type="submit"]:hover {
  background: var(--accent-deep);
}

/* =================================================================
   FAQ ACCORDION — answer-into-light: closed = hairline on void,
   open lifts that row OUT into a spotlit marble plinth.
   Works for native <details>/<summary> and GB accordion items.
   ================================================================= */
body.ajhb-vv #main .faq-item,
body.ajhb-vv #main .gb-accordion__item {
  border-top: 1px solid var(--v-line);
  background: transparent;
  transition: background-color var(--t-fast) var(--ease);
}
body.ajhb-vv #main :is(.faq-item, .gb-accordion__item) summary,
body.ajhb-vv #main .gb-accordion__toggle {
  list-style: none;
  cursor: pointer;
  color: var(--v-ink);
  font-family: var(--font-display);
  font-weight: 600;
  padding-block: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
body.ajhb-vv #main :is(.faq-item, .gb-accordion__item) summary::-webkit-details-marker { display: none; }
/* thin coastal +/- glyph */
body.ajhb-vv #main :is(.faq-item, .gb-accordion__item) summary::after {
  content: "+";
  font-weight: 400;
  color: var(--accent);
  transition: transform var(--t-fast) var(--ease);
}
body.ajhb-vv #main :is(.faq-item[open], .gb-accordion__item.is-open) summary::after {
  content: "\2212"; /* true minus sign (U+2212) */
}
/* OPEN = lifted marble plinth */
body.ajhb-vv #main :is(.faq-item[open], .gb-accordion__item.is-open) {
  background: var(--m-face);
  box-shadow: 0 24px 48px -28px rgba(0,0,0,0.55);
}
body.ajhb-vv #main :is(.faq-item[open], .gb-accordion__item.is-open) summary { color: var(--m-head); padding-inline: var(--v-panel-pad); }
body.ajhb-vv #main :is(.faq-item[open], .gb-accordion__item.is-open) summary::after { color: var(--m-link); }
body.ajhb-vv #main :is(.faq-item[open], .gb-accordion__item.is-open) :is(p,li) {
  color: var(--m-ink);
  padding-inline: var(--v-panel-pad);
  padding-bottom: var(--v-panel-pad);
}
/* answer height reveal (no layout animation of the answer text itself) */
body.ajhb-vv #main .gb-accordion__content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-base) var(--ease);
}
body.ajhb-vv #main .gb-accordion__item.is-open .gb-accordion__content { grid-template-rows: 1fr; }
body.ajhb-vv #main .gb-accordion__content > * { overflow: hidden; }

/* =================================================================
   GALLERY (Instagram feed) — strict 3-col sharp grid, void gutters
   ================================================================= */
body.ajhb-vv #main .ajhb-gallery,
body.ajhb-vv #main #sb_instagram #sbi_images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--v-line);
}
body.ajhb-vv #main #sbi_images .sbi_item,
body.ajhb-vv #main .ajhb-gallery > * {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: clip;
  background: var(--v-void);
}
body.ajhb-vv #main :is(.ajhb-gallery, #sbi_images) img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transform: scale(1);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
body.ajhb-vv #main :is(.ajhb-gallery, #sbi_images) :is(a:hover, a:focus-visible) img {
  opacity: 1;
  transform: scale(1.03);
}
/* coastal rule wipes in along the bottom edge on hover */
body.ajhb-vv #main #sbi_images .sbi_item::after,
body.ajhb-vv #main .ajhb-gallery > *::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-fast) var(--ease);
}
body.ajhb-vv #main :is(.ajhb-gallery > *:hover, #sbi_images .sbi_item:hover)::after { transform: scaleX(1); }
body.ajhb-vv #main .ajhb-gallery-caption {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--v-meta);
  padding-block: 0.75rem;
}

/* =================================================================
   BLOG / PRIVACY — editorial single column
   ================================================================= */
body.ajhb-vv.single #main .entry-content,
body.ajhb-vv.blog #main .entry-content {
  max-width: 68ch;
}
body.ajhb-vv #main .entry-content > h2 { margin-top: 2.5em; }
body.ajhb-vv #main .entry-content hr { border: 0; border-top: 1px solid var(--v-line); margin-block: var(--v-section); }

/* =================================================================
   MOTION — inner-page reveal classes the JS toggles. Vanish-proof:
   base state is visible UNLESS .js arms it AND the element is observed;
   reduced-motion forces the final state.
   ================================================================= */
/* void-rise (sections/elements) */
.js body.ajhb-vv #main [data-vrise] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
  transition-delay: var(--rd, 0ms);
}
.js body.ajhb-vv #main [data-vrise].is-in { opacity: 1; transform: none; }

/* marble-rise (panels) — opacity + translate + deepening cast shadow ONLY */
.js body.ajhb-vv #main .ajhb-marble[data-vmarble] {
  opacity: 0;
  transform: translateY(16px);
  box-shadow: inset 0 1px 0 var(--m-shadow), 0 12px 24px -22px rgba(0,0,0,0.4);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease);
}
.js body.ajhb-vv #main .ajhb-marble[data-vmarble].is-in {
  opacity: 1;
  transform: none;
  box-shadow: inset 0 1px 0 var(--m-shadow), 0 30px 60px -30px rgba(0,0,0,0.55);
}

/* hairline-draw (section dividers that opt in) */
.js body.ajhb-vv #main [data-vline] { position: relative; }
.js body.ajhb-vv #main [data-vline]::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--v-line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base) var(--ease);
}
.js body.ajhb-vv #main [data-vline].is-in::after { transform: scaleX(1); }

/* sticky-plate (the ONE pin): media holds while ivory text advances */
body.ajhb-vv #main .ajhb-pin-media {
  position: sticky;
  top: 84px; /* clears the sticky header */
  align-self: start;
}

/* Reduced-motion: collapse EVERYTHING to the final, fully-readable state. */
@media (prefers-reduced-motion: reduce) {
  body.ajhb-vv::before { display: none; }
  body.ajhb-vv #main [data-vrise],
  body.ajhb-vv #main .ajhb-marble[data-vmarble] {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  body.ajhb-vv #main .h-section::before,
  body.ajhb-vv #main [data-vline]::after,
  body.ajhb-vv #main .ajhb-calc-slab.ajhb-pourable {
    transform: none !important; clip-path: none !important; transition: none !important;
  }
  body.ajhb-vv #main .ajhb-hero-media { transform: none !important; }
  body.ajhb-vv #main .ajhb-pin-media { position: static; }
}

/* =================================================================
   VV coverage fixes — plugin TOC widget + secondary buttons on the void
   ================================================================= */
body.ajhb-vv #main [class*="ez-toc"] { background: var(--v-elev-1) !important; border-color: var(--v-line) !important; }
body.ajhb-vv #main [class*="ez-toc"] :is(a, span, li, p, label, button) { color: var(--v-body) !important; }
body.ajhb-vv #main [class*="ez-toc"] :is(a:hover, a:focus) { color: var(--accent-ink) !important; }
body.ajhb-vv #main .ez-toc-title { color: var(--v-ink) !important; }
body.ajhb-vv #main .gbp-button--secondary {
  background: transparent;
  color: var(--accent-ink);
  border: 1px solid var(--accent);
}
body.ajhb-vv #main .gbp-button--secondary:hover { background: var(--accent); color: var(--on-accent); }

/* VV button variants on the void (primary filled, tertiary text link) */
body.ajhb-vv #main .gbp-button--primary { background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent); }
body.ajhb-vv #main .gbp-button--primary:hover { background: var(--accent-deep); color: var(--on-accent); }
body.ajhb-vv #main .gbp-button--tertiary { background: transparent; color: var(--accent-ink); }

/* =========================================================
   Reviews marquee (homepage) — two auto-scrolling rows
   ========================================================= */
.reviews-marquee { display: flex; flex-direction: column; gap: clamp(1rem, 1.6vw, 1.6rem); margin-top: clamp(2.4rem, 4vh, 3.5rem); }
.rmrow { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.rmtrack { display: flex; gap: clamp(1rem, 1.6vw, 1.6rem); width: max-content; animation: rmscroll-left 130s linear infinite; will-change: transform; }
.rmrow--right .rmtrack { animation-name: rmscroll-right; animation-duration: 155s; }
.rmrow:hover .rmtrack { animation-play-state: paused; }
@keyframes rmscroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes rmscroll-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.rmcard { flex: 0 0 clamp(288px, 27vw, 376px); box-sizing: border-box; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--accent); padding: clamp(1.7rem, 2.1vw, 2.3rem); transition: border-color var(--t-fast) var(--ease); }
.rmcard:hover { border-color: var(--line-strong); border-top-color: var(--accent-ink); }
.rmstars { display: block; color: var(--accent-ink); font-size: 0.95rem; letter-spacing: 0.2em; line-height: 1; margin-bottom: 0.7rem; }
.rmcard blockquote { margin: 0; flex: 1; font-family: var(--font-body); font-size: clamp(1.02rem, 1.05vw, 1.12rem); line-height: 1.62; color: var(--ink); font-weight: 400; }
.rmcard blockquote::before { content: "\201C"; display: block; font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; line-height: 0.35; color: rgba(60, 192, 211, 0.45); margin-bottom: 0.55rem; }
.rmcard figcaption { display: flex; flex-direction: column; gap: 0.15rem; margin-top: 1.5rem; padding-top: 1.15rem; border-top: 1px solid var(--line); }
.rmcard cite { font-style: normal; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink); letter-spacing: 0.02em; }
.rmcard figcaption span { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.02em; color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .rmrow { overflow: visible; -webkit-mask: none; mask: none; }
  .rmtrack { animation: none; flex-wrap: wrap; justify-content: center; }
  .rmcard[aria-hidden] { display: none; }
}
@media (max-width: 560px) { .rmcard { flex-basis: 84vw; } }
