/* ═══════════════════════════════════════════════════
   MONOCHROME DESIGN SYSTEM — Black / White / Gray
   ═══════════════════════════════════════════════════ */

/* ── Local Fonts ── */
@font-face{
  font-family:'Roboto Flex';
  src:url('../fonts/roboto-flex.woff2') format('woff2');
  font-weight:100 1000;
  font-stretch:25% 151%;
  font-optical-sizing:auto;
  font-display:swap;
}

/* ── Reset & Variables ── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --bg: #F5F5F5;
  --surface: #FFFFFF;
  --border: #E0E0E0;
  --text: #111111;
  --text2: #555555;
  --text3: #888888;
  --text4: #AAAAAA;
  --accent: #111111;
  --hover-bg: rgba(0,0,0,0.04);
  --glass-bg: rgba(255,255,255,0.45);
  --glass-border: rgba(0,0,0,0.06);
  --font-display: 'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,sans-serif;
  --font-body: 'Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --max-w: 1440px;
  --teal:#5EC4B0;
  --purple-tag:#8B5CF6;
  --orange-tag:#E69E03;
}
html{scroll-behavior:smooth}
body{
  font-family:var(--font-body);
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
  overflow-x:hidden;
}
.container{max-width:var(--max-w);margin:0 auto;padding:0 60px}

.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}

/* ── Header — Floating Glass ── */
.site-header{
  position:fixed;top:20px;left:50%;transform:translateX(-50%);
  z-index:100;
  width:calc(100% - 120px);max-width:var(--max-w);
  background:rgba(255,255,255,0.4);
  backdrop-filter:blur(40px) saturate(1.6);
  -webkit-backdrop-filter:blur(40px) saturate(1.6);
  border:1px solid rgba(0,0,0,0.05);
  border-radius:20px;
  box-shadow:0 8px 40px rgba(0,0,0,0.04),0 2px 12px rgba(0,0,0,0.02);
  transition:all .3s ease;
}
.site-header.scrolled{
  background:rgba(255,255,255,0.6);
  box-shadow:0 4px 24px rgba(0,0,0,0.05),0 1px 6px rgba(0,0,0,0.02);
}
.site-header .container{
  display:flex;justify-content:space-between;align-items:center;
  height:60px;padding:0 28px;
}
.site-header .logo{
  font-family:var(--font-display);font-size:18px;color:var(--text);
  letter-spacing:-.3px;font-weight:600;
  text-decoration:none;
  display:inline-flex;align-items:center;gap:10px;
}
.logo-en{letter-spacing:2px}
.logo-dot{
  display:inline-block;width:4px;height:4px;border-radius:50%;
  background:var(--text3);opacity:.4;
}
.logo-cn{letter-spacing:1px}
.site-header nav{display:flex;gap:4px}
.site-header nav a{
  display:inline-flex;align-items:center;justify-content:center;
  padding:7px 18px;border-radius:10px;
  font-size:13px;font-weight:500;color:var(--text2);
  text-decoration:none;
  background:rgba(255,255,255,0.2);
  border:1px solid transparent;
  transition:all .25s cubic-bezier(.4,0,.2,1);
  cursor:pointer;
}
.site-header nav a:hover{
  color:var(--text);
  background:rgba(0,0,0,0.04);
  border-color:rgba(0,0,0,0.06);
}
.site-header nav a.active{
  color:var(--text);font-weight:600;
  background:rgba(0,0,0,0.06);
  border-color:rgba(0,0,0,0.08);
}

/* ── Hero Section ── */
.hero{
  position:relative;overflow:hidden;
  min-height:100vh;
  display:flex;align-items:center;
  background:transparent;
}
.hero::before{
  content:'';position:absolute;top:0;left:0;width:100%;height:100%;
  background:radial-gradient(ellipse at 70% 40%,rgba(0,0,0,0.03) 0%,transparent 60%);
  pointer-events:none;
}
#threadsCanvas{
  position:fixed;top:0;left:0;width:100%;height:100%;
  z-index:1;pointer-events:none;
  filter:blur(3px);
  opacity:.55;
}
.hero .container{
  position:relative;z-index:3;
  display:flex;align-items:center;
  width:100%;padding-top:100px;padding-bottom:100px;
  gap:60px;
}
.hero-left{flex:1.1}
.hero-name-small{
  font-size:13px;font-weight:500;color:var(--text4);
  letter-spacing:2px;margin-bottom:8px;text-transform:uppercase;
}
.hero-name{
  font-family:'Roboto Flex',sans-serif;
  font-size:clamp(72px,9vw,140px);
  color:var(--text);
  line-height:.95;
  letter-spacing:-.03em;
  margin-bottom:16px;
  white-space:nowrap;        /* Text Pressure 字符放大时保持单行 */
  overflow:visible;
}
.proximity-letter{
  display:inline-block;
  font-variation-settings:'wght' 180,'wdth' 100,'opsz' 144;
  /* JS 用 lerp 做弹性平滑，关掉 CSS 过渡避免双重补间导致的延迟 */
  transition:none !important;
  will-change:font-size,font-variation-settings,letter-spacing;
}
.hero-tagline{
  font-size:15px;color:var(--text3);line-height:1.7;
  max-width:380px;
}
.hero-right{
  position:relative;flex-shrink:0;
  width:540px;height:540px;
}
/* ── Orbit Images — 3D 旋转作品画廊 ── */
.orbit-scene{
  position:absolute;inset:-60px;
  perspective:900px;perspective-origin:50% 50%;
  pointer-events:none;
}
.orbit-back{z-index:3}
.orbit-front{z-index:6}
.orbit-ring{
  position:absolute;width:100%;height:100%;
  transform-style:preserve-3d;
  transform:rotate(-20deg) rotateX(20deg);
}
.orbit-item{
  position:absolute;
  width:80px;height:80px;
  top:50%;left:50%;margin:-40px 0 0 -40px;
  overflow:hidden;
  opacity:.65;transition:opacity .4s;
}
.orbit-item img{width:100%;height:100%;object-fit:cover;display:block}
.orbit-item.front{opacity:1}
.hero-portrait{
  position:absolute;left:50%;top:50%;
  width:340px;height:430px;border-radius:50%;overflow:hidden;
  transform:translate(-50%,-50%);
  pointer-events:auto;z-index:4;
}
.portrait-inner{width:100%;height:100%}
.portrait-inner img{width:100%;height:100%;object-fit:cover}
.hero-monogram{
  font-family:var(--font-display);font-size:140px;color:var(--text);
  line-height:1;opacity:.04;
  position:absolute;left:180px;top:80px;z-index:1;
}

