/* ==========================================================================
   Bouthouse Design Group — stylesheet
   12-column asymmetric grid · Inter Tight / IBM Plex Mono / Noto Sans SC
   ========================================================================== */
:root {
  /* brand — sampled from the Bouthouse logo files */
  --brand-black: #0A0404;   /* BH mark: B */
  --brand-red: #922A2B;     /* BH mark: H — primary accent */
  --brand-green: #003300;   /* wordmark "House" — secondary accent, use sparingly */

  --bg: #f4f1ec;            /* warm off-white */
  --ink: #16100f;           /* warm near-black */
  --ink-2: #4b4442;
  --muted: #6e6762;         /* 4.9:1 on --bg (WCAG AA) */
  --line: rgba(22, 16, 15, .16);
  --accent: var(--brand-red);
  --accent-2: var(--brand-green);
  --ph: #d9d5cf;
  --ph-dark: #9c9690;
  --white: #fff;
  --hero-ph: #a29f97;
  --ph-line: rgba(22, 16, 15, .09);
  --ph-note: rgba(22, 16, 15, .55);
  --ph-note-dark: rgba(255, 255, 255, .72);
  --bar-line: rgba(22, 16, 15, .08);
  --bar-over: rgba(244, 241, 236, .68);
  --bar-over-strong: rgba(244, 241, 236, .9);
  --bar-solid: rgba(244, 241, 236, .9);
  --bar-solid-strong: rgba(244, 241, 236, .97);
  --veil-1: rgba(0, 0, 0, .42);
  --veil-2: rgba(0, 0, 0, .26);
  --veil-3: rgba(0, 0, 0, .10);
  --hero-shadow: rgba(0, 0, 0, .25);
  --chip-glass: rgba(244, 241, 236, .82);
  --lb-bg: var(--brand-black);
  --lb-ink: #f4f1ec;
  --lb-ink-2: rgba(244, 241, 236, .6);
  --accent-wash: rgba(146, 42, 43, .06);
  --accent-wash-2: rgba(146, 42, 43, .05);

  --m: clamp(16px, 2.2vw, 36px);          /* page margin */
  --g: clamp(12px, 1.6vw, 28px);          /* column gutter */
  --header: 64px;

  --sans: "Inter Tight", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --lang-face: "BH Lang", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, "Noto Sans SC", monospace;

  /* modular scale (≈1.333 at desktop) */
  --t-meta: 11px;
  --t-small: 13px;
  --t-body: clamp(15px, 1.05vw, 16.5px);
  --t-lead: clamp(19px, 1.6vw, 24px);
  --t-h3: clamp(24px, 2.4vw, 38px);
  --t-statement: clamp(30px, 4.1vw, 68px);
  --t-display: clamp(52px, 8.6vw, 140px);

  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: var(--t-body); font-weight: 400; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}
html[data-lang="zh"] body { line-height: 1.85; letter-spacing: .01em; }
html[data-lang="zh"] [data-l="en"], html[data-lang="en"] [data-l="zh"] { display: none !important; }
/* 繁 (Traditional): same layout as 简, Traditional typeface; text is converted by site.js — hide until done (max ~1.5s) */
html[lang="zh-Hant"] {
  --sans: "Inter Tight", "Noto Sans TC", "PingFang TC", "Hiragino Sans CNS", "Microsoft JhengHei", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, "Noto Sans TC", monospace;
}
html.js[data-script="hant"]:not(.hant-ready) main, html.js[data-script="hant"]:not(.hant-ready) #site-header, html.js[data-script="hant"]:not(.hant-ready) #site-footer { visibility: hidden; }
html:not([data-lang]) [data-l="en"] { display: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p, dl, dd, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 400; }
::selection { background: var(--accent); color: var(--white); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

/* ---------- type ---------- */
.meta, .label, .num {
  font-family: var(--mono); font-size: var(--t-meta); font-weight: 400;
  letter-spacing: .06em; text-transform: uppercase; line-height: 1.5;
}
/* 中文标签：不加字距（大写对中文无效） */
html[data-lang="zh"] .meta, html[data-lang="zh"] .label, html[data-lang="zh"] .num,
html[data-lang="zh"] .tag, html[data-lang="zh"] .ph-note, html[data-lang="zh"] .zoom-hint, html[data-lang="zh"] .ix-sample,
html[data-lang="zh"] .menu-btn, html[data-lang="zh"] .bu-draft, html[data-lang="zh"] .d-facts dt, html[data-lang="zh"] .cv-tbl th,
html[data-lang="zh"] .index-row .ix-no, html[data-lang="zh"] .index-row .ix-city, html[data-lang="zh"] .index-row .ix-type { letter-spacing: 0; }
.muted { color: var(--muted); }
.display {
  font-size: var(--t-display); line-height: .94; letter-spacing: -.045em; font-weight: 400;
}
.statement {
  font-size: var(--t-statement); line-height: 1.06; letter-spacing: -.03em; font-weight: 400;
}
.h3 { font-size: var(--t-h3); line-height: 1.1; letter-spacing: -.02em; }
.lead { font-size: var(--t-lead); line-height: 1.42; letter-spacing: -.01em; color: var(--ink-2); }
/* CJK: never track tightly, open the leading */
html[data-lang="zh"] .display { line-height: 1.16; letter-spacing: -.02em; font-weight: 300; font-size: calc(var(--t-display) * .78); }
/* keep a Chinese phrase together; lines break only between phrases (no orphan 主， / 筑。) */
.nw { white-space: nowrap; }
html[data-lang="zh"] .statement { line-height: 1.38; letter-spacing: -.005em; font-weight: 300; font-size: calc(var(--t-statement) * .86); }
html[data-lang="zh"] .h3 { line-height: 1.3; letter-spacing: 0; }
html[data-lang="zh"] .lead { line-height: 1.8; letter-spacing: .01em; }
.lead > p + p { margin-top: 1em; }   /* multi-paragraph intro (home, About) */
.inline-label { color: var(--muted); }

/* ---------- layout ---------- */
.frame { padding-left: var(--m); padding-right: var(--m); max-width: 2000px; margin: 0 auto; }
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); }
.sec { padding-top: clamp(80px, 11vw, 200px); }
.sec-tight { padding-top: clamp(48px, 6vw, 96px); }
.rule-top { border-top: 1px solid var(--line); }
.c-label { grid-column: 1 / 4; }
.c-main { grid-column: 4 / 13; }
.c-wide { grid-column: 4 / 12; }
.c-text { grid-column: 7 / 12; }
.sticky { position: sticky; top: calc(var(--header) + 16px); align-self: start; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 14px; border-top: 1px solid var(--line); margin-bottom: clamp(36px, 5vw, 80px); }

