:root {
  color-scheme: dark;
  font-family: "Arial Black", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  --black: #030303;
  --ink: #f2f2f2;
  --red: #ff2a2a;
  --red-deep: #5c0808;
  --red-soft: rgba(255, 42, 42, 0.72);
  --soft: rgba(242, 242, 242, 0.68);
  --muted: rgba(242, 242, 242, 0.42);
  --line: rgba(255, 255, 255, 0.22);
  --line-strong: rgba(255, 255, 255, 0.52);
  --panel: rgba(10, 10, 10, 0.74);
  --panel-solid: #0b0b0b;
  --accent: var(--red);
  --radius: 6px;
  background: var(--black);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--black);
  color: var(--ink);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.12;
  background: linear-gradient(rgba(255,255,255,0.2) 1px, transparent 1px);
  background-size: 100% 4px;
  mix-blend-mode: screen;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img, video, canvas { display: block; }
.site-shell { position: relative; overflow: clip; background: radial-gradient(circle at center, #141414 0, #030303 64%); }
.frame { width: min(calc(100% - 64px), 1700px); margin: 0 auto; }
.starfield { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero-video, .hero-scrim { position: absolute; inset: 0; }
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  filter: grayscale(1) contrast(1.45) brightness(0.58);
}
.hero-scrim {
  background: radial-gradient(circle at 62% 44%, transparent 0 18%, rgba(3,3,3,0.54) 36%, rgba(3,3,3,0.94) 76%), linear-gradient(180deg, rgba(3,3,3,0.15), #030303 96%);
}
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  font-family: "Microsoft YaHei UI", sans-serif;
  will-change: transform, opacity;
}
.nav.nav-floating {
  position: fixed;
  top: 16px;
  left: 50%;
  min-height: 64px;
  padding: 0 18px;
  border: 1px solid rgba(255, 42, 42, 0.36);
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.54);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateX(-50%);
  animation: navDropIn 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.nav.nav-floating .brand small {
  display: none;
}

.nav.nav-floating .contact-button {
  min-height: 38px;
}
.brand { display: inline-flex; flex-direction: column; gap: 2px; width: fit-content; }
.brand span { font-size: 1.1rem; font-weight: 900; letter-spacing: 0.04em; }
.brand small { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.08em; }
.nav-links { display: flex; justify-content: center; gap: 34px; color: var(--soft); font-size: 0.95rem; }
.nav a, .contact-button, .primary-link, .secondary-link, .mission-card, .strength-card { transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), border-color 260ms ease, background 260ms ease, opacity 260ms ease, box-shadow 260ms ease, filter 260ms ease; }
.nav a:hover { color: var(--red); transform: translateY(-2px); }
.contact-button {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255,42,42,0.14);
  color: var(--ink);
}

.hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: clamp(40px, 7vw, 120px);
  padding: 70px 0 95px;
}
.system-line, .section-heading span, .ending-panel span {
  margin: 0;
  color: var(--soft);
  font-family: "Microsoft YaHei UI", sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 18px 0 0;
  display: grid;
  gap: 8px;
  line-height: 0.88;
  letter-spacing: 0;
}
.hero h1 span {
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(255,42,42,0.9);
  text-stroke: 1.2px rgba(255,42,42,0.9);
  font-size: clamp(4.8rem, 8vw, 6rem);
}
.hero h1 strong {
  color: var(--red);
  text-shadow: 0 0 26px rgba(255, 42, 42, 0.36);
  font-size: clamp(4rem, 7vw, 5.65rem);
}
.hero-pronunciation {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.8rem);
  letter-spacing: 0.34em;
}
.role-list {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  color: var(--soft);
  font-family: "Microsoft YaHei UI", sans-serif;
  font-size: clamp(1.1rem, 1.7vw, 1.65rem);
}
.role-list li::before { content: "+"; display: inline-block; width: 40px; color: var(--ink); }
.role-list li:nth-child(2)::before { content: "×"; }
.role-list li:nth-child(3)::before { content: "✦"; }
.role-list li:nth-child(4)::before { content: "◇"; }
.hero-text {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--soft);
  font-family: "Microsoft YaHei UI", sans-serif;
  font-size: 1.04rem;
  line-height: 1.8;
}
.hero-actions, .closing-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.primary-link, .secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: "Microsoft YaHei UI", sans-serif;
  white-space: nowrap;
}
.primary-link { color: #ffffff; background: var(--red); border: 1px solid var(--red); box-shadow: 0 0 26px rgba(255,42,42,0.22); }
.secondary-link { color: var(--ink); border: 1px solid rgba(255,42,42,0.56); background: rgba(255,42,42,0.06); }
.primary-link:hover, .secondary-link:hover, .contact-button:hover { transform: translateY(-2px); }
.primary-link:hover { color: var(--red); background: #ffffff; border-color: #ffffff; box-shadow: 0 0 34px rgba(255,255,255,0.28); }
.secondary-link:hover, .contact-button:hover { color: #ffffff; background: var(--red); border-color: var(--red); box-shadow: 0 0 30px rgba(255,42,42,0.28); }
.avatar-frame {
  --look-x: 0px;
  --look-y: 0px;
  position: relative;
  justify-self: center;
  width: min(100%, 430px);
  transform: rotate(1.6deg);
}
.avatar-frame::before, .avatar-frame::after {
  content: "";
  position: absolute;
  border: 1px solid var(--line);
  pointer-events: none;
}
.avatar-frame::before { inset: -22px -18px 22px 18px; }
.avatar-frame::after { top: 45%; right: -140px; width: 120px; height: 1px; border-width: 1px 0 0; }
.portrait-card {
  position: relative;
  aspect-ratio: 1 / 1.05;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: radial-gradient(circle at 50% 28%, rgba(255, 42, 42, 0.22), transparent 36%), linear-gradient(150deg, rgba(255,255,255,0.1), rgba(255,255,255,0.01));
}
.empty-visual-panel {
  background: #090000;
}
.liquid-visual-panel .liquidChrome-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}
.liquid-visual-panel .liquidChrome-container canvas {
  width: 100% !important;
  height: 100% !important;
}
.liquid-visual-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 34%, rgba(0, 0, 0, 0.42) 100%);
}
 .portrait-scan {
  position: absolute;
  z-index: 3;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.18), transparent);
  height: 30%;
  animation: scan 4.5s ease-in-out infinite;
}
.core-overlay {
  position: absolute;
  inset: auto 28px 28px 28px;
  z-index: 4;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(8px);
  font-family: "Microsoft YaHei UI", sans-serif;
}
.core-overlay span {
  display: block;
  color: var(--red);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
}
.core-overlay strong {
  display: block;
  margin-top: 8px;
  font-size: 1.08rem;
}
.core-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.core-tags em {
  padding: 6px 9px;
  border: 1px solid rgba(255, 42, 42, 0.48);
  border-radius: 999px;
  color: #fff;
  font-style: normal;
  font-size: 0.78rem;
  background: rgba(255, 42, 42, 0.1);
}
.data-item small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-family: "Microsoft YaHei UI", sans-serif;
  line-height: 1.45;
}
.mission-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: 24px;
  border: 1px solid rgba(255, 42, 42, 0.35);
  background: rgba(255, 42, 42, 0.35);
}
.mission-flow span {
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 10px;
  color: #fff;
  font-family: "Microsoft YaHei UI", sans-serif;
  font-size: 0.88rem;
  text-align: center;
  background: rgba(8, 8, 8, 0.82);
}
.card-meta {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  color: var(--red-soft);
  font-family: "Microsoft YaHei UI", sans-serif;
  font-size: 0.82rem;
}
.ending-panel::before {
  content: "MISSION COMPLETE";
  display: block;
  margin: 0 auto 22px;
  width: fit-content;
  padding: 8px 14px;
  border: 1px solid rgba(255, 42, 42, 0.52);
  color: var(--red);
  font-family: "Microsoft YaHei UI", sans-serif;
  letter-spacing: 0.18em;
  background: rgba(255, 42, 42, 0.08);
}.hud-note {
  margin-top: 14px;
  color: var(--muted);
  font-family: "Microsoft YaHei UI", sans-serif;
  font-size: 0.86rem;
  text-align: right;
}
main { position: relative; z-index: 1; background: #030303; overflow: hidden; }
.lower-stage::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, #030303 0%, rgba(3,3,3,0.52) 18%, rgba(3,3,3,0.74) 72%, #030303 100%); }
.lower-liquid-bg { position: absolute; inset: 0; z-index: 0; min-height: 100%; opacity: 0.34; filter: saturate(1.18) contrast(1.16) brightness(0.72); pointer-events: auto; }
.liquidChrome-container { width: 100%; height: 100%; min-height: 100%; }
.liquidChrome-container canvas { width: 100% !important; height: 100% !important; display: block; }
.profile-section, .projects-section, .strengths-section, .closing-section { position: relative; z-index: 2; }
.profile-section, .projects-section, .strengths-section { padding: clamp(90px, 8vw, 150px) 0; }
.section-heading { max-width: 820px; margin-bottom: 34px; }
.section-heading.wide { max-width: 1080px; }
.section-heading h2, .ending-panel h2 {
  margin: 14px 0 0;
  font-size: clamp(2.6rem, 5vw, 5.2rem);
  line-height: 1;
  letter-spacing: 0;
}
.section-heading p, .bio-panel p, .timeline-panel p, .mission-copy p, .strength-card p, .ending-panel p {
  color: var(--soft);
  font-family: "Microsoft YaHei UI", sans-serif;
  line-height: 1.78;
}
.section-heading p { max-width: 760px; margin: 18px 0 0; }
.profile-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  gap: 24px;
}
.bio-panel, .stats-panel, .timeline-panel, .mission-detail, .strength-card {
  border: 1px solid var(--line);
  background: rgba(8,8,8,0.68);
  backdrop-filter: blur(8px);
}
.bio-panel { padding: 28px; min-height: 350px; }
.bio-panel h3, .mission-copy h3, .strength-card h3 { margin: 0; font-size: clamp(1.5rem, 2vw, 2.2rem); line-height: 1.16; }
.contact-grid { display: grid; gap: 1px; margin-top: 28px; background: var(--line); border: 1px solid var(--line); }
.contact-grid a { padding: 16px; background: #070707; font-family: "Microsoft YaHei UI", sans-serif; }
.contact-grid span { display: block; color: var(--muted); font-size: 0.82rem; margin-bottom: 6px; }
.contact-grid strong { overflow-wrap: anywhere; }
.stats-panel { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--line); }
.stat-cell { min-height: 174px; padding: 24px; background: #070707; }
.stat-cell strong { display: block; font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: 0.92; }
.stat-cell span { display: block; margin-top: 14px; color: var(--soft); font-family: "Microsoft YaHei UI", sans-serif; }
.timeline-panel { grid-column: 1 / -1; padding: 0 28px; }
.timeline-panel article { display: grid; grid-template-columns: 190px 1fr; gap: 36px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.timeline-panel article:last-child { border-bottom: 0; }
.timeline-panel time { color: var(--ink); font-family: "Microsoft YaHei UI", sans-serif; font-weight: 700; }
.timeline-panel h3 { margin: 0; font-size: 1.28rem; }
.timeline-panel strong { display: block; margin: 8px 0; color: var(--soft); font-family: "Microsoft YaHei UI", sans-serif; }
.timeline-panel p { margin: 0; }
.mission-board { display: grid; grid-template-columns: minmax(290px, 0.48fr) minmax(0, 1fr); gap: 24px; }
.mission-list { display: grid; gap: 14px; align-content: start; }
.mission-card {
  min-height: 150px;
  padding: 20px;
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(8,8,8,0.62);
  cursor: pointer;
}
.mission-card:hover, .mission-card.active { border-color: rgba(255,42,42,0.72); background: rgba(255,42,42,0.16); transform: translateX(8px); }
.mission-card span, .mission-card small, .mission-copy span, .strength-card small { display: block; color: var(--muted); font-family: "Microsoft YaHei UI", sans-serif; letter-spacing: 0.08em; }
.mission-card strong { display: block; margin: 16px 0 8px; font-size: 1.38rem; }
.mission-detail { overflow: hidden; min-height: 680px; }
.mission-image { height: 430px; overflow: hidden; }
.mission-image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.12) brightness(0.72); }
.mission-copy { padding: 30px; }
.mission-copy h3 { margin-top: 12px; }
.mission-copy p { margin: 16px 0 0; max-width: 780px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tag-row em { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-style: normal; font-family: "Microsoft YaHei UI", sans-serif; background: rgba(255,255,255,0.04); }
.strength-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.strength-card { position: relative; min-height: 240px; padding: 24px; overflow: hidden; animation: rise 680ms both; animation-delay: var(--delay); }
.strength-card::after { content: ""; position: absolute; inset: auto 18px 18px auto; width: 42px; height: 42px; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); opacity: 0.65; }
.strength-card:hover { transform: translateY(-8px); border-color: rgba(255,42,42,0.72); background: rgba(255,42,42,0.14); }
.strength-card h3 { margin-top: 22px; }
.strength-card p { margin: 16px 0 0; }
.closing-section { position: relative; z-index: 1; min-height: 100dvh; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 45%, rgba(255,42,42,0.2), transparent 36%), #030303; }
.closing-section::before { content: ""; position: absolute; inset: 14% 8%; border: 1px solid var(--line); transform: rotate(-1deg); }
.ending-panel { position: relative; z-index: 2; max-width: 1180px; text-align: center; padding: 90px 0; }
.ending-panel h2 { margin-inline: auto; max-width: 1080px; }
.ending-panel p { max-width: 680px; margin: 24px auto 0; }
.closing-actions { justify-content: center; }

