/* Northline Heating & Air, design A+ (21 Oct): design A made richer. Same tokens, fonts, day and night looks and seasons.
   Added at the end of this file: the loop on top, the scroll hand-over (GSAP), the trust strip, picture cards,
   full-width photo bands and the light Our Work grid. Picture shapes: full-bleed top, 21:9 bands, 4:3 cards, 4:5 tiles.

   Design A, the owner's pick (20 Oct, late): dark all the way down, logo blue, super premium.
   A brand site, not a trades site: near-black, few words, the picture does the talking.
   Two colour versions as tokens: default = logo blue, [data-palette="copper"] = Stone and Copper.
   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 {
  /* Version 1: logo blue as the one accent */
  --ink: #0B1117;            /* the page, every section */
  --ink-2: #0F161D;          /* barely raised: the call band */
  --ink-3: #16202A;          /* form card, menu */
  --stone: #F2F1EE;          /* text, 14:1 or more */
  --line: rgba(242, 241, 238, .14);
  --line-strong: rgba(242, 241, 238, .42); /* form fields, outline buttons */
  --muted: #A9B3BB;          /* second text, 8:1 or more */
  --accent: #22709F;         /* button fill, white on it 5.4:1 */
  --on-accent: #FFFFFF;
  --accent-text: #9CC4E2;    /* accent as text, 8.7:1 or more */
  --detail: #7AB648;         /* logo green: one 3 px tick on the ruler, nothing else */
  --error: #FF9C8F;

  --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);
}
[data-palette="copper"] {
  /* Version 2: Stone and Copper, no logo colours */
  --ink: #0F1113;
  --ink-2: #14171A;
  --ink-3: #1D2125;
  --stone: #F1EEE8;
  --line: rgba(241, 238, 232, .14);
  --line-strong: rgba(241, 238, 232, .42);
  --muted: #B8B2A8;          /* 8:1 or more */
  --accent: #AD5328;         /* copper, white on it 5.2:1 */
  --accent-text: #E3A273;    /* 7.2:1 or more */
  --detail: #E3A273;
}
/* Day look (the owner, 21 Oct): white and stone, logo blue accent. Same fonts and layout.
   The head script sets data-look by the visitor's time (day 7:00 to 19:00), the header switch overrides it.
   Every text colour passes 4.5:1 on all three day backgrounds (work/contrast_looks.py). */
[data-look="day"] {
  --ink: #FFFFFF;            /* the page: white */
  --ink-2: #F1F3F5;          /* light grey: the call band */
  --ink-3: #F7F8FA;          /* form card, plan card */
  --stone: #151B21;          /* text, 13.8:1 or more */
  --line: rgba(21, 27, 33, .14);
  --line-strong: rgba(21, 27, 33, .5);
  --muted: #4F5963;          /* 5.6:1 or more */
  --accent: #22709F;         /* white on it 5.4:1 */
  --accent-text: #1C5F8A;    /* 5.4:1 or more */
  --detail: #7AB648;
  --error: #A8321F;          /* 5.3:1 or more */
}
[data-look="day"][data-palette="copper"] {
  --stone: #1A1714;
  --line: rgba(26, 23, 20, .14);
  --line-strong: rgba(26, 23, 20, .5);
  --muted: #5C564D;
  --accent: #AD5328;
  --accent-text: #94461F;
  --detail: #94461F;
}
@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; }
/* Day or night switch: sun and moon, the current look is filled */
.look-switch { display: inline-flex; align-items: center; height: 40px; padding: 3px; border: 1px solid var(--line-strong); border-radius: 2px; background: none; color: var(--muted); cursor: pointer; transition: border-color .2s; }
.look-switch:hover { border-color: var(--stone); }
.look-switch span { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 1px; transition: background-color .2s, color .2s; }
.look-switch svg { width: 16px; height: 16px; }
:root:not([data-look="day"]) .look-switch .ls-night, [data-look="day"] .look-switch .ls-day { background: var(--stone); color: var(--ink); }
.nav > .nav-look { display: none; }
.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); }
}
@media (max-width: 760px) {
  /* phone: the number stays, its icon goes; the switch shows only the current look */
  .head-actions { gap: 8px; }
  .head-call svg { display: none; }
  .menu-toggle { width: 44px; }
  .look-switch { height: 48px; width: 44px; padding: 0; justify-content: center; border-color: var(--line); }
  .look-switch span { width: 40px; height: 40px; }
  :root:not([data-look="day"]) .look-switch .ls-night, [data-look="day"] .look-switch .ls-day { background: none; color: var(--stone); }
  :root:not([data-look="day"]) .look-switch .ls-day, [data-look="day"] .look-switch .ls-night { display: none; }
}
@media (max-width: 374px) {
  /* very small phones: the switch moves into the menu */
  .head-actions .look-switch { display: none; }
  .nav > .nav-look { display: flex; align-self: flex-start; margin-top: 24px; }
}

