/* ============================================================
   Myrtle Beach Shower Door — Design System
   Deep marine + warm neutrals. Gojo hero / Nordic grid / Mira service rows.
   Display: Sentinel (Hoefler & Co). Body: Inter.
   ============================================================ */

@font-face { font-family: "Sentinel"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/sentinel-300-normal.woff") format("woff"); }
@font-face { font-family: "Sentinel"; font-weight: 300; font-style: italic; font-display: swap; src: url("../fonts/sentinel-300-italic.woff") format("woff"); }
@font-face { font-family: "Sentinel"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/sentinel-400-normal.woff") format("woff"); }
@font-face { font-family: "Sentinel"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/sentinel-400-italic.woff") format("woff"); }
@font-face { font-family: "Sentinel"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/sentinel-500-normal.woff") format("woff"); }
@font-face { font-family: "Sentinel"; font-weight: 500; font-style: italic; font-display: swap; src: url("../fonts/sentinel-500-italic.woff") format("woff"); }
@font-face { font-family: "Sentinel"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/sentinel-600-normal.woff") format("woff"); }
@font-face { font-family: "Sentinel"; font-weight: 600; font-style: italic; font-display: swap; src: url("../fonts/sentinel-600-italic.woff") format("woff"); }
@font-face { font-family: "Sentinel"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/sentinel-700-normal.woff") format("woff"); }
@font-face { font-family: "Sentinel"; font-weight: 700; font-style: italic; font-display: swap; src: url("../fonts/sentinel-700-italic.woff") format("woff"); }
@font-face { font-family: "Sentinel"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/sentinel-800-normal.woff") format("woff"); }
@font-face { font-family: "Sentinel"; font-weight: 800; font-style: italic; font-display: swap; src: url("../fonts/sentinel-800-italic.woff") format("woff"); }

:root {
  /* Color tokens — Two-Blues Palette
     Anchor = deep blue (main). Accent = clean spa-water blue. Cool whites + cool grays.
     Backup of prior marine/stone build lives in ../myrtle-beach-shower-door-v1-marine-*. */
  --ink: #0F3460;            /* Deep blue — primary (headlines, CTAs, seal body) */
  --ink-2: #1A4A87;          /* Brighter blue — hover / pressed */
  --ink-deep: #082244;       /* Footer, dark-over-image */
  --aqua: #8CC6DC;           /* Accent spa-water blue — accents on dark, dots */
  --aqua-deep: #4A97B8;      /* Accent blue, mid-tone — eyebrows on light, links */

  --bone: #FFFFFF;           /* Pure white background */
  --bone-2: #EAF2F9;         /* Pale-blue alt surface, quote bg */
  --stone: #C9DAE9;          /* Cool blue-gray dividers, borders */
  --stone-deep: #7B92A8;     /* Muted cool blue-gray, icon outlines */

  --charcoal: #1E2530;       /* Body copy (cool-biased dark) */
  --slate: #485261;          /* Secondary text, ledes */
  --slate-2: #6B7685;        /* Captions, metadata */

  --white: #FFFFFF;

  /* Type */
  --font-serif: "Sentinel", "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-sans: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Type scale (desktop) */
  --fs-display: clamp(48px, 7vw, 88px);
  --fs-h1:      clamp(36px, 5vw, 64px);
  --fs-h2:      clamp(28px, 3.8vw, 48px);
  --fs-h3:      clamp(22px, 2.4vw, 30px);
  --fs-h4:      clamp(18px, 1.6vw, 22px);
  --fs-body:    17px;
  --fs-body-lg: 19px;
  --fs-small:   14px;
  --fs-eyebrow: 12px;

  --lh-tight: 1.08;
  --lh-snug: 1.25;
  --lh-body: 1.6;

  /* Spacing */
  --px: clamp(24px, 5vw, 96px);      /* horizontal gutter */
  --py-s: clamp(32px, 4vw, 56px);
  --py-m: clamp(64px, 8vw, 112px);
  --py-l: clamp(96px, 12vw, 168px);

  /* Layout */
  --container: 1280px;
  --container-wide: 1440px;

  /* Radius */
  --r-xs: 2px;
  --r-s: 4px;
  --r-m: 8px;
  --r-l: 12px;

  /* Shadow */
  --shadow-soft: 0 8px 24px rgba(10, 31, 61, 0.08), 0 2px 4px rgba(10, 31, 61, 0.04);
  --shadow-lift: 0 20px 48px rgba(10, 31, 61, 0.14), 0 4px 12px rgba(10, 31, 61, 0.06);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-fast: 180ms;
  --dur-mid: 320ms;
  --dur-slow: 560ms;
}

/* Reset + base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--charcoal);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--aqua-deep); }
button { font: inherit; cursor: pointer; }

/* Type */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: var(--lh-tight);
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.display { font-size: var(--fs-display); line-height: 1.04; letter-spacing: -0.012em; font-weight: 400; }
h1, .h1 { font-size: var(--fs-h1); }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); }
h4, .h4 { font-size: var(--fs-h4); line-height: var(--lh-snug); }
p { margin: 0 0 1em; }
.lede { font-size: var(--fs-body-lg); line-height: 1.55; color: var(--slate); max-width: 62ch; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--aqua-deep);
  margin-bottom: 16px;
}
.eyebrow.on-dark { color: var(--aqua); }

/* Layout primitives */
.section { padding-top: var(--py-m); padding-bottom: var(--py-m); }
.section.sm { padding-top: var(--py-s); padding-bottom: var(--py-s); }
.section.lg { padding-top: var(--py-l); padding-bottom: var(--py-l); }
.wrap { padding-left: var(--px); padding-right: var(--px); }
.container { max-width: var(--container); margin-left: auto; margin-right: auto; }
.container-wide { max-width: var(--container-wide); margin-left: auto; margin-right: auto; }

/* Surfaces */
.surface-bone { background: var(--bone); }
.surface-bone-2 { background: var(--bone-2); }
.surface-stone { background: var(--stone); }
.surface-ink { background: var(--ink); color: var(--white); }
.surface-ink h1, .surface-ink h2, .surface-ink h3, .surface-ink h4,
.surface-ink-deep h1, .surface-ink-deep h2, .surface-ink-deep h3, .surface-ink-deep h4 { color: var(--white); }
.surface-ink-deep { background: var(--ink-deep); color: var(--bone); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-sans);
  font-size: 15px; font-weight: 600; letter-spacing: 0.02em;
  border-radius: var(--r-s);
  border: 1.5px solid transparent;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  cursor: pointer;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-primary:hover { background: var(--ink-2); border-color: var(--ink-2); color: var(--white); }

.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.btn-outline-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: var(--white); }

.btn-ghost { background: transparent; color: var(--ink); padding: 10px 0; border: none; border-bottom: 1.5px solid var(--ink); border-radius: 0; }
.btn-ghost:hover { color: var(--aqua-deep); border-bottom-color: var(--aqua-deep); }

.btn-lg { padding: 18px 34px; font-size: 16px; }

.btn .icon { width: 16px; height: 16px; }

/* Links */
.link-u { color: var(--ink); text-decoration: underline; text-decoration-color: var(--stone); text-underline-offset: 4px; transition: text-decoration-color var(--dur-fast) var(--ease); }
.link-u:hover { text-decoration-color: var(--ink); }

/* Chips / tags */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: var(--bone-2);
  color: var(--ink);
  border-radius: 99px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  border: 1px solid var(--stone);
}

/* Divider */
.divider { height: 1px; background: var(--stone); border: 0; margin: 0; }
.rule-thin { border-top: 1px solid var(--stone); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid rgba(10, 31, 61, 0.08);
  transition: background var(--dur-mid) var(--ease), border-color var(--dur-mid) var(--ease), box-shadow var(--dur-mid) var(--ease);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px;
  max-width: none; /* override .container so the header bar spans the full
                      viewport like the footer does. */
  transition: height var(--dur-mid) var(--ease);
}
@media (min-width: 861px) {
  .site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 6px 18px -10px rgba(15, 52, 96, 0.16);
  }
  .site-header.is-scrolled .bar { height: 62px; }
  .site-header.is-scrolled .brand-seal { height: 46px; width: auto; }
  .site-header.is-scrolled .brand-wordmark .title { font-size: 17px; }
  .site-header.is-scrolled .brand-wordmark .sub { font-size: 10px; }
  .brand-seal, .brand-wordmark .title, .brand-wordmark .sub {
    transition: width var(--dur-mid) var(--ease), height var(--dur-mid) var(--ease), font-size var(--dur-mid) var(--ease);
  }
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand [data-seal] { display: flex; flex-shrink: 0; }
.brand-seal {
  /* Height drives the size; width follows the regular pointy-top hex aspect
     (√3/2 ≈ 0.8660) so the SVG box equals the visible hex — no padding. */
  height: 60px; aspect-ratio: 218.2384 / 252; width: auto; flex-shrink: 0;
  display: block;
  overflow: visible;
}

/* Shower-drop animation — each dot drips, staggered by --i (0–7)
   On hover (brand), the shower "turns on"; otherwise drops are at rest. */
@keyframes drip {
  0%    { transform: translateY(0);     opacity: 1; }
  46%   { transform: translateY(14px);  opacity: 0; }
  46.1% { transform: translateY(-18px); opacity: 0; }
  68%   { transform: translateY(-18px); opacity: 0; }
  82%   { transform: translateY(0);     opacity: 1; }
  100%  { transform: translateY(0);     opacity: 1; }
}
.brand-seal .dots path {
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform, opacity;
}
/* Page-load shower (2 cycles, ~3.6s + stagger). Dot fill comes from the SVG
   linearGradient defined inside the seal — white at top, aqua at bottom. */
.brand-seal.is-raining .dots path {
  animation: drip 1.8s cubic-bezier(0.55, 0.1, 0.35, 1) 2;
  animation-delay: calc(var(--i, 0) * 0.18s);
}
.brand:hover .brand-seal .dots path,
.brand:focus-visible .brand-seal .dots path {
  animation: drip 1.8s cubic-bezier(0.55, 0.1, 0.35, 1) infinite;
  animation-delay: calc(var(--i, 0) * 0.18s);
}
@media (prefers-reduced-motion: reduce) {
  .brand-seal .dots path { animation: none !important; }
}

/* Floating "← Back to Presentation" button — always rendered on every demo
   page so the prospect always has a one-tap return to the slide deck.
   Bottom-right of the viewport so it never collides with the header. */
[data-back-to-pres] {
  position: fixed;
  right: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2.5vw, 28px);
  z-index: 9999;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  background: linear-gradient(135deg, #3a2aff 0%, #0078ff 50%, #00d4ff 100%);
  background-size: 200% 200%;
  background-position: 0% 50%;
  color: #fff !important;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  border: 2px solid rgba(255, 255, 255, 0.25);
  cursor: pointer; border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 14px 30px -8px rgba(58, 42, 255, .55), 0 4px 12px -2px rgba(0, 120, 255, .35);
  transition: transform .2s ease, box-shadow .2s ease, background-position .5s ease;
}
[data-back-to-pres]:hover {
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow: 0 18px 38px -8px rgba(58, 42, 255, .65), 0 6px 16px -2px rgba(0, 212, 255, .45);
}
[data-back-to-pres] span { display: inline-block; font-weight: 900; font-size: 14px; line-height: 1; }
@media (max-width: 520px) {
  [data-back-to-pres] { padding: 11px 16px; font-size: 11px; letter-spacing: 0.14em; }
}
.brand-wordmark { display: flex; flex-direction: column; line-height: 1.1; }
.brand-wordmark .title { font-family: var(--font-serif); color: var(--ink); font-size: 19px; font-weight: 500; letter-spacing: 0.01em; }
.brand-wordmark .sub { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--slate-2); }

.nav { display: flex; align-items: center; gap: 34px; }
.nav .mobile-cta { display: none; }
.nav > a { font-size: 14px; font-weight: 500; color: var(--charcoal); letter-spacing: 0.02em; position: relative; padding: 6px 0; }
.nav > a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 1.5px; background: var(--ink);
  transition: right var(--dur-mid) var(--ease);
}
.nav > a:hover { color: var(--ink); }
.nav > a:hover::after, .nav > a.active::after { right: 0; }