/* ---------- header ---------- */
#site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header);
  color: var(--ink); background: transparent;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
/* over the hero: a slim frosted light bar, so the mark keeps its own colours and text stays dark */
#site-header.over, #site-header.solid { border-color: var(--bar-line); }
#site-header.over { background: var(--bar-over); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2); }
#site-header.solid { background: var(--bar-solid); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2); border-color: var(--line); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #site-header.over { background: var(--bar-over-strong); }
  #site-header.solid { background: var(--bar-solid-strong); }
}
.header-inner { height: 100%; align-items: center; }
.brand { grid-column: 1 / 5; display: flex; gap: 12px; align-items: center; white-space: nowrap; }
.brand-t { font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: -.01em; color: var(--ink); }
.bh-mark { display: block; flex: none; width: auto; }
.bh-mark .b { fill: var(--brand-black); } .bh-mark .h { fill: var(--brand-red); }
.brand .bh-mark { height: 24px; }
.nav { grid-column: 5 / 11; display: flex; justify-content: flex-end; gap: clamp(16px, 2vw, 32px); font-size: 14px; font-weight: 500; white-space: nowrap; }
.nav a { position: relative; padding: 4px 0; opacity: .78; transition: opacity .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.tools { grid-column: 11 / 13; display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
.lang-toggle { display: inline-flex; gap: 4px; align-items: center; }
.lang-toggle button { background: none; border: 0; padding: 4px 2px; cursor: pointer; color: inherit; opacity: .45; font: inherit; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; transition: opacity .2s; }
.lang-toggle button[aria-pressed="true"], .lang-toggle button:hover { opacity: 1; }
.lang-toggle .sep { opacity: .35; font-family: var(--mono); font-size: var(--t-meta); }
.lang-toggle button[lang^="zh"] { font-family: var(--lang-face); letter-spacing: 0; }
.menu-btn { display: none; background: none; border: 0; color: inherit; cursor: pointer; padding: 6px 0; }

/* mobile overlay menu */
.menu-panel { display: none; }

/* ---------- placeholders ---------- */
.ph {
  position: relative; width: 100%; height: 100%; background-color: var(--ph);
  background-image:
    linear-gradient(to top right, transparent calc(50% - .5px), var(--ph-line) 50%, transparent calc(50% + .5px)),
    linear-gradient(to bottom right, transparent calc(50% - .5px), var(--ph-line) 50%, transparent calc(50% + .5px));
}
.ph.dark { background-color: var(--ph-dark); }
.ph-note { position: absolute; right: 12px; bottom: 10px; font-family: var(--mono); font-size: var(--t-meta); letter-spacing: .08em; text-transform: uppercase; color: var(--ph-note); }
.ph.dark .ph-note { color: var(--ph-note-dark); }
.tag { position: absolute; top: 12px; left: 12px; z-index: 2; font-family: var(--mono); font-size: var(--t-meta); letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; background: var(--bg); color: var(--ink-2); }
.media { position: relative; overflow: hidden; background: var(--ph); }
.media > img, .media > .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.r-land { aspect-ratio: 3 / 2; } .r-wide { aspect-ratio: 16 / 9; } .r-port { aspect-ratio: 4 / 5; }
.r-tall { aspect-ratio: 3 / 4; } .r-sq { aspect-ratio: 1 / 1; } .r-pan { aspect-ratio: 21 / 9; }

/* ---------- hero (home) ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; color: var(--white); }
.hero .media { position: absolute; inset: 0; }
.hero .ph { background-color: var(--hero-ph); }
/* soft bottom scrim for the caption (eased stops, no visible band); the header has its own frosted bar */
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, var(--veil-1) 0%, var(--veil-2) 12%, var(--veil-3) 24%, transparent 36%); }
.hero-cap { text-shadow: 0 1px 12px var(--hero-shadow); }
.hero-cap { position: absolute; left: 0; right: 0; bottom: clamp(20px, 3vw, 40px); z-index: 2; align-items: end; }
.hero-cap .t { grid-column: 1 / 7; }
.hero-cap .t .h3 { margin-top: 6px; }
.hero-cap .scroll { grid-column: 11 / 13; text-align: right; }
.hero .tag { top: calc(var(--header) + 12px); left: var(--m); }

/* ---------- intro ---------- */
.intro .statement { grid-column: 4 / 13; }
.intro .sub { grid-column: 7 / 12; margin-top: clamp(40px, 5vw, 80px); }
.intro .facts-row { grid-column: 4 / 13; margin-top: clamp(48px, 6vw, 96px); display: grid; grid-template-columns: repeat(3, 1fr); column-gap: var(--g); }
.facts-row div { border-top: 1px solid var(--line); padding-top: 12px; }
.facts-row .v { font-size: var(--t-lead); letter-spacing: -.01em; margin-top: 6px; }

/* ---------- selected works (staggered) ---------- */
.works { row-gap: clamp(56px, 8vw, 140px); align-items: start; }
.work { display: block; }
.work .cap { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; margin-top: 12px; }
.work .cap .num { color: var(--muted); padding-top: 3px; transition: color .25s; }
.work:hover .cap .num { color: var(--accent); }
.work .cap h3 { font-size: clamp(16px, 1.25vw, 19px); letter-spacing: -.01em; line-height: 1.3; }
.work .cap .meta { grid-column: 2; color: var(--muted); margin-top: 2px; }
.work .cap .status { margin-top: 1px; display: flex; align-items: center; gap: 6px; }
.work .cap .status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; border: 1px solid currentColor; flex: none; }
.work:hover .media > .ph, .work:hover .media > img { transform: scale(1.025); }
.w1 { grid-column: 1 / 8; }
.w2 { grid-column: 9 / 13; margin-top: 22vw; }
.w3 { grid-column: 3 / 7; }
.w4 { grid-column: 8 / 13; margin-top: 10vw; }
.w5 { grid-column: 1 / 6; margin-top: 4vw; }
.w6 { grid-column: 7 / 11; margin-top: 16vw; }

