/* TRÁM drevostavby — styles */
:root {
  --paper: #ECE6DA;
  --paper-2: #E2DACB;
  --card: #F5F1E8;
  --ink: #191816;
  --ink-2: #4A463F;
  --ink-3: #6B665C;
  --line: rgba(25, 24, 22, .14);
  --line-2: rgba(25, 24, 22, .3);
  --larch: #C2592A;
  --larch-2: #DA7843;
  --spruce: #14211A;
  --spruce-2: #1D2F25;
  --frame: #E7C98F;
  --on-dark: #EDE7DA;
  --on-dark-2: rgba(237, 231, 218, .62);
  --line-dark: rgba(237, 231, 218, .14);

  --f: 'Archivo', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --gut: max(clamp(16px, 4vw, 56px), env(safe-area-inset-left), env(safe-area-inset-right));
  --nav-h: 108px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
[id] { scroll-margin-top: 72px; }
#top, #main { scroll-margin-top: 0; }
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(--f);
  font-size: 17px;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea { font: inherit; color: inherit; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--larch); color: var(--card); }
:focus-visible { outline: 2px solid var(--larch); outline-offset: 3px; }

.sprite { display: none; }
svg use { pointer-events: none; }
.wrap { width: 100%; max-width: 1480px; margin: 0 auto; padding: 0 var(--gut); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.hide-sm { }

/* ---------- Display type ---------- */
.hero__title, .h2, .build__title, .contact__title, .foot__word, .fact b, .calc__price, .model h3 {
  font-family: var(--f);
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  font-weight: 800;
  letter-spacing: -.035em;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--on-dark-2); }

/* line mask reveal */
[data-lines] > span { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
[data-lines] > span > i {
  display: block; font-style: normal;
  transform: translate3d(0, 108%, 0) rotate(2deg);
  transform-origin: 0 100%;
  transition: transform 1.15s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms + var(--d, 0ms));
}
[data-lines].is-in > span > i { transform: none; }

[data-reveal] { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--card);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 56px; padding: 0 26px;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 16px; letter-spacing: -.005em;
  border-radius: 2px;
  transition: transform .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--hover, var(--larch));
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform .55s var(--ease);
}
.btn:hover::before { transform: scaleY(1); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn--ink { --bg: var(--ink); --fg: var(--card); --hover: var(--larch); }
.btn--larch { --bg: var(--larch); --fg: #FFF8F0; --hover: var(--ink); }
.btn--block { width: 100%; height: auto; min-height: 56px; padding-block: 14px; text-align: center; }

.link-u { position: relative; font-weight: 600; padding: 4px 0; }
.link-u::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform-origin: 100% 50%; transition: transform .6s var(--ease); }
.link-u:hover::after { transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--paper);
  display: grid; place-items: center; align-content: center; gap: 14px;
  transition: clip-path 1s var(--ease-io);
  clip-path: inset(0 0 0 0);
}
.loader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.loader__mark { width: 84px; overflow: visible; }
.loader__mark path { fill: none; stroke: var(--ink); stroke-width: 7; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1s var(--ease-io) .1s forwards; }
.loader__txt { font-weight: 800; font-variation-settings: "wdth" 125; letter-spacing: .3em; font-size: 13px; opacity: 0; animation: fade .6s ease .6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: transform .6s var(--ease); }
.nav__notice {
  height: 36px; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--ink); color: var(--on-dark); font-size: 13px;
  transition: margin .6s var(--ease);
}
.nav__notice b { font-weight: 600; color: var(--larch-2); }
.nav__notice a { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; color: var(--on-dark-2); transition: color .3s; }
.nav__notice a:hover { color: var(--on-dark); }
.nav__notice svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--larch-2); box-shadow: 0 0 0 0 rgba(218,120,67,.6); animation: ping 2.2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(218,120,67,0); } 100% { box-shadow: 0 0 0 0 rgba(218,120,67,0); } }

.nav__bar {
  height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gut);
  transition: background .5s, color .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled .nav__notice { margin-top: -36px; }
.nav.is-scrolled .nav__bar { background: rgba(236, 230, 218, .82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-color: var(--line); }
.nav.is-dark .nav__bar { background: rgba(20, 33, 26, .78); color: var(--on-dark); border-color: var(--line-dark); }
.nav.is-dark .btn--ink { --bg: var(--on-dark); --fg: var(--ink); }
.nav.is-hidden { transform: translateY(-110%); }

.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { width: 30px; height: 25px; fill: none; stroke: currentColor; stroke-width: 4.2; }
.brand span { display: flex; flex-direction: column; font-weight: 800; font-variation-settings: "wdth" 125; font-size: 21px; letter-spacing: .02em; line-height: 1; }
.brand small { font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; margin-top: 4px; opacity: .65; }

.nav__links { display: flex; gap: 30px; font-size: 15px; font-weight: 500; }
.nav__links a { position: relative; padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__cta { display: flex; align-items: center; gap: 20px; }
.nav__phone { font-family: var(--mono); font-size: 13px; letter-spacing: .03em; }
.nav__burger { display: none; width: 42px; height: 42px; position: relative; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .5s var(--ease); }
.nav__burger span:first-child { top: 16px; } .nav__burger span:last-child { top: 24px; }
.nav.is-open .nav__burger span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav__sheet { display: none; }

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--nav-h) + clamp(28px, 5vw, 64px)); }
.hero__meta { display: flex; justify-content: space-between; color: var(--ink-2); padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: clamp(24px, 3.5vw, 44px); }
.hero__title { font-size: clamp(46px, 9.4vw, 170px); line-height: .95; }
.hero__title em { font-style: normal; font-weight: 300; font-variation-settings: "wdth" 62; font-stretch: 62%; letter-spacing: -.02em; color: var(--larch); }
.hero__title > span > i { transition-duration: 1.3s; }

.dim { position: relative; display: flex; align-items: center; justify-content: center; margin: clamp(26px, 3vw, 40px) 0; height: 20px; }
.dim__line { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ink); transform: scaleX(0); transition: transform 1.4s var(--ease-io) .7s; }
.dim__line::before, .dim__line::after { content: ""; position: absolute; top: -7px; width: 1px; height: 15px; background: var(--ink); }
.dim__line::before { left: 0; } .dim__line::after { right: 0; }
.dim__label { position: relative; background: var(--paper); padding: 0 14px; color: var(--ink-2); opacity: 0; transition: opacity .8s ease 1.6s; }
.is-ready .dim__line { transform: scaleX(1); }
.is-ready .dim__label { opacity: 1; }

.hero__row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: end; padding-bottom: clamp(36px, 5vw, 64px); }
.hero__lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; max-width: 34em; color: var(--ink-2); }
.hero__lead strong { color: var(--ink); font-weight: 600; }
.hero__actions { display: flex; align-items: center; justify-content: flex-end; gap: 28px; flex-wrap: wrap; }
.hero__row > * { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease) 1s, transform 1s var(--ease) 1s; }
.is-ready .hero__row > * { opacity: 1; transform: none; }
.is-ready .hero__row > *:last-child { transition-delay: 1.12s; }

.hero__media { position: relative; margin: 0 var(--gut); max-width: calc(1480px - 2 * var(--gut)); }
@media (min-width: 1480px) { .hero__media { margin: 0 auto; } }
.hero__img {
  height: clamp(340px, 74vh, 860px); overflow: hidden; background: var(--paper-2);
  clip-path: inset(18% 22% 18% 22%);
  transition: clip-path 1.6s var(--ease-io) .5s;
}
.hero__img { background-size: cover; background-position: center; }
.hero__img img { width: 100%; height: 118%; object-fit: cover; transform: scale(1.22); transition: transform 2.2s var(--ease) .5s, opacity .9s ease; will-change: transform; }
.is-ready .hero__img { clip-path: inset(0 0 0 0); }
.is-ready .hero__img img { transform: scale(1.04) translate3d(0, var(--py, 0px), 0); transition: transform 2.2s var(--ease) .5s, opacity .9s ease; }
.is-ready.is-settled .hero__img img { transition: none; }

.spec {
  position: absolute; left: clamp(14px, 2.4vw, 32px); bottom: clamp(14px, 2.4vw, 32px);
  background: var(--card); padding: 16px 20px 14px; min-width: 260px;
  display: grid; gap: 4px;
  opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease) 1.8s, transform .9s var(--ease) 1.8s;
}
.is-ready .spec { opacity: 1; transform: none; }
.spec__k { color: var(--larch); }
.spec b { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.spec__row { display: flex; gap: 14px; font-size: 14px; color: var(--ink-2); }
.spec__row span + span { padding-left: 14px; border-left: 1px solid var(--line-2); }

.hero__ticks span { position: absolute; width: 18px; height: 18px; border-color: var(--ink); border-style: solid; border-width: 0; opacity: 0; transition: opacity .6s ease 2s; }
.is-ready .hero__ticks span { opacity: 1; }
.hero__ticks span:nth-child(1) { top: -10px; left: -10px; border-top-width: 1px; border-left-width: 1px; }
.hero__ticks span:nth-child(2) { top: -10px; right: -10px; border-top-width: 1px; border-right-width: 1px; }
.hero__ticks span:nth-child(3) { bottom: -10px; left: -10px; border-bottom-width: 1px; border-left-width: 1px; }
.hero__ticks span:nth-child(4) { bottom: -10px; right: -10px; border-bottom-width: 1px; border-right-width: 1px; }

/* ---------- Facts ---------- */
.facts { padding: clamp(64px, 8vw, 120px) 0 0; }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 24px 24px 32px 0; border-top: 1px solid var(--ink); display: grid; gap: 14px; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact b { font-size: clamp(44px, 5.4vw, 88px); line-height: .9; font-variant-numeric: tabular-nums; }
.fact span { color: var(--ink-2); font-size: 15px; line-height: 1.45; }

.marquee { margin-top: clamp(48px, 6vw, 88px); border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; }
.marquee__track { display: flex; gap: 28px; width: max-content; animation: marq 46s linear infinite; font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.marquee__track i { font-style: normal; color: var(--larch); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- Build (signature) ---------- */
.build { position: relative; height: 640vh; background: var(--spruce); color: var(--on-dark); margin-top: clamp(80px, 10vw, 140px); }
.build__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.build__grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px),
    linear-gradient(rgba(237,231,218,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237,231,218,.05) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 80% 70% at 62% 50%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 62% 50%, #000 30%, transparent 85%);
}
.build__inner { position: relative; height: 100%; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-top: 72px; }
.build__copy { display: flex; flex-direction: column; gap: clamp(18px, 2.4vh, 28px); }
.build__title { font-size: clamp(34px, 3.6vw, 60px); line-height: .95; }

.build__steps { display: grid; border-top: 1px solid var(--line-dark); }
.step { border-bottom: 1px solid var(--line-dark); display: grid; grid-template-rows: auto 0fr; transition: grid-template-rows .7s var(--ease), color .4s; color: var(--on-dark-2); }
.step__h { display: flex; align-items: baseline; gap: 16px; padding: clamp(8px, 1.15vh, 12px) 0; }
.step__h .mono { width: 26px; color: inherit; opacity: .7; }
.step__h b { font-weight: 600; font-size: clamp(16px, 1.25vw, 19px); letter-spacing: -.01em; }
.step__h small { margin-left: auto; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; opacity: 0; transition: opacity .4s; }
.step__b { overflow: hidden; }
.step__b p { padding: 0 0 14px 42px; font-size: 15px; line-height: 1.5; color: var(--on-dark-2); max-width: 30em; }
.step.is-on { grid-template-rows: auto 1fr; color: var(--on-dark); }
.step.is-on .step__h small { opacity: .8; }
.step.is-done { color: rgba(237,231,218,.8); }
.step.is-on .step__h .mono { color: var(--larch-2); opacity: 1; }

.build__meters { display: grid; grid-template-columns: auto auto 1fr; gap: 10px 32px; align-items: end; }
.meter { display: grid; gap: 4px; }
.meter .mono { color: var(--on-dark-2); font-size: 11px; }
.meter b { font-size: clamp(22px, 2vw, 30px); font-weight: 700; font-variation-settings: "wdth" 110; font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap; }
.section-bar { grid-column: 1 / -1; display: flex; height: 10px; background: rgba(237,231,218,.06); }
.section-bar i { height: 100%; flex: 0 0 0; transition: flex-basis .9s var(--ease); }

.build__stage { position: relative; height: 100%; display: flex; align-items: center; }
#house { width: 100%; height: min(86vh, 860px); overflow: visible; }
#house text { font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; fill: var(--on-dark); }
.build__progress { position: absolute; right: 0; bottom: clamp(20px, 5vh, 48px); display: flex; align-items: center; gap: 8px; color: var(--on-dark-2); }
.build__progress #stepNo { color: var(--on-dark); }
.build__track { width: 120px; height: 1px; background: var(--line-dark); margin-left: 10px; position: relative; }
.build__track i { position: absolute; inset: 0; background: var(--larch-2); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Sections ---------- */
.section { padding: clamp(88px, 11vw, 168px) 0; }
.head { display: grid; gap: 22px; margin-bottom: clamp(44px, 5.5vw, 80px); max-width: 980px; }
.head--split { max-width: none; grid-template-columns: 1fr minmax(0, 420px); align-items: end; gap: 40px; }
.head--split > div:first-child { display: grid; gap: 22px; }
.h2 { font-size: clamp(36px, 5.2vw, 86px); line-height: .92; }
.head__p { color: var(--ink-2); font-size: 18px; max-width: 36em; }
.head__p strong { color: var(--ink); }

/* ---------- Models ---------- */
.models__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.model { background: var(--card); display: flex; flex-direction: column; transition: transform .7s var(--ease), box-shadow .7s var(--ease); }
.model:nth-child(2) { --d: 80ms; } .model:nth-child(3) { --d: 160ms; } .model:nth-child(4) { --d: 240ms; }
.model:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(25,24,22,.3); }
.model__plan {
  aspect-ratio: 3 / 2; padding: 12px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 20px 20px,
    var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.model__plan svg { width: 100%; height: 100%; overflow: visible; }
.plan-walls path { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linejoin: miter; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-io); }
.plan-walls path + path { stroke-width: 1.6; transition-delay: .5s; }
.plan-txt text { font-family: var(--mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; fill: var(--ink-2); text-anchor: middle; opacity: 0; transition: opacity .6s ease 1.2s; }
.plan-txt .t-sm { fill: var(--larch); }
.model.is-in .plan-walls path { stroke-dashoffset: 0; }
.model.is-in .plan-txt text { opacity: 1; }
.model:hover .plan-walls path:first-child { stroke: var(--larch); transition: stroke .4s, stroke-dashoffset 1.6s var(--ease-io); }
.model__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.model__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.model h3 { font-size: 21px; letter-spacing: -.02em; font-weight: 750; font-variation-settings: "wdth" 108; font-stretch: 108%; }
.model__top .mono { white-space: nowrap; }
.model__top .mono { color: var(--ink-3); }
.model p { font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.model dl { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.model dt { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.model dd { font-weight: 650; font-size: 17px; margin-top: 2px; font-variant-numeric: tabular-nums; }

/* ---------- Calculator ---------- */
.calc { background: var(--paper-2); }
.calc__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 110px); align-items: start; }
.calc__intro { display: grid; gap: 24px; position: sticky; top: 120px; }
.calc__incl { display: grid; gap: 10px; margin-top: 8px; }
.calc__incl li { display: flex; gap: 12px; align-items: center; font-size: 16px; }
.calc__incl svg { width: 20px; height: 20px; fill: none; stroke: var(--larch); stroke-width: 2; flex: none; }

.calc__box { background: var(--card); padding: clamp(22px, 3vw, 40px); display: grid; gap: 30px; box-shadow: 0 1px 0 var(--line); }
.field { display: grid; gap: 12px; }
.field__top { display: flex; justify-content: space-between; align-items: baseline; }
.field label, .field legend { font-weight: 600; font-size: 15px; }
.field legend { margin-bottom: 12px; }
.field output { font-size: 15px; color: var(--larch); }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; --p: 37.5%; }
input[type=range]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--ink) var(--p), var(--line-2) var(--p)); }
input[type=range]::-moz-range-track { height: 2px; background: linear-gradient(90deg, var(--ink) var(--p), var(--line-2) var(--p)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; background: var(--larch); border: 4px solid var(--card); box-shadow: 0 0 0 1px var(--larch); border-radius: 0; transition: transform .3s var(--ease); }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; background: var(--larch); border: 4px solid var(--card); box-shadow: 0 0 0 1px var(--larch); border-radius: 0; }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.2) rotate(45deg); }
.ruler { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--ink-3); position: relative; padding-top: 8px; background: repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px calc(100% / 40)) top / 100% 5px no-repeat; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--line-2); }
.seg label { position: relative; cursor: pointer; }
.seg label + label { border-left: 1px solid var(--line-2); }
.seg input, .stages input, .chips input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 13px 8px; font-size: 15px; font-weight: 500; transition: background .35s, color .35s; }
.seg input:checked + span { background: var(--ink); color: var(--card); }
.seg input:focus-visible + span { outline: 2px solid var(--larch); outline-offset: -4px; }
.seg label:hover span { background: rgba(25,24,22,.05); }
.seg input:checked + span:hover { background: var(--ink); }