.call-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 22px 10px 18px;
  background: var(--ink); color: var(--white);
  border-radius: 0 99px 99px 0;
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  border: 1px solid var(--ink);
  border-left: none;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.call-pill:hover { background: var(--ink-2); color: var(--white); transform: translateY(-1px); box-shadow: 0 6px 18px -8px rgba(15, 52, 96, 0.45); }
.call-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px;
  color: var(--ink); cursor: pointer;
  border-radius: var(--r-s);
  transition: background var(--dur-fast) var(--ease);
}
.nav-toggle:hover { background: rgba(15, 52, 96, 0.06); }
.nav-toggle .icon-close { display: none; }
.nav-toggle.is-open .icon-open { display: none; }
.nav-toggle.is-open .icon-close { display: block; }

/* ============================================================
   HERO (Gojo-style full-bleed, split adapted for portrait photo)
   ============================================================ */
.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  background: var(--bone);
  overflow: hidden;
}
.hero-copy {
  padding: clamp(48px, 8vw, 120px) clamp(32px, 6vw, 96px);
  display: flex; flex-direction: column; justify-content: center;
  position: relative; z-index: 2;
}
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero-copy h1 {
  font-size: clamp(44px, 6.4vw, 80px);
  line-height: 1.04; margin-bottom: 28px;
  font-style: normal; font-weight: 400;
  letter-spacing: -0.012em;
  color: var(--ink);
  max-width: 17ch;
}
.hero-copy h1 .accent { font-style: italic; font-weight: 400; color: var(--aqua-deep); }
.hero-copy .lede { margin-bottom: 38px; max-width: 52ch; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-signals { display: flex; flex-wrap: wrap; gap: 22px 34px; }
.hero-signal { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--slate); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 500; }
.hero-signal .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--aqua-deep); }