/* ---------- big list rows (services etc.) ---------- */
.rows { border-bottom: 1px solid var(--line); }
.row { display: grid; grid-template-columns: repeat(9, minmax(0,1fr)); column-gap: var(--g); padding: clamp(18px, 2vw, 28px) 0; border-top: 1px solid var(--line); align-items: baseline; }
.row .num { grid-column: 1 / 2; color: var(--accent); }
.row .h3 { grid-column: 2 / 6; }
.row p { grid-column: 6 / 10; color: var(--ink-2); }
.row .subs { grid-column: 2 / 6; grid-row: 2; list-style: none; margin: 10px 0 0; padding: 0; display: flex; gap: 18px; font-size: var(--t-small); color: var(--muted); }
.row .subs li::before { content: "— "; color: var(--accent); }
a.row > * { transition: transform .45s var(--ease); }
a.row:hover > * { transform: translateX(10px); }

/* ---------- page heads ---------- */
.page-head { padding-top: calc(var(--header) + clamp(56px, 9vw, 160px)); }
.page-head .label { grid-column: 1 / 4; padding-top: .9em; }
.page-head h1 { grid-column: 4 / 13; }
.page-head .lead { grid-column: 7 / 12; margin-top: clamp(28px, 3vw, 48px); }

/* ---------- projects controls ---------- */
.controls { margin-top: clamp(48px, 6vw, 96px); padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); align-items: baseline; position: sticky; top: var(--header); z-index: 10; background: var(--bg); }
.filter { grid-column: 1 / 10; display: flex; flex-wrap: wrap; gap: 6px clamp(16px, 2.2vw, 36px); }
.views { grid-column: 10 / 13; display: flex; justify-content: flex-end; gap: 18px; }
.btn-text { background: none; border: 0; padding: 4px 0; cursor: pointer; font: inherit; color: var(--muted); transition: color .2s; }
.btn-text sup { font-family: var(--mono); font-size: var(--t-meta); margin-left: 3px; vertical-align: top; position: relative; top: -.1em; }
.btn-text:hover { color: var(--ink); }
.btn-text[aria-pressed="true"] { color: var(--accent); }
.btn-text[aria-pressed="true"] sup { color: var(--accent); }
.filter .btn-text { font-size: clamp(15px, 1.3vw, 19px); letter-spacing: -.01em; }
.subfilter { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px clamp(14px, 1.6vw, 24px); margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.subfilter[hidden] { display: none; }
.subfilter .btn-text { font-size: var(--t-small); }
.views .btn-text { font-family: var(--mono); font-size: var(--t-meta); letter-spacing: .06em; text-transform: uppercase; }

/* grid view */
.pgrid { margin-top: clamp(40px, 5vw, 72px); row-gap: clamp(48px, 6vw, 104px); align-items: start; }
.pgrid .work { grid-column: span 4; }
.pgrid .work:nth-child(3n+2) { margin-top: 6vw; }
.pgrid .work[hidden], .index-row[hidden] { display: none; }

/* index view */
.pindex { margin-top: clamp(24px, 3vw, 48px); }
.index-head, .index-row { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--g); align-items: baseline; }
.index-head { padding: 10px 0; color: var(--muted); }
.index-row { padding: clamp(14px, 1.6vw, 22px) 0; border-top: 1px solid var(--line); transition: color .25s; }
.index-row > * { transition: transform .45s var(--ease); }
.pindex .index-row:last-child { border-bottom: 1px solid var(--line); }
.ix-no { grid-column: 1 / 2; } .ix-name { grid-column: 2 / 8; } .ix-city { grid-column: 8 / 10; }
.ix-type { grid-column: 10 / 13; text-align: right; }
.index-row .ix-name { font-size: clamp(18px, 1.9vw, 30px); letter-spacing: -.02em; line-height: 1.2; }
.index-row .ix-no, .index-row .ix-city, .index-row .ix-type { font-family: var(--mono); font-size: var(--t-meta); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pindex:hover .index-row { color: var(--muted); }
.pindex .index-row:hover { color: var(--ink); }
.pindex .index-row:hover > * { transform: translateX(10px); }
.pindex .index-row:hover .ix-no { color: var(--accent); }
.ix-sample { font-family: var(--mono); font-size: var(--t-meta); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); opacity: .75; margin-left: 10px; vertical-align: middle; }
.preview { position: fixed; left: 0; top: 0; width: 22vw; max-width: 340px; aspect-ratio: 4 / 5; pointer-events: none; z-index: 40; opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.96); transition: opacity .25s, transform .25s; }
.preview.on { opacity: 1; }
.preview .ph, .preview img { width: 100%; height: 100%; object-fit: cover; }
[data-view="grid"] .pindex, [data-view="index"] .pgrid { display: none; }

