/* B.E.S.T. website. World: "Keynote Clean" from John's Money Magnets deck.
   Manrope only · Harbor Navy + white · one Logo Yellow marker per section · his own photos · flat. */

@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --navy: #063950;
  --navy-deep: #042a3b;
  --royal: #114087;
  --yellow: #f1d557;
  --ink: #0e1b26;
  --slate: #46586a;
  --mist: #a9c0d4;
  --paper: #ffffff;
  --fog: #eef3f7;
  --line: #d9e3ec;

  --font: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --band: clamp(72px, 10vw, 136px);
  --r-photo: 14px;
  --r-thumb: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --head-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 1.125rem/1.6 var(--font);
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.025em; line-height: 1.04; text-wrap: balance; color: var(--navy); }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.75rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); }
h3 { font-size: 1.375rem; letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--yellow); color: var(--navy); }
:focus-visible { outline: 3px solid var(--royal); outline-offset: 3px; border-radius: 4px; }
.navy :focus-visible { outline-color: var(--yellow); }
html { scrollbar-color: var(--mist) var(--fog); }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }

/* icons */
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-arrow { width: 1.1em; height: 1.1em; transition: transform 0.25s var(--ease); }
.stars { display: inline-flex; gap: 2px; }
.star { width: 1em; height: 1em; fill: var(--royal); }
.navy .star { fill: var(--mist); }

