/* ==========================================================================
   BOWEN — The Liu Bowen Institute
   A quiet, editorial design system: rice paper, ink, cinnabar, old gold.
   ========================================================================== */

:root {
  --paper: #f4efe3;
  --paper-2: #ece5d5;
  --paper-3: #e3d9c5;
  --ink: #17170f;
  --ink-2: #2a2a20;
  --ink-soft: #4b493c;
  --muted: #7b7565;
  --muted-2: #9b9482;
  --line: rgba(23, 23, 15, 0.16);
  --line-soft: rgba(23, 23, 15, 0.08);
  --cinnabar: #a3372a;
  --cinnabar-2: #bf4a34;
  --jade: #2c4a3d;
  --jade-2: #3c6451;
  --gold: #a9854e;
  --gold-2: #c8a468;
  --night: #101410;
  --night-2: #171d16;
  --paper-on-night: #eee6d4;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "Noto Serif", Georgia, "Times New Roman", serif;
  --serif-zh: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Mono", "Consolas", "Liberation Mono", monospace;
  --ease: cubic-bezier(0.22, 0.78, 0.22, 1);
  --shadow: 0 30px 80px rgba(30, 24, 12, 0.14);
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(120% 80% at 80% -20%, rgba(201, 164, 104, 0.12), transparent 60%),
    radial-gradient(90% 60% at -10% 30%, rgba(44, 74, 61, 0.06), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

body > * { position: relative; z-index: 1; }

::selection { background: rgba(163, 55, 42, 0.2); }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
h1, h2, h3, h4, h5, p, ul, ol, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* language visibility */
html[data-lang="en"] .zh { display: none !important; }
html[data-lang="zh"] .en { display: none !important; }

/* ------------------------------- typography ------------------------------ */
.serif { font-family: var(--serif); }
.zh-serif { font-family: var(--serif-zh); }
.mono { font-family: var(--mono); }

.eyebrow {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow .dot { color: var(--cinnabar); }

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 5.9vw, 84px);
  line-height: 0.99;
  letter-spacing: -0.02em;
}
.display em { font-style: italic; color: var(--cinnabar); }

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.015em;
}
.h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(23px, 2.3vw, 31px);
  line-height: 1.2;
}
.lede {
  font-family: var(--serif);
  font-size: clamp(18px, 1.65vw, 23px);
  line-height: 1.55;
  color: var(--ink-soft);
}
.body-copy { color: var(--ink-soft); font-size: 16px; line-height: 1.75; }
.small { font-size: 13px; line-height: 1.65; color: var(--muted); }
.tiny { font-size: 11px; letter-spacing: 0.08em; color: var(--muted-2); }

.zh-title {
  font-family: var(--serif-zh);
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.15;
}

.rule { height: 1px; background: var(--line); width: 100%; }
.rule-short { width: 56px; height: 1px; background: var(--cinnabar); }

/* --------------------------------- layout -------------------------------- */
.wrap { width: min(var(--max), calc(100% - 80px)); margin-inline: auto; }
.wrap-narrow { width: min(860px, calc(100% - 80px)); margin-inline: auto; }
.section { padding: clamp(72px, 9vw, 132px) 0; position: relative; }
.section-sm { padding: clamp(48px, 6vw, 80px) 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}
.section-head .h2 { margin-top: 14px; }
.grid { display: grid; gap: 32px; }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 7vw, 110px); align-items: center; }

/* --------------------------------- header -------------------------------- */
.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  height: 76px;
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s, height 0.4s;
  border-bottom: 1px solid transparent;
}
.site-head.scrolled {
  height: 64px;
  background: rgba(244, 239, 227, 0.88);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom-color: var(--line-soft);
}
.head-inner {
  width: min(var(--max), calc(100% - 64px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand-seal {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1.5px solid var(--cinnabar);
  color: var(--cinnabar);
  font-family: var(--serif-zh);
  font-size: 21px;
  line-height: 1;
  transform: rotate(-2deg);
  transition: transform 0.5s var(--ease), background 0.4s, color 0.4s;
}
.brand:hover .brand-seal { transform: rotate(0deg); background: var(--cinnabar); color: var(--paper); }
.brand-name {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.22em;
  line-height: 1;
}
.brand-sub {
  display: block;
  font-family: var(--serif-zh);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-top: 7px;
}
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: 12px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--cinnabar); transition: width 0.35s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.head-actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  font-size: 11px;
  letter-spacing: 0.12em;
  border: 1px solid var(--line);
  padding: 7px 11px;
  color: var(--ink-soft);
  transition: all 0.3s;
  white-space: nowrap;
}
.lang-toggle:hover { border-color: var(--ink); color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 26px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  transition: background 0.35s var(--ease), color 0.35s, border-color 0.35s, transform 0.35s;
}
.btn:hover { background: var(--cinnabar); border-color: var(--cinnabar); transform: translateY(-2px); }
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: var(--gold-2); border-color: var(--gold-2); color: var(--ink); }
.btn-sm { padding: 10px 16px; font-size: 10.5px; }
.btn-block { width: 100%; }

.menu-btn {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  position: relative;
}
.menu-btn span {
  position: absolute; left: 11px; right: 11px; height: 1px; background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.3s;
}
.menu-btn span:nth-child(1) { top: 15px; }
.menu-btn span:nth-child(2) { top: 20px; }
.menu-btn span:nth-child(3) { top: 25px; }
body.menu-open .menu-btn span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
body.menu-open .menu-btn span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: var(--paper);
  padding: 104px 32px 40px;
  transform: translateY(-102%);
  transition: transform 0.55s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
body.menu-open .drawer { transform: translateY(0); }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.drawer nav a small { font-family: var(--sans); font-size: 10px; letter-spacing: 0.2em; color: var(--muted); }

/* --------------------------------- hero ---------------------------------- */
.hero {
  min-height: 100vh;
  padding: 132px 0 48px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero-copy { max-width: 690px; }
.hero-copy .eyebrow { display: flex; align-items: center; gap: 14px; }
.hero-copy .eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--cinnabar); }
.hero h1 { margin: 28px 0 26px; }
.hero h1 .line { display: block; }
.hero h1 .it { font-style: italic; }
.hero .lede { max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-meta {
  display: flex;
  gap: 40px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.hero-meta b {
  display: block;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}
.hero-meta span { display: block; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

.hero-visual { position: relative; display: grid; place-items: center; }
.ring-stage { width: min(100%, 560px); aspect-ratio: 1; position: relative; }
.ring-stage svg { width: 100%; height: 100%; overflow: visible; }
.ring-stage .ring-rot { transform-origin: 50% 50%; animation: spin 180s linear infinite; }
.ring-stage .ring-rot-rev { transform-origin: 50% 50%; animation: spin-rev 240s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }
.ring-center {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
}
.ring-center .seal-big {
  width: 108px; height: 108px;
  border: 2px solid var(--cinnabar);
  color: var(--cinnabar);
  display: grid; place-items: center;
  font-family: var(--serif-zh);
  font-size: 54px;
  background: rgba(244, 239, 227, 0.6);
  backdrop-filter: blur(3px);
  transform: rotate(-3deg);
  box-shadow: 0 18px 40px rgba(80, 40, 20, 0.08);
}
.hero-vertical {
  position: absolute;
  right: 2%;
  top: 4%;
  writing-mode: vertical-rl;
  font-family: var(--serif-zh);
  font-size: clamp(12px, 1vw, 15px);
  letter-spacing: 0.5em;
  color: var(--muted-2);
}
.hero-ghost {
  position: absolute;
  left: -14%;
  bottom: -22%;
  font-family: var(--serif-zh);
  font-size: clamp(180px, 30vw, 420px);
  line-height: 0.8;
  color: rgba(23, 23, 15, 0.028);
  pointer-events: none;
  user-select: none;
}
.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  font-size: 9.5px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 10px;
}
.scroll-hint::after { content: ""; width: 1px; height: 34px; background: var(--line); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { opacity: .3; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* --------------------------------- doors --------------------------------- */
.doors { border-top: 1px solid var(--line); }
.door {
  display: grid;
  grid-template-columns: 72px 1.15fr 1fr 46px;
  gap: 24px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding 0.4s var(--ease);
}
.door::before {
  content: "";
  position: absolute; inset: 0 -20px;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.45s var(--ease);
  z-index: -1;
}
.door:hover { padding-left: 22px; padding-right: 22px; }
.door:hover::before { transform: scaleY(1); }
.door:hover, .door:hover .door-zh, .door:hover .door-en, .door:hover .door-desc, .door:hover .door-num, .door:hover .door-arrow { color: var(--paper); }
.door-num { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.1em; }
.door-name { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.door-zh { font-family: var(--serif-zh); font-size: clamp(24px, 2.5vw, 34px); letter-spacing: 0.08em; transition: color 0.35s; }
.door-en { font-family: var(--serif); font-size: 19px; font-style: italic; color: var(--ink-soft); transition: color 0.35s; }
.door-desc { font-size: 13.5px; color: var(--muted); line-height: 1.65; transition: color 0.35s; max-width: 460px; }
.door-arrow { font-size: 22px; justify-self: end; transition: transform 0.4s var(--ease), color 0.35s; }
.door:hover .door-arrow { transform: translateX(6px); }

/* ---------------------------------- story -------------------------------- */
.story { background: var(--paper-2); }
.timeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin-top: 48px; border-top: 1px solid var(--line); }
.tl-item { padding: 26px 18px 0 0; border-right: 1px solid var(--line-soft); position: relative; }
.tl-item:last-child { border-right: 0; }
.tl-item::before {
  content: ""; position: absolute; top: -3px; left: 0; width: 5px; height: 5px; border-radius: 50%;
  background: var(--cinnabar);
}
.tl-year { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--cinnabar); }
.tl-t { font-family: var(--serif); font-size: 18px; margin: 12px 0 8px; line-height: 1.3; }
.tl-d { font-size: 12px; color: var(--muted); line-height: 1.6; }

.quote-mark { font-family: var(--serif); font-size: 80px; line-height: 0.6; color: var(--cinnabar); height: 34px; }
.big-quote {
  font-family: var(--serif-zh);
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.5;
  letter-spacing: 0.05em;
  max-width: 900px;
}
.quote-cite { margin-top: 26px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* ---------------------------------- AI band ------------------------------ */
.band-night {
  background: var(--night);
  color: var(--paper-on-night);
  position: relative;
  overflow: hidden;
}
.band-night::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 80% 10%, rgba(201, 164, 104, 0.14), transparent 60%),
    radial-gradient(50% 50% at 0% 90%, rgba(60, 100, 81, 0.28), transparent 60%);
}
.band-night .wrap { position: relative; }
.band-night .eyebrow { color: rgba(238, 230, 212, 0.5); }
.band-night .h2 { color: var(--paper-on-night); }
.band-night .body-copy, .band-night .lede { color: rgba(238, 230, 212, 0.66); }
.band-night .rule { background: rgba(238, 230, 212, 0.16); }

.chat-mock {
  border: 1px solid rgba(238, 230, 212, 0.18);
  background: rgba(255, 255, 255, 0.02);
  padding: 26px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 330px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}
.bubble { max-width: 88%; padding: 14px 18px; font-size: 13.5px; line-height: 1.65; }
.bubble.user { align-self: flex-end; background: rgba(201, 164, 104, 0.14); border: 1px solid rgba(201, 164, 104, 0.26); }
.bubble.ai { align-self: flex-start; border: 1px solid rgba(238, 230, 212, 0.14); color: rgba(238, 230, 212, 0.82); }
.bubble .who { font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 7px; }
.ask-bar {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid rgba(238, 230, 212, 0.22);
  padding: 12px 14px;
  font-size: 13px; color: rgba(238, 230, 212, 0.55);
}
.ask-bar .cursor { width: 1px; height: 16px; background: var(--gold-2); animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid rgba(238, 230, 212, 0.22);
  padding: 7px 12px;
  font-size: 11px;
  color: rgba(238, 230, 212, 0.7);
  transition: all 0.3s;
}
a.chip:hover { border-color: var(--gold-2); color: var(--paper-on-night); }

/* --------------------------------- academy ------------------------------- */
.course-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.14);
  display: flex; flex-direction: column;
  transition: transform 0.45s var(--ease), box-shadow 0.45s, background 0.4s;
  min-height: 100%;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); background: var(--paper); }
.course-top { padding: 28px 26px 22px; border-bottom: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: flex-start; }
.course-glyph { font-family: var(--serif-zh); font-size: 52px; line-height: 1; color: var(--cinnabar); opacity: .9; }
.course-ix { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.course-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.course-cat { font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--jade); }
.course-title { font-family: var(--serif); font-size: 23px; line-height: 1.3; }
.course-sub { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.course-foot { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; letter-spacing: 0.08em; color: var(--muted); }
.course-foot .price { color: var(--cinnabar); font-weight: 600; letter-spacing: 0.06em; }

/* --------------------------------- footer -------------------------------- */
.site-foot { background: var(--night); color: rgba(238, 230, 212, 0.7); padding: 76px 0 34px; }
.site-foot .brand-seal { border-color: var(--gold-2); color: var(--gold-2); }
.site-foot .brand-name { color: var(--paper-on-night); }
.site-foot .brand-sub { color: rgba(238, 230, 212, 0.4); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
.foot-brand p { font-size: 13px; line-height: 1.75; max-width: 340px; margin-top: 24px; color: rgba(238, 230, 212, 0.55); }
.foot-col h4 { font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 20px; }
.foot-col a, .foot-col span { display: block; font-size: 13px; padding: 6px 0; color: rgba(238, 230, 212, 0.62); transition: color .3s; }
.foot-col a:hover { color: var(--paper-on-night); }
.foot-bottom {
  margin-top: 62px; padding-top: 24px; border-top: 1px solid rgba(238, 230, 212, 0.12);
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-size: 10.5px; color: rgba(238, 230, 212, 0.4); letter-spacing: 0.04em;
}
.foot-bottom a { color: rgba(238, 230, 212, 0.55); }

/* ------------------------------- inner hero ------------------------------ */
.page-hero { padding: 150px 0 64px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero .wrap { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 40px; align-items: end; }
.page-hero .h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6vw, 80px); line-height: 0.98; letter-spacing: -0.02em; margin: 18px 0 22px; }
.page-hero .lede { max-width: 620px; }
.page-hero .zh-mark {
  justify-self: end;
  writing-mode: vertical-rl;
  font-family: var(--serif-zh);
  font-size: clamp(54px, 7vw, 96px);
  letter-spacing: 0.14em;
  color: rgba(23, 23, 15, 0.14);
  line-height: 1;
  user-select: none;
}
.crumbs { display: flex; gap: 10px; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.crumbs a:hover { color: var(--cinnabar); }
.crumbs span { color: var(--muted-2); }

/* -------------------------------- UI bits -------------------------------- */
.panel { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.22); }
.panel-pad { padding: clamp(24px, 3vw, 40px); }

.field { display: flex; flex-direction: column; gap: 9px; }
.field label, .label { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.input, .textarea, .select {
  width: 100%;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid var(--line);
  padding: 14px 16px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--ink); background: var(--paper); }
.textarea { min-height: 104px; resize: vertical; line-height: 1.65; }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }

.seg { display: inline-flex; border: 1px solid var(--line); }
.seg button { padding: 8px 14px; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border-right: 1px solid var(--line); transition: all .25s; }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--ink); color: var(--paper); }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--line); padding: 5px 9px; color: var(--muted);
}
.tag.red { color: var(--cinnabar); border-color: rgba(163, 55, 42, 0.3); }
.tag.jade { color: var(--jade); border-color: rgba(44, 74, 61, 0.3); }