/* ---------- project detail ---------- */
.d-hero { position: relative; height: 88vh; height: 88svh; min-height: 420px; }
.d-hero .media { position: absolute; inset: 0; }
/* plans / drawings: hero at the image's own ratio so the whole sheet (and its watermark) is never cropped */
.d-hero.fit { height: auto; min-height: 0; aspect-ratio: var(--ar, 2 / 1); }
.d-head { padding-top: clamp(40px, 5vw, 80px); align-items: start; }
.d-head .label { grid-column: 1 / 4; }
.d-head h1 { grid-column: 4 / 13; }
.d-body { margin-top: clamp(48px, 6vw, 104px); align-items: start; }
.d-facts { grid-column: 1 / 4; }
.d-facts div { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.d-facts div:last-child { border-bottom: 1px solid var(--line); }
.d-facts dt { font-family: var(--mono); font-size: var(--t-meta); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.d-facts dd { font-size: var(--t-small); }
.d-body .d-text { grid-column: 5 / 12; }
.d-body .lead { color: var(--ink); }
.d-credit { margin-top: 28px; max-width: 34em; font-size: var(--t-small); line-height: 1.7; color: var(--muted); }
.gallery { margin-top: clamp(80px, 10vw, 180px); row-gap: clamp(20px, 3vw, 48px); align-items: end; }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 10px; color: var(--muted); }
.ga1 { grid-column: 1 / 13; }
.ga2 { grid-column: 2 / 6; }
.ga3 { grid-column: 7 / 13; }
.ga4 { grid-column: 5 / 11; }
.ga5 { grid-column: 1 / 8; } .ga6 { grid-column: 9 / 13; }
.next { display: block; margin-top: clamp(96px, 12vw, 200px); padding-top: 14px; border-top: 1px solid var(--line); }
.next .display { margin-top: 18px; transition: letter-spacing .6s var(--ease); }
.next:hover .display { letter-spacing: -.03em; color: var(--accent); }
.next .display { transition: letter-spacing .6s var(--ease), color .4s; }

/* ---------- about / services ---------- */
.partners { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); column-gap: var(--g); row-gap: 56px; }
.partner .media { aspect-ratio: 4 / 5; }
.partner:nth-child(2) { margin-top: clamp(0px, 6vw, 96px); }
.partner .name { margin-top: 16px; font-size: clamp(17px, 1.3vw, 20px); letter-spacing: -.01em; }
.partner .role { color: var(--muted); margin-top: 2px; }
.partner .bio { margin-top: 18px; font-size: 14.5px; color: var(--ink-2); max-width: 46ch; }
html[data-lang="zh"] .partner .bio { max-width: 30em; }
.partner .name-en { margin-left: .4em; font-weight: 400; color: var(--muted); }
.partner .cred { color: var(--muted); margin-top: 2px; }
.partner .langs { margin-top: 14px; color: var(--muted); }
.prose p + p { margin-top: 1em; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); column-gap: var(--g); }
.step { border-top: 1px solid var(--ink); padding-top: 14px; }
.step .meta:first-child { color: var(--accent); }
.step .big { font-size: clamp(48px, 6vw, 104px); line-height: 1; letter-spacing: -.05em; font-weight: 300; margin: clamp(20px, 3vw, 48px) 0 clamp(16px, 2vw, 28px); }
.step h2, .step h3 { font-size: clamp(18px, 1.5vw, 22px); letter-spacing: -.01em; }
.step p { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); max-width: 32ch; }
html[data-lang="zh"] .step p { max-width: 18em; }
.cities { display: flex; flex-wrap: wrap; gap: 4px 0; }
.cities > span:not(:last-child)::after { content: "/"; color: var(--accent-2); opacity: .6; margin: 0 .55em; }

/* ---------- contact ---------- */
.big-mail { font-size: clamp(28px, 5.4vw, 92px); letter-spacing: -.04em; line-height: 1.05; word-break: break-word; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.big-mail:hover { background-size: 100% 1px; color: var(--accent); }
.big-mail { transition: background-size .6s var(--ease), color .3s; }
.dl-rows .row { grid-template-columns: repeat(9, minmax(0,1fr)); }
.dl-rows .row .label { grid-column: 1 / 3; color: var(--muted); }
.dl-rows .row .v { grid-column: 3 / 10; font-size: var(--t-lead); letter-spacing: -.01em; line-height: 1.4; }
.ulink { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 1px; }
.ulink:hover { color: var(--accent); background-size: 0 1px; background-position: 100% 100%; transition: background-size .45s var(--ease); }

/* ---------- footer ---------- */
#site-footer { margin-top: clamp(120px, 14vw, 240px); border-top: 1px solid var(--line); padding-top: 20px; overflow: hidden; }
.f-cols { row-gap: 28px; }
.f-cols > div { display: flex; flex-direction: column; gap: 4px; font-size: var(--t-small); }
.f-cols .label { color: var(--muted); margin-bottom: 8px; }
.f-a { grid-column: 1 / 4; } .f-b { grid-column: 4 / 7; } .f-c { grid-column: 7 / 10; } .f-d { grid-column: 10 / 13; }
.f-cols a { transition: color .2s; }
.f-cols a:hover { color: var(--accent); }
/* one brand moment: the wordmark alone, set to the full frame width; the page edge trims ~10 % off the baseline */
.wordmark { font-size: calc((min(100vw, 2000px) - 2 * var(--m)) / 5.4); font-weight: 500; letter-spacing: -.06em; line-height: 1; height: .8em; overflow: hidden; margin: clamp(32px, 4vw, 80px) 0 0; white-space: nowrap; user-select: none; }
.wordmark > span { display: block; }
.wordmark .wm-r { color: var(--brand-red); }
.f-base { margin-top: clamp(64px, 8vw, 140px); padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); row-gap: 4px; }
.fb-a { grid-column: 1 / 7; } .fb-b { grid-column: 7 / 13; }