/* marker: one per section. band on white, yellow type on navy */
.mark {
  background: linear-gradient(transparent 60%, var(--yellow) 60% 90%, transparent 90%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding-inline: 0.04em;
}
.navy .mark { background: none; color: var(--yellow); padding: 0; }

.navy { background: var(--navy); color: #fff; }
.navy h1, .navy h2, .navy h3 { color: #fff; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 0 1.4em; border-radius: 10px; border: 2px solid transparent;
  font: 700 1.0625rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--royal); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--fog); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-ghost:hover { border-color: #fff; }
.btn-xl { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 4px; text-underline-offset: 8px; min-height: 64px; font-size: 1.375rem; font-weight: 800; padding: 0 1.3em; letter-spacing: -0.01em; font-feature-settings: "tnum" 1; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.link, .link-light {
  display: inline-flex; align-items: center; gap: 0.4em; font-weight: 700; text-decoration: underline;
  text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--yellow);
}
.link { color: var(--navy); text-decoration-color: var(--mist); }
.link:hover { text-decoration-color: var(--navy); }
.link-light { color: #fff; text-decoration-color: rgba(169, 192, 212, 0.6); }
.link-light:hover { text-decoration-color: #fff; }

/* header */
.site-head {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid transparent; transition: border-color 0.3s;
}
.site-head.scrolled { border-bottom-color: var(--line); }
.head-row { display: flex; align-items: center; gap: 24px; height: var(--head-h); }
.brand img { height: 56px; width: auto; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; }
.nav a {
  display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 0.975rem;
  color: var(--ink); transition: background-color 0.2s;
}
.nav a:hover { background: var(--fog); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 7px; }
.head-call { min-height: 46px; font-feature-settings: "tnum" 1; position: relative; }
.head-call::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 7px; height: 3px; border-radius: 2px;
  background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease);
}
.site-head.past-hero .head-call::after { transform: scaleX(1); }
.menu-btn { display: none; }

@media (max-width: 1099px) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: 8px; margin-left: auto; min-height: 46px; padding: 0 14px;
    background: var(--fog); color: var(--navy); border: 0; border-radius: 10px; font: 700 1rem var(--font); cursor: pointer;
  }
  .menu-btn .i:nth-child(2) { display: none; }
  .menu-btn[aria-expanded="true"] .i:nth-child(1) { display: none; }
  .menu-btn[aria-expanded="true"] .i:nth-child(2) { display: block; }
  .nav {
    position: fixed; inset: var(--head-h) 0 auto 0; background: #fff; margin: 0; padding: 8px var(--gutter) 24px;
    border-bottom: 1px solid var(--line); display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { padding: 16px 4px; font-size: 1.25rem; border-radius: 0; border-bottom: 1px solid var(--fog); }
  .head-call { display: none; }
}
@media (min-width: 700px) and (max-width: 1099px) {
  .head-call { display: inline-flex; margin-left: auto; }
  .menu-btn { margin-left: 0; }
}

/* hero */
.hero { position: relative; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1.2fr);
  min-height: min(760px, calc(100svh - var(--head-h)));
}
.hero-copy {
  align-self: center;
  padding: clamp(48px, 7vw, 96px) clamp(24px, 4vw, 64px) clamp(48px, 7vw, 96px) max(var(--gutter), calc((100vw - var(--max)) / 2));
}
.hero .sub { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); color: var(--mist); max-width: 36ch; margin: 24px 0 0; line-height: 1.5; }
.hero-photo { position: relative; min-height: 320px; }
.hero-photo .bleed { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.lanes { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 28px; }
.lanes a {
  display: inline-flex; align-items: center; gap: 0.45em; color: #fff; font-weight: 700; font-size: 1.125rem;
  text-decoration: underline; text-decoration-color: rgba(169, 192, 212, 0.5); text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.lanes a:hover { text-decoration-color: var(--yellow); }
.hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 36px; }
.trust { display: flex; flex-wrap: wrap; gap: 6px 12px; white-space: nowrap; margin: 28px 0 0; font-size: 0.9rem; color: var(--mist); font-weight: 600; }
.trust a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.trust a:hover span:last-child { text-decoration: underline; text-underline-offset: 4px; }

/* photo reveal: the one authored motion. photo is visible by default; it just opens from the seam. */
@media (prefers-reduced-motion: no-preference) {
  .hero-photo .bleed { animation: reveal 0.65s var(--ease) both; }
  @keyframes reveal { from { clip-path: inset(0 38% 0 0); } to { clip-path: inset(0 0 0 0); } }
}

.hero-page .hero-grid { min-height: clamp(420px, 52vh, 480px); grid-template-columns: minmax(0, 1fr) minmax(0, 600px); }
.hero-page h1 { font-size: clamp(2.25rem, 4.4vw, 3.75rem); }
.hero-page .sub { max-width: 46ch; }
.hero.no-photo .hero-grid { grid-template-columns: 1fr; min-height: 0; }
.hero.no-photo .hero-copy { padding-right: var(--gutter); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; font-size: 0.9rem; font-weight: 600; color: var(--mist); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.6; }
.crumbs a { color: var(--mist); text-underline-offset: 3px; }
.crumbs a:hover { color: #fff; }

@media (min-width: 900px) {
  .hero-photo .bleed { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%); mask-image: linear-gradient(to right, transparent 0, #000 14%); }
}
@media (max-width: 899px) {
  .hero-grid, .hero-page .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { order: -1; aspect-ratio: 4 / 3; min-height: 0; }
  .hero-page .hero-photo { aspect-ratio: 16 / 10; }
  .hero-copy { padding: 36px var(--gutter) 48px; }
  .btn-xl { width: 100%; }
}

/* bands */
.band { padding-block: var(--band); }
.band + .band:not(.navy) { padding-top: 0; }
.band h2 + .sub, .band h2 + p { margin-top: 20px; }
.sub.dark { color: var(--slate); font-size: 1.25rem; max-width: 44ch; }
.more { margin: 40px 0 0; }

/* service list: type, not cards */
.svc-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 8px 48px; margin-top: 48px; }
.svc-list a { display: block; padding: 18px 0; text-decoration: none; }
.svc-name { display: inline; font-size: 1.375rem; font-weight: 800; letter-spacing: -0.015em; color: var(--navy); }
.svc-name .i-arrow { color: var(--royal); display: inline-block; vertical-align: -0.16em; margin-left: 0.35em; }
.svc-blurb { display: block; margin-top: 6px; color: var(--slate); font-size: 1.0625rem; line-height: 1.5; }
.svc-list a:hover .svc-name { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.svc-list-compact { margin-top: 32px; }
.svc-list-compact .svc-name { font-size: 1.1875rem; }
.svc-list-compact .svc-blurb { font-size: 1rem; }
@media (max-width: 599px) { .svc-list-compact { grid-template-columns: 1fr 1fr; gap: 0 20px; } .svc-list-compact .svc-blurb { display: none; } .svc-list-compact a { padding: 12px 0; } .svc-list-compact .svc-name { font-size: 1.0625rem; } }

/* splits */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split.flip .split-photo { order: 2; }
.split-photo .inset { width: 100%; border-radius: var(--r-photo); }
.split-photo { max-width: 600px; }
.split-photo .inset.portrait { max-width: 450px; }
@media (min-width: 900px) {
  .split-photo:has(.portrait) { justify-self: end; }
  .split:has(.portrait) { grid-template-columns: minmax(0, 450px) minmax(0, 1fr); }
}
.split.flip .split-photo { justify-self: end; }
.split-copy h2 { margin-bottom: 24px; }
.split-copy > p { color: var(--ink); max-width: 52ch; }
.split-copy .btn { margin-top: 12px; }
.ticks { display: grid; gap: 10px; margin: 8px 0 28px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 12px; border-radius: 3px; background: var(--royal); }
.lane + .lane { padding-top: 0; }
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.strip img, .grid-photos img, .svc-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-thumb); }

@media (max-width: 899px) {
  .split { grid-template-columns: 1fr; }
  .split.flip .split-photo { order: 0; }
  .split-photo .inset { max-height: 70vh; object-fit: cover; }
  .split.flip .split-photo { justify-self: stretch; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 40px; }
}

/* reviews */
.quote { margin: 0; }
.quote blockquote { margin: 0; }
.quote blockquote p { margin: 0 0 0.6em; }
.quote figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 16px; font-size: 0.95rem; color: var(--slate); }
.quote figcaption strong { color: var(--ink); font-weight: 800; }
.quote-lead { margin-top: 48px; max-width: 58rem; }
.quote-lead blockquote { font-size: clamp(1.375rem, 2.2vw, 1.875rem); font-weight: 600; line-height: 1.35; letter-spacing: -0.015em; color: var(--navy); }
.quote-inline { margin: 8px 0 32px; }
.quote-inline blockquote { font-size: 1.1875rem; font-weight: 600; line-height: 1.5; color: var(--navy); }
.quote-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 56px; margin-top: 64px; }
.quote-row blockquote { font-size: 1.0625rem; line-height: 1.6; }
@media (max-width: 899px) { .quote-row { grid-template-columns: 1fr; gap: 40px; margin-top: 48px; } }

/* facts */
.facts { display: grid; gap: 14px; margin: 28px 0 32px; }
.facts div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 16px; align-items: baseline; }
.facts dt { font-weight: 800; color: var(--royal); font-size: 0.95rem; }
.facts dd { margin: 0; font-weight: 600; }
.facts-dark dt { color: var(--mist); }
.facts-dark dd { color: #fff; }

/* work grid */
.row-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; }
.grid-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
@media (max-width: 899px) { .grid-photos, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* closer + form */
.closer { padding-block: var(--band); }
.closer-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.closer h2 { font-size: clamp(2.25rem, 4.4vw, 3.75rem); }
.closer .sub { color: var(--mist); font-size: 1.25rem; margin: 20px 0 0; }
.big-phone {
  display: inline-block; margin-top: 28px; color: #fff; text-decoration: underline; text-decoration-color: rgba(169, 192, 212, 0.55);
  text-decoration-thickness: 0.1em; text-underline-offset: 0.18em; font-size: clamp(2.75rem, 6.2vw, 5.5rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.1; font-feature-settings: "tnum" 1; white-space: nowrap;
}
.big-phone:hover { text-decoration-color: #fff; }
.quote-form h3 { color: #fff; font-size: 1.5rem; margin-bottom: 20px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-weight: 700; font-size: 0.975rem; color: #fff; }
.field .opt { color: var(--mist); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 10px; border: 2px solid transparent;
  background: #fff; color: var(--ink); font: 500 1.0625rem/1.4 var(--font); caret-color: var(--royal);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23063950' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; padding-right: 44px; }
.field ::placeholder { color: var(--slate); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.field [aria-invalid="true"] { border-color: #ffb4a8; }
.field .err { color: #ffd6cf; font-size: 0.9rem; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 16px 0 0; min-height: 1.6em; font-weight: 700; color: #fff; }
.form-status.ok { color: var(--yellow); }
.form-status.bad { color: #ffd6cf; }
@media (max-width: 899px) { .closer-grid { grid-template-columns: 1fr; } }

/* service page body */
.svc-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.625rem, 2.6vw, 2.125rem); margin: 56px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink); }
.prose a { color: var(--royal); font-weight: 700; text-underline-offset: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chips li { padding: 10px 16px; border-radius: 999px; background: var(--fog); color: var(--navy); font-weight: 700; }
.svc-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.svc-photos li:first-child { grid-column: 1 / -1; }
.svc-photos li:first-child img { aspect-ratio: 4 / 3; }
.svc-review .quote-lead { margin-top: clamp(64px, 8vw, 112px); }
.other-svc h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
@media (max-width: 899px) { .svc-grid { grid-template-columns: 1fr; } }

/* services index rows */
.svc-rows { display: grid; gap: clamp(28px, 4vw, 44px); }
.svc-rows a { display: grid; grid-template-columns: minmax(120px, 280px) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; text-decoration: none; }
.svc-rows img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-thumb); }
.svc-rows .svc-name { font-size: clamp(1.5rem, 2.6vw, 2.25rem); }
.svc-rows .svc-blurb { font-size: 1.125rem; margin-top: 8px; }
.svc-rows a:hover .svc-name { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 7px; }
@media (max-width: 599px) { .svc-rows a { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; } .svc-rows .svc-blurb { font-size: 1rem; } }

/* gallery */
.chips-filter { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--navy);
  font: 700 1rem var(--font); cursor: pointer; transition: background-color 0.2s, border-color 0.2s;
}
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.count { margin: 20px 0 0; color: var(--slate); font-weight: 600; }
.grid-gallery { margin-top: 24px; }
.grid-gallery a { display: block; border-radius: var(--r-thumb); }
.grid-gallery img { transition: transform 0.4s var(--ease); }
.grid-gallery a:hover img { transform: scale(1.02); }
@media (min-width: 600px) and (max-width: 1099px) { .grid-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* legal */
.legal-page { padding-top: clamp(56px, 8vw, 96px); }
.narrow { max-width: 760px; }
.legal-page h1 { font-size: clamp(2.25rem, 4vw, 3.25rem); margin-bottom: 32px; }
.legal-page + .site-foot, .legal-page ~ .site-foot { margin-top: 0; }

/* footer */
.site-foot { background: var(--navy-deep); padding: clamp(56px, 7vw, 88px) 0 32px; font-size: 1rem; color: var(--mist); }
.closer + .site-foot, main:has(> .closer:last-child) + .site-foot { padding-top: clamp(56px, 7vw, 88px); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.8fr); gap: 40px 56px; }
.foot-brand img { height: 64px; width: auto; margin-bottom: 20px; }
.foot-brand p { max-width: 38ch; }
.foot-phone { color: #fff; font-weight: 800; font-size: 1.375rem; text-decoration: none; font-feature-settings: "tnum" 1; }
.foot-phone:hover { color: var(--yellow); }
.site-foot h2 { font-size: 0.95rem; letter-spacing: 0; color: #fff; margin-bottom: 14px; }
.site-foot nav li a { display: inline-block; padding: 5px 0; text-decoration: none; }
.site-foot nav li a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 56px; font-size: 0.9rem; }
.foot-legal p { margin: 0; }
.foot-legal a { color: var(--mist); }
@media (max-width: 899px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* mobile call bar */
.callbar { display: none; }
@media (max-width: 699px) {
  .callbar {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--navy);
  }
  .callbar .btn { min-height: 50px; padding: 0 10px; font-size: 1rem; font-feature-settings: "tnum" 1; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .site-foot { padding-bottom: 24px; }
}
/* exactly two photos: side by side, square */
.svc-photos li:first-child:nth-last-child(2) { grid-column: auto; }
.svc-photos li:first-child:nth-last-child(2) img { aspect-ratio: 1; }

/* services mega menu */
.nav-btn {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border: 0; border-radius: 8px; background: none;
  font: 700 0.975rem var(--font); color: var(--ink); cursor: pointer;
}
.nav-btn:hover, .nav-btn[aria-expanded="true"] { background: var(--fog); }
.nav-btn.is-current { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 7px; }
.chev { width: 1em; height: 1em; transition: transform 0.2s var(--ease); }
.nav-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.mega { display: none; }
.mega.open { display: block; }
.mega-h { margin: 0 0 8px; font-size: 0.85rem; font-weight: 800; color: var(--royal); }
.mega ul { display: block; }
.mega a { font-weight: 600; }
.mega-all { margin: 0; }
.mega-all a { font-weight: 800; color: var(--navy); }
@media (min-width: 1100px) {
  .mega { position: fixed; left: 0; right: 0; top: var(--head-h); background: #fff; border-bottom: 1px solid var(--line); }
  .mega-in { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 28px var(--gutter) 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 24px 48px; align-items: start; }
  .mega a { padding: 7px 0; }
  .mega a:hover { background: none; text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 5px; }
}
@media (max-width: 1099px) {
  .nav { max-height: calc(100svh - var(--head-h)); overflow-y: auto; }
  .nav-btn { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 1.25rem; border-radius: 0; border-bottom: 1px solid var(--fog); }
  .mega-in { padding: 8px 0 12px 12px; }
  .mega-h { margin-top: 12px; }
  .mega a { font-size: 1.0625rem; padding: 10px 4px; border-bottom: 0; }
}

/* home hero slideshow: one photo at a time, crossfade */
.hero-slides ul { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.slide.is-on { opacity: 1; }
.hero-slides .bleed { animation: none; }
.slide-cap {
  position: absolute; left: 14%; bottom: 20px; padding: 8px 14px; border-radius: 8px; background: rgba(6, 57, 80, 0.86);
  color: #fff; font-weight: 700; font-size: 0.975rem; text-decoration: none;
}
.slide-cap:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 4px; }
.slide-pause {
  position: absolute; right: 16px; bottom: 16px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(6, 57, 80, 0.86); color: #fff; cursor: pointer;
}
.slide-pause:hover { background: var(--navy); }
.slide-pause .i-play, .slide-pause[aria-pressed="true"] .i-pause { display: none; }
.slide-pause[aria-pressed="true"] .i-play { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 899px) { .slide-cap { left: 12px; bottom: 12px; } .slide-pause { right: 12px; bottom: 12px; } }

/* grouped services */
.svc-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-top: 56px; }
.svc-group h3 { font-size: 1.125rem; font-weight: 800; color: var(--royal); letter-spacing: 0; margin-bottom: 4px; }
.svc-groups .svc-list { grid-template-columns: 1fr; margin-top: 0; gap: 0; }
.svc-groups .svc-list a { padding: 14px 0; }
@media (max-width: 899px) { .svc-groups { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; } }
.group-h { font-size: clamp(1.625rem, 2.6vw, 2.125rem); margin: 72px 0 32px; }
.group-h:first-child { margin-top: 0; }

/* sound familiar */
.calls { background: var(--fog); padding-top: var(--band) !important; }
/* "Sound familiar?" carousel: one situation per slide, scroll-snap track */
.cx { margin-top: 44px; }
.cx-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; column-gap: 64px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; border-radius: var(--r-photo); }
.cx-track::-webkit-scrollbar { display: none; }
.cx-slide { scroll-snap-align: start; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.cx-copy q { display: block; font-size: clamp(2rem, 4.2vw, 3.5rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.025em; color: var(--navy); quotes: "“" "”"; text-wrap: balance; }
.cx-copy .btn { margin-top: 32px; }
.cx-photo img { width: 100%; max-width: 480px; aspect-ratio: 4 / 3; object-fit: cover; margin-left: auto; }
.cx-ctrl { display: flex; align-items: center; gap: 12px; margin-top: 36px; }
.cx-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; }
.cx-btn:hover { border-color: var(--navy); }
.cx-pause { margin-left: auto; }
.cx-pause .i-play, .cx-pause[aria-pressed="true"] .i-pause { display: none; }
.cx-pause[aria-pressed="true"] .i-play { display: block; }
.cx-dots { display: flex; gap: 4px; }
.cx-dot { width: 28px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.cx-dot::after { content: ""; position: absolute; left: 6px; right: 6px; top: 20px; height: 4px; border-radius: 2px; background: var(--mist); transition: background-color 0.2s; }
.cx-dot[aria-current="true"]::after { background: var(--navy); }
@media (max-width: 899px) {
  .cx-slide { grid-template-columns: 1fr; gap: 24px; align-content: start; }
  .cx-photo { order: -1; }
  .cx-photo img { max-width: none; }
  .cx-dots { display: none; }
}
@media (prefers-reduced-motion: reduce) { .cx-track { scroll-behavior: auto; } }
.calls + .band { padding-top: var(--band); }
.quote-row-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 899px) { .quote-row-4 { grid-template-columns: 1fr; } }
/* round-3 review fixes */
.svc-group h3 { font-size: clamp(1.375rem, 2vw, 1.625rem); color: var(--navy); letter-spacing: -0.015em; margin-bottom: 8px; }
.svc-groups .svc-name { font-size: 1.1875rem; }
@media (min-width: 1100px) {
  .svc-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 56px; }
  .svc-rows a { grid-template-columns: 220px minmax(0, 1fr); gap: 28px; }
  .svc-rows .svc-name { font-size: clamp(1.5rem, 2vw, 1.875rem); }
}
.grid-photos figure { margin: 0; }
.grid-photos figcaption { margin-top: 10px; font-size: 0.975rem; font-weight: 700; color: var(--navy); }

/* home services: each group shows title + summary; its service list drops down on hover / focus (Jeep Beach hub pattern) */
.grp { border: 1px solid var(--line); border-radius: var(--r-photo); padding: 28px; background: #fff; transition: background-color 0.3s, border-color 0.3s; }
.grp-sum { margin: 0; color: var(--slate); font-size: 1.0625rem; line-height: 1.55; max-width: 36ch; }
.grp-hint { display: none; }
.grp-more { display: grid; grid-template-rows: 1fr; }
.grp-in { overflow: hidden; min-height: 0; }
.svc-groups .grp .svc-list { margin-top: 12px; }
@media (hover: hover) and (min-width: 821px) {
  .grp-hint { display: inline-flex; align-items: center; gap: 4px; margin: 14px 0 0; font-weight: 800; font-size: 0.975rem; color: var(--royal); }
  .grp-more { grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
  .grp:hover, .grp:focus-within { background: var(--fog); border-color: var(--mist); }
  .grp:hover .grp-more, .grp:focus-within .grp-more { grid-template-rows: 1fr; }
  .grp:hover .grp-hint .chev, .grp:focus-within .grp-hint .chev { transform: rotate(180deg); }
}
@media (prefers-reduced-motion: reduce) { .grp-more, .grp { transition: none; } }

/* slideshow never shows its 800px photos larger than native */
.hero-slides { width: 100%; max-width: 800px; justify-self: end; }

.svc-groups { gap: 24px; align-items: start; }
@media (max-width: 899px) { .svc-groups { gap: 16px; } .grp { padding: 22px; } }

/* boxes: one thin box language everywhere (home service groups, service-page sections) */
.box { border: 1px solid var(--line); border-radius: var(--r-photo); padding: clamp(22px, 3vw, 32px); background: #fff; }
.box + .box { margin-top: 16px; }
.prose .box h2 { margin: 0 0 12px; }
.box > :last-child { margin-bottom: 0; }

/* photo slideshows on inner pages: one photo, crossfade, sticky beside the boxes */
.photo-show { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-photo); overflow: hidden; background: var(--fog); }
.photo-show ul { position: absolute; inset: 0; }
.photo-show img { width: 100%; height: 100%; object-fit: cover; }
.svc-aside { position: sticky; top: calc(var(--head-h) + 24px); }
.narrow-show { max-width: calc(800px + 2 * var(--gutter)); }
@media (max-width: 899px) { .svc-aside { position: static; } }

/* consistency pass (Eric: "boxes on the pages", themes consistent throughout) */
.grp-open .grp-more { grid-template-rows: 1fr !important; }
.grp-open:hover, .grp-open:focus-within { background: #fff !important; border-color: var(--line) !important; }
.other-svc .svc-groups { margin-top: 32px; }

.svc-rows a { border: 1px solid var(--line); border-radius: var(--r-photo); padding: 16px; background: #fff; transition: background-color 0.25s, border-color 0.25s; }
.svc-rows a:hover { background: var(--fog); border-color: var(--mist); }
.svc-rows { gap: 16px !important; }
@media (min-width: 1100px) { .svc-rows { gap: 16px 24px !important; } }

.quote-row .quote, .quote-lead { border: 1px solid var(--line); border-radius: var(--r-photo); padding: clamp(22px, 3vw, 36px); background: #fff; }
.quote-row { gap: 16px 24px; margin-top: 24px; }
.quote-lead { max-width: none; }
.svc-review .quote-lead { margin-top: clamp(48px, 6vw, 80px); }

.closer h1 { font-size: clamp(2.25rem, 4.4vw, 3.75rem); color: #fff; }
.closer .crumbs ol { margin-bottom: 20px; }

/* estimate form: optional photo */
.field .hint { color: var(--mist); font-size: 0.95rem; line-height: 1.45; }
.field input[type="file"] { min-height: 0; padding: 10px; background: rgba(255, 255, 255, 0.08); color: #fff; border: 2px dashed rgba(169, 192, 212, 0.5); cursor: pointer; }
.field input[type="file"]::file-selector-button {
  margin-right: 14px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 8px; background: #fff; color: var(--navy);
  font: 700 1rem var(--font); cursor: pointer;
}
.photo-pick { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.photo-pick img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; }
.photo-clear { min-height: 44px; padding: 0 14px; border: 2px solid rgba(255, 255, 255, 0.55); border-radius: 10px; background: none; color: #fff; font: 700 0.975rem var(--font); cursor: pointer; }
.photo-clear:hover { border-color: #fff; }