.note { border-left: 2px solid var(--gold); padding: 4px 0 4px 18px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.disclaimer { font-size: 11px; line-height: 1.7; color: var(--muted-2); }

.empty { padding: 60px 20px; text-align: center; color: var(--muted); font-size: 14px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ring-rot, .ring-rot-rev { animation: none; }
  html { scroll-behavior: auto; }
}

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--paper); padding: 12px 20px; font-size: 12px;
  opacity: 0; pointer-events: none; transition: all .35s var(--ease); z-index: 200;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* modal */
.modal { position: fixed; inset: 0; z-index: 150; display: none; }
.modal.open { display: block; }
.modal-back { position: absolute; inset: 0; background: rgba(16, 20, 16, 0.55); backdrop-filter: blur(6px); }
.modal-card {
  position: relative; width: min(920px, calc(100% - 40px)); max-height: calc(100vh - 80px);
  margin: 40px auto; background: var(--paper); border: 1px solid var(--line);
  overflow: auto; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.35);
  animation: modalIn .45s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(24px); } }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--paper); z-index: 2; }
.modal-close { font-size: 20px; line-height: 1; padding: 4px 8px; }
.modal-body { padding: 28px; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line-soft); }
.tbl th { font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

/* ------------------------------- responsive ------------------------------ */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .head-actions .btn { display: none; }
  .hero { min-height: auto; padding-top: 132px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; }
  .ring-stage { width: min(70vw, 420px); }
  .hero-ghost { display: none; }
  .doors .door { grid-template-columns: 52px 1fr 44px; }
  .door-desc { display: none; }
  .timeline { grid-template-columns: repeat(3, 1fr); }
  .tl-item:nth-child(3) { border-right: 0; }
  .tl-item { padding-bottom: 24px; }
  .page-hero .wrap { grid-template-columns: 1fr; }
  .page-hero .zh-mark { position: absolute; right: 20px; top: 130px; opacity: .5; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .wrap, .wrap-narrow { width: calc(100% - 40px); }
  .head-inner { width: calc(100% - 32px); }
  .brand-sub { display: none; }
  .section { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(38px, 12vw, 62px); }
  .hero-meta { gap: 24px; flex-wrap: wrap; }
  .hero-meta b { font-size: 24px; }
  .doors .door { grid-template-columns: 36px 1fr 28px; gap: 14px; padding: 22px 0; }
  .door-name { gap: 8px; }
  .door-zh { font-size: 22px; }
  .door-en { font-size: 15px; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .tl-item:nth-child(3) { border-right: 1px solid var(--line-soft); }
  .tl-item:nth-child(2n) { border-right: 0; }
  .big-quote { font-size: 24px; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .site-foot { padding-top: 56px; }
  .foot-bottom { margin-top: 40px; }
  .page-hero { padding-top: 118px; }
  .page-hero .h1 { font-size: clamp(38px, 11vw, 56px); }
  .page-hero .zh-mark { display: none; }
  .drawer nav a { font-size: 27px; }
}

/* QA-only capture mode */
.capture-mode .hero { min-height: 0; padding-top: 140px; padding-bottom: 60px; }
.capture-mode .reveal { opacity: 1 !important; transform: none !important; }
.capture-mode .ring-rot, .capture-mode .ring-rot-rev { animation: none; }
.capture-mode .scroll-hint { display: none; }

[hidden] { display: none !important; }


/* shared page meta */
.page-meta { display: flex; gap: 32px; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.page-meta span { font-family: var(--serif); font-size: 22px; line-height: 1; }
.page-meta i { font-size: 10px; font-family: var(--sans); font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-left: 6px; }

.lq-result, #reading, #detail { scroll-margin-top: 90px; }


.hero-copy .eyebrow { flex-wrap: wrap; }
@media (max-width: 720px) {
  .hero-copy .eyebrow { font-size: 9px; letter-spacing: .16em; gap: 8px; }
  .hero-copy .eyebrow::before { width: 20px; }
  .hero-visual { margin-top: 8px; }
  .head-inner { gap: 10px; }
  .lang-toggle { padding: 6px 8px; font-size: 10px; }
}

h1, h2, h3, p, li { overflow-wrap: break-word; }
.page-hero .wrap > *, .split > *, .g2 > *, .g3 > * { min-width: 0; }


main { position: relative; z-index: auto; }

