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

html {
  background: var(--bg-primary);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: var(--text-high);
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(circle at 88% 8%, rgba(255, 107, 0, 0.08), transparent 28%),
    radial-gradient(circle at 8% 92%, rgba(198, 255, 0, 0.05), transparent 24%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--text-high);
  font-family: var(--font-body);
  font-weight: 800;
  line-height: 1.2;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); }
h4 { font-size: clamp(1.05rem, 1.8vw, 1.25rem); }

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent-lime);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

ul, ol, dl, dd {
  margin: 0;
  padding: 0;
}

ul[class], ol[class] {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

blockquote {
  margin: 2rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--accent-orange);
  background: var(--bg-card);
  color: var(--text-high);
}

::selection {
  background: var(--accent-lime);
  color: var(--bg-primary);
}

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

#main-content {
  scroll-margin-top: 2rem;
}

/* ===== Variables ===== */
:root {
  --bg-primary: #0B1B3A;
  --bg-card: #12254E;
  --bg-deep: #071129;
  --bg-light: #F2F5FA;
  --text-high: #FFFFFF;
  --text-muted: #A0B3D6;
  --accent-lime: #C6FF00;
  --accent-orange: #FF6B00;
  --border: #2A3F66;
  --success: #00D68F;
  --warning: #FFB300;
  --font-display: Impact, 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --font-body: Inter, 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'Roboto Mono', 'Courier New', Consolas, monospace;
  --container: 1280px;
  --shadow-hard: 6px 6px 0 rgba(0, 0, 0, 0.35);
}

/* ===== Container & Layout ===== */
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.main-wrap {
  min-height: 70vh;
  background-color: var(--bg-primary);
}

.content-shell {
  padding: 2.5rem 0 4rem;
}

.section {
  padding: 3rem 0;
}

.section--tight {
  padding: 1.5rem 0;
}

.section--loose {
  padding: 5rem 0;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.divider {
  height: 2px;
  border: 0;
  margin: 2.5rem 0;
  background: linear-gradient(90deg, var(--accent-lime), transparent 72%);
}

/* ===== Typography Utilities ===== */
.display {
  font-family: var(--font-display);
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.mono {
  font-family: var(--font-mono);
}

.text-muted { color: var(--text-muted); }
.text-lime { color: var(--accent-lime); }
.text-orange { color: var(--accent-orange); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-orange);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 2.5rem 0 1.5rem;
  font-family: var(--font-display);
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--text-high);
}

.section-heading::before {
  content: "";
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  background: var(--accent-orange);
  transform: rotate(45deg);
}

.section-heading::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75em 1.4em;
  border: 2px solid transparent;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, background 0.15s ease-out;
}

.btn:hover {
  text-decoration: none;
}

.btn-lime {
  background: var(--accent-lime);
  color: var(--bg-primary);
  box-shadow: var(--shadow-hard);
}

.btn-lime:hover {
  background: #d9ff4d;
  color: var(--bg-primary);
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.4);
}

.btn-orange {
  background: var(--accent-orange);
  color: var(--bg-primary);
  box-shadow: var(--shadow-hard);
}

.btn-orange:hover {
  background: #ff7d22;
  color: var(--bg-primary);
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.4);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-high);
}

.btn-ghost:hover {
  border-color: var(--accent-lime);
  color: var(--accent-lime);
}

/* ===== Tags ===== */
.tag {
  display: inline-block;
  padding: 0.2em 0.7em;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(198, 255, 0, 0.08);
  border: 1px solid rgba(198, 255, 0, 0.4);
  color: var(--accent-lime);
}

.tag--lime {
  background: rgba(198, 255, 0, 0.08);
  border-color: rgba(198, 255, 0, 0.4);
  color: var(--accent-lime);
}

.tag--orange {
  background: rgba(255, 107, 0, 0.12);
  border-color: rgba(255, 107, 0, 0.5);
  color: var(--accent-orange);
}

/* ===== Cards ===== */
.card {
  position: relative;
  padding: 1.25rem 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent-lime);
  border-radius: 4px;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.25);
}

.card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 34px;
  height: 4px;
  background: var(--accent-orange);
}

.card--orange {
  border-top-color: var(--accent-orange);
}

.card__title {
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-high);
}

.card__meta {
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.card__desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--accent-lime);
}

.breadcrumb-sep {
  color: var(--accent-orange);
}

/* ===== Scroll Progress ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1080;
  width: 100%;
  height: 4px;
  background: rgba(198, 255, 0, 0.08);
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-lime), var(--accent-orange));
}

/* ===== Skip Link ===== */
.skip-link {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 1100;
  padding: 0.75em 1.5em;
  background: var(--accent-lime);
  color: var(--bg-primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 0 0 6px 0;
}

.skip-link:focus {
  left: 0;
  text-decoration: none;
}

/* ===== Header ===== */
.site-header {
  position: relative;
  background-color: var(--bg-primary);
  background-image:
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(198, 255, 0, 0.025) 14px 28px);
  border-bottom: 4px solid var(--accent-lime);
}

