/* Tong Shang public website — Bronze Ledger v1.0. Tokens live in DESIGN.md; this file consumes them. */

:root {
  --espresso-950: #140e09;
  --espresso-900: #1c140c;
  --espresso-800: #2e2312;
  --espresso-700: #3f3120;
  --bronze-600: #584a35;
  --bronze-500: #7a6446;
  --brass-500: #b48643;
  --brass-300: #d9bd86;
  --ivory-50: #f4ece0;
  --ivory-300: #c9bda9;
  --paper-50: #fbf9f4;
  --paper-100: #f3efe6;
  --paper-200: #e6dfd0;
  --ink-900: #1a1410;
  --ink-600: #5a4f44;
  --line-light: #ded8cc;
  --line-dark: #3a2d1e;
  --positive: #26745a;
  --warning: #a36a18;
  --risk: #b54747;
  --focus: #d9bd86;

  --font-display: "Spectral", "Iowan Old Style", Baskerville, Georgia, serif;
  --font-body: "Hanken Grotesk", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;

  --fs-hero: clamp(2.5rem, 6cqi, 4.5rem);
  --fs-h1: clamp(2.25rem, 4.5cqi, 3.5rem);
  --fs-h2: clamp(1.75rem, 3cqi, 2.5rem);
  --fs-h3: 1.375rem;
  --fs-lead: clamp(1.125rem, 1.6cqi, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-mono: 0.8125rem;
  --fs-mono-lg: 1rem;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  --radius-control: 4px;
  --radius-sheet: 8px;
  --header-h: 64px;
  --wrap-max: 1200px;
  --measure: 68ch;
  --pad-x: 20px;
  --grain-paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.28 0 0 0 0 0.2 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --grain-leather: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.85 0 0 0 0 0.7 0 0 0 0 0.45 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --crest: url(/static/brand/tong-shang-crest-720.png);
}

@font-face { font-family: "Spectral"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/spectral-400.woff2") format("woff2"); }
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/spectral-500.woff2") format("woff2"); }
@font-face { font-family: "Spectral"; font-style: italic; font-weight: 500; font-display: swap; src: url("fonts/spectral-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/spectral-600.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/hanken-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/plexmono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/plexmono-600.woff2") format("woff2"); }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--espresso-950);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 500; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.16em; transition: text-decoration-thickness 120ms ease; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.on-paper :focus-visible, .on-paper-alt :focus-visible { outline-color: var(--brass-500); }
.icon { width: 20px; height: 20px; flex: none; stroke-width: 1.75; }
.icon--sm { width: 18px; height: 18px; }
.icon--lg { width: 24px; height: 24px; }

/* ---------- Site container ---------- */
.site { container: site / inline-size; min-height: 100vh; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: var(--wrap-max); margin-inline: auto; padding-inline: var(--pad-x); }
.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  padding: var(--space-3) var(--space-4); background: var(--brass-500); color: var(--espresso-900);
  border-radius: var(--radius-control); text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: var(--space-4); }
.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; }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brass-300); display: flex; align-items: center; gap: var(--space-3);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--brass-500); flex: none; }
.on-paper .eyebrow, .on-paper-alt .eyebrow { color: var(--ink-600); }
.on-paper .eyebrow::before, .on-paper-alt .eyebrow::before { background: var(--brass-500); }
.mono { font-family: var(--font-mono); font-size: var(--fs-mono-lg); }
.accent { font-style: italic; font-weight: 500; color: var(--brass-300); }
.on-paper .accent, .on-paper-alt .accent { color: var(--bronze-600); }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ivory-300); max-width: 46ch; }
.on-paper .lead, .on-paper-alt .lead { color: var(--ink-600); }
.prose { max-width: var(--measure); display: flex; flex-direction: column; gap: var(--space-4); }
.prose h2 { font-size: var(--fs-h2); line-height: 1.12; margin-top: var(--space-6); }
.prose h3 { font-size: var(--fs-h3); line-height: 1.25; margin-top: var(--space-4); }
.prose ul { display: flex; flex-direction: column; gap: var(--space-2); padding-left: 1.2em; list-style: disc; }
.prose li::marker { color: var(--brass-500); }

/* ---------- Sections ---------- */
.section { padding-block: var(--space-12); }
.on-dark { background: var(--espresso-900); color: var(--ivory-50); }
.on-paper { background: var(--paper-50); color: var(--ink-900); }
.on-paper-alt { background: var(--paper-100); color: var(--ink-900); }
.section__head { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-6); }
.section__title { font-size: var(--fs-h2); line-height: 1.12; }
.section__intro { max-width: 64ch; color: var(--ink-600); }
.on-dark .section__intro { color: var(--ivory-300); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--espresso-900); color: var(--ivory-50);
  border-bottom: 1px solid var(--line-dark);
  padding-top: env(safe-area-inset-top);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; min-height: 44px; }