@keyframes navDropIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.15); } }
@keyframes scan { 0%, 100% { transform: translateY(-120%); opacity: 0; } 35%, 70% { opacity: 0.75; } 100% { transform: translateY(360%); } }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1120px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav.nav-floating { width: min(calc(100% - 28px), 1700px); border-radius: 18px; grid-template-columns: 1fr auto; }
  .nav-links { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; padding-bottom: 16px; }
  .hero-inner, .profile-grid, .mission-board, .strength-grid { grid-template-columns: 1fr; }
  .avatar-frame { justify-self: start; max-width: 360px; }
  .timeline-panel { grid-column: auto; }
}
@media (max-width: 720px) {
  .mission-flow { grid-template-columns: 1fr; }
  .frame { width: min(calc(100% - 28px), 1700px); }
  .hero h1 span { font-size: clamp(3.8rem, 19vw, 5rem); }
  .hero h1 strong { font-size: clamp(3rem, 16vw, 4.2rem); }
  .hero-inner { padding: 40px 0 70px; }
  .contact-button { justify-self: start; }
  .nav { gap: 12px; }
  .nav-links { gap: 18px; flex-wrap: wrap; }
  .stats-panel, .timeline-panel article { grid-template-columns: 1fr; }
  .mission-detail { min-height: auto; }
  .mission-image { height: 300px; }
  .profile-section, .projects-section, .strengths-section { padding: 72px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .starfield { display: none; }
}

/* Aesthetic pass: restrained red game HUD layer */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: calc(var(--progress) * 100%);
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff2a2a 18%, #ffffff 58%, #ff2a2a 100%);
  box-shadow: 0 0 18px rgba(255, 42, 42, 0.8);
  pointer-events: none;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--red);
  box-shadow: 0 0 16px rgba(255, 42, 42, 0.68);
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a.active {
  color: #fff;
}
.nav-links a.active::after,
.nav-links a:hover::after {
  transform: scaleX(1);
}
.nav.nav-floating::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 42, 42, 0.42), transparent 32%, rgba(255,255,255,0.18), transparent 68%, rgba(255,42,42,0.42));
  opacity: 0.52;
  filter: blur(10px);
}