/* 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%); }
/* day: a cleaner, shorter fade so the sunny picture stays crisp and does not look misty */
[data-look="day"] .hero-media::after { background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 24%, color-mix(in srgb, var(--ink) 72%, transparent) 40%, transparent 54%), linear-gradient(0deg, var(--ink) 0%, transparent 28%); }
@media (max-width: 760px) {
  [data-look="day"] .hero-media::after { background: linear-gradient(0deg, var(--ink) 0%, transparent 40%); }
  /* heating: the busy job photo needs the fade to reach above the breadcrumb */
  [data-look="day"] .hero:has(.crumbs) .hero-media::after { background: linear-gradient(0deg, var(--ink) 0%, var(--ink) 34%, transparent 60%); }
}
.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; }
[data-look="day"] .ph img { filter: none; }
.details { grid-column: 4 / 13; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 64px; }
.details .ph { position: relative; }
.details .note { position: absolute; left: 8px; bottom: 8px; }
@media (max-width: 760px) { .details { gap: 8px; margin-top: 40px; } }
@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; }

/* Care plan: one membership card. Price and full list come from the client. */
.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%; } }

/* 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:last-child:nth-child(odd) { grid-column: 1 / -1; }
.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; }
[data-look="day"] .foot-mark img { filter: invert(1); }
.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; } }

/* ===== A+ ===== */

/* Top loop: sits on the still, fades in once it plays. The still stops drifting so nothing jumps. */
.hero { z-index: 0; }
.hero-media { transform-origin: 66% 55%; will-change: transform; }
.hero-media video { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); }
.hero-media.playing video { opacity: 1; }
.hero-media.has-video img { animation: none; }
@media (max-width: 760px) {
  .hero-media video { object-position: 64% 50%; }
  /* phone: the pause button moves to the top corner of the picture, clear of the buttons */
  .video-ctl { top: 16px; bottom: auto; height: 44px; }
}

/* Everything after the top slides over it */
.over { position: relative; z-index: 2; background: var(--ink); box-shadow: 0 -24px 64px rgba(0, 0, 0, .4); }

/* Trust strip: the 24 hour line and the brands, as plain text */
.trust { padding: 48px 0; border-bottom: 1px solid var(--line); }
.trust .grid { row-gap: 24px; align-items: start; }
.trust .idx { margin-bottom: 8px; }
.trust-line { grid-column: 1 / 4; }
.trust-call { font: 700 var(--s3)/1.3 var(--display); text-decoration: none; font-variant-numeric: tabular-nums; }
.trust-call:hover { color: var(--accent-text); }
.trust-brands { grid-column: 4 / 13; }
.brands { max-width: none; font: 300 var(--s3)/1.5 var(--display); letter-spacing: -.01em; }
.brands span { white-space: nowrap; }
.brands span:not(:last-child)::after { content: "/"; color: var(--line-strong); margin: 0 8px; }

/* What we do: one picture card per service */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px var(--gap); }
.card a { display: block; text-decoration: none; }
.card .ph img { aspect-ratio: 4 / 3; }
.card h3 { margin-top: 24px; }
.card p { color: var(--muted); }
.card a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
@media (max-width: 760px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 16px; } .card h3 { margin-top: 16px; } }