.stages { display: grid; gap: 8px; }
.stages label { cursor: pointer; }
.stages span { display: grid; grid-template-columns: 18px 1fr; column-gap: 14px; padding: 14px 16px; border: 1px solid var(--line-2); transition: border-color .35s, background .35s; position: relative; }
.stages span::before { content: ""; grid-row: span 2; width: 18px; height: 18px; border: 1.5px solid var(--line-2); border-radius: 50%; margin-top: 2px; transition: border .3s var(--ease); }
.stages b { font-weight: 600; font-size: 16px; }
.stages small { font-size: 14px; color: var(--ink-2); }
.stages input:checked + span { border-color: var(--ink); background: rgba(194,89,42,.05); }
.stages input:checked + span::before { border: 6px solid var(--larch); }
.stages input:focus-visible + span { outline: 2px solid var(--larch); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line-2); font-size: 14px; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.chips span::before { content: "+"; font-family: var(--mono); transition: transform .4s var(--ease); }
.chips input:checked + span { background: var(--ink); color: var(--card); border-color: var(--ink); }
.chips input:checked + span::before { transform: rotate(45deg); }
.chips input:focus-visible + span { outline: 2px solid var(--larch); }

.calc__result { display: grid; gap: 20px; padding-top: 26px; border-top: 1px solid var(--ink); }
.calc__result .mono { color: var(--ink-3); font-size: 11px; }
.calc__price { font-size: clamp(28px, 3.3vw, 50px); line-height: 1; margin-top: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc__side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.calc__side b { display: block; font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }

/* ---------- Process ---------- */
.timeline { --prog: 0; position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; padding-top: 44px; }
.timeline::before, .timeline::after { content: ""; position: absolute; top: 8px; left: 0; right: 0; height: 2px; background: var(--line); }
.timeline::after { background: var(--larch); transform-origin: 0 50%; transform: scaleX(var(--prog)); }
.tl { position: relative; padding-right: 22px; display: grid; gap: 10px; align-content: start; }
.tl::before { content: ""; position: absolute; top: -44px; left: 0; width: 18px; height: 18px; background: var(--paper); border: 2px solid var(--line-2); transition: background .4s, border-color .4s, transform .5s var(--ease); z-index: 1; }
.tl.is-on::before { background: var(--larch); border-color: var(--larch); transform: rotate(45deg); }
.tl__wk { color: var(--larch); }
.tl h3 { font-size: 21px; font-weight: 700; letter-spacing: -.015em; }
.tl p { font-size: 15px; color: var(--ink-2); line-height: 1.5; }

/* ---------- Projects ---------- */
.projects { padding-top: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.filters button { padding: 10px 16px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; transition: background .3s, color .3s, border-color .3s; }
.filters button sup { font-family: var(--mono); font-size: 10px; margin-left: 2px; opacity: .6; }
.filters button:hover { border-color: var(--ink); }
.filters button.is-on { background: var(--ink); color: var(--card); border-color: var(--ink); }

.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(210px, 22vw, 340px); grid-auto-flow: dense; gap: 16px; }
.pj { grid-column: span 4; position: relative; overflow: hidden; background: var(--paper-2); display: block; transition: opacity .5s var(--ease), transform .7s var(--ease); }
.pj--xl { grid-column: span 8; grid-row: span 2; }
.pj--tall { grid-row: span 2; }
.pj--wide { grid-column: span 8; }
.pj.is-out { display: none; }
.pj.is-enter { opacity: 0; transform: translateY(24px) scale(.98); }
.pj__img { position: absolute; inset: 0; background-size: cover; background-position: center; clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease-io); }
.pj.is-in .pj__img { clip-path: inset(0 0 0 0); }
.pj__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1.8s var(--ease), opacity .4s ease; }
.pj.is-in .pj__img img { transform: scale(1.001); }
.pj:hover .pj__img img { transform: scale(1.05); transition-duration: 1.2s; }
.pj__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(15,14,12,.72)); }
.pj__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 22px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; color: #F5F1E8; }
.pj__cap b { flex-basis: 100%; font-size: clamp(18px, 1.5vw, 22px); font-weight: 650; letter-spacing: -.01em; transform: translateY(6px); transition: transform .6s var(--ease); }
.pj__cap span { font-size: 14px; opacity: .8; }
.pj__cap .mono { margin-left: auto; font-size: 12px; padding: 4px 8px; border: 1px solid rgba(245,241,232,.4); }
.pj:hover .pj__cap b { transform: none; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 110px); align-items: start; }
.about__img { position: sticky; top: 110px; }
.about__ph { aspect-ratio: 4 / 5; background-size: cover; background-position: center; overflow: hidden; }
.about__img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .4s ease; }
.about__img figcaption { margin-top: 12px; color: var(--ink-3); }
.about__copy { display: grid; gap: 30px; padding-top: 20px; }
.about__text { display: grid; gap: 18px; font-size: 18px; color: var(--ink-2); max-width: 34em; }
.about__text strong { color: var(--ink); }
.about__quote { border-left: 2px solid var(--larch); padding: 6px 0 6px 26px; display: grid; gap: 14px; }
.about__quote p { font-size: clamp(24px, 2.3vw, 34px); line-height: 1.2; letter-spacing: -.02em; font-weight: 500; font-variation-settings: "wdth" 88; }
.about__quote footer { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 15px; }
.about__quote footer span { color: var(--ink-3); }
.about__people { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.about__people div { padding: 16px 16px 0 0; display: grid; gap: 2px; }
.about__people div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.about__people b { font-size: 15px; font-weight: 650; }
.about__people span { font-size: 14px; color: var(--ink-3); }

/* ---------- Reviews ---------- */
.reviews { padding-top: 0; }
.reviews__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.rv { background: var(--card); padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 30px; justify-content: space-between; }
.rv:nth-child(2) { --d: 100ms; } .rv:nth-child(3) { --d: 200ms; }
.rv blockquote { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.45; letter-spacing: -.01em; }
.rv figcaption { display: grid; gap: 2px; padding-top: 18px; border-top: 1px solid var(--line); }
.rv figcaption b { font-weight: 650; }
.rv figcaption span { font-size: 14px; color: var(--ink-3); }

/* ---------- FAQ ---------- */
.faq { background: var(--paper-2); }
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 110px); }
.faq__grid > div:first-child { display: grid; gap: 22px; align-content: start; }
.acc { border-top: 1px solid var(--ink); }
.acc details { border-bottom: 1px solid var(--line-2); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 24px 0; font-size: clamp(18px, 1.5vw, 22px); font-weight: 600; letter-spacing: -.015em; transition: color .3s; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--larch); }
.acc summary i { position: relative; width: 16px; height: 16px; flex: none; }
.acc summary i::before, .acc summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: currentColor; transition: transform .5s var(--ease); }
.acc summary i::after { transform: rotate(90deg); }
.acc details[open] summary i::after { transform: rotate(0); }
.acc details > div { overflow: hidden; }
.acc details p { padding: 0 48px 26px 0; color: var(--ink-2); font-size: 17px; max-width: 40em; }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: var(--on-dark); padding: clamp(88px, 11vw, 160px) 0; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 110px); }
.contact__copy { display: grid; gap: 28px; align-content: start; }
.contact__title { font-size: clamp(44px, 5.6vw, 100px); line-height: .88; }
.contact__copy > p { color: var(--on-dark-2); font-size: 18px; max-width: 30em; }
.contact__list { display: grid; gap: 14px; margin-top: 6px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; }
.contact__list svg { width: 20px; height: 20px; fill: none; stroke: var(--larch-2); stroke-width: 1.7; flex: none; margin-top: 2px; }
.contact__list a { border-bottom: 1px solid var(--line-dark); transition: border-color .3s; }
.contact__list a:hover { border-color: var(--on-dark); }

.form { position: relative; display: grid; gap: 22px; align-content: start; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.in { position: relative; display: block; }
.in input, .in textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(237,231,218,.3); padding: 26px 0 10px; font-size: 18px; outline: none; transition: border-color .3s; resize: vertical; border-radius: 0; }
.in span { position: absolute; left: 0; top: 26px; color: var(--on-dark-2); font-size: 17px; pointer-events: none; transform-origin: 0 0; transition: transform .45s var(--ease), color .3s; }
.in input:focus, .in textarea:focus { border-color: var(--larch-2); }
.in input:focus + span, .in input:not(:placeholder-shown) + span,
.in textarea:focus + span, .in textarea:not(:placeholder-shown) + span { transform: translateY(-22px) scale(.76); color: var(--larch-2); }
.in.is-bad input { border-color: #E2704F; }
.form__q legend { font-size: 15px; color: var(--on-dark-2); margin-bottom: 12px; }
.seg--dark { border-color: rgba(237,231,218,.25); }
.seg--dark label + label { border-color: rgba(237,231,218,.25); }
.seg--dark input:checked + span { background: var(--on-dark); color: var(--ink); }
.seg--dark input:checked + span:hover { background: var(--on-dark); }
.seg--dark label:hover span { background: rgba(237,231,218,.06); }
.form .btn--larch { --hover: var(--on-dark); margin-top: 8px; }
.form .btn--larch:hover { color: var(--ink); }
.form__note { font-size: 13px; color: var(--on-dark-2); }
.form__ok { position: absolute; inset: -4px; background: var(--ink); display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s; }
.form__ok svg { width: 64px; height: 64px; fill: none; stroke: var(--larch-2); stroke-width: 1.6; margin-bottom: 8px; }
.form__ok path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--ease-io) .3s; }
.form__ok b { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.form__ok span { color: var(--on-dark-2); }
.form.is-sent .form__ok { opacity: 1; visibility: visible; }
.form.is-sent .form__ok path { stroke-dashoffset: 0; }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: var(--on-dark-2); padding: clamp(24px, 4vw, 60px) 0 28px; overflow: hidden; margin-top: -1px; }
.foot__word { font-size: 24vw; width: fit-content; line-height: .92; color: var(--on-dark); letter-spacing: -.06em; margin: 0 0 clamp(32px, 4vw, 56px) -.04em; white-space: nowrap; transform: translateY(var(--fy, 0)); }
.foot__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 28px 0; border-top: 1px solid var(--line-dark); font-size: 14px; }
.foot__grid > div { display: grid; gap: 6px; align-content: start; }
.foot__grid b { color: var(--on-dark); font-weight: 600; }
.foot__links a { width: fit-content; transition: color .3s; }
.foot__links a:hover { color: var(--on-dark); }
.foot__base { display: flex; justify-content: space-between; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav__links { gap: 22px; }
  .nav__phone { display: none; }
  .models__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 56px; }
  .timeline::before, .timeline::after { display: none; }
  .tl::before { top: -30px; }
  .tl { padding-top: 0; }
}

