/* =========================================================
   D'STAR CAFÉ · 杭韵 —— 空间漫游官网
   ========================================================= */
:root {
  --bg: #0c0a08;
  --bg-2: #15110d;
  --ink: #f3ece0;
  --ink-2: rgba(243, 236, 224, .68);
  --ink-3: rgba(243, 236, 224, .42);
  --line: rgba(243, 236, 224, .14);
  --gold: #e2c08a;
  --orange: #e0632d;
  --jade: #5e9c84;     /* 石绿 */
  --ochre: #b5543a;    /* 土红 */
  --lapis: #3d5fae;    /* 青金石 */
  --glass: rgba(18, 14, 11, .72);
  /* 西文在前、中文在后：拉丁字母走书卷气的衬线，汉字落到宋体 */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Songti SC", "Noto Serif SC", "Source Han Serif SC", "Noto Serif CJK SC", "STSong", "SimSun", Georgia, serif;
  --latin: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --kai: "Kaiti SC", "STKaiti", "KaiTi", "BiauKai", "Songti SC", serif;
  --sans: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: var(--latin);
  --todo-label: "待补充";
  --body: 15.5px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --pad: clamp(20px, 4.2vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  color: var(--ink); -webkit-text-size-adjust: 100%;
  /* 漆器般的暖黑底 + 一层极淡的纸纹 */
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .95  0 0 0 0 .85  0 0 0 0 .7  0 0 0 .055 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    radial-gradient(120% 90% at 50% 32%, #1a130d 0%, #0d0a08 58%, #070605 100%) fixed,
    var(--bg);
}
body {
  font-family: var(--serif); font-size: var(--body); line-height: 1.9; letter-spacing: .02em;
  overflow-x: hidden; -webkit-font-smoothing: antialiased; font-kerning: normal;
  text-spacing-trim: trim-start; text-autospace: normal; line-break: strict;
}
p { text-wrap: pretty; hanging-punctuation: allow-end; }
h1, h2, h3, h4 { text-wrap: balance; }
:lang(zh) p { text-align: justify; text-justify: inter-character; }
:lang(en) body, :lang(tr) body { --body: 16.5px; line-height: 1.62; letter-spacing: .005em; }
:lang(en) p, :lang(tr) p { hyphens: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
/* 标签：小号、加字距的衬线大写——博物馆展签的语气 */
.mono, .label { font-family: var(--serif); letter-spacing: .24em; text-transform: uppercase; font-size: 10.5px; line-height: 1.5; font-weight: 400; }
.serif { font-family: var(--serif); }
::selection { background: var(--orange); color: #fff; }

#track { position: relative; width: 1px; pointer-events: none; }

/* ---------- 载入 ---------- */
#loader {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: grid; place-content: center; justify-items: center; gap: 22px;
  transition: opacity .9s var(--ease), visibility .9s;
}
#loader.done { opacity: 0; visibility: hidden; }
.ld-mark { font-family: var(--serif); font-size: clamp(28px, 5vw, 44px); letter-spacing: .12em; }
.ld-mark span { font-size: .5em; margin-left: .7em; color: var(--gold); letter-spacing: .3em; vertical-align: middle; }
.ld-bar { width: 180px; height: 1px; background: var(--line); overflow: hidden; }
.ld-bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s; }
.ld-num { color: var(--ink-3); }

/* ---------- 顶栏 ---------- */
.topbar {
  position: fixed; z-index: 40; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 24px;
  padding: 18px var(--pad); pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo svg { width: 18px; height: 18px; fill: var(--gold); }
.logo b { font-family: var(--latin); font-weight: 400; letter-spacing: .2em; font-size: 14px; }
.logo span { color: var(--gold); font-size: 12px; letter-spacing: .32em; }
.wings { display: flex; gap: clamp(20px, 2.6vw, 40px); margin: 0 auto; }
.wings button { position: relative; padding: 6px 0; font-size: 13px; letter-spacing: .14em; color: var(--ink-2); transition: color .4s; white-space: nowrap; text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.wings button em { font-style: italic; font-family: var(--latin); font-size: 12px; letter-spacing: .04em; color: var(--gold); margin-right: 8px; }
.wings button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease); }
.wings button:hover, .wings button.on { color: var(--ink); }
.wings button.on::after { transform: scaleX(1); }
.langs { display: flex; align-items: center; }
.langs button { font-family: var(--latin); font-size: 11px; letter-spacing: .18em; padding: 4px 9px; color: var(--ink-3); transition: color .3s; }
.langs button + button { border-left: 1px solid var(--line); }
.langs button:hover { color: var(--ink); }
.langs button.on { color: var(--gold); }
.skip { font-size: 12px; letter-spacing: .16em; padding: 6px 0; color: var(--ink-2); white-space: nowrap; border-bottom: 1px solid var(--line); transition: color .3s, border-color .3s; }
.skip:hover { color: var(--ink); border-color: var(--gold); }

/* ---------- 舞台 ---------- */
body { background: transparent; }
#bg { position: fixed; inset: 0; z-index: 0; opacity: 0; pointer-events: none; will-change: opacity; }
#bgc { position: absolute; inset: 0; background: var(--bg); transition: background-color 1s var(--ease); }
#gl { position: fixed; inset: 0; width: 100vw; height: 100%; z-index: 1; pointer-events: none; display: block; }
#stage { position: fixed; inset: 0; overflow: hidden; z-index: 2; pointer-events: none; }

#veil { position: fixed; inset: 0; z-index: 60; background: var(--bg); opacity: 0; pointer-events: none; transition: opacity .35s ease; }
#veil.on { opacity: 1; }

.scene { position: absolute; inset: 0; visibility: hidden; contain: layout paint; }
.scene.vis { visibility: visible; }
.scene.panel, .scene.stages { will-change: opacity; }
.frame { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.frame img.fallback { display: none; width: 100%; height: 100%; object-fit: cover; }
.no-gl .frame img.fallback { display: block; }
.no-gl .scene.photo { background: var(--bg); }
.shade { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 50%, transparent 40%, rgba(12, 10, 8, .55) 100%),
    linear-gradient(180deg, rgba(12, 10, 8, .55) 0%, transparent 18%, transparent 62%, rgba(12, 10, 8, .8) 100%);
}
.scene[data-side="left"] .shade::after, .scene[data-side="right"] .shade::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(12, 10, 8, .72) 0%, rgba(12, 10, 8, .2) 42%, transparent 60%);
}
.scene[data-side="right"] .shade::after { transform: scaleX(-1); }

/* 章节文字 */
/* 章节文字：中文标题竖排成一列「题签」，正文横排在旁；西文则是眉题—标题—正文 */
.caption {
  position: absolute; z-index: 6; bottom: clamp(56px, 12vh, 132px); left: var(--pad);
  display: flex; align-items: flex-end; gap: clamp(22px, 2.4vw, 40px);
  will-change: opacity, transform;
}
.scene[data-side="right"] .caption { left: auto; right: calc(var(--pad) + 40px); flex-direction: row-reverse; }
.cap-body { width: min(400px, calc(100vw - 2 * var(--pad))); padding-bottom: .3em; }
.eyebrow { display: flex; align-items: center; gap: 14px; color: var(--gold); margin-bottom: 20px; }
.eyebrow b { font-family: var(--latin); font-style: italic; font-weight: 400; font-size: 17px; letter-spacing: .02em; }
.eyebrow i { width: 38px; height: 1px; background: currentColor; opacity: .55; flex: none; }
.eyebrow span { font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: rgba(226, 192, 138, .82); }
.caption h2, .panel-head h2 {
  font-family: var(--serif); font-weight: 600; letter-spacing: .1em; line-height: 1.22;
  font-feature-settings: "palt"; text-shadow: 0 2px 30px rgba(0, 0, 0, .45);
}
.caption h2 {
  writing-mode: vertical-rl; text-orientation: mixed; flex: none;
  font-size: clamp(34px, min(3.5vw, 5.6vh), 54px); letter-spacing: .16em; line-height: 1.32; white-space: nowrap;
}
.panel-head h2 { font-size: clamp(34px, 3.8vw, 54px); margin-bottom: 20px; }
.caption p, .panel-head p { color: rgba(243, 236, 224, .78); line-height: 2; letter-spacing: .045em; max-width: 25em; text-shadow: 0 1px 14px rgba(0, 0, 0, .65); }

