:root {
  --ochre-600: #C2512A;
  --ochre-900: #6B2A16;
  --ochre-300: #E9A57F;
  --navy-950: #071A2E;
  --navy-800: #0E2E4F;
  --navy-500: #2E6C9E;
  --cyan-400: #23F0C7;
  --paper-050: #F6F1E9;
  --ink-900: #131A21;
  --glass-veil: rgba(246, 241, 233, 0.14);
  --signal-red: #FF5A47;
  --font-display: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-data: ui-monospace, "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --maxw: 1200px;
  --gutter: clamp(1rem, 3vw, 2.5rem);
  --radius: 3px;
}

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

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

body {
  margin: 0;
  background-color: var(--navy-950);
  color: var(--paper-050);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.34vw + 0.94rem, 1.075rem);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    repeating-linear-gradient(0deg, rgba(246, 241, 233, 0.04) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(246, 241, 233, 0.04) 0 1px, transparent 1px 24px);
  pointer-events: none;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }

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

a { color: inherit; }

button { font: inherit; }

::selection {
  background-color: var(--ochre-600);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 2px;
}

.display-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1.18;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(19, 26, 33, 0.18);
  margin-bottom: 1.5rem;
}

.section-num {
  flex: 0 0 auto;
  width: 3ch;
  font-family: var(--font-data);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--ochre-600);
}

.data {
  font-family: var(--font-data);
  font-size: 0.82em;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  font-family: var(--font-data);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre-600);
}

.lede {
  max-width: 60ch;
  font-size: 1.15rem;
  line-height: 1.72;
  color: #2a333d;
}

.note {
  max-width: 62ch;
  padding: 0.35rem 0 0.35rem 1rem;
  border-left: 2px solid var(--ochre-600);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.65;
  color: #38424d;
  background-image: linear-gradient(90deg, rgba(233, 165, 127, 0.18), transparent 72%);
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 860px; }

.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }

.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.75rem); }
.grid--split { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.grid--thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.band {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.band--paper { background-color: var(--paper-050); color: var(--ink-900); }
.band--navy { background-color: var(--navy-950); color: var(--paper-050); }
.band--navy-grad { background-image: linear-gradient(160deg, var(--navy-800), var(--navy-950) 72%); color: var(--paper-050); }
.band--ochre { background-color: var(--ochre-600); color: #fff; }
.band--skew { clip-path: polygon(0 2.5rem, 100% 0, 100% 100%, 0 100%); }

.band--navy .section-head,
.band--navy-grad .section-head { border-bottom-color: rgba(246, 241, 233, 0.22); }
.band--navy .section-num,
.band--navy-grad .section-num { color: var(--ochre-300); }
.band--navy .lede,
.band--navy-grad .lede { color: rgba(246, 241, 233, 0.82); }

.glass {
  background-color: var(--glass-veil);
  border: 1px solid rgba(246, 241, 233, 0.22);
  border-radius: 14px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.card {
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background-color: var(--paper-050);
  color: var(--ink-900);
  border: 1px solid rgba(19, 26, 33, 0.12);
  border-radius: var(--radius);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.card:hover {
  border-color: var(--ochre-300);
  box-shadow: 0 14px 30px -24px rgba(7, 26, 46, 0.6);
}

.card--glass {
  background-color: var(--glass-veil);
  color: var(--paper-050);
  border-color: rgba(246, 241, 233, 0.24);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.card--glass:hover {
  transform: translateY(-4px);
  border-color: var(--cyan-400);
  background-color: rgba(246, 241, 233, 0.2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.62rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.btn--primary {
  background-color: var(--ochre-600);
  color: #fff;
  border-color: rgba(0, 0, 0, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn--primary:hover {
  background-color: var(--ochre-900);
  transform: translateY(-2px);
}

.btn--ghost {
  background-color: transparent;
  color: var(--paper-050);
  border-color: rgba(246, 241, 233, 0.42);
}

.btn--ghost:hover {
  color: var(--cyan-400);
  border-color: var(--cyan-400);
}

.breadcrumb { padding-block: 1.25rem 0; }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(246, 241, 233, 0.62);
}

.breadcrumb-list li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--ochre-300);
}

.breadcrumb-list a { text-decoration: none; }
.breadcrumb-list a:hover { color: var(--cyan-400); }
.breadcrumb-list [aria-current="page"] { color: var(--paper-050); }

.page-toc {
  position: sticky;
  top: 6.5rem;
  padding: 1rem 1.1rem;
  background-color: var(--glass-veil);
  border: 1px solid rgba(246, 241, 233, 0.22);
  border-radius: 14px;
  color: var(--paper-050);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.page-toc-title {
  margin-bottom: 0.6rem;
  font-family: var(--font-data);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre-300);
}

.toc-list {
  display: grid;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
}

.toc-link {
  display: block;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  text-decoration: none;
  color: rgba(246, 241, 233, 0.8);
  transition: background-color 180ms ease, color 180ms ease;
}

.toc-link:hover { background-color: rgba(246, 241, 233, 0.14); color: var(--paper-050); }
.toc-link[aria-current="true"] { background-color: var(--ochre-600); color: #fff; }

.media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(246, 241, 233, 0.18);
  border-radius: var(--radius);
  background-image: linear-gradient(135deg, var(--navy-800), var(--navy-950) 56%, var(--ochre-900));
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(246, 241, 233, 0.08) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(246, 241, 233, 0.08) 0 1px, transparent 1px 24px);
  pointer-events: none;
}

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

.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 4 / 5; }

.media-caption {
  margin-top: 0.6rem;
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #4a545f;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  padding: 0.7rem 0.8rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(19, 26, 33, 0.14);
}

.data-table thead th {
  font-family: var(--font-data);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ochre-600);
  border-bottom-color: rgba(19, 26, 33, 0.32);
}

.data-table tbody tr:nth-child(even) { background-color: rgba(46, 108, 158, 0.06); }
.data-table .data { color: var(--navy-800); }

.skip-link {
  position: fixed;
  top: -4rem;
  left: 1rem;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background-color: var(--cyan-400);
  color: var(--navy-950);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: top 160ms ease;
}

.skip-link:focus { top: 0.75rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-block: 0.85rem 0.6rem;
  background-color: rgba(7, 26, 46, 0.88);
  border-bottom: 1px solid rgba(246, 241, 233, 0.14);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: background-color 200ms ease, box-shadow 200ms ease, padding 200ms ease;
}

.site-header[data-scrolled="true"] {
  padding-block: 0.5rem 0.4rem;
  background-color: rgba(7, 26, 46, 0.97);
  box-shadow: 0 16px 36px -26px rgba(0, 0, 0, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.6vw, 1.25rem);
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--paper-050);
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand-mark em {
  font-family: var(--font-data);
  font-style: normal;
  font-size: 0.78em;
  letter-spacing: 0.06em;
  color: var(--cyan-400);
}

.brand-divider {
  width: 1px;
  height: 1.9rem;
  background-image: linear-gradient(180deg, transparent, var(--ochre-300) 22%, var(--ochre-300) 78%, transparent);
}

.brand-meta {
  font-family: var(--font-data);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: rgba(246, 241, 233, 0.66);
  white-space: nowrap;
}

.brand-meta .data { color: var(--cyan-400); }

.nav-shell {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  padding: 0.32rem 0.4rem 0.32rem 0.5rem;
  background-color: var(--glass-veil);
  border: 1px solid rgba(246, 241, 233, 0.24);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, background-color 180ms ease;
}

.site-nav { display: block; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.12rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 0.48rem 0.78rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  color: rgba(246, 241, 233, 0.84);
  transition: background-color 180ms ease, color 180ms ease;
}

.nav-link:hover {
  background-color: rgba(246, 241, 233, 0.14);
  color: var(--paper-050);
}

.nav-link[aria-current="page"] {
  background-color: var(--ochre-600);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
}

.status-chip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  background-color: rgba(7, 26, 46, 0.55);
  border: 1px solid rgba(35, 240, 199, 0.32);
  border-radius: 999px;
  font-size: 0.75rem;
  color: rgba(246, 241, 233, 0.9);
  white-space: nowrap;
  cursor: default;
}

.status-dot {
  width: 0.48rem;
  height: 0.48rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background-color: var(--cyan-400);
  box-shadow: 0 0 0 3px rgba(35, 240, 199, 0.18);
  animation: status-breath 2.4s ease-in-out infinite;
}

.status-text { font-weight: 500; }

.status-meta {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: rgba(246, 241, 233, 0.62);
  transition: max-width 200ms ease, opacity 200ms ease;
}

.status-chip:hover .status-meta,
.status-chip:focus .status-meta,
.status-chip:focus-within .status-meta {
  max-width: 12rem;
  opacity: 1;
}

.status-chip:focus-visible { outline: 2px solid var(--cyan-400); outline-offset: 2px; }

@keyframes status-breath {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.42; }
}

.header-cta { flex: 0 0 auto; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
  width: 2.75rem;
  height: 2.6rem;
  padding: 0 0.6rem;
  background-color: rgba(246, 241, 233, 0.1);
  border: 1px solid rgba(246, 241, 233, 0.28);
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--paper-050);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background-image: linear-gradient(90deg, var(--ochre-600), var(--cyan-400));
  pointer-events: none;
}

.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(3rem, 7vw, 5.5rem);
  background-color: var(--ochre-900);
  color: var(--paper-050);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background-image: linear-gradient(90deg, var(--ochre-600) 0 42%, var(--cyan-400) 42% 45%, var(--navy-800) 45% 100%);
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image:
    repeating-linear-gradient(0deg, rgba(246, 241, 233, 0.06) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(246, 241, 233, 0.06) 0 1px, transparent 1px 24px);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter) 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}

