@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #08090c;
  --bg-soft: #0e1016;
  --fg: #f3f0e8;
  --muted: #8d8f99;
  --line: rgba(243, 240, 232, 0.16);
  --line-soft: rgba(243, 240, 232, 0.075);
  --accent: #9aa0ff;
  --accent-ink: #0a0b10;
  --header-bg: rgba(8, 9, 12, 0.6);
  --header-bg-scrolled: rgba(8, 9, 12, 0.88);
  --scroll-track: rgba(154, 160, 255, 0.14);
  --font-display: "Space Grotesk", "Helvetica Neue", "Arial Black", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Space Grotesk", "PingFang SC", "Microsoft YaHei", "Source Han Sans CN", sans-serif;
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --pad: clamp(20px, 4.2vw, 64px);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #e8edf3;
  --bg-soft: #dbe2ea;
  --fg: #101820;
  --muted: #5b6875;
  --line: rgba(16, 24, 32, 0.2);
  --line-soft: rgba(16, 24, 32, 0.09);
  --accent: #2f5bff;
  --accent-ink: #f7f9fc;
  --header-bg: rgba(232, 237, 243, 0.66);
  --header-bg-scrolled: rgba(232, 237, 243, 0.93);
  --scroll-track: rgba(47, 91, 255, 0.14);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--scroll-track);
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: var(--scroll-track);
}

::-webkit-scrollbar-thumb {
  background-color: var(--accent);
  border: 1px solid transparent;
  border-radius: 3px;
  background-clip: padding-box;
}

::-webkit-scrollbar-corner {
  background: transparent;
}

/* Lenis */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.45s ease, color 0.45s ease;
}

body.is-locked {
  overflow: hidden;
}

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

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

h1, h2, h3, p, ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 20000;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: none;
}

/* ------------------------------------------------------------------ grain */

.grain {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

[data-theme="light"] .grain {
  opacity: 0.035;
  mix-blend-mode: multiply;
}

/* ----------------------------------------------------------------- cursor */

.cursor {
  position: fixed;
  inset: 0;
  z-index: 15000;
  pointer-events: none;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cursor.is-active {
  opacity: 1;
}

.cursor__ring,
.cursor__dot {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cursor__ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
    background-color 0.35s ease, border-color 0.35s ease;
}

.cursor__dot {
  width: 5px;
  height: 5px;
  background: #fff;
}

.cursor__label {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  color: #050505;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
  transition: opacity 0.25s ease, transform 0.35s var(--ease-out);
  white-space: nowrap;
}

.cursor.is-hover .cursor__ring {
  width: 76px;
  height: 76px;
  background: #fff;
  border-color: #fff;
}

.cursor.is-hover .cursor__label {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.cursor.is-hover .cursor__dot {
  opacity: 0;
}

@media (hover: none), (pointer: coarse) {
  .cursor {
    display: none;
  }
}

/* ----------------------------------------------------------------- loader */

.loader {
  position: fixed;
  inset: 0;
  z-index: 12000;
  overflow: hidden;
  background: var(--bg);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.05s var(--ease-in-out);
}

.loader.is-done {
  clip-path: inset(0 0 100% 0);
}

.loader__top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px var(--pad);
  border-bottom: 1px solid var(--line-soft);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.loader__center {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: clamp(150px, 25vh, 260px);
}

.loader__word {
  display: flex;
  font-family: var(--font-display);
  font-size: clamp(60px, 12.6vw, 188px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.82;
}

.loader__word span {
  display: inline-block;
  opacity: 0;
  transform: translateY(112%);
  animation: loader-letter 0.9s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 45ms + 120ms);
}

@keyframes loader-letter {
  to {
    opacity: 1;
    transform: none;
  }
}

.loader__center p {
  margin-top: clamp(18px, 3vh, 32px);
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: var(--muted);
  opacity: 0;
  animation: loader-fade 0.8s ease 0.75s forwards;
}

@keyframes loader-fade {
  to { opacity: 1; }
}

.loader__bottom {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 0;
  padding-bottom: 22px;
}

.loader__percent {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 140px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.75;
  font-variant-numeric: tabular-nums;
}

.loader__percent i {
  font-style: normal;
  font-size: clamp(14px, 1.4vw, 24px);
  color: var(--accent);
  margin-top: 0.3em;
}

.loader__meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(14px, 2vh, 22px);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.loader__line {
  margin-top: 12px;
  height: 1px;
  background: var(--line-soft);
  overflow: hidden;
}

.loader__line i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0.02);
  transform-origin: left;
  transition: transform 0.25s linear;
}

/* -------------------------------------------------------------- particles */

.particle-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.75;
}

[data-theme="light"] .particle-field {
  opacity: 0.45;
}

main {
  position: relative;
  z-index: 1;
}

/* ----------------------------------------------------------------- header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 8000;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  height: 72px;
  padding: 0 var(--pad);
  border-bottom: 1px solid transparent;
  background: var(--bg);
  transition: border-color 0.3s ease;
}

.site-header.is-scrolled {
  border-color: var(--line-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.brand__mark {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 60%, transparent);
}

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

.site-nav {
  display: flex;
  gap: clamp(12px, 2vw, 32px);
  margin-left: auto;
}

.nav-link {
  display: inline-block;
  height: 18px;
  overflow: hidden;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
  transition: color 0.3s ease;
}

.nav-link__track {
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease-out);
}

.nav-link__track > span {
  height: 18px;
  line-height: 18px;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--fg);
}

.nav-link:hover .nav-link__track,
.nav-link:focus-visible .nav-link__track {
  transform: translateY(-18px);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang-switch button {
  min-width: 28px;
  height: 24px;
  padding: 0 7px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.lang-switch button:hover {
  color: var(--fg);
}

.lang-switch button.is-active {
  background: var(--fg);
  color: var(--bg);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--fg);
}

.theme-toggle.is-switching {
  opacity: 0.55;
  cursor: progress;
}

.theme-toggle__icon {
  width: 10px;
  height: 10px;
  border: 1px solid var(--fg);
  border-radius: 50%;
  background: linear-gradient(90deg, var(--fg) 0 50%, transparent 50% 100%);
  transition: transform 0.5s var(--ease-out);
}

.theme-toggle:hover .theme-toggle__icon {
  transform: rotate(180deg);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
}

.scroll-progress i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

/* ------------------------------------------------------------- page index */

.page-index {
  position: fixed;
  left: 8px;
  top: 50%;
  z-index: 7000;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translateY(-50%);
}

.page-index a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--muted);
  transition: color 0.3s ease;
}

.page-index i {
  display: block;
  width: 14px;
  height: 1px;
  background: var(--line);
  transition: width 0.35s var(--ease-out), background-color 0.3s ease;
}

.page-index a:hover,
.page-index a.is-active {
  color: var(--fg);
}

.page-index a.is-active i {
  width: 28px;
  background: var(--accent);
}

/* ------------------------------------------------------------------- hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px var(--pad) 54px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 25vw 25vh;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 20%, transparent 78%);
  opacity: 0.55;
}

.hero__glow {
  position: absolute;
  top: 8%;
  right: -10%;
  width: 55vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 12%, transparent), transparent 68%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin-bottom: clamp(20px, 3vw, 36px);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.82;
}

.hero__line {
  display: block;
  overflow: hidden;
}

.hero__word {
  display: inline-block;
  font-size: clamp(64px, 17.4vw, 286px);
}

.hero__line--cn {
  margin-top: clamp(12px, 2vw, 26px);
}

.hero__word-cn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: clamp(26px, 4.8vw, 74px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero__quote {
  max-width: 54ch;
  margin-top: clamp(18px, 3vh, 30px);
  padding-left: 14px;
  border-left: 1px solid var(--accent);
}

.hero__quote blockquote {
  font-size: clamp(12px, 1vw, 15px);
  line-height: 1.75;
  color: var(--fg);
}

.hero__quote figcaption {
  margin-top: 4px;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.hero__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: clamp(32px, 6vh, 74px);
  padding-top: clamp(20px, 3vh, 34px);
  border-top: 1px solid var(--line-soft);
}

.hero__lede {
  max-width: 48ch;
  font-size: clamp(13px, 1.05vw, 16px);
  line-height: 1.8;
  color: var(--muted);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  font-size: 10px;
  letter-spacing: 0.18em;
}

.hero__cta-line {
  display: block;
  width: 58px;
  height: 1px;
  background: var(--accent);
  transition: width 0.45s var(--ease-out);
}

.hero__cta:hover .hero__cta-line {
  width: 96px;
}

.hero__meta {
  position: absolute;
  right: var(--pad);
  top: 108px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

/* ----------------------------------------------------------------- panels */

.site-panel {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 100px var(--pad) clamp(48px, 8vh, 90px);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
  transition: background-color 0.5s ease;
}

.site-panel:hover {
  background-color: color-mix(in srgb, var(--fg) 2.5%, transparent);
}

.site-panel--alt .panel__body {
  margin-left: clamp(0px, 16vw, 240px);
}

.panel__ghost {
  position: absolute;
  right: var(--pad);
  bottom: -0.12em;
  z-index: 0;
  font-family: var(--font-display);
  font-size: clamp(180px, 34vw, 560px);
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 0.72;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-soft);
  pointer-events: none;
  transition: -webkit-text-stroke-color 0.5s ease, transform 0.6s var(--ease-out);
}

.site-panel:hover .panel__ghost {
  -webkit-text-stroke-color: color-mix(in srgb, var(--accent) 32%, transparent);
  transform: translateY(-8px);
}

.panel__head {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.panel__label {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.panel__body {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  margin-top: auto;
  margin-bottom: auto;
  padding: clamp(36px, 7vh, 80px) 0;
}

.panel__title {
  font-family: var(--font-display);
  font-size: clamp(76px, 14vw, 230px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.8;
}

.panel__title span {
  color: var(--accent);
}

.panel__cn {
  margin-top: clamp(16px, 2.4vh, 26px);
  font-size: clamp(15px, 1.5vw, 21px);
}

.panel__desc {
  max-width: 52ch;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
}

.panel__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.panel__tags li {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.panel__points {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.panel__points li {
  position: relative;
  padding-left: 16px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--fg);
  opacity: 0.78;
}

.panel__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.panel__enter {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: clamp(26px, 4vh, 40px);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.14em;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.panel__enter span:last-child {
  font-size: 16px;
  transition: transform 0.4s var(--ease-out);
}

.panel__enter:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.panel__enter:hover span:last-child {
  transform: translate(4px, -4px);
}

.panel__side {
  position: absolute;
  right: calc(var(--pad) - 8px);
  top: 50%;
  z-index: 2;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-size: 8px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

/* ------------------------------------------------------------------ about */

.about {
  position: relative;
  padding: clamp(90px, 14vh, 170px) var(--pad);
  border-bottom: 1px solid var(--line-soft);
}

.about__head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.about__title {
  margin-top: clamp(34px, 6vh, 70px);
  font-family: var(--font-display);
  font-size: clamp(44px, 7.6vw, 124px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.96;
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr);
  gap: clamp(40px, 8vw, 140px);
  margin-top: clamp(40px, 7vh, 80px);
}

.about__lede {
  max-width: 34ch;
  font-size: clamp(18px, 1.9vw, 27px);
  line-height: 1.55;
  letter-spacing: -0.015em;
}

.about__text {
  max-width: 56ch;
  margin-top: clamp(20px, 3vh, 34px);
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--muted);
}

.about__stats {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
}

.stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.6vw, 52px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat__label {
  text-align: right;
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.about__rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(50px, 8vh, 90px);
  background: var(--line-soft);
  border-top: 1px solid var(--line-soft);
}

.about__rules li {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 24px 30px 0;
  background: var(--bg);
  font-size: clamp(13px, 1.25vw, 17px);
}

.about__rules li span {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--accent);
}

/* ----------------------------------------------------------------- footer */

.mega-footer {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: clamp(70px, 10vh, 120px) var(--pad) 0;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.mega-footer__glow {
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 10%, transparent), transparent 68%);
  pointer-events: none;
}

/* full-footer holographic sheen, theme-matched */
.mega-footer__foil {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.42;
  mix-blend-mode: soft-light;
  background-image:
    repeating-linear-gradient(
      112deg,
      transparent 0%,
      transparent 9%,
      color-mix(in srgb, var(--accent) 30%, transparent) 10.5%,
      transparent 12%,
      transparent 21%,
      color-mix(in srgb, var(--fg) 16%, transparent) 22.5%,
      transparent 24%,
      transparent 34%
    ),
    radial-gradient(
      120% 90% at 18% 20%,
      color-mix(in srgb, var(--accent) 16%, transparent),
      transparent 58%
    );
  background-size: 260% 260%, 140% 140%;
  animation: footer-sheen 16s ease-in-out infinite alternate;
}

@keyframes footer-sheen {
  0% {
    background-position: 0% 0%, 0% 0%;
  }
  50% {
    background-position: 70% 45%, 60% 30%;
  }
  100% {
    background-position: 130% 90%, 100% 70%;
  }
}

.mega-footer__inner {
  position: relative;
  z-index: 2;
}

.mega-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr);
  gap: clamp(40px, 6vw, 100px);
  padding-bottom: clamp(40px, 7vh, 80px);
  border-bottom: 1px solid var(--line);
}

.mega-footer__title {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(36px, 5.2vw, 78px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.mega-footer__title span {
  color: var(--muted);
}

.mega-footer__note {
  max-width: 42ch;
  margin-top: 20px;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--muted);
}

.mega-footer__location {
  display: inline-block;
  margin-top: 26px;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.mega-footer__nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 44px);
}

.footer-col h3 {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.footer-col h3 span {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.footer-col li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--muted);
}

.footer-col a {
  display: inline-block;
  transition: color 0.25s ease, padding-left 0.3s var(--ease-out);
}

.footer-col a:hover {
  padding-left: 4px;
}

.footer-col a:hover,
.footer-pending:hover {
  background-image: linear-gradient(
    100deg,
    var(--fg) 0%,
    var(--accent) 38%,
    color-mix(in srgb, var(--fg) 72%, var(--accent)) 55%,
    var(--fg) 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: foil-text 2.8s ease-in-out infinite;
}

@keyframes foil-text {
  to { background-position: 220% 0; }
}

.footer-pending {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.footer-pending em {
  font-style: normal;
  font-size: 8.5px;
  letter-spacing: 0.1em;
  opacity: 0.55;
}

.mega-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 22px 0;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.mega-footer__legal {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.mega-footer__legal a:hover {
  color: var(--fg);
}

.mega-footer__legal i {
  font-style: normal;
  opacity: 0.5;
}

.mega-footer__word {
  position: relative;
  z-index: 1;
  margin-top: clamp(20px, 4vh, 40px);
  font-family: var(--font-display);
  font-size: clamp(80px, 21vw, 340px);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.72;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  transform: translateY(12%);
  user-select: none;
}

/* ----------------------------------------------------------------- reveal */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--delay, 0) * 1ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------- 404 page */

.error-page {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  padding: 120px var(--pad) 80px;
  overflow: hidden;
}

.error-page__code {
  position: absolute;
  right: -2vw;
  bottom: -4vw;
  font-family: var(--font-display);
  font-size: clamp(180px, 40vw, 620px);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.08em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  pointer-events: none;
  user-select: none;
}

.error-page h1 {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(48px, 9vw, 140px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.error-page__text {
  position: relative;
  max-width: 42ch;
  color: var(--muted);
  font-size: clamp(13px, 1.1vw, 16px);
  line-height: 1.8;
}

.error-page .hero__cta {
  position: relative;
  margin-top: 12px;
}

/* --------------------------------------------------------------- layouts */

@media (max-width: 1100px) {
  .page-index {
    display: none;
  }

  .about__grid {
    grid-template-columns: 1fr;
  }

  .about__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 20px;
  }

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

  .stat__label {
    text-align: left;
  }

  .mega-footer__top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .site-nav {
    gap: 14px;
  }

  .hero {
    padding-top: 104px;
  }

  .hero__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .hero__meta {
    display: none;
  }

  .site-panel {
    min-height: auto;
    padding: 90px var(--pad) 60px;
  }

  .site-panel--alt .panel__body {
    margin-left: 0;
  }

  .panel__ghost {
    font-size: 46vw;
    bottom: 0;
  }

  .panel__side {
    display: none;
  }

  .panel__body {
    padding: 46px 0 0;
  }

  .about__rules {
    grid-template-columns: 1fr;
  }

  .about__rules li {
    padding-right: 0;
  }

  .mega-footer__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (max-width: 600px) {
  .site-header {
    gap: 10px;
  }

  .brand {
    font-size: 11px;
  }

  .nav-link {
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .site-nav {
    gap: 8px;
  }

  .lang-switch {
    height: 28px;
  }

  .lang-switch button {
    min-width: 24px;
    height: 22px;
    padding: 0 4px;
  }

  .theme-toggle {
    width: 30px;
    padding: 0;
    justify-content: center;
  }

  .theme-toggle__label {
    display: none;
  }

  .hero {
    padding-top: 96px;
    padding-bottom: 40px;
  }

  .hero__word {
    font-size: clamp(48px, 19vw, 120px);
  }

  .hero__word-cn {
    font-size: clamp(22px, 6.6vw, 40px);
    line-height: 1.3;
  }

  .hero__quote {
    margin-top: 18px;
  }

  .hero__foot {
    margin-top: 26px;
  }

  .panel__title {
    font-size: clamp(40px, 13vw, 110px);
    letter-spacing: -0.045em;
  }

  .scroll-progress {
    display: none;
  }

  .mega-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .site-nav {
    display: none;
  }
}

/* --------------------------------------------------------- short desktop */

@media (min-width: 901px) and (max-height: 800px) {
  .hero {
    padding-top: 92px;
    padding-bottom: 40px;
  }

  .hero__quote {
    display: none;
  }

  .panel__body {
    padding: 30px 0;
  }

  .panel__title {
    font-size: clamp(64px, 11vw, 160px);
  }

  .panel__points {
    display: none;
  }

  .site-panel {
    min-height: 100svh;
  }
}

/* ------------------------------------------------------ short landscape */

@media (max-height: 520px) {
  .hero {
    min-height: auto;
    padding-top: 84px;
    padding-bottom: 32px;
  }

  .hero__word {
    font-size: clamp(42px, 12vh, 90px);
  }

  .hero__word-cn {
    font-size: clamp(18px, 4vh, 28px);
  }

  .hero__quote,
  .hero__lede {
    display: none;
  }

  .hero__foot {
    margin-top: 20px;
    padding-top: 14px;
  }

  .site-panel {
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 40px;
  }
}

/* ------------------------------------------------------------ reduced motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .char {
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