/* 西文：标题横排、字重轻、字距收紧 */
:is(:lang(en), :lang(tr)) .caption { display: grid; width: min(500px, calc(100vw - 2 * var(--pad))); }
:is(:lang(en), :lang(tr)) .cap-body { display: contents; }
:is(:lang(en), :lang(tr)) .caption .eyebrow { order: 0; }
:is(:lang(en), :lang(tr)) .caption h2 { order: 1; }
:is(:lang(en), :lang(tr)) .caption p { order: 2; }
:is(:lang(en), :lang(tr)) .caption .chips, :is(:lang(en), :lang(tr)) .caption .paths { order: 3; }
:is(:lang(en), :lang(tr)) :is(.caption, .panel-head, .win-text, .st-copy) :is(h2, h3) { font-family: var(--latin); font-weight: 400; letter-spacing: -.005em; font-feature-settings: normal; }
:is(:lang(en), :lang(tr)) .caption h2 { writing-mode: horizontal-tb; font-size: clamp(36px, 4vw, 60px); line-height: 1.06; margin-bottom: 22px; max-height: none; }
:is(:lang(en), :lang(tr)) .panel-head h2 { font-size: clamp(40px, 4.4vw, 66px); line-height: 1.04; }
:is(:lang(en), :lang(tr)) :is(.caption, .panel-head) p { line-height: 1.62; letter-spacing: .005em; max-width: 30em; font-size: 16.5px; }
:is(:lang(en), :lang(tr)) .eyebrow span { letter-spacing: .3em; text-transform: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { font-size: 13px; letter-spacing: .08em; padding: 4px 0; color: var(--ink-2); border-bottom: 1px solid rgba(226, 192, 138, .35); margin-right: 14px; transition: border-color .3s, color .3s; }
.chip::before { content: "+"; color: var(--gold); margin-right: 8px; font-family: var(--latin); }
.chip:hover { color: var(--ink); border-color: var(--gold); }
.wing-tag { position: absolute; z-index: 6; top: 88px; left: var(--pad); color: var(--ink-3); will-change: opacity; }
.scene[data-side="right"] .wing-tag { left: auto; right: calc(var(--pad) + 40px); }

/* 入口的分路按钮 */
.paths { display: flex; gap: 28px; margin-top: 26px; flex-wrap: wrap; }
.path { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 0 0 10px; border-bottom: 1px solid rgba(226, 192, 138, .4); text-align: left; transition: border-color .3s, transform .5s var(--ease); }
.path:hover { border-color: var(--gold); transform: translateX(4px); }
.path b { font-weight: 600; font-size: 16px; letter-spacing: .08em; }
.path span { color: var(--gold); font-family: var(--latin); font-style: italic; font-size: 12.5px; letter-spacing: .02em; opacity: .85; }

/* ---------- 交互点 ---------- */
.hs {
  position: absolute; z-index: 3; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 10px;
  padding: 5px 16px 5px 5px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(12, 10, 8, .78), rgba(12, 10, 8, .5)); border: 1px solid rgba(226, 192, 138, .18);
  font-size: 13.5px; letter-spacing: .08em; white-space: nowrap; color: var(--ink);
  opacity: 0; pointer-events: none; scale: .8;
  transition: opacity .5s var(--ease), scale .5s var(--ease), border-color .3s, background .3s;
  transition-delay: calc(var(--i) * 90ms);
}
.scene.live .hs { opacity: 1; pointer-events: auto; scale: 1; }
.hs:hover, .hs:focus-visible { border-color: var(--gold); background: rgba(16, 13, 10, .78); outline: none; }
.hs .dot { position: relative; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(226, 192, 138, .55); }
.hs .dot::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(226, 192, 138, .8); }
.hs .dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--gold); opacity: 0; animation: ping 3.2s var(--ease) infinite; animation-delay: calc(var(--i) * .4s); }
.hs small { font-family: var(--latin); font-style: italic; font-size: 12px; letter-spacing: .02em; color: rgba(226, 192, 138, .75); }
:is(:lang(en), :lang(tr)) .hs small { font-style: normal; letter-spacing: .12em; }
.hs.beans .dot { background: rgba(224, 99, 45, .22); }
.hs.beans .dot::before { background: var(--orange); box-shadow: 0 0 10px var(--orange); }
.hs.beans .dot::after { border-color: var(--orange); }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 80%, 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- 深色章节通用 ---------- */
.panel { background: none; }
.panel-head { position: absolute; z-index: 6; top: clamp(92px, 15vh, 150px); left: var(--pad); width: min(560px, calc(100vw - 2 * var(--pad))); will-change: opacity, transform; }
.panel-head p { color: var(--ink-2); max-width: 32em; }