/* ---------- motion ---------- */
html.js .rv { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
html.js .rv.in { opacity: 1; transform: none; }
html.js .rv-img::after { content: ""; position: absolute; inset: 0; z-index: 3; background: var(--bg); transform-origin: 50% 0; transition: transform 1.3s var(--ease); pointer-events: none; }
html.js .rv-img.in::after { transform: scaleY(0); }
@media (prefers-reduced-motion: reduce) {
  html.js .rv { opacity: 1; transform: none; transition: none; }
  html.js .rv-img::after { display: none; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
}

/* ---------- responsive ---------- */
/* six nav items: switch to the menu button a little earlier than the phone layout (was 760px) */
@media (max-width: 920px) {
  .nav { display: none; }
  .brand { grid-column: 1 / 8; }
  .tools { grid-column: 8 / 13; gap: 14px; }
  .menu-btn { display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
  .menu-panel { display: flex; flex-direction: column; justify-content: space-between; position: fixed; inset: 0; z-index: 45; background: var(--bg); color: var(--ink); padding: calc(var(--header) + 24px) var(--m) 28px; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; }
  .menu-panel a { display: block; font-size: 44px; letter-spacing: -.04em; line-height: 1.15; padding: 4px 0; }
  html[data-lang="zh"] .menu-panel a { font-size: 34px; letter-spacing: 0; line-height: 1.45; font-weight: 300; }
  .menu-panel .lang-toggle button, .menu-panel .lang-toggle .sep { font-size: 13px; }
  html.menu-open .menu-panel { opacity: 1; visibility: visible; }
  html.menu-open #site-header { color: var(--ink); background: var(--bg); }
}

@media (max-width: 1080px) {
  .nav { grid-column: 5 / 11; gap: 14px; font-size: 13px; }
  .partners { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .partner:nth-child(2) { margin-top: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0,1fr)); row-gap: 48px; }
}
@media (max-width: 760px) {
  :root { --header: 56px; }
  .nav { display: none; }
  .brand { grid-column: 1 / 9; gap: 10px; }
  .brand .bh-mark { height: 22px; }
  .brand { grid-column: 1 / 8; }
  .tools { grid-column: 8 / 13; gap: 14px; }
  .tools .lang-toggle { gap: 3px; }
  .menu-btn { display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
  .menu-panel { display: flex; flex-direction: column; justify-content: space-between; position: fixed; inset: 0; z-index: 45; background: var(--bg); color: var(--ink); padding: calc(var(--header) + 24px) var(--m) 28px; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; }
  .menu-panel a { display: block; font-size: 44px; letter-spacing: -.04em; line-height: 1.15; padding: 4px 0; }
  html[data-lang="zh"] .menu-panel a { font-size: 34px; letter-spacing: 0; line-height: 1.45; font-weight: 300; }
  .menu-panel .lang-toggle button, .menu-panel .lang-toggle .sep { font-size: 13px; }
  html.menu-open .menu-panel { opacity: 1; visibility: visible; }
  html.menu-open #site-header { color: var(--ink); background: var(--bg); }

  .c-label, .c-main, .c-wide, .c-text,
  .page-head .label, .page-head h1, .page-head .lead,
  .intro .statement, .intro .sub, .intro .facts-row,
  .d-head .label, .d-head h1, .d-facts, .d-body .lead, .d-body .d-text { grid-column: 1 / -1; }
  .c-label, .page-head .label, .d-head .label { margin-bottom: 18px; }
  .sticky { position: static; }
  .intro .facts-row { grid-template-columns: 1fr; row-gap: 16px; }
  .hero-cap .t { grid-column: 1 / 10; } .hero-cap .scroll { grid-column: 10 / 13; }

  .w1, .w2, .w3, .w4, .w5, .w6 { margin-top: 0; }
  .w1, .w4 { grid-column: 1 / 13; }
  .w2, .w5 { grid-column: 4 / 13; }
  .w3, .w6 { grid-column: 1 / 10; }
  .works { row-gap: 56px; }

  .row { grid-template-columns: 2.4em 1fr; row-gap: 6px; }
  .row .num { grid-column: 1; } .row .h3 { grid-column: 2; } .row p { grid-column: 2; font-size: 14.5px; } .row .subs { grid-column: 2; grid-row: auto; margin-top: 2px; }
  .dl-rows .row { grid-template-columns: 1fr; }
  .dl-rows .row .label, .dl-rows .row .v { grid-column: 1; }

  .filter { grid-column: 1 / -1; } .views { grid-column: 1 / -1; justify-content: flex-start; margin-top: 8px; }
  .controls { position: static; }
  .pgrid .work { grid-column: 1 / -1; }
  .pgrid .work:nth-child(3n+2) { margin-top: 0; }
  .pgrid .work:nth-child(even) { grid-column: 3 / 13; }
  .index-head { display: none; }
  .index-row { grid-template-columns: 2.6em 1fr auto; row-gap: 4px; }
  .ix-no { grid-column: 1; } .ix-name { grid-column: 2 / 4; }
  .ix-city { grid-column: 2; } .ix-type { grid-column: 3; }
  .preview { display: none; }

  .d-hero { height: 72svh; }
  .d-facts { margin-bottom: 32px; }
  .ga1, .ga2, .ga3, .ga4, .ga5, .ga6 { grid-column: 1 / -1; }
  .ga2, .ga6 { grid-column: 3 / 13; }

  .partners, .steps { grid-template-columns: minmax(0, 1fr); }
  .partner .media { max-width: 78%; }
  .f-a, .f-b, .f-c, .f-d { grid-column: 1 / -1; }
  .f-cols { grid-template-columns: 1fr 1fr; }
  .f-a, .f-d { grid-column: 1 / -1; } .f-b { grid-column: 1; } .f-c { grid-column: 2; }
  .fb-a, .fb-b { grid-column: 1 / -1; }
}
.hero .ph-note { display: none; }

/* ---------- processed images (tools/process-images.py) ---------- */
.media > picture { position: absolute; inset: 0; }
.media picture img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform 1.2s var(--ease); }
.work:hover .media picture img { transform: scale(1.025); }
.gx-full { grid-column: 1 / 13; } .gx-l { grid-column: 1 / 9; } .gx-r { grid-column: 5 / 13; }
.gp-l { grid-column: 2 / 7; } .gp-r { grid-column: 8 / 12; }
@media (max-width: 760px) { .gx-full, .gx-l, .gx-r { grid-column: 1 / -1; } .gp-l, .gp-r { grid-column: 2 / 12; } }

/* ---------- light download deterrents ---------- */
img, picture { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-user-drag: none; }
.media::before { content: ""; position: absolute; inset: 0; z-index: 2; background: transparent; }  /* transparent shield over the image */
.media .tag { z-index: 3; }
.sn { color: var(--accent); }
@media (max-width: 760px) { .media picture img { object-position: var(--pos-m, var(--pos, 50% 50%)); } }

/* ---------- BH 工具箱 / toolbox ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g); list-style: none; margin: 0; padding: 0; }
.tool-grid > li { display: flex; }
.tool-card { display: flex; flex-direction: column; gap: 14px; width: 100%; min-height: clamp(220px, 20vw, 300px); padding: 16px 0 22px; border-top: 1px solid var(--ink); transition: border-color .3s var(--ease); }
.tool-card .tc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tool-card .num { color: var(--accent); }
.tool-card p { color: var(--ink-2); max-width: 34em; }
.tool-card .tc-go { margin-top: auto; padding-top: 18px; }
a.tool-card .tc-go { color: var(--ink); transition: color .2s, transform .45s var(--ease); }
@media (hover: hover) {
  a.tool-card:hover { border-color: var(--accent); }
  a.tool-card:hover .h3, a.tool-card:hover .tc-go { color: var(--accent); }
  a.tool-card:hover .tc-go { transform: translateX(6px); }
}
a.tool-card:focus:not(:focus-visible) .h3, a.tool-card:focus:not(:focus-visible) .tc-go { color: inherit; }
.tool-card.is-soon { border-top-color: var(--line); color: var(--muted); cursor: default; }
.tool-card.is-soon .num, .tool-card.is-soon p, .tool-card.is-soon .tc-go { color: var(--muted); }
.tool-card .tc-tag { border: 1px solid var(--line); padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
/* breadcrumb (tool pages) */
.crumb { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin-bottom: clamp(28px, 4vw, 64px); color: var(--muted); }
.crumb a { color: var(--ink); }
.crumb a:hover { color: var(--accent); }
.crumb-sep { opacity: .5; }
@media (max-width: 1080px) { .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .tool-grid { grid-template-columns: 1fr; gap: 0; }
  .tool-card { min-height: 0; padding-bottom: 30px; }
}

/* ---------- 单位换算器 / converter ---------- */
.cv-modes { display: flex; flex-wrap: wrap; gap: 6px clamp(16px, 2.2vw, 36px); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cv-modes .btn-text { font-size: clamp(16px, 1.3vw, 19px); letter-spacing: -.01em; min-height: 44px; }
.cv-cats { display: flex; flex-wrap: wrap; gap: 2px clamp(14px, 1.6vw, 24px); padding: 8px 0 0; }
.cv-cats .btn-text, .cv-prec .btn-text { font-size: var(--t-small); min-height: 40px; }
.cv-io { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); column-gap: clamp(20px, 3vw, 56px); align-items: start; margin-top: clamp(40px, 5vw, 80px); }
.cv-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cv-swap-wrap { display: flex; align-items: center; height: 100%; padding-top: 52px; }
.cv-swap { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--ink); font: inherit; font-size: 18px; cursor: pointer; transition: border-color .2s, color .2s, transform .45s var(--ease); }
.cv-swap:hover { border-color: var(--accent); color: var(--accent); transform: rotate(180deg); }
.cv-select { position: relative; display: block; }
.cv-select::after { content: ""; position: absolute; right: 2px; top: 50%; width: 6px; height: 6px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.cv-select select { -webkit-appearance: none; appearance: none; width: 100%; min-height: 44px; padding: 8px 22px 8px 0; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink); font: inherit; font-size: 16px; cursor: pointer; }
.cv-select select:hover, .cv-select select:focus { border-bottom-color: var(--ink); outline: none; }
.cv-input { width: 100%; min-width: 0; padding: 6px 0 8px; background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; outline: none; color: var(--ink); font: inherit; font-size: clamp(32px, 3.6vw, 56px); font-weight: 300; letter-spacing: -.03em; font-variant-numeric: tabular-nums; transition: border-color .2s; }
.cv-input.sm { font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -.01em; min-height: 44px; }
.cv-input:focus { border-bottom-color: var(--accent); }
.cv-input.bad { border-bottom-color: var(--accent); }
.cv-hint { min-height: 1.5em; color: var(--muted); text-transform: none; letter-spacing: .02em; }
.cv-hint.err { color: var(--accent); }
.cv-result { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; width: 100%; min-width: 0; padding: 6px 0 8px; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); font: inherit; text-align: left; cursor: copy; }
.cv-val { font-size: clamp(32px, 3.6vw, 56px); font-weight: 300; letter-spacing: -.03em; line-height: 1.2; font-variant-numeric: tabular-nums; word-break: break-all; }
.cv-unit { font-size: 15px; color: var(--muted); }
.cv-result:hover .cv-val { color: var(--accent); }
.cv-copied-t { display: none; color: var(--accent); }
.copied .cv-copy-t { display: none; } .copied .cv-copied-t { display: inline; }
.cv-prec { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 18px; margin-top: clamp(28px, 3vw, 44px); }
.cv-prec .label { margin-right: 6px; }
.cv-all { margin-top: clamp(40px, 5vw, 72px); }
.cv-all > .label { margin-bottom: 10px; }
.cv-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.cv-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--g); align-items: baseline; width: 100%; min-height: 48px; padding: 12px 0; background: none; border: 0; border-top: 1px solid var(--line); color: var(--ink); font: inherit; text-align: left; cursor: copy; transition: padding .45s var(--ease); }
.cv-row-v { font-size: clamp(17px, 1.4vw, 21px); font-variant-numeric: tabular-nums; letter-spacing: -.01em; word-break: break-all; }
.cv-row-u { font-size: var(--t-small); color: var(--muted); }
.cv-row-u .cv-en { margin-left: 6px; opacity: .75; }
.cv-row-u .cv-copied-t { margin-left: 10px; }
.cv-row > * { transition: transform .45s var(--ease); }
.cv-row:hover > * { transform: translateX(10px); } .cv-row:hover .cv-row-v { color: var(--accent); }
.cv-row.on .cv-row-v { color: var(--accent); }
.cv-note { margin-top: clamp(28px, 3vw, 44px); max-width: 40em; font-size: var(--t-small); color: var(--ink-2); }
.c-wide.cv-note { margin-top: 0; }
.cv-cap { color: var(--ink-2); margin-bottom: 18px; }
.cv-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--g); margin: 22px 0 28px; }
.cv-fx { display: grid; grid-template-columns: 2fr 1fr 2fr 1fr; gap: var(--g); margin-bottom: 28px; }
.cv-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cv-ref .h3 { margin: clamp(40px, 4vw, 64px) 0 10px; }
.cv-ref .h3:first-child { margin-top: 0; }
.cv-ref .cv-cap { margin-bottom: 8px; }
.cv-tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cv-tbl { width: 100%; border-collapse: collapse; font-size: var(--t-small); font-variant-numeric: tabular-nums; }
.cv-tbl th { font-family: var(--mono); font-size: var(--t-meta); font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--ink); }
.cv-tbl td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: baseline; }
.cv-tbl td:last-child, .cv-tbl th:last-child { padding-right: 0; }
.cv-tbl .r { text-align: right; white-space: nowrap; }
.cv-tbl td:not(.r):nth-child(n+2) { color: var(--ink-2); }
@media (max-width: 760px) {
  .cv-io { grid-template-columns: minmax(0, 1fr); row-gap: 8px; margin-top: 36px; }
  .cv-swap-wrap { padding-top: 0; justify-content: center; }
  .cv-swap { transform: rotate(90deg); }
  .cv-swap:hover { transform: rotate(270deg); }
  .cv-input, .cv-val { font-size: 34px; }
  .cv-input.sm { font-size: 20px; }
  .cv-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .cv-pair { grid-template-columns: 1fr; }
  .cv-fx { grid-template-columns: 2fr 1fr; }
  .cv-fx .fx-amt { grid-column: 1; } .cv-fx .fx-rate { grid-column: 1; }
}
.cv-sec[hidden] { display: none; }

