/* Theme colors are independent from the decorative globe palette. */
:root {
  color-scheme: dark;
  --bg: #080b10;
  --bg-deep: #05070b;
  --bg-panel: #10151c;
  --text: #f2f4f3;
  --text-soft: #d0d5da;
  --text-muted: #a2acb8;
  --cyan: #83e9dc;
  --cyan-soft: #83e9dc12;
  --violet: #b4a3f5;
  --magenta: #efa8ca;
  --amber: #e7edaa;
  --line: #b0c6d326;
  --line-strong: #83e9dc70;
  --nav-bg: #080b10e8;
  --radius: 6px;
  --nav-height: 86px;
  --mono: "Consolas", "SFMono-Regular", monospace;
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f5f4;
  --bg-deep: #fff;
  --bg-panel: #e9eeec;
  --text: #172120;
  --text-soft: #334540;
  --text-muted: #52625d;
  --cyan: #00685e;
  --cyan-soft: #00685e0c;
  --violet: #64439b;
  --magenta: #9b365f;
  --amber: #556711;
  --line: #173f352b;
  --line-strong: #00685e70;
  --nav-bg: #f4f5f4ee;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
}
body {
  min-width: 280px;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.75;
  letter-spacing: 0;
}
main,
.navbar,
.footer {
  position: relative;
  z-index: 1;
}
img,
canvas {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 5px;
}
::selection {
  background: var(--cyan);
  color: var(--bg);
}
[hidden] {
  display: none !important;
}
.container,
.nav-container {
  width: min(1280px, calc(100% - 96px));
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  padding: 12px 22px;
  background: var(--text);
  color: var(--bg);
  z-index: 5000;
}
.skip-link:focus {
  top: 10px;
}
.section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}
#about {
  padding-top: 30px;
}
.section-panel {
  background: color-mix(in srgb, var(--bg-panel) 40%, transparent);
}
.section-kicker,
.eyebrow {
  color: var(--cyan);
  font: 12px/1.7 var(--mono);
  text-transform: uppercase;
}
.section-kicker {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-kicker::before {
  content: "+";
  color: var(--text-muted);
  font-size: 18px;
}
.section-title {
  font-size: 36px;
  line-height: 1.4;
  font-weight: 500;
  margin-bottom: 44px;
}
.glass {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    border-color 0.25s,
    transform 0.25s,
    box-shadow 0.25s;
}
.glass:hover {
  border-color: var(--line-strong);
  box-shadow: 0 8px 30px #0000000d;
}
.reveal {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(3px);
  transition:
    opacity 0.65s,
    transform 0.65s,
    filter 0.65s;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}
#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.32;
}
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(circle, #83e9dc0e, transparent 68%);
}
.click-burst {
  position: fixed;
  z-index: 3000;
  width: 10px;
  height: 10px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: clickBurst 0.6s forwards;
}
.spark {
  position: fixed;
  z-index: 3000;
  width: 3px;
  height: 3px;
  background: var(--cyan);
  pointer-events: none;
  animation: sparkFly 0.6s forwards;
}
.noscript-warning {
  padding: 20px;
  background: #36220d;
  color: #fff;
}

/* Shared coordinate line connects navigation destinations. */
.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-container {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-mark {
  font: 700 29px/1 var(--mono);
  color: var(--text);
  transform: skew(-9deg);
}
.logo-mark span {
  color: var(--cyan);
}
.logo-word {
  font: 700 12px/1.3 var(--mono);
}
.logo-word span {
  display: block;
  font-size: 8px;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 5px;
}
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 15px;
}
.nav-menu a {
  display: flex;
  flex-direction: column;
  position: relative;
  font-size: 12px;
  min-height: 50px;
  justify-content: center;
  color: var(--text-muted);
}
.nav-index {
  font: 9px var(--mono);
  color: var(--text-muted);
  margin-bottom: 3px;
}
.nav-label {
  white-space: nowrap;
}
.nav-menu a::before {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  bottom: -3px;
  height: 1px;
  background: var(--line);
}
.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: var(--text-muted);
}
.nav-menu a:hover,
.nav-menu a.active,
.nav-menu a.active .nav-index {
  color: var(--cyan);
}
.nav-menu a.active::after {
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}
.nav-controls {
  display: flex;
  gap: 8px;
}
.icon-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color 0.2s;
}
.icon-button:hover {
  background: var(--cyan-soft);
  border-color: var(--cyan);
}
.hamburger {
  display: none;
  padding: 13px 10px;
  gap: 4px;
}
.hamburger span {
  height: 1px;
  width: 20px;
  background: var(--text);
}

