/* ==========================================================================
   安科科学梦之队 · AHSTU Future Scientists
   Design system — "Cosmic Editorial"
   ========================================================================== */

:root {
  /* night */
  --ink: #050c1d;
  --night: #081430;
  --night-2: #0c1d40;
  --night-3: #12295a;
  /* brand (from logo) */
  --navy: #294b76;
  --azure: #005aa8;
  --steel: #6086ac;
  --sky: #8fb9ee;
  --glow: #a9cdff;
  /* accents */
  --gold: #f2c66d;
  --gold-2: #ffdf9e;
  --ember: #f0a35e;
  --violet: #8d7dff;
  /* paper */
  --paper: #f5f1e8;
  --paper-2: #ece5d6;
  --card: #fffdf8;
  --text: #13213b;
  --text-2: #4a5873;
  --text-3: #7a859b;
  --line: rgba(19, 33, 59, .12);
  --line-dark: rgba(255, 255, 255, .12);

  --f-display: "Fraunces", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --f-body: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, "Microsoft YaHei", monospace;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 76px;
}

/* ---------- language switching ---------- */
html[data-lang="zh"] [data-l="en"],
html[data-lang="en"] [data-l="zh"] { display: none !important; }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[data-lang="zh"] body { font-size: 16.5px; line-height: 1.85; letter-spacing: .01em; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* film grain over everything — print-like warmth */
body::after {
  content: "";
  position: fixed; inset: -50%;
  pointer-events: none;
  z-index: 9999;
  opacity: .055;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-1%, 3%); } 80% { transform: translate(3%, 1%); } 100% { transform: translate(0, 0); }
}

/* ---------- layout primitives ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(88px, 12vw, 168px); }
.section--tight { padding-block: clamp(64px, 8vw, 110px); }
.dark { background: var(--night); color: #e8eefb; }
.dark .muted { color: rgba(232, 238, 251, .62); }
.muted { color: var(--text-2); }

/* dotted "lab notebook" grid */
.dotgrid {
  background-image: radial-gradient(rgba(19, 33, 59, .13) 1px, transparent 1.2px);
  background-size: 26px 26px;
}

/* ---------- typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--azure);
  margin: 0 0 22px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.dark .eyebrow, .join .eyebrow, .page-hero .eyebrow { color: var(--gold); }
html[data-lang="zh"] .eyebrow { letter-spacing: .26em; }

.display, .h2, .h3 { font-family: var(--f-display); font-weight: 400; margin: 0; font-optical-sizing: auto; }
.display { font-size: clamp(46px, 7.4vw, 112px); line-height: .98; letter-spacing: -.025em; }
.h2 { font-size: clamp(36px, 5vw, 68px); line-height: 1.04; letter-spacing: -.02em; }
.h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.18; letter-spacing: -.01em; }
html[data-lang="zh"] .display { font-weight: 700; font-size: clamp(40px, 6.2vw, 92px); line-height: 1.14; letter-spacing: .01em; }
html[data-lang="zh"] .h2 { font-weight: 700; font-size: clamp(30px, 4.2vw, 56px); line-height: 1.22; letter-spacing: .02em; }
html[data-lang="zh"] .h3 { font-weight: 700; font-size: clamp(21px, 2.1vw, 27px); line-height: 1.4; letter-spacing: .02em; }
.display em, .h2 em, .h3 em { font-style: italic; font-weight: 300; }
html[data-lang="zh"] .display em, html[data-lang="zh"] .h2 em { font-style: normal; font-weight: 900; }

.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.65; color: var(--text-2); max-width: 40em; }
.dark .lede, .hero .lede, .page-hero .lede, .join .lede { color: rgba(232, 238, 251, .74); }
html[data-lang="zh"] .lede { line-height: 1.95; }

.grad-text {
  background: linear-gradient(100deg, var(--gold-2) 0%, var(--gold) 30%, var(--ember) 55%, var(--glow) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: shimmer 8s ease-in-out infinite alternate;
}
.grad-text--blue {
  background: linear-gradient(100deg, var(--azure), #3f86d6 50%, var(--navy));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes shimmer { to { background-position: 100% 0; } }

.mono { font-family: var(--f-mono); }
.num { font-family: var(--f-display); font-variant-numeric: lining-nums tabular-nums; }

/* ---------- buttons ---------- */
.btn {
  --bg: transparent;
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  height: 54px; padding: 0 26px;
  border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: .02em;
  background: var(--bg);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), background .3s, color .3s, border-color .3s;
  isolation: isolate;
  white-space: nowrap;
}
.btn .arr { width: 18px; height: 18px; transition: transform .45s var(--ease-out); }
.btn:hover .arr { transform: translateX(5px); }
.btn--gold {
  color: #1a1305;
  background: linear-gradient(120deg, var(--gold-2), var(--gold) 45%, var(--ember));
  box-shadow: 0 10px 30px -10px rgba(242, 198, 109, .65), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -12px rgba(242, 198, 109, .8), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn--ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .26); backdrop-filter: blur(8px); background: rgba(255, 255, 255, .04); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .09); transform: translateY(-2px); }
.btn--ink { color: #fff; background: var(--night); box-shadow: 0 12px 30px -14px rgba(8, 20, 48, .7); }
.btn--ink:hover { background: var(--night-3); transform: translateY(-2px); }
.btn--line { color: var(--text); border: 1px solid var(--line); background: var(--card); }
.btn--line:hover { border-color: var(--text); transform: translateY(-2px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
}
.link-arrow .arr { width: 16px; height: 16px; transition: transform .45s var(--ease-out); }
.link-arrow:hover .arr { transform: translateX(5px); }

/* ---------- navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .5s var(--ease), box-shadow .5s var(--ease), height .5s var(--ease), transform .5s var(--ease);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand { position: relative; display: block; height: 50px; flex: none; transition: height .5s var(--ease); }
.brand-set { position: relative; display: block; height: 100%; }
.brand-set img { height: 100%; width: auto; transition: opacity .4s; }
.brand-set img + img { position: absolute; left: 0; top: 0; }
/* reverse logos while over dark hero; full colour once scrolled */
.nav__brand .logo-color { opacity: 0; }
.nav.is-solid .nav__brand .logo-color { opacity: 1; }
.nav.is-solid .nav__brand .logo-rev { opacity: 0; }

.nav__links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  position: relative;
  display: block; padding: 8px 14px;
  font-size: 14.5px; font-weight: 500;
  color: rgba(255, 255, 255, .78);
  border-radius: 999px;
  transition: color .3s, background .3s;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .08); }