.hero-media {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  background-color: var(--stone);
}
.hero-media::before {
  content: ""; position: absolute; inset: -3%;
  background-image: var(--hero-bg, none);
  background-size: cover; background-position: center;
  animation: kenburns 30s ease-in-out infinite alternate;
  z-index: 0;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,31,61,0) 40%, rgba(10,31,61,0.22) 100%);
  z-index: 1;
}
.hero-media > * { position: relative; z-index: 2; }
.hero-media .media-tag {
  position: absolute; left: 28px; bottom: 28px;
  color: var(--white); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  background: rgba(6, 20, 40, 0.7); padding: 8px 14px; border-radius: 99px;
  backdrop-filter: blur(8px);
  z-index: 2;
}

/* ============================================================
   PAGE HEAD (interior subhero)
   ============================================================ */
.page-head {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 112px) var(--px) clamp(48px, 6vw, 80px);
  background-color: var(--ink);
  color: var(--white);
}
/* Photo layer — scales slowly (Ken Burns) */
.page-head::after {
  content: "";
  position: absolute; inset: -2%;
  background-color: var(--ink);
  background-image: var(--page-head-bg, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: luminosity;
  animation: kenburns 26s ease-in-out infinite alternate;
  z-index: 0;
}
.page-head::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 52, 96, 0.4), rgba(15, 52, 96, 0.4)),
    linear-gradient(120deg, rgba(15, 52, 96, 0.6) 0%, rgba(15, 52, 96, 0.35) 60%, rgba(74, 151, 184, 0.45) 100%);
  pointer-events: none;
  z-index: 1;
}
.page-head > * { position: relative; z-index: 2; }
@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.08) translate(-1.2%, -1.2%); }
}
@media (prefers-reduced-motion: reduce) {
  .page-head::after, .cta-band::after, .hero-media { animation: none; }
}
.page-head .crumb { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); font-weight: 600; margin-bottom: 18px; display: flex; gap: 8px; align-items: center; }
.page-head .crumb a { color: rgba(255, 255, 255, 0.7); }
.page-head .crumb a:hover { color: var(--white); }
.page-head h1 { font-size: clamp(44px, 6vw, 76px); line-height: 1.02; font-style: normal; font-weight: 500; margin-bottom: 24px; max-width: 20ch; color: var(--white); }
.page-head h1 .accent { font-style: italic; font-weight: 500; color: var(--aqua); }
.page-head .lede { max-width: 62ch; font-size: var(--fs-body-lg); line-height: 1.55; color: rgba(255, 255, 255, 0.86); }
.page-head-row {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.page-head-row .meta { padding-bottom: 8px; }
.page-head-row .meta-kv { display: flex; flex-direction: column; gap: 14px; }
.page-head-row .meta-kv .k { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); font-weight: 600; }
.page-head-row .meta-kv .v { font-family: var(--font-serif); font-size: 22px; color: var(--white); font-weight: 500; }
@media (max-width: 860px) {
  .page-head-row { grid-template-columns: 1fr; }
}

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--stone);
  border: 1px solid var(--stone);
}
.step {
  padding: 44px 36px 48px;
  background: var(--bone);
  display: flex; flex-direction: column; gap: 14px;
  min-height: 260px;
}
.step .n {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--slate-2);
  display: inline-block; transform-origin: left center;
  transform: translateX(-8px); opacity: 0;
  transition: transform 0.6s var(--ease) 0.2s, opacity 0.6s var(--ease) 0.2s;
}
.step.is-visible .n { transform: translateX(0); opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .step .n { transform: none; opacity: 1; transition: none; }
}
.step h3 { font-size: 26px; font-style: italic; }
.step p { font-size: 15px; color: var(--slate); line-height: 1.6; margin: 0; }
@media (max-width: 860px) {
  .process-steps { grid-template-columns: 1fr; }
}

/* ============================================================
   FEATURE SPLIT (big photo + copy stack)
   ============================================================ */
.feature-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: stretch;
}
.feature-split .photo {
  background-size: cover; background-position: center;
  min-height: 520px;
  border-radius: var(--r-s);
}
.feature-split .copy { padding: clamp(24px, 3vw, 48px) 0; display: flex; flex-direction: column; justify-content: center; }
.feature-split .copy h2 { margin-bottom: 24px; }
.feature-split .copy p { color: var(--slate); font-size: var(--fs-body-lg); line-height: 1.6; }
.feature-list { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--stone); }
.feature-list li {
  display: grid; grid-template-columns: 40px 1fr;
  gap: 16px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--stone);
}
.feature-list li .n { font-family: var(--font-mono); font-size: 12px; color: var(--slate-2); letter-spacing: 0.08em; }
.feature-list li .name { font-family: var(--font-serif); font-size: 22px; color: var(--ink); font-weight: 500; }
@media (max-width: 860px) {
  .feature-split { grid-template-columns: 1fr; }
  .feature-split .photo { min-height: 360px; order: -1; }
}

