/* Layout shared by every style. A style file sets the variables and the type; it never re-lays the page. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--body-size, 17px)/1.6 var(--font-body); }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: var(--head-weight, 700); line-height: 1.12; letter-spacing: var(--head-track, -0.01em); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.mono { font-family: var(--font-mono); font-size: .85em; }

.concept-bar { background: var(--ink); color: var(--paper); text-align: center; font: 500 13px/1.4 var(--font-mono); padding: 8px 16px; }

/* header */
.site-head { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: var(--brand-weight, 800) 1.2rem/1 var(--font-head); letter-spacing: var(--brand-track, -0.01em); }
.brand img { height: 36px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
@media (max-width: 760px) {
  .head-row { flex-wrap: wrap; gap: 8px 16px; padding: 10px 0; }
  .nav { order: 3; width: 100%; margin: 0; overflow-x: auto; gap: 18px; padding-bottom: 2px; }
  .head-row .btn-small { margin-left: auto; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: var(--radius-btn, 6px); background: var(--cta); color: var(--cta-ink); border: 1px solid var(--cta); font-weight: 600; text-decoration: none; cursor: pointer; font-size: 1rem; transition: filter .15s; }
.btn:hover { filter: brightness(1.08); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-small { padding: 9px 16px; font-size: .92rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-ghost-light { background: transparent; color: var(--paper); border-color: color-mix(in srgb, var(--paper) 45%, transparent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* hero */
.hero { padding: clamp(36px, 6vw, 80px) 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.eyebrow { font: 500 .8rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 18px; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 46ch; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 22px 0 0; margin: 26px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.trust b { color: var(--ink); }
.hero-mosaic { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 1 / 1; }
.hero-mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-img, 4px); }
.hero-mosaic .m0 { grid-row: 1 / 3; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-mosaic { aspect-ratio: 4 / 3; } }

/* sections */
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section.alt { background: var(--sand); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 32px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); max-width: 52ch; }
.more { font-weight: 600; text-decoration: none; color: var(--accent); }
.page-head { padding: clamp(40px, 6vw, 72px) 0 0; }

.rooms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.room { text-decoration: none; display: flex; flex-direction: column; gap: 14px; }
.room img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; border-radius: var(--radius-img, 4px); transition: transform .3s; }
.room:hover img { transform: translateY(-3px); }
.room p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 900px) { .rooms { grid-template-columns: repeat(2, 1fr); } }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work { margin: 0; }
.work img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: var(--radius-img, 4px); }
.work figcaption { display: flex; flex-direction: column; padding-top: 10px; }
.work figcaption span { color: var(--muted); font: .85rem/1.5 var(--font-mono); }
@media (max-width: 900px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .work-grid { grid-template-columns: 1fr; } .rooms { gap: 14px; } .room img { aspect-ratio: 1 / 1; } .room p { font-size: .88rem; } }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; }
.steps li { border-top: 2px solid var(--ink); padding-top: 16px; }
.steps .num { font: 500 .85rem/1 var(--font-mono); color: var(--accent); display: block; margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; }
.wide { margin-top: 48px; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius-img, 4px); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card, 6px); padding: 26px; display: flex; flex-direction: column; justify-content: space-between; }
.review p { font-size: 1.05rem; }
.review footer { color: var(--muted); font: .85rem var(--font-mono); }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }

.cta-band { background: var(--ink); color: var(--paper); padding: clamp(40px, 6vw, 72px) 0; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-row h2 { margin-bottom: .3em; }
.cta-row p { margin: 0; opacity: .8; max-width: 52ch; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.split img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-img, 4px); }
.facts { list-style: none; padding: 0; display: flex; gap: 32px; margin-top: 28px; }
.facts b { display: block; font: 700 2rem/1 var(--font-head); color: var(--ink); }
.facts li { color: var(--muted); }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

.faq { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font: 600 1.1rem/1.4 var(--font-head); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 400; }
.faq[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 12px 0 0; }

/* quote form */
.quote { display: grid; gap: 16px; }
.quote label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.quote input, .quote select, .quote textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--field, #fff); border: 1px solid var(--line-strong); border-radius: var(--radius-field, 6px); padding: 12px 14px; width: 100%; }
.quote input:focus, .quote select:focus, .quote textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.quote .file input { padding: 10px; background: var(--sand); border-style: dashed; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 640px) { .row2, .row3 { grid-template-columns: 1fr; } }
.quote .btn { justify-self: start; }
.note { color: var(--muted); font-size: .9rem; margin: 0; }

/* footer */
.site-foot { background: var(--sand); padding: 56px 0 24px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.foot-grid p { color: var(--muted); font-size: .95rem; }
.foot-grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-family: var(--font-mono); font-weight: 500; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr; } }

/* ── motion (only with JS, never with "reduce motion") ─────────────────────── */
.js:not(.still) [data-reveal] > * { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 90ms); }
.js:not(.still) [data-reveal].in > * { opacity: 1; transform: none; }
.js:not(.still) .section-head[data-reveal] h2::after { transform: scaleX(0); }
.js:not(.still) .section-head[data-reveal].in h2::after { transform: scaleX(1); }
.section-head h2 { position: relative; padding-bottom: 14px; }
.section-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 9px; transform-origin: left; transition: transform 1s .25s cubic-bezier(.2,.7,.2,1);
  background: linear-gradient(var(--accent), var(--accent)) left center / 100% 1.5px no-repeat, linear-gradient(var(--accent), var(--accent)) left / 1.5px 100% no-repeat, linear-gradient(var(--accent), var(--accent)) right / 1.5px 100% no-repeat; }
.js:not(.still) .hero-mosaic .m0 { animation: drift 22s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.06); } }
.hero-mosaic { overflow: hidden; }
.work, .room { overflow: hidden; }
.work img, .room img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.work:hover img { transform: scale(1.04); }
.site-head { transition: box-shadow .3s; }
.scrolled .site-head { box-shadow: 0 1px 18px rgb(0 0 0 / .06); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ── the wall drawing ─────────────────────────────────────────────────────── */
.wall-svg { width: 100%; height: auto; display: block; overflow: visible; }
.wall-svg .wall { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 6 7; }
.wall-svg .window { fill: var(--sand); stroke: var(--muted); stroke-width: 2; }
.wall-svg path.window { fill: none; }
.wall-svg .floor { stroke: var(--ink); stroke-width: 3; }
.wall-svg .l-measure { transition: opacity .6s; }
.wall-svg .dim path, .wall-svg .mark { fill: none; stroke: var(--accent); stroke-width: 1.6; }
.wall-svg .dim text { fill: var(--accent); font: 500 17px var(--font-mono); text-anchor: middle; }
.wall-svg .l-measure [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s ease; }
.wall-svg .l-design [pathLength] { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s cubic-bezier(.4,0,.2,1); }
.wall-svg .l-design .toe { fill: var(--ink); opacity: 0; transition: opacity .6s .8s; }
.wall-svg .l-build .fill { fill: var(--wood, #d8b98f); opacity: 0; transition: opacity .9s; }
.wall-svg .l-install > * { opacity: 0; transition: opacity .8s; }
.wall-svg .splash { fill: var(--sand); }
.wall-svg .top { fill: var(--ink); }
.wall-svg .pulls rect { fill: var(--ink); }
.wall-svg .faucet { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
[data-stage="1"] .l-measure [pathLength], [data-stage="2"] .l-measure [pathLength] { stroke-dashoffset: 0; }
[data-stage="3"] .l-measure, [data-stage="4"] .l-measure { opacity: 0; }
[data-stage="2"] .l-measure { opacity: .45; }
[data-stage="2"] .l-design [pathLength], [data-stage="3"] .l-design [pathLength], [data-stage="4"] .l-design [pathLength] { stroke-dashoffset: 0; }
[data-stage="3"] .l-design .toe, [data-stage="4"] .l-design .toe { opacity: 1; }
[data-stage="3"] .l-build .fill { opacity: .55; }
[data-stage="4"] .l-build .fill { opacity: 1; fill: var(--finish, #e9e4da); }
[data-stage="4"] .l-install > * { opacity: 1; }

/* ── process ──────────────────────────────────────────────────────────────── */
.proc { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.proc-visual { position: sticky; top: 96px; }
.proc-sticky { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card, 6px); padding: 22px 24px 12px; }
.proc-label { margin: 0 0 10px; color: var(--muted); }
.proc-steps { list-style: none; margin: 0; padding: 0; }
.proc-steps li { min-height: 46vh; padding: 8px 0 40px; border-top: 2px solid var(--line); transition: opacity .4s; }
.js .proc-steps li:not(.on) { opacity: .4; }
.proc-steps .num { font: 500 .85rem/1 var(--font-mono); color: var(--accent); display: block; margin: 16px 0 12px; }
.proc-steps h3 { font-size: 1.5rem; }
.takes { color: var(--accent); margin: -4px 0 10px; }
.proc-steps p { color: var(--muted); }
.youget { color: var(--ink) !important; background: var(--sand); border-radius: var(--radius-btn, 4px); padding: 8px 12px; display: inline-block; }
@media (max-width: 900px) {
  .proc { grid-template-columns: 1fr; gap: 0; }
  .proc-visual { top: 112px; z-index: 2; padding-bottom: 10px; background: linear-gradient(var(--paper) 85%, transparent); }
  .proc-sticky { padding: 12px 14px 6px; }
  .proc-steps li { min-height: 52vh; }
}

/* ── the customer's job page ──────────────────────────────────────────────── */
.status-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--sand); border-radius: 999px; padding: 6px 14px; font-weight: 600; }
.status-pill span { width: 9px; height: 9px; border-radius: 50%; background: var(--cta); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cta) 22%, transparent); }
.job-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card, 6px); padding: 22px; margin-bottom: 20px; }
.job .section, .job { padding-top: 28px; }
.job-visual .proc-sticky { border: 0; padding: 0 0 8px; }
.tracker { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tracker li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.tracker li div { display: flex; flex-direction: column; }
.tracker .mono { color: var(--muted); font-size: .75rem; }
.tracker .dot { flex: none; width: 14px; height: 14px; margin-top: 4px; border-radius: 50%; border: 2px solid var(--line-strong); }
.tracker .done .dot { background: var(--cta); border-color: var(--cta); }
.tracker .now .dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent); }
.tracker .next { color: var(--muted); }
.h-small { font-size: 1.3rem; margin: 30px 0 14px; }
.update { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card, 6px); padding: 18px 20px; margin-bottom: 14px; }
.update header { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.update header .mono { color: var(--muted); }
.update img { margin-top: 12px; border-radius: var(--radius-img, 4px); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card.next h3 { margin: 4px 0; } .card.next p { margin: 0; color: var(--muted); } .card.next .mono { color: var(--accent); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.card.next hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.docs, .check { list-style: none; padding: 0; margin: 0; }
.docs li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.docs li::before { content: "↓ "; color: var(--accent); }
.check li { padding: 6px 0; font-size: .95rem; }
.check input { accent-color: var(--cta); margin-right: 6px; }
@media (max-width: 900px) { .job-grid { grid-template-columns: 1fr; } .tracker { grid-template-columns: 1fr 1fr; } }

/* ── process with real artifacts (WoodWright drawings and photos) ─────────── */
.layers { position: relative; aspect-ratio: 4 / 3; }
.layer { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .7s ease; display: flex; flex-direction: column; }
.layer .ink, .job-ink .ink { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: var(--radius-img, 4px); padding: 10px; }
.layer .ink svg, .job-ink .ink svg { width: 100%; height: 100%; }
.layer img { flex: 1; min-height: 0; width: 100%; object-fit: cover; border-radius: var(--radius-img, 4px); }
.layer figcaption, .job-ink .mono { color: var(--muted); font-size: .8rem; padding-top: 8px; margin: 0; }
[data-stage="1"] .layer[data-for="1"], [data-stage="2"] .layer[data-for="2"], [data-stage="3"] .layer[data-for="3"],
[data-stage="4"] .layer[data-for="4"], [data-stage="5"] .layer[data-for="5"], [data-stage="6"] .layer[data-for="6"] { opacity: 1; }
.js:not(.still) .layer svg [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s cubic-bezier(.4,0,.2,1); }
.js:not(.still) .layer svg text { opacity: 0; transition: opacity .6s 1.1s; }
[data-stage="1"] .layer[data-for="1"] svg [pathLength], [data-stage="2"] .layer[data-for="2"] svg [pathLength],
[data-stage="3"] .layer[data-for="3"] svg [pathLength], [data-stage="4"] .layer[data-for="4"] svg [pathLength] { stroke-dashoffset: 0; }
[data-stage="1"] .layer[data-for="1"] svg text, [data-stage="2"] .layer[data-for="2"] svg text,
[data-stage="3"] .layer[data-for="3"] svg text, [data-stage="4"] .layer[data-for="4"] svg text { opacity: 1; }
.job-ink { display: flex; flex-direction: column; aspect-ratio: 4 / 3; }
.js:not(.still) .job-ink svg [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s cubic-bezier(.4,0,.2,1); }
.js:not(.still) .job-ink.in svg [pathLength] { stroke-dashoffset: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.note.sent { color: var(--cta); font-weight: 600; margin-top: 10px; }
.form-note { border-radius: var(--radius-card, 6px); padding: 14px 16px; font-weight: 600; margin: 0 0 16px; }
.form-note.ok { border: 1.5px solid var(--ink); color: var(--ink); }
.form-note.bad { border: 1.5px solid var(--accent); color: var(--accent); }

/* the title block under a drawing (JOB · VIEW · SCALE), like the corner of a shop sheet */
figcaption.title-block { padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--ink); margin-top: 10px; font: 500 .78rem/1.35 var(--font-mono); letter-spacing: .04em; color: var(--ink); background: var(--paper); }
.title-block div { padding: 7px 10px; border-left: 1px solid var(--ink); min-width: 0; overflow-wrap: anywhere; }
.title-block div:first-child { border-left: 0; }
.title-block span { display: block; color: var(--muted); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; }

/* the customer portal */
.portal-sec { padding-top: 28px; }
.portal-sec .wrap > * { max-width: 520px; }
.portal-form { max-width: 420px; }
.portal-form input[name="code"] { font: 600 1.6rem/1 var(--font-mono); letter-spacing: .3em; text-align: center; }
.portal-list { display: grid; gap: 14px; margin-bottom: 28px; }
.portal-job { display: block; text-decoration: none; transition: border-color .15s; }
.portal-job:hover { border-color: var(--ink); }
.portal-job .mono { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; }
.portal-job h3 { margin: 6px 0 10px; font-size: 1.35rem; }
.portal-job .status-pill { margin: 0; }

/* ── plugins (kit/plugins/): shared shapes; each style's colors flow in through the variables ────────────── */
.booking-badge { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; font: 500 .78rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.booking-badge span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.sf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sf-pick { position: relative; padding: 0; border: 2px solid transparent; background: none; cursor: pointer; border-radius: var(--radius-img, 4px); overflow: hidden; text-align: left; color: inherit; font: inherit; }
.sf-pick img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .3s; }
.sf-pick:hover img { transform: scale(1.03); }
.sf-pick[aria-pressed="true"] { border-color: var(--ink); }
.sf-check { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); font-weight: 700; opacity: 0; transition: opacity .15s; }
.sf-pick[aria-pressed="true"] .sf-check { opacity: 1; background: var(--ink); color: var(--paper); }
.sf-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 10px; color: #fff; font-weight: 600; font-size: .92rem; background: linear-gradient(transparent, rgb(0 0 0 / .55)); }
.sf-result { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.sf-line { margin: 0; font: var(--head-weight, 700) clamp(1.3rem, 2.4vw, 1.8rem)/1.2 var(--font-head); letter-spacing: var(--head-track); max-width: 32ch; }
@media (max-width: 640px) { .sf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bp-card { border: 1px solid var(--line-strong); border-radius: var(--radius-card, 6px); background: var(--paper); padding: clamp(18px, 3vw, 30px); display: grid; gap: 18px; max-width: 860px; }
.bp-q { display: grid; gap: 8px; }
.bp-q .mono { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.bp-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.bp-seg label { cursor: pointer; }
.bp-seg input { position: absolute; opacity: 0; pointer-events: none; }
.bp-seg span { display: inline-block; padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-btn, 6px); font-weight: 600; font-size: .95rem; }
.bp-seg input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.bp-seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.bp-out { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 8px; justify-items: start; }
.bp-range { margin: 0; font: var(--head-weight, 700) clamp(1.3rem, 2.6vw, 1.9rem)/1.2 var(--font-head); letter-spacing: var(--head-track); }
.bp-range b { color: var(--accent); }
.dd { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-img, 4px); background: #fff; border: 1px solid var(--line); }
.dd-after, .dd-before { position: absolute; inset: 0; }
.dd-after img, .dd-before img { width: 100%; height: 100%; object-fit: cover; }
.dd-before { clip-path: inset(0 calc(100% - var(--at)) 0 0); background: #fff; }
.dd-ink { width: 100%; height: 100%; display: grid; place-items: center; padding: 18px; box-sizing: border-box; }
.dd-ink svg { width: 100%; height: 100%; }
.dd-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.dd-handle { position: absolute; top: 0; bottom: 0; left: var(--at); width: 2px; background: var(--ink); pointer-events: none; }
.dd-handle::after { content: "⇆"; position: absolute; top: 50%; left: -19px; width: 38px; height: 38px; margin-top: -19px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; }
.dd-tag { position: absolute; top: 12px; font: 500 .7rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; background: var(--ink); color: var(--paper); padding: 6px 9px; border-radius: 999px; pointer-events: none; }
.dd-tag-l { left: 12px; } .dd-tag-r { right: 12px; }
.ws { border: 1px solid var(--line-strong); border-radius: var(--radius-card, 6px); padding: 16px; display: grid; gap: 12px; margin: 0; }
.ws legend { font-weight: 600; font-size: .92rem; padding: 0 6px; } .ws legend span { color: var(--muted); font-weight: 400; }
.ws-layouts { display: flex; flex-wrap: wrap; gap: 6px; }
.ws-layouts button, .ws-add button { font: 600 .85rem/1 var(--font-body); padding: 8px 11px; border-radius: var(--radius-btn, 6px); border: 1.5px solid var(--line-strong); background: var(--paper); color: var(--ink); cursor: pointer; }
.ws-layouts button[aria-checked="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ws-board { display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-img, 4px); padding: 10px; min-height: 160px; }
.ws-board svg { max-width: 100%; height: auto; max-height: 300px; }
.ws-walls { display: grid; gap: 10px; }
.ws-wall { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 8px; }
.ws-len { display: flex !important; align-items: center; gap: 8px; font-weight: 600; } .ws-len span { min-width: 7.5em; }
.ws-len input { width: 5.5em !important; }
.ws-add { display: flex; flex-wrap: wrap; gap: 5px; } .ws-add button { font-size: .78rem; padding: 6px 8px; border-width: 1px; }
.ws-item { display: grid; grid-template-columns: 7em 1fr auto; align-items: center; gap: 8px; font-size: .9rem; }
.ws-item input { accent-color: var(--ink); }
.ws-item button { border: 0; background: none; font-size: 1.1rem; cursor: pointer; color: var(--muted); }
.carry-note { margin: 0; font-size: .9rem; color: var(--muted); } .carry-note::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; }
