/* FML Services
   Palette comes from the job photos: blue conduit and highveld sky, the yellow
   warning stickers on the drill rig, red oxide soil. */

@font-face { font-family: "Big Shoulders"; src: url("../assets/fonts/big-shoulders.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../assets/fonts/public-sans.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --cobalt: #1a3fd4;
  --ink: #0c1633;
  --concrete: #e9ebe8;
  --white: #ffffff;
  --signal: #ffc400;
  --oxide: #b5472a;
  --vial: #dcef6a;

  --display: "Big Shoulders", "Arial Narrow", Impact, sans-serif;
  --body: "Public Sans", system-ui, sans-serif;

  --gutter: clamp(1rem, 3vw, 3rem);
  --bar-h: 4.25rem;
  --hero-size: min(12vw, 16svh);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; interpolate-size: allow-keywords; overflow-x: clip; }
body { margin: 0; background: var(--concrete); color: var(--ink); font: 400 1.0625rem/1.55 var(--body); overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 100; padding: .5rem 1rem; background: var(--signal); color: var(--ink); transform: translateY(-200%); }
.skip:focus { transform: none; }

.display { font: 800 clamp(2.75rem, 7vw, 6.5rem)/.9 var(--display); text-wrap: balance; }

/* Buttons */
.btn {
  display: inline-block; padding: .85rem 1.4rem; border: 2px solid var(--signal); border-radius: 3px; cursor: pointer;
  font-weight: 700; line-height: 1.2; text-decoration: none; color: var(--ink);
  background: linear-gradient(var(--white), var(--white)) no-repeat left / 0 100%, var(--signal);
  transition: background-size .28s cubic-bezier(.2,.8,.2,1), border-color .28s, transform .15s;
}
.btn:hover { background-size: 100% 100%; border-color: var(--white); }
.btn:active { transform: translateY(2px); }
.btn-small { padding: .5rem .9rem; font-size: .9375rem; }
.btn-ink { color: var(--white); border-color: var(--ink); background: linear-gradient(var(--cobalt), var(--cobalt)) no-repeat left / 0 100%, var(--ink); }
.btn-ink:hover { border-color: var(--cobalt); }
.btn-ghost { color: var(--white); border-color: currentColor; background: linear-gradient(var(--white), var(--white)) no-repeat left / 0 100%, transparent; }
.btn-ghost:hover { color: var(--ink); }
.text-link { font-weight: 700; text-underline-offset: .2em; text-decoration-thickness: 2px; }

/* Top bar */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--bar-h); padding-inline: var(--gutter);
  display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); color: var(--white);
  transition: transform .3s, background-color .3s;
}
.bar.is-solid { background: var(--ink); }
.bar.is-hidden { transform: translateY(-100%); }
.bar:focus-within { transform: none; }
.wordmark { font: 900 1.75rem/1 var(--display); white-space: nowrap; text-decoration: none; margin-right: auto; }
.bar-links { display: flex; gap: clamp(1rem, 2vw, 2rem); }
.bar-links a, .bar-phone { text-decoration: none; font-weight: 600; font-size: 1rem; }
.bar-links a:hover, .bar-phone:hover { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 2px; }

/* Hero */
.hero { background: var(--cobalt); color: var(--white); min-height: 100svh; display: flex; padding: calc(var(--bar-h) + .5rem) var(--gutter) 1.75rem; overflow: clip; }
.namer { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.hero-line { font: 800 var(--hero-size)/.92 var(--display); }
.mask { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .02em; }
.mask > span { display: inline-block; }

.namer-field { position: relative; margin-top: .06em; }
.namer-input {
  display: block; width: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; outline: 0; caret-color: var(--signal);
  color: var(--white); height: 1.2em; margin-bottom: -.18em; transition: color .25s;
}
.namer-input.is-fixed { color: var(--signal); }
.namer-input:focus-visible { outline: 2px dashed rgba(255,255,255,.55); outline-offset: .02em; }
.namer-input::placeholder { color: rgba(255,255,255,.3); opacity: 1; }
.namer-input.is-demo::placeholder { color: transparent; }
.namer-demo { position: absolute; inset: 0; pointer-events: none; white-space: pre; display: none; }
.motion .namer-demo { display: block; }
.namer-demo span { display: inline-block; transform-origin: 50% 90%; }
.namer-field:focus-within { --ring: 1; }

.level {
  position: relative; height: clamp(1.4rem, 2.5vw, 2.35rem); margin-block: .35rem .7rem; border-radius: 3px; background: var(--signal);
  transform-origin: 50% 50%; box-shadow: inset 0 -3px 0 rgba(12,22,51,.18);
}
.level::before, .level::after { content: ""; position: absolute; top: 0; bottom: 0; width: clamp(.9rem, 2vw, 1.75rem); background: var(--ink); }
.level::before { left: 0; border-radius: 3px 0 0 3px; }
.level::after { right: 0; border-radius: 0 3px 3px 0; }
.level-vial {
  position: absolute; left: 50%; top: 50%; width: clamp(5rem, 10vw, 9rem); height: 62%; transform: translate(-50%, -50%);
  border-radius: 99px; overflow: hidden; background: var(--vial); box-shadow: inset 0 0 0 2px var(--ink);
}
.level-vial::before, .level-vial::after { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink); }
.level-vial::before { left: 37%; }
.level-vial::after { right: 37%; }
.level-bubble { position: absolute; left: 50%; top: 18%; width: 20%; height: 64%; margin-left: -10%; border-radius: 99px; background: var(--white); box-shadow: 0 0 0 1.5px rgba(12,22,51,.35); }

.hero-line-fix { position: relative; }
.fix-ghost { color: rgba(255,255,255,.2); display: block; }
.fix-solid { position: absolute; left: 0; top: 0; color: var(--white); transform-origin: 0 60%; }

.hero-foot { display: flex; justify-content: space-between; align-items: end; gap: 1.25rem 3rem; flex-wrap: wrap; margin-top: clamp(.9rem, 2.5svh, 1.75rem); }
.hero-intro { max-width: 34rem; }
.hero-action { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
.open-status { display: flex; align-items: center; gap: .5rem; margin-top: .5rem; font-weight: 600; }
.open-status:empty { display: none; }
.open-status::before { content: ""; flex: none; width: .7rem; height: .7rem; border-radius: 50%; box-shadow: inset 0 0 0 2px currentColor; }
.open-status.is-open::before { background: var(--vial); box-shadow: 0 0 0 2px var(--vial); }
.hero-match { font-weight: 600; min-height: 1.55em; }
.hero-match strong { color: var(--signal); }

/* Plumbing and water */
.focus { padding: clamp(4rem, 9vw, 8rem) var(--gutter) 0; }
.focus-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 3rem; margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.focus-lede { max-width: 22rem; font-size: 1.125rem; line-height: 1.35; font-weight: 600; }
.focus-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem clamp(1rem, 2.5vw, 2.5rem); align-items: start; }
.focus-item { display: grid; justify-items: start; gap: .6rem; }
.focus-visual { width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 3px; margin-bottom: .4rem; }
.focus-visual svg { width: 100%; height: 100%; overflow: visible; }
.focus-visual img { width: 100%; height: 100%; object-fit: cover; }
.focus-visual-tap { background: var(--cobalt); }
.focus-visual-backup { background: #cfdcff; }
.focus-name { font: 800 clamp(2rem, 2.5vw, 2.75rem)/1 var(--display); }
.focus-visual-ro img { object-position: 78% 50%; }
.backup-toggle { margin-block: .25rem; }
.backup-note { min-height: 1.55em; font-weight: 600; }
.backup-label { font: 700 15px var(--body); fill: var(--white); }
.backup-mains, .backup-feed, .backup-valve { transition: opacity .35s; }
.backup-feed { opacity: 0; }
.backup-valve { opacity: 0; }
.backup-level { transform-box: fill-box; transform-origin: 50% 100%; transition: transform 3s ease-in-out; }
.is-off .backup-mains { opacity: .12; }
.is-off .backup-feed, .is-off .backup-valve { opacity: 1; }
.is-off .backup-level { transform: scaleY(.45); }

/* Our work */
.work { margin-top: clamp(4rem, 9vw, 8rem); padding-block: clamp(3rem, 6vw, 5rem); background: var(--ink); color: var(--white); }
.work-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; padding-inline: var(--gutter); margin-bottom: clamp(1.25rem, 3vw, 2.25rem); }
.work-head .display { font-size: clamp(2.75rem, 5.5vw, 5.25rem); }
.work-nav { display: flex; gap: .6rem; }
.work-nav[hidden] { display: none; }
.work-nav .btn:disabled { opacity: .35; cursor: default; }
.work-strip { display: flex; gap: clamp(.6rem, 1.2vw, 1rem); overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); padding-inline: var(--gutter); padding-bottom: .75rem; scrollbar-color: var(--cobalt) transparent; }
.work-strip:focus-visible { outline-offset: -3px; }
.work-item { flex: none; scroll-snap-align: start; display: grid; gap: .5rem; }
.work-item img { height: clamp(17rem, 58svh, 32rem); width: auto; max-width: 86vw; object-fit: cover; border-radius: 3px; }
.work-item figcaption { font-weight: 600; font-size: .9375rem; max-width: 22rem; }