/* ============================================================
   FULL GALLERY (masonry feel via grid-auto-rows dense)
   ============================================================ */
.full-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 320px;
  gap: 14px;
}
.full-gallery .g-item img { aspect-ratio: auto; height: 100%; }
.full-gallery .tall { grid-row: span 2; }
@media (max-width: 960px) {
  .full-gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 280px; }
}
@media (max-width: 720px) {
  .full-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
  .full-gallery .tall { grid-row: span 1; }
}

/* ============================================================
   BIG QUOTE (testimonials page)
   ============================================================ */
.big-quote {
  padding: clamp(40px, 5vw, 80px) clamp(32px, 5vw, 80px);
  background: var(--bone-2);
  border-left: 3px solid var(--aqua-deep);
  margin-bottom: 40px;
}
.big-quote .mark { font-family: var(--font-serif); font-size: 96px; line-height: 0.4; color: var(--aqua-deep); display: block; margin-bottom: 24px; }
.big-quote p { font-family: var(--font-serif); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.4; font-style: italic; font-weight: 400; color: var(--ink); margin: 0; }
.big-quote .author { margin-top: 32px; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--slate); }

/* ============================================================
   STAT STRIP
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
}
.stat {
  padding: 40px 32px;
  text-align: left;
  border-right: 1px solid var(--stone);
  transition: background var(--dur-mid) var(--ease);
}
.stat:last-child { border-right: 0; }
.stat:hover { background: var(--bone-2); }
.stat .num { font-family: var(--font-serif); font-size: clamp(32px, 3.6vw, 44px); color: var(--ink); line-height: 1; margin-bottom: 8px; font-weight: 500; transition: color var(--dur-mid) var(--ease); }
.stat:hover .num { color: var(--aqua-deep); }
.stat .label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--slate); font-weight: 500; }

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.about-img {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--stone);
  overflow: hidden;
  border-radius: var(--r-s);
}
.about-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-badge {
  position: absolute; top: 22px; left: 22px;
  background: var(--white); color: var(--ink);
  padding: 12px 16px;
  border-radius: var(--r-xs);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  border: 1px solid var(--stone);
}
.about-copy h2 { margin-bottom: 24px; }
.about-copy p { font-size: var(--fs-body-lg); line-height: 1.6; color: var(--slate); max-width: 56ch; }
.about-sig { display: flex; align-items: center; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--stone); }
.about-sig .name { font-family: var(--font-serif); font-size: 24px; color: var(--ink); font-style: italic; font-weight: 500; }
.about-sig .title { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-2); }

/* ============================================================
   SERVICES (Mira-style premium property cards)
   ============================================================ */
.section-head { margin-bottom: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.section-head h2 { max-width: 16ch; }
.section-head .copy { color: var(--slate); max-width: 52ch; font-size: var(--fs-body-lg); }
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; }
}

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--stone);
  border: 1px solid var(--stone);
}
.service {
  padding: 40px 36px;
  background: var(--bone);
  transition: background var(--dur-mid) var(--ease), transform var(--dur-mid) var(--ease), box-shadow var(--dur-mid) var(--ease);
  min-height: 280px;
  display: flex; flex-direction: column;
  position: relative;
}
.service::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--aqua-deep);
  transform: scaleX(0); transform-origin: left center;
  transition: transform var(--dur-mid) var(--ease);
}
.service:hover {
  background: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -12px rgba(15, 52, 96, 0.18);
  z-index: 2;
}
.service:hover::before { transform: scaleX(1); }
.service .icon-wrap {
  width: 44px; height: 44px;
  border: 1px solid var(--stone-deep);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px;
  color: var(--ink);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.service:hover .icon-wrap {
  color: var(--white); background: var(--ink);
  border-color: var(--ink);
}
.service h3 { font-size: 24px; margin-bottom: 14px; }
.service p { font-size: 15px; line-height: 1.6; color: var(--slate); flex: 1; margin-bottom: 20px; }
.service .link-arrow { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.service .link-arrow svg { transition: transform var(--dur-fast) var(--ease); }
.service:hover .link-arrow svg { transform: translateX(3px); }

/* ============================================================
   TYPES STRIP (horizontal list of shower door types)
   ============================================================ */
.types {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
}
.type {
  padding: 32px 24px;
  border-right: 1px solid var(--stone);
  text-align: left;
}
.type:last-child { border-right: 0; }
.type .n { font-family: var(--font-mono); font-size: 12px; color: var(--slate-2); letter-spacing: 0.1em; }
.type .name { font-family: var(--font-serif); font-size: 22px; color: var(--ink); margin-top: 10px; font-weight: 500; }

/* ============================================================
   GALLERY (Nordic-style whitespace grid, hover reveal)
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.g-item {
  position: relative;
  overflow: hidden;
  background:
    /* Top-edge glass highlight — always visible, mimics a fresh-cut glass piece. */
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, transparent 2%),
    var(--stone);
  border-radius: var(--r-s);
  cursor: zoom-in;
  box-shadow: 0 1px 3px rgba(15, 52, 96, 0.06), inset 0 0 0 1px rgba(255, 255, 255, 0);
  transform: translateY(0) scale(1);
  transition: box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  isolation: isolate;
}
.g-item:hover {
  box-shadow:
    0 32px 60px -18px rgba(15, 52, 96, 0.42),
    0 8px 20px -6px rgba(74, 151, 184, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  transform: translateY(-4px) scale(1.005);
}
.g-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.45s var(--ease);
  aspect-ratio: 3 / 4;
  display: block;
}
.g-item:hover img { transform: scale(1.08); filter: saturate(1.12) brightness(1.04); }
.g-item .caption {
  position: absolute; left: 18px; right: 18px; bottom: 18px;
  color: var(--white);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  opacity: 0; transform: translateY(8px);
  transition: opacity var(--dur-mid) var(--ease), transform var(--dur-mid) var(--ease);
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  z-index: 2;
}
.g-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,20,40,0) 35%, rgba(8,20,40,0.65) 100%);
  opacity: 0; transition: opacity var(--dur-mid) var(--ease);
  pointer-events: none;
  z-index: 1;
}
/* Zoom-in badge — appears top-right on hover */
.g-item::before {
  content: "";
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230F3460' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0; transform: translateY(-6px);
  transition: opacity var(--dur-mid) var(--ease), transform var(--dur-mid) var(--ease);
  pointer-events: none;
  z-index: 2;
}
.g-item:hover::after { opacity: 1; }
.g-item:hover .caption { opacity: 1; transform: translateY(0); }
.g-item:hover::before { opacity: 1; transform: translateY(0); }

