/* ============================================================
   王奎甲 · 简历站 v2 —— MONO + ACID
   黑白灰主体 × 一点酸性绿 · 暗亮分区 · 巨字动效
   参考:olhalazarieva.com / landonorris.com 的动效语言
   ============================================================ */

@font-face {
  font-family: 'Archivo';
  src: url('assets/fonts/archivo-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('assets/fonts/archivo-var-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('assets/fonts/fraunces-var-italic.woff2') format('woff2');
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #0D0D0B;
  --ink-2: #171714;
  --paper: #FFFFFF;
  --paper-2: #F7F7F5;
  --t-dark: #F4F3EF;              /* 暗底上的文字 */
  --t-dark-soft: rgba(244, 243, 239, .68);
  --t-light-soft: #4E4C45;
  --gray: #8B887D;
  --acid: #C6F22E;                /* 唯一强调色:仅用于细线/文字/小标记 */
  --line-d: rgba(244, 243, 239, .16);
  --line-l: rgba(13, 13, 11, .16);

  --sans: 'Archivo', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans SC',
          'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --serif: 'Fraunces', 'Georgia', 'Songti SC', 'SimSun', serif;

  --container: 1480px;
  --gutter: clamp(20px, 4vw, 64px);
  --section-pad: clamp(84px, 12vh, 168px);
  --ease: cubic-bezier(.22, .61, .21, 1);
}

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

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--acid); color: var(--ink); }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }
img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 3000;
  background: var(--acid); color: var(--ink); padding: 10px 18px; font-size: 13px; font-weight: 700;
}
.skip-link:focus { left: 12px; }

.acid { color: var(--acid); font-style: normal; }

/* ---------- 无动效兜底 ---------- */
html.no-anim .reveal { opacity: 1 !important; transform: none !important; }
html.no-anim .hero-char { transform: none !important; }

