:root {
  --ink: #080a0b;
  --ink-soft: #111416;
  --paper: #f3f4ef;
  --paper-deep: #e5e7df;
  --muted: #8f9693;
  --line: rgba(255, 255, 255, 0.13);
  --acid: #b8ff3d;
  --cyan: #43d7e8;
  --max: 1440px;
  --pad: clamp(22px, 4vw, 64px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--paper);
  background: var(--ink);
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

body::selection {
  color: var(--ink);
  background: var(--acid);
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: 72px;
  padding: 0 var(--pad);
  border-bottom: 1px solid transparent;
  background: rgba(8, 10, 11, 0.02);
  transition: background 300ms ease, border-color 300ms ease, backdrop-filter 300ms ease;
}

.site-header.scrolled {
  border-color: var(--line);
  background: rgba(8, 10, 11, 0.78);
  backdrop-filter: blur(18px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.wordmark-dot {
  width: 9px;
  height: 9px;
  background: var(--acid);
  box-shadow: 0 0 18px rgba(184, 255, 61, 0.7);
}

.site-header nav {
  display: flex;
  gap: 34px;
  font-size: 13px;
  color: rgba(243, 244, 239, 0.68);
}

.site-header nav a,
.header-follow {
  transition: color 180ms ease;
}

.site-header nav a:hover {
  color: var(--paper);
}

.header-follow {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
}

.bili-mark {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 20px;
  border: 1px solid currentColor;
  font-size: 11px;
  font-weight: 900;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  align-items: center;
  min-height: min(900px, 92svh);
  padding: 112px var(--pad) 76px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, black 5%, transparent 82%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -8vw;
  bottom: -35%;
  width: 58vw;
  aspect-ratio: 1;
  border: 1px solid rgba(67, 215, 232, 0.18);
  border-radius: 50%;
}

.hero-copy,
.hero-portrait {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0;
  color: var(--acid);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.hero h1 {
  margin: 34px 0 42px;
  font-size: clamp(72px, 11vw, 164px);
  font-weight: 650;
  line-height: 0.84;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
}

.hero h1 .name-line {
  padding-left: clamp(24px, 8vw, 124px);
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(243, 244, 239, 0.78);
}

.accent-dot {
  display: inline !important;
  color: var(--acid);
  -webkit-text-stroke: 0;
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  max-width: 780px;
  gap: 32px;
}

.hero-intro {
  max-width: 480px;
  margin: 0;
  color: rgba(243, 244, 239, 0.7);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.75;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--acid);
  color: var(--acid);
  font-size: 13px;
  font-weight: 700;
}

.hero-portrait {
  justify-self: center;
  width: min(30vw, 410px);
  aspect-ratio: 1;
}

.portrait-ring {
  position: absolute;
  inset: 16%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  box-shadow: 0 0 0 26px rgba(255, 255, 255, 0.018);
}

.portrait-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
  transform: scale(1.04);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
}

.orbit::before {
  content: "";
  position: absolute;
  top: 12%;
  left: 14%;
  width: 7px;
  height: 7px;
  background: var(--cyan);
  box-shadow: 0 0 15px rgba(67, 215, 232, 0.8);
}

.orbit-one {
  inset: 5%;
  animation: spin 18s linear infinite;
}

.orbit-two {
  inset: -5%;
  border-style: dashed;
  opacity: 0.4;
  animation: spin 30s linear infinite reverse;
}

.portrait-meta {
  position: absolute;
  right: -10px;
  bottom: 8%;
  display: grid;
  min-width: 106px;
  padding: 14px 16px;
  border-left: 2px solid var(--acid);
  background: rgba(17, 20, 22, 0.86);
  backdrop-filter: blur(12px);
}

.portrait-meta span {
  color: var(--muted);
  font-size: 10px;
}

.portrait-meta strong {
  margin: 2px 0;
  font-size: 25px;
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  right: var(--pad);
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--muted);
  font-size: 9px;
}

.scroll-cue i {
  display: block;
  width: 54px;
  height: 1px;
  background: var(--muted);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.1fr;
  max-width: var(--max);
  margin: 0 auto;
  padding: 58px var(--pad);
  border-bottom: 1px solid var(--line);
}

.metric {
  min-height: 110px;
  padding-right: 24px;
  border-right: 1px solid var(--line);
}

.metric + .metric {
  padding-left: clamp(22px, 3vw, 48px);
}

.metric strong {
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 500;
}

.metric > span {
  margin-left: 4px;
  color: var(--acid);
  font-size: 14px;
}

.metric p,
.metric-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.metric-note {
  align-self: center;
  margin: 0;
  padding-left: clamp(24px, 4vw, 68px);
  color: rgba(243, 244, 239, 0.75);
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.7;
}

.works-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 140px var(--pad);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 54px;
}

.section-head h2,
.about-section h2,
.follow-section h2 {
  margin: 18px 0 0;
  font-size: clamp(48px, 7vw, 100px);
  font-weight: 550;
  line-height: 0.98;
  letter-spacing: 0;
}

.section-head > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.work {
  display: block;
}

.work figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #181b1d;
}

.work figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 10, 11, 0.35), transparent 45%);
  transition: background 300ms ease;
}

.work figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(0.2, 0.7, 0, 1), filter 350ms ease;
}

.work:hover figure img {
  transform: scale(1.025);
  filter: saturate(1.08) contrast(1.03);
}

.play-button {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(8, 10, 11, 0.45);
  font-size: 12px;
  backdrop-filter: blur(8px);
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease;
}

.work:hover .play-button {
  color: var(--ink);
  border-color: var(--acid);
  background: var(--acid);
}

.work-info {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 18px;
  min-height: 112px;
  border-bottom: 1px solid var(--line);
}

.work-index {
  align-self: start;
  padding-top: 29px;
  color: var(--acid);
  font-size: 10px;
}

.work-info h3 {
  margin: 0 0 8px;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: 0;
}

.work-info p,
.work-stats span {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.work-stats {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.work-stats strong {
  font-size: 16px;
  font-weight: 500;
}

.work-arrow {
  color: var(--muted);
  transition: color 200ms ease, transform 200ms ease;
}

.work:hover .work-arrow {
  color: var(--acid);
  transform: translate(3px, -3px);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 70px;
}

.works-grid .work-info {
  grid-template-columns: 26px minmax(0, 1fr) 18px;
  min-height: 120px;
}

.works-grid .work-info h3 {
  font-size: clamp(16px, 1.6vw, 22px);
}

.works-grid .work-stats {
  display: none;
}

.about-section {
  padding: 140px var(--pad) 160px;
  color: var(--ink);
  background: var(--paper);
}

.about-section > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.about-section .eyebrow {
  color: #477900;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: clamp(60px, 10vw, 160px);
  margin-top: 30px;
}

.about-section h2 {
  margin: 0;
}

.about-copy {
  padding-bottom: 8px;
}

.about-copy > p {
  margin: 0;
  color: #424746;
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.75;
}

.about-copy blockquote {
  margin: 52px 0 0;
  padding: 18px 0 18px 22px;
  border-left: 2px solid #78ac20;
  color: #6a706e;
  font-size: 14px;
}

.follow-section {
  position: relative;
  min-height: 720px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 120px var(--pad);
  text-align: center;
}

.follow-visual {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1vw;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.09);
  font-size: min(23vw, 340px);
  font-weight: 700;
  white-space: nowrap;
  transform: translateY(-2%);
}

.follow-visual span:nth-child(3) {
  -webkit-text-stroke-color: rgba(184, 255, 61, 0.17);
}

.follow-content {
  position: relative;
  z-index: 2;
}

.follow-section h2 {
  margin: 24px 0 50px;
}

.follow-button {
  display: inline-grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 14px;
  min-width: 250px;
  padding: 16px 18px;
  color: var(--ink);
  background: var(--acid);
  font-size: 13px;
  font-weight: 800;
  transition: background 200ms ease, transform 200ms ease;
}

.follow-button:hover {
  background: #d3ff83;
  transform: translateY(-3px);
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 110px;
  padding: 0 var(--pad);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

footer p:last-child {
  justify-self: end;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 750ms cubic-bezier(0.2, 0.7, 0, 1), transform 750ms cubic-bezier(0.2, 0.7, 0, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cursor-glow {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(184, 255, 61, 0.75);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 150ms ease, height 150ms ease, opacity 150ms ease;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    height: 64px;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 920px;
    padding-top: 110px;
  }

  .hero-copy {
    align-self: start;
  }

  .hero h1 {
    margin-top: 26px;
    font-size: clamp(66px, 19vw, 128px);
  }

  .hero h1 .name-line {
    padding-left: 12vw;
  }

  .hero-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-portrait {
    position: absolute;
    right: 5vw;
    bottom: 52px;
    width: min(58vw, 390px);
  }

  .scroll-cue {
    display: none;
  }

  .metrics {
    grid-template-columns: repeat(3, 1fr);
  }

  .metric-note {
    display: none;
  }

  .works-grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .works-grid .work-info {
    min-height: 100px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 790px;
    padding-bottom: 54px;
  }

  .hero h1 {
    margin-bottom: 30px;
    font-size: 20vw;
  }

  .hero-intro {
    max-width: 310px;
    font-size: 14px;
  }

  .hero-portrait {
    right: -5vw;
    bottom: 10px;
    width: 56vw;
  }

  .portrait-meta {
    right: 8px;
    min-width: 90px;
  }

  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 34px 0;
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .metric:nth-child(2) {
    border-right: 0;
  }

  .metric:nth-child(3) {
    grid-column: 1 / -1;
    min-height: 80px;
    padding-left: 0;
    border-right: 0;
  }

  .works-section,
  .about-section {
    padding-top: 100px;
    padding-bottom: 110px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .section-head > p {
    display: none;
  }

  .work-info {
    grid-template-columns: 24px minmax(0, 1fr) 20px;
    gap: 12px;
    min-height: 100px;
  }

  .work-stats {
    display: none;
  }

  .works-grid {
    margin-top: 54px;
  }

  .play-button {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
  }

  .about-layout {
    gap: 52px;
  }

  .about-copy > p {
    font-size: 17px;
  }

  .follow-section {
    min-height: 620px;
  }

  footer {
    grid-template-columns: 1fr auto;
  }

  footer > p:first-of-type {
    display: none;
  }

  .cursor-glow {
    display: none;
  }
}

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