/* Layout: light editorial look. White header with hairline, airy bands on a 1120px column, hero splits copy / report card and stacks on phones. */
:root {
  --bg: #f2ede4;
  --surface: #f8f5ef;
  --ink: #15232d;
  --muted: #5e6e78;
  --line: #e0d9cc;
  --tide: #1f5468;
  --tide-soft: #eaf1f3;
  --brass: #a4844e;
  --band: #ebe5d9;
  --band-ink: #15232d;
  --band-muted: #5e6e78;
  --btn: #15232d;
  --btn-ink: #ffffff;
  --tower-opacity: 0.16;
  --on-tide: #ffffff;
  --ok: #3c7a57;
  --mon: #9a6d22;
  --fix: #a3463b;
  --shadow: 0 1px 2px rgba(21,35,45,.04), 0 24px 60px -24px rgba(21,35,45,.18);
  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f171d; --surface: #151f27; --ink: #e8edf0; --muted: #a3b1ba; --line: #26343e;
    --tide: #8fbccc; --tide-soft: #17262f; --brass: #c9a86c; --band: #121c23; --band-ink: #e8edf0; --band-muted: #a3b1ba;
    --btn: #e8edf0; --btn-ink: #0f171d; --tower-opacity: 0.1; --on-tide: #0f171d; --ok: #7cc49b; --mon: #d9ac5f; --fix: #eb9488; --shadow: 0 24px 60px -24px rgba(0,0,0,.6); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f171d; --surface: #151f27; --ink: #e8edf0; --muted: #a3b1ba; --line: #26343e;
  --tide: #8fbccc; --tide-soft: #17262f; --brass: #c9a86c; --band: #121c23; --band-ink: #e8edf0; --band-muted: #a3b1ba;
  --btn: #e8edf0; --btn-ink: #0f171d; --tower-opacity: 0.1; --on-tide: #0f171d; --ok: #7cc49b; --mon: #d9ac5f; --fix: #eb9488; --shadow: 0 24px 60px -24px rgba(0,0,0,.6); color-scheme: dark;
}

* { box-sizing: border-box; }
body { position: relative; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 1rem; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--tide); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; text-wrap: balance; margin: 0; font-weight: 500; }
h1 { font-size: clamp(2.8rem, 6.2vw, 4.8rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2.1rem, 4vw, 3rem); }
h3 { font-size: 1.6rem; }
h1 span, h2 em { font-style: italic; color: var(--tide); }
p { margin: 0; max-width: 62ch; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.band { padding-block: clamp(72px, 10vw, 120px); }
.band.alt { background: var(--surface); border-block: 1px solid var(--line); }
.band.dark { background: var(--band); color: var(--band-ink); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.eyebrow { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--brass); }
.lede { font-size: 1.12rem; color: var(--muted); }

/* Scroll walkthrough: frames stack normally, site.js pins them and wipes each one in with scroll */
.reel { background: var(--surface); border-block: 1px solid var(--line); }
.frame { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: clamp(32px, 6vw, 88px); background: var(--surface); padding-right: max(16px, calc((100vw - 1120px) / 2)); }
.frame figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tide-soft); }
.frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.frame .btn-row { margin-top: 8px; }
.reel-bar { display: none; }
.reel.is-live { height: 400svh; border-block: 0; }
.is-live .reel-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.is-live .frame { position: absolute; inset: 0; padding-top: 93px; grid-template-rows: minmax(0, 1fr); }
.is-live .frame figure { height: 100%; aspect-ratio: auto; }
.is-live .frame:not(:first-child) { clip-path: inset(100% 0 0 0); }
.reel.is-done { height: auto; }
.is-done .reel-pin { position: relative; }
.is-done .frame:not(:last-of-type), .is-done .reel-bar { display: none; }
.reel.is-done .frame { clip-path: none; }
.is-live .reel-bar { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brass); transform: scaleX(0); transform-origin: left; }

