/* K·LEOS — single stylesheet. Plain, direct, built around the work. */

:root {
  --ink: #141c12;
  --forest: #1b2617;
  --moss: #3d5230;
  --leaf: #7fa05f;
  --lime: #cfe36a;
  --paper: #f2efe6;
  --chalk: #fbfaf6;
  --line: rgba(20, 28, 18, .14);
  --line-light: rgba(251, 250, 246, .18);
  --muted: #59624f;
  --font: Archivo, ui-sans-serif, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --pad: clamp(18px, 4vw, 56px);
  --max: 1320px;
  --header: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--header) + 16px); }
:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; }
::selection { background: var(--lime); color: var(--ink); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--lime); color: var(--ink); font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { width: min(var(--max), 100% - 2 * var(--pad)); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 140px); }

/* ---------- type ---------- */
.h2 {
  font-size: clamp(36px, 5.4vw, 76px);
  line-height: .95;
  font-weight: 800;
  font-stretch: 72%;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.h3 {
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.02;
  font-weight: 750;
  font-stretch: 80%;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); max-width: 44ch; text-wrap: pretty; }
.note { margin-top: 14px; font-size: 14px; color: var(--muted); max-width: 52ch; }
.head-row {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 20px 48px; margin-bottom: clamp(32px, 4.5vw, 60px);
}
.head-row .h2 { max-width: 14ch; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--chalk);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  border: 0; border-radius: 3px;
  background: var(--bg); color: var(--fg);
  font-size: 15px; font-weight: 650; letter-spacing: .005em; text-decoration: none;
  cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color .25s var(--ease), transform .2s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--fill, var(--leaf));
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform .35s var(--ease);
}
.btn:hover::after { transform: scaleY(1); }
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-solid { --bg: var(--ink); --fg: var(--chalk); --fill: var(--moss); }
.btn-lime { --bg: var(--lime); --fg: var(--ink); --fill: var(--chalk); }
.btn-ghost-light { --bg: transparent; --fg: var(--chalk); --fill: rgba(251,250,246,.14); box-shadow: inset 0 0 0 1px rgba(251,250,246,.5); }
.btn[disabled] { cursor: not-allowed; opacity: .55; }
.btn[disabled]::after { display: none; }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--chalk); transition: color .3s var(--ease), background .3s var(--ease), transform .4s var(--ease); }
.site-header.is-solid { background: rgba(242, 239, 230, .92); color: var(--ink); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-hidden:focus-within { transform: none; }
.bar { display: flex; align-items: center; gap: 28px; height: var(--header); padding-inline: var(--pad); max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand-mark { width: 22px; height: auto; }
.brand-name { font-weight: 800; font-stretch: 90%; font-size: 19px; letter-spacing: .02em; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; position: relative; padding-block: 6px; }
.nav 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 .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.bar-end { display: flex; align-items: center; gap: 10px; }
.site-header:not(.is-solid) .bar-end .btn-solid { --bg: var(--chalk); --fg: var(--ink); --fill: var(--lime); }
.menu-btn { display: none; width: 44px; height: 40px; border: 0; background: none; cursor: pointer; position: relative; }
.menu-btn i { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
.menu-btn i:nth-of-type(1) { top: 15px; }
.menu-btn i:nth-of-type(2) { top: 23px; }
.menu-btn[aria-expanded="true"] i:nth-of-type(1) { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:nth-of-type(2) { transform: translateY(-4px) rotate(-45deg); }
.menu { display: grid; padding: 8px var(--pad) 28px; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); }
.menu a { padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 26px; font-weight: 750; font-stretch: 75%; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: max(640px, 100svh); display: flex; align-items: end; color: var(--chalk); background: var(--forest); overflow: clip; }
.hero-media { position: absolute; inset: 0; transform-origin: 50% 70%; will-change: transform; }
.hero-poster, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video { opacity: 0; }
.hero-video.has-frame { opacity: 1; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,20,12,.55) 0%, rgba(14,20,12,0) 22%, rgba(14,20,12,.1) 45%, rgba(14,20,12,.82) 100%); }
.hero-body { position: relative; padding-block: calc(var(--header) + 40px) clamp(40px, 6vw, 72px); }
.hero-place { font-size: 15px; font-weight: 600; letter-spacing: .02em; margin-bottom: 14px; opacity: .85; }
.hero-title {
  font-size: clamp(64px, 13.5vw, 212px);
  line-height: .82;
  font-weight: 850;
  font-stretch: 62%;
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.hero-line { display: block; }
.hero-line-2 { color: var(--lime); }
.hero-foot { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 48px; margin-top: clamp(24px, 3vw, 40px); }
.hero-copy { max-width: 46ch; font-size: clamp(16px, 1.35vw, 19px); color: rgba(251,250,246,.88); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.video-toggle {
  position: absolute; right: var(--pad); top: calc(var(--header) + 16px);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; min-height: 44px; padding: 8px 12px;
  border: 1px solid rgba(251,250,246,.55); border-radius: 3px; background: rgba(14,20,12,.75);
  color: var(--chalk); font-size: 13px; cursor: pointer;
}
.video-icon { width: 10px; height: 10px; border-inline: 3px solid currentColor; }
.video-toggle.is-paused .video-icon { border: 0; border-left: 10px solid currentColor; border-block: 5px solid transparent; width: 0; height: 0; }

/* entrance */
.js .hero-line, .js .hero-place, .js .hero-foot { opacity: 0; transform: translateY(24px); }
.js.ready .hero-line, .js.ready .hero-place, .js.ready .hero-foot { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform 1s var(--ease); }
.js.ready .hero-line-2 { transition-delay: .08s; }
.js.ready .hero-foot { transition-delay: .2s; }

/* ---------- facts ---------- */
.facts { background: var(--forest); color: var(--chalk); border-top: 1px solid var(--line-light); }
.facts-list { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-list li { padding: 22px 0 24px; display: grid; gap: 2px; }
.facts-list li + li { padding-left: 24px; border-left: 1px solid var(--line-light); }
.facts-list strong { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; font-stretch: 70%; letter-spacing: -.01em; color: var(--lime); }
.facts-list span { font-size: 14px; color: rgba(251,250,246,.72); }

/* ---------- property switcher ---------- */
.switch {
  position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 4px; margin-bottom: clamp(24px, 3vw, 40px);
  background: rgba(20,28,18,.06); border-radius: 4px;
}
.switch button {
  position: relative; z-index: 1; min-width: 132px; height: 48px; padding: 0 22px;
  border: 0; background: none; cursor: pointer;
  font-size: 16px; font-weight: 650; color: var(--muted);
  transition: color .3s var(--ease);
}
.switch button[aria-selected="true"] { color: var(--chalk); }
.switch-thumb {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0;
  background: var(--ink); border-radius: 3px;
  transition: transform .45s var(--ease), width .45s var(--ease);
}
.panels { display: grid; }
.panel { grid-area: 1 / 1; display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.panel.is-entering .panel-img img { animation: panel-img .8s var(--ease) both; }
.panel.is-entering .panel-text > * { animation: panel-text .6s var(--ease) both; }
.panel.is-entering .panel-text > *:nth-child(2) { animation-delay: .04s; }
.panel.is-entering .panel-text > *:nth-child(n+3) { animation-delay: .08s; }
@keyframes panel-img { from { clip-path: inset(0 0 0 100%); transform: scale(1.06); } to { clip-path: inset(0); transform: none; } }
@keyframes panel-text { from { opacity: 0; transform: translateY(14px); } }
.panel-img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: #d9d6c9; }
.panel-img img { width: 100%; height: 100%; object-fit: cover; }
.panel-text { display: grid; gap: 18px; justify-items: start; }
.panel-text > p { color: var(--muted); max-width: 42ch; }
.panel-label { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--ink) !important; }
.tick-list { display: grid; gap: 8px; margin-top: -8px; }
.tick-list li { position: relative; padding-left: 26px; }
.tick-list li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--moss); border-bottom: 2px solid var(--moss); transform: rotate(-45deg); }
.panel-plan { font-size: 15px; }
.panel-plan a { display: inline-flex; align-items: center; min-height: 24px; font-weight: 700; text-underline-offset: 4px; }

/* ---------- services ---------- */
.services { background: var(--chalk); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button {
  height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 3px; background: none;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--chalk); border-color: var(--ink); }
.service-list { border-top: 1px solid var(--ink); counter-reset: s; }
.service-list li {
  display: grid; grid-template-columns: 64px minmax(180px, 1fr) 1.3fr 90px; gap: 8px 24px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--line);
  transition: opacity .35s var(--ease), padding .35s var(--ease), background .25s;
  position: relative;
}
.service-list li::before { content: ""; position: absolute; inset: 0 calc(-1 * min(var(--pad), 24px)); background: var(--paper); opacity: 0; z-index: 0; transition: opacity .25s; }
.service-list li > * { position: relative; z-index: 1; }
.service-list li:hover::before { opacity: 1; }
.service-list li:hover h3 { transform: translateX(8px); }
.service-list h3 { font-size: clamp(22px, 2.3vw, 32px); font-weight: 750; font-stretch: 75%; line-height: 1.05; transition: transform .35s var(--ease); }
.service-list p { color: var(--muted); max-width: 52ch; }
.s-num { font-size: 14px; font-weight: 700; color: var(--moss); font-variant-numeric: tabular-nums; }
.s-tag { justify-self: end; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.service-list li.is-dim h3, .service-list li.is-dim p { color: var(--muted); }
.service-list li.is-dim:hover::before { opacity: 0; }
.service-list li.is-dim:hover h3 { transform: none; }

/* ---------- process ---------- */
.process { background: var(--forest); color: var(--chalk); position: relative; }
.process .h2 { margin-bottom: clamp(36px, 5vw, 72px); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { display: grid; gap: 12px; align-content: start; padding-top: 26px; }
.step-n { font-size: clamp(64px, 8vw, 120px); line-height: .8; font-weight: 850; font-stretch: 62%; color: #a8b18e; transition: color .5s var(--ease); }
.steps li.is-on .step-n { color: var(--lime); }
.steps h3 { font-size: 22px; font-weight: 700; font-stretch: 85%; }
.steps p { color: rgba(251,250,246,.75); max-width: 34ch; }
.process-track { height: 2px; margin-top: 40px; background: var(--line-light); }
.process-track span { display: block; height: 100%; background: var(--lime); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }

/* ---------- plans ---------- */
.plans-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.plans-intro { display: grid; gap: 22px; position: sticky; top: calc(var(--header) + 32px); }
.plan-pick { border: 0; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.plan-pick label { display: block; cursor: pointer; position: relative; }
.plan-pick input { position: absolute; opacity: 0; pointer-events: none; }
.plan-pick label > span {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: 4px; background: var(--chalk);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.plan-pick b { font-size: 24px; font-weight: 750; font-stretch: 75%; }
.plan-pick small { font-size: 14px; color: var(--muted); }
.plan-pick label:hover > span { border-color: var(--ink); }
.plan-pick input:checked + span { background: var(--ink); color: var(--chalk); border-color: var(--ink); }
.plan-pick input:checked + span small { color: var(--lime); }
.plan-pick input:focus-visible + span { outline: 2px solid var(--leaf); outline-offset: 3px; }
.plan-sheet { background: var(--chalk); border: 1px solid var(--line); border-radius: 4px; padding: clamp(22px, 3vw, 36px); display: grid; gap: 22px; }
.plan-sheet-head { display: grid; gap: 12px; }
.plan-count { font-size: 15px; color: var(--muted); }
.plan-count [data-plan-count] { font-size: 44px; line-height: 1; font-weight: 850; font-stretch: 62%; color: var(--ink); vertical-align: -6px; font-variant-numeric: tabular-nums; }
.plan-meter { height: 6px; background: rgba(20,28,18,.08); border-radius: 3px; overflow: hidden; }
.plan-meter span { display: block; height: 100%; width: 100%; background: var(--leaf); transform-origin: 0 50%; transform: scaleX(var(--m, .72)); transition: transform .5s var(--ease); }
.plan-items { display: grid; }
.plan-items li {
  position: relative; padding: 11px 0 11px 34px; border-bottom: 1px solid var(--line);
  transition: color .35s var(--ease), opacity .35s var(--ease);
}
.plan-items li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--line); background: transparent; transition: background .3s var(--ease), border-color .3s var(--ease);
}
.plan-items li::after {
  content: ""; position: absolute; left: 6px; top: 19px; width: 8px; height: 4.5px;
  border-left: 2px solid var(--chalk); border-bottom: 2px solid var(--chalk); transform: rotate(-45deg) scale(0);
  transition: transform .3s var(--ease);
}
.plan-items li.is-in::before { background: var(--moss); border-color: var(--moss); }
.plan-items li.is-in::after { transform: rotate(-45deg) scale(1); }
.plan-items li:not(.is-in) { color: var(--muted); text-decoration: line-through; }
.plan-sheet .btn { justify-self: start; }

/* ---------- depth scene ---------- */
.depth { position: relative; height: 190vh; background: #c9c3a8; }
.depth-stage { position: sticky; top: 0; height: 100svh; min-height: 560px; overflow: hidden; }
.depth-sky, .depth-mid, .depth-front { position: absolute; left: 50%; width: max(100%, 177vh); max-width: none; height: auto; transform: translate3d(-50%, 0, 0); }
.depth-sky { top: 0; height: 100%; width: 100%; left: 0; object-fit: cover; transform: scale(calc(1.12 - var(--d, 0) * .1)); }
.depth-mid { bottom: -8%; transform: translate3d(-50%, calc(var(--d, 0) * -6%), 0) scale(1.04); }
.depth-front { bottom: -30%; transform: translate3d(-50%, calc(var(--d, 0) * -22%), 0) scale(1.15); }
.depth-title {
  position: absolute; left: 0; right: 0; top: 18vh; z-index: 0;
  width: min(var(--max), 100% - 2 * var(--pad)); margin-inline: auto;
  font-size: clamp(44px, 8.4vw, 136px); line-height: .86; font-weight: 850; font-stretch: 62%;
  letter-spacing: -.02em; text-transform: uppercase; color: var(--forest);
  transform: translateY(calc(var(--d, 0) * 10vh));
  text-wrap: balance;
}
.depth-mid { z-index: 1; }
.depth-front { z-index: 2; }
.depth-copy {
  position: absolute; left: 0; right: 0; bottom: 6vh; z-index: 3;
  color: var(--chalk); font-size: clamp(17px, 1.5vw, 21px); font-weight: 600; max-width: none;
  text-shadow: 0 1px 18px rgba(0,0,0,.45);
  opacity: calc(var(--d, 0) * 2.4 - .9);
}
.depth-copy::before { content: ""; display: block; width: 40px; height: 2px; background: var(--lime); margin-bottom: 12px; }

/* ---------- ideas rail ---------- */
.ideas { overflow: clip; }
.rail-ctrl { display: flex; align-items: center; gap: 8px; }
.rail-count { font-size: 15px; color: var(--muted); margin-right: 8px; font-variant-numeric: tabular-nums; }
.rail-count b { color: var(--ink); }
.rail-ctrl button { width: 48px; height: 48px; border: 1px solid var(--ink); border-radius: 3px; background: none; font-size: 20px; cursor: pointer; transition: background .2s, color .2s; }
.rail-ctrl button:hover { background: var(--ink); color: var(--chalk); }
.rail-ctrl button:disabled { opacity: .3; cursor: default; background: none; color: var(--ink); }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(68vw, 880px); gap: clamp(14px, 2vw, 24px);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  padding-inline: max(var(--pad), (100% - var(--max)) / 2);
  scroll-padding-inline: max(var(--pad), (100% - var(--max)) / 2);
  cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging .card { pointer-events: none; }
.card { scroll-snap-align: start; display: grid; gap: 14px; user-select: none; }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; -webkit-user-drag: none; transition: transform .6s var(--ease), filter .6s var(--ease); filter: saturate(.85); }
.card:hover img { filter: saturate(1.05); }
.card figcaption { display: grid; gap: 4px; max-width: 60ch; }
.card b { font-size: 22px; font-weight: 750; font-stretch: 78%; }
.card span { color: var(--muted); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { background: var(--chalk); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
.faq-grid .h2 { max-width: 11ch; position: sticky; top: calc(var(--header) + 32px); }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { 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: 22px 0; font-size: clamp(19px, 1.7vw, 23px); font-weight: 650; font-stretch: 90%;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor 0 0) center / 100% 2px no-repeat, linear-gradient(currentColor 0 0) center / 2px 100% no-repeat; transition: transform .3s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(135deg); }
.faq-list details p { padding: 0 0 24px; color: var(--muted); max-width: 58ch; }
@supports (interpolate-size: allow-keywords) {
  .faq-list { interpolate-size: allow-keywords; }
  .faq-list details::details-content { height: 0; overflow: clip; transition: height .4s var(--ease), content-visibility .4s allow-discrete; }
  .faq-list details[open]::details-content { height: auto; }
}

/* ---------- estimate ---------- */
.estimate { background: var(--forest); color: var(--chalk); }
.estimate-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.estimate .h2 { color: var(--chalk); max-width: 10ch; }
.next-steps { counter-reset: n; display: grid; gap: 14px; margin-top: 32px; }
.next-steps li { counter-increment: n; display: grid; grid-template-columns: 34px 1fr; color: rgba(251,250,246,.8); }
.next-steps li::before { content: counter(n); font-weight: 800; color: var(--lime); }
.consulta-form { display: grid; gap: 22px; }
.consulta-form > p[style] { color: var(--chalk); }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-size: 14px; font-weight: 600; color: rgba(251,250,246,.85); padding: 0; }
.field i { font-style: normal; font-weight: 400; opacity: .6; }
.field legend { margin-bottom: 10px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line-light); border-radius: 3px;
  background: rgba(251,250,246,.06); color: var(--chalk); font: inherit; font-size: 16px;
  transition: border-color .2s, background .2s;
}
.field input:hover, .field textarea:hover { border-color: rgba(251,250,246,.4); }
.field input:focus, .field textarea:focus { border-color: var(--lime); background: rgba(251,250,246,.1); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.field textarea { resize: vertical; min-height: 96px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px;
  border: 1px solid var(--line-light); border-radius: 3px; font-size: 15px;
  transition: background .2s, color .2s, border-color .2s;
}
.chips label:hover span { border-color: var(--chalk); }
.chips input:checked + span { background: var(--lime); color: var(--ink); border-color: var(--lime); font-weight: 650; }
.chips input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 3px; }
.plan-chip { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 8px 8px 8px 14px; border: 1px dashed var(--lime); border-radius: 3px; font-size: 14px; }
.plan-chip button { width: 26px; height: 26px; border: 0; background: rgba(251,250,246,.12); border-radius: 2px; cursor: pointer; }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form-end .btn-solid { --bg: var(--lime); --fg: var(--ink); }
.form-note { font-size: 14px; color: rgba(251,250,246,.65); max-width: 44ch; }
.form-status:empty { display: none; }
.form-status { font-size: 14px; color: var(--lime); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--chalk); padding-block: 40px; }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 16px 40px; align-items: center; }
.footer-line { color: rgba(251,250,246,.6); font-size: 14px; }
.footer-nav { display: flex; gap: 22px; font-size: 14px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 28px; text-decoration: none; opacity: .8; }
.footer-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.footer-copy { grid-column: 1 / -1; font-size: 13px; color: rgba(251,250,246,.7); padding-top: 20px; border-top: 1px solid var(--line-light); }

.error-page { display: grid; align-content: center; gap: 24px; min-height: 100svh; }
.error-page .btn { justify-self: start; }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .bar-end { margin-left: auto; }
  .menu-btn { display: block; }
  .service-list li { grid-template-columns: 48px 1fr; }
  .service-list li p { grid-column: 2; }
  .s-tag { display: none; }
}
@media (max-width: 860px) {
  .panel, .plans-grid, .faq-grid, .estimate-grid { grid-template-columns: 1fr; }
  .plans-intro, .faq-grid .h2 { position: static; }
  .steps { grid-template-columns: 1fr; gap: 8px; }
  .steps li { grid-template-columns: 72px 1fr; column-gap: 16px; padding-top: 18px; }
  .steps li .step-n { grid-row: span 2; font-size: 72px; }
  .process-track { display: none; }
  .facts-list { grid-template-columns: 1fr 1fr; }
  .facts-list li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts-list li:nth-child(n+3) { border-top: 1px solid var(--line-light); }
  .rail { grid-auto-columns: 84vw; }
  .depth { height: 160vh; }
  .depth-sky, .depth-mid, .depth-front { width: max(100%, 230vh); }
  .depth-title { top: 14vh; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .bar-end .btn-small { display: none; }
  .switch { display: grid; width: 100%; }
  .switch button { min-width: 0; padding: 0 8px; font-size: 15px; }
  .row { grid-template-columns: 1fr; }
  .hero-actions, .hero-actions .btn { width: 100%; }
  .video-toggle span:last-child { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav { flex-wrap: wrap; }
  .rail-count { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js [data-reveal], .js .hero-line, .js .hero-place, .js .hero-foot { opacity: 1; transform: none; }
  .depth { height: auto; }
  .depth-stage { position: relative; }
  .depth-copy { opacity: 1; }
}