/* Gallery layout variants */
.g-lg { grid-column: span 6; }
.g-md { grid-column: span 4; }
.g-sm { grid-column: span 3; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 28px);
}
@media (max-width: 920px) { .quote-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .quote-grid { grid-template-columns: 1fr; } }
.quote {
  margin: 0;
  padding: clamp(24px, 2.4vw, 32px);
  background: var(--bone-2);
  border-left: 2px solid var(--aqua-deep);
  position: relative; overflow: hidden;
}
.quote::after {
  /* Subtle glass shine sweep on hover */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.quote:hover::after { transform: translateX(120%); }
.quote .mark {
  font-family: var(--font-serif); font-size: 44px; line-height: 0.5; color: var(--aqua-deep);
  display: block; margin-bottom: 14px;
}
.quote p { font-family: var(--font-serif); font-size: clamp(15px, 1.1vw, 17px); line-height: 1.55; color: var(--ink); font-style: italic; font-weight: 400; }
.quote .author { margin-top: 18px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate); font-weight: 600; }

/* ============================================================
   SERVICE AREA BAND
   ============================================================ */
/* Service-area band — Myrtle Beach ocean backdrop with dark gradient overlay
   so the white headline + location chips stay legible. */
.section.surface-ink-deep {
  position: relative; overflow: hidden;
  padding-top: clamp(72px, 8vw, 112px);
  padding-bottom: clamp(72px, 8vw, 112px);
}
.section.surface-ink-deep::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 24, 50, 0.82) 0%, rgba(15, 52, 96, 0.78) 100%),
    url('/assets/img/bg/myrtle-beach.jpg') center/cover no-repeat;
  z-index: 0;
}
.section.surface-ink-deep > .container,
.section.surface-ink-deep > .service-area { position: relative; z-index: 1; }
.service-area {
  display: grid; grid-template-columns: 1fr 2fr; gap: clamp(32px, 5vw, 80px); align-items: center;
  position: relative; z-index: 1;
}
.area-list { display: flex; flex-wrap: wrap; gap: 12px 12px; }
.area-list .chip {
  padding: 12px 20px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white);
  border-radius: 99px;
  backdrop-filter: blur(6px);
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  cursor: default;
}
.area-list .chip:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
  transform: translateY(-2px);
}

/* ============================================================
   FAMILY OF BRANDS
   ============================================================ */
.family {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--stone);
  border: 1px solid var(--stone);
}
.fam {
  padding: 36px 28px;
  background: var(--bone);
  display: flex; flex-direction: column; gap: 8px;
  transition: background var(--dur-fast) var(--ease);
}
.fam {
  transition: background var(--dur-mid) var(--ease), transform var(--dur-mid) var(--ease), box-shadow var(--dur-mid) var(--ease);
}
.fam:hover {
  background: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -12px rgba(15, 52, 96, 0.2);
}
.fam .kicker { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate-2); font-weight: 600; }
.fam .name { font-family: var(--font-serif); font-size: 24px; color: var(--ink); font-weight: 500; }
.fam .go { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); font-weight: 600; margin-top: 10px; display: inline-flex; gap: 8px; align-items: center; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  position: relative;
  overflow: hidden;
  background-color: var(--ink-deep);
  color: var(--white);
  padding: var(--py-m) var(--px);
}
.cta-band::after {
  content: "";
  position: absolute; inset: -2%;
  background-color: var(--ink-deep);
  background-image: url('../img/bg/home-exterior.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: luminosity;
  animation: kenburns 32s ease-in-out infinite alternate-reverse;
  z-index: 0;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 34, 68, 0.45), rgba(8, 34, 68, 0.45)),
    linear-gradient(120deg, rgba(8, 34, 68, 0.65) 0%, rgba(8, 34, 68, 0.4) 60%, rgba(74, 151, 184, 0.5) 100%);
  pointer-events: none;
  z-index: 1;
}
.cta-band > * { position: relative; z-index: 2; }
.cta-band-inner {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center;
}
.cta-band h2 { color: var(--white); font-style: italic; }
.cta-band .lede { color: rgba(234, 242, 249, 0.82); }
.cta-stack { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.cta-phone {
  font-family: var(--font-serif); font-size: clamp(40px, 5vw, 56px);
  color: var(--white); line-height: 1; font-weight: 500;
  display: inline-flex; align-items: center; gap: 18px;
}
.cta-phone:hover { color: var(--aqua); }
.cta-email {
  font-size: 16px; color: var(--bone);
  display: inline-flex; gap: 10px; align-items: center;
}
.cta-email:hover { color: var(--aqua); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink-deep);
  color: var(--bone);
  padding: var(--py-m) var(--px) 32px;
}
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(24px, 4vw, 56px); padding-bottom: 56px; border-bottom: 1px solid rgba(201, 218, 233, 0.22); }
.footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 42ch; }
.footer-brand .brand { gap: 14px; }
.footer-brand .brand-seal { height: 72px; width: auto; --ink: var(--aqua-deep); }
.footer-brand .brand-wordmark .title { color: var(--white); font-size: 24px; font-style: italic; }
.footer-brand .brand-wordmark .sub { color: rgba(234, 242, 249, 0.7); }
.footer-brand p { color: rgba(234, 242, 249, 0.72); font-size: 15px; line-height: 1.55; }
.footer-col h4 { color: var(--white); font-family: var(--font-sans); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(234, 242, 249, 0.82); font-size: 15px; }
.footer-col a:hover { color: var(--white); }
.footer-addr { font-style: normal; color: rgba(234, 242, 249, 0.82); font-size: 15px; line-height: 1.6; }
.footer-bottom { padding-top: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: rgba(234, 242, 249, 0.6); font-size: 13px; }

