@font-face {
  font-family: "Fusion Pixel Terminal";
  src: url("assets/fonts/fusion-pixel-12px-monospaced-zh_hans.otf.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #f8f3e8;
  --black: #09050d;
  --panel: #110b18;
  --purple: #d148ff;
  --hot: #ff3c00;
  --acid: #caff00;
  --cyan: #6dfff3;
  --line: rgba(248, 243, 232, 0.24);
  --pad: clamp(1.25rem, 4vw, 4.5rem);
  --mono: "Fusion Pixel Terminal", "SFMono-Regular", "SF Mono", Monaco, Consolas, "PingFang SC", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, rgba(209, 72, 255, 0.12), transparent 30rem),
    var(--black);
  font-family: var(--mono);
  font-variant-ligatures: none;
  overflow-x: hidden;
}

body.booting { overflow: hidden; }

a { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

button { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: var(--black);
  background: var(--acid);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.crt {
  position: fixed;
  z-index: 900;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.55) 3px,
    rgba(0, 0, 0, 0.55) 4px
  );
  mix-blend-mode: multiply;
}

.boot {
  position: fixed;
  z-index: 999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  color: var(--acid);
  background: #050507;
  transition: opacity 420ms ease, visibility 420ms ease;
}

.boot::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background: radial-gradient(circle, var(--purple) 1px, transparent 1px);
  background-size: 5px 5px;
}

.boot.is-hidden { opacity: 0; }
.boot.is-gone { visibility: hidden; pointer-events: none; }

.boot__screen {
  position: relative;
  width: min(44rem, 100%);
  padding: clamp(1.5rem, 6vw, 4rem);
  border: 2px solid var(--acid);
  box-shadow: 0 0 0 8px #050507, 0 0 0 10px rgba(202, 255, 0, 0.28), 0 0 3rem rgba(202, 255, 0, 0.18);
}

.boot__brand {
  margin: 0 0 3rem;
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 900;
}

.boot__lines { margin-bottom: 3rem; color: rgba(248, 243, 232, 0.65); font-size: 0.78rem; line-height: 1.8; }
.boot__lines p { margin: 0; }
.boot__lines span { color: var(--acid); }
.boot__hint { margin: 1.2rem 0 0; color: rgba(248, 243, 232, 0.42); font-size: 0.65rem; }

.site-header {
  position: fixed;
  z-index: 800;
  top: 0;
  left: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1rem var(--pad);
  background: linear-gradient(to bottom, rgba(9, 5, 13, 0.92), rgba(9, 5, 13, 0));
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  justify-self: start;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 0.03em;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: var(--black);
  background: var(--acid);
  box-shadow: 4px 4px 0 var(--purple);
}

.accent { color: var(--acid); }

.main-nav { display: flex; gap: clamp(1rem, 3vw, 3rem); }
.main-nav a {
  position: relative;
  padding: 0.4rem 0;
  font-size: 0.72rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.main-nav a::before { content: "["; opacity: 0; color: var(--acid); }
.main-nav a::after { content: "]"; opacity: 0; color: var(--acid); }
.main-nav a:hover::before, .main-nav a:hover::after, .main-nav a:focus-visible::before, .main-nav a:focus-visible::after { opacity: 1; }

.lang-switch {
  justify-self: end;
  border: 1px solid var(--line);
  padding: 0.45rem 0.65rem;
  color: rgba(248, 243, 232, 0.55);
  background: rgba(9, 5, 13, 0.5);
  cursor: pointer;
  font-size: 0.7rem;
}
.lang-switch .active { color: var(--acid); }
.lang-switch .slash { margin: 0 0.35rem; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #1d0920;
}

.hero__image {
  position: absolute;
  z-index: -4;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.12) brightness(0.72);
  transform: scale(1.03);
  animation: hero-drift 12s ease-in-out infinite alternate;
}

@keyframes hero-drift { to { transform: scale(1.09) translate3d(-0.6%, -0.4%, 0); } }

