/* Northline Heating & Air, direction C: the scroll story. Design A's system (below, unchanged) plus the story stage (at the end).
   A brand site, not a trades site: near-black, few words, the picture does the talking. Logo blue only.
   Bricolage Grotesque for headlines (800) and big names (300), Instrument Sans for text.
   4 text sizes. Pictures: full-bleed top plus 4:5 tiles only. Square pictures, 2px buttons. */

@font-face { font-family: "Bricolage Grotesque"; src: url("assets/fonts/bricolage-latin.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("assets/fonts/instrument-sans-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  /* v2: design A's light day look. the owner (21 Oct): design A was too dark, the story must feel sunny. Logo blue is the accent, not the page. */
  --ink: #FFFFFF;            /* the page: white */
  --ink-2: #F1F3F5;          /* light grey: the call band, the trust strip */
  --ink-3: #F7F8FA;          /* cards, form card */
  --stone: #151B21;          /* text, 13.8:1 or more */
  --line: rgba(21, 27, 33, .14);
  --line-strong: rgba(21, 27, 33, .5);
  --muted: #4F5963;          /* second text, 5.6:1 or more */
  --accent: #22709F;         /* button fill, white on it 5.4:1 */
  --on-accent: #FFFFFF;
  --accent-text: #1C5F8A;    /* accent as text, 5.4:1 or more */
  --detail: #7AB648;
  --error: #A8321F;

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --text: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --s1: 112px; --s2: 56px; --s3: 22px; --s4: 18px;
  --gap: 32px; --pad: 80px; --section: 160px; --head-h: 80px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (max-width: 1100px) { :root { --s1: 88px; --s2: 48px; } }
@media (max-width: 760px) {
  :root { --s1: 52px; --s2: 36px; --s3: 20px; --s4: 17px; --gap: 16px; --pad: 24px; --section: 104px; --head-h: 72px; }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); background: var(--ink); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--ink); color: var(--stone); font: 400 var(--s4)/1.6 var(--text); -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); }
h1 { font-size: var(--s1); line-height: .96; font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: var(--s2); line-height: 1.04; font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
h3 { font-size: var(--s3); line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
p, li, dd { max-width: 64ch; }
.lead { font-size: var(--s3); line-height: 1.5; color: var(--muted); max-width: 36ch; }
svg { width: 20px; height: 20px; flex: none; }

.skip { position: absolute; left: 16px; top: -80px; background: var(--ink-3); color: var(--stone); padding: 8px 16px; z-index: 100; }
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }

/* Grid */
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
@media (max-width: 760px) { .grid { grid-template-columns: minmax(0, 1fr); } .grid > * { grid-column: 1 / -1 !important; } }

/* Sections: all one near-black, separated by space and one hairline */
.section { padding: var(--section) 0; background: var(--ink); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: 80px; row-gap: 16px; align-items: baseline; }
.section-head .idx { grid-column: 1 / 4; }
.section-head h2 { grid-column: 4 / 11; }
.section-head .lead { grid-column: 4 / 11; }
@media (max-width: 760px) { .section-head { margin-bottom: 48px; } }

/* Section index, set like a thermostat readout */
.idx { display: flex; gap: 16px; align-items: baseline; color: var(--muted); }
.idx b { font-weight: 600; color: var(--accent-text); font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* Links and buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 56px; padding: 0 32px; border-radius: 2px; border: 1px solid transparent; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.btn-sm { height: 40px; padding: 0 16px; }
@media (max-width: 760px) { .btn-sm { height: 48px; } }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, #000); }
.btn-line { border-color: var(--line-strong); background: transparent; color: var(--stone); }
.btn-line:hover { border-color: var(--stone); }
.actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* Review notes: hidden unless the address has ?notes */
.note { display: none; }
html.notes .note { display: inline-block; background: #FFE58A; color: #13212C; padding: 0 8px; font-weight: 500; }
html.notes .review-panel { display: flex; }

/* Header: the name, three links, a quiet phone number, one button */
.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--ink) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 40px; height: var(--head-h); }
.wordmark { font: 800 var(--s3)/1 var(--display); letter-spacing: -.02em; color: var(--stone); text-decoration: none; display: inline-flex; align-items: center; min-height: 48px; }
.nav { display: flex; align-items: center; gap: 40px; margin-left: auto; }
.nav > a { text-decoration: none; height: 40px; display: inline-flex; align-items: center; color: var(--muted); background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 calc(100% - 6px); transition: background-size .25s var(--ease), color .2s; }
.nav > a:hover, .nav > a[aria-current] { color: var(--stone); background-size: 100% 1px; }
.head-actions { display: flex; align-items: center; gap: 32px; }
.head-call { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; text-decoration: none; color: var(--stone); font-variant-numeric: tabular-nums; }
.head-call svg { width: 16px; height: 16px; color: var(--muted); }
.head-call:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.menu-toggle { display: none; }
.nav > .nav-est { display: none; }
@media (max-width: 960px) {
  .head-row { gap: 8px; }
  .head-est { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: none; border: 1px solid var(--line); border-radius: 2px; color: var(--stone); cursor: pointer; }
  .head-actions { margin-left: auto; gap: 16px; }
  .nav { display: none; position: fixed; inset: var(--head-h) 0 0 0; background: var(--ink); flex-direction: column; align-items: stretch; gap: 0; padding: 16px var(--pad) 40px; overflow-y: auto; margin: 0; }
  .nav.open { display: flex; }
  .nav > a { height: 64px; font-family: var(--display); font-size: var(--s3); color: var(--stone); border-bottom: 1px solid var(--line); background-image: none; }
  .nav > .nav-est { display: inline-flex; margin-top: 32px; height: 56px; font: 600 var(--s4) var(--text); border: 0; justify-content: center; background: var(--accent); color: var(--on-accent); }
}

/* Hero: one image on black. The marked slot takes the PC's product shot or dark loop later. */
.hero { position: relative; isolation: isolate; background: var(--ink); min-height: min(calc(100svh - var(--head-h)), 880px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 0%, color-mix(in srgb, var(--ink) 80%, transparent) 35%, transparent 62%), linear-gradient(0deg, var(--ink) 0%, transparent 35%); }
.slot-note { position: absolute; right: var(--pad); top: 32px; }
.hero .wrap { width: 100%; }
.hero-copy { padding: 160px 0 64px; }
.hero h1 { margin-bottom: 32px; }
.hero .lead { margin-bottom: 48px; }
.ruler { position: relative; height: 16px; margin-bottom: 48px; border-top: 1px solid var(--line); background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 16px) top left / 100% 8px no-repeat, repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 160px) top left / 100% 16px no-repeat; }
.ruler i { position: absolute; top: -1px; left: 52.5%; width: 3px; height: 16px; background: var(--detail); }
.crumbs { display: flex; gap: 8px; color: var(--muted); margin-bottom: 24px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 6px; }
.video-ctl { position: absolute; right: var(--pad); bottom: 96px; height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; background: color-mix(in srgb, var(--ink) 60%, transparent); border: 1px solid var(--line-strong); border-radius: 2px; color: var(--stone); cursor: pointer; }
.video-ctl svg { width: 16px; height: 16px; }
/* one image that drifts, slowly */
@keyframes drift { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.08) translate3d(-1.2%, -.8%, 0); } }
.hero-media img { animation: drift 28s var(--ease) infinite alternate; transform-origin: 70% 50%; }
@media (max-width: 760px) {
  .hero { min-height: calc(100svh - var(--head-h)); }
  .hero-media { bottom: auto; height: 64%; }
  .hero-media img { object-position: 50% 60%; }
  .hero-media::after { background: linear-gradient(0deg, var(--ink) 0%, transparent 40%); }
  .hero-copy { padding: 96px 0 32px; }
  .hero h1 { margin-bottom: 16px; }
  .hero .lead { margin-bottom: 32px; }
  .hero .actions .btn { flex: 1 1 100%; }
  .ruler { margin-bottom: 24px; }
}

/* What we do: names only, a quiet index */
.names { grid-column: 4 / 13; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gap); border-bottom: 1px solid var(--line); }
.names a { display: flex; align-items: baseline; gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); text-decoration: none; font: 300 var(--s2)/1.1 var(--display); letter-spacing: -.03em; }
.names a b { font: 600 var(--s4)/1 var(--text); color: var(--accent-text); font-variant-numeric: tabular-nums; min-width: 32px; }
.names a span { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .35s var(--ease); }
.names a:hover span { background-size: 100% 1px; }
@media (max-width: 760px) { .names { grid-template-columns: 1fr; } .names a { padding: 16px 0; gap: 16px; } }

/* Our work: one strip of small tiles, one grade */
.strip { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.ph { margin: 0; overflow: hidden; }
.ph img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--ink-3); transition: transform .8s var(--ease), filter .8s var(--ease); filter: brightness(.9); }
.ph:hover img { transform: scale(1.03); filter: none; }
@media (max-width: 760px) { .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } }

/* How it works: three short steps */
.steps { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); }
.step { border-top: 1px solid var(--line); padding-top: 32px; }
.step b { display: block; font: 600 var(--s4)/1 var(--text); color: var(--accent-text); margin-bottom: 48px; font-variant-numeric: tabular-nums; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; row-gap: 40px; } .step b { margin-bottom: 24px; } }

/* One review */
.review { grid-column: 4 / 12; }
.review blockquote p { font: 300 var(--s2)/1.15 var(--display); letter-spacing: -.03em; max-width: 22ch; text-wrap: balance; }
.review figcaption { margin-top: 40px; color: var(--muted); }
.review figcaption strong { color: var(--stone); font-weight: 600; margin-right: 8px; }

/* Call band with the estimate form */
.call-band { background: var(--ink-2); }
.call-side { grid-column: 1 / 6; }
.call-side h2 { margin: 24px 0 16px; }
.big-call { display: inline-block; margin-top: 48px; font: 300 var(--s2)/1 var(--display); letter-spacing: -.03em; text-decoration: none; font-variant-numeric: tabular-nums; background-image: linear-gradient(var(--accent-text), var(--accent-text)); background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%; padding-bottom: 8px; }
.big-call:hover { color: var(--accent-text); }
.form-card { grid-column: 7 / 13; background: var(--ink-3); border: 1px solid var(--line); padding: 40px; }
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.progress span { height: 2px; background: var(--line); }
.progress span.on { background: var(--accent-text); }
.step-label { color: var(--muted); margin-bottom: 24px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-family: var(--display); font-size: var(--s3); font-weight: 700; padding: 0; margin-bottom: 24px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice { position: relative; display: flex; align-items: center; min-height: 56px; padding: 8px 16px; border: 1px solid var(--line-strong); background: var(--ink); cursor: pointer; transition: border-color .2s; }
.choice:hover { border-color: var(--stone); }
.choice input { position: absolute; opacity: 0; }
.choice:has(input:checked) { border-color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--accent-text); }
.choice:has(input:focus-visible) { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label { font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 0; background: var(--ink); }
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent-text); outline: none; box-shadow: inset 0 0 0 1px var(--accent-text); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { color: var(--error); }
.form-error:not(:empty) { margin-top: 16px; }
.form-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; }
.form-nav #f-next { margin-left: auto; }
.form-done h3 { margin-bottom: 8px; }
.form-done p { color: var(--muted); }
@media (max-width: 760px) { .call-side { margin-bottom: 48px; } .big-call { margin-top: 32px; } .form-card { padding: 24px; } .choices, .two { grid-template-columns: 1fr; } }

/* Footer */
.site-foot { background: var(--ink); color: var(--muted); border-top: 1px solid var(--line); padding: 96px 0 40px; }
.site-foot a { text-decoration: none; color: var(--stone); }
.site-foot a:hover { text-decoration: underline; text-underline-offset: 6px; }
.foot-top { padding-bottom: 64px; border-bottom: 1px solid var(--line); row-gap: 40px; }
.foot-brand { grid-column: 1 / 5; }
.foot-mark { display: inline-flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.foot-mark img { width: 48px; height: 48px; }
.foot-col { grid-column: span 2; }
.foot-col.wide { grid-column: span 4; }
.foot-col h3 { font: 600 var(--s4)/1.6 var(--text); color: var(--stone); margin-bottom: 16px; }
.foot-col li + li { margin-top: 8px; }
.foot-col p + p { margin-top: 8px; }
.foot-base p { max-width: none; }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 32px; }
.review-panel { display: none; align-items: center; gap: 8px; flex-wrap: wrap; }
.review-panel button { height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 2px; background: none; color: var(--stone); cursor: pointer; }
.review-panel button[aria-pressed="true"] { background: var(--stone); color: var(--ink); }
@media (max-width: 960px) { .foot-brand { grid-column: 1 / -1; } .foot-col, .foot-col.wide { grid-column: span 6; } }

/* Calm effects: a slow fade up, once */
.js .rise { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .rise { opacity: 1; transform: none; }
}

/* Our work, bigger: 3 across, one 4:5 shape, a short name under each */
.tiles { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.tiles figcaption { margin-top: 16px; font-weight: 600; }
.tiles .ph img { filter: none; }
@media (max-width: 760px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .tiles figcaption { margin-top: 8px; } }

/* Care plan (design A) */
.care-side { grid-column: 1 / 6; }
.care-side h2 { margin: 24px 0 16px; }
.plan-card { grid-column: 7 / 13; background: var(--ink-3); border: 1px solid var(--line); border-top: 2px solid var(--accent-text); padding: 40px; }
.plan-price { margin: 16px 0 32px; font: 300 var(--s2)/1.1 var(--display); letter-spacing: -.03em; color: var(--muted); }
.plan-price .note { font: 500 var(--s4)/1.6 var(--text); letter-spacing: 0; vertical-align: middle; }
.plan-list { margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.plan-list li { display: flex; gap: 16px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); }
.plan-list li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--accent-text); transform: translateY(-2px); }
.plan-list li.tbc { color: var(--muted); }
.plan-list li.tbc::before { background: none; box-shadow: inset 0 0 0 1px var(--muted); }
@media (max-width: 760px) { .care-side { margin-bottom: 48px; } .plan-card { padding: 24px; } .plan-card .btn { width: 100%; } }