.brand__crest { width: 36px; height: 36px; border-radius: var(--radius-sheet); }
.brand__name { display: flex; flex-direction: column; line-height: 1.1; }
.brand__title { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; letter-spacing: 0.01em; }
.brand__sub { font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ivory-300); margin-top: 3px; }
.nav { display: none; }
.nav__list { display: flex; gap: var(--space-4); }
.nav__link {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-1);
  text-decoration: none; font-weight: 500; font-size: var(--fs-small); color: var(--ivory-300);
  border-bottom: 2px solid transparent;
}
.nav__link span { white-space: nowrap; }
.nav__link:hover { color: var(--ivory-50); }
.nav__link[aria-current="page"] { color: var(--ivory-50); border-bottom-color: var(--brass-500); }
.menu-btn {
  order: 3;
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; min-width: 44px; padding: 0 var(--space-2);
  color: var(--ivory-50); font-weight: 500; font-size: var(--fs-small); border-radius: var(--radius-control);
}
.menu-btn .icon--close { display: none; }
.menu-btn[aria-expanded="true"] .icon--open { display: none; }
.menu-btn[aria-expanded="true"] .icon--close { display: block; }

/* ---------- Drawer (mobile navigation) ---------- */
.drawer {
  position: fixed; inset: 0; z-index: 60; background: var(--espresso-800); color: var(--ivory-50);
  padding: calc(var(--header-h) + env(safe-area-inset-top)) var(--pad-x) calc(var(--space-6) + env(safe-area-inset-bottom));
  display: none; flex-direction: column; gap: var(--space-8); overflow-y: auto;
}
.drawer[data-open="true"] { display: flex; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); position: absolute; top: env(safe-area-inset-top); left: var(--pad-x); right: var(--pad-x); }
.drawer__list { display: flex; flex-direction: column; border-top: 1px solid var(--line-dark); }
.drawer__link {
  display: flex; align-items: center; gap: var(--space-4); min-height: 56px; padding: var(--space-2) 0;
  border-bottom: 1px solid var(--line-dark); text-decoration: none; font-family: var(--font-display); font-size: 1.375rem;
}
.drawer__link .icon { color: var(--brass-300); width: 22px; height: 22px; }
.drawer__link[aria-current="page"] { color: var(--brass-300); }
.drawer__foot { color: var(--ivory-300); font-size: var(--fs-small); display: flex; flex-direction: column; gap: var(--space-2); }
.drawer__foot a { display: inline-flex; align-items: center; min-height: 44px; }
body[data-drawer-open="true"] { overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-6); border-radius: var(--radius-control);
  font-weight: 500; font-size: var(--fs-body); text-decoration: none; border: 1px solid transparent;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}
.btn .icon { width: 18px; height: 18px; transition: transform 120ms ease; }
.btn:hover .icon { transform: translateX(4px); }
.on-dark .btn--primary { background: var(--brass-500); color: var(--espresso-900); border-color: var(--brass-500); }
.on-dark .btn--primary:hover { background: var(--brass-300); border-color: var(--brass-300); }
.on-dark .btn--secondary { color: var(--ivory-50); border-color: var(--ivory-300); }
.on-dark .btn--secondary:hover { border-color: var(--ivory-50); background: var(--espresso-800); }
.on-paper .btn--primary, .on-paper-alt .btn--primary { background: var(--espresso-800); color: var(--ivory-50); border-color: var(--espresso-800); }
.on-paper .btn--primary:hover, .on-paper-alt .btn--primary:hover { background: var(--espresso-700); }
.on-paper .btn--secondary, .on-paper-alt .btn--secondary { color: var(--ink-900); border-color: var(--ink-900); }
.on-paper .btn--secondary:hover, .on-paper-alt .btn--secondary:hover { background: var(--paper-100); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: var(--space-8) var(--space-12); }
.hero__grid { display: grid; gap: var(--space-8); align-items: center; }
.hero__visual { width: min(100%, 300px); margin-inline: auto; }
.hero__copy { display: flex; flex-direction: column; gap: var(--space-6); text-align: center; align-items: center; }
.hero__title { font-size: var(--fs-hero); line-height: 1.02; letter-spacing: -0.02em; font-weight: 500; }
.hero__slogan { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: var(--fs-lead); color: var(--brass-300); }
.hero__lead { max-width: 44ch; }
.hero__facts {
  display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-4); padding-top: var(--space-6);
  border-top: 1px solid var(--line-dark); width: 100%; align-items: center;
  font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: 0.04em; color: var(--ivory-50);
}
.hero__facts li { display: flex; align-items: center; gap: var(--space-2); }
.hero__facts .icon { width: 16px; height: 16px; color: var(--brass-500); }
.hairline { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brass-500); opacity: 0.4; box-shadow: 0 0 12px 0 var(--brass-500); }

