/* True Modular: every page. Tokens and page classes only.
   Engine selectors (.sc-stage, [data-sc-*]) are never restyled here.
   All scroll motion below is CSS reading --sc-p, which the engine publishes on each act. */

:root {
  --sc-canvas: #FFFFFF;  --sc-surface: #DCEEF0;
  --sc-ink: #12343B;     --sc-ink-soft: #56666B;
  --sc-accent: #2F7F8C;  --sc-accent-ink: #FFFFFF;
  --sc-font-display: "Poppins", system-ui, sans-serif;
  --sc-font-text: "Inter", system-ui, sans-serif;
  --sc-t-lg: clamp(1.1rem, 1.02rem + 0.42vw, 1.35rem);   /* Inter reads larger than the engine default assumes */

  /* True Modular palette. The four kit colours (iCloud Drive, "True Modular – Logo Files"): Deep Teal,
     Light Teal, Copper and White. Everything else is a tint or shade of those.
     Rules: the mid teal is never text, Copper stays scarce, no pure black */
  --deep: #12343B; --light-teal: #9ACBD3; --copper: #AE7E50;
  --teal900: #0B2328; --teal700: #1D5560; --teal500: #2F7F8C; --teal400: #6FB3BD;
  --teal100: #DCEEF0; --teal50: #EFF7F8; --silt: #D5DBDA;
  --copper700: #775331; --copper300: #CFA781; --copper100: #F0E5DB;

  /* illustration roles, mapped onto the palette */
  --navy: var(--deep); --seam: var(--teal900); --slate: var(--teal700); --step: var(--teal400);
  --glass: var(--light-teal); --foam: var(--copper100);
  --sky: var(--teal100); --snow: #fff; --ground: var(--teal50); --shadow: var(--teal100);
  --hill: var(--light-teal); --ridge: var(--silt); --pine: var(--teal700); --pine2: var(--teal500);

  --bar-h: 4rem;
  --scene-h: 62svh;      /* every scene is fitted to this height, never to the width */
  --focus: var(--teal500);
}

/* ---- flat fills. Symbols read these, so one drawing serves day and night ---- */
.f-navy { fill: var(--navy); }     .f-seam { fill: var(--seam); }
.f-slate { fill: var(--slate); }   .f-step { fill: var(--step); }
.f-teal { fill: var(--teal500); } .f-glass { fill: var(--glass); }
.f-white { fill: #fff; }           .f-foam { fill: var(--foam); }
.f-wall { fill: var(--snow); }      .f-wseam { fill: var(--silt); }
.f-snow { fill: var(--snow); }     .f-ground { fill: var(--ground); }
.f-shadow { fill: var(--shadow); } .f-hill { fill: var(--hill); }
.f-ridge { fill: var(--ridge); }   .f-pine { fill: var(--pine); }
.f-glow { fill: var(--copper100); } .f-copper { fill: var(--copper); }
.f-lamp { fill: var(--copper300); }
.p2 { --pine: var(--pine2); }
.night { --hill: var(--teal700); --pine: var(--teal900); --pine2: var(--teal900); --snow: var(--teal100); --shadow: var(--light-teal); }

/* the timber door swings on its hinge. --door is set by whatever links to it */
.door-leaf {
  transform-box: fill-box; transform-origin: 0 50%;
  transform: scaleX(var(--door, 1));
  transition: transform 160ms var(--sc-ease-out);
}

/* ---- base ---- */
h1, h2, h3, p { margin: 0; }
a { text-decoration-thickness: 2px; text-underline-offset: 0.24em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.d {
  font-family: var(--sc-font-display); font-weight: 700;
  text-transform: uppercase; line-height: 0.92; letter-spacing: -0.01em;
  text-wrap: balance; margin: 0;
}
.d--xl { font-size: min(clamp(3.2rem, 1.6rem + 7.2vw, 7.5rem), 11.5vw, 13svh); }   /* vw cap: "The North." (5.87em) stops short of the sun on phones. svh cap keeps the hero copy above the roofs on short laptops */
.d--lg { font-size: clamp(2rem, 1.3rem + 3.3vw, 3.75rem); }
.d--md { font-size: clamp(1.4rem, 1.1rem + 1.5vw, 2.25rem); }

.scene {
  position: absolute; bottom: 0; left: 50%;
  height: var(--scene-h); width: calc(var(--scene-h) * 16 / 7); max-width: none;
  translate: calc(-50% + var(--shift, 0px)) 0;
  overflow: visible; pointer-events: none;
}
.sun {
  position: absolute; top: 17svh; right: 13vw;
  width: clamp(3.75rem, 9vw, 8.5rem); aspect-ratio: 1; border-radius: 50%;
  background: var(--copper300);
}

/* ---- the door button: one label everywhere, with a knob and a sill ---- */
.door-btn {
  display: inline-flex; align-items: center; gap: 0.9em;
  padding: 0.85em 1.1em 0.85em 1.25em;
  background: var(--teal700); color: #fff;
  font: 700 1.05rem/1 var(--sc-font-display);
  text-transform: uppercase; letter-spacing: 0.03em; text-decoration: none; white-space: nowrap;
  border: 0; border-bottom: 4px solid var(--teal900); border-radius: 2px; cursor: pointer;
  transition: transform 140ms var(--sc-ease-out), background-color 140ms var(--sc-ease-out);
}
.door-btn::after { content: ""; width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--light-teal); }
.door-btn:active { transform: translateY(1px) scale(0.98); }
.door-btn--sm { font-size: 0.8rem; padding: 0.7em 0.9em 0.7em 1em; border-bottom-width: 3px; }
@media (hover: hover) and (pointer: fine) {
  .door-btn:hover { transform: translateY(-2px); background: var(--deep); }
  .bar .door-btn:hover { background: #fff; }
  .door .door-btn:hover { background: var(--copper300); }
}

/* ---- logo: the kit's horizontal colour lockup (symbol #logo), sized by its height.
   TRUE and the right panel are white, so it only ever sits on a dark ground: bar, footer, the plant's sign board ---- */
.logo { display: inline-flex; text-decoration: none; }
.logo svg { flex: none; height: var(--logo-h, 2.75rem); width: calc(var(--logo-h, 2.75rem) * 2.9916); }   /* 654.06 / 218.63 */

/* ---- site bar ---- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: var(--sc-z-chrome); height: var(--bar-h);
  display: flex; align-items: center; gap: var(--sc-5);
  padding-inline: var(--sc-gutter);
  background: var(--navy); color: #fff; --focus: var(--light-teal);
}
.bar__logo { flex: none; }
.bar .door-btn { background: var(--light-teal); color: var(--deep); border-bottom-color: var(--teal700); }
.bar .door-btn::after { background: var(--deep); }
.bar__nav { margin-left: auto; }
.nav, .nav ul { list-style: none; margin: 0; padding: 0; }
.nav { display: flex; gap: clamp(1rem, 2vw, 1.9rem); }
.nav > li { height: var(--bar-h); display: flex; align-items: center; }
.nav a {
  font: 600 0.88rem/1 var(--sc-font-display);
  text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none;
  padding-block: 0.6rem; white-space: nowrap;
}
.nav a:hover { text-decoration: underline; text-decoration-color: var(--copper); text-decoration-thickness: 3px; text-underline-offset: 0.4em; }
.has-sub { position: relative; }
.has-sub > ul {
  position: absolute; top: 100%; left: -1.1rem; min-width: 14rem;
  display: none; padding: 0.4rem 0; background: var(--navy); border-top: 3px solid var(--copper);
}
.has-sub:hover > ul, .has-sub:focus-within > ul { display: block; }
.has-sub > ul a { display: block; padding: 0.8rem 1.1rem; }
.bar__toggle { display: none; }

@media (max-width: 1100px) {
  .bar { gap: var(--sc-3); }
  .bar .door-btn { margin-left: auto; }
  .bar__toggle {
    order: 1; /* drawn after the quote button; it sits before the nav in the source for Tab order */
    display: grid; align-content: center; gap: 5px; width: 2.75rem; height: 2.75rem; padding: 0 0.55rem;
    background: none; border: 0; cursor: pointer;
  }
  .bar__toggle span { height: 3px; background: #fff; transition: transform 160ms var(--sc-ease-out), opacity 160ms var(--sc-ease-out); }
  .bar__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .bar__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .bar__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .bar__nav {
    position: fixed; inset: var(--bar-h) 0 0 0; margin: 0; display: none; overflow-y: auto;
    padding: var(--sc-4) var(--sc-gutter) var(--sc-8); background: var(--navy);
  }
  .bar__nav.is-open { display: block; }
  .nav { flex-direction: column; gap: 0; }
  .nav > li { height: auto; display: block; border-bottom: 1px solid var(--slate); }
  .nav a { display: block; padding-block: 1rem; font-size: 1.15rem; }
  .has-sub > ul, .has-sub:hover > ul { position: static; display: block; border: 0; padding: 0 0 0.6rem 1rem; }
  .has-sub > ul a { padding: 0.7rem 0; font-size: 0.95rem; font-weight: 500; }
}

/* ---- 1. hero: one scene cut into planes ---- */
.hero { position: relative; height: 100svh; min-height: 35rem; overflow: clip; background: var(--sky); }
.hero__art { position: absolute; inset: 0; }
.plane { will-change: transform; }
.hero__copy { position: relative; z-index: 2; padding-top: calc(var(--bar-h) + 3svh); }
.kicker {
  display: flex; align-items: center; gap: 0.7em; margin-bottom: var(--sc-3);
  font: 700 var(--sc-t-xs)/1.1 var(--sc-font-display);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.kicker::before { content: ""; flex: none; width: 2.2em; height: 0.34em; background: var(--copper); }
.hero h1 .d { display: block; max-width: 10.5ch; }   /* "The North." is 9.9ch: two lines, never three */
.hero__sub { margin-top: var(--sc-4); max-width: 34ch; font-size: 1.1rem; line-height: 1.4; }   /* four lines since Mat's longer line (2026-11-24): at --sc-t-lg, or with 5svh above, the Call link lands on the plant wall at 1024 wide. The column cannot widen: the hanging wall is 12px to its right */
.hero__actions { margin-top: var(--sc-5); display: flex; flex-wrap: wrap; align-items: center; gap: var(--sc-3) var(--sc-5); }
.tel { font: 700 1.05rem/1 var(--sc-font-display); letter-spacing: 0.03em; text-transform: uppercase; padding-block: 0.6rem; }

/* ---- 2. proof: six materials close up into one panel ---- */
.proof {
  --t1: clamp(0, calc((var(--sc-p, 1) - 0.12) / 0.36), 1);   /* the six close up   */
  --t2: clamp(0, calc((var(--sc-p, 1) - 0.46) / 0.16), 1);   /* six become one     */
}
.proof__stage { display: grid; align-items: center; padding-top: var(--bar-h); background: var(--sc-canvas); }
.proof__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: var(--sc-8); }
.proof__copy { display: grid; gap: var(--sc-5); }
.proof__swap { display: grid; }
.proof__swap > * { grid-area: 1 / 1; }
.proof__swap p { max-width: 34ch; font-size: var(--sc-t-lg); line-height: 1.44; }
.proof__swap a { display: inline-block; margin-top: var(--sc-4); font-weight: 600; padding-block: 0.5rem; }

.wall {
  position: relative; margin: 0;
  --gap: clamp(0.9rem, 2.6svh, 1.6rem); --w: min(24rem, 44vw);
  padding-block: calc(var(--gap) * 2.5);
}
.wall__six { list-style: none; margin: 0; padding: 0; width: var(--w); opacity: calc(1 - var(--t2)); }
.m { position: relative; height: var(--h); background: var(--c); }
.m span, .wall__one li {
  font: 600 var(--sc-t-sm)/1 var(--sc-font-display);
  text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap;
}
.m span { position: absolute; left: calc(100% + 1rem); top: 50%; translate: 0 -50%; opacity: clamp(0, calc(1 - var(--t1) * 1.6), 1); }
.wall__one { position: absolute; left: 0; top: 50%; translate: 0 -50%; width: var(--w); opacity: var(--t2); }
.wall__one i { display: block; height: 7px; background: var(--navy); }
.wall__one i.core { height: 94px; background: var(--foam); }
.wall__one ul {
  list-style: none; margin: 0; padding: 0;
  position: absolute; left: calc(100% + 1rem); top: -0.4rem; bottom: -0.4rem;
  display: flex; flex-direction: column; justify-content: space-between;
}

/* ---- 3. doors: a street you walk sideways ---- */
.doors__stage { background: var(--sky); }
.rail {
  position: relative; align-items: flex-start; width: max-content;
  --rail-top: calc(var(--bar-h) + 5svh); --art-h: 40svh;
  gap: clamp(2rem, 6vw, 6rem); padding: var(--rail-top) var(--sc-gutter) 0;
}
/* right: 0, because any overhang counts toward the rail's scrollWidth and the engine pans past the last stop */
.rail::before, .rail::after { content: ""; position: absolute; left: -60vw; right: 0; }
.rail::before { z-index: -1; top: calc(var(--rail-top) + var(--art-h)); height: 100svh; background: var(--snow); }
.rail::after {
  z-index: -2; top: calc(var(--rail-top) + var(--art-h) - 14svh); height: 14svh;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 160' preserveAspectRatio='none'%3E%3Cpath fill='%239ACBD3' d='M0 160V96L130 30 260 110 400 44 540 120 680 50 800 96V160Z'/%3E%3C/svg%3E") repeat-x 0 100% / 46rem 100%;
}
.rail__lead { flex: none; width: clamp(17rem, 36vw, 32rem); padding-top: 6svh; display: grid; gap: var(--sc-4); }
.rail__lead p { max-width: 24ch; font-size: var(--sc-t-lg); line-height: 1.4; }
.stop, .rail__note { flex: none; display: grid; grid-template-rows: var(--art-h) auto; width: clamp(17rem, 44vw, 36rem); }
.rail__note { width: clamp(17rem, 40vw, 33rem); }
.stop { color: inherit; text-decoration: none; }
.stop svg, .rail__note svg { width: 100%; height: 100%; overflow: visible; }
.stop__label { padding-top: clamp(1.75rem, 5.5svh, 3.25rem); display: grid; gap: var(--sc-2); align-content: start; }
.stop h3 { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.4rem); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.16em; }
.stop p { max-width: 32ch; }
div.stop h3 { text-decoration: none; }   /* a stop that is not a link (the Industrial rail) */
.stop .stop__sub {
  margin-top: var(--sc-1); color: var(--sc-ink-soft);
  font: 600 var(--sc-t-xs)/1.3 var(--sc-font-display); text-transform: uppercase; letter-spacing: 0.08em;
}
.stop:focus-visible { --door: 0.78; }
@media (hover: hover) and (pointer: fine) { .stop:hover { --door: 0.78; } }

