@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Noto+Serif+SC:wght@400;500;600;700&display=swap');

:root {
  --void: #06070a;
  --void-soft: #0b0d12;
  --panel: rgba(14, 17, 23, 0.78);
  --panel-strong: rgba(11, 13, 18, 0.94);
  --ink: #ece9e2;
  --ink-soft: #a8abb2;
  --ink-dim: #70747d;
  --cyan: #7ad9e6;
  --cyan-soft: rgba(122, 217, 230, 0.16);
  --gold: #cfb66d;
  --gold-soft: rgba(207, 182, 109, 0.16);
  --danger: #d66b72;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.2);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --serif: 'Noto Serif SC', 'Songti SC', serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  background: var(--void);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 18%, rgba(122, 217, 230, 0.08), transparent 34rem),
    radial-gradient(circle at 82% 14%, rgba(207, 182, 109, 0.07), transparent 30rem),
    linear-gradient(180deg, #08090d 0%, var(--void) 58%, #040507 100%);
  color: var(--ink);
  font-family: var(--serif);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 80%);
}

a {
  color: inherit;
}

button,
a,
input,
select {
  font: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

::selection {
  background: rgba(122, 217, 230, 0.28);
  color: #fff;
}

#field-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.66;
  pointer-events: none;
}

.ambient-vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 32%, rgba(0, 0, 0, 0.62) 100%);
}

.site-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
}

.brand-cn {
  font-size: 22px;
  letter-spacing: 0.22em;
  font-weight: 600;
}

.brand-en {
  color: var(--ink-dim);
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.08em;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 160ms ease;
}

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

.hero {
  min-height: calc(100vh - 92px);
  display: grid;
  align-content: center;
  padding: 58px 0 86px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: var(--cyan);
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.hero-title {
  max-width: 940px;
  margin: 0;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.hero-title em {
  color: var(--gold);
  font-style: normal;
}

.hero-lead {
  max-width: 760px;
  margin: 32px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.9;
}

.hero-lead strong {
  color: var(--ink);
  font-weight: 500;
}

.contradiction-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 42px 0 0;
}

.contradiction-card {
  min-height: 134px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.contradiction-card span {
  display: block;
  margin-bottom: 14px;
  color: var(--ink-dim);
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contradiction-card p {
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink);
  text-decoration: none;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(122, 217, 230, 0.6);
  background: var(--cyan-soft);
}

.button.primary {
  border-color: rgba(122, 217, 230, 0.68);
  background: rgba(122, 217, 230, 0.11);
  color: #eaffff;
  box-shadow: 0 0 32px rgba(122, 217, 230, 0.08);
}

.button.secondary {
  color: var(--ink-soft);
}

.section {
  padding: 96px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 40px;
}

.section-kicker {
  color: var(--cyan);
  font: 500 11px/1.5 var(--mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.25;
  font-weight: 500;
}

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

.entry-card {
  position: relative;
  min-height: 290px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(16px);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.entry-card::after {
  content: '';
  position: absolute;
  inset: auto -40px -80px auto;
  width: 180px;
  aspect-ratio: 1;
  border: 1px solid rgba(122, 217, 230, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(122, 217, 230, 0.08);
}

.entry-card:hover {
  transform: translateY(-4px);
  border-color: rgba(122, 217, 230, 0.45);
  background: rgba(18, 22, 29, 0.88);
}

.entry-index {
  color: var(--ink-dim);
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.12em;
}

.entry-card h3 {
  margin: 54px 0 16px;
  font-size: 29px;
  font-weight: 500;
}

.entry-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.entry-action {
  position: absolute;
  left: 26px;
  bottom: 24px;
  color: var(--cyan);
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.manifesto {
  max-width: 850px;
  margin: 0 auto;
  padding: 36px 0 120px;
  text-align: center;
}

.manifesto p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.7;
}

.manifesto strong {
  color: var(--gold);
  font-weight: 500;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--ink-dim);
  font: 400 11px/1.6 var(--mono);
}

/* Teaser */
.teaser-page {
  overflow: hidden;
}

.teaser-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.observation-console {
  width: min(860px, 100%);
  padding: 26px;
  border: 1px solid var(--line);
  background: rgba(7, 9, 13, 0.8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.console-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-dim);
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.console-body {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 0 18px;
}

.observation-line {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  margin: 0 0 14px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 400ms ease, transform 400ms ease;
}

.observation-line.visible {
  opacity: 1;
  transform: none;
}

.observation-line .time {
  color: var(--ink-dim);
  font: 400 11px/1.7 var(--mono);
}

.observation-line .text {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}

.observation-line.anomaly .text {
  color: var(--ink);
}

.observation-line.anomaly .time {
  color: var(--gold);
}

.console-progress {
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.console-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  box-shadow: 0 0 14px rgba(122, 217, 230, 0.45);
  transition: width 180ms linear;
}

.teaser-reveal {
  display: none;
  width: min(900px, 100%);
  text-align: center;
}

.teaser-reveal.visible {
  display: block;
  animation: reveal-in 900ms ease both;
}

.teaser-reveal .mark {
  margin-bottom: 22px;
  color: var(--cyan);
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.teaser-reveal h1 {
  margin: 0;
  font-size: clamp(56px, 12vw, 148px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.teaser-reveal h1 span {
  display: block;
  margin-top: 14px;
  color: var(--gold);
  font-size: 0.31em;
  letter-spacing: 0.38em;
}

.teaser-reveal p {
  max-width: 620px;
  margin: 34px auto 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.9;
}

.skip-button {
  position: fixed;
  right: 22px;
  bottom: 20px;
  border: 0;
  background: none;
  color: var(--ink-dim);
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

@keyframes reveal-in {
  from { opacity: 0; transform: translateY(16px); filter: blur(10px); }
  to { opacity: 1; transform: none; filter: none; }
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background: var(--void);
  opacity: 0;
  transition: opacity 500ms ease;
}

.page-transition.active {
  opacity: 1;
}

@media (max-width: 820px) {
  .site-shell {
    width: min(100% - 28px, 1180px);
  }

  .site-nav {
    padding: 18px 0;
  }

  .brand-en,
  .nav-links a:not(:first-child) {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 70px 0 80px;
  }

  .contradiction-grid,
  .entry-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 70px 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .entry-card {
    min-height: 240px;
  }

  .site-footer {
    flex-direction: column;
  }

  .observation-console {
    padding: 18px;
  }

  .observation-line {
    grid-template-columns: 66px 1fr;
    gap: 10px;
  }

  .observation-line .text {
    font-size: 14px;
  }
}

@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;
  }

  #field-canvas {
    opacity: 0.3;
  }
}


/* Minimal cinematic homepage */
.home-page {
  overflow: hidden;
  height: 100vh;
  background: #030305;
  cursor: none;
}

.home-page::before {
  opacity: 0.34;
  background-size: 64px 64px;
}

.home-page #field-canvas {
  z-index: 1;
  opacity: 1;
}

.home-page .ambient-vignette {
  z-index: 3;
  background: radial-gradient(circle at center, transparent 26%, rgba(0, 0, 0, 0.78) 100%);
}

.home-scanlines {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.28;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.08) 0,
    rgba(0, 0, 0, 0.08) 1px,
    transparent 1px,
    transparent 4px
  );
}

.home-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  z-index: 80;
  pointer-events: none;
  border: 1px solid rgba(122, 217, 230, 0.8);
  border-radius: 50%;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  box-shadow: 0 0 18px rgba(122, 217, 230, 0.16);
  transition:
    width 150ms ease,
    height 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    opacity 220ms ease;
}

.home-cursor.visible {
  opacity: 1;
}

.home-cursor.hot {
  width: 48px;
  height: 48px;
  border-color: rgba(207, 182, 109, 0.88);
  box-shadow: 0 0 28px rgba(207, 182, 109, 0.26);
}

.home-boot {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(3, 3, 5, 0.28) 0%, rgba(3, 3, 5, 0.62) 62%, rgba(3, 3, 5, 0.9) 100%);
  transition: opacity 900ms cubic-bezier(0.4, 0, 0.2, 1), visibility 900ms;
}

.home-boot.finished {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.home-boot-inner {
  width: min(720px, calc(100% - 48px));
  text-align: center;
}

.home-boot-code,
.home-boot-en {
  display: block;
  font: 500 10px/1.5 var(--mono);
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.home-boot-code {
  margin-bottom: 22px;
  color: rgba(122, 217, 230, 0.45);
  opacity: 0;
  animation: home-boot-fade 800ms ease 140ms forwards;
}

.home-boot h1 {
  margin: 0;
  color: rgba(236, 233, 226, 0.08);
  font-size: clamp(42px, 8vw, 92px);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  text-shadow: 0 0 0 rgba(122, 217, 230, 0);
  animation: home-boot-title 1700ms cubic-bezier(0.2, 0.8, 0.2, 1) 250ms forwards;
}

.home-boot-en {
  margin-top: 20px;
  color: rgba(207, 182, 109, 0.42);
  opacity: 0;
  animation: home-boot-fade 900ms ease 650ms forwards;
}

.home-boot-line {
  width: min(360px, 72%);
  height: 1px;
  margin: 30px auto 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.home-boot-line span {
  display: block;
  width: 100%;
  height: 100%;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, var(--cyan), var(--gold), transparent);
  box-shadow: 0 0 18px rgba(122, 217, 230, 0.42);
  animation: home-boot-line 1650ms ease 450ms forwards;
}

.home-stage {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100vh;
  opacity: 0;
  transition: opacity 1100ms ease;
}

.home-stage.ready {
  opacity: 1;
}

.home-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(20px, 3vw, 36px) clamp(22px, 4vw, 56px);
}

.home-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.home-mark span {
  font-size: 18px;
  letter-spacing: 0.28em;
}

.home-mark small,
.home-nav-links {
  color: rgba(236, 233, 226, 0.42);
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.2em;
}

.home-nav-links {
  display: flex;
  gap: 24px;
}

.home-nav-links a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease, text-shadow 160ms ease;
}

.home-nav-links a:hover {
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(122, 217, 230, 0.34);
}

.home-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(900px, calc(100% - 44px));
  text-align: center;
  transform: translate(-50%, -48%);
}

.home-kicker {
  margin: 0 0 18px;
  color: rgba(122, 217, 230, 0.58);
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.48em;
  text-indent: 0.48em;
}

.home-center h1 {
  margin: 0;
  font-size: clamp(82px, 16vw, 190px);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  color: #f0eee8;
  text-shadow:
    0 0 34px rgba(122, 217, 230, 0.08),
    0 0 90px rgba(207, 182, 109, 0.05);
}

.home-hook {
  margin: 34px auto 0;
  color: rgba(236, 233, 226, 0.62);
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.9;
  letter-spacing: 0.06em;
}

.home-hook strong {
  color: var(--gold);
  font-weight: 500;
  font-family: var(--mono);
  letter-spacing: 0.08em;
}

.home-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 38px;
}

.home-enter {
  position: relative;
  min-width: 144px;
  padding: 14px 22px;
  overflow: hidden;
  border: 1px solid rgba(236, 233, 226, 0.18);
  color: rgba(236, 233, 226, 0.62);
  background: rgba(3, 3, 5, 0.22);
  text-decoration: none;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.16em;
  backdrop-filter: blur(8px);
  transition:
    border-color 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease,
    background 220ms ease;
}

.home-enter::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(122, 217, 230, 0.18), transparent);
  transition: left 520ms ease;
}

.home-enter:hover {
  transform: translateY(-2px);
  color: #efffff;
  border-color: rgba(122, 217, 230, 0.66);
  background: rgba(122, 217, 230, 0.06);
  box-shadow: 0 0 28px rgba(122, 217, 230, 0.12);
}

.home-enter:hover::before {
  left: 120%;
}

.home-enter.primary {
  color: rgba(233, 255, 255, 0.9);
  border-color: rgba(122, 217, 230, 0.48);
}

.home-euler,
.home-psi {
  position: fixed;
  bottom: 22px;
  z-index: 18;
  font-size: 11px;
  pointer-events: none;
}

.home-euler {
  left: 26px;
  color: rgba(207, 182, 109, 0.24);
  font-family: Georgia, serif;
  font-style: italic;
}

.home-psi {
  right: 26px;
  color: rgba(122, 217, 230, 0.3);
  font-family: var(--mono);
  letter-spacing: 0.1em;
}

.home-flash {
  position: fixed;
  z-index: 7;
  width: 5px;
  height: 5px;
  border: 1px solid rgba(122, 217, 230, 0.68);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: home-ripple 850ms ease-out forwards;
}

@keyframes home-boot-fade {
  from { opacity: 0; filter: blur(8px); }
  to { opacity: 1; filter: blur(0); }
}

@keyframes home-boot-title {
  0% {
    color: rgba(236, 233, 226, 0.06);
    letter-spacing: 0.34em;
    filter: blur(10px);
  }
  58% {
    color: rgba(236, 233, 226, 0.82);
    text-shadow: 0 0 30px rgba(122, 217, 230, 0.3);
    filter: blur(0);
  }
  100% {
    color: rgba(236, 233, 226, 0.52);
    letter-spacing: 0.24em;
    text-shadow: 0 0 18px rgba(122, 217, 230, 0.15);
  }
}

@keyframes home-boot-line {
  0% { transform: translateX(-100%); }
  55% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

@keyframes home-ripple {
  from {
    width: 5px;
    height: 5px;
    opacity: 0.8;
    box-shadow: 0 0 18px rgba(122, 217, 230, 0.32);
  }
  to {
    width: 150px;
    height: 150px;
    opacity: 0;
    border-color: rgba(207, 182, 109, 0.18);
  }
}

@media (max-width: 720px) {
  .home-page {
    cursor: auto;
  }

  .home-cursor,
  .home-mark small {
    display: none;
  }

  .home-nav {
    padding: 20px;
  }

  .home-nav-links {
    gap: 16px;
    font-size: 9px;
  }

  .home-center {
    width: calc(100% - 32px);
  }

  .home-center h1 {
    font-size: clamp(72px, 26vw, 120px);
  }

  .home-hook {
    margin-top: 28px;
    font-size: 16px;
  }

  .home-actions {
    margin-top: 32px;
  }

  .home-enter {
    min-width: 126px;
    padding: 13px 16px;
  }

  .home-euler,
  .home-psi {
    bottom: 16px;
  }

  .home-euler { left: 18px; }
  .home-psi { right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-boot {
    display: none;
  }

  .home-stage {
    opacity: 1;
  }

  .home-page {
    cursor: auto;
  }

  .home-cursor {
    display: none;
  }
}