/* ---------- Ledger ---------- */
.ledger { display: flex; flex-direction: column; border-top: 1px solid var(--line-light); }
.ledger__row {
  display: grid; grid-template-columns: auto 1fr auto; column-gap: var(--space-4); row-gap: var(--space-1);
  align-items: start; padding: var(--space-6) 0; border-bottom: 1px solid var(--line-light);
  text-decoration: none; color: inherit;
}
.ledger__row:hover .ledger__title { color: var(--bronze-600); }
.ledger__row:hover .ledger__arrow .icon { transform: translateX(4px); }
.ledger__index { grid-row: span 2; font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: 0.08em; color: var(--bronze-600); padding-top: 0.45em; min-width: 2ch; }
.ledger__title { font-size: var(--fs-h3); line-height: 1.25; display: flex; align-items: center; gap: var(--space-3); transition: color 120ms ease; }
.ledger__title .icon { color: var(--bronze-500); }
.ledger__desc { grid-column: 2; color: var(--ink-600); max-width: 60ch; }
.ledger__arrow { grid-row: span 2; align-self: center; color: var(--bronze-600); }
.ledger__arrow .icon { transition: transform 120ms ease; }
.ledger--dark { border-top-color: var(--line-dark); }
.ledger--dark .ledger__row { border-bottom-color: var(--line-dark); }
.ledger--dark .ledger__index { color: var(--brass-500); }
.ledger--dark .ledger__desc { color: var(--ivory-300); }
.ledger--dark .ledger__row:hover .ledger__title { color: var(--brass-300); }

/* ---------- Posture triptych ---------- */
.triptych { display: grid; gap: var(--space-8); }
.triptych__item { display: flex; flex-direction: column; gap: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--line-light); }
.triptych__item h3 { font-size: var(--fs-h3); line-height: 1.25; }
.triptych__item p { color: var(--ink-600); }

/* ---------- Contact band ---------- */
.band__grid { display: grid; gap: var(--space-8); }
.band__facts { display: grid; gap: var(--space-6); }
.fact { display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-4); border-top: 1px solid var(--line-dark); }
.fact__label { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass-300); display: flex; align-items: center; gap: var(--space-2); }
.fact__label .icon { width: 16px; height: 16px; color: var(--brass-500); }
.fact__value { font-family: var(--font-mono); font-size: var(--fs-mono-lg); line-height: 1.5; }
.fact__value a { text-decoration-color: var(--bronze-500); display: inline-flex; align-items: center; min-height: 44px; margin-block: -10px; }
.on-paper .fact { border-top-color: var(--line-light); }
.on-paper .fact__label { color: var(--ink-600); }

/* ---------- Page header (inner pages) ---------- */
.page-header { padding-block: var(--space-8); }
.page-header__inner { display: flex; flex-direction: column; gap: var(--space-4); max-width: 60ch; }
.page-header__title { font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -0.015em; }

/* ---------- Definition sheet ---------- */
.sheet { background: var(--paper-50); border: 1px solid var(--line-light); border-radius: var(--radius-sheet); overflow: hidden; }
.sheet__head { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); border-bottom: 1px solid var(--line-light); }
.sheet__title { font-size: var(--fs-h3); display: flex; align-items: center; gap: var(--space-3); }
.sheet__title .icon { color: var(--bronze-500); }
.sheet__who { color: var(--ink-600); }
.dl { display: grid; }
.dl__row { display: grid; gap: var(--space-1); padding: var(--space-4) var(--space-6); }
.dl__row:nth-child(even) { background: var(--paper-100); }
.dl__label { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-600); }
.dl__value { color: var(--ink-900); }
.sheet-grid { display: grid; gap: var(--space-6); }

/* ---------- Honest-state notice ---------- */
.notice {
  display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4) var(--space-6);
  background: var(--paper-100); border: 1px solid var(--line-light); border-radius: var(--radius-sheet);
  color: var(--ink-600); max-width: var(--measure);
}
.notice .icon { color: var(--bronze-600); margin-top: 3px; }
.notice strong { color: var(--ink-900); font-weight: 500; }
.on-dark .notice { background: var(--espresso-800); border-color: var(--line-dark); color: var(--ivory-300); }
.on-dark .notice .icon { color: var(--brass-300); }
.on-dark .notice strong { color: var(--ivory-50); }

/* ---------- Footer ---------- */
.footer { background: var(--espresso-950); color: var(--ivory-300); border-top: 1px solid var(--line-dark); padding-block: var(--space-12) calc(var(--space-8) + env(safe-area-inset-bottom)); margin-top: auto; }
.footer__grid { display: grid; gap: var(--space-8); }
.footer__plate { display: inline-block; background: var(--paper-50); border-radius: var(--radius-sheet); padding: var(--space-4) var(--space-6); }
.footer__lockup { width: min(100%, 360px); }
.footer__nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-1) var(--space-4); align-content: start; }
.footer__link { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; text-decoration: none; font-size: var(--fs-small); color: var(--ivory-300); }
.footer__link:hover { color: var(--ivory-50); }
.footer__link .icon { width: 16px; height: 16px; color: var(--brass-500); }
.footer__contact { display: flex; flex-direction: column; gap: var(--space-2); font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: 0.02em; line-height: 1.6; }
.footer__contact a { text-decoration-color: var(--bronze-500); display: inline-flex; align-items: center; min-height: 44px; margin-block: -10px; }
.footer__legal { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: var(--space-2); font-size: var(--fs-small); }
.footer__legal [lang="zh-Hans"] { font-family: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", var(--font-body); }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: flex; align-items: center; }
.notfound__code { font-family: var(--font-mono); font-size: var(--fs-mono-lg); color: var(--brass-300); letter-spacing: 0.08em; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal > * { animation: rise 600ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .reveal > *:nth-child(2) { animation-delay: 80ms; }
  .reveal > *:nth-child(3) { animation-delay: 160ms; }
  .reveal > *:nth-child(4) { animation-delay: 240ms; }
  .reveal > *:nth-child(5) { animation-delay: 320ms; }
  .reveal > *:nth-child(6) { animation-delay: 400ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Container queries: 720px ---------- */
@container site (min-width: 720px) {
  .wrap { padding-inline: 40px; }
  .hero__facts { flex-direction: row; flex-wrap: wrap; gap: var(--space-6); justify-content: center; }
  .triptych { grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
  .triptych__item { border-top: 0; border-left: 1px solid var(--line-light); padding-top: 0; padding-left: var(--space-6); }
  .triptych__item:first-child { border-left: 0; padding-left: 0; }
  .band__facts { grid-template-columns: repeat(3, 1fr); }
  .sheet-grid { grid-template-columns: repeat(2, 1fr); }
  .dl__row { grid-template-columns: 128px 1fr; gap: var(--space-4); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__legal { flex-direction: row; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: var(--space-4); }
}

/* ---------- Container queries: 1080px ---------- */
@container site (min-width: 1080px) {
  .wrap { padding-inline: 64px; }
  .section { padding-block: var(--space-16); }
  .header__inner { min-height: 80px; }
  .brand__crest { width: 44px; height: 44px; }
  .hero { padding-block: var(--space-16) var(--space-16); }
  .hero__grid { grid-template-columns: 7fr 5fr; gap: var(--space-12); }
  .hero__copy { text-align: left; align-items: flex-start; order: 1; }
  .hero__visual { order: 2; width: min(100%, 340px); margin-inline: auto 0; }
  .hero__facts { justify-content: flex-start; align-items: flex-start; }
  .band__grid { grid-template-columns: 2fr 1fr; align-items: end; }
  .band__cta { justify-self: end; }
  .page-header { padding-block: var(--space-12); }
  .ledger__row { grid-template-columns: 4ch 1fr auto; column-gap: var(--space-6); padding: var(--space-6) 0; }
  .ledger--grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--space-12); }
  .ledger--grid .ledger__desc { max-width: none; }
  .ledger__desc { grid-column: 2; }
}

/* ---------- Phone mockup (illustration of the app; see DESIGN.md section 8) ---------- */
.phone {
  width: 100%; aspect-ratio: 9 / 16.5; background: var(--espresso-950); border: 1px solid var(--bronze-600);
  border-radius: 36px; padding: 12px; box-shadow: 0 32px 64px -40px var(--espresso-950);
}
.phone__screen { height: 100%; border-radius: 26px; background: var(--espresso-900); border: 1px solid var(--line-dark); display: flex; flex-direction: column; overflow: hidden; }
.phone__bar { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-4) var(--space-4) var(--space-3); border-bottom: 1px solid var(--line-dark); font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass-300); }
.phone__bar .icon { width: 14px; height: 14px; color: var(--brass-500); }
.chat { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); }
.bubble { max-width: 88%; padding: var(--space-3) var(--space-3); border-radius: 12px; font-size: 0.875rem; line-height: 1.45; display: flex; flex-direction: column; gap: var(--space-1); }
.bubble__who { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.8; }
.bubble--you { align-self: flex-end; background: var(--espresso-800); color: var(--ivory-50); border-bottom-right-radius: 4px; }
.bubble--tong { align-self: flex-start; background: var(--paper-50); color: var(--ink-900); border-bottom-left-radius: 4px; }
.bubble .amount { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.phone__actions { display: flex; gap: var(--space-2); padding: 0 var(--space-4) var(--space-4); margin-top: auto; }
.phone__btn { flex: 1; min-height: 40px; border-radius: var(--radius-control); display: inline-flex; align-items: center; justify-content: center; font-size: 0.875rem; font-weight: 500; }
.phone__btn--primary { background: var(--brass-500); color: var(--espresso-900); }
.phone__btn--ghost { border: 1px solid var(--ivory-300); color: var(--ivory-50); }
.phone__caption { margin-top: var(--space-3); text-align: center; font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: 0.04em; color: var(--ivory-300); }

/* ---------- Scenes (app page: a short conversation inside a paper sheet) ---------- */
.scenes { display: grid; gap: var(--space-6); }
.scene { display: flex; flex-direction: column; }
.scene .chat { padding: var(--space-6); gap: var(--space-3); }
.scene .bubble--you { background: var(--espresso-800); color: var(--ivory-50); }
.scene .bubble--tong { background: var(--paper-100); color: var(--ink-900); border: 1px solid var(--line-light); }
.scene__foot { margin-top: auto; padding: var(--space-4) var(--space-6); border-top: 1px solid var(--line-light); color: var(--ink-600); font-size: var(--fs-small); }
.section__crest { width: 96px; margin-bottom: var(--space-6); }

@container site (min-width: 720px) {
  .scenes { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Phone: prepared-payment card ---------- */
.phone__card { margin: 0 var(--space-4); padding: var(--space-3); border: 1px solid var(--line-dark); border-radius: var(--radius-sheet); background: var(--espresso-800); color: var(--ivory-50); display: flex; flex-direction: column; gap: var(--space-2); font-size: 0.8125rem; }
.phone__card-label { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass-300); }
.phone__card-row { display: flex; justify-content: space-between; gap: var(--space-3); }
.phone__card-row .amount { color: var(--brass-300); }

/* ---------- Crest figure (about page) ---------- */
.crest-figure { width: min(100%, 340px); margin-inline: auto; }
@container site (min-width: 1080px) { .crest-figure { margin-inline: 0; } }

/* ---------- Desktop navigation: seven items need 1180px ---------- */
/* Desktop never shows a hamburger. From 840px the full menu bar is visible: a deliberate second
   header row under the brand until 1360px, one row from 1360px (French labels need the room). Laptops with browser zoom present
   as 850 to 1150 CSS px, so the drawer is for phones and portrait tablets only. */
@container site (min-width: 840px) {
  .header__inner { flex-wrap: wrap; row-gap: 0; }
  .nav { display: block; flex-basis: 100%; border-top: 1px solid var(--line-dark); margin-top: var(--space-3); padding-top: var(--space-2); }
  .nav__list { flex-wrap: wrap; gap: var(--space-1) var(--space-4); }
  .menu-btn { display: none; }
  .brand__name { white-space: nowrap; }
}
@container site (min-width: 1360px) {
  .header__inner { flex-wrap: nowrap; }
  .nav { flex-basis: auto; border-top: 0; margin-top: 0; padding-top: 0; margin-left: auto; }
  .nav__list { flex-wrap: nowrap; }
}

/* ---------- Service pillars (home) ---------- */
.pillars { display: grid; gap: var(--space-6); }
.pillar { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); background: var(--paper-50); border: 1px solid var(--line-light); border-radius: var(--radius-sheet); text-decoration: none; color: inherit; transition: border-color 120ms ease; }
.pillar:hover { border-color: var(--bronze-500); }
.pillar__title { font-size: var(--fs-h3); line-height: 1.25; display: flex; align-items: center; gap: var(--space-3); }
.pillar__title .icon { color: var(--bronze-500); }
.pillar__desc { color: var(--ink-600); }
.pillar__list { display: flex; flex-direction: column; gap: var(--space-1); font-size: var(--fs-small); }
.pillar__list li { display: flex; gap: var(--space-2); align-items: baseline; }
.pillar__list li::before { content: "\00B7"; color: var(--brass-500); font-weight: 700; }
.pillar__more { margin-top: auto; padding-top: var(--space-3); display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 500; color: var(--bronze-600); }
.pillar__more .icon { width: 18px; height: 18px; transition: transform 120ms ease; }
.pillar:hover .pillar__more .icon { transform: translateX(4px); }

/* ---------- Rates table ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line-light); border-radius: var(--radius-sheet); background: var(--paper-50); }
.rates { width: 100%; border-collapse: collapse; font-size: var(--fs-body); }
.rates caption { caption-side: top; text-align: left; padding: var(--space-4) var(--space-6); font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-600); border-bottom: 1px solid var(--line-light); }
.rates th { text-align: left; font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-600); font-weight: 400; padding: var(--space-3) var(--space-6); border-bottom: 1px solid var(--line-light); white-space: nowrap; }
.rates td { padding: var(--space-3) var(--space-6); border-bottom: 1px solid var(--line-light); vertical-align: top; }
.rates tbody tr:nth-child(even) { background: var(--paper-100); }
.rates tr:last-child td { border-bottom: 0; }
.rates .num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rates__code { font-family: var(--font-mono); color: var(--ink-600); font-size: var(--fs-mono); letter-spacing: 0.06em; margin-left: var(--space-2); }
.rates__note { margin-top: var(--space-3); display: flex; gap: var(--space-2); align-items: flex-start; font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: 0.04em; color: var(--ink-600); }
.rates__note .icon { width: 16px; height: 16px; color: var(--warning); margin-top: 2px; }

/* ---------- Leadership slots (about) ---------- */
.team { display: grid; gap: var(--space-6); }
.member { display: flex; flex-direction: column; gap: var(--space-3); }
.member__portrait { aspect-ratio: 4 / 5; border: 1px dashed var(--bronze-500); border-radius: var(--radius-sheet); background: var(--paper-100); display: flex; align-items: center; justify-content: center; text-align: center; padding: var(--space-4); font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-600); }
.member__role { font-size: var(--fs-h3); line-height: 1.25; }
.member__name { font-family: var(--font-mono); font-size: var(--fs-mono-lg); color: var(--ink-600); }

/* ---------- Form (contact) ---------- */
.form { display: grid; gap: var(--space-4); max-width: 60ch; }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-weight: 500; }
.field input, .field select, .field textarea { font: inherit; font-size: var(--fs-body); min-height: 48px; padding: var(--space-3) var(--space-4); border: 1px solid var(--ink-600); border-radius: var(--radius-control); background: var(--paper-50); color: var(--ink-900); width: 100%; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--bronze-600); }
.form__note { font-size: var(--fs-small); color: var(--ink-600); display: flex; gap: var(--space-2); align-items: flex-start; }
.form__note .icon { width: 16px; height: 16px; color: var(--bronze-600); margin-top: 4px; }