/* Services */
.services { padding: clamp(4rem, 9vw, 8rem) var(--gutter) clamp(3rem, 7vw, 6rem); }
.services-head .display { font-size: clamp(2.75rem, 5.5vw, 5.25rem); }
.services-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 3rem; margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.services-lede { max-width: 24rem; }
.service-list { border-top: 3px solid var(--ink); }
.service { border-bottom: 3px solid var(--ink); }
.service summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 1.25rem; padding: .7rem clamp(.25rem, 1vw, 1rem);
  background: linear-gradient(var(--cobalt), var(--cobalt)) no-repeat left / 0 100%;
  transition: background-size .4s cubic-bezier(.2,.8,.2,1), color .2s, padding-left .4s cubic-bezier(.2,.8,.2,1);
}
.service summary::-webkit-details-marker { display: none; }
.service-name { font: 800 clamp(1.9rem, 4.2vw, 4rem)/1 var(--display); }
.service-tag { font-weight: 700; font-size: .875rem; padding: .2rem .55rem; background: var(--signal); color: var(--ink); border-radius: 2px; white-space: nowrap; }
.service-plus { margin-left: auto; flex: none; position: relative; width: clamp(1.1rem, 2vw, 1.75rem); aspect-ratio: 1; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.service-plus::before, .service-plus::after { content: ""; position: absolute; background: currentColor; }
.service-plus::before { left: 0; right: 0; top: calc(50% - 2px); height: 4px; }
.service-plus::after { top: 0; bottom: 0; left: calc(50% - 2px); width: 4px; }
.service[open] .service-plus { transform: rotate(135deg); }
@media (hover: hover) {
  .service summary:hover { background-size: 100% 100%; color: var(--white); padding-left: clamp(1rem, 2.5vw, 2.5rem); }
}
.service[open] summary { color: var(--cobalt); }
.service[open] summary:hover { color: var(--white); }
.service::details-content { height: 0; overflow: clip; transition: height .4s cubic-bezier(.2,.8,.2,1), content-visibility .4s allow-discrete; }
.service[open]::details-content { height: auto; }
.service-body { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 1.25rem 3rem; padding: 1rem clamp(.25rem, 1vw, 1rem) 2rem; }
.service-text { flex: 1 1 18rem; max-width: 34rem; font-size: 1.125rem; }
.service-text p { margin-bottom: .75rem; }
.service-body img { width: min(16rem, 44vw); aspect-ratio: 3/4; object-fit: cover; border-radius: 3px; }
.service-body img.is-wide { width: min(24rem, 70vw); aspect-ratio: 4/3; }
.service-photos { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Descent */
.descent { background: var(--cobalt); color: var(--white); }
.descent-intro { padding: clamp(4rem, 9vw, 8rem) var(--gutter) clamp(2rem, 5vw, 4rem); }
.descent-lede { margin-top: 1.25rem; font-size: 1.125rem; font-weight: 600; display: none; }
.motion .descent-lede { display: block; }
.descent-stage { background: var(--ink); padding: var(--gutter); display: grid; gap: 4rem; }
.gauge { display: none; }
.scene { display: grid; gap: 1.25rem; }
.scene-depth { display: inline-block; padding: .15rem .55rem; margin-bottom: .75rem; border-radius: 2px; background: var(--signal); color: var(--ink); font-weight: 700; }
.scene-title { font: 800 clamp(2.5rem, 5.5vw, 5.5rem)/.92 var(--display); margin-bottom: 1rem; text-wrap: balance; }
.scene-copy > p:last-child { max-width: 32rem; font-size: 1.0625rem; }
.scene-photo { max-width: 38rem; }
.scene-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }

.motion .descent-run { height: 260svh; }
.motion .descent-stage { position: sticky; top: 0; height: 100svh; display: block; padding: 0; overflow: hidden; background: var(--cobalt); }
.motion .gauge { display: block; position: absolute; z-index: 3; left: var(--gutter); top: calc(var(--bar-h) + 1rem); bottom: 2rem; width: 4px; background: rgba(255,255,255,.3); }
.scene-skip { display: none; }
.motion .scene-skip {
  display: block; position: absolute; z-index: 4; left: calc(var(--gutter) + 2.5rem); bottom: 1.25rem; color: var(--white);
  font-weight: 600; font-size: .9375rem; text-underline-offset: .2em;
}
.gauge-marker { position: absolute; left: -7px; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px var(--ink); }
.motion .scene {
  position: absolute; inset: 0; padding: calc(var(--bar-h) + 1rem) var(--gutter) 2rem calc(var(--gutter) + 2.5rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 4vw, 4rem);
}
.motion .scene-photo { max-width: none; justify-self: center; max-height: calc(100svh - var(--bar-h) - 4rem); aspect-ratio: 4/3; width: 100%; overflow: hidden; border-radius: 3px; }
.motion .scene-photo-tall { aspect-ratio: 3/4; width: auto; height: calc(100svh - var(--bar-h) - 4rem); }

/* Boreholes */
.water { background: var(--ink); color: var(--white); }
.water-stage { display: grid; }
.water-art { overflow: hidden; background: #cfdcff; height: min(80svh, 90vw); }
.motion .water-art { height: auto; }
.water-art svg { width: 100%; height: 100%; overflow: visible; }
.water-label { font: 800 72px var(--display); fill: var(--white); }
.water-panel { padding: clamp(2rem, 5vw, 4rem) var(--gutter); display: flex; flex-direction: column; gap: 1.5rem; }
.water-title { font-size: clamp(2.5rem, 5vw, 5rem); }
.steps { display: grid; gap: 2rem; }
.step { font-size: 1.0625rem; }
.step-name { font: 800 clamp(1.75rem, 2.8vw, 2.75rem)/1.05 var(--display); margin-bottom: .4rem; }
.step-num { color: var(--signal); margin-right: .15em; }
.step > p:not(.step-name) { max-width: 30rem; margin-bottom: .9rem; }
.step-photo { width: min(15rem, 60vw); aspect-ratio: 4/3; object-fit: cover; border-radius: 3px; }

.motion .water { height: 300svh; }
.motion .water-stage { position: sticky; top: 0; height: 100svh; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); overflow: hidden; }
.motion .water-panel { position: relative; justify-content: center; padding-top: calc(var(--bar-h) + .5rem); padding-bottom: 1.5rem; }
.motion .steps { display: block; position: relative; min-height: min(25rem, 54svh); }
.motion .step { position: absolute; inset: 0; }

.water-panel .scene-skip { left: var(--gutter); }

/* Complexes */
.complexes { background: var(--ink); }
.complexes-inner {
  background: var(--signal); padding: clamp(4rem, 9vw, 8rem) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 5vw, 5rem); align-items: start;
}
.complexes-body { display: grid; gap: 1.25rem; justify-items: start; }
.complexes-lead { font-size: 1.25rem; line-height: 1.35; font-weight: 600; }
.complexes-list { width: 100%; border-top: 2px solid var(--ink); }
.complexes-list li { padding: .45rem 0; border-bottom: 2px solid var(--ink); font-weight: 600; }

