:root {
  --gold: #C8912B;
  --gold-light: #F0D08A;
  --ink: #16233A;
  --stone: #5C636E;
  --cinnabar: #B3382C;
  --paper: #F7F3EA;
  --danxia: #A8552E;
  --bronze: #3E5C50;
  --text: #1B1B1F;
  --line: #D9D2C4;
  --white: #FFFFFF;

  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", system-ui, sans-serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-body: "Songti SC", "SimSun", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Courier New", monospace;

  --maxw: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

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;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--ink);
}

p { margin: 0; }

hr { border: 0; }

main { display: block; }

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

/* ============ SKIP LINK ============ */
.skip-link {
  position: fixed;
  left: 50%;
  top: 0;
  z-index: 300;
  transform: translate(-50%, -150%);
  background: var(--ink);
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: .06em;
  padding: 12px 22px;
  border-bottom: 2px solid var(--gold);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.ticker-bar {
  background: var(--ink);
  color: var(--gold-light);
  border-bottom: 1px solid rgba(200, 145, 43, .3);
}

.ticker-item {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px var(--gutter);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-sans);
  font-size: 12.5px;
  letter-spacing: .04em;
  line-height: 1.5;
}

.ticker-tag {
  flex: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--ink);
  background: var(--gold);
  padding: 2px 8px;
}

.masthead {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.masthead-top {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 24px 0 16px;
  transition: padding .28s var(--ease);
}

.masthead-top::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 22%, var(--gold) 78%, transparent);
  opacity: .55;
}

.masthead-aside {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--stone);
  text-transform: uppercase;
  line-height: 1.6;
}
.masthead-aside--right { text-align: right; }

.brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.brand-link {
  display: inline-block;
  padding: 0 10px;
}

.brand-mark {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1;
  letter-spacing: .14em;
  padding-left: .14em;
  color: var(--ink);
  transition: font-size .28s var(--ease);
}

.brand-tagline {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--stone);
  text-align: center;
  transition: opacity .28s var(--ease);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
}

.nav-toggle-text { line-height: 1; }

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  width: 18px;
}
.nav-toggle-bars i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.main-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0 14px;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
}

.nav-item { display: block; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 10px 18px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ink);
  transition: color .2s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 3px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .26s var(--ease);
}
.nav-link:hover { color: var(--gold); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--ink); }
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--gold);
}

.nav-cta {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  padding: 10px 20px;
  background: var(--ink);
  color: var(--gold-light);
  border: 1px solid var(--ink);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.nav-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.site-header.is-condensed .masthead-top { padding: 10px 0 8px; }
.site-header.is-condensed .brand-mark { font-size: clamp(22px, 3.2vw, 28px); }
.site-header.is-condensed .brand-tagline { opacity: 0; }

@media (max-width: 1040px) {
  .nav-cta { display: none; }
  .nav-link { padding: 10px 13px; font-size: 14px; }
  .nav-link::after { left: 13px; right: 13px; }
}

@media (max-width: 900px) {
  .masthead-top {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 18px 0 12px;
  }
  .masthead-aside { display: none; }
  .nav-toggle {
    display: inline-flex;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }
  .main-nav {
    display: block;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .32s var(--ease);
  }
  .main-nav[data-open] { max-height: 620px; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 0 16px;
  }
  .nav-link {
    display: block;
    padding: 15px 6px;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] {
    padding-left: 16px;
    border-left: 3px solid var(--cinnabar);
    color: var(--gold);
  }
}

@media (max-width: 560px) {
  .ticker-item { font-size: 11.5px; gap: 8px; }
  .brand-tagline { font-size: 12px; padding: 0 8px; }
}

/* ============ FOOTER ============ */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: rgba(247, 243, 234, .72);
  border-top: 3px solid var(--gold);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 85% at 8% 0%, rgba(200, 145, 43, .18), transparent 55%),
    radial-gradient(95% 75% at 96% 102%, rgba(168, 85, 46, .22), transparent 62%),
    linear-gradient(180deg, rgba(22, 35, 58, 0) 0%, rgba(27, 27, 31, .5) 100%);
}

.footer-top {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(28px, 4vw, 44px);
}

.footer-brand-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 22px;
  padding-bottom: clamp(22px, 3vw, 34px);
  margin-bottom: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid rgba(217, 210, 196, .18);
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1;
  letter-spacing: .14em;
  padding-left: .14em;
  color: var(--gold-light);
}

.footer-brand-note {
  font-family: var(--font-sans);
  font-size: 14px;
  color: rgba(247, 243, 234, .7);
}

.footer-brand-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  color: rgba(200, 145, 43, .95);
}

@media (min-width: 861px) {
  .footer-brand-meta { margin-left: auto; }
}

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

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

.footer-col-title {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--gold);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(200, 145, 43, .3);
}