/* ---------- lightbox (project pages): the whole image, never cropped, so the watermark is always visible ---------- */
.zoomable { cursor: zoom-in; }
.zoom-hint { position: absolute; top: 12px; right: 12px; z-index: 3; font-family: var(--mono); font-size: var(--t-meta); letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 7px; background: var(--chip-glass); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--ink-2); pointer-events: none; }
.zoomable:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
html.lb-open, html.lb-open body { overflow-x: clip; overflow-y: hidden; }
.lb { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; background: var(--lb-bg); color: var(--lb-ink);
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  -webkit-user-select: none; user-select: none; overscroll-behavior: contain; touch-action: pan-y pinch-zoom; }
.lb[hidden] { display: none; }
.lb-bar, .lb-nav { flex: 0 0 auto; display: flex; align-items: center; gap: 16px; padding: 0 var(--m); height: 56px; }
.lb-t { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--lb-ink-2); }
.lb-n { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.lb button { font: inherit; font-size: var(--t-small); color: inherit; background: none; border: 0; padding: 10px 4px; cursor: pointer; letter-spacing: .02em; }
.lb button:hover { color: var(--white); } .lb button:focus-visible { outline: 1px solid var(--lb-ink); outline-offset: 2px; }
.lb-x { flex: 0 0 auto; margin-right: -4px; }
.lb-nav { justify-content: center; gap: 48px; }
.lb-nav button { font-size: 20px; padding: 6px 14px; }
/* stage = the space left between the bars; the <img> fills it and object-fit: contain letterboxes the full image inside */
.lb-stage { position: relative; flex: 1 1 0; min-height: 0; margin: 0 var(--m); }
.lb.single .lb-stage { margin-bottom: 56px; }
.lb-stage picture { position: absolute; inset: 0; pointer-events: none; }
.lb-stage img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 50%; }
@media (max-width: 760px) { .lb-stage { margin: 0 10px; } }

