:root {
  --ink: #07131F;
  --ink-soft: #0B1D2E;
  --ink-raise: #102A3C;
  --paper: #F2EFE6;
  --gold: #F2B544;
  --sky: #57D7E8;
  --amber: #FF8A3D;
  --slate: #1B3347;
  --mist: #B7C5CE;
  --white: #FFFFFF;
  --teal: #0E4B55;

  --rail-w: 268px;
  --gutter: clamp(20px, 4.4vw, 64px);
  --measure: 66ch;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --fs-display: clamp(48px, 8vw, 112px);
  --fs-h2: clamp(28px, 4vw, 44px);
  --fs-h3: clamp(20px, 2.4vw, 26px);
  --fs-body: clamp(16px, 1.05vw, 18px);
  --fs-note: 13px;
  --fs-label: 12px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

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

#main-content { scroll-margin-top: 88px; }

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--gold);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
  transform: translateY(-180%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- header / rail ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 70;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  padding: 30px 22px 26px 26px;
  background: var(--ink);
  border-right: 1px solid rgba(242, 239, 230, .14);
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: linear-gradient(180deg,
    rgba(242, 181, 68, 0) 0%,
    var(--gold) 10%,
    var(--gold) 44%,
    rgba(87, 215, 232, .6) 86%,
    rgba(87, 215, 232, 0) 100%);
}

.brand {
  display: grid;
  gap: 8px;
  padding-bottom: 24px;
  margin-bottom: 26px;
  border-bottom: 1px solid rgba(242, 239, 230, .14);
}

.brand__mark {
  position: relative;
  display: block;
  width: 26px;
  height: 26px;
  border: 1px solid var(--gold);
  transform: skewX(-12deg);
}
.brand__mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: var(--gold);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.brand__text { display: grid; gap: 4px; }

.brand__name {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.brand__line {
  font-size: 11px;
  color: var(--mist);
  letter-spacing: .16em;
  line-height: 1.4;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid rgba(242, 239, 230, .3);
  color: var(--paper);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.nav-toggle:hover { border-color: var(--gold); color: var(--gold); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform .26s var(--ease), top .26s var(--ease);
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.site-header[data-open] .nav-toggle__bars { background: transparent; }
.site-header[data-open] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.site-header[data-open] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

.nav-toggle__text { font-size: 13px; font-weight: 700; letter-spacing: .12em; }

.site-nav {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 22px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.site-nav__title {
  padding-left: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .24em;
  color: var(--mist);
}

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

.site-nav__link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0 9px 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--paper);
  transition: color .2s var(--ease), padding-left .22s var(--ease);
}

.site-nav__link::before {
  counter-increment: nav;
  content: counter(nav, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--mist);
  transition: color .2s var(--ease);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--gold);
  transform: translateY(-50%);
  transition: width .24s var(--ease);
}

.site-nav__link:hover,
.site-nav__link[aria-current="page"] { color: var(--gold); padding-left: 20px; }
.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after { width: 10px; }
.site-nav__link:hover::before,
.site-nav__link[aria-current="page"]::before { color: var(--gold); }

.rail__cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding: 13px 16px;
  background: var(--gold);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 7% 100%);
  transition: background .2s var(--ease);
}
.rail__cta::after { content: "→"; font-family: var(--font-mono); font-weight: 700; }
.rail__cta:hover { background: var(--amber); }

.rail__note {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: .08em;
  color: var(--mist);
}

.rail-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: rgba(242, 239, 230, .1);
}
.rail-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--sky));
  transition: width .12s linear;
}

.nav-scrim { display: none; }

/* ---------- layout utilities ---------- */
.wrap {
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(44px, 6.5vw, 104px); }
.page-head { padding-block: clamp(34px, 5vw, 76px) clamp(20px, 3vw, 40px); }

.display {
  font-size: var(--fs-display);
  font-weight: 900;
  line-height: .96;
  letter-spacing: -.035em;
}
.h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.025em;
}
.h3 {
  font-size: var(--fs-h3);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.015em;
}
.lede {
  max-width: var(--measure);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.7;
}
.prose {
  max-width: var(--measure);
  line-height: 1.78;
}
.prose > * + * { margin-top: 1.1em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 16px; height: 1px; background: currentColor; }

.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--gold);
}
.label::before { content: ""; width: 16px; height: 1px; background: currentColor; }

.note {
  display: block;
  max-width: 54ch;
  padding-left: 14px;
  border-left: 2px solid var(--sky);
  font-size: var(--fs-note);
  line-height: 1.7;
  color: var(--mist);
}

.num {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  border: 1px solid transparent;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn--gold {
  background: var(--gold);
  color: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 6% 100%);
}
.btn--gold:hover { background: var(--amber); }
.btn--ghost {
  border-color: rgba(242, 239, 230, .3);
  color: var(--paper);
}
.btn--ghost:hover { border-color: var(--sky); color: var(--sky); }

/* ---------- breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--mist);
}
.breadcrumb a {
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.breadcrumb a:hover { color: var(--gold); border-color: var(--gold); }
.breadcrumb__sep { color: rgba(183, 197, 206, .45); }
.breadcrumb [aria-current="page"] { color: var(--paper); }

/* ---------- grid ---------- */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}

/* ---------- media containers ---------- */
.media {
  position: relative;
  overflow: hidden;
  background: var(--ink-soft);
  border: 1px solid rgba(242, 239, 230, .16);
}
.media > img,
.media > picture,
.media > picture > img,
.media > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--wide { aspect-ratio: 16 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }
.media--edge { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 88%); }

