/* =========================================================
   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 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left)); }
@media (min-width: 768px) { .container { padding: 0 max(32px, env(safe-area-inset-right)) 0 max(32px, env(safe-area-inset-left)); } }

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: calc(12px + env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left)); }
@media (min-width: 768px) { .site-header { padding: calc(14px + env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left)); } }
.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; min-height: 44px; text-decoration: none; min-width: 0; }
.logo-mark { width: 38px; height: 38px; flex-shrink: 0; color: var(--ink); }
.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 { min-width: min-content; }
  .logo-text small { white-space: normal; overflow: visible; font-size: .64rem; line-height: 1.2; }
}
/* very narrow phones (320px): smaller mark so "Construction" fits */
@media (max-width: 359px) {
  .logo { gap: 7px; }
  .logo-mark { width: 32px; height: 32px; }
  .logo-text { font-size: .92rem; }
  .logo-text small { font-size: .6rem; }
  .nav-actions { gap: 4px; }
  .lang-switch { padding: 0 8px; }
}
@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: 12px; }
.nav-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 8px; text-decoration: none; font-weight: 600; font-size: 0.92rem; color: var(--muted); border-radius: var(--r-sm); }
.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: 44px; 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: 44px; }
.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: safe center; padding: calc(96px + env(safe-area-inset-top)) max(28px, env(safe-area-inset-right)) calc(40px + env(safe-area-inset-bottom)) max(28px, env(safe-area-inset-left));
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  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; min-height: 44px; padding: 14px 0; font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--line); }
@media (max-height: 520px) { .drawer { padding-top: calc(80px + env(safe-area-inset-top)); } .drawer a { padding: 9px 0; font-size: 1.25rem; } .drawer .btn { margin-top: 16px; } }
.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 { display: flex; flex-wrap: wrap; gap: 10px 24px; } .hero-facts li { white-space: nowrap; } }
.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: 44px; 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: #646B73; }
/* 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)); } }
@media (min-width: 1080px) { .jobs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.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: 44px; min-width: 44px; 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 / 5; background: var(--subtle); border-top: 1px solid var(--line); }
.job-panel[hidden] { display: none; }
.job-panel > .media { position: absolute; inset: 0; }
.ba img { pointer-events: none; -webkit-user-drag: none; user-select: none; }
.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: 0; width: 100%; z-index: 3; pointer-events: none; transform: translateX(calc(var(--pos) - 50%)); will-change: transform; }
.ba-handle::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 8px rgba(0, 0, 0, .35); }
.ba-knob { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; 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 ----------
   phone / tablet: swipe row with dots; desktop: three columns */
.quotes {
  display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 14px;
  margin: 0 -20px; padding: 4px 20px 8px; scroll-padding-inline: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.quotes::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .quotes { grid-auto-columns: calc(50% - 7px); margin: 0 -32px; padding-inline: 32px; scroll-padding-inline: 32px; gap: 20px; } }
@media (min-width: 1080px) { .quotes { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-columns: auto; margin: 0; padding: 0; overflow: visible; } }
.quote { margin: 0; scroll-snap-align: start; 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: 'Space Grotesk', Georgia, 'Times New Roman', serif; align-self: flex-start; 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.75; flex-grow: 1; }
:lang(zh) .quote blockquote { line-height: 1.9; }
.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); }
.quotes-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; }
@media (min-width: 1080px) { .quotes-nav { display: none; } }
.quotes-arrow { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; padding: 0; }
.quotes-arrow:hover { border-color: var(--ink); }
.quotes-arrow[disabled] { opacity: .35; cursor: default; }
.quotes-dots { display: flex; gap: 2px; }
.quotes-dot { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 0; display: grid; place-items: center; }
.quotes-dot::before { content: ''; width: 8px; height: 8px; border-radius: 4px; background: #7F796C; transition: transform .25s var(--ease), background-color .25s; }
.quotes-dot[aria-current="true"]::before { transform: scaleX(2.6); background: var(--ink); }

/* ---------- 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: #5C655F; }
.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; }


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 calc(32px + env(safe-area-inset-bottom)); 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; }
.footer-links { gap: 0 12px; }
.footer-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; text-decoration: none; }
.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; }

/* phones: body copy never below 16px */
@media (max-width: 767px) {
  .section-head p, .svc-item p, .svc-note, .job-body > p:not(.job-meta), .step p, .faq-help p, .faq-item .faq-a,
  .cad-caption, .sketch-intro, .form-done p, .next-steps li, .prose p { font-size: 1rem; }
}

/* buttons: pressed state (all devices) and long labels may wrap on small phones */
.btn:active, .cad-btn:active, .job-tab:active, .quotes-arrow:active, .quotes-dot:active, .menu-btn:active, .lang-switch:active, .nav-wa-icon:active { transform: translateY(1px); }
@media (max-width: 479px) { .btn { white-space: normal; text-align: center; } }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--copper-text); }

/* 320px phones: keep the English headline to four lines */
@media (max-width: 359px) { .hero h1 { font-size: 1.8rem; } }


