:root {
  --bg: #03141d;
  --surface: rgba(8, 28, 38, 0.55);
  --ink: #eaf8f6;
  --muted: #9dbcc2;
  --aqua: #3ae6cf;
  --cyan: #7bdcff;
  --coral: #ff8f7a;
  --gold: #f2c87e;
  --line: rgba(255, 255, 255, 0.14);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --ease: cubic-bezier(0.22, 0.8, 0.25, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  letter-spacing: 0;
  font-weight: 600;
}

svg {
  display: block;
  width: 20px;
  height: 20px;
}

::selection {
  background: rgba(58, 230, 207, 0.28);
}

#ocean {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.ocean-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 35%, rgba(8, 35, 48, 0.06) 0%, rgba(3, 17, 25, 0.25) 55%, rgba(2, 10, 15, 0.78) 100%);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 260;
  background: linear-gradient(90deg, var(--aqua), var(--cyan), var(--gold));
  transform-origin: left;
  transform: scaleX(0);
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(23, 84, 96, 0.55), transparent 55%),
    radial-gradient(ellipse at 20% 85%, rgba(255, 143, 122, 0.12), transparent 45%),
    linear-gradient(160deg, #071c27, #020b11 70%);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1s cubic-bezier(0.83, 0, 0.17, 1), visibility 1s;
}

.preloader.done {
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
}

.preloader-inner {
  text-align: center;
  padding: 0 24px;
}

.preloader-label {
  font-size: 0.75rem;
  color: var(--aqua);
  opacity: 0;
  transform: translateY(10px);
  animation: preIn 0.7s 0.1s forwards;
}

.preloader-title {
  margin-top: 10px;
  font-size: 3.4rem;
  color: var(--ink);
}

.preloader-en {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0;
  animation: preIn 0.7s 0.3s forwards;
}

.preloader-line {
  width: min(260px, 70vw);
  height: 1px;
  margin: 24px auto 0;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.preloader-line span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--aqua), transparent);
  transform: translateX(-100%);
  animation: preLine 1.4s 0.35s forwards;
}

@keyframes preIn {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes preLine {
  to {
    transform: translateX(100%);
  }
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  background: var(--aqua);
  box-shadow: 0 0 14px rgba(58, 230, 207, 0.9);
}

.cursor-ring {
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 1px solid rgba(58, 230, 207, 0.7);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), margin 0.25s var(--ease), border-color 0.25s, background 0.25s, opacity 0.3s;
}

html.cursor-on .cursor-dot,
html.cursor-on .cursor-ring {
  opacity: 1;
}

html.cursor-on .cursor-ring.is-active {
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border-color: rgba(242, 200, 126, 0.85);
  background: rgba(242, 200, 126, 0.08);
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

body.grid-on::before,
body.grid-on::after {
  content: "";
  position: fixed;
  z-index: 140;
  pointer-events: none;
  mix-blend-mode: screen;
}

body.grid-on::before {
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: repeating-linear-gradient(90deg, rgba(242, 200, 126, 0.5) 0 1px, transparent 1px 8px);
  opacity: 0.3;
}

body.grid-on::after {
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(58, 230, 207, 0.4) 0 1px, transparent 1px calc(100% / 12));
  opacity: 0.45;
}

.section-shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding-block: 110px;
}

.glass-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(11, 36, 47, 0.66), rgba(5, 19, 28, 0.5));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px max(24px, calc((100% - 1180px) / 2));
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: transform 0.3s var(--ease), filter 0.3s;
}