/* ============================================================
   LIGHTBOX — JS-built overlay, captures clicks on .g-item
   ============================================================ */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(8, 20, 40, 0.94);
  backdrop-filter: blur(10px) saturate(1.2);
  display: none; opacity: 0;
  z-index: 100;
  align-items: center; justify-content: center;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 60px);
  transition: opacity var(--dur-mid) var(--ease);
}
.lightbox.is-open { display: flex; opacity: 1; }
.lightbox.is-open .lb-figure { animation: lbZoom 0.42s var(--ease) both; }
@keyframes lbZoom {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
.lb-figure {
  margin: 0; max-width: min(1400px, 92vw); max-height: 86vh;
  display: flex; flex-direction: column; gap: 18px; align-items: center;
  position: relative; z-index: 2;
}
.lb-img {
  max-width: 100%; max-height: 78vh;
  object-fit: contain;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
  border-radius: var(--r-s);
  background: var(--ink-deep);
}
.lb-cap {
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-serif); font-size: clamp(16px, 1.6vw, 22px); font-style: italic;
  text-align: center; max-width: 60ch;
}
.lb-counter {
  position: absolute; bottom: clamp(20px, 3vw, 32px); left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500;
  z-index: 1;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white); cursor: pointer;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  z-index: 3;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--white);
}
.lb-close:active, .lb-prev:active, .lb-next:active { transform: scale(0.94); }
.lb-close { top: clamp(20px, 3vw, 32px); right: clamp(20px, 3vw, 32px); }
.lb-prev  { left:  clamp(16px, 2vw, 32px); top: 50%; transform: translateY(-50%); }
.lb-next  { right: clamp(16px, 2vw, 32px); top: 50%; transform: translateY(-50%); }
.lb-close svg, .lb-prev svg, .lb-next svg { display: block; }
body.lb-open { overflow: hidden; }
@media (max-width: 720px) {
  .lb-prev, .lb-next { width: 44px; height: 44px; }
}

/* ============================================================
   MOTION — scroll reveals (JS-applied .reveal + .is-visible)
   ============================================================ */
.reveal {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 0.9s var(--ease), translate 0.9s var(--ease);
  will-change: opacity, translate;
}
.reveal.is-visible { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; translate: 0 0; transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-media { min-height: 60vh; order: -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--stone); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .types { grid-template-columns: repeat(3, 1fr); }
  .type:nth-child(3n) { border-right: 0; }
  .type:nth-child(-n+3) { border-bottom: 1px solid var(--stone); }
  .family { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
  .service-area { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .cta-band-inner { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .call-pill { display: none; }
  .nav {
    position: fixed; top: 78px; left: 0; right: 0;
    height: calc(100dvh - 78px);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 24px var(--px) 32px;
    background: var(--white);
    border-top: 1px solid var(--stone);
    transform: translateY(-110%);
    transition: transform var(--dur-mid) var(--ease);
    overflow-y: auto;
    z-index: 35;
  }
  .nav.is-open { transform: translateY(0); }
  .nav > a {
    font-family: var(--font-serif);
    font-size: 28px; font-weight: 500; font-style: italic;
    color: var(--ink);
    padding: 18px 4px;
    border-bottom: 1px solid var(--stone);
  }
  .nav > a::after { display: none; }
  .nav > a.active { color: var(--aqua-deep); }
  .nav .mobile-cta {
    margin-top: 28px;
    display: flex; flex-direction: column; gap: 12px;
  }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 720px) {
  .services { grid-template-columns: 1fr; }
  .types { grid-template-columns: repeat(2, 1fr); }
  .type:nth-child(2n) { border-right: 0; }
  .type { border-bottom: 1px solid var(--stone); }
  .type:last-child { border-bottom: 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .g-lg, .g-md, .g-sm { grid-column: span 1; }
  .footer-top { grid-template-columns: 1fr; }
  .stat { padding: 28px 20px; }
}
@media (max-width: 520px) {
  .brand-wordmark .sub { display: none; }
  .brand-wordmark .title { font-size: 17px; }
  .brand-seal { height: 48px; width: auto; }
}

/* ───────── Header CTA pair — Get a Quote + Call (joined pill) ───────── */
/* Sit flush with no gap; a 1px hairline separates the two backgrounds. */
.header-cta-group {
  display: inline-flex; align-items: stretch;
  /* The two halves are styled flush via border-radius; the wrapper just keeps
     them as a single flex item so the bar's `space-between` doesn't pull them
     apart. */
}
@media (max-width: 860px) { .header-cta-group { display: none; } }
.header-quote {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px 10px 22px;
  background: var(--aqua-deep);   /* lighter blue half */
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--aqua-deep);
  border-right: none;
  border-radius: 99px 0 0 99px;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  white-space: nowrap;
  margin-right: 0;          /* sit flush against the call-pill */
  position: relative;
}
.header-quote::after {
  /* Hairline divider between the two halves of the joined pill. */
  content: ""; position: absolute; right: -0.5px; top: 8px; bottom: 8px;
  width: 1px; background: rgba(255, 255, 255, 0.28);
}
.header-quote:hover { background: #3F89AC; border-color: #3F89AC; transform: translateY(-1px); box-shadow: 0 6px 18px -8px rgba(74, 151, 184, 0.5); }
.header-quote .pulse {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.8);
  animation: quotePulse 2.2s ease-in-out infinite;
}
@keyframes quotePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  50%      { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
}
@media (max-width: 860px) {
  .header-quote { display: none; }
}

/* ───────── Quote Modal ───────── */
body.quote-open { overflow: hidden; }
.quote-modal {
  position: fixed; inset: 0; z-index: 110;
  display: none; align-items: flex-start; justify-content: center;
  padding: clamp(20px, 4vw, 60px) clamp(16px, 3vw, 40px);
  overflow-y: auto;
}
.quote-modal.is-open { display: flex; }
.quote-modal__backdrop {
  position: fixed; inset: 0;
  background: rgba(8, 20, 40, 0.72);
  backdrop-filter: blur(6px) saturate(1.2);
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease);
}
.quote-modal.is-open .quote-modal__backdrop { opacity: 1; }
.quote-modal__panel {
  position: relative; z-index: 2;
  background: var(--white);
  border-radius: 8px;
  width: 100%; max-width: 720px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.35), 0 20px 50px -10px rgba(15, 52, 96, 0.2);
  overflow: hidden;
  margin: auto;
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  transition: transform var(--dur-mid) var(--ease), opacity var(--dur-mid) var(--ease);
}
.quote-modal.is-open .quote-modal__panel { transform: none; opacity: 1; }
.quote-modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(15, 52, 96, 0.06);
  border: 1px solid rgba(15, 52, 96, 0.14);
  border-radius: 50%;
  color: var(--ink);
  font-size: 22px; line-height: 1;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
}
.quote-modal__close:hover { background: rgba(15, 52, 96, 0.12); }
.quote-modal__head {
  padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 40px) 12px;
  border-bottom: 1px solid rgba(15, 52, 96, 0.08);
}
.quote-modal__eyebrow {
  display: inline-block;
  font-family: var(--font-sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--aqua-deep);
  margin-bottom: 10px;
}
.quote-modal__head h2 {
  font-family: var(--font-serif); font-size: clamp(26px, 3vw, 34px);
  font-weight: 500; color: var(--ink); letter-spacing: -0.01em;
  line-height: 1.1;
}
.quote-modal__head h2 em { font-style: italic; color: var(--aqua-deep); }
.quote-modal__head p { margin-top: 10px; color: var(--slate); font-size: 15px; line-height: 1.55; }

