/* Hallmark · custom (brief-pinned palette and type) · shape: scroll story into a service record · hero: stage, copy left, 3D fixture right · signature: the logo faucet that opens and becomes a pipe network · nav: bar with phone · footer: tagline mast */
/* critique: P5 H4 E4 S4 R4 V4 */
/* waive 19: the three-word tagline is the client's own, from the brief of November 30 */
/* waive 24b: row padding is set optically around 3rem touch targets */
:root {
  --navy: #102438;
  --midnight: #09131f;
  --blue: #1686e8;
  --aqua: #82d8f5;
  --porcelain: #f5f7fa;
  --white: #fcfdfe;
  --ink: #182330;
  --muted: #4a5a6c;
  --action: #1167b1;
  --action-hover: #0c5593;
  --line: #d5dde7;
  --line-dark: #2a4056;
  --on-dark-muted: #b9c9da;
  --error: #a8231b;
  --star: #c98a12;
  --field-line: #7a8899;
  --shadow: 0 1.125rem 2.5rem -1.125rem rgb(9 19 31 / 0.35);
  --font-head: 'Manrope', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --radius: 0.625rem;
  --head: 4.75rem;
  --measure: 66ch;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: clip; scroll-padding-top: calc(var(--head) + 1rem); -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; background: var(--porcelain); color: var(--ink); font: 400 1.0625rem/1.65 var(--font-body); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.14; letter-spacing: -0.022em; margin: 0 0 0.6em; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.2vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.7vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: var(--measure); text-wrap: pretty; }
a { color: var(--action); text-underline-offset: 0.18em; }
::selection { background: var(--aqua); color: var(--midnight); }
:focus-visible { outline: 0.1875rem solid var(--blue); outline-offset: 0.1875rem; }
.dark :focus-visible, .header :focus-visible { outline-color: var(--aqua); }
.dark .form :focus-visible { outline-color: var(--blue); }
.dark { color: var(--porcelain); }
.dark h1, .dark h2, .dark h3 { color: var(--white); }
.dark a:not(.btn) { color: var(--aqua); }