/* 横向轨道（种子到杯子 / 0→1） */
.rail { position: absolute; left: 0; bottom: clamp(48px, 10vh, 110px); display: flex; gap: clamp(14px, 2vw, 28px); padding: 0 var(--pad); will-change: transform; }
.card { flex: 0 0 auto; width: clamp(220px, 22vw, 320px); }
/* 龟兹石窟的拱形龛：卡片图片上缘做成拱 */
.card figure { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 50% 50% 3px 3px / 30% 30% 3px 3px; background: var(--bg-2); }
.card figure::after { content: ""; position: absolute; inset: 7px; border-radius: inherit; border: 1px solid rgba(226, 192, 138, .38); pointer-events: none; }
.card figure img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.4s var(--ease), filter 1s; filter: saturate(.85) brightness(.9); }
.card.in figure img { transform: scale(1); filter: none; }
.card figcaption { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-family: var(--latin); font-style: italic; font-size: 15px; color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.7); z-index: 1; }
.card h3 { font-family: var(--serif); font-weight: 600; font-size: 19px; letter-spacing: .1em; margin: 18px 0 6px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.card h3 span { font-family: var(--latin); font-style: italic; font-size: 12.5px; color: rgba(226, 192, 138, .8); letter-spacing: .02em; font-weight: 400; }
.card p { color: rgba(243, 236, 224, .7); font-size: 14px; line-height: 1.85; letter-spacing: .04em; }
:is(:lang(en), :lang(tr)) .card h3 { font-family: var(--latin); font-weight: 400; font-size: 21px; letter-spacing: 0; }
:is(:lang(en), :lang(tr)) .card h3 span { font-style: normal; letter-spacing: .12em; }
:is(:lang(en), :lang(tr)) .card p { font-size: 15px; line-height: 1.55; letter-spacing: 0; }
.card { opacity: .25; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.card.in { opacity: 1; transform: none; }

/* 时间线 */
.timeline .rail { align-items: flex-end; }
.tl-line { position: absolute; left: 0; right: 0; bottom: calc(clamp(48px, 10vh, 110px) + 168px); height: 1px; background: var(--line); }
.tl .yr { font-family: var(--latin); font-weight: 400; font-size: clamp(36px, 3.6vw, 54px); line-height: 1; color: var(--ink); margin-bottom: 16px; letter-spacing: -.01em; font-variant-numeric: lining-nums; white-space: nowrap; }
.tl .yr::after { content: ""; display: block; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); margin: 18px 0 0 1px; }
.tl figure { aspect-ratio: 4 / 3; border-radius: 3px; }
.tl figure::after { border-radius: 2px; }
.tl .sz { display: inline-block; font-family: var(--latin); font-style: italic; font-size: 13px; font-weight: 400; letter-spacing: .02em; color: var(--gold); margin-left: 10px; }
.tl.dim figure img { filter: grayscale(1) brightness(.75); }
.tl.next figure { display: grid; place-items: center; background: radial-gradient(circle at 50% 50%, rgba(61,95,174,.35), transparent 70%), var(--bg-2); border-style: dashed; }
.tl.next figure b { font-family: var(--serif); font-size: 64px; color: var(--ink); text-shadow: 0 0 40px var(--lapis); }
.tl.next .yr { color: var(--gold); }

/* 敢 楽 簡 東 */
.stages { transition: color 1s var(--ease); }
.st-glyph[data-east] span { color: transparent; }
.glyph-visual { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, rgba(94,156,132,.35), transparent 65%), #120e0b; }
.glyph-visual b { font-family: var(--serif); font-size: min(30vh, 22vw); color: var(--ink); opacity: .9; }
.stage { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 4vw; padding: 110px var(--pad) 60px; opacity: 0; pointer-events: none; transition: opacity .9s var(--ease); }
.stage.on { opacity: 1; pointer-events: auto; }
.st-glyph { font-family: var(--serif); font-weight: 700; font-size: min(42vh, 30vw); line-height: .9; letter-spacing: 0; position: relative; }
.st-glyph small { position: absolute; left: .08em; top: -1.8em; font-size: 12px; font-weight: 400; }
.st-copy h3 { font-family: var(--kai); font-size: clamp(26px, 2.7vw, 38px); font-weight: 400; margin: 16px 0 22px; line-height: 1.4; letter-spacing: .06em; }
.st-copy p { opacity: .8; margin-bottom: 14px; max-width: 26em; line-height: 2; letter-spacing: .045em; }
.st-copy .pic { font-size: 13.5px; opacity: .62; border-left: 1px solid currentColor; padding-left: 14px; line-height: 1.85; }
.st-copy blockquote { font-family: var(--kai); font-size: 21px; margin: 20px 0; letter-spacing: .06em; }
.st-copy blockquote cite { display: block; font-style: normal; font-size: 13px; opacity: .6; margin-top: 6px; font-family: var(--serif); }
:is(:lang(en), :lang(tr)) .st-copy h3 { font-style: italic; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.15; }
:is(:lang(en), :lang(tr)) .st-copy blockquote { font-family: var(--latin); font-style: italic; }
:is(:lang(en), :lang(tr)) .st-copy p { line-height: 1.6; letter-spacing: 0; max-width: 30em; }
.st-imgs { display: flex; gap: 12px; margin-top: 22px; }
.st-imgs img { width: clamp(90px, 9vw, 130px); aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.st-index { position: absolute; right: calc(var(--pad) + 40px); bottom: 48px; display: flex; gap: 18px; z-index: 7; }
.st-index b { font-family: var(--serif); font-size: 20px; opacity: .35; transition: opacity .4s; font-weight: 600; }
.st-index b.on { opacity: 1; }

/* 尾声 */
.finale .panel-head { top: auto; bottom: clamp(80px, 16vh, 160px); }
.finale .contact { display: grid; grid-template-columns: auto 1fr; gap: 10px 28px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; max-width: 30em; }
.finale .contact dt { color: var(--gold); font-size: 11px; letter-spacing: .24em; padding-top: 3px; }
.finale .contact dd { color: var(--ink-2); }
.foot { position: absolute; z-index: 6; left: var(--pad); right: calc(var(--pad) + 40px); bottom: 24px; display: flex; justify-content: space-between; color: var(--ink-3); }

/* 待补充 */
.todo { display: inline-flex; gap: 10px; align-items: baseline; font-size: 12.5px; color: var(--gold); border: 1px dashed rgba(226,192,138,.4); border-radius: 2px; padding: 8px 12px; margin-top: 12px; line-height: 1.65; text-align: left; }
.todo::before { content: var(--todo-label); font-size: 10px; letter-spacing: .2em; flex: none; opacity: .8; }
dd .todo, .contact .todo { margin: 0; padding: 1px 8px; }

/* ---------- 右侧导航 ---------- */
#dots { position: fixed; z-index: 30; right: calc(var(--pad) * .5); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 4px; }
#dots button { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 12px; height: 20px; padding-left: 8px; }
#dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); transition: background .3s, box-shadow .3s, transform .3s; }
#dots span { font-size: 12.5px; letter-spacing: .14em; color: var(--ink); opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .3s; white-space: nowrap; text-shadow: 0 1px 8px rgba(0,0,0,.8); }
#dots button.on i { background: var(--gold); box-shadow: 0 0 10px var(--gold); transform: scale(1.4); }
#dots button.on span, #dots button:hover span { opacity: 1; transform: none; }
#dots button:hover i { background: var(--ink); }
#dots .sep { height: 10px; }

#progress { position: fixed; z-index: 41; top: 0; left: 0; right: 0; height: 1px; }
#progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--gold), var(--orange)); }

#hint { position: fixed; z-index: 30; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--ink-3); transition: opacity .6s; }
#hint.off { opacity: 0; }
.mouse { width: 18px; height: 28px; border: 1px solid var(--ink-3); border-radius: 10px; display: grid; justify-items: center; padding-top: 5px; }
.mouse i { width: 2px; height: 6px; border-radius: 2px; background: var(--ink-2); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70%, 100% { transform: translateY(8px); opacity: 0; } }

/* 首屏 */
.hero-copy { position: absolute; z-index: 6; left: 0; right: 0; bottom: clamp(110px, 22vh, 220px); text-align: center; will-change: opacity, transform; }
.hero-copy .label { color: var(--gold); }
.hero-copy h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 3.2vw, 42px); letter-spacing: .34em; margin: 18px 0 14px; text-indent: .34em; font-feature-settings: "palt"; }
.hero-copy p { color: var(--ink-2); text-align: center; }
.hero-copy p i { display: inline-block; width: 28px; height: 1px; background: currentColor; opacity: .5; vertical-align: middle; margin: 0 16px; }
:is(:lang(en), :lang(tr)) .hero-copy h1 { font-family: var(--latin); font-weight: 400; font-style: italic; letter-spacing: .01em; text-indent: 0; font-size: clamp(30px, 3.6vw, 50px); }

