/* BelGrand — landing */

:root {
  --paper: #EEEDE6;
  --paper-2: #E3E1D6;
  --ink: #1E1F1C;
  --ink-2: #4A4B44;
  --olive: #9F9A73;
  --olive-ink: #6F6B4C;
  --forest: #283129;
  --forest-2: #323D33;
  --pine: #D4A161;
  --copper: #B27B4E;

  --font: "Geologica", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(20px, 4.2vw, 64px);
  --max: 1440px;
  --ease: cubic-bezier(.65, 0, .2, 1);
  --ease-out: cubic-bezier(.2, .8, .2, 1);

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --step-3: clamp(2.25rem, 1.4rem + 3.6vw, 4.75rem);
  --step-4: clamp(3rem, 0.8rem + 6.4vw, 7.25rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  font-weight: 350;
  line-height: 1.6;
  font-variation-settings: "SHRP" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }

h1, h2 {
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 0.95;
  font-variation-settings: "SHRP" 100;
}
h2 { font-size: var(--step-3); }
h3 {
  font-size: var(--step-1);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: fixed;
  left: 12px; top: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-160%);
  transition: transform .2s;
}
.skip:focus { transform: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 450;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s;
}
.btn-solid { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--forest); border-color: var(--forest); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-pine { background: var(--pine); border-color: var(--pine); color: var(--ink); }
.btn-pine:hover { background: var(--paper); border-color: var(--paper); }

/* Navigation */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px var(--gutter);
  transition: transform .5s var(--ease), background-color .4s;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.nav.is-hidden { transform: translateY(-100%); }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  text-decoration: none;
}
.brand-mark { width: 38px; }
.brand-word { width: 118px; }

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.9375rem;
}
.nav-links a {
  position: relative;
  text-decoration: none;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-menu-phone { display: none; }

.nav-phone {
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before {
  display: block;
  width: 26px;
  height: 1.5px;
  margin: 0 auto;
  background: currentColor;
  transition: transform .4s var(--ease);
}
.nav-toggle-bars { transform: translateY(-4px); }
.nav-toggle-bars::before { content: ""; transform: translateY(8px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: rotate(-90deg); }

/* Hero: full-bleed photo that folds into a house silhouette on scroll */
.hero { position: relative; }
.js .hero { height: 240vh; }
.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  background: var(--forest);
}
.js .hero-media { clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%); }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 60%;
}
.js .hero-media img {
  position: absolute;
  top: 0; left: 0;
  max-width: none;
  object-fit: fill;
  transform-origin: 0 0;
  will-change: transform;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgb(18 22 18 / .82) 0%, rgb(18 22 18 / .45) 38%, rgb(18 22 18 / 0) 66%),
    linear-gradient(to bottom, rgb(18 22 18 / .5) 0%, rgb(18 22 18 / 0) 22%);
  opacity: var(--shade, 1);
  pointer-events: none;
}

.hero-text {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: end;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(32px, 5vh, 64px);
  color: var(--paper);
}
.hero-copy { grid-column: 1 / 9; }
.hero-title {
  font-size: clamp(2.6rem, 0.9rem + 5.1vw, 6.25rem);
  line-height: 0.94;
  margin-bottom: clamp(20px, 3.5vh, 36px);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line > span { display: inline-block; }
.hero-lede {
  max-width: 31rem;
  font-size: var(--step-1);
  line-height: 1.5;
  color: rgb(238 237 230 / .84);
  margin-bottom: clamp(24px, 4vh, 36px);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-light { background: transparent; color: var(--paper); border-color: rgb(238 237 230 / .7); }
.btn-light:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

.hero-tag {
  grid-column: 10 / 13;
  justify-self: end;
  display: grid;
  gap: 2px;
  padding: 16px 0 6px 18px;
  border-left: 1px solid rgb(238 237 230 / .45);
  font-size: var(--step--1);
  text-decoration: none;
  color: rgb(238 237 230 / .78);
}
.hero-tag-name { font-size: 1.0625rem; color: var(--paper); }
.hero-tag-meta { white-space: nowrap; }
.hero-tag-link {
  margin-top: 8px;
  color: var(--paper);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-underline-offset .3s;
}
.hero-tag:hover .hero-tag-link { text-underline-offset: 7px; }

/* End state: the photo becomes the word "дом" */
.hero-end {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.22em;
  padding: 72px var(--gutter) 24px;
  font-size: var(--step-4);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.035em;
  font-variation-settings: "SHRP" 100;
  white-space: nowrap;
  pointer-events: none;
}
.hero-slot {
  position: relative;
  flex: 0 0 auto;
  width: 0.92em;
  height: 0.92em;
  transform: translateY(-0.05em);
}
/* The photo folds into a letter-sized A-frame icon */
.hero-icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.hi-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 7.5;
  stroke-linecap: square;
}
.hi-thin { stroke-width: 3.5; stroke-linecap: butt; }
.hi-glass { fill: var(--pine); }

.hero-end-a, .hero-end-b {
  opacity: var(--end, 0);
  transition: none;
}
.hero-end-a { transform: translateX(calc((1 - var(--end, 0)) * -48px)); }
.hero-end-b { transform: translateX(calc((1 - var(--end, 0)) * 48px)); }

/* Load sequence: text arrives once the house has opened */
.js .hero-title .line > span { transform: translateY(105%); }
.js .hero-lede, .js .hero-actions, .js .hero-tag { opacity: 0; }
.hero.is-ready .hero-title .line > span { animation: line-up 1.1s var(--ease) both; }
.hero.is-ready .hero-title .line:nth-child(1) > span { animation-delay: 1.05s; }
.hero.is-ready .hero-title .line:nth-child(2) > span { animation-delay: 1.15s; }
.hero.is-ready .hero-title .line:nth-child(3) > span { animation-delay: 1.25s; }
.hero.is-ready .hero-lede,
.hero.is-ready .hero-actions,
.hero.is-ready .hero-tag { animation: fade 1s ease 1.7s both; }

@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Nav sits on the dark photo at the very top */
.nav:not(.is-scrolled):not(.is-open) { color: var(--paper); }

/* Shared section head */
.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 88px);
}
.section-head h2 { grid-column: 1 / 8; }
.section-head p {
  grid-column: 9 / 13;
  max-width: 26rem;
  color: var(--ink-2);
}

/* Heading reveal: one consistent motion across sections */
.js [data-reveal] {
  clip-path: inset(0 0 100% 0);
  transform: translateY(0.35em);
  transition: clip-path 1.1s var(--ease), transform 1.1s var(--ease);
}
.js [data-reveal].is-in { clip-path: inset(0 0 -0.2em 0); transform: none; }

.js [data-unclip] {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.4s var(--ease);
}
.js [data-unclip] img { transform: scale(1.15); transition: transform 1.8s var(--ease); }
.js [data-unclip].is-in { clip-path: inset(0); }
.js [data-unclip].is-in img { transform: none; }

/* Intro */
.intro {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(96px, 14vw, 200px) var(--gutter) clamp(80px, 10vw, 160px);
}
.intro-statement {
  max-width: 22em;
  font-size: var(--step-2);
  font-size: clamp(1.625rem, 1rem + 2.4vw, 3.25rem);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: clamp(64px, 9vw, 128px);
}
.intro-statement .w { transition: opacity .25s linear; }

.intro-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.intro-points li {
  padding-top: 20px;
  border-top: 1px solid var(--ink);
}
.intro-points h3 { margin-bottom: 10px; }
.intro-points p { max-width: 24rem; color: var(--ink-2); }

/* Build sequence */
.build {
  position: relative;
  height: 700vh;
  background: var(--paper-2);
  color: var(--ink);
  --tree: var(--olive);
}
.build-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr;
  column-gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 104px var(--gutter) 40px;
}
.build-head {
  grid-column: 1 / 13;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}
