/* Domora — natural off-white, warm wood, graphite; one accent: forest green */
@font-face { font-family: Manrope; src: url(../fonts/manrope-cyrillic.woff2) format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Manrope; src: url(../fonts/manrope-latin.woff2) format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Manrope; src: url(../fonts/manrope-latin-ext.woff2) format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0100-024F, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #f3f0e9;
  --paper: #fbfaf6;
  --ink: #1f2225;
  --ink2: #474b4f;
  --muted: #7d8184;
  --line: rgba(31, 34, 37, 0.12);
  --wood: #b58a5c;
  --accent: #2f5a46;
  --accent2: #264b3a;
  --accent-soft: rgba(47, 90, 70, 0.1);
  --glass: rgba(251, 250, 246, 0.86);
  --r: 18px;
  --shadow: 0 1px 2px rgba(20, 22, 24, 0.06), 0 12px 36px -12px rgba(20, 22, 24, 0.22);
  --font: Manrope, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.08; font-weight: 600; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.eyebrow { font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 14px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: background 0.2s, border-color 0.2s, transform 0.2s, color 0.2s; white-space: nowrap; }
.btn.primary { background: var(--accent); color: #f6f4ee; }
.btn.primary:hover { background: var(--accent2); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn.big { min-height: 54px; font-size: 16px; }
.btn:active { transform: translateY(1px); }

/* header */
.top { position: fixed; z-index: 30; top: 14px; left: 18px; right: 18px; display: flex; align-items: center; gap: 18px; padding: 8px 8px 8px 12px; border-radius: 999px; background: rgba(251, 250, 246, 0.78); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 8px 28px -14px rgba(20, 22, 24, 0.3); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.03em; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--ink2); padding: 8px 14px; border-radius: 999px; }
.nav a:hover { background: rgba(31, 34, 37, 0.06); color: var(--ink); }

/* canvas + overlays */
#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; background: #dcdcd4; touch-action: pan-y; }
.no-webgl #scene, .no-webgl .loader, .no-webgl .rail, .no-webgl .dock, .no-webgl .dip, .no-webgl .inside, .no-webgl .drag-hint { display: none !important; }
.canvas-covered #scene { visibility: hidden; }
.loader { position: fixed; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: 14px; background: radial-gradient(120% 90% at 50% 40%, #f6f3ec, #e6e2d8); transition: opacity 0.6s, visibility 0.6s; color: var(--muted); font-size: 13px; }
.loader .bar { width: 160px; height: 3px; border-radius: 3px; background: rgba(31, 34, 37, 0.1); overflow: hidden; }
.loader .bar i { display: block; width: 40%; height: 100%; background: var(--accent); animation: load 1.2s ease-in-out infinite; }
@keyframes load { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.is-ready .loader { opacity: 0; visibility: hidden; }
.poster { display: none; margin: 0; }
.dip { position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0; background: radial-gradient(120% 100% at 50% 45%, #f6f3ec 0%, #e9e5dc 100%); display: grid; place-items: center; }
.dip p { display: grid; justify-items: center; gap: 6px; }
.dip b { font-size: clamp(40px, 6vw, 84px); font-weight: 600; letter-spacing: -0.04em; }
.dip span { font-size: 15px; color: var(--muted); letter-spacing: 0.02em; }

/* interior stills */
.inside { position: fixed; inset: 0; z-index: 3; opacity: 0; pointer-events: none; background: #1b1c1d; overflow: hidden; }
.inside figure { position: absolute; inset: 0; margin: 0; opacity: 0; }
.inside figure:first-child { opacity: 1; }
.inside img { width: 100%; height: 100%; object-fit: cover; transform-origin: 55% 50%; will-change: transform; }
.inside figcaption { position: absolute; left: 40px; bottom: 120px; color: #fff; display: grid; gap: 4px; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35); }
.inside figcaption b { font-size: clamp(30px, 3.4vw, 46px); font-weight: 600; letter-spacing: -0.03em; }
.inside figcaption span { font-size: 15px; opacity: 0.9; }
.inside-note { position: absolute; right: 40px; bottom: 124px; color: rgba(255, 255, 255, 0.92); font-size: 14px; padding: 9px 14px; border-radius: 999px; background: rgba(20, 22, 24, 0.38); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* ---------------------------------------------------------------- hero / configurator */
main { position: relative; z-index: 5; }
.hero { position: relative; min-height: 100vh; min-height: 100svh; padding: 112px 28px 28px; display: grid; grid-template-columns: 1fr minmax(360px, 400px); gap: 28px; align-items: start; }
.webgl .hero::before { content: ""; position: absolute; left: 0; top: 0; width: min(900px, 70vw); height: 520px; pointer-events: none; background: radial-gradient(72% 74% at 18% 32%, rgba(243, 240, 233, 0.9), rgba(243, 240, 233, 0.62) 46%, rgba(243, 240, 233, 0) 76%); }
.hero-copy { position: relative; align-self: start; max-width: 600px; padding: 4px 0 18px 10px; }
.hero-copy .eyebrow { color: #4f5357; }
.hero h1 { font-size: clamp(44px, 5.4vw, 80px); font-weight: 600; letter-spacing: -0.045em; line-height: 0.98; margin-bottom: 18px; text-wrap: balance; }
.lead { font-size: 18px; line-height: 1.5; color: #33373b; max-width: 480px; }
.hero-facts { list-style: none; margin: 22px 0 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-facts li { display: grid; gap: 1px; padding: 10px 16px; border-radius: 14px; background: rgba(251, 250, 246, 0.72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.hero-facts b { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.hero-facts span { font-size: 12.5px; color: var(--muted); }
.drag-hint { position: absolute; left: calc((100% - 430px) / 2); bottom: 26px; transform: translateX(-50%); z-index: 2; display: inline-flex; gap: 8px; align-items: center; margin-top: 18px; font-size: 13px; color: #4f5357; padding: 6px 12px; border-radius: 999px; background: rgba(251, 250, 246, 0.55); }
.is-dragging, .is-dragging * { cursor: grabbing !important; user-select: none; }
.webgl .hero { cursor: grab; }
.webgl .hero .cfg, .webgl .hero-copy p, .webgl .hero-copy h1, .webgl .hero-facts { cursor: auto; }

.cfg { align-self: start; position: sticky; top: 90px; background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3); border-radius: 24px; padding: 20px 20px 18px; box-shadow: var(--shadow); max-height: calc(100vh - 110px); overflow: auto; scrollbar-width: thin; }
.cfg-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.cfg-title { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.cfg-badge { font-size: 11.5px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 3px 9px; border-radius: 999px; letter-spacing: 0.03em; }
.opt { border: 0; padding: 14px 0 12px; margin: 0; border-bottom: 1px solid var(--line); }
.opt legend { float: left; width: 100%; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; padding: 0; margin-bottom: 9px; }
.opt-sub { clear: both; font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segs { clear: both; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.segs.two { grid-template-columns: 1fr 1fr; }
.segs label span { display: grid; justify-items: center; gap: 1px; padding: 9px 6px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.5); cursor: pointer; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s; text-align: center; }
.segs label b { font-size: 14px; font-weight: 600; }
.segs label i { font-style: normal; font-size: 12px; color: var(--muted); }
.segs.two label span { grid-template-columns: auto auto; align-items: center; gap: 8px; padding: 10px; }
.segs svg { width: 30px; height: 18px; color: var(--ink2); }
.segs input:checked + span, .swatches input:checked + span, .toggles input:checked + span { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 1px var(--accent) inset; }
.segs input:checked + span svg { color: var(--accent); }
.segs input:focus-visible + span, .swatches input:focus-visible + span, .toggles input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.swatches { clear: both; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.swatches label span { display: grid; justify-items: center; gap: 2px; padding: 9px 6px 8px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.5); cursor: pointer; text-align: center; transition: border-color 0.2s, background 0.2s; }
.swatches img { width: 44px; height: 44px; border-radius: 10px; margin-bottom: 4px; outline: 1px solid rgba(31, 34, 37, 0.16); outline-offset: -1px; }
.swatches b { font-size: 13px; font-weight: 600; line-height: 1.2; }
.swatches i { font-style: normal; font-size: 11.5px; color: var(--muted); }
.toggles { clear: both; display: grid; gap: 6px; }
.toggles label span { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 40px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.5); cursor: pointer; position: relative; transition: border-color 0.2s, background 0.2s; }
.toggles label span::before { content: ""; position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 6px; border: 1.5px solid #9a9ea1; background: #fff; transition: background 0.2s, border-color 0.2s; }
.toggles input:checked + span::before { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.5 9.2 7.6 12l5.9-6.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; border-color: var(--accent); }
.toggles b { font-size: 14px; font-weight: 600; }
.toggles i { font-style: normal; font-size: 12.5px; color: var(--muted); }
.cfg-total { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; padding: 14px 0 6px; }
.cfg-total span, .est-total span { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600; }
.cfg-total strong, .est-total strong { font-size: 25px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.cfg-note { font-size: 12px; color: var(--muted); line-height: 1.4; }
.cfg-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.cfg-actions .btn { padding: 0 12px; font-size: 14px; }

/* ---------------------------------------------------------------- build story */
.build { position: relative; }
.beat { height: calc(var(--len) * 100vh); position: relative; }
.card { width: min(420px, calc(100vw - 40px)); background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(1.25); backdrop-filter: blur(20px) saturate(1.25); border-radius: var(--r); padding: 20px 22px 20px; box-shadow: var(--shadow); }
.card .kicker { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 10px; }
.card .kicker span { color: var(--accent); }
.card h2 { font-size: clamp(24px, 2.2vw, 31px); margin-bottom: 10px; text-wrap: balance; }
.card p { font-size: 15.5px; color: #3d4145; line-height: 1.5; }
.card .stat { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.card .stat b { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; color: var(--accent); }
.card .stat span { font-size: 13.5px; color: var(--muted); }
.card .still { display: none; }
.card-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.webgl .beat .card { position: fixed; left: 32px; bottom: 132px; z-index: 8; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity 0.45s, transform 0.55s cubic-bezier(.2, .7, .2, 1); }
.webgl .beat.is-active .card { opacity: 1; transform: none; pointer-events: auto; }
.webgl .beat.is-inside .card { display: none; }

/* rail */
.rail { position: fixed; z-index: 9; left: 32px; right: 32px; bottom: 22px; padding: 12px 18px 12px; border-radius: 18px; background: rgba(251, 250, 246, 0.8); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); box-shadow: var(--shadow); opacity: 0; transform: translateY(20px); transition: opacity 0.4s, transform 0.5s; pointer-events: none; }
.show-rail .rail { opacity: 1; transform: none; }
.rail-row { display: flex; align-items: center; gap: 16px; justify-content: space-between; font-size: 14px; }
.rail-step { display: flex; gap: 10px; align-items: baseline; min-width: 170px; }
.rail-step b { font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 700; }
.rail-step span { font-weight: 600; }
.rail-mid { font-weight: 600; text-align: center; flex: 1; }
.rail-day { display: grid; justify-items: end; line-height: 1.25; min-width: 170px; }
.rail-day span { font-weight: 700; font-variant-numeric: tabular-nums; }
.rail-day i { font-style: normal; font-size: 12px; color: var(--muted); }
.rail-ticks { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.rail-ticks li { height: 4px; border-radius: 4px; background: rgba(31, 34, 37, 0.12); position: relative; transition: background 0.3s; }
.rail-ticks li span { display: none; }
.rail-ticks li.is-done { background: var(--accent); }
.rail-ticks li.is-on { background: linear-gradient(90deg, var(--accent) 0 50%, rgba(47, 90, 70, 0.35) 50%); }
.rail-bar { display: none; }

/* dock */
.dock { position: fixed; z-index: 9; top: 84px; right: 28px; display: flex; gap: 8px; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 0.4s, transform 0.4s; }
.show-rail .dock { opacity: 1; transform: none; pointer-events: auto; }
.dock-group { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(251, 250, 246, 0.82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--shadow); }
.dock button { width: 38px; height: 38px; border-radius: 50%; border: 0; padding: 4px; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--ink2); }
.dock button img { width: 28px; height: 28px; border-radius: 50%; outline: 1px solid rgba(31, 34, 37, 0.16); outline-offset: -1px; }
.dock button svg { width: 24px; height: 15px; }
.dock button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent) inset; color: var(--accent); background: #fff; }

/* ---------------------------------------------------------------- sheets */
.sheet { position: relative; z-index: 6; background: var(--bg); padding: 110px 28px; }
.wrap { max-width: 1240px; margin: 0 auto; }
.sheet h2 { font-size: clamp(34px, 4vw, 56px); letter-spacing: -0.04em; max-width: 760px; }
.how { border-radius: 32px 32px 0 0; margin-top: -1px; box-shadow: 0 -30px 60px -30px rgba(0, 0, 0, 0.25); }
.how-steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.how-steps li { display: grid; gap: 8px; align-content: start; }
.how-steps figure { margin: 0 0 10px; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #e2ddd2; }
.how-steps img { width: 100%; height: 100%; object-fit: cover; }
.how-steps b { font-size: 13px; color: var(--accent); font-weight: 700; letter-spacing: 0.06em; }
.how-steps h3 { font-size: 23px; }
.how-steps p { color: #4a4e52; font-size: 15px; }
.sheet-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 40px; }
.sheet-lead { max-width: 380px; color: #4a4e52; }
.projects { background: #ebe7de; }
.proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.proj { background: var(--paper); border-radius: 22px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); transition: box-shadow 0.3s, transform 0.3s; }
.proj:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.proj.is-current { box-shadow: 0 0 0 2px var(--accent); }
.proj figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: #ddd8cd; }
.proj figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s; }
.proj:hover figure img { transform: scale(1.03); }
.proj-body { padding: 20px 22px 22px; display: grid; gap: 10px; }
.proj-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.proj h3 { font-size: 26px; }
.proj-area { font-weight: 700; color: var(--accent); }
.proj-note { color: #4a4e52; }
.proj-specs { list-style: none; padding: 0; margin: 2px 0 4px; display: flex; flex-wrap: wrap; gap: 6px; }
.proj-specs li { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: #f0ece4; color: #44484c; }
.proj-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: auto; }
.proj-price span { color: var(--muted); font-size: 13px; }
.proj-price b { font-size: 21px; letter-spacing: -0.02em; }
.estimate { background: #23272a; color: #f1eee7; padding-bottom: 40px; }
.estimate .eyebrow { color: #a8aca9; }
.est-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.est-copy > p { color: #c9ccc8; margin: 18px 0 26px; max-width: 480px; font-size: 17px; }
.est-cfg { border-radius: 20px; padding: 20px 22px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); }
.est-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: #a8aca9; font-weight: 600; margin-bottom: 6px; }
.est-summary { font-size: 17px; font-weight: 600; margin-bottom: 14px; }
.est-total { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.est-total span { color: #a8aca9; }
.est-note { font-size: 12.5px; color: #a8aca9; margin: 2px 0 10px; }
.est-edit { font-size: 14px; color: #c8d9cf; }
.est-form { display: grid; gap: 14px; background: #f6f3ec; color: var(--ink); border-radius: 24px; padding: 26px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: #4a4e52; }
.field input, .field select { height: 50px; border-radius: 12px; border: 1px solid rgba(31, 34, 37, 0.16); background: #fff; padding: 0 14px; font-size: 16px; }
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.form-note { font-size: 13.5px; color: var(--accent); background: var(--accent-soft); padding: 12px 14px; border-radius: 12px; }
.foot { max-width: 1240px; margin: 90px auto 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: #a8aca9; }
.foot a { color: #e8ece8; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 120px; transform: translate(-50%, 16px); opacity: 0; background: var(--ink); color: #f3f0e9; padding: 12px 18px; border-radius: 14px; font-size: 14px; box-shadow: var(--shadow); transition: opacity 0.3s, transform 0.3s; max-width: calc(100vw - 32px); }
.toast.is-in { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- no-WebGL fallback: photoreal stills + static story */
.no-webgl .poster { display: block; position: absolute; top: 0; left: 0; right: 0; height: 100vh; height: 100svh; z-index: 0; overflow: hidden; }
.no-webgl .poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s; }
.no-webgl .poster img.is-on { opacity: 1; }
.no-webgl .poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(243, 240, 233, 0.75), rgba(243, 240, 233, 0) 55%); }
.no-webgl .build { background: var(--bg); padding: 80px 28px 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 22px; max-width: 1300px; margin: 0 auto; }
.no-webgl .beat { height: auto; }
.no-webgl .card { width: auto; height: 100%; display: flex; flex-direction: column; }
.no-webgl .card .still { display: block; order: -1; margin: -20px -22px 16px; width: calc(100% + 44px); height: auto; flex: none; max-width: none; border-radius: var(--r) var(--r) 0 0; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------------------------------------------------------------- reduced motion */
.reduced .card, .reduced .rail, .reduced .dock, .reduced .loader { transition: none !important; }
@media (prefers-reduced-motion: reduce) { * { transition-duration: 0s !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .nav { display: none; }
  .how-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .top { top: 10px; left: 10px; right: 10px; padding: 6px 6px 6px 10px; }
  .logo { font-size: 18px; }
  .logo svg { width: 30px; height: 30px; }
  .top .btn.small { margin-left: auto; min-height: 36px; padding: 0 14px; font-size: 13px; }
  .hero { display: block; padding: 74px 14px 10px; min-height: 100vh; min-height: 100svh; }
  .webgl .hero::before { width: 100%; height: 300px; background: linear-gradient(180deg, rgba(243, 240, 233, 0.85), rgba(243, 240, 233, 0.4) 65%, rgba(243, 240, 233, 0)); }
  .hero-copy { padding: 0; }
  .hero-copy .eyebrow, .lead-more, .hero-facts, .drag-hint { display: none; }
  .hero h1 { font-size: 38px; margin-bottom: 8px; }
  .lead { font-size: 14.5px; max-width: 320px; }
  .webgl .cfg { position: absolute; left: 10px; right: 10px; bottom: 10px; }
  .cfg { position: relative; top: auto; max-height: none; margin: 18px 0 0; border-radius: 20px; padding: 10px 12px 12px; }
  .cfg-head { display: none; }
  .opt { padding: 4px 0; border-bottom: 0; }
  .opt legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .note-more { display: none; }
  .opt-sub { display: none; }
  .segs label span { padding: 5px 4px; border-radius: 10px; }
  .segs label b { font-size: 12.5px; }
  .segs label i { font-size: 10.5px; }
  .segs.two label span { padding: 7px 6px; gap: 5px; }
  .segs svg { width: 22px; height: 14px; }
  .swatches label span { grid-template-columns: 22px 1fr; justify-items: start; align-items: center; text-align: left; padding: 6px; gap: 5px; border-radius: 10px; }
  .swatches img { width: 22px; height: 22px; margin: 0; border-radius: 6px; grid-row: span 1; }
  .swatches b { font-size: 11.5px; }
  .swatches i { display: none; }
  .toggles { grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .toggles label span { padding: 8px 4px 8px 26px; border-radius: 10px; }
  .toggles label span::before { left: 7px; width: 15px; height: 15px; margin-top: -7.5px; border-radius: 5px; }
  .toggles b { font-size: 12px; white-space: nowrap; }
  .toggles i { display: none; }
  .cfg-total { padding: 6px 0 0; gap: 8px; }
  .cfg-total span { font-size: 10px; }
  .cfg-total strong { font-size: 20px; }
  .cfg-note { font-size: 10.5px; }
  .cfg-actions { margin-top: 8px; gap: 6px; }
  .cfg-actions .btn { min-height: 40px; font-size: 12.5px; padding: 0 8px; gap: 5px; }
  .cfg-actions .btn svg { display: none; }
  .webgl .beat .card { left: 10px; right: 10px; width: auto; bottom: 108px; padding: 16px 18px; }
  .card h2 { font-size: 22px; margin-bottom: 6px; }
  .card p { font-size: 14px; }
  .card .stat { margin-top: 10px; padding-top: 8px; }
  .card .stat b { font-size: 19px; }
  .rail { left: 10px; right: 10px; bottom: 10px; padding: 10px 14px; border-radius: 16px; }
  .rail-row { flex-wrap: wrap; gap: 2px 10px; font-size: 13px; }
  .rail-step { min-width: 0; }
  .rail-mid { order: 3; flex-basis: 100%; text-align: left; font-size: 12.5px; color: var(--ink2); font-weight: 500; }
  .rail-day { min-width: 0; }
  .rail-day i { display: none; }
  .rail-ticks { margin-top: 8px; }
  .dock { top: 64px; right: 10px; }
  .dock button { width: 34px; height: 34px; }
  .dock button img { width: 24px; height: 24px; }
  .inside figcaption { left: 18px; bottom: 150px; }
  .inside-note { left: 18px; right: auto; bottom: 112px; font-size: 12.5px; }
  .sheet { padding: 70px 16px; }
  .how { border-radius: 24px 24px 0 0; }
  .how-steps { grid-template-columns: 1fr; gap: 28px; }
  .sheet-head { display: block; margin-bottom: 26px; }
  .sheet-lead { margin-top: 12px; }
  .proj-grid { grid-template-columns: 1fr; }
  .proj-foot { flex-direction: column; align-items: stretch; }
  .est-grid { grid-template-columns: 1fr; gap: 28px; }
  .est-form { padding: 20px; }
  .no-webgl .build { padding: 60px 16px 20px; grid-template-columns: 1fr; }
  .no-webgl .poster { height: 62svh; }
  .no-webgl .hero-copy { min-height: calc(62svh - 90px); }
  .no-webgl .poster::after { background: linear-gradient(180deg, rgba(243, 240, 233, 0.92) 0%, rgba(243, 240, 233, 0.6) 34%, rgba(243, 240, 233, 0) 60%); }
  .no-webgl .poster img { object-position: 62% 50%; }
}

/* clean capture mode for stills (?cap) */
.cap main, .cap .top, .cap .rail, .cap .dock, .cap .sheet, .cap .toast, .cap .dip, .cap .inside { visibility: hidden !important; }