/* Stuart water tower, faded behind the top of every page */
body::after { content: ""; position: absolute; z-index: -1; top: 0; left: 0; right: 0; height: clamp(560px, 72vw, 1100px); background: url("images/stuart-tower.webp") 50% 20% / cover no-repeat; opacity: var(--tower-opacity); filter: grayscale(0.35); -webkit-mask-image: linear-gradient(#000 35%, transparent); mask-image: linear-gradient(#000 35%, transparent); pointer-events: none; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
html { scroll-padding-top: 108px; }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand picture { display: block; flex: none; }
.brand img { width: 60px; height: 60px; flex: none; }
.brand b { font-family: var(--display); font-size: 1.55rem; font-weight: 600; line-height: 1; letter-spacing: 0.01em; }
.brand small { display: block; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.22em; color: var(--muted); text-transform: uppercase; margin-top: 3px; }
.nav { display: flex; gap: 28px; align-items: center; margin-left: auto; }
.head-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.menu-toggle { display: none; width: 44px; height: 44px; place-items: center; padding: 0; background: none; border: 0; color: var(--ink); cursor: pointer; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 0.9rem; font-weight: 500; white-space: nowrap; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--tide); }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 2px; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.04em; text-decoration: none; border: 1px solid transparent; font-family: var(--body); cursor: pointer; }
.btn-tag { background: var(--btn); color: var(--btn-ink); }
.btn-tag:hover { background: var(--tide); color: var(--on-tide); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--tide); color: var(--tide); }
.head-actions .btn { padding: 10px 20px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero */
.hero { background: transparent; padding-block: clamp(64px, 9vw, 120px); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.hero .wrap > * { min-width: 0; }
.creds { display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--muted); padding-top: 22px; border-top: 1px solid var(--line); }
.creds span::before { content: "◆ "; color: var(--brass); font-size: 0.6rem; vertical-align: 2px; }

/* Report card */
.report { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); overflow: hidden; font-size: 0.9rem; }
.report header { display: flex; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.report ul { list-style: none; margin: 0; padding: 4px 22px 14px; }
.report li { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.report li:last-child { border-bottom: 0; }
.chip { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; align-self: center; white-space: nowrap; border: 1px solid currentColor; }
.chip.ok { color: var(--ok); }
.chip.mon { color: var(--mon); }
.chip.fix { color: var(--fix); }

/* Services */
.grid { display: grid; gap: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc { background: transparent; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 36px 32px; display: flex; flex-direction: column; gap: 12px; }
.svc .form { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--brass); }
.svc p { color: var(--muted); }
.svc a { font-weight: 600; text-decoration: none; margin-top: auto; }
.svc.feature { background: var(--tide-soft); }
.svc.wide { grid-column: 1 / -1; }
.svc.wide p { max-width: 70ch; }
.band.alt .svc.feature { background: var(--tide-soft); }
.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 48px; }

/* Home Watch sub-menu */
.subnav { background: var(--surface); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; align-items: center; gap: 24px; padding-block: 10px; }
.subnav b { font-family: var(--display); font-size: 1.2rem; font-weight: 600; white-space: nowrap; }
.subnav-links { display: flex; align-items: center; gap: 22px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.subnav-links::-webkit-scrollbar { display: none; }
.subnav-links a { color: var(--muted); text-decoration: none; font-size: 0.88rem; font-weight: 500; white-space: nowrap; padding-block: 6px; border-bottom: 1px solid transparent; }
.subnav-links a:hover, .subnav-links a[aria-current="page"] { color: var(--tide); }
.subnav-links a[aria-current="page"] { border-bottom-color: var(--tide); }
.subnav-links .subnav-cta { color: var(--tide); font-weight: 600; }

/* Home Watch pricing */
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.price-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.price { display: flex; flex-direction: column; gap: 8px; padding: 28px 28px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price span { font-weight: 600; }
.price b { font-family: var(--display); font-size: clamp(2.6rem, 5vw, 3.4rem); font-weight: 500; line-height: 1; color: var(--tide); font-variant-numeric: lining-nums tabular-nums; }
.price small { color: var(--muted); font-size: 0.88rem; }
.price-foot { margin-top: 24px; }
.price-big { font-family: var(--display); font-size: clamp(2.8rem, 6vw, 3.8rem); line-height: 1; color: var(--tide); }
.price-big small { font-family: var(--body); font-size: 1rem; color: var(--muted); }
.jump { display: flex; flex-wrap: wrap; gap: 10px; }
.jump a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: 0.9rem; }
.jump a:hover { border-color: var(--tide); color: var(--tide); }
.price-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.price-tables > #add-ons { grid-column: 2; grid-row: 1 / span 2; }
.price-block h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin-bottom: 16px; }
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { text-align: left; font-weight: 400; padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table thead th { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-top: 0; }
.price-table thead th:last-child, .price-table td { text-align: right; }
.price-table td { font-weight: 600; white-space: nowrap; padding-left: 16px; }

/* Home Watch checklist rows */
.hw-row { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; padding-block: 48px; border-top: 1px solid var(--line); }
.hw-row:first-child { border-top: 0; padding-top: 0; }
.hw-row:last-child { padding-bottom: 0; }
.hw-row > * { min-width: 0; }
.hw-row .checks { align-content: start; }
.hw-fig { aspect-ratio: 4 / 3; max-width: 420px; margin-top: 12px; }

/* Home Watch quote form */
.quote-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 64px; align-items: start; }
.quote-grid > * { min-width: 0; }
form.quote, .quote-done { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); padding: clamp(20px, 4vw, 36px); }
form.quote { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.quote-done { display: flex; flex-direction: column; gap: 14px; }
.full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 0.85rem; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 2px; background: var(--bg); color: var(--ink); }
.field textarea { resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--fix); }
.field.check { flex-direction: row; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.field.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--tide); }
.field.check label { flex: 1; font-weight: 400; font-size: 0.92rem; }
.field.check .field-error { flex-basis: 100%; }
.field-error { margin: 0; font-size: 0.82rem; color: var(--fix); }
.form-status { margin: 0; font-size: 0.95rem; color: var(--tide); }
.form-status.error { color: var(--fix); }