/* ---- 4. delivery: the peak. One timeline, read off the act's progress ---- */
.delivery {
  --p: var(--sc-p, 1);
  --in:     clamp(0, calc((var(--p) - 0.04) / 0.18), 1);   /* the truck drives in with the home */
  --hook:   clamp(0, calc((var(--p) - 0.22) / 0.03), 1);   /* the crane hooks on      */
  --lift:   clamp(0, calc((var(--p) - 0.26) / 0.08), 1);   /* the home comes off the deck */
  --out:    clamp(0, calc((var(--p) - 0.34) / 0.10), 1);   /* the truck drives on     */
  --set:    clamp(0, calc((var(--p) - 0.44) / 0.10), 1);   /* the home goes down onto its foundation */
  --leave:  clamp(0, calc((var(--p) - 0.56) / 0.10), 1);   /* the crane goes          */
  --dusk:   clamp(0, calc((var(--p) - 0.57) / 0.20), 1);   /* the sun sets            */
  --night:  clamp(0, calc((var(--p) - 0.62) / 0.15), 1);   /* the ground goes to night */
  --aur:    clamp(0, calc((var(--p) - 0.74) / 0.10), 1);   /* northern lights         */
  --lights: clamp(0, calc((var(--p) - 0.78) / 0.05), 1);   /* the windows             */
  /* the home's height over its foundation, in scene units: -50 on the deck, -130 lifted clear of the cab, 0 set */
  --dy: calc(-50 - 80 * var(--lift) + 130 * var(--set));
}
.delivery__stage { background: var(--sky); }
.delivery__night { position: absolute; inset: 0; background: var(--navy); opacity: var(--night); }
.aurora { position: absolute; inset: 0 0 auto 0; width: 100%; height: 66%; }
.aurora .stars { opacity: var(--night); }
.aurora .bands { opacity: var(--aur); }
.delivery .sun { top: 30svh; left: 12vw; right: auto; opacity: clamp(0, calc((1 - var(--dusk)) * 5), 1); }
.delivery .night { opacity: var(--night); }
.lit { opacity: var(--lights, 0); }   /* 0 outside the delivery: the hero draws the same home in daylight */
.delivery .cable {
  transform-box: fill-box; transform-origin: 50% 0;
  opacity: calc(var(--hook) - clamp(0, calc((var(--p) - 0.54) / 0.02), 1));   /* on at 0.22, let go at 0.54 */
}

.delivery__copy {
  position: absolute; z-index: 3; inset: calc(var(--bar-h) + 6svh) var(--sc-gutter) auto;
  display: grid; justify-items: center; text-align: center;
}
.delivery__copy > * { grid-area: 1 / 1; }
.delivery__copy p:not(.d) { margin-top: var(--sc-3); font-size: var(--sc-t-lg); }
.delivery .d--lg { font-size: min(clamp(2rem, 1.3rem + 3.3vw, 3.75rem), 10svh); }   /* short laptops (1366x657): keeps the CSA line clear of the jib */
.delivery__copy .on-night { color: #fff; }

/* ---- 5. close: cut to the front wall. The door is the form ---- */
.close {
  position: relative; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto;
  background: var(--navy) repeating-linear-gradient(90deg, transparent 0 calc(5.5rem - 2px), var(--seam) calc(5.5rem - 2px) 5.5rem);
  --sc-ink: #fff; --sc-ink-soft: var(--light-teal); color: var(--sc-ink); --focus: var(--light-teal);
  scroll-margin-top: 0;
}
.close__eave { height: 1.75rem; background: var(--slate); }
.close__wall {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 29rem); align-items: end; gap: var(--sc-8);
  padding-top: calc(var(--bar-h) + var(--sc-6)); border-bottom: 1.1rem solid var(--slate);
}
.close__copy { align-self: center; display: grid; gap: var(--sc-4); padding-bottom: var(--sc-7); container-type: inline-size; }
/* .d--lg, with the column as a second cap so each sentence keeps its own line where the two-column copy is
   narrow (~900-1200px wide). "Priced Straight." is 9.07em wide in Poppins, so 10.4cqi fills at most 95% of the column.
   The 2rem floor still wins where the column is too narrow for two lines. */
