:root {
  --ink: #0E1B3D;
  --night: #08122A;
  --haze: #1B2C55;
  --paper: #F2EDE4;
  --cyan: #2EE6D6;
  --orange: #FF7A29;
  --wine: #8E1F2E;
  --stone: #8C97A8;
  --moss: #3F7A63;
  --clay: #C08A63;
  --font-display: "Arial Black", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "IBM Plex Mono", Consolas, "Liberation Mono", monospace;
  --radius-lg: 32px;
  --radius-pill: 999px;
  --shadow-lift: 0 24px 60px rgba(0, 0, 0, 0.28);
  --measure: 38rem;
  --page-pad: clamp(18px, 4vw, 48px);
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw, 17px);
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-body);
}

img,
picture,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  color: var(--paper);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.96;
  text-wrap: balance;
  transform: skewX(-8deg);
  transform-origin: left center;
}

h1 {
  font-size: clamp(3rem, 9vw, 6.8rem);
}

h2 {
  font-size: clamp(2rem, 4.6vw, 4rem);
}

h3 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

h4 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--paper);
}

strong,
b {
  font-weight: 800;
}

small {
  font-size: 0.78em;
}

ul,
ol {
  margin-top: 0;
  margin-bottom: 1em;
  padding-left: 1.2em;
}

::selection {
  background: var(--cyan);
  color: var(--night);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.site-header :focus-visible,
.site-footer :focus-visible {
  outline-offset: 3px;
}

.content-shell,
.footer-shell {
  width: min(100%, 1320px);
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

.header-shell {
  position: relative;
  z-index: 2;
  width: min(100%, 1440px);
  margin-inline: auto;
  padding: clamp(14px, 2vw, 24px) clamp(18px, 4vw, 60px) 0;
}

.page-main {
  display: block;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(20px, 3vw, 36px);
  color: var(--stone);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  line-height: 1.5;
}

.breadcrumb a {
  color: var(--cyan);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--paper);
  text-decoration: underline;
}

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

.prose {
  max-width: var(--measure);
  color: rgba(242, 237, 228, 0.88);
  font-size: 1rem;
  line-height: 1.78;
}

.prose p + p {
  margin-top: 1.5em;
}

.prose h2,
.prose h3 {
  margin-top: 1.4em;
}

.prose :last-child {
  margin-bottom: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}

.index-number {
  display: inline-block;
  color: var(--stone);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.data-figure {
  display: block;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}

.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(242, 237, 228, 0.12);
  border-radius: clamp(20px, 3vw, 36px);
  background:
    linear-gradient(135deg, var(--haze) 0%, var(--night) 58%, #10234A 100%);
  aspect-ratio: 16 / 9;
  isolation: isolate;
}

.media-frame::before {
  content: "";
  position: absolute;
  right: -15%;
  bottom: -35%;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    repeating-radial-gradient(
      circle,
      transparent 0 18px,
      rgba(46, 230, 214, 0.14) 19px 20px,
      transparent 21px 40px
    );
  opacity: 0.75;
  pointer-events: none;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 2;
  border: 1px solid rgba(255, 122, 41, 0.24);
  border-radius: inherit;
  pointer-events: none;
}

.media-frame img,
.media-frame picture,
.media-frame video,
.media-frame canvas {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame-wide {
  aspect-ratio: 21 / 9;
}

.media-frame-tall {
  aspect-ratio: 3 / 4;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.button-primary {
  background: var(--orange);
  color: var(--night);
  box-shadow: 0 12px 30px rgba(255, 122, 41, 0.22);
}

.button-primary:hover {
  background: var(--cyan);
  color: var(--night);
  transform: translateY(-2px);
}

.button-ghost {
  background: transparent;
  border-color: rgba(242, 237, 228, 0.32);
  color: var(--paper);
}

.button-ghost:hover {
  background: rgba(46, 230, 214, 0.08);
  border-color: var(--cyan);
  color: var(--cyan);
}

.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 999;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: var(--cyan);
  color: var(--night);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 16px;
  color: var(--night);
}

.site-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid rgba(242, 237, 228, 0.12);
  background:
    radial-gradient(circle at 10% 120%, rgba(46, 230, 214, 0.16), transparent 34%),
    radial-gradient(circle at 90% -20%, rgba(255, 122, 41, 0.18), transparent 32%),
    linear-gradient(180deg, var(--ink) 0%, var(--night) 100%);
  color: var(--paper);
}

.site-header::before {
  content: "";
  position: absolute;
  top: -260px;
  right: -140px;
  width: min(760px, 68vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    repeating-radial-gradient(
      circle,
      transparent 0 24px,
      rgba(140, 151, 168, 0.11) 25px 26px,
      transparent 27px 52px
    );
  pointer-events: none;
  z-index: 0;
}

.site-header::after {
  content: "";
  position: absolute;
  left: -12%;
  bottom: -80px;
  width: 44%;
  height: 180px;
  background: linear-gradient(90deg, rgba(46, 230, 214, 0.09), transparent);
  transform: skewX(-8deg);
  pointer-events: none;
  z-index: 0;
}

.header-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.header-edition {
  justify-self: start;
  margin: 0;
  color: var(--stone);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.brand-lockup {
  display: grid;
  gap: 6px;
  justify-items: center;
  color: var(--paper);
  text-decoration: none;
}

.brand-lockup:hover {
  color: var(--paper);
}

.brand-kicker {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-transform: uppercase;
}

.brand-word {
  display: inline-block;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6.4vw, 5rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.88;
  transform: skewX(-8deg);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  justify-self: end;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(242, 237, 228, 0.24);
  border-radius: var(--radius-pill);
  background: rgba(27, 44, 85, 0.72);
  color: var(--paper);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.nav-toggle-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-toggle-glyph {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 14px;
}

.nav-toggle-glyph::before,
.nav-toggle-glyph::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: top 0.2s ease, bottom 0.2s ease, transform 0.2s ease;
}

.nav-toggle-glyph::before {
  top: 2px;
}

.nav-toggle-glyph::after {
  bottom: 2px;
}

.site-header[data-open] .nav-toggle-glyph::before {
  top: 6px;
  transform: rotate(45deg);
}

.site-header[data-open] .nav-toggle-glyph::after {
  bottom: 6px;
  transform: rotate(-45deg);
}

.nav-primary {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: clamp(14px, 2vw, 22px);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.nav-link:hover {
  background: rgba(46, 230, 214, 0.12);
  border-color: rgba(46, 230, 214, 0.2);
  color: var(--cyan);
}

.nav-link[aria-current="page"] {
  background: rgba(46, 230, 214, 0.14);
  border-color: rgba(46, 230, 214, 0.28);
  color: var(--cyan);
}

.nav-link[aria-current="page"]::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 99px;
  background: var(--orange);
}

.header-index {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(12px, 2vw, 18px);
  padding-block: 12px;
  border-top: 1px solid rgba(242, 237, 228, 0.14);
}

.index-line {
  margin: 0;
  color: var(--stone);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.index-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--moss);
  box-shadow:
    0 0 0 4px rgba(63, 122, 99, 0.2),
    0 0 16px rgba(46, 230, 214, 0.6);
  animation: status-pulse 2.6s ease-in-out infinite;
}

@keyframes status-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.72;
    transform: scale(0.82);
  }
}

.header-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 122, 41, 0.42);
  border-radius: var(--radius-pill);
  color: var(--paper);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.header-login:hover {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--night);
}

