/* Holzlinie Schreinerei – KIVA demo. Concept: Jahresringe / Holzlinie. */
:root {
  --plaster: #f4f1ea;
  --plaster-2: #ebe5d9;
  --plaster-3: #e0d8c8;
  --oak: #c99a5b;
  --oak-light: #e3c79a;
  --oak-pale: #efdfc2;
  --walnut: #5a3b26;
  --walnut-deep: #3a2618;
  --graphite: #3a3a3c;
  --ink: #2a2724;
  --muted: #5f5850;
  --forest: #3f5a45;
  --forest-deep: #2f4434;
  --line: #d2c7b3;
  --err: #9b2d1f;
  --slab: 'Zilla Slab', Rockwell, 'Roboto Slab', Georgia, serif;
  --sans: 'Schibsted Grotesk', 'Segoe UI', system-ui, sans-serif;
  --pencil: 'Reenie Beanie', 'Segoe Print', 'Comic Sans MS', cursive;
  --wrap: 1180px;
  --gut: 16px;
  --r: 4px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--plaster); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); overflow-x: clip; padding-bottom: 56px; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--forest-deep); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--walnut); }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--slab); font-weight: 700; line-height: 1.08; color: var(--walnut-deep); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 8.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 5.4vw, 2.9rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
.icon { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.visually-hidden-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--walnut-deep); color: #fff; padding: 10px 14px; border-radius: var(--r); }
.skip-link:focus { top: 12px; }
.pencil { font-family: var(--pencil); font-weight: 400; color: var(--graphite); font-size: 1.45em; line-height: 1; letter-spacing: .01em; }

/* ---------- demo badge (always visible) */
.demo-badge { position: fixed; z-index: 250; left: 10px; bottom: 10px; right: auto; max-width: calc(100vw - 20px); margin: 0; display: flex; align-items: center; gap: 8px;
  background: var(--graphite); color: var(--plaster); font: 600 .8125rem/1.3 var(--sans); padding: 8px 12px; border-radius: 3px; box-shadow: 0 6px 18px rgba(30, 20, 10, .22); border-left: 4px solid var(--oak); }
.demo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--oak-light); flex: none; }