.footer-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.2;
}

.footer-tagline {
  max-width: 32ch;
  margin-top: 0.5rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(246, 241, 233, 0.8);
}

.footer-note {
  max-width: 36ch;
  margin-top: 0.9rem;
  font-size: 0.78rem;
  line-height: 1.65;
  color: rgba(246, 241, 233, 0.58);
}

.footer-heading {
  margin-bottom: 0.9rem;
  font-family: var(--font-data);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ochre-300);
}

.footer-links {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
}

.footer-links a {
  color: rgba(246, 241, 233, 0.84);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

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

.footer-contact .data {
  display: inline-block;
  color: rgba(246, 241, 233, 0.92);
  word-break: break-word;
}

.footer-label {
  display: inline-block;
  min-width: 2.6em;
  margin-right: 0.5rem;
  font-family: var(--font-data);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--ochre-300);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(246, 241, 233, 0.22);
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: rgba(246, 241, 233, 0.72);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 1rem;
  font-size: 0.78rem;
  color: rgba(246, 241, 233, 0.66);
}

.footer-copy { font-family: var(--font-data); font-size: 0.72rem; letter-spacing: 0.04em; }

.footer-meta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-meta-links a {
  text-decoration: none;
  color: rgba(246, 241, 233, 0.78);
  border-bottom: 1px solid rgba(246, 241, 233, 0.32);
  transition: color 180ms ease, border-color 180ms ease;
}

.footer-meta-links a:hover {
  color: var(--cyan-400);
  border-bottom-color: var(--cyan-400);
}

.js-reveal [data-reveal] {
  opacity: 0;
  clip-path: inset(0 12% 0 0);
  transition: opacity 520ms ease, clip-path 520ms ease;
}

.js-reveal [data-reveal].is-visible {
  opacity: 1;
  clip-path: inset(0 0 0 0);
}

@media (min-width: 1121px) {
  .nav-shell:hover {
    transform: translateY(-4px);
    background-color: rgba(246, 241, 233, 0.2);
  }
}

@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }

  .nav-shell {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: var(--gutter);
    right: var(--gutter);
    z-index: 90;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-left: 0;
    padding: 1rem;
    border-radius: 18px;
    background-color: rgba(7, 26, 46, 0.97);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .nav-shell[data-open="true"] {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0.15rem; }

  .nav-link { padding: 0.72rem 0.9rem; border-radius: 10px; font-size: 0.95rem; }

  .status-chip { align-self: flex-start; }

  .status-meta { max-width: 12rem; opacity: 1; }

  .header-cta { padding: 0.55rem 0.9rem; font-size: 0.8rem; }
}

@media (max-width: 960px) {
  .grid--split,
  .grid--thirds { grid-template-columns: minmax(0, 1fr); }

  .page-toc { position: static; top: auto; }

  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .brand-meta { display: none; }
  .brand-divider { height: 1.5rem; }
  .brand-mark { font-size: 1rem; }
  .header-cta { font-size: 0.74rem; padding: 0.5rem 0.72rem; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-legal { flex-direction: column; gap: 0.4rem; }
  .section-head { flex-wrap: wrap; gap: 0.5rem; }
}

@media (max-width: 400px) {
  .header-cta { padding: 0.48rem 0.6rem; font-size: 0.7rem; }
  .nav-toggle { width: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .status-dot { animation: none; opacity: 1; }

  .js-reveal [data-reveal] {
    opacity: 1;
    clip-path: none;
    transition: none;
  }

  .nav-shell:hover,
  .card--glass:hover,
  .btn--primary:hover { transform: none; }
}
