/* =========================================================
   Leon — 作品索引
   四套主题（obsidian / indigo / light / sand）
   所有颜色走变量，切换主题不重排、不闪
   ========================================================= */

/* ---------- 主题变量 ---------- */
:root,
:root[data-theme="obsidian"] {
  color-scheme: dark;
  --bg: #06070B;
  --bg-2: #0A0C12;
  --panel: #0E1016;
  --ink: #F0F2F7;
  --ink-2: #C4CAD7;
  --muted: #7E8697;
  --dim: #4C5464;
  --line: rgba(240, 242, 247, 0.08);
  --line-2: rgba(240, 242, 247, 0.15);
  --accent: #7FD8FF;
  --accent-2: #A8E9C6;
  --glow-a: rgba(96, 136, 255, 0.42);
  --glow-b: rgba(178, 120, 255, 0.32);
  --grain-op: 0.14;
  --veil-a: rgba(6, 7, 11, 0.55);
  --veil-b: rgba(6, 7, 11, 0.94);
  --hero-grad-a: #ffffff;
  --hero-grad-b: #8E9AAE;
  --shadow-card: 0 30px 80px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(0, 0, 0, 0.6);
  --video-filter: contrast(1.08) saturate(0.9) brightness(1.18);
}

:root[data-theme="indigo"] {
  color-scheme: dark;
  --bg: #060A14;
  --bg-2: #0A1120;
  --panel: #0C1322;
  --ink: #E9F0FF;
  --ink-2: #B9C6E0;
  --muted: #7486A6;
  --dim: #46536C;
  --line: rgba(180, 205, 255, 0.09);
  --line-2: rgba(180, 205, 255, 0.17);
  --accent: #5B8CFF;
  --accent-2: #6FE3D0;
  --glow-a: rgba(60, 110, 255, 0.44);
  --glow-b: rgba(90, 220, 220, 0.22);
  --grain-op: 0.12;
  --veil-a: rgba(6, 10, 20, 0.55);
  --veil-b: rgba(6, 10, 20, 0.94);
  --hero-grad-a: #F2F6FF;
  --hero-grad-b: #7E92BC;
  --shadow-card: 0 30px 80px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(0, 0, 0, 0.55);
  --video-filter: contrast(1.06) saturate(1.02) brightness(1.12);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F4F6F9;
  --bg-2: #EEF1F6;
  --panel: #FFFFFF;
  --ink: #101319;
  --ink-2: #333B49;
  --muted: #626C7D;
  --dim: #98A1B0;
  --line: rgba(16, 19, 25, 0.09);
  --line-2: rgba(16, 19, 25, 0.16);
  --accent: #2F6BFF;
  --accent-2: #1AA391;
  --glow-a: rgba(72, 132, 255, 0.16);
  --glow-b: rgba(160, 118, 255, 0.12);
  --grain-op: 0.035;
  --veil-a: rgba(244, 246, 249, 0.35);
  --veil-b: rgba(244, 246, 249, 0.9);
  --hero-grad-a: #101319;
  --hero-grad-b: #5C687C;
  --shadow-card: 0 24px 60px rgba(16, 24, 40, 0.18), 0 0 0 1px rgba(16, 24, 40, 0.06);
  --video-filter: grayscale(1) contrast(1.15) brightness(1.55) invert(1);
  --video-op: 0.42;
  --tint-op: 0.74;
}

:root[data-theme="sand"] {
  color-scheme: light;
  --bg: #F7F3EB;
  --bg-2: #F2ECE1;
  --panel: #FFFCF7;
  --ink: #221E18;
  --ink-2: #4A4137;
  --muted: #7B7061;
  --dim: #A89C8B;
  --line: rgba(34, 30, 24, 0.1);
  --line-2: rgba(34, 30, 24, 0.18);
  --accent: #B4632A;
  --accent-2: #4E7A5E;
  --glow-a: rgba(226, 160, 96, 0.2);
  --glow-b: rgba(120, 160, 130, 0.14);
  --grain-op: 0.06;
  --veil-a: rgba(247, 243, 235, 0.35);
  --veil-b: rgba(247, 243, 235, 0.92);
  --hero-grad-a: #221E18;
  --hero-grad-b: #7A6B58;
  --shadow-card: 0 24px 60px rgba(90, 70, 45, 0.2), 0 0 0 1px rgba(90, 70, 45, 0.08);
  --video-filter: grayscale(1) contrast(1.05) brightness(1.5) invert(1);
  --video-op: 0.34;
  --tint-op: 0.84;
}

