/* Delen House v2: the panel facade. One module, one blue, one drawn container. */
@view-transition { navigation: auto; }
/* Fallback metrics matched to Geologica so the swap does not move the page */
@font-face { font-family: 'Geologica Fallback'; src: local('Arial'), local('Helvetica'); size-adjust: 105.5%; ascent-override: 93%; descent-override: 25.5%; line-gap-override: 0%; }

:root {
  --ground: #f2f3f0;
  --surface: #ffffff;
  --facade: #e4e7e4;
  --seam: #e0e3df;
  --line: #c9cecb;
  --line-strong: #9aa2a6;
  --ink: #121820;
  --ink-2: #46505a;
  --ink-3: #5f6973;
  --blue: #1f4c9a;
  --blue-deep: #173b7a;
  --blue-night: #0e1c33;
  --blue-seam: #2a59a8;
  --blue-wash: #e2e9f5;
  --on-blue: #ffffff;
  --on-blue-2: #c9d6ec;
  --glass: #9cc0e6;
  --wood: #c99a62;
  --error: #b3261e;

  --font: 'Geologica', 'Geologica Fallback', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --fs-display: clamp(2.35rem, 1.25rem + 3.2vw, 4.25rem);
  --fs-h2: clamp(1.95rem, 1.25rem + 2.4vw, 3.4rem);
  --fs-h3: clamp(1.2rem, 1.08rem + .45vw, 1.45rem);
  --fs-lead: clamp(1.08rem, 1rem + .3vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-label: .875rem;

  --g: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --sect: clamp(76px, 9vw, 144px);
  --r: 3px;
  --header: 72px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 var(--fs-body)/1.6 var(--font); font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; line-height: 1.05; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: var(--fs-display); letter-spacing: -.035em; line-height: 1; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -.012em; line-height: 1.2; }
h4 { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0; line-height: 1.3; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
address { font-style: normal; }
::selection { background: var(--blue); color: var(--on-blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.on-blue :focus-visible { outline-color: var(--on-blue); }
html { scrollbar-color: var(--line-strong) var(--ground); }
.num, .mono, .ptable td, .ptable th[scope=row], .price, .big-rate { font-variant-numeric: tabular-nums; }
.mono { font-weight: 400; letter-spacing: 0; }

[hidden] { display: none !important; }
.h2-like { font-size: var(--fs-h2); font-weight: 300; letter-spacing: -.025em; line-height: 1.05; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--blue); color: var(--on-blue); padding: 10px 16px; border-radius: var(--r); text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: min(var(--maxw), 100% - 2 * var(--g)); margin-inline: auto; }
.section { padding-block: var(--sect); position: relative; }
.section.tight-top { padding-top: 0; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.muted { color: var(--ink-2); }
.small-print { font-size: var(--fs-small); color: var(--ink-3); }

/* The facade: panel seams on a twelve-panel module, aligned to the content wrap */
.facade { position: relative; isolation: isolate; }
.facade::before {
  content: ''; position: absolute; inset: 0 max(var(--g), calc((100% - var(--maxw)) / 2)); z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--seam) 1px, transparent 1px) 0 0 / calc(100% / 12) 100%;
  border-right: 1px solid var(--seam);
}
.on-blue.facade::before { background-image: linear-gradient(90deg, var(--blue-seam) 1px, transparent 1px); border-color: var(--blue-seam); }
@media (max-width: 699px) { .facade::before { background-size: calc(100% / 4) 100%; } }
.on-blue { background: var(--blue); color: var(--on-blue); }
.on-blue .lead, .on-blue .muted, .on-blue .small-print { color: var(--on-blue-2); }

/* Section heads */
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 68px); max-width: 880px; }
.section-head.split { max-width: none; }
@media (min-width: 900px) {
  .section-head.split { grid-template-columns: repeat(12, 1fr); align-items: end; column-gap: 0; }
  .section-head.split > :first-child { grid-column: 1 / span 6; padding-right: 24px; }
  .section-head.split > :last-child { grid-column: 8 / span 5; }
}

/* Buttons */
.btn {
  --bg: var(--blue); --fg: var(--on-blue); --bd: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd); border-radius: var(--r);
  font-weight: 500; font-size: 1rem; letter-spacing: -.005em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; transition: transform .3s var(--ease); }
.btn:hover { --bg: var(--blue-deep); --bd: var(--blue-deep); }
.btn:hover svg.go { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn.ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line-strong); }
.btn.ghost:hover { --bg: var(--surface); --bd: var(--ink); }
.btn.light { --bg: var(--on-blue); --fg: var(--blue); --bd: var(--on-blue); }
.btn.light:hover { --bg: var(--blue-wash); --bd: var(--blue-wash); }
.btn.ghost-light { --bg: transparent; --fg: var(--on-blue); --bd: rgb(255 255 255 / .55); }
.btn.ghost-light:hover { --bg: rgb(255 255 255 / .1); --bd: var(--on-blue); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.text-link svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header);
  background: var(--ground); border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s; view-transition-name: site-header;
}
.site-header.is-compact { border-bottom-color: var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-name { display: grid; font-weight: 500; font-size: 1.12rem; letter-spacing: -.02em; line-height: 1.1; }
.brand-name small { font-size: .74rem; font-weight: 400; letter-spacing: .01em; color: var(--ink-3); }
.nav { margin-left: auto; display: none; }
.nav ul { display: flex; gap: 2px; }
.nav a { display: block; padding: 10px 12px; font-size: .95rem; text-decoration: none; color: var(--ink-2); border-radius: var(--r); transition: color .2s, background-color .2s; position: relative; }
.nav a:hover { color: var(--ink); background: var(--facade); }
.nav a[aria-current=page] { color: var(--ink); }
.nav a[aria-current=page]::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--blue); }
.header-cta { display: none; min-height: 44px; padding: 0 18px; }
.menu-btn { margin-left: auto; width: 46px; height: 46px; display: grid; place-items: center; background: none; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
@media (min-width: 1100px) { .nav { display: block; } .header-cta { display: inline-flex; } .site-header .menu-btn { display: none; } }

.menu-panel {
  position: fixed; inset: 0; z-index: 60; background: var(--blue); color: var(--on-blue);
  padding: 0 var(--g) 32px; display: flex; flex-direction: column; overflow-y: auto;
  clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .5s var(--ease), visibility 0s .5s;
}
.menu-panel.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .5s var(--ease); }
.menu-top { height: var(--header); display: flex; align-items: center; justify-content: space-between; }
.menu-top .brand-name { color: var(--on-blue); }
.menu-panel .menu-btn { border-color: rgb(255 255 255 / .4); color: var(--on-blue); margin-left: 0; }
.menu-panel ul { margin-top: 18px; border-top: 1px solid var(--blue-seam); }
.menu-panel li a { display: block; padding: 16px 0; font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 300; letter-spacing: -.02em; text-decoration: none; border-bottom: 1px solid var(--blue-seam); }
.menu-panel li a[aria-current=page] { color: var(--on-blue); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.menu-foot { margin-top: auto; padding-top: 28px; display: grid; gap: 10px; color: var(--on-blue-2); }
.menu-foot a { text-decoration: none; }

/* Photo windows: a white reveal around each real photo, square corners */
.plate { position: relative; background: var(--surface); padding: 6px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.plate img { width: 100%; height: 100%; object-fit: cover; border-radius: 1px; }
.plate.ratio-169 { aspect-ratio: 16 / 9; }
.plate.ratio-43 { aspect-ratio: 4 / 3; }
.plate.ratio-45 { aspect-ratio: 4 / 5; }
.plate.contain img { object-fit: contain; }
.plate .tag { position: absolute; left: 14px; top: 14px; background: var(--ink); color: var(--on-blue); font-size: .78rem; font-weight: 500; padding: 4px 9px; border-radius: 2px; }
.cap { font-size: var(--fs-small); color: var(--ink-3); margin-top: 10px; max-width: 48ch; }

/* ---------- Home: first viewport ---------- */
.hero { padding-block: clamp(20px, 3vw, 40px) clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; gap: 28px; }
.hero h1 { max-width: 16ch; }
.hero .lead { margin-top: 20px; }
.hero .actions { margin-top: 28px; }
.line-tiles { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.line-tiles a { display: grid; gap: 2px; padding: 14px 14px 16px; text-decoration: none; position: relative; transition: background-color .25s var(--ease); }
.line-tiles a + a { border-left: 1px solid var(--line); }
.line-tiles a:hover { background: var(--blue-wash); }
.line-tiles .t-name { font-weight: 500; font-size: .98rem; }
.line-tiles .t-price { font-size: var(--fs-small); color: var(--ink-2); }
.line-tiles .t-price b { display: block; font-size: clamp(1.25rem, 1rem + .9vw, 1.65rem); font-weight: 300; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: repeat(12, 1fr); column-gap: 0; align-items: stretch; }
  .hero-copy { grid-column: 1 / span 5; padding-right: 32px; display: flex; flex-direction: column; justify-content: center; }
  .hero-stage-col { grid-column: 6 / span 7; margin-right: calc(-1 * max(var(--g), (100vw - var(--maxw)) / 2)); }
}

/* The blue stage the drawn container stands on */
.stage { position: relative; background: var(--blue); color: var(--on-blue); border-radius: var(--r); overflow: hidden; isolation: isolate; }
.stage::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--blue-seam) 1px, transparent 1px) 0 0 / calc(100% / 7) 100%; opacity: .55; }
.hero-stage-col .stage { border-radius: var(--r) 0 0 var(--r); height: 100%; min-height: clamp(400px, calc(100svh - var(--header) - 60px), 760px); display: grid; grid-template-rows: 1fr auto; }
@media (max-width: 999px) { .hero-stage-col .stage { border-radius: var(--r); } }
.stage svg.iso { width: 100%; height: 100%; max-height: 640px; }
.stage-draw { display: grid; place-items: center; padding: 18px 12px 0; min-height: 0; }
.stage-proof { position: absolute; top: 18px; left: 18px; width: clamp(120px, 15vw, 200px); background: var(--surface); padding: 5px; border-radius: 2px; color: var(--ink); box-shadow: 0 16px 30px -18px rgb(5 14 30 / .7); }
.stage-proof img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: opacity .35s var(--ease); }
.stage-proof figcaption { font-size: .72rem; line-height: 1.3; color: var(--ink-2); padding: 6px 3px 2px; }
.stage-steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--blue-seam); }
.stage-steps button {
  position: relative; background: none; border: 0; color: var(--on-blue-2); text-align: left; padding: 14px 14px 16px; cursor: pointer;
  font-size: .86rem; line-height: 1.25; transition: color .25s;
}
.stage-steps button + button { border-left: 1px solid var(--blue-seam); }
.stage-steps button span { display: block; font-size: .74rem; opacity: .8; margin-bottom: 2px; font-variant-numeric: tabular-nums; }
.stage-steps button::before { content: ''; position: absolute; left: 0; top: -1px; height: 2px; width: calc(var(--p, 0) * 100%); background: var(--on-blue); }
.stage-steps button[aria-pressed=true], .stage-steps button:hover { color: var(--on-blue); }
.stage-note { position: absolute; right: 16px; top: 16px; font-size: .74rem; color: var(--on-blue-2); max-width: 22ch; text-align: right; line-height: 1.35; }
@media (max-width: 599px) {
  .stage-steps button { padding: 12px 8px 14px; font-size: .78rem; }
  .stage-proof { width: 112px; top: 12px; left: 12px; }
  .stage-note { display: none; }
}