/* ---------- 通用 reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   预加载器(浅色 · 字符依次升起 → 计数 → 幕布揭开)
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.pl-name {
  display: flex;
  font-size: clamp(56px, 10vw, 128px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: .02em;
  color: var(--ink);
}
.pl-mask { overflow: hidden; display: inline-block; }
.pl-char { display: inline-block; will-change: transform; transform: translateY(110%); }
.pl-sub {
  margin: 4px 0 0;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .44em;
  color: var(--gray);
  opacity: 0;
}
.pl-count {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .28em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-top: 26px;
}
.pl-bar {
  width: min(300px, 58vw);
  height: 2px;
  background: var(--line-l);
  overflow: hidden;
}
.pl-bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
}
html.no-anim .preloader { display: none; }
html.no-anim .preloader { display: none; }

/* ============================================================
   导航(浅色玻璃)
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-l);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-brand {
  display: flex; align-items: baseline; gap: 12px;
  text-decoration: none; font-weight: 800; color: var(--ink);
}
.nav-brand-mark { font-size: 13px; letter-spacing: .14em; }
.nav-brand-zh { font-size: 19px; letter-spacing: .05em; }

.nav-links {
  display: flex; gap: clamp(18px, 2.6vw, 40px);
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 13.5px; font-weight: 600; letter-spacing: .1em;
  color: var(--t-light-soft);
  padding-block: 6px; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--ink); transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current]::after {
  transform: scaleX(1); transform-origin: left;
}

.nav-toggle {
  display: none; width: 44px; height: 44px; border: none; background: none;
  cursor: pointer; padding: 10px;
}
.nav-toggle-bar {
  display: block; width: 100%; height: 2px; background: var(--ink);
  margin-block: 5px; transition: transform .35s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ============================================================
   首屏(暗)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 120px;
  padding-bottom: clamp(40px, 6vh, 84px);
  overflow: hidden;
}

.hero-inner { position: relative; z-index: 2; width: 100%; }

.hero-kicker {
  display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center;
  margin: 0 0 clamp(18px, 3vh, 34px);
}
.hero-kicker-tag {
  font-size: 11.5px; font-weight: 700; letter-spacing: .22em;
  color: var(--t-light-soft);
  border: 1px solid var(--line-l);
  background: var(--paper);
  padding: 7px 14px;
}
.hero-kicker-tag-a { color: var(--ink); background: var(--acid); border-color: var(--acid); }
.hero-kicker-tag-a b { font-size: 13px; margin-right: 6px; }

.hero-title {
  margin: 0;
  display: flex;
  font-weight: 900;
  line-height: .96;
  letter-spacing: -.01em;
  font-size: clamp(64px, 12.5vw, 176px);
}
.hero-char { display: inline-block; }
.hero-title .hero-char + .hero-char { margin-left: .012em; }

.hero-name-en {
  margin: clamp(10px, 2vh, 22px) 0 0;
  font-size: clamp(11px, 1.2vw, 15px);
  font-weight: 600; letter-spacing: .34em;
  color: var(--gray);
}

.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 80px);
  align-items: end;
  margin-top: clamp(34px, 6vh, 72px);
  padding-top: 26px;
  border-top: 1px solid var(--line-l);
}
.hero-intro {
  margin: 0;
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--t-light-soft);
  max-width: 34em;
}
.hero-intro strong { color: var(--ink); font-weight: 800; }

.hero-stats {
  margin: 0;
  display: grid; grid-template-columns: repeat(4, auto);
  gap: clamp(14px, 2vw, 36px); justify-content: end;
}
.hstat dt {
  font-size: 10.5px; letter-spacing: .2em; color: var(--gray);
  font-weight: 700; margin-top: 6px;
}
.hstat dd { margin: 0; font-size: clamp(13px, 1.15vw, 16px); font-weight: 800; white-space: nowrap; }
.hstat-a b {
  display: inline-block;
  background: var(--acid); color: var(--ink);
  font-size: .95em; padding: 0 .3em; margin-right: .3em;
}

/* 首屏右侧素材占位 */
.hero-art {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: clamp(240px, 26vw, 460px);
  z-index: 1;
  opacity: .9;
  mask-image: linear-gradient(to left, #000 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, #000 30%, transparent 100%);
}

/* 通用素材占位块(正式素材确定后整体替换) */
.placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(13, 13, 11, .05) 0 2px,
      transparent 2px 22px
    ),
    var(--paper-2);
  border-left: 1px solid var(--line-l);
  color: var(--gray);
}
.placeholder-tag {
  font-size: 10.5px; font-weight: 800; letter-spacing: .3em;
  border: 1px dashed rgba(13, 13, 11, .3);
  padding: 6px 12px;
  background: var(--paper);
}
.placeholder-note { font-size: 11px; letter-spacing: .2em; }

.hero-scroll {
  position: absolute; right: var(--gutter); bottom: 24px; z-index: 3;
  margin: 0; font-size: 11px; letter-spacing: .3em; font-weight: 700;
  color: var(--t-light-soft);
  display: flex; gap: 10px; align-items: center;
}
.hero-scroll span { animation: bob 1.8s var(--ease) infinite; display: inline-block; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* ============================================================
   绩效跑马灯(浅灰底)
   ============================================================ */
.ticker {
  overflow: hidden;
  background: var(--paper-2);
  border-block: 1px solid var(--line-l);
  color: var(--ink);
  padding-block: 11px;
}
.ticker-track {
  display: flex; align-items: center; gap: 36px;
  width: max-content;
  animation: marquee 26s linear infinite;
  will-change: transform;
}
.ticker-track span {
  font-size: 14px; font-weight: 800; letter-spacing: .12em; white-space: nowrap;
}
.ticker-track b {
  font-family: var(--serif); font-style: italic; font-weight: 700;
  font-size: 20px; margin-right: 6px;
  background: var(--acid);
  padding: 0 .22em;
}
.ticker-track i { font-style: normal; font-size: 9px; color: var(--gray); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   分区通用
   ============================================================ */
.section { padding-block: var(--section-pad); position: relative; }
.section-light { background: var(--paper); color: var(--ink); }
.section-dark  { background: var(--ink); color: var(--t-dark); }
.section-gray  { background: var(--paper-2); color: var(--ink); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(44px, 7vh, 92px);
}
.section-title {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 900; letter-spacing: .02em; line-height: 1;
}
.section-num {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: .5em; color: var(--gray); margin-right: .35em; vertical-align: .5em;
}
.section-en {
  font-size: .26em; font-weight: 700; letter-spacing: .3em;
  color: var(--gray); margin-left: .5em;
}
.section-note { margin: 0; font-size: 13px; letter-spacing: .1em; color: var(--gray); padding-bottom: 10px; }

/* ============================================================
   关键成果(亮)
   ============================================================ */
.counters {
  list-style: none; margin: 0 0 clamp(40px, 6vh, 72px); padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--ink);
}
.counter {
  padding: clamp(20px, 3vh, 34px) clamp(14px, 1.6vw, 28px) clamp(22px, 3vh, 36px) 0;
  border-bottom: 1px solid var(--line-l);
}
.counter:nth-child(3n+2), .counter:nth-child(3n+3) {
  border-left: 1px solid var(--line-l);
}
.counter-value {
  display: block;
  font-size: clamp(34px, 3.8vw, 58px);
  font-weight: 900; line-height: 1; letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  border-bottom: 3px solid var(--acid);
  width: fit-content; padding-bottom: 8px; margin-bottom: 12px;
}
.counter-label { font-size: 13px; color: var(--t-light-soft); letter-spacing: .04em; }
.counter-label b { letter-spacing: .18em; }

.hl-story p {
  margin: 0;
  font-size: clamp(16px, 1.6vw, 21px);
  font-weight: 600; line-height: 1.75;
  max-width: 34em;
}
.hl-story b {
  font-weight: 900;
  box-shadow: inset 0 -0.34em var(--acid);
}

/* ============================================================
   项目经历(浅灰 · 核心)
   ============================================================ */
.xp {
  border-top: 1px solid var(--line-l);
  padding-block: clamp(36px, 5.5vh, 64px);
}
.xp:first-of-type { border-top: 2px solid var(--ink); }
.xp-head { margin-bottom: clamp(22px, 3.4vh, 38px); }
.xp-when {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px;
}
.xp-time {
  font-size: 14px; font-weight: 800; letter-spacing: .1em;
  color: var(--ink);
}
.xp-badge {
  font-size: 11px; font-weight: 700; letter-spacing: .18em;
  color: var(--ink); background: var(--acid);
  padding: 4px 10px;
}
.xp-org {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 900; letter-spacing: .01em; line-height: 1.2;
}
.xp-role {
  font-size: .5em; font-weight: 700; letter-spacing: .2em;
  color: var(--gray); margin-left: 1em; vertical-align: middle;
}
.xp-proj {
  margin: 0;
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 700; color: var(--t-light-soft); letter-spacing: .03em;
}
.xp-proj-status {
  font-size: 12px; font-weight: 700; letter-spacing: .16em;
  color: var(--t-light-soft);
  border: 1px solid var(--line-l); padding: 4px 10px; margin-left: 14px;
  vertical-align: middle;
}

.xp-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3.5vw, 64px);
}
.xp-block-title {
  margin: 0 0 14px;
  font-size: 17px; font-weight: 800; letter-spacing: .05em;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.xp-block-title .acid {
  font-size: 10.5px; letter-spacing: .2em; font-weight: 700;
  background: var(--acid); color: var(--ink); padding: 3px 8px;
}
.xp-block-desc { margin: 0 0 12px; font-size: 14px; color: var(--t-light-soft); }

.xp-points { list-style: none; margin: 0; padding: 0; }
.xp-points li {
  position: relative; padding-left: 1.6em; margin-block: 10px;
  font-size: 15px; color: var(--t-light-soft);
}
.xp-points li::before { content: '//'; position: absolute; left: 0; top: .1em; color: var(--gray); font-weight: 700; font-size: .85em; }
.xp-points strong, .xp-points b { color: var(--ink); font-weight: 800; }

/* ---------- 资料片卡片廊 ---------- */
.hall { margin-top: clamp(30px, 4.5vh, 52px); }
.hall-title {
  margin: 0 0 16px;
  font-size: 13px; font-weight: 800; letter-spacing: .18em; color: var(--gray);
}
.hall-title span {
  margin-left: 12px; font-weight: 600; letter-spacing: .1em;
  font-size: 11px; color: var(--t-light-soft);
  border: 1px solid var(--line-l); padding: 3px 8px;
}
.hall-track {
  display: flex; gap: 14px;
  list-style: none; margin: 0; padding: 4px 4px 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--gray) transparent;
}
.hall-card {
  flex: 0 0 clamp(250px, 24vw, 330px);
  scroll-snap-align: start;
  border: 1px solid var(--line-l);
  background: var(--paper);
  padding: 20px 20px 22px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.hall-card:hover { border-color: var(--ink); transform: translateY(-4px); }
.hall-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .2em; color: var(--gray); }
.hall-name { margin: 0; font-size: 20px; font-weight: 900; letter-spacing: .02em; }
.hall-type { font-size: 12.5px; color: var(--t-light-soft); }
.hall-metric {
  margin-top: auto;
  font-size: 12.5px; font-weight: 800; letter-spacing: .04em;
  color: var(--ink); background: var(--acid);
  padding: 4px 10px;
  width: fit-content;
}
.hall-points { list-style: none; margin: 4px 0 0; padding: 0; }
.hall-points li {
  font-size: 12.5px; color: var(--t-light-soft); margin-block: 4px;
  padding-left: 1.1em; position: relative;
}
.hall-points li::before { content: '—'; position: absolute; left: 0; color: var(--gray); }