:root {
  --pad: clamp(20px, 4.6vw, 68px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Inter Tight", "SF Pro Display", -apple-system, BlinkMacSystemFont,
    "Segoe UI Variable Display", "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Consolas,
    "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.6s var(--ease), color 0.6s var(--ease);
}

body.is-locked { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* 语言切换：data-lang 决定显示哪一份文案 */
:root[data-lang="en"] .lang-zh { display: none; }
/* 英文模式下，作品名本身已是英文，右侧的英文小标签会重复，隐藏 */
:root[data-lang="en"] .row__name em { display: none; }

/* ---------- 载入 ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--pad);
  transition: transform 1s var(--ease), opacity 0.6s ease;
}
.loader.is-done { transform: translateY(-101%); opacity: 0.9; }
.loader__track {
  width: 100%;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.loader__track i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.15s var(--ease);
}
.loader.is-running .loader__track i { transform: scaleX(1); }
.loader__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* ---------- 全局纹理 ---------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: var(--grain-op);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 6s steps(6) infinite;
}
@keyframes grainShift {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-2%, 1%); }
  40% { transform: translate(1%, -2%); }
  60% { transform: translate(-1%, 2%); }
  80% { transform: translate(2%, 1%); }
}

.glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 620px;
  height: 620px;
  margin: -310px 0 0 -310px;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--glow-a) 0%, transparent 58%),
    radial-gradient(circle, var(--glow-b) 0%, transparent 72%);
  pointer-events: none;
  z-index: 80;
  opacity: 0;
  mix-blend-mode: screen;
  will-change: transform;
  transition: opacity 0.7s ease;
}
:root[data-theme="light"] .glow,
:root[data-theme="sand"] .glow { mix-blend-mode: multiply; opacity: 0; }
body.has-pointer .glow { opacity: 1; }

.progress {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 1px;
  z-index: 100;
}
.progress i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--accent));
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--pad);
  background: linear-gradient(180deg, var(--bg) 0%, transparent 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav__mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  flex: 0 0 auto;
}
.nav__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 12px var(--accent);
}
.nav__links {
  display: flex;
  gap: clamp(16px, 2.4vw, 34px);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.nav__links a { transition: color 0.3s ease; }
.nav__links a:hover { color: var(--ink); }

.nav__tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* 主题切换 */
.switcher { position: relative; }

.switcher__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 9px 0 7px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.switcher__btn:hover { border-color: var(--line-2); background: var(--line); color: var(--ink); }
.switcher__nm { line-height: 1; }
.chev {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: 0.55;
  transition: transform 0.3s var(--ease);
}
.switcher.is-open .chev { transform: rotate(180deg); }

.sw {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  flex: 0 0 auto;
}
.sw--obsidian { background: linear-gradient(135deg, #06070B 42%, #7FD8FF); }
.sw--indigo   { background: linear-gradient(135deg, #060A14 42%, #5B8CFF); }
.sw--light    { background: linear-gradient(135deg, #F4F6F9 42%, #2F6BFF); }
.sw--sand     { background: linear-gradient(135deg, #F7F3EB 42%, #B4632A); }

.menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  padding: 5px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.16);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.28s var(--ease);
  z-index: 70;
}
.switcher.is-open .menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.menu__i {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 12.5px;
  letter-spacing: 0.01em;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.menu__i:hover { background: var(--line); color: var(--ink); }
.menu__i.is-on { color: var(--ink); }
.menu__i.is-on::after {
  content: "";
  margin-left: auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* 语言切换 */
.seg {
  display: flex;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
}
.seg button {
  min-width: 30px;
  height: 24px;
  padding: 0 7px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.seg button.is-on { background: var(--ink); color: var(--bg); }
.seg button:hover:not(.is-on) { color: var(--ink); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(18px, 3.6vh, 44px);
  padding: clamp(96px, 14vh, 148px) var(--pad) clamp(24px, 4vh, 40px);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: -3%;
  will-change: transform;
  transition: transform 0.6s var(--ease);
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: var(--video-op, 0.95);
  filter: var(--video-filter);
  transform: scale(1.03);
  transition: filter 0.6s var(--ease), opacity 0.6s var(--ease);
}
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(115% 78% at 50% 6%, transparent 0%, var(--veil-a) 52%, var(--veil-b) 92%),
    linear-gradient(180deg, var(--veil-a) 0%, transparent 30%, var(--veil-b) 100%);
  transition: background 0.6s var(--ease);
}
/* 亮色主题：视频只当极淡的光影，由底色主导，避免反色后发浑 */
.hero__tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--bg);
  opacity: var(--tint-op, 0);
  transition: opacity 0.6s var(--ease), background 0.6s var(--ease);
}

.hero__inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}

.eyebrow {
  margin: 0 0 clamp(18px, 3vh, 34px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--muted);
}

/* 逐字 transform 会破坏 background-clip:text 的渐变裁切（Chrome 实测会渲染成残缺形状），
   所以标题整体做「自下而上揭开」，不再拆分字符。 */
.hero__title {
  margin: 0;
  font-size: clamp(4.2rem, 23vw, 24rem);
  font-weight: 800;
  line-height: 0.84;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, var(--hero-grad-a) 0%, var(--hero-grad-b) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  clip-path: inset(0 0 105% 0);
  transform: translateY(0.06em);
  opacity: 0;
  transition: clip-path 1.15s var(--ease), transform 1.15s var(--ease), opacity 0.5s ease;
}
.hero__title.is-in {
  clip-path: inset(-25% -5% -25% -5%);
  transform: translateY(0);
  opacity: 1;
}

.hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(24px, 6vw, 90px);
  padding-top: clamp(24px, 4vh, 40px);
}
.hero__lead {
  margin: 0;
  font-size: clamp(1.05rem, 1.45vw, 1.32rem);
  line-height: 1.62;
  color: var(--ink-2);
  font-weight: 400;
  max-width: 22em;
}
.hero__bio {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.9;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: right;
  text-transform: none;
  white-space: nowrap;
}

.hero__foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--dim);
}
.scrollcue {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.scrollcue i {
  display: block;
  width: 1px;
  height: 26px;
  background: linear-gradient(180deg, var(--muted), transparent);
  animation: drop 2.2s var(--ease) infinite;
}
@keyframes drop {
  0% { transform: scaleY(0.2); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- 跑马灯带 ---------- */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(10px, 1.6vh, 16px) 0;
  background: var(--bg);
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  width: max-content;
  animation: slide 46s linear infinite;
}
.ticker__track span {
  font-family: var(--font-mono);
  font-size: clamp(10px, 0.95vw, 12px);
  letter-spacing: 0.28em;
  color: var(--dim);
  white-space: nowrap;
}
.ticker__track i {
  font-style: normal;
  color: var(--accent);
  opacity: 0.7;
}
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 区块通用 ---------- */
section { padding: clamp(72px, 12vh, 150px) var(--pad); }

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: clamp(28px, 5vh, 54px);
}
.sec-title {
  margin: 0;
  font-size: clamp(1.9rem, 4.2vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.sec-note { margin: 0; color: var(--dim); }

/* ---------- 作品索引 ---------- */
.index { padding-top: clamp(60px, 10vh, 120px); }

.rows { border-top: 1px solid var(--line); }

.row {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr auto 88px 44px;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding: clamp(20px, 3.4vh, 34px) 6px clamp(20px, 3.4vh, 34px) 14px;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.45s var(--ease), padding-left 0.45s var(--ease);
}
.rows:hover .row { opacity: 0.32; }
.rows:hover .row:hover { opacity: 1; }
.row:hover { padding-left: 28px; }

.row__num {
  font-family: var(--font-mono);
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.14em;
  transition: color 0.4s ease;
}
.row__name {
  display: flex;
  align-items: baseline;
  gap: clamp(10px, 1.6vw, 20px);
  min-width: 0;
}
.row__name b {
  font-size: clamp(1.5rem, 3.6vw, 2.9rem);
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}
.row__name em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.4s ease;
  white-space: nowrap;
}
.row__meta {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.row__year { color: var(--dim); font-size: 10px; }
.row__arrow {
  justify-self: end;
  font-size: 18px;
  color: var(--dim);
  transition: transform 0.5s var(--ease), color 0.4s ease;
}
.row:hover .row__num { color: var(--accent); }
.row:hover .row__name em { color: var(--muted); }
.row:hover .row__arrow { transform: translate(4px, -4px); color: var(--ink); }

.row__line {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease);
}
.row:hover .row__line { transform: scaleX(1); }

.index__foot {
  margin: clamp(34px, 6vh, 62px) 0 0;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 12px;
  max-width: 62ch;
  line-height: 1.85;
}

/* ---------- hover 预览窗 ---------- */
.hovercard {
  position: fixed;
  left: 0;
  top: 0;
  width: clamp(240px, 24vw, 360px);
  aspect-ratio: 16 / 10;
  z-index: 70;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.92);
  transition: opacity 0.4s var(--ease), transform 0.55s var(--ease);
  will-change: transform;
}
.hovercard.is-on { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1); }

.hovercard__inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  box-shadow: var(--shadow-card);
}
.hc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease, transform 6s linear;
  transform: scale(1);
}
.hc.is-on { opacity: 1; transform: scale(1.06); }
.hovercard__tag {
  position: absolute;
  left: 10px;
  bottom: 9px;
  padding: 3px 7px;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--ink-2);
  background: var(--bg);
  opacity: 0.88;
  backdrop-filter: blur(4px);
  border: 1px solid var(--line-2);
}

/* ---------- 关于 ---------- */
.about {
  border-top: 1px solid var(--line);
  min-height: clamp(520px, 74vh, 900px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.about__text {
  margin: 0;
  font-size: clamp(1.35rem, 2.7vw, 2.35rem);
  font-weight: 500;
  line-height: 1.52;
  letter-spacing: -0.02em;
  color: var(--dim);
}
.about__text span { transition: color 0.5s ease; }
.about__text span.lit { color: var(--ink); }

.about__side {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  max-width: 340px;
  justify-self: end;
  width: 100%;
}
.stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.stat b {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat span { color: var(--muted); letter-spacing: 0.1em; font-size: 10px; }

/* ---------- 在别处 ---------- */
.elsewhere {
  border-top: 1px solid var(--line);
  padding: clamp(72px, 12vh, 140px) var(--pad) clamp(26px, 4vh, 40px);
}
.elsewhere__row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3.4vw, 52px);
  padding-bottom: clamp(44px, 9vh, 90px);
}
.link-line {
  position: relative;
  font-size: clamp(1.05rem, 1.9vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  padding-bottom: 4px;
}
.link-line i { font-style: normal; color: var(--dim); transition: color 0.3s; }
.link-line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--line-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.link-line:hover { color: var(--ink); }
.link-line:hover i { color: var(--accent); }
.link-line:hover::after { transform: scaleX(1); }

.elsewhere__base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 10px;
}

/* ---------- 入场 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.32s; }
.reveal[data-delay="4"] { transition-delay: 0.44s; }

/* ---------- 静态检查模式（?static） ---------- */
.is-static .loader { display: none; }
.is-static .reveal { opacity: 1; transform: none; transition: none; }
.is-static .hero__title { clip-path: none; transform: none; opacity: 1; transition: none; }
.is-static .about__text span { color: var(--ink); }
.is-static .hc { transform: none; }
.is-static[data-only="index"] .hero,
.is-static[data-only="index"] .about,
.is-static[data-only="index"] .elsewhere,
.is-static[data-only="index"] .ticker,
.is-static[data-only="about"] .hero,
.is-static[data-only="about"] .index,
.is-static[data-only="about"] .elsewhere,
.is-static[data-only="about"] .ticker,
.is-static[data-only="elsewhere"] .hero,
.is-static[data-only="elsewhere"] .index,
.is-static[data-only="elsewhere"] .about,
.is-static[data-only="elsewhere"] .ticker { display: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__side { max-width: none; }
  .row { grid-template-columns: 40px 1fr 34px; }
  .row__meta, .row__year { display: none; }
  .row__name { flex-direction: column; gap: 6px; }
  .row__name b { font-size: clamp(1.6rem, 8vw, 2.2rem); }
  .hovercard { display: none; }
  .nav__links { display: none; }
  .hero__bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero__bio { text-align: left; white-space: normal; }
  .elsewhere__base { flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .hero__title { font-size: clamp(4rem, 26vw, 7rem); line-height: 0.9; }
  .hero__foot .mono:nth-child(2) { display: none; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .switcher__nm { display: none; }
  .switcher__btn { padding: 0 8px; }
  .nav { gap: 10px; padding: 14px var(--pad); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__title { clip-path: none; transform: none; opacity: 1; }
  html { scroll-behavior: auto; }
}
