:root {
  --deep-blue: #0B1B3F;
  --deep-blue-2: #08102A;
  --gold: #C9A86A;
  --gold-dark: #8C6D3F;
  --silver: #C5D1E8;
  --green: #39FF88;
  --white: #FFFFFF;
  --surface: #F2F5FA;
  --ink: #0B1B3F;
  --text-muted: #5D6F8E;
  --line: #E5EAF2;
  --rail-width: 292px;
  --header-h: 64px;
  --container: 1240px;
  --radius: 14px;
  --shadow-sm: 0 10px 30px rgba(8, 16, 42, .08);
  --shadow-md: 0 18px 50px rgba(8, 16, 42, .16);
  --font-head: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --duration: .45s;
}

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

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

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

ul,
ol {
  padding: 0;
  list-style: none;
}

main {
  display: block;
}

body {
  margin: 0;
  padding-top: var(--header-h);
  background: var(--deep-blue);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
}

::selection {
  background: var(--gold);
  color: var(--deep-blue);
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 2001;
  padding: 8px 14px;
  background: var(--green);
  color: #062812;
  font-weight: 700;
  font-size: .88rem;
  border-radius: 999px;
  transform: translateY(-220%);
  transition: transform .2s;
}

.skip-link:focus {
  transform: translateY(0);
}

.progress-track {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-h);
  height: 3px;
  z-index: 1200;
  pointer-events: none;
}

.progress-track__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--green));
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  background: var(--deep-blue);
  color: var(--silver);
  box-shadow: 0 1px 0 rgba(197, 209, 232, .14);
}

.header-inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
}

.brand-lockup {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}

.brand-mark {
  position: relative;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: rgba(201, 168, 106, .08);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(57, 255, 136, .7);
  border-radius: 50%;
}

.brand-mark__orb {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px rgba(57, 255, 136, .6);
}

.brand-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.06rem;
  line-height: 1.2;
  letter-spacing: .03em;
  white-space: nowrap;
}

.brand-index {
  display: none;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .22em;
  color: var(--gold);
  text-transform: uppercase;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid rgba(197, 209, 232, .22);
  border-radius: 999px;
  color: var(--silver);
  font-size: .85rem;
  line-height: 1;
  cursor: pointer;
}

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

.nav-toggle__icon {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}

.nav-toggle__icon span {
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform .3s, opacity .3s, top .3s;
}

.nav-toggle__icon span:nth-child(1) {
  top: 0;
}

.nav-toggle__icon span:nth-child(2) {
  top: 5px;
}

.nav-toggle__icon span:nth-child(3) {
  top: 10px;
}

body.nav-open .nav-toggle__icon span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}

body.nav-open .nav-toggle__icon span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle__icon span:nth-child(3) {
  top: 5px;
  transform: rotate(-45deg);
}

.nav-toggle__label {
  font-family: var(--font-head);
  font-weight: 600;
}

.site-nav {
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  width: min(82vw, 340px);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 32px;
  padding: 32px 28px;
  background: var(--deep-blue-2);
  border-left: 1px solid rgba(197, 209, 232, .14);
  transform: translateX(105%);
  visibility: hidden;
  pointer-events: none;
  transition: transform var(--duration) var(--ease), visibility var(--duration);
}

.site-nav[data-open="true"] {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  box-shadow: var(--shadow-md);
}

.nav-list {
  counter-reset: nav;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-list li {
  counter-increment: nav;
}

.nav-list a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 10px 11px 16px;
  border-left: 2px solid transparent;
  color: var(--silver);
  font-size: .98rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: color .2s, background .2s, border-color .2s;
}

.nav-list a::before {
  content: "0" counter(nav);
  min-width: 2.2em;
  font-family: var(--font-mono);
  font-size: .64rem;
  color: var(--gold);
  letter-spacing: .04em;
}

.nav-list a:hover {
  color: var(--white);
  background: rgba(197, 209, 232, .06);
  border-left-color: var(--gold-dark);
}

