/* Kettle Creek Heating and Air: sample site. Design style: Cinematic.
   Near-black grounds, one brass gold, soft white. Condensed capitals for headings, a plain
   sans for reading. Sections are parted by hairlines and given a lot of black space.
   The home page has a scroll-driven fly-through: a pinned stage of six still scenes, joined
   by a flight down round ductwork (see "The fly-through" below, and site.js).
   --ground and --gold are the two brand colors that "Make it yours" changes. Every other
   tone is mixed from them, so the whole site follows along. */
:root {
  --ground: #0a0a0b;
  --gold: #c9a24a;
  --white: #f4f0e8;
  --gold-lt: color-mix(in srgb, var(--gold) 58%, #fff4d6);
  --gold-dk: color-mix(in srgb, var(--gold) 70%, #000);
  --on-gold: #14100a;                                         /* words on a gold fill */
  --lift: color-mix(in srgb, var(--ground) 97.500%, #fff);    /* a section one step up from the ground */
  --panel: color-mix(in srgb, var(--ground) 95.500%, #fff);   /* cards */
  --line: color-mix(in srgb, var(--white) 12%, transparent);
  --line-gold: color-mix(in srgb, var(--gold) 44%, transparent);
  --text: color-mix(in srgb, var(--white) 76%, var(--ground));
  --dim: color-mix(in srgb, var(--white) 54%, var(--ground));
  --head: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gut: clamp(20px, 4vw, 48px);
  --edge: max(var(--gut), calc((100% - var(--wrap)) / 2 + var(--gut)));   /* the left edge of the words, measured from a full-width box */
  --bar: 76px;                                                /* the height of the header; site.js measures the real one */
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--text); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
section { position: relative; padding: clamp(68px, 8.500vw, 124px) 0; border-top: 1px solid var(--line); }
.lift { background: var(--lift); }
[id] { scroll-margin-top: calc(var(--bar) + 8px); }
#numbers { scroll-margin-top: var(--bar); }   /* "Skip the tour" lands with the stage fully under the header */
:focus-visible { outline: 2px solid var(--gold-lt); outline-offset: 3px; }

.sample { position: relative; z-index: 2; background: #000; color: #fff; font: 400 13px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; text-align: center; padding: 7px 16px; }
.sample a { display: inline-block; margin: -6px -2px; padding: 6px 2px; font-weight: 700; }

/* Type */
.h1, .h2, .h3 { font-family: var(--head); font-weight: 700; text-transform: uppercase; color: var(--white); line-height: 1; letter-spacing: .012em; text-wrap: balance; }
.h1 { font-size: clamp(46px, 6.200vw, 92px); line-height: .96; }
.h2 { font-size: clamp(36px, 4.300vw, 62px); }
.h3 { font-size: clamp(23px, 2vw, 27px); font-weight: 600; letter-spacing: .03em; line-height: 1.08; }
.tag { margin-bottom: 18px; font: 600 15px/1.25 var(--head); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.tag.rule { display: flex; align-items: center; gap: 14px; }
.tag.rule::before { content: ""; flex: none; width: 34px; height: 1px; background: var(--gold); }
.lede { max-width: 56ch; margin-top: 16px; font-size: clamp(17.500px, 1.450vw, 20px); line-height: 1.6; }
.fine { margin-top: 28px; max-width: 86ch; font-size: 13.500px; line-height: 1.6; color: var(--dim); }
.row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Buttons. The main one is a flat gold plate with dark words; a band of light crosses it on hover. */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 0 28px; border: 1px solid var(--gold); border-radius: 3px; background: var(--gold); color: var(--on-gold); font: 700 17px/1 var(--head); letter-spacing: .13em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; overflow: hidden; transition: background-color .3s, color .3s, border-color .3s, box-shadow .3s; }
.btn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 34%, rgba(255, 255, 255, .5) 50%, transparent 66%); transform: translateX(-120%); transition: transform .75s var(--ease); pointer-events: none; }
.btn:hover::before, .btn:focus-visible::before { transform: translateX(120%); }
.btn:hover { background: var(--gold-lt); box-shadow: 0 10px 34px -10px color-mix(in srgb, var(--gold) 75%, transparent); }
.btn .go { width: 20px; height: 20px; flex: none; transition: transform .3s var(--ease); }
.btn:hover .go { transform: translateX(5px); }
.btn.line { background: transparent; color: var(--white); border-color: color-mix(in srgb, var(--white) 34%, transparent); }
.btn.line::before { content: none; }
.btn.line:hover { border-color: var(--gold); color: var(--gold-lt); background: color-mix(in srgb, var(--gold) 9%, transparent); box-shadow: none; }
.btn.small { min-height: 46px; padding: 0 20px; font-size: 15.500px; }
.btn.dark { background: var(--on-gold); border-color: var(--on-gold); color: var(--gold-lt); }
.btn.dark:hover { background: #000; box-shadow: none; }
.btn.ink { background: transparent; border-color: color-mix(in srgb, var(--on-gold) 55%, transparent); color: var(--on-gold); }
.btn.ink::before { content: none; }
.btn.ink:hover { background: color-mix(in srgb, var(--on-gold) 10%, transparent); box-shadow: none; }

/* The line of gold that grows across the very top of the window as the page is read */
.progress { position: fixed; left: 0; top: 0; z-index: 80; width: 100%; height: 3px; background: linear-gradient(90deg, var(--gold-dk), var(--gold-lt)); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

/* Header: logo, five plain links, the phone number over the hours, and a gold button */
header { position: sticky; top: 0; z-index: 60; background: var(--ground); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: clamp(18px, 2.800vw, 44px); max-width: var(--wrap); min-height: 76px; margin: 0 auto; padding: 10px var(--gut); }
.logo { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 44px; color: var(--white); text-decoration: none; }
.mark { flex: none; width: 42px; height: 42px; color: var(--gold); }
.logo b { display: block; font: 700 23px/1 var(--head); letter-spacing: .07em; text-transform: uppercase; overflow-wrap: anywhere; }
.logo small { display: block; margin-top: 5px; font: 500 10.500px/1 var(--body); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
#nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); font-size: 15.500px; }
#nav a:not(.btn) { position: relative; padding: 8px 0; color: var(--dim); text-decoration: none; transition: color .25s; }
#nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s var(--ease); }
#nav a:not(.btn):hover, #nav a[aria-current] { color: var(--white); }
#nav a:not(.btn):hover::after, #nav a[aria-current]::after { transform: none; }
#nav .btn { display: none; }
.side { display: flex; align-items: center; gap: clamp(14px, 1.800vw, 24px); margin-left: auto; }
.tel { text-decoration: none; white-space: nowrap; }
.tel b { display: block; font: 600 22px/1 var(--head); letter-spacing: .04em; color: var(--white); }
.tel small { display: block; margin-top: 5px; font-size: 12px; line-height: 1; color: var(--gold); }
.menu { display: none; position: relative; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line-gold); border-radius: 3px; background: none; cursor: pointer; }
.menu i { position: absolute; left: 12px; right: 12px; top: 22px; height: 1.500px; background: var(--gold-lt); transition: transform .35s var(--ease), opacity .2s; }
.menu i:first-child { transform: translateY(-7px); } .menu i:last-child { transform: translateY(7px); }
.menu[aria-expanded="true"] i:first-child { transform: rotate(45deg); } .menu[aria-expanded="true"] i:last-child { transform: rotate(-45deg); }
.menu[aria-expanded="true"] i:nth-child(2) { opacity: 0; }

/* The left rail: a hairline down the left edge of the window, hung from the header, and a
   small icon that rides down it as the page is read. site.js moves the rider and swaps its
   icon for each section. Wide screens only. */
.rail { display: none; position: absolute; left: 24px; top: 100%; width: 1px; height: calc(100vh - var(--bar)); background: linear-gradient(180deg, transparent, var(--line-gold) 7%, var(--line-gold) 86%, transparent); pointer-events: none; }
.rider { position: absolute; left: -17px; top: 16px; width: 35px; height: 35px; border: 1px solid var(--line-gold); border-radius: 50%; background: var(--ground); color: var(--gold-lt); box-shadow: 0 0 20px color-mix(in srgb, var(--gold) 34%, transparent); will-change: transform; }
.rider .ic { position: absolute; left: 7px; top: 7px; width: 19px; height: 19px; opacity: 0; transform: scale(.4) rotate(-40deg); transition: opacity .3s, transform .5s var(--ease); }
.rider .ic.on { opacity: 1; transform: none; }
@media (min-width: 1100px) { .rail { display: block; } }

/* Pictures. Each is a stand-in drawing on a lit dark ground, with the photograph over it. */
.zoom { position: absolute; inset: 0; }
.art, .zoom > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.zoom > img, .shot > img { object-fit: cover; }
/* A photograph is shown only once the whole file has arrived (site.js marks it "ok"), and
   then fades in over its drawing. Without that, a slow connection paints the photo from the
   top down and leaves a hard seam across the drawing. */
.js .zoom > img, .js .shot > img { opacity: 0; }
.js .zoom > img { transition: opacity .6s var(--ease); }
.js .shot > img { transition: transform 1s var(--ease), opacity .6s var(--ease); }
.js .zoom > img.ok, .js .shot > img.ok { opacity: 1; }
.art { color: var(--gold-lt); background: #0b0b0d; }
.art.dusk { background: radial-gradient(ellipse 62% 46% at 64% 80%, rgba(244, 170, 84, .38), transparent 72%), linear-gradient(180deg, #10163a 0, #2a2356 34%, #5b3a62 58%, #2a1c30 76%, #0b0a10 100%); }
.art.lamp { background: radial-gradient(ellipse 62% 72% at 50% 36%, rgba(238, 176, 92, .25), transparent 72%), linear-gradient(180deg, #1b1611, #0b0908); }
.art.crawl { background: radial-gradient(ellipse 26% 30% at 50% 49%, rgba(126, 112, 214, .46), transparent 72%), radial-gradient(ellipse 84% 84% at 50% 50%, rgba(238, 176, 92, .12), transparent 70%), linear-gradient(180deg, #14110d, #080706); }
.art.studio { background: radial-gradient(ellipse 58% 64% at 50% -8%, rgba(255, 255, 255, .2), transparent 70%), radial-gradient(ellipse 46% 12% at 50% 82%, rgba(255, 255, 255, .09), transparent 72%), linear-gradient(180deg, #111113, #070708); }
.draw { position: absolute; inset: 0; width: 100%; height: 100%; stroke-width: 1.400px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; color: var(--gold-lt); }
.draw * { vector-effect: non-scaling-stroke; }
.draw .k { vector-effect: none; }
.cap { position: absolute; z-index: 3; left: 12px; bottom: 12px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 3px; background: rgba(0, 0, 0, .62); color: #ece7db; font: 500 11px/1.4 var(--body); letter-spacing: .04em; white-space: nowrap; pointer-events: none; }

/* Hero: one wide dusk photograph, with the words on its left */
.hero { display: grid; align-items: center; min-height: min(calc(100vh - var(--bar) - 34px), max(900px, 62vw)); padding: clamp(72px, 9vw, 120px) 0; border-top: 0; overflow: hidden; }
.hero > .pic { position: absolute; inset: 0; overflow: hidden; animation: hero-in 1.800s var(--ease) backwards; }
.hero > .pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 4, 7, .6) 0, rgba(4, 4, 7, .34) 34%, transparent 62%), linear-gradient(0deg, var(--ground) 0, transparent 20%); }
.hero .zoom { will-change: transform; }
.hero .wrap { position: relative; z-index: 2; }
.hero .words { max-width: 640px; }
.hero .words > * { animation: words-in 1s var(--ease) backwards; }
.hero .words > :nth-child(1) { animation-delay: .25s; } .hero .words > :nth-child(2) { animation-delay: .37s; }
.hero .words > :nth-child(3) { animation-delay: .5s; } .hero .words > :nth-child(4) { animation-delay: .62s; }
.hero .lede { margin-top: 22px; color: color-mix(in srgb, var(--white) 88%, transparent); }
.hero .row { margin-top: 34px; }
.hero > .cap { left: auto; right: 20px; top: 16px; bottom: auto; }   /* top right, so it is in view at first paint at every window size */
@keyframes hero-in { from { opacity: 0; transform: scale(1.07); } }
@keyframes words-in { from { opacity: 0; transform: translateY(26px); } }

/* ---------------------------------------------------------------------------------------
   The fly-through.
   Ordinary layout first (phones held sideways, reduced motion, no script): the six scenes
   are a plain set of pictures, each with its caption under it. Nothing is pinned, and
   nothing is numbered.
   --------------------------------------------------------------------------------------- */
.fly { padding-bottom: clamp(68px, 8.500vw, 124px); }
.fly-head { margin-bottom: clamp(32px, 4.400vw, 56px); }
.stage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 5vw, 60px) clamp(22px, 3vw, 40px); max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.scene .pic { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #000; }
.scene .words { padding-top: 20px; }
.scene .words .tag { margin-bottom: 10px; }
.scene .words .h2 { font-size: clamp(30px, 3.400vw, 44px); }
.scene .words p:nth-child(3) { margin-top: 10px; max-width: 46ch; }
.duct, .rim, .count, .hint, .skip, .stagecap { display: none; }
/* The furnace room is a much brighter photograph than the other five, and the register a
   little flat: both are brought toward the rest so the six read as one evening. */
.scene[data-rail="flame"] .zoom > img { filter: brightness(.78) contrast(1.08) saturate(.9); }
.scene[data-rail="fan"] .zoom > img { filter: brightness(.9) contrast(1.1); }

/* Pinned layout (site.js puts "pins" on <html>): wide screens, and portrait phones and
   tablets, with motion allowed. The film is a tall block; the stage inside it sticks under
   the header for the whole of it. Every scene fills the stage, one on top of the last.
   site.js reads how far the film has been scrolled and sets, once a frame, only transforms,
   opacities and clip-paths:
     .zoom        the picture, pushing slowly in, then diving at the duct
     .duct        the inside of the duct, opening over the scene being left
     .rings       the duct's rings, flowing outward (an endless loop of one scale step)
     .pic         of the next scene: an iris that opens on it
     .rim         two rings of light that travel with the edges of those two openings
     .words       each scene's caption, in and out (through --in and --out)
   Everything opens from one point of the stage: its middle here, a little higher on phones
   (--cy). Each photograph is placed so its subject sits on that point (--wh and --wy, or
   --ph and --px on phones; the generator writes them on each scene).
   Layers: the pictures and the duct between them (10 to 31), then every caption (50), then
   the photo label, the progress line and "Skip the tour" (60).                          */
html.pins .fly { padding: 0; }
html.pins .fly-head { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html.pins .film { --unit: min(130vh, 1320px); height: calc(100vh - var(--bar) + var(--t, 5.500) * var(--unit)); }
html.pins .stage { --cy: 50%; position: sticky; top: var(--bar); display: block; max-width: none; height: calc(100vh - var(--bar)); padding: 0; overflow: hidden; background: #000; }
html.pins .scene { position: absolute; inset: 0; pointer-events: none; }
html.pins .scene .pic { position: absolute; inset: 0; z-index: calc(10 + var(--k) * 4); aspect-ratio: auto; border: 0; border-radius: 0; visibility: hidden; }
html.pins .scene.on .pic { visibility: visible; }
html.pins .scene .zoom { transform-origin: 50% var(--cy); }
html.pins .scene.on .zoom { will-change: transform; }
/* The photo hangs from the top of the stage and may be taller than it (--wh), which brings a
   subject that sits above the middle of its file down to the middle of the stage. When the
   window is wider than the photo, --wy says which part of its height to keep. */
html.pins .scene .zoom > img { bottom: auto; height: var(--wh, 100%); object-position: 50% var(--wy, 50%); }
html.pins .scene .pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4, 4, 6, .9) 0, rgba(4, 4, 6, .36) 32%, transparent 58%), linear-gradient(90deg, rgba(4, 4, 6, .5), transparent 46%), linear-gradient(180deg, rgba(4, 4, 6, .55), transparent 17%), linear-gradient(270deg, rgba(4, 4, 6, .5), transparent 14%), radial-gradient(ellipse 30% 22% at 12% 0, rgba(4, 4, 6, .6), transparent); pointer-events: none; }
/* One label for the whole stage. A scene's own label is covered by the duct as the scene is
   left, and is the last thing the opening reaches on the scene that is arriving. */
html.pins .scene .cap { display: none; }
html.pins .stagecap { display: block; z-index: 60; left: auto; right: 20px; top: 16px; bottom: auto; }
html.pins .scene .words { position: absolute; z-index: 50; left: var(--edge); bottom: clamp(44px, 9vh, 92px); width: min(640px, 62%); padding: 0; --in: 0; --out: 0; }
html.pins .scene .words > * { --n: 0; --a: clamp(0, calc(var(--in) * 1.750 - var(--n) * .25), 1); opacity: calc(var(--a) * (1 - var(--out))); transform: translate3d(0, calc((1 - var(--a)) * 32px - var(--out) * 20px), 0); }
html.pins .scene .words > :nth-child(2) { --n: 1; } html.pins .scene .words > :nth-child(3) { --n: 2; } html.pins .scene .words > :nth-child(4) { --n: 3; }
html.pins .scene .words .tag { margin-bottom: 14px; text-shadow: 0 1px 14px rgba(0, 0, 0, .7); }
html.pins .scene .words .h2 { font-size: clamp(46px, 5.400vw, 86px); text-shadow: 0 2px 34px rgba(0, 0, 0, .55); }
html.pins .scene .words p:nth-child(3) { margin-top: 14px; font-size: clamp(17.500px, 1.400vw, 20px); color: color-mix(in srgb, var(--white) 90%, transparent); text-shadow: 0 1px 14px rgba(0, 0, 0, .7); }
@media (min-width: 981px) { html.pins .scene[data-rail="wrench"] .pic::after { opacity: .76; } }   /* the tune-up photo is the darkest; under the full shade its lower third goes black */

/* The duct. .rings is a square a little larger than the stage's diagonal (--ring) and
   carries the drawing; .sheen lies still over it and shades it: black at the far end, in
   the corners, and across the top and bottom, so the rings look lit from the sides.
   The last layer shades the corner where the captions sit, so they read over the rings. */
html.pins .duct { display: block; position: absolute; inset: 0; overflow: hidden; background: #020202; color: color-mix(in srgb, var(--gold) 76%, #e0661c); visibility: hidden; }
html.pins .duct.on { visibility: visible; }
html.pins .duct::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 78% 74% at 0 100%, rgba(3, 3, 5, .9) 0, rgba(3, 3, 5, .62) 44%, transparent 76%); }
.duct .rings, .duct .sheen, html.pins .rim { position: absolute; left: 50%; top: var(--cy, 50%); }
.duct .rings { width: var(--ring, 100px); height: var(--ring, 100px); margin: calc(var(--ring, 100px) / -2) 0 0 calc(var(--ring, 100px) / -2); will-change: transform; }
.duct .rings svg { width: 100%; height: 100%; }
.duct .rings .c { stroke: var(--gold-lt); }
.duct .sheen { width: var(--diag, 100px); height: var(--diag, 100px); margin: calc(var(--diag, 100px) / -2) 0 0 calc(var(--diag, 100px) / -2); background:
  radial-gradient(circle closest-side, #000 0, #000 2.500%, transparent 10%),
  radial-gradient(circle closest-side, transparent 0, transparent 44%, rgba(0, 0, 0, .4) 74%, rgba(0, 0, 0, .82) 100%),
  conic-gradient(from 0deg, rgba(0, 0, 0, .84), rgba(0, 0, 0, .1) 17%, rgba(255, 226, 170, .1) 25%, rgba(0, 0, 0, .1) 33%, rgba(0, 0, 0, .84) 50%, rgba(0, 0, 0, .1) 67%, rgba(255, 226, 170, .1) 75%, rgba(0, 0, 0, .1) 83%, rgba(0, 0, 0, .84)); }
/* The two rims. Each is a ring half the size of the stage's diagonal, scaled by site.js to
   sit on the edge of its opening: the mouth of the duct, and the far end where the next
   scene shows. The glow and the dark inside edge are shadows, so they scale with it.
   The bright line itself is a ring of its own inside each (.rim > i). While an opening is
   small the line would be scaled down to a fraction of a pixel and break into dots, so
   site.js keeps it clear until it can be drawn whole and then fades it in. */
html.pins .rim { display: block; width: calc(var(--diag, 100px) / 2); height: calc(var(--diag, 100px) / 2); margin: calc(var(--diag, 100px) / -4) 0 0 calc(var(--diag, 100px) / -4); border-radius: 50%; visibility: hidden; pointer-events: none; will-change: transform; }
html.pins .rim.on { visibility: visible; }
.rim > i { position: absolute; border-radius: 50%; opacity: 0; will-change: opacity; }
.rim.out { border: 2.500px solid transparent; box-shadow: 0 0 40px 4px color-mix(in srgb, var(--gold) 46%, transparent), inset 0 0 0 5px #000, inset 0 0 70px 26px #000; }
.rim.out > i { inset: -2.500px; border: 2.500px solid var(--gold-lt); box-shadow: 0 0 0 2px #000; }
.rim.in { border: 1.500px solid transparent; box-shadow: 0 0 22px 2px color-mix(in srgb, var(--gold) 60%, transparent), 0 0 110px 6px color-mix(in srgb, var(--gold) 34%, transparent), inset 0 0 60px 6px rgba(0, 0, 0, .66); }
.rim.in > i { inset: -1.500px; border: 1.500px solid var(--gold-lt); }
/* Where you are in the film: one line at the right edge that fills as the film runs.
   No numerals. Its dark edge keeps it readable over the bright parts of the photos. */
html.pins .count { display: block; position: absolute; z-index: 60; right: 26px; top: 50%; transform: translateY(-50%); }
.count > i { display: block; width: 2px; height: 132px; border-radius: 2px; background: color-mix(in srgb, var(--white) 34%, #1a1a1c); box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), 0 0 16px 2px rgba(0, 0, 0, .7); overflow: hidden; }
.count > i > i { display: block; width: 100%; height: 100%; background: var(--gold-lt); transform: scaleY(0); transform-origin: 50% 0; }
/* A nudge to scroll, under the first scene's caption. It comes and goes with that caption. */
html.pins .scene .words .hint { display: flex; align-items: center; gap: 14px; margin-top: 26px; font: 600 13px/1 var(--head); letter-spacing: .3em; text-transform: uppercase; color: var(--gold-lt); }
.hint::before { content: ""; width: 44px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-lt)); transform-origin: 0 50%; animation: hint 2.200s var(--ease) infinite; }
@keyframes hint { 0% { transform: scaleX(0); } 55% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
/* "Skip the tour" has the same dark plate as the photo label, so it reads over any photo.
   site.js takes it away on the last scene, where there is nothing left to skip. */
html.pins .skip { display: flex; align-items: center; position: absolute; z-index: 60; left: calc(var(--edge) - 13px); top: 12px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 3px; background: rgba(0, 0, 0, .55); font: 600 13px/1 var(--head); letter-spacing: .26em; text-transform: uppercase; color: var(--white); text-decoration: none; }
html.pins .skip:hover { color: var(--gold-lt); border-color: var(--line-gold); }
html.pins .skip.gone { visibility: hidden; }

/* The numbers: four cells parted by hairlines */
.nums { padding: 24px 0 0; }
.nums .tag { margin: 0 0 6px; }
.cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cells.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cell { padding: clamp(30px, 4vw, 54px) clamp(12px, 2vw, 28px) clamp(34px, 4.400vw, 60px); text-align: center; }
.cell + .cell { border-left: 1px solid var(--line); }
.cell b, .amt { background: linear-gradient(180deg, #fff 6%, var(--gold-lt) 50%, var(--gold) 96%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cell b { display: block; font: 700 clamp(48px, 5.800vw, 88px)/1 var(--head); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.cell b.sm { font-size: clamp(26px, 2.800vw, 40px); line-height: clamp(48px, 5.800vw, 88px); }
.cell > span { display: block; margin-top: 12px; font-size: 15px; line-height: 1.45; }

/* What we do: six dark cards. Each picture is one thing in a studio, lit from above, with
   a thin arc of light round it that draws itself the first time it is seen. */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: clamp(34px, 4.400vw, 56px); }
.card { display: flex; flex-direction: column; padding: 26px 26px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text); text-decoration: none; }
.card:hover, .card:focus-visible { border-color: var(--line-gold); }
.shot { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #070708; }
.shot .art, .shot > img { transition: transform 1s var(--ease); }
.card:hover .shot .art, .card:hover .shot > img { transform: scale(1.045); }
.shot > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.arc { position: absolute; inset: 0; width: 100%; height: 100%; color: #fff; pointer-events: none; -webkit-mask-image: linear-gradient(#000 50%, transparent 76%); mask-image: linear-gradient(#000 50%, transparent 76%); transition: color .5s; }
/* The line is one whole arc long (pathLength="1" in the page), measured along the path
   itself, so it is drawn end to end whatever width the picture is shown at. */
.arc path { vector-effect: none; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.700s var(--ease) .25s; }
/* Two photographs are wider than the arc. On those it fades out above the object. */
.shot.arch .arc { -webkit-mask-image: linear-gradient(#000 13%, transparent 33%); mask-image: linear-gradient(#000 13%, transparent 33%); }
.shot.half .arc { -webkit-mask-image: linear-gradient(#000 28%, transparent 47%); mask-image: linear-gradient(#000 28%, transparent 47%); }
.js .rise:not(.in) .arc path { stroke-dashoffset: 1; }
.card:hover .arc, .svc:hover .arc { color: var(--gold-lt); }
.card .h3 { margin-top: 22px; }
.card p { margin-top: 8px; font-size: 15.500px; line-height: 1.55; }
.card .from { font-size: 13.500px; color: var(--dim); }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 20px; font: 600 15px/1 var(--head); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.more .go { width: 17px; height: 17px; transition: transform .3s var(--ease); }
.card:hover .more .go { transform: translateX(6px); }

/* Feature: membership plans */
.bill { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin-top: 30px; padding: 4px; border: 1px solid var(--line-gold); border-radius: 999px; background: var(--ground); }
.bill .thumb { position: absolute; left: 4px; top: 4px; bottom: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--gold); transition: transform .5s var(--ease); }
.bill[data-mode="y"] .thumb { transform: translateX(100%); }
.bill label { position: relative; z-index: 1; min-width: 132px; padding: 15px 24px 14px; text-align: center; font: 700 16px/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--white); cursor: pointer; transition: color .3s; }
.bill input { position: absolute; opacity: 0; pointer-events: none; }
.bill[data-mode="m"] label:nth-of-type(1), .bill[data-mode="y"] label:nth-of-type(2) { color: var(--on-gold); }
.bill label:has(input:focus-visible) { outline: 2px solid var(--gold-lt); outline-offset: 4px; border-radius: 999px; }
.saves { margin-top: 12px; font-size: 14px; color: var(--gold); }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 44px; }
.tier { position: relative; display: flex; flex-direction: column; padding: 36px 30px 30px; border: 1px solid var(--line); border-radius: 14px; background: var(--ground); }
.tier.pick { border-color: var(--gold); background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 10%, var(--ground)), var(--ground) 48%); box-shadow: 0 34px 90px -46px color-mix(in srgb, var(--gold) 70%, transparent); }
.flag { position: absolute; left: 28px; top: -13px; padding: 6px 12px 5px; border-radius: 3px; background: var(--gold); color: var(--on-gold); font: 700 13px/1 var(--head); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.who { margin-top: 8px; font-size: 15px; color: var(--dim); }
.cost { display: flex; align-items: baseline; gap: 10px; margin-top: 22px; }
.amt { display: inline-block; font: 700 clamp(56px, 5.400vw, 76px)/1 var(--head); font-variant-numeric: tabular-nums; }
.amt.tick { animation: amt .55s var(--ease); }
@keyframes amt { from { opacity: 0; transform: translateY(.3em); } }
.per { font: 600 16px/1 var(--head); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.billed { margin-top: 8px; font-size: 13.500px; color: var(--dim); }
.ticks { margin: 22px 0 28px; }
.ticks li { position: relative; padding: 12px 0 12px 30px; border-top: 1px solid var(--line); font-size: 15.500px; line-height: 1.45; color: color-mix(in srgb, var(--white) 90%, var(--ground)); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 13px; height: 7px; border-left: 1.500px solid var(--gold); border-bottom: 1.500px solid var(--gold); transform: rotate(-45deg); }
.tier .btn { margin-top: auto; }
/* The sign-up panel. It sends nothing. */
.join { width: min(440px, calc(100vw - 32px)); padding: 34px 30px 28px; border: 1px solid var(--line-gold); border-radius: 14px; background: var(--panel); color: var(--text); box-shadow: 0 30px 100px #000; }
.join::backdrop { background: rgba(0, 0, 0, .7); }
.join .x { position: absolute; right: 8px; top: 2px; padding: 16px 10px; border: 0; background: none; color: var(--dim); font: 600 13px/1 var(--head); letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }
.join .x:hover { color: var(--gold-lt); }
.join .tag { margin-bottom: 12px; font-size: 13px; }
.joincost { margin: 8px 0 22px; font: 600 18px/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-lt); }

/* Where we work: the counties as gold chips, the towns as outlined ones */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 76px); align-items: start; }
.two > div > p:not(.tag):not(.lab) { margin-top: 20px; max-width: 52ch; }
.lab { margin-bottom: 12px; font: 500 12.500px/1.3 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.chiprow { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 1px 20px 0; border: 1px solid color-mix(in srgb, var(--white) 20%, transparent); border-radius: 999px; font: 600 16px/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--white); white-space: nowrap; }
.chip.gold { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, transparent); color: var(--gold-lt); }   /* a label, not a button: outlined, not filled */
.chip.dash { border-style: dashed; border-color: var(--line-gold); color: var(--gold); }
.chips > p:last-child { margin-top: 0; }

/* Why us: six points, each with a line icon. How a visit goes: four steps. Neither is numbered. */
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(34px, 4.400vw, 52px); }
.point { padding: 28px 26px 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.point .ic { width: 46px; height: 46px; margin-bottom: 20px; padding: 11px; border: 1px solid var(--line-gold); border-radius: 10px; background: color-mix(in srgb, var(--gold) 7%, transparent); color: var(--gold-lt); }
.point p { margin-top: 8px; font-size: 15.500px; line-height: 1.55; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(34px, 4.400vw, 52px); }
.steps li { padding: 4px 26px 6px; border-left: 1px solid var(--line); }
.steps li:first-child { padding-left: 0; border-left: 0; }
.when { margin-bottom: 14px; font: 600 14px/1 var(--head); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.steps li p:last-child { margin-top: 8px; font-size: 15.500px; line-height: 1.55; }

/* Sample reviews */
.revs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: clamp(34px, 4.400vw, 52px); }
.rev { padding: 30px 28px 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.rev::before { content: "\201C"; display: block; height: 30px; font: 700 64px/1 var(--head); color: var(--gold); }
.rev p { font-size: 18.500px; line-height: 1.5; color: var(--white); }
.rev small { display: block; margin-top: 18px; font: 600 13px/1 var(--head); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }

/* The call to action: a gold band with a picture set into its right end */
.cta { padding: clamp(54px, 6.500vw, 96px) 0; }
.band { display: grid; grid-template-columns: minmax(0, 1.350fr) minmax(0, 1fr); overflow: hidden; border-radius: 18px; background: linear-gradient(120deg, var(--gold-lt), var(--gold) 56%, var(--gold-dk)); color: var(--on-gold); }
.band .say { padding: clamp(36px, 5.200vw, 80px) clamp(26px, 4vw, 58px); }
.band .h2 { color: var(--on-gold); }
.band .say > p { margin-top: 12px; max-width: 40ch; font-size: 19px; line-height: 1.5; color: color-mix(in srgb, var(--on-gold) 88%, transparent); }
.band .row { margin-top: 28px; }
.band .pic { position: relative; min-height: 300px; overflow: hidden; background: #000; }
.band :focus-visible { outline-color: var(--on-gold); }   /* the pale gold ring cannot be seen on the gold band */
/* Each page's band has a different wide photograph; these keep its subject in the box. */
.band .on-hero .zoom > img { object-position: 46% 50%; }
.band .on-register .zoom > img { object-position: 50% 0; }
.band .on-thermostat .zoom > img { object-position: 50% 46%; }

footer { border-top: 1px solid var(--line); padding: 64px 0 44px; font-size: 15.500px; }
.foot { display: grid; grid-template-columns: 1.600fr 1fr 1fr .8fr; gap: 40px; }
.foot .about { margin-top: 20px; max-width: 40ch; }
.foot h4 { margin-bottom: 14px; font: 600 16px/1 var(--head); letter-spacing: .22em; text-transform: uppercase; color: var(--white); }
.foot nav { display: grid; gap: 9px; justify-items: start; }
.foot a { color: var(--text); text-decoration: none; transition: color .25s; }
.foot a:hover { color: var(--gold-lt); }
.foot p { line-height: 1.9; }
.foot .about { line-height: 1.65; }
.credit { margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13.500px; color: var(--dim); }
.credit a { color: var(--gold); }

/* Inner pages */
.top { padding: clamp(72px, 9vw, 132px) 0 clamp(60px, 7vw, 104px); border-top: 0; overflow: hidden; }
.top .wrap { position: relative; }
.top .lede { margin-top: 20px; }
/* With a photograph: laid out like the home page's hero, the picture behind the words. */
.top > .pic { position: absolute; inset: 0; overflow: hidden; }
.top > .pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 4, 7, .86) 0, rgba(4, 4, 7, .6) 38%, rgba(4, 4, 7, .12) 72%, transparent), linear-gradient(0deg, var(--ground) 0, transparent 34%); }
.top > .cap { left: auto; right: 20px; top: 16px; bottom: auto; }
.top.photo .lede { color: color-mix(in srgb, var(--white) 88%, transparent); }
/* Which band of each photo shows. Two of them have their subject in the middle, where the
   heading is, so the picture is made wider than the box and its subject moves to the right. */
.top.on-ducts .zoom > img { object-position: 50% 62%; }
.top.on-heatpump .zoom > img { width: 136%; object-position: 50% 46%; }
.top.on-thermostat .zoom > img { width: 120%; object-position: 50% 45%; }
/* The duct rings again, off to the right, drifting toward you without end */
.ringart { position: absolute; right: -9%; top: 50%; width: min(74vw, 880px); aspect-ratio: 1; margin-top: calc(min(74vw, 880px) / -2); color: var(--gold); opacity: .55; pointer-events: none; -webkit-mask-image: radial-gradient(closest-side, transparent 9%, #000 21%, transparent 96%); mask-image: radial-gradient(closest-side, transparent 9%, #000 21%, transparent 96%); }
.ringart svg { width: 100%; height: 100%; overflow: visible; animation: tunnel 16s linear infinite; }
@keyframes tunnel { from { transform: scale(.6407); } to { transform: scale(1); } }
.svc { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: clamp(26px, 5vw, 76px); align-items: center; padding: clamp(32px, 4vw, 56px) 0; border-top: 1px solid var(--line); }
.svc:first-child { padding-top: 0; border-top: 0; }
.svc:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); }
.svc:nth-child(even) .shot { order: 2; }
.price { margin-top: 12px; font: 600 16px/1 var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.svc p:not(.price) { margin-top: 16px; max-width: 54ch; }
.svc .ticks { max-width: 470px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 76px); align-items: center; }
.split.top-align { align-items: start; }
.split p { margin-top: 16px; max-width: 54ch; }
.note { padding-left: 14px; border-left: 2px solid var(--gold); font-size: 14.500px; color: var(--dim); }
.plate { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #000; }
.map { overflow: hidden; border: 1px solid var(--line-gold); border-radius: 14px; background: #1b1a18; }
/* The embedded map is a light one. The filter turns it dark and warm; town names and the map's own credits stay readable. */
.map iframe { display: block; width: 100%; height: clamp(320px, 46vw, 540px); border: 0; filter: grayscale(1) invert(.92) sepia(.35) brightness(.9) contrast(.95); }
.counties { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.counties > div { padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.counties .chip.gold { margin-bottom: 18px; }
.counties .chiprow { margin: 0; }
.form { display: grid; gap: 18px; }
.form label, .join label { display: grid; gap: 8px; font: 600 14px/1.2 var(--head); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.form input, .form textarea, .form select, .join input { width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--white); font: 400 16.500px/1.4 var(--body); letter-spacing: 0; text-transform: none; }
.join input { background: var(--ground); }
.form input:focus, .form textarea:focus, .form select:focus, .join input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.form textarea { min-height: 140px; resize: vertical; }
.form .btn { justify-self: start; }
.join form { display: grid; gap: 16px; }
.sent { scroll-margin: calc(var(--bar) + 16px) 0 130px; padding: 14px 16px; border-left: 2px solid var(--gold); background: color-mix(in srgb, var(--gold) 9%, transparent); font-size: 14.500px; line-height: 1.55; color: var(--white); }
.sent[hidden] { display: none; }
.facts-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts-list li:first-child { border-top: 1px solid var(--line); }
.facts-list span { font: 600 14px/1.2 var(--head); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.facts-list b { font: 600 20px/1.2 var(--head); letter-spacing: .05em; text-transform: uppercase; color: var(--white); text-align: right; }
.facts-list a { text-decoration: none; }

/* Things come up into place the first time they are on screen */
.js .rise { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
.js .rise.in { opacity: 1; transform: none; }

/* Floating: push to call (phones), the round chat icon (for show) and Make it yours */
.callnow { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 16px; background: var(--gold); color: var(--on-gold); font: 700 18px/1 var(--head); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; box-shadow: 0 -8px 26px rgba(0, 0, 0, .7); }
.callnow svg { width: 18px; height: 18px; fill: currentColor; }
.yours { position: fixed; right: 16px; bottom: 16px; z-index: 70; display: grid; justify-items: end; gap: 10px; }
.yours > button { min-height: 44px; padding: 0 18px; border: 1px solid var(--line-gold); border-radius: 3px; background: #050506; color: var(--white); font: 600 15px/1 var(--head); letter-spacing: .18em; text-transform: uppercase; box-shadow: 0 10px 30px rgba(0, 0, 0, .7); cursor: pointer; }
.yours .chat { display: grid; place-items: center; width: 54px; height: 54px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: var(--gold); }
.yours .chat svg { width: 25px; height: 25px; fill: var(--on-gold); }
.chatnote { width: min(260px, calc(100vw - 32px)); padding: 13px 16px; border: 1px solid var(--line-gold); border-radius: 10px; background: var(--panel); box-shadow: 0 10px 30px rgba(0, 0, 0, .7); font-size: 14px; line-height: 1.5; color: var(--white); }
.chatnote[hidden] { display: none; }
.panel { display: grid; gap: 13px; width: min(310px, calc(100vw - 32px)); padding: 22px; border: 1px solid var(--line-gold); border-radius: 12px; background: var(--panel); box-shadow: 0 16px 50px #000; }
.panel[hidden] { display: none; }
.panel strong { font: 700 24px/1 var(--head); letter-spacing: .06em; text-transform: uppercase; color: var(--white); }
.panel label, .panel .field { display: grid; gap: 6px; font: 600 13px/1.2 var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.panel input[type=text] { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--ground); color: var(--white); font: 400 16px var(--body); }
.swatches { display: flex; gap: 8px; }
.swatches button { width: 44px; height: 32px; padding: 0; border: 1px solid rgba(255, 255, 255, .28); border-radius: 4px; cursor: pointer; }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--gold-lt); }
.swatches button:focus-visible { outline-offset: 6px; }
.panel p { font-size: 13.500px; line-height: 1.5; color: var(--dim); }
.panel .reset { justify-self: start; padding: 0; border: 0; background: none; color: var(--gold-lt); font: 500 14px var(--body); text-decoration: underline; cursor: pointer; }

@media (max-width: 1160px) {
  .tel small { display: none; }
  .tel { padding: 11px 0; }   /* without its second line it is 22px tall; this makes it a 44px touch target */
  .foot { grid-template-columns: 1.300fr 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  /* phones and small tablets: the links fold into a menu, the number leaves the header and push to call takes over */
  .menu { display: block; }
  .tel, .side > .btn { display: none; }
  #nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: flex-start; gap: 0; padding: 6px var(--gut) 24px; border-bottom: 1px solid var(--line-gold); background: var(--ground); box-shadow: 0 30px 50px rgba(0, 0, 0, .8); max-height: calc(100vh - var(--bar) - 88px); max-height: calc(100dvh - var(--bar) - 88px); overflow-y: auto; overscroll-behavior: contain; }   /* 88px: the call bar, and the sample bar when the page is at the top */
  #nav.open { display: flex; }
  #nav a:not(.btn) { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); font: 600 24px/1 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--white); }
  #nav a:not(.btn)::after { content: none; }
  #nav a[aria-current] { color: var(--gold-lt); }
  #nav .btn { display: inline-flex; margin-top: 20px; }
  .cards, .tiers, .points, .revs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tier.pick { order: -1; grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 0; }
  .steps li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .two, .split, .band { grid-template-columns: 1fr; }
  .svc, .svc:nth-child(even) { grid-template-columns: 1fr; }
  .svc:nth-child(even) .shot { order: 0; }
  .svc .shot { max-width: 520px; }
  .band .pic { min-height: 0; aspect-ratio: 16 / 9; }
  .callnow { display: flex; }
  /* the two floating buttons sit side by side above the call bar, so they cover less of the page */
  .yours { right: 10px; bottom: 64px; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; width: min(310px, calc(100vw - 20px)); pointer-events: none; }
  .yours > * { pointer-events: auto; }
  .yours .chatnote, .yours .panel { order: -1; flex: 0 0 100%; width: auto; }
  .yours > button { min-height: 44px; padding: 0 13px; font-size: 13.500px; letter-spacing: .14em; }
  .yours .chat { order: 2; width: 44px; height: 44px; }
  .yours .chat svg { width: 20px; height: 20px; }
  .yours .panel { max-height: calc(100vh - 126px); max-height: calc(100dvh - 126px); overflow-y: auto; overscroll-behavior: contain; }
  footer { padding-bottom: 150px; }

  /* The fly-through on portrait phones and tablets. The stage runs from the header down to
     the call bar. Each photo fills the top part of it (--ph) and fades into black, where the
     caption sits; the round opening grows from a point 38% of the way down (--cy), which is
     where each photo's subject is. The caption stops above the two floating buttons. */
  html.pins .film { --unit: min(112vh, 980px); height: calc(100vh - var(--bar) - 54px + var(--t, 5.500) * var(--unit)); height: calc(100svh - var(--bar) - 54px + var(--t, 5.500) * var(--unit)); }
  html.pins .stage { --cy: 38%; height: calc(100vh - var(--bar) - 54px); height: calc(100svh - var(--bar) - 54px); }
  html.pins .scene .zoom > img, html.pins .scene .zoom > .art { bottom: auto; height: var(--ph, 100%); }
  html.pins .scene .zoom > img { object-position: var(--px, 50%) 50%; }
  html.pins .scene .pic::after { background: linear-gradient(0deg, #000 calc(100% - var(--ph, 100%)), rgba(0, 0, 0, .9) calc(107% - var(--ph, 100%)), rgba(0, 0, 0, .56) calc(121% - var(--ph, 100%)), rgba(0, 0, 0, .2) calc(136% - var(--ph, 100%)), transparent calc(150% - var(--ph, 100%))), linear-gradient(180deg, rgba(4, 4, 6, .62), transparent 15%); }
  html.pins .duct::after { background: linear-gradient(0deg, rgba(3, 3, 5, .94) 0, rgba(3, 3, 5, .8) 26%, rgba(3, 3, 5, .3) 44%, transparent 58%); }
  html.pins .scene .words { bottom: 64px; width: calc(100% - 2 * var(--gut) - 20px); }
  html.pins .scene .words .tag { margin-bottom: 10px; }
  html.pins .scene .words .h2 { font-size: clamp(38px, 11vw, 46px); }
  html.pins .scene .words p:nth-child(3) { margin-top: 10px; max-width: 34em; font-size: 16px; line-height: 1.5; }
  html.pins .scene .words .hint { margin-top: 16px; }
  html.pins .stagecap { right: 12px; top: 17px; }
  html.pins .skip { top: 8px; min-height: 44px; }
  html.pins .count { right: 12px; top: var(--cy); }
  .count > i { height: 96px; }
}
/* Touch screens: links and small controls get a full-size place to press */
@media (max-width: 980px), (pointer: coarse) {
  .foot nav { gap: 0; }
  .foot nav a { display: flex; align-items: center; min-height: 44px; }
  .foot p a, .facts-list a { display: inline-block; padding: 10px 0; }
  .panel .reset { padding: 14px 0; }
  .swatches button { height: 44px; }
}
@media (max-width: 700px) {
  body { font-size: 16.500px; }
  .hero { min-height: min(calc(100svh - 150px), 720px); padding: 40px 0 72px; }
  .hero > .cap, .top > .cap { right: 12px; top: 10px; }
  .top > .pic::after { background: linear-gradient(180deg, rgba(4, 4, 7, .5) 0, rgba(4, 4, 7, .68) 50%, var(--ground) 100%); }
  .hero > .pic::after { background: linear-gradient(180deg, rgba(4, 4, 7, .22) 0, rgba(4, 4, 7, .66) 46%, rgba(4, 4, 7, .82) 76%, var(--ground) 100%); }
  .hero .zoom > img { object-position: 72% 50%; }
  .hero .draw { overflow: visible; transform: translateX(-52%); }
  .hero .tag { font-size: 13.500px; letter-spacing: .2em; }
  .hero .tag.rule::before { width: 22px; }
  .hero .tag.rule { gap: 10px; }
  /* the two buttons sit side by side, so the second is clear of the floating buttons and the call bar on a short phone */
  .hero .row { margin-top: 26px; gap: 10px; flex-wrap: nowrap; }
  .hero .row .btn { flex: 1 1 0; min-width: 0; padding: 0 8px; font-size: 16px; letter-spacing: .1em; }
  .hero .row .btn .go { display: none; }
  .stage { grid-template-columns: 1fr; }
  .cells, .cells.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell:nth-child(odd) { border-left: 0; }
  .cell:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .cells.three .cell:last-child { grid-column: 1 / -1; }
  .cards, .tiers, .points, .revs, .counties, .steps { grid-template-columns: 1fr; }
  .steps { gap: 0; }
  .steps li, .steps li:first-child { padding: 22px 0; border-left: 0; border-top: 1px solid var(--line); }
  .steps li:first-child { padding-top: 0; border-top: 0; }
  .card { padding: 20px 20px 22px; }
  .tier { padding: 34px 24px 26px; }
  .tier.pick { order: 0; }   /* one column: Tune-Up, Priority, Whole Home, in price order */
  .bill label { min-width: 118px; padding-left: 16px; padding-right: 16px; }
  .chip { min-height: 40px; padding: 1px 16px 0; font-size: 15px; }
  .band .row .btn { flex: 1 1 100%; }
  .foot { grid-template-columns: 1fr 1fr; gap: 30px; }
  .facts-list li { flex-direction: column; gap: 6px; }
  .facts-list b { text-align: left; }
  .ringart { right: -40%; width: 120vw; margin-top: -60vw; opacity: .4; }
  .logo b { font-size: 20px; }
  .mark { width: 38px; height: 38px; }
}
@media (max-width: 350px) {
  .hero .row .btn { font-size: 14.500px; letter-spacing: .05em; padding: 0 4px; }
}
/* A phone held sideways. Make it yours lays its fields out in two columns so it fits; the
   call bar and the menu's rows are a little shorter; the sign-up panel is tighter. */
@media (max-width: 980px) and (max-height: 520px) {
  .yours { width: min(560px, calc(100vw - 20px)); }
  .yours .panel { grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 16px 18px; }
  .panel strong, .panel p { grid-column: 1 / -1; }
  .panel .field { grid-column: 1; grid-row: 3; }
  .panel .reset { grid-column: 2; grid-row: 3; align-self: end; }   /* beside the colors, so the whole panel fits without scrolling */
}
@media (max-width: 980px) and (max-height: 480px) {
  .callnow { min-height: 44px; }
  .yours { bottom: 52px; }
  .yours .panel { max-height: calc(100vh - 112px); max-height: calc(100dvh - 112px); }
  #nav { max-height: calc(100vh - var(--bar) - 78px); max-height: calc(100dvh - var(--bar) - 78px); }
  #nav a:not(.btn) { padding: 9px 0; font-size: 20px; }
}
@media (max-height: 520px) {
  .join { padding: 20px 24px 18px; }
  .join form { gap: 10px; }
  .join input { padding: 10px 14px; }
  .joincost { margin: 6px 0 12px; }
}
/* With scripts off these do nothing, so they are not shown: the rail's empty ring, the
   monthly and yearly switch and its note, the Join buttons, and the floating buttons. */
html:not(.js) .rail, html:not(.js) .bill, html:not(.js) .saves, html:not(.js) [data-join], html:not(.js) .yours { display: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .rise { opacity: 1; transform: none; }
  .js .rise:not(.in) .arc path { stroke-dashoffset: 0; }
}