/* Full-width photo bands: a few words on a dark fade, the photo drifts slowly on scroll */
.band { position: relative; overflow: hidden; background: #0B1117; isolation: isolate; }
.band picture { display: block; }
.band img { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(0deg, rgba(11, 17, 23, .78) 0%, rgba(11, 17, 23, 0) 55%); pointer-events: none; }
.band-copy { position: absolute; left: 0; right: 0; bottom: 64px; z-index: 1; margin: 0 auto; }
.band-copy h2 { color: #F2F1EE; max-width: 14ch; }
.band .slot-note { z-index: 1; }
.band-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.band-trio::after { content: none; }
.band-trio figure { margin: 0; overflow: hidden; }
.band-trio img { aspect-ratio: 4 / 5; }
@media (max-width: 760px) { .band img { aspect-ratio: 4 / 5; } .band-trio img { aspect-ratio: 4 / 5; } .band-copy { bottom: 32px; } }

/* Our work: a light section with one even grid of bigger photos */
.light { --ink: #FFFFFF; --ink-3: #F7F8FA; --stone: #151B21; --line: rgba(21, 27, 33, .14); --line-strong: rgba(21, 27, 33, .5); --muted: #4F5963; --accent-text: #1C5F8A; background: var(--ink); color: var(--stone); }
[data-palette="copper"] .light { --stone: #1A1714; --muted: #5C564D; --accent-text: #94461F; }
.section.light + .section, .band + .section { border-top: 0; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.work-grid .ph img, .light .ph img { filter: none; }
@media (max-width: 760px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 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; }
}

/* Preview controls (mock-controls.css): a button height this site already uses */
:root { --mc-h: 40px; }
@media (max-width: 760px) { :root { --mc-h: 48px; } }

/* ===== Inside the house (23 Oct): design C's moving diagrams as one A+ section (house-story.js) =====
   One sticky stage under the header. .hs-pic is the picture frame (the full stage on a computer, a square on a phone).
   It keeps the scroll story's night colours in every look, like the photo bands. */
.hs { background: #060A0E; }
.hs-track { position: relative; }
.js .hs-track { height: 520vh; }
.hs-stage { --ink: #0B1117; --stone: #F2F1EE; --line: rgba(242, 241, 238, .14); --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 .hs-stage { position: sticky; top: var(--head-h); }
.hs-pic { position: absolute; inset: 0; overflow: hidden; background: #060A0E; }
.hs-world { position: absolute; left: 0; top: 0; width: 1900px; height: 900px; transform-origin: 0 0; }
.hs-world::after { content: ""; position: absolute; left: 0; right: 0; top: 898px; height: 1200px; background: #0A0F14; }
.hs-w { position: absolute; left: 0; top: 0; width: 1900px; height: 900px; max-width: none; }
.hs-day { clip-path: inset(0 100% 0 0); }
.hs-ducts { clip-path: inset(100% 0 0 0); }
.hs-air path { stroke-width: 8; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.hs-air .hs-warm path { stroke: #E0A15E; }
.hs-air .hs-cool path { stroke: #9DB4C2; }
.hs-front { position: absolute; max-width: none; object-fit: cover; }
.hs-fan .hs-blades { fill: rgba(214, 226, 234, .32); transform-box: view-box; transform-origin: 1633px 628px; animation: hs-spin 1.1s linear infinite; }
@keyframes hs-spin { to { transform: rotate(360deg); } }
.hs-rain { position: absolute; top: -240px; right: -240px; bottom: 0; left: 0; pointer-events: none; background: url("assets/layers/rain-light.svg") repeat; animation: hs-rain 1.2s linear infinite; }
@keyframes hs-rain { to { transform: translate3d(-48px, 240px, 0); } }

.hs-ui { position: absolute; inset: 0; pointer-events: none; }
.hs-ui .wrap { position: relative; height: 100%; }
.hs-readouts { position: absolute; right: var(--pad); top: 32px; display: flex; gap: 16px; }
.hs-readout { display: grid; gap: 8px; min-width: 160px; padding: 16px 24px; background: var(--ink); border: 1px solid var(--line); }
.hs-readout b { font: 300 var(--s2)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hs-label { display: grid; color: var(--muted); }
.hs-label > span { grid-area: 1 / 1; }
.hs-in, .hs-summer { opacity: 0; }
.hs-card { position: absolute; left: var(--pad); top: 0; bottom: 0; height: fit-content; margin: auto 0; width: 460px; padding: 40px; background: var(--ink); border: 1px solid var(--line); opacity: 0; visibility: hidden; }
.hs-card .idx { margin-bottom: 16px; }
.hs-card h2 { margin-bottom: 16px; }
.hs-card p:last-child { color: var(--muted); }
.hs-c1 { opacity: 1; visibility: visible; }

@media (max-width: 760px) {
  .js .hs-track { height: 380vh; }
  .hs-pic { bottom: auto; height: 100vw; max-height: 56%; }
  .hs-card { top: min(100vw, 56%); bottom: auto; left: 0; right: 0; width: auto; height: auto; margin: 0; padding: 24px var(--pad); background: none; border: 0; }
  .hs-card h2 { margin-bottom: 8px; }
  .hs-readouts { top: 16px; right: 16px; gap: 8px; }
  .hs-readout { min-width: 0; gap: 0; padding: 8px 16px; }
}

/* Still frames, for people who turn motion off: each scene shows as one picture with its text */
.hs-still .hs-track { height: auto; }
.hs-still .hs-stage { position: relative; top: 0; }
.hs-still .hs-stage + .hs-stage { border-top: 1px solid var(--line); }
.hs-still .hs-rain, .hs-still .hs-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 (house-story.js).
   Skip shows while the house holds: top left on a computer, at the foot of the picture on a phone. */
.hs-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; }
.hs-skip:hover { border-color: #F2F1EE; }
.hs-stage.is-held .hs-skip { opacity: 1; visibility: visible; }
@media (max-width: 760px) { .hs-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) {
  .hs-stage.is-held { touch-action: pan-x pinch-zoom; }
  .hs-stage.is-held.at-first { touch-action: pan-x pan-up pinch-zoom; }
  .hs-stage.is-held.at-last { touch-action: pan-x pan-down pinch-zoom; }
}
html.stops-lock { overflow: hidden; }
.st-land:focus { outline: none; }