/* ---------- FAQ (help) ---------- */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line-light); max-width: 80ch; }
.faq details { border-bottom: 1px solid var(--line-light); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) 0; min-height: 56px; font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--bronze-500); transition: transform 120ms ease; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq__body { padding: 0 0 var(--space-6); color: var(--ink-600); max-width: 60ch; display: flex; flex-direction: column; gap: var(--space-3); }

@container site (min-width: 720px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(3, 1fr); }
}
@container site (min-width: 1080px) {
  .pillars { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Personal CFO feature (home, section 01) ---------- */
.cfo-grid { display: grid; gap: var(--space-8); align-items: start; }
.cfo-grid .actions { margin-top: var(--space-6); }
.cfo-grid .scene { margin: 0; }
@container site (min-width: 1080px) {
  .cfo-grid { grid-template-columns: 1.15fr 1fr; gap: var(--space-12); }
}

/* ---------- Language menu (header) and language row (drawer, footer) ---------- */
.lang { position: relative; order: 2; margin-left: auto; }
.lang__btn {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 44px; padding: 0 var(--space-3); border: 1px solid var(--line-dark); border-radius: var(--radius-control);
  color: var(--ivory-50); font-weight: 500; font-size: var(--fs-small); white-space: nowrap;
}
.lang__btn::-webkit-details-marker { display: none; }
.lang__btn .icon { color: var(--brass-300); }
.lang__chev { transition: transform 120ms ease; }
.lang[open] .lang__chev { transform: rotate(180deg); }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + var(--space-2)); z-index: 70; min-width: 168px; padding: var(--space-1);
  background: var(--espresso-800); border: 1px solid var(--line-dark); border-radius: var(--radius-sheet);
  box-shadow: 0 16px 40px -24px var(--espresso-950);
}
.lang__link { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 var(--space-3); border-radius: var(--radius-control); text-decoration: none; color: var(--ivory-50); white-space: nowrap; }
.lang__link:hover { background: var(--espresso-700); }
.lang__link[aria-current="true"] { color: var(--brass-300); }
.lang__link[aria-current="true"]::after { content: "\2713"; font-family: var(--font-mono); }
.drawer__langs { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
.drawer__langs .icon { color: var(--brass-300); }
.drawer__lang { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ivory-300); font-weight: 500; }
.drawer__lang[aria-current="true"] { color: var(--brass-300); text-decoration: underline; text-underline-offset: 0.2em; }
.footer__langs { margin-top: var(--space-2); }
.footer__langs a[aria-current="true"] { color: var(--ivory-50); }
.header__inner { gap: var(--space-3); }
@container site (min-width: 840px) {
  .lang { order: 2; margin-left: auto; }
  .nav { order: 4; }
}
@container site (min-width: 1360px) {
  .nav { order: 1; margin-left: auto; margin-right: var(--space-6); }
  .lang { order: 2; margin-left: 0; }
}