/* =========================================================
   MIEW — motion
   One language: lines get drawn, content settles up 12px.
   Hidden states only apply under html.motion, which motion-early.js
   sets when reduced motion is off, and removes again if motion.js
   never starts. So without JS, or with reduced motion, all content
   is simply visible.
   ========================================================= */
:root {
  --m-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --m-fast: 200ms;
  --m-mid: 520ms;
  --m-slow: 900ms;
  --m-rise: 12px;
}
@media (max-width: 767px) { :root { --m-rise: 8px; } }

/* ---------- entrance: fade + rise ---------- */
.motion .rv {
  opacity: 0;
  transform: translate3d(0, var(--m-rise), 0);
}
.motion .rv.is-in {
  opacity: 1;
  transform: none;
  transition: opacity var(--m-mid) var(--m-ease), transform var(--m-mid) var(--m-ease);
  transition-delay: var(--d, 0ms);
}
/* hero items are hidden from the first paint, before motion.js tags them */
/* the hero paragraph is not animated: it is the page's largest text and must paint immediately (LCP) */
.motion .hero-pill, .motion .hero h1, .motion .hero-actions,
.motion .hero-facts li, .motion .cad-card { opacity: 0; }

/* ---------- hero headline: word / phrase mask ---------- */
.motion .hero h1.is-split { opacity: 1; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero h1 .wi { display: inline-block; }
.motion .hero h1.is-split .wi { transform: translate3d(0, 108%, 0); }
.motion .hero h1.is-split.is-in .wi {
  transform: none;
  transition: transform var(--m-slow) var(--m-ease);
  transition-delay: var(--d, 0ms);
}

/* ---------- project photos: wipe in like a sheet unrolling ---------- */
.motion .job .job-panel.rv { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); }
.motion .job .job-panel.rv.is-in { clip-path: inset(0 0 0 0); transition: clip-path var(--m-slow) var(--m-ease); transition-delay: var(--d, 0ms); }

/* ---------- process line draws downward (across on desktop) ---------- */
.motion .steps::before { transform: scaleY(0); transform-origin: top; }
.motion .steps.is-in::before { transform: none; transition: transform 1.2s var(--m-ease); }
@media (min-width: 960px) {
  .motion .step::before { transform: scaleX(0); transform-origin: left; }
  .motion .step.is-in::before { transform: none; transition: transform var(--m-slow) var(--m-ease); transition-delay: calc(var(--d, 0ms) + 200ms); }
}

/* ---------- line icons and sketches: drawn with a pencil ---------- */
/* motion.js measures each line and sets --len on it */
.motion .draw-me .dl { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.motion .draw-me.is-drawn .dl {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset var(--draw-t, 900ms) var(--m-ease);
  transition-delay: var(--d, 0ms);
}
.motion .sketch.draw-me text, .motion .sketch.draw-me rect[fill^="url"] { opacity: 0; }
.motion .sketch.draw-me.is-drawn text, .motion .sketch.draw-me.is-drawn rect[fill^="url"] {
  opacity: 1; transition: opacity 400ms ease; transition-delay: 1100ms;
}

/* ---------- tabs: cross-fade the newly shown panel ---------- */
.motion .job-panel.tab-in { animation: m-fade 320ms var(--m-ease); }
@keyframes m-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- real photos: soft arrival ---------- */
.motion .media > img, .motion .drawing > img { opacity: 0; transition: opacity 420ms ease, filter 520ms ease; }
.motion .media > img.is-loaded, .motion .drawing > img.is-loaded { opacity: 1; }
@media (min-width: 768px) {
  .motion .media > img:not(.is-loaded) { filter: blur(10px); }
}

/* ---------- FAQ: the answer fades and settles in when opened (opacity + transform only) ---------- */
.motion .faq-item[open] .faq-a { animation: m-answer 360ms var(--m-ease); }
@keyframes m-answer { from { opacity: 0; transform: translate3d(0, -6px, 0); } to { opacity: 1; transform: none; } }

/* ---------- mobile menu: items slide in ---------- */
.motion .drawer li, .motion .drawer .btn { opacity: 0; transform: translate3d(0, 10px, 0); }
.motion .drawer.is-open li, .motion .drawer.is-open .btn {
  opacity: 1; transform: none;
  transition: opacity 360ms var(--m-ease), transform 360ms var(--m-ease);
}
.motion .drawer.is-open li:nth-child(2) { transition-delay: 40ms; }
.motion .drawer.is-open li:nth-child(3) { transition-delay: 80ms; }
.motion .drawer.is-open li:nth-child(4) { transition-delay: 120ms; }
.motion .drawer.is-open li:nth-child(5) { transition-delay: 160ms; }
.motion .drawer.is-open li:nth-child(6) { transition-delay: 200ms; }
.motion .drawer.is-open .btn { transition-delay: 240ms; }

/* ---------- hover: only on devices with a real pointer ---------- */
@media (hover: hover) and (pointer: fine) {
  .btn svg { transition: transform var(--m-fast) var(--m-ease); }
  .btn:hover svg { transform: translateX(2px); }
  .svc-note a, .form-note a, .faq-more a, .footer-links a, .form-done a {
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
    transition: background-size 260ms var(--m-ease), color var(--m-fast);
  }
  .svc-note a:hover, .form-note a:hover, .faq-more a:hover, .footer-links a:hover, .form-done a:hover { background-size: 100% 1px; }
}

/* ---------- success tick ---------- */
.done-tick { width: 44px; height: 44px; }

/* ---------- page transitions (Chrome, Edge, Safari 18.2+; others just navigate) ---------- */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 260ms; }