/* Drawn container tokens (SVG classes from iso.js) */
.iso .f-top, .iso .f-front, .iso .f-side { stroke: var(--blue-night); stroke-width: 1; stroke-linejoin: round; }
.iso-shade { fill: var(--blue-night); opacity: .38; }
.iso { --fr-t: #c3cad0; --fr-f: #8d969d; --fr-s: #6f787f; }
.iso[data-frame=white] { --fr-t: #ffffff; --fr-f: #e6e9ea; --fr-s: #cfd4d6; }
.iso[data-frame=anthracite] { --fr-t: #59616a; --fr-f: #3d444b; --fr-s: #2c3237; }
.iso[data-frame=black] { --fr-t: #3a3d40; --fr-f: #232527; --fr-s: #17191a; }
.iso[data-frame=blue] { --fr-t: #4f86d6; --fr-f: #2f63b3; --fr-s: #234d8c; }
.iso[data-frame=grey] { --fr-t: #c3cad0; --fr-f: #8d969d; --fr-s: #6f787f; }
.iso[data-frame=red] { --fr-t: #e2584d; --fr-f: #c0352c; --fr-s: #962820; }
.iso[data-frame=yellow] { --fr-t: #f6cf4a; --fr-f: #e2ac17; --fr-s: #b98a0c; }
.iso-steel.f-top { fill: var(--fr-t); } .iso-steel.f-front { fill: var(--fr-f); } .iso-steel.f-side { fill: var(--fr-s); }
.iso-void { fill: var(--blue-night); fill-opacity: .28; stroke: var(--blue-night); }
.iso-joist { stroke: #c3cad0; stroke-width: 2; }
.iso-deck { fill: var(--wood); stroke: var(--blue-night); }
.iso-seam { stroke: var(--blue-night); stroke-opacity: .16; stroke-width: 1; }
.iso-seam-deck { stroke-opacity: .22; }
.iso-wall { fill: #f8f9f7; stroke: var(--blue-night); }
.iso-wall-end { fill: #dde1e0; }
.iso-wall-in { fill: #e7eae9; stroke: var(--blue-night); }
.iso-wall-in-end { fill: #d5d9d8; }
.iso-glass { fill: var(--glass); stroke: var(--blue-night); }
.iso-glint { stroke: #fff; stroke-opacity: .85; stroke-width: 2; }
.iso-door { fill: #3a4146; stroke: var(--blue-night); }
.iso-roof { fill: #eceeed; stroke: var(--blue-night); }
.iso-roof-back { fill: #cdd3d5; }
.iso-gable { fill: #dde1e0; stroke: var(--blue-night); }
.iso-wet { fill: #bcd3ea; stroke: var(--blue-night); stroke-opacity: .35; }
.iso-part.f-top { fill: #fff; } .iso-part.f-front { fill: #eef0ef; } .iso-part.f-side { fill: #dfe3e2; }
.iso-cut.f-top { fill: var(--ink); }
.iso-fixture.f-top { fill: #fff; } .iso-fixture.f-front { fill: #e8ecef; } .iso-fixture.f-side { fill: #cfd6dc; }
.iso-dim { stroke: var(--on-blue); stroke-width: 1.2; }
.iso-label { fill: var(--on-blue); font: 400 21px var(--font); font-variant-numeric: tabular-nums; }
.iso-person { fill: var(--on-blue); fill-opacity: .9; stroke: none; }
.iso-dims, .iso g { transition: opacity .4s var(--ease); }

/* ---------- Build sequence ---------- */
.build-grid { display: grid; gap: 28px; }
.build-stage { display: none; }
.build-steps { display: grid; gap: clamp(28px, 4vw, 48px); counter-reset: step; }
.build-step { display: grid; gap: 16px; }
.build-step .mini { background: var(--blue); border-radius: var(--r); aspect-ratio: 16 / 10; display: grid; place-items: center; }
.build-step .mini svg { width: 100%; height: 100%; }
.build-step-text { display: grid; gap: 10px; }
.build-step h3 { font-size: clamp(1.4rem, 1.15rem + .9vw, 1.95rem); font-weight: 300; letter-spacing: -.02em; }
.build-step h3 .n { color: var(--blue); font-variant-numeric: tabular-nums; margin-right: .4em; }
.build-step .facts { display: grid; gap: 6px; margin-top: 4px; font-size: var(--fs-small); color: var(--ink-2); }
.build-step .facts li { padding-left: 18px; position: relative; }
.build-step .facts li::before { content: ''; position: absolute; left: 0; top: .72em; width: 9px; height: 1px; background: var(--blue); }
.build-step .plate { aspect-ratio: 4 / 3; max-width: 520px; }
@media (min-width: 1000px) {
  .build-grid { grid-template-columns: repeat(12, 1fr); column-gap: 0; align-items: start; }
  .build-stage { display: block; grid-column: 1 / span 7; position: sticky; top: calc(var(--header) + 24px); padding-right: 32px; }
  .build-stage .stage { aspect-ratio: 16 / 11; display: grid; }
  .build-steps { grid-column: 8 / span 5; gap: 0; }
  .build-step { min-height: 78vh; align-content: center; padding-block: 40px; opacity: .38; transition: opacity .5s var(--ease); }
  .build-step.is-active { opacity: 1; }
  .build-step .mini { display: none; }
  .no-sticky .build-step { opacity: 1; min-height: 0; }
}

/* ---------- Line track (horizontal) ---------- */
.track-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: clamp(28px, 4vw, 48px); }
.track-nav { display: flex; gap: 8px; flex: none; }
.icon-btn { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--r); border: 1px solid var(--line-strong); background: transparent; color: inherit; cursor: pointer; transition: background-color .2s, border-color .2s, opacity .2s; }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { background: var(--surface); border-color: var(--ink); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(82vw, 360px); gap: 0;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
  padding-inline: max(var(--g), calc((100% - var(--maxw)) / 2)); scroll-padding-inline: max(var(--g), calc((100% - var(--maxw)) / 2));
  border-block: 1px solid var(--line);
}
.track::-webkit-scrollbar { display: none; }
.track > a { scroll-snap-align: start; display: grid; grid-template-rows: auto 1fr auto; text-decoration: none; padding: 22px 22px 0; border-left: 1px solid var(--line); background: var(--ground); transition: background-color .3s var(--ease); }
.track > a:last-child { border-right: 1px solid var(--line); }
.track > a:hover { background: var(--surface); }
.track .plate { aspect-ratio: 4 / 3; }
.track .plate img { transition: transform .8s var(--ease); }
.track > a:hover .plate img { transform: scale(1.035); }
.track h3 { margin-top: 20px; font-size: clamp(1.35rem, 1.15rem + .7vw, 1.75rem); font-weight: 300; letter-spacing: -.02em; }
.track p { margin-top: 10px; color: var(--ink-2); font-size: var(--fs-small); max-width: 34ch; }
.rail-tag { margin: 22px -22px 0; padding: 14px 22px 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: var(--fs-small); color: var(--ink-2); }
.rail-tag b { font-weight: 400; color: var(--ink); font-size: 1.12rem; font-variant-numeric: tabular-nums; }
.rail-tag .per { font-size: .8rem; color: var(--ink-3); margin-left: 4px; }
.track-progress { height: 2px; background: var(--line); margin-top: 18px; position: relative; overflow: hidden; }
.track-progress i { position: absolute; inset: 0 auto 0 0; width: 100%; background: var(--blue); transform-origin: left; transform: scaleX(var(--tp, .2)); transition: transform .2s linear; }

/* ---------- Configurator ---------- */
.cfg { display: grid; gap: 24px; }
.cfg-visual { display: grid; gap: 0; }
.cfg-visual .stage { aspect-ratio: 16 / 10; display: grid; }
.cfg-visual .stage-draw { padding: 8px; }
.cfg-tools { position: absolute; top: 14px; right: 14px; display: flex; border: 1px solid rgb(255 255 255 / .45); border-radius: var(--r); overflow: hidden; z-index: 2; }
.cfg-tools button { background: transparent; color: var(--on-blue); border: 0; padding: 8px 14px; font-size: .86rem; cursor: pointer; transition: background-color .2s, color .2s; }
.cfg-tools button + button { border-left: 1px solid rgb(255 255 255 / .45); }
.cfg-tools button[aria-pressed=true] { background: var(--on-blue); color: var(--blue); }
.cfg-caption { position: absolute; left: 16px; bottom: 12px; right: 16px; font-size: .76rem; color: var(--on-blue-2); line-height: 1.35; pointer-events: none; }
.cfg-read { background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r) var(--r); padding: clamp(18px, 2.4vw, 28px); display: grid; gap: 14px; }
.cfg-title { font-weight: 500; font-size: 1.05rem; line-height: 1.35; }
.cfg-title .sub { display: block; font-weight: 400; color: var(--ink-2); font-size: var(--fs-small); font-variant-numeric: tabular-nums; margin-top: 2px; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.price-big { font-size: clamp(2.6rem, 1.9rem + 2.6vw, 4.1rem); font-weight: 250; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; display: inline-flex; }
.price-big .dg { display: inline-block; overflow: hidden; height: 1em; line-height: 1; vertical-align: top; }
.price-big .dg > span { display: block; transition: transform .7s var(--ease); }
.price-big .dg > span > span { display: block; height: 1em; }
.badge { display: inline-block; background: var(--blue); color: var(--on-blue); font-size: .78rem; font-weight: 500; padding: 4px 9px; border-radius: 2px; }
.price-old { font-size: var(--fs-small); color: var(--ink-3); }
.vat { font-size: var(--fs-small); color: var(--ink-3); }
.cfg-inc { display: grid; gap: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.cfg-inc .mini-h { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0; margin-bottom: 8px; }
.cfg-inc.has-plan { grid-template-columns: 1fr; }
@media (min-width: 640px) { .cfg-inc.has-plan { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.cfg-plan { background: var(--surface); border: 1px solid var(--line); padding: 8px; border-radius: var(--r); }
.cfg-plan figcaption { font-size: .78rem; color: var(--ink-3); margin-top: 6px; }
.cfg-steps { display: grid; gap: 22px; align-content: start; }
.cfg-steps fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.cfg-steps fieldset[hidden] { display: none; }
.cfg-steps legend { font-weight: 600; font-size: var(--fs-label); margin-bottom: 10px; padding: 0; display: flex; gap: 10px; align-items: baseline; }
.cfg-steps legend .hint { font-weight: 400; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip > span {
  display: inline-flex; flex-direction: column; justify-content: center; min-height: 46px; padding: 6px 15px; border: 1px solid var(--line);
  border-radius: var(--r); background: var(--surface); font-size: .95rem; line-height: 1.2; cursor: pointer; font-variant-numeric: tabular-nums;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.chip .pm { font-size: .76rem; color: var(--ink-3); margin-top: 2px; }
.chip:hover > span { border-color: var(--ink); }
.chip input:checked + span { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.chip input:checked + span .pm { color: var(--on-blue-2); }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.cfg-mini { display: none; }
@media (min-width: 1000px) {
  .cfg { grid-template-columns: repeat(12, 1fr); column-gap: 0; align-items: start; }
  .cfg-visual { grid-column: 1 / span 8; padding-right: 32px; position: sticky; top: calc(var(--header) + 16px); }
  .cfg-steps { grid-column: 9 / span 4; }
}
@media (max-width: 999px) {
  .cfg-mini {
    display: flex; position: sticky; bottom: 10px; z-index: 20; justify-content: space-between; align-items: center; gap: 12px;
    background: var(--blue); color: var(--on-blue); padding: 12px 16px; border-radius: var(--r); text-decoration: none;
    box-shadow: 0 14px 30px -14px rgb(5 14 30 / .6); margin-top: 4px;
  }
  .cfg-mini b { font-weight: 400; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
  .cfg-mini span { font-size: .85rem; color: var(--on-blue-2); text-align: right; }
}

/* ---------- Story: floors ---------- */
.floors { display: grid; gap: 28px; }
.floors ol { border-top: 2px solid var(--ink); }
.floors li { display: grid; gap: 6px 24px; padding: 20px 0 22px; border-bottom: 1px solid var(--line); }
.floors .when { font-size: var(--fs-small); color: var(--blue); font-weight: 500; }
.floors h3 { font-weight: 400; }
.floors p { color: var(--ink-2); max-width: 52ch; }
@media (min-width: 700px) { .floors li { grid-template-columns: 1fr 2fr; } .floors li h3 { grid-column: 2; } .floors li p { grid-column: 2; } .floors .when { grid-row: 1 / span 2; } }
@media (min-width: 1000px) {
  .floors { grid-template-columns: repeat(12, 1fr); column-gap: 0; }
  .floors > figure { grid-column: 1 / span 5; padding-right: 32px; }
  .floors > div { grid-column: 7 / span 6; }
}

/* ---------- Photo facade (home) ---------- */
.windows { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.windows a { display: block; }
.windows .plate { aspect-ratio: 4 / 3; transition: border-color .3s; }
.windows .plate img { transition: transform .8s var(--ease); }
.windows a:hover .plate img { transform: scale(1.04); }
.windows a:hover .plate { border-color: var(--ink); }
@media (min-width: 700px) { .windows { grid-template-columns: repeat(4, 1fr); } .windows a:nth-child(1) { grid-column: span 2; grid-row: span 2; } .windows a:nth-child(1) .plate { aspect-ratio: auto; height: 100%; } }

/* ---------- Steps (how buying works) ---------- */
.stations { display: grid; border-top: 1px solid var(--line); }
.stations li { padding: 22px 0 24px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.stations h3 .n { color: var(--blue); font-variant-numeric: tabular-nums; margin-right: .45em; }
.stations li { align-content: start; }
.stations p { color: var(--ink-2); max-width: 40ch; }
@media (min-width: 800px) { .stations { grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); } .stations li { border-bottom: 0; padding: 26px 24px 28px 0; } .stations li + li { border-left: 1px solid var(--line); padding-left: 24px; } }

/* ---------- Offices / CTA ---------- */
.cta-band { display: grid; gap: 24px; align-items: end; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.3fr 1fr; } .cta-band .actions { justify-content: flex-end; } }
.offices { display: grid; gap: 0; border-top: 1px solid var(--blue-seam); margin-top: clamp(40px, 5vw, 64px); }
.offices .office { padding: 26px 0 28px; display: grid; gap: 12px; border-bottom: 1px solid var(--blue-seam); }
.offices address { color: var(--on-blue-2); max-width: 44ch; }
.rows { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.rows a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
.rows a:hover { border-bottom-color: currentColor; }
.rows svg { width: 18px; height: 18px; }
@media (min-width: 900px) { .offices { grid-template-columns: 1fr 1fr; } .offices .office:nth-child(2) { border-left: 1px solid var(--blue-seam); padding-left: 32px; } .offices .office { padding-right: 32px; } }
.section:not(.on-blue) .offices { border-color: var(--line); }
.section:not(.on-blue) .offices .office { border-color: var(--line); }
.section:not(.on-blue) .offices address { color: var(--ink-2); }

/* ---------- Inner pages ---------- */
.page-head { padding-block: clamp(32px, 5vw, 72px) clamp(48px, 6vw, 88px); }
.page-head .grid { display: grid; gap: 28px; }
.page-head h1 { max-width: 13ch; }
.page-head .lead { margin-top: 20px; }
.page-head .actions { margin-top: 28px; }
.crumb { display: flex; gap: 8px; font-size: var(--fs-small); color: var(--ink-3); margin-bottom: 22px; }
.crumb a { text-decoration: none; color: var(--ink-2); }
.crumb a:hover { color: var(--ink); text-decoration: underline; }
@media (min-width: 960px) {
  .page-head .grid { grid-template-columns: repeat(12, 1fr); column-gap: 0; align-items: center; }
  .page-head .grid > :first-child { grid-column: 1 / span 6; padding-right: 32px; }
  .page-head .grid > :last-child { grid-column: 8 / span 5; }
}

.line-tabs { position: sticky; top: var(--header); z-index: 30; background: var(--ground); border-block: 1px solid var(--line); }
.line-tabs ul { display: flex; overflow-x: auto; scrollbar-width: none; }
.line-tabs ul::-webkit-scrollbar { display: none; }
.line-tabs a { display: flex; gap: 8px; align-items: baseline; padding: 15px 20px; text-decoration: none; white-space: nowrap; border-right: 1px solid var(--line); color: var(--ink-2); position: relative; transition: color .2s, background-color .2s; }
.line-tabs li:first-child a { border-left: 1px solid var(--line); }
.line-tabs a:hover { color: var(--ink); background: var(--surface); }
.line-tabs a[aria-current=true] { color: var(--ink); background: var(--surface); }
.line-tabs a[aria-current=true]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--blue); }

.line-intro { display: grid; gap: 28px; margin-bottom: clamp(40px, 5vw, 72px); }
.line-intro .lead { margin-top: 18px; }
@media (min-width: 960px) {
  .line-intro { grid-template-columns: repeat(12, 1fr); column-gap: 0; align-items: center; }
  .line-intro > :first-child { grid-column: 1 / span 6; padding-right: 32px; }
  .line-intro > :last-child { grid-column: 8 / span 5; }
}
.from-price { font-size: var(--fs-small); color: var(--ink-2); }
.from-price b { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 300; color: var(--ink); letter-spacing: -.03em; margin-left: 6px; font-variant-numeric: tabular-nums; }
.on-blue .from-price, .on-blue .from-price b { color: var(--on-blue); }
.per { font-size: .85rem; color: var(--ink-3); margin-left: 6px; }

.roof-switch { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line-strong); border-radius: var(--r); margin-bottom: 28px; overflow: hidden; background: var(--surface); }
.roof-switch button { background: none; border: 0; padding: 11px 18px; cursor: pointer; font-size: .95rem; color: var(--ink-2); transition: background-color .2s, color .2s; }
.roof-switch button + button { border-left: 1px solid var(--line-strong); }
.roof-switch button[aria-selected=true] { background: var(--blue); color: var(--on-blue); }
.roof-switch button:hover:not([aria-selected=true]) { color: var(--ink); background: var(--facade); }
.models { display: grid; gap: 20px; }
@media (min-width: 1000px) { .models.two { grid-template-columns: 1fr 1fr; } }
.model { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 2.6vw, 32px); display: grid; gap: 22px; align-content: start; }
.model-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.model-head h3 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); font-weight: 300; letter-spacing: -.02em; }
.split-lists { display: grid; gap: 18px; }
@media (min-width: 640px) { .split-lists { grid-template-columns: 1.3fr 1fr; } }
.split-lists h4 { margin-bottom: 8px; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 6px; line-height: 1.45; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .38em; width: 10px; height: 6px; border: 1.5px solid var(--blue); border-top: 0; border-right: 0; transform: rotate(-45deg); }
.ticks.small li { font-size: var(--fs-small); }
.ticks.plus li::before { width: 11px; height: 11px; top: .32em; border: 0; transform: none; background: linear-gradient(var(--blue), var(--blue)) center / 11px 1.5px no-repeat, linear-gradient(var(--blue), var(--blue)) center / 1.5px 11px no-repeat; }
.ticks.dash li::before { width: 10px; height: 0; top: .72em; border: 0; border-top: 1.5px solid var(--ink-3); transform: none; }
.on-blue .ticks li::before { border-color: var(--on-blue); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.plans.single { grid-template-columns: 1fr; max-width: 360px; }
.plans figure { display: grid; gap: 6px; }
.plans figcaption { font-size: .8rem; color: var(--ink-3); }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 6px; }

.ptable-wrap { color: var(--ink); position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.ptable { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ptable caption { text-align: left; padding: 12px 16px; font-weight: 500; }
.ptable th, .ptable td { padding: 11px 16px; text-align: right; border-bottom: 1px solid var(--seam); white-space: nowrap; }
.ptable thead th { font-weight: 600; font-size: .82rem; color: var(--ink-2); background: var(--ground); border-bottom: 1px solid var(--line); }
.ptable th[scope=row], .ptable thead th:first-child { text-align: left; font-weight: 400; color: var(--ink); }
.ptable tbody tr:last-child > * { border-bottom: 0; }
.ptable tbody tr { transition: background-color .15s; }
.ptable tbody tr:hover { background: var(--blue-wash); }
.ptable .area { display: block; font-size: .78rem; color: var(--ink-3); }
.ptable .na { color: var(--ink-3); }
.ptable .promo { color: var(--blue); font-weight: 500; }
.ptable .promo .old { display: block; font-size: .76rem; font-weight: 400; color: var(--ink-3); }
.table-note { font-size: .85rem; color: var(--ink-3); margin-top: 10px; }

.annot { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .annot { grid-template-columns: 1fr 1fr; gap: 48px; } }
.annot svg text { font-family: var(--font); }
.spec-list { display: grid; border-top: 1px solid var(--blue-seam); }
.spec-list li { display: grid; grid-template-columns: 2.2em 6.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--blue-seam); font-size: var(--fs-small); }
.spec-list .k { color: var(--on-blue-2); font-variant-numeric: tabular-nums; }
.spec-list b { font-weight: 500; }
.spec-list span:last-child { color: var(--on-blue-2); }
.claims { display: grid; gap: 0; margin-top: clamp(36px, 4vw, 56px); border-top: 1px solid var(--blue-seam); }
.claims li { padding: 18px 0; border-bottom: 1px solid var(--blue-seam); font-size: 1.05rem; }
@media (min-width: 800px) { .claims { grid-template-columns: repeat(4, 1fr); } .claims li { padding: 22px 22px 22px 0; border-bottom: 0; } .claims li + li { border-left: 1px solid var(--blue-seam); padding-left: 22px; } }
.annot svg { width: 100%; height: auto; }
.annot .draw { fill: none; stroke: var(--on-blue); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.annot .draw.thin { stroke-width: 1; opacity: .55; }
.annot .lead-l { stroke: var(--on-blue-2); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.annot .node { fill: var(--blue); stroke: var(--on-blue); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.annot .nlabel { fill: var(--on-blue); font: 400 15px var(--font); font-variant-numeric: tabular-nums; }
.on-blue .table-note { color: var(--on-blue-2); }
.on-blue .table-note a { color: var(--on-blue); }
.on-blue .plate { border-color: var(--blue-seam); }
.welded-draw { background: var(--surface); border-radius: var(--r); padding: 12px; color: var(--ink); }

.pack-vs { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.pack-vs .bay { padding: 22px; display: grid; gap: 8px; align-content: start; }
.pack-vs .bay + .bay { border-top: 1px solid var(--line); }
@media (min-width: 800px) { .pack-vs { grid-template-columns: repeat(3, 1fr); } .pack-vs .bay + .bay { border-top: 0; border-left: 1px solid var(--line); } }
.pack-vs svg { width: 100%; max-width: 260px; }
.pack-vs .fillg { fill: var(--facade); stroke: var(--ink); stroke-width: 1; stroke-linejoin: round; }
.pack-vs .draw { fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.pack-vs .dim-t { font: 400 12px var(--font); fill: var(--ink-2); }
.note { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; font-size: var(--fs-small); }
.note svg { width: 20px; height: 20px; flex: none; color: var(--blue); margin-top: 2px; }
.note span { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.rates { display: grid; border-top: 1px solid var(--line); }
.rates li { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.rates li span:last-child { color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }

.fp { display: grid; gap: clamp(36px, 4vw, 56px); }
.fp-size { font-size: var(--fs-h3); font-weight: 400; margin-bottom: 18px; display: flex; gap: 14px; align-items: baseline; }
.fp-size .mono { font-size: var(--fs-small); color: var(--ink-3); }
.fp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.fp-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); display: grid; transition: border-color .25s; }
.fp-card:hover { border-color: var(--ink); }
.fp-img { padding: 10px; border-bottom: 1px solid var(--line); aspect-ratio: 4 / 3; display: grid; place-items: center; }
.fp-img img { max-height: 100%; object-fit: contain; }
.fp-body { padding: 14px 16px 16px; display: grid; gap: 10px; }
.fp-body h4 { font-size: 1rem; font-weight: 500; }
.fp-body dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fp-body dt { font-size: .78rem; color: var(--ink-3); }
.fp-body dd { margin: 0; font-size: 1.15rem; font-weight: 300; font-variant-numeric: tabular-nums; }

/* Steel comparison */
.cmp-wrap { color: var(--ink); position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.cmp { width: 100%; border-collapse: collapse; font-size: var(--fs-small); min-width: 560px; }
.cmp th, .cmp td { padding: 11px 14px; border-bottom: 1px solid var(--seam); text-align: left; vertical-align: top; }
.cmp thead th { background: var(--ground); vertical-align: bottom; border-bottom: 1px solid var(--line); }
.cmp thead th:not(.cmp-item) { text-align: center; width: 17%; }
.cmp-item { font-weight: 600; font-size: .82rem; color: var(--ink-2); }
.cmp-opt { display: block; font-weight: 500; font-size: .95rem; }
.cmp-opt-s { display: none; }
.big-rate { display: block; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); font-weight: 300; letter-spacing: -.03em; color: var(--ink); }
.cmp .per { display: block; margin: 0; font-weight: 400; }
.cmp .grp th { background: var(--blue-wash); font-weight: 500; font-size: .88rem; }
.cmp td.yes, .cmp td.no { text-align: center; }
.cmp td.yes::before { content: ''; display: inline-block; width: 11px; height: 6px; border: 1.5px solid var(--blue); border-top: 0; border-right: 0; transform: rotate(-45deg) translateY(-2px); }
.cmp td.no::before { content: ''; display: inline-block; width: 10px; border-top: 1.5px solid var(--line-strong); vertical-align: middle; }
@media (max-width: 640px) { .cmp-opt { display: none; } .cmp-opt-s { display: block; font-weight: 600; } .cmp { min-width: 0; } .cmp thead th:not(.cmp-item) { width: 22%; } }

/* Prefab terms */
.terms { display: grid; gap: 20px; }
@media (min-width: 1000px) { .terms { grid-template-columns: 1fr 1fr; } }
.terms > article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 2.6vw, 32px); display: grid; gap: 22px; align-content: start; }
.list-head { font-weight: 600; font-size: var(--fs-label); margin-bottom: 10px; }
.payplan { display: flex; height: 40px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.payplan div { display: grid; place-items: center; font-size: .82rem; font-variant-numeric: tabular-nums; background: var(--blue-wash); color: var(--ink); }
.payplan div:nth-child(2) { background: var(--blue); color: var(--on-blue); }
.payplan div:nth-child(3) { background: var(--blue-deep); color: var(--on-blue); }
.payplan div + div { border-left: 1px solid var(--surface); }
.paylegend { display: grid; gap: 6px; margin-top: 12px; font-size: var(--fs-small); color: var(--ink-2); }
.paylegend b { font-weight: 500; color: var(--ink); margin-right: 8px; font-variant-numeric: tabular-nums; }
.who { display: grid; gap: 18px; }
@media (min-width: 640px) { .who { grid-template-columns: 1fr 1fr; } }
.render-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.render-grid .plate { border-color: var(--blue-seam); }
.on-blue .cap { color: var(--on-blue-2); }

/* Projects */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.filters button { display: inline-flex; gap: 8px; align-items: baseline; min-height: 44px; padding: 0 15px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.filters button .mono { font-size: .8rem; color: var(--ink-3); }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed=true] { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.filters button[aria-pressed=true] .mono { color: var(--on-blue-2); }
.masonry { columns: 1; column-gap: 10px; }
@media (min-width: 560px) { .masonry { columns: 2; } }
@media (min-width: 900px) { .masonry { columns: 3; } }
@media (min-width: 1240px) { .masonry { columns: 4; } }
.masonry figure { break-inside: avoid; margin-bottom: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 6px 0; }
.masonry figure[hidden] { display: none; }
.masonry:empty { min-height: 160vh; }
.masonry button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; }
.masonry button img { width: 100%; transition: transform .7s var(--ease); }
.masonry button:hover img { transform: scale(1.03); }
.masonry figcaption { font-size: .82rem; color: var(--ink-2); padding: 8px 4px 10px; line-height: 1.4; }
.masonry figure.is-entering { animation: win-in .5s var(--ease) both; }
@keyframes win-in { from { opacity: 0; transform: translateY(10px); } }

.lightbox { position: fixed; inset: 0; z-index: 70; background: rgb(10 16 28 / .96); color: var(--on-blue); display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .3s; }
.lb-top, .lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px var(--g); }
.lb-stage { display: grid; place-items: center; padding: 0 var(--g); min-height: 0; }
.lb-stage img { max-height: 100%; max-width: 100%; object-fit: contain; border: 6px solid #fff; border-radius: 2px; view-transition-name: lb-photo; }
.lb-bar p { text-align: center; font-size: var(--fs-small); color: var(--on-blue-2); }
.lightbox .icon-btn { border-color: rgb(255 255 255 / .4); color: var(--on-blue); }
.lightbox .icon-btn:hover { background: rgb(255 255 255 / .1); border-color: #fff; }
.lb-count { font-size: var(--fs-small); color: var(--on-blue-2); font-variant-numeric: tabular-nums; }

/* Contact */
.contact-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: repeat(12, 1fr); column-gap: 0; } .contact-grid .quick { grid-column: 1 / span 5; padding-right: 32px; } .contact-grid .form { grid-column: 6 / span 7; } }
.quick { display: grid; border-top: 1px solid var(--line); }
.quick a { display: grid; grid-template-columns: 44px 1fr 18px; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: background-color .2s, padding .3s var(--ease); }
.quick a:hover { background: var(--surface); padding-left: 10px; padding-right: 10px; }
.quick .ic { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r); color: var(--blue); background: var(--surface); }
.quick .ic svg { width: 20px; height: 20px; }
.quick a > span:not(.ic) { display: grid; gap: 2px; min-width: 0; }
.quick b { font-weight: 500; }
.quick a > span:not(.ic) > span { color: var(--ink-2); font-size: var(--fs-small); overflow-wrap: anywhere; }
.quick .arrow { width: 18px; height: 18px; color: var(--ink-3); transition: transform .3s var(--ease); }
.quick a:hover .arrow { transform: translateX(3px); color: var(--blue); }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 36px); display: grid; gap: 16px; }
.form h2 { font-size: var(--fs-h3); font-weight: 400; }
.form .row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: var(--fs-label); }
.field .opt { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea { min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--ground); transition: border-color .2s, box-shadow .2s, background-color .2s; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-strong); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: var(--surface); box-shadow: 0 0 0 3px rgb(31 76 154 / .16); }
.field [aria-invalid=true] { border-color: var(--error); }
.field ::placeholder { color: var(--ink-3); }
.form-msg { font-size: var(--fs-small); min-height: 1.4em; }
.form-msg.err { color: var(--error); }
.form-msg.ok { color: var(--blue); }

/* Footer */
.site-footer { padding-block: clamp(56px, 7vw, 96px) 28px; }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.site-footer .brand-name small { color: var(--on-blue-2); }
.site-footer .brand svg rect { fill: var(--on-blue); }
.site-footer .brand svg path { stroke: var(--blue); }
.foot-brand p { margin-top: 16px; color: var(--on-blue-2); max-width: 38ch; font-size: var(--fs-small); }
.site-footer h2 { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0; margin-bottom: 12px; }
.site-footer ul { display: grid; gap: 7px; font-size: var(--fs-small); color: var(--on-blue-2); }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { color: var(--on-blue); text-decoration: underline; }
.social { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-size: var(--fs-small); text-decoration: none; }
.social svg { width: 20px; height: 20px; }
.foot-base { margin-top: clamp(40px, 5vw, 64px); padding-top: 18px; border-top: 1px solid var(--blue-seam); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .82rem; color: var(--on-blue-2); }

/* Reveal: content is visible by default; with JS it settles in once */
.js [data-reveal] { transform: translateY(12px); transition: transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal].is-in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

/* Grid and flex children may shrink below their content (tables scroll inside their frame) */
.models > *, .model > *, .terms > article > *, .annot > *, .cfg > *, .cfg-read > *, .cfg-inc > *, .line-intro > *, .contact-grid > *, .floors > *, .build-grid > *, .hero-grid > *, .page-head .grid > * { min-width: 0; }

/* Phones: drawing, then the choices, then the price and what is included */
@media (max-width: 999px) {
  .cfg-visual { display: contents; }
  .cfg-visual .stage { order: 1; }
  .cfg-steps { order: 2; }
  .cfg-read { order: 3; border-top: 1px solid var(--line); border-radius: var(--r); }
  .hero-stage-col .stage { min-height: 0; aspect-ratio: 1 / 1.02; }
  .cfg-visual .stage { aspect-ratio: 4 / 3; }
}

@media (max-width: 699px) {
  .cfg-caption { position: static; order: 3; padding: 10px 14px 12px; color: var(--on-blue-2); background: var(--blue); border-top: 1px solid var(--blue-seam); }
  .cfg-visual .stage { aspect-ratio: auto; grid-template-rows: auto auto; }
  .cfg-visual .stage-draw { padding: 44px 0 0; }
  .cfg-tools { top: 10px; right: 10px; }
}
@media (max-width: 599px) {
  .stage-proof { width: 84px; padding: 3px; top: 10px; left: 10px; }
  .stage-proof figcaption { display: none; }
  .hero-stage-col .stage { aspect-ratio: auto; }
  .hero .stage-draw { padding: 70px 0 6px; }
}

/* Frame colour swatches (welded containers: the buyer chooses the colour of the frame and corners) */
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { position: relative; }
.swatch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.swatch span:not(.sr-only) { display: block; width: 36px; height: 36px; border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--sw); cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s; }
.swatch:hover span:not(.sr-only) { transform: translateY(-2px); }
.swatch input:checked + span { box-shadow: 0 0 0 2px var(--ground), 0 0 0 4px var(--blue); }
.swatch input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 4px; }
.cfg-colour legend .picked { font-weight: 400; color: var(--ink-2); }
.cfg-steps .colour-note { font-size: .8rem; color: var(--ink-3); margin-top: 8px; }