/* Full-bleed 3D scene with a stable, readable identity layer. */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 710px;
  height: min(880px, calc(100svh - 48px));
  display: flex;
  align-items: center;
  overflow: clip;
  padding-top: var(--nav-height);
}
.hero-grid {
  display: block;
  position: relative;
  z-index: 2;
  pointer-events: none;
}
.hero-copy {
  width: min(530px, 47%);
  pointer-events: auto;
  padding-block: 26px 56px;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-muted);
  font: 11px/1.5 var(--mono);
  margin-bottom: 28px;
}
.status-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px #83e9dc50;
}
.hero-name {
  color: var(--text);
  font-size: 88px;
  line-height: 1.3;
  font-weight: 700;
  margin-block: 8px 0;
}
.hero-name-en {
  font: 500 36px/1.4 var(--mono);
  color: var(--text);
}
.hero-name-en span {
  color: var(--cyan);
  margin-left: 18px;
}
.hero-typing {
  min-height: 24px;
  font: 12px/24px var(--mono);
  color: var(--cyan);
  margin-top: 18px;
}
.cursor {
  animation: blink 1s steps(1) infinite;
  padding-left: 3px;
}
.hero-title {
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 8px;
}
.hero-intro {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 460px;
  margin-top: 17px;
  line-height: 1.9;
}
.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 21px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.btn-primary {
  background: var(--cyan);
  color: var(--bg-deep);
  border-color: var(--cyan);
}
.btn-primary:hover {
  box-shadow: 0 0 24px color-mix(in srgb, var(--cyan) 25%, transparent);
}
.btn-outline {
  background: var(--bg);
  color: var(--text);
}
.btn-outline:hover {
  background: var(--bg-panel);
  border-color: var(--cyan);
}
.hero-metrics {
  display: flex;
  gap: 32px;
  margin-top: 30px;
}
.metric-card {
  border-left: 1px solid var(--line);
  padding-left: 15px;
}
.metric-card strong {
  display: block;
  font: 21px/1.5 var(--mono);
  color: var(--text);
}
.metric-card span {
  font-size: 10px;
  color: var(--text-muted);
}
.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.earth-shell {
  width: min(850px, 68%);
  aspect-ratio: 1;
  position: absolute;
  top: 50%;
  right: -2%;
  transform: translateY(-45%);
}
#earth-canvas {
  width: 100%;
  height: 100%;
}
.earth-fallback {
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  background: url("assets/earth.jpg") center/cover;
  border: 1px solid #83e9dc77;
  box-shadow: 0 0 36px #83e9dc20;
  display: none;
}
.earth-static .earth-fallback {
  display: block;
}
.earth-static canvas {
  display: none;
}
.hero-coordinate {
  position: absolute;
  right: 48px;
  top: calc(var(--nav-height) + 30px);
  font: 10px/1.7 var(--mono);
  color: var(--text-muted);
  text-align: right;
  z-index: 2;
}
.hero-coordinate span {
  display: block;
  color: var(--cyan);
}
.orbital-caption {
  position: absolute;
  right: 7%;
  bottom: 52px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font: 10px/1.7 var(--mono);
  color: var(--cyan);
}
.orbital-caption > span:last-child {
  flex-basis: 100%;
  text-align: right;
  font:
    12px/1.8 "Microsoft YaHei",
    sans-serif;
  color: var(--text-muted);
}
.scroll-indicator {
  position: absolute;
  bottom: 22px;
  left: 48px;
  display: flex;
  align-items: center;
  gap: 25px;
  min-height: 44px;
  font: 10px/1.5 var(--mono);
  color: var(--text-muted);
}
.scroll-indicator i {
  color: var(--cyan);
}

/* Resume: unframed sections and restrained repeated items. */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.about-card {
  padding: 30px;
}
.about-icon {
  font-size: 24px;
  color: var(--cyan);
  margin-bottom: 25px;
}
.about-card:nth-child(2) .about-icon {
  color: var(--violet);
}
.about-card:nth-child(3) .about-icon {
  color: var(--amber);
}
.about-card h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 14px;
}
.about-card p,
.self-eval p {
  font-size: 14px;
  color: var(--text-muted);
}
.self-eval.glass {
  background: none;
  border: 0;
  border-left: 1px solid var(--cyan);
  border-radius: 0;
  margin-top: 40px;
  padding: 0 0 0 28px;
  box-shadow: none;
  display: flex;
  gap: 22px;
}
.quote-icon {
  color: var(--cyan);
  font-size: 20px;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 38px;
}
.skill-group.glass {
  background: none;
  border: 0;
  box-shadow: none;
}
.skill-category {
  font-size: 16px;
  font-weight: 500;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.skill-category span {
  color: var(--cyan);
  margin-right: 10px;
}
.skill-item {
  margin-block: 18px;
}
.skill-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}
.skill-percent {
  font: 11px/1.8 var(--mono);
  color: var(--text-muted);
}
.skill-bar {
  height: 2px;
  background: var(--line);
  margin-top: 10px;
}
.skill-fill {
  height: 100%;
  background: var(--cyan);
  width: 0;
  transition: width 0.8s;
}
.skill-group:nth-child(2) .skill-fill {
  background: var(--violet);
}
.skill-group:nth-child(3) .skill-fill {
  background: var(--amber);
}
.skill-tags,
.project-tags,
.courses-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-chip,
.tech-chip,
.course-tag {
  font-size: 11px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  color: var(--text-soft);
  border-radius: 3px;
}
.skill-chip {
  transition:
    border-color 0.2s,
    color 0.2s;
}
.skill-chip:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}
.timeline {
  position: relative;
  border-left: 1px solid var(--line);
  margin-left: 6px;
}
.timeline-item {
  position: relative;
  padding-left: 34px;
  padding-bottom: 24px;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-dot {
  position: absolute;
  left: -4px;
  top: 32px;
  width: 7px;
  height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 14px #83e9dc25;
}
.timeline-card.glass {
  padding: 24px 0 30px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  border-radius: 0;
  box-shadow: none;
}
.item-head,
.education-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.item-head h3,
.school {
  font-size: 21px;
  line-height: 1.5;
  font-weight: 500;
}
.org,
.major,
.degree,
.education-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 5px;
}
.period,
.project-meta {
  color: var(--text-muted);
  font: 11px/1.8 var(--mono);
}
.timeline-card .period {
  margin-block: 9px 15px;
}
.type-badge {
  flex-shrink: 0;
  color: var(--violet);
  font-size: 11px;
  padding: 3px 9px;
  border: 1px solid var(--line);
}
.timeline-card ul,
.project-card ul {
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 13px;
}
.timeline-card li,
.project-card li {
  margin-block: 8px;
}
.timeline-card li::marker,
.project-card li::marker {
  color: var(--cyan);
}
.projects-grid {
  display: grid;
  gap: 38px;
}
.project-card.glass {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 20px 46px;
  padding: 30px 0 38px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}
.project-cover {
  grid-column: 1;
  grid-row: 1 / span 5;
  position: relative;
  min-height: 330px;
  border: 1px solid var(--line);
  overflow: hidden;
  border-radius: 4px;
}
.project-cover canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.project-cover figcaption {
  position: absolute;
  inset: auto 16px 14px;
  display: flex;
  justify-content: space-between;
  color: #d9f4ec;
  font: 10px var(--mono);
}
.project-number {
  position: absolute;
  left: 20px;
  top: 45px;
  z-index: 1;
  font: 12px var(--mono);
  color: #b7eddd;
}
.project-meta,
.project-card h3,
.project-card ul,
.project-tags,
.project-link {
  grid-column: 2;
}
.project-card h3 {
  font-size: 24px;
  line-height: 1.6;
  font-weight: 500;
  max-width: 520px;
}
.project-card ul {
  margin-top: -8px;
}
.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  min-height: 44px;
  font-size: 12px;
  color: var(--cyan);
}
.project-link:hover {
  color: var(--text);
}
.education-card.glass {
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  border-radius: 0;
  padding: 28px 0;
  box-shadow: none;
}
.courses-tags {
  margin-top: 22px;
}
.awards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 38px;
}
.award-card.glass {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 24px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  border-radius: 0;
  box-shadow: none;
}
.award-icon-circle {
  color: var(--amber);
  font-size: 23px;
}
.award-info h4 {
  font-size: 14px;
  font-weight: 500;
}
.year {
  font: 11px var(--mono);
  color: var(--text-muted);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 26px;
}
.contact-card.glass {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.contact-icon {
  color: var(--cyan);
  padding-top: 4px;
}
.contact-card h4 {
  font: 11px/1.5 var(--mono);
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.contact-value {
  font-size: 15px;
  overflow-wrap: anywhere;
}
.contact-card a {
  color: var(--text);
  border-bottom: 1px solid var(--cyan);
}
.contact-card a:hover {
  color: var(--cyan);
}
.contact-card:first-child .contact-value {
  font: 25px/1.5 var(--mono);
}
.footer {
  border-top: 1px solid var(--line);
}
.footer-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font: 10px/1.8 var(--mono);
  color: var(--text-muted);
}
.footer-tagline {
  display: flex;
  align-items: center;
  gap: 28px;
}
.footer-tagline a {
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}
@keyframes clickBurst {
  to {
    width: 70px;
    height: 70px;
    opacity: 0;
  }
}
@keyframes sparkFly {
  to {
    transform: translate(var(--spark-x), var(--spark-y));
    opacity: 0;
  }
}
@media (min-width: 1600px) {
  .hero-copy {
    width: 560px;
  }
  .earth-shell {
    right: 8%;
  }
}
@media (max-width: 1150px) {
  .container,
  .nav-container {
    width: calc(100% - 56px);
  }
  .nav-menu {
    gap: 11px;
  }
  .logo-word {
    display: none;
  }
  .hero-name {
    font-size: 72px;
  }
  .hero-name-en {
    font-size: 30px;
  }
  .hero-copy {
    width: 49%;
  }
  .hero-coordinate {
    right: 28px;
  }
  .scroll-indicator {
    left: 28px;
  }
  .hero-metrics {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  :root {
    --nav-height: 72px;
  }
  .logo-word {
    display: block;
  }
  .hamburger {
    display: grid;
  }
  .nav-menu {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding: 26px 28px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition:
      opacity 0.2s,
      transform 0.2s,
      visibility 0.2s;
  }
  .nav-menu.active {
    opacity: 1;
    transform: none;
    visibility: visible;
  }
  .nav-menu a {
    min-height: 48px;
    font-size: 13px;
  }
  .hero {
    min-height: 680px;
  }
  .hero-name {
    font-size: 66px;
  }
  .hero-copy {
    width: 56%;
  }
  .hero-intro {
    max-width: 360px;
  }
  .earth-shell {
    width: 75%;
    right: -16%;
  }
  .hero-visual {
    mask-image: linear-gradient(90deg, transparent 42%, #000 62%);
  }
  .hero-coordinate {
    font-size: 9px;
  }
  .hero-badge {
    font-size: 10px;
  }
  .about-grid {
    gap: 14px;
  }
  .about-card {
    padding: 22px;
  }
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }
  .project-card.glass {
    gap: 16px 28px;
  }
  .project-cover {
    min-height: 300px;
  }
  .project-card h3 {
    font-size: 20px;
  }
  .contact-card:first-child .contact-value {
    font-size: 20px;
  }
}
@media (max-width: 600px) {
  .container,
  .nav-container {
    width: calc(100% - 40px);
  }
  .section {
    padding: 62px 0;
  }
  .section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .hero {
    min-height: 650px;
    height: calc(100svh - 36px);
    max-height: 780px;
    align-items: flex-end;
  }
  .hero-copy {
    width: 100%;
    padding: 0 0 62px;
  }
  .hero-coordinate {
    top: 91px;
    right: 20px;
    font-size: 8px;
  }
  .hero-coordinate span {
    display: none;
  }
  .hero-badge {
    margin-bottom: 20px;
    max-width: 190px;
    min-height: 30px;
  }
  .eyebrow {
    font-size: 10px;
  }
  .hero-name {
    font-size: 58px;
  }
  .hero-name-en {
    font-size: 25px;
  }
  .earth-shell {
    width: 360px;
    right: -117px;
    top: 48px;
    transform: none;
  }
  .hero-visual {
    mask-image: linear-gradient(#000 0%, #000 32%, transparent 65%);
  }
  .hero-typing {
    font-size: 10px;
    margin-top: 14px;
  }
  .hero-title {
    font-size: 11px;
  }
  .hero-intro {
    max-width: none;
    font-size: 12px;
    margin-top: 12px;
  }
  .hero-buttons {
    margin-top: 20px;
    gap: 9px;
  }
  .btn {
    padding-inline: 14px;
    font-size: 12px;
  }
  .hero-metrics {
    gap: 20px;
    margin-top: 24px;
  }
  .metric-card {
    padding-left: 10px;
  }
  .metric-card strong {
    font-size: 18px;
  }
  .metric-card span {
    font-size: 9px;
  }
  .orbital-caption {
    display: none;
  }
  .scroll-indicator {
    left: 20px;
    bottom: 9px;
    font-size: 9px;
  }
  .about-grid,
  .skills-grid,
  .awards-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .about-card {
    padding: 24px;
  }
  .about-icon {
    margin-bottom: 16px;
  }
  .self-eval.glass {
    padding-left: 18px;
    gap: 12px;
  }
  .self-eval p {
    font-size: 13px;
  }
  .skills-grid {
    gap: 24px;
  }
  .timeline-item {
    padding-left: 20px;
  }
  .item-head,
  .education-top {
    flex-wrap: wrap;
    gap: 10px;
  }
  .item-head h3,
  .school {
    font-size: 19px;
  }
  .project-card.glass {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 0;
  }
  .project-cover {
    aspect-ratio: 1.5;
    min-height: 0;
    width: 100%;
  }
  .project-number {
    top: 15px;
  }
  .project-card h3 {
    font-size: 21px;
  }
  .project-card ul {
    margin-top: 0;
  }
  .contact-grid {
    gap: 12px;
  }
  .contact-card:first-child .contact-value {
    font-size: 21px;
  }
  .footer-inner {
    padding-block: 24px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .footer-tagline {
    width: 100%;
    justify-content: space-between;
  }
}
@media (max-height: 720px) and (min-width: 601px) {
  .hero {
    min-height: 630px;
  }
  .hero-copy {
    padding-block: 15px 45px;
  }
  .hero-name {
    font-size: 65px;
  }
  .hero-badge {
    margin-bottom: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
  #particles,
  .cursor-glow {
    display: none;
  }
}

/* Immersive exhibition layer */
.archive-source {
  display: none !important;
}
.hero {
  min-height: 100svh;
  height: 100svh;
  max-height: 980px;
  background:
    radial-gradient(circle at 68% 48%, #123d3c30, transparent 34%), var(--bg);
}
.hero::after {
  content: "01";
  position: absolute;
  left: 48px;
  top: 42%;
  color: var(--line-strong);
  font: 11px var(--mono);
  writing-mode: vertical-rl;
  letter-spacing: 0.24em;
}
.hero-copy {
  width: min(650px, 57%);
  padding-top: 4vh;
}
.hero-name {
  font-size: 11px;
  letter-spacing: 0.22em;
  line-height: 1.5;
  color: var(--cyan);
  text-transform: uppercase;
}
.hero-name-en {
  font-size: clamp(48px, 7vw, 112px);
  letter-spacing: 0.12em;
  line-height: 0.95;
  margin-top: 16px;
}
.hero-name-en span {
  font-size: 0.8em;
}
.hero-title {
  font: 11px/1.8 var(--mono);
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-top: 28px;
  max-width: 390px;
}
.hero-manifesto {
  margin-top: 24px;
  color: var(--text);
  font: 500 clamp(28px, 4vw, 62px)/0.95 var(--mono);
  letter-spacing: -0.04em;
}
.hero-intro {
  max-width: 380px;
  font-size: 13px;
}
.hero-buttons .btn {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero-metrics {
  opacity: 0.72;
  margin-bottom: 56px;
}
.hero-visual {
  opacity: 0.92;
  mix-blend-mode: screen;
}
[data-theme="light"] .hero-visual {
  mix-blend-mode: multiply;
  opacity: 0.78;
}
.hero-coordinate {
  right: 48px;
  top: 44%;
  transform: rotate(90deg);
  transform-origin: right center;
}
.orbital-caption {
  right: 9%;
  bottom: 38px;
}
.scroll-indicator {
  left: 48px;
  bottom: 38px;
}
.scroll-indicator::before {
  content: "";
  width: 1px;
  height: 60px;
  background: var(--line-strong);
  position: absolute;
  left: 0;
  bottom: 36px;
}
.scroll-indicator span {
  margin-left: 20px;
}
.section-panel {
  background: var(--bg-deep);
}
#projects {
  padding-top: 18vh;
  padding-bottom: 16vh;
}
#projects > .container {
  width: min(1420px, calc(100% - 120px));
}
#projects .section-title {
  font-size: clamp(48px, 8vw, 118px);
  line-height: 0.95;
  max-width: 640px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.projects-grid {
  gap: 16vh;
}
.project-card.glass {
  min-height: 78vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  grid-template-rows: auto auto 1fr auto auto;
  align-content: center;
  gap: 18px 6vw;
  padding: 10vh 0;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  background: transparent;
  overflow: visible;
}
.project-card.glass::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent 55%);
  transform-origin: left;
  transition: transform 0.8s;
}
.project-card.glass:hover::before {
  transform: scaleX(0.35);
}
.project-number {
  left: auto;
  right: 0;
  top: 5vh;
  color: var(--cyan);
  font-size: 11px;
}
.project-cover {
  grid-column: 1;
  grid-row: 1 / span 5;
  width: 100%;
  height: 62vh;
  min-height: 420px;
  border: 0;
  border-radius: 0;
  background: #0c1a1a;
  box-shadow: 28px 28px 0 -27px var(--cyan);
}
.project-cover::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid #d4fff61f;
  z-index: 1;
  pointer-events: none;
}
.project-cover figcaption {
  z-index: 2;
  left: 28px;
  right: 28px;
  bottom: 24px;
  color: #d9f4ec;
}
.project-card:nth-child(2) .project-cover {
  box-shadow: -28px 28px 0 -27px var(--violet);
}
.project-card:nth-child(2) .project-cover::after {
  content: "03 / EARTH OBSERVATION";
  position: absolute;
  top: 28px;
  right: 28px;
  color: #d9f4ec;
  font: 10px var(--mono);
}
.project-meta {
  align-self: end;
  font-size: 11px;
  letter-spacing: 0.05em;
}
.project-card h3 {
  grid-column: 2;
  font-size: clamp(28px, 3.8vw, 60px);
  line-height: 1.1;
  font-weight: 500;
  max-width: 540px;
}
.project-caption {
  grid-column: 2;
  color: var(--text-muted);
  font-size: 14px;
  max-width: 430px;
}
.project-card .project-tags {
  grid-column: 2;
  align-self: end;
}
.project-open {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  width: min(100%, 430px);
  padding: 0;
  color: var(--cyan);
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  text-align: left;
}
.project-open:hover {
  color: var(--text);
  border-color: var(--cyan);
}
.project-open i {
  transition: transform 0.25s;
}
.project-open:hover i {
  transform: translate(4px, -4px);
}
.archive-section {
  padding: 18vh 0;
  background: var(--bg-deep);
}
.archive-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}
.archive-heading .section-title {
  margin-bottom: 10px;
  font-size: clamp(44px, 7vw, 104px);
  line-height: 0.92;
}
.archive-heading .section-title span {
  color: var(--cyan);
}
.archive-heading p {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 34px;
}
.archive-index {
  padding-bottom: 34px;
  font: 10px var(--mono);
  color: var(--text-muted);
}
.archive-triggers {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.archive-trigger {
  min-height: 280px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 22px 24px 0;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--text);
  background: transparent;
  text-align: left;
  transition:
    background 0.25s,
    padding 0.25s;
}
.archive-trigger:not(:first-child) {
  padding-left: 22px;
}
.archive-trigger:last-child {
  border-right: 0;
}
.archive-trigger:hover {
  padding-top: 40px;
  background: linear-gradient(180deg, var(--cyan-soft), transparent 80%);
}
.archive-trigger-number,
.archive-trigger-copy small {
  font: 10px var(--mono);
  color: var(--text-muted);
}
.archive-trigger-icon {
  color: var(--cyan);
  font-size: 22px;
}
.archive-trigger-copy {
  display: grid;
  gap: 6px;
}
.archive-trigger-copy strong {
  font-size: 18px;
  font-weight: 500;
}
.archive-trigger-copy em {
  font-style: normal;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.7;
}
.archive-trigger-arrow {
  margin-top: auto;
  color: var(--cyan);
}
.archive-drawer {
  position: fixed;
  inset: 0;
  z-index: 4000;
  visibility: hidden;
  pointer-events: none;
}
.archive-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: #05070bcc;
  opacity: 0;
  transition: opacity 0.3s;
}
.is-open .drawer-backdrop {
  opacity: 1;
}
.drawer-panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(680px, 100%);
  overflow: auto;
  padding: 44px min(7vw, 76px);
  background: var(--bg);
  border-left: 1px solid var(--line-strong);
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.is-open .drawer-panel {
  transform: none;
}
.drawer-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 10px var(--mono);
  color: var(--cyan);
}
.drawer-panel h2 {
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1;
  font-weight: 500;
  margin: 12vh 0 46px;
  max-width: 540px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.drawer-lead {
  font-size: 17px;
  line-height: 2;
  color: var(--text-soft);
  white-space: pre-line;
}
.drawer-data-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  border-top: 1px solid var(--line);
  margin-top: 50px;
  padding-top: 20px;
}
.drawer-data-grid span {
  font: 13px var(--mono);
  color: var(--text);
  overflow-wrap: anywhere;
}
.drawer-data-grid small {
  display: block;
  color: var(--text-muted);
  font-size: 10px;
  margin-bottom: 8px;
}
.drawer-records {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.drawer-record {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.drawer-record h3 {
  font-size: 18px;
  font-weight: 500;
}
.drawer-record p,
.drawer-record li {
  color: var(--text-muted);
  font-size: 13px;
}
.drawer-record time,
.drawer-honor time {
  color: var(--cyan);
  font: 10px var(--mono);
}
.drawer-record ul {
  padding: 14px 0 0 18px;
}
.drawer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.drawer-tags span {
  border: 1px solid var(--line);
  padding: 5px 9px;
  color: var(--text-muted);
  font: 10px var(--mono);
}
.drawer-honors {
  border-top: 1px solid var(--line);
}
.drawer-honor {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.drawer-honor > i {
  color: var(--amber);
  padding-top: 4px;
}
.drawer-honor h3 {
  font-size: 14px;
  font-weight: 500;
}
.drawer-contacts {
  border-top: 1px solid var(--line);
}
.drawer-contact {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.drawer-contact span {
  display: block;
  color: var(--text-muted);
  font: 10px var(--mono);
  margin-bottom: 6px;
}
.drawer-contact a,
.drawer-external {
  color: var(--cyan);
  font: 20px var(--mono);
  overflow-wrap: anywhere;
}
.drawer-contact p {
  color: var(--text-soft);
}
.drawer-external {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  margin-top: 28px;
  font-size: 12px;
  border-bottom: 1px solid var(--cyan);
  padding-bottom: 8px;
}
.drawer-open {
  overflow: hidden;
}
[data-theme="light"] .archive-drawer .drawer-backdrop {
  background: #15231fcc;
}
@media (max-width: 900px) {
  .hero-copy {
    width: 64%;
  }
  .hero::after,
  .hero-coordinate {
    display: none;
  }
  .project-card.glass {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 16px;
    padding: 12vh 0;
  }
  .project-cover {
    grid-column: 1;
    grid-row: auto;
    height: 64vw;
    min-height: 280px;
  }
  .project-meta,
  .project-card h3,
  .project-caption,
  .project-card .project-tags,
  .project-open {
    grid-column: 1;
  }
  .project-card h3 {
    font-size: clamp(32px, 7vw, 54px);
  }
  .archive-triggers {
    grid-template-columns: repeat(2, 1fr);
  }
  .archive-trigger:nth-child(2n) {
    border-right: 0;
    padding-left: 22px;
  }
  .archive-trigger:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .drawer-panel {
    padding: 30px 28px;
  }
  .drawer-panel h2 {
    margin-top: 10vh;
  }
}
@media (max-width: 600px) {
  .hero {
    min-height: 100svh;
    height: 100svh;
  }
  .hero-copy {
    width: 100%;
    padding-bottom: 74px;
  }
  .hero-name {
    font-size: 10px;
  }
  .hero-name-en {
    font-size: clamp(40px, 12vw, 62px);
    letter-spacing: 0.08em;
  }
  .hero-title {
    margin-top: 22px;
  }
  .hero-metrics {
    gap: 16px;
    margin-bottom: 34px;
  }
  .orbital-caption {
    display: none;
  }
  .scroll-indicator {
    left: 20px;
    bottom: 18px;
  }
  .scroll-indicator::before {
    display: none;
  }
  .projects-grid {
    gap: 0;
  }
  .project-cover {
    height: 70vw;
  }
  .project-card h3 {
    font-size: 33px;
  }
  .archive-section {
    padding: 96px 0;
  }
  .archive-heading {
    display: block;
  }
  .archive-index {
    display: block;
    padding-bottom: 26px;
  }
  .archive-triggers {
    grid-template-columns: 1fr;
  }
  .archive-trigger,
  .archive-trigger:not(:first-child) {
    min-height: 170px;
    padding: 24px 0;
    border-right: 0;
    border-top: 1px solid var(--line);
  }
  .archive-trigger:first-child {
    border-top: 0;
  }
  .archive-trigger:hover {
    padding-top: 28px;
  }
  .drawer-panel {
    padding: 24px 20px;
  }
  .drawer-panel h2 {
    margin: 8vh 0 34px;
  }
  .drawer-data-grid {
    grid-template-columns: 1fr;
  }
  .drawer-lead {
    font-size: 15px;
  }
}