.close__copy h2 { font-size: clamp(2rem, min(1.3rem + 3.3vw, 10.4cqi), 3.75rem); }
.close__copy > p { max-width: 30ch; font-size: var(--sc-t-lg); line-height: 1.44; }
.close__tel a {
  font: 700 clamp(1.7rem, 1.2rem + 2vw, 2.75rem)/1 var(--sc-font-display);
  color: var(--light-teal); text-decoration: none; font-variant-numeric: tabular-nums;
}
.close__tel a:hover { text-decoration: underline; text-decoration-thickness: 3px; }

.door {
  position: relative; margin-top: 3.4rem; display: grid; gap: var(--sc-4);
  padding: var(--sc-6) calc(var(--sc-6) + 1.4rem) var(--sc-6) var(--sc-6);
  background: var(--copper100); color: var(--navy); --focus: var(--teal500); border-radius: 2px 2px 0 0;
}
.door::before { content: ""; position: absolute; right: 0.95rem; top: 52%; width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--navy); }
.door::after { content: ""; position: absolute; left: -1.25rem; right: -1.25rem; top: 100%; height: 0.55rem; background: var(--step); }
.door__light { position: absolute; left: 50%; top: -2.4rem; translate: -50% 0; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--copper300); }
.field { display: grid; gap: 0.35rem; }
.field label { font: 700 0.82rem/1 var(--sc-font-display); text-transform: uppercase; letter-spacing: 0.08em; }
.field :is(input, select, textarea) {
  width: 100%; padding: 0.7rem 0.8rem; font-size: 1rem;   /* 16px, so iOS does not zoom the page on focus */
  background: #fff; color: var(--navy); border: 2px solid var(--navy); border-radius: 2px;
}
.field ::placeholder { color: #56666B; opacity: 1; }
.field textarea { min-height: 6.25rem; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sc-3); }
/* the one Copper call to action on the page */
.door .door-btn { justify-self: start; background: var(--copper); color: var(--teal900); border-bottom-color: var(--copper700); }
.door .door-btn::after { background: var(--teal900); }
.door__note { font-size: var(--sc-t-sm); }

.foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sc-3) var(--sc-7);
  padding: var(--sc-6) var(--sc-gutter); background: var(--teal900);
  --sc-ink: #fff; --sc-ink-soft: var(--light-teal); color: var(--sc-ink); --focus: var(--light-teal); font-size: var(--sc-t-sm);
}
.foot .logo { --logo-h: 2.4rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sc-2) var(--sc-5); }
.foot a { display: inline-block; padding-block: 0.5rem; }
.foot__legal { margin-left: auto; }

/* ==== site map v2: product, category and info pages (generated by build.py) ==== */

/* A building's parts come together as its product page scrolls. --b is the build act's progress.
   Anywhere else --b is unset, so the same drawing shows finished. Travel is in the motion block below */
.build { --b: var(--sc-p, 1); }
.part { --t: clamp(0, calc((var(--b, 1) - var(--at, 0)) / var(--dur, 0.1)), 1); opacity: clamp(0, calc(var(--t) * 2.5), 1); }
.part--solid { opacity: 1; }   /* on screen from the start: it moves, it never fades */
.part--slow { --dur: 0.3; }