.figure { margin: 0; }
.figcap {
  margin-top: 10px;
  font-size: var(--fs-note);
  line-height: 1.6;
  color: var(--mist);
  letter-spacing: .02em;
}

/* ---------- chips & filters ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.filter-bar .label { margin-right: 4px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--paper);
  background: transparent;
  border: 1px solid rgba(242, 239, 230, .28);
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.chip:hover { color: var(--sky); border-color: var(--sky); }
.chip[aria-pressed="true"] {
  background: var(--sky);
  border-color: var(--sky);
  color: var(--ink);
}

[data-filterable][hidden] { display: none !important; }

/* ---------- tables ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}
.data-table caption {
  padding-bottom: 12px;
  font-size: var(--fs-label);
  letter-spacing: .2em;
  color: var(--gold);
  text-align: left;
}
.data-table th {
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--gold);
  text-align: left;
  border-bottom: 1px solid rgba(242, 239, 230, .24);
  white-space: nowrap;
}
.data-table td {
  padding: 12px;
  color: var(--paper);
  border-bottom: 1px solid rgba(242, 239, 230, .1);
  vertical-align: top;
}
.data-table tbody tr { transition: background .2s var(--ease); }
.data-table tbody tr:hover { background: rgba(87, 215, 232, .07); }

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 132px);
  overflow: hidden;
  background: linear-gradient(180deg, var(--ink) 0%, #050E16 100%);
  border-top: 1px solid rgba(242, 239, 230, .14);
  color: var(--paper);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold) 24%, rgba(87, 215, 232, .5) 52%, rgba(87, 215, 232, 0) 100%);
}

.site-footer::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -12%;
  width: 58vmax;
  height: 58vmax;
  background: radial-gradient(circle, rgba(87, 215, 232, .13) 0%, rgba(87, 215, 232, 0) 62%);
  pointer-events: none;
}

.footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.7fr) minmax(0, 1.1fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
  max-width: 1320px;
  margin-inline: auto;
  padding: clamp(48px, 6vw, 88px) var(--gutter) clamp(36px, 4vw, 56px);
}

.footer__brand { display: grid; gap: 14px; }

.footer__wordmark {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.footer__tagline {
  max-width: 26ch;
  font-size: 14px;
  line-height: 1.75;
  color: var(--mist);
}

.footer__seal {
  justify-self: start;
  margin-top: 4px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--mist);
  border: 1px solid rgba(242, 239, 230, .24);
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.footer__col { min-width: 0; }

.footer__list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.footer__list a {
  font-size: 15px;
  color: var(--paper);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.footer__list a:hover { color: var(--gold); border-color: var(--gold); }

.footer__contact {
  background: var(--paper);
  color: var(--ink);
  padding: 20px 20px 22px;
  box-shadow: 8px 8px 0 0 rgba(242, 181, 68, .85);
}

.footer__contact-title {
  padding-bottom: 10px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
  border-bottom: 1px solid rgba(7, 19, 31, .2);
}

.footer__contact-item {
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
}
.footer__contact-item + .footer__contact-item { margin-top: 10px; }

.footer__contact-key {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: #6B7A85;
}

.footer__contact-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(7, 19, 31, .22);
  font-size: 12px;
  line-height: 1.65;
  color: #4A5A66;
}

.footer__base {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  padding: 18px var(--gutter) 26px;
  border-top: 1px solid rgba(242, 239, 230, .14);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--mist);
}

.footer__copy { margin: 0; }

.footer__feedback {
  padding-bottom: 2px;
  color: var(--paper);
  border-bottom: 1px solid rgba(242, 181, 68, .6);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.footer__feedback:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- responsive: tablet & mobile ---------- */
@media (max-width: 1080px) {
  .footer__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .footer__contact { grid-column: 1 / -1; max-width: 480px; }
}

@media (max-width: 1023px) {
  .site-header {
    position: sticky;
    top: 0;
    left: auto;
    bottom: auto;
    width: 100%;
    height: 64px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    background: var(--ink);
    border-right: 0;
    border-bottom: 1px solid rgba(242, 239, 230, .14);
  }
  .site-header::before { display: none; }

  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    margin: 0;
    border-bottom: 0;
  }
  .brand__mark { width: 18px; height: 18px; }
  .brand__mark::after { inset: 3px; }
  .brand__name { font-size: 17px; }
  .brand__line { display: none; }

  .nav-toggle { display: inline-flex; }

  .site-header .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(3, 10, 17, .74);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease);
  }
  .site-header[data-open] .nav-scrim { opacity: 1; pointer-events: auto; }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: min(86vw, 360px);
    gap: 24px;
    padding: 84px 24px 32px;
    background: var(--ink-soft);
    border-left: 1px solid rgba(242, 239, 230, .14);
    transform: translateX(102%);
    visibility: hidden;
    transition: transform .34s var(--ease), visibility .34s var(--ease);
  }
  .site-header[data-open] .site-nav {
    transform: translateX(0);
    visibility: visible;
  }

  .site-nav__link { font-size: 16px; padding-block: 11px; }
  .rail__cta { margin-top: 8px; }
  .rail-progress { height: 2px; }
}

@media (max-width: 899px) {
  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__nav { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
  .footer__contact { max-width: none; box-shadow: 6px 6px 0 0 rgba(242, 181, 68, .85); }
  .footer__base { justify-content: flex-start; }
}

@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
