/* Hulen Heating & Air (concept). One variable drives the whole look:
   --t runs from 0 (the hot house) to 1 (cooled). Color and headline width follow it,
   because heat is the story: hot type is wide, cooled type pulls in. */

@font-face { font-family: "Archivo"; src: url(fonts/archivo-wdth.woff2) format("woff2-variations"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(fonts/plex-mono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(fonts/plex-mono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --t: 0;
  --tc: var(--t);
  --navy: #0b1620;
  --navy-2: #13242f;
  --paper: #eef4f7;
  --paper-2: #dfe9ef;
  --ink: #0e1b26;
  --ink-soft: #4a5b68;
  --heat: #ff6a13;
  --heat-2: #ffc15e;
  --cool: #2e9be6;
  --cool-2: #9fdbff;
  /* AA with white text (5.2:1 and 5.6:1) */
  --heat-ink: #c2410c;
  --cool-ink: #1a6aa8;
  --live: color-mix(in oklab, var(--heat), var(--cool) calc(var(--tc) * 100%));
  --live-2: color-mix(in oklab, var(--heat-2), var(--cool-2) calc(var(--tc) * 100%));
  --live-ink: color-mix(in oklab, var(--heat-ink), var(--cool-ink) calc(var(--tc) * 100%));
  --wide: calc(125% - var(--t) * 25%);
  --sans: "Archivo", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, monospace;
  --gut: clamp(16px, 4vw, 56px);
  --gut-l: max(var(--gut), env(safe-area-inset-left, 0px));
  --gut-r: max(var(--gut), env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--sans); font-stretch: 100%; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--cool-ink); outline-offset: 3px; }
[hidden] { display: none !important; }

.heat { font-stretch: var(--wide); color: inherit; transition: font-stretch .2s linear; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--live-ink); color: #fff; font: 600 16px/1 var(--sans); font-stretch: 105%; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background-color .3s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 15px; white-space: nowrap; }
.btn--full { width: 100%; }

/* Loader: the morning passes while the frames download, then an iris opens on frame one */
.loader { position: fixed; inset: 0; z-index: 90; display: grid; place-content: center; justify-items: center; gap: 14px; background: var(--navy); color: var(--heat-2); clip-path: circle(150% at 50% 50%); transition: clip-path 1.1s var(--ease), opacity .3s 1s; }
.loader__num { font: 500 clamp(64px, 14vw, 200px)/.9 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.loader__unit { font-size: .3em; margin-left: .15em; color: var(--heat); letter-spacing: 0; }
.loader__line { margin: 0; font: 400 16px/1.2 var(--mono); color: rgba(255,255,255,.7); }
.loader.is-open { clip-path: circle(0% at 50% 50%); pointer-events: none; }
.loader.is-gone { display: none; }

/* Top bar */
.bar { position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 14px; padding: 12px var(--gut-r) 12px var(--gut-l); padding-top: max(12px, env(safe-area-inset-top, 0px)); color: #fff; pointer-events: none; transition: color .3s, background-color .3s; }
.bar > * { pointer-events: auto; }
.bar.is-solid { background: rgba(238,244,247,.9); color: var(--ink); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; min-height: 44px; font: 800 20px/1 var(--sans); font-stretch: 118%; letter-spacing: -.01em; text-decoration: none; }
.brand span { font-weight: 400; font-stretch: 100%; opacity: .75; white-space: pre; }
/* phones: the full name stacks, Hulen over a small tracked HEATING & AIR */
@media (max-width: 600px) {
  .brand { flex-direction: column; align-items: flex-start; justify-content: center; }
  .brand span { white-space: nowrap; margin-top: 3px; font-size: 9px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; opacity: .85; }
}
.tag { white-space: nowrap; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 8px; border: 1px solid currentColor; border-radius: 6px; }
.bar__nav { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.bar__nav a:not(.btn) { display: inline-flex; white-space: nowrap; align-items: center; min-height: 44px; text-decoration: none; font-weight: 500; }

/* Film */
.film { position: relative; height: 900vh; background: var(--navy); }
/* the stage's own color is what iPhone Safari tints its toolbars with while the film is pinned */
.film__stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; overflow: clip; background: var(--navy); color: #fff; }
.film__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.film__stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(5,10,15,.55) 0%, rgba(5,10,15,0) 22%, rgba(5,10,15,0) 55%, rgba(5,10,15,.62) 100%), linear-gradient(90deg, rgba(5,10,15,.42) 0%, rgba(5,10,15,0) 58%); }
.film__lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; overflow: visible; }
.film__spots { position: absolute; inset: 0; z-index: 4; pointer-events: none; }

/* HUD: the thermostat that leads the story */
.hud { position: absolute; z-index: 6; left: var(--gut-l); bottom: calc(var(--gut) + env(safe-area-inset-bottom, 0px)); width: min(300px, 72vw); padding: 16px 18px 14px; border-radius: 18px; background: rgba(8,16,22,.42); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); font: 400 12px/1.2 var(--mono); letter-spacing: .04em; transition: opacity .4s; }
.hud__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.hud__row--sm { margin-top: 10px; color: rgba(255,255,255,.8); }
.hud__k { color: rgba(255,255,255,.7); }
.hud__k--r { margin-left: auto; }
.hud__temp { font: 500 64px/.9 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.05em; color: var(--live-2); text-shadow: 0 0 24px color-mix(in oklab, var(--live) 60%, transparent); }
.hud__gauge { margin-top: 10px; }
.hud__gauge svg { width: 100%; height: 12px; display: block; }
.hud__track { fill: rgba(255,255,255,.14); }
.hud__fill { fill: var(--live); transform-origin: left center; }
#hudClock, #hudTemp, #hudOut { font-variant-numeric: tabular-nums; }

/* Progress rail: a thermometer marked in clock time */
.rail { position: absolute; z-index: 5; right: var(--gut-r); top: 50%; transform: translateY(-50%); margin: 0; padding: 0 0 0 14px; list-style: none; display: grid; gap: 26px; font: 500 11px/1 var(--mono); letter-spacing: .06em; color: rgba(255,255,255,.55); border-left: 2px solid rgba(255,255,255,.18); }
.rail::before { content: ""; position: absolute; left: -2px; top: 0; width: 2px; height: calc(var(--p, 0) * 100%); background: var(--live); box-shadow: 0 0 12px var(--live); }
.rail li { position: relative; transition: color .3s; }
.rail li::before { content: ""; position: absolute; left: -19px; top: 50%; width: 8px; height: 2px; background: rgba(255,255,255,.4); }
.rail li.is-on { color: #fff; }

/* Captions */
.caps { position: absolute; z-index: 5; inset: 0; pointer-events: none; }
.cap { position: absolute; left: var(--gut-l); top: 22vh; max-width: min(760px, 86vw); opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.cap.is-on { opacity: 1; transform: none; }
.cap a { pointer-events: auto; }
.cap__more { margin: 12px 0 0; font-size: 16px; text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.cap__more a { color: var(--live-2); display: inline-block; padding: 12px 0; margin: -12px 0; }
.cap__k { display: inline-block; white-space: nowrap; margin: 0 0 14px; padding: 5px 9px; border-radius: 7px; background: rgba(6,12,18,.72); font: 500 14px/1.2 var(--mono); color: var(--live-2); }
.cap__h { margin: 0; font: 800 clamp(44px, 7.4vw, 124px)/.92 var(--sans); letter-spacing: -.035em; text-wrap: balance; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.cap__p { text-wrap: pretty; margin: 18px 0 0; max-width: 34ch; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.45; color: rgba(255,255,255,.92); text-shadow: 0 1px 16px rgba(0,0,0,.45); }
.cap__cta { margin: 22px 0 0; }
.cap__cta .btn { --tc: 1; }
.cap--hero { top: auto; bottom: 30vh; }
/* on short wide screens the hero hangs from under the top bar, so the 104° never runs into it */
@media (min-width: 861px) and (max-height: 860px) { .cap--hero { top: calc(84px + env(safe-area-inset-top, 0px)); bottom: auto; } }
/* the story captions stay small and to the left, clear of the unit and the techs in the middle of the frame */
@media (min-width: 861px) {
  .cap:not(.cap--hero):not(.cap--end) { max-width: min(31vw, 470px); }
  .cap:not(.cap--hero):not(.cap--end) .cap__h { font-size: clamp(36px, min(4.8vw, 8.6vh), 84px); }
  .cap:not(.cap--hero):not(.cap--end) .cap__p { font-size: clamp(16px, 1.25vw, 19px); }
  /* the old unit fills the frame: its caption keeps to a narrow strip at the left edge */
  .cap[data-shot="1"]:not(.cap--hero):not(.cap--end) { max-width: min(15vw, 230px); }
  .cap[data-shot="1"]:not(.cap--hero):not(.cap--end) .cap__h { font-size: clamp(34px, min(3.6vw, 6.4vh), 60px); }
  .cap[data-shot="1"]:not(.cap--hero):not(.cap--end) .cap__p { font-size: 15px; }
}
.cap--end { top: 16vh; }
/* the re-shot film: the old unit sits left of centre with the meter and wiring on the right, so its caption
   goes to the lower right, over the brick; at dusk the new unit sits low at the left edge, so the end caption
   and its button rise to clear it */
@media (min-width: 861px) and (min-height: 521px) {
  .cap[data-shot="1"]:not(.cap--hero):not(.cap--end) { left: auto; right: var(--gut-r); top: auto; bottom: 8vh; text-align: right; }
  .cap[data-shot="1"]:not(.cap--hero):not(.cap--end) .cap__p { margin-left: auto; }
  /* shot 2: the two techs and the unit fill the middle, so the caption keeps to a narrow column at the top
     left, over the shrub and fence */
  .cap[data-shot="2"]:not(.cap--hero):not(.cap--end) { top: calc(76px + 2vh); max-width: min(17vw, 270px); }
  .cap[data-shot="2"]:not(.cap--hero):not(.cap--end) .cap__h { font-size: clamp(30px, min(3.2vw, 5.6vh), 52px); }
  .cap[data-shot="2"]:not(.cap--hero):not(.cap--end) .cap__p { font-size: 14px; margin-top: 10px; }
  .cap--end { top: 11vh; }
  /* shot 3: a one-line headline keeps the caption block above the kneeling tech's elbow */
  .cap[data-shot="3"]:not(.cap--hero):not(.cap--end) .cap__h { font-size: clamp(30px, min(3.2vw, 5.6vh), 54px); white-space: nowrap; }
  .cap[data-shot="3"]:not(.cap--hero):not(.cap--end) .cap__p { font-size: 15px; }
}
.cap__hint { margin: 28px 0 0; font: 500 13px/1 var(--mono); color: rgba(255,255,255,.7); }
.cap__hint::after { content: ""; display: block; width: 1px; height: 36px; margin-top: 10px; background: linear-gradient(currentColor, transparent); animation: drip 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* Hotspots with drawn leader lines */
.spot { position: absolute; width: 0; height: 0; pointer-events: auto; opacity: 0; transition: opacity .35s; }
.spot.is-on { opacity: 1; }
.spot__dot { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border: 0; padding: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.spot__dot::before, .spot__dot::after { content: ""; position: absolute; inset: 15px; border-radius: 50%; background: var(--live-2); box-shadow: 0 0 0 2px rgba(0,0,0,.25); }
.spot__dot::after { inset: 10px; background: transparent; border: 2px solid var(--live-2); box-shadow: none; animation: ping 2s var(--ease) infinite; }
.spot.is-open .spot__dot::before { background: #fff; }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.spot__card { position: absolute; width: max-content; max-width: 240px; padding: 12px 14px; border-radius: 12px; background: rgba(8,16,22,.78); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 14px; line-height: 1.4; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .4s var(--ease); pointer-events: none; }
.spot__card b { display: block; font: 500 13px/1.2 var(--mono); color: var(--live-2); margin-bottom: 4px; }
.spot.is-open .spot__card { opacity: 1; transform: none; }
/* a card that is handing over to the next one gets out of the way quickly */
.spot:not(.is-open) .spot__card { transition-duration: .12s; }
.lead { fill: none; stroke: var(--live-2); stroke-width: 1.25; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .6s var(--ease); }
.lead.is-on { stroke-dashoffset: 0; }

/* The phone sheet: one note at a time, docked at the bottom of the film */
.sheet { position: absolute; z-index: 7; left: var(--gut-l); right: var(--gut-r); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); height: var(--sheet-h, 96px); padding: 12px 14px; border-radius: 14px; background: rgba(8,16,22,.82); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 15px; line-height: 1.38; opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .4s var(--ease); pointer-events: none; overflow: hidden; }
.sheet.is-on { opacity: 1; transform: none; }
.sheet b { display: block; font: 500 13px/1.2 var(--mono); color: var(--live-2); margin-bottom: 4px; }
.is-sheet .spot__card, .is-sheet .lead { display: none; }

/* Shared section bits */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gut-r) 0 var(--gut-l); }
.wrap--narrow { max-width: 820px; }
.kick { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 500 15px/1.2 var(--mono); color: var(--cool-ink); }
.kick::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in oklab, currentColor 22%, transparent); }
.h2 { margin: 0; font: 800 clamp(36px, 5.2vw, 76px)/.95 var(--sans); font-stretch: 100%; letter-spacing: -.03em; text-wrap: balance; }
.lede { margin: 16px 0 0; max-width: 46ch; font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-soft); }
.fine { margin: 14px 0 0; font-size: 13px; color: var(--ink-soft); }

/* Word fill paragraph */
.fill { padding: clamp(90px, 16vh, 180px) var(--gut-r) clamp(90px, 16vh, 180px) var(--gut-l); background: var(--navy); color: #fff; }
.fill__p { max-width: 1100px; margin: 0 auto; font: 700 clamp(28px, 3.6vw, 54px)/1.15 var(--sans); letter-spacing: -.02em; }
.fill__p .w { opacity: .18; transition: opacity .25s linear, color .25s; }
.fill__p .w.is-on { opacity: 1; }
.fill__p .w.is-hot { color: var(--heat-2); }

/* Thermal slider */
.thermal { padding: clamp(80px, 12vh, 140px) 0; }
.thermal .wrap { margin-bottom: 36px; }
.thermal .h2 { display: inline-block; background: linear-gradient(90deg, var(--heat-ink) var(--x, 50%), var(--cool-ink) var(--x, 50%)); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Derived values are recomputed where --t is set locally (the thermal slider, always-cool buttons) */
.thermal, .total .btn, .foot .btn, .cap__cta .btn {
  --live: color-mix(in oklab, var(--heat), var(--cool) calc(var(--tc) * 100%));
  --live-2: color-mix(in oklab, var(--heat-2), var(--cool-2) calc(var(--tc) * 100%));
  --live-ink: color-mix(in oklab, var(--heat-ink), var(--cool-ink) calc(var(--tc) * 100%));
  --wide: calc(125% - var(--t) * 25%);
}
.ba { position: relative; max-width: 1400px; margin: 0 auto; aspect-ratio: 16 / 9; overflow: hidden; border-radius: clamp(0px, 2vw, 24px); background: #111; touch-action: pan-y; }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.ba__top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--x)) 0 0); }
/* the labels sit at the bottom, clear of the camera's own reading (top left) and its scale bar (right edge) */
.ba__lab { position: absolute; bottom: 16px; padding: 7px 10px; border-radius: 8px; background: rgba(0,0,0,.55); color: #fff; font: 500 13px/1 var(--mono); }
.ba__lab--l { left: 16px; }
.ba__lab--r { right: calc(16px + 8%); }
@media (max-width: 600px) {
  .ba__lab { bottom: 10px; padding: 5px 7px; font-size: 11px; }
  .ba__lab--l { left: 10px; }
  .ba__lab--r { right: calc(10px + 7%); }
  /* on phones the dog fills the lower left, so the 1:05 pm label goes top left, under the camera's reading */
  .ba__lab--l { bottom: auto; top: calc(10px + 9%); }
}
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.ba__handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.3); }
.ba__range:focus-visible ~ .ba__handle::after { outline: 3px solid var(--cool-ink); outline-offset: 3px; }

/* The unit: a still with parts to tap */
.unit { padding: clamp(80px, 12vh, 140px) 0; background: var(--paper-2); }
.unit__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.unit__view { position: relative; margin: 0; border-radius: 24px; overflow: hidden; background: #c9cdd2; }
.unit__img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.unit__dots { position: absolute; inset: 0 0 auto 0; aspect-ratio: 1; }
.udot { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.udot::before { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: var(--cool-ink); box-shadow: 0 0 0 3px #fff, 0 4px 14px rgba(0,0,0,.3); transition: transform .25s var(--ease), background-color .25s; }
.udot[aria-pressed="true"]::before { background: var(--heat-ink); transform: scale(1.25); }
.unit__note { min-height: 84px; padding: 14px 16px; background: var(--navy); color: #fff; font-size: 15px; line-height: 1.4; }
.unit__note b { display: block; font: 500 13px/1.2 var(--mono); color: var(--cool-2); margin-bottom: 4px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 28px 0 0; background: #c4d3dc; border: 1px solid #c4d3dc; border-radius: 14px; overflow: hidden; }
.specs div { padding: 14px 16px; background: var(--paper-2); }
.specs dt { font: 500 13px/1.2 var(--mono); color: var(--ink-soft); }
.specs dd { margin: 6px 0 0; font: 700 20px/1.1 var(--sans); font-variant-numeric: tabular-nums; }

/* Prices and booking */
.price { padding: clamp(80px, 12vh, 140px) 0; scroll-margin-top: 40px; }
.price__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.est fieldset { border: 0; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.est legend { width: 100%; margin-bottom: 10px; padding: 0; font: 500 14px/1.2 var(--mono); color: var(--ink-soft); }
.est label { position: relative; display: block; }
.est input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.est input:disabled { cursor: not-allowed; }
.est span { display: inline-flex; flex-direction: column; justify-content: center; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid #b9cad4; background: #fff; font-weight: 500; transition: background-color .2s, color .2s, border-color .2s; }
.est input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.est input:focus-visible + span { outline: 2px solid var(--cool-ink); outline-offset: 3px; }
.est input:disabled + span { opacity: .45; text-decoration: line-through; }
.est small { display: block; font: 400 12px/1.1 var(--mono); color: var(--ink-soft); margin-bottom: 3px; }
.est input:checked + span small { color: rgba(255,255,255,.75); }
.est__note { margin: 10px 0 0; font-size: 14px; color: var(--ink-soft); }
.when { scroll-margin-top: 90px; }
.when:focus { outline: none; }
.when__days, .when__times { display: grid; gap: 8px; width: 100%; }
.when__days { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.when__times { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); margin-top: 10px; }
.when span { width: 100%; min-height: 56px; padding: 6px 8px; border-radius: 12px; text-align: center; align-items: center; font-size: 15px; line-height: 1.15; }
.total { position: sticky; top: 96px; padding: 28px; border-radius: 22px; background: var(--navy); color: #fff; }
.total__k { margin: 0; font: 500 14px/1.2 var(--mono); color: rgba(255,255,255,.7); }
.total__n { margin: 10px 0 0; font: 500 clamp(56px, 7vw, 96px)/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.05em; color: var(--cool-2); }
.total__u { margin: 4px 0 14px; color: rgba(255,255,255,.8); }
.total__lines { list-style: none; margin: 0 0 14px; padding: 12px 0 0; border-top: 1px solid rgba(255,255,255,.18); font-size: 15px; }
.total__lines li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; color: rgba(255,255,255,.85); }
.total__lines li span:last-child { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.total__when { margin: 0 0 16px; font: 500 15px/1.3 var(--mono); color: var(--cool-2); }
.total__note { margin: 12px 0 0; font-size: 14px; color: rgba(255,255,255,.85); min-height: 0; }
.total__note:empty { display: none; }
.total .fine { color: rgba(255,255,255,.7); }
.total .btn { --t: 1; --tc: 1; }

/* Services: each row carries its own photo, on every device */
.svc { position: relative; padding: clamp(80px, 12vh, 140px) 0; background: var(--navy); color: #fff; }
.svc .kick { color: var(--cool-2); }
.rows { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid rgba(255,255,255,.18); }
.rows li { display: grid; grid-template-columns: 132px 1fr 1.4fr; gap: 24px; align-items: center; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.rows img { width: 132px; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.rows__t { font: 800 clamp(24px, 3vw, 40px)/1.05 var(--sans); font-stretch: 112%; letter-spacing: -.02em; }
.rows__d { color: rgba(255,255,255,.8); }

/* Steps: the day in the film, by the clock */
.steps { padding: clamp(80px, 12vh, 140px) 0; }
.steps__list { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps__list li { padding-top: 18px; border-top: 2px solid var(--ink); }
.steps__t { font: 500 26px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--cool-ink); }
.steps__list h3 { margin: 14px 0 6px; font: 700 21px/1.2 var(--sans); }
.steps__list p { margin: 0; color: var(--ink-soft); }

/* FAQ */
.faq { padding: 0 0 clamp(80px, 12vh, 140px); }
.faq .h2 { margin-bottom: 26px; }
.faq details { border-top: 1px solid #c4d3dc; }
.faq details:last-child { border-bottom: 1px solid #c4d3dc; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 22px 0; font: 700 20px/1.3 var(--sans); cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 26px/1 var(--mono); color: var(--cool-ink); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; max-width: 60ch; color: var(--ink-soft); }

/* Footer */
.foot { padding: 48px 0 calc(40px + env(safe-area-inset-bottom, 0px)); background: var(--navy); color: #fff; }
.foot__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.foot__line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 0; font: 500 16px/1.4 var(--mono); color: rgba(255,255,255,.85); }
.foot .btn { --t: 1; --tc: 1; }
.foot__small { font-size: 14px; color: rgba(255,255,255,.75); }
.foot__small p { margin: 0 0 8px; }
.foot__small a { padding: 15px 4px; margin: 0 -4px; }

@media (max-width: 860px) {
  .bar__nav a.hide-s { display: none; }
  .bar { gap: 10px; padding-top: max(8px, env(safe-area-inset-top, 0px)); padding-bottom: 8px; }
  .tag { font-size: 10px; padding: 5px 6px; }
  .film { height: 820vh; }
  .hud { left: var(--gut-l); right: auto; top: calc(64px + env(safe-area-inset-top, 0px)); bottom: auto; width: auto; padding: 10px 14px; border-radius: 14px; }
  .is-hero .hud { opacity: 0; }
  .hud__temp { font-size: 40px; }
  .hud__gauge, .hud__row--sm > span:nth-child(-n+2) { display: none; }
  .hud__row--sm { margin-top: 6px; }
  .rail { display: none; }
  .cap, .cap--hero, .cap--end { left: var(--gut-l); right: var(--gut-r); top: auto; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); max-width: none; }
  .cap__h { font-size: clamp(40px, 11.5vw, 64px); }
  .cap__p { font-size: 16px; }
  /* the headline's width follows the temperature; two lines are kept for it so nothing jumps as it narrows */
  .cap:not(.cap--hero) .cap__h { min-height: 1.84em; display: flex; flex-wrap: wrap; align-content: flex-end; }
  /* at the end the caption goes to the sky, clear of the new unit; it carries the temperature, so the HUD steps aside */
  .cap--end { top: calc(68px + env(safe-area-inset-top, 0px)); bottom: auto; }
  .is-end .hud { opacity: 0; }
  /* with the sheet up, the caption sits above it and keeps to its headline */
  /* the captions of the shots with notes sit just above the note panel, whose height fits the longest note */
  .is-sheet .cap[data-shot="1"], .is-sheet .cap[data-shot="3"] { bottom: calc(26px + var(--sheet-h, 96px) + env(safe-area-inset-bottom, 0px)); }
  .is-sheet .cap[data-shot="1"] .cap__p, .is-sheet .cap[data-shot="3"] .cap__p { display: none; }
  /* with the notes up, the caption shrinks to one line above them, so the unit and its dots stay clear */
  .is-sheet .cap[data-shot="1"] .cap__k, .is-sheet .cap[data-shot="3"] .cap__k { margin-bottom: 8px; }
  .is-sheet .cap[data-shot="1"] .cap__h, .is-sheet .cap[data-shot="3"] .cap__h { min-height: 0; font-size: clamp(24px, 7.2vw, 34px); white-space: nowrap; }
  .unit__grid, .price__grid, .foot__grid { grid-template-columns: 1fr; }
  /* the total stays in view while the options are picked */
  .total { position: sticky; top: auto; bottom: 0; z-index: 2; padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); border-radius: 18px 18px 0 0; margin: 0 calc(-1 * var(--gut)); display: grid; grid-template-columns: auto 1fr; gap: 0 14px; align-items: center; box-shadow: 0 -10px 30px rgba(0,0,0,.18); }
  .total__k { display: none; }
  .total__n { grid-column: 1; margin: 0; font-size: 38px; }
  .total__u { grid-column: 2; margin: 0; font-size: 14px; line-height: 1.3; }
  .total__lines, .total .fine { display: none; }
  .total__when { grid-column: 1 / -1; margin: 6px 0 8px; font-size: 14px; }
  .total .btn, .total__note { grid-column: 1 / -1; }
  .when__days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .when__times { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rows li { grid-template-columns: 96px 1fr; gap: 6px 16px; align-items: start; }
  .rows img { width: 96px; grid-row: span 2; }
  .rows__d { grid-column: 2; }
  .steps__list { grid-template-columns: 1fr 1fr; }
  .ba { border-radius: 0; }
}
@media (max-width: 520px) { .steps__list { grid-template-columns: 1fr; } }

/* Phones on their side: the screen is short, so the film's text gets a left column and the HUD shrinks */
@media (orientation: landscape) and (max-height: 520px) {
  .bar { padding-top: 6px; padding-bottom: 6px; }
  .film { height: 760vh; }
  .hud { top: auto; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); left: auto; right: var(--gut-r); padding: 8px 12px; }
  .hud__temp { font-size: 30px; }
  .is-hero .hud { opacity: 0; }
  .cap, .cap--hero, .cap--end { left: var(--gut-l); right: auto; top: auto; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); max-width: min(52vw, 520px); }
  .cap__k { margin-bottom: 8px; font-size: 13px; }
  .cap__h { font-size: clamp(28px, 7.6vh, 40px); }
  .cap__p { margin-top: 8px; font-size: 14px; max-width: 46ch; }
  .cap__hint { display: none; }
  .cap__cta { margin-top: 10px; }
  .sheet { left: auto; right: var(--gut-r); width: min(40vw, 320px); height: auto; min-height: 0; bottom: auto; top: calc(58px + env(safe-area-inset-top, 0px)); }
  .is-sheet .cap[data-shot="1"], .is-sheet .cap[data-shot="3"] { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .is-sheet .cap[data-shot="1"] .cap__p, .is-sheet .cap[data-shot="3"] .cap__p { display: none; }
  /* the end: the caption takes the sky on the right, clear of the unit (far left) and the front of the house */
  .cap--end { left: auto; right: var(--gut-r); top: calc(50px + env(safe-area-inset-top, 0px)); bottom: auto; max-width: 40vw; text-align: right; }
  .cap--end .cap__p { display: none; }
  .cap--end .cap__h { font-size: clamp(24px, 6.4vh, 30px); }
  /* the top bar's "Book a visit" sits right above: no second button */
  .cap--end .cap__cta { display: none; }
  .is-end .hud { opacity: 0; }
  .total { grid-template-columns: auto 1fr auto; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); margin: 0; }
  .total__n { font-size: 30px; grid-row: 1 / span 2; }
  .total__u { grid-column: 2; font-size: 13px; }
  .total__when { grid-column: 2; margin: 0; font-size: 13px; }
  .total .btn { grid-column: 3; grid-row: 1 / span 2; width: auto; }
  .total__note { grid-column: 1 / -1; }
}

/* "104°", the day's high, heads the hero caption for everyone */
.cap__high { display: flex; align-items: baseline; gap: 12px; margin: 0 0 6px; font: 900 clamp(40px, min(13vw, 9vh), 110px)/.9 var(--sans); font-stretch: 125%; color: var(--heat-2); text-shadow: 0 2px 24px rgba(0,0,0,.4); }
.cap__high small { padding: 4px 8px; border-radius: 6px; background: rgba(6,12,18,.72); font: 500 14px/1.2 var(--mono); color: #fff; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .loader { display: none; }
  .cap__hint { display: none; }
}

/* Heat-width headlines: placed last so the font shorthand above cannot reset the width */
.cap__h.heat, .h2.heat { font-stretch: var(--wide); }
@media (max-height: 520px) { .cap__high { font-size: 36px; } }