.hero__veil {
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 5, 13, 0.82), rgba(9, 5, 13, 0.14) 55%, rgba(9, 5, 13, 0.58)),
    linear-gradient(0deg, rgba(9, 5, 13, 0.9), transparent 45%);
}

.hero__grid {
  position: absolute;
  z-index: -2;
  right: -15vw;
  bottom: -27vh;
  width: 100vw;
  height: 70vh;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(109, 255, 243, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 255, 243, 0.55) 1px, transparent 1px);
  background-size: 52px 52px;
  transform: perspective(300px) rotateX(63deg) rotateZ(-4deg);
  transform-origin: center;
  mask-image: linear-gradient(to bottom, transparent, #000 40%);
}

.hero__content { width: min(84rem, 100%); padding: 7rem var(--pad) 6rem; }
.eyebrow, .section-index { color: var(--acid); font-size: 0.67rem; font-weight: 800; letter-spacing: 0.18em; }
.hero h1 {
  margin: 0.06em 0 0;
  width: min-content;
  font-size: clamp(5rem, 17vw, 15rem);
  line-height: 0.78;
  letter-spacing: -0.06em;
  text-shadow: 0.035em 0.035em 0 var(--purple), -0.015em -0.015em 0 var(--cyan);
}
.hero h1 span { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.hero__subtitle {
  max-width: 35rem;
  margin: 2.25rem 0;
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.6;
  text-wrap: balance;
}

.pixel-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  border: 0;
  padding: 0.9rem 1.2rem;
  color: var(--black);
  background: var(--acid);
  box-shadow: 5px 5px 0 var(--purple);
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}
.pixel-button i { width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid var(--black); }
.pixel-button:hover, .pixel-button:focus-visible { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--purple); }

.hero__hud {
  position: absolute;
  bottom: 2rem;
  display: flex;
  gap: 1rem;
  color: rgba(248, 243, 232, 0.55);
  font-size: 0.6rem;
  writing-mode: vertical-rl;
}
.hero__hud--left { left: var(--pad); }
.hero__hud--right { right: var(--pad); }
.scroll-cue {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.62rem;
  text-decoration: none;
  transform: translateX(-50%);
}
.scroll-cue b { color: var(--acid); animation: bounce 1s steps(2) infinite; }
@keyframes bounce { 50% { transform: translateY(6px); } }

.status-bar { overflow: hidden; border-block: 1px solid var(--acid); color: var(--black); background: var(--acid); }
.status-bar__track { display: flex; width: max-content; animation: marquee 18s linear infinite; }
.status-bar span { display: block; padding: 0.55rem 1rem; font-size: 0.68rem; font-weight: 900; word-spacing: 0.5rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section { padding: clamp(5rem, 10vw, 10rem) var(--pad); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(2rem, 5vw, 4rem); }
.section h2 { margin: 0.15em 0 0; font-size: clamp(2.5rem, 6vw, 6rem); line-height: 0.95; letter-spacing: -0.03em; text-transform: uppercase; }
.section-note { max-width: 30rem; margin: 0; color: rgba(248, 243, 232, 0.62); font-size: 0.8rem; line-height: 1.7; }

.works { background: var(--black); }
.work-label {
  display: grid;
  grid-template-columns: minmax(18rem, 0.9fr) minmax(24rem, 1.1fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  border-block: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.8rem) 0;
}
.work-label__title p { margin: 0 0 1rem; color: var(--acid); font-size: 0.6rem; letter-spacing: 0.15em; }
.work-label__title h3 { margin: 0; max-width: 34rem; font-size: clamp(1.6rem, 3.4vw, 3.5rem); line-height: 1.2; letter-spacing: 0; }
.work-label__data { margin: 0; }
.work-label__data div { display: grid; grid-template-columns: minmax(5rem, 0.35fr) 1fr; gap: 1rem; border-top: 1px solid var(--line); padding: 0.65rem 0; font-size: 0.7rem; line-height: 1.5; }
.work-label__link {
  display: inline-block;
  color: var(--acid);
  text-decoration: none;
  text-underline-offset: 0.28em;
}
.work-label__link:hover, .work-label__link:focus-visible { color: var(--cyan); text-decoration: underline; }
.work-label__data div:last-child { border-bottom: 1px solid var(--line); }
.work-label__data dt { color: rgba(248, 243, 232, 0.42); }
.work-label__data dd { margin: 0; }
.work-grid { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: clamp(1rem, 2vw, 2rem); }
.work-card {
  display: block;
  width: 100%;
  margin: 0;
  border: 1px solid var(--line);
  padding: 0;
  color: var(--ink);
  background: var(--panel);
  cursor: pointer;
  text-align: left;
}
.work-card--wide { grid-column: 1 / -1; }
.work-card__image-wrap { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; }
.work-card__image-wrap::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  opacity: 0;
  background: rgba(202, 255, 0, 0.16);
  mix-blend-mode: color-dodge;
  transition: opacity 180ms ease;
}
.work-card img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.72) contrast(1.08); transition: transform 500ms ease, filter 300ms ease; }
.work-card--moon img { object-position: center 56%; }
.work-card--eyes img { object-position: center 62%; }
.work-card--green img { object-position: center 52%; }
.work-card:hover img, .work-card:focus-visible img { transform: scale(1.025); filter: saturate(1) contrast(1.08); }
.work-card:hover .work-card__image-wrap::before, .work-card:focus-visible .work-card__image-wrap::before { opacity: 1; }
.work-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem; }
.work-card__meta b { display: block; margin-bottom: 0.45rem; font-size: clamp(0.9rem, 2vw, 1.35rem); }
.work-card__meta small, .work-card__enter { color: rgba(248, 243, 232, 0.44); font-size: 0.58rem; letter-spacing: 0.08em; }
.work-card__enter { color: var(--acid); }

.archive-card {
  min-height: 20rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px dashed rgba(202, 255, 0, 0.35);
  padding: clamp(1.4rem, 3vw, 3rem);
  color: rgba(248, 243, 232, 0.48);
  background: repeating-linear-gradient(135deg, rgba(209, 72, 255, 0.05) 0 10px, transparent 10px 20px);
}
.archive-card p, .archive-card span { font-size: 0.6rem; }
.archive-card h3 { max-width: 16rem; color: var(--ink); line-height: 1.5; }
.archive-card__symbol { align-self: center; font-size: 7rem; color: transparent; -webkit-text-stroke: 1px rgba(202, 255, 0, 0.55); }

.about { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(24rem, 1.1fr); gap: clamp(2rem, 7vw, 8rem); align-items: start; background: #120816; }
.about__visual { position: sticky; top: 6rem; min-height: 38rem; border: 1px solid var(--line); overflow: hidden; }
.about__visual::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 8rem rgba(0, 0, 0, 0.55); pointer-events: none; }
.about__visual img { width: 100%; height: 100%; min-height: 38rem; object-fit: cover; object-position: 54% center; filter: hue-rotate(310deg) saturate(0.9) contrast(1.3); }
.about__visual p { position: absolute; z-index: 2; bottom: 1rem; left: 1rem; margin: 0; color: var(--cyan); font-size: 0.58rem; line-height: 1.5; }
.target { position: absolute; z-index: 2; width: 6rem; height: 6rem; border: 1px solid var(--cyan); border-radius: 50%; }
.target::before, .target::after { content: ""; position: absolute; background: var(--cyan); }
.target::before { top: 50%; left: -1rem; width: 8rem; height: 1px; }
.target::after { top: -1rem; left: 50%; width: 1px; height: 8rem; }
.target--one { top: 22%; left: 31%; }
.target--two { right: 15%; bottom: 14%; transform: scale(0.55); }
.about__lead { margin: 2.5rem 0 1.8rem; border-left: 4px solid var(--acid); padding: 0.3rem 0 0.3rem 1.2rem; color: var(--ink); font-size: clamp(1.15rem, 2.4vw, 1.7rem); line-height: 1.6; }
.about__bio { display: grid; gap: 1rem; }
.about__bio p { margin: 0; color: rgba(248, 243, 232, 0.68); font-size: 0.86rem; line-height: 1.95; }
.player-stats { margin: 2.5rem 0 0; border-top: 1px solid var(--line); }
.player-stats div { display: grid; grid-template-columns: 8rem 1fr; border-bottom: 1px solid var(--line); padding: 0.8rem 0; font-size: 0.68rem; }
.player-stats dt { color: rgba(248, 243, 232, 0.42); }
.player-stats dd { margin: 0; }
.online::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; margin-right: 0.5rem; background: var(--acid); box-shadow: 0 0 0.7rem var(--acid); }

.contact { border-top: 1px solid var(--line); background: linear-gradient(135deg, #09050d 55%, rgba(209, 72, 255, 0.15)); }
.contact__inner { display: flex; align-items: end; justify-content: space-between; gap: 3rem; margin-top: 2rem; }
.contact h2 { max-width: 52rem; }
.contact p { color: rgba(248, 243, 232, 0.6); line-height: 1.7; }
.contact__email { min-width: 18rem; border: 1px solid var(--line); padding: 1rem; color: var(--ink); background: transparent; text-align: left; text-decoration: none; transition: border-color 180ms ease, background 180ms ease; }
.contact__email span { overflow-wrap: anywhere; }
.contact__email small { display: block; margin-top: 0.45rem; color: var(--acid); font-size: 0.55rem; letter-spacing: 0.08em; }
.contact__email:hover, .contact__email:focus-visible { border-color: var(--acid); background: rgba(202, 255, 0, 0.06); }

.site-footer { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding: 1.2rem var(--pad); color: rgba(248, 243, 232, 0.4); font-size: 0.58rem; }
.site-footer a { color: var(--acid); text-decoration: none; }

.lightbox {
  width: min(92vw, 90rem);
  max-width: none;
  border: 1px solid var(--line);
  padding: 0;
  color: var(--ink);
  background: #09050d;
  box-shadow: 0 0 5rem rgba(209, 72, 255, 0.25);
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.9); backdrop-filter: blur(8px); }
.lightbox form { position: absolute; z-index: 2; top: 0.75rem; right: 0.75rem; }
.lightbox__close { width: 2.6rem; height: 2.6rem; border: 1px solid var(--ink); color: var(--ink); background: var(--black); cursor: pointer; font-size: 1.6rem; }
.lightbox__stage { background: #000; }
.lightbox__stage img { display: block; width: 100%; max-height: 72vh; object-fit: contain; }
.lightbox__caption { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; padding: 1.2rem; }
.lightbox__caption p, .lightbox__caption span { color: rgba(248, 243, 232, 0.45); font-size: 0.58rem; }
.lightbox__caption h2 { margin: 0; font-size: clamp(1rem, 3vw, 1.8rem); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 650ms ease, transform 650ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .hero__content { padding-top: 6rem; }
  .hero h1 { font-size: clamp(4.2rem, 25vw, 8rem); }
  .hero__subtitle { max-width: 17rem; font-size: 0.9rem; }
  .hero__hud { display: none; }
  .scroll-cue { left: var(--pad); transform: none; }
  .section-heading, .contact__inner { align-items: start; flex-direction: column; }
  .work-label { grid-template-columns: 1fr; gap: 1.5rem; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card--wide { grid-column: auto; }
  .about { grid-template-columns: 1fr; }
  .about__visual, .about__visual img { min-height: 27rem; }
  .about__visual { position: relative; top: auto; order: 2; }
  .contact__email { width: 100%; min-width: 0; }
  .site-footer { flex-direction: column; }
  .lightbox__caption { grid-template-columns: 1fr; gap: 0.4rem; }
}

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