/* =========================================================
   MIEW Construction & Renovation — site styles
   Colours: paper / ink / copper, drawings in slate blue
   ========================================================= */
:root {
  --paper: #F2F0EA;          /* page background, warm white */
  --paper-draw: #FAF8F3;     /* drawing sheet */
  --card: #FFFFFF;
  --subtle: #E8E5DC;
  --ink: #1F2D27;            /* deep ink green: text, buttons, dark sections */
  --muted: #55605A;          /* secondary text */
  --line: #D9D5CA;
  --copper: #B08D57;         /* brass: lines, icons, drawing notes */
  --copper-text: #7E6236;    /* brass used for small text, 5:1 on paper */
  --copper-soft: rgba(176, 141, 87, 0.13);
  --draw: #4A5A52;           /* drawing linework, grey green */
  --dark: #1F2D27;
  --dark-card: #27372F;
  --dark-line: rgba(255, 255, 255, 0.10);
  --dark-muted: #B4BDB7;
  --brass-on-dark: #C9A66B;

  --f-display: 'Space Grotesk', 'Noto Sans SC', system-ui, sans-serif;
  --f-body: 'Plus Jakarta Sans', 'Noto Sans SC', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --r-sm: 4px;
  --r-md: 12px;
  --r-lg: 18px;
  --shadow: 0 24px 50px rgba(28, 29, 32, 0.08);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, rgba(31, 45, 39, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(31, 45, 39, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
:lang(zh) body, body:lang(zh) { line-height: 1.8; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 999; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

section { position: relative; padding: 64px 0; scroll-margin-top: calc(var(--header-h) + 8px); }
@media (min-width: 1080px) { section { padding: 96px 0; } }

/* ---------- section headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 12px;
  font-family: var(--f-mono); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--copper-text);
}
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--copper); }
:lang(zh) .eyebrow { letter-spacing: 0.2em; font-family: var(--f-body); font-size: 0.8rem; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.h2 {
  margin: 0 0 12px;
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.16; letter-spacing: -0.02em;
  text-wrap: balance;
}
:lang(zh) .h2 { letter-spacing: 0.01em; line-height: 1.3; }
.section-head p { margin: 0; color: var(--muted); font-size: clamp(0.95rem, 1.4vw, 1.05rem); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  border-radius: var(--r-sm); border: 1px solid transparent;
  font-weight: 700; font-size: 0.95rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn svg { flex-shrink: 0; }
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: #2E4238; border-color: #2E4238; }
.btn-secondary { background: transparent; color: var(--ink); border-color: #B9B3A5; }
.btn-secondary:hover { background: var(--card); border-color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 0.88rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 300; padding: 12px 12px 0; }
@media (min-width: 768px) { .site-header { padding: 14px 24px 0; } }
.nav-bar {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 18px; min-height: 58px;
  background: rgba(242, 240, 234, 0.94);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.logo-mark {
  width: 34px; height: 34px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--ink); color: #fff; border-radius: var(--r-sm);
  font-family: var(--f-mono); font-weight: 700; font-size: 0.95rem;
}
.logo-text { display: flex; flex-direction: column; min-width: 0; font-family: var(--f-display); font-weight: 700; font-size: 1rem; line-height: 1.15; letter-spacing: -0.01em; white-space: nowrap; }
.logo-text small { display: block; overflow: hidden; text-overflow: ellipsis; font-family: var(--f-body); font-weight: 600; color: var(--muted); font-size: .66rem; letter-spacing: 0; }
@media (max-width: 479px) {
  .nav-bar { padding-left: 12px; }
  .nav-actions { gap: 6px; }
  .lang-switch { min-width: 44px; padding: 0 10px; }
  .logo-text small { white-space: normal; overflow: visible; font-size: .64rem; line-height: 1.2; }
}
@media (min-width: 480px) { .logo-text { flex-direction: row; align-items: baseline; gap: 6px; } .logo-text small { font-size: .82rem; font-weight: 500; } }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 28px; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 0.92rem; color: var(--muted); padding: 10px 0; }
.nav-links a:hover { color: var(--copper-text); }
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; min-width: 52px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 22px; background: var(--card);
  font-weight: 700; font-size: 0.82rem; text-decoration: none; color: var(--ink);
}
.lang-switch:hover { border-color: var(--copper); color: var(--copper-text); }
.nav-wa { display: none; border-radius: 22px; min-height: 42px; }
.menu-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border: 1px solid var(--line); background: var(--card); cursor: pointer; padding: 0;
}
.menu-btn span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-wa-icon { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: #fff; }
.nav-wa-icon:hover { background: #2E4238; }
@media (min-width: 768px) { .nav-wa { display: inline-flex; } .nav-wa-icon { display: none; } }
@media (min-width: 1080px) {
  .nav-links { display: flex; }
  .menu-btn { display: none; }
}

.drawer {
  position: fixed; inset: 0; z-index: 280;
  background: rgba(242, 240, 234, 0.98);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; padding: 96px 28px 40px;
  visibility: hidden; opacity: 0; transition: opacity .25s var(--ease), visibility .25s;
}
.drawer.is-open { visibility: visible; opacity: 1; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer a { display: block; padding: 14px 0; font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--line); }
.drawer .btn { margin-top: 28px; width: 100%; border-bottom: 0; font-size: 1rem; font-family: var(--f-body); }
body.no-scroll { overflow: hidden; }

/* ---------- hero ---------- */
.hero { padding-top: calc(var(--header-h) + 40px); padding-bottom: 56px; }
@media (min-width: 1080px) { .hero { padding-top: calc(var(--header-h) + 72px); padding-bottom: 48px; } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-grid > * { min-width: 0; }
@media (min-width: 1080px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 56px; } }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  margin-bottom: 20px; padding: 6px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 30px;
  font-size: 0.8rem; font-weight: 600; color: var(--muted);
}
.hero-pill svg { color: var(--copper); flex-shrink: 0; }
.hero h1 {
  margin: 0 0 18px;
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.12; letter-spacing: -0.025em;
  text-wrap: balance;
}
:lang(zh) .hero h1 { letter-spacing: 0.01em; line-height: 1.28; font-size: clamp(2rem, 4vw, 3.1rem); }
.hero-lead { margin: 0 0 28px; max-width: 34em; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.08rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
@media (max-width: 479px) { .hero-actions .btn { flex: 1 1 100%; } }
.hero-facts { list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
@media (min-width: 600px) { .hero-facts { grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 24px; } }
.hero-facts li { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; color: var(--muted); }
.hero-facts svg { color: var(--copper); flex-shrink: 0; }

/* ---------- CAD drawing board ---------- */
.cad-card {
  margin: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 14px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px;
}
@media (min-width: 768px) { .cad-card { padding: 18px; } }
.cad-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.cad-status {
  display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px;
  background: var(--subtle); border: 1px solid var(--line); border-radius: 20px;
  font-family: var(--f-mono); font-size: 0.72rem; font-weight: 700; color: var(--ink);
}
.cad-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--copper); }
.cad-layers { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cad-layers::-webkit-scrollbar { display: none; }
@media (max-width: 599px) { .cad-toolbar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; min-width: 0; } .cad-layers { width: 100%; min-width: 0; } .cad-status { align-self: flex-start; } }
.cad-btn {
  flex-shrink: 0; min-height: 40px; padding: 0 14px;
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 20px; background: var(--card);
  font-size: 0.82rem; font-weight: 700; color: var(--muted); cursor: pointer;
  transition: border-color .2s, color .2s, background-color .2s;
}
.cad-btn:hover { border-color: var(--copper); color: var(--ink); }
.cad-btn[aria-pressed="true"] { border-color: var(--copper); background: var(--copper-soft); color: var(--copper-text); }
.cad-btn .sw { width: 10px; height: 10px; border-radius: 2px; border: 1.5px solid currentColor; }
.cad-sheet {
  position: relative; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden;
  background-color: var(--paper-draw);
  background-image:
    linear-gradient(to right, rgba(74, 90, 82, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(74, 90, 82, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
}
.cad-sheet svg { display: block; width: 100%; height: auto; }
.cad-corner { position: absolute; width: 10px; height: 10px; border: 0 solid var(--copper); opacity: .7; pointer-events: none; }
.cad-corner.tl { top: 8px; left: 8px; border-top-width: 1.5px; border-left-width: 1.5px; }
.cad-corner.tr { top: 8px; right: 8px; border-top-width: 1.5px; border-right-width: 1.5px; }
.cad-corner.bl { bottom: 8px; left: 8px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.cad-corner.br { bottom: 8px; right: 8px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.cad-caption { margin: 0; min-height: 3.3em; font-size: 0.9rem; color: var(--muted); }
.cad-caption strong { color: var(--ink); }
.cad-titleblock {
  display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: space-between; gap: 6px 16px;
  padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--subtle);
  font-family: var(--f-mono); font-size: 0.68rem; color: var(--muted); letter-spacing: .02em;
}
.cad-titleblock strong { color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.cad-titleblock span:first-child { min-width: 0; }
@media (max-width: 599px) { .cad-titleblock { grid-template-columns: 1fr 1fr; } .cad-titleblock span:first-child { grid-column: 1 / -1; } }

/* svg drawing */
.plan text { font-family: var(--f-body); fill: var(--ink); }
.plan .t-room { font-size: 19px; font-weight: 700; }
.plan .t-sub { font-size: 12px; fill: var(--muted); }
.plan .t-dim { font-size: 12px; font-family: var(--f-mono); fill: var(--draw); font-weight: 600; }
.plan .t-axis { font-size: 12px; font-family: var(--f-mono); font-weight: 700; fill: var(--draw); }
.plan .t-ext { font-size: 19px; font-weight: 700; fill: var(--copper-text); }
.plan .t-ext-sub { font-size: 12px; font-weight: 700; fill: var(--copper-text); }
.plan .t-ext-dim { font-size: 12px; font-family: var(--f-mono); fill: var(--copper-text); font-weight: 700; }
.plan .ext-dim { fill: none; stroke: var(--copper); stroke-width: 1; }
.plan .ghost { fill: none; stroke: #B8BEC6; stroke-width: 1; stroke-dasharray: 4 4; }
.plan .ghost-t { font-size: 11px; fill: #7D848D; }
/* small screens: keep room names and the extension, drop the fine print */
@media (max-width: 599px) {
  .plan .t-sub, .plan .t-dim, .plan .t-axis, .plan .ghost-t, .plan .t-ext-dim { display: none; }
  .plan .t-room, .plan .t-ext { font-size: 22px; }
  .plan .t-ext-sub { font-size: 15px; }
}
.plan .wall { fill: none; stroke: var(--draw); stroke-width: 4; }
.plan .wall-thin { fill: none; stroke: var(--draw); stroke-width: 2; }
.plan .hair { fill: none; stroke: var(--draw); stroke-width: 1; }
.plan .dash { fill: none; stroke: var(--draw); stroke-width: 1.2; stroke-dasharray: 6 4; }
.plan .dim { fill: none; stroke: var(--draw); stroke-width: 0.8; }
.plan .ext-fill { fill: url(#hatch); }
.plan .ext-wall { fill: none; stroke: var(--copper); stroke-width: 4; }
.plan .col { fill: var(--ink); }
.plan .footing { fill: none; stroke: var(--copper); stroke-width: 1.2; stroke-dasharray: 3 2; }
.plan .beam { fill: none; stroke: var(--copper); stroke-width: 2.4; }
.plan .bubble { fill: var(--paper-draw); stroke: var(--draw); stroke-width: 1; }
.plan .layer { transition: opacity .35s var(--ease); }
.plan.focus-existing .layer:not([data-layer="existing"]),
.plan.focus-extension .layer:not([data-layer="extension"]),
.plan.focus-structure .layer:not([data-layer="structure"]) { opacity: .3; }
.js .plan .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .plan .layer.is-drawn .draw { animation: draw .9s var(--ease) forwards; }
.js .plan .layer .fade { opacity: 0; }
.js .plan .layer.is-drawn .fade { animation: fadein .5s ease .45s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .js .plan .draw { stroke-dasharray: none; stroke-dashoffset: 0; }
  .js .plan .layer .fade { opacity: 1; }
  .js .plan .layer.is-drawn .draw, .js .plan .layer.is-drawn .fade { animation: none; }
}

/* ---------- services ---------- */
.svc-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 4px 20px; }
@media (min-width: 768px) { .svc-panel { padding: 8px 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; } }
.svc-item { padding: 22px 0; border-bottom: 1px dashed var(--line); display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px 14px; }
.svc-item:last-child { border-bottom: 0; }
@media (min-width: 768px) {
  .svc-item:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}
.svc-item svg { grid-row: span 2; color: var(--copper); margin-top: 3px; }
.svc-item h3 { margin: 0; font-family: var(--f-display); font-size: 1.12rem; font-weight: 700; line-height: 1.35; }
.svc-item p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.svc-note { margin: 20px 0 0; color: var(--muted); font-size: 0.93rem; }
.svc-note a { color: var(--copper-text); font-weight: 700; }

/* ---------- placeholders ---------- */
.media {
  position: relative; overflow: hidden;
  background-color: var(--subtle);
  background-image: repeating-linear-gradient(135deg, rgba(28, 29, 32, 0.05) 0 2px, transparent 2px 14px);
}
.media::after {
  content: attr(data-label);
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: max-content; max-width: 82%;
  padding: 8px 12px; border: 1.5px dashed var(--copper); border-radius: var(--r-sm);
  background: rgba(250, 248, 244, 0.92);
  font-family: var(--f-mono); font-size: 0.72rem; line-height: 1.45; font-weight: 600; text-align: center; color: var(--copper-text);
  white-space: pre-line;
}
.media.is-dark { background-color: #CFCBBF; }
.ba .media::after { left: 75%; max-width: 40%; }
.ba .ba-before::after { left: 25%; }
.media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

/* ---------- projects ---------- */
.jobs { display: grid; gap: 24px; }
@media (min-width: 768px) { .jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .jobs > .job:first-child { grid-column: 1 / -1; } }
@media (min-width: 1080px) { .jobs { grid-template-columns: repeat(3, minmax(0, 1fr)); } .jobs > .job:first-child { grid-column: auto; } }
.job { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; }
.job-tabs { display: flex; gap: 4px; padding: 10px 10px 0; }
.job-tab {
  min-height: 40px; padding: 0 14px; border: 1px solid transparent; border-bottom: 0;
  border-radius: var(--r-sm) var(--r-sm) 0 0; background: transparent;
  font-size: 0.82rem; font-weight: 700; color: var(--muted); cursor: pointer;
}
.job-tab[aria-selected="true"] { background: var(--subtle); color: var(--ink); border-color: var(--line); }
.job-panel { position: relative; aspect-ratio: 4 / 3; background: var(--subtle); border-top: 1px solid var(--line); }
@media (min-width: 768px) and (max-width: 1079px) { .jobs > .job:first-child .job-panel { aspect-ratio: 16 / 9; } }
.job-panel[hidden] { display: none; }
.job-panel > .media { position: absolute; inset: 0; }
.ba { position: absolute; inset: 0; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; --pos: 50%; }
.ba:focus-within { outline: 3px solid var(--copper); outline-offset: -3px; }
.ba .media { position: absolute; inset: 0; }
.ba .ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); z-index: 2; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; z-index: 3; pointer-events: none; box-shadow: 0 0 8px rgba(0, 0, 0, .35); }
.ba-knob { position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; border: 2px solid var(--copper); display: grid; place-items: center; color: var(--ink); }
.ba-badge { position: absolute; bottom: 10px; z-index: 4; padding: 3px 8px; border-radius: var(--r-sm); background: rgba(28, 29, 32, 0.78); color: #fff; font-size: 0.72rem; font-weight: 700; pointer-events: none; }
.ba-badge.l { left: 10px; } .ba-badge.r { right: 10px; }
.job-body { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.job-meta { margin: 0 0 6px; font-family: var(--f-mono); font-size: 0.72rem; font-weight: 600; color: var(--copper-text); }
:lang(zh) .job-meta { font-family: var(--f-body); font-size: 0.8rem; }
.job h3 { margin: 0 0 8px; font-family: var(--f-display); font-size: 1.18rem; line-height: 1.3; }
.job-body > p:not(.job-meta) { margin: 0 0 16px; color: var(--muted); font-size: 0.92rem; flex-grow: 1; }
.scope { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 0 0; border-top: 1px solid var(--line); list-style: none; margin: 0; }
.scope li { padding: 3px 10px; border-radius: var(--r-sm); background: var(--subtle); font-size: 0.75rem; font-weight: 600; color: var(--muted); }

/* ---------- process ---------- */
.process { display: grid; gap: 40px; }
@media (min-width: 1080px) { .process { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; } .process .section-head { position: sticky; top: 120px; align-self: start; } }
.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before { content: ''; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: var(--copper); opacity: .55; }
.step { position: relative; padding: 0 0 22px 56px; }
.step:last-child { padding-bottom: 0; }
.step-n {
  position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card); border: 2px solid var(--ink);
  font-family: var(--f-mono); font-size: 0.82rem; font-weight: 700;
}
.step-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 18px 20px; }
.step h3 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 700; }
.step p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ---------- testimonials ---------- */
.quotes { display: grid; gap: 20px; }
@media (min-width: 768px) { .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.quote { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px 24px 22px; display: flex; flex-direction: column; }
.quote::before { content: '“'; font-family: Georgia, serif; font-size: 3.2rem; line-height: .8; color: var(--copper); height: 28px; }
.quote blockquote { margin: 0 0 18px; font-size: 1.02rem; line-height: 1.7; flex-grow: 1; }
.quote figcaption { padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.86rem; color: var(--muted); }
.quote figcaption strong { display: block; color: var(--ink); }
.quote.is-placeholder { border: 1.5px dashed var(--copper); background: rgba(250, 248, 244, .7); }
.quote.is-placeholder blockquote, .quote.is-placeholder figcaption { color: var(--copper-text); }
.quotes-more { margin: 24px 0 0; }

/* ---------- faq ---------- */
.section-dark { background: var(--dark); color: #fff; }
.section-dark .eyebrow { color: var(--brass-on-dark); }
.section-dark .eyebrow::before { background: var(--brass-on-dark); }
.section-dark .section-head p { color: var(--dark-muted); }
.faq-layout { display: grid; gap: 40px; }
@media (min-width: 1080px) { .faq-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 72px; } .faq-aside { position: sticky; top: 120px; align-self: start; } }
.faq-help { margin-top: 28px; padding: 24px; border: 1px solid var(--dark-line); border-radius: var(--r-md); background: var(--dark-card); }
.faq-help h3 { margin: 0 0 6px; font-family: var(--f-display); font-size: 1.15rem; }
.faq-help p { margin: 0 0 18px; color: var(--dark-muted); font-size: .93rem; }
.btn-brass { background: var(--brass-on-dark); color: var(--dark); border-color: var(--brass-on-dark); }
.btn-brass:hover { background: #D8B97F; border-color: #D8B97F; }
.faq-group + .faq-group { margin-top: 40px; }
.faq-group-title { margin: 0 0 4px; padding-bottom: 12px; border-bottom: 1px solid var(--dark-line); font-family: var(--f-display); font-size: .95rem; font-weight: 600; color: var(--brass-on-dark); letter-spacing: .02em; }
.faq-item { border-bottom: 1px solid var(--dark-line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 64px; padding: 20px 0;
  font-family: var(--f-display); font-size: clamp(1.02rem, 1.4vw, 1.14rem); font-weight: 600; line-height: 1.45;
}
:lang(zh) .faq-item summary { font-family: var(--f-body); font-weight: 700; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brass-on-dark); }
.faq-icon { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--dark-line); display: grid; place-items: center; color: var(--brass-on-dark); transition: transform .3s var(--ease), background-color .2s, color .2s; }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--brass-on-dark); color: var(--dark); border-color: var(--brass-on-dark); }
.faq-item .faq-a { margin: 0; padding: 0 52px 24px 0; color: var(--dark-muted); font-size: .97rem; line-height: 1.8; max-width: 44em; }
:lang(zh) .faq-item .faq-a { line-height: 1.95; }

/* ---------- sketches ---------- */
.sketch-intro { margin: 48px 0 20px; max-width: 40em; color: var(--muted); }
.sketches { display: grid; gap: 20px; }
@media (min-width: 768px) { .sketches { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sketch-card { margin: 0; background: var(--paper-draw); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 14px 12px;
  background-image: linear-gradient(to right, rgba(74, 90, 82, 0.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(74, 90, 82, 0.05) 1px, transparent 1px); background-size: 16px 16px; }
.sketch { display: block; width: 100%; height: auto; }
.sketch .pen path, .sketch .pen circle, .sketch .pen rect { fill: none; stroke: #39433E; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.sketch .pen .thin { stroke-width: 1.3; }
.sketch .pen.echo path { stroke-width: 1; opacity: .35; }
.sketch .pen.brass path, .sketch .pen.brass circle { stroke: #9A7740; }
.sketch .pen .thick { stroke-width: 3.4; }
.sketch .note path { fill: none; stroke: #8A7550; stroke-width: 1; stroke-linecap: round; }
.sketch text { font-family: 'Caveat', 'Noto Sans SC', cursive; fill: #39433E; }
.sketch .sk-num { font-size: 17px; font-weight: 600; fill: #7E6236; }
.sketch .sk-lbl { font-size: 14px; font-weight: 600; }
:lang(zh) .sketch .sk-lbl { font-size: 11px; font-weight: 500; }
.sketch .sk-lbl.dim { fill: #7A847E; }
.sketch .sk-lbl.brass-t { fill: #7E6236; }
.sketch-card figcaption { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: .86rem; font-weight: 700; }
.sketch-card figcaption span { font-weight: 500; color: var(--muted); font-size: .78rem; }

/* drawing tab: example sketch until the real drawing photo exists */
.drawing { position: absolute; inset: 0; background: var(--paper-draw); background-image: linear-gradient(to right, rgba(74, 90, 82, 0.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(74, 90, 82, 0.05) 1px, transparent 1px); background-size: 16px 16px; }
.drawing-sketch { position: absolute; inset: 8% 6% 10%; display: flex; align-items: center; justify-content: center; }
.drawing-sketch .sketch { max-height: 100%; }
.drawing-badge { position: absolute; left: 10px; bottom: 10px; padding: 3px 8px; border-radius: var(--r-sm); background: var(--copper-soft); color: var(--copper-text); font-size: .72rem; font-weight: 700; }
.drawing > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--paper-draw); z-index: 2; }

/* sample testimonial badge */
.quote-badge { display: none; align-self: flex-start; margin-bottom: 10px; padding: 2px 8px; border-radius: var(--r-sm); background: var(--copper-soft); color: var(--copper-text); font-size: .72rem; font-weight: 700; }
.quote.is-placeholder .quote-badge { display: inline-block; }

/* ---------- contact ---------- */
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 28px 20px; display: grid; gap: 36px; }
@media (min-width: 768px) { .contact-card { padding: 40px; } }
@media (min-width: 1080px) { .contact-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; padding: 48px; } }
.contact-info { display: flex; flex-direction: column; }
.contact-info .section-head { margin-bottom: 24px; }
.direct { margin-top: auto; background: var(--subtle); border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px 20px; }
.direct-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.direct-row:last-child { border-bottom: 0; }
.direct-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--copper); }
.direct-k { font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.direct-v { font-weight: 700; font-size: 1rem; }
a.direct-row:hover .direct-v { color: var(--copper-text); }

.form { display: grid; gap: 16px; align-content: start; }
.form[hidden] { display: none; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 600px) { .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field label { display: block; margin-bottom: 6px; font-size: 0.82rem; font-weight: 700; color: var(--ink); }
.field label .opt { font-weight: 500; color: var(--muted); }
.input {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--paper); border: 1px solid #C9C3B5; border-radius: var(--r-sm);
  font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.input:focus { background: #fff; border-color: var(--copper); box-shadow: 0 0 0 3px var(--copper-soft); }
textarea.input { min-height: 120px; resize: vertical; }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 1.75L6 6.25L10.5 1.75' stroke='%2355605A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; }
.form-note { margin: 0; font-size: 0.82rem; color: var(--muted); }
.form-note a { color: var(--copper-text); }
.form-error { display: none; margin: 0; padding: 12px 14px; border-radius: var(--r-sm); background: #FDECEC; border: 1px solid #E8A3A3; color: #9B1C1C; font-size: 0.88rem; font-weight: 600; }
.form-error.is-shown { display: block; }
.form-done { display: grid; gap: 10px; align-content: start; padding: 28px; border-radius: var(--r-md); background: var(--copper-soft); border: 1px solid rgba(176, 141, 87, .35); }
.form-done[hidden] { display: none; }
.form-done h3 { margin: 0; font-family: var(--f-display); font-size: 1.35rem; }
.form-done p { margin: 0; color: var(--muted); }
.form-done .btn { justify-self: start; }

/* contact extras */
.contact-wa { width: 100%; margin-bottom: 16px; min-height: 54px; font-size: 1rem; }
.direct { margin-top: 0; }
@media (min-width: 1080px) { .contact-info .direct { margin-top: 0; } }
fieldset.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field legend, .field-label { display: block; margin-bottom: 8px; padding: 0; font-size: 0.82rem; font-weight: 700; color: var(--ink); }
.field-label .opt { font-weight: 500; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border: 1px solid #C9C4B6; border-radius: 22px; background: var(--paper); font-size: .88rem; font-weight: 600; color: var(--muted); transition: background-color .15s, border-color .15s, color .15s; }
.chip:hover span { border-color: var(--ink); color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--copper); outline-offset: 2px; }
.upload { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.field .upload-btn { display: inline-flex; margin: 0; align-items: center; gap: 8px; min-height: 64px; padding: 0 18px; border: 1.5px dashed #B9B3A3; border-radius: var(--r-sm); background: var(--paper); font-size: .88rem; font-weight: 700; color: var(--ink); cursor: pointer; }
.upload-btn:hover { border-color: var(--copper); }
.upload-btn svg { color: var(--copper); }
#f-photos:focus-visible + .thumbs, .upload:focus-within .upload-btn { outline: 3px solid var(--copper); outline-offset: 2px; }
.thumbs { display: contents; list-style: none; margin: 0; padding: 0; }
.thumbs li { position: relative; width: 64px; height: 64px; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button { position: absolute; top: 2px; right: 2px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(31, 45, 39, .85); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.next-steps { list-style: none; margin: 6px 0 8px; padding: 0; display: grid; gap: 10px; }
.next-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; color: var(--ink); }
.next-steps li span { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--f-mono); font-size: .75rem; font-weight: 700; }

/* ---------- footer ---------- */
.site-footer { padding: 32px 0; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a { text-decoration: none; padding: 6px 0; }
.footer-links a:hover { color: var(--copper-text); }

/* ---------- simple pages (privacy / 404) ---------- */
.page { padding-top: calc(var(--header-h) + 48px); }
.prose { max-width: 720px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px 22px; }
@media (min-width: 768px) { .prose { padding: 48px; } }
.prose h1 { margin: 0 0 8px; font-family: var(--f-display); font-size: clamp(1.8rem, 3.4vw, 2.4rem); line-height: 1.2; }
.prose h2 { margin: 32px 0 8px; font-family: var(--f-display); font-size: 1.2rem; }
.prose p, .prose li { color: var(--muted); }
.prose .updated { font-family: var(--f-mono); font-size: .78rem; color: var(--copper-text); margin: 0 0 24px; }

/* utilities (kept out of inline styles so the security policy can block inline CSS) */
.bg-subtle { background: var(--subtle); }
.mb-0 { margin-bottom: 0; }
.mt-32 { margin-top: 32px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }