/* Modular Maison — configurator prototype.
   Repainted 2026-09-06 to match home.css: Andrew's own brand values (clay,
   charcoal, off-white, sand) in the warm paper / technical-drawing register,
   replacing the earlier dark editorial pass. The 3D viewport's own sky
   texture (js/viewer.js, skyTexture()) is already a light neutral grey
   gradient tuned for colour accuracy - it was never dark, so this repaint of
   the surrounding chrome has nothing to fight visually.

   Every size in this file was later found to be a uniform 0.8x of a round
   number (11.2px = 14x0.8, 27.2px = 34x0.8, 18.4px = 23x0.8, ...) - reversed
   throughout so the whole page reads bigger without changing any proportion
   relative to anything else. Layout container widths (max-width, the panel
   column) got a further deliberate bump on top of that, since the page
   itself is more spacious now (see the layout section below). */

:root{
  --ink:#2b2b2a;
  /* Was a three-step scale, then a two-step scale, then one secondary tier
     at 80% - and that last step still read as grey type throughout the
     configurator, same complaint as the rest of the site. Nothing in this
     panel is actually inactive, so nothing in it is dimmer than body copy. */
  --ink-2:var(--ink);
  /* Foreground for anything filled with --ink, so the primary CTA here is
     the same object as the sitewide .btn rather than a lookalike. */
  --on-ink:#f7f5f2;
  --bg:#f7f5f2;
  --bg-2:#efeae1;
  --line:rgba(43,43,42,.14);
  /* The site nav's side margin (home.css --pad), so the logo sits exactly
     where it does on every other page: 16px on a phone, 61px wide. */
  --edge:clamp(16px,3.68vw,60.8px);
  --clay:#C47A5A;
  /* Brand clay measures 2.58:1 as text on these surfaces. Fills, borders and
     the wordmark keep the board value; small type uses this darkened variant -
     same split, same hex, as home.css. No olive/sage here either (retired
     2026-09-29 as AJP Constructions' colour - see home.css at --clay-t). */
  --clay-t:#935134;             /* 4.67:1 */
  --sand:#E8E1D9;
  --mono:"Montserrat","Inter",system-ui,-apple-system,sans-serif;
  --display:"Montserrat","Inter",system-ui,-apple-system,sans-serif;
  --sans:"Montserrat","Inter",system-ui,-apple-system,sans-serif;
}

*{box-sizing:border-box}
a{color:inherit;text-decoration:none}
/* A normal scrolling page, not a locked-height app shell - the reference
   this flow is modelled on (mantanorth.com's configurator) is a page with a
   photo and a sidebar, not a full-viewport split tool, and reads very
   differently for it: one flat background throughout rather than a
   viewport-vs-panel seam, and the image sized to its own content rather than
   stretched to fill whatever vertical space is left. */
/* min-height:100vh + flex column, not the plain block flow this used to be:
   on any viewport taller than the header+content (most desktop windows,
   especially with only 4-5 rows of options showing), the page was landing
   flush at the top with the leftover height stranded as dead space below
   the last row. flex:1 + align-content:center on main (below) centred its
   single content row in whatever's left after the header. No longer: the
   content row is a different height on every step (the panel's length, and
   on desktop the photo now matches it), so centring moved the photo up or
   down with each step change (Radin, 2026-10-02: "stop the photo jumping").
   main is pinned to the top instead; with the photo as tall as the panel,
   what's left below is ~100px on a 1920x1080 window, not the dead band
   centring was brought in for. A viewport too short for the content still
   just grows and scrolls. */
body{
  margin:0;background:var(--bg);color:var(--ink);
  font-family:var(--sans);font-weight:400;
  opacity:0;transition:opacity .5s ease;
  min-height:100vh;display:flex;flex-direction:column;
}
body.ready{opacity:1}

/* Identical to home.css. Montserrat sets light at label sizes, so the
   weight is part of the definition, not an optional extra. */
.mono{font-family:var(--mono);font-size:11px;font-weight:500;letter-spacing:.18em;text-transform:uppercase}
/* Units stay as written inside capitalised labels: m², not M² (mega-). */
.unit{text-transform:none}

/* ---------------------------------------------------------------- header */
/* Logo and steps share one plain row - no border, background or blur -
   matching the reference's own header, which is just text on the same flat
   page background as everything below it, not a separate glass toolbar
   sitting above a different-coloured workspace.
   Full width with the site nav's side margin (Radin, 2026-10-02: "why is
   the logo there in some areas, it should always be on far left"). It was
   capped at the content width and centred, so on a wide window the logo
   drifted inwards - 72px in at 1920, 400px at 2560 - while every other
   page keeps it 61px from the edge. Its vertical centre already matched. */
.cfg-head{
  display:flex;align-items:center;flex-wrap:wrap;gap:10px clamp(24px,3vw,48px);
  width:100%;margin:0;padding:13px var(--edge) 0;
}
.brand{display:flex;align-items:center;gap:10px}
/* The real sitewide lockup (wordmark3-clay.png, the file every other page's
   nav uses), at the same size every other page shows it: home.css .wm-logo,
   56px tall, 72px from 901px up, its top 13px from the top of the window.
   It was 40px here and read as a different, fainter logo at that size - the
   script's hairline strokes thin out (Radin, 2026-10-09: "why does logo
   here seem different than from home page"). */