/* New construction timeline */
.phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; border-top: 1px solid var(--brass); }
.phase { padding: 28px 28px 0 0; display: flex; flex-direction: column; gap: 10px; position: relative; }
.phase::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; transform: rotate(45deg); background: var(--brass); }
.phase .when { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); }
.phase p { color: var(--muted); }

/* Calculator */
.calc { margin-top: 56px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; }
.calc > * { min-width: 0; }
.calc label { font-weight: 600; font-size: 0.85rem; display: block; margin-bottom: 8px; }
.calc input { font: inherit; padding: 12px 14px; border-radius: 2px; border: 1px solid var(--line); width: 100%; max-width: 260px; background: var(--bg); color: var(--ink); }
.dates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.date { border-left: 1px solid var(--line); padding-left: 14px; }
.date.key { border-color: var(--brass); }
.date span { display: block; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.date b { font-family: var(--display); font-size: 1.7rem; font-weight: 500; font-variant-numeric: tabular-nums lining-nums; }
.calc-note { margin-top: 18px; font-size: 0.95rem; color: var(--muted); }
.calc-note.late { color: #a3463b; }
.small { font-size: 0.8rem; color: var(--muted); }

/* Reviews */
.placeholder { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); border: 1px dashed var(--line); padding: 2px 8px; border-radius: 2px; display: inline-block; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split > * { min-width: 0; }
.photo { aspect-ratio: 4 / 5; margin: 0; background: var(--tide-soft); overflow: hidden; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo.portrait { max-width: 460px; }

/* Areas */
.areas { display: flex; flex-wrap: wrap; gap: 10px; }
.areas a, .areas span { padding: 9px 18px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; color: var(--ink); background: var(--surface); font-size: 0.92rem; }
.areas a { border-color: var(--tide); color: var(--tide); font-weight: 600; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
.contact-grid > * { min-width: 0; }
.scheduler { background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.scheduler iframe { display: block; width: 100%; height: 1100px; border: 0; }
.big-phone { font-family: var(--display); font-size: 2.6rem; font-weight: 500; color: var(--tide); user-select: all; line-height: 1.1; text-decoration: none; }

/* Inner pages */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { padding-left: 24px; position: relative; max-width: 62ch; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 0.7em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--brass); }
.cols-2 { columns: 2 260px; column-gap: 40px; }
.cols-2 li { break-inside: avoid; margin-bottom: 12px; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 20px; }
.faq summary { font-family: var(--display); font-size: 1.35rem; cursor: pointer; }
.faq p { margin-top: 10px; color: var(--muted); }

.site-foot { background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); padding-block: 40px; font-size: 0.85rem; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-foot a { color: var(--ink); }

@media (max-width: 1040px) {
  .site-head .wrap { flex-wrap: wrap; gap: 0 12px; justify-content: space-between; padding-block: 10px; }
  .brand img { width: 48px; height: 48px; }
  .menu-toggle { display: grid; }
  .nav { display: none; order: 3; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 10px 0 0; border-top: 1px solid var(--line); padding-top: 6px; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding-block: 11px; font-size: 1rem; }
  html { scroll-padding-top: 84px; }
}
@media (max-width: 860px) {
  .subnav .wrap { flex-direction: column; align-items: flex-start; gap: 2px; }
  .subnav-links { margin-left: 0; width: 100%; gap: 18px; }
  .subnav-links .subnav-cta { display: none; }
  .price-grid { grid-template-columns: 1fr 1fr; }
  .price-tables, .quote-grid { grid-template-columns: 1fr; gap: 48px; }
  .price-tables > #add-ons { grid-column: auto; grid-row: auto; }
  .hw-row { grid-template-columns: 1fr; gap: 24px; }
  .frame { grid-template-columns: 1fr; gap: 24px; padding: 0 0 40px; }
  .frame .stack { padding-inline: 16px; }
  .is-live .frame { padding-top: 69px; grid-template-rows: minmax(0, 1fr) auto; gap: 20px; padding-bottom: 32px; }
  .hero .wrap, .split, .contact-grid, .calc { grid-template-columns: 1fr; gap: 40px; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  form.quote { grid-template-columns: 1fr; }
  .price { padding: 22px 18px 24px; }
  .photo.portrait { max-width: none; }
  .grid, .phases, .dates { grid-template-columns: 1fr; }
  .svc { padding: 28px 22px; }
  .phases { border-top: 0; border-left: 1px solid var(--brass); }
  .phase { padding: 0 0 28px 24px; }
  .phase::before { top: 8px; left: -5px; }
  .head-actions .btn { padding: 9px 14px; }
}
@media (max-width: 380px) {
  .brand small { display: none; }
  .site-head .wrap { gap: 0 6px; }
  .brand { gap: 8px; }
  .brand img { width: 44px; height: 44px; }
  .head-actions { gap: 2px; }
  .head-actions .btn { padding: 9px 11px; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .nav a { transition: color .2s, background-color .2s, border-color .2s; }
}