/* Trust */
.trust { padding: clamp(4rem, 9vw, 8rem) var(--gutter); overflow-x: clip; }
.labels { display: grid; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); gap: 1rem; margin-bottom: clamp(4rem, 9vw, 8rem); }
.label {
  padding: .9rem 1.1rem; border: 3px solid var(--ink); border-radius: 4px; background: var(--signal);
  display: grid; align-content: start; gap: .25rem; box-shadow: 0 2px 0 rgba(12,22,51,.5);
}
.label:nth-child(even) { rotate: -.7deg; }
.label:nth-child(3n) { rotate: .8deg; }
.label strong { font: 800 clamp(1.6rem, 2.2vw, 2.1rem)/1 var(--display); }
.label-big { grid-column: 1 / -1; rotate: -.35deg; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .5rem 2rem; }
.label-big strong { font-size: clamp(2.75rem, 7vw, 6.5rem); line-height: .9; padding-bottom: .08em; }
.label-big span { max-width: 15rem; font-size: 1.0625rem; padding-bottom: .5rem; }
.review { max-width: 72rem; }
.review-quote { font: 800 clamp(2rem, 4.2vw, 4.25rem)/1 var(--display); margin-bottom: 1.25rem; text-wrap: pretty; }

/* Questions */
.questions {
  padding: 0 var(--gutter) clamp(4rem, 9vw, 8rem);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1.5rem clamp(2rem, 5vw, 5rem); align-items: start;
}
.questions-title { font-size: clamp(2.5rem, 5vw, 5rem); }
.question-list { border-top: 3px solid var(--ink); }
.service-small .service-name { font-size: clamp(1.6rem, 2.3vw, 2.25rem); line-height: 1.05; }
.service-small .service-plus { width: 1.1rem; }
.service-small .service-text { font-size: 1.0625rem; max-width: 40rem; }

/* Contact */
.contact {
  background: var(--cobalt); color: var(--white); padding: clamp(4rem, 9vw, 8rem) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem clamp(2rem, 5vw, 5rem); align-items: center;
}
.contact .display { font-size: clamp(3.75rem, 8vw, 7.5rem); }
.contact-lede { max-width: 32rem; margin-block: 1rem 2rem; font-size: 1.125rem; }
.quote-form { display: grid; gap: 1rem; max-width: 40rem; }
.field { display: grid; gap: .3rem; }
.field label { font-weight: 700; }
.field input, .field textarea {
  width: 100%; padding: .7rem .8rem; border: 2px solid var(--white); border-radius: 3px; background: rgba(12,22,51,.25); color: var(--white); resize: vertical;
}
.field input:focus, .field textarea:focus { outline: 3px solid var(--signal); outline-offset: 0; border-color: var(--signal); }
.field-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; }
.check { display: flex; align-items: center; gap: .6rem; font-weight: 600; cursor: pointer; }
.check input { flex: none; width: 1.3rem; height: 1.3rem; accent-color: var(--signal); }
.form-note { min-height: 1.55em; font-weight: 600; }
.form-note.is-error { color: var(--signal); }
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.radius-map { width: 100%; max-width: 44rem; margin-inline: auto; overflow: visible; }
.radius-rings circle { stroke: rgba(255,255,255,.4); stroke-width: 1.5; }
.radius-rings .radius-outer { stroke: var(--signal); stroke-width: 3.5; }
.radius-km { fill: var(--signal); font: 700 19px var(--body); }
.radius-home { fill: var(--signal); }
.radius-home-label { fill: var(--signal); font: 700 19px var(--body); }
.radius-places circle { fill: var(--white); }
.radius-places text { fill: var(--white); font: 400 17px var(--body); }
.radius figcaption { margin-top: 1rem; text-align: center; }