.footer-list {
  display: grid;
  gap: 9px;
}
.footer-list li {
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(247, 243, 234, .6);
  overflow-wrap: anywhere;
}
.footer-list a {
  color: rgba(247, 243, 234, .84);
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.footer-list a:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(217, 210, 196, .16);
}

.footer-bottom-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px var(--gutter) 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: rgba(247, 243, 234, .58);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-legal a {
  color: rgba(247, 243, 234, .84);
  border-bottom: 1px solid rgba(200, 145, 43, .45);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.footer-legal a:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
}

.footer-note {
  flex: 1 1 320px;
  line-height: 1.7;
}

.footer-copy {
  font-family: var(--font-mono);
  letter-spacing: .08em;
  color: rgba(200, 145, 43, .95);
  margin-left: auto;
}

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 26px 20px;
  }
}

@media (max-width: 700px) {
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
  .footer-copy { margin-left: 0; }
}

/* ============ LAYOUT HELPERS ============ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container--narrow { max-width: 860px; }

.grid { display: grid; gap: clamp(20px, 3vw, 34px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.grid--12 > * { grid-column: span 12; }

@media (min-width: 861px) {
  .col-3 { grid-column: span 3; }
  .col-4 { grid-column: span 4; }
  .col-5 { grid-column: span 5; }
  .col-6 { grid-column: span 6; }
  .col-7 { grid-column: span 7; }
  .col-8 { grid-column: span 8; }
  .col-9 { grid-column: span 9; }
}

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

.divider-band {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--danxia) 60%, transparent);
  margin: clamp(28px, 5vw, 56px) 0;
  opacity: .7;
}

/* ============ SECTION HEADINGS ============ */
.section-head { display: grid; gap: 12px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold);
  flex: none;
}

.section-title {
  font-size: clamp(28px, 4vw, 34px);
  color: var(--ink);
}

.vertical-note {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.btn--cinnabar {
  background: var(--cinnabar);
  border-color: var(--cinnabar);
  color: #FFFFFF;
}
.btn--cinnabar:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--stone);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li + li::before {
  content: "/";
  margin: 0 10px;
  color: var(--line);
}
.breadcrumb a {
  color: var(--stone);
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.breadcrumb a:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* ============ PROSE ============ */
.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
}
.prose h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 1.7em 0 .6em;
}
.prose h3 {
  font-size: 20px;
  margin: 1.5em 0 .5em;
}
.prose p + p { margin-top: 1.05em; }
.prose ul {
  display: grid;
  gap: 10px;
  margin: 1.1em 0;
}
.prose ul li {
  position: relative;
  padding-left: 20px;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 9px;
  height: 2px;
  background: var(--gold);
}

/* ============ CARDS ============ */
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: clamp(20px, 2.4vw, 30px);
  display: grid;
  gap: 10px;
  align-content: start;
}
.card--cinnabar { border-left-color: var(--cinnabar); }
.card--bronze { border-left-color: var(--bronze); }

.card__title {
  font-size: 20px;
  color: var(--ink);
}
.card__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--stone);
}
.card__body {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--text);
}

/* ============ FIGURE ============ */
.figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(22, 35, 58, .92) 0%, rgba(168, 85, 46, .78) 55%, rgba(200, 145, 43, .68) 100%);
}
.figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(240, 208, 138, .18) 50%, transparent 62%);
}
.figure img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure--wide { aspect-ratio: 21 / 9; }
.figure--band { aspect-ratio: 32 / 9; }
.figure--card { aspect-ratio: 4 / 3; }
.figure--square { aspect-ratio: 1 / 1; }

.figure__caption {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  padding: 7px 14px;
  background: rgba(22, 35, 58, .86);
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
}

/* ============ DISCLOSURE ============ */
.disclosure {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  transition: border-color .2s var(--ease);
}
.disclosure + .disclosure { margin-top: -1px; }
.disclosure[open] { border-left-color: var(--cinnabar); }

.disclosure__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--ink);
}
.disclosure__summary::-webkit-details-marker { display: none; }
.disclosure__summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .22s var(--ease);
}
.disclosure[open] .disclosure__summary::after {
  transform: rotate(-135deg) translateY(-2px);
}

.disclosure__body {
  padding: 0 22px 20px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
}

/* ============ METRIC ============ */
.metric {
  display: grid;
  gap: 8px;
  padding-left: 16px;
  border-left: 2px solid var(--gold);
}
.metric__value {
  font-family: var(--font-mono);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
  color: var(--ink);
}
.metric__label {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--stone);
}

/* ============ SECTION RAIL ============ */
.section-rail {
  position: sticky;
  top: 128px;
  display: grid;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--stone);
}
.section-rail a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 4px 0;
  color: var(--stone);
  transition: color .2s var(--ease);
}
.section-rail a[aria-current="true"],
.section-rail a:hover { color: var(--gold); }

/* ============ REVEAL ============ */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