.nav.is-solid .nav__links a { color: var(--text-2); }
.nav.is-solid .nav__links a:hover, .nav.is-solid .nav__links a[aria-current="page"] { color: var(--text); background: rgba(19, 33, 59, .06); }

.nav.is-solid {
  height: 64px;
  background: rgba(245, 241, 232, .78);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 1px 0 var(--line), 0 10px 40px -20px rgba(8, 20, 48, .25);
}
.nav.is-solid .nav__brand { height: 42px; }
.nav.is-hidden { transform: translateY(-100%); }

.nav__right { display: flex; align-items: center; gap: 14px; }

/* language switch */
.lang {
  position: relative;
  display: inline-grid; grid-template-columns: 1fr 1fr;
  padding: 4px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .05);
  font-family: var(--f-mono); font-size: 12.5px; font-weight: 500;
}
.lang button { position: relative; z-index: 1; padding: 5px 12px; border-radius: 999px; color: rgba(255, 255, 255, .7); transition: color .35s; min-width: 44px; }
.lang::before {
  content: ""; position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px); border-radius: 999px;
  background: linear-gradient(120deg, var(--gold-2), var(--gold));
  transition: transform .5s var(--ease-out);
}
html[data-lang="en"] .lang::before { transform: translateX(100%); }
html[data-lang="zh"] .lang button[data-set="zh"], html[data-lang="en"] .lang button[data-set="en"] { color: #1a1305; }
.nav.is-solid .lang { border-color: var(--line); background: rgba(255, 255, 255, .6); }
.nav.is-solid .lang button { color: var(--text-2); }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: #fff; transition: transform .5s var(--ease-out), opacity .3s, background .3s; }
.burger span:nth-child(1) { top: 17px; } .burger span:nth-child(2) { top: 25px; }
.nav.is-solid .burger { border-color: var(--line); }
.nav.is-solid .burger span { background: var(--text); }
body.menu-open .burger span { background: #fff !important; }
body.menu-open .burger span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90;
  background: radial-gradient(120% 80% at 80% 0%, var(--night-3), var(--ink) 70%);
  color: #fff;
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px var(--gutter) 60px;
  clip-path: circle(0% at calc(100% - 44px) 38px);
  transition: clip-path .8s var(--ease-out);
  visibility: hidden;
}
body.menu-open .menu { clip-path: circle(150% at calc(100% - 44px) 38px); visibility: visible; }
body.menu-open .nav { background: transparent !important; box-shadow: none !important; backdrop-filter: none !important; }
body.menu-open .nav .logo-rev { opacity: 1 !important; } body.menu-open .nav .logo-color { opacity: 0 !important; }
.menu a { display: block; font-family: var(--f-display); font-size: clamp(38px, 10vw, 64px); line-height: 1.25; padding: 6px 0; border-bottom: 1px solid var(--line-dark); }
.menu a small { font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; color: var(--gold); margin-right: 16px; vertical-align: middle; }
html[data-lang="zh"] .menu a { font-weight: 700; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  background:
    radial-gradient(70% 60% at 78% 38%, rgba(41, 75, 118, .55), transparent 70%),
    radial-gradient(60% 70% at 10% 100%, rgba(0, 90, 168, .28), transparent 70%),
    linear-gradient(180deg, var(--ink) 0%, var(--night) 55%, #0a1a3b 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__stars { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.aurora { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55; mix-blend-mode: screen; pointer-events: none; }
.aurora--1 { width: 46vw; height: 30vw; left: -12vw; top: 12%; background: radial-gradient(closest-side, rgba(0, 110, 210, .7), transparent); animation: drift1 22s ease-in-out infinite alternate; }
.aurora--2 { width: 38vw; height: 26vw; right: -6vw; bottom: 6%; background: radial-gradient(closest-side, rgba(141, 125, 255, .45), transparent); animation: drift2 26s ease-in-out infinite alternate; }
.aurora--3 { width: 30vw; height: 18vw; left: 40%; top: -8%; background: radial-gradient(closest-side, rgba(242, 198, 109, .22), transparent); animation: drift1 30s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(8vw, 6vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-10vw, -8vh) scale(1.2); } }

.hero__inner {
  flex: 1;
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: center; gap: clamp(20px, 4vw, 60px);
  padding-top: calc(var(--nav-h) + 30px); padding-bottom: 40px;
}
.hero__kicker {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 7px 16px 7px 8px; margin-bottom: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(10px);
  font-size: 13.5px; color: rgba(255, 255, 255, .8);
}
.hero__kicker .dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(242, 198, 109, .14); }
.hero__kicker .dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(242, 198, 109, .7); animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(242, 198, 109, .6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(242, 198, 109, 0); } }

.hero .display { color: #fff; }
.hero .display .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero .display .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.2s var(--ease-out) forwards; }
.hero .display .line:nth-child(2) > span { animation-delay: .12s; }
.hero .display .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: none; } }
.hero .lede { margin: 30px 0 40px; opacity: 0; animation: fade 1.2s .55s var(--ease-out) forwards; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; opacity: 0; animation: fade 1.2s .7s var(--ease-out) forwards; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* hero art: the dreamer silhouetted against a moon */
.hero-art { position: relative; aspect-ratio: 1; width: min(100%, 620px); justify-self: center; opacity: 0; animation: fade 1.8s .25s var(--ease-out) forwards; }
.hero-art .moon {
  position: absolute; inset: 14%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 30%, #ffffff 0%, #f1f6ff 18%, #cfe0fb 42%, #9dbde9 66%, #6d93c9 86%, #4d74ad 100%);
  box-shadow:
    0 0 60px 10px rgba(169, 205, 255, .35),
    0 0 160px 40px rgba(110, 160, 240, .25),
    inset -30px -40px 80px rgba(41, 75, 118, .35);
  animation: breathe 9s ease-in-out infinite;
}
.hero-art .moon::after {
  /* faint craters */
  content: ""; position: absolute; inset: 0; border-radius: 50%; opacity: .25; mix-blend-mode: multiply;
  background:
    radial-gradient(circle at 70% 64%, rgba(77, 116, 173, .55) 0 5%, transparent 5.6%),
    radial-gradient(circle at 26% 70%, rgba(77, 116, 173, .45) 0 3.4%, transparent 4%),
    radial-gradient(circle at 62% 22%, rgba(77, 116, 173, .4) 0 2.6%, transparent 3.1%),
    radial-gradient(circle at 82% 40%, rgba(77, 116, 173, .35) 0 2%, transparent 2.5%);
}
@keyframes breathe { 50% { box-shadow: 0 0 80px 18px rgba(169, 205, 255, .42), 0 0 200px 60px rgba(110, 160, 240, .28), inset -30px -40px 80px rgba(41, 75, 118, .35); } }
.hero-art .orbits { position: absolute; inset: -6%; width: 112%; height: 112%; overflow: visible; }
.orbits .ring { fill: none; stroke: rgba(169, 205, 255, .28); stroke-width: 1; vector-effect: non-scaling-stroke; }
.orbits .ring--dash { stroke-dasharray: 2 7; stroke: rgba(242, 198, 109, .45); }
.orbits .spin { transform-origin: 0 0; animation: spin 90s linear infinite; }
.orbits .spin--rev { animation-duration: 140s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-art .mark {
  position: absolute; left: 50%; top: 52%;
  width: 52%; transform: translate(-50%, -50%);
  filter: drop-shadow(0 18px 30px rgba(8, 20, 48, .35));
  animation: float 8s ease-in-out infinite;
}
@keyframes float { 50% { transform: translate(-50%, calc(-50% - 10px)); } }
.mark .facet, .mark .planet, .mark rect { animation: facetIn 1.4s var(--ease-out) both; }
.mark .planet { animation-name: planetIn; animation-delay: .4s; transform-origin: 480px 472px; }
.mark .figure > :nth-child(1) { animation-delay: .5s; } .mark .figure > :nth-child(2) { animation-delay: .6s; }
.mark .figure > :nth-child(3) { animation-delay: .66s; } .mark .figure > :nth-child(4) { animation-delay: .72s; }
.mark .figure > :nth-child(5) { animation-delay: .78s; } .mark .figure > :nth-child(6) { animation-delay: .84s; }
.mark .figure > :nth-child(7) { animation-delay: .9s; } .mark .figure > :nth-child(8) { animation-delay: .96s; }
.mark .figure > :nth-child(9) { animation-delay: 1.02s; } .mark .figure > :nth-child(10) { animation-delay: 1.08s; }
@keyframes facetIn { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes planetIn { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }

.hero-art .tag {
  position: absolute;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  display: flex; align-items: center; gap: 8px;
}
.hero-art .tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.hero-art .tag--1 { top: 9%; right: 4%; } .hero-art .tag--2 { bottom: 12%; left: 0; } .hero-art .tag--3 { bottom: 3%; right: 12%; }

.hero__foot { position: relative; border-top: 1px solid rgba(255, 255, 255, .08); }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track a { display: inline-flex; }
.marquee__track a:hover span { color: var(--gold-2); }
.marquee__track span { display: inline-flex; align-items: center; gap: 28px; padding: 20px 14px; font-family: var(--f-display); font-style: italic; font-size: 19px; color: rgba(255, 255, 255, .55); white-space: nowrap; transition: color .3s; }
html[data-lang="zh"] .marquee__track span { font-style: normal; font-size: 17px; letter-spacing: .08em; }
.marquee__track span::after { content: "✦"; font-style: normal; font-size: 11px; color: var(--gold); opacity: .8; }
@keyframes marquee { to { transform: translateX(-50%); } }

.scroll-cue { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(rgba(255, 255, 255, .6), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 110%; } }

/* ---------- section headers ---------- */
.sec-head { display: grid; grid-template-columns: 160px 1fr; gap: 24px 40px; margin-bottom: clamp(48px, 7vw, 90px); align-items: start; }
.sec-idx { font-family: var(--f-display); font-style: italic; font-size: 22px; color: var(--text-3); padding-top: 6px; border-top: 1px solid var(--line); }
.dark .sec-idx { color: rgba(255, 255, 255, .45); border-color: var(--line-dark); }
.sec-head .lede { margin-top: 26px; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.reveal-mask { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal-mask.in { clip-path: inset(0 0 0 0); }

/* ---------- ABOUT ---------- */
.manifesto {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(28px, 3.5vw, 50px); line-height: 1.28; letter-spacing: -.015em;
  margin: 0; max-width: 22em; text-wrap: balance;
}
html[data-lang="zh"] .manifesto { font-weight: 500; font-size: clamp(24px, 2.9vw, 40px); line-height: 1.65; letter-spacing: .02em; }
.manifesto .hl { position: relative; white-space: nowrap; font-style: italic; color: var(--azure); }
html[data-lang="zh"] .manifesto .hl { font-style: normal; font-weight: 900; }
.manifesto .hl::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .32em; background: linear-gradient(90deg, rgba(242, 198, 109, .55), rgba(242, 198, 109, .15)); z-index: -1; transform: scaleX(0); transform-origin: left; transition: transform 1.2s .3s var(--ease-out); }
.manifesto.in .hl::after { transform: scaleX(1); }
.manifesto .hl { z-index: 0; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(60px, 8vw, 110px); border-top: 1px solid var(--line); }
.pillar { padding: 34px 34px 10px 0; position: relative; }
.pillar + .pillar { padding-left: 34px; border-left: 1px solid var(--line); }
.pillar__k { font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em; color: var(--azure); text-transform: uppercase; }
.pillar h3 { margin: 14px 0 12px; }
.pillar p { margin: 0; color: var(--text-2); }
.pillar__icon { width: 46px; height: 46px; margin-bottom: 22px; color: var(--azure); }

/* ---------- PROCESS ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step {
  position: relative;
  padding: 30px 28px 32px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 20px 50px -34px rgba(8, 20, 48, .35);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
  overflow: hidden;
}
.step:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(8, 20, 48, .4); }
.step__n { font-family: var(--f-display); font-size: 74px; line-height: 1; font-weight: 300; font-style: italic; color: transparent; -webkit-text-stroke: 1px rgba(0, 90, 168, .4); }
.step h3 { margin: 22px 0 10px; }
.step p { margin: 0; font-size: 15.5px; color: var(--text-2); }
.step::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(closest-side, rgba(242, 198, 109, .28), transparent); opacity: 0; transition: opacity .6s; }
.step:hover::after { opacity: 1; }
.step__chip { display: inline-block; margin-top: 18px; font-family: var(--f-mono); font-size: 11.5px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 90, 168, .07); color: var(--azure); }

/* ---------- FEATURED RESEARCH (dark band) ---------- */
.research-band {
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(0, 90, 168, .35), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, rgba(141, 125, 255, .16), transparent 70%),
    var(--night);
  color: #e8eefb;
  overflow: hidden;
}
.research-band .h2 { color: #fff; }
.paper-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.paper {
  position: relative;
  display: flex; flex-direction: column;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .1);
  overflow: hidden;
  transition: transform .7s var(--ease-out), border-color .5s, box-shadow .7s var(--ease-out);
}
.paper:hover { transform: translateY(-8px); border-color: rgba(242, 198, 109, .4); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7), 0 0 0 1px rgba(242, 198, 109, .15); }
.paper__cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #071226; }
.paper__cover canvas { width: 100%; height: 100%; transition: transform 1.4s var(--ease-out); }
.paper:hover .paper__cover canvas { transform: scale(1.04); }
.paper__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(8, 20, 48, .85)); pointer-events: none; }
.paper__badge { position: absolute; z-index: 2; top: 18px; left: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .04em; background: rgba(5, 12, 29, .6); border: 1px solid rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(8px); }
.chip--gold { background: rgba(242, 198, 109, .16); border-color: rgba(242, 198, 109, .45); color: var(--gold-2); }
.chip--light { background: rgba(0, 90, 168, .07); border-color: rgba(0, 90, 168, .18); color: var(--azure); backdrop-filter: none; }
.paper__body { padding: 30px 32px 34px; display: flex; flex-direction: column; flex: 1; }
.paper__field { font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.paper__title { font-family: var(--f-display); font-size: clamp(23px, 2.2vw, 30px); line-height: 1.2; margin: 0 0 16px; color: #fff; font-weight: 400; }
html[data-lang="zh"] .paper__title { font-weight: 700; line-height: 1.45; }
.paper__abs { color: rgba(232, 238, 251, .68); font-size: 15.5px; margin: 0 0 26px; }
.paper__meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; color: rgba(232, 238, 251, .6); }
.paper__meta .link-arrow { color: #fff; border-color: rgba(255, 255, 255, .3); }
.paper__stretch::after { content: ""; position: absolute; inset: 0; z-index: 3; }

/* ---------- STATS ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); margin-top: clamp(70px, 9vw, 120px); }
.stat { padding: 34px 26px 30px 0; }
.stat + .stat { padding-left: 26px; border-left: 1px solid var(--line-dark); }
.stat__v { font-family: var(--f-display); font-weight: 300; font-size: clamp(46px, 5.6vw, 80px); line-height: 1; letter-spacing: -.03em; color: #fff; display: flex; align-items: baseline; gap: 4px; }
.stat__v sup { font-size: .38em; color: var(--gold); font-style: italic; }
.stat__l { margin-top: 14px; font-size: 14px; color: rgba(232, 238, 251, .62); line-height: 1.55; }

/* ---------- CONSTELLATION ---------- */
.constellation { position: relative; border-radius: 30px; overflow: hidden; background: radial-gradient(120% 120% at 30% 20%, #0f2350, var(--ink) 70%); border: 1px solid rgba(19, 33, 59, .2); box-shadow: 0 50px 100px -50px rgba(8, 20, 48, .6); }
.constellation svg { width: 100%; height: auto; }
.constellation .grid line, .constellation .grid path { stroke: rgba(169, 205, 255, .09); stroke-width: 1; fill: none; }
.constellation .coast { fill: rgba(169, 205, 255, .045); stroke: rgba(169, 205, 255, .18); stroke-width: 1; stroke-dasharray: 3 4; }
.constellation .edge { fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 2.6s var(--ease-out); }
.constellation.in .edge { stroke-dashoffset: 0; }
.constellation .edge--a { stroke: var(--gold); filter: drop-shadow(0 0 4px rgba(242, 198, 109, .8)); }
.constellation .edge--b { stroke: #6fb2ff; filter: drop-shadow(0 0 4px rgba(111, 178, 255, .8)); }
.constellation .node circle.core { fill: #fff; }
.constellation .node circle.halo { fill: url(#halo); }
.constellation .node text { font-family: var(--f-body); font-size: 15px; fill: rgba(255, 255, 255, .9); font-weight: 500; }
.constellation .node text.sub { font-family: var(--f-mono); font-size: 10.5px; fill: rgba(169, 205, 255, .65); letter-spacing: .08em; font-weight: 400; }
.constellation .node--home text { fill: var(--gold-2); font-size: 17px; font-weight: 700; }
.constellation .node { opacity: 0; transition: opacity 1s var(--ease-out); transition-delay: var(--d, 0s); }
.constellation.in .node { opacity: 1; }
.constellation .node--home .pulse { fill: none; stroke: var(--gold); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: pulse 3s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.constellation__legend { position: absolute; left: 28px; bottom: 24px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: rgba(255, 255, 255, .78); }
.constellation__legend span { display: inline-flex; align-items: center; gap: 10px; }
.constellation__legend i { width: 26px; height: 2px; border-radius: 2px; }
.constellation__title { position: absolute; right: 28px; top: 24px; text-align: right; font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(169, 205, 255, .55); line-height: 1.8; }

/* ---------- FIELDS ---------- */
.fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.field {
  position: relative; padding: 34px 32px 36px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out), border-color .4s;
  overflow: hidden; min-height: 330px; display: flex; flex-direction: column;
}
.field:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(8, 20, 48, .35); }
.field__art { height: 90px; margin: -6px -8px 26px; }
.field__art svg { height: 100%; width: auto; }
.field h3 { margin: 0 0 12px; }
.field p { margin: 0 0 22px; color: var(--text-2); font-size: 15.5px; }
.field .tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.field--open { background: linear-gradient(160deg, var(--night-2), var(--ink)); color: #e8eefb; border-color: transparent; }
.field--open p { color: rgba(232, 238, 251, .7); }
.field--open .chip--light { background: rgba(255, 255, 255, .06); color: var(--gold-2); border-color: rgba(242, 198, 109, .3); }

/* ---------- JOIN ---------- */
.join {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 36px;
  padding: clamp(48px, 7vw, 100px) clamp(28px, 6vw, 90px);
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(0, 90, 168, .55), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(141, 125, 255, .3), transparent 60%),
    linear-gradient(160deg, var(--night-2), var(--ink));
  color: #fff;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 80px);
}
.join canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: .7; }
.join .h2 { color: #fff; }
.join__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; align-content: center; }
.join__list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.join__list li:last-child { border-bottom: 0; }
.join__list b { display: block; font-weight: 600; color: #fff; margin-bottom: 2px; }
.join__list span { color: rgba(232, 238, 251, .66); font-size: 15px; }
.join__list .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(242, 198, 109, .12); color: var(--gold); border: 1px solid rgba(242, 198, 109, .25); }
.join__list .ic svg { width: 20px; height: 20px; }
.join__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.mail { font-family: var(--f-mono); font-size: 14px; color: rgba(232, 238, 251, .6); margin-top: 22px; }
.mail a { color: var(--gold-2); border-bottom: 1px dashed rgba(242, 198, 109, .5); }

/* ---------- FOOTER ---------- */
.footer { position: relative; background: var(--ink); color: rgba(232, 238, 251, .7); padding: clamp(70px, 9vw, 120px) 0 36px; overflow: hidden; }
.footer__giant { font-family: var(--f-display); font-style: italic; font-weight: 300; font-size: clamp(64px, 15.5vw, 240px); line-height: .9; letter-spacing: -.04em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(169, 205, 255, .24); margin: 0 0 clamp(50px, 6vw, 80px); user-select: none; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 40px; }
.footer__brand img { height: 64px; width: auto; margin-bottom: 22px; }
.footer__brand p { max-width: 26em; font-size: 14.5px; margin: 0; }
.footer h4 { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 8px 0 18px; font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.footer a { transition: color .3s; } .footer a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 70px; padding-top: 26px; border-top: 1px solid var(--line-dark); font-size: 13px; color: rgba(232, 238, 251, .45); }
.to-top { display: inline-flex; align-items: center; gap: 8px; }

/* ==========================================================================
   Research list & post pages
   ========================================================================== */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(0, 90, 168, .4), transparent 65%),
    radial-gradient(50% 60% at 0% 100%, rgba(141, 125, 255, .18), transparent 70%),
    linear-gradient(180deg, var(--ink), var(--night));
  color: #fff;
  padding: calc(var(--nav-h) + clamp(60px, 9vw, 120px)) 0 clamp(70px, 9vw, 120px);
}
.page-hero .hero__stars { opacity: .9; }
.page-hero .display { color: #fff; font-size: clamp(44px, 6.6vw, 96px); }
html[data-lang="zh"] .page-hero .display { font-size: clamp(38px, 5.6vw, 80px); }
.page-hero .lede { margin-top: 26px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 500; color: var(--text-2); transition: all .35s var(--ease); }
.filter:hover { border-color: var(--text); color: var(--text); }
.filter.is-on { background: var(--night); color: #fff; border-color: var(--night); }

.journal { display: grid; gap: 26px; }
.entry {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 0;
  border-radius: 28px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  transition: transform .7s var(--ease-out), box-shadow .7s var(--ease-out), opacity .5s;
}
.entry:hover { transform: translateY(-6px); box-shadow: 0 40px 80px -40px rgba(8, 20, 48, .45); }
.entry.is-hidden { display: none; }
.entry__cover { position: relative; min-height: 340px; background: var(--night); overflow: hidden; }
.entry__cover canvas { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 1.4s var(--ease-out); }
.entry:hover .entry__cover canvas { transform: scale(1.05); }
.entry__body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; }
.entry__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-family: var(--f-mono); font-size: 12px; color: var(--text-3); letter-spacing: .06em; margin-bottom: 18px; }
.entry__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }
.entry h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.16; margin: 0 0 18px; letter-spacing: -.01em; }
html[data-lang="zh"] .entry h2 { font-weight: 700; line-height: 1.42; letter-spacing: .01em; }
.entry p { color: var(--text-2); margin: 0 0 24px; }
.entry__authors { font-size: 14px; color: var(--text-3); margin-bottom: 26px; }
.entry__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.entry--next { grid-template-columns: 1fr; background: linear-gradient(160deg, var(--night-2), var(--ink)); color: #fff; border: 0; text-align: center; }
.entry--next .entry__body { align-items: center; padding: clamp(50px, 7vw, 90px) 24px; }
.entry--next p { color: rgba(232, 238, 251, .7); max-width: 34em; }

/* ---------- article ---------- */
.post-hero { padding-bottom: 0; }
.post-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: rgba(255, 255, 255, .55); margin-bottom: 34px; }
.crumbs a:hover { color: #fff; }
.post-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(36px, 5.2vw, 76px); line-height: 1.04; letter-spacing: -.022em; margin: 0; max-width: 17em; text-wrap: balance; }
html[data-lang="zh"] .post-title { font-weight: 700; font-size: clamp(32px, 4.4vw, 62px); line-height: 1.3; letter-spacing: .01em; }
.post-sub { margin: 24px 0 0; font-family: var(--f-display); font-style: italic; font-size: clamp(18px, 1.7vw, 23px); color: rgba(232, 238, 251, .62); max-width: 40em; }
html[data-lang="zh"] .post-sub { font-style: normal; font-family: var(--f-body); }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.authors { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14.5px; color: rgba(232, 238, 251, .8); }
.authors span { display: inline-flex; gap: 6px; align-items: baseline; }
.authors sup { color: var(--gold); font-family: var(--f-mono); font-size: 10px; }
.authors .ahstu { color: var(--gold-2); }
.affils { margin-top: 14px; font-size: 13px; color: rgba(232, 238, 251, .5); line-height: 1.9; }
.affils sup { color: var(--gold); font-family: var(--f-mono); margin-right: 4px; }
.post-banner { position: relative; margin-top: clamp(50px, 7vw, 90px); height: clamp(220px, 32vw, 420px); border-radius: 28px 28px 0 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); border-bottom: 0; }
.post-banner canvas { width: 100%; height: 100%; }
.post-banner__cap { position: absolute; right: 20px; bottom: 16px; font-family: var(--f-mono); font-size: 11px; color: rgba(255, 255, 255, .6); letter-spacing: .06em; background: rgba(5, 12, 29, .55); padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(8px); }

.article { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); padding-block: clamp(60px, 8vw, 110px); }
.article > * { min-width: 0; }
.toc { position: sticky; top: 100px; align-self: start; font-size: 14px; }
.toc h4 { font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); margin: 0 0 16px; font-weight: 500; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 18px; margin-left: -1px; border-left: 2px solid transparent; color: var(--text-3); transition: color .3s, border-color .3s; line-height: 1.45; }
.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--azure); border-left-color: var(--azure); font-weight: 600; }
.toc .progress { height: 2px; background: var(--line); border-radius: 2px; margin-top: 26px; overflow: hidden; }
.toc .progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--azure), var(--gold)); }

.prose { max-width: 760px; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 3vw, 40px); line-height: 1.15; letter-spacing: -.015em; margin: 2.4em 0 .2em; scroll-margin-top: 100px; display: flex; gap: 18px; align-items: baseline; }
.prose h2 .n { font-family: var(--f-mono); font-size: 13px; color: var(--azure); letter-spacing: .1em; flex: none; transform: translateY(-4px); }
html[data-lang="zh"] .prose h2 { font-weight: 700; font-size: clamp(25px, 2.6vw, 34px); line-height: 1.4; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--f-display); font-size: 22px; font-weight: 500; margin: 2em 0 .2em; }
html[data-lang="zh"] .prose h3 { font-weight: 700; font-size: 20px; }
.prose p { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.3em; } .prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--azure); }
.prose strong { color: var(--text); font-weight: 650; }
.prose a { color: var(--azure); border-bottom: 1px solid rgba(0, 90, 168, .3); transition: border-color .3s; }
.prose a:hover { border-color: var(--azure); }
.prose a.btn { border-bottom: 0; }
.prose a.btn--ink { color: #fff; }
.prose a.link-arrow { border-bottom: 1px solid currentColor; }
.prose code, .word { font-family: var(--f-mono); font-size: .88em; background: rgba(0, 90, 168, .07); padding: .1em .4em; border-radius: 6px; color: var(--navy); }
.prose math { font-size: 1.08em; }
.prose .eq { margin: 1.8em 0; padding: 22px 26px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); overflow-x: auto; text-align: center; }
.prose .eq math { font-size: 1.25em; }
.prose .eq .eq-cap { display: block; margin-top: 10px; font-size: 13px; color: var(--text-3); font-family: var(--f-mono); }

.tldr { position: relative; padding: 30px 34px; border-radius: 22px; background: linear-gradient(135deg, #fff9ea, #fffdf8 60%); border: 1px solid rgba(242, 198, 109, .5); box-shadow: 0 24px 50px -36px rgba(160, 110, 20, .5); }
.tldr__k { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: #a26b12; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.tldr__k::before { content: "✦"; font-size: 14px; }
.tldr p { font-family: var(--f-display); font-size: clamp(20px, 1.9vw, 25px); line-height: 1.45; margin: 0; color: var(--text); }
html[data-lang="zh"] .tldr p { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.85; font-weight: 500; }

.callout { padding: 22px 26px; border-left: 3px solid var(--azure); background: rgba(0, 90, 168, .05); border-radius: 0 14px 14px 0; font-size: 15.5px; }
.callout b { color: var(--azure); }

.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--card); }
.kv div { padding: 22px 22px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.kv b { display: block; font-family: var(--f-display); font-weight: 300; font-size: clamp(28px, 2.6vw, 38px); line-height: 1; letter-spacing: -.02em; color: var(--azure); white-space: nowrap; }
.kv span { display: block; margin-top: 10px; font-size: 13.5px; color: var(--text-2); line-height: 1.5; }

.table-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); background: var(--card); }
table.t { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
table.t th, table.t td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t thead th { font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); background: rgba(19, 33, 59, .03); }
table.t tbody tr:last-child td { border-bottom: 0; }
table.t td.q { color: #9a5b00; font-weight: 600; background: rgba(242, 198, 109, .12); }
table.t caption { caption-side: bottom; text-align: left; padding: 14px 18px; font-size: 13px; color: var(--text-3); border-top: 1px solid var(--line); }

.words { display: grid; gap: 8px; font-family: var(--f-mono); font-size: 15px; padding: 24px 26px; border-radius: 18px; background: var(--night); color: #dbe6fb; overflow-x: auto; }
.words div { display: grid; grid-template-columns: 60px auto; gap: 16px; align-items: center; white-space: nowrap; }
.words b { color: var(--gold-2); font-weight: 500; font-style: italic; font-family: var(--f-display); font-size: 18px; }
.words .d { display: inline-block; width: 1.25em; text-align: center; border-radius: 4px; }
.v0 { color: #1a1305; background: var(--gold); }
.v1 { background: #1d3f73; } .v2 { background: #2f6db5; } .v3 { background: #5fa0e6; color: #071226; } .v4 { background: #cfe5ff; color: #071226; }

.refs { font-size: 14px; color: var(--text-2); padding-left: 1.4em; }
.refs li { margin-top: .6em; }

/* ---------- interactive panels ---------- */
.lab {
  margin: 2.4em 0; border-radius: 26px; overflow: hidden;
  background: radial-gradient(120% 100% at 100% 0%, #10275a, var(--ink) 70%);
  color: #e8eefb; border: 1px solid rgba(19, 33, 59, .3);
  box-shadow: 0 40px 80px -40px rgba(8, 20, 48, .6);
}
.prose .lab { max-width: none; }
.lab__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px 26px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.lab__title { display: flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.lab__title i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; }
.lab__controls { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; padding: 20px 26px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 14px; }
.lab__body { padding: 22px 26px 26px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.seg button { padding: 6px 14px; border-radius: 999px; font-size: 13px; color: rgba(255, 255, 255, .7); transition: background .3s, color .3s; }
.seg button.is-on { background: #fff; color: var(--ink); font-weight: 600; }
.range { display: inline-flex; align-items: center; gap: 12px; }
.range label { color: rgba(255, 255, 255, .7); }
.range output { font-family: var(--f-mono); color: var(--gold-2); min-width: 3.4em; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 160px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .15); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(242, 198, 109, .2); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--gold); cursor: pointer; }
.lab .btn-sm { padding: 7px 14px; border-radius: 999px; font-size: 13px; border: 1px solid rgba(255, 255, 255, .2); color: #fff; transition: background .3s; }
.lab .btn-sm:hover { background: rgba(255, 255, 255, .1); }
.lab canvas.plot { width: 100%; border-radius: 12px; }
.lab__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, .08); border-top: 1px solid rgba(255, 255, 255, .08); }
.lab__stats > div { background: rgba(5, 12, 29, .6); padding: 16px 20px; }
.lab__stats small { display: block; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.lab__stats b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 26px; color: #fff; margin-top: 4px; }
.lab__stats em { display: block; font-style: normal; font-size: 12px; margin-top: 2px; color: rgba(255, 255, 255, .5); font-family: var(--f-mono); }
.lab__stats em.ok { color: #4ade80; }
.lab__legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: 12.5px; color: rgba(255, 255, 255, .6); font-family: var(--f-mono); }
.lab__legend span { display: inline-flex; align-items: center; gap: 6px; }
.lab__legend i { width: 12px; height: 12px; border-radius: 3px; }
.lab__note { font-size: 13px; color: rgba(255, 255, 255, .5); margin-top: 12px; }
.tip { position: fixed; z-index: 200; pointer-events: none; padding: 7px 11px; border-radius: 8px; background: rgba(5, 12, 29, .92); border: 1px solid rgba(255, 255, 255, .15); color: #fff; font-family: var(--f-mono); font-size: 12px; transform: translate(-50%, calc(-100% - 12px)); opacity: 0; transition: opacity .15s; white-space: nowrap; }
.tip.show { opacity: 1; }

.matrix { display: grid; grid-template-columns: auto 1fr 1fr; gap: 10px; font-size: 14px; }
.matrix .h { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); display: flex; align-items: center; justify-content: center; text-align: center; padding: 6px; }
.matrix .h--row { justify-content: flex-end; text-align: right; padding-right: 10px; }
.matrix .cell { padding: 20px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.matrix .cell.match { background: linear-gradient(140deg, rgba(0, 90, 168, .1), rgba(0, 90, 168, .03)); border-color: rgba(0, 90, 168, .25); }
.matrix .cell.mis { background: repeating-linear-gradient(135deg, rgba(242, 198, 109, .12) 0 8px, rgba(242, 198, 109, .04) 8px 16px); border-color: rgba(242, 198, 109, .5); }
.matrix .cell b { font-family: var(--f-display); font-size: 26px; font-weight: 500; display: block; }
.matrix .cell small { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-top: 2px; }
.matrix .cell .r { margin-top: 12px; font-size: 13.5px; color: var(--text-2); }
.matrix .cell .r strong { font-family: var(--f-mono); }

.chart { margin: 2em 0; padding: 26px 26px 18px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart__cap { font-size: 13px; color: var(--text-3); margin-top: 10px; }
.chart .axis line, .chart .axis path { stroke: rgba(19, 33, 59, .18); }
.chart .axis text { font-family: var(--f-mono); font-size: 11px; fill: var(--text-3); }
.chart .grid line { stroke: rgba(19, 33, 59, .07); }
.bars { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; font-size: 14px; }
.bar-row > span { color: var(--text-2); text-align: right; }
.bar { display: flex; height: 34px; border-radius: 10px; overflow: hidden; background: rgba(19, 33, 59, .05); }
.bar i { display: flex; align-items: center; justify-content: center; font-style: normal; font-family: var(--f-mono); font-size: 12px; color: #fff; width: 0; transition: width 1.6s var(--ease-out); white-space: nowrap; overflow: hidden; }
.chart.in .bar i { width: var(--w); }
.c-mr { background: linear-gradient(90deg, #0b4c92, var(--azure)); } .c-dtw { background: linear-gradient(90deg, #c88a24, var(--gold)); color: #1a1305 !important; } .c-rf { background: linear-gradient(90deg, #6a5ad8, var(--violet)); }

.next-post { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 34px 0; border-top: 1px solid var(--line); margin-top: 60px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .process { grid-template-columns: repeat(2, 1fr); }
  .fields { grid-template-columns: 1fr 1fr; }
  .field--open { grid-column: 1 / -1; min-height: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .article { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 900px) {
  :root { --nav-h: 68px; }
  .nav__links { display: none; }
  .burger { display: block; }
  .hero__inner { grid-template-columns: 1fr; text-align: left; padding-top: calc(var(--nav-h) + 10px); }
  .hero-art { order: -1; width: min(78vw, 420px); margin-bottom: -10px; }
  .scroll-cue { display: none; }
  .sec-head { grid-template-columns: 1fr; gap: 16px; }
  .sec-idx { max-width: 120px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 30px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .paper-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .join { grid-template-columns: 1fr; }
  .entry { grid-template-columns: 1fr; }
  .entry__cover { min-height: 240px; }
  .lab__stats { grid-template-columns: 1fr 1fr; }
  .constellation__legend { position: static; padding: 0 22px 22px; }
  .constellation__title { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .process, .fields { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .nav__brand { height: 34px; }
  .lang button { padding: 4px 9px; min-width: 38px; }
  .btn { height: 50px; padding: 0 22px; }
  .matrix { grid-template-columns: 1fr 1fr; }
  .matrix .h--row, .matrix .h--corner { display: none; }
  .bar-row { grid-template-columns: 1fr; gap: 6px; }
  .bar-row > span { text-align: left; }
  .constellation { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .constellation svg { min-width: 760px; }
  .constellation__legend { position: sticky; left: 0; }
}

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

/* ==========================================================================
   v2 — single-scroll recruitment page additions
   ========================================================================== */
.nav__links a.nav__site { border: 1px solid rgba(255, 255, 255, .22); margin-left: 8px; }
.nav.is-solid .nav__links a.nav__site { border-color: var(--line); }

/* top progress bar */
.progress-top { position: fixed; z-index: 120; inset: 0 0 auto 0; height: 2px; pointer-events: none; }
.progress-top i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--azure), var(--gold), var(--ember)); box-shadow: 0 0 10px rgba(242, 198, 109, .6); }

/* section dots */
.dots { position: fixed; z-index: 80; right: 22px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 14px; }
.dots a { position: relative; display: block; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid currentColor; color: rgba(255, 255, 255, .55); transition: color .4s, transform .4s var(--ease-out), background .4s; }
.dots a span { position: absolute; right: 22px; top: 50%; transform: translate(6px, -50%); opacity: 0; white-space: nowrap; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; padding: 4px 10px; border-radius: 999px; background: rgba(5, 12, 29, .82); color: #fff; pointer-events: none; transition: opacity .3s, transform .3s var(--ease-out); }
.dots a:hover span, .dots a.is-active span { opacity: 1; transform: translate(0, -50%); }
.dots a.is-active { background: var(--gold); color: var(--gold); transform: scale(1.25); }
.dots.on-light a { color: rgba(19, 33, 59, .4); }
.dots.on-light a.is-active { color: var(--azure); background: var(--azure); }
.dots.on-light a span { background: var(--night); }
@media (max-width: 900px) { .dots { display: none; } }

/* research chapters (inside the dark band) */
.chapter { position: relative; padding: clamp(36px, 5vw, 64px) 0; border-top: 1px solid var(--line-dark); }
.chapter + .chapter { margin-top: clamp(20px, 3vw, 40px); }
.chapter__head { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; margin-bottom: clamp(30px, 4vw, 48px); }
.chapter__no { font-family: var(--f-display); font-style: italic; font-weight: 300; font-size: clamp(70px, 9vw, 130px); line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(242, 198, 109, .65); }
.chapter__title { font-family: var(--f-display); font-weight: 400; color: #fff; font-size: clamp(26px, 3vw, 42px); line-height: 1.14; letter-spacing: -.015em; margin: 0 0 18px; max-width: 24em; }
html[data-lang="zh"] .chapter__title { font-weight: 700; line-height: 1.4; letter-spacing: .01em; }
.chapter__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.chapter__authors { font-size: 13.5px; color: rgba(232, 238, 251, .6); }
.chapter__authors b { color: var(--gold-2); font-weight: 600; }
.chapter__grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.chapter--flip .chapter__grid { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); }
.chapter--flip .chapter__text { order: 2; }
.chapter .lab { margin: 0; }
.chapter__lede { font-family: var(--f-display); font-size: clamp(19px, 1.6vw, 23px); line-height: 1.55; color: rgba(232, 238, 251, .86); margin: 0 0 28px; }
html[data-lang="zh"] .chapter__lede { font-family: var(--f-body); font-size: 17.5px; line-height: 1.95; }
.chapter__lede em { color: var(--gold-2); font-style: italic; }
html[data-lang="zh"] .chapter__lede em { font-style: normal; font-weight: 700; }
.chapter__note { font-size: 14px; color: rgba(232, 238, 251, .55); margin: 22px 0 0; }
.chapter__links { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 30px; }
.chapter__links .link-arrow { color: #fff; border-color: rgba(255, 255, 255, .3); }
.chapter__links .link-arrow:hover { border-color: var(--gold); color: var(--gold-2); }

.mini-table { border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; overflow: hidden; font-size: 14px; background: rgba(255, 255, 255, .03); }
.mt-row { display: grid; grid-template-columns: 64px 1fr 1fr; }
.mt-row span { padding: 12px 14px; border-top: 1px solid rgba(255, 255, 255, .08); color: rgba(232, 238, 251, .85); }
.mt-row span + span { border-left: 1px solid rgba(255, 255, 255, .08); }
.mt-head span { border-top: 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; color: rgba(232, 238, 251, .5); }
.mt-row span:first-child { font-family: var(--f-mono); color: var(--gold); }
.mt-row .q { color: var(--gold-2); background: rgba(242, 198, 109, .08); font-weight: 600; }

.kv-dark { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; overflow: hidden; }
.kv-dark div { padding: 22px 22px 18px; border-right: 1px solid rgba(255, 255, 255, .08); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.kv-dark div:nth-child(2n) { border-right: 0; } .kv-dark div:nth-child(n+3) { border-bottom: 0; }
.kv-dark b { display: block; font-family: var(--f-display); font-weight: 300; font-size: clamp(34px, 3.4vw, 48px); line-height: 1; color: #fff; letter-spacing: -.02em; }
.kv-dark b small { font-size: .45em; color: rgba(232, 238, 251, .5); }
.kv-dark span { display: block; margin-top: 10px; font-size: 13.5px; color: rgba(232, 238, 251, .6); }

.dark .chart { background: rgba(255, 255, 255, .035); border-color: rgba(255, 255, 255, .1); margin-top: clamp(30px, 4vw, 50px); }
.dark .chart .axis line, .dark .chart .axis path { stroke: rgba(255, 255, 255, .2); }
.dark .chart .axis text { fill: rgba(232, 238, 251, .55); }
.dark .chart .grid line { stroke: rgba(255, 255, 255, .07); }
.dark .chart__cap { color: rgba(232, 238, 251, .5); }

/* light footer with the original logo */
.footer--light { background: var(--paper); color: var(--text-2); border-top: 1px solid var(--line); }
.footer--light .footer__giant { -webkit-text-stroke: 1px rgba(0, 90, 168, .2); }
.footer--light h4 { color: var(--azure); }
.footer--light a:hover { color: var(--text); }
.footer--light .footer__bottom { border-color: var(--line); color: var(--text-3); }
.footer--light .footer__brand img { height: 78px; }

@media (max-width: 1080px) {
  .chapter__grid, .chapter--flip .chapter__grid { grid-template-columns: minmax(0, 1fr); }
  .chapter--flip .chapter__text { order: 0; }
}
@media (max-width: 620px) {
  .chapter__head { grid-template-columns: 1fr; gap: 10px; }
  .chapter__no { font-size: 64px; }
}