/* ---------- Simplified Chinese edition: system CJK faces, no tracking on display type ---------- */
html[lang="zh-Hans"] {
  --font-display: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}
html[lang="zh-Hans"] body { line-height: 1.75; }
html[lang="zh-Hans"] .hero__title, html[lang="zh-Hans"] .page-header__title, html[lang="zh-Hans"] .section__title { letter-spacing: 0; line-height: 1.2; }
html[lang="zh-Hans"] .eyebrow, html[lang="zh-Hans"] .brand__sub, html[lang="zh-Hans"] .dl__label, html[lang="zh-Hans"] .fact__label, html[lang="zh-Hans"] .rates th, html[lang="zh-Hans"] .rates caption { letter-spacing: 0.04em; }

/* ---------- Phone header: crest and wordmark, language menu, icon-only menu button ---------- */
@container site (max-width: 599px) {
  .brand__sub { display: none; }
  .menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu-btn { padding: 0; justify-content: center; }
  .lang__btn { padding: 0 var(--space-2); }
}

/* French labels are longer: the French edition keeps the two-row header until 1440px */
@container site (min-width: 1360px) and (max-width: 1439px) {
  html[lang="fr"] .header__inner { flex-wrap: wrap; }
  html[lang="fr"] .nav { order: 4; flex-basis: 100%; margin: var(--space-3) 0 0; padding-top: var(--space-2); border-top: 1px solid var(--line-dark); }
  html[lang="fr"] .nav__list { flex-wrap: wrap; }
  html[lang="fr"] .lang { margin-left: auto; }
}