/* ── Hero Entrance Animations ── */
@keyframes heroSlideDown{
  from{opacity:0;transform:translateX(-50%) translateY(-24px)}
  to{opacity:1;transform:translateX(-50%) translateY(0)}
}
.site-header.entrance-ready{animation:heroSlideDown .65s .1s cubic-bezier(.22,1,.36,1) both}

@keyframes heroScaleIn{
  from{opacity:0;transform:scale(.82);filter:blur(10px)}
  to{opacity:1;transform:scale(1);filter:blur(0)}
}
.hero-right.entrance-ready{animation:heroScaleIn .9s .65s cubic-bezier(.22,1,.36,1) both}
.hero-portrait.entrance-ready{animation:heroScaleIn .9s .65s cubic-bezier(.22,1,.36,1) both}

@keyframes heroLetterUp{
  0%{opacity:0;transform:translateY(90px) rotateX(-35deg);filter:blur(3px)}
  60%{opacity:1;transform:translateY(-8px) rotateX(2deg);filter:blur(0)}
  80%{transform:translateY(3px) rotateX(-1deg)}
  100%{opacity:1;transform:translateY(0) rotateX(0);filter:blur(0)}
}
.proximity-letter.entrance-ready{opacity:0}
.proximity-letter.entrance-ready.entrance-go{animation:heroLetterUp .8s cubic-bezier(.22,1,.36,1) both}

@keyframes heroFadeUp{
  from{opacity:0;transform:translateY(28px)}
  to{opacity:1;transform:translateY(0)}
}
.hero-name-small.entrance-ready{animation:heroFadeUp .55s .4s cubic-bezier(.22,1,.36,1) both}
.hero-tagline.entrance-ready{animation:heroFadeUp .55s 1.3s cubic-bezier(.22,1,.36,1) both}

/* ── Project Carousel — below Hero ── */
.carousel-section{
  padding:0 0 80px;
  position:relative;z-index:2;
}
.carousel-label{
  display:flex;align-items:baseline;gap:14px;
  padding:0 60px;max-width:var(--max-w);margin-left:auto;margin-right:auto;
  margin-bottom:32px;
}
.carousel-label-cn{
  font-family:var(--font-display);
  font-size:32px;font-weight:700;color:var(--text);
  letter-spacing:-.01em;
}
.carousel-label-en{
  font-size:12px;font-weight:500;color:var(--text3);
  letter-spacing:2px;text-transform:uppercase;
}
.carousel-wrap{
  position:relative;
}
.carousel-track{
  display:flex;gap:0;
  overflow-x:auto;overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
  cursor:grab;
  padding:0 calc(50vw - min(36vw,450px));
}
.carousel-track::-webkit-scrollbar{display:none}
.carousel-track:active{cursor:grabbing}
.carousel-slide{
  flex:0 0 72vw;max-width:900px;
  scroll-snap-align:center;
  position:relative;overflow:hidden;
  border-radius:20px;
  margin-right:20px;
  background:var(--surface);
  transform:scale(.86);
  filter:blur(4px);
  opacity:.5;
  transition:transform .45s cubic-bezier(.22,1,.36,1),
             filter .45s cubic-bezier(.22,1,.36,1),
             opacity .45s cubic-bezier(.22,1,.36,1);
}
.carousel-slide.is-center{
  transform:scale(1);
  filter:blur(0);
  opacity:1;
}
.carousel-slide img{
  width:100%;height:100%;
  aspect-ratio:16/10;
  object-fit:cover;display:block;
  transition:transform .6s cubic-bezier(.22,1,.36,1);
  transform:scale(1.02);
}
.carousel-slide.is-center:hover img{transform:scale(1.06)}
.carousel-slide-info{
  position:absolute;bottom:0;left:0;right:0;
  padding:40px 48px;
  background:linear-gradient(transparent,rgba(0,0,0,0.7));
  color:#fff;
}
.carousel-slide-info h3{
  font-family:var(--font-display);font-size:28px;
  font-weight:700;letter-spacing:-.02em;margin-bottom:4px;
}
.carousel-slide-info p{
  font-size:14px;opacity:.8;max-width:500px;
}
.carousel-controls{
  display:flex;align-items:center;justify-content:center;
  gap:24px;padding:28px 0 0;
}
.carousel-dots{display:flex;gap:8px}
.carousel-dot{
  position:relative;width:8px;height:8px;border-radius:50%;
  background:var(--border);
  transition:width .3s ease,background .3s ease;
  border:none;cursor:pointer;padding:0;outline:none;
  overflow:hidden;
}
.carousel-dot.active{
  background:var(--border);width:32px;border-radius:4px;
}
.carousel-dot.active::after{
  content:"";position:absolute;left:0;top:0;bottom:0;
  width:0;background:var(--text);
  animation:carouselProgress 5s linear infinite;
}
@keyframes carouselProgress{
  from{width:0}
  to{width:100%}
}
.carousel-arrow{
  width:40px;height:40px;border-radius:50%;
  background:var(--surface);
  border:1px solid var(--border);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;transition:all .25s ease;
  color:var(--text);font-size:16px;
  padding:0;outline:none;
}
.carousel-arrow:hover{background:var(--text);color:#fff;border-color:var(--text)}
.carousel-nav{
  display:flex;align-items:center;gap:12px;
  font-size:13px;color:var(--text3);
}

/* ── Manifesto Section ── */
.manifesto{
  padding:120px 60px;
  text-align:center;
  position:relative;z-index:2;
}
.manifesto-inner{max-width:800px;margin:0 auto}
.manifesto-line{
  font-family:var(--font-display);
  font-weight:700;color:var(--text);
  line-height:1.1;
  letter-spacing:.04em;
  margin-bottom:0.2em;
}
.manifesto-line.lg{font-size:clamp(48px,6vw,80px);margin-bottom:0.28em}
.manifesto-line.md{font-size:clamp(36px,5vw,60px);color:var(--text2);margin-bottom:0.34em}
.manifesto-line.sm{font-size:clamp(22px,2.5vw,34px);color:var(--text3);letter-spacing:.18em;margin-bottom:0.62em}

.manifesto-divider{
  width:40px;height:2px;background:var(--text);
  margin:56px auto;opacity:.25;
}
.manifesto-sub{
  font-size:15px;color:var(--text2);line-height:2;
  max-width:520px;margin:0 auto;
}
.manifesto-tags{
  display:flex;gap:12px;justify-content:center;flex-wrap:wrap;
  margin-top:40px;
}
.manifesto-tag{
  font-size:12px;font-weight:500;color:var(--text3);
  letter-spacing:.8px;padding:5px 0;
}

/* Decrypted Text — Manifesto */
.decrypt{
  display:inline-block;
  font-variant-numeric:tabular-nums;
  opacity:0;
  transition:opacity .3s ease;
}
.decrypt.active{opacity:1}
.dchar{
  display:inline-block;
  will-change:transform,opacity,filter;
  opacity:0;
  transform:translateY(8px);
  filter:blur(6px);
  color:var(--text3);
  transition:opacity .3s cubic-bezier(.22,1,.36,1),
             transform .3s cubic-bezier(.22,1,.36,1),
             filter .3s cubic-bezier(.22,1,.36,1),
             color .3s ease;
}
.dchar.scrambling{opacity:1;transform:translateY(0);filter:blur(2px)}
.dchar.locked{opacity:1;transform:translateY(0);filter:blur(0)}
.dchar.locked.lg{color:var(--text)}
.dchar.locked.md{color:var(--text2)}
.dchar.locked.sm{color:var(--text3)}

/* ── Projects Grid ── */
.projects-section{
  padding:80px 60px 120px;
  max-width:var(--max-w);
  margin:0 auto;
  position:relative;z-index:2;
}
.projects-header{
  display:flex;justify-content:space-between;align-items:flex-end;
  margin-bottom:48px;
}
.projects-label{
  font-size:11px;font-weight:500;color:var(--text4);
  letter-spacing:1.5px;text-transform:uppercase;margin-bottom:8px;
}
.projects-title{
  font-family:'Roboto Flex',var(--font-display);
  font-size:clamp(40px,5.5vw,72px);
  color:var(--text);
  letter-spacing:-.03em;
  line-height:1;
  text-transform:uppercase;
  font-variation-settings:'wght' 180,'opsz' 6;
  /* lock layout box so Text Pressure expansion doesn't push siblings */
  display:inline-block;vertical-align:top;height:1em;overflow:visible;
}
.projects-filter{
  display:flex;gap:2px;flex-wrap:nowrap;
  padding:5px;
  background:rgba(255,255,255,0.55);
  backdrop-filter:blur(24px) saturate(1.6);
  -webkit-backdrop-filter:blur(24px) saturate(1.6);
  border:1px solid rgba(0,0,0,0.06);
  border-radius:14px;
  position:relative;
  overflow:hidden;
}
.filter-btn{
  position:relative;z-index:1;
  display:flex;align-items:center;gap:7px;
  font-size:13px;font-weight:500;color:var(--text3);
  padding:9px 16px;border-radius:10px;
  background:transparent;border:none;
  cursor:pointer;transition:color .3s ease;
  font-family:inherit;white-space:nowrap;
}
.filter-btn:hover{color:var(--text)}
.filter-btn.active{color:var(--text)}
.filter-count{
  font-size:11px;font-weight:400;opacity:.45;
  font-variant-numeric:tabular-nums;
}
.filter-indicator{
  position:absolute;top:5px;bottom:5px;
  background:rgba(0,0,0,0.07);
  border-radius:10px;
  transition:transform .35s cubic-bezier(.2,.8,.2,1),width .35s cubic-bezier(.2,.8,.2,1);
  z-index:0;pointer-events:none;
  left:0;
}

.project-list{
  display:flex;flex-direction:column;gap:0;
}
.project-card{
  display:flex;align-items:center;justify-content:space-between;
  padding:40px 0;
  border-bottom:1px solid var(--border);
  cursor:pointer;
  text-decoration:none;color:inherit;
  transition:all .35s ease;
  position:relative;
  gap:40px;
}
.project-card:hover{
  padding-left:24px;
  background:rgba(0,0,0,0.015);
}
.project-card-left{flex:1;min-width:0}
.project-card-num{
  font-size:11px;font-weight:500;color:var(--text4);
  letter-spacing:1px;margin-bottom:8px;
}
.project-card-title{
  font-family:var(--font-display);
  font-size:clamp(32px,4vw,52px);
  font-weight:700;color:var(--text);
  letter-spacing:-.02em;line-height:1.1;
  transition:color .3s ease;
}
.project-card:hover .project-card-title{color:#000}
.project-card-desc{
  font-size:14px;color:var(--text3);
  margin-top:8px;max-width:480px;line-height:1.6;
}
.project-card-tags{
  display:flex;gap:8px;margin-top:12px;
}
.project-tag{
  font-size:11px;color:var(--text3);font-weight:500;
  padding:4px 12px;border-radius:20px;
  background:rgba(0,0,0,0.07);
  border:1px solid rgba(0,0,0,0.06);
  letter-spacing:.3px;
}
.project-card-thumb{
  flex-shrink:0;width:160px;height:110px;
  border-radius:10px;overflow:hidden;
  opacity:0;transform:translateX(20px);
  transition:all .4s cubic-bezier(.22,1,.36,1);
  background:var(--border);
}
.project-card:hover .project-card-thumb{
  opacity:1;transform:translateX(0);
}
.project-card-thumb img{
  width:100%;height:100%;object-fit:cover;
}

/* ── Footer ── */
.site-footer{
  padding:60px;text-align:center;
  border-top:1px solid var(--border);
  position:relative;z-index:2;
}
.footer-name{
  font-family:var(--font-display);font-size:20px;
  font-weight:700;color:var(--text);
}
.footer-info{
  font-size:13px;color:var(--text3);margin-top:8px;line-height:1.8;
}
.footer-links{
  display:flex;gap:20px;justify-content:center;
  margin-top:16px;
}
.footer-links a{
  font-size:13px;color:var(--text4);text-decoration:none;
  transition:color .25s ease;
}
.footer-links a:hover{color:var(--text)}
.footer-copy{font-size:11px;color:var(--text4);margin-top:24px}

/* ── Scroll Reveal ── */
.scroll-reveal{
  opacity:0;transform:translateY(40px);
  transition:opacity .8s cubic-bezier(.22,1,.36,1),
             transform .8s cubic-bezier(.22,1,.36,1);
}
.scroll-reveal.visible{opacity:1;transform:translateY(0)}

/* ── Responsive ── */
@media(max-width:1024px){
  .hero .container{flex-direction:column;text-align:center;gap:40px}
  .hero-left{flex:none}
  .hero-tagline{max-width:100%}
  .hero-right{width:340px;height:380px}
  .orbit-scene{inset:-30px}
  .orbit-item{width:60px;height:60px;margin:-30px 0 0 -30px}
  .hero-portrait{width:240px;height:300px}
  .carousel-slide{flex:0 0 85vw}
  .project-card{flex-direction:column;align-items:flex-start;gap:20px}
  .project-card:hover{padding-left:0}
  .project-card-thumb{display:none}
  .project-card-title{overflow-wrap:anywhere}
  .projects-title{height:1em;overflow:visible;display:inline-block;vertical-align:top;white-space:nowrap}
  .about-section{padding:80px 24px 60px}
  .about-grid{grid-template-columns:1fr;gap:40px}
  .about-stats{grid-template-columns:repeat(3,1fr);gap:10px}
  .skill-row{flex-direction:column;gap:10px}
  .skill-row-label{padding-top:0;width:auto}
}

/* ════ About / 个人信息 ════ */
.about-section{
  padding:140px 60px 120px;
  max-width:var(--max-w);
  margin:0 auto;
  position:relative;
}
.about-inner{
  display:flex;flex-direction:column;align-items:center;
}
.about-divider{
  width:60px;height:2px;
  background:var(--text);
  margin-bottom:24px;
  opacity:0.85;
}
.about-label{
  font-size:11px;font-weight:500;
  color:var(--text3);
  letter-spacing:2px;text-transform:uppercase;
  margin-bottom:14px;
}
.about-name{
  font-family:'Roboto Flex',var(--font-display);
  font-size:clamp(40px,5vw,64px);
  color:var(--text);
  letter-spacing:-.02em;
  line-height:1.05;
  font-variation-settings:'wght' 250,'opsz' 6;
  margin-bottom:64px;
  text-align:center;
}
.about-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:80px;
  width:100%;
  align-items:stretch;
}
.about-left,.about-right{
  display:flex;flex-direction:column;
}
.about-bio{
  font-size:16px;
  line-height:1.85;
  color:var(--text2);
  margin-bottom:32px;
  letter-spacing:0.02em;
}
.edu-highlight{
  display:flex;align-items:center;gap:14px;
  padding:18px 22px;
  background:rgba(255,255,255,0.55);
  backdrop-filter:blur(20px) saturate(1.5);
  -webkit-backdrop-filter:blur(20px) saturate(1.5);
  border:1px solid rgba(0,0,0,0.06);
  border-radius:14px;
  transition:transform .3s cubic-bezier(.2,.8,.2,1),box-shadow .3s;
}
.edu-highlight:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 24px rgba(0,0,0,0.06);
}
.edu-icon{
  font-size:24px;line-height:1;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  width:40px;height:40px;border-radius:50%;
  background:rgba(0,0,0,0.04);
}
.edu-text{
  font-size:14px;color:var(--text);
  font-weight:500;letter-spacing:0.01em;
}