/* ---------- reduced motion: no movement anywhere ---------- */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .btn svg { transition: none; }
}

/* project photos: retouched real photos, labelled as illustrative */
.photo-note { position: absolute; top: 10px; left: 10px; z-index: 4; padding: 3px 8px; border-radius: var(--r-sm); background: rgba(250, 248, 243, 0.92); color: var(--copper-text); font-size: 0.72rem; font-weight: 700; pointer-events: none; }
/* a project without photos: the drawing sits where the tabs would be */
.job-tab-static { display: inline-flex; align-items: center; background: var(--subtle); color: var(--ink); border-color: var(--line); cursor: default; }

/* no single character left alone on the last line of a paragraph */
.section-head p, .hero-lead, .svc-item p, .job-body > p, .step p, .faq-a, .quote blockquote { text-wrap: pretty; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 80px; } }
.contact-info .section-head { margin-bottom: 28px; }
.contact-actions { display: grid; gap: 12px; }
@media (min-width: 600px) { .contact-actions { grid-template-columns: repeat(2, max-content); } }
.contact-cardlink { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 14px; font-weight: 600; color: var(--copper-text); text-decoration: none; }
.contact-cardlink:hover span { text-decoration: underline; }

/* ---------- business card: front + back (contact section and /card/) ---------- */
.bc-set { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.bc { position: relative; aspect-ratio: 5 / 3; background: #fff; color: var(--ink); border-radius: 10px; box-shadow: 0 1px 2px rgba(31, 45, 39, 0.06), 0 18px 40px rgba(31, 45, 39, 0.12); }
.bc-front { display: grid; place-items: center; padding: 24px; }
.bc-lockup { display: flex; flex-direction: column; align-items: center; text-align: center; }
.bc-lockup .mark { width: 72px; height: 72px; color: var(--ink); }
.bc-word { margin-top: 12px; padding-left: 0.16em; font-family: var(--f-display); font-weight: 700; font-size: 2rem; line-height: 1; letter-spacing: 0.16em; }
.bc-sub { margin-top: 10px; color: var(--muted); font-size: 1rem; line-height: 1.3; }
.bc-back { display: flex; flex-direction: column; }
.bc-main { flex: 1; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 24px; padding: 22px 26px; }
.bc-side { align-self: stretch; display: flex; align-items: center; justify-content: center; padding-right: 24px; border-right: 1px solid var(--line); }
.bc-side-logo { display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 700; font-size: 1rem; line-height: 1; letter-spacing: 0.14em; padding-left: 0.14em; }
.bc-side-logo .mark { width: 56px; height: 56px; color: var(--ink); }
.bc-qr { display: none; }
.bc-qr-box { width: 104px; height: 104px; color: var(--ink); }
.bc-qr-box .qr { display: block; width: 100%; height: 100%; }
@media (min-width: 1024px) and (hover: hover) {
  .bc-side-logo { display: none; }
  .bc-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); font-size: 0.8rem; font-weight: 600; }
}
.bc-name { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; line-height: 1.15; }
.bc-name span { font-family: var(--f-body); font-weight: 600; font-size: 1rem; color: var(--copper-text); }
.bc-rows { list-style: none; margin: 12px 0 0; padding: 6px 0 0; border-top: 2px solid var(--copper); }
.bc-row { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 1rem; font-weight: 600; color: var(--ink); text-decoration: none; }
a.bc-row { min-height: 44px; }
a.bc-row:hover span { text-decoration: underline; }
.bc-row svg { flex-shrink: 0; color: var(--copper); }
.bc-row span { min-width: 0; overflow-wrap: anywhere; }
.bc-row.num span { font-family: var(--f-mono); letter-spacing: 0.02em; }
.bc-band { height: 28px; border-radius: 0 0 10px 10px; background: var(--ink); }
@media (max-width: 479px) {
  .bc-main { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .bc-side { display: none; }
  .bc-band { height: 22px; }
  .bc-front { aspect-ratio: 16 / 9; }
}

/* ---------- digital card page (/card/) ---------- */
.card-wrap { max-width: 520px; }
.card-actions { display: grid; gap: 10px; margin-top: 28px; }
@media (min-width: 480px) { .card-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } .card-actions .btn-primary { grid-column: 1 / -1; } }
.card-actions .btn { width: 100%; }
.card-site { display: flex; justify-content: center; margin-top: 4px; }
.card-site a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; font-weight: 600; color: var(--copper-text); text-decoration: none; }
.card-site a:hover { text-decoration: underline; }
.card-status { min-height: 1.6em; margin: 10px 0 0; text-align: center; font-size: 0.9rem; font-weight: 600; color: var(--copper-text); }
