/* Del Priore Kitchens — warm craftsman luxury */

:root {
  --bg: #f7f3ec;
  --surface: #fffdf9;
  --surface-2: #efe8dc;
  --ink: #26201b;
  --ink-soft: #4a4038;
  --muted: #6f6359;
  --line: #e2d8c9;
  --walnut: #5b3a24;
  --walnut-ink: #fffaf3;
  --oak: #b07d4f;
  --teal: #1f4a4a;
  --ok: #2f6b45;
  --focus: #b07d4f;
  --shadow: 0 1px 2px rgb(38 32 27 / 6%), 0 8px 30px rgb(38 32 27 / 8%);
  --radius: 14px;
  --radius-sm: 8px;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171310; --surface: #201a16; --surface-2: #2a221c; --ink: #f3ebe0; --ink-soft: #dacfc1;
    --muted: #b3a595; --line: #3a3029; --walnut: #d9a878; --walnut-ink: #1b140f; --oak: #d9a878;
    --teal: #7fb8b3; --ok: #7cc495; --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 30px rgb(0 0 0 / 35%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #171310; --surface: #201a16; --surface-2: #2a221c; --ink: #f3ebe0; --ink-soft: #dacfc1;
  --muted: #b3a595; --line: #3a3029; --walnut: #d9a878; --walnut-ink: #1b140f; --oak: #d9a878;
  --teal: #7fb8b3; --ok: #7cc495; --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 30px rgb(0 0 0 / 35%);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 .5em; text-wrap: balance; font-optical-sizing: auto; }
h1 { font-size: clamp(2.4rem, 1.4rem + 4.2vw, 4.75rem); }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul { padding-left: 1.2em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--walnut); color: var(--walnut-ink); padding: 10px 16px; border-radius: var(--radius-sm); z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.section { padding-block: clamp(56px, 8vw, 112px); }
.section.tight { padding-block: clamp(40px, 5vw, 64px); }
.alt { background: var(--surface-2); }
.eyebrow { font: 600 .78rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--oak); margin-bottom: 1rem; display: block; }
.lede { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--muted); }
.center { text-align: center; margin-inline: auto; }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center .lede { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--walnut); display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .75em 1.4em; border-radius: 999px; border: 1.5px solid var(--b);
  background: var(--b); color: var(--walnut-ink); font: 600 .95rem/1 var(--sans); text-decoration: none;
  cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--b); }