/* ---------- header (no transform / filter / backdrop-filter here or on ancestors) */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--plaster); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--walnut-deep); }
.logo-mark { width: 34px; height: 30px; fill: none; stroke: var(--walnut); stroke-width: 3.2; }
.logo-word { font: 700 1.45rem/1 var(--slab); display: flex; flex-direction: column; }
.logo-word small { font: 600 .68rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.menu-btn, .menu-close { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 12px; border: 1px solid var(--graphite); background: transparent; color: var(--graphite); border-radius: var(--r); font: 600 .95rem var(--sans); cursor: pointer; }
.menu-close { justify-content: center; padding: 0; }
.nav-panel { display: none; }
.nav-panel.is-open { display: flex; flex-direction: column; position: fixed; inset: 0; width: 100%; height: 100vh; height: 100dvh; z-index: 200; background: var(--plaster); padding: 14px var(--gut) 90px; overflow-y: auto;
  background-image: repeating-linear-gradient(178deg, transparent 0 22px, rgba(201, 154, 91, .14) 22px 23px); }
.nav-top { display: flex; align-items: center; justify-content: space-between; min-height: 54px; }
.nav-hello { font: 400 2.2rem/1 var(--pencil); color: var(--graphite); }
.nav-list { list-style: none; margin: 28px 0 0; padding: 0; }
.nav-list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font: 700 clamp(1.9rem, 9vw, 2.6rem)/1.1 var(--slab); color: var(--walnut-deep); text-decoration: none; }
.nav-list .nav-cta { color: var(--forest); }
.nav-foot { margin-top: auto; padding-top: 24px; color: var(--muted); font-size: .95rem; }
body.menu-open { overflow: hidden; }
@media (min-width: 900px) {
  .menu-btn, .menu-close, .nav-top, .nav-foot { display: none; }
  .nav-panel, .nav-panel.is-open { display: block; position: static; height: auto; padding: 0; background: none; overflow: visible; }
  .nav-list { display: flex; align-items: center; gap: 4px; margin: 0; }
  .nav-list a { border: 0; padding: 10px 14px; font: 600 1rem/1 var(--sans); color: var(--ink); border-radius: var(--r); }
  .nav-list a:hover { background: var(--plaster-2); color: var(--walnut-deep); }
  .nav-list .nav-cta { background: var(--forest); color: #fff; margin-left: 8px; }
  .nav-list .nav-cta:hover, .nav-list .nav-cta[aria-current] { background: var(--forest-deep); color: #fff; }
}

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border: 2px solid var(--forest); background: var(--forest); color: #fff; border-radius: var(--r); font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s; }
.btn:hover { background: var(--forest-deep); border-color: var(--forest-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--forest-deep); }
.btn--ghost:hover { background: var(--forest); color: #fff; }
.btn--light { background: var(--plaster); border-color: var(--plaster); color: var(--walnut-deep); }
.btn--light:hover { background: var(--oak-light); border-color: var(--oak-light); color: var(--walnut-deep); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- wood-grain divider (generative SVG symbols) */
.grain { color: var(--oak); height: 56px; overflow: hidden; background: linear-gradient(var(--plaster), var(--oak-pale) 50%, var(--plaster)); }
.grain svg { width: 100%; height: 100%; }
.grain--flip svg { transform: scaleX(-1); }
.site-footer + .grain, .grain + .site-footer { margin-top: 0; }

/* ---------- section numbers: pencil marks on raw wood */
.mark { position: relative; display: inline-grid; place-items: center; flex: none; width: 74px; height: 58px; border-radius: 2px; transform: rotate(-2.5deg);
  background:
    repeating-linear-gradient(176deg, transparent 0 5px, rgba(150, 105, 55, .22) 5px 6px, transparent 6px 11px, rgba(150, 105, 55, .12) 11px 13px),
    radial-gradient(ellipse 40% 20% at 78% 64%, rgba(140, 95, 50, .25), transparent 70%),
    linear-gradient(180deg, #e6cfa6, #d9b985);
  box-shadow: inset 0 0 0 1px rgba(90, 59, 38, .18), 0 2px 0 rgba(90, 59, 38, .12); }
.mark span { font: 400 2.9rem/1 var(--pencil); color: var(--graphite); opacity: .92; margin-top: 4px; }
.mark::after { content: ''; position: absolute; left: 14px; right: 12px; bottom: 9px; height: 2px; background: var(--graphite); opacity: .55; border-radius: 2px; transform: rotate(-3deg); }

/* ---------- hero */
.hero { position: relative; overflow: hidden; padding: 34px 0 28px; }
.rings { position: absolute; color: var(--oak); opacity: .32; width: 760px; max-width: none; right: -330px; top: -170px; pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: 28px; }
.eyebrow { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; font: 600 .82rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.eyebrow .pencil { text-transform: none; letter-spacing: 0; font-size: 1.9rem; color: var(--forest); }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 68%, var(--oak-light) 68% 92%, transparent 92%); padding: 0 .06em; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.hero-fig { margin: 0; position: relative; }
.hero-fig img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); box-shadow: 0 1px 0 var(--line), 14px 14px 0 var(--plaster-3); background: var(--oak-pale); }
.hero-fig figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: .82rem; color: var(--muted); }
.hero-facts { list-style: none; position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 34px; padding-top: 0; }
.hero-facts li { padding: 14px 12px 14px 0; border-top: 2px solid var(--walnut-deep); font-size: .92rem; color: var(--muted); }
.hero-facts strong { display: block; font: 700 1.15rem/1.2 var(--slab); color: var(--walnut-deep); }
@media (min-width: 960px) {
  .hero { padding: 64px 0 40px; }
  .hero-grid { grid-template-columns: 1fr 1.18fr; align-items: center; gap: 56px; }
  .hero-facts { grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; }
  .rings { width: 980px; right: auto; left: -420px; top: -260px; opacity: .26; }
}

/* ---------- sections */
.section { padding: 56px 0 64px; }
.section--wood { background: var(--plaster-2); }
.section-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 30px; }
.section-head h2 { margin-bottom: .25em; }
.section-lede { color: var(--muted); max-width: 38em; margin: 0; }
.img-note { font-size: .82rem; color: var(--muted); margin: 18px 0 0; }
@media (min-width: 900px) { .section { padding: 84px 0 96px; } .section-head { gap: 26px; margin-bottom: 40px; } }

/* ---------- cards with end-grain edge */
.card { position: relative; background: #fbf9f4; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 20px 22px 32px; overflow: hidden; }
.card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 12px;
  background:
    repeating-radial-gradient(circle at -60px 38%, #b68650 0 1.5px, #dcb987 1.5px 4.5px, #cfa56c 4.5px 6px, #e1c497 6px 9px);
  box-shadow: inset -1px 0 0 rgba(90, 59, 38, .25); }

/* ---------- gallery */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { min-height: 44px; padding: 0 16px; border: 1px solid var(--graphite); border-radius: 999px; background: transparent; color: var(--graphite); font: 600 .95rem var(--sans); cursor: pointer; }
.chip:hover { background: var(--plaster-2); }
.chip[aria-pressed="true"] { background: var(--walnut-deep); border-color: var(--walnut-deep); color: var(--plaster); }
.refs { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .refs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .refs { grid-template-columns: repeat(4, 1fr); } }
.ref { position: relative; background: #fbf9f4; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.ref[hidden] { display: none; }
.ref::before { content: ''; position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 8px;
  background: repeating-radial-gradient(circle at 30% 380%, #b68650 0 1.5px, #dcb987 1.5px 4.5px, #cfa56c 4.5px 6px, #e1c497 6px 9px); }
.ref-btn { display: block; width: 100%; padding: 0; border: 0; background: var(--oak-pale); cursor: zoom-in; overflow: hidden; }
.ref-btn img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.ref-btn:hover img { transform: scale(1.03); }
.ref-btn:focus-visible { outline-offset: -4px; }
.ref-body { padding: 16px 18px 24px; }
.ref-cat { font: 600 .72rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--forest); margin-bottom: 8px; }
.ref h3 { font-size: 1.35rem; margin-bottom: 6px; }
.ref-wood { font-size: .92rem; margin-bottom: 6px; color: var(--walnut); font-weight: 600; }
.ref-wood span { font: 400 1.35rem/1 var(--pencil); color: var(--graphite); margin-right: 4px; }
.ref-line { font-size: .95rem; color: var(--muted); margin: 0; }

/* ---------- lightbox */
.lightbox { position: fixed; inset: 0; z-index: 220; background: rgba(28, 20, 14, .94); display: grid; place-items: center; padding: 64px 12px 72px; }
.lightbox[hidden] { display: none; }
.lb-inner { width: 100%; max-width: 1100px; max-height: 100%; overflow-y: auto; }
.lb-fig { margin: 0; color: var(--plaster); display: grid; gap: 16px; }
.lb-img img { width: 100%; max-height: 66vh; object-fit: contain; background: #1f1712; border-radius: var(--r); }
.lb-fig h2 { color: var(--plaster); font-size: 1.7rem; margin: 0 0 4px; }
.lb-fig p { margin: 0 0 4px; color: #d8cfc0; }
.lb-fig .ref-wood { color: var(--oak-light); }
.lb-fig .ref-wood span { color: var(--plaster); }
.lb-fig .img-note { color: #b7ab98; }
.lb-count { font: 400 1.5rem/1 var(--pencil); color: var(--oak-light) !important; }
.lb-btn { position: fixed; z-index: 2; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(244, 241, 234, .5); border-radius: 50%; background: rgba(28, 20, 14, .6); color: var(--plaster); cursor: pointer; }
.lb-btn:hover { background: var(--forest); border-color: var(--forest); }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 10px; bottom: 64px; }
.lb-next { right: 10px; bottom: 64px; }
@media (min-width: 900px) {
  .lb-fig { grid-template-columns: 1fr 280px; align-items: end; }
  .lb-img img { max-height: 80vh; }
  .lb-prev, .lb-next { top: 50%; bottom: auto; margin-top: -24px; }
  .lb-prev { left: 18px; } .lb-next { right: 18px; } .lb-close { top: 18px; right: 18px; }
  .lightbox { padding: 40px 84px; }
}

/* ---------- steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.step { position: relative; padding: 4px 0 26px 66px; }
.step::before { content: ''; position: absolute; left: 22px; top: 48px; bottom: 0; width: 2px; background: repeating-linear-gradient(var(--walnut) 0 6px, transparent 6px 11px); opacity: .5; }
.step:last-child::before { display: none; }
.step-n { position: absolute; left: 0; top: 0; width: 46px; height: 46px; display: grid; place-items: center; font: 400 2.3rem/1 var(--pencil); color: var(--graphite);
  background: radial-gradient(circle at 50% 50%, var(--oak-pale) 0 8px, #dcb987 8px 9px, var(--oak-pale) 9px 14px, #d4ad76 14px 15px, var(--oak-pale) 15px 19px, #cfa56c 19px 20px, #e3c79a 20px); border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(90, 59, 38, .3); }
.step h3 { margin: 8px 0 6px; }
.step p { color: var(--muted); margin: 0; max-width: 34em; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .step { padding: 70px 0 0; }
  .step::before { left: 54px; right: -22px; top: 22px; bottom: auto; width: auto; height: 2px; background: repeating-linear-gradient(90deg, var(--walnut) 0 6px, transparent 6px 11px); }
}
.editorial { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 44px; }
.editorial figure { margin: 0; }
.editorial img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--r); background: var(--oak-pale); }
.editorial figcaption { margin-top: 4px; }
.editorial figure:nth-child(2) { margin-top: 28px; }
@media (min-width: 900px) { .editorial { gap: 24px; margin-top: 64px; } .editorial figure:nth-child(2) { margin-top: 56px; } }

/* ---------- visit */
.visit { display: grid; gap: 22px; }
@media (min-width: 900px) { .visit { grid-template-columns: 1fr 1.5fr; align-items: start; } }
.hours h3 { font-size: 1.25rem; }
.hours table { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; vertical-align: top; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.hours th { font-weight: 600; padding-right: 12px; }
.hours td { text-align: right; }
.hours-note { color: var(--muted); font-size: .95rem; margin-bottom: 22px; }
.contact-lines { margin: 0; }
.map { margin: 0; padding: 12px 12px 12px 24px; }
.map svg { width: 100%; height: auto; border-radius: 2px; }
.map figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.m-bg { fill: var(--plaster-2); }
.m-hatch { stroke: var(--oak); stroke-width: 2; }
.m-house { stroke: var(--walnut); stroke-width: 2; }
.m-green { fill: #cfd6c4; }
.m-water { fill: none; stroke: #9fb3ad; stroke-width: 10; stroke-linecap: round; }
.m-road path { fill: none; stroke: var(--graphite); stroke-width: 26; stroke-linecap: round; opacity: .18; }
.m-road-in path { fill: none; stroke: #fbf9f4; stroke-width: 20; stroke-linecap: round; }
.m-park { fill: #fbf9f4; stroke: var(--forest); stroke-width: 2; stroke-dasharray: 5 4; }
.m-bus { fill: var(--forest); }
.m-label { font: 600 15px var(--sans); fill: var(--graphite); letter-spacing: .04em; }
.m-small { font: 600 13px var(--sans); fill: var(--muted); }
.m-tiny { font: 700 11px var(--sans); fill: #fff; }
.m-hand { font: 400 26px var(--pencil); fill: var(--graphite); }
.m-pencil { fill: none; stroke: var(--graphite); stroke-width: 1.8; stroke-linecap: round; }
.m-north { fill: none; stroke: var(--graphite); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- voices placeholder */
.section--voices { padding-top: 0; }
.voices { border: 2px dashed var(--line); border-radius: var(--r); padding: 26px 20px; text-align: center; }
.voices-h { font-size: 1.3rem; color: var(--muted); }
.voices-ph { font: 400 1.9rem/1.1 var(--pencil); color: var(--graphite); margin: 0; }

/* ---------- CTA band */
.cta-band { background: var(--walnut-deep); color: var(--oak-pale); padding: 50px 0;
  background-image: repeating-linear-gradient(177deg, transparent 0 13px, rgba(201, 154, 91, .09) 13px 14px, transparent 14px 31px, rgba(201, 154, 91, .06) 31px 33px); }
.cta-band h2 { color: var(--plaster); }
.cta-in { display: grid; gap: 18px; align-items: center; }
.cta-in p { max-width: 36em; margin: 0; }
@media (min-width: 900px) { .cta-in { grid-template-columns: 1fr auto; gap: 40px; } .cta-band { padding: 72px 0; } }

/* ---------- footer */
.site-footer { background: var(--plaster-2); padding: 44px 0 26px; font-size: .95rem; }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr 1.6fr; gap: 40px; } }
.footer-logo { font: 700 1.6rem/1 var(--slab); color: var(--walnut-deep); }
.footer-logo span { display: block; font: 600 .7rem/1.6 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.footer-h { font: 600 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--forest); margin-bottom: 10px; }
.footer-demo strong { color: var(--walnut-deep); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 16px; font-size: .85rem; color: var(--muted); }

/* ---------- Offerte page */
.page-intro { position: relative; overflow: hidden; padding: 40px 0 30px; }
.page-intro .rings { width: 620px; right: -300px; top: -200px; }
.page-intro h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); max-width: 15em; position: relative; }
.page-intro .lede, .page-intro .eyebrow { position: relative; }
.demo-inline { position: relative; display: inline-block; background: var(--oak-pale); border-left: 4px solid var(--oak); padding: 10px 14px; margin: 6px 0 0; font-size: .95rem; }
.form-wrap { max-width: 900px; }
.offerte { display: grid; gap: 26px; }
.fs { border: 1px solid var(--line); border-radius: var(--r); background: #fbf9f4; margin: 0; padding: 20px 16px 8px; min-width: 0; }
.fs legend { display: flex; align-items: center; gap: 14px; padding: 0 8px 0 0; font: 700 1.35rem/1.1 var(--slab); color: var(--walnut-deep); }
.fs legend small { font: 400 .9rem var(--sans); color: var(--muted); }
.fs .mark { width: 54px; height: 44px; }
.fs .mark span { font-size: 2rem; }
.fs .mark::after { left: 12px; right: 10px; bottom: 7px; }
@media (min-width: 700px) { .fs { padding: 26px 26px 12px; } }
.field { margin-bottom: 18px; min-width: 0; }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: 6px; }
.field small { font-weight: 400; color: var(--muted); }
input[type="text"], input:not([type]), input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #a99c86; border-radius: var(--r); background: #fff; color: var(--ink); font: 400 1rem/1.4 var(--sans); }
textarea { resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--graphite) 50%), linear-gradient(135deg, var(--graphite) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--forest); outline-offset: 1px; border-color: var(--forest); }
[aria-invalid="true"] { border-color: var(--err) !important; box-shadow: 0 0 0 1px var(--err); }
.field-err { color: var(--err); font-size: .9rem; font-weight: 600; margin: 6px 0 0; }
.field-err:empty { display: none; }
.field-hint { font-size: .9rem; color: var(--muted); margin: 8px 0 0; }
.wood-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wood-chip { position: relative; margin: 0 !important; font-weight: 400 !important; }
.wood-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wood-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid #a99c86; border-radius: 999px; background: #fff; cursor: pointer; }
.wood-chip input:checked + span { background: var(--walnut-deep); color: var(--plaster); border-color: var(--walnut-deep); }
.wood-chip input:focus-visible + span { outline: 3px solid var(--forest); outline-offset: 2px; }
.radio-invalid .wood-chip span { border-color: var(--err); }
.dims { display: grid; gap: 18px; }
.dim-inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dim-inputs .field { margin-bottom: 4px; }
.unit { position: relative; }
.unit input { padding-right: 38px; font-variant-numeric: tabular-nums; }
.unit span { position: absolute; right: 10px; top: 50%; margin-top: -.7em; color: var(--muted); font-size: .9rem; pointer-events: none; }
.sketch { margin: 0; padding: 12px 12px 12px 26px; background: #fbf9f4 repeating-linear-gradient(0deg, transparent 0 19px, rgba(63, 90, 69, .08) 19px 20px), repeating-linear-gradient(90deg, transparent 0 19px, rgba(63, 90, 69, .08) 19px 20px); }
.sketch svg { width: 100%; height: auto; }
.sketch figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.sk-face { fill: var(--oak-pale); stroke: var(--walnut-deep); stroke-width: 1.6; stroke-linejoin: round; }
.sk-top { fill: var(--oak-light); stroke: var(--walnut-deep); stroke-width: 1.6; stroke-linejoin: round; }
.sk-side { fill: #d9b985; stroke: var(--walnut-deep); stroke-width: 1.6; stroke-linejoin: round; }
.sk-grain { fill: none; stroke: var(--oak); stroke-width: .8; opacity: .8; }
.sk-dim { stroke: var(--graphite); stroke-width: 1; fill: none; }
.sk-txt { font: 400 25px var(--pencil); fill: var(--graphite); }
.sk-person { fill: none; stroke: var(--forest); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
@media (min-width: 760px) { .dims { grid-template-columns: 220px 1fr; align-items: start; } .dim-inputs { grid-template-columns: 1fr; } }
.row { display: grid; gap: 0 14px; }
@media (min-width: 700px) { .row { grid-template-columns: 1.4fr 110px 1fr; } .row--2 { grid-template-columns: 1fr 1fr; } }
.drop { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 96px; border: 2px dashed #a99c86; border-radius: var(--r); background: #fff; cursor: pointer; text-align: center; padding: 14px; }
.drop:hover, .visually-hidden-input:focus-visible + .drop, .drop.has-focus { border-color: var(--forest); background: #f6f8f3; }
.drop-t { font: 700 1.15rem var(--slab); color: var(--walnut-deep); }
.drop-s { font-weight: 400; font-size: .88rem; color: var(--muted); }
.previews { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.previews li { position: relative; margin: 0; }
.previews img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); }
.previews span { display: block; font-size: .75rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.previews button { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(42, 39, 36, .8); color: #fff; display: grid; place-items: center; cursor: pointer; }
.previews button .icon { width: 16px; height: 16px; }
.check { display: flex !important; gap: 12px; align-items: flex-start; font-weight: 400 !important; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--forest); }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.submit-row .field-hint { margin: 0; }
.form-error-summary { border: 2px solid var(--err); border-radius: var(--r); padding: 16px 18px; background: #fbefe9; }
.form-error-summary h2 { font-size: 1.2rem; color: var(--err); margin-bottom: 6px; }
.form-error-summary ul { margin: 0; padding-left: 20px; }
.form-error-summary a { color: var(--err); font-weight: 600; }
.success { padding: 28px 22px 28px 36px; }
.success-mark { font-size: 3rem; color: var(--forest); margin: 0 0 4px; }
.summary { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px dashed var(--line); font-size: .95rem; }
.summary dt { font-weight: 600; }
.summary dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 480px) { .summary { grid-template-columns: 1fr; } .summary dd { margin-bottom: 6px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .ref-btn:hover img { transform: none; }
}