/* ---------- 视窗 ---------- */
#win { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 4vh 4vw; }
#win[hidden] { display: none; }
.win-backdrop { position: absolute; inset: 0; background: rgba(8, 6, 5, .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .45s ease; }
#win.open .win-backdrop { opacity: 1; }
.win-card {
  position: relative; width: min(1080px, 100%); height: min(680px, 100%);
  display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden;
  border-radius: 4px; background: linear-gradient(160deg, #1b140e, #120e0a 60%); border: 1px solid rgba(226, 192, 138, .16);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
}
.win-visual { position: relative; background-color: #000; background-repeat: no-repeat; overflow: hidden; }
.win-visual > img { width: 100%; height: 100%; object-fit: cover; }
.win-visual .zoomed { position: absolute; inset: 0; background-repeat: no-repeat; transition: background-size 1.6s var(--ease); }
.win-text { padding: clamp(28px, 4vw, 52px); overflow-y: auto; overscroll-behavior: contain; }
.win-text .eyebrow { margin-bottom: 14px; }
.win-text h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.4; letter-spacing: .06em; margin-bottom: 18px; font-feature-settings: "palt"; }
.win-text .lede { font-family: var(--kai); font-size: 19px; color: var(--ink); margin-bottom: 22px; line-height: 1.85; letter-spacing: .04em; }
.win-text p { color: rgba(243, 236, 224, .74); margin-bottom: 14px; font-size: 15px; line-height: 2; letter-spacing: .04em; }
.win-text .verse { margin: 24px 0; padding-left: 16px; border-left: 1px solid var(--gold); font-family: var(--kai); font-size: 17px; color: var(--ink); letter-spacing: .06em; }
:is(:lang(en), :lang(tr)) .win-text .lede, :is(:lang(en), :lang(tr)) .win-text .verse { font-family: var(--latin); font-style: italic; letter-spacing: 0; line-height: 1.5; font-size: 20px; }
:is(:lang(en), :lang(tr)) .win-text p { font-size: 16px; line-height: 1.62; letter-spacing: 0; }
:is(:lang(en), :lang(tr)) .win-text h3 { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.1; }
.win-text .verse p { color: var(--ink); margin: 0 0 4px; }
.win-text dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; }
.win-text dt { color: var(--gold); font-size: 11px; letter-spacing: .2em; padding-top: 2px; }
.win-text .sw { display: flex; gap: 10px; margin: 18px 0 6px; flex-wrap: wrap; }
.win-text .sw span { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.win-text .sw i { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.win-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.35); border: 1px solid rgba(226,192,138,.3); z-index: 2; }
.win-close svg { width: 16px; height: 16px; stroke: var(--ink); stroke-width: 1.2; fill: none; }
.win-close:hover { border-color: var(--gold); }

/* 豆单 */
.win-card.beans { grid-template-columns: 300px 1fr; }
.bean-regions { background: radial-gradient(120% 70% at 0% 0%, rgba(224,99,45,.18), transparent 60%), #120e0b; padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
.bean-regions h3 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin: 8px 0 18px; }
.bean-regions button { text-align: left; padding: 12px 14px; border-radius: 2px; border: 1px solid transparent; color: var(--ink-2); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.bean-regions button small { font-family: var(--mono); font-size: 10px; color: var(--ink-3); letter-spacing: .08em; }
.bean-regions button.on { color: var(--ink); border-color: var(--line); background: rgba(243,236,224,.06); }
.bean-list { padding: clamp(28px, 3.4vw, 48px); overflow-y: auto; }
.bean-country { padding: 18px 0; border-bottom: 1px solid var(--line); }
.bean-country:first-child { padding-top: 0; }
.bean-country h4 { font-family: var(--serif); font-size: 19px; font-weight: 600; display: flex; gap: 12px; align-items: baseline; margin-bottom: 10px; }
.bean-country h4 span { font-family: var(--latin); font-style: italic; font-size: 13px; color: rgba(226,192,138,.8); letter-spacing: .02em; font-weight: 400; }
.bean-country ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.bean-country li { font-size: 13.5px; letter-spacing: .04em; padding: 4px 12px; border-radius: 2px; border: 1px solid var(--line); color: var(--ink); }
.bean-country .note { font-size: 13px; color: var(--jade); margin-top: 10px; }
.bean-list .todo { margin-top: 22px; }

/* ---------- 移动端 ---------- */
@media (max-width: 860px) {
  .wings { display: none; }
  .topbar { padding: 14px 18px; }
  .langs { margin-left: auto; }
  .logo span, .skip { display: none; }
  .st-copy { margin-top: 12px; }
  #dots { right: 8px; }
  #dots span { display: none; }
  .caption, .scene[data-side="right"] .caption { left: 20px; right: 28px; width: auto; bottom: 40px; display: grid; gap: 0; }
  .cap-body { display: contents; }
  .caption .eyebrow { order: 0; margin-bottom: 14px; } .caption h2 { order: 1; } .caption p { order: 2; } .caption .chips, .caption .paths { order: 3; }
  .caption h2 { writing-mode: horizontal-tb; max-height: none; letter-spacing: .1em; }
  .langs button { padding: 4px 6px; }
  .scene[data-side] .shade::after { background: linear-gradient(0deg, rgba(12,10,8,.9) 0%, rgba(12,10,8,.5) 32%, transparent 55%); transform: none; }
  .caption h2, .panel-head h2 { font-size: 30px; line-height: 1.28; margin-bottom: 12px; }
  :is(:lang(en), :lang(tr)) .caption h2, :is(:lang(en), :lang(tr)) .panel-head h2 { font-size: 34px; line-height: 1.06; }
  .caption p, .panel-head p { font-size: 14px; line-height: 1.9; }
  :is(:lang(en), :lang(tr)) :is(.caption, .panel-head) p { font-size: 15px; line-height: 1.55; }
  .wing-tag, .scene[data-side="right"] .wing-tag { top: 64px; left: 20px; right: auto; }
  .hs { padding: 4px 11px 4px 4px; font-size: 12.5px; gap: 7px; }
  .hs small { display: none; }
  .hs .dot { width: 18px; height: 18px; }
  .paths { flex-direction: column; }
  .panel-head { top: 78px; left: 20px; right: 28px; width: auto; }
  .rail { bottom: 36px; padding: 0 20px; }
  .card { width: 62vw; }
  .card figure { aspect-ratio: 4 / 4.2; }
  .tl-line { bottom: calc(36px + 150px); }
  .stage { grid-template-columns: 1fr; align-content: center; gap: 6px; padding: 80px 24px 90px; }
  .st-glyph { font-size: 26vh; }
  .st-copy h3 { font-size: 22px; margin: 6px 0 10px; }
  .st-copy p { font-size: 14px; line-height: 1.85; }
  .st-imgs img { width: 72px; }
  .st-index { left: 24px; right: auto; bottom: 34px; }
  .hero-copy { bottom: 120px; }
  .foot { right: 20px; left: 20px; font-size: 9px; }
  #win { padding: 0; }
  .win-card, .win-card.beans { width: 100%; height: 100%; border-radius: 0; grid-template-columns: 1fr; grid-template-rows: 38vh 1fr; }
  .win-card.beans { grid-template-rows: auto 1fr; }
  .bean-regions { flex-direction: row; flex-wrap: wrap; gap: 4px; padding: 64px 18px 14px; }
  .bean-regions h3 { width: 100%; font-size: 22px; margin: 0 0 6px; }
  .bean-regions .mono { display: none; }
  .bean-regions button { padding: 6px 12px; font-size: 13px; }
  .bean-regions button small { display: none; }
  .win-text { padding: 24px 22px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ---------- 豆单 → 单颗豆档案 ---------- */
.bean-country li:has(button) { padding: 0; }
.bean-country li button { padding: 4px 12px; letter-spacing: .04em; transition: background .2s, color .2s; }
.bean-country li:has(button):hover { border-color: rgba(226,192,138,.6); background: rgba(226,192,138,.08); }
.bean-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 26px; font-size: 13px; letter-spacing: .06em; }
.bean-bar button, .bean-bar a { color: var(--ink-2); text-decoration: none; }
.bean-bar button:hover, .bean-bar a:hover { color: var(--gold); }
.bean-list .bv { --gap: 28px; }
.bean-list .bv-name { font-size: clamp(28px, 3vw, 40px); }
.bean-list .bv-trace ol { grid-template-columns: 1fr; }
.bean-list .bv-trace ol::before { left: 5px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; background: linear-gradient(180deg, var(--gold), rgba(226,192,138,.15)); }
.bean-list .bv-trace li { padding: 0 0 14px 30px; grid-template-columns: auto auto 1fr; column-gap: 12px; align-items: baseline; }
.bean-list .bv-cols { grid-template-columns: 1fr; }