/* Trust strip: four short facts, set like readouts */
.foot-mark img.foot-logo { width: 196px; height: auto; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.facts li { display: grid; gap: 8px; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.facts b { font: 300 var(--s2)/1 var(--display); letter-spacing: -.03em; }
.facts span { color: var(--muted); }
@media (max-width: 960px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }

/* ===== Direction C v2: the scroll story, motion match =====
   The original scroll story's moves on real-looking pictures. One sticky stage; .pic is the picture frame (the full stage on a computer, a square on a phone).
   scroll-story.js moves a camera over a 1900 x 900 world and runs the original's timeline. The story keeps the original's dark night colours. */
.story { background: #060A0E; }
.track { position: relative; }
.js .track { height: 560vh; }
.stage { --ink: #0B1117; --stone: #F2F1EE; --line: rgba(242, 241, 238, .14); --line-strong: rgba(242, 241, 238, .42); --muted: #A9B3BB; --accent-text: #9CC4E2;
  position: relative; height: calc(100svh - var(--head-h)); min-height: 560px; overflow: hidden; isolation: isolate; background: #060A0E; color: var(--stone); }
.js .stage { position: sticky; top: var(--head-h); }
.pic { position: absolute; inset: 0; overflow: hidden; background: #060A0E; }
.world { position: absolute; left: 0; top: 0; width: 1900px; height: 900px; transform-origin: 0 0; }
.world::after { content: ""; position: absolute; left: 0; right: 0; top: 898px; height: 1200px; background: #0A0F14; }
.w { position: absolute; left: 0; top: 0; width: 1900px; height: 900px; max-width: none; }
.day { clip-path: inset(0 100% 0 0); }
.ducts { clip-path: inset(100% 0 0 0); }
.air path { stroke-width: 8; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.air .warm path { stroke: #E0A15E; }
.air .cool path { stroke: #9DB4C2; }
.front { position: absolute; max-width: none; object-fit: cover; }
.fan .blades { fill: rgba(214, 226, 234, .32); transform-box: view-box; transform-origin: 1633px 628px; animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.rain { position: absolute; top: -240px; right: -240px; bottom: 0; left: 0; pointer-events: none; background: url("assets/layers/rain-light.svg") repeat; animation: rain 1.2s linear infinite; }
@keyframes rain { to { transform: translate3d(-48px, 240px, 0); } }

/* The top video: the first screen. It hands over to the story as you scroll (the camera pulls back from the heat pump underneath). */
.top-vid { position: absolute; inset: 0; }
.top-vid img, .top-vid video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 64% 50%; }
.top-vid video { opacity: 0; transition: opacity 1s var(--ease); }
.top-vid.playing video { opacity: 1; }
.video-ctl { position: absolute; right: var(--pad); bottom: 64px; height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; background: color-mix(in srgb, var(--ink) 60%, transparent); border: 1px solid var(--line-strong); border-radius: 2px; color: var(--stone); cursor: pointer; }
.video-ctl svg { width: 16px; height: 16px; }

/* The shop: rises from below like the original's floor, the two duct pieces slide in and lock together */
.floor { position: absolute; inset: 0; background: var(--ink); transform: translateY(100%); }
.floor img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 60%; }
.floor::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 17, 23, .55) 0%, rgba(11, 17, 23, .1) 45%, rgba(11, 17, 23, .1) 100%); }
.shop { position: absolute; inset: 0; pointer-events: none; }
.piece { position: absolute; top: 30%; width: 26%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; opacity: 0; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .45)); }
.piece-a { left: 44%; }
.piece-b { left: 68.7%; }

.story-ui { position: absolute; inset: 0; pointer-events: none; }
.story-ui .wrap { position: relative; height: 100%; }
.story-ui a { pointer-events: auto; }
.s-copy { position: absolute; left: var(--pad); right: var(--pad); bottom: 96px; padding: 0; }   /* 96 keeps the buttons clear of the preview bar (bottom left, 16 + 50 px) */
.s-copy::before { content: ""; position: absolute; z-index: -1; left: -50vw; right: 10%; top: -240px; bottom: -64px; background: radial-gradient(80% 90% at 20% 100%, rgba(6, 10, 14, .82) 0%, rgba(6, 10, 14, .6) 45%, rgba(6, 10, 14, 0) 100%); }
.s-copy h1 { margin-bottom: 32px; }
.s-copy .lead { margin-bottom: 48px; color: #D5DCE1; }

.readouts { position: absolute; right: var(--pad); top: 32px; display: flex; gap: 16px; }
.readout { display: grid; gap: 8px; min-width: 160px; padding: 16px 24px; background: var(--ink); border: 1px solid var(--line); }
.readout b { font: 300 var(--s2)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.r-label { display: grid; color: var(--muted); }
.r-label > span { grid-area: 1 / 1; }
.r-in, .r-summer { opacity: 0; }

.card { position: absolute; left: var(--pad); top: 0; bottom: 0; height: fit-content; margin: auto 0; width: 440px; padding: 40px; background: var(--ink); border: 1px solid var(--line); opacity: 0; visibility: hidden; }
.card h2 { margin-bottom: 16px; }
.card p { color: var(--muted); }
.card-link { display: inline-flex; align-items: center; min-height: 48px; margin-top: 8px; color: var(--accent-text); text-underline-offset: 6px; }
.card-link:hover { color: var(--stone); }

.call-bar { display: none; }

/* Phone: the picture is a square at the top (the house whole in it), the words under it, the Call bar always in reach */
@media (max-width: 760px) {
  .js .track { height: 352vh; }
  .pic { bottom: auto; height: 100vw; max-height: 56%; }
  .s-copy, .card { top: min(100vw, 56%); bottom: auto; }
  .s-copy { padding-top: 24px; }
  .s-copy::before { display: none; }
  .s-copy h1 { margin-bottom: 16px; }
  .s-copy .lead { margin-bottom: 24px; color: var(--muted); }
  .s-copy .hero-call { display: none; }
  .s-copy .btn-primary { background: transparent; border-color: var(--line-strong); color: var(--stone); }  /* the call bar is the one blue action on a phone */
  .s-copy .actions .btn { flex: 1 1 100%; }
  .readouts { top: 16px; right: 16px; gap: 8px; }
  .readout { min-width: 0; gap: 0; padding: 8px 16px; }
  .card { left: 0; right: 0; width: auto; height: auto; margin: 0; padding: 24px var(--pad); background: none; border: 0; }
  .card h2 { margin-bottom: 8px; }
  .card-link { margin-top: 0; }
  .piece { top: 14%; width: 50%; }
  .piece-a { left: 0; }
  .piece-b { left: 47.5%; }
  .video-ctl { top: calc(min(100vw, 56%) - 60px); left: 16px; right: auto; bottom: auto; height: 44px; }  /* bottom left of the picture, clear of the readout */
  .call-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 16px var(--pad); padding-bottom: calc(16px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--ink) 94%, transparent); border-top: 1px solid var(--line); }
  .call-bar .btn { width: 100%; }
  body { padding-bottom: 88px; }
}

/* Still frames: for people who turn motion off (and ?still to check them). Each scene shows as one picture with its text; the top shows the video's still. */
.still .track { height: auto; }
.still .stage { position: relative; top: 0; }
.still .stage + .stage { border-top: 1px solid var(--line); }
.still .rain, .still .fan .blades { animation: none; }

/* Stops (23 Oct, the owner: "to see the full animation you scroll down, you miss it"): each scroll plays one scene, then waits (scroll-story.js).
   Skip shows while the story holds: top left on a computer, at the foot of the picture on a phone. */
.story-skip { position: absolute; z-index: 3; left: var(--pad); top: 32px; display: inline-flex; align-items: center; height: 44px; padding: 0 16px;
  border: 1px solid rgba(242, 241, 238, .42); border-radius: 4px; background: rgba(6, 10, 14, .62); color: #F2F1EE; font: 600 var(--s4)/1 var(--text);
  pointer-events: auto; cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s, border-color .2s; }
.story-skip:hover { border-color: #F2F1EE; }
.stage.is-held .story-skip { opacity: 1; visibility: visible; }
@media (max-width: 760px) { .story-skip { left: auto; right: 16px; top: calc(min(100vw, 56%) - 64px); height: 48px; } }
/* while it holds the finger plays the stops, the page does not slide under it; at the first and the last stop it scrolls on as always */
@supports (touch-action: pan-down) {
  .stage.is-held { touch-action: pan-x pinch-zoom; }
  .stage.is-held.at-first { touch-action: pan-x pan-up pinch-zoom; }
  .stage.is-held.at-last { touch-action: pan-x pan-down pinch-zoom; }
}
html.stops-lock { overflow: hidden; }
.st-land:focus { outline: none; }

/* Preview controls (mock-controls.css): a button height this site already uses */
:root { --mc-h: 40px; }
@media (max-width: 760px) { :root { --mc-h: 48px; } }