.quote-form { padding: clamp(20px, 2.5vw, 28px) clamp(28px, 3.5vw, 48px) clamp(24px, 3vw, 36px); }
.quote-form__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.quote-form .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; /* let the field shrink to its grid cell */ }
.quote-form .field.full { grid-column: 1 / -1; }
.quote-form .field > span {
  font-family: var(--font-sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--slate);
}
.quote-form .field input,
.quote-form .field select,
.quote-form .field textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-family: var(--font-sans); font-size: 15px;
  color: var(--ink);
  background: var(--bone-2);
  border: 1px solid rgba(15, 52, 96, 0.12);
  border-radius: 6px;
  padding: 10px 12px;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.quote-form .field input:focus,
.quote-form .field select:focus,
.quote-form .field textarea:focus {
  outline: none;
  border-color: var(--aqua-deep);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(74, 151, 184, 0.15);
}
.quote-form .field textarea { resize: vertical; min-height: 72px; font-family: var(--font-sans); }

.quote-form__estimate {
  margin-top: 20px;
  padding: 18px 22px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--white);
  border-radius: 8px;
  display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; align-items: baseline;
  position: relative; overflow: hidden;
}
.quote-form__estimate::before {
  content: ""; position: absolute; right: -20%; top: -40%;
  width: 60%; height: 180%;
  background: radial-gradient(circle, rgba(140, 198, 220, 0.25), transparent 60%);
  pointer-events: none;
}
.quote-form__estimate-label {
  font-family: var(--font-sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--aqua);
  grid-row: 1;
}
.quote-form__estimate-value {
  font-family: var(--font-serif); font-size: clamp(26px, 3vw, 34px);
  font-style: italic; font-weight: 500;
  color: var(--white);
  grid-row: 1; grid-column: 2;
  text-align: right;
  letter-spacing: -0.01em;
}
.quote-form__estimate-sub {
  grid-column: 1 / -1;
  font-size: 12px;
  color: rgba(234, 242, 249, 0.66);
  margin-top: 4px;
  position: relative; z-index: 1;
}

.quote-form__actions {
  margin-top: 20px;
  display: flex; gap: 12px; flex-wrap: wrap;
}
.quote-form__actions .btn { flex: 1 1 auto; }

.quote-success {
  padding: clamp(40px, 5vw, 60px) clamp(24px, 3vw, 40px);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.quote-form[hidden], .quote-success[hidden] { display: none; }
.quote-success__icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(74, 151, 184, 0.15);
  color: var(--aqua-deep);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700;
  margin-bottom: 4px;
}
.quote-success h3 {
  font-family: var(--font-serif); font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 500; color: var(--ink); letter-spacing: -0.01em;
}
.quote-success p { color: var(--slate); font-size: 15px; line-height: 1.55; max-width: 44ch; }
.quote-success .btn { margin-top: 8px; }

@media (max-width: 640px) {
  .quote-form__grid { grid-template-columns: 1fr; }
  .quote-form__estimate { grid-template-columns: 1fr; gap: 8px; }
  .quote-form__estimate-value { text-align: left; }
  .quote-form__actions { flex-direction: column; }
}

/* ───────── Inline Quote Section (under About on home) ───────── */
.quote-section { position: relative; }
/* Inline form needs a bit more breathing room above the first input than the
   modal version, since there's no header strip above it. */
.quote-section__form-wrap .quote-form {
  padding-top: clamp(28px, 3.2vw, 38px);
  padding-bottom: clamp(28px, 3vw, 38px);
}
.quote-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: stretch;
}
.quote-section__head .accent { color: var(--aqua-deep); font-style: italic; }
.quote-section__head h2 { margin: 14px 0 16px; }
.quote-section__head .copy { max-width: 48ch; }
.quote-section__bullets {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: flex; flex-direction: column; gap: 12px;
}
.quote-section__bullets li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; color: var(--slate);
  line-height: 1.5;
}
.quote-section__bullets .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--aqua-deep);
  margin-top: 7px; flex-shrink: 0;
}
.quote-section__form-wrap {
  background: var(--white);
  border: 1px solid rgba(15, 52, 96, 0.1);
  border-radius: 10px;
  box-shadow: 0 24px 60px -32px rgba(15, 52, 96, 0.22);
  overflow: hidden;
  position: relative;
}
.quote-section__form-wrap::before {
  /* Glass top-edge highlight — subtle reflective sheen. */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(140, 198, 220, 0.5), transparent);
  pointer-events: none;
}
@media (max-width: 860px) {
  .quote-section__inner { grid-template-columns: 1fr; }
}

