/* Casa Forma styles. Colors are set from site.config.js; these are fallbacks. */
:root {
  --paper: #F5F2EC;
  --panel: #ECE5DA;
  --ink: #21201D;
  --muted: #6F6A62;
  --stone: #B5A693;
  --sand: #D9CBB5;
  --accent: #46574A;
  --line: color-mix(in srgb, var(--ink) 14%, transparent);
  --line-strong: color-mix(in srgb, var(--ink) 28%, transparent);
  --font: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.22, .61, .2, 1);
  --radius-s: 0;
  --radius-m: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 100; border-radius: var(--radius-s); }
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Type scale */
h1 { font-size: clamp(44px, 6.4vw, 92px); line-height: 1.0; font-weight: 300; letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.08; font-weight: 300; letter-spacing: -0.03em; max-width: 18ch; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; }
.lede { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; color: var(--muted); max-width: 34ch; }
.body-l { font-size: 18.5px; line-height: 1.6; color: var(--muted); max-width: 46ch; }
.fine { font-size: 13.5px; color: var(--muted); margin-top: 40px; max-width: 80ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 0;
  font: 500 15.5px/1 var(--font); letter-spacing: 0; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--accent); }
.btn-line { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--sand); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; font-size: 18px; letter-spacing: -0.01em; }
.logo-mark { width: 26px; height: 26px; }
.logo img { height: 22px; width: auto; display: block; }
.logo-footer img { height: 28px; }
@media (max-width: 640px) { .site-header .logo img { height: 18px; } }
.nav { display: flex; gap: 34px; }
.nav a { text-decoration: none; font-size: 15px; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.menu-btn span:first-child { top: 18px; } .menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu { padding: 8px var(--gutter) 24px; border-top: 1px solid var(--line); }
.mobile-menu a { display: block; padding: 14px 0; font-size: 22px; font-weight: 300; text-decoration: none; border-bottom: 1px solid var(--line); }

/* Hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 0; }
.hero-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-place { font-size: 15px; color: var(--muted); margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.hero-place::before { content: ""; width: 28px; height: 1px; background: var(--ink); }
.hero h1 { max-width: 11.5ch; }
.hero .lede { margin-top: 26px; }
.hero-figure { margin: 0; }
.hero-figure img { width: 100%; aspect-ratio: 720 / 520; object-fit: cover; border-radius: var(--radius-m); }
.drawing { width: 100%; height: auto; display: block; border-radius: var(--radius-m); font-family: var(--font); }
.drawing .f-sheet { fill: var(--panel); }
.drawing .f-sun { fill: var(--sand); opacity: .75; }
.drawing .f-ground { fill: var(--sand); opacity: .35; }
.drawing .f-exist { fill: var(--paper); }
.drawing .f-glass { fill: color-mix(in srgb, var(--stone) 55%, var(--paper)); }
.drawing .f-wood { fill: var(--stone); }
.drawing .f-ink { fill: var(--ink); }
.drawing .f-sand { fill: var(--sand); }
.drawing .s-stone { stroke: var(--stone); }
.drawing .s-accent { stroke: var(--accent); }
.drawing .ln { stroke: var(--ink); stroke-width: 1; }
.drawing .dim line { stroke: var(--muted); stroke-width: 1; }
.drawing .dims text, .drawing .titleblock text { font-size: 13px; fill: var(--muted); }
.drawing .titleblock .tb-strong { fill: var(--ink); font-weight: 500; }

/* Hero drawing sequence: the one orchestrated moment on the page */
.js .drawing .draw { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); }
.js .drawing .draw-group rect.f-exist, .js .drawing .draw-group .f-glass, .js .drawing .draw-group .f-wood { fill-opacity: 0; }
.js .drawing .f-ink, .js .drawing .adu, .js .drawing .s-accent, .js .drawing .dims, .js .drawing .f-sun { opacity: 0; }
.js .drawing .adu { transform: translateY(8px); }
.drawing.play .draw { animation: draw 1.6s var(--ease) forwards; }
.drawing.play .draw-group rect { animation: fillin .8s var(--ease) 1.1s forwards; }
.drawing.play .f-ink { animation: fade .6s var(--ease) 1.0s forwards; }
.drawing.play .f-sun { animation: fadeSun 1.2s var(--ease) .2s forwards; }
.drawing.play .adu { animation: rise 1s var(--ease) 1.5s forwards; }
.drawing.play .s-accent { animation: fade .8s var(--ease) 2.0s forwards; }
.drawing.play .dims { animation: fade .8s var(--ease) 2.3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillin { to { fill-opacity: 1; } }
@keyframes fade { to { opacity: 1; } }
@keyframes fadeSun { to { opacity: .75; } }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Stages strip */
.stages {
  display: grid; grid-template-columns: repeat(5, 1fr);
  margin-top: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--ink);
}
.stages li { padding: 18px 16px 0 0; font-size: 16px; font-weight: 500; display: flex; align-items: baseline; gap: 10px; }
.stage-n { font-size: 12.5px; color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }

/* Sections */
.section { padding: clamp(88px, 11vw, 160px) 0; }
.section-tight { padding: clamp(64px, 8vw, 112px) 0; }
.section-panel { background: var(--panel); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .body-l { justify-self: end; }

/* Benefits */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); }
.split-head .body-l { margin-top: 24px; }
.uses { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 40px; }
.uses li { border-top: 1px solid var(--line); padding-top: 22px; }
.uses svg { width: 34px; height: 34px; fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.uses p { color: var(--muted); margin-top: 6px; font-size: 16px; max-width: 32ch; }

/* ADU types */
.types { display: grid; grid-template-columns: repeat(6, 1fr); gap: 48px 20px; }
.type-card { grid-column: span 2; }
.type-card:nth-child(n+4) { grid-column: span 3; }
.type-card {
  display: flex; flex-direction: column; text-align: left; padding: 0; border: 0; background: none;
  font: inherit; color: inherit; cursor: pointer;
}
.type-img { overflow: hidden; border-radius: var(--radius-m); background: #F7F4EE; aspect-ratio: 4 / 3; box-shadow: inset 0 0 0 1px var(--line); }
.type-img img { width: 100%; height: 100%; object-fit: contain; }
.type-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 18px 2px 0; }
.type-meta p { color: var(--muted); font-size: 15.5px; margin-top: 4px; max-width: 40ch; }
.type-open {
  flex: none; width: 38px; height: 38px; border-radius: 0; border: 1px solid var(--line-strong);
  display: grid; place-items: center; transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.type-open svg { width: 14px; height: 14px; stroke: var(--ink); stroke-width: 1.5; fill: none; transition: stroke .3s; }
.type-card:hover .type-open { background: var(--ink); border-color: var(--ink); }
.type-card:hover .type-open svg { stroke: var(--paper); }

/* Comparison table */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--ink); }
.compare { width: 100%; border-collapse: collapse; min-width: 880px; font-size: 15.5px; table-layout: fixed; }
.compare th, .compare td { text-align: left; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-weight: 500; font-size: 15px; padding-top: 20px; }
.compare tbody th { font-weight: 400; color: var(--muted); width: 15%; }
.compare tbody th, .compare thead th:first-child { position: sticky; left: 0; background: var(--paper); }
.meter { display: inline-flex; gap: 3px; margin-right: 10px; vertical-align: middle; }
.meter i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--stone); }
.meter i.on { background: var(--ink); border-color: var(--ink); }

/* Positioning band */
.band { background: var(--ink); color: var(--paper); padding: clamp(88px, 10vw, 140px) 0; }
.band-grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
.band h2 { max-width: 16ch; }
.band .body-l { color: color-mix(in srgb, var(--paper) 72%, transparent); margin: 26px 0 36px; }
.band-points li { border-top: 1px solid color-mix(in srgb, var(--paper) 22%, transparent); padding: 22px 0 26px; }
.band-points p { color: color-mix(in srgb, var(--paper) 66%, transparent); margin-top: 6px; font-size: 16px; }
.band :focus-visible { outline-color: var(--sand); }

/* Process */
.process-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.process-head { position: sticky; top: 120px; }
.process-head .body-l { margin: 24px 0 32px; }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 8px; padding: 30px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-n { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.steps p { color: var(--muted); margin-top: 8px; max-width: 54ch; }
.steps .step-out { color: var(--ink); font-size: 15.5px; padding-left: 14px; border-left: 2px solid var(--accent); margin-top: 14px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.service { padding: 26px 28px 30px 0; }
.service + .service { padding-left: 28px; border-left: 1px solid var(--line); }
.service h3 { margin-bottom: 18px; }
.service li { font-size: 15.5px; color: var(--muted); padding: 7px 0; border-bottom: 1px solid var(--line); }
.service li:last-child { border-bottom: 0; }
.also { margin-top: 48px; max-width: 64ch; font-size: 17px; color: var(--muted); }
.also strong { color: var(--ink); font-weight: 500; }
.license-note {
  display: flex; gap: 16px; align-items: flex-start; margin-top: 40px; padding: 22px 24px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-m); max-width: 820px; background: var(--paper);
}
.license-note svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; margin-top: 2px; }
.license-note p { font-size: 15px; color: var(--muted); }

/* Detail row */
.detail-row { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.detail-img { margin: 0; border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 4 / 3; background: var(--panel); }
.detail-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-copy .body-l { margin-top: 24px; }

/* Image reveal on scroll (images only, once) */


/* Property check */
.check-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.check-name { font-size: 15px; font-weight: 500; color: var(--accent); margin-bottom: 18px; }
.check-intro .body-l { margin-top: 24px; }
.check-promise { margin-top: 32px; }
.check-promise li { padding: 12px 0 12px 28px; border-top: 1px solid var(--line); position: relative; font-size: 16px; }
.check-promise li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 12px; height: 7px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); }
.check-card { background: var(--paper); border-radius: 0; padding: clamp(24px, 4vw, 48px); box-shadow: 0 1px 0 var(--line), 0 30px 60px -40px color-mix(in srgb, var(--ink) 35%, transparent); min-height: 560px; display: flex; flex-direction: column; }

.pc-progress { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.pc-bar { height: 2px; background: var(--line); border-radius: 0; overflow: hidden; margin-bottom: 36px; }
.pc-bar span { display: block; height: 100%; background: var(--ink); transition: width .6s var(--ease); }
.pc-step { flex: 1; animation: stepIn .5s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.pc-step h3 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 300; letter-spacing: -0.02em; margin-bottom: 8px; }
.pc-hint { color: var(--muted); font-size: 15.5px; margin-bottom: 28px; }
.pc-field { margin-bottom: 28px; border: 0; padding: 0; min-width: 0; }
.pc-label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 12px; padding: 0; }
.pc-label small { font-weight: 400; color: var(--muted); font-size: 14px; }
.pc-input {
  width: 100%; height: 56px; padding: 0 18px; font: 400 17px var(--font); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius-m);
  transition: border-color .2s, box-shadow .2s;
}
.pc-textarea { height: auto; min-height: 96px; padding: 14px 18px; resize: vertical; line-height: 1.5; }
.pc-input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.pc-input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.pc-input[aria-invalid="true"] { border-color: #9A3B2E; }
.pc-error { color: #9A3B2E; font-size: 14px; margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 0;
  border: 1px solid var(--line-strong); font-size: 15px; transition: background-color .2s, color .2s, border-color .2s; user-select: none;
}
.chip input:hover + span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.pc-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 20px; }
.pc-back { background: none; border: 0; font: 500 15px var(--font); color: var(--muted); cursor: pointer; padding: 12px 4px; }
.pc-back:hover { color: var(--ink); }
.pc-back[hidden] { display: block; visibility: hidden; }
.pc-consent { font-size: 13px; color: var(--muted); margin-top: 4px; }
.pc-consent a { color: var(--muted); }
.pc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pc-done { flex: 1; display: flex; flex-direction: column; justify-content: center; animation: stepIn .6s var(--ease); }
.pc-done-mark { width: 56px; height: 56px; border-radius: 0; background: var(--accent); display: grid; place-items: center; margin-bottom: 28px; }
.pc-done-mark svg { width: 24px; height: 24px; stroke: var(--paper); stroke-width: 2; fill: none; }
.pc-done h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 300; letter-spacing: -0.02em; }
.pc-done p { color: var(--muted); margin-top: 14px; max-width: 44ch; }
.pc-next { margin-top: 28px; border-top: 1px solid var(--line); }
.pc-next li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; display: grid; grid-template-columns: 28px 1fr; }
.pc-next li span { color: var(--muted); font-variant-numeric: tabular-nums; }
.pc-fail { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-s); background: color-mix(in srgb, #9A3B2E 8%, var(--paper)); color: #7A2E24; font-size: 15px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); }
.faq-head .body-l { margin-top: 24px; }
.faq-head a { color: var(--ink); }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 48px 24px 0; font-size: 18.5px; font-weight: 400; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details > div { overflow: hidden; }
.faq details p { padding: 0 48px 26px 0; color: var(--muted); max-width: 64ch; }

/* Consultation */
.consult { text-align: left; border-top: 1px solid var(--ink); padding-top: 56px; display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: end; }
.consult h2 { max-width: 14ch; }
.consult .body-l { grid-column: 1; }
.consult .btn-row { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }

/* Footer */
.footer { background: var(--panel); padding: 72px 0 40px; font-size: 15.5px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer h3 { font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 14px; }
.footer p + p { margin-top: 6px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-tag { color: var(--muted); margin-top: 14px; max-width: 30ch; }
.footer-legal { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-legal p { font-size: 13px; color: var(--muted); max-width: 100ch; }

/* Drawer */
.drawer {
  margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(560px, 100vw); max-width: 100vw;
  border: 0; padding: 0; background: var(--paper); color: var(--ink);
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); transition: transform .5s var(--ease), overlay .5s allow-discrete, display .5s allow-discrete;
}
.drawer[open] { transform: none; }
@starting-style { .drawer[open] { transform: translateX(100%); } }
.drawer::backdrop { background: color-mix(in srgb, var(--ink) 0%, transparent); transition: background-color .5s var(--ease), overlay .5s allow-discrete, display .5s allow-discrete; }
.drawer[open]::backdrop { background: color-mix(in srgb, var(--ink) 40%, transparent); }
@starting-style { .drawer[open]::backdrop { background: color-mix(in srgb, var(--ink) 0%, transparent); } }
.drawer-inner { padding: 28px clamp(24px, 4vw, 44px) 44px; position: relative; }
.drawer-close { position: sticky; top: 0; float: right; width: 44px; height: 44px; border-radius: 0; border: 1px solid var(--line-strong); background: var(--paper); cursor: pointer; display: grid; place-items: center; z-index: 2; }
.drawer-close svg { width: 16px; height: 16px; stroke: var(--ink); stroke-width: 1.5; }
.drawer-img { border-radius: var(--radius-m); overflow: hidden; margin: 64px 0 28px; aspect-ratio: 4/3; background: var(--panel); }
.drawer-img img { width: 100%; height: 100%; object-fit: contain; }
.drawer-img { background: #F7F4EE; box-shadow: inset 0 0 0 1px var(--line); }
.drawer h2 { font-size: clamp(30px, 3vw, 40px); }
.drawer .intro { color: var(--muted); margin-top: 14px; font-size: 17.5px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; margin: 28px 0; border-top: 1px solid var(--ink); }
.facts div { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.facts div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.facts dt { font-size: 13.5px; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-size: 16px; }
.drawer h3 { margin: 28px 0 12px; font-size: 16px; }
.good-for { display: flex; flex-wrap: wrap; gap: 8px; }
.good-for li { padding: 7px 14px; border-radius: 0; background: var(--panel); font-size: 14.5px; }
.know li { padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15.5px; position: relative; }
.know li::before { content: ""; position: absolute; left: 0; top: 23px; width: 8px; height: 1.5px; background: var(--accent); }
.drawer .btn { margin-top: 32px; width: 100%; }
.drawer .fine { margin-top: 16px; }


/* Photographs: used only where the page sells the finished result */
.photo { margin: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-m); background: var(--panel); }
.photo figcaption { font-size: 13.5px; color: var(--muted); margin-top: 12px; }
.hero-figure.photo img { aspect-ratio: 3 / 2; height: auto; }

/* Finished result */
.vision { display: grid; grid-template-columns: 7fr 5fr; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; aspect-ratio: 6 / 5; }
.v-main { grid-row: span 2; }
.v-side { display: contents; }
.vision figure { display: flex; flex-direction: column; min-height: 0; }
.vision img { flex: 1; min-height: 0; }

/* Process illustrations */
.steps li { grid-template-columns: 64px 1fr 112px; }
.steps li > div { grid-column: 2; grid-row: 1; }
.step-ill { grid-column: 3; grid-row: 1; width: 96px; height: 72px; justify-self: end; fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.step-ill .t { fill: var(--panel); }
.step-ill .n { fill: var(--sand); }
.step-ill .w { fill: var(--paper); }

/* Interior */
.interior-img img { aspect-ratio: 2.1 / 1; height: auto; }
.interior-copy { margin: 40px 0 0; }

/* Drawing to reality */
.plan-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
.plan-pair img { aspect-ratio: 5 / 4; height: auto; }
.plan-arrow svg { width: 40px; height: 14px; fill: none; stroke: var(--muted); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 900px) {
  .vision { grid-template-columns: 1fr 1fr; grid-template-rows: none; aspect-ratio: auto; }
  .vision img { height: auto; }
  .v-main { grid-column: span 2; grid-row: auto; }
  .v-main img { aspect-ratio: 4 / 3; flex: none; }
  .v-side img { aspect-ratio: 1 / 1; flex: none; }
  .plan-pair { grid-template-columns: 1fr; }
  .plan-arrow { justify-self: center; transform: rotate(90deg); }
}
@media (max-width: 640px) {
  .vision { grid-template-columns: 1fr; }
  .v-main { grid-column: auto; }
  .v-side img { aspect-ratio: 4 / 3; }
  .interior-img img { aspect-ratio: 4 / 3; }
  .steps li { grid-template-columns: 44px 1fr; }
  .step-ill { grid-column: 2; grid-row: 1; justify-self: start; width: 72px; height: 54px; margin-bottom: 8px; }
  .steps li > div { grid-row: 2; }
}


/* Nav: current page */
.nav a[aria-current="page"] { color: var(--ink); }
.footer-area { color: var(--muted); margin-top: 14px !important; }

/* What are you planning? */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cat { display: flex; flex-direction: column; min-width: 0; }
.cat-img { display: block; aspect-ratio: 4 / 5; border-radius: var(--radius-m); overflow: hidden; background: var(--panel); }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cat:hover .cat-img img { transform: scale(1.03); }
.cat-split { position: relative; }
.cat-split img { position: absolute; left: 0; width: 100%; height: 50%; }
.cat-split img:first-child { top: 0; object-fit: contain; background: #F7F4EE; transform: none !important; border-bottom: 1px solid var(--line); }
.cat-split img:last-child { top: 50%; }
.cat h3 { font-size: 24px; font-weight: 400; letter-spacing: -0.02em; margin-top: 24px; }
.cat > p { color: var(--muted); margin-top: 8px; font-size: 16.5px; }
.cat-list { margin-top: 18px; border-top: 1px solid var(--line); }
.cat-list li { font-size: 15px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.cat-list { margin-bottom: 22px; }
.cat-link { margin-top: auto; font-weight: 500; font-size: 15.5px; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding-bottom: 3px; border-bottom: 1px solid var(--ink); }
.cat-link:hover { color: var(--accent); border-color: var(--accent); }

/* Sound familiar? */
.quotes { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; border-top: 1px solid var(--ink); }
.quotes a { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; height: 100%; }
.quotes .q { font-size: 18.5px; font-weight: 300; letter-spacing: -0.01em; }
.quotes .q-tag { flex: none; font-size: 13px; color: var(--muted); white-space: nowrap; }
.quotes a:hover .q-tag { color: var(--accent); }

/* Sketch to finished */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trio img { aspect-ratio: 5 / 4; height: auto; }
.trio li:first-child img { object-fit: contain; background: #F7F4EE; box-shadow: inset 0 0 0 1px var(--line); }
.trio figcaption { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink); }
.trio-n { width: 24px; height: 24px; border-radius: 0; border: 1px solid var(--line-strong); display: inline-grid; place-items: center; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Starting points */
.starts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.starts li { padding: 26px 28px 8px 0; }
.starts li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.starts h3 { font-size: 21px; font-weight: 400; letter-spacing: -0.015em; }
.starts p { color: var(--muted); margin-top: 10px; font-size: 16px; }

/* Feature rows (kitchens + baths) */
.feature { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.feature-flip .feature-img { order: 2; }
.feature-img img { aspect-ratio: 4 / 3; height: auto; }
.feature-copy .body-l { margin: 22px 0 28px; }
.tick-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; border-top: 1px solid var(--line); }
.tick-list li { padding: 10px 0 10px 22px; border-bottom: 1px solid var(--line); font-size: 15.5px; position: relative; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: 21px; width: 10px; height: 1.5px; background: var(--accent); }
.elev-wrap { margin: 0; }
.elev { width: 100%; height: auto; display: block; border-radius: var(--radius-m); font-family: var(--font); }
.elev .e-paper { fill: var(--paper); }
.elev .e-ln, .elev .e-wood, .elev .e-stone, .elev .e-tile, .elev .e-fill, .elev .e-glass { stroke: var(--ink); stroke-width: 1.1; }
.elev .e-wood { fill: color-mix(in srgb, var(--sand) 70%, var(--paper)); }
.elev .e-stone { fill: var(--stone); }
.elev .e-tile { fill: var(--panel); stroke-dasharray: 2 4; }
.elev .e-fill { fill: var(--paper); }
.elev .e-glass { fill: color-mix(in srgb, var(--stone) 45%, var(--paper)); }
.elev .e-dim line { stroke: var(--muted); stroke-width: 1; }
.elev .e-txt { font-size: 13px; fill: var(--muted); }
.services-2 { grid-template-columns: 1fr 1fr; }

@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-btn { display: block; }
}
@media (max-width: 900px) {
  .cats { grid-template-columns: 1fr; gap: 56px; }
  .cat-img { aspect-ratio: 4 / 3; }
  .cat-img.cat-split { aspect-ratio: 4 / 5; }
  .quotes { grid-template-columns: 1fr; }
  .trio { grid-template-columns: 1fr; gap: 32px; }
  .starts { grid-template-columns: 1fr; }
  .starts li, .starts li + li { padding: 22px 0; border-left: 0; }
  .starts li + li { border-top: 1px solid var(--line); }
  .feature { grid-template-columns: 1fr; }
  .feature-flip .feature-img { order: 0; }
}
@media (max-width: 640px) {
  .quotes a { flex-direction: column; gap: 6px; }
  .quotes .q { font-size: 17px; }
  .tick-list { grid-template-columns: 1fr; }
  .services-2 { grid-template-columns: 1fr; }
}


/* ============ Full-width hero banner ============ */
html { overflow-x: clip; }
.has-full-hero .hero-full { margin-top: -72px; padding-top: 0; }
.hero-full .hero-grid {
  position: relative; display: flex; align-items: flex-end;
  min-height: clamp(600px, 94svh, 1000px);
  padding-top: 150px; padding-bottom: clamp(56px, 8vw, 104px);
}
.hero-full .hero-figure {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  margin: 0; z-index: 0;
}
.hero-full .hero-media { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.hero-full .hero-figure::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(18,17,15,.55) 0%, rgba(18,17,15,0) 22%),
    linear-gradient(to right, rgba(18,17,15,.62) 0%, rgba(18,17,15,.38) 38%, rgba(18,17,15,0) 68%),
    linear-gradient(to top, rgba(18,17,15,.7) 0%, rgba(18,17,15,.25) 40%, rgba(18,17,15,0) 70%);
}
.hero-full .hero-figure figcaption {
  position: absolute; right: var(--gutter); bottom: 20px; z-index: 1; margin: 0;
  color: rgba(245,242,236,.72); font-size: 12.5px;
}
.hero-full .hero-copy { position: relative; z-index: 1; max-width: 760px; }
.hero-full h1 { color: var(--paper); max-width: 13ch; font-size: clamp(48px, 7.4vw, 112px); font-weight: 400; }
.hero-full .hero-place { color: rgba(245,242,236,.86); }
.hero-full .hero-place::before { background: var(--paper); }
.hero-full .lede { color: rgba(245,242,236,.88); max-width: 40ch; }
.hero-full .btn-dark { background: var(--paper); color: var(--ink); }
.hero-full .btn-dark:hover { background: var(--sand); }
.hero-full .btn-line { border-color: rgba(245,242,236,.7); color: var(--paper); }
.hero-full .btn-line:hover { border-color: var(--paper); background: rgba(245,242,236,.1); }
.hero-full :focus-visible { outline-color: var(--paper); }

/* Header sits transparently over the banner until you scroll */
.has-full-hero .site-header:not(.scrolled):not(:has(.menu-btn[aria-expanded="true"])) {
  background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent;
}
.has-full-hero .site-header:not(.scrolled):not(:has(.menu-btn[aria-expanded="true"])) .logo img { filter: brightness(0) invert(1); }
.has-full-hero .site-header:not(.scrolled):not(:has(.menu-btn[aria-expanded="true"])) .nav a { color: rgba(245,242,236,.86); }
.has-full-hero .site-header:not(.scrolled):not(:has(.menu-btn[aria-expanded="true"])) .nav a:hover,
.has-full-hero .site-header:not(.scrolled):not(:has(.menu-btn[aria-expanded="true"])) .nav a[aria-current="page"] { color: var(--paper); }
.has-full-hero .site-header:not(.scrolled):not(:has(.menu-btn[aria-expanded="true"])) .header-cta .btn { background: var(--paper); color: var(--ink); }
.has-full-hero .site-header:not(.scrolled):not(:has(.menu-btn[aria-expanded="true"])) .menu-btn span { background: var(--paper); }
.site-header .logo img, .site-header .nav a, .site-header .menu-btn span { transition: filter .3s var(--ease), color .3s var(--ease), background-color .3s var(--ease); }

@media (max-width: 640px) {
  .hero-full .hero-grid { min-height: clamp(560px, 92svh, 860px); padding-top: 120px; }
  .hero-full h1 { font-size: clamp(44px, 12vw, 60px); }
  .hero-full .hero-figure figcaption { display: none; }
  .hero-full .hero-figure::after { background: linear-gradient(to bottom, rgba(18,17,15,.5) 0%, rgba(18,17,15,.15) 25%, rgba(18,17,15,.45) 55%, rgba(18,17,15,.8) 100%); }
}

/* Sticky mobile CTA */
.sticky-cta { display: none; }

/* Responsive */
@media (max-width: 1080px) {
  .nav { gap: 22px; }
  .services { grid-template-columns: 1fr 1fr; }
  .service:nth-child(3) { padding-left: 0; border-left: 0; }
  .service:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .nav, .header-cta .btn { display: none; }
  .menu-btn { display: block; }
  .hero-grid, .split, .process-grid, .check-grid, .faq-grid, .band-grid, .detail-row { grid-template-columns: 1fr; }
  .hero h1 { max-width: 11ch; }
  .process-head { position: static; }
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .section-head .body-l { justify-self: start; }
  .types { grid-template-columns: 1fr 1fr; }
  .type-card, .type-card:nth-child(n+4) { grid-column: span 1; }
  .type-card:last-child { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .consult { grid-template-columns: 1fr; }
  .consult .btn-row { grid-column: 1; grid-row: auto; }
  .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--paper) 90%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .4s var(--ease);
  }
  .sticky-cta.show { transform: none; }
  .sticky-cta .btn { width: 100%; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .stages { grid-template-columns: 1fr; border-top: 0; margin-top: 48px; }
  .stages li { padding: 13px 0; border-top: 1px solid var(--line); }
  .stages li:first-child { border-top-color: var(--ink); }
  .uses { grid-template-columns: 1fr; gap: 0; }
  .uses li { display: grid; grid-template-columns: 44px 1fr; padding: 18px 0; }
  .uses li svg { grid-row: span 2; width: 28px; height: 28px; margin: 0; }
  .uses p { margin-top: 2px; }
  .types { grid-template-columns: 1fr; gap: 36px; }
  .type-card:last-child { grid-column: auto; }
  .services { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 22px 0 24px; border-left: 0; }
  .service + .service { border-top: 1px solid var(--line); }
  .steps li { grid-template-columns: 44px 1fr; }
  .pc-two { grid-template-columns: 1fr; }
  .check-card { padding: 24px 20px; border-radius: 0; }
  .btn-row .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .facts { grid-template-columns: 1fr; }
  .facts div + div { padding-left: 0; border-left: 0; }
  .footer { padding-bottom: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .js .reveal { clip-path: none; }
}


/* Hero media: slow, continuous drift on the photo; a video replaces it when one is set */
.hero-media { position: relative; overflow: hidden; border-radius: var(--radius-m); aspect-ratio: 3 / 2; background: var(--panel); }
.hero-figure.photo .hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; aspect-ratio: auto; }
.hero-media img { animation: heroDrift 30s ease-in-out infinite alternate; transform-origin: 60% 55%; backface-visibility: hidden; }
@keyframes heroDrift { from { transform: scale(1); } to { transform: scale(1.025) translate(-0.5%, -0.3%); } }
@media (prefers-reduced-motion: reduce) { .hero-media img { animation: none; } }

/* Design card: show the whole plan board on every screen size */
.cat-img.cat-board, .cat-img.cat-board img { aspect-ratio: 4 / 5; }
.cat-img.cat-board img { object-fit: contain; background: #F7F4EE; }
.cat:hover .cat-img.cat-board img { transform: none; }

/* Black footer */
.footer { background: #141311; color: var(--paper); }
.footer h3, .footer-tag, .footer-area, .footer-legal p { color: rgba(245,242,236,.6); }
.footer a { color: var(--paper); }
.footer-legal { border-top-color: rgba(245,242,236,.16); }
.footer .logo img { filter: brightness(0) invert(1); }
.footer :focus-visible { outline-color: var(--paper); }

/* Black closing call-to-action */
#consult { background: #141311; color: var(--paper); padding: clamp(80px, 9vw, 128px) 0; }
#consult .consult { border-top: 0; padding-top: 0; }
#consult h2 { color: var(--paper); }
#consult .body-l { color: rgba(245,242,236,.7); }
#consult .btn-dark { background: var(--paper); color: var(--ink); }
#consult .btn-dark:hover { background: var(--sand); }
#consult .btn-line { border-color: rgba(245,242,236,.55); color: var(--paper); }
#consult .btn-line:hover { border-color: var(--paper); background: rgba(245,242,236,.08); }
#consult :focus-visible { outline-color: var(--paper); }
/* thin divider so the black CTA and black footer read as two parts of one block */
#consult + * , .footer { border-top: 1px solid rgba(245,242,236,.12); }
