/* Portable Steel Sheds. Layout: a full-width 3D stage beside a narrow spec panel, then plan cards drawn to scale. */
:root {
  /* dark "control room" default (spec: engineering-firm redesign); the light theme is fully kept below */
  --bg: #0F151B; --surface: #17202A; --ink: #E5EAEE; --muted: #97A3AE; --line: #283542;
  --navy: #0A131B; --navy-ink: #E5EAEE; --accent: #EE7A36; --accent-ink: #111; --steel: #6D7882; --ok: #6CC495; --bad: #F2867E; color-scheme: dark;
  --grid: rgba(141, 168, 192, .07); --stage-hi: #1B2834; --stage-lo: #0F1720;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --r: 4px;
}
:root[data-theme="light"] {
  --bg: #F3F5F6; --surface: #FFFFFF; --ink: #15202B; --muted: #5A6571; --line: #D8DDE2;
  --navy: #15283A; --navy-ink: #EEF2F5; --accent: #D2601C; --accent-ink: #FFFFFF; --steel: #8D979F; --ok: #2E7D4F; --bad: #B3261E; color-scheme: light;
  --grid: rgba(21, 40, 58, .05); --stage-hi: #9DB9D2; --stage-lo: #DCE4E8;
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) {
  --bg: #F3F5F6; --surface: #FFFFFF; --ink: #15202B; --muted: #5A6571; --line: #D8DDE2;
  --navy: #15283A; --navy-ink: #EEF2F5; --accent: #D2601C; --accent-ink: #FFFFFF; --steel: #8D979F; --ok: #2E7D4F; --bad: #B3261E; color-scheme: light;
  --grid: rgba(21, 40, 58, .05); --stage-hi: #9DB9D2; --stage-lo: #DCE4E8;
} }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.mono { font-family: var(--mono); }
.small { font-size: 13px; }
.muted { color: var(--muted); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.04; letter-spacing: .005em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(30px, 3.5vw, 46px); text-transform: uppercase; max-width: 24ch; }
h2 { font-size: clamp(28px, 3.4vw, 42px); }
h3 { font-size: 22px; }
.eyebrow { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .22em; color: var(--accent); margin: 0 0 12px; display: flex; align-items: baseline; gap: 10px; }
.eyebrow-n { color: var(--muted); }
.eyebrow-n::after { content: "—"; margin-left: 0; color: var(--line); }
.lede, .sec-sub { color: var(--muted); max-width: 62ch; margin: 14px 0 0; font-size: 17px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* staging ribbon (only on provedup.si) */
.staging { background: repeating-linear-gradient(-45deg, #f2c94c 0 12px, #e9b83a 12px 24px); color: #1d1a10; font: 600 12px/1 var(--body); text-align: center; padding: 7px 16px; letter-spacing: .04em; }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--navy); color: var(--navy-ink); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--navy); }
.top-row { display: flex; align-items: center; gap: 24px; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.mark { width: 36px; height: 29px; flex: none; --bg: var(--navy); }
.brand-name { font: 700 21px/1 var(--display); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.call { display: flex; align-items: baseline; gap: 6px; text-decoration: none; background: var(--accent); color: var(--accent-ink); padding: 9px 14px; border-radius: 4px; font-weight: 600; white-space: nowrap; }
.call-label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; opacity: .85; }
.call-num { font-family: var(--mono); font-size: 15px; }
@media (max-width: 860px) { .nav { display: none; } .call { margin-left: auto; } }
@media (max-width: 480px) { .brand-name { font-size: 17px; white-space: normal; max-width: 9em; line-height: 1.05; } .call-label { display: none; } .call { padding: 8px 10px; } }

/* builder: hero + stage sit on a faint blueprint grid */
.builder { padding-block: 32px 64px; position: relative; }
.builder::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 32px 32px; pointer-events: none; }
.builder > .wrap { position: relative; }
.intro { display: grid; gap: 0; margin-bottom: 20px; }
.tagline { margin: 10px 0 0; font-size: 12.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.cfg { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
@media (max-width: 980px) { .cfg { grid-template-columns: minmax(0, 1fr); } }
.stage { position: relative; height: clamp(380px, 64vh, 660px); border-radius: var(--r); overflow: hidden; background: linear-gradient(var(--stage-hi), var(--stage-lo)); border: 1px solid var(--line); }
@media (min-width: 981px) { .stage { position: sticky; top: 80px; } }
#scene { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
#scene:active { cursor: grabbing; }
.stage-brackets { position: absolute; inset: 8px; z-index: 5; pointer-events: none; }
.stage-brackets i { position: absolute; width: 22px; height: 22px; border: 0 solid var(--accent); opacity: .85; }
.stage-brackets i:nth-child(1) { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.stage-brackets i:nth-child(2) { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.stage-brackets i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.stage-brackets i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.hud-readout { position: absolute; top: 50px; left: 12px; z-index: 6; margin: 0; background: rgba(10, 16, 22, .82); color: #E8EDF1; border: 1px solid rgba(255, 255, 255, .14); border-radius: 3px; padding: 5px 9px; font-size: 11px; letter-spacing: .08em; pointer-events: none; }
.hud-readout:empty { display: none; }
@media (max-width: 640px) { .hud-readout { top: 92px; font-size: 10px; max-width: calc(100% - 24px); } }
.stage-top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; pointer-events: none; }
.chip { background: rgba(10, 16, 22, .78); color: #fff; padding: 6px 10px; border-radius: 3px; font-size: 11.5px; letter-spacing: .06em; border: 1px solid rgba(255, 255, 255, .14); }
.hint { color: #fff; background: rgba(10, 16, 22, .5); padding: 6px 10px; border-radius: 3px; font-size: 13px; transition: opacity .6s; }
.hint.gone { opacity: 0; }
.toolbar { position: absolute; left: 36px; right: 36px; bottom: 10px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.tgroup { display: flex; flex-wrap: wrap; gap: 4px; background: rgba(10, 16, 22, .72); padding: 4px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(6px); }
.tgroup button { font: 500 13px/1 var(--body); color: #E8EDF1; background: transparent; border: 0; padding: 9px 11px; border-radius: 3px; cursor: pointer; }
.tgroup button:hover { background: rgba(255, 255, 255, .12); }
.tgroup button[aria-pressed="true"] { background: #EE7A36; color: #111; }
.nogl { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; background: var(--surface); text-align: center; }
.nogl p { max-width: 42ch; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 16px; }
.panel fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.panel legend { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin-bottom: 10px; padding: 0; }
.note { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.seg button { font: 600 15px/1 var(--body); padding: 11px 8px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--navy); color: var(--navy-ink); }
.models { display: grid; gap: 6px; }
.model { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; align-items: center; text-align: left; background: transparent; border: 1px solid var(--line); border-radius: 4px; padding: 8px; cursor: pointer; color: var(--ink); font: inherit; }
.model:hover { border-color: var(--steel); }
.model[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.model svg { width: 74px; height: auto; display: block; }
.model b { display: block; font: 600 15px/1.2 var(--body); }
.model span { font-size: 13px; color: var(--muted); }
.colors { display: grid; gap: 12px; }
.crow { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; align-items: center; }
.crow > span { font-size: 13px; color: var(--muted); }
.sw { display: flex; flex-wrap: wrap; gap: 6px; }
.sw button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.sw button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent); }
.cname { grid-column: 2; font-size: 12.5px; color: var(--muted); margin-top: -6px; }
/* interior options: walk-through door + windows */
#opt-panel .opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
#opt-panel .opt-name { font: 600 14.5px/1.2 var(--body); }
#opt-panel .seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
#opt-panel .seg button { padding: 9px 10px; font-size: 14px; white-space: nowrap; }
#opt-panel .note { margin: 8px 0 0; font-size: 14px; min-height: 0; color: var(--muted); }
#opt-panel .note:empty { display: none; }
#opt-panel .note.bad { color: var(--bad); }
.summary { border-top: 1px dashed var(--line); padding-top: 14px; display: grid; gap: 4px; font-size: 14px; }
.summary .sname { font: 700 22px/1.1 var(--display); }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 6px 0 0; }
.summary dt { color: var(--muted); font: 500 11px/1.7 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.summary dd { margin: 0; font-variant-numeric: tabular-nums; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn { font: 600 15px/1 var(--body); padding: 13px 16px; border-radius: 4px; border: 1px solid transparent; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.count { background: var(--navy); color: var(--navy-ink); border-radius: 3px; padding: 3px 8px; font-size: 12px; font-family: var(--mono); }
.added { animation: pop .5s ease; }
@keyframes pop { 40% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .added { animation: none; } }

/* builder extras */
.holds { margin-top: 8px; font-size: 13.5px; }
.holds summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.holds ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; color: var(--muted); }
.holds b { color: var(--ink); }
.share-url { width: 100%; font-size: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 3px; background: var(--bg); color: var(--ink); }

/* AR */
.ar-btn { pointer-events: auto; margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font: 600 14px/1 var(--body); background: #EE7A36; color: #111; border: 0; border-radius: 4px; padding: 10px 13px; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.ar-btn svg { width: 18px; height: 18px; }
.ar-btn:disabled { opacity: .7; cursor: progress; }
.ar-btn.pulse { animation: arpulse 1.6s ease-in-out 4; }
@keyframes arpulse { 50% { box-shadow: 0 0 0 8px rgba(238,122,54,.35); } }
@media (prefers-reduced-motion: reduce) { .ar-btn.pulse { animation: none; } }
.lot-chip { pointer-events: none; }
.ar-hint { margin: 0 0 14px; padding: 10px 12px; border-radius: 4px; background: var(--surface); border: 1px solid var(--accent); font-size: 14.5px; }
.ar-ui { position: fixed; inset: auto 0 0 0; z-index: 50; padding: 16px max(16px, env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: linear-gradient(transparent, rgba(10,16,22,.85)); color: #fff; display: grid; gap: 12px; justify-items: center; text-align: center; }
.ar-msg { margin: 0; font: 600 17px/1.3 var(--body); text-shadow: 0 1px 3px rgba(0,0,0,.6); max-width: 30ch; }
.ar-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.ar-ui button { font: 600 16px/1 var(--body); min-width: 56px; padding: 14px 16px; border-radius: 4px; border: 0; background: rgba(255,255,255,.92); color: #111; }
.ar-ui button[data-ar="exit"] { background: #EE7A36; }
.ar-qr { position: fixed; inset: 0; z-index: 60; background: rgba(8,12,16,.6); display: grid; place-items: center; padding: 16px; }
.ar-qr-card { background: var(--surface); color: var(--ink); border-radius: 6px; padding: 24px; max-width: 360px; width: 100%; display: grid; gap: 12px; text-align: center; }
.ar-qr-card p { margin: 0; color: var(--muted); font-size: 15px; }
.ar-code { background: #fff; border-radius: 4px; padding: 8px; width: min(240px, 70vw); justify-self: center; aspect-ratio: 1; max-width: 100%; }
.ar-code svg { width: 100%; height: 100%; display: block; }
.ar-qr-card .btn { justify-self: center; }

/* lot */
.lot { padding-block: 64px; background: var(--surface); border-block: 1px solid var(--line); }
.lot-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: 32px; align-items: start; }
@media (max-width: 860px) { .lot-grid { grid-template-columns: minmax(0, 1fr); } }
.lot-side { display: grid; gap: 14px; }
.lot-side .sec-sub { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lot-form { display: flex; gap: 8px; }
.lot-form input { flex: 1; min-width: 0; font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--ink); }
.lot-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lot-results:empty { display: none; }
.lot-results button { width: 100%; text-align: left; font: inherit; font-size: 14px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 3px; background: var(--bg); color: var(--ink); cursor: pointer; }
.lot-turn { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; font-size: 15px; }
.lot-turn label { grid-column: 1 / -1; }
.lot-turn input { width: 100%; accent-color: var(--accent); }
.faces { display: flex; gap: 4px; }
.faces button { font: 600 13px/1 var(--mono); width: 34px; height: 32px; border: 1px solid var(--line); border-radius: 3px; background: var(--bg); color: var(--ink); cursor: pointer; }
.lot-place { display: flex; flex-wrap: wrap; gap: 8px; }
.lot-count { margin: 0; font: 500 12.5px/1.4 var(--mono); letter-spacing: .06em; color: var(--accent); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
/* the draggable pin at a placement's centre (Leaflet divIcon): a small plate, orange when its building is selected */
.lot-pin { background: #ECEDEA; border: 2px solid #46494C; border-radius: 2px; box-shadow: 0 1px 4px rgba(0, 0, 0, .55); cursor: grab; }
.lot-pin:active { cursor: grabbing; }
.lot-pin-sel { background: #EE7A36; border-color: #FFFFFF; }
.lot-status { margin: 0; min-height: 1.4em; font-size: 14.5px; }
.lot-status.bad { color: var(--bad); }
.lot-map-wrap { position: relative; }
.lot-map { height: clamp(340px, 56vh, 540px); border-radius: var(--r); border: 1px solid var(--line); background: #6d7a63; max-width: 100%; }
.lot-zoom { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); margin: 0; background: rgba(15,22,30,.8); color: #fff; padding: 7px 12px; border-radius: 6px; font-size: 13.5px; z-index: 500; pointer-events: none; white-space: nowrap; }
/* the credit line now covers imagery, boundaries, roads, places and water; at 11px the full required credits hold two lines instead of three (measured on staging at 1440px, 29 Oct 2026) */
.lot-map .leaflet-control-attribution { font-size: 11px; }

/* rental income */
.income { padding-block: 64px; }
.income-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 860px) { .income-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.fine { font-size: 13px; color: var(--muted); max-width: 60ch; }
.income-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 20px; display: grid; gap: 14px; }
.inc-model { margin: 0; color: var(--muted); }
.inc-model b { color: var(--ink); }
.rent-rows { display: grid; gap: 6px; }
.rrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; font-size: 15px; }
.rrow em { font-style: normal; color: var(--muted); font-size: 13px; margin-left: 6px; }
.rin { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); }
.rin input { width: 84px; font: 500 15px var(--mono); padding: 7px 8px; border: 1px solid var(--line); border-radius: 3px; background: var(--bg); color: var(--ink); text-align: right; }
.per { color: var(--muted); font-size: 13px; }
.inc-controls { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; border-top: 1px dashed var(--line); padding-top: 14px; font-size: 14px; }
.inc-controls output { font-family: var(--mono); font-weight: 600; margin-left: 4px; }
.inc-controls input[type=range] { width: 100%; accent-color: var(--accent); }
.count-in { display: inline-flex; gap: 6px; align-items: center; }
.count-in input { width: 64px; font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 3px; background: var(--bg); color: var(--ink); }
@media (max-width: 480px) { .inc-controls { grid-template-columns: auto minmax(0, 1fr); } .count-in { grid-column: 1 / -1; } }
.inc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: 4px; overflow: hidden; }
.inc-out > div { background: var(--navy); color: var(--navy-ink); padding: 14px 16px; display: grid; gap: 4px; }
.inc-out .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: #A8B4BF; }
.inc-out .num { font: 700 clamp(30px, 4vw, 40px)/1 var(--display); font-variant-numeric: tabular-nums; }
.inc-note { margin: 0; font-size: 13.5px; color: var(--muted); }
.linkbtn { justify-self: start; background: none; border: 0; padding: 0; color: var(--accent); font: 500 14px var(--body); text-decoration: underline; cursor: pointer; }
.qimg { width: 84px; height: 56px; object-fit: cover; border-radius: 5px; background: var(--bg); display: block; }

/* bands */
.band { background: var(--surface); border-block: 1px solid var(--line); padding-block: 64px; }
.sec-head { margin-bottom: 28px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 10px; background: var(--bg); }
.card .plan { background: var(--surface); border-radius: 6px; padding: 10px; border: 1px solid var(--line); }
.card svg { width: 100%; height: auto; display: block; }
.card h3 { font-size: 21px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.card .meta { font-family: var(--mono); font-size: 12.5px; color: var(--ink); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.card .btn { justify-self: start; padding: 10px 14px; font-size: 14px; }
.plan-svg .floor { fill: var(--bg); stroke: var(--ink); stroke-width: .35; }
.plan-svg .part { stroke: var(--steel); stroke-width: .22; }
.plan-svg .door { stroke: var(--accent); stroke-width: .9; stroke-linecap: butt; }
.plan-svg .lbl { font: 600 2.1px var(--mono); fill: var(--ink); text-anchor: middle; dominant-baseline: middle; }
.plan-svg .dim { font: 500 1.9px var(--mono); fill: var(--muted); text-anchor: middle; }
.plan-svg .dimline { stroke: var(--muted); stroke-width: .12; }

/* about */
.about { padding-block: 72px; background: var(--navy); color: var(--navy-ink); }
.about .eyebrow { color: #F08A4B; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.about-copy p { max-width: 58ch; font-size: 18px; }
.about-copy .muted { color: #A8B4BF; font-size: 15px; }

/* stats band: the four certified numbers, full width, dark */
.stats-band { background: var(--navy); color: var(--navy-ink); padding-block: 56px; }
.stats-band .eyebrow { color: #F08A4B; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 24px 0 0; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .14); }
.stats > div { background: var(--navy); padding: 24px 20px; }
.stats dt { font: 500 11.5px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .18em; color: #A8B4BF; }
.stats dd { margin: 10px 0 0; display: flex; align-items: baseline; gap: 8px; }
.stats .big { font: 700 clamp(44px, 5vw, 68px)/0.95 var(--display); color: #fff; font-variant-numeric: tabular-nums; }
.stats .unit { font: 500 13px/1 var(--mono); color: #A8B4BF; text-transform: uppercase; letter-spacing: .12em; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* projects: horizontal case-study rail of real install photos */
.projects { padding-block: 64px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(72vw, 560px); gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.proj { margin: 0; scroll-snap-align: start; border: 1px solid var(--line); background: var(--surface); }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.rail { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.proj img { width: 100%; height: auto; display: block; aspect-ratio: 4 / 3; object-fit: cover; }
.proj figcaption { padding: 12px 16px 16px; display: grid; gap: 6px; border-top: 1px solid var(--line); }
.proj .mono { font: 500 11.5px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.proj-story { font-size: 14.5px; color: var(--muted); }

/* steps */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { counter-increment: s; border-top: 3px solid var(--ink); padding-top: 14px; }
.steps li::before { content: "Step " counter(s); font: 500 12.5px/1 var(--mono); color: var(--accent); display: block; margin-bottom: 10px; }
.steps p { color: var(--muted); margin: 8px 0 0; font-size: 15px; }

/* quote */
.quote { padding-block: 72px; }
.quote-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 480px) { .qlist li { grid-template-columns: auto minmax(0, 1fr); } }
@media (max-width: 860px) { .quote-grid { grid-template-columns: minmax(0, 1fr); } }
.qlist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; }
.qlist li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; }
.qlist .qn { font-weight: 600; }
.qlist .qc { font-family: var(--mono); font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.qlist .qnote { font-size: 12px; color: var(--muted); font-style: italic; }
.qlist input { width: 64px; font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 3px; background: var(--bg); color: var(--ink); }
.qlist .rm { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 14px; text-decoration: underline; }
.qlist li.qempty { display: block; color: var(--muted); border: 1px dashed var(--line); border-radius: 4px; padding: 16px; }
.callout { margin-top: 20px; font-size: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.callout a { font-family: var(--mono); font-weight: 600; }
.copy { font: 500 12px/1 var(--body); border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 6px 9px; border-radius: 3px; cursor: pointer; }
.qform { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; gap: 14px; }
.qform label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.qform input, .qform textarea { font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--ink); width: 100%; }
.qform textarea { resize: vertical; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 480px) { .row2 { grid-template-columns: minmax(0, 1fr); } }
.radio { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; }
.radio legend { font-weight: 500; padding: 0; margin-bottom: 6px; }
.radio label { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.radio input { width: auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formmsg { margin: 0; font-size: 15px; min-height: 1.4em; }
.formmsg.ok { color: var(--ok); } .formmsg.bad { color: var(--bad); }

/* footer */
.foot { background: var(--navy); color: var(--navy-ink); padding-block: 36px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; align-items: end; }
.foot p { margin: 4px 0; }
.foot-brand { font: 700 22px/1 var(--display); text-transform: uppercase; }
.foot .muted { color: #A8B4BF; }
.foot a { font-family: var(--mono); font-size: 18px; }

/* plan sheets (generated by pss-sheets.js — same plan data as the 3D builder) */
.plans { padding-block: 72px; }
.sheets { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 18px; align-items: start; }
.sheet-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 10px; }
.sheet-card .sheet { border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: var(--surface); }
.sheet-card h3 { margin: 2px 0 0; }
.sheet-card .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font: 500 13px/1.3 var(--mono); }
.sheet-svg { display: block; width: 100%; height: auto; }
.sheet-svg text { font-family: var(--mono); fill: var(--ink); }
.sheet-svg .frame { fill: none; stroke: var(--ink); stroke-width: .16; }
.sheet-svg .wall { fill: none; stroke: var(--ink); stroke-width: .3; stroke-linejoin: miter; }
.sheet-svg .part { fill: none; stroke: var(--steel); stroke-width: .18; }
.sheet-svg .ground { stroke: var(--ink); stroke-width: .2; }
.sheet-svg .roofline { stroke: var(--ink); stroke-width: .34; }
.sheet-svg .hidden { stroke: var(--muted); stroke-width: .12; stroke-dasharray: .6 .45; fill: none; }
.sheet-svg .dimline { stroke: var(--muted); stroke-width: .1; }
.sheet-svg .tick { stroke: var(--muted); stroke-width: .16; fill: none; }
.sheet-svg .dim { font-size: 1.5px; fill: var(--muted); text-anchor: middle; }
.sheet-svg .lbl { font-size: 1.9px; font-weight: 600; text-anchor: middle; }
.sheet-svg .door { stroke: var(--accent); stroke-width: .7; }
.sheet-svg .doorw { font-size: 1.4px; font-weight: 600; fill: var(--accent); text-anchor: middle; }
.sheet-svg .open { fill: var(--bg); stroke: var(--ink); stroke-width: .12; }
.sheet-svg .openlbl { font-size: 1.25px; fill: var(--muted); text-anchor: middle; }
.sheet-svg .wtdoor { fill: var(--steel); stroke: var(--ink); stroke-width: .1; }
.sheet-svg .winfill { fill: #A9CBD9; stroke: #5E86A0; stroke-width: .12; }
.sheet-svg .winl { stroke: #5E86A0; stroke-width: .14; }
.sheet-svg .swing { fill: none; stroke: var(--steel); stroke-width: .16; }
.sheet-svg .opt { font-size: 1.15px; fill: var(--steel); text-anchor: middle; }
.sheet-svg .legend { font-size: 1px; fill: var(--muted); }
.sheet-svg .cap { font-size: 1.35px; fill: var(--muted); text-anchor: middle; letter-spacing: .08em; }
.sheet-svg .t-brand { font-size: 1px; letter-spacing: .05em; fill: var(--muted); }
.sheet-svg .t-name { font-size: 1.55px; font-weight: 700; }
.sheet-svg .t-lbl { font-size: 1.1px; letter-spacing: .14em; fill: var(--muted); }
.sheet-svg .t-val { font-size: 1.4px; }
.sheet-svg .t-note { font-size: 1.05px; fill: var(--accent); text-anchor: middle; font-style: italic; }

/* interior options in the configurator panel */
.orow { display: grid; gap: 6px; }
.orow > span { font-size: 14px; font-weight: 500; }
.seg--4 { grid-template-columns: repeat(4, 1fr); }
.seg--5 { grid-template-columns: repeat(5, 1fr); }
.seg--4 button, .seg--5 button { font-size: 12.5px; padding: 8px 4px; }
.panel .note { color: var(--muted); font-size: 12.5px; margin: 2px 0 0; }
.qlist .qopts { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; font-size: 13px; color: var(--muted); }

/* weather simulator + surroundings */
.wx-pop { position: absolute; left: 12px; bottom: 58px; width: min(330px, calc(100vw - 24px)); z-index: 30; background: rgba(10, 16, 22, .93); color: #E8EDF1; border: 1px solid rgba(255, 255, 255, .14); border-radius: 4px; padding: 16px; display: grid; gap: 12px; backdrop-filter: blur(8px); box-shadow: 0 12px 32px rgba(0, 0, 0, .35); }
.wx-pop[hidden] { display: none; }
.wx-row { display: grid; gap: 5px; }
.wx-row label { font: 600 11px/1 var(--body); text-transform: uppercase; letter-spacing: .1em; color: #B7C2CC; }
.wx-row output { font: 600 13px/1 var(--mono); color: #fff; }
.wx-row input[type=range] { width: 100%; accent-color: #EE7A36; }
.wx-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.wx-presets button { font: 600 12.5px/1 var(--body); color: #E8EDF1; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 3px; padding: 7px 12px; cursor: pointer; }
.wx-presets button:hover { background: rgba(255, 255, 255, .18); }
.wx-presets button[aria-pressed="true"] { background: #EE7A36; color: #111; border-color: #EE7A36; }
.wx-note { margin: 0; font-size: 12px; color: #9FACB8; }
.wx-verdict { margin: 0; font: 600 13.5px/1.4 var(--body); color: #BFF0C8; background: rgba(52, 199, 110, .14); border: 1px solid rgba(52, 199, 110, .35); border-radius: 4px; padding: 9px 11px; }
.wx-verdict:empty { display: none; }
.wx-verdict.beyond { color: #FFD2B0; background: rgba(238, 122, 54, .16); border-color: rgba(238, 122, 54, .5); }
.seg--3 { grid-template-columns: repeat(3, 1fr); }