.site-header::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-lime) 0 62%, var(--accent-orange) 62% 100%);
}

/* Topbar */
.site-topbar {
  background: rgba(6, 15, 34, 0.85);
  border-bottom: 1px solid var(--border);
}

.topbar-grid {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 2.6rem;
}

.topbar-live {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.topbar-live:hover {
  color: var(--accent-lime);
  text-decoration: none;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-orange);
  animation: live-pulse 1.6s ease-out infinite;
}

@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.35); }
  50% { box-shadow: 0 0 0 7px rgba(255, 107, 0, 0.06); }
}

.live-text {
  white-space: nowrap;
}

.topbar-icp {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.favorites-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25em 0.8em;
  background: rgba(198, 255, 0, 0.08);
  border: 1px solid rgba(198, 255, 0, 0.35);
  border-radius: 3px;
  color: var(--accent-lime);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.favorites-link:hover {
  background: rgba(198, 255, 0, 0.16);
  color: var(--accent-lime);
  text-decoration: none;
}

.favorites-star {
  font-size: 0.9rem;
  line-height: 1;
}

.favorites-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.4em;
  height: 1.4em;
  padding: 0 0.35em;
  background: var(--accent-lime);
  color: var(--bg-primary);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
}

/* Masthead */
.masthead {
  position: relative;
  padding: 2.75rem 0 2.4rem;
  overflow: hidden;
}

.masthead::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  border-top: 3px solid var(--accent-lime);
  border-left: 3px solid var(--accent-lime);
  opacity: 0.7;
}

.masthead::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 26px;
  height: 26px;
  border-right: 3px solid var(--accent-orange);
  border-bottom: 3px solid var(--accent-orange);
  opacity: 0.7;
}

.masthead-inner {
  max-width: 52rem;
  margin-inline: auto;
  text-align: center;
}

.brand-lockup {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 0.75rem;
}

.brand-lockup:hover {
  text-decoration: none;
}

.brand-lockup:hover .brand-latin {
  color: #d9ff4d;
}

.brand-cn {
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 800;
  line-height: 0.9;
  color: var(--text-high);
  letter-spacing: 0.02em;
}

.brand-latin {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  line-height: 0.9;
  color: var(--accent-lime);
  text-shadow: 3px 3px 0 rgba(198, 255, 0, 0.2), 7px 7px 0 rgba(6, 15, 34, 0.55);
}

.brand-version {
  padding: 0.28em 0.8em;
  background: var(--accent-orange);
  color: var(--bg-primary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: skewX(-8deg);
}

.masthead-slogan {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: clamp(0.8rem, 1.4vw, 1rem);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.masthead-slogan::before,
.masthead-slogan::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent-orange);
}

.masthead-rule {
  display: block;
  width: 168px;
  height: 4px;
  margin: 1rem auto 0;
  background: linear-gradient(90deg, var(--accent-lime) 0 62%, var(--accent-orange) 62% 100%);
  transform: skewX(-18deg);
}

/* Navigation */
.nav-shell {
  position: relative;
  background: rgba(6, 15, 34, 0.55);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  position: relative;
}

.nav-toggle {
  display: none;
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.95rem 0.85rem;
  position: relative;
  border-radius: 2px;
  color: var(--text-high);
  font-size: 0.97rem;
  font-weight: 600;
}

.nav-link:hover {
  color: var(--accent-lime);
  text-decoration: none;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.4rem;
  height: 2px;
  background: var(--accent-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease-out;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  background: var(--accent-lime);
  color: var(--bg-primary);
}

.nav-link[aria-current="page"] .nav-index {
  color: var(--bg-primary);
}

.nav-link[aria-current="page"]::after {
  display: none;
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-orange);
}

.nav-name {
  display: inline-block;
  line-height: 1.2;
}

/* ===== Footer ===== */
.site-footer {
  position: relative;
  background-color: var(--bg-deep);
  background-image:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(255, 107, 0, 0.025) 14px 28px),
    radial-gradient(circle at 90% 0%, rgba(198, 255, 0, 0.05), transparent 30%);
}

.site-footer::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg, var(--accent-orange) 0 42%, var(--accent-lime) 42% 100%);
}

.footer-top {
  padding: 3rem 0 3.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr 1.35fr;
  gap: 2.5rem 2rem;
}

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

.footer-lockup {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
}

.footer-lockup:hover {
  text-decoration: none;
}

.footer-brand-cn {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-high);
}

.footer-brand-latin {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.7rem;
  color: var(--accent-lime);
}

.footer-version-mark {
  padding: 0.2em 0.6em;
  background: var(--accent-orange);
  color: var(--bg-primary);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  transform: skewX(-8deg);
}

.footer-slogan {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-lime);
  text-transform: uppercase;
}

.footer-desc {
  max-width: 23rem;
  margin: 0.75rem 0 1rem;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.footer-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.trust-badge {
  padding: 0.25em 0.7em;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--success);
  background: rgba(0, 214, 143, 0.06);
  border: 1px solid rgba(0, 214, 143, 0.35);
}

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

.footer-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-high);
}

.footer-heading-index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-orange);
}

.footer-list li + li {
  margin-top: 0.55rem;
}

.footer-link {
  display: inline-block;
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.15s ease-out, padding-left 0.15s ease-out;
}

.footer-link:hover {
  padding-left: 4px;
  color: var(--accent-lime);
  text-decoration: none;
}

.footer-link--arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  color: var(--accent-lime);
  font-weight: 600;
}

.footer-link--arrow::after {
  content: "→";
  font-family: var(--font-mono);
  color: var(--accent-orange);
}

.footer-note {
  margin-top: 1rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--accent-orange);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.footer-contact {
  display: block;
}

.contact-row {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border);
}

.contact-label {
  flex: 0 0 auto;
  min-width: 2.5em;
  padding-top: 0.1em;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-orange);
}

.contact-value {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-high);
  word-break: break-word;
}

.footer-bottom {
  background: rgba(6, 15, 34, 0.65);
  border-top: 1px solid var(--border);
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 1.25rem 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

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

/* Back to Top */
.back-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 990;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  background: var(--bg-card);
  color: var(--accent-lime);
  border: 2px solid var(--accent-lime);
  cursor: pointer;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease-out, transform 0.25s ease-out, background 0.15s ease-out;
}

.back-top[data-visible] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.back-top:hover {
  background: var(--accent-lime);
  color: var(--bg-primary);
}

.back-top-arrow {
  font-size: 1.25rem;
  font-weight: 700;
}

/* ===== Figure ===== */
.figure {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background-color: var(--bg-card);
  background-image:
    repeating-linear-gradient(45deg, rgba(198, 255, 0, 0.04) 0 10px, transparent 10px 20px);
  border: 2px solid var(--border);
  overflow: hidden;
}

.figure::before {
  content: "◉ 图片区";
  padding: 0.4em 0.9em;
  background: rgba(11, 27, 58, 0.72);
  border-left: 3px solid var(--accent-orange);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.figure[data-caption]::before {
  content: attr(data-caption);
}

.figure--wide {
  aspect-ratio: 16 / 7;
}

.figure--square {
  aspect-ratio: 1 / 1;
}

/* ===== Table ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table caption {
  padding: 0.5rem 0;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.data-table th {
  padding: 0.6rem 0.75rem;
  border-bottom: 2px solid var(--border);
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.data-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-high);
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  padding-left: 2.2rem;
}

.timeline-item {
  position: relative;
  padding: 0 0 2.5rem 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.2rem;
  top: 0.45rem;
  width: 12px;
  height: 12px;
  background: var(--bg-primary);
  border: 3px solid var(--accent-orange);
  transform: rotate(45deg);
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: -1.72rem;
  top: 1.9rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--border), transparent);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item:last-child::after {
  display: none;
}

.timeline-date {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-orange);
}

/* ===== Prose ===== */
.prose-list {
  padding-left: 1.25rem;
  list-style: square;
  color: var(--text-muted);
}

.prose-list li + li {
  margin-top: 0.5rem;
}

.prose-list li::marker {
  color: var(--accent-orange);
}

/* ===== Reveal ===== */
html[data-reveal-system] [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

html[data-reveal-system] [data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .nav-inner {
    justify-content: flex-start;
    flex-wrap: wrap;
    padding: 0.5rem 0 0.25rem;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1.1rem;
    background: rgba(198, 255, 0, 0.06);
    border: 1px solid var(--border);
    color: var(--text-high);
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

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

  .nav-toggle-line {
    display: block;
    width: 18px;
    height: 2px;
    margin-top: 4px;
    background: var(--accent-lime);
  }

  .nav-toggle-line:first-child {
    margin-top: 0;
  }

  .primary-nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
  }

  .primary-nav[data-open] {
    display: flex;
  }

  .nav-link {
    width: 100%;
    gap: 0.65rem;
    padding: 0.8rem 0.75rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link[aria-current="page"] {
    background: var(--accent-lime);
    color: var(--bg-primary);
  }

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

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

@media (max-width: 640px) {
  .topbar-grid {
    gap: 0.75rem;
  }

  .topbar-icp {
    display: none;
  }

  .live-text {
    display: none;
  }

  .masthead {
    padding: 2rem 0 1.75rem;
  }

  .masthead-slogan::before,
  .masthead-slogan::after {
    width: 14px;
  }

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

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .back-top {
    right: 1rem;
    bottom: 1rem;
  }
}

/* ===== Reduced Motion ===== */
@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;
  }

  .live-dot {
    animation: none;
  }

  html[data-reveal-system] [data-reveal],
  html[data-reveal-system] [data-reveal][data-revealed] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .back-top {
    transition: none;
  }
}