.wordmark img{height:68px;width:auto;display:block}
/* Desktop: 73px (up ~22% on 2026-10-11 - "hard to see the logo at the top
   left", see the note on .wm-logo in home.css), keeping the 6px above and
   below. The logo's top still lands 19px down, the same spot as on every
   other page, where it now centres in a 111px nav instead of a 97.6px one.
   site_check fails if this and home.css disagree. */
@media (min-width:901px){
  .wordmark img{height:73px;margin:6px 0}
}

/* "← Home" - see the note on it in configurator.html. Same face, weight,
   size and colour as the step tabs, so the header stays one row of type;
   split from the steps by a hairline, so it reads as "leave", not as a
   fifth step. The arrow nudges left on hover - the mirror of the sitewide
   a:hover .arr in home.css, which this page doesn't load. */
.cfg-home{
  position:relative;display:inline-flex;align-items:center;gap:6px;
  padding:5px 0 4px;
  font-family:var(--sans);font-weight:500;font-size:14px;color:var(--ink-2);
  white-space:nowrap;transition:color .2s;
}
.cfg-home:hover{color:var(--clay-t)}
.cfg-home:focus-visible{outline:2px solid var(--clay);outline-offset:4px}
.cfg-home .arr{display:inline-block;transition:transform .3s}
.cfg-home:hover .arr{transform:translateX(-4px)}
/* The same invisible 44px tap target as .cfg-step::after below (the link
   itself is 28px tall), but the band sits 3px higher: on a phone Home is
   directly above "Summary", whose own padded target reaches up into the
   row gap, and the two met - the tab, later in the page, won the overlap and
   trimmed Home to 43.5px. Still 44px tall; the sides are unchanged. */
.cfg-home::after{
  content:"";position:absolute;z-index:1;
  top:min(0px,calc(50% - 25px));bottom:min(0px,calc(50% - 19px));
  left:min(0px,calc(50% - 22px));right:min(0px,calc(50% - 22px));
}
/* Home, the hairline, then the steps, as one group. The hairline is drawn by
   .cfg-mid itself and placed between the two with order, so the space
   either side of it is the same gap as between the steps. */
.cfg-mid{display:flex;align-items:center;gap:clamp(20px,3vw,40px)}
.cfg-mid::after{content:"";order:1;flex:0 0 auto;width:1px;height:22px;background:var(--line)}
.cfg-steps{order:2}
/* Wider: that group sits in the middle of the page and the logo stays on the
   far left (Radin, 2026-10-07: "why is the top home floor plan etc so close
   to left and not aligned with middle of page", then "move the home button
   next to the floor plans with that line to separate"). Equal 1fr columns
   either side put the group on the page's centre line. Where the window is
   too narrow for that, the logo's column keeps its own width and the group
   shifts right of centre rather than overlap it. */
@media (min-width:721px){
  .cfg-head{display:grid;grid-template-columns:1fr auto 1fr;align-items:center}
  .brand{justify-self:start}
  .cfg-mid{justify-self:center}
  .cfg-steps{flex-wrap:nowrap}
}
/* Narrow: the header can't hold logo + Home + four steps on one line
   (~610px with Montserrat; 720 leaves room for a wider fallback font), so it
   stacks - logo and Home share the top row, Home at the far end where a
   thumb expects it, the steps get the row below to themselves. .cfg-mid
   steps aside (display:contents) so Home and the steps can go on different
   rows, and the hairline has nothing beside it here, so it goes. */
@media (max-width:720px){
  .cfg-head{display:grid;grid-template-columns:1fr auto;grid-template-areas:"brand home" "steps steps"}
  .brand{grid-area:brand}
  .cfg-mid{display:contents}
  .cfg-mid::after{display:none}
  .cfg-home{grid-area:home}
  .cfg-steps{grid-area:steps}
}

/* Step order/labels/panel wiring live in js/app.js's STEPS + setStep();
   freely clickable in any order, like pages.css's .plan-tabs elsewhere on
   the site, plus Back/Next below the panel for the guided path. */
.cfg-steps{display:flex;gap:clamp(20px,3vw,40px);flex-wrap:wrap}
.cfg-step{
  background:none;border:none;cursor:pointer;padding:5px 0 4px;
  border-bottom:1px solid transparent;
  font-family:var(--sans);font-weight:500;font-size:14px;color:var(--ink-2);transition:color .2s,border-color .2s;
}
.cfg-step:hover{color:var(--ink)}
.cfg-step.is-on{color:var(--clay-t);border-bottom-color:var(--clay-t)}
.cfg-step:focus-visible{outline:2px solid var(--clay);outline-offset:4px}
/* Radin, 2026-11-04: all five steps on ONE line at phone widths - Summary
   had been dropping to a second row ("summary is lower atm"). The header
   pads 16px each side, so the row bleeds out to the true screen edges,
   then the five labels share it equally. */
@media (max-width:720px){
  .cfg-steps{width:calc(100% + 32px);margin:0 -16px;gap:0;flex-wrap:nowrap;justify-content:space-between}
  .cfg-steps .cfg-step{flex:1 1 0;min-width:0;text-align:center;padding:6px 1px 5px;font-size:12.8px;letter-spacing:-.015em;white-space:nowrap}
}
@media (max-width:380px){
  .cfg-steps .cfg-step{font-size:11.6px}
}
/* 28px-tall step tabs, padded out to a 44px thumb target with an empty
   pseudo-element rather than drawn bigger - taps on it land on the tab.
   Only grows the sides under 44px; the 20px+ gap keeps neighbours apart.
   Same pattern as the site pages (home.css, "invisible tap targets").
   z-index:1 because the padding below each tab overlaps the top of <main>,
   which is later in the page and otherwise takes the tap. */