.nav-list a[aria-current="page"] {
  color: var(--white);
  background: rgba(201, 168, 106, .08);
  border-left-color: var(--green);
}

.nav-list a[aria-current="page"]::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: auto;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(57, 255, 136, .7);
}

.nav-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(197, 209, 232, .12);
  font-family: var(--font-mono);
  font-size: .68rem;
  line-height: 1.8;
  color: rgba(197, 209, 232, .62);
  letter-spacing: .05em;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.section {
  padding: clamp(40px, 7vw, 96px) 0;
}

.section--tight {
  padding: 24px 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.page-main {
  min-height: 70vh;
}

.main-content {
  display: block;
  background: var(--surface);
}

.main-content:focus {
  outline: none;
}

.editorial-grid {
  display: grid;
  gap: 32px;
}

.editorial-note {
  border-left: 2px solid var(--gold-dark);
  padding-left: 16px;
  color: var(--text-muted);
  font-size: .88rem;
  line-height: 1.7;
}

.editorial-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--deep-blue);
  font-family: var(--font-head);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.content-narrow {
  max-width: 72ch;
}

.display-title {
  font-family: var(--font-head);
  font-size: clamp(2.9rem, 7vw, 5.6rem);
  line-height: .96;
  letter-spacing: -.045em;
  font-weight: 800;
  color: var(--deep-blue);
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--deep-blue);
  margin-bottom: .4em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .72rem;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold-dark);
}

.lead {
  max-width: 64ch;
  font-size: 1.16rem;
  line-height: 1.8;
  color: var(--text-muted);
}

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

.stat {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--deep-blue);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: .82rem;
  color: var(--text-muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 2px;
  color: var(--line);
}

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

.breadcrumb a[aria-current="page"] {
  color: var(--gold-dark);
  font-weight: 600;
}

.prose {
  max-width: 72ch;
}

.prose p {
  margin-bottom: 1.2em;
}

.prose h2,
.prose h3 {
  margin-top: 1.6em;
  margin-bottom: .4em;
}

.prose ul {
  padding-left: 1.4em;
  list-style: square;
}

.prose blockquote {
  margin: 1.4em 0;
  padding-left: 1em;
  border-left: 3px solid var(--gold-dark);
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, background .25s, border-color .25s;
}

.btn--primary {
  background: var(--gold);
  color: var(--deep-blue);
  box-shadow: 0 8px 22px rgba(201, 168, 106, .24);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(201, 168, 106, .34);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(11, 27, 63, .25);
  color: var(--deep-blue);
}

.btn--ghost:hover {
  background: rgba(11, 27, 63, .04);
  border-color: var(--deep-blue);
}

.btn--compact {
  padding: 8px 14px;
  font-size: .85rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: .78rem;
  color: var(--deep-blue);
}

.tag--accent {
  background: rgba(57, 255, 136, .12);
  border-color: rgba(57, 255, 136, .4);
  color: #005A2E;
}

.tag--gold {
  background: rgba(201, 168, 106, .14);
  border-color: rgba(201, 168, 106, .4);
  color: #6B4E22;
}

.card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.card--outline {
  background: transparent;
  box-shadow: none;
}

.card--flat {
  padding: 16px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.card__meta {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.card__title {
  margin-bottom: 8px;
  font-family: var(--font-head);
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -.02em;
  color: var(--deep-blue);
}

.card__body {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--text-muted);
}

a.card {
  display: block;
  text-decoration: none;
  transition: transform .3s, box-shadow .3s;
}

a.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.index-list {
  border-top: 1px solid var(--line);
}

.index-list li {
  border-bottom: 1px solid var(--line);
}

.index-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 4px;
  text-decoration: none;
  color: inherit;
  transition: background .25s, padding-left .25s;
}

.index-list a:hover {
  background: rgba(201, 168, 106, .08);
  padding-left: 10px;
}

.index-list__main {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
}