/* ---------- 独立时期一行 ---------- */
.xp-mini .xp-mini-line {
  margin: 6px 0 0;
  font-size: 15px; color: var(--t-light-soft);
  max-width: 62em;
}

/* ============================================================
   档案(白)
   ============================================================ */
.profile-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px) clamp(24px, 4vw, 80px);
}
.profile-title {
  margin: 0 0 18px;
  font-size: 13px; font-weight: 800; letter-spacing: .2em; color: var(--gray);
}
.edu-list { margin: 0; border-top: 2px solid var(--ink); }
.edu { padding-block: 14px; border-bottom: 1px solid var(--line-l); }
.edu dt { font-size: 16px; font-weight: 800; }
.edu dd {
  margin: 2px 0 0; font-size: 13px; color: var(--t-light-soft);
  display: flex; justify-content: space-between; gap: 12px;
}
.edu-time { font-weight: 700; letter-spacing: .06em; white-space: nowrap; }

.fact-list { margin: 0; border-top: 2px solid var(--ink); }
.fact {
  display: grid; grid-template-columns: 56px 1fr; gap: 12px;
  padding-block: 12px; border-bottom: 1px solid var(--line-l); font-size: 14px;
}
.fact dt { color: var(--gray); letter-spacing: .08em; font-size: 12.5px; padding-top: 2px; }
.fact dd { margin: 0; font-weight: 700; }

/* 独立作品紧凑列表 */
.indie-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.indie-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  grid-template-areas:
    "name arrow"
    "desc arrow";
  align-items: center; gap: 2px 8px;
  padding: 14px 0; border-bottom: 1px solid var(--line-l);
  text-decoration: none;
  transition: padding-left .3s var(--ease);
}
.indie-list a:hover { padding-left: 8px; }
.indie-list b { grid-area: name; font-size: 15.5px; font-weight: 800; }
.indie-list span { grid-area: desc; font-size: 12px; color: var(--gray); margin-top: 2px; }
.indie-list i { grid-area: arrow; font-style: normal; font-size: 17px; text-align: right; color: var(--gray); }