/* The header runs wider than the reading column so seven labelled items, the brand and the language menu share one row. */
.header .wrap { max-width: 1400px; }

/* ================= Enrichment round (2026-09-03): material, depth, figures ================= */

/* ---------- Material: paper fibre and leather grain ---------- */
.on-paper, .on-paper-alt { background-image: var(--grain-paper); }
.on-dark, .header, .footer, .drawer { background-image: var(--grain-leather); }

/* ---------- Hero: lamp light, crest watermark, layered desk ---------- */
.hero { overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 55% 70% at 78% 28%, color-mix(in srgb, var(--brass-500) 22%, transparent), transparent 62%); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--crest) no-repeat right -6% top 8% / 560px auto; opacity: 0.07; }
.hero .wrap { position: relative; z-index: 1; }
.hero__visual { position: relative; }
.phone { position: relative; z-index: 2; box-shadow: 0 40px 80px -40px var(--espresso-950), 0 0 0 1px color-mix(in srgb, var(--brass-500) 35%, transparent); }
.desk-sheet { position: absolute; width: 62%; aspect-ratio: 3 / 4; background: var(--paper-50); background-image: var(--grain-paper); border-radius: 4px; box-shadow: 0 30px 60px -30px var(--espresso-950); z-index: 1; }
.desk-sheet::before { content: ""; position: absolute; inset: 22% 10% 10%; background: repeating-linear-gradient(to bottom, transparent 0 21px, var(--line-light) 21px 22px); }
.desk-sheet--a { left: -12%; bottom: 16%; transform: rotate(-7deg); }
.desk-sheet--b { right: -10%; top: -2%; transform: rotate(5deg); background: var(--paper-100); z-index: 0; }
.desk-sheet__label { position: absolute; left: 10%; top: 8%; font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-600); }
.desk-sheet__crest { position: absolute; right: 8%; top: 6%; width: 32px; height: auto; opacity: 0.85; }
.phone__caption { position: relative; z-index: 2; }

/* ---------- Seal: the crest at the first section boundary of every page ---------- */
.hero + .section, .page-header + .section { position: relative; }
.hero + .section::before, .page-header + .section::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 52px; height: 52px; transform: translate(-50%, -50%); border-radius: 50%; z-index: 2;
  background: var(--paper-50) var(--crest) center / 32px auto no-repeat; border: 1px solid var(--bronze-500);
  box-shadow: 0 0 0 4px var(--espresso-900), 0 6px 14px -6px var(--espresso-950);
}

/* ---------- Page header: copy beside a bronze line-art figure ---------- */
.page-header { position: relative; overflow: hidden; }
.page-header::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 50% 80% at 80% 40%, color-mix(in srgb, var(--brass-500) 16%, transparent), transparent 60%); }
.page-header .wrap { position: relative; }
.page-header__grid { display: grid; gap: var(--space-8); align-items: center; }
.figure { margin: 0; width: 100%; }
.figure__svg { width: 100%; height: auto; display: block; overflow: visible; }
.figure__caption { margin-top: var(--space-3); font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: 0.04em; color: var(--ivory-300); }
.figure svg text { font-family: var(--font-mono); fill: var(--ivory-50); }
.fig-label { font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; }
.fig-sub { font-size: 0.6875rem; letter-spacing: 0.04em; fill: var(--ivory-300); }
.figure svg .fig-year { font-family: var(--font-display); font-size: 1.625rem; fill: var(--brass-300); letter-spacing: 0; }
.fig-col { font-size: 0.625rem; letter-spacing: 0.1em; text-transform: uppercase; fill: var(--ivory-300); }
.fig-grid path { stroke: var(--line-dark); stroke-width: 1; fill: none; }
.fig-route { stroke: var(--brass-300); stroke-width: 2; stroke-dasharray: 6 8; fill: none; stroke-linecap: round; }
.fig-node__halo { fill: none; stroke: var(--bronze-500); stroke-width: 1; }
.fig-node__dot { fill: var(--brass-500); }
.fig-node--next .fig-node__dot { fill: var(--espresso-900); stroke: var(--brass-300); stroke-width: 2; }
.fig-node--next .fig-node__halo { stroke-dasharray: 3 4; }
.fig-cargo { fill: var(--espresso-900); stroke: var(--brass-300); stroke-width: 1.5; }
.fig-compass circle, .fig-compass path { fill: none; stroke: var(--bronze-500); stroke-width: 1; }
.fig-compass__n { fill: var(--brass-500); stroke: none; }
.fig-axis { stroke: var(--bronze-500); stroke-width: 1.5; }
.fig-box rect { fill: color-mix(in srgb, var(--espresso-800) 80%, transparent); stroke: var(--bronze-500); stroke-width: 1.5; }
.fig-box--accent rect { stroke: var(--brass-500); fill: color-mix(in srgb, var(--brass-500) 12%, transparent); }
.fig-box--dashed rect { stroke-dasharray: 4 5; }
.fig-arrow { stroke: var(--bronze-500); stroke-width: 1.5; fill: none; }
.fig-arrow--dashed { stroke-dasharray: 4 5; }
.fig-arrowhead { stroke: var(--bronze-500); stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fig-sheet rect { fill: var(--espresso-800); stroke: var(--bronze-500); stroke-width: 1.2; }
.fig-sheet--top rect { fill: var(--espresso-700); stroke: var(--brass-500); }
.fig-rule { stroke: var(--line-dark); stroke-width: 1; }
.fig-rule--strong { stroke: var(--bronze-500); }
.fig-dots { stroke: var(--bronze-500); stroke-width: 2; stroke-dasharray: 1 5; stroke-linecap: round; }
.fig-seal circle { fill: none; stroke: var(--brass-500); stroke-width: 1.2; }
.figure--glyphs { display: flex; align-items: center; justify-content: flex-end; }
.figure__glyphs { font-family: var(--font-display); font-style: italic; font-size: clamp(5rem, 12cqi, 9rem); line-height: 1; letter-spacing: 0.08em; color: var(--brass-300); opacity: 0.35; white-space: nowrap; text-wrap: balance; }
.addr-card { position: relative; background: var(--paper-50); background-image: var(--grain-paper); color: var(--ink-900); border-radius: var(--radius-sheet); padding: var(--space-8) var(--space-8) var(--space-6); box-shadow: 0 30px 60px -30px var(--espresso-950); border-top: 3px solid var(--bronze-500); }
.addr-card::before, .addr-card::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1px solid var(--bronze-500); }
.addr-card::before { left: 10px; bottom: 10px; border-top: 0; border-right: 0; }
.addr-card::after { right: 10px; bottom: 10px; border-top: 0; border-left: 0; }
.addr-card__crest { width: 72px; height: auto; margin-bottom: var(--space-4); }
.addr-card__name { font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.25; }
.addr-card__cn { font-family: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", var(--font-body); color: var(--ink-600); margin-bottom: var(--space-4); }
.addr-card__line { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: 0.04em; color: var(--ink-600); }

/* ---------- Depth on paper: sheets, pillars, tables ---------- */
.sheet, .pillar, .tbl-wrap { border-top: 3px solid var(--bronze-500); box-shadow: 0 1px 0 var(--paper-200), 0 18px 36px -30px var(--espresso-950); }
.pillars { counter-reset: pillar; }
.pillar { position: relative; overflow: hidden; counter-increment: pillar; }
.pillar::before { content: counter(pillar, decimal-leading-zero); position: absolute; right: 10px; top: -18px; font-family: var(--font-display); font-size: 6rem; line-height: 1; color: var(--bronze-500); opacity: 0.12; pointer-events: none; }
.section__crest { width: 160px; }

/* ---------- Watermarks on dark bands and the footer ---------- */
.section.on-dark, .footer { position: relative; overflow: hidden; }
.section.on-dark::after, .footer::after { content: ""; position: absolute; right: -4%; top: 50%; width: 440px; height: 340px; transform: translateY(-50%); background: var(--crest) no-repeat center / contain; opacity: 0.06; pointer-events: none; }
.section.on-dark > .wrap, .footer > .wrap { position: relative; z-index: 1; }
.footer__plate { box-shadow: 0 18px 36px -28px var(--espresso-950); }

@container site (min-width: 1080px) {
  .page-header__grid { grid-template-columns: 6fr 5fr; gap: var(--space-12); }
  .figure { max-width: 560px; justify-self: end; }
}
@container site (max-width: 1079px) {
  .figure--glyphs { justify-content: flex-start; }
  .figure__glyphs { font-size: 4rem; }
}