/* project hero on portrait screens (phones, tablets upright): show the whole image at its own ratio instead of a tall crop */
@media (max-aspect-ratio: 4/5) {
  .d-hero { height: auto; min-height: 0; aspect-ratio: var(--ar, 4 / 3); }
}
/* very narrow phones: 简 / 繁 / EN + menu still fit beside the brand */
@media (max-width: 400px) {
  .brand-t { font-size: 14px; }
  .tools { gap: 10px; }
  .tools .lang-toggle button { padding: 4px 1px; }
}
@media (max-width: 340px) {
  .tools .lang-toggle { display: none; }   /* 320px phones: the toggle stays in the menu panel */
}

/* ---------- contact: enquiry form + optional guide ---------- */
.eq { display: grid; gap: 22px; max-width: 760px; }
.eq-f { display: grid; gap: 6px; }
.eq-in { width: 100%; min-width: 0; padding: 8px 0 10px; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; outline: none; color: var(--ink); font: inherit; font-size: var(--t-lead); letter-spacing: -.01em; transition: border-color .2s; resize: vertical; }
.eq-in:focus { border-bottom-color: var(--accent); }
.eq-in::placeholder { color: var(--muted); opacity: .8; font-size: .8em; }
.eq-more { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eq-more summary { list-style: none; cursor: pointer; padding: 16px 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; min-height: 44px; }
.eq-more summary::-webkit-details-marker { display: none; }
.eq-more summary:hover { color: var(--accent); }
.eq-plus { font-family: var(--mono); color: var(--accent); width: 1em; display: inline-block; transition: transform .3s var(--ease); }
.eq-more[open] .eq-plus { transform: rotate(45deg); }
.eq-qs { display: grid; gap: 24px; padding: 4px 0 26px; }
.eq-t { margin: 0 0 10px; }
.eq-t .sn { font-family: var(--mono); font-size: var(--t-meta); color: var(--accent); margin-right: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: var(--t-small); color: var(--ink-2); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; min-height: 38px; cursor: pointer; transition: color .2s, border-color .2s, background-color .2s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-wash); }
.eq-note { margin: 10px 0 0; color: var(--muted); }
.eq-send { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.eq-btn { font: inherit; font-size: var(--t-lead); color: var(--bg); background: var(--ink); border: 0; border-radius: 999px; padding: 12px 26px; min-height: 48px; cursor: pointer; transition: background-color .25s; }
.eq-btn:hover { background: var(--accent); }
/* pressed / disabled states (buttons, chips, text buttons) */
.eq-btn { transition: background-color .25s, transform .12s var(--ease); }
.eq-btn:active, .chip:active, .cv-swap:active { transform: scale(.97); }
.btn-text:active, .lang-toggle button:active { opacity: .7; }
.eq-btn:disabled, .chip:disabled, .btn-text:disabled, .cv-swap:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.eq-btn:disabled:hover { background: var(--ink); }
.eq-skip { margin: 0; flex: 1 1 220px; }
.eq-after { margin: 0; }
.eq-after .btn-text { color: var(--accent); padding: 0; }
@media (max-width: 760px) { .eq { gap: 18px; } .chip { min-height: 40px; } .eq-btn { width: 100%; } }
.eq-sub { margin-top: 14px; } .eq-sub .eq-in { font-size: 16px; }
.eq-note, .eq-skip, .eq-after, .eq-more summary .meta, .eq-t .meta { font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: var(--t-small); }

/* ---------- DCC estimator ---------- */
.page-head .dcc-alert > *, .page-head .dcc-alert .label { grid-column: auto; padding-top: 0; margin: 0; }
.dcc-alert { grid-template-columns: minmax(0, 1fr); grid-column: 4 / 12; margin-top: clamp(28px, 3vw, 48px); max-width: 52em; padding: 16px 18px; border: 1px solid var(--accent); border-left-width: 4px; background: var(--accent-wash-2); display: grid; gap: 8px; }
.dcc-alert .label { color: var(--accent); }
.dcc-alert p { margin: 0; color: var(--ink); }
.dcc-q { margin-bottom: 22px; }
.dcc-ql { margin: 0 0 10px; }
.dcc-pair { margin-top: 6px; }
.dcc-au .btn-text { min-height: 0; padding: 0 2px; text-transform: none; }
.dcc-tbl { margin-top: 18px; }
.dcc-tbl td:first-child { min-width: 14em; }
.dcc-meta { margin-top: 4px; text-transform: none; letter-spacing: .02em; }
.dcc-na { color: var(--accent); white-space: normal; }
.dcc-tbl tfoot td { border-bottom: 1px solid var(--ink); padding-top: 16px; }
.dcc-total { font-size: clamp(22px, 2vw, 30px); letter-spacing: -.02em; }
.dcc-short { color: var(--ink); }
.dcc-warn { color: var(--accent); margin-top: 14px; }
.dcc-notes { margin: 18px 0 0; padding: 0; list-style: none; max-width: 44em; font-size: var(--t-small); color: var(--ink-2); }
.dcc-notes li { padding: 8px 0 8px 1.2em; border-top: 1px solid var(--line); position: relative; }
.dcc-notes li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.dcc-disc p { max-width: 44em; margin: 0 0 14px; color: var(--ink-2); }
@media (max-width: 760px) {
  .dcc-alert { grid-column: 1 / -1; }
  .dcc-tbl td:first-child { min-width: 0; }
  .dcc-tbl thead { display: none; }
  .dcc-tbl tr { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--line); padding: 10px 0; }
  .dcc-tbl td { border: 0; padding: 2px 0; }
  .dcc-tbl td:nth-child(1) { grid-column: 1 / 2; }
  .dcc-tbl td:nth-child(3) { grid-column: 2; grid-row: 1; }
  .dcc-tbl td:nth-child(2) { grid-column: 1 / -1; font-size: 12px; }
  .dcc-tbl tfoot tr { border-bottom: 1px solid var(--ink); }
  .dcc-tbl tfoot td[colspan] { grid-column: 1; }
  .dcc-tbl tfoot td.r { grid-column: 2; grid-row: 1; }
}

