:root {
  --ink: #0B0C0E;
  --panel: #16181D;
  --gold: #D4AF37;
  --gold-light: #F2D77C;
  --gold-dark: #9A7B1E;
  --cyan: #27E1E8;
  --blue: #2D6CDF;
  --paper: #F4F1EA;
  --muted: #8A8F98;
  --danger: #E5484D;
  --line: rgba(212, 175, 55, 0.25);
  --line-cyan: rgba(39, 225, 232, 0.25);
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, serif;
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  --header-height: 72px;
  --max-width: 1240px;
  --radius: 14px;
  --cut: 18px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  background-attachment: fixed;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  color: var(--paper);
  font-family: var(--font-serif);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.5rem, 7vw, 5.2rem); }
h2 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--ink); }
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  padding: 0.7rem 1rem;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}
.section {
  position: relative;
  padding-block: clamp(3rem, 7vw, 6rem);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border: 1px solid rgba(212, 175, 55, 0.38);
  background: rgba(22, 24, 29, 0.72);
  color: var(--paper);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.btn:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }
.btn--gold {
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--ink);
}
.btn--gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--ink);
}
.btn--ghost { background: transparent; }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: rgba(212, 175, 55, 0.5);
}
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card, .panel {
  position: relative;
  padding: clamp(1.15rem, 2.5vw, 1.75rem);
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: linear-gradient(160deg, rgba(22, 24, 29, 0.96), rgba(11, 12, 14, 0.96));
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.card--hover { transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.card--hover:hover {
  transform: translateY(-4px);
  border-color: rgba(39, 225, 232, 0.45);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.card-title { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 0.5rem; }
.card-meta {
  margin-bottom: 0.75rem;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(39, 225, 232, 0.35);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}
.data {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.divider {
  height: 1px;
  margin-block: 2rem;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.callout {
  border-left: 3px solid var(--gold);
  background: rgba(212, 175, 55, 0.08);
  padding: 1rem 1.2rem;
  color: var(--paper);
}
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(39, 225, 232, 0.08)),
    var(--panel);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(242, 215, 124, 0.14), transparent 70%);
}
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--portrait { aspect-ratio: 4 / 5; }
.timeline {
  position: relative;
  display: grid;
  gap: 1.2rem;
  padding-left: 1.5rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 1px;
  background: linear-gradient(180deg, var(--gold), var(--cyan), transparent);
}
.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.9rem;
  top: 0.55rem;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}
.accordion { display: grid; gap: 0.75rem; }
.accordion-item {
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(22, 24, 29, 0.7);
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  color: var(--paper);
  font-weight: 700;
  text-align: left;
}
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion-item[data-open] .accordion-panel { max-height: 600px; }
.accordion-panel-inner { padding: 0 1.2rem 1.2rem; color: var(--muted); }
.section-nav {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  display: grid;
  gap: 0.35rem;
}
.section-nav a {
  display: block;
  padding: 0.45rem 0.6rem;
  border-left: 2px solid rgba(212, 175, 55, 0.2);
  color: var(--muted);
  font-size: 0.85rem;
}
.section-nav a:hover,
.section-nav a[aria-current="true"] {
  border-left-color: var(--cyan);
  color: var(--cyan);
  background: rgba(39, 225, 232, 0.05);
}
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  box-shadow: 0 0 12px rgba(39, 225, 232, 0.45);
}
.to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 90;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(22, 24, 29, 0.92);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.to-top[data-visible] {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.to-top:hover { border-color: var(--cyan); color: var(--cyan); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 12, 14, 0.92);
  color: var(--paper);
  backdrop-filter: blur(18px);
}
.header-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem max(1rem, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.rail-index { color: var(--gold); }
.rail-status { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-inner {
  width: min(100% - 2rem, var(--max-width));
  min-height: var(--header-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 900;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  box-shadow: 0 0 0 1px rgba(242, 215, 124, 0.35), 0 12px 30px rgba(212, 175, 55, 0.18);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.brand-tagline {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}
.site-nav { margin-left: auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.nav-list a {
  position: relative;
  display: inline-flex;
  padding: 0.75rem 0.9rem;
  color: var(--paper);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.32rem;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--gold-light); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(212, 175, 55, 0.32);
  color: var(--paper);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.action-link:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-light);
}
.action-link--gold {
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--ink);
}
.action-link--gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--ink);
}
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(22, 24, 29, 0.85);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}
.nav-toggle-lines {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: var(--gold);
}
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--gold);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle-lines::before { top: -6px; }
.nav-toggle-lines::after { top: 6px; }
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 8vw, 7rem);
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(22, 24, 29, 0.92), #0B0C0E 62%);
  color: var(--paper);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--cyan), transparent);
}
.footer-grid {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 2rem;
}
.footer-brand {
  padding-right: clamp(1rem, 3vw, 2rem);
  border-right: 1px solid rgba(212, 175, 55, 0.18);
}
.footer-brand-link {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 900;
  letter-spacing: 0.02em;
}
.footer-slogan {
  margin-bottom: 1.2rem;
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}
.footer-meta {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
}
.footer-group-title {
  margin: 0 0 1rem;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-list { display: grid; gap: 0.55rem; }
.footer-link {
  color: var(--paper);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.footer-link:hover { color: var(--cyan); }
.footer-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}
.footer-bottom {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
  padding: 1.2rem 0 1.8rem;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.footer-note { margin: 0; }
@media (max-width: 1100px) {
  .nav-list a { padding: 0.65rem 0.6rem; font-size: 0.86rem; }
  .header-actions .action-link:not(.action-link--gold) { display: none; }
}
@media (max-width: 980px) {
  .site-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    padding: 0.5rem 0.75rem calc(0.75rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(11, 12, 14, 0.88), rgba(11, 12, 14, 0.98));
    transform: translateY(110%);
    transition: transform 0.3s ease;
  }
  .site-nav[data-open],
  .site-header[data-open] .site-nav { transform: translateY(0); }
  .nav-list {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scrollbar-width: thin;
  }
  .nav-list li { flex: 0 0 auto; }
  .nav-list a {
    border: 1px solid rgba(212, 175, 55, 0.22);
    background: rgba(22, 24, 29, 0.72);
    clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current="page"] {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.16);
  }
  .nav-toggle { display: inline-flex; }
  .header-actions { display: none; }
  .site-header[data-open] .nav-toggle-lines { background: transparent; }
  .site-header[data-open] .nav-toggle-lines::before { transform: translateY(6px) rotate(45deg); }
  .site-header[data-open] .nav-toggle-lines::after { transform: translateY(-6px) rotate(-45deg); }
  .to-top { bottom: 5.4rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand {
    grid-column: 1 / -1;
    padding-right: 0;
    padding-bottom: 1.5rem;
    border-right: 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
  }
}
@media (min-width: 721px) and (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .header-rail { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