.build__stage { background: var(--sky); }

/* Craft pages (scroll-craft pass, switched on per model in build.py). The build is over at 0.75 of the act (--b reaches
   1.04 there); then the day ends and the windows light. Lit windows are parts timed past 1, so they need --b to keep going */
.build--craft {
  --b: calc(var(--sc-p, 1) / 0.72);
  --dusk:  clamp(0, calc((var(--sc-p, 1) - 0.74) / 0.12), 1);   /* the sun sets */
  --night: clamp(0, calc((var(--sc-p, 1) - 0.76) / 0.10), 1);   /* sky and ground go to night */
  --fall:  clamp(0, calc((var(--sc-p, 1) - 0.78) / 0.22), 1);   /* snow, where a page has it (the Bighorn) */
}
.build--day { --dusk: 0; --night: 0; }   /* work buildings: the sun stays up and the doors open (homes get the evening) */
/* A door that opens once the build is done. --b stops at 1 everywhere but a craft act, so cards and rails keep it shut.
   The swing is in the motion block; under reduced motion the leaf fades to the lit doorway instead */
.swing { --s: clamp(0, calc((var(--b, 1) - var(--open)) / 0.07), 1); }
.build__night { position: absolute; inset: 0; background: var(--navy); opacity: var(--night); }
.build .night { opacity: var(--night, 0); }
.build--craft .sun { opacity: clamp(0, calc((1 - var(--dusk)) * 5), 1); }
.build__copy .on-night, .build__copy .on-night .d { color: #fff; }
.flakes { opacity: var(--night, 0); } .flakes--far { --drop: 300; } .flakes--near { --drop: 520; }
.pl--far { --rate: 36; } .pl--mid { --rate: 18; } .pl--near { --rate: 8; } .pl--front { --rate: -120; }

/* How It's Built on a craft page: the outside of the wall, wiped open to its cut-through as the section crosses the screen */
.cutaway { position: relative; margin: var(--sc-6) 0 0; height: clamp(11rem, 32svh, 19rem); overflow: hidden; }
.cutaway > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cutaway__in { position: absolute; inset: 0; display: grid; grid-template-rows: 9% 1fr 9%; background: var(--snow); }
.cutaway__in i { background: var(--navy); }
.cutaway__in i.core { background: var(--foam); }
.cutaway__in ul {
  position: absolute; inset: 0; list-style: none; margin: 0; padding: 0 var(--sc-5); display: grid; grid-template-rows: 9% 1fr 9%; align-items: center;
  font: 600 var(--sc-t-sm)/1 var(--sc-font-display); text-transform: uppercase; letter-spacing: 0.06em; color: #fff;
}
.cutaway__in li:nth-child(2) { color: var(--navy); font-size: clamp(1rem, 0.8rem + 1vw, 1.5rem); }
/* fitted by width or by height, whichever is tighter, and stood on the bottom edge: a wide building still fits a phone */
.bscene { position: absolute; left: 0; bottom: 0; width: 100%; height: var(--scene-h); overflow: visible; pointer-events: none; }
.build .sun { top: 22svh; }
.build.build--long .sun { top: auto; bottom: calc(var(--scene-h) - 20svh); }   /* a two-line headline reaches the sun's usual spot, so it sits lower, beside the building */
.build__copy {
  position: absolute; z-index: 3; inset: calc(var(--bar-h) + 5svh) var(--sc-gutter) auto;
  display: grid; justify-items: center; text-align: center;
}
.build__copy > * { grid-area: 1 / 1; }
.build__lead { display: grid; justify-items: center; gap: var(--sc-3); }
.build__lead .kicker { justify-content: center; margin-bottom: var(--sc-2); }
.build__lead .kicker a { text-decoration: none; }
.build__lead h1 .d { display: block; }
.build .d--lg { font-size: min(clamp(2rem, 1.3rem + 3.3vw, 3.75rem), 10svh); }
.build__copy p:not(.d) { max-width: 38ch; font-size: var(--sc-t-lg); line-height: 1.4; }
.build__cap p:not(.d) { margin: var(--sc-3) auto 0; }

/* plates: one job each, cut hard into one another */
.plate { padding-block: clamp(3.5rem, 9svh, 6.5rem); background: var(--sc-canvas); }
.plate--tint { background: var(--teal100); }
.plate--top { padding-top: calc(var(--bar-h) + clamp(2.5rem, 8svh, 5.5rem)); background: var(--sky); }   /* first on a page, under the bar */
.plate__split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--sc-6) var(--sc-8); align-items: start; }
.plate__head { display: grid; gap: var(--sc-4); max-width: 46rem; }
.plate__head > p, .lead { font-size: var(--sc-t-lg); line-height: 1.44; max-width: 44ch; }
.prose { display: grid; gap: var(--sc-4); align-content: start; }
.prose > p, .prose > ul { max-width: 58ch; line-height: 1.55; }
.prose a, .note a, .spec a, .card__more { font-weight: 600; }
.note { margin-top: var(--sc-4); max-width: 52ch; color: var(--sc-ink-soft); }
.plate .d--md + * { margin-top: var(--sc-4); }

