:root {
  --bg: #05070a;
  --ink: rgba(248, 250, 252, 0.96);
  --muted: rgba(226, 232, 240, 0.66);
  --faint: rgba(226, 232, 240, 0.42);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --accent: #b9d7ff;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.095);
  --page: 1120px;
  --blur: blur(26px) saturate(150%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -8%, rgba(185, 215, 255, 0.16), transparent 32%),
    radial-gradient(circle at 14% 20%, rgba(112, 136, 172, 0.16), transparent 34%),
    linear-gradient(180deg, #111821 0%, #080b10 36%, #050608 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  line-height: 1.72;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(180deg, black, transparent 76%);
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
div,
section,
article,
span,
a {
  min-width: 0;
  overflow-wrap: anywhere;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--page), calc(100% - 32px));
  min-height: 58px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.048)),
    rgba(15, 20, 26, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 18px 60px rgba(0, 0, 0, 0.32);
  backdrop-filter: var(--blur);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
}

.brand-symbol {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-size: 14px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
}

.nav a {
  color: rgba(226, 232, 240, 0.72);
  font-size: 14px;
  font-weight: 600;
  transition: color 180ms ease;
}

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

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 126px 20px 98px;
  text-align: center;
}

.hero-orbit {
  position: absolute;
  width: min(520px, 78vw);
  height: min(520px, 78vw);
  border: 1px solid rgba(185, 215, 255, 0.12);
  border-radius: 50%;
  opacity: 0.54;
  box-shadow: inset 0 0 90px rgba(185, 215, 255, 0.04), 0 0 120px rgba(185, 215, 255, 0.055);
}

.hero-orbit::before,
.hero-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-orbit::before {
  inset: 16%;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-orbit::after {
  inset: 36%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 68%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  animation: heroEnter 1250ms cubic-bezier(0.16, 1, 0.3, 1) 260ms both;
}

.hairline {
  width: 56px;
  height: 1px;
  margin: 0 auto 28px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(56px, 10vw, 100px);
  font-weight: 700;
  line-height: 1;
}

.role {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 20px 0 22px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
}

.role::before,
.role::after {
  content: "";
  width: 34px;
  height: 1px;
  background: rgba(185, 215, 255, 0.55);
}

.hero-copy {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.hero-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 680px;
  margin: 34px auto 0;
}

.hero-panel span,
.skill-grid span,
.status-list span,
.contact-links span,
.contact-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.042);
  color: rgba(226, 232, 240, 0.76);
  font-size: 14px;
  font-weight: 650;
}

.scroll-link {
  display: inline-flex;
  margin-top: 48px;
  color: var(--faint);
  font-size: 13px;
  font-weight: 700;
}

.scroll-link:hover {
  color: var(--accent);
}

.section {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: clamp(34px, 5vw, 70px);
  width: min(var(--page), calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.section-kicker {
  color: var(--faint);
  font-size: 15px;
  font-weight: 800;
}

.section-body {
  min-width: 0;
}

.section h2 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 680;
  line-height: 1.16;
}

.section p {
  color: var(--muted);
  font-size: 16.5px;
}

.text-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 54px);
  max-width: 820px;
  margin-top: 34px;
}

.text-columns p {
  margin: 0;
}

.timeline,
.project-list,
.writing-list,
.method-grid {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.timeline,
.method-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline article,
.method-grid article,
.project-list article,
.writing-list article,
.feature-panel,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, var(--panel-strong), var(--panel)),
    rgba(14, 18, 24, 0.44);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.11), 0 24px 70px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(22px) saturate(140%);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.timeline article:hover,
.method-grid article:hover,
.project-list article:hover,
.writing-list article:hover {
  border-color: rgba(185, 215, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055)),
    rgba(14, 18, 24, 0.5);
  transform: translateY(-3px);
}

.timeline article,
.method-grid article,
.project-list article,
.writing-list article {
  padding: 24px;
}

.timeline span,
.method-grid span,
.writing-list span,
.project-meta span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.timeline h3,
.method-grid h3,
.project-list h3,
.writing-list h3 {
  margin: 10px 0 10px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.3;
}

.timeline p,
.method-grid p,
.project-list p,
.writing-list p {
  margin: 0;
}

.skill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 820px;
  margin-top: 34px;
}

.project-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.feature-panel,
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 300px);
  gap: 34px;
  align-items: center;
  padding: 34px;
}

.feature-panel p,
.contact-panel p {
  max-width: 650px;
  margin: 18px 0 0;
}

.status-list,
.contact-links {
  display: grid;
  gap: 12px;
}

.contact-links a {
  transition: color 180ms ease, border-color 180ms ease;
}

.contact-links a:hover {
  border-color: rgba(185, 215, 255, 0.48);
  color: var(--accent);
}

.contact-section {
  padding-bottom: 120px;
}

@keyframes heroEnter {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 900px) {
  .section,
  .feature-panel,
  .contact-panel,
  .text-columns,
  .timeline,
  .method-grid,
  .project-list {
    grid-template-columns: 1fr;
  }

  .section {
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 12px;
    left: 12px;
    right: 12px;
    width: auto;
    min-height: 52px;
    padding: 8px 10px;
    transform: none;
  }

  .brand span:last-child {
    display: none;
  }

  .nav {
    gap: 14px;
  }

  .nav a {
    font-size: 13px;
  }

  .nav a:nth-child(2) {
    display: none;
  }

  .hero {
    min-height: 760px;
    padding: 110px 18px 72px;
  }

  .hero h1 {
    font-size: clamp(48px, 18vw, 72px);
  }

  .hero-copy {
    font-size: 16px;
  }

  .section {
    width: calc(100% - 32px);
    padding: 72px 0;
  }

  .section h2 {
    font-size: clamp(28px, 9vw, 36px);
  }

  .timeline article,
  .project-list article,
  .writing-list article,
  .feature-panel,
  .contact-panel {
    border-radius: 20px;
    padding: 22px;
  }

  .project-meta {
    flex-direction: column;
    gap: 4px;
  }

  .contact-section {
    padding-bottom: 84px;
  }
}