.record-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.record-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  grid-template-areas:
    "name arrow"
    "desc arrow";
  align-items: center; gap: 2px 8px;
  padding: 14px 0; border-bottom: 1px solid var(--line-l);
  text-decoration: none;
  transition: padding-left .3s var(--ease);
}
.record-list a:hover { padding-left: 8px; }
.record-list b { grid-area: name; font-size: 15.5px; font-weight: 800; }
.record-list span { grid-area: desc; font-size: 12px; color: var(--gray); }
.record-list i { grid-area: arrow; font-style: normal; font-size: 17px; text-align: right; color: var(--gray); }

/* ============================================================
   联系(暗 · 巨字)
   ============================================================ */
.section-contact { padding-bottom: clamp(64px, 9vh, 120px); }
.contact-giant {
  margin: 0 0 clamp(36px, 5vh, 64px);
  font-size: clamp(38px, 7vw, 96px);
  font-weight: 900; line-height: 1.12; letter-spacing: .01em;
}
.contact-giant-line { display: block; }
.contact-giant-acid {
  color: var(--ink);
  box-shadow: inset 0 -0.22em var(--acid);
  width: fit-content;
}
.contact-giant-dot {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  color: var(--gray);
}

.contact-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
}
.btn-copy {
  appearance: none;
  border: 1px solid var(--ink);
  background: none; color: var(--ink);
  font-family: var(--sans); font-size: 14.5px; font-weight: 700; letter-spacing: .06em;
  padding: 16px 26px; cursor: pointer; text-align: left;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn-copy:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-copy[data-state="ok"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-copy[data-state="fail"] { border-style: dashed; color: var(--t-light-soft); }

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  background: var(--paper);
  color: var(--gray);
  border-top: 1px solid var(--line-l);
  padding-block: 26px;
}
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-inner p { margin: 0; font-size: 11.5px; letter-spacing: .16em; font-weight: 600; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  .hero-art { width: 200px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0; z-index: 880;
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px;
    padding: 96px var(--gutter) var(--gutter);
    background: var(--paper);
    opacity: 0; visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s;
  }
  .nav-links li { width: 100%; border-bottom: 1px solid var(--line-l); }
  .nav-links a {
    display: block; color: var(--ink);
    font-size: clamp(24px, 6.5vw, 34px); font-weight: 900;
    padding: 14px 0;
  }
  body.nav-open .nav-links { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }

  .hero { padding-top: 104px; }
  .hero-art { width: 100%; opacity: .35; }
  .hero-foot { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, auto); justify-content: start; }

  .section-head { flex-direction: column; align-items: flex-start; }

  .counters { grid-template-columns: repeat(2, 1fr); }
  .counter:nth-child(3n+2), .counter:nth-child(3n+3) { border-left: none; }
  .counter:nth-child(2n) { border-left: 1px solid var(--line-l); }

  .xp-grid { grid-template-columns: 1fr; gap: 28px; }
  .xp-role { display: block; margin: 6px 0 0; }
  .xp-proj-status { display: inline-block; margin: 8px 0 0; }

  .profile-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   减少动效
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  .hero-scroll span { animation: none; }
  .project-dialog[open] { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ============================================================
   打印(HR 留档)
   ============================================================ */
@media print {
  body { background: #fff; color: #000; }
  body::before, .cursor-dot, .cursor-ring, .site-header, .ticker,
  .hero-art, .hero-scroll, .btn-copy, .hall-title span { display: none !important; }
  .hero { min-height: auto; padding-top: 24px; }
  .hero-title { font-size: 56px; }
  .hero-intro, .xp-points li, .record-list span, .counter-label { color: #333; }
  .counter-value, .contact-giant { color: #000; }
  .contact-giant-acid, .acid, .hl-story b { color: #000; box-shadow: none; }
  .section { padding-block: 26px; page-break-inside: avoid; }
  .section-dark, .section-gray { background: #fff; color: #000; }
  .xp-points strong, .xp-points b, .hero-intro strong { color: #000; }
  .record-list a, .indie-list a { break-inside: avoid; }
  .record-list a::after, .indie-list a::after { content: ' (' attr(href) ')'; font-size: 9px; color: #666; word-break: break-all; }
}