@media (max-width: 960px) {
  :root { --nav-h: 100px; }
  .nav__links, .nav__cta .btn { display: none; }
  .nav__burger { display: block; }
  .nav__bar { height: 64px; }
  .nav__sheet {
    display: grid; position: fixed; inset: 0; z-index: -1; background: var(--paper);
    padding: 130px var(--gut) 40px; align-content: start;
    clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .8s var(--ease-io), visibility 0s linear .8s;
  }
  .nav__sheet a { font-size: 40px; font-weight: 800; font-variation-settings: "wdth" 125; letter-spacing: -.03em; padding: 6px 0; border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__sheet { clip-path: inset(0 0 0 0); visibility: visible; transition-delay: 0s; }
  .nav.is-open .nav__bar { background: transparent; border-color: transparent; color: var(--ink); }
  .nav.is-open .nav__notice { margin-top: -36px; }

  .hero__row, .calc__grid, .about__grid, .faq__grid, .contact__grid, .head--split { grid-template-columns: minmax(0, 1fr); }
  .hero__actions { justify-content: flex-start; }
  .filters { justify-content: flex-start; }
  .calc__intro, .about__img { position: static; }
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .reviews__grid { grid-template-columns: minmax(0, 1fr); }
  .foot__grid { grid-template-columns: 1fr 1fr; }

  .build { height: 560vh; }
  .build__inner { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; align-content: start; gap: 0; padding-top: 76px; }
  .build__stage { order: -1; height: 52svh; }
  #house { height: 100%; }
  .build__title { display: none; }
  .build__copy { gap: 14px; }
  .build__copy .eyebrow { display: none; }
  .step:not(.is-on) { display: none; }
  .build__steps { border-top: 0; }
  .step { border-bottom: 0; }
  .step__b p { padding-left: 42px; }
  .build__progress { bottom: 0; }

  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 56vw; }
  .pj, .pj--wide { grid-column: span 1; grid-row: span 1; }
  .pj--xl { grid-column: span 2; grid-row: span 1; }
  .pj--tall { grid-row: span 2; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hide-sm { display: none; }
  .nav__notice { font-size: 12px; }
  .nav__notice a { display: none; }
  .hero__img { height: 62svh; }
  .spec { min-width: 0; right: 14px; }
  .facts__grid { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding-left: 0; border-left: 0; }
  .models__grid { grid-template-columns: minmax(0, 1fr); }
  .timeline { grid-template-columns: minmax(0, 1fr); padding-top: 0; padding-left: 36px; row-gap: 32px; }
  .tl::before { top: 4px; left: -36px; }
  .gallery { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 82vw; gap: 10px; }
  .pj, .pj--xl, .pj--tall, .pj--wide { grid-column: span 1; grid-row: span 1; }
  .seg span { padding: 12px 4px; font-size: 14px; }
  .about__people { grid-template-columns: minmax(0, 1fr); }
  .about__people div + div { padding-left: 0; border-left: 0; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .build__meters { grid-template-columns: auto auto; }
  .meter b { font-size: 20px; }
  .step__b p { font-size: 14px; padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .marquee__track { animation: none; }
}

/* half-column headings */
.about .h2, .faq .h2, .calc .h2 { font-size: clamp(34px, 4.1vw, 66px); }

/* =====================================================================
   POLISH LAYER — finishing details
   ===================================================================== */

/* ---------- Utilities ---------- */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip {
  position: fixed; left: var(--gut); top: 12px; z-index: 200;
  background: var(--ink); color: var(--card); padding: 13px 20px; border-radius: 2px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  transform: translateY(-220%); transition: transform .5s var(--ease);
}
.skip:focus-visible { transform: none; outline-color: var(--larch-2); outline-offset: 3px; }
main:focus { outline: none; }

/* ---------- Photos: blur-up ---------- */
.js .ph-img:not(.is-loaded) { opacity: 0; }

/* ---------- Focus on dark surfaces ---------- */
.build :focus-visible, .contact :focus-visible, .foot :focus-visible, .nav.is-dark :focus-visible, .nav__notice :focus-visible, .toast :focus-visible { outline-color: var(--larch-2); }
.seg--dark input:focus-visible + span { outline-color: var(--larch-2); }
.nav.is-open :focus-visible { outline-color: var(--larch); }
input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1px var(--larch), 0 0 0 6px rgba(194, 89, 42, .28); }
input[type=range]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 1px var(--larch), 0 0 0 6px rgba(194, 89, 42, .28); }

/* ---------- Hover / active states ---------- */
.btn { transition: transform .5s var(--ease), background-color .45s, color .45s; }
.nav__phone { transition: color .3s; }
.nav__phone:hover { color: var(--larch); }
.nav.is-dark .nav__phone:hover { color: var(--larch-2); }
.nav__burger:active span { transform: scaleX(.8); }
.nav.is-open .nav__burger:active span:first-child { transform: translateY(4px) rotate(45deg) scaleX(.8); }
.nav.is-open .nav__burger:active span:last-child { transform: translateY(-4px) rotate(-45deg) scaleX(.8); }
.nav__sheet a { transition: color .3s, padding .5s var(--ease); }
.nav__sheet a:active { color: var(--larch); padding-left: 10px; }
.brand svg { transition: transform .6s var(--ease); }
.brand:hover svg { transform: translateY(-2px); }
.brand:active svg { transform: translateY(1px); }
.link-u:active { opacity: .7; }
.filters button { transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.filters button:active { transform: scale(.96); }
.seg span, .chips span, .stages span { transition: background .35s, color .35s, border-color .3s, transform .3s var(--ease); }
.seg label:active span, .chips label:active span, .stages label:active span { transform: scale(.985); }
.stages label:hover span { border-color: var(--ink); }
.chips label:hover span { border-color: var(--ink); }
.pj:active { transform: scale(.992); }
.model:active { transform: translateY(-2px); }
.acc summary:active { opacity: .65; }
.foot__base a, .foot__ck { transition: color .3s; }
.foot__base a:hover, .foot__ck:hover { color: var(--on-dark); }
.foot__base { flex-wrap: wrap; gap: 10px 24px; }
.foot__ck { font-size: inherit; color: inherit; text-decoration: underline; text-decoration-color: var(--line-dark); text-underline-offset: 4px; }
.foot__ck:hover { text-decoration-color: currentColor; }
.foot__links a:active, .foot__ck:active { opacity: .6; }
.nav__links a:active { opacity: .6; }
.in input:focus-visible, .in textarea:focus-visible { box-shadow: 0 1px 0 0 var(--larch-2); }

/* ---------- Buttons: loading → success ---------- */
.btn__spin, .btn__ok { display: none; }
.btn .btn__spin { width: 24px; height: 20px; fill: none; stroke: currentColor; stroke-width: 4.2; stroke-linecap: square; stroke-dasharray: 1; stroke-dashoffset: 1; }
.btn .btn__ok { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.btn__ok path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.btn:hover .btn__spin, .btn:hover .btn__ok { transform: none; }
.btn.is-busy .btn__arrow, .btn.is-done .btn__arrow { display: none; }
.btn.is-busy .btn__spin { display: block; animation: beam 1.1s var(--ease-io) infinite; }
.btn.is-done .btn__ok { display: block; }
.btn.is-done .btn__ok path { animation: draw .6s var(--ease-io) forwards; }
@keyframes beam { 0% { stroke-dashoffset: 1; } 55% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
.btn:disabled { cursor: progress; }
.btn:disabled::before { display: none; }
.btn:disabled:active { transform: none; }
.form .btn--larch:disabled:hover { color: var(--fg); }
.form .btn--larch.is-done { --bg: var(--on-dark); --fg: var(--ink); cursor: default; }

/* ---------- Form: inline messages ---------- */
.in-w { display: block; min-width: 0; }
.in__err { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; font-size: 13.5px; line-height: 1.4; color: #F0866A; animation: errIn .5s var(--ease); }
.in__err[hidden], .form__err[hidden] { display: none; }
.in__err::before { content: ""; flex: none; width: 8px; height: 2px; margin-top: .65em; background: currentColor; }
@keyframes errIn { from { opacity: 0; transform: translateY(-6px); } }
.in input[aria-invalid=true] { border-color: #E2704F; }
.in.is-bad span { color: #F0866A; }
.form__err { padding: 12px 14px; border: 1px solid rgba(240, 134, 106, .5); background: rgba(226, 112, 79, .1); color: #F6B7A4; font-size: 14px; line-height: 1.45; animation: errIn .5s var(--ease); }
.in--area.is-flash textarea { animation: flash 1.6s var(--ease); }
@keyframes flash { 0% { background: rgba(218, 120, 67, .32); } 100% { background: rgba(218, 120, 67, 0); } }

/* ---------- Toasts ---------- */
.toasts {
  position: fixed; left: 50%; bottom: 24px; z-index: 130; transform: translateX(-50%);
  display: grid; gap: 8px; justify-items: center; width: max-content; max-width: calc(100vw - 24px); pointer-events: none;
}
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--on-dark); border: 1px solid rgba(237, 231, 218, .16); border-radius: 2px;
  padding: 13px 20px 13px 16px; font-size: 14.5px; font-weight: 500; line-height: 1.35;
  box-shadow: 0 24px 48px -20px rgba(25, 24, 22, .55);
  animation: toastIn .6s var(--ease) both;
}
.toast::before { content: ""; flex: none; width: 9px; height: 9px; background: var(--larch-2); transform: rotate(45deg); }
.toast.is-warn::before { background: #E2704F; }
.toast.is-out { animation: toastOut .45s var(--ease-io) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(.98); } }

/* ---------- Copy buttons ---------- */
.copy { position: relative; flex: none; width: 32px; height: 32px; margin: -5px 0 0 2px; display: inline-grid; place-items: center; border: 1px solid var(--line-dark); color: var(--on-dark-2); transition: border-color .3s, color .3s, background .3s, transform .3s var(--ease); }
.contact__list .copy svg { grid-area: 1 / 1; width: 15px; height: 15px; margin: 0; stroke: currentColor; stroke-width: 1.8; transition: opacity .3s, transform .5s var(--ease); }
.copy:hover { border-color: var(--larch-2); color: var(--on-dark); }
.copy:active { transform: scale(.9); }
.copy .copy__ok { opacity: 0; transform: scale(.5); }
.copy.is-ok { border-color: var(--larch-2); color: var(--larch-2); }
.copy.is-ok svg:first-child { opacity: 0; transform: scale(.5); }
.copy.is-ok .copy__ok { opacity: 1; transform: none; }

/* ---------- Back to top (+ scroll progress ring) ---------- */
.totop {
  position: fixed; right: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2vw, 28px); z-index: 60;
  width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--card); color: var(--ink); box-shadow: 0 14px 30px -14px rgba(25, 24, 22, .45);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .5s, transform .7s var(--ease), visibility 0s linear .5s, background .35s, color .35s;
}
.totop.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.totop__ring { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke-width: 2; }
.totop__ring rect { stroke: var(--larch); stroke-dasharray: 1; stroke-dashoffset: 1; }
.totop::before { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--line-2); }
.totop__ic { position: relative; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .5s var(--ease); }
.totop:hover { background: var(--ink); color: var(--card); }
.totop:hover .totop__ic { transform: translateY(-3px); }
.totop:active { transform: scale(.94); }
.totop:focus-visible { outline-color: var(--larch); outline-offset: 4px; }

/* ---------- Cookie banner ---------- */
.ck {
  position: fixed; left: clamp(12px, 2vw, 28px); bottom: clamp(12px, 2vw, 28px); z-index: 120;
  width: min(468px, calc(100vw - 24px)); max-height: calc(100vh - 24px); max-height: calc(100svh - 24px); overflow: auto; overscroll-behavior: contain;
  background: var(--card); color: var(--ink); border: 1px solid var(--ink); border-radius: 2px;
  padding: 20px 20px 18px; box-shadow: 0 36px 70px -26px rgba(25, 24, 22, .5);
}
.ck[hidden] { display: none; }
.ck:focus { outline: none; }
.ck.is-in { animation: ckIn .9s var(--ease) both; }
.ck.is-out { animation: ckOut .45s var(--ease-io) forwards; }
@keyframes ckIn { from { opacity: 0; transform: translateY(28px); } }
@keyframes ckOut { to { opacity: 0; transform: translateY(18px); } }
.ck__head { display: flex; align-items: center; gap: 14px; }
.ck__ring { flex: none; width: 42px; height: 42px; overflow: visible; fill: none; stroke: var(--larch); stroke-width: 1.3; }
.ck__ring circle { transform-box: fill-box; transform-origin: center; }
.ck__ring path { stroke: var(--ink); stroke-width: 1.2; stroke-linecap: round; }
.ck.is-in .ck__ring circle { animation: ringIn 1s var(--ease) both; }
.ck.is-in .ck__ring circle:nth-child(2) { animation-delay: .1s; }
.ck.is-in .ck__ring circle:nth-child(3) { animation-delay: .2s; }
.ck.is-in .ck__ring circle:nth-child(4) { animation-delay: .3s; }
@keyframes ringIn { from { transform: scale(0); opacity: 0; } }
.ck__k { display: block; color: var(--larch); }
.ck__t { margin-top: 2px; font-size: 22px; line-height: 1.1; font-weight: 800; font-stretch: 118%; font-variation-settings: "wdth" 118; letter-spacing: -.03em; }
.ck__p { margin-top: 14px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.ck__set { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .6s var(--ease), visibility 0s linear .6s; }
.ck.is-set .ck__set { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.ck__setin { min-height: 0; overflow: hidden; display: grid; padding: 0 2px; }
.ck.is-set .ck__setin { padding-top: 14px; }
.ck__setin .ck__btn { margin: 12px 0 2px; width: 100%; }
.ck__act { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px; align-items: center; margin-top: 16px; }
.ck__btn {
  position: relative; isolation: isolate; overflow: hidden; height: 46px; padding: 0 14px;
  border: 1px solid var(--ink); border-radius: 2px; background: transparent; color: var(--ink);
  font-weight: 600; font-size: 15px; letter-spacing: -.005em; white-space: nowrap;
  transition: color .45s, transform .4s var(--ease);
}
.ck__btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .5s var(--ease); }
.ck__btn:hover { color: var(--card); }
.ck__btn:hover::before { transform: scaleY(1); }
.ck__btn:active { transform: scale(.97); }
.ck__more { position: relative; padding: 8px 6px 8px 2px; font-weight: 600; font-size: 14.5px; white-space: nowrap; transition: color .3s; }
.ck__more::after { content: "+"; display: inline-block; margin-left: 8px; font-family: var(--mono); font-weight: 400; transition: transform .45s var(--ease); }
.ck__more[aria-expanded=true]::after { transform: rotate(45deg); }
.ck__more:hover { color: var(--larch); }
.ck__more:active { opacity: .6; }
.tg { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.tg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tg__ui { position: relative; flex: none; width: 42px; height: 24px; margin-top: 1px; border: 1.5px solid var(--ink); transition: background .35s, border-color .35s; }
.tg__ui::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: var(--ink); transition: transform .5s var(--ease), background .35s; }
.tg input:checked + .tg__ui { background: var(--ink); }
.tg input:checked + .tg__ui::after { transform: translateX(18px); background: var(--larch-2); }
.tg input:focus-visible + .tg__ui { outline: 2px solid var(--larch); outline-offset: 3px; }
.tg input:disabled + .tg__ui { opacity: .55; }
.tg:has(input:disabled) { cursor: not-allowed; }
.tg__txt b { display: block; font-size: 15px; font-weight: 650; }
.tg__txt small { display: block; font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }

@media (max-width: 640px) {
  .toasts { bottom: 16px; }
  .toast { font-size: 14px; }
  .totop { width: 46px; height: 46px; }
  /* compact strip: ring + one short paragraph, then the three controls (keeps the hero CTA clear on common phones) */
  .ck { left: 8px; right: 8px; bottom: 8px; width: auto; padding: 12px 12px 12px; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; }
  .ck__head { display: contents; }
  .ck__head > div { display: none; }
  .ck__ring { width: 30px; height: 30px; grid-column: 1; grid-row: 1; }
  .ck__p { grid-column: 2; grid-row: 1; margin: 0; font-size: 13px; line-height: 1.38; }
  .ck__set { grid-column: 1 / -1; }
  .ck__act { grid-column: 1 / -1; grid-template-columns: auto 1fr 1fr; gap: 6px; margin-top: 10px; }
  .ck__btn { height: 42px; padding: 0 6px; font-size: 14px; }
  .ck__more { padding: 8px 6px 8px 2px; font-size: 13.5px; }
  .ck__more::after { display: none; }
  .copy { width: 36px; height: 36px; margin-top: -8px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn.is-busy .btn__spin { animation: none; stroke-dashoffset: 0; }
}

.form__again { margin-top: 14px; font-size: 14px; color: var(--on-dark-2); transition: color .3s; }
.form__again:hover { color: var(--on-dark); }
.form__ok:focus { outline: none; }

/* =====================================================================
   MOBILE LAYER — phones first-class (touch, small screens, safe areas)
   ===================================================================== */

/* ---------- Dock: compact phone action bar (hidden everywhere else) ---------- */
.dock { display: none; }

/* ---------- Shared: horizontal snap rows get a thin progress rail (JS adds .snapbar) ---------- */
.snapbar { display: none; }

/* ---------- Hover-less devices: no sticky hover, real pressed states ---------- */
@media (hover: none) {
  html { -webkit-tap-highlight-color: transparent; }
  .btn:hover::before { transform: scaleY(0); }
  .btn:active::before { transform: scaleY(1); }
  .btn:hover svg { transform: none; }
  .btn:active svg { transform: translateX(3px); }
  .btn--larch:active { color: #FFF8F0; }
  .btn--ink:active { color: var(--card); }
  .form .btn--larch:hover { color: var(--fg); }
  .form .btn--larch:active { color: var(--ink); }
  .form .btn--larch:disabled:active { color: var(--fg); }
  .link-u:hover::after { transform: none; }
  .nav__notice a:hover { color: var(--on-dark-2); }
  .nav__phone:hover { color: inherit; }
  .brand:hover svg { transform: none; }
  .model:hover { transform: none; box-shadow: none; }
  .model:hover .plan-walls path:first-child { stroke: var(--ink); }
  .model:active .plan-walls path:first-child { stroke: var(--larch); }
  .seg label:hover span, .seg--dark label:hover span { background: transparent; }
  .seg label:active span { background: rgba(25, 24, 22, .06); }
  .seg--dark label:active span { background: rgba(237, 231, 218, .1); }
  .seg input:checked + span:active { background: var(--ink); }
  .seg--dark input:checked + span:active { background: var(--on-dark); }
  .stages label:hover span, .chips label:hover span { border-color: var(--line-2); }
  .stages label:active span, .chips label:active span { border-color: var(--ink); }
  .stages input:checked + span, .chips input:checked + span { border-color: var(--ink); }
  .filters button:hover { border-color: var(--line-2); }
  .filters button.is-on:hover { border-color: var(--ink); }
  .filters button:active { background: rgba(25, 24, 22, .08); }
  .filters button.is-on:active { background: var(--ink); }
  .pj:hover .pj__img img { transform: scale(1.001); transition-duration: 1.8s; }
  .pj__cap b, .pj:hover .pj__cap b { transform: none; }
  .acc summary:hover { color: inherit; }
  .acc summary:active { color: var(--larch); opacity: 1; }
  .foot__links a:hover, .foot__base a:hover, .foot__ck:hover { color: inherit; }
  .foot__links a:active, .foot__base a:active, .foot__ck:active { color: var(--on-dark); opacity: 1; }
  .copy:hover { border-color: var(--line-dark); color: var(--on-dark-2); }
  .copy:active { border-color: var(--larch-2); color: var(--on-dark); }
  .copy.is-ok:hover { border-color: var(--larch-2); color: var(--larch-2); }
  .contact__list a:hover { border-color: var(--line-dark); }
  .totop:hover { background: var(--card); color: var(--ink); }
  .totop:hover .totop__ic { transform: none; }
  .totop:active { background: var(--ink); color: var(--card); transform: scale(.94); }
  .ck__btn:hover { color: var(--ink); }
  .ck__btn:hover::before { transform: scaleY(0); }
  .ck__btn:active { color: var(--card); }
  .ck__btn:active::before { transform: scaleY(1); }
  .ck__more:hover { color: inherit; }
  .ck__more:active { color: var(--larch); opacity: 1; }
  .form__again:hover { color: var(--on-dark-2); }
  .form__again:active { color: var(--on-dark); }
}

/* ---------- Coarse pointers: big, forgiving controls ---------- */
@media (pointer: coarse) {
  input[type=range] { height: 44px; touch-action: pan-y; }
  input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; }
  input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; }
  input[type=range]::-webkit-slider-thumb { width: 32px; height: 32px; margin-top: -14px; border-width: 5px; }
  input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-width: 5px; }
  input[type=range]:active::-webkit-slider-thumb { transform: scale(1.12) rotate(45deg); }
  .ruler { margin-top: -6px; }
  .brand { min-height: 44px; }
  .nav__burger { width: 48px; height: 48px; margin-right: -9px; }
  .nav__burger span { left: 12px; right: 12px; }
  .nav__burger span:first-child { top: 18px; } .nav__burger span:last-child { top: 26px; }
  .nav__burger:active { background: rgba(25, 24, 22, .06); }
  .nav.is-dark .nav__burger:active { background: rgba(237, 231, 218, .1); }
  .copy { width: 44px; height: 44px; margin: 0 0 0 4px; }
  .contact__list li { align-items: center; min-height: 44px; }
  .contact__list li:has(.maplink) { align-items: flex-start; }
  .contact__list a { border-bottom: 0; text-decoration: underline; text-decoration-color: var(--line-dark); text-decoration-thickness: 1px; text-underline-offset: 5px; padding: 11px 0; }
  .contact__list a:active { text-decoration-color: var(--on-dark); }
  .contact__list li:has(.maplink) svg { margin-top: 13px; }
  .foot__links a, .foot__ck, .foot__base a { display: inline-flex; align-items: center; min-height: 44px; }
  .foot__base { padding-top: 10px; }
  .link-u { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
  .link-u::after { bottom: 10px; }
  .filters { gap: 8px; }
  .filters button { min-height: 44px; }
  .chips span { min-height: 46px; }
  .seg span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding-block: 8px; }
  .in input, .in textarea { scroll-margin-block: 110px 170px; }
  .in textarea { resize: none; }
  .ck__btn { min-height: 44px; }
  .ck__more { min-height: 44px; }
  .tg { padding: 14px 0; }
  .acc summary { min-height: 56px; }
}

/* ---------- Tablet & down: menu sheet + the signature section ---------- */
@media (max-width: 960px) {
  html.menu-open, html.menu-open body { overflow: hidden; }
  .nav__sheet {
    padding: 96px var(--gut) calc(28px + env(safe-area-inset-bottom));
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    grid-auto-rows: min-content;
  }
  .nav__sheet > a { font-size: clamp(30px, 6.3svh, 42px); min-height: 56px; display: flex; align-items: center; padding-block: 4px; }
  .nav__sheet-call { margin-top: 26px; }
  .nav__sheet .btn { width: 100%; min-height: 58px; font-size: 17px; font-weight: 600; letter-spacing: -.005em; font-variation-settings: normal; border-bottom: 0; padding: 0 26px; }
  .nav__sheet .btn:active { padding-left: 26px; color: #FFF8F0; }
  .nav__sheet .btn svg { width: 20px; height: 20px; }
  html.menu-open .ck, html.menu-open .dock, html.menu-open .totop, html.menu-open .toasts { visibility: hidden; }

  /* signature: house on top, current step below, whatever height the phone has */
  .build { height: 470vh; height: 470svh; }
  .build__sticky { height: 100vh; height: 100svh; }
  .build__inner { display: flex; flex-direction: column; height: 100%; padding-top: 64px; padding-bottom: calc(14px + env(safe-area-inset-bottom)); gap: 0; }
  .build__stage { order: -1; flex: 1 1 0; min-height: 0; height: auto; flex-direction: column; align-items: stretch; justify-content: center; }
  .build__stage #house { flex: 1 1 0; min-height: 0; height: auto; width: 100%; }
  .build__copy { flex: none; gap: 12px; }
  .build__progress { position: static; flex: none; justify-content: flex-start; gap: 8px; padding: 2px 0 6px; }
  .build__track { display: none; }
  .build__progress .mono { white-space: nowrap; }
  .step__h { padding: 10px 0 6px; }
  .step__b p { max-width: none; padding-bottom: 6px; }
}

/* step dots (JS-built): tap a layer to jump to it. Desktop never shows them */
.build__dots { display: none; }
@media (max-width: 960px) {
  .build__dots { display: flex; margin: 0 -12px 0 auto; }
  .build__dots button { position: relative; width: 36px; height: 44px; display: grid; place-items: center; -webkit-tap-highlight-color: transparent; }
  .build__dots button::before { content: ""; width: 8px; height: 8px; border: 1px solid var(--on-dark-2); background: transparent; transition: background .3s, border-color .3s, transform .4s var(--ease); }
  .build__dots button.is-done::before { background: rgba(237, 231, 218, .55); border-color: transparent; }
  .build__dots button.is-on::before { background: var(--larch-2); border-color: var(--larch-2); transform: rotate(45deg) scale(1.35); }
  .build__dots button:active::before { transform: rotate(45deg) scale(1.6); }
}

/* phones in landscape: copy beside the house, as on desktop but compact */
@media (max-width: 960px) and (max-height: 520px) and (orientation: landscape) {
  .build { height: 520vh; height: 520svh; }
  .build__inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-rows: none; align-content: center; align-items: center; gap: 20px; padding-top: 48px; padding-bottom: 10px; }
  .build__stage { order: 0; height: 100%; }
  .build__copy { gap: 8px; }
  .step__h b { font-size: 16px; }
  .step__b p { font-size: 13px; line-height: 1.4; }
  .step__h small { white-space: nowrap; font-size: 10px; }
  .step__h { gap: 10px; }
  .meter b { font-size: 18px; }
  .build__dots { margin-right: 0; }
  .hero__img { height: 78svh; }
  .nav__sheet { padding-top: 72px; }
  .nav__sheet > a { font-size: 26px; min-height: 46px; }
}

/* ---------- Phones ---------- */
@media (max-width: 640px) {
  :root { --nav-h: 96px; }
  [id] { scroll-margin-top: 64px; }

  /* nav: notice + bar stay slim */
  .nav__notice { height: 34px; padding-inline: var(--gut); white-space: nowrap; }
  .nav.is-scrolled .nav__notice, .nav.is-open .nav__notice { margin-top: -34px; }
  .nav__bar { height: 62px; }
  .brand svg { width: 28px; height: 23px; }
  .brand span { font-size: 20px; }

  /* hero: headline, one clear action, photo, all reachable quickly */
  .hero { padding-top: calc(var(--nav-h) + 18px); }
  .hero__meta { padding-bottom: 12px; margin-bottom: 20px; }
  .hero__title { font-size: clamp(42px, 12.6vw, 56px); line-height: .97; }
  .dim { margin: 20px 0 18px; }
  .dim__label { padding: 0 8px; font-size: 11px; white-space: nowrap; }
  .hero__row { gap: 20px; padding-bottom: 28px; }
  .hero__lead { font-size: 17px; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 4px; }
  .hero__actions .btn { width: 100%; height: 58px; }
  .hero__actions .link-u { align-self: center; }
  .hero__img { height: min(62svh, 520px); }
  .spec { left: 12px; right: 12px; bottom: 12px; padding: 12px 14px 11px; }
  .spec b { font-size: 17px; }
  .spec__row { gap: 10px; font-size: 13px; }
  .spec__row span + span { padding-left: 10px; }
  .hero__ticks span { width: 12px; height: 12px; }
  .hero__ticks span:nth-child(1) { top: -6px; left: -6px; } .hero__ticks span:nth-child(2) { top: -6px; right: -6px; }
  .hero__ticks span:nth-child(3) { bottom: -6px; left: -6px; } .hero__ticks span:nth-child(4) { bottom: -6px; right: -6px; }

  /* facts: 2 x 2 instead of four stacked rows */
  .facts { padding-top: 52px; }
  .facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { padding: 18px 12px 22px 0; gap: 10px; }
  .fact + .fact { padding-left: 14px; border-left: 1px solid var(--line); }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact b { font-size: clamp(34px, 10.5vw, 48px); }
  .fact span { font-size: 14px; }
  .marquee { margin-top: 40px; padding: 14px 0; }
  .marquee__track { animation-duration: 60s; }

  /* signature: tighter, the house is the hero of the section */
  .build { margin-top: 64px; }
  .build__title { display: none; }
  .build__meters { grid-template-columns: auto auto; gap: 8px 28px; }
  .meter b { font-size: 21px; }
  .section-bar { height: 8px; }

  /* sections */
  .section { padding: 64px 0; }
  .head { gap: 16px; margin-bottom: 30px; }
  .head--split { gap: 22px; }
  .head__p { font-size: 17px; }
  .h2 { line-height: .95; }

  /* models: swipe row with a peek of the next plan */
  .models__grid { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); margin-inline: calc(var(--gut) * -1); padding: 4px var(--gut) 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .models__grid::-webkit-scrollbar { display: none; }
  .model { flex: 0 0 80%; scroll-snap-align: start; scroll-snap-stop: always; }
  .model:nth-child(n) { --d: 0ms; }
  .model__body { padding: 18px 18px 20px; }
  .model p { font-size: 15px; }

  /* snap progress rail */
  .snapbar { display: block; height: 2px; margin-top: 14px; background: var(--line); position: relative; overflow: hidden; }
  .snapbar i { position: absolute; inset: 0 auto 0 0; width: 30%; background: var(--larch); transform: translateX(var(--sx, 0px)); will-change: transform; }

  /* calculator: the price follows you while you change inputs */
  .calc__intro { gap: 18px; }
  .calc__box { padding: 20px 16px 18px; gap: 22px; }
  .field__top { align-items: center; }
  .field output { font-size: 17px; }
  .seg span { font-size: 14px; padding-inline: 2px; }
  .stages span { padding: 14px; }
  .stages small { font-size: 13.5px; }
  .calc__result { display: contents; }
  .calc__result > div:first-child {
    position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 6;
    margin: 0 -16px; padding: 12px 16px 13px; display: grid; gap: 3px;
    background: var(--ink); color: var(--on-dark);
    box-shadow: 0 -14px 28px -16px rgba(25, 24, 22, .55), 0 14px 28px -16px rgba(25, 24, 22, .35);
  }
  .calc__result > div:first-child .mono { color: var(--on-dark-2); }
  .calc__price { font-size: clamp(22px, 6.9vw, 30px); margin-top: 0; }
  .calc__side { padding-top: 0; border-top: 0; margin-top: -4px; }
  .calc__side b { font-size: 16px; }

  /* process: vertical rail that fills as you read */
  .timeline { padding-left: 38px; row-gap: 30px; }
  .timeline::before, .timeline::after { display: block; left: 8px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; }
  .timeline::after { transform-origin: 50% 0; transform: scaleY(var(--prog)); }
  .tl::before { top: 3px; left: -38px; }
  .tl { padding-right: 0; }
  .tl h3 { font-size: 20px; }

  /* gallery: swipe row, filters become a comfortable chip strip */
  .gallery { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery .pj, .gallery .pj--xl, .gallery .pj--tall, .gallery .pj--wide { flex: 0 0 82%; aspect-ratio: 4 / 5; max-height: 70svh; scroll-snap-align: start; scroll-snap-stop: always; }
  .pj__cap { padding: 16px 16px 15px; }
  .pj__cap b { font-size: 19px; }
  .pj__cap span { font-size: 13.5px; }

  /* about / reviews / faq */
  .about__ph { aspect-ratio: 1 / 1; }
  .about__copy { gap: 24px; padding-top: 6px; }
  .about__text { font-size: 17px; gap: 14px; }
  .about__quote { padding-left: 18px; }
  .about__quote p { font-size: 23px; }
  .reviews__grid { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scrollbar-width: none; margin-top: 22px; -webkit-overflow-scrolling: touch; }
  .reviews__grid::-webkit-scrollbar { display: none; }
  .reviews__grid .rv { flex: 0 0 84%; scroll-snap-align: start; gap: 22px; padding: 22px 20px; }
  .rv blockquote { font-size: 18px; }
  .acc summary { padding: 18px 0; gap: 18px; font-size: 18px; }
  .acc details p { padding: 0 0 22px; font-size: 16px; }

  /* contact + form */
  .contact { padding: 64px 0 56px; }
  .contact__copy { gap: 22px; }
  .contact__copy > p { font-size: 17px; }
  .contact__list { gap: 4px; }
  .form { gap: 18px; }
  .in input, .in textarea { padding-top: 28px; padding-bottom: 12px; }
  .in span { top: 28px; }
  .form .btn--larch { margin-top: 4px; }

  /* footer */
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
  .foot__grid > div:nth-child(-n+2) { grid-column: 1 / -1; }
  .foot__links { gap: 0; }

  /* fixed UI: one coordinated stack (dock, then back-to-top, then toasts), never over the form or the pinned house */
  .dock {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    padding: 8px max(10px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    background: var(--ink); border-top: 1px solid rgba(237, 231, 218, .16);
    transform: translateY(105%); visibility: hidden;
    transition: transform .55s var(--ease), visibility 0s linear .55s;
  }
  .dock.is-on { transform: none; visibility: visible; transition-delay: 0s; }
  .dock a { height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 15px; letter-spacing: -.005em; border-radius: 2px; transition: transform .3s var(--ease), background-color .3s, color .3s; white-space: nowrap; }
  .dock a:active { transform: scale(.97); }
  .dock svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
  .dock__call { flex: 0 0 auto; padding: 0 18px; color: var(--on-dark); box-shadow: inset 0 0 0 1px rgba(237, 231, 218, .32); }
  .dock__call:active { background: rgba(237, 231, 218, .12); }
  .dock__main { flex: 1 1 auto; min-width: 0; padding: 0 14px; background: var(--larch); color: #FFF8F0; }
  .dock__main:active { background: var(--larch-2); }
  .dock :focus-visible { outline-color: var(--larch-2); outline-offset: -4px; }

  .totop { right: max(12px, env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom)); transition: opacity .5s, transform .7s var(--ease), bottom .5s var(--ease), visibility 0s linear .5s, background .35s, color .35s; }
  body.has-dock .totop { bottom: calc(82px + env(safe-area-inset-bottom)); }
  .toasts { bottom: calc(16px + env(safe-area-inset-bottom)); max-width: calc(100vw - 24px); transition: bottom .5s var(--ease); }
  body.has-dock .toasts { bottom: calc(82px + env(safe-area-inset-bottom)); }
  .toast { max-width: 100%; }
  .ck { left: max(8px, env(safe-area-inset-left)); right: max(8px, env(safe-area-inset-right)); bottom: calc(8px + env(safe-area-inset-bottom)); }
}

/* very small phones (320 to 360) */
@media (max-width: 360px) {
  body { font-size: 15.5px; }
  .nav__notice { font-size: 11.5px; gap: 8px; }
  .hero__title { font-size: 40px; }
  .seg span { font-size: 13px; letter-spacing: -.015em; }
  .dim__label { font-size: 10px; letter-spacing: .02em; }
  .model { flex-basis: 84%; }
  .ck__btn { font-size: 13px; padding: 0 4px; }
  .ck__more { font-size: 13px; }
  .dock__call { padding: 0 14px; }
  .dock__main { font-size: 14px; padding: 0 10px; }
  .step__h b { font-size: 16px; }
  .step__h small { font-size: 10px; }
  .build__dots button { width: 30px; }
  .h2 { font-size: clamp(30px, 10.4vw, 36px); }
  .contact__title { font-size: 40px; }
}

/* phones in landscape: fixed chrome must not eat the short screen */
@media (max-height: 520px) and (orientation: landscape) and (max-width: 960px) {
  .dock { display: none !important; }
  body.has-dock .totop { bottom: 14px; }
  body.has-dock .toasts { bottom: 16px; }
  .totop { width: 42px; height: 42px; }
  /* cookie strip: one slim row (ring, text, buttons) instead of the tall card */
  .ck { left: max(8px, env(safe-area-inset-left)); right: max(8px, env(safe-area-inset-right)); bottom: 8px; width: auto; max-height: calc(100svh - 16px); padding: 10px 12px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 12px; align-items: center; }
  .ck__head { display: contents; }
  .ck__head > div { display: none; }
  .ck__ring { width: 28px; height: 28px; grid-column: 1; grid-row: 1; }
  .ck__p { grid-column: 2; grid-row: 1; margin: 0; font-size: 12.5px; line-height: 1.35; }
  .ck__act { grid-column: 3; grid-row: 1; margin: 0; grid-template-columns: auto auto auto; gap: 6px; }
  .ck__set { grid-column: 1 / -1; grid-row: 2; }
  .ck__btn { height: 44px; padding: 0 14px; font-size: 14px; }
  .ck__more { padding: 8px 6px 8px 2px; font-size: 13.5px; }
  .ck__more::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .dock, .totop, .toasts { transition: none; }
}

/* ---------- Language switch (SK | EN) ---------- */
.lang { display: inline-flex; align-items: center; flex: none; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; line-height: 1; color: inherit; }
.lang button { position: relative; padding: 10px 8px; min-width: 34px; text-align: center; opacity: .55; transition: opacity .3s; }
.lang button + button::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 12px; margin-top: -6px; background: currentColor; opacity: .45; }
.lang button[aria-pressed="true"] { opacity: 1; font-weight: 500; cursor: default; }
.lang button[aria-pressed="true"]::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 6px; height: 1.5px; background: var(--larch); }
.nav.is-dark .lang button[aria-pressed="true"]::after, .lang--foot button[aria-pressed="true"]::after { background: var(--larch-2); }
.lang--foot button[aria-pressed="true"] { color: var(--on-dark); }
.lang--foot { margin-left: -8px; }
@media (hover: hover) { .lang button:hover { opacity: 1; } }
.lang button:active { opacity: 1; }
@media (hover: none), (pointer: coarse) { .lang button { min-height: 44px; } }
@media (max-width: 640px) {
  .nav__cta { gap: 2px; }
  .lang button { padding-inline: 7px; min-width: 32px; }
  .lang button[aria-pressed="true"]::after { left: 7px; right: 7px; }
}

/* right after a language switch: no loader, no entrance transitions (the page reloads in place) */
html.i18n-switch .loader { display: none; }
html.i18n-switch *, html.i18n-switch *::before, html.i18n-switch *::after { transition-duration: 0s !important; transition-delay: 0s !important; }

/* ---------- Demo notes (fictional business) ---------- */
.foot__demo { margin: 0; padding-top: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-2); opacity: .7; }
.form__ok .form__demo { margin-top: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; opacity: .7; }
@media (max-width: 640px) { .foot__demo { padding-top: 6px; } }

/* the fictional-company note has to stay readable on the dark footer */
.foot__demo { color: #A8A59D; }

/* the dot of the i in "poriadne" stays clear of the line above */
.hero__title > span:last-child { margin-top: .07em; }

/* Calculator: everything fits on one screen, nothing to scroll while filling it in */
@media (min-width: 1025px) {
  .calc { padding-block: 84px 28px; min-height: 100svh; display: flex; align-items: center; }
  .calc > .wrap { width: 100%; }
  .calc__grid { grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); gap: clamp(28px, 3.4vw, 64px); align-items: center; }
  .calc__intro { position: static; gap: clamp(10px, 2vh, 22px); }
  .calc .h2 { font-size: clamp(30px, min(3.4vw, 6.6vh), 60px); }
  .calc .head__p { font-size: min(16px, 2.2vh); }
  .calc__incl { gap: 6px; margin-top: 0; }
  .calc__incl li { font-size: min(15px, 2.1vh); }
  .calc__box { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 2.6vw, 44px); row-gap: clamp(10px, 2vh, 22px); padding: clamp(16px, 3vh, 34px) clamp(20px, 2.4vw, 36px); }
  .calc__box > .field:nth-child(1) { grid-column: 1; grid-row: 1; }
  .calc__box > .field:nth-child(2) { grid-column: 1; grid-row: 2; }
  .calc__box > .field:nth-child(3) { grid-column: 1; grid-row: 3; }
  .calc__box > .field:nth-child(4) { grid-column: 2; grid-row: 1; }
  .calc__box > .calc__result { grid-column: 2; grid-row: 2 / 4; align-self: end; gap: clamp(10px, 1.8vh, 18px); padding-top: clamp(12px, 2vh, 22px); }
  .calc__box .field { gap: clamp(6px, 1.2vh, 12px); align-content: start; }
  .calc__box .field legend { margin-bottom: clamp(6px, 1.2vh, 12px); }
  .calc__box .stages { gap: clamp(4px, .8vh, 8px); }
  .calc__box .stages span { padding: clamp(6px, 1.2vh, 14px) 14px; }
  .calc__box .stages b { font-size: min(16px, 2.2vh); }
  .calc__box .stages small { font-size: min(14px, 1.9vh); }
  .calc__box .seg span { padding-block: clamp(7px, 1.3vh, 13px); }
  .calc__box .chips span { padding: clamp(6px, 1.1vh, 10px) 12px; font-size: min(15px, 2vh); }
  .calc__price { font-size: clamp(20px, min(2.15vw, 4.6vh), 38px); }
  .calc__side { padding-top: clamp(8px, 1.4vh, 18px); gap: 10px; }

  /* O nás: photo and text share one screen */
  .about { padding-block: 84px 28px; min-height: 100svh; display: flex; align-items: center; }
  .about > .wrap { width: 100%; }
  .about__grid { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(28px, 4vw, 72px); align-items: center; }
  .about__img { position: static; }
  .about__ph { aspect-ratio: auto; height: calc(100svh - 150px); max-height: 760px; }
  .about__img figcaption { margin-top: 8px; }
  .about__copy { gap: clamp(10px, 2vh, 24px); padding-top: 0; }
  .about .h2 { font-size: clamp(30px, min(3.7vw, 6.4vh), 60px); }
  .about__text { gap: clamp(6px, 1.2vh, 14px); font-size: min(17px, 2.25vh); max-width: none; }
  .about__quote { padding-block: 2px; padding-left: 20px; gap: 6px; }
  .about__quote p { font-size: clamp(19px, min(1.9vw, 3.4vh), 30px); }
  .about__quote footer { font-size: min(14px, 1.9vh); }
  .about__people div { padding-top: clamp(8px, 1.3vh, 14px); }
  .about__people b { font-size: min(15px, 2vh); }
  .about__people span { font-size: min(14px, 1.9vh); }
}