.brand:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 8px 22px rgba(58, 230, 207, 0.25));
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(58, 230, 207, 0.35);
  background: linear-gradient(145deg, rgba(58, 230, 207, 0.22), rgba(123, 220, 255, 0.08));
  color: var(--ink);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 0 28px rgba(58, 230, 207, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.brand-name {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(4, 18, 27, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-mask {
  position: absolute;
  z-index: 0;
  width: 0;
  height: 0;
  border-radius: 14px;
  background: rgba(58, 230, 207, 0.12);
  pointer-events: none;
  transition: left 0.32s var(--ease), top 0.32s var(--ease), width 0.32s var(--ease), height 0.32s var(--ease);
}

.nav a {
  position: relative;
  z-index: 1;
  padding: 10px 16px;
  border-radius: 14px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.25s, background 0.25s, transform 0.25s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 7px;
  height: 1px;
  background: linear-gradient(90deg, var(--aqua), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
  background: rgba(58, 230, 207, 0.08);
  transform: translateY(-1px);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav a.active {
  color: var(--ink);
}

.nav a.active::after {
  transform: scaleX(1);
}

.grid-toggle {
  display: grid;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(4, 18, 27, 0.6);
  color: var(--muted);
  place-items: center;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}

.grid-toggle:hover {
  color: var(--aqua);
  border-color: rgba(58, 230, 207, 0.5);
  transform: translateY(-1px);
}

body.grid-on .grid-toggle {
  color: var(--aqua);
  border-color: rgba(58, 230, 207, 0.6);
  background: rgba(58, 230, 207, 0.08);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(4, 18, 27, 0.6);
  color: var(--ink);
  place-items: center;
  cursor: pointer;
  transition: border-color 0.25s, transform 0.25s var(--ease), background 0.25s;
}

.menu-toggle:hover {
  border-color: rgba(58, 230, 207, 0.55);
  transform: translateY(-1px);
}

.menu-toggle .icon-close {
  display: none;
}

body.nav-open .menu-toggle .icon-menu {
  display: none;
}

body.nav-open .menu-toggle .icon-close {
  display: block;
}

body.nav-open .menu-toggle {
  border-color: rgba(58, 230, 207, 0.55);
}

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 120px;
  padding-bottom: 60px;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--aqua);
  font-size: 0.82rem;
}

.eyebrow span {
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, var(--aqua), transparent);
}

.hero-index {
  font-size: 0.78rem;
  color: var(--gold);
  opacity: 0.85;
}

.hero-name {
  font-size: 8.2rem;
  line-height: 1;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.hero-en {
  margin-top: 6px;
  font-size: 1rem;
  color: var(--cyan);
  opacity: 0.85;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.55fr 1.05fr;
  gap: 26px;
  align-items: stretch;
  margin-top: 52px;
}

.hero-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-sub {
  font-size: 1.6rem;
  line-height: 1.4;
}

.hero-desc {
  margin-top: 16px;
  max-width: 480px;
  color: var(--muted);
  font-size: 1rem;
}

.hero-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: center;
  gap: 10px;
}

.fact {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}

.fact:hover {
  transform: translateY(-4px);
  border-color: rgba(58, 230, 207, 0.5);
  background: rgba(58, 230, 207, 0.07);
}

.fact strong {
  display: block;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 1.7rem;
  color: var(--aqua);
}

.fact span {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 18px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transform: translate(var(--mx, 0), var(--my, 0));
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s, background 0.3s, color 0.3s;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(58, 230, 207, 0.22), rgba(123, 220, 255, 0.12));
  border-color: rgba(58, 230, 207, 0.4);
  color: var(--ink);
  box-shadow: 0 12px 34px rgba(58, 230, 207, 0.12);
}

.btn-primary:hover {
  transform: translate(var(--mx, 0), calc(var(--my, 0) - 3px));
  border-color: rgba(58, 230, 207, 0.8);
  box-shadow: 0 18px 46px rgba(58, 230, 207, 0.22);
}

.btn-primary:hover svg {
  transform: translateY(3px);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  transform: translate(var(--mx, 0), calc(var(--my, 0) - 3px));
  color: var(--ink);
  border-color: rgba(242, 200, 126, 0.65);
  background: rgba(242, 200, 126, 0.08);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.25);
}

.hero-card {
  padding: 34px;
}

.hero-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.avatar {
  width: 112px;
  height: 112px;
  border-radius: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(58, 230, 207, 0.4);
  background: linear-gradient(145deg, rgba(58, 230, 207, 0.28), rgba(123, 220, 255, 0.06) 55%, rgba(255, 143, 122, 0.1));
  color: var(--ink);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 2rem;
  font-weight: 700;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 34px rgba(58, 230, 207, 0.12);
}

.status-pill {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--aqua);
  border: 1px solid rgba(58, 230, 207, 0.35);
  background: rgba(58, 230, 207, 0.07);
  white-space: nowrap;
}

.card-name {
  margin-top: 26px;
  font-size: 2rem;
}

.card-role {
  margin-top: 6px;
  color: var(--cyan);
  font-size: 0.92rem;
}

.card-meta {
  list-style: none;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.card-meta li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.card-meta strong {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}

.card-links {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.mini-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transform: translate(var(--mx, 0), var(--my, 0));
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s, color 0.3s;
}

.mini-link svg {
  width: 17px;
  height: 17px;
  color: var(--aqua);
  flex: none;
}

.mini-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-link:hover {
  transform: translate(var(--mx, 0), calc(var(--my, 0) - 3px));
  border-color: rgba(58, 230, 207, 0.5);
  background: rgba(58, 230, 207, 0.08);
  color: var(--ink);
}

.section-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 52px;
}

.section-no {
  font-size: 0.78rem;
  color: var(--aqua);
  border: 1px solid rgba(58, 230, 207, 0.35);
  border-radius: 999px;
  padding: 7px 13px;
  background: rgba(58, 230, 207, 0.06);
}

.section-head h2 {
  font-size: 2.7rem;
}

.section-en {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.82rem;
  opacity: 0.8;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 22px;
}

.about-bio {
  padding: 40px;
}

.about-bio p + p {
  margin-top: 18px;
}

.about-bio p {
  color: var(--muted);
}

.about-bio p:first-child {
  font-size: 1.12rem;
  color: var(--ink);
  line-height: 1.8;
}

.about-stats {
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-content: center;
}

.stat-row {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}

.stat-row strong {
  display: block;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 1.9rem;
  color: var(--aqua);
}

.stat-row span {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--muted);
}

.stat-row:hover {
  transform: translateY(-4px);
  border-color: rgba(58, 230, 207, 0.5);
  background: rgba(58, 230, 207, 0.07);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.tag-cloud span {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.85rem;
  cursor: default;
  transition: transform 0.3s var(--ease), border-color 0.3s, color 0.3s, background 0.3s;
}

.tag-cloud span:hover {
  transform: translateY(-3px);
  border-color: rgba(123, 220, 255, 0.55);
  color: var(--ink);
  background: rgba(123, 220, 255, 0.08);
}

.project-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.project-wrap {
  display: flex;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 300px;
  padding: 34px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s, background 0.4s;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(460px circle at var(--x, 50%) var(--y, 50%), rgba(58, 230, 207, 0.14), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.project-card:hover {
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-8px);
  border-color: rgba(58, 230, 207, 0.5);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.38), 0 0 42px rgba(58, 230, 207, 0.1);
}

.project-card:hover::before {
  opacity: 1;
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-no {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 1.05rem;
  color: var(--gold);
  opacity: 0.9;
}

.project-tag {
  font-size: 0.72rem;
  color: var(--aqua);
  border: 1px solid rgba(58, 230, 207, 0.3);
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(58, 230, 207, 0.05);
}

.project-card h3 {
  margin-top: 54px;
  font-size: 1.7rem;
  line-height: 1.3;
}

.project-card p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.93rem;
  max-width: 420px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 28px;
  color: var(--cyan);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.3s;
}

.project-link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.35s var(--ease);
}

.project-card:hover .project-link {
  color: var(--aqua);
}

.project-card:hover .project-link svg {
  transform: translate(3px, -3px);
}

.experience-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: start;
}

.timeline-card,
.skills-card {
  padding: 40px;
}

.timeline-card h3,
.skills-card h3 {
  font-size: 1.5rem;
  margin-bottom: 26px;
}

.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, rgba(58, 230, 207, 0.7), rgba(123, 220, 255, 0.15) 70%, transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 30px;
  transition: transform 0.3s var(--ease);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 7px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 0 5px rgba(58, 230, 207, 0.12), 0 0 18px rgba(58, 230, 207, 0.6);
}

.timeline-item:hover {
  transform: translateX(6px);
}

.timeline-date {
  font-size: 0.75rem;
  color: var(--gold);
}

.timeline-item h4 {
  margin-top: 8px;
  font-size: 1.2rem;
}

.timeline-item p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.timeline-item .timeline-desc {
  margin-top: 12px;
}

.skill {
  margin-top: 22px;
}

.skill:first-of-type {
  margin-top: 0;
}

.skill-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  font-size: 0.9rem;
}

.skill-head strong {
  color: var(--cyan);
  font-weight: 600;
}

.skill-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.skill-bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--aqua), var(--cyan));
  box-shadow: 0 0 14px rgba(58, 230, 207, 0.4);
  transition: width 1.1s var(--ease);
}

.skill:hover .skill-bar {
  filter: brightness(1.15);
}

.contact-window {
  position: relative;
  padding: 64px 56px;
  text-align: center;
  overflow: hidden;
}

.contact-window::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(560px circle at 50% 0%, rgba(58, 230, 207, 0.13), transparent 55%);
  pointer-events: none;
}

.contact-kicker {
  font-size: 0.75rem;
  color: var(--aqua);
}

.contact-window h2 {
  margin-top: 16px;
  font-size: 2.7rem;
  line-height: 1.25;
}

.contact-window > p {
  margin-top: 16px;
  max-width: 520px;
  margin-inline: auto;
  color: var(--muted);
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 0 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  color: var(--ink);
  transform: translate(var(--mx, 0), var(--my, 0));
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.contact-link svg {
  width: 20px;
  height: 20px;
  color: var(--aqua);
  transition: transform 0.3s var(--ease);
}

.contact-link span {
  color: var(--muted);
  font-size: 0.85rem;
}

.contact-link strong {
  font-weight: 600;
}

.contact-link:hover {
  transform: translate(var(--mx, 0), calc(var(--my, 0) - 5px));
  border-color: rgba(242, 200, 126, 0.55);
  background: rgba(242, 200, 126, 0.07);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.3);
}

.contact-link:hover svg {
  transform: translateY(-2px);
}

.site-footer {
  padding: 44px 0 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  text-decoration: none;
  margin-bottom: 18px;
  transition: color 0.25s, transform 0.25s var(--ease);
}

.to-top svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}

.to-top:hover {
  color: var(--aqua);
  transform: translateY(-2px);
}

.to-top:hover svg {
  transform: translateY(-3px);
}

.footer-note {
  margin-top: 8px;
  opacity: 0.75;
}

html.anim-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s var(--ease);
}

html.anim-ready .reveal.visible {
  opacity: 1;
  transform: none;
}

html.anim-ready .split-text .char {
  opacity: 0;
  transform: translateY(115%) rotate(5deg);
}

.split-text {
  overflow: hidden;
}

.split-text .char {
  display: inline-block;
}

body.loading .preloader-title .char {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s, transform 0.7s cubic-bezier(0.2, 0.9, 0.25, 1.2);
  transition-delay: calc(0.25s + var(--i) * 0.05s);
}

html.anim-ready .hero-name .char,
html.anim-ready .hero-en .char {
  opacity: 0;
  transform: translateY(120%) rotate(6deg);
}

body.intro-done .hero-name .char,
body.intro-done .hero-en .char {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.2, 0.9, 0.25, 1.15);
  transition-delay: calc(0.15s + var(--i) * 0.045s);
}

html.anim-ready .section-head.visible .split-text .char {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.2, 0.9, 0.25, 1.15);
  transition-delay: calc(var(--i) * 0.035s);
}

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(3, 15, 22, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}

.marquee-group {
  display: flex;
  align-items: center;
  flex: none;
}

.marquee-group span {
  padding: 16px 26px;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 1rem;
  color: var(--muted);
  white-space: nowrap;
}

.marquee-group .sep {
  color: var(--aqua);
  font-size: 0.8rem;
  padding: 0;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1080px) {
  .hero {
    padding-top: 106px;
  }

  .hero-name {
    font-size: 6.4rem;
  }

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

  .hero-intro {
    grid-column: 1 / -1;
  }

  .hero-card {
    max-width: 560px;
  }

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

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

@media (max-width: 860px) {
  .section {
    padding-block: 84px;
  }

  .hero-name {
    font-size: 4.6rem;
  }

  .hero-sub {
    font-size: 1.4rem;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 36px;
  }

  .hero-intro {
    grid-column: 1 / -1;
  }

  .hero-facts {
    order: 3;
  }

  .hero-card {
    grid-column: 1 / -1;
    max-width: none;
  }

  .preloader-title {
    font-size: 2.8rem;
  }

  .section-head h2 {
    font-size: 2.2rem;
  }

  .contact-window {
    padding: 48px 28px;
  }

  .project-list {
    grid-template-columns: 1fr;
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 90;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 0;
    background: rgba(3, 14, 21, 0.9);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s;
  }

  .nav a {
    font-size: 1.6rem;
    padding: 14px 22px;
  }

  .nav-mask {
    display: none;
  }

  body.nav-open .nav {
    opacity: 1;
    visibility: visible;
  }

  body.nav-open {
    overflow: hidden;
  }

  .menu-toggle {
    display: grid;
  }
}

@media (max-width: 560px) {
  .section-shell {
    width: min(1180px, calc(100% - 32px));
  }

  .hero {
    padding-top: 104px;
    padding-bottom: 54px;
  }

  .hero-name {
    font-size: 3.3rem;
  }

  .hero-sub {
    font-size: 1.2rem;
  }

  .hero-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-facts {
    order: 0;
  }

  .hero-card {
    grid-column: auto;
  }

  .preloader-title {
    font-size: 2.2rem;
  }

  .marquee-group span {
    padding: 13px 18px;
    font-size: 0.9rem;
  }

  .hero-card {
    padding: 26px;
    border-radius: 26px;
  }

  .avatar {
    width: 92px;
    height: 92px;
    border-radius: 26px;
    font-size: 1.7rem;
  }

  .status-pill {
    display: none;
  }

  .about-bio,
  .timeline-card,
  .skills-card {
    padding: 28px;
    border-radius: 26px;
  }

  .project-card {
    min-height: 280px;
    padding: 26px;
    border-radius: 26px;
  }

  .project-card h3 {
    font-size: 1.4rem;
  }

  .section-head {
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
  }

  .section-en {
    margin-left: 0;
    width: 100%;
  }

  .contact-window {
    border-radius: 26px;
  }

  .contact-window h2 {
    font-size: 1.9rem;
  }

  .contact-link {
    width: 100%;
    justify-content: center;
  }

  .stat-row strong {
    font-size: 1.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