.build-hint { color: var(--ink-2); font-size: var(--step--1); transition: opacity .5s; }
.build.is-started .build-hint { opacity: 0; }

.build-stage {
  grid-column: 1 / 9;
  align-self: center;
  min-height: 0;
}
.build-scene {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100svh - 220px);
  overflow: visible;
}
.build-scene * { transform-box: fill-box; }
.build-scene path, .build-scene ellipse { stroke-linejoin: miter; }
.sc-mtn { fill: none; stroke: var(--ink); stroke-width: 1.2; opacity: .35; }
.sc-tree { fill: var(--tree); }
.sc-ground { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.sc-hatch { fill: none; stroke: var(--ink); stroke-width: 1; opacity: .3; }
.sc-ink { fill: var(--ink); }
.sc-frame { fill: var(--ink); opacity: .82; }
.sc-nogging { fill: none; stroke: var(--ink); stroke-width: 4; }
.sc-rafter { fill: none; stroke: var(--ink); stroke-width: 5; }
.sc-roof { fill: none; stroke: #2A2B27; stroke-width: 16; }
.sc-glare { fill: none; stroke: #fff; stroke-width: 9; }
.sc-power { fill: none; stroke: var(--pine); stroke-width: 2.5; }
.sc-water { fill: none; stroke: #6F8F9A; stroke-width: 2.5; }
.sc-power-dot { fill: var(--pine); }
.sc-water-dot { fill: #6F8F9A; }
.sc-wire { fill: none; stroke: #2A2B27; stroke-width: 1.5; }
.sc-ring { fill: none; stroke: #2A2B27; stroke-width: 2.5; }
.sc-mullion { fill: none; stroke: #2A2B27; stroke-width: 6; }
.sc-furniture { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.sc-pot { fill: #F4F2EC; stroke: var(--ink); stroke-width: 1; }
.sc-stem { fill: none; stroke: #4F5E40; stroke-width: 2; }
.sc-leaf { fill: #5C6B4A; transform-box: view-box; }
.sc-star { fill: #EEEDE6; }

.build-panel {
  grid-column: 9 / 13;
  align-self: center;
}
.build-day {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}
.build-day-label, .build-day-of { color: var(--ink-2); }
.build-day-num {
  min-width: 1.3em;
  font-size: clamp(4rem, 2rem + 6vw, 8rem);
  font-weight: 300;
  line-height: 0.85;
  letter-spacing: -0.05em;
  font-variation-settings: "SHRP" 100;
}

.build-ruler {
  display: grid;
  grid-template-columns: repeat(30, 1fr);
  align-items: end;
  gap: 3px;
  height: 18px;
  margin-bottom: 32px;
}
.build-ruler i {
  display: block;
  height: 8px;
  background: color-mix(in srgb, var(--ink) 22%, transparent);
  transition: background-color .25s, height .25s;
}
.build-ruler i:nth-child(5n) { height: 14px; }
.build-ruler i.on { background: var(--ink); }

.build-steps { counter-reset: step; }
.build-steps li {
  position: relative;
  padding: 11px 0 11px 64px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  color: color-mix(in srgb, var(--ink) 45%, transparent);
  transition: color .4s;
}
.build-steps li::before {
  content: attr(data-days);
  position: absolute;
  left: 0; top: 14px;
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
}
.build-steps h3 { font-size: 1.0625rem; font-weight: 450; }
.build-steps p {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
  transition: max-height .6s var(--ease), opacity .4s, margin .6s var(--ease);
}
.build-steps li.is-active { color: var(--ink); }
.build-steps li.is-active p { max-height: 7em; opacity: 1; margin-top: 6px; }
.build-steps li.is-done { color: var(--ink-2); }

/* Series: the photo lives inside the silhouette of each house type */
.series {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(96px, 12vw, 180px) var(--gutter);
}

.series-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  margin-bottom: clamp(32px, 4vw, 56px);
}
.series-tabs button {
  display: grid;
  justify-items: start;
  gap: 4px;
  padding: 0 12px 20px 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  color: color-mix(in srgb, var(--ink) 50%, transparent);
  transition: color .3s;
}
.series-tabs button:hover,
.series-tabs button[aria-selected="true"] { color: var(--ink); }
.series-tabs svg {
  width: 48px; height: 32px;
  margin-bottom: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linejoin: round;
}
.series-tabs button[aria-selected="true"] svg path { stroke-dasharray: 1; animation: draw 1s var(--ease) both; }
.series-tabs button[aria-selected="true"] svg path + path { animation-delay: .35s; }
.series-name { font-size: var(--step-1); font-weight: 400; letter-spacing: -0.01em; line-height: 1.2; }
.series-meta { font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.series-tabs-bar {
  position: absolute;
  left: 0; bottom: -1px;
  height: 2px;
  width: 0;
  background: var(--ink);
  transition: transform .7s var(--ease), width .7s var(--ease);
}

.series-body {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: start;
}

/* Stage: full photo; a house silhouette only opens the next one */
.series-stage {
  grid-column: 1 / 8;
  position: relative;
  aspect-ratio: 16 / 12;
  overflow: hidden;
  background: var(--paper-2);
  touch-action: pan-y;
  user-select: none;
}
.series-mask { position: absolute; inset: 0; }
.series-mask img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  visibility: hidden;
}
.series-mask img.is-prev { visibility: visible; z-index: 1; }
.series-mask img.is-active {
  visibility: visible;
  z-index: 2;
  animation: series-settle 1.6s var(--ease) both;
}
@keyframes series-settle { from { transform: scale(1.12); } to { transform: none; } }

.series-panels { grid-column: 9 / 13; padding-top: clamp(0px, 2vw, 24px); }
.series-panel[hidden] { display: none; }
.series-panel.is-entering > * { animation: panel-in .8s var(--ease-out) both; }
.series-panel.is-entering > *:nth-child(2) { animation-delay: .06s; }
.series-panel.is-entering > *:nth-child(3) { animation-delay: .12s; }
.series-panel.is-entering > *:nth-child(4) { animation-delay: .18s; }
.series-panel.is-entering > *:nth-child(5) { animation-delay: .24s; }
.series-panel.is-entering > *:nth-child(6) { animation-delay: .3s; }
@keyframes panel-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.series-panel h3 {
  font-size: var(--step-3);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 0.95;
  font-variation-settings: "SHRP" 100;
  margin-bottom: 14px;
}
.series-tagline { color: var(--olive-ink); margin-bottom: 28px; }
.series-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  margin-bottom: 22px;
}
.series-specs dt { font-size: var(--step--1); color: var(--ink-2); margin-bottom: 2px; }
.series-specs dd { font-size: var(--step-2); font-weight: 300; letter-spacing: -0.02em; line-height: 1.15; }
.series-text { color: var(--ink-2); margin-bottom: 14px; }
.series-fit { margin-bottom: 30px; }
.series-fit span { display: block; font-size: var(--step--1); color: var(--ink-2); }
.series-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Floor plan dialog */
.plan-dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  padding: 24px;
  border: 0;
  background: var(--paper);
  color: var(--ink);
}
.plan-dialog[open] { animation: dialog-in .45s var(--ease-out); }
.plan-dialog::backdrop { background: rgb(28 35 29 / .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.plan-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.plan-dialog-close {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: none;
  cursor: pointer;
}
.plan-dialog-close:hover { background: var(--ink); color: var(--paper); }
.plan-dialog img {
  width: 100%;
  max-height: calc(100svh - 150px);
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* Object */
.object {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(96px, 11vw, 170px);
}
.object-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.object-item:nth-child(2) { margin-top: 18%; }
.object-item:nth-child(3) { margin-top: 6%; }
.object-item:nth-child(4) { margin-top: 26%; }
.object-img { overflow: hidden; aspect-ratio: 3 / 4; background: var(--paper-2); }
.object-img img { width: 100%; height: 100%; object-fit: cover; }
.object-item figcaption {
  padding-top: 12px;
  font-size: var(--step--1);
  color: var(--ink-2);
}

/* Business */
.business {
  background: var(--forest);
  color: var(--paper);
  padding: clamp(96px, 12vw, 180px) var(--gutter) clamp(64px, 8vw, 120px);
}
.business-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 56px;
  max-width: var(--max);
  margin: 0 auto clamp(64px, 9vw, 128px);
}
.business-intro { grid-column: 1 / 6; }
.business-intro h2 { margin-bottom: 32px; }
.business-lede {
  max-width: 28rem;
  color: color-mix(in srgb, var(--paper) 78%, transparent);
  margin-bottom: 40px;
}
.business-list {
  grid-column: 7 / 13;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  align-self: end;
}
.business-list li {
  padding: 20px 0 28px;
  border-top: 1px solid color-mix(in srgb, var(--paper) 22%, transparent);
}
.business-list h3 { color: var(--pine); margin-bottom: 6px; }
.business-list p { color: color-mix(in srgb, var(--paper) 72%, transparent); font-size: 0.9375rem; }

.business-figures {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 20px;
  max-width: var(--max);
  margin: 0 auto;
}
.business-figure { display: flex; flex-direction: column; }
.business-img { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.business-figure:last-child .business-img { flex: none; aspect-ratio: 3 / 2; }
.business-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.business-figure figcaption {
  padding-top: 12px;
  font-size: var(--step--1);
  color: color-mix(in srgb, var(--paper) 62%, transparent);
}

/* Customisation: build-your-house configurator */
.custom {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(96px, 12vw, 180px) var(--gutter);
}
.custom-body {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: start;
}
.cfg-preview {
  grid-column: 1 / 8;
  position: sticky;
  top: 96px;
}
.cfg-stage {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--paper-2);
  overflow: hidden;
}
.cfg-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cfg-layer { transition: opacity .45s ease; }
.cfg-layer.is-entering { opacity: 0; }
.cfg-layer .cfg-house { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .6s var(--ease); }
.cfg-layer.is-rising .cfg-house { transform: translateY(14px) scaleY(.96); }
.cfg-smoke circle { opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; animation: cfg-smoke 4.5s ease-out infinite; }
.cfg-smoke circle:nth-child(2) { animation-delay: 1.5s; }
.cfg-smoke circle:nth-child(3) { animation-delay: 3s; }
@keyframes cfg-smoke {
  0% { opacity: 0; transform: translate(0, 18px) scale(.5); }
  25% { opacity: .55; }
  100% { opacity: 0; transform: translate(10px, -14px) scale(1.4); }
}
.cfg-summary {
  padding-top: 16px;
  font-size: var(--step-1);
  line-height: 1.4;
  letter-spacing: -0.01em;
  max-width: 34rem;
}

.cfg-controls {
  grid-column: 9 / 13;
  display: grid;
  gap: 26px;
}
.cfg-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.cfg-group legend {
  padding: 0;
  margin-bottom: 10px;
  font-size: var(--step--1);
  color: var(--ink-2);
}
.opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.opt span {
  display: inline-block;
  padding: 9px 18px;
  border: 1px solid color-mix(in srgb, var(--ink) 28%, transparent);
  border-radius: 999px;
  font-size: 0.9375rem;
  transition: background-color .25s, color .25s, border-color .25s;
}
.opt:hover span { border-color: var(--ink); }
.opt input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.opt input:focus-visible + span { outline: 2px solid var(--copper); outline-offset: 3px; }
.cfg-hint { margin-top: 8px; font-size: var(--step--1); color: var(--ink-2); }

.cfg-switch {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  position: relative;
  cursor: pointer;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.cfg-switch input { position: absolute; opacity: 0; width: 44px; height: 26px; margin: 0; cursor: pointer; }
.cfg-switch-ui {
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 22%, transparent);
  transition: background-color .3s;
}
.cfg-switch-ui::after {
  content: "";
  position: absolute;
  left: 3px; top: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--paper);
  transition: transform .35s var(--ease);
}
.cfg-switch input:checked + .cfg-switch-ui { background: var(--ink); }
.cfg-switch input:checked + .cfg-switch-ui::after { transform: translateX(18px); }
.cfg-switch input:focus-visible + .cfg-switch-ui { outline: 2px solid var(--copper); outline-offset: 3px; }
.cfg-switch input:checked ~ span:last-child { color: var(--ink); }
.cfg-cta { justify-self: start; margin-top: 6px; }

/* Contact */
.contact {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 56px;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(96px, 12vw, 180px);
}
.contact-info { grid-column: 1 / 7; }
.contact-info h2 { margin-bottom: 32px; max-width: 9em; }
.contact-info > p { max-width: 28rem; color: var(--ink-2); margin-bottom: 40px; }
.contact-links li { border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); }
.contact-links li:last-child { border-bottom: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); }
.contact-links a {
  display: grid;
  grid-template-columns: 7rem 1fr;
  align-items: baseline;
  padding: 16px 0;
  font-size: var(--step-1);
  text-decoration: none;
  transition: padding .4s var(--ease);
}
.contact-links a:hover { padding-left: 10px; }
.contact-links span { font-size: var(--step--1); color: var(--ink-2); }

.contact-form {
  grid-column: 8 / 13;
  align-self: end;
  display: grid;
  gap: 22px;
}
.field { display: grid; gap: 6px; }
.field label, .field legend { font-size: var(--step--1); color: var(--ink-2); }
.field input[type="text"],
.field input[type="tel"],
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  font-size: var(--step-1);
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231E1F1C' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 28px;
}
.field textarea { resize: vertical; min-height: 48px; line-height: 1.4; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: none; border-bottom: 2px solid var(--copper); }
.field input[aria-invalid="true"] { border-bottom-color: #9B3D2A; }
.field-error { font-size: var(--step--1); color: #9B3D2A; }

.field-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}
.field-choice legend { margin-bottom: 8px; }
.field-choice label { position: relative; cursor: pointer; }
.field-choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.field-choice span {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid color-mix(in srgb, var(--ink) 35%, transparent);
  border-radius: 999px;
  transition: background-color .25s, color .25s, border-color .25s;
}
.field-choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.field-choice input:focus-visible + span { outline: 2px solid var(--copper); outline-offset: 3px; }

.contact-form .btn { justify-self: start; margin-top: 8px; }
.form-status { min-height: 1.6em; color: var(--ink-2); }

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 24px 48px;
  padding: 56px var(--gutter);
  background: var(--forest);
  color: color-mix(in srgb, var(--paper) 75%, transparent);
  font-size: var(--step--1);
}
.footer-logo { width: 110px; margin-right: auto; }

/* Tablet */
@media (max-width: 1100px) {
  .nav-links { gap: 20px; }
  .nav-phone { display: none; }
  .series-stage { grid-column: 1 / 8; }
  .series-panels { grid-column: 8 / 13; }
  .cfg-preview { grid-column: 1 / 8; }
  .cfg-controls { grid-column: 8 / 13; }
  .build-stage { grid-column: 1 / 8; }
  .build-panel { grid-column: 8 / 13; }
}

/* Mobile */
@media (max-width: 860px) {
  .nav { gap: 16px; padding-top: 12px; padding-bottom: 12px; }
  .nav-toggle { display: block; position: relative; z-index: 2; }
  .brand { position: relative; z-index: 2; }
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 96px var(--gutter) 48px;
    background: var(--paper);
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path .7s var(--ease), visibility 0s .7s;
  }
  .nav.is-open .nav-links { clip-path: inset(0); visibility: visible; transition: clip-path .7s var(--ease); }
  .nav.is-open { transform: none; }
  .nav-menu-phone { display: block; margin-top: 24px; font-size: 1.125rem; font-weight: 450; }

  .hero-copy, .hero-tag { grid-column: 1 / 13; }
  .hero-title { font-size: clamp(2.1rem, 9.6vw, 3rem); }
  .hero-lede { font-size: 1.0625rem; }
  .hero-actions .btn { flex: 1 1 200px; min-height: 50px; }
  .hero-tag {
    justify-self: start;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 14px;
    margin-top: 22px;
    padding: 2px 0 2px 14px;
  }
  .hero-tag-meta { display: none; }
  .hero-tag-link { margin-top: 0; }
  .hero-end { flex-wrap: wrap; align-content: center; row-gap: 0.12em; font-size: clamp(3rem, 15vw, 4.5rem); }
  .hero-end-b { flex-basis: 100%; text-align: center; }

  .section-head { grid-template-columns: 1fr; row-gap: 20px; }
  .section-head h2, .section-head p { grid-column: 1; }

  .intro-points { grid-template-columns: 1fr; gap: 32px; }
  .custom-body { grid-template-columns: 1fr; row-gap: 28px; }
  .cfg-preview {
    grid-column: 1;
    top: 0;
    z-index: 3;
    margin: 0 calc(var(--gutter) * -1);
    padding: 12px var(--gutter) 12px;
    background: var(--paper);
  }
  .cfg-summary { font-size: 0.9375rem; padding-top: 10px; }
  .cfg-controls { grid-column: 1; gap: 22px; }
  .cfg-cta { justify-self: stretch; }

  .build { height: 640vh; }
  .build-sticky {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    align-content: center;
    row-gap: 16px;
    padding-top: 76px;
    padding-bottom: 20px;
  }
  .build-head, .build-stage, .build-panel { grid-column: 1; }
  .build-head h2 { font-size: 2rem; }
  .build-hint { display: none; }
  .build-stage { align-self: start; margin: 0 calc(var(--gutter) * -0.5); }
  .build-scene { max-height: 48svh; }
  .build-panel { align-self: start; }
  .build-day { margin-bottom: 10px; }
  .build-day-num { font-size: 4rem; }
  .build-ruler { margin-bottom: 14px; }
  .build-steps li { display: none; padding-left: 0; border-top: 0; }
  .build-steps li::before { position: static; display: block; margin-bottom: 2px; }
  .build-steps li.is-active { display: block; }
  .build-steps h3 { font-size: var(--step-1); }

  .series-tabs {
    display: flex;
    overflow-x: auto;
    margin: 0 calc(var(--gutter) * -1) 24px;
    padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .series-tabs::-webkit-scrollbar { display: none; }
  .series-tabs button { flex: 0 0 auto; padding: 0 24px 16px 0; }
  .series-tabs svg { width: 40px; height: 27px; margin-bottom: 6px; }
  .series-name { font-size: 1.0625rem; white-space: nowrap; }
  .series-body { grid-template-columns: 1fr; row-gap: 32px; }
  .series-stage, .series-panels { grid-column: 1; }
  .series-stage { margin: 0 calc(var(--gutter) * -1); aspect-ratio: 4 / 3; }
  .series-specs dd { font-size: 1.375rem; }
  .series-actions .btn { flex: 1 1 180px; }

  .object-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    gap: 12px;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .object-strip::-webkit-scrollbar { display: none; }
  .object-item { flex: 0 0 78%; scroll-snap-align: start; margin-top: 0 !important; transform: none !important; }

  .business-intro, .business-list { grid-column: 1 / 13; }
  .business-list { grid-template-columns: 1fr; }
  .business-figures { grid-template-columns: 1fr; gap: 28px; }
  .business-img, .business-figure:last-child .business-img { flex: none; aspect-ratio: 4 / 3; }

  .contact-info, .contact-form { grid-column: 1 / 13; }
  .contact-links a { grid-template-columns: 6rem 1fr; font-size: 1.125rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
  }
  .js [data-reveal], .js [data-unclip] { clip-path: none; transform: none; }
  .js .hero { height: auto; }
  .hero-end { display: none; }
  .js [data-unclip] img { transform: none; }
}