/* Footer */
.footer { background: var(--ink); color: var(--white); padding: clamp(3rem, 6vw, 5rem) var(--gutter) 1.5rem; overflow: clip; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); gap: 2rem; margin-bottom: 3rem; }
.footer-head { font: 800 1.5rem/1.1 var(--display); color: var(--signal); margin-bottom: .5rem; }
.footer address { font-style: normal; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; max-width: 20rem; }
.hours dd { white-space: nowrap; }
.footer-mark { font: 800 clamp(3rem, 19.6vw, 30rem)/.82 var(--display); white-space: nowrap; color: #3d63ee; }
.footer-legal { margin-top: 1rem; font-size: .9375rem; }

/* Thumb-reach contact on phones */
.dock { display: none; }

/* Narrower layouts */
@media (max-width: 1240px) {
  .focus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .focus-name { font-size: clamp(2rem, 4vw, 2.75rem); }
}

@media (max-width: 1080px) {
  .bar-links { display: none; }
}

@media (max-width: 860px) {
  :root { --hero-size: min(14vw, 17svh); }
  .btn-small { display: none; }
  .bar-phone { font-size: 1rem; }
  .hero { padding-bottom: 5.5rem; }
  .hero-action, .hero-action .btn { width: 100%; text-align: center; }
  .service-tag { display: none; }
  .complexes-inner, .contact, .questions, .focus-grid { grid-template-columns: minmax(0, 1fr); }

  .motion .scene { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; align-items: stretch; padding: calc(var(--bar-h) + .25rem) 1rem 6.5rem 2.4rem; gap: 1rem; }
  .motion .scene-skip { left: 2.4rem; bottom: 4.5rem; }
  .motion .water-panel { position: static; }
  .motion .water-panel .scene-skip { left: auto; right: 1rem; top: .75rem; bottom: auto; color: var(--ink); }
  .motion .gauge { left: 1rem; bottom: 6.5rem; }
  .motion .scene-photo { order: -1; aspect-ratio: auto; width: 100%; height: 100%; min-height: 0; max-height: none; }
  .motion .scene-photo-tall { width: 100%; height: 100%; }
  .scene-title { font-size: clamp(2.25rem, 9.5vw, 4rem); }
  .scene-copy > p:last-child { font-size: 1rem; }

  .motion .water-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: 52svh minmax(0, 1fr); }
  .motion .water-panel { justify-content: flex-start; padding: .9rem 1rem 5rem; gap: .5rem; }
  .motion .water-title { font-size: clamp(2rem, 8.5vw, 3.25rem); }
  .motion .step-photo { display: none; }
  .motion .step { font-size: 1rem; }
  .motion .steps { min-height: 0; flex: 1; }
  .radius-places text { font-size: 21px; }
  .radius-km, .radius-home-label { font-size: 22px; }

  .dock { display: grid; grid-template-columns: 1fr 1fr; position: fixed; inset: auto 0 0; z-index: 60; background: var(--ink); border-top: 2px solid var(--signal); padding-bottom: env(safe-area-inset-bottom); }
  .dock a { padding: .95rem; text-align: center; text-decoration: none; font-weight: 700; color: var(--white); }
  .dock a + a { background: var(--signal); color: var(--ink); }
  .footer { padding-bottom: 5rem; }
}

@media (max-height: 700px) and (max-width: 860px) {
  .motion .water-stage { grid-template-rows: 40svh minmax(0, 1fr); }
  .motion .water-panel { padding-top: .6rem; }
  .motion .water-title { font-size: 1.75rem; }
  .motion .step-name { font-size: 1.6rem; }
  .motion .step { font-size: 1rem; line-height: 1.4; }
  .motion .step .btn { padding-block: .6rem; }
}

@media (max-height: 720px) and (min-width: 861px) {
  .motion .step-photo { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