.btn.light { --b: #fffaf3; color: #26201b; }
.btn.light.ghost { color: #fffaf3; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--walnut); }
.link-arrow::after { content: " →"; transition: margin .15s; }
.link-arrow:hover::after { margin-left: 4px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand-name { font: 500 1.2rem/1 var(--serif); letter-spacing: .01em; }
.brand-tag { display: block; font: 500 .66rem/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 10px 12px; text-decoration: none; font-weight: 500; font-size: .95rem; border-radius: var(--radius-sm); }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--surface-2); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); width: 48px; height: 48px; color: var(--ink); cursor: pointer; }
@media (max-width: 960px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 8px; font-size: 1.05rem; }
  .nav-cta { margin: 12px 0 0; }
  .no-js .nav-links { position: static; display: flex; box-shadow: none; border: 0; flex-direction: row; flex-wrap: wrap; padding: 0 0 12px; }
  .no-js .nav-toggle { display: none; }
  .no-js .nav { flex-wrap: wrap; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(88vh, 820px); display: grid; align-items: end; color: #fffaf3; isolation: isolate; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(20 14 10 / 62%) 0%, rgb(20 14 10 / 30%) 55%, rgb(20 14 10 / 0%) 100%), linear-gradient(180deg, rgb(20 14 10 / 5%) 0%, rgb(20 14 10 / 35%) 45%, rgb(20 14 10 / 82%) 100%); }
.hero h1, .hero .lede, .hero .eyebrow { text-shadow: 0 1px 18px rgb(0 0 0 / 35%); }
.hero-inner { padding-block: clamp(48px, 10vw, 120px) clamp(40px, 7vw, 88px); }
.hero h1 { max-width: 15ch; color: #fffaf3; }
.hero .lede { color: rgb(255 250 243 / 90%); margin-bottom: 28px; }
.hero .eyebrow { color: #e9c9a2; }
.page-hero { padding-block: clamp(48px, 8vw, 96px) clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 20ch; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 20px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { text-decoration: none; }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: clamp(16px, 2.5vw, 28px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body p { color: var(--ink-soft); margin: 0; }
.card h3 { margin: 0; }
.card .link-arrow { margin-top: auto; padding-top: 10px; }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a.card { text-decoration: none; transition: box-shadow .2s, transform .2s; }
a.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
a.card:hover .card-media img { transform: scale(1.03); }
.card-placeholder { aspect-ratio: 4 / 3; display: grid; place-items: center; background: linear-gradient(135deg, var(--surface-2), color-mix(in srgb, var(--oak) 25%, var(--surface-2))); font: 400 1.4rem var(--serif); color: var(--walnut); padding: 24px; text-align: center; }
.pillar { padding: 26px 24px; border-top: 2px solid var(--oak); background: var(--surface); border-radius: 0 0 var(--radius) var(--radius); }
.pillar h3 { font-size: 1.25rem; }
.pillar p { margin: 0; color: var(--ink-soft); }

/* ---------- split / feature ---------- */
.split { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.split-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; border-left: 2px solid var(--oak); border-bottom: 2px solid var(--oak); transform: rotate(-45deg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1em; }
.chips li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; background: var(--surface); }

/* ---------- process ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); counter-reset: step; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 400 2rem/1 var(--serif); color: var(--oak); margin-bottom: 14px; }
.steps h3 { font-size: 1.2rem; margin-bottom: .35em; }
.steps p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* ---------- testimonials ---------- */
.quotes { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.quote { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column; gap: 18px; }
.quote blockquote { margin: 0; font: 400 1.12rem/1.55 var(--serif); }
.quote blockquote::before { content: "“"; display: block; font-size: 3.2rem; line-height: .6; color: var(--oak); margin-bottom: 10px; }
.quote figcaption { margin-top: auto; font-size: .92rem; }
.quote figcaption strong { display: block; }
.quote figcaption span { color: var(--muted); }

/* ---------- band ---------- */
.band { background: var(--walnut); color: var(--walnut-ink); border-radius: var(--radius); padding: clamp(32px, 6vw, 64px); display: grid; gap: 24px; align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.band h2 { color: inherit; margin: 0; }
.band p { margin: 0; opacity: .9; }
.band .btn { --b: var(--walnut-ink); color: var(--walnut); }
.band .btn.ghost { color: var(--walnut-ink); }
.band .btn-row { justify-content: flex-end; }
@media (max-width: 820px) { .band .btn-row { justify-content: flex-start; } }

/* ---------- showrooms ---------- */
.showroom { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.showroom-map { margin: -28px -28px 12px; aspect-ratio: 16 / 10; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.showroom-map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .showroom-map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.7); } }
:root[data-theme="dark"] .showroom-map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.7); }
.showroom h3 { margin: 0; }
.showroom address { font-style: normal; }
.showroom dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.showroom dt { color: var(--muted); }
.showroom dd { margin: 0; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--muted); min-height: 1.4em; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.status.open { color: var(--ok); }

/* ---------- gallery ---------- */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.gallery button { padding: 0; border: 0; background: var(--surface-2); border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; aspect-ratio: 3 / 2; }
.gallery a { display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 3 / 2; background: var(--surface-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery button:hover img, .gallery a:hover img { transform: scale(1.04); }
.project + .project { margin-top: clamp(56px, 8vw, 96px); }
.project-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; align-items: end; margin-bottom: 24px; }
.project-head p { max-width: 62ch; color: var(--ink-soft); margin: 0; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 94vh; width: 100%; }
.lightbox::backdrop { background: rgb(12 9 7 / 88%); }
.lightbox figure { margin: 0; display: grid; gap: 10px; }
.lightbox img { max-height: 84vh; width: auto; margin-inline: auto; border-radius: var(--radius-sm); }
.lightbox figcaption { color: #f3ebe0; text-align: center; font-size: .95rem; padding-inline: 56px; }
.lb-btn { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgb(255 250 243 / 92%); color: #26201b; font-size: 1.4rem; cursor: pointer; }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-close { position: fixed; top: 12px; right: 12px; transform: none; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 28px 18px 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font: 400 1.5rem var(--serif); color: var(--oak); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-soft); padding-bottom: 18px; margin: 0; }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); }
.form-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; }
.field .hint { font-size: .85rem; color: var(--muted); }
.req { color: var(--oak); }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 14px; min-height: 48px;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--oak); box-shadow: 0 0 0 3px color-mix(in srgb, var(--oak) 25%, transparent); }
input[type="file"] { padding: 10px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { border-radius: var(--radius-sm); padding: 14px 16px; font-weight: 500; }
.form-msg.error { background: color-mix(in srgb, #b3261e 12%, var(--surface)); color: var(--ink); border: 1px solid color-mix(in srgb, #b3261e 40%, transparent); }
.form-msg.ok { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); }
.form-msg[hidden] { display: none; }

/* ---------- footer ---------- */
.site-footer { background: #1d1713; color: #e9dfd2; padding-block: 64px 32px; margin-top: clamp(56px, 8vw, 112px); }
.site-footer a { color: #f3ebe0; }
.site-footer .brand-tag { color: #b3a595; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.footer-grid h2 { font: 600 .78rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #d9a878; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid address { font-style: normal; line-height: 1.6; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid #3a3029; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; color: #b3a595; }
.footer-bottom a { color: #b3a595; }
.theme-toggle { background: none; border: 1px solid #3a3029; color: #e9dfd2; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .85rem; cursor: pointer; }

/* ---------- assistant ---------- */
.no-js .js-only { display: none !important; }
.assistant-launch {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; min-height: 52px;
  border-radius: 999px; border: 0; background: var(--walnut); color: var(--walnut-ink); box-shadow: var(--shadow);
  font: 600 .95rem/1 var(--sans); cursor: pointer;
}
.assistant-launch svg { width: 24px; height: 24px; }
.assistant-launch[aria-expanded="true"] { display: none; }
@media (max-width: 520px) { .assistant-launch { padding: 14px; } .assistant-launch .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
.assistant {
  position: fixed; right: 16px; bottom: 16px; z-index: 70; width: min(400px, calc(100vw - 32px)); height: min(640px, calc(100dvh - 32px));
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 60px rgb(0 0 0 / 25%);
  display: flex; flex-direction: column; overflow: hidden;
}
.assistant[hidden] { display: none; }
@media (max-width: 520px) { .assistant { inset: 0; width: 100%; height: 100dvh; border-radius: 0; border: 0; } }
.assistant-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.assistant-head strong { display: block; font: 500 1.05rem var(--serif); }
.assistant-head small { color: var(--muted); font-size: .8rem; }
.assistant-head .close { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); font-size: 1.4rem; cursor: pointer; }
.assistant-head .close:hover { background: var(--line); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--walnut); color: var(--walnut-ink); display: grid; place-items: center; font: 500 .95rem var(--serif); flex: none; }
.assistant-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.msg { max-width: 88%; padding: 11px 14px; border-radius: 16px; font-size: .95rem; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.msg.bot { background: var(--surface-2); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.user { background: var(--walnut); color: var(--walnut-ink); border-bottom-right-radius: 4px; align-self: flex-end; }
.msg-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.msg-links a { font-size: .85rem; font-weight: 600; color: var(--walnut); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; text-decoration: none; }
.typing { display: inline-flex; gap: 4px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.assistant-chips { display: flex; gap: 8px; padding: 0 18px 10px; overflow-x: auto; scrollbar-width: none; }
.assistant-chips:empty { display: none; }
.assistant-chips button { flex: none; border: 1px solid var(--oak); color: var(--walnut); background: transparent; border-radius: 999px; padding: 8px 14px; font: 500 .85rem var(--sans); cursor: pointer; min-height: 36px; }
.assistant-chips button:hover { background: color-mix(in srgb, var(--oak) 14%, transparent); }
.assistant-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.assistant-form input { flex: 1; border-radius: 999px; padding-inline: 16px; }
.assistant-form button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--walnut); color: var(--walnut-ink); cursor: pointer; flex: none; display: grid; place-items: center; }
.assistant-note { font-size: .72rem; color: var(--muted); text-align: center; padding: 0 12px 10px; margin: 0; }

/* ---------- Design Studio ---------- */
.studio { display: grid; gap: clamp(24px, 3.5vw, 48px); grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); align-items: start; }
@media (max-width: 960px) { .studio { grid-template-columns: minmax(0, 1fr); } }
/* Desktop: the whole left column (preview + summary) stays in view while the controls scroll. */
.studio-stage { display: grid; gap: 20px; min-width: 0; position: sticky; top: 84px; }
.stage-stick { background: var(--bg); }
/* Phones/tablets: one column; only the preview stays pinned above the controls, summary + actions follow. */
@media (max-width: 960px) {
  .studio { display: flex; flex-direction: column; }
  .studio-stage { display: contents; }
  .stage-stick { order: 1; position: sticky; top: 72px; z-index: 5; margin-inline: calc(var(--gutter) * -1); padding: 8px var(--gutter); box-shadow: 0 8px 16px -12px rgb(0 0 0 / 35%); }
  .stage-tabs { margin-bottom: 6px; }
  .studio-controls { order: 2; }
  .stage-info { order: 3; }
}
.no-js .studio-stage, .no-js .stage-stick { position: static; }
.preview-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #ece6dc; border: 1px solid var(--line); }
.preview-frame svg { display: block; width: 100%; height: auto; }
.stage-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 10px; background: var(--surface-2); border-radius: 999px; }
.stage-tabs button { border: 0; background: transparent; color: var(--ink); font: 600 .85rem var(--sans); padding: 8px 16px; border-radius: 999px; cursor: pointer; min-height: 36px; }
.stage-tabs button[aria-selected="true"] { background: var(--surface); box-shadow: var(--shadow); }
.stage-title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin-bottom: .4em; }
.summary-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 4px; color: var(--ink-soft); }
.summary-list li::before { content: "— "; color: var(--oak); }
.notice { background: color-mix(in srgb, var(--oak) 16%, var(--surface)); border: 1px solid color-mix(in srgb, var(--oak) 45%, transparent); border-radius: var(--radius-sm); padding: 10px 14px; font-size: .92rem; margin: 0 0 12px; }
.notice[hidden] { display: none; }
.hint { font-size: .86rem; color: var(--muted); margin: 8px 0 0; }

.studio-controls { min-width: 0; }
.ctrl { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.ctrl[hidden] { display: none; }
.ctrl-h { font: 500 1.2rem/1.2 var(--serif); margin: 0 0 12px; padding: 0; }
.ctrl-current { margin: -6px 0 12px; font-size: .9rem; color: var(--muted); }
.opt { position: relative; display: inline-block; cursor: pointer; }
.opt-card { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; transition: border-color .15s, box-shadow .15s; }
.opt:hover .opt-card { border-color: var(--oak); }
.opt input:checked + .opt-card { border-color: var(--walnut); box-shadow: 0 0 0 1.5px var(--walnut); }
.opt input:focus-visible + .opt-card { outline: 3px solid var(--focus); outline-offset: 2px; }
.opt.is-disabled { cursor: not-allowed; }
.opt.is-disabled .opt-card { opacity: .45; border-style: dashed; }
.chip { padding: 8px 14px; font-size: .9rem; font-weight: 500; min-height: 40px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.preset-row { display: flex; flex-wrap: wrap; gap: 8px; }
.preset { border: 1.5px solid var(--oak); background: transparent; color: var(--walnut); border-radius: 999px; padding: 8px 14px; font: 600 .85rem var(--sans); cursor: pointer; min-height: 40px; }
.preset:hover { background: color-mix(in srgb, var(--oak) 14%, transparent); }
.door-opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.door-opts .opt { display: block; }
.door-card { flex-direction: column; gap: 4px; border-radius: var(--radius-sm); padding: 10px 6px 12px; width: 100%; text-align: center; }
.door-card strong { font-size: .86rem; line-height: 1.2; }
.door-card small { font-size: .74rem; color: var(--muted); }
.door-swatch { display: block; width: 100%; max-width: 64px; }
.door-swatch svg { display: block; width: 100%; height: auto; }
@media (max-width: 420px) { .door-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.swatches { display: flex; flex-wrap: wrap; gap: 12px 8px; margin-top: 14px; }
.swatches[hidden] { display: none; }
.swatch-opt { width: 72px; text-align: center; }
.swatch { width: 44px; height: 44px; border-radius: 50%; padding: 0; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 12%); margin-inline: auto; display: block; }
.swatch.square { border-radius: 10px; }
.opt input:checked + .swatch { box-shadow: inset 0 0 0 1px rgb(0 0 0 / 12%), 0 0 0 3px var(--surface), 0 0 0 5px var(--walnut); }
.swatch.wood { background: repeating-linear-gradient(96deg, rgb(0 0 0 / 11%) 0 1.5px, transparent 1.5px 6px), repeating-linear-gradient(90deg, rgb(255 255 255 / 6%) 0 3px, transparent 3px 11px), var(--c); }
.swatch.marble { background: linear-gradient(118deg, transparent 30%, color-mix(in srgb, var(--v) 70%, transparent) 33%, transparent 36%, transparent 58%, color-mix(in srgb, var(--v) 35%, transparent) 60%, transparent 62%), linear-gradient(160deg, transparent 64%, color-mix(in srgb, var(--v) 45%, transparent) 66%, transparent 69%), var(--c); }
.swatch.speckle { background: radial-gradient(var(--s) 1px, transparent 1.5px) 0 0 / 7px 7px, radial-gradient(var(--s) 1px, transparent 1.5px) 3px 4px / 9px 9px, var(--c); }
.swatch-name { display: block; font-size: .74rem; line-height: 1.25; margin-top: 6px; color: var(--ink-soft); }
.hw-icon { width: 18px; height: 18px; position: relative; flex: none; }
.hw-icon::before { content: ""; position: absolute; background: var(--c); border-radius: 3px; }
.hw-icon.bar::before { left: 7px; top: 1px; width: 4px; height: 16px; }
.hw-icon.knob::before { left: 4px; top: 4px; width: 10px; height: 10px; border-radius: 50%; }
.hw-icon.edge::before { left: 1px; top: 1px; width: 16px; height: 3px; }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 500; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { width: 44px; height: 26px; border-radius: 999px; background: var(--line); position: relative; flex: none; transition: background .15s; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgb(0 0 0 / 30%); transition: transform .15s; }
.switch input:checked + .switch-ui { background: var(--walnut); }
.switch input:checked + .switch-ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-ui { outline: 3px solid var(--focus); outline-offset: 2px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-weight: 500; font-size: .92rem; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
.toast[hidden] { display: none; }
.board-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.board-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.board-thumb svg { display: block; width: 100%; height: auto; }
.board-body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.board-body h3 { font-size: 1.05rem; margin: 0; }
.board-body p { font-size: .82rem; margin: 0; }
.board-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.btn.sm { min-height: 38px; padding: .5em 1em; font-size: .85rem; }
.btn-text { background: none; border: 0; color: var(--muted); font: inherit; font-size: .85rem; text-decoration: underline; cursor: pointer; padding: 6px; }
.studio-teaser { display: block; }
.studio-teaser svg { display: block; width: 100%; height: auto; transition: transform .5s ease; }
.studio-teaser:hover svg { transform: scale(1.02); }
.design-attach { display: grid; gap: 18px; grid-template-columns: minmax(0, 200px) 1fr; align-items: start; padding: 16px; border: 1.5px solid var(--oak); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--oak) 8%, var(--surface)); }
.design-attach[hidden] { display: none; }
.design-attach h3 { font-size: 1.15rem; margin: 0 0 6px; }
.design-attach .eyebrow { margin-bottom: 6px; }
.design-attach .summary-list { font-size: .88rem; margin-bottom: 8px; }
.design-thumb svg { display: block; width: 100%; height: auto; border-radius: 6px; }
.design-links { margin: 0; font-size: .88rem; }
@media (max-width: 560px) { .design-attach { grid-template-columns: 1fr; } }
.page-hero.compact { padding-block: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 32px); }
.page-hero.compact h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); max-width: none; }
.page-hero.compact .lede { font-size: 1.05rem; margin-bottom: 0; }

/* ---------- compact lists (home) ---------- */
.step-names { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.step-names li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; font: 500 1.1rem/1.25 var(--serif); }
.step-names li::before { content: counter(s, decimal-leading-zero); display: block; font: 600 .78rem var(--sans); letter-spacing: .12em; color: var(--oak); margin-bottom: 6px; }
.stage-names { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.stage-names li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; }
.stage-names .craft-icon { width: 26px; height: 26px; color: var(--oak); }
.showroom-mini { display: grid; gap: 6px; padding: 24px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: box-shadow .2s, transform .2s; }
.showroom-mini:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.showroom-mini strong { font: 400 1.7rem/1.1 var(--serif); }
.other-services ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }

/* ---------- Made in Niagara ---------- */
.craft-icon { width: 48px; height: 48px; display: block; }
.stages { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.stage { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px 20px 20px; }
.stage h3 { margin: 2px 0 6px; }
.stage p { margin: 0; color: var(--ink-soft); max-width: 70ch; }
.stage-num { font: 600 .78rem var(--sans); letter-spacing: .14em; color: var(--oak); }
.stage-art { aspect-ratio: 1; border-radius: var(--radius-sm); display: grid; place-items: center; color: var(--walnut); background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--oak) 22%, var(--surface-2)), var(--surface-2)); }
.stage-art .craft-icon { width: 56px; height: 56px; }
.stage-photo { aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; }
.stage-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .stage { grid-template-columns: 180px 1fr; } }
@media (max-width: 520px) { .stage { grid-template-columns: 76px 1fr; gap: 16px; padding: 16px; } .stage-art .craft-icon { width: 38px; height: 38px; } }
.craft-video { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.craft-video video { display: block; width: 100%; height: auto; background: #000; }
.craft-video figcaption { padding: 10px 14px; font-size: .9rem; color: var(--muted); background: var(--surface); }
.card .best { color: var(--ink); font-size: .92rem; }

/* ---------- portfolio & case studies ---------- */
.card-media.wide { aspect-ratio: 3 / 2; }
.project-card .card-body { padding: 24px 26px 28px; }
.project-card h3 { font-size: 1.7rem; }
.case-cover { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.case-cover img { width: 100%; max-height: 72vh; object-fit: cover; }
.case-grid { display: grid; gap: clamp(28px, 5vw, 72px); grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); align-items: start; }
@media (max-width: 900px) { .case-grid { grid-template-columns: 1fr; } }
.case-story .lede { max-width: 64ch; }
.case-facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: sticky; top: 96px; }
.case-facts h2 { font-size: 1.5rem; }
.case-facts dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.case-facts dt { color: var(--muted); }
.case-facts dd { margin: 0; }
.case-facts .ticks { font-size: .95rem; }
@media (max-width: 900px) { .case-facts { position: static; } }
.room + .room { margin-top: clamp(40px, 6vw, 72px); }
.room h2 { margin-bottom: 20px; }
.next-project { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; }
.next-project .eyebrow { margin: 0; }
.next-project strong { font: 400 1.6rem var(--serif); }
.next-project:hover { box-shadow: var(--shadow); }