.spec { display: grid; grid-template-columns: auto 1fr; margin: 0; border-top: 3px solid var(--deep); }
.spec dt, .spec dd { margin: 0; padding: 0.8rem 0; border-bottom: 1px solid var(--silt); }
.spec dt { padding-right: var(--sc-6); color: var(--sc-ink-soft); font: 600 var(--sc-t-sm)/1.5 var(--sc-font-display); text-transform: uppercase; letter-spacing: 0.06em; }
.spec dd { font-weight: 600; font-variant-numeric: tabular-nums; }

.pts { list-style: none; margin: var(--sc-6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: var(--sc-6) var(--sc-7); }
.pts:has(> :nth-child(4):last-child) { grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr)); }   /* four points sit two by two, never three and one */
.pts li { padding-top: var(--sc-3); border-top: 4px solid var(--deep); }
.pts h3 { font: 700 1.1rem/1.2 var(--sc-font-display); text-transform: uppercase; letter-spacing: 0.02em; }
.pts p { margin-top: var(--sc-2); line-height: 1.5; max-width: 42ch; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.ticks li { position: relative; padding-left: 1.4rem; line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 0.6rem; height: 0.6rem; background: var(--teal500); }

/* category cards: the finished building, standing on a strip of snow */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sc-6); margin-top: var(--sc-7); }
.card { display: grid; align-content: start; gap: var(--sc-2); color: inherit; text-decoration: none; }
.card svg { width: 100%; height: auto; overflow: visible; border-bottom: 0.7rem solid var(--snow); margin-bottom: var(--sc-3); }
.plate:not(.plate--top):not(.plate--tint) .card svg { border-bottom-color: var(--teal100); }
.card h2, .card h3 { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.4rem); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.16em; }
.card__meta { color: var(--sc-ink-soft); font: 600 var(--sc-t-xs)/1.3 var(--sc-font-display); text-transform: uppercase; letter-spacing: 0.08em; }
.card:focus-visible { --door: 0.78; }
@media (hover: hover) and (pointer: fine) { .card:hover { --door: 0.78; } }

.compare { width: 100%; border-collapse: collapse; margin-top: var(--sc-6); border-top: 3px solid var(--deep); }
.compare th, .compare td { text-align: left; padding: 0.85rem var(--sc-4) 0.85rem 0; border-bottom: 1px solid var(--silt); font-variant-numeric: tabular-nums; }
.compare thead th { font: 600 var(--sc-t-sm)/1.3 var(--sc-font-display); text-transform: uppercase; letter-spacing: 0.06em; color: var(--sc-ink-soft); }
.compare tbody th { font-weight: 600; }

