﻿/* =========================================================
   浜虹墿瀵硅瘽妯℃澘 路 CHARACTER DIALOGUE TEMPLATE
   Editorial / cinematic / warm light
   鏈枃浠朵繚鎸侀€氱敤锛氭枃妗堛€侀鑹层€佹按鍗伴兘鐢?content/character.json 娉ㄥ叆銆?
   ========================================================= */

:root {
  --noir: #100c09;
  --noir-deep: #090705;
  --noir-soft: #1a130e;
  --paper: #ece2d0;
  --paper-bright: #f4ecdd;
  --paper-deep: #dfd0b7;
  --ink: #241b13;
  --ink-soft: #5f4c3a;
  --ink-faint: #8b7660;
  --amber: #d79a5b;
  --amber-bright: #f0be7e;
  --amber-dim: #96683f;
  --red: #9f3428;
  --red-deep: #772019;
  --line-dark: rgba(236, 226, 208, 0.16);
  --line-light: rgba(36, 27, 19, 0.15);
  --serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --quote: "Kaiti SC", "KaiTi", "STKaiti", "FangSong", "FangSong_GB2312", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", "Roboto Mono", Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  background: var(--noir-deep);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--noir);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

::selection {
  background: var(--amber);
  color: var(--noir-deep);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

p,
h1,
h2,
h3,
figure,
blockquote {
  margin: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--amber-bright);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0.3;
  background-image: url("../img/grain.png");
  background-repeat: repeat;
  background-size: 180px 180px;
  mix-blend-mode: soft-light;
}

/* ---------- Reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 1s var(--ease),
    transform 1s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero-copy > .reveal:nth-child(1) {
  transition-delay: 0.08s;
}

.hero-copy > .reveal:nth-child(2) {
  transition-delay: 0.16s;
}

.hero-copy > .reveal:nth-child(3) {
  transition-delay: 0.26s;
}

.hero-copy > .reveal:nth-child(4) {
  transition-delay: 0.34s;
}

.hero-copy > .reveal:nth-child(5) {
  transition-delay: 0.42s;
}

.hero-art.reveal {
  transition-delay: 0.3s;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 24px clamp(22px, 4.5vw, 72px);
  border-bottom: 1px solid transparent;
  transition:
    padding 0.4s var(--ease),
    background 0.4s ease,
    border-color 0.4s ease,
    backdrop-filter 0.4s ease;
}

.site-header.is-scrolled {
  padding-top: 14px;
  padding-bottom: 14px;
  background: rgba(13, 9, 7, 0.84);
  border-bottom-color: rgba(236, 226, 208, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.brand-seal {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  background: var(--red);
  color: var(--paper-bright);
  font-family: var(--quote);
  font-size: 19px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 241, 220, 0.28);
  transform: rotate(-2deg);
}

.brand-words {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-words strong {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.brand-words small {
  color: rgba(236, 226, 208, 0.42);
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.18em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 38px);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.site-nav a {
  position: relative;
  color: rgba(236, 226, 208, 0.68);
  transition: color 0.25s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.site-nav a:hover {
  color: var(--paper);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.nav-archive {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid rgba(236, 226, 208, 0.22);
  background: transparent;
  color: rgba(236, 226, 208, 0.76);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  transition:
    border-color 0.25s ease,
    color 0.25s ease,
    background 0.25s ease;
}

.nav-archive svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

.nav-archive:hover {
  border-color: var(--amber);
  background: rgba(215, 154, 91, 0.08);
  color: var(--amber-bright);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  padding: 148px clamp(24px, 6vw, 92px) 34px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 38%, rgba(173, 97, 48, 0.16), transparent 31%),
    radial-gradient(circle at 12% 18%, rgba(106, 62, 34, 0.11), transparent 30%),
    linear-gradient(116deg, #100c09 0%, #140f0b 52%, #0a0806 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(236, 226, 208, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 226, 208, 0.035) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse at 67% 44%, #000 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 67% 44%, #000 0%, transparent 65%);
}

.hero::after {
  content: var(--watermark, "");
  position: absolute;
  right: -0.06em;
  bottom: -0.18em;
  pointer-events: none;
  color: transparent;
  font-family: var(--serif);
  font-size: clamp(200px, 29vw, 440px);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.1em;
  -webkit-text-stroke: 1px rgba(215, 154, 91, 0.08);
  opacity: 0.75;
}

.hero-light {
  position: absolute;
  top: -18%;
  right: 4%;
  width: min(720px, 58vw);
  height: min(720px, 58vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(213, 140, 77, 0.17) 0%, rgba(111, 63, 31, 0.08) 36%, transparent 68%);
  filter: blur(30px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
  width: 100%;
  max-width: 1420px;
  margin: auto;
}

.hero-copy {
  position: relative;
  z-index: 3;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(236, 226, 208, 0.46);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.22em;
}

.eyebrow-line {
  width: 42px;
  height: 1px;
  background: var(--amber-dim);
}

.hero-title {
  margin-top: clamp(24px, 3.8vw, 50px);
  font-family: var(--serif);
  font-size: clamp(64px, 8.7vw, 132px);
  font-weight: 600;
  line-height: 0.99;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero-title span {
  display: block;
  color: var(--paper-bright);
  text-shadow: 0 16px 62px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.hero-title em {
  display: block;
  margin-top: 0.02em;
  color: var(--amber);
  font-style: normal;
  font-weight: 500;
  white-space: nowrap;
}

.hero-quote {
  position: relative;
  max-width: 510px;
  margin-top: clamp(30px, 4vw, 52px);
  padding-left: 21px;
  border-left: 1px solid rgba(215, 154, 91, 0.5);
}

.hero-quote blockquote {
  color: rgba(244, 236, 221, 0.84);
  font-family: var(--quote);
  font-size: clamp(17px, 1.62vw, 22px);
  line-height: 1.75;
  letter-spacing: 0.02em;
}

.hero-quote figcaption {
  margin-top: 12px;
  color: rgba(236, 226, 208, 0.36);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.22em;
}

.hero-lede {
  max-width: 535px;
  margin-top: 24px;
  color: rgba(236, 226, 208, 0.62);
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 0.03em;
}

.keep-together {
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 36px;
}

.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 38px;
  min-width: 236px;
  padding: 18px 28px;
  border: 0;
  background: var(--amber);
  color: #1b120b;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
  transition:
    background 0.3s ease,
    transform 0.35s var(--ease),
    box-shadow 0.35s ease;
  animation: cta-button-glow 1.9s ease-in-out infinite;
}

/* 鎸夐挳闅忕澶磋妭鎷嶈交杞诲懠姘旓紝寮卞厜涓嬩篃鑳界湅鍑鸿繖鏄彲鐐圭殑 */
@keyframes cta-button-glow {
  0%,
  12% {
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
  }

  52%,
  64% {
    box-shadow:
      0 14px 38px rgba(0, 0, 0, 0.28),
      0 0 0 1px rgba(240, 190, 126, 0.32),
      0 0 34px rgba(240, 190, 126, 0.3);
  }

  86%,
  100% {
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
  }
}

.button-primary svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  transition: transform 0.35s var(--ease);
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  animation: cta-arrow-breathe 1.9s ease-in-out infinite;
}

/* 绠ご鍛ㄦ湡鎬у悜鍙充竴椤?+ 鏄庢樉鍙樻殫骞跺仠涓€鎷嶏紝鎻愮ず杩欎竴鍧楀彲鐐?*/
@keyframes cta-arrow-breathe {
  0%,
  12% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }

  40% {
    opacity: 0.55;
    transform: translateX(8px) scale(1.12);
  }

  52%,
  64% {
    opacity: 0.14;
    transform: translateX(12px) scale(1.18);
  }

  86%,
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .button-primary,
  .button-primary svg,
  .cta-arrow::after {
    animation: none;
  }
}

.cta-arrow {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 19px;
  height: 19px;
}

.cta-arrow::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(255, 245, 229, 0.7);
  border-radius: 999px;
  opacity: 0;
  transform: scale(0.55);
  animation: cta-arrow-ring 1.9s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

/* 绠ご鍚戝墠椤剁殑鍚屾椂锛屼粠瀹冭韩涓婃墿鍑轰竴鍦堟祬鑹叉尝绾癸紝鍍忚杞荤偣浜嗕竴涓?*/
@keyframes cta-arrow-ring {
  0%,
  16% {
    opacity: 0;
    transform: scale(0.55);
  }

  36% {
    opacity: 0.55;
    transform: scale(0.95);
  }

  68%,
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

.button-primary:hover,
.button-primary:focus-visible {
  animation: none;
}

.button-primary:hover svg,
.button-primary:focus-visible svg {
  animation: none;
  opacity: 1;
}

.button-primary:hover .cta-arrow::after,
.button-primary:focus-visible .cta-arrow::after {
  animation: none;
  opacity: 0;
}

.button-primary:hover {
  background: var(--amber-bright);
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.button-primary:hover svg {
  transform: translateX(4px);
}

.hero-fineprint {
  color: rgba(236, 226, 208, 0.34);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.7;
  letter-spacing: 0.08em;
}

/* Hero art */

.hero-art {
  position: relative;
  width: 100%;
  max-width: 640px;
  justify-self: center;
  isolation: isolate;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 4% -3% 7%;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, rgba(213, 140, 77, 0.2), transparent 57%),
    radial-gradient(circle at 50% 45%, transparent 58%, rgba(215, 154, 91, 0.07) 58.3%, transparent 59%);
  filter: blur(2px);
}

.hero-art::after {
  content: "";
  position: absolute;
  top: 4%;
  bottom: 15%;
  left: 2%;
  width: 1px;
  background: linear-gradient(transparent, rgba(215, 154, 91, 0.26), transparent);
}

.portrait-slot {
  position: relative;
  width: min(100%, 620px);
  margin: 4% auto 0;
  overflow: hidden;
  border: 1px solid rgba(215, 154, 91, 0.28);
  background: #120d09;
  box-shadow:
    inset 0 0 80px rgba(0, 0, 0, 0.24),
    0 30px 80px rgba(0, 0, 0, 0.24);
}

.portrait-slot::before,
.portrait-slot::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.portrait-slot::before {
  top: 9px;
  left: 9px;
  border-top: 1px solid rgba(215, 154, 91, 0.38);
  border-left: 1px solid rgba(215, 154, 91, 0.38);
}

.portrait-slot::after {
  right: 9px;
  bottom: 9px;
  border-right: 1px solid rgba(215, 154, 91, 0.38);
  border-bottom: 1px solid rgba(215, 154, 91, 0.38);
}

.portrait-frame-label {
  color: rgba(236, 226, 208, 0.28);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.2em;
  line-height: 1.5;
  writing-mode: vertical-rl;
}

.portrait-frame-note {
  color: rgba(236, 226, 208, 0.2);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.14em;
}

.portrait-image {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.92) contrast(1.02);
}

.hero-seal {
  position: absolute;
  top: 1.5%;
  right: 5%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(64px, 7vw, 88px);
  height: clamp(64px, 7vw, 88px);
  background: var(--red-deep);
  color: rgba(244, 236, 221, 0.92);
  font-family: var(--quote);
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: 0.12em;
  text-indent: 0.12em;
  transform: rotate(4deg);
  box-shadow:
    inset 0 0 0 1px rgba(244, 236, 221, 0.24),
    inset 0 0 0 6px var(--red-deep),
    inset 0 0 0 7px rgba(244, 236, 221, 0.13);
  opacity: 0.93;
}

.art-kicker {
  position: absolute;
  top: 6%;
  left: 0;
  z-index: 3;
  color: rgba(236, 226, 208, 0.32);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.25em;
  writing-mode: vertical-rl;
}

.art-caption {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, 620px);
  margin: 12px auto 0;
  color: rgba(236, 226, 208, 0.25);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.hero-bottom {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  max-width: 1420px;
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(236, 226, 208, 0.1);
}

.hero-facts {
  display: flex;
  gap: clamp(22px, 3.5vw, 52px);
}

.hero-fact {
  min-width: 110px;
}

.hero-fact span {
  display: block;
  margin-bottom: 4px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.14em;
}

.hero-fact p {
  color: rgba(236, 226, 208, 0.42);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

.scroll-cue {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(236, 226, 208, 0.36);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.2em;
}

.scroll-cue i {
  position: relative;
  display: block;
  width: 46px;
  height: 1px;
  background: rgba(236, 226, 208, 0.2);
  overflow: hidden;
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 1px;
  background: var(--amber);
  animation: scroll-line 2.6s ease-in-out infinite;
}

@keyframes scroll-line {
  0% {
    transform: translateX(-20px);
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  80% {
    transform: translateX(50px);
    opacity: 1;
  }
  100% {
    transform: translateX(50px);
    opacity: 0;
  }
}

/* ---------- Section furniture ---------- */

.section-intro {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 13px;
  color: rgba(36, 27, 19, 0.48);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.section-kicker span {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 1px solid currentColor;
  font-size: 7px;
}

.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  margin-top: 24px;
}

.section-heading-row h2 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading-row h2 em {
  color: var(--red);
  font-style: normal;
  font-weight: 500;
}

.section-desc {
  width: min(340px, 30vw);
  padding-bottom: 8px;
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.9;
}

/* ---------- Talk section ---------- */

.talk-section {
  position: relative;
  scroll-margin-top: 70px;
  padding: 118px clamp(20px, 6vw, 92px) 126px;
  background:
    radial-gradient(circle at 16% 18%, rgba(147, 83, 39, 0.14), transparent 32%),
    linear-gradient(180deg, #17110c 0%, #100c09 60%, #0b0806 100%);
  overflow: hidden;
}

.talk-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1320px, 88vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(215, 154, 91, 0.28), transparent);
  transform: translateX(-50%);
}

.talk-section .section-kicker {
  color: rgba(236, 226, 208, 0.42);
}

.talk-section .section-heading-row h2 {
  color: var(--paper-bright);
}

.talk-section .section-heading-row h2 em {
  color: var(--amber);
}

.talk-section .section-desc {
  color: rgba(236, 226, 208, 0.46);
}

.talk-frame {
  width: 100%;
  max-width: 1320px;
  margin: 48px auto 0;
  background: var(--paper);
  border: 1px solid rgba(236, 226, 208, 0.2);
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.55),
    0 2px 0 rgba(255, 255, 255, 0.04) inset;
  overflow: hidden;
}

.talk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 24px;
  background: #19130f;
  border-bottom: 1px solid rgba(236, 226, 208, 0.1);
  color: rgba(236, 226, 208, 0.72);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.15em;
}

.talk-bar-title {
  display: flex;
  align-items: center;
  gap: 11px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #bf5d42;
  box-shadow: 0 0 0 4px rgba(191, 93, 66, 0.1);
  animation: live-pulse 2.4s ease-in-out infinite;
}

@keyframes live-pulse {
  0%,
  100% {
    opacity: 0.55;
    box-shadow: 0 0 0 3px rgba(191, 93, 66, 0.08);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 0 5px rgba(191, 93, 66, 0.13);
  }
}

.talk-bar-tools {
  display: flex;
  align-items: center;
  gap: 24px;
}

.open-sign {
  color: var(--amber);
  font-size: 7.5px;
  letter-spacing: 0.16em;
}

.talk-layout {
  display: grid;
  grid-template-columns: 294px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  min-width: 0;
  height: 720px;
}

.talk-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 28px 24px 22px;
  background:
    radial-gradient(circle at 10% 0%, rgba(159, 52, 40, 0.12), transparent 30%),
    #17110d;
  border-right: 1px solid rgba(236, 226, 208, 0.09);
  color: var(--paper);
}

.side-profile {
  display: flex;
  align-items: center;
  gap: 15px;
}

.side-seal {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  background: var(--red-deep);
  color: rgba(244, 236, 221, 0.9);
  font-family: var(--quote);
  font-size: 27px;
  line-height: 1;
  box-shadow:
    inset 0 0 0 1px rgba(244, 236, 221, 0.23),
    inset 0 0 0 5px var(--red-deep),
    inset 0 0 0 6px rgba(244, 236, 221, 0.11);
  transform: rotate(-2deg);
}

.side-kicker {
  color: rgba(236, 226, 208, 0.34);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.2em;
}

.side-profile h3 {
  margin: 5px 0 2px;
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.04em;
}

.side-role {
  color: rgba(236, 226, 208, 0.42);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.side-quote {
  margin: 22px 0 24px;
  padding: 0 0 0 12px;
  border-left: 1px solid rgba(215, 154, 91, 0.45);
  color: rgba(215, 154, 91, 0.88);
  font-family: var(--quote);
  font-size: 13px;
  line-height: 1.7;
}

.side-nav {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.side-label {
  flex: 0 0 auto;
  margin-bottom: 6px;
  color: rgba(236, 226, 208, 0.3);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.18em;
}

.chapter-list {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(236, 226, 208, 0.16) transparent;
}

.chapter-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid rgba(236, 226, 208, 0.07);
  background: transparent;
  color: rgba(236, 226, 208, 0.62);
  text-align: left;
  transition:
    color 0.25s ease,
    padding-left 0.3s var(--ease);
}

.chapter-item:last-child {
  border-bottom: 1px solid rgba(236, 226, 208, 0.07);
}

.chapter-item .chapter-no {
  color: rgba(215, 154, 91, 0.58);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.chapter-item .chapter-title {
  font-family: var(--serif);
  font-size: 12.5px;
  letter-spacing: 0.03em;
}

.chapter-item:hover {
  padding-left: 5px;
  color: var(--amber-bright);
}

.side-note {
  flex: 0 0 auto;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(236, 226, 208, 0.08);
  color: rgba(236, 226, 208, 0.28);
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1.8;
  letter-spacing: 0.04em;
}

/* Chat panel */

.chat-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 10%, rgba(255, 255, 255, 0.35), transparent 34%),
    repeating-linear-gradient(0deg, rgba(100, 79, 54, 0.018) 0, rgba(100, 79, 54, 0.018) 1px, transparent 1px, transparent 5px),
    var(--paper);
  color: var(--ink);
}

.chat-scroll {
  min-width: 0;
  min-height: 0;
  padding: 24px 34px 26px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(159, 52, 40, 0.5) rgba(36, 27, 19, 0.06);
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.chat-scroll::-webkit-scrollbar,
.chapter-list::-webkit-scrollbar,
.drawer-body::-webkit-scrollbar {
  width: 7px;
}

.chat-scroll::-webkit-scrollbar-track {
  background: rgba(36, 27, 19, 0.055);
  border-left: 1px solid rgba(36, 27, 19, 0.08);
}

.chat-scroll::-webkit-scrollbar-thumb {
  background: rgba(159, 52, 40, 0.42);
}

.drawer-body::-webkit-scrollbar-thumb {
  background: rgba(36, 27, 19, 0.22);
}

.chapter-list::-webkit-scrollbar-thumb {
  background: rgba(236, 226, 208, 0.18);
}

.chat-rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 23px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(36, 27, 19, 0.12);
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.13em;
}

.turn {
  display: flex;
  gap: 13px;
  margin-bottom: 28px;
  animation: turn-in 0.55s var(--ease) both;
}

@keyframes turn-in {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.turn-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  margin-top: 2px;
  background: var(--red-deep);
  color: rgba(244, 236, 221, 0.9);
  font-family: var(--quote);
  font-size: 13px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(244, 236, 221, 0.22);
}

.turn-main {
  min-width: 0;
  flex: 1;
}

.turn-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.turn-meta .who {
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.turn-meta .meta-sep {
  width: 13px;
  height: 1px;
  background: rgba(36, 27, 19, 0.22);
}

.xu-quote {
  max-width: 760px;
  padding-left: 17px;
  border-left: 2px solid rgba(159, 52, 40, 0.62);
  color: var(--ink);
  font-family: var(--quote);
  font-size: 18.5px;
  line-height: 1.88;
  letter-spacing: 0.015em;
}

.xu-quote p + p {
  margin-top: 7px;
}

.xu-voice {
  max-width: 760px;
  margin: 11px 0 0 19px;
  color: var(--ink-soft);
  font-family: var(--quote);
  font-size: 16.5px;
  line-height: 1.8;
  letter-spacing: 0.015em;
}

.voice-label {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 4px;
  border: 1px solid rgba(159, 52, 40, 0.24);
  color: var(--red);
  font-family: var(--mono);
  font-size: 6px;
  font-style: normal;
  letter-spacing: 0.08em;
  vertical-align: 2px;
}

.starter-menu {
  max-width: 760px;
  margin: -2px 0 22px 44px;
  padding-top: 17px;
  border-top: 1px solid rgba(36, 27, 19, 0.11);
  animation: turn-in 0.65s 0.12s var(--ease) both;
}

.starter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.11em;
}

.starter-hint {
  color: rgba(36, 27, 19, 0.3);
}

.starter-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
  margin-top: 6px;
}

.starter-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid rgba(36, 27, 19, 0.11);
  background: transparent;
  text-align: left;
}

.starter-no {
  flex: 0 0 auto;
  color: var(--red);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.04em;
}

.starter-copy {
  flex: 1;
  min-width: 0;
}

.starter-copy strong {
  display: block;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color 0.22s ease;
}

.starter-copy small {
  display: block;
  margin-top: 1px;
  color: var(--ink-faint);
  font-family: var(--quote);
  font-size: 10px;
  line-height: 1.5;
}

.starter-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: rgba(36, 27, 19, 0.32);
  transition:
    color 0.22s ease,
    transform 0.3s var(--ease);
}

.starter-arrow svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

.starter-item:hover .starter-copy strong {
  color: var(--red-deep);
}

.starter-item:hover .starter-arrow {
  color: var(--red);
  transform: translate(2px, -2px);
}

.archive-aside {
  margin: 12px 0 0 19px;
  padding: 8px 12px;
  border-left: 1px solid rgba(159, 52, 40, 0.3);
  background: rgba(159, 52, 40, 0.055);
  color: var(--ink-faint);
  font-size: 10px;
  line-height: 1.7;
}

.archive-aside strong {
  display: block;
  margin-bottom: 2px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.turn-user {
  display: flex;
  justify-content: flex-end;
  margin: 18px 0 27px;
  animation: turn-in 0.45s var(--ease) both;
}

.user-bubble {
  max-width: min(76%, 540px);
  padding: 10px 15px;
  background: #241a13;
  color: rgba(244, 236, 221, 0.9);
  font-size: 12px;
  line-height: 1.7;
  border-radius: 2px 2px 0 2px;
  word-break: break-word;
}

.typing-turn {
  margin-left: 44px;
  margin-bottom: 24px;
}

.typing-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
}

.typing-dots {
  display: inline-flex;
  gap: 4px;
}

.typing-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
  animation: typing-bounce 1.2s ease-in-out infinite;
}

.typing-dots i:nth-child(2) {
  animation-delay: 0.16s;
}

.typing-dots i:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes typing-bounce {
  0%,
  70%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  35% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

/* Chat controls */

.chat-controls {
  padding: 15px 34px 17px;
  border-top: 1px solid rgba(36, 27, 19, 0.13);
  background: rgba(247, 239, 226, 0.46);
}

.prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 9px;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.prompt-tip {
  color: rgba(36, 27, 19, 0.32);
}

.prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 25px;
}

.prompt-chip {
  padding: 5px 10px;
  border: 1px solid rgba(36, 27, 19, 0.19);
  background: transparent;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  transition:
    background 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease;
}

.prompt-chip:hover {
  border-color: var(--red);
  background: rgba(159, 52, 40, 0.07);
  color: var(--red-deep);
}

.chat-panel.is-busy .prompt-chip,
.chat-panel.is-busy .starter-item {
  opacity: 0.45;
  pointer-events: none;
}

.prompt-footnote {
  margin-top: 9px;
  color: rgba(36, 27, 19, 0.3);
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.05em;
}

/* ---------- Life / timeline ---------- */

.life-section {
  position: relative;
  scroll-margin-top: 70px;
  padding: 128px clamp(20px, 6vw, 92px) 112px;
  background:
    radial-gradient(circle at 78% 22%, rgba(157, 84, 40, 0.1), transparent 31%),
    #0a0806;
  border-top: 1px solid rgba(236, 226, 208, 0.08);
  overflow: hidden;
}

.life-section::before {
  content: var(--watermark-secondary, "");
  position: absolute;
  right: -0.08em;
  top: 14%;
  color: transparent;
  font-family: var(--serif);
  font-size: clamp(120px, 20vw, 310px);
  font-weight: 600;
  letter-spacing: -0.08em;
  writing-mode: vertical-rl;
  -webkit-text-stroke: 1px rgba(236, 226, 208, 0.035);
  pointer-events: none;
}

.section-kicker.light {
  color: rgba(236, 226, 208, 0.4);
}

.life-section .section-heading-row h2 {
  color: var(--paper-bright);
}

.life-section .section-heading-row h2 em {
  color: var(--amber);
}

.life-desc {
  color: rgba(236, 226, 208, 0.42);
}

.life-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  max-width: 1320px;
  margin: 54px auto 0;
  border-top: 1px solid rgba(236, 226, 208, 0.12);
  border-left: 1px solid rgba(236, 226, 208, 0.12);
}

.life-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 224px;
  padding: 24px 25px 22px;
  border: 0;
  border-right: 1px solid rgba(236, 226, 208, 0.12);
  border-bottom: 1px solid rgba(236, 226, 208, 0.12);
  background: transparent;
  color: var(--paper);
  text-align: left;
  overflow: hidden;
  transition:
    background 0.35s ease,
    color 0.35s ease;
}

.life-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.life-card:hover {
  background: rgba(215, 154, 91, 0.045);
}

.life-card:hover::after {
  transform: scaleX(1);
}

.life-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.life-era {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
}

.life-no {
  color: rgba(236, 226, 208, 0.22);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.life-card h3 {
  margin: 22px 0 11px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: var(--paper-bright);
}

.life-quote {
  max-width: 280px;
  color: rgba(236, 226, 208, 0.58);
  font-family: var(--quote);
  font-size: 14px;
  line-height: 1.8;
}

.life-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 20px;
  color: rgba(236, 226, 208, 0.34);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  transition: color 0.25s ease;
}

.life-link svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  transition: transform 0.3s var(--ease);
}

.life-card:hover .life-link {
  color: var(--amber);
}

.life-card:hover .life-link svg {
  transform: translate(2px, -2px);
}

.life-swipe {
  display: none;
}

.life-foot {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 30px;
  width: 100%;
  max-width: 1320px;
  margin: 30px auto 0;
}

.life-foot p {
  color: var(--amber);
  font-family: var(--quote);
  font-size: clamp(17px, 1.6vw, 21px);
  letter-spacing: 0.02em;
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  padding: 86px clamp(24px, 6vw, 92px) 30px;
  background: #070504;
  border-top: 1px solid rgba(236, 226, 208, 0.08);
  overflow: hidden;
}

.footer-mark {
  position: absolute;
  right: 4%;
  top: -90px;
  color: transparent;
  font-family: var(--serif);
  font-size: 300px;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(215, 154, 91, 0.09);
  pointer-events: none;
  transform: rotate(-5deg);
}

.footer-quote {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  color: var(--paper-bright);
  font-family: var(--serif);
  font-size: clamp(42px, 6.1vw, 88px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: end;
  max-width: 1320px;
  margin: 66px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(236, 226, 208, 0.1);
}

.footer-brand {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.14em;
}

.footer-brand-block p + p {
  margin-top: 4px;
  color: rgba(236, 226, 208, 0.3);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.footer-note {
  color: rgba(236, 226, 208, 0.34);
  font-size: 9px;
  line-height: 1.9;
  letter-spacing: 0.03em;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  max-width: 1320px;
  margin: 46px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(236, 226, 208, 0.07);
  color: rgba(236, 226, 208, 0.22);
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.05em;
}

.footer-bottom p:first-child {
  max-width: 70%;
}

/* ---------- Drawer ---------- */

.drawer-root {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  pointer-events: none;
}

.drawer-root.is-open {
  visibility: visible;
  pointer-events: auto;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(6, 4, 3, 0.7);
  opacity: 0;
  backdrop-filter: blur(4px);
  transition: opacity 0.45s ease;
  cursor: default;
}

.drawer-root.is-open .drawer-backdrop {
  opacity: 1;
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(550px, 100%);
  height: 100%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 20%),
    var(--paper);
  color: var(--ink);
  box-shadow: -30px 0 100px rgba(0, 0, 0, 0.42);
  transform: translateX(102%);
  transition: transform 0.55s var(--ease);
}

.drawer-root.is-open .drawer-panel {
  transform: none;
}

.drawer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex: 0 0 auto;
  padding: 25px 32px 18px;
  border-bottom: 1px solid rgba(36, 27, 19, 0.15);
}

.drawer-top-words p {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.13em;
}

.drawer-top-words span {
  display: block;
  margin-top: 4px;
  color: var(--ink-faint);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.drawer-close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  margin-top: -5px;
  border: 1px solid rgba(36, 27, 19, 0.24);
  background: transparent;
  color: var(--ink-soft);
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.drawer-close svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

.drawer-close:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
  color: var(--paper);
}

.drawer-body {
  flex: 1;
  min-height: 0;
  padding: 34px 38px 58px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.drawer-kicker {
  color: var(--red);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.13em;
}

.drawer-title {
  margin: 9px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.drawer-sub {
  max-width: 340px;
  margin: 14px 0 30px;
  color: var(--ink-faint);
  font-size: 10px;
  line-height: 1.8;
}

.source-list {
  border-top: 1px solid rgba(36, 27, 19, 0.14);
}

.source-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
  padding: 23px 0 25px;
  border-bottom: 1px solid rgba(36, 27, 19, 0.13);
}

.source-no {
  padding-top: 4px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.07em;
}

.source-text {
  color: var(--ink);
  font-family: var(--quote);
  font-size: 17.5px;
  line-height: 1.98;
  letter-spacing: 0.012em;
}

.drawer-end {
  margin-top: 28px;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1.9;
  letter-spacing: 0.04em;
}

.drawer-empty {
  color: var(--ink-faint);
  font-size: 12px;
}

.drawer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex: 0 0 auto;
  padding: 14px 32px;
  border-top: 1px solid rgba(36, 27, 19, 0.14);
  background: rgba(247, 239, 226, 0.6);
}

.drawer-bottom p {
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.05em;
}

.drawer-bottom button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid rgba(36, 27, 19, 0.28);
  background: transparent;
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.08em;
  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}

.drawer-bottom button span {
  font-family: var(--mono);
  font-size: 10px;
}

.drawer-bottom button:hover {
  color: var(--red);
  border-color: var(--red);
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .hero {
    padding-left: clamp(24px, 4.8vw, 62px);
    padding-right: clamp(24px, 4.8vw, 62px);
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.02fr) minmax(330px, 0.98fr);
  }

  .hero-title {
    font-size: clamp(60px, 8vw, 108px);
  }

  .talk-section,
  .life-section {
    padding-left: clamp(20px, 4.8vw, 62px);
    padding-right: clamp(20px, 4.8vw, 62px);
  }

  .talk-layout {
    grid-template-columns: 268px minmax(0, 1fr);
    height: 700px;
  }

  .talk-side {
    padding-left: 20px;
    padding-right: 20px;
  }

  .chat-scroll,
  .chat-controls {
    padding-left: 28px;
    padding-right: 28px;
  }
}

@media (max-width: 960px) {
  .hero {
    min-height: auto;
    padding-top: 122px;
    padding-bottom: 26px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
    align-items: center;
  }

  .hero-title {
    font-size: clamp(56px, 8.2vw, 84px);
  }

  .hero-title em {
    margin-left: 0.34em;
  }

  .hero-quote blockquote {
    font-size: 16.5px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .hero-facts {
    gap: 18px;
  }

  .hero-fact {
    min-width: 0;
  }

  .section-heading-row {
    gap: 34px;
  }

  .section-desc {
    width: min(300px, 34vw);
  }

  .talk-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    height: 690px;
  }

  .side-seal {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }

  .side-profile h3 {
    font-size: 25px;
  }

  .side-quote {
    font-size: 12px;
  }

  .chat-scroll {
    padding-top: 21px;
  }

  .xu-quote {
    font-size: 17px;
  }

  .life-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .life-card:nth-child(3n) {
    border-right: 1px solid rgba(236, 226, 208, 0.12);
  }
}

@media (min-width: 821px) and (max-height: 900px) {
  .hero {
    padding-top: 108px;
    padding-bottom: 22px;
  }

  .hero-title {
    margin-top: 22px;
    font-size: clamp(52px, 6.6vw, 92px);
  }

  .hero-title em {
    margin-left: 0.44em;
  }

  .hero-quote {
    margin-top: 23px;
    padding-left: 17px;
  }

  .hero-quote blockquote {
    font-size: clamp(15px, 1.3vw, 18px);
    line-height: 1.7;
  }

  .hero-quote figcaption {
    margin-top: 8px;
  }

  .hero-lede {
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.75;
  }

  .hero-actions {
    margin-top: 21px;
  }

  .button-primary {
    min-width: 220px;
    padding: 16px 24px;
    font-size: 14px;
  }

  .hero-art {
    max-width: 540px;
  }

  .portrait-slot {
    width: min(100%, 520px);
  }

  .hero-seal {
    width: 64px;
    height: 64px;
    font-size: 21px;
  }

  .hero-bottom {
    margin-top: 17px;
    padding-top: 14px;
  }

  .hero-fact p {
    font-size: 8.5px;
  }

}

@media (max-width: 820px) {
  .site-header {
    padding: 15px 20px;
  }

  .site-header.is-scrolled {
    padding-top: 11px;
    padding-bottom: 11px;
  }

  .site-nav {
    gap: 17px;
  }

  .hero {
    padding: 106px 22px 26px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-title {
    font-size: clamp(58px, 13vw, 92px);
  }

  .hero-quote {
    max-width: 580px;
    margin-top: 30px;
  }

  .hero-quote blockquote {
    font-size: clamp(16px, 3.4vw, 20px);
  }

  .hero-lede {
    max-width: 490px;
    margin-top: 20px;
  }

  .hero-actions {
    flex-direction: row;
    align-items: center;
    margin-top: 27px;
  }

  .hero-art {
    max-width: 440px;
    margin-top: 4px;
  }

  .portrait-slot {
    width: min(100%, 420px);
  }

  .hero::after {
    font-size: 230px;
  }

  .hero-bottom {
    margin-top: 12px;
    padding-top: 18px;
  }

  .hero-facts {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .hero-fact p {
    font-size: 8.5px;
  }

  .scroll-cue {
    display: none;
  }

  .section-heading-row {
    display: block;
    margin-top: 18px;
  }

  .section-heading-row h2 {
    font-size: clamp(38px, 7.6vw, 55px);
  }

  .section-desc {
    width: min(100%, 500px);
    margin-top: 18px;
    padding-bottom: 0;
  }

  .talk-section,
  .life-section {
    padding: 86px 18px 86px;
  }

  .talk-frame {
    margin-top: 30px;
  }

  .talk-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    height: 760px;
  }

  .talk-side {
    display: block;
    padding: 16px 18px 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(236, 226, 208, 0.09);
  }

  .side-profile {
    display: inline-flex;
    vertical-align: middle;
  }

  .side-seal {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .side-kicker {
    display: none;
  }

  .side-profile h3 {
    display: inline;
    margin: 0 7px 0 0;
    font-size: 21px;
  }

  .side-role {
    display: inline;
    font-size: 8px;
  }

  .side-quote,
  .side-note,
  .side-label {
    display: none;
  }

  .side-nav {
    display: block;
    margin-top: 12px;
  }

  .chapter-list {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .chapter-list::-webkit-scrollbar {
    display: none;
  }

  .chapter-item {
    flex: 0 0 auto;
    width: auto;
    gap: 7px;
    padding: 5px 9px;
    border: 1px solid rgba(236, 226, 208, 0.12);
    white-space: nowrap;
  }

  .chapter-item:last-child {
    border-bottom: 1px solid rgba(236, 226, 208, 0.12);
  }

  .chapter-item .chapter-title {
    font-size: 10px;
  }

  .chat-scroll {
    padding: 20px 20px 22px;
  }

  .starter-menu {
    margin-left: 36px;
  }

  .chat-controls {
    padding: 13px 20px 16px;
  }

  .prompt-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }

  .prompt-chips::-webkit-scrollbar {
    display: none;
  }

  .prompt-chip {
    flex: 0 0 auto;
    font-size: 9.5px;
  }

  .xu-quote {
    font-size: 17.5px;
    line-height: 1.9;
  }

  .life-grid {
    display: flex;
    gap: 0;
    margin-top: 34px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    border-bottom: 1px solid rgba(236, 226, 208, 0.12);
    scrollbar-width: none;
  }

  .life-grid::-webkit-scrollbar {
    display: none;
  }

  .life-card {
    flex: 0 0 clamp(280px, 72vw, 400px);
    min-height: 205px;
    scroll-snap-align: start;
    border-top: 1px solid rgba(236, 226, 208, 0.12);
  }

  .life-card:first-child {
    border-left: 1px solid rgba(236, 226, 208, 0.12);
  }

  .life-swipe {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    max-width: 1320px;
    margin: 12px auto 0;
    color: rgba(236, 226, 208, 0.46);
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.08em;
  }

  .life-swipe span {
    color: var(--amber);
    font-size: 10px;
  }

  .life-foot {
    margin-top: 18px;
  }

  .site-footer {
    padding-top: 66px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 46px;
  }

  .footer-note {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-top: 34px;
  }

  .footer-bottom p:first-child {
    max-width: 100%;
  }

  .drawer-panel {
    width: min(520px, 100%);
  }
}

@media (max-width: 560px) {
  .brand-words strong {
    font-size: 12px;
    letter-spacing: 0.09em;
  }

  .brand-words small {
    display: none;
  }

  .brand-seal {
    width: 31px;
    height: 31px;
    font-size: 17px;
  }

  .site-nav {
    gap: 13px;
    font-size: 10px;
  }

  .site-nav a:first-child {
    display: none;
  }

  .nav-archive {
    padding: 8px 10px;
    font-size: 9px;
  }

  .hero {
    padding-top: 94px;
  }

  .eyebrow {
    font-size: 7.5px;
    letter-spacing: 0.16em;
  }

  .hero-title {
    margin-top: 22px;
    font-size: clamp(54px, 16vw, 78px);
  }

  .hero-title em {
    margin-left: 0.22em;
  }

  .hero-quote {
    margin-top: 26px;
    padding-left: 15px;
  }

  .hero-quote blockquote {
    font-size: 15.5px;
    line-height: 1.8;
  }

  .hero-lede {
    font-size: 13.5px;
    line-height: 1.8;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-top: 24px;
  }

  .button-primary {
    width: 100%;
    max-width: 300px;
    min-height: 56px;
    font-size: 15px;
  }

  .hero-art {
    width: 100%;
    max-width: 380px;
    margin-top: 4px;
  }

  .portrait-slot {
    width: min(100%, 360px);
  }

  .art-kicker {
    display: none;
  }

  .hero-seal {
    top: 1%;
    right: 3%;
    width: 58px;
    height: 58px;
    font-size: 19px;
  }

  .art-caption {
    display: none;
  }

  .hero-facts {
    gap: 8px;
  }

  .hero-fact span {
    font-size: 6.5px;
  }

  .hero-fact p {
    font-size: 7.5px;
    line-height: 1.6;
  }

  .talk-section,
  .life-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .section-kicker {
    font-size: 7px;
    letter-spacing: 0.1em;
  }

  .section-heading-row h2 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .section-desc {
    font-size: 10.5px;
    line-height: 1.8;
    margin-top: 14px;
  }

  .talk-bar {
    padding: 0 16px;
    min-height: 52px;
    font-size: 7.5px;
  }

  .open-sign {
    display: none;
  }

  .talk-bar-tools {
    gap: 0;
  }

  .talk-layout {
    height: 700px;
  }

  .chat-scroll {
    padding: 17px 15px 18px;
  }

  .chat-rule {
    margin-bottom: 18px;
    font-size: 6.5px;
  }

  .chat-rule {
    gap: 10px;
  }

  .turn {
    gap: 9px;
    margin-bottom: 23px;
  }

  .turn-avatar {
    width: 27px;
    height: 27px;
    font-size: 11px;
  }

  .turn-meta {
    gap: 7px;
    font-size: 6.5px;
  }

  .turn-meta .who {
    font-size: 9px;
  }

  .xu-quote {
    padding-left: 12px;
    font-size: 16px;
    line-height: 1.88;
  }

  .xu-voice {
    margin-left: 13px;
    font-size: 15px;
    line-height: 1.8;
  }

  .starter-menu {
    margin-left: 36px;
    margin-bottom: 16px;
    padding-top: 13px;
  }

  .starter-head {
    font-size: 6.5px;
  }

  .starter-hint {
    display: none;
  }

  .starter-list {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 4px;
  }

  .starter-item {
    padding: 8px 0;
  }

  .starter-copy strong {
    font-size: 12.5px;
  }

  .starter-copy small {
    font-size: 9.5px;
  }

  .archive-aside {
    margin-left: 13px;
    padding: 7px 9px;
    font-size: 9px;
  }

  .user-bubble {
    max-width: 86%;
    font-size: 11.5px;
  }

  .typing-turn {
    margin-left: 36px;
  }

  .chat-controls {
    padding: 12px 15px 14px;
  }

  .prompt-head {
    margin-bottom: 7px;
    font-size: 6.5px;
  }

  .prompt-tip {
    display: none;
  }

  .prompt-chip {
    padding: 5px 8px;
    font-size: 9px;
  }

  .life-section::before {
    display: none;
  }

  .life-grid {
    margin-top: 28px;
  }

  .life-card {
    flex-basis: 82vw;
    min-height: 198px;
    padding: 20px 19px 18px;
  }

  .life-card h3 {
    font-size: 22px;
    margin-top: 18px;
  }

  .life-quote {
    font-size: 13px;
  }

  .life-link {
    padding-top: 16px;
  }

  .life-foot {
    align-items: flex-start;
    gap: 14px;
  }

  .site-footer {
    padding: 58px 18px 24px;
  }

  .footer-mark {
    font-size: 200px;
    top: -50px;
  }

  .footer-quote {
    font-size: clamp(38px, 11.6vw, 58px);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 36px;
  }

  .footer-note {
    grid-column: auto;
    grid-row: auto;
  }

  .footer-bottom {
    margin-top: 28px;
    font-size: 6px;
    line-height: 1.8;
  }

  .drawer-top {
    padding: 20px 20px 15px;
  }

  .drawer-body {
    padding: 26px 22px 38px;
  }

  .drawer-bottom {
    padding: 12px 20px;
  }

  .drawer-bottom p {
    display: none;
  }

  .drawer-bottom button {
    margin-left: auto;
  }

  .source-item {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    padding: 19px 0 21px;
  }

  .source-text {
    font-size: 16.5px;
    line-height: 1.95;
  }
}

@media (max-width: 370px) {
  .hero-title {
    font-size: 49px;
  }

  .side-profile h3 {
    font-size: 19px;
  }

  .chapter-item {
    padding: 5px 7px;
  }

  .talk-layout {
    height: 680px;
  }
}

/* Mobile chat-first layout */
@media (max-width: 820px) {
  .talk-section {
    padding: 12px 12px 24px;
  }

  .talk-section .section-intro {
    display: none;
  }

  .talk-frame {
    margin-top: 0;
  }

  .talk-layout {
    height: calc(100vh - 160px);
    height: clamp(380px, calc(100svh - 160px), 760px);
  }
}

@media (max-width: 600px) {
  .talk-side {
    padding: 8px 12px;
  }

  .side-profile {
    display: none;
  }

  .side-nav {
    margin-top: 0;
  }

  .chapter-list {
    padding-bottom: 0;
  }
}

@media (max-width: 380px) {
  .site-header {
    gap: 14px;
  }

  .site-nav {
    gap: 9px;
  }

  .site-nav a,
  .nav-archive {
    white-space: nowrap;
  }

  .nav-archive {
    padding: 7px 8px;
    font-size: 8.5px;
  }

  .brand-words strong {
    font-size: 11px;
    letter-spacing: 0.08em;
  }
}

/* ---------- Two-page flow / chat page ---------- */

.page[hidden] {
  display: none !important;
}

.scroll-cue {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.chat-open .site-header {
  background: rgba(13, 9, 7, 0.9);
  border-bottom-color: rgba(236, 226, 208, 0.1);
  backdrop-filter: blur(18px);
}

.page-chat {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: 100px 0 22px;
  background:
    radial-gradient(circle at 50% 18%, rgba(157, 85, 42, 0.14), transparent 38%),
    linear-gradient(180deg, #0e0a07 0%, #080605 100%);
}

.chat-shell {
  display: flex;
  flex-direction: column;
  width: 75vw;
  max-width: 1440px;
  margin: 0 auto;
  min-width: 0;
}

.chat-back {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px 2px;
  padding: 7px 12px;
  border: 1px solid rgba(236, 226, 208, 0.22);
  border-radius: 999px;
  background: rgba(20, 14, 10, 0.6);
  color: rgba(236, 226, 208, 0.7);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.08em;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.chat-back span {
  font-family: var(--mono);
  font-size: 12px;
}

.chat-back:hover {
  border-color: var(--amber);
  background: rgba(215, 154, 91, 0.08);
  color: var(--amber-bright);
}

.chat-window {
  display: grid;
  grid-template-rows: 58px minmax(0, 1fr) auto;
  height: min(740px, calc(100svh - 178px));
  min-height: 520px;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(236, 226, 208, 0.22);
  background:
    repeating-linear-gradient(0deg, rgba(100, 79, 54, 0.018) 0, rgba(100, 79, 54, 0.018) 1px, transparent 1px, transparent 5px),
    var(--paper);
  box-shadow:
    0 38px 100px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.chat-window-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 22px;
  background: #19130f;
  border-bottom: 1px solid rgba(236, 226, 208, 0.1);
  color: rgba(236, 226, 208, 0.76);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.chat-window-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-window-note {
  color: rgba(236, 226, 208, 0.34);
  font-size: 7px;
}

.chat-log {
  min-width: 0;
  min-height: 0;
  padding: 24px 26px 22px;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background:
    radial-gradient(circle at 78% 8%, rgba(255, 255, 255, 0.35), transparent 34%),
    var(--paper);
  scrollbar-width: thin;
  scrollbar-color: rgba(159, 52, 40, 0.45) rgba(36, 27, 19, 0.05);
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.chat-log::-webkit-scrollbar {
  width: 7px;
}

.chat-log::-webkit-scrollbar-track {
  background: rgba(36, 27, 19, 0.05);
}

.chat-log::-webkit-scrollbar-thumb {
  background: rgba(159, 52, 40, 0.38);
}

.chat-msg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: fit-content;
  max-width: min(84%, 780px);
  animation: turn-in 0.45s var(--ease) both;
}

.chat-msg.user {
  align-self: flex-end;
  flex-direction: row;
}

.chat-avatar {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid rgba(36, 27, 19, 0.15);
  background: #fffaf1;
  box-shadow: 0 3px 10px rgba(36, 27, 19, 0.1);
}

.chat-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.chat-msg.xu .chat-avatar img {
  object-position: 50% 32%;
}

.chat-msg.user .chat-avatar {
  width: 38px;
  height: 38px;
  background: #fff;
}

.chat-msg.user .chat-avatar img {
  object-fit: cover;
}

.chat-bubble {
  min-width: 0;
  padding: 13px 16px 12px;
  border: 1px solid rgba(36, 27, 19, 0.1);
  border-radius: 3px 13px 13px 13px;
  background: #fbf4e8;
  color: var(--ink);
  box-shadow: 0 2px 0 rgba(36, 27, 19, 0.035);
}

.chat-msg.user .chat-bubble {
  border-color: transparent;
  border-radius: 13px 3px 13px 13px;
  background: #241a13;
  color: rgba(244, 236, 221, 0.94);
  font-size: 13px;
  line-height: 1.75;
  word-break: break-word;
}

.chat-answer {
  color: var(--ink);
  font-family: var(--quote);
  font-size: 17px;
  line-height: 1.82;
  letter-spacing: 0.015em;
}

.chat-answer p + p {
  margin-top: 8px;
}

.chat-voice {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dotted rgba(36, 27, 19, 0.2);
  color: var(--ink-soft);
  font-family: var(--quote);
  font-size: 15px;
  line-height: 1.75;
}

.chat-aside {
  margin-top: 9px;
  padding: 7px 9px;
  border-left: 1px solid rgba(159, 52, 40, 0.35);
  background: rgba(159, 52, 40, 0.05);
  color: var(--ink-faint);
  font-size: 9px;
  line-height: 1.65;
}

.chat-aside strong {
  display: block;
  margin-bottom: 1px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 6px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.typing-bubble {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.05em;
}

.chat-composer {
  position: relative;
  padding: 13px 18px 14px;
  border-top: 1px solid rgba(36, 27, 19, 0.13);
  background: rgba(247, 239, 226, 0.65);
}

.question-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(36, 27, 19, 0.18);
  border-radius: 999px;
  background: #fbf5ea;
  color: rgba(36, 27, 19, 0.52);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.03em;
  text-align: left;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.question-toggle:hover {
  border-color: var(--red);
  background: #fffaf2;
  color: var(--ink);
}

.question-toggle[aria-expanded="true"] {
  border-color: var(--red);
  color: var(--ink);
}

.question-toggle svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  transition: transform 0.25s var(--ease);
}

.question-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.question-toggle:disabled {
  opacity: 0.55;
  cursor: wait;
}

.question-menu {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: calc(100% + 8px);
  z-index: 30;
  max-height: min(320px, 44vh);
  overflow: hidden;
  border: 1px solid rgba(36, 27, 19, 0.16);
  background: #fbf5ea;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.question-menu[hidden] {
  display: none;
}

#questionCount {
  margin-left: auto;
}

.question-menu-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(36, 27, 19, 0.12);
  background: #fbf5ea;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.question-options {
  max-height: calc(min(320px, 44vh) - 34px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.question-option {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid rgba(36, 27, 19, 0.08);
  background: transparent;
  color: var(--ink);
  text-align: left;
  transition: background 0.2s ease;
}

.question-option:last-child {
  border-bottom: 0;
}

.question-option strong {
  display: block;
  font-family: var(--serif);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.question-option small {
  display: block;
  margin-top: 2px;
  color: var(--ink-faint);
  font-family: var(--quote);
  font-size: 10px;
  line-height: 1.55;
}

.question-option:hover {
  background: rgba(159, 52, 40, 0.06);
}

.question-note {
  margin-top: 7px;
  color: rgba(36, 27, 19, 0.32);
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.04em;
}

@media (max-width: 820px) {
  .page-chat {
    padding: 68px 10px 12px;
  }

  .chat-shell {
    width: 100%;
    max-width: none;
  }

  .chat-back {
    margin-bottom: 8px;
    padding: 5px 10px;
    font-size: 9px;
  }

  .chat-window {
    height: calc(100svh - 120px);
    min-height: 0;
    max-height: 760px;
    grid-template-rows: 52px minmax(0, 1fr) auto;
  }

  .chat-window-head {
    padding: 0 14px;
    font-size: 7.5px;
  }

  .chat-window-note {
    display: none;
  }

  .chat-log {
    padding: 15px 13px 17px;
    gap: 13px;
  }

  .chat-msg {
    max-width: 91%;
    gap: 7px;
  }

  .chat-avatar {
    width: 34px;
    height: 34px;
  }

  .chat-msg.user .chat-avatar {
    width: 31px;
    height: 31px;
  }

  .chat-bubble {
    padding: 10px 12px 10px;
  }

  .chat-msg.user .chat-bubble {
    font-size: 12px;
  }

  .chat-answer {
    font-size: 15.5px;
    line-height: 1.82;
  }

  .chat-composer {
    padding: 10px 12px 11px;
  }

  .question-toggle {
    min-height: 44px;
    padding: 0 14px;
    font-size: 11.5px;
  }

  .question-menu {
    left: 8px;
    right: 8px;
    max-height: min(300px, 46vh);
  }

  .question-options {
    max-height: calc(min(300px, 46vh) - 33px);
  }

  .question-option {
    padding: 9px 12px;
  }

  .question-option strong {
    font-size: 12px;
  }

  .question-option small {
    font-size: 9.5px;
  }

  .question-note {
    font-size: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   绌烘ā鏉跨姸鎬?
   瀛楁鐣欑┖鏃讹紝瀵瑰簲浣嶇疆鏄剧ず涓€鏉¤櫄绾挎彁绀猴紱濉笂鍐呭鍗宠嚜鍔ㄦ秷澶便€?
   ========================================================= */

[data-hint]:empty::before {
  content: attr(data-hint);
  display: inline-block;
  max-width: 100%;
  padding-bottom: 0.08em;
  border-bottom: 1px dashed currentColor;
  color: currentColor;
  font-family: var(--mono);
  font-size: min(1em, 22px);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.25;
  opacity: 0.34;
  pointer-events: none;
  white-space: nowrap;
}

/* 澶ф爣棰樼暀绌烘椂淇濈暀涓よ瀛楃殑浣嶇疆锛屽苟鏍囧嚭杩欓噷瑕佸～浠€涔?*/
.hero-title span:empty,
.hero-title em:empty {
  display: flex;
  align-items: flex-end;
  min-height: 0.98em;
  border-bottom: 2px dashed rgba(236, 226, 208, 0.14);
}

.hero-title em:empty {
  border-bottom-color: rgba(215, 154, 91, 0.2);
}

.hero-title span:empty::before,
.hero-title em:empty::before {
  content: attr(data-hint);
  padding-bottom: 0.5em;
  border-bottom: 0;
  color: currentColor;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  opacity: 0.4;
  white-space: nowrap;
}

.hero-facts:empty::before {
  content: "寰呭～锛氫汉鐗╀笁鏍硷紙art.facts锛?;
  align-self: center;
  padding-bottom: 0.15em;
  border-bottom: 1px dashed rgba(215, 154, 91, 0.35);
  color: rgba(215, 154, 91, 0.55);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.chat-log.is-empty::before {
  content: "鍘熸枃寰呭～锛氬湪 source.paragraphs 鏀句笂绗竴娈碉紝杩欓噷灏变細鏄剧ず寮€鍦虹櫧銆?;
  align-self: center;
  max-width: 72%;
  margin: auto 0;
  color: rgba(36, 27, 19, 0.42);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  text-align: center;
}

.question-empty {
  padding: 22px 12px;
  color: rgba(36, 27, 19, 0.42);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.03em;
  text-align: center;
}

.drawer-empty {
  margin: 48px 0;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  text-align: center;
}