/* ───────── Global glass shine / shimmer system ─────────
   A reusable hover-driven sheen that runs across cards, service tiles,
   family cards, and primary CTAs. Pure CSS, no JS. */
/* Universal sheen — excludes gallery items because their ::before is reserved
   for the click-to-zoom badge. Galleries get a dedicated glass treatment below. */
.service, .fam, .feature-card, .stat, .btn-primary, .btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.service::before, .fam::before, .feature-card::before, .stat::before, .btn-primary::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(118deg, transparent 35%, rgba(255, 255, 255, 0.42) 50%, transparent 65%);
  transform: translateX(-130%);
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 1;
}
.service:hover::before, .fam:hover::before, .feature-card:hover::before, .stat:hover::before {
  transform: translateX(130%);
}
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  background: linear-gradient(118deg, transparent 35%, rgba(255, 255, 255, 0.32) 50%, transparent 65%);
  z-index: 0;
}
.btn-primary:hover::after { transform: translateX(130%); }
.btn-primary > * { position: relative; z-index: 1; }

/* Subtle top-edge sheen on key surfaces */
.about-img, .browser-mockup, .quote-section__form-wrap, .quote-modal__panel,
.feature-card, .service, .fam, .stat {
  position: relative;
}
.about-img::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(140, 198, 220, 0.6), transparent);
  pointer-events: none;
  z-index: 2;
}

/* ───────── Extended glass / shimmer system ─────────
   Frosted backgrounds, animated highlights, and reflective edges across
   key surfaces — service cards, family tiles, stat tiles, hero media. */

/* Frosted backdrop on the hero-media tag chip */
.hero-media .media-tag {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.32);
}
/* Glass reflection across hero media — a slow diagonal sweep on load */
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(118deg, transparent 35%, rgba(255, 255, 255, 0.18) 50%, transparent 65%);
  transform: translateX(-130%);
  animation: glassSweep 5.5s 1.5s cubic-bezier(0.22, 1, 0.36, 1) 1 forwards;
  pointer-events: none;
  z-index: 3;
}
@keyframes glassSweep {
  to { transform: translateX(130%); }
}

/* Reflective top-edge glints (1px) on cards + estimate band */
.service::after, .fam::after, .feature-card::after, .stat::after,
.quote-form__estimate::after {
  content: ""; position: absolute; left: 12%; right: 12%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(140, 198, 220, 0.65), transparent);
  pointer-events: none;
  z-index: 2;
}
.quote-form__estimate::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
}

/* Frosted glass treatment on the hero signal pills */
.hero-signal {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px) saturate(1.3);
  -webkit-backdrop-filter: blur(8px) saturate(1.3);
  border: 1px solid rgba(15, 52, 96, 0.08);
}

/* Stats strip — glass tiles with reflective top edge */
.stat {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.32));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(15, 52, 96, 0.08);
}

/* Header brand seal — give a faint outer glow as the ink hexagon rests */
.brand:hover .brand-seal {
  filter: drop-shadow(0 6px 18px rgba(74, 151, 184, 0.45));
  transition: filter 0.4s ease;
}

/* Section-divider shimmer for the inline quote form-wrap */
.quote-section__form-wrap::after {
  content: ""; position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(140, 198, 220, 0.08), transparent 40%);
  z-index: 0;
}
.quote-section__form-wrap > * { position: relative; z-index: 1; }

/* ───────── Mobile optimization (≤640px) ─────────
   Tighter section padding, larger tap targets, comfortable reading. */
@media (max-width: 640px) {
  :root { --px: clamp(20px, 6vw, 32px); }
  .section { padding-top: clamp(48px, 10vw, 64px); padding-bottom: clamp(48px, 10vw, 64px); }
  h1, .hero-copy h1 { font-size: clamp(36px, 9vw, 48px); }
  h2 { font-size: clamp(28px, 7.5vw, 36px); }
  .hero { display: flex; flex-direction: column; }
  .hero-copy { padding: clamp(40px, 9vw, 56px) var(--px); }
  .hero-media { min-height: 320px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 22px 16px; }
  .stat .num { font-size: clamp(32px, 8vw, 40px); }
  .stat .label { font-size: 12px; }
  .hero-cta-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta-row .btn { width: 100%; justify-content: center; }
  .hero-signals { gap: 8px; flex-wrap: wrap; }
  .hero-signal { font-size: 12px; padding: 6px 10px; }

  .about { gap: 24px; }
  .about-img { aspect-ratio: 4 / 3; }
  .about-copy h2 { font-size: clamp(26px, 7vw, 34px); }

  .quote-section__inner { gap: 24px; }
  .quote-section__head h2 { font-size: clamp(28px, 7.5vw, 36px); }
  .quote-section__bullets { margin-top: 18px; gap: 10px; }
  .quote-section__bullets li { font-size: 14px; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section-head h2 { max-width: 100%; }
  .section-head .copy { max-width: 100%; }

  .gallery-grid { grid-template-columns: 1fr; gap: 10px; }
  .g-item { aspect-ratio: 4 / 3; }

  .quote { padding: 22px 20px; }

  .area-list { gap: 8px 8px; }
  .area-list .chip { padding: 10px 16px; font-size: 14px; }

  .service-area h2 { font-size: clamp(26px, 7vw, 34px); }

  .family { grid-template-columns: 1fr; gap: 12px; }
  .fam { padding: 22px 20px; }

  .cta-band { padding: clamp(48px, 10vw, 72px) var(--px); }
  .cta-band h2 { font-size: clamp(26px, 7vw, 34px); }
  .cta-band-inner { gap: 24px; }
  .cta-stack { width: 100%; }
  .cta-phone, .cta-email { width: 100%; justify-content: center; }

  .footer-top { gap: 32px; padding-bottom: 36px; }
  .footer-brand { max-width: none; }

  /* Tap target hygiene — buttons + links should be ≥44px tall on mobile */
  .btn, .btn-lg { min-height: 48px; padding: 12px 20px; }
}

/* Extra-small phones (<400px) */
@media (max-width: 400px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .header-cta-group { display: none !important; }
}