/* ---------- 法规动态 / Bylaw Updates (updates.html, data in assets/js/updates.js) ---------- */
.bu-list { display: grid; gap: clamp(48px, 6vw, 96px); max-width: 52em; margin-left: auto; }
.bu-post { display: grid; gap: 14px; }
.bu-post .h3 { margin: 0; }
.bu-date { margin: 0; }
.bu-draft { margin: 0; justify-self: start; padding: 4px 12px; border: 1px solid var(--accent); color: var(--accent); background: var(--accent-wash-2); font-family: var(--mono); font-size: var(--t-meta); letter-spacing: .08em; }
.bu-items { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 22px; counter-reset: bu; }
.bu-item { padding-top: 12px; border-top: 1px solid var(--line); }
.bu-item p { margin: 0; }
.bu-item .bu-where { color: var(--accent); margin-bottom: 6px; }
.bu-item .bu-src { margin-top: 8px; color: var(--muted); text-transform: none; }
.bu-item .bu-src a { color: var(--ink); }
.bu-disc { margin: 8px 0 0; font-size: var(--t-small); color: var(--muted); }
.bu-empty { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .bu-list { max-width: none; } }

/* ---------- 404 ---------- */
.nf { min-height: 62svh; }
.nf-links { grid-column: 7 / 12; display: flex; flex-wrap: wrap; gap: 12px clamp(24px, 3vw, 48px); margin-top: clamp(32px, 4vw, 64px); font-size: var(--t-lead); }
@media (max-width: 760px) { .nf-links { grid-column: 1 / -1; } }
/* ---------- BH 工具箱 · Bill 44 速评（公开简化版）(bill44.html) ---------- */
.b44-in { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 14px; }
.b44-priv { margin-top: 0; color: var(--muted); }
.b44-res { margin-top: clamp(32px, 4vw, 56px); padding: clamp(22px, 3vw, 36px) clamp(20px, 3vw, 40px); border: 1px solid var(--line); border-radius: 14px; background: var(--accent-wash-2); max-width: 44em; }
.b44-res.idle { background: transparent; border-style: dashed; }
.b44-res .label { color: var(--accent); margin: 0 0 12px; }
.b44-big { margin: 0; font-size: clamp(22px, 2.3vw, 32px); line-height: 1.35; letter-spacing: -.01em; color: var(--ink); font-weight: 400; }
.b44-why { margin: 12px 0 0; color: var(--ink-2); font-size: var(--t-small); max-width: 38em; }
.b44-cta { margin-top: clamp(22px, 2.6vw, 32px); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.b44-cta .eq-btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.b44-cta .meta { text-transform: none; letter-spacing: .02em; color: var(--muted); max-width: 30em; }
@media (max-width: 760px) {
  .b44-in { grid-template-columns: minmax(0, 1fr); gap: 18px; margin: 18px 0 10px; }
  .b44-res { margin-left: 0; margin-right: 0; padding: 22px 18px; border-radius: 12px; }
  .b44-big { font-size: 22px; }
  .b44-cta { flex-direction: column; align-items: stretch; }
  .b44-cta .eq-btn { width: 100%; min-height: 52px; }
}
.b44-res .b44-more{font-size:.92em;opacity:.85;margin-top:.35em}