.hero-copy-block {
  position: relative;
}
.hero-copy-block::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 12px;
  width: 1px;
  height: 76%;
  background: linear-gradient(180deg, transparent, rgba(255, 42, 42, 0.72), transparent);
  box-shadow: 0 0 18px rgba(255, 42, 42, 0.42);
}
.signal-strip {
  width: min(100%, 760px);
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(255, 42, 42, 0.34);
  background: rgba(5, 5, 5, 0.5);
  font-family: "Microsoft YaHei UI", sans-serif;
}
.signal-strip span {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: rgba(255,255,255,0.74);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  border-right: 1px solid rgba(255, 42, 42, 0.24);
}
.signal-strip span:last-child {
  border-right: 0;
}

.avatar-frame {
  transform: rotate(0.7deg) translateY(6px);
}
.portrait-card {
  border-color: rgba(255, 42, 42, 0.46);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 0 0 1px rgba(255,42,42,0.08);
}
.portrait-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 3;
  border: 1px solid rgba(255,255,255,0.16);
  clip-path: polygon(0 0, 28% 0, 28% 1px, 1px 1px, 1px 28%, 0 28%, 0 0, 100% 0, 100% 28%, calc(100% - 1px) 28%, calc(100% - 1px) 1px, 72% 1px, 72% 0, 100% 0, 100% 100%, 72% 100%, 72% calc(100% - 1px), calc(100% - 1px) calc(100% - 1px), calc(100% - 1px) 72%, 100% 72%, 100% 100%, 0 100%, 0 72%, 1px 72%, 1px calc(100% - 1px), 28% calc(100% - 1px), 28% 100%, 0 100%);
  pointer-events: none;
}
.core-overlay {
  transform: translateY(0);
  transition: transform 280ms ease, background 280ms ease, border-color 280ms ease;
}
.portrait-card:hover .core-overlay {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.34);
  background: rgba(0, 0, 0, 0.48);
}

.panel-label,
.timeline-header span,
.mission-image-hud span,
.mission-brief span,
.ending-status span {
  display: block;
  color: var(--red);
  font-family: "Microsoft YaHei UI", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.panel-label {
  margin-bottom: 18px;
}
.bio-panel,
.stats-panel,
.timeline-panel,
.mission-detail,
.strength-card {
  background: linear-gradient(180deg, rgba(12,12,12,0.78), rgba(4,4,4,0.78));
}
.bio-panel:hover,
.timeline-panel:hover,
.mission-detail:hover {
  border-color: rgba(255, 42, 42, 0.38);
}
.stat-cell {
  position: relative;
  overflow: hidden;
}
.stat-cell::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px 18px;
  height: 3px;
  background: linear-gradient(90deg, var(--red), transparent);
  opacity: 0.58;
}
.stat-cell small {
  display: block;
  margin-top: 10px;
  color: rgba(242,242,242,0.46);
  font-family: "Microsoft YaHei UI", sans-serif;
}
.timeline-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.timeline-header strong {
  color: rgba(255,255,255,0.82);
  font-family: "Microsoft YaHei UI", sans-serif;
}
.timeline-panel article {
  position: relative;
}
.timeline-panel article::before {
  content: "";
  position: absolute;
  left: 190px;
  top: 34px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--red);
  background: #030303;
  transform: translateX(-22px) rotate(45deg);
}

.mission-image {
  position: relative;
}
.mission-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, transparent 0 32%, rgba(0,0,0,0.54) 82%), linear-gradient(180deg, transparent, rgba(255,42,42,0.22));
  pointer-events: none;
}
.mission-image-hud {
  position: absolute;
  left: 24px;
  bottom: 22px;
  z-index: 2;
  min-width: 220px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.48);
  backdrop-filter: blur(8px);
}
.mission-image-hud strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 1.35rem;
}
.mission-brief {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 24px;
  border: 1px solid rgba(255, 42, 42, 0.28);
  background: rgba(255, 42, 42, 0.28);
}
.mission-brief div {
  min-height: 88px;
  padding: 16px;
  background: rgba(7,7,7,0.88);
}
.mission-brief strong {
  display: block;
  margin-top: 10px;
  font-family: "Microsoft YaHei UI", sans-serif;
  font-size: 0.96rem;
  line-height: 1.45;
}
.strength-card {
  isolation: isolate;
}
.strength-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(circle at 20% 0%, rgba(255,42,42,0.22), transparent 34%);
  transition: opacity 260ms ease;
}
.strength-card:hover::before {
  opacity: 1;
}

.ending-status {
  width: min(100%, 620px);
  margin: 30px auto 0;
  padding: 18px 22px;
  border: 1px solid rgba(255, 42, 42, 0.34);
  background: rgba(255,42,42,0.08);
  font-family: "Microsoft YaHei UI", sans-serif;
}
.ending-status strong {
  display: block;
  margin-top: 8px;
  font-size: 1.08rem;
}
.closing-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,42,42,0.08), transparent 22%, transparent 78%, rgba(255,42,42,0.08));
}

@media (max-width: 900px) {
  .signal-strip,
  .mission-brief {
    grid-template-columns: 1fr;
  }
  .timeline-header {
    display: grid;
  }
  .timeline-panel article::before {
    display: none;
  }
}

/* Responsive safety for the hero visual on narrow preview windows */
@media (max-width: 1280px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
    gap: clamp(28px, 4vw, 64px);
  }
  .avatar-frame {
    width: min(100%, 360px);
  }
  .avatar-frame::after {
    display: none;
  }
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .avatar-frame {
    justify-self: stretch;
    width: min(100%, 420px);
    margin-top: 18px;
  }
}

/* Performance pass: remove scroll beam and reduce repaint-heavy effects */
.scroll-progress {
  display: none !important;
}
body::after {
  opacity: 0.06;
  mix-blend-mode: normal;
}
.starfield {
  opacity: 0.72;
}
.nav.nav-floating {
  backdrop-filter: blur(12px) saturate(125%);
  -webkit-backdrop-filter: blur(12px) saturate(125%);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.nav.nav-floating::before {
  filter: none;
  opacity: 0.28;
}
.hero-video {
  opacity: 0.12;
}
.lower-liquid-bg {
  pointer-events: none;
  opacity: 0.42;
  filter: none;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 42, 42, 0.22), transparent 30%),
    radial-gradient(circle at 82% 34%, rgba(255, 42, 42, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(255, 42, 42, 0.08), transparent 36%, rgba(255, 42, 42, 0.1) 76%, transparent);
}
.lower-liquid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(circle at 50% 34%, #000, transparent 76%);
}
.bio-panel,
.stats-panel,
.timeline-panel,
.mission-detail,
.strength-card,
.mission-image-hud,
.core-overlay {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.strength-card,
.mission-card,
.primary-link,
.secondary-link,
.contact-button {
  will-change: auto;
}
.portrait-scan {
  animation-duration: 7s;
  opacity: 0.52;
}

/* Lower pages starfall atmosphere: lighter than WebGL, close to the hero mood */
.lower-stage {
  background:
    radial-gradient(circle at 20% 8%, rgba(255, 42, 42, 0.16), transparent 28%),
    radial-gradient(circle at 80% 38%, rgba(255, 255, 255, 0.055), transparent 30%),
    linear-gradient(180deg, #070202 0%, #050303 42%, #080202 100%);
}
.lower-stage::after {
  content: "";
  position: absolute;
  inset: -120vh 0 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.58;
  will-change: transform;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.58) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(255, 42, 42, 0.38) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(255, 255, 255, 0.22) 0 1px, transparent 2px);
  background-size: 118px 168px, 210px 260px, 340px 420px;
  background-position: 12px 0, 88px 34px, 160px 80px;
  animation: lowerStarfall 48s linear infinite;
}
.lower-stage::before {
  background:
    linear-gradient(180deg, #030303 0%, rgba(3,3,3,0.32) 16%, rgba(3,3,3,0.48) 72%, #030303 100%),
    radial-gradient(circle at 50% 30%, rgba(255, 42, 42, 0.08), transparent 42%);
}
.profile-section,
.projects-section,
.strengths-section {
  position: relative;
}
.profile-section::before,
.projects-section::before,
.strengths-section::before {
  content: "";
  position: absolute;
  inset: 5% -4%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.32;
  background: radial-gradient(circle at 50% 20%, rgba(255,255,255,0.055), transparent 46%);
}

@keyframes lowerStarfall {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, 120vh, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .lower-stage::after {
    animation: none;
  }
}

/* Section-shaped red glows: distinct silhouettes per page block */
.profile-section,
.projects-section,
.strengths-section,
.closing-section {
  isolation: isolate;
}
.profile-section::after,
.projects-section::after,
.strengths-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  opacity: 0.72;
}
.profile-section::after {
  left: -7%;
  top: 13%;
  width: min(720px, 48vw);
  height: min(720px, 48vw);
  border-radius: 38% 62% 48% 52%;
  background:
    radial-gradient(circle at 46% 44%, rgba(255, 42, 42, 0.22), transparent 38%),
    radial-gradient(circle at 62% 52%, rgba(255, 255, 255, 0.055), transparent 28%);
  filter: blur(10px);
  transform: rotate(-14deg);
}
.projects-section::after {
  right: -10%;
  top: 4%;
  width: min(980px, 62vw);
  height: min(560px, 36vw);
  background:
    linear-gradient(118deg, transparent 0 18%, rgba(255, 42, 42, 0.2) 28%, rgba(255, 42, 42, 0.06) 54%, transparent 72%),
    radial-gradient(ellipse at 52% 50%, rgba(255, 42, 42, 0.17), transparent 64%);
  clip-path: polygon(14% 0, 100% 16%, 82% 100%, 0 78%);
  filter: blur(8px);
}
.strengths-section::after {
  left: 50%;
  top: 18%;
  width: min(980px, 66vw);
  height: min(980px, 66vw);
  border-radius: 50%;
  transform: translateX(-50%);
  background:
    conic-gradient(from 18deg, transparent 0 18%, rgba(255,42,42,0.18) 22%, transparent 31%, transparent 54%, rgba(255,42,42,0.13) 62%, transparent 74%),
    radial-gradient(circle at 50% 50%, rgba(255,42,42,0.12), transparent 58%);
  mask-image: radial-gradient(circle, transparent 0 34%, #000 36% 62%, transparent 68%);
  filter: blur(6px);
}
.closing-section {
  background:
    radial-gradient(ellipse at 50% 46%, rgba(255,42,42,0.25), transparent 34%),
    radial-gradient(circle at 16% 18%, rgba(255,42,42,0.12), transparent 22%),
    radial-gradient(circle at 86% 78%, rgba(255,42,42,0.16), transparent 26%),
    #030303;
}
.closing-section::before {
  box-shadow:
    0 0 80px rgba(255, 42, 42, 0.12),
    inset 0 0 80px rgba(255, 42, 42, 0.055);
}
.closing-section::after {
  background:
    linear-gradient(90deg, rgba(255,42,42,0.11), transparent 18%, transparent 82%, rgba(255,42,42,0.11)),
    radial-gradient(ellipse at 50% 50%, transparent 36%, rgba(255,42,42,0.08) 62%, transparent 74%);
}
.bio-panel,
.stats-panel,
.timeline-panel,
.mission-detail,
.strength-card {
  box-shadow: inset 0 0 0 1px rgba(255, 42, 42, 0.035);
}

@media (max-width: 900px) {
  .profile-section::after,
  .projects-section::after,
  .strengths-section::after {
    width: 92vw;
    height: 92vw;
    opacity: 0.5;
  }
}

/* GSAP choreography layer: agency-style motion materials */
.section-heading {
  position: relative;
  overflow: visible;
}
.section-heading span {
  display: block;
  width: max-content;
  max-width: 100%;
  color: rgba(255, 42, 42, 0.14);
  -webkit-text-stroke: 1px rgba(255, 42, 42, 0.62);
  text-stroke: 1px rgba(255, 42, 42, 0.62);
  font-size: clamp(2.7rem, 7vw, 7.6rem);
  line-height: 0.82;
  letter-spacing: -0.035em;
  transform-origin: 0% 50%;
}
.section-heading h2 {
  position: relative;
  z-index: 1;
  margin-top: -0.18em;
  transform-origin: 0% 100%;
}
.section-heading p {
  position: relative;
  z-index: 1;
}
.profile-grid,
.mission-board,
.strength-grid,
.ending-panel,
.hero-copy-block,
.avatar-frame {
  transform-style: preserve-3d;
}
.bio-panel,
.stats-panel,
.timeline-panel,
.mission-card,
.mission-detail,
.strength-card,
.mission-image,
.ending-status {
  will-change: transform, opacity, clip-path;
}
.strength-card {
  animation: none !important;
}
.mission-image {
  contain: paint;
}
.mission-image img {
  height: 116%;
  transform-origin: 50% 50%;
  will-change: transform;
}
.hero h1 span,
.hero h1 strong,
.ending-panel h2 {
  will-change: transform, opacity, clip-path;
}
.hero-scrim,
.avatar-frame {
  will-change: transform, opacity, filter;
}

@media (max-width: 900px) {
  .section-heading span {
    font-size: clamp(2.4rem, 14vw, 4.6rem);
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bio-panel,
  .stats-panel,
  .timeline-panel,
  .mission-card,
  .mission-detail,
  .strength-card,
  .mission-image,
  .ending-status,
  .hero h1 span,
  .hero h1 strong {
    will-change: auto;
    clip-path: none !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* JiZhe PRD V1.1 project evidence cards */
.project-evidence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 24px;
  border: 1px solid rgba(255, 42, 42, 0.24);
  background: rgba(255, 42, 42, 0.24);
}
.project-evidence article {
  min-height: 142px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255,42,42,0.08), transparent 42%),
    rgba(6, 6, 6, 0.9);
}
.project-evidence span {
  color: var(--red);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}
.project-evidence p {
  margin-top: 12px;
  color: rgba(242,242,242,0.7);
  font-size: 0.95rem;
  line-height: 1.72;
}
.mission-image-hud span {
  line-height: 1.45;
}
@media (max-width: 720px) {
  .project-evidence {
    grid-template-columns: 1fr;
  }
}
