/* Laiptų magija. White + graphite, logo green as the only accent. Stepped section edges. */
:root {
  --white: #ffffff;
  --ink: #1f2224;
  --ink-2: #50555a;
  --ink-3: #7b8186;
  --line: #dfe1e0;
  --soft: #f1f2f1;
  --dark: #1f2224;
  --dark-2: #2a2e31;
  --dark-3: #16181a;
  --on-dark: #e9ebea;
  --on-dark-2: #a9afb3;
  --green: #344e43;
  --green-d: #344e43;
  --green-l: #9db8ac; /* the brand green lightened for text on graphite */
  --oak: #9a6532;
  --ash: #d8c29b;
  --pad: max(clamp(24px, 6vw, 96px), calc((100vw - 1320px) / 2));
  --sh: 48px;
  --head: 76px;
  --f-head: "Manrope", "Segoe UI", sans-serif;
  --f-body: "Inter", "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 16px); }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.6 var(--f-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 600; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(40px, 5.6vw, 82px); font-weight: 700; }
h2 { font-size: clamp(30px, 3.6vw, 52px); }
h3 { font-size: 22px; line-height: 1.2; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.wrap { padding-inline: var(--pad); }
.lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--ink-2); max-width: 36em; }
.dark { background: var(--dark); color: var(--on-dark); }
.dark .lead, .dark .sec-head p { color: var(--on-dark-2); }
section { padding-block: clamp(72px, 9vw, 130px); }
.sec-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head p { color: var(--ink-2); font-size: 18px; margin: 0; }

/* stepped top edge: the section climbs into the one above it */
.steps-top { position: relative; margin-top: var(--sh); }
/* after a dark section the steps sit on its bottom padding instead of a white gap */
.dark + .steps-top, main:has(> .dark:last-child) + .steps-top { margin-top: 0; }
.steps-top::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: var(--sh); background: inherit;
  clip-path: polygon(0 100%, 0 83.4%, 16.7% 83.4%, 16.7% 66.7%, 33.4% 66.7%, 33.4% 50%, 50% 50%, 50% 33.4%, 66.7% 33.4%, 66.7% 16.7%, 83.4% 16.7%, 83.4% 0, 100% 0, 100% 100%);
}

/* buttons and links */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 24px; border: 1.5px solid transparent;
  font: 600 16px/1.2 var(--f-body); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-green { background: var(--green-d); color: #fff; }
.btn-green:hover { background: #263a32; }
.btn-line { border-color: currentColor; background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.dark .btn-line:hover { background: var(--on-dark); color: var(--ink); }
.btn-wide { width: 100%; }
.link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.link:hover { color: var(--green-d); }
.dark .link:hover { color: var(--green-l); }

/* header */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); }
.head-in { height: var(--head); display: flex; align-items: center; gap: 28px; padding-inline: var(--pad); }
.brand img { width: auto; height: 28px; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.nav a { white-space: nowrap; text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--ink-2); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-color: var(--green); }
.nav-call { display: none; }
.btn-call { min-height: 42px; padding: 8px 16px; font-size: 15px; background: var(--ink); color: #fff; white-space: nowrap; }
.btn-call span { font-weight: 400; color: var(--on-dark-2); }
.btn-call:hover { background: var(--green-d); }
.burger { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; background: none; cursor: pointer; position: relative; }
.burger span:not(.sr) { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform .25s; }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 26px; left: 19px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); left: 11px; }

/* home hero: dark stage, the lit stair photo enters with a stepped left edge */
.hero { padding: 0; overflow: hidden; }
.hero-stage { position: relative; min-height: min(calc(100svh - var(--head) - 140px), 760px); display: flex; align-items: center; }
.hero-stage > .wrap { width: 100%; }
.hero-photo { position: absolute; top: 0; bottom: 0; right: 0; left: calc(var(--pad) + min(44vw, 560px)); margin: 0;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%, 0 83.3%, 3.6% 83.3%, 3.6% 66.6%, 7.2% 66.6%, 7.2% 50%, 10.8% 50%, 10.8% 33.3%, 14.4% 33.3%, 14.4% 16.6%, 18% 16.6%);
  animation: stairIn 1.3s cubic-bezier(.7, 0, .2, 1) both; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 55%; animation: heroZoom 2.4s cubic-bezier(.2, .7, .2, 1) both; }
.hero-photo figcaption { position: absolute; right: var(--pad); bottom: 16px; max-width: 30em; padding: 8px 12px; background: rgba(22, 24, 26, .78);
  color: var(--on-dark); font-size: 13px; line-height: 1.4; }
@keyframes stairIn {
  from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%, 100% 83.3%, 100% 83.3%, 100% 66.6%, 100% 66.6%, 100% 50%, 100% 50%, 100% 33.3%, 100% 33.3%, 100% 16.6%, 100% 16.6%); }
}
@keyframes heroZoom { from { transform: scale(1.12); } }
.hero-text { max-width: calc(min(44vw, 560px) - 40px); padding-block: clamp(48px, 6vw, 96px); animation: fadeUp .9s .35s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } }
.hero h1 { font-size: clamp(36px, 3.3vw, 54px); color: #fff; }
.hero h1 span { display: block; }
.hero h1 span:nth-child(2) { padding-left: .45em; }
.hero h1 span:nth-child(3) { padding-left: .9em; color: var(--green-l); }
.hero .lead { color: var(--on-dark-2); }
.hero .btn-line { color: var(--on-dark); }
.hero .facts-row { padding-block: 26px 34px; position: relative; }
.hero .facts-row p { border-color: #3a3f43; color: var(--on-dark-2); }
.hero .facts-row strong { color: #fff; }
/* the heading sits in the empty triangle above the two lower steps */
.climb-grid { position: relative; }
.climb-grid .sec-head { position: absolute; top: 0; left: var(--pad); max-width: min(46%, 560px); margin: 0; }
@media (max-width: 980px) { .climb-grid .sec-head { position: static; max-width: none; margin-bottom: 28px; } }
.hero-stairs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: start; }
.hero-stairs li { margin-top: calc((3 - var(--s)) * clamp(48px, 6vw, 96px)); }
.hero-stairs a { display: block; text-decoration: none; }
.hero-stairs figure { margin: 0; overflow: hidden; aspect-ratio: 3 / 4; background: var(--soft); }
.hero-stairs img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.hero-stairs a:hover img { transform: scale(1.04); }
.hero-stairs .st-n { display: block; margin-top: 14px; padding-top: 10px; border-top: 3px solid var(--green); font: 700 15px/1 var(--f-head); color: var(--green-d); }
.hero-stairs strong { display: block; font: 600 20px/1.2 var(--f-head); margin-top: 6px; }
.hero-stairs span:last-child { display: block; font-size: 14px; color: var(--ink-3); line-height: 1.4; margin-top: 2px; }
.hero-stairs a:hover strong { color: var(--green-d); }

.facts-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.facts-row p { margin: 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.facts-row strong { display: block; font: 700 clamp(28px, 2.6vw, 38px)/1.1 var(--f-head); color: var(--ink); margin-bottom: 4px; }

/* Blender scroll scene */
.scene { padding: 0; height: 340vh; position: relative; background: var(--soft); }
.scene-sticky { position: sticky; top: var(--head); height: calc(100vh - var(--head)); height: calc(100svh - var(--head)); display: flex; align-items: center; overflow: hidden; }
.scene-grid { width: 100%; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.scene-text h2 { font-size: clamp(28px, 3vw, 44px); }
.scene-intro { color: var(--ink-2); }
.scene-phases { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 4px; }
.scene-phases li { padding: 10px 0 10px 18px; border-left: 3px solid var(--line); opacity: .4; transition: opacity .3s, border-color .3s; }
.scene-phases li.on { opacity: 1; border-color: var(--green); }
.scene-phases h3 { font-size: 19px; margin: 0 0 4px; }
.scene-phases p { margin: 0; font-size: 15px; color: var(--ink-2); max-height: 0; overflow: hidden; transition: max-height .4s; }
.scene-phases li.on p { max-height: 8em; }
.scene-count { margin: 20px 0 0; font-size: 15px; color: var(--ink-2); }
.scene-count .sc-n { font: 700 34px/1 var(--f-head); color: var(--green-d); margin-right: 6px; font-variant-numeric: tabular-nums; }
.scene-stage canvas, .scene-stage img { width: 100%; height: auto; max-height: calc(100svh - var(--head) - 40px); object-fit: contain; }
.no-js .scene { height: auto; }
.no-js .scene-sticky { position: static; height: auto; padding-block: 80px; }
.no-js .scene-phases li { opacity: 1; }
.no-js .scene-phases p { max-height: none; }

/* oak vs ash */
.woods-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: #3a3f43; }
.wood { background: var(--dark); padding: clamp(28px, 3.5vw, 48px); padding-top: 0; }
.wood::before { content: ""; display: block; height: 10px; margin-bottom: clamp(24px, 3vw, 40px); }
.wood.oak::before { background: var(--oak); }
.wood.ash::before { background: var(--ash); }
.wood h3 { font-size: clamp(30px, 3vw, 44px); }
.wood p { color: var(--on-dark-2); max-width: 32em; }
.wood dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin: 24px 0 28px; font-size: 15px; }
.wood dt { color: var(--on-dark-2); }
.wood dd { margin: 0; }

/* stair forms picker */
.forms-ui { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.forms-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.forms-tabs button { display: grid; justify-items: center; gap: 8px; padding: 14px 8px 12px; background: var(--white); border: 1.5px solid var(--line); cursor: pointer;
  font: 500 14px/1.2 var(--f-body); color: var(--ink-2); transition: border-color .2s, color .2s, background .2s; }
.forms-tabs button:hover { border-color: var(--ink-3); color: var(--ink); }
.forms-tabs button[aria-selected="true"] { border-color: var(--green-d); color: var(--ink); background: #eef2f0; }
.forms-tabs .plan { width: 56px; height: 56px; }
.plan { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.plan .wall { stroke-width: 5; stroke: var(--ink-3); }
.plan .fill { fill: currentColor; stroke: none; }
.forms-panels [role="tabpanel"] { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.forms-panels [role="tabpanel"][hidden] { display: none; }
.forms-panels .plan { width: min(100%, 320px); height: auto; color: var(--ink); stroke-width: 1.2; }
.forms-panels h3 { font-size: clamp(26px, 2.4vw, 34px); }
.forms-panels p { color: var(--ink-2); font-size: 18px; max-width: 30em; }

/* work strip: photos climb one step each */
.strip { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 10px; align-items: start; }
.strip figure { margin: 0; margin-top: calc((var(--n) - 1 - var(--i)) * 28px); aspect-ratio: 3 / 4; overflow: hidden; background: var(--soft); }
.strip img { width: 100%; height: 100%; object-fit: cover; }
.strip-more { margin-top: 32px; }

/* why us: three treads of rising height */
.why-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: end; }
.why-steps.four { grid-template-columns: repeat(4, 1fr); }
.why-steps li { background: var(--dark-2); padding: 28px 28px 32px; border-top: 4px solid var(--green); min-height: calc(220px + var(--i) * 56px); }
.why-n { display: block; font: 700 44px/1 var(--f-head); color: var(--green-l); margin-bottom: 18px; }
.why-steps p { color: var(--on-dark-2); margin: 0; }
/* reviews: stair carousel. The current review stands on the top tread, the others wait one and two
   steps lower; "next" makes everyone climb a step (positions in data-pos, rotation in site.js) */
.rv { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: start; margin-top: clamp(64px, 8vw, 112px); }
.reviews-h { font-size: clamp(26px, 2.6vw, 36px); margin-bottom: 12px; }
.rv-side p { color: var(--on-dark-2); }
.rv-ctrl { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.rv-ctrl button { width: 48px; height: 48px; border: 1.5px solid #4a5055; background: transparent; color: var(--on-dark); font-size: 28px; line-height: 1; cursor: pointer; transition: background .2s, border-color .2s; }
.rv-ctrl button:hover { background: var(--green); border-color: var(--green); }
.rv-count { color: var(--on-dark-2); font-size: 15px; min-width: 4.5em; text-align: center; }
.rv-count b { font: 700 28px/1 var(--f-head); color: var(--on-dark); margin-right: 2px; }
.rv-bar { height: 3px; background: #3a3f43; margin-top: 20px; max-width: 236px; overflow: hidden; }
.rv-bar span { display: block; height: 100%; width: 100%; background: var(--green-l); transform-origin: left; transform: scaleX(0); }
.rv.playing .rv-bar span { animation: rvFill var(--rv-dur, 7s) linear forwards; }
.rv.paused .rv-bar span { animation-play-state: paused; }
@keyframes rvFill { to { transform: scaleX(1); } }
.rv-stage { position: relative; min-height: 200px; }
.rv-card { position: absolute; left: 0; top: 0; width: 60%; margin: 0; padding: 30px 32px 28px; background: var(--dark-2);
  border-bottom: 6px solid #3a3f43; transform-origin: 0 100%; cursor: pointer;
  transition: left .75s cubic-bezier(.2, .7, .2, 1), top .75s cubic-bezier(.2, .7, .2, 1), transform .75s cubic-bezier(.2, .7, .2, 1), opacity .5s ease, border-color .5s ease; }
.rv-card[data-pos="0"] { left: 40%; top: 0; z-index: 3; opacity: 1; border-color: var(--green-l); cursor: default; }
.rv-card[data-pos="1"] { left: 20%; top: 72px; z-index: 2; opacity: .45; transform: scale(.9); }
.rv-card[data-pos="2"] { left: 0; top: 144px; z-index: 1; opacity: .22; transform: scale(.8); }
.rv-card[data-pos="1"]:hover, .rv-card[data-pos="2"]:hover { opacity: .75; }
/* depth of field: lower treads go soft, the review sharpens as it climbs */
.rv-card blockquote, .rv-card figcaption { transition: filter .75s ease; }
.rv-card[data-pos="1"] blockquote, .rv-card[data-pos="1"] figcaption { filter: blur(1.5px); }
.rv-card[data-pos="2"] blockquote, .rv-card[data-pos="2"] figcaption { filter: blur(2.5px); }
.rv-card:not([data-pos="0"]):not([data-pos="1"]):not([data-pos="2"]) { left: 0; top: 144px; z-index: 0; opacity: 0; transform: scale(.8); pointer-events: none; }
.rv-badge { display: inline-grid; grid-template-columns: auto auto; column-gap: 10px; align-items: center; margin-top: 18px; padding: 12px 16px; border: 1.5px solid #3a3f43; text-decoration: none; color: var(--on-dark-2); font-size: 14px; }
.rv-badge b { grid-row: span 2; font: 700 30px/1 var(--f-head); color: var(--on-dark); }
.rv-badge .stars { color: var(--green-l); letter-spacing: .14em; font-size: 14px; }
.rv-badge:hover { border-color: var(--green-l); color: var(--on-dark); }
.rv-card.out { opacity: 0 !important; transform: translateY(-32px); transition: opacity .32s ease, transform .32s ease; }
.rv-card.snap { transition: none !important; }
.rv-card .stars { display: block; color: var(--green-l); letter-spacing: .18em; font-size: 17px; margin-bottom: 14px; }
.rv-card blockquote { margin: 0; }
.rv-card p { font: 500 clamp(19px, 1.6vw, 23px)/1.45 var(--f-head); margin: 0 0 18px; color: var(--on-dark); }
.rv-card figcaption { color: var(--on-dark-2); font-size: 15px; }
.rv-card figcaption strong { color: var(--on-dark); font-weight: 600; }
@media (max-width: 980px) {
  .rv { grid-template-columns: minmax(0, 1fr); }
  .rv-card { width: calc(100% - 28px); height: calc(100% - 28px); padding: 24px 22px 22px; }
  .rv-card:not([data-pos="0"]) > * { visibility: hidden; }
  .rv-card[data-pos="0"] { left: 0; top: 0; }
  .rv-card[data-pos="1"] { left: 14px; top: 14px; transform: none; opacity: .5; }
  .rv-card[data-pos="2"] { left: 28px; top: 28px; transform: none; opacity: .25; }
  .rv-card:not([data-pos="0"]):not([data-pos="1"]):not([data-pos="2"]) { left: 28px; top: 28px; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .rv.playing .rv-bar span { animation: none; } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(24px, 4vw, 64px); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px 0; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary h3 { margin: 0; font-size: 20px; }
.faq-list summary::after { content: ""; flex: none; width: 14px; height: 14px; border-right: 2px solid var(--green-d); border-bottom: 2px solid var(--green-d); transform: rotate(45deg) translate(-3px, -3px); transition: transform .25s; }
.faq-list details[open] summary::after { transform: rotate(225deg); }
.faq-list details p { color: var(--ink-2); max-width: 44em; padding-bottom: 12px; }

/* CTA + form */
.cta-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.cta-text p { color: var(--on-dark-2); font-size: 18px; max-width: 30em; }
.cta-direct { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.cta-direct li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding-top: 14px; border-top: 1px solid #3a3f43; }
.cta-direct span { color: var(--on-dark-2); font-size: 15px; }
.cta-direct a { font-weight: 600; text-decoration: none; }
.cta-direct a:hover { color: var(--green-l); }
.form { background: var(--white); color: var(--ink); padding: clamp(22px, 3vw, 40px); position: relative; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; font: 400 16px/1.4 var(--f-body); color: var(--ink); padding: 12px 14px; border: 1.5px solid #c9cdcb; background: var(--white); border-radius: 0; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green-d); outline: none; box-shadow: 0 0 0 3px rgba(52, 78, 67, .2); }
.field .invalid { border-color: #b3261e; }
.err { color: #b3261e; font-size: 13px; min-height: 0; }
.err:empty { display: none; }
.iti { width: 100%; }
.file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-btn { display: flex; justify-content: space-between; gap: 12px; padding: 14px; border: 1.5px dashed #b9bebb; cursor: pointer; font-weight: 500 !important; }
.file-btn em { color: var(--ink-3); font-style: normal; font-size: 13px; }
.file input:focus-visible + small, .file:focus-within .file-btn { border-color: var(--green-d); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin: 6px 0 18px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--green-d); flex: none; }
.consent a { color: var(--ink); }
.form-status { margin: 12px 0 0; font-size: 15px; }
.form-status.error { color: #b3261e; }
.form-status.ok { color: var(--green-d); font-weight: 600; }
.hp-wrap { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }
button[aria-disabled="true"] { opacity: .55; }

/* page hero (subpages) */
.page-hero { padding-top: clamp(36px, 5vw, 72px); padding-bottom: clamp(48px, 6vw, 96px); }
.ph-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.page-hero:not(.has-photo) .ph-grid { grid-template-columns: minmax(0, 1fr); }
.crumbs { display: flex; gap: 10px; font-size: 14px; color: var(--ink-3); margin-bottom: 24px; }
.crumbs a { color: var(--ink-2); }
.ph-photo { margin: 0; position: relative; }
.ph-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.ph-photo::after { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--green); z-index: -1; }

/* content splits */
.split-sec { padding-top: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.prose p { font-size: 18px; color: var(--ink-2); max-width: 38em; }
.prose h2 { margin-bottom: .6em; }
.other { margin-top: 24px; }
.facts-list { margin: 0; display: grid; gap: 0; }
.facts-list div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.facts-list div:last-child { border-bottom: 1px solid var(--line); }
.facts-list dt { color: var(--ink-3); font-size: 15px; }
.facts-list dd { margin: 0; font-weight: 500; }
.legal .prose { max-width: 820px; }
.legal h2 { font-size: 26px; margin-top: 1.4em; }

/* railings */
.rail-list { display: grid; gap: 0; }
.rail-type { display: grid; grid-template-columns: 240px minmax(0, 1fr) 220px; gap: clamp(20px, 3vw, 48px); align-items: center; padding: 28px 0; border-top: 1px solid var(--line); }
.rail-type:last-child { border-bottom: 1px solid var(--line); }
.rail-type p { color: var(--ink-2); margin: 0; max-width: 36em; }
.rail-type .rt-photo { margin: 0; }
.rail-type .rt-photo img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.rail-svg { width: 100%; height: auto; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.rail-svg .stp { stroke: var(--ink-3); stroke-width: 1.4; }
.rail-svg .rail { stroke: var(--oak); stroke-width: 6; }
.rail-svg .rail.metal { stroke: var(--ink); stroke-width: 4; }
.rail-svg .thin { stroke-width: 1.2; }
.rail-svg .lam { stroke: var(--oak); stroke-width: 4; }
.rail-svg .glass { fill: rgba(120, 170, 190, .22); stroke: #7aa4b4; }
.rail-svg .panel { fill: #e6ddd0; stroke: var(--oak); }
.rail-svg .cut { fill: var(--white); stroke: var(--oak); }
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.spec-grid article { background: var(--dark-2); padding: 28px; }
.spec-grid .wide { grid-row: span 2; grid-column: 3; }
.spec-grid p { color: var(--on-dark-2); }
.spec-grid dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 16px 0 0; font-size: 15px; }
.spec-grid dt { color: var(--on-dark-2); }
.spec-grid dd { margin: 0; }
.dia { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
.dia li { display: grid; grid-template-columns: 52px 52px 1fr; align-items: center; gap: 8px; }
.dia .bar { display: block; width: calc(var(--d) * 2px); height: calc(var(--d) * 2px); background: var(--green-l); justify-self: center; }
.dia .bar.r { border-radius: 50%; }
.dia b { font-weight: 600; font-variant-numeric: tabular-nums; }


/* gallery */
.gallery { padding-top: 0; }
.g-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.g-filter button { font: 500 15px/1 var(--f-body); padding: 12px 18px; border: 1.5px solid var(--line); background: var(--white); cursor: pointer; color: var(--ink-2); }
.g-filter button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* work in progress: each stage steps in further, like treads */
.process-sec { background: var(--soft); }
.stage { padding-top: 28px; margin-top: 36px; border-top: 3px solid var(--green); margin-left: calc(var(--i) * clamp(0px, 4vw, 64px)); }
.stage-text { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 22px; max-width: 760px; }
.stage-text h3 { margin-bottom: 4px; }
.stage-text p { color: var(--ink-2); margin: 0; }
.stage .why-n { color: var(--green-d); font-size: 40px; margin: 0; }
.stage .wv-stage { height: min(62vh, 560px); }

/* contacts */
.contact { padding-top: 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.big-phone, .big-mail { display: block; font: 700 clamp(30px, 3.4vw, 48px)/1.15 var(--f-head); text-decoration: none; }
.big-mail { font-size: clamp(20px, 2vw, 28px); font-weight: 600; margin: 8px 0 32px; color: var(--ink-2); }
.big-phone:hover, .big-mail:hover { color: var(--green-d); }
.contact-info .link { display: inline-block; margin: 24px 0; }
.map iframe { width: 100%; height: 320px; border: 0; filter: grayscale(.6); }
.contact-form { background: var(--soft); padding: clamp(22px, 3vw, 40px); }
.contact-form .form { padding: 0; background: transparent; }
.nf { min-height: 50vh; }

/* footer */
.site-foot { background: var(--dark-3); color: var(--on-dark); padding-top: clamp(56px, 6vw, 88px); }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-inline: var(--pad); }
.foot-brand img { width: 240px; margin-bottom: 20px; }
.foot-brand p { color: var(--on-dark-2); font-size: 15px; max-width: 26em; }
.foot-h { font: 600 14px/1.2 var(--f-body); color: var(--on-dark-2); margin-bottom: 14px; }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.foot-list a { text-decoration: none; }
.foot-list a:hover { color: var(--green-l); }
.hours span { display: inline-block; width: 44px; color: var(--on-dark-2); }
.foot-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 56px; padding: 22px var(--pad) 28px; border-top: 1px solid #2c3033; font-size: 14px; color: var(--on-dark-2); }
.mob-bar { display: none; }

/* reveal */
.js [data-r] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js [data-r].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js [data-r] { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1599px) { .btn-call span { display: none; } }
@media (max-width: 1320px) {
  .nav { position: fixed; inset: var(--head) 0 0 0; background: var(--white); margin: 0; padding: 24px var(--pad) 40px; overflow-y: auto;
    transform: translateX(100%); transition: transform .3s ease; visibility: hidden; }
  .nav.open { transform: none; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav a { display: block; padding: 16px 0; font: 600 24px/1.2 var(--f-head); color: var(--ink); border: 0; }
  .nav a[aria-current="page"] { color: var(--green-d); }
  .nav-call { display: inline-flex; margin-top: 28px; font: 700 24px/1 var(--f-head); color: var(--green-d) !important; }
  .burger { display: block; margin-left: 0; }
  .btn-call { margin-left: auto; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 980px) {
  :root { --sh: 30px; }
  .hero-grid, .scene-grid, .forms-ui, .faq-grid, .cta-grid, .ph-grid, .split, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-stairs li { margin-top: calc((3 - var(--s)) * 28px); }
  .hero-stage { display: block; min-height: 0; }
  .hero-photo { position: relative; left: auto; aspect-ratio: 4 / 3;
    clip-path: polygon(0 0, 100% 0, 100% 84%, 80% 84%, 80% 88%, 60% 88%, 60% 92%, 40% 92%, 40% 96%, 20% 96%, 20% 100%, 0 100%); animation: none; }
  .hero-photo figcaption { display: none; }
  .hero-text { max-width: 640px; padding-block: 24px 8px; }
  .hero h1 { font-size: clamp(34px, 8vw, 54px); }
  .facts-row { grid-template-columns: repeat(2, 1fr); }
  .woods-grid { grid-template-columns: 1fr; }
  .why-steps, .why-steps.four { grid-template-columns: 1fr; }
  .why-steps li { min-height: 0; margin-left: calc(var(--i) * 16px); }
  .rail-type { grid-template-columns: 180px minmax(0, 1fr); }
  .rail-type .rt-photo { grid-column: 1 / -1; max-width: 420px; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .spec-grid .wide { grid-column: auto; grid-row: auto; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .ph-photo { max-width: 520px; }
  .scene { height: 300vh; }
  .scene-sticky { align-items: center; }
  .scene-stage { order: -1; }
  .scene-text h2 { font-size: 24px; margin-bottom: 6px; }
  .scene-intro, .scene-phases li:not(.on) { display: none; }
  .scene-phases { margin-top: 10px; }
  .scene-count { margin-top: 10px; }
  .scene-stage canvas { max-height: 46svh; }
}
@media (max-width: 700px) {
  body { font-size: 16px; padding-bottom: 60px; }
  :root { --head: 64px; }
  .brand img { height: 22px; }
  .btn-call { display: none; }
  .burger { margin-left: auto; }
  .hero-stairs { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .hero-stairs li { margin-top: 0; }
  .hero-stairs li:nth-child(odd) { margin-top: 36px; }
  .hero-stairs strong { font-size: 18px; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip figure { margin-top: 0; }
  .strip figure:nth-child(odd) { margin-top: 28px; }
  .forms-tabs .plan { width: 44px; height: 44px; }
  .forms-tabs button { font-size: 13px; padding: 10px 4px; }
  .f-row { grid-template-columns: 1fr; }
  .rail-type { grid-template-columns: 1fr; }
  .rail-type svg { max-width: 260px; }
  .spec-grid { grid-template-columns: 1fr; }
  .stage { margin-left: 0; }
    .foot-in { grid-template-columns: 1fr; }
  .facts-list div { grid-template-columns: 110px 1fr; }
  .cta-direct li { grid-template-columns: 90px 1fr; }
  .mob-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: 60px; }
  .mob-bar a { display: grid; place-items: center; font-weight: 600; text-decoration: none; background: var(--ink); color: #fff; }
  .mob-bar a + a { background: var(--green-d); }
}

/* home works viewer: whole photo on a blurred copy of itself, every thumbnail visible beside it */
.works-view .sec-head { margin-bottom: clamp(24px, 3vw, 40px); }
.wv { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 3.5vw, 56px); align-items: start; }
.wv-stage { position: relative; margin: 0; height: min(74vh, 680px); display: grid; place-items: center; overflow: hidden; background: var(--dark);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.wv-bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(28px) brightness(.55); }
.wv-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .3s ease, transform .3s ease; }
.wv-img.out { opacity: 0; transform: scale(.985); }
.wv-nav { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; width: 52px; height: 52px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: var(--ink); font: 400 34px/1 var(--f-head); display: grid; place-items: center; transition: background .2s, color .2s; }
.wv-nav:hover { background: var(--green-d); color: #fff; }
.wv-prev { left: 14px; }
.wv-next { right: 14px; }
.wv-count { margin: 0 0 6px; color: var(--ink-3); font-size: 16px; font-variant-numeric: tabular-nums; }
.wv-count b { font: 700 46px/1 var(--f-head); color: var(--green-d); margin-right: 4px; }
.wv-cat { margin: 14px 0 4px; font-size: 15px; font-weight: 600; color: var(--green-d); }
.wv-cap { font: 500 clamp(20px, 1.7vw, 24px)/1.3 var(--f-head); min-height: 2.6em; margin-bottom: 24px; }
.wv-thumbs { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.wv-thumbs li[hidden] { display: none; }
.wv-filter { margin-bottom: 22px; }
/* many photos: the thumbnail grid scrolls inside the side column instead of growing the page */
@media (min-width: 981px) { .wv-thumbs { max-height: 330px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; } }
.wv-thumb { display: block; width: 100%; padding: 0; border: 0; cursor: pointer; background: var(--soft); aspect-ratio: 1; overflow: hidden;
  opacity: .55; outline: 3px solid transparent; outline-offset: -3px; transition: opacity .2s, outline-color .2s; }
.wv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wv-thumb:hover { opacity: .9; }
.wv-thumb[aria-pressed="true"] { opacity: 1; outline-color: var(--green); }
@media (max-width: 980px) {
  .wv { grid-template-columns: minmax(0, 1fr); }
  .wv-stage { height: min(68vh, 560px); }
  .wv-cap { min-height: 0; }
}
@media (max-width: 700px) {
  .wv-stage, .stage .wv-stage { margin-inline: calc(-1 * var(--pad)); height: auto; aspect-ratio: 4 / 5; }
  .wv-nav { width: 44px; height: 44px; font-size: 28px; }
  .wv-prev { left: 8px; }
  .wv-next { right: 8px; }
}