.index-list__sub {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: .8rem;
}

.index-list__meta {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--gold-dark);
  white-space: nowrap;
}

.media-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--silver), var(--surface));
  box-shadow: inset 0 0 0 1px rgba(11, 27, 63, .08);
}

.media-frame::before {
  content: "";
  display: block;
  padding-bottom: 62.5%;
}

.media-frame--hero::before {
  padding-bottom: 56.25%;
}

.media-frame--square::before {
  padding-bottom: 100%;
}

.media-frame--tall::before {
  padding-bottom: 125%;
}

.media-frame img,
.media-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame__label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--deep-blue);
  backdrop-filter: blur(4px);
}

.divider-ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .2em;
  color: var(--gold-dark);
}

.divider-ornament::before,
.divider-ornament::after {
  content: "";
  flex: 1;
  height: 1px;
}

.divider-ornament::before {
  background: linear-gradient(90deg, transparent, var(--gold-dark));
}

.divider-ornament::after {
  background: linear-gradient(90deg, var(--gold-dark), transparent);
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

.accordion {
  border-top: 1px solid var(--line);
}

.accordion details {
  border-bottom: 1px solid var(--line);
}

.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 4px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  list-style: none;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--gold-dark);
}

.accordion details[open] summary::after {
  content: "−";
}

.accordion__body {
  max-width: 70ch;
  padding: 0 4px 18px;
  color: var(--text-muted);
}

.site-footer {
  padding: 64px 0 28px;
  background: var(--deep-blue-2);
  color: var(--silver);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.footer-brand__name {
  margin-bottom: 8px;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
}

.footer-brand__tagline {
  max-width: 30ch;
  margin-bottom: 16px;
  font-size: .92rem;
  line-height: 1.7;
  color: rgba(197, 209, 232, .7);
}

.footer-meta,
.footer-legal {
  min-width: 0;
}

.footer-title {
  margin-bottom: 16px;
  font-family: var(--font-head);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-list li {
  margin-bottom: 8px;
  font-size: .95rem;
}

.footer-list--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-list--inline li {
  margin-bottom: 0;
}

.footer-list a {
  color: var(--silver);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}

.footer-list a:hover {
  color: var(--green);
  border-color: rgba(57, 255, 136, .4);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  width: min(100% - 40px, var(--container));
  margin: 48px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(197, 209, 232, .14);
  font-family: var(--font-mono);
  font-size: .72rem;
  color: rgba(197, 209, 232, .6);
}

html[data-js="enabled"] [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

html[data-js="enabled"] [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (min-width: 900px) {
  body {
    margin-left: var(--rail-width);
    padding-top: 0;
  }

  body.nav-open {
    overflow: auto;
  }

  .site-header {
    top: 0;
    left: 0;
    right: auto;
    bottom: 0;
    width: var(--rail-width);
    height: auto;
    border-right: 1px solid rgba(197, 209, 232, .12);
    box-shadow: inset -1px 0 0 rgba(201, 168, 106, .14);
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    height: 100%;
    padding: 28px 20px 24px;
  }

  .brand-lockup {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .brand-index {
    display: block;
    margin-left: 46px;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    width: auto;
    height: auto;
    flex: 1;
    justify-content: space-between;
    gap: 24px;
    padding: 44px 0 0;
    background: transparent;
    border-left: 0;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    transition: none;
    box-shadow: none;
  }

  .site-nav[data-open="true"] {
    transform: none;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
  }

  .editorial-grid {
    grid-template-columns: minmax(180px, .32fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(32px, 5vw, 72px);
  }

  .editorial-note {
    position: sticky;
    top: 24px;
  }

  .progress-track {
    left: var(--rail-width);
    right: 0;
    top: 0;
  }
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    margin-top: 32px;
  }
}

@media (max-width: 700px) {
  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 701px) and (max-width: 899px) {
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .001s !important;
    transition-duration: .001s !important;
  }

  html[data-js="enabled"] [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