.cfg-step{position:relative}
.cfg-step::after{content:"";position:absolute;inset:min(0px,calc(50% - 22px));z-index:1}

/* ---------------------------------------------------------------- layout */
/* Contained content column, not a full-bleed split-screen - the reference
   sits its image and sidebar inside an ordinary page margin, with plain page
   background showing on both sides at wide widths, rather than stretching
   the photo to fill the browser edge to edge. */
main{
  max-width:1700px;margin:0 auto;padding:36px 40px;
  display:grid;grid-template-columns:minmax(0,1fr) 500px;gap:clamp(40px,6vw,80px);
  align-items:start;
  flex:1;width:100%;align-content:start;
}
/* A contained photo, not a viewport - sized to its own aspect ratio rather
   than stretched to fill whatever vertical space happens to be left, same as
   the reference's own image block. */
.viewport{position:relative;background:#cdc8bd;aspect-ratio:16/9;width:100%;overflow:hidden}
/* Real photo, not a live render - see the top-of-file note on the
   mantanorth.com reference. Interior/Exterior show whichever real photo
   matches the most recently changed selection (js/app.js's applyPhoto());
   Floorplan/Summary show the flat plan drawing below instead. Every render
   in assets/renders/ is shot 16:9 (matches .viewport above), and contain - on phones and tablets; desktop covers, see below -
   (not cover) so the full frame is always visible, never edge-cropped. */
/* transition: opacity only, and only .16s - js/app.js's applyPhoto() fades
   out, swaps src, then fades back in over the same duration, so a mismatched-
   angle photo swap reads as a deliberate cut instead of the house jumping. */
#finish-photo{display:block;width:100%;height:100%;object-fit:contain;opacity:1;transition:opacity .16s ease}
/* The <picture> wrapper is layout-neutral: the img inside is the sized box
   (configurator.html, Andrew's update 3 Nov 2026). */
.vp-photo{display:block;width:100%;height:100%}
/* A finish close-up (js/app.js applyPhoto(): no render of that pick) fills
   the frame everywhere - it's a texture, so there is no edge to protect. */
#finish-photo.is-swatch{object-fit:cover}
/* What the photo shows: control, pick, and "Illustrative" (plus what
   differs) whenever it isn't an exact visual of the pick - Andrew's brief
   26 Oct. Paper chip in the corner, the plan note's look (.plan-note). */
.vp-cap{
  position:absolute;left:12px;bottom:12px;z-index:1;max-width:calc(100% - 24px);margin:0;
  display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;padding:6px 10px;
  background:rgba(247,245,242,.94);border:1px solid rgba(20,20,20,.12);border-radius:2px;
  font-family:var(--sans);font-size:12px;font-weight:500;line-height:1.35;color:var(--ink);
  transition:opacity .16s ease;
}
.vp-cap:has(.vp-v:empty),.viewport.show-plan .vp-cap{display:none}
.vp-k{font-family:var(--mono);font-size:10px;letter-spacing:.14em;text-transform:uppercase}
.vp-v{font-weight:600;color:#000}
.vp-ill{font-family:var(--mono);font-size:10px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--clay-t)}
.vp-note{flex-basis:100%;font-size:11px;color:var(--ink)}
.vp-ill[hidden],.vp-note[hidden]{display:none}
/* The only note the viewport shows now: the exact render for a combination
   is missing, so the picture is the nearest one (js/app.js extCombo()) and
   this line says what it actually shows. Andrew's rule - an image that isn't
   the visitor's own picks must be called illustrative. Paper chip, no
   uppercase tag: the always-on one was removed (Radin, 2026-10-28). */
.vp-gap{
  position:absolute;left:12px;bottom:12px;z-index:1;margin:0;max-width:calc(100% - 24px);
  padding:5px 9px;background:rgba(247,245,242,.92);border:1px solid rgba(20,20,20,.1);border-radius:2px;
  font-family:var(--sans);font-size:11.5px;line-height:1.35;color:var(--ink);
}
.vp-gap[hidden]{display:none}
/* Phones: the photo is ~200px tall and pinned over the list, so the chip
   runs on as one compact line where it can - the note inline, not below. */
@media (max-width:600px){
  .vp-cap{left:6px;bottom:6px;max-width:calc(100% - 12px);padding:3px 7px;gap:0 6px;font-size:10.5px;line-height:1.3}
  .vp-k,.vp-ill{font-size:9px;letter-spacing:.1em}
  .vp-note{flex-basis:auto;font-size:10px}
  .vp-gap{left:6px;bottom:6px;max-width:calc(100% - 12px);padding:3px 7px;font-size:10px;line-height:1.3}
}
/* The flat plan drawing (Floorplan/Summary steps) shares the viewport with
   the finish photo (Exterior/Interior) - only one is ever visible, toggled by
   js/app.js's setStep() via this class, never both hidden or both shown. The
   drawing assumes a light backdrop (it's drawn for a white page elsewhere on
   the site), unlike a photo, so the viewport's background swaps with it
   rather than showing grey behind the white card. */
#plan-svg{display:none;position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:30px;box-sizing:border-box}
.viewport.show-plan{background:#fbfaf7}
.viewport.show-plan #finish-photo{display:none}
.viewport.show-plan #plan-svg{display:block}
/* Caption for the dashed line on four of the plans - a sibling plan's deck
   (tools/build_plan_svg.py's DECK_GHOST), text and aspect set per plan by
   js/app.js's GHOST_NOTE. Uncaptioned it read as a stray line (Radin,
   2026-10-14: "what's that there?"). .plan-frame is the drawing's own box:
   #plan-svg is contain-fitted inside 30px of padding, so this is that same
   box, from the viewBox's aspect (--ar) and the viewport's size (it's the
   size container) - which lets the note sit in viewBox percentages exactly
   as it does on the plan pages: right-aligned to the deck's east edge, on
   the legend's line under the house. Same look as css/pages.css .plan-note. */
.viewport{container-type:size}
.plan-frame{display:none;position:absolute;left:50%;top:50%;translate:-50% -50%;width:min(100cqw - 60px,(100cqh - 60px) * var(--ar,1.8));aspect-ratio:var(--ar,1.8);pointer-events:none}
.viewport.show-plan .plan-frame:not([hidden]){display:block}
.plan-frame .plan-note{position:absolute;left:93.05%;bottom:1.5%;transform:translateX(-100%);white-space:nowrap;padding:3px 8px;background:rgba(247,245,242,.94);border:1px solid rgba(20,20,20,.18);border-radius:2px;font-family:var(--sans);font-size:12px;font-weight:500;line-height:1.3;letter-spacing:.02em;color:var(--ink)}
.plan-frame .dash{display:inline-block;width:19px;height:2px;margin:0 7px 0 0;vertical-align:middle;background:repeating-linear-gradient(90deg,#5c4a3d 0 5px,transparent 5px 9px)}
/* Phones: a 60 drawing is ~200px wide in the 16:9 viewport, too small to
   hold the note beside the legend, so it drops into the 30px strip under it. */
@media (max-width:600px){.plan-frame .plan-note{bottom:auto;top:calc(100% + 4px);padding:2px 6px}.plan-frame .dash{width:14px;margin-right:5px}}

/* Desktop: the photo is as tall as the options beside it (Radin,
   2026-10-02: "make that image size match the stuff on the right of it, it
   shouldn't be so small" - at 1920 it was 1040x585 next to a 700px panel).
   Two moves. The photo column gets more of the width: a wider page (1840,
   header to match) and a slimmer panel and gap. Then the photo stretches
   to the row's height and covers it - but only between two limits measured
   off its own column width (main is the container, so 100cqw - panel - gap
   IS that width): never taller than width/1.493, which crops at most 16%
   off the sides, from each photo's own crop point - products.json's
   photoFocus, set by js/app.js (measured 2026-10-02: the Weathertex Natural
   shot's house spans 8.5-94.5% of the frame, so it crops from 60% across;
   Andrew's finish renders, V-brace from 10% to the right wall at 89.5%, and
   the interiors are centred). At 16% no wall, V-brace or deck is cut; at
   most a roof overhang end meets the frame edge, as it already does in
   Andrew's own framing. And never shorter than
   width/1.95, a few % off sky and grass. Where the panel runs taller than
   that (Summary), the photo stops growing and stays in view while the
   list scrolls. Phones and tablets keep the plain 16:9 block above. */
@media (min-width:1101px){
  /* 1960 and the nav's margin, so up to a 1920 screen the photo's left edge
     lines up under the logo; past that the content centres. */
  main{
    max-width:1960px;padding-inline:var(--edge);
    --panel-w:clamp(400px,25vw,470px);
    --gap:clamp(36px,3.4vw,64px);
    grid-template-columns:minmax(0,1fr) var(--panel-w);gap:var(--gap);
    container-type:inline-size;
  }
  .viewport{
    aspect-ratio:auto;align-self:stretch;position:sticky;top:24px;
    min-height:calc((100cqw - var(--panel-w) - var(--gap)) / 1.95);
    max-height:calc((100cqw - var(--panel-w) - var(--gap)) / 1.493);
  }
  /* absolute, so the image's own 16:9 height can't prop the row open - the panel
     and the limits above set it */
  #finish-photo{position:absolute;inset:0;object-fit:cover;object-position:50% 50%}
}

/* ---------------------------------------------------------------- panel */
/* Plain column on the same page background as everything else - no border,
   fill or its own scrollbar. The page scrolls now (see the body comment
   above), so a step whose content runs long just makes the page taller
   instead of needing an internal scroll region. */
.panel{padding:0}

/* Light 300 - the same headline style as every page title on the main
   site (home.css h1), client 2026-10-02: "I like that font, make sure all
   text has it". Was 500, matching .cfg-step's nav weight. */
.panel-head h1,.panel-head h2{
  font-family:var(--sans);font-weight:300;font-size:34px;line-height:1.1;
  margin:0 0 10px;letter-spacing:.01em;
}
/* No step has a subtitle under its heading any more (Radin, 2026-10-02:
   remove the "Kitchen cabinetry, flooring and bathroom fittings" line and
   its siblings - the group labels right below already say it), so every
   heading carries its own breathing room before the options start.
   :only-child still, so a subtitle added back gets its own spacing. */
.panel-head h1:only-child,.panel-head h2:only-child{margin-bottom:32px}
.panel-head p{color:var(--ink);font-size:13px;line-height:1.65;margin:0 0 26px}

.opt-group{margin-bottom:26px}
/* h4 under a room heading (.room-h below), h3 where there is none - same
   look either way. */
.opt-group h3,.opt-group h4{
  display:flex;justify-content:space-between;align-items:baseline;
  font-family:var(--mono);font-size:11px;letter-spacing:.18em;text-transform:uppercase;
  font-weight:500;color:var(--ink);margin:0 0 12px;
  padding-bottom:8px;border-bottom:1px solid var(--line);
}
/* Room subsections (Andrew's brief 26 Oct, §9: "Use room subsections within
   Interior"; Extras and services closes Exterior). The room name is the
   panel heading's light 300 at a step down, so the order of type reads
   step > room > control without a new face or colour. */
.opt-room{margin-top:30px}
.opt-room:first-child,.opt-shared + .opt-room{margin-top:0}
.opt-room[hidden]{display:none}
.room-h{font-family:var(--sans);font-weight:300;font-size:22px;line-height:1.2;letter-spacing:.01em;margin:0 0 12px;color:var(--ink)}
.opt-note{margin:0 0 4px;font-size:12px;font-weight:500;line-height:1.5;color:#000}
/* Interior's reminder of the one shared windows choice, with the way back to
   it - one quiet line in the same hairline language as the rows. */
.opt-shared{
  display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin:0 0 26px;padding:0 0 12px;
  border-bottom:1px solid var(--line);font-size:12px;font-weight:500;color:#000;
}
.opt-shared-k{font-family:var(--mono);font-size:11px;letter-spacing:.18em;text-transform:uppercase}
.opt-shared-v{font-weight:600}
.opt-shared-go{
  margin-left:auto;background:none;border:none;padding:0;cursor:pointer;
  font:inherit;color:var(--clay-t);text-decoration:underline;text-underline-offset:3px;
}
.opt-shared-go:hover{color:var(--ink)}
.opt-shared-go:focus-visible{outline:2px solid var(--clay);outline-offset:3px}

/* A fixed finish - nothing to choose, so no radio and no swatches: the
   room's specification in the same hairline rows. Laundry's stainless
   benchtop and white joinery (Andrew, pre-launch email 20 Nov 2026). */
.opt-fixed-line{margin:0;padding:10px 0 0;border-bottom:0;font-size:14px;color:var(--ink)}
.opt-fixed-list{margin:0;border-top:1px solid var(--line)}
.opt-fixed-list > div{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid var(--line)}
.opt-fixed-list dt{margin:0;font-size:14px;font-weight:400;color:var(--ink-2)}
.opt-fixed-list dd{margin:0;font-size:14px;font-weight:500;color:var(--ink);text-align:right}

/* Interior's gallery of Andrew's final renders (assets/renders/final, via
   manifest.json): only the rooms that match the finishes above are listed.
   Two up, so a phone still reads a room per tile rather than a strip. */
.fin-rites{margin-top:34px}
.fin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.fin-tile{display:block;width:100%;padding:0;background:none;border:1px solid var(--line);cursor:pointer;text-align:left}
.fin-tile:hover{border-color:rgba(43,43,42,.32)}
.fin-tile.is-on{border-color:var(--ink)}
.fin-tile:focus-visible{outline:2px solid var(--clay);outline-offset:2px}
.fin-tile img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}
.fin-tile-k{display:block;padding:8px 10px;font-family:var(--mono);font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:var(--ink-2)}
@media (max-width:700px){.fin-grid{grid-template-columns:minmax(0,1fr)}}
/* margin-left:auto, not just justify-content:space-between on the parent -
   written for Floorplan's label-less "5 options" h3, which came out
   2026-10-14; harmless on the Interior/Exterior group headings. */
.opt-group h3 .count{color:var(--ink-2);font-weight:500;margin-left:auto}

/* plans + swatches - a flat list with a hairline divider between rows and a
   radio dot on the left, not bordered pill/cards. Modelled on the reference
   the customise flow follows (mantanorth.com's configurator): a plain list,
   a filled dot when a row is selected, any colour swatch sitting as a small
   chip on the right rather than tinting the whole row - same visual grammar,
   this site's own clay/charcoal/Montserrat rather than the reference's navy
   and serif. .plan-btn/.swatch stay as the JS-facing hooks (syncSelected()
   toggles .is-on on them); .cfg-row carries the shared row look so both
   lists - and Summary's own recap rows via .areas, see below - read as one
   system. */
.plans,.swatches{display:flex;flex-direction:column}
.cfg-row{
  position:relative;display:flex;align-items:center;gap:14px;width:100%;
  text-align:left;cursor:pointer;background:none;border:none;color:var(--ink);font-family:inherit;
  padding:16px 0;border-bottom:1px solid var(--line);transition:color .2s;
}
.plans .cfg-row:last-child,.swatches .cfg-row:last-child{border-bottom:none}
.cfg-row:hover{color:var(--clay-t)}
.cfg-radio{
  width:18px;height:18px;border-radius:50%;flex:0 0 auto;
  border:1.5px solid rgba(43,43,42,.32);position:relative;transition:border-color .2s;
}
.cfg-row.is-on .cfg-radio{border-color:var(--clay)}
.cfg-row.is-on .cfg-radio::after{
  content:"";position:absolute;inset:3px;border-radius:50%;background:var(--clay);
}
/* The optional extras are independent ticks, not one-of-many: a square box
   in the radio's place, filled clay with a tick when on. */
.cfg-check{
  width:18px;height:18px;border-radius:3px;flex:0 0 auto;
  border:1.5px solid rgba(43,43,42,.32);position:relative;transition:border-color .2s,background .2s;
}
.cfg-row.is-on .cfg-check{border-color:var(--clay);background:var(--clay)}
.cfg-row.is-on .cfg-check::after{
  content:"";position:absolute;left:5px;top:1px;width:4px;height:9px;
  border:solid var(--on-ink);border-width:0 2px 2px 0;transform:rotate(45deg);
}
.cfg-row:focus-visible{outline:2px solid var(--clay);outline-offset:2px}
.row-text{display:grid;gap:2px;min-width:0;flex:1 1 auto}
.row-end{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex:0 0 auto}
/* Side by side, not stacked - a stacked status tag (hot water's Standard /
   Upgrade) would make those rows taller than their neighbours. */
.swatch .row-end{flex-direction:row;align-items:center;gap:10px}

/* Pure black at 500, every option (Radin, 2026-10-02: "make sure all the
   options are black text not grey"). Unpicked rows were --ink at 400 -
   dark enough on paper by contrast ratio, but next to the 600 of the
   picked row they read grey. The picked row keeps 600; the clay radio dot
   is what marks the choice. */
.plan-name,.sw-name{font-size:14px;font-weight:500;letter-spacing:-.005em;color:#000;transition:font-weight .15s}
.cfg-row.is-on .plan-name,.cfg-row.is-on .sw-name{font-weight:600}
.plan-sub{font-size:12px;font-weight:500;color:#000}
.plan-meta{font-family:var(--mono);font-size:11px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:#000}
/* The floorplan rows carry three figures each - internal, internal plus the
   covered deck, bedrooms - under headings above the list (Andrew, 2026-10-11).
   .plan-cols (the headings) and .plan-metrics (the figures) share one
   grid-template so the columns line up without a table; the headings sit in
   the panel's own flow and the figures inside each button, which no table
   would let them do. Fixed tracks, not auto: auto widths are measured per
   element, so the headings and every row would each find their own and
   none would agree. 84px fits "99.8 m2" and "Incl. deck" at this size with
   room to spare; the last track only ever holds one digit.
   Right-aligned, following .row-end, so the decimal points stack. */
.plan-cols,.plan-metrics{
  display:grid;grid-template-columns:62px 70px 34px;column-gap:12px;align-items:baseline;
  font-family:var(--mono);font-size:11px;font-weight:500;letter-spacing:.04em;
  text-transform:uppercase;text-align:right;
}
.plan-cols{
  margin:0 0 2px;padding-bottom:8px;color:#000;
  justify-content:end;border-bottom:1px solid var(--line);
}
.plan-metrics{color:#000}
/* The unit is set in the same mono as the number, so a narrower panel can
   drop it to its own line rather than overflow the track. The tracking is
   .04em, not the .14em the rest of this panel's mono labels use: at .14em
   "Incl. deck" measured 84px and "Beds" overflowed a 32px track into its
   neighbour, and the three columns together took 200px out of a 400px
   panel, squeezing every subtitle onto three lines. The tracks are sized
   to the headings, not the figures - measured unwrapped, "Internal" is
   62px, "Incl. deck" 70px and "Beds" 34px, against 47px for a value like
   "99.8 m2" - so the words are what set the width and the numbers sit
   comfortably inside it. The 12px column-gap is load-bearing, not polish:
   every column is right-aligned and sized to its own heading, so without
   it "INCL. DECK" ends exactly where "BEDS" begins and the two read as
   one word. */
.plan-metrics .unit{white-space:nowrap}
/* The headings never wrap: a two-line "INCL. / DECK" sat beside a one-line
   "BEDS" and the row stopped reading as a heading row at all. */
.plan-cols span{white-space:nowrap}
/* Circular, like the dot inside home.css's .fx-pill - the same material
   shown by the same token in both places. */
.chip{width:23px;height:23px;border-radius:50%;flex:0 0 auto;border:1px solid rgba(43,43,42,.16)}

/* The register's own status beside a choice - hot water's Standard /
   Upgrade, the only one it gives (brief 26 Oct, §9). The pill the TBC badge
   used to wear; the TBC badges themselves are gone with the placeholders. */
.tag{
  font-family:var(--mono);font-size:10px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;
  color:var(--clay-t);border:1px solid currentColor;border-radius:999px;padding:2px 8px;white-space:nowrap;
}

/* Interior and Exterior carry far more rows than Floorplan's plan list (up
   to 9 combined, across 2-3 opt-groups) against the same 16:9 photo, so the
   list rhythm that suits Floorplan runs hundreds of px past the image's
   bottom edge here. Tightened for just these two steps rather than
   sitewide, since Floorplan/Summary aren't overshooting anything. */
#panel-interior .opt-group,#panel-exterior .opt-group{margin-bottom:8px}
#panel-interior .opt-group :is(h3,h4),#panel-exterior .opt-group :is(h3,h4){margin-bottom:5px;padding-bottom:4px}
#panel-interior .cfg-row,#panel-exterior .cfg-row{padding:9px 0}
/* The register's longer names ("Grey Abodo Vulcan — bandsawn, Greying Agent
   (Weathered)") wrap onto a second line; the radio and chip stay on the
   first. */
#panel-interior .cfg-row,#panel-exterior .cfg-row{align-items:flex-start}
#panel-interior .cfg-row .cfg-radio,#panel-interior .cfg-row .cfg-check,
#panel-exterior .cfg-row .cfg-radio,#panel-exterior .cfg-row .cfg-check{margin-top:1px}
#panel-interior .sw-name,#panel-exterior .sw-name{line-height:1.45}

/* spec panel */
.spec{border-top:1px solid var(--line);padding-top:16px;margin-top:4px}
.spec-head{display:flex;justify-content:space-between;margin-bottom:12px}
.spec-head span{font-family:var(--mono);font-size:11px;font-weight:500;letter-spacing:.18em;color:#000}
/* Same hairline-divider language as .cfg-row above, so the Summary step's
   recap reads as the same list system as Floorplan/Exterior/Interior rather
   than a different, denser table. */
.areas{margin:0 0 10px;display:grid}
.areas div{display:flex;justify-content:space-between;gap:10px;font-size:12px;padding:9px 0;border-bottom:1px solid var(--line)}
.areas div:last-child{border-bottom:none}
/* Summary recaps the same choices, so it follows the option rows above:
   pure black at 500, not --ink at 400 (Radin, 2026-10-02). */
.areas dt{color:#000;font-weight:500;margin:0}
.areas dd{margin:0;font-family:var(--mono);font-size:11px;font-weight:500;color:#000}
.areas .total dt,.areas .total dd{color:var(--clay-t);font-weight:600}
.areas .total{border-top:1px solid var(--ink)}
/* Summary, by room since the selections register (2026-10-27): a long name
   wraps right-aligned under itself rather than pushing its label over. */
.areas dt{flex:0 0 auto;max-width:48%}
.areas dd{text-align:right;line-height:1.5}
.areas dd .tag{margin-left:6px;vertical-align:1px}
.sum-group{margin-top:18px}
.sum-h{margin:0;padding-bottom:8px;border-bottom:1px solid var(--line);font-family:var(--mono);font-size:11px;font-weight:500;letter-spacing:.18em;text-transform:uppercase;color:#000}
#summary-body{margin-bottom:22px}

/* actions */
.actions{display:grid;gap:8px;margin-top:24px}
/* 600 and a full-ink outline (client, 2026-10-01) - same fix as the main
   site's .btn: the medium weight and the near-invisible .14 border made
   the outline buttons read grey, as if disabled. */
button.primary,button.ghost{
  font-family:var(--mono);font-size:11px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;
  padding:19px 20px;cursor:pointer;transition:background .25s,color .25s,border-color .25s;
}
button.primary{background:var(--ink);color:var(--on-ink);border:1px solid var(--ink)}
button.primary:hover{background:transparent;color:var(--ink)}
button.ghost{background:none;color:var(--ink);border:1px solid var(--ink)}
button.ghost:hover{background:var(--ink);color:var(--on-ink)}

/* Back/Next - persistent chrome below whichever .cfg-panel is showing, not
   part of any one step's panel. js/app.js's setStep() hides Back on the
   first step and Next on the last (Summary has its own Request-a-quote
   instead). The reference this flow is modelled on has no back button at
   all - going back means clicking an earlier tab - so rather than inventing
   a second bordered button to compete with it, Back is a small text link and
   Next is the one full-width, filled, dark action, same weighting as the
   reference's own single NEXT button. Share is one step further down,
   available on every step since it captures whatever's currently
   configured, not just the final one. */
.cfg-nav-btns{margin-top:30px;padding-top:24px;border-top:1px solid var(--line)}
#back-btn{
  display:block;background:none;border:none;padding:0 0 16px;cursor:pointer;
  font-family:var(--mono);font-size:11px;font-weight:500;letter-spacing:.16em;text-transform:uppercase;
  color:var(--ink-2);transition:color .2s;
}
/* #back-btn's own display:block above beats the UA [hidden]{display:none}
   default on specificity (ID > attribute selector) - without this, setStep()
   toggling the hidden attribute on the first step stopped actually hiding
   it. */
#back-btn[hidden]{display:none}
#back-btn:hover{color:var(--ink)}
#next-btn{width:100%}
.cfg-share{width:100%;margin-top:12px}

/* ---------------------------------------------------------------- 3D view */
/* Full screen rather than inside .viewport: the model needs room to be
   orbited, and it's opened on purpose from Summary's "View in 3D" rather
   than shown by default like the photos. The backdrop is the scene's own
   studio grey (js/viewer.js, skyTexture()), so nothing flashes a different
   colour before the first frame draws. */
body:has(.v3d[open]){overflow:hidden}
.v3d{
  width:100%;height:100%;height:100dvh;max-width:none;max-height:none;
  margin:0;padding:0;border:0;overflow:hidden;background:#cdc8bd;color:var(--ink);
}
.v3d::backdrop{background:#cdc8bd}
#v3d-canvas{display:block;width:100%;height:100%}
.v3d-status{
  position:absolute;inset:0;display:grid;place-items:center;margin:0;padding:0 24px;text-align:center;
  font-family:var(--mono);font-size:11px;font-weight:500;letter-spacing:.18em;text-transform:uppercase;
  pointer-events:none;
}
.v3d-status[hidden]{display:none}
.v3d-views{
  position:absolute;left:50%;bottom:24px;transform:translateX(-50%);
  display:flex;flex-wrap:wrap;justify-content:center;gap:8px;width:max-content;max-width:calc(100% - 32px);
}
.v3d-view,.v3d-close{
  cursor:pointer;border-radius:999px;padding:10px 18px;
  font-family:var(--sans);font-weight:500;font-size:13px;
  background:rgba(247,245,242,.88);color:var(--ink);border:1px solid var(--line);
  transition:background .25s,color .25s,border-color .25s;
}
.v3d-view:hover,.v3d-close:hover{border-color:rgba(43,43,42,.32)}
.v3d-view.is-on{background:var(--ink);color:var(--on-ink);border-color:var(--ink)}
.v3d-close{position:absolute;top:20px;right:20px}

/* "View in your backyard" (js/ar.js) - top left, opposite Close, in ink so it
   reads as the one thing to do next rather than another view preset. */
.v3d-ar{
  position:absolute;top:20px;left:20px;cursor:pointer;border-radius:999px;padding:10px 18px;
  font-family:var(--sans);font-weight:500;font-size:13px;
  background:var(--ink);color:var(--on-ink);border:1px solid var(--ink);transition:background .25s,color .25s;
}
.v3d-ar:hover{background:var(--bg);color:var(--ink)}
.v3d-ar[hidden],.v3d-ar-panel[hidden]{display:none}
.v3d-tour{
  position:absolute;top:20px;right:112px;cursor:pointer;border-radius:999px;padding:10px 18px;
  font-family:var(--sans);font-weight:500;font-size:13px;text-decoration:none;
  background:var(--ink);color:var(--on-ink);border:1px solid var(--ink);transition:background .25s,color .25s;
}
.v3d-tour:hover{background:var(--bg);color:var(--ink)}
.v3d-tour[hidden]{display:none}
.v3d-ar-panel{
  position:absolute;inset:0;display:grid;place-items:center;padding:16px;
  background:rgba(205,200,189,.7);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
}
.v3d-ar-card{width:min(420px,100%);background:var(--bg);border:1px solid var(--line);padding:30px 28px;text-align:center}
.v3d-ar-title{margin:0;font-family:var(--sans);font-size:19px;font-weight:500;color:var(--ink)}
.v3d-ar-text{margin:12px 0 0;font-size:15px;line-height:1.65;color:var(--ink);overflow-wrap:anywhere}
.v3d-ar-text:empty,.v3d-ar-qr:empty{display:none}
.v3d-ar-qr svg{display:block;width:200px;height:200px;margin:22px auto 0}
.v3d-ar-acts{display:flex;flex-direction:column;gap:10px;margin-top:24px}
.v3d-ar-acts button[hidden]{display:none}
/* model-viewer has to be in the page and on screen to load (it pauses
   anything off screen), but nobody needs to see a second copy of the house:
   one invisible pixel in the corner. */
.v3d-ar-host{position:absolute;left:0;bottom:0;width:1px;height:1px;opacity:0;pointer-events:none}

/* "Drag to turn" - shown once, until the first touch. Mouse or touch
   wording by the pointer the visitor actually has. */
.v3d-hint{
  position:absolute;left:50%;bottom:84px;transform:translateX(-50%);margin:0;padding:8px 14px;
  border-radius:999px;background:rgba(43,43,42,.82);color:#f7f5f2;
  font-family:var(--sans);font-size:13px;font-weight:500;white-space:nowrap;pointer-events:none;
}
.v3d-hint[hidden]{display:none}
.v3d-hint-touch{display:none}
@media (pointer:coarse){.v3d-hint-touch{display:inline}.v3d-hint-mouse{display:none}}

/* Phones: the five view presets in one row along the bottom (two rows
   covered a quarter of the picture), scrolling sideways on the narrowest
   screens; the corner buttons clear the notch and the home bar. */
@media (max-width:600px){
  .v3d-views{
    left:0;right:0;transform:none;width:auto;max-width:none;
    flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;gap:6px;
    padding:0 16px;bottom:calc(14px + env(safe-area-inset-bottom));scrollbar-width:none;
  }
  .v3d-views::-webkit-scrollbar{display:none}
  .v3d-view{flex:0 0 auto;padding:9px 11px}
  .v3d-view:first-child{margin-left:auto}
  .v3d-view:last-child{margin-right:auto}
  .v3d-close{top:calc(14px + env(safe-area-inset-top));right:16px}
  .v3d-ar{top:calc(14px + env(safe-area-inset-top));left:16px}
  /* The tour pill kept its desktop right:112px offset here and collided with
     both the AR button and the Close pill on a 390 screen. Stack it under
     the AR button instead. */
  .v3d-tour{top:calc(62px + env(safe-area-inset-top));left:16px;right:auto;padding:9px 14px;font-size:12px}
  .v3d-hint{bottom:calc(70px + env(safe-area-inset-bottom))}
}

@media (max-width:600px){.panel-head h1,.panel-head h2{font-size:26px}}

@media (max-width:1100px){
  .cfg-head{padding:13px var(--edge) 0}
  main{grid-template-columns:1fr;gap:40px;padding:26px var(--edge)}
}
/* Stacked, the photo is above the options, so on a phone it scrolled away
   before the rows that change it - pick "Charcoal" and the kitchen you'd
   just turned charcoal was off the top of the screen (2026-10-03 phone
   pass). It holds at the top while the list scrolls under it instead, the
   way the desktop photo already stays beside the list. Portrait only: a
   landscape phone is ~390px tall, and a full-width 16:9 photo pinned there
   would cover the whole screen. */
@media (max-width:1100px) and (orientation:portrait){
  .viewport{position:sticky;top:0;z-index:2}
}

/* Phone: the Standard / Upgrade tag at 10px was the one label under the
   site's ~11px label size (28 Oct type pass). */
@media (max-width:700px){
  .tag{font-size:11px}
}

/* Windows & deck step */
.op-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #d9d3c7}
.op-lab{font-size:11px;letter-spacing:.16em;text-transform:uppercase}
.op-sel{font:inherit;font-size:13px;padding:7px 10px;border:1px solid #d9d3c7;background:#fff;color:#141514;border-radius:2px;min-width:120px}
button.op-sel{cursor:pointer;text-align:left}