.login-note {
  color: var(--stone);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.header-login:hover .login-note {
  color: var(--night);
}

.scroll-meter {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 5;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: 0 50%;
  pointer-events: none;
}

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 1px solid rgba(46, 230, 214, 0.18);
  background:
    radial-gradient(circle at 92% 0%, rgba(46, 230, 214, 0.08), transparent 34%),
    linear-gradient(180deg, var(--night) 0%, #061022 100%);
  color: var(--paper);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -340px;
  right: -180px;
  width: min(720px, 64vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    repeating-radial-gradient(
      circle,
      transparent 0 22px,
      rgba(46, 230, 214, 0.09) 23px 24px,
      transparent 25px 48px
    );
  pointer-events: none;
  z-index: 0;
}

.footer-shell {
  position: relative;
  z-index: 1;
  padding-top: clamp(44px, 7vw, 88px);
  padding-bottom: 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: clamp(28px, 5vw, 80px);
  padding-bottom: clamp(32px, 5vw, 52px);
  border-bottom: 1px solid rgba(242, 237, 228, 0.12);
}

.footer-brand {
  align-self: start;
}

.footer-brandline {
  display: inline-block;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.92;
  text-decoration: none;
  transform: skewX(-8deg);
}

.footer-brandline:hover {
  color: var(--cyan);
}

.footer-lede {
  max-width: 30rem;
  margin: 18px 0 22px;
  color: rgba(242, 237, 228, 0.7);
  font-size: 15px;
  line-height: 1.7;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.footer-col {
  min-width: 0;
}

.footer-col-title {
  margin: 0 0 14px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
  transform: none;
}

.footer-links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: rgba(242, 237, 228, 0.72);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-links a:hover {
  color: var(--paper);
  border-bottom-color: var(--orange);
}

.footer-meta {
  margin: 0;
  color: rgba(242, 237, 228, 0.68);
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 24px;
  color: var(--stone);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  line-height: 1.6;
}

.footer-copyright,
.footer-note {
  margin: 0;
}

.footer-note {
  max-width: 38rem;
  text-align: right;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  will-change: auto;
}

@media (max-width: 1080px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .header-shell {
    padding-inline: clamp(16px, 4vw, 28px);
  }

  .header-top {
    grid-template-columns: 1fr auto;
    text-align: left;
  }

  .header-edition {
    display: none;
  }

  .brand-lockup {
    justify-items: start;
    justify-self: start;
  }

  .brand-word {
    font-size: clamp(1.7rem, 7vw, 2.8rem);
  }

  .brand-kicker {
    font-size: 9px;
    letter-spacing: 0.16em;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-primary {
    display: none;
    margin-top: 16px;
    padding: 12px;
    border: 1px solid rgba(46, 230, 214, 0.18);
    border-radius: 28px;
    background: rgba(8, 18, 42, 0.97);
    box-shadow: var(--shadow-lift);
  }

  .site-header[data-open] .nav-primary {
    display: block;
  }

  .nav-list {
    display: grid;
    gap: 4px;
    justify-content: stretch;
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 16px;
  }

  .nav-link[aria-current="page"]::before {
    order: 2;
  }

  .header-index {
    display: grid;
    gap: 10px;
    justify-content: stretch;
    margin-top: 14px;
  }

  .header-login {
    justify-self: start;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-note {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .header-login {
    flex-wrap: wrap;
  }

  .login-note {
    flex-basis: 100%;
  }

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

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

  .footer-bottom {
    display: grid;
    gap: 8px;
  }

  .media-frame-wide {
    aspect-ratio: 4 / 3;
  }
}

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

  .status-dot {
    animation: none;
  }

  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .button:hover,
  .button-primary:hover {
    transform: none;
  }
}