/* ---- motion. Travel only. Every opacity above also runs under reduced motion ---- */
@media (prefers-reduced-motion: no-preference) {
  .hero .plane, .hero .sun { transform: translate3d(0, calc((var(--sc-p, 0.5) - 0.5) * 2 * var(--lag) * 100svh), 0); }
  .m { transform: translateY(calc(var(--k) * var(--gap) * (1 - var(--t1)))); }
  .settle {
    --s: clamp(0, calc((var(--sc-p, 1) - var(--at)) / 0.16), 1);
    opacity: calc(0.55 + 0.45 * var(--s)); transform: translate3d(0, calc((1 - var(--s)) * 18px), 0);
  }
  .delivery .sun { transform: translate3d(0, calc(var(--dusk) * 68svh), 0); }
  .aurora .bands path { stroke-dasharray: 1px; stroke-dashoffset: calc((1 - var(--aur)) * 1px); }   /* the lights draw across the sky, left to right */
  /* px are scene units here. Truck and home roll in together from the left; only the truck drives on */
  .haul { transform: translateX(calc((1 - var(--in)) * -1400px + var(--out) * 1500px)); }
  .home { transform: translate(calc((1 - var(--in)) * -1400px), calc(var(--dy) * 1px)); }
  .delivery .cable { transform: scaleY(calc(1 + var(--dy) / 160)); }   /* jib (y 104) to the ridge, 160 long once set */
  .crane { transform: translateX(calc(var(--leave) * 1500px)); }
  .part { transform: translate(calc((1 - var(--t)) * var(--dx, 0) * 1px), calc((1 - var(--t)) * var(--dy, -200) * 1px)); }   /* px are scene units */
  .build--craft .pl { transform: translateX(calc((var(--sc-p, 0.5) - 0.5) * var(--rate) * 1px)); }   /* planes pivot around the building */
  .build--craft .sun { transform: translate3d(0, calc(var(--dusk) * 40svh), 0); }
  .build--craft .flakes { transform: translateY(calc(var(--fall) * var(--drop) * 1px)); }   /* the snow falls with the scroll; the home holds still */
  .swing { transform-box: fill-box; transform-origin: var(--hinge, left) center; transform: scaleX(calc(1 - var(--s) * 0.78)); }
}
@media (prefers-reduced-motion: reduce) {
  .m { transform: translateY(calc(var(--k) * var(--gap))); }   /* stays exploded, then fades to the one panel */
  .m span { opacity: 1; }   /* the bars never close here, so the labels stay until the six fade */
  .haul { opacity: calc(var(--in) * (1 - var(--out))); }   /* parked in front: it fades in with the home, then out */
  .home { opacity: var(--in); }                             /* already on its foundation */
  .crane { opacity: calc(1 - var(--leave)); }
  .delivery .sun { opacity: calc(1 - var(--dusk)); }
  .swing { opacity: calc(1 - var(--s)); }
  /* the engine turns a rail into a sideways scroller here but keeps its pinned height: two screens where nothing moves */
  .doors { height: 100svh !important; }
  .cable { display: none; }
  .door-leaf, .door-btn, .bar__toggle span { transition: none; }
}

/* ---- phones: the same scenes at a smaller scale, copy above ---- */
@media (max-width: 860px) {
  :root { --bar-h: 3.5rem; --scene-h: 50svh; }
  .bar__logo { --logo-h: 2.3rem; }
  /* the crane's top sits 12% down the scene; this lands it at 30rem, just under the copy (ends 459-465px, 360-412 wide) */
  .hero { --scene-h: clamp(28svh, calc((100svh - 30rem) / 0.88), 50svh); }
  .hero__copy { padding-top: calc(var(--bar-h) + 4svh); }
  .hero__sub { font-size: 1rem; }   /* the longer hero line (Mat 2026-11-24) at body size takes no more room than the old one did: the crane clearance above depends on it */
  .sun { top: 17svh; right: 8vw; }
  .proof__grid { grid-template-columns: 1fr; gap: var(--sc-5); }
  .wall { --w: 48vw; }
  .m span, .wall__one li { font-size: var(--sc-t-xs); }   /* Poppins labels are wider: keeps "5 in polyiso core" inside the gutter at 360 */
  .rail { --art-h: 34svh; --rail-top: calc(var(--bar-h) + 2svh); }
  .rail__lead { padding-top: 3svh; }
  .delivery .sun { top: auto; bottom: var(--scene-h); left: 9vw; }   /* on the scene's top edge: clears the headline + CSA line at any phone height, still sets behind the ground */
  .delivery__copy { inset-block-start: calc(var(--bar-h) + 4svh); }
  .close__wall { grid-template-columns: 1fr; gap: var(--sc-5); padding-top: calc(var(--bar-h) + var(--sc-5)); }
  .close__copy { padding-bottom: 0; }
  .foot__legal { margin-left: 0; }
  .plate__split, .cards { grid-template-columns: 1fr; }
  .build .sun { top: auto; bottom: calc(var(--scene-h) - 4svh); }
  .build__copy { inset-block-start: calc(var(--bar-h) + 3svh); }
}
/* under 390 the bar is 32px short and the menu button was the thing that shrank (its lines hit zero width at 360) */
@media (max-width: 389px) {
  .bar__logo { --logo-h: 2.1rem; }
  .bar .door-btn::after { display: none; }
}
@media (max-width: 420px) {
  .row2 { grid-template-columns: 1fr; }
  .compare th, .compare td { padding-right: var(--sc-2); }
  .compare thead th { letter-spacing: 0; }   /* four columns have to fit a 360px phone */
  .door { padding-left: var(--sc-5); }
}