/* ── Contact block ── */
.contact-block{
  margin-top:24px;
  padding:22px 24px;
  background:rgba(255,255,255,0.55);
  backdrop-filter:blur(20px) saturate(1.5);
  -webkit-backdrop-filter:blur(20px) saturate(1.5);
  border:1px solid rgba(0,0,0,0.06);
  border-radius:16px;
}
.contact-block-title{
  font-size:12px;font-weight:600;color:var(--text4);
  letter-spacing:0.14em;margin-bottom:16px;
}
.contact-list{
  display:grid;grid-template-columns:repeat(2,1fr);gap:14px;
}
.contact-item{
  display:flex;align-items:center;gap:12px;
  text-decoration:none;color:inherit;
  padding:10px 12px;
  border-radius:10px;
  transition:background .25s,transform .25s;
}
.contact-item:hover{
  background:rgba(0,0,0,0.04);
  transform:translateY(-1px);
}
.copyable{cursor:pointer}
.copy-tip{
  position:absolute;right:12px;top:50%;transform:translateY(-50%);
  font-size:12px;color:var(--teal);font-weight:600;
  opacity:0;transition:opacity .3s;
  pointer-events:none;
}
.contact-item.copyable{position:relative}
.copyable.copied .copy-tip{opacity:1}
.copyable.copied .contact-value{color:var(--teal)}
.contact-icon{
  width:34px;height:34px;border-radius:10px;
  background:rgba(0,0,0,0.05);
  display:flex;align-items:center;justify-content:center;
  color:var(--text2);flex-shrink:0;
}
.contact-icon svg{width:18px;height:18px}
.contact-info{
  display:flex;flex-direction:column;gap:1px;
  min-width:0;
}
.contact-label{
  font-size:11px;color:var(--text4);font-weight:500;
}
.contact-value{
  font-size:13px;color:var(--text);font-weight:600;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}

/* ── Stats ── */
.about-stats{
  display:grid;grid-template-columns:1fr 1fr 1fr;
  gap:16px;margin-bottom:40px;
  text-align:center;
}
.about-stat{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:24px 12px;
  background:rgba(255,255,255,0.5);
  backdrop-filter:blur(20px) saturate(1.5);
  -webkit-backdrop-filter:blur(20px) saturate(1.5);
  border:1px solid rgba(0,0,0,0.05);
  border-radius:16px;
  transition:transform .3s cubic-bezier(.2,.8,.2,1),background .3s;
}
.about-stat:hover{
  transform:translateY(-3px);
  background:rgba(255,255,255,0.7);
}
.about-stat .number{
  font-family:'Roboto Flex',var(--font-display);
  font-size:clamp(28px,3vw,36px);
  font-weight:600;
  color:var(--text);
  line-height:1;
  margin-bottom:6px;
  font-variation-settings:'wght' 600;
}
.about-stat .label{
  font-size:12px;
  color:var(--text3);
  letter-spacing:0.06em;
}

/* ── Skills ── */
.skills-grid{
  display:flex;flex-direction:column;gap:14px;
  flex:1;justify-content:space-evenly;
}
.skill-row{
  display:flex;align-items:flex-start;gap:18px;
  padding:14px 0;
  border-bottom:1px solid rgba(0,0,0,0.05);
}
.skill-row:last-child{border-bottom:none}
.skill-row-label{
  flex-shrink:0;
  font-size:12px;
  color:var(--text3);
  letter-spacing:0.06em;
  width:64px;
  padding-top:5px;
}
.skill-row-tags{
  display:flex;flex-wrap:wrap;gap:7px;
  flex:1;
}
.skill-tag{
  display:inline-flex;
  align-items:center;
  padding:5px 11px;
  font-size:12px;
  color:var(--text);
  background:rgba(0,0,0,0.04);
  border:1px solid rgba(0,0,0,0.06);
  border-radius:8px;
  letter-spacing:0.02em;
  transition:background .25s,border-color .25s,transform .25s;
  gap:6px;
}
.tool-icon{
  width:18px;height:18px;
  border-radius:3px;
  flex-shrink:0;
  object-fit:contain;
}
.skill-tag:hover{
  background:rgba(0,0,0,0.07);
  border-color:rgba(0,0,0,0.12);
  transform:translateY(-1px);
}
@media(max-width:768px){
  .container,.carousel-label{padding:0 24px}
  .site-header{width:calc(100% - 32px);top:12px;border-radius:16px}
  .site-header .container{height:50px;padding:0 18px}
  .site-header .logo{font-size:15px;gap:8px}
  .site-header .logo-en{letter-spacing:1px}
  .site-header nav a{font-size:12px;padding:6px 12px}
  .hero{min-height:auto;padding-top:90px}
  .hero .container{padding-top:50px;padding-bottom:32px;gap:28px}
  .hero-name{font-size:clamp(46px,13vw,72px)}
  .hero-tagline{font-size:14px}
  .hero-right{width:240px;height:280px}
  .orbit-scene{inset:-18px}
  .orbit-item{width:40px;height:40px;margin:-20px 0 0 -20px}
  .hero-portrait{width:160px;height:210px}
  .manifesto{padding:72px 24px}
  .manifesto-line.lg{font-size:clamp(36px,10vw,56px)}
  .manifesto-line.md{font-size:clamp(28px,8vw,44px)}
  .manifesto-line.sm{font-size:clamp(18px,5vw,26px);letter-spacing:.1em}
  .manifesto-sub{font-size:14px;line-height:1.8}
  .carousel-section{padding-bottom:60px}
  .carousel-label{margin-bottom:24px}
  .carousel-label-cn{font-size:26px}
  .carousel-slide{flex:0 0 88vw;max-width:88vw;margin-right:12px;border-radius:16px}
  .carousel-slide-info{padding:20px 24px}
  .carousel-slide-info h3{font-size:20px}
  .carousel-slide-info p{font-size:13px}
  .carousel-controls{gap:18px;padding-top:22px}
  .projects-section{padding:50px 24px 80px}
  .projects-header{flex-direction:column;align-items:flex-start;gap:16px;margin-bottom:32px}
  .projects-title{font-size:clamp(34px,10vw,52px);height:1em;overflow:visible;display:inline-block;vertical-align:top;white-space:nowrap}
  .projects-filter{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;padding:4px}
  .projects-filter::-webkit-scrollbar{display:none}
  .filter-btn{font-size:12px;padding:8px 12px}
  .project-card{padding:28px 0;gap:16px}
  .project-card-title{font-size:clamp(26px,7vw,38px);overflow-wrap:anywhere}
  .project-card-desc{font-size:13px;max-width:100%}
  .project-card-tags{gap:6px;margin-top:10px}
  .project-tag{font-size:10px;padding:3px 10px}
  .about-section{padding:64px 24px 48px}
  .about-name{font-size:clamp(32px,9vw,48px);margin-bottom:40px}
  .about-grid{gap:32px}
  .about-bio{font-size:14px;line-height:1.8}
  .edu-highlight{padding:14px 16px}
  .edu-text{font-size:13px}
  .contact-block{padding:18px 16px}
  .contact-item{padding:8px 10px}
  .contact-list{grid-template-columns:1fr;gap:10px}
  .skill-tag{font-size:11px;padding:4px 9px}
  .site-footer{padding:40px 24px}
  .footer-name{font-size:18px}
  .footer-links{flex-wrap:wrap;gap:14px 20px}
}

@media(max-width:480px){
  .container,.carousel-label{padding:0 18px}
  .site-header{width:calc(100% - 24px);top:10px;border-radius:14px}
  .site-header .container{height:46px;padding:0 14px}
  .site-header .logo{font-size:14px;gap:6px}
  .site-header .logo-dot{width:3px;height:3px}
  .site-header .logo-cn{display:none}
  .site-header nav a{font-size:11px;padding:5px 10px;border-radius:8px}
  .hero{padding-top:80px}
  .hero .container{padding-top:36px;padding-bottom:28px;gap:22px}
  .hero-name-small{font-size:11px;letter-spacing:1px}
  .hero-name{font-size:clamp(40px,14vw,58px);line-height:.92}
  .hero-tagline{font-size:13px;line-height:1.65}
  .hero-tagline strong{font-size:14px}
  .hero-right{width:200px;height:240px}
  .orbit-scene{inset:-14px}
  .orbit-item{width:34px;height:34px;margin:-17px 0 0 -17px}
  .hero-portrait{width:130px;height:170px}
  .manifesto{padding:56px 18px}
  .manifesto-inner{max-width:100%}
  .manifesto-line.lg{font-size:clamp(30px,11vw,44px);margin-bottom:0.24em}
  .manifesto-line.md{font-size:clamp(24px,9vw,36px);margin-bottom:0.3em}
  .manifesto-line.sm{font-size:clamp(14px,4vw,20px);letter-spacing:.06em;margin-bottom:0.7em}
  .manifesto-divider{margin:36px auto}
  .manifesto-sub{font-size:13px;line-height:1.75;max-width:100%}
  .manifesto-tags{gap:8px 10px;margin-top:28px}
  .manifesto-tag{font-size:11px}
  .carousel-section{padding-bottom:48px}
  .carousel-label{padding:0 18px;margin-bottom:18px}
  .carousel-label-cn{font-size:22px}
  .carousel-label-en{font-size:11px}
  .carousel-track{padding:0 calc(50vw - min(42vw,280px))}
  .carousel-slide{flex:0 0 92vw;max-width:92vw;margin-right:10px;border-radius:14px}
  .carousel-slide-info{padding:16px 18px}
  .carousel-slide-info h3{font-size:18px}
  .carousel-slide-info p{font-size:12px;max-width:100%}
  .carousel-controls{gap:14px;padding-top:18px}
  .carousel-arrow{width:34px;height:34px;font-size:13px}
  .carousel-nav{font-size:12px}
  .projects-section{padding:40px 18px 64px}
  .projects-header{margin-bottom:24px;gap:14px}
  .projects-label{font-size:10px}
  .projects-title{font-size:clamp(28px,11vw,42px);height:1em;overflow:visible;display:inline-block;vertical-align:top;white-space:nowrap}
  .projects-filter{padding:3px;gap:1px;border-radius:12px}
  .filter-btn{font-size:11px;padding:7px 10px;gap:5px}
  .filter-count{font-size:10px}
  .project-card{padding:22px 0;gap:14px}
  .project-card-num{font-size:10px;margin-bottom:6px}
  .project-card-title{font-size:clamp(24px,8vw,32px);line-height:1.05;overflow-wrap:anywhere}
  .project-card-desc{font-size:12px;line-height:1.6;margin-top:6px}
  .project-card-tags{margin-top:8px}
  .project-tag{font-size:10px;padding:3px 9px}
  .about-section{padding:48px 18px 40px}
  .about-divider{width:40px;margin-bottom:18px}
  .about-label{font-size:10px;margin-bottom:10px}
  .about-name{font-size:clamp(28px,10vw,40px);margin-bottom:28px}
  .about-grid{gap:26px}
  .about-bio{font-size:13px;line-height:1.75;margin-bottom:22px}
  .edu-highlight{padding:12px 14px;gap:10px}
  .edu-icon{font-size:20px;width:32px;height:32px}
  .edu-text{font-size:12px}
  .contact-block{padding:16px 14px;margin-top:18px}
  .contact-block-title{font-size:11px;margin-bottom:12px}
  .contact-list{gap:8px}
  .contact-item{gap:10px;padding:7px 8px}
  .contact-icon{width:30px;height:30px;border-radius:8px}
  .contact-icon svg{width:16px;height:16px}
  .contact-label{font-size:10px}
  .contact-value{font-size:12px}
  .copy-tip{font-size:11px}
  .skill-row{padding:12px 0;gap:10px}
  .skill-row-label{font-size:11px;width:56px;padding-top:4px}
  .skill-row-tags{gap:6px}
  .skill-tag{font-size:11px;padding:4px 8px}
  .tool-icon{width:14px;height:14px}
  .experience-section{padding:56px 0 48px}
  .experience-section .container{padding:0 18px}
  .experience-section .section-divider{width:40px;margin-bottom:18px}
  .experience-section .section-label{font-size:11px}
  .experience-section .section-title{font-size:28px;margin-bottom:28px}
  .timeline{padding-left:4px}
  .timeline::before{left:3px;top:14px;bottom:14px}
  .timeline-item{gap:14px;padding:12px 0}
  .timeline-dot{width:12px;height:12px;margin-top:5px}
  .timeline-dot.teal{box-shadow:0 0 0 3px var(--bg),0 0 0 5px rgba(94,196,176,0.18)}
  .timeline-dot.purple{box-shadow:0 0 0 3px var(--bg),0 0 0 5px rgba(139,92,246,0.18)}
  .timeline-dot.orange{box-shadow:0 0 0 3px var(--bg),0 0 0 5px rgba(230,158,3,0.20)}
  .timeline-tag-row{gap:8px}
  .timeline-tag-pill{font-size:11px;padding:4px 10px}
  .timeline-date{font-size:12px}
  .timeline-item-title{font-size:15px;gap:10px}
  .timeline-item-title::after{width:7px;height:7px}
  .timeline-item-desc{font-size:12.5px;line-height:1.65}
  .desc-list li{font-size:12.5px;padding-left:14px}
  .desc-list li::before{width:5px;height:5px;top:7px}
  .site-footer{padding:36px 18px}
  .footer-name{font-size:17px}
  .footer-info{font-size:12px}
  .footer-links{gap:12px 18px}
  .footer-links a{font-size:12px}
  .footer-copy{font-size:10px;margin-top:18px}
  .preloader-name{font-size:clamp(40px,12vw,60px)}
  .preloader-sub{font-size:11px;letter-spacing:2px}
  .preloader-bar{width:120px;margin-top:28px}
  .preloader-percent{font-size:10px}
}

/* === Experience Timeline === */
.experience-section{padding:120px 0 100px;position:relative;z-index:2}
.experience-section .container{position:relative}
.experience-section .section-divider{
  width:60px;height:3px;background:var(--text);border-radius:2px;margin-bottom:24px;
}
.experience-section .section-label{
  font-size:12px;letter-spacing:0.3em;font-weight:600;color:var(--text4);
  margin-bottom:8px;
}
.experience-section .section-title{
  font-family:var(--font-display);font-size:48px;font-weight:700;color:var(--text);
  line-height:1.2;margin:0 0 56px;
}
.timeline{
  position:relative;display:flex;flex-direction:column;
  padding-left:8px;
}
.timeline::before{
  content:"";position:absolute;left:5px;top:18px;bottom:18px;
  width:2px;background:linear-gradient(180deg,var(--teal) 0%,var(--purple-tag) 50%,var(--orange-tag) 100%);
  border-radius:1px;opacity:0.45;
}
.timeline-item{
  display:flex;gap:28px;padding:20px 0;position:relative;
}
.timeline-dot{
  width:14px;height:14px;border-radius:50%;margin-top:8px;flex-shrink:0;
  background:var(--text);position:relative;z-index:1;
  box-shadow:0 0 0 4px var(--bg);
}
.timeline-dot.teal{background:var(--teal);box-shadow:0 0 0 4px var(--bg),0 0 0 6px rgba(94,196,176,0.18)}
.timeline-dot.purple{background:var(--purple-tag);box-shadow:0 0 0 4px var(--bg),0 0 0 6px rgba(139,92,246,0.18)}
.timeline-dot.orange{background:var(--orange-tag);box-shadow:0 0 0 4px var(--bg),0 0 0 6px rgba(230,158,3,0.20)}
.timeline-content{flex:1;display:flex;flex-direction:column;gap:10px;min-width:0}
.timeline-tag-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.timeline-tag-pill{
  padding:5px 12px;border-radius:999px;font-size:12px;font-weight:600;letter-spacing:0.04em;
}
.timeline-tag-pill.intern{background:rgba(94,196,176,0.10);color:var(--teal)}
.timeline-tag-pill.project{background:rgba(139,92,246,0.10);color:var(--purple-tag)}
.timeline-tag-pill.work{background:rgba(230,158,3,0.12);color:var(--orange-tag)}
.timeline-date{font-size:13px;color:var(--text4);font-variant-numeric:tabular-nums}
.timeline-item-title{
  font-size:19px;font-weight:600;color:var(--text);line-height:1.45;letter-spacing:-0.005em;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  width:100%;text-align:left;background:transparent;border:none;padding:0;cursor:pointer;
}
.timeline-item-title::after{
  content:"";display:block;width:8px;height:8px;border-right:2px solid var(--text4);border-bottom:2px solid var(--text4);
  transform:rotate(45deg);transition:transform .25s;flex-shrink:0;
}
.timeline-item-title[aria-expanded="true"]::after{transform:rotate(-135deg);margin-top:4px}
.timeline-item-desc{
  font-size:14.5px;color:var(--text2);line-height:1.75;max-width:780px;
  display:grid;grid-template-rows:0fr;
  transition:grid-template-rows .4s cubic-bezier(.2,.8,.2,1);
}
.timeline-item-desc-inner{overflow:hidden;min-height:0;padding-bottom:2px}
.timeline-item-desc.expanded{grid-template-rows:1fr}
.timeline-item-title:hover{color:var(--text2)}
.desc-list{
  list-style:none;padding:0;margin:0;
  display:flex;flex-direction:column;gap:6px;
}
.desc-list li{
  padding-left:16px;position:relative;
  font-size:13.5px;color:var(--text2);line-height:1.6;
}
.desc-list li::before{
  content:"";position:absolute;left:0;top:8px;
  width:6px;height:6px;border-radius:50%;
  background:var(--text4);
}

@media (max-width:768px){
  .experience-section{padding:72px 0 60px}
  .experience-section .section-title{font-size:32px;margin-bottom:36px}
  .timeline::before{left:5px}
  .timeline-item{gap:20px;padding:16px 0}
  .timeline-item-title{font-size:17px}
  .timeline-item-desc{font-size:13.5px;line-height:1.7}
}

/* ════ Preloader — 开场动画 ════ */
.preloader{
  position:fixed;inset:0;z-index:9999;
  background:var(--bg);
  display:flex;align-items:center;justify-content:center;
  transition:opacity .8s cubic-bezier(.22,1,.36,1),
             transform .8s cubic-bezier(.22,1,.36,1),
             filter .8s cubic-bezier(.22,1,.36,1);
}
.preloader.done{
  opacity:0;
  transform:scale(1.04);
  filter:blur(12px);
  pointer-events:none;
}
.preloader-inner{
  text-align:center;
  position:relative;
}
.preloader-name{
  font-family:'Roboto Flex',sans-serif;
  font-size:clamp(48px,7vw,80px);
  font-weight:200;
  letter-spacing:-.01em;
  color:var(--text);
  line-height:1;
  margin-bottom:24px;
  display:flex;justify-content:center;
  overflow:hidden;padding:0 .1em;
}
.pl-letter{
  display:inline-block;
  opacity:0;
  transform:translateY(110%) rotate(6deg);
  filter:blur(10px);
  animation:plLetterReveal .85s cubic-bezier(.22,1,.36,1) forwards;
}
.pl-letter:nth-child(1){animation-delay:.15s}
.pl-letter:nth-child(2){animation-delay:.22s}
.pl-letter:nth-child(3){animation-delay:.29s}
.pl-letter:nth-child(4){animation-delay:.36s}
.pl-letter:nth-child(5){animation-delay:.43s}
.pl-letter:nth-child(6){animation-delay:.50s}
@keyframes plLetterReveal{
  to{opacity:1;transform:translateY(0) rotate(0);filter:blur(0)}
}
.preloader-sub{
  font-size:12px;
  color:var(--text3);
  letter-spacing:3px;
  opacity:0;
  animation:plFadeIn .6s .95s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes plFadeIn{to{opacity:1}}

.preloader-bar{
  width:180px;height:1px;
  background:rgba(0,0,0,0.08);
  margin:40px auto 0;overflow:hidden;
  opacity:0;
  animation:plFadeIn .4s .6s cubic-bezier(.22,1,.36,1) forwards;
}
.preloader-bar-fill{
  width:0;height:100%;
  background:var(--text);
  transition:width .2s ease-out;
}
.preloader-percent{
  font-size:11px;
  color:var(--text4);
  letter-spacing:2px;
  margin-top:14px;
  font-variant-numeric:tabular-nums;
  opacity:0;
  animation:plFadeIn .4s .6s cubic-bezier(.22,1,.36,1) forwards;
}

/* Corner brackets — 极简装饰 */
.preloader-corner{
  position:absolute;
  width:24px;height:24px;
  border-color:var(--text4);
  opacity:0;
  animation:plFadeIn .5s .3s cubic-bezier(.22,1,.36,1) forwards;
}
.preloader-corner.tl{top:-40px;left:-40px;border-top:1px solid;border-left:1px solid}
.preloader-corner.tr{top:-40px;right:-40px;border-top:1px solid;border-right:1px solid}
.preloader-corner.bl{bottom:-40px;left:-40px;border-bottom:1px solid;border-left:1px solid}
.preloader-corner.br{bottom:-40px;right:-40px;border-bottom:1px solid;border-right:1px solid}

@media(max-width:768px){
  .preloader-corner{display:none}
  .preloader-bar{width:140px}
}