.wrap { width: min(75rem, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: 0.75rem; top: -5rem; z-index: 60; background: var(--white); padding: 0.625rem 1rem; border-radius: var(--radius); }
.skip:focus { top: 0.75rem; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.num { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55em; min-height: 3rem; padding: 0.6em 1.35em; border: 1.5px solid var(--action); border-radius: var(--radius); background: var(--action); color: var(--white); font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: background-color 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease); }
.btn:hover { background: var(--action-hover); border-color: var(--action-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn--line { background: transparent; color: var(--navy); border-color: var(--field-line); }
.btn--line:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.dark .btn--line { color: var(--white); border-color: var(--on-dark-muted); }
.dark .btn--line:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
.form .btn--line { color: var(--navy); border-color: var(--field-line); }
.form .btn--line:hover { background: var(--navy); color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Header */
.preview { margin: 0; max-width: none; padding: 0.375rem 1.25rem; background: var(--aqua); color: var(--midnight); font-size: 0.82rem; font-weight: 500; line-height: 1.4; text-align: center; }
.header { position: sticky; top: 0; z-index: 40; background: var(--midnight); color: var(--white); border-bottom: 1px solid var(--line-dark); }
.header__in { display: flex; align-items: center; gap: 1.25rem; height: var(--head); }
.logo { display: flex; align-items: center; gap: 0.625rem; color: var(--white); text-decoration: none; margin-right: auto; }
.logo__tile { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: var(--radius); background: var(--white); }
.logo__name { display: grid; line-height: 1.15; }
.logo__name strong { font: 800 1.35rem/1 var(--font-head); }
.logo__name span { font-size: 0.74rem; color: var(--on-dark-muted); white-space: nowrap; }
.nav > ul { display: flex; list-style: none; margin: 0; padding: 0; }
.nav > ul > li { position: relative; }
.nav a { display: flex; align-items: center; gap: 0.25rem; min-height: 2.75rem; padding: 0 0.625rem; color: var(--porcelain); font-size: 0.92rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--aqua); }
.nav .is-current > a { color: var(--aqua); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.5em; }
.nav .icon { width: 0.9em; height: 0.9em; }
.drop { position: absolute; left: 0; top: 100%; min-width: 14.375rem; margin: 0; padding: 0.5rem; list-style: none; background: var(--navy); border: 1px solid var(--line-dark); border-radius: var(--radius); box-shadow: var(--shadow); display: none; transition: opacity 150ms var(--ease), transform 150ms var(--ease); }
.nav li:hover > .drop, .nav li:focus-within > .drop { display: block; }
@starting-style { .nav li:hover > .drop, .nav li:focus-within > .drop { opacity: 0; transform: translateY(-0.25rem); } }
.nav li.is-closed > .drop { display: none; }
.header__call { min-height: 2.75rem; white-space: nowrap; }
.burger { display: none; min-height: 2.75rem; padding: 0 0.875rem; background: transparent; border: 1.5px solid var(--on-dark-muted); border-radius: var(--radius); color: var(--white); font: 600 0.95rem var(--font-body); cursor: pointer; }
.menu { display: none; }
.nojs { display: flex; flex-wrap: wrap; gap: 0.875rem; padding-block: 0.75rem; }

/* The scroll story. Default: plain stacked chapters with still images. */
.story { position: relative; background: radial-gradient(120% 100vh at 72% 20vh, var(--navy), var(--midnight) 70%) var(--midnight); }
.stage { display: none; }
.chapter { padding-block: 4rem; }
.chapter + .chapter { border-top: 1px solid var(--line-dark); }
.chapter .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 2.5rem; }
.chapter__still { width: 100%; max-width: 35rem; justify-self: center; }
.chapter h1 { font-size: clamp(2.6rem, 1.2rem + 4.6vw, 5rem); letter-spacing: -0.035em; line-height: 1.04; }
.chapter p { max-width: 42ch; color: var(--on-dark-muted); font-size: 1.08rem; }
.chapter--hero p { font-size: 1.15rem; max-width: 38ch; }
.chapter__list { list-style: none; margin: 0.25rem 0 0; padding: 0; max-width: 26rem; }
.chapter__list li { padding: 0.5rem 0; border-bottom: 1px solid var(--line-dark); font-weight: 600; font-size: 0.98rem; }
.chapter__skip { margin: 1.25rem 0 0; }
.chapter__skip a { font-size: 0.95rem; }

/* With motion: the stage pins under the header and the chapters scroll over it. */
.motion .story { background: var(--midnight); }
.motion .stage { display: block; position: sticky; top: var(--head); height: calc(100vh - var(--head)); height: calc(100svh - var(--head)); min-height: 32.5rem; overflow: clip; background: radial-gradient(90% 90% at 70% 35%, var(--navy), var(--midnight) 75%); }
.motion .chapters { position: relative; margin-top: calc(var(--head) - 100svh); pointer-events: none; }
.motion .chapter { height: max(58.75rem, calc(190svh - var(--head))); padding: 0; border: 0; }
.motion .chapter .wrap { display: block; height: 100%; }
/* The words hold the middle of the screen while their stop plays, with the same air above and below. */
.motion .chapter__copy { position: sticky; top: var(--head); height: calc(100vh - var(--head)); height: calc(100svh - var(--head)); display: flex; flex-direction: column; justify-content: center; padding-block: 2.5rem; max-width: 27.5rem; pointer-events: auto; }
.motion .chapter__copy > * { flex: none; }
.motion .chapter h2 { font-size: clamp(2.2rem, 1rem + 2.7vw, 3.35rem); font-weight: 800; line-height: 1.07; letter-spacing: -0.032em; margin: 0 0 1.5rem; }
.motion .chapter p { font-size: 1.12rem; line-height: 1.65; max-width: 36ch; margin: 0; }
.motion .chapter--hero h1 { margin: 0 0 1.75rem; }
.motion .chapter .actions { margin-top: 2.25rem; }
.motion .chapter .chapter__skip { margin-top: 1.5rem; }
.motion .chapter__list { margin-top: 1.5rem; }
.motion .chapter__list li { padding: 0.6875rem 0; }
.motion .chapter__still { display: none; }
.motion .chapter--hero { height: max(32.5rem, calc(100svh - var(--head))); }
/* The first screen is shorter by the preview strip, so the actions stay in view. */
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Keeps the words readable where pipes pass behind them. */
@media (min-width: 900px) { .stage--old::after { content: ''; position: absolute; inset: 0 auto 0 0; width: calc(max(0px, (100% - 75rem) / 2) + 35rem); background: linear-gradient(90deg, var(--midnight) 62%, transparent); pointer-events: none; } }
/* The scene draws test frames while it loads. None of them may show: only the still does, until it is ready. */
.motion .stage canvas { opacity: 0; }
.motion.scene-ready .stage canvas { opacity: 1; }
.parts { list-style: none; margin: 0 0 0.5rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 1rem; font-size: 0.86rem; }
.parts span { display: block; color: var(--on-dark-muted); }
.readout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.75rem 0 0; padding-block: 1.125rem; border-block: 1px solid var(--line-dark); }
.readout dt { font-size: 0.84rem; color: var(--on-dark-muted); }
.readout dd { margin: 2px 0 0; font: 700 1.05rem/1.25 var(--font-head); color: var(--white); }
.steps { margin: 1.75rem 0 0; padding: 0; list-style: none; counter-reset: step; max-width: 26rem; }
.steps li { counter-increment: step; display: flex; gap: 0.875rem; align-items: center; padding: 0.4375rem 0; color: var(--on-dark-muted); font-weight: 600; font-size: 0.95rem; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 1.5rem; height: 1.5rem; flex: none; border: 1px solid var(--line-dark); border-radius: 50%; font-size: 0.78rem; }
.motion .steps li { opacity: 0.55; transition: opacity 200ms var(--ease), color 200ms var(--ease); }
.motion .steps li.is-done { opacity: 0.8; }
.motion .steps li.is-now { opacity: 1; color: var(--white); }
.motion .steps li.is-now::before { background: var(--aqua); border-color: var(--aqua); color: var(--midnight); }
.motion .steps + .chapter__list { display: none; }

/* Stop three: the cut-open valve against flat midnight, no glow, no rules between. */
.motion .chapter--cut { border-top: 0; }

.motion .chapter { position: relative; }
.motion .stage { background: none; z-index: 1; }
.motion .chapter__copy { z-index: 2; }

@media (max-height: 760px) and (min-width: 900px) {
  .motion .chapter__list { display: none; }
  .motion .chapter__copy { padding-block: 1.5rem; }
  .motion .chapter h2 { margin-bottom: 1.125rem; }
  .motion .chapter p { font-size: 1.05rem; line-height: 1.6; }
  .motion .chapter .actions { margin-top: 1.625rem; }
  .motion .steps, .motion .readout { margin-top: 1.25rem; }
}

/* After the tour, a water line keeps running down the page edge. */
.after { position: relative; }
.rail { display: none; position: absolute; z-index: 1; top: 0; bottom: 0; left: 0.875rem; width: 0.625rem; border-radius: 0.3125rem; background: var(--navy); box-shadow: inset 0 0 0 1px var(--line-dark); pointer-events: none; }
.rail span { position: absolute; left: 0.1875rem; right: 0.1875rem; top: 0; bottom: 0; border-radius: 2px; background: var(--blue); transform-origin: top; transform: scaleY(var(--fill, 0)); }
@media (min-width: 1280px) { .rail { display: block; } }

/* Review wall */
.section--wall { position: relative; z-index: 2; overflow: clip; }
.head--center { text-align: center; }
.head--center p { margin-inline: auto; }
.actions--center { justify-content: center; gap: 1.5rem 2.75rem; margin-top: 2.75rem; padding-block: 0.5rem; }
.wall4 { display: grid; gap: 1.125rem; }
.wall4__row { overflow: clip; }
.wall4__track { display: flex; width: max-content; animation: drift 90s linear infinite; }
.wall4__row:nth-child(2) .wall4__track { animation-duration: 76s; }
.wall4__row:nth-child(3) .wall4__track { animation-duration: 104s; }
.wall4__row:nth-child(4) .wall4__track { animation-duration: 84s; }
.wall4__row--back .wall4__track { animation-direction: reverse; }
.wall4__row:hover .wall4__track, .wall4.is-paused .wall4__track { animation-play-state: paused; }
@keyframes drift { to { transform: translateX(-50%); } }
.wall4 ul { display: flex; gap: 1.125rem; margin: 0; padding: 0 1.125rem 0 0; list-style: none; }
.card, .tile { flex: none; height: 15rem; border-radius: 1.375rem; overflow: clip; }
.tile { width: 15rem; background: var(--line); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.card { display: flex; flex-direction: column; width: 18.75rem; padding: 1.375rem; background: var(--porcelain); border: 1px solid var(--line); }
.card__who { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.card__who > span:last-child { display: grid; line-height: 1.35; }
.card__who strong { color: var(--navy); font-size: 0.98rem; }
.card__who span span { color: var(--muted); font-size: 0.8rem; }
.card__who img, .card__initial { width: 2.75rem; height: 2.75rem; border-radius: 50%; object-fit: cover; flex: none; }
.card__initial { display: grid; place-items: center; background: var(--navy); color: var(--white); font: 700 1.15rem var(--font-head); }
.card p { margin: 0 0 0.75rem; font-size: 0.93rem; line-height: 1.5; }
.card__stars { width: 6.5rem; height: auto; flex: none; margin-top: auto; fill: var(--star); }
.wall4__pause { justify-self: center; margin-top: 0.5rem; }
@media (prefers-reduced-motion: reduce) {
  .wall4__row { overflow-x: auto; }
  .wall4__track { animation: none; }
  .wall4__copy, .wall4__pause { display: none !important; }
}

/* Sections */
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: var(--porcelain); }
.section--first { padding-top: clamp(2.5rem, 6vw, 5rem); }
.head { margin-bottom: 2.25rem; }
.head p { color: var(--muted); }
.lead { font-size: 1.2rem; }
.note { margin-top: 0.875rem; color: var(--muted); font-size: 0.9rem; }
.dark .note, .dark .lead { color: var(--on-dark-muted); }
.dark .form .note { color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.split--wide { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

.index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; margin: 0; padding: 0; list-style: none; }
.index li { border-top: 1px solid var(--line); }
.index a { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1.375rem; align-items: center; padding: 1.375rem 0; color: var(--ink); text-decoration: none; }
.index img { width: 7rem; height: 7rem; object-fit: cover; border-radius: var(--radius); }
.index strong { display: block; margin-bottom: 0.25rem; font: 700 1.3rem/1.25 var(--font-head); color: var(--navy); }
.index a span span { display: block; color: var(--muted); font-size: 0.98rem; line-height: 1.5; }
.index a:hover strong { color: var(--action); text-decoration: underline; }

.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.quotes--all { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 4.5rem; }
.quote { margin: 0; padding-top: 1.25rem; border-top: 2px solid var(--navy); }
.quote blockquote { margin: 0; }
.quote blockquote p { font: 600 1.28rem/1.45 var(--font-head); color: var(--navy); letter-spacing: -0.01em; }
.quote figcaption { color: var(--muted); font-size: 0.92rem; }
.quote figcaption strong { color: var(--ink); margin-right: 0.5rem; }
.strip__title { margin-top: 4rem; }
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.strip figure { margin: 0; }
.strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.strip figcaption { margin-top: 0.5rem; color: var(--muted); font-size: 0.88rem; }

.prices { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.prices th, .prices td { padding: 1.125rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: baseline; }
.prices thead th { padding-block: 0 0.625rem; border-bottom: 2px solid var(--navy); color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.prices tbody th { font-weight: 500; padding-right: 1rem; }
.prices td { text-align: right; white-space: nowrap; font: 700 1.25rem var(--font-head); color: var(--navy); }
.prices thead th:last-child { text-align: right; }

.areas { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.cities { margin: 1.5rem 0; padding: 0; list-style: none; }
.cities li { padding: 0.625rem 0; border-bottom: 1px solid var(--line); font: 700 clamp(1.4rem, 1rem + 1.4vw, 2.1rem)/1.3 var(--font-head); color: var(--navy); }

.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact__phone { font: 800 clamp(2rem, 1.2rem + 2.4vw, 3rem)/1.2 var(--font-head); letter-spacing: -0.02em; }
.dark .contact__phone a { color: var(--white); text-decoration: none; }
.contact h2:not(:first-child) { margin-top: 3rem; font-size: 1.3rem; }

.form { padding: clamp(1.375rem, 3vw, 2.5rem); background: var(--white); color: var(--ink); border-radius: 1rem; box-shadow: var(--shadow); }
.dark .form h2, .dark .form h3 { color: var(--navy); }
.form h2 { font-size: 1.6rem; margin-top: 0; }
.form__intro { color: var(--muted); font-size: 0.95rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.form label { display: block; margin: 0.875rem 0 0.375rem; font-size: 0.95rem; font-weight: 600; }
.form input, .form select, .form textarea { width: 100%; min-height: 3rem; padding: 0.625rem 0.75rem; border: 1.5px solid var(--field-line); border-radius: 0.5rem; background: var(--white); color: var(--ink); font: 400 1rem var(--font-body); caret-color: var(--action); }
.form textarea { resize: vertical; }
.form [aria-invalid="true"] { border-color: var(--error); }
.err { margin: 0.375rem 0 0; color: var(--error); font-size: 0.9rem; font-weight: 500; }
.form > .btn { width: 100%; margin-top: 1.375rem; }
.form__ready { margin-top: 1.625rem; padding-top: 1.375rem; border-top: 1px solid var(--line); }
.form__ready pre { margin: 0; padding: 0.875rem; background: var(--porcelain); border-radius: 0.5rem; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 0.95rem/1.55 var(--font-body); }
.form__ready .actions { margin-block: 1rem 0.625rem; }

/* Inner pages */
.title { background: radial-gradient(90% 140% at 80% 0%, var(--navy), var(--midnight) 70%) var(--midnight); padding-block: clamp(3rem, 7vw, 5.5rem); }
.title__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 2.5rem; align-items: center; }
.title__in--solo { grid-template-columns: minmax(0, 1fr); }
.title h1 { margin-bottom: 0.35em; }
.title p { margin: 0; max-width: 46ch; color: var(--on-dark-muted); font-size: 1.2rem; }
.title__art { width: min(22.5rem, 100%); justify-self: end; margin-block: -2.5rem; }
.title__photo { margin: 0; justify-self: end; width: min(18.75rem, 100%); }
.title__photo img { width: 100%; border-radius: 1rem; }
.title .actions { margin: 0; justify-content: flex-end; }
.prose h2 { margin-top: 2.75rem; font-size: 1.55rem; }
.prose > h2:first-child, .prose > h1:first-child { margin-top: 0; }
.prose .lead { margin-bottom: 0; }
.list { margin: 0 0 1.2em; padding: 0; list-style: none; max-width: var(--measure); }
.list li { padding: 0.625rem 0; border-bottom: 1px solid var(--line); }
.dark .list li { border-color: var(--line-dark); }
.faqs { max-width: 47.5rem; }
.faqs details { border-bottom: 1px solid var(--line); }
.faqs summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 3.5rem; padding: 0.75rem 0; list-style: none; font-weight: 600; cursor: pointer; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary .icon { transition: transform 180ms var(--ease); }
.faqs summary:hover { color: var(--action); }
.faqs [open] summary .icon { transform: rotate(180deg); }
.faqs details p { padding-bottom: 0.5rem; }
.side { position: sticky; top: calc(var(--head) + 1.5rem); padding: 1.75rem; background: var(--porcelain); border-radius: 1rem; }
.side h2 { font-size: 1.4rem; }
.portrait { margin: 0; }
.portrait div { display: grid; place-items: center; aspect-ratio: 4 / 5; max-width: 23.75rem; border: 1.5px dashed var(--field-line); border-radius: 1rem; color: var(--muted); text-align: center; padding: 1.25rem; }
.portrait figcaption { margin-top: 0.625rem; color: var(--muted); }
.closer { background: var(--navy); padding-block: 3.5rem; }
.closer__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.closer h2 { margin-bottom: 0.2em; }
.closer p { margin: 0; color: var(--on-dark-muted); }
.closer .actions { margin: 0; }

/* Footer */
.footer { background: var(--midnight); color: var(--on-dark-muted); padding-block: 4.5rem 2rem; font-size: 0.95rem; }
.footer__tag { max-width: none; margin: 3.5rem 0 0; font: 800 clamp(1.7rem, 0.4rem + 4.2vw, 4.2rem)/1.15 var(--font-head); letter-spacing: -0.03em; color: var(--white); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer h2 { font: 700 1rem/1.4 var(--font-head); letter-spacing: 0; color: var(--white); }
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer a { display: inline-block; padding: 0.3125rem 0; color: var(--on-dark-muted); text-decoration: none; }
.footer a:hover { color: var(--aqua); text-decoration: underline; }
.footer p { margin-bottom: 0.375rem; }
.footer__phone a { color: var(--white); font: 700 1.35rem var(--font-head); }
.footer__base { margin: 1.5rem 0 0; font-size: 0.85rem; }
.callbar { display: none; }

@media (max-width: 1179px) {
  .nav { display: none; }
  .burger { display: block; }
  .menu.is-open { display: block; max-height: calc(100svh - var(--head)); overflow-y: auto; background: var(--midnight); border-top: 1px solid var(--line-dark); }
  .menu ul { list-style: none; padding: 0; }
  .menu > ul { margin-block: 0.5rem 1.25rem; }
  .menu > ul > li { border-bottom: 1px solid var(--line-dark); }
  .menu a { display: flex; align-items: center; min-height: 2.875rem; color: var(--white); text-decoration: none; font-weight: 600; }
  .menu li ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 0.75rem; margin: 0 0 0.5rem; }
  .menu li ul a { min-height: 2.5rem; color: var(--on-dark-muted); font-weight: 400; font-size: 0.95rem; }
}

@media (max-width: 899px) {
  :root { --head: 4.125rem; }
  .chapter .wrap, .split, .split--wide, .areas, .contact, .title__in { grid-template-columns: minmax(0, 1fr); }
  .index { grid-template-columns: minmax(0, 1fr); }
  .quotes, .quotes--all { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side { position: static; }
  .title__art { justify-self: center; width: min(17.5rem, 80%); margin-block: -1.25rem; }
  .title__photo { justify-self: start; }
  .title .actions { justify-content: flex-start; }
  .chapter__still { order: -1; max-width: 21.25rem; }
  /* Phone: the scene has the top of the screen and the words have their own panel under it.
     Nothing scrolls across the model; scrolling only picks which stop is showing. */
  .motion .story { --panel: clamp(14.75rem, 44svh, 17rem); --bar: 0px; }
  .motion .chapter { height: 90svh; }
  .motion .chapter--hero { height: 64svh; }
  .motion .chapter:last-child { height: calc(100svh - var(--head)); }
  .motion .stage { min-height: 0; }
  .motion .chapter__copy { position: fixed; top: auto; left: 0; right: 0; bottom: var(--bar); height: var(--panel); max-width: none; margin: 0; padding: 0.75rem 1rem; display: flex; flex-direction: column; justify-content: center; overflow: hidden; background: var(--midnight); border-top: 1px solid var(--line-dark); transform: translateY(calc(var(--out, 0px) * -1)); opacity: 0; pointer-events: none; transition: opacity 240ms var(--ease); }
  .motion .chapter.is-current .chapter__copy { opacity: 1; pointer-events: auto; }
  .motion .chapter h1 { font-size: clamp(2rem, 9.6vw, 2.7rem); margin: 0 0 0.75rem; }
  .motion .chapter h2 { font-size: 1.5rem; line-height: 1.15; margin: 0 0 0.5rem; }
  .motion .chapter p { font-size: 0.95rem; line-height: 1.5; margin: 0; max-width: 44ch; }
  .motion .chapter__copy > p + p:not(.chapter__skip), .motion .chapter__list, .motion .chapter__skip { display: none; }
  .motion .chapter .actions { margin-top: 0.75rem; flex-wrap: nowrap; }
  .motion .chapter .actions .btn { min-height: 2.75rem; }
  /* Hidden but still counted, so the number matches the step. */
  .motion .steps li:not(.is-now) { visibility: hidden; height: 0; padding: 0; overflow: hidden; }
  .motion .steps { margin-top: 0.625rem; }
  .motion .steps li { padding-block: 0; }
  .motion .readout { margin-top: 0.625rem; padding-block: 0.5rem; }
  .motion .readout dd { font-size: 0.92rem; }
  .card { width: 16.875rem; }
  .card, .tile { height: 16.5rem; }
  .tile { width: 16.5rem; }
}

@media (max-width: 599px) {
  body { padding-bottom: 4.5rem; }
  .motion .story { --bar: calc(4.125rem + env(safe-area-inset-bottom)); }
  .wrap { width: calc(100% - 2rem); }
  .motion .chapter .actions .btn { padding-inline: 1em; }
  .header__call { display: none; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  /* The fixed call bar already carries both actions. */
  .chapter--hero .actions { display: none; }
  .callbar .btn { padding-inline: 0.6em; white-space: nowrap; }
  .logo__name span { font-size: 0.7rem; }
  .index a { grid-template-columns: 5.25rem minmax(0, 1fr); gap: 1rem; }
  .index img { width: 5.25rem; height: 5.25rem; }
  .callbar { display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem; position: fixed; inset: auto 0 0 0; z-index: 50; padding: 0.625rem 0.75rem calc(0.625rem + env(safe-area-inset-bottom)); background: var(--midnight); border-top: 1px solid var(--line-dark); }
  .callbar .btn:last-child { background: transparent; border-color: var(--on-dark-muted); }
  .preview { font-size: 0.74rem; }
}

/* Short phones: a smaller panel, so the whole model still fits above it. */
@media (max-width: 899px) and (max-height: 620px) {
  .motion .story { --panel: 13.375rem; }
  .motion .chapter__copy { padding-block: 0.375rem; }
  .motion .chapter h1 { font-size: 2rem; margin-bottom: 0.5rem; }
  .motion .chapter h2 { font-size: 1.3rem; margin-bottom: 0.25rem; }
  .motion .chapter p { font-size: 0.86rem; line-height: 1.4; }
  .motion .chapter .actions { margin-top: 0.5rem; }
  .motion .steps, .motion .readout { margin-top: 0.375rem; }
  .motion .readout { padding-block: 0.25rem; }
}

@media (max-width: 340px) {
  .logo__name span { white-space: normal; max-width: 15ch; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

/* Contact: more room between the heading, its lead, the number and the button. The top of the heading lines up with the form's heading. */
.contact > div:first-child { padding-top: calc(clamp(1.375rem, 3vw, 2.5rem) - 0.2rem); }
.contact h1, .contact h2:first-child { margin-bottom: 0.7em; }
.contact .lead { margin-bottom: 1.5rem; }
.contact__phone { margin: 0 0 1.75rem; }
.contact .actions { margin-top: 0; }
.contact h2:not(:first-child) { margin-top: 3rem; }

/* Service area map */
.map { margin: 0; justify-self: center; width: min(35rem, 100%); }
.map svg { display: block; width: 100%; height: auto; border-radius: 1rem; box-shadow: var(--shadow); background: #e7eef6; }
.map__land { fill: #f1f4f0; }
.map__water { fill: #bcd9ef; }
.map__shore { fill: none; stroke: #8fbde0; stroke-width: 1.4; }
.map__hill { fill: #e1e9dc; stroke: #d2ddca; stroke-width: 1; }
.map__park { fill: #e3eddc; }
.map__road-case { fill: none; stroke: #b9c4d0; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.map__road { fill: none; stroke: #ffffff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.map__road--minor .map__road-case { stroke-width: 4; }
.map__peak { fill: #9fb09a; }
.map__town { fill: #6b7b8c; }
.map__stop { fill: var(--white); stroke: var(--blue); stroke-width: 4; }
.map__stop--home { fill: var(--blue); stroke: var(--white); stroke-width: 3; }
.map text { font-family: var(--font-body); }
.map__label { fill: var(--navy); font-size: 17px; font-weight: 700; paint-order: stroke; stroke: #f6f9fb; stroke-width: 4px; stroke-linejoin: round; }
.map__small { fill: #6b7b8c; font-size: 11.5px; font-weight: 500; paint-order: stroke; stroke: #f1f4f0; stroke-width: 3px; stroke-linejoin: round; }
.map__sea { fill: #5d93bf; font-size: 12px; font-style: italic; letter-spacing: 0.08em; }
.map__road-num { fill: #4a5a6c; font-size: 10px; font-weight: 700; }
.map__tag { fill: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; paint-order: stroke; stroke: #f6f9fb; stroke-width: 3px; }
.map__scale line { stroke: #4a5a6c; stroke-width: 2; }
.map__scale text { fill: #4a5a6c; font-size: 11px; font-weight: 600; }
.map figcaption { margin-top: 0.75rem; color: var(--muted); font-size: 0.85rem; text-align: center; }

/* Scroll pulse: a very small swell that follows each block's position in the window. Driven by scrolling only, never by a timer. */
.js [data-pulse] { --pulse: 0; scale: calc(1 + var(--pulse) * 0.012); }
.js h2[data-pulse] { transform-origin: left center; }
.js .card[data-pulse], .js .index li[data-pulse] { scale: calc(1 + var(--pulse) * 0.008); }
.js .btn[data-pulse] { scale: calc(1 + var(--pulse) * 0.02); box-shadow: 0 0 0 calc(var(--pulse) * 0.4rem) rgb(22 134 232 / calc(var(--pulse) * 0.12)); }
.js .map[data-pulse] { scale: calc(1 + var(--pulse) * 0.01); }
.js .cities li[data-pulse] { scale: 1; translate: calc(var(--pulse) * 0.5rem) 0; }
.js .prices tr[data-pulse] { scale: 1; translate: calc(var(--pulse) * 0.35rem) 0; }
@media (prefers-reduced-motion: reduce) { .js [data-pulse], .js .btn[data-pulse], .js .map[data-pulse], .js .cities li[data-pulse], .js .prices tr[data-pulse] { scale: 1; translate: none; box-shadow: none; } }

/* The house film. The pictures fill the stage; a soft shade on the left keeps the words readable. */
.motion .stage { background: var(--midnight); }
.stage__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene-ready .stage__poster { opacity: 0; }
.motion .stage picture { display: contents; }
@media (min-width: 900px) {
  .motion .stage::after { content: ''; position: absolute; inset: 0 auto 0 0; width: calc(max(0px, (100% - 75rem) / 2) + 50rem); max-width: 68%; background: linear-gradient(90deg, rgb(9 19 31 / 0.92) 0%, rgb(9 19 31 / 0.76) 40%, rgb(9 19 31 / 0.32) 70%, rgb(9 19 31 / 0) 100%); pointer-events: none; transition: opacity 320ms var(--ease); }
  .motion .stage::before { content: ''; position: absolute; z-index: 1; inset: 0 0 auto 0; height: 50%; background: linear-gradient(rgb(9 19 31 / 0.94) 30%, rgb(9 19 31 / 0)); opacity: 0; pointer-events: none; transition: opacity 320ms var(--ease); }
  .motion .stage.is-top::after { opacity: 0; }
  .motion .stage.is-top::before { opacity: 1; }
  .motion .chapter--system .chapter__copy { max-width: 46rem; justify-content: flex-start; padding-top: 2rem; }
  .motion .chapter--system h2 { margin-bottom: 0.75rem; }
  .motion .chapter--system p { max-width: none; }
  .motion .chapter--system .actions { margin-top: 1.25rem; }
}
.motion .chapter p, .motion .chapter__list, .motion .parts { text-shadow: 0 0 0.75rem rgb(9 19 31 / 0.8); }
.motion .chapter p { color: var(--porcelain); }
.motion .chapter--apart .parts { gap: 0.4rem 1rem; margin-top: 1.25rem; font-size: 0.8rem; line-height: 1.35; }
.motion .chapter--apart h2 { margin-bottom: 1rem; }
.motion .chapter--apart .actions { margin-top: 1.5rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.motion .chapter--system .chapter__copy .sr { position: absolute; }
.chapter__still img { width: 100%; height: auto; border-radius: var(--radius); }
.film-labels { position: absolute; inset: 0; z-index: 2; margin: 0; padding: 0; list-style: none; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity 240ms var(--ease), visibility 240ms; }
.film-labels.is-on { opacity: 1; visibility: visible; }
.film-labels li { position: absolute; translate: -50% calc(-100% - 1.5rem); padding: 0.3125rem 0.625rem; border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--midnight); color: var(--white); font: 600 0.78rem/1.2 var(--font-body); white-space: nowrap; }
.film-labels li::after { content: ''; position: absolute; left: 50%; top: 100%; width: 1px; height: 1.5rem; background: var(--aqua); }
.film-labels li.is-under { translate: -50% 1.5rem; }
.film-labels li.is-under::after { top: auto; bottom: 100%; }
.title__art { width: 100%; height: auto; border-radius: var(--radius); }

@media (max-width: 899px) {
  .motion .chapter--apart .parts { display: none; }
  .motion .chapter .chapter__copy { text-shadow: none; }
  .title__art { width: 100%; margin-block: 0; }
  .film-labels li { font-size: 0.68rem; padding: 0.25rem 0.4375rem; translate: -50% calc(-100% - 0.875rem); }
  .film-labels li::after { height: 0.875rem; }
  .film-labels li.is-under { translate: -50% 0.875rem; }
}

/* Lenis, eased wheel scrolling on the home page. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

/* Loading screen: a pipe filling with water for three seconds. */
.loader { display: none; }
.motion .loader { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 1.5rem; background: var(--midnight); color: var(--white); text-align: center; touch-action: none; animation: loader-out 0.35s var(--ease) 3s forwards; }
.loader p { margin: 0; }
.loader__mark { display: grid; place-items: center; width: 5.5rem; height: 5.5rem; border-radius: var(--radius); background: var(--white); }
.loader__mark img { width: 4.5rem; height: 4.5rem; }
.loader__name { font: 700 1.25rem/1.3 var(--font-head); }
.loader__drip { width: 0.625rem; height: 0.625rem; margin-top: 0.75rem; border-radius: 0 50% 50% 50%; background: var(--aqua); rotate: 45deg; animation: loader-drip 0.75s cubic-bezier(0.5, 0, 1, 1) 4; }
.loader__pipe { width: min(18rem, 72vw); height: 0.875rem; padding: 0.125rem; border: 1px solid var(--line-dark); border-radius: 1rem; }
.loader__water { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--aqua)); transform-origin: left; animation: loader-fill 3s cubic-bezier(0.35, 0.1, 0.35, 1) forwards; }
.loader .loader__note { color: var(--on-dark-muted); font-size: 0.9375rem; }
.loader .btn { margin-top: 0.75rem; color: var(--white); }
@keyframes loader-fill { from { transform: scaleX(0.02); } to { transform: scaleX(1); } }
@keyframes loader-drip { 0% { translate: 0 -1rem; opacity: 0; } 20% { opacity: 1; } 100% { translate: 0 0.625rem; opacity: 0; } }
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }
