:root {
  --green: #0B3D2E;
  --green-deep: #082A1F;
  --moss: #155041;
  --red: #E63946;
  --red-lift: #FF6B6B;
  --gold: #F4A261;
  --gold-shallow: #FFD9B4;
  --night: #1D3557;
  --paper: #F7F4EC;
  --sand: #D9D2C2;
  --mist: #A9C0B4;

  --rail-w: clamp(78px, 6.4vw, 104px);
  --topbar-h: 62px;
  --content-max: 1180px;
  --gutter: clamp(18px, 3.6vw, 52px);

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

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

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--green);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .01em;
  padding-left: var(--rail-w);
  padding-top: var(--topbar-h);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(244, 162, 97, .10), transparent 60%),
    radial-gradient(90% 70% at 0% 100%, rgba(29, 53, 87, .34), transparent 62%);
  z-index: 0;
}

h1, h2, h3, h4, p, ul, ol, dl, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }

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

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

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  transform: translateY(-180%);
  background: var(--gold);
  color: var(--green-deep);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  padding: 11px 18px;
  border-radius: 10px;
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- header shell ---------- */
.site-header { position: relative; z-index: 60; }

/* ---------- left brand rail ---------- */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 8px 14px;
  background: linear-gradient(180deg, var(--green-deep) 0%, var(--green) 52%, #061d15 100%);
  border-right: 1px solid rgba(169, 192, 180, .22);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  z-index: 80;
}
.rail::-webkit-scrollbar { width: 0; }

.rail-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 4px 0 12px;
  border-bottom: 1px solid rgba(244, 162, 97, .32);
  text-decoration: none;
}
.rail-brand__zh {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: .16em;
  color: var(--paper);
}
.rail-brand__en {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .3em;
  color: var(--gold);
  text-transform: uppercase;
}
.rail-brand:hover .rail-brand__zh { color: var(--gold-shallow); }

.rail-search {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 0 16px;
}

.needle {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: rgba(21, 80, 65, .72);
  border: 1px solid rgba(244, 162, 97, .55);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .34), inset 0 0 0 6px rgba(11, 61, 46, .5);
  transition: border-color .22s var(--ease), background .22s var(--ease), transform .22s var(--ease);
}
.needle:hover { border-color: var(--gold); background: rgba(244, 162, 97, .2); transform: translateY(-2px); }
.needle__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(230, 57, 70, .22);
}
.needle__dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, rgba(244, 162, 97, .85), rgba(244, 162, 97, 0));
  transform: translate(-50%, -50%) rotate(24deg);
}
.needle__label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .24em;
  color: var(--mist);
  text-transform: uppercase;
}

/* ---------- needle query panel ---------- */
.needle-panel {
  position: fixed;
  top: calc(var(--topbar-h) + 16px);
  left: calc(var(--rail-w) + 18px);
  width: min(440px, calc(100vw - var(--rail-w) - 40px));
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(8, 42, 31, .97);
  border: 1px solid rgba(244, 162, 97, .34);
  box-shadow: 0 28px 72px rgba(0, 0, 0, .55);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-14px) scale(.98);
  transform-origin: left top;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s var(--ease);
  z-index: 150;
}
.needle-panel[data-open] { opacity: 1; visibility: visible; transform: none; }
.needle-panel__hint {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.needle-panel__field {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--paper);
  background: rgba(21, 80, 65, .6);
  border: 1px solid rgba(169, 192, 180, .3);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.needle-panel__field::placeholder { color: rgba(169, 192, 180, .72); }
.needle-panel__field:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(244, 162, 97, .2); }
.needle-panel__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.needle-chip {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  text-decoration: none;
  color: var(--paper);
  background: rgba(21, 80, 65, .78);
  border: 1px solid rgba(169, 192, 180, .28);
  border-radius: 999px;
  padding: 8px 14px;
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.needle-chip:hover { border-color: var(--gold); background: rgba(244, 162, 97, .2); color: var(--gold-shallow); }
.needle-chip[hidden] { display: none; }
.needle-panel__empty {
  margin-top: 12px;
  font-size: 13px;
  color: var(--mist);
}
.needle-panel__empty[hidden] { display: none; }

/* ---------- vertical navigation ---------- */
.rail-nav {
  width: 100%;
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}
.rail-nav__close { display: none; }
.rail-nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.rail-nav__item { list-style: none; }
.rail-nav__link {
  display: block;
  writing-mode: vertical-rl;
  text-orientation: upright;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--mist);
  padding: 11px 9px;
  border-radius: 10px;
  background: transparent;
  transition: color .2s var(--ease), background .2s var(--ease), box-shadow .24s var(--ease);
}
.rail-nav__link:hover { color: var(--paper); background: rgba(244, 162, 97, .16); }
.rail-nav__link[aria-current="page"] {
  color: var(--green-deep);
  background: var(--gold);
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(244, 162, 97, .3);
}

.rail-foot {
  display: flex;
  justify-content: center;
  padding-top: 10px;
  width: 100%;
}
.rail-cta {
  display: inline-block;
  writing-mode: vertical-rl;
  text-orientation: upright;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
  color: var(--red-lift);
  border: 1px solid rgba(255, 107, 107, .55);
  border-radius: 999px;
  padding: 12px 9px;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.rail-cta:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- mobile nav toggle ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  color: var(--gold-shallow);
  background: rgba(244, 162, 97, .14);
  border: 1px solid rgba(244, 162, 97, .5);
  border-radius: 999px;
  padding: 9px 14px;
}
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .24s var(--ease), top .24s var(--ease), opacity .2s var(--ease);
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* ---------- top bar ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 var(--gutter);
  background: rgba(8, 42, 31, .84);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(169, 192, 180, .18);
  z-index: 70;
}
.topbar__coord {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--mist);
  text-transform: uppercase;
  white-space: nowrap;
}
.topbar__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  height: 3px;
  background: rgba(169, 192, 180, .16);
  z-index: 90;
}
.progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--gold) 0%, var(--red) 78%, var(--red-lift) 100%);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn--solid { background: var(--red); color: #fff; }
.btn--solid:hover { background: var(--red-lift); transform: translateY(-1px); }
.btn--ghost {
  background: rgba(21, 80, 65, .45);
  border-color: rgba(244, 162, 97, .6);
  color: var(--gold-shallow);
}
.btn--ghost:hover { border-color: var(--gold); background: rgba(244, 162, 97, .2); color: var(--paper); }
.btn--gold { background: var(--gold); color: var(--green-deep); }
.btn--gold:hover { background: var(--gold-shallow); }

/* ---------- layout ---------- */
.page-shell {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: clamp(26px, 4.6vw, 60px) var(--gutter) clamp(48px, 7vw, 96px);
}
.section { margin-top: clamp(40px, 6vw, 88px); }
.section--tight { margin-top: clamp(20px, 3vw, 40px); }

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}
.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)); }
.grid--split { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }

/* ---------- typography ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 3.4vw, 42px);
  line-height: 1.28;
  letter-spacing: -.01em;
  color: var(--paper);
}
.section-title--paper { color: var(--green-deep); }
.lede {
  margin-top: 14px;
  max-width: 70ch;
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--mist);
}
.figure-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--red);
}
.figure-num--gold { color: var(--gold); }
.figure-num--night { color: var(--night); }
.note {
  margin: 18px 0;
  padding: 4px 0 4px 16px;
  border-left: 4px solid var(--gold);
  color: var(--gold-shallow);
  font-size: 15px;
}
.note--red { border-left-color: var(--red-lift); color: var(--red-lift); }
.divider {
  height: 1px;
  border: 0;
  background: rgba(169, 192, 180, .24);
  margin: clamp(28px, 4vw, 56px) 0;
}
.tick-list { display: grid; gap: 10px; }
.tick-list li { position: relative; padding-left: 20px; }
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .74em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- tags & breadcrumb ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(244, 162, 97, .16);
  border: 1px solid rgba(244, 162, 97, .38);
  color: var(--gold);
}
.tag--red {
  background: rgba(230, 57, 70, .16);
  border-color: rgba(255, 107, 107, .45);
  color: var(--red-lift);
}
.tag--night {
  background: rgba(29, 53, 87, .55);
  border-color: rgba(169, 192, 180, .34);
  color: var(--gold-shallow);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--mist);
  margin-bottom: 18px;
}
.breadcrumb__item { text-decoration: none; color: inherit; }
.breadcrumb__item:hover { color: var(--gold); }
.breadcrumb__sep { color: rgba(169, 192, 180, .5); }

/* ---------- surfaces ---------- */
.glass-card {
  position: relative;
  border-radius: var(--radius);
  padding: clamp(18px, 2.6vw, 28px);
  background: rgba(21, 80, 65, .55);
  border: 1px solid rgba(169, 192, 180, .22);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  box-shadow: 0 18px 44px rgba(4, 20, 14, .34);
  transition: border-color .24s var(--ease), transform .24s var(--ease), background .24s var(--ease);
}
.glass-card:hover { border-color: rgba(244, 162, 97, .5); transform: translateY(-3px); }
.panel {
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 34px);
  background: var(--paper);
  color: var(--green-deep);
}
.panel--deep {
  background: var(--green-deep);
  color: var(--paper);
  border: 1px solid rgba(169, 192, 180, .22);
}

/* ---------- media frames ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(140deg, var(--green-deep), var(--moss));
  border: 1px solid rgba(169, 192, 180, .18);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 61, 46, 0) 42%, rgba(8, 42, 31, .74) 100%);
}
.media-frame--bare::after { display: none; }
.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--band { aspect-ratio: 21 / 9; }
.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--mist);
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(48px, 8vw, 110px);
  padding: 0 var(--gutter) 26px;
  background: var(--green-deep);
  color: var(--mist);
  border-top: 1px solid rgba(244, 162, 97, .22);
}

.footer-skyline {
  position: relative;
  height: 72px;
  margin-inline: calc(var(--gutter) * -1);
  overflow: hidden;
}
.footer-skyline::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--green);
  opacity: .8;
  clip-path: polygon(0% 100%, 0% 74%, 6% 62%, 13% 80%, 21% 52%, 30% 74%, 39% 44%, 48% 72%, 57% 58%, 66% 78%, 74% 50%, 83% 74%, 91% 56%, 100% 76%, 100% 100%);
}
.footer-skyline::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  opacity: .42;
  clip-path: polygon(0% 100%, 0% 88%, 18% 76%, 34% 90%, 52% 80%, 68% 92%, 84% 82%, 100% 90%, 100% 100%);
}

.footer-grid {
  max-width: var(--content-max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(230px, 1.5fr) repeat(3, minmax(150px, 1fr));
  gap: clamp(24px, 3vw, 48px);
  padding: clamp(32px, 5vw, 60px) 0 clamp(26px, 4vw, 44px);
}

.footer-brand__mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: -.01em;
  color: var(--paper);
}
.footer-brand__line {
  margin-top: 12px;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--mist);
}
.footer-brand__meta {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--gold);
}

.footer-col__title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.footer-links { display: grid; gap: 9px; }
.footer-links a {
  display: inline-block;
  font-size: 14px;
  text-decoration: none;
  color: var(--mist);
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.footer-links a:hover { color: var(--paper); transform: translateX(3px); }

.footer-contact { display: grid; gap: 12px; }
.footer-contact__item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.footer-contact__key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--mist);
  padding-top: 3px;
}
.footer-contact__val {
  font-size: 14px;
  line-height: 1.72;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.footer-note {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--mist);
}

.footer-bottom {
  max-width: var(--content-max);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid rgba(169, 192, 180, .2);
}
.footer-legal {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--mist);
}

/* ---------- reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- desktop compact rail ---------- */
@media (min-width: 881px) and (max-height: 880px) {
  .rail { gap: 8px; padding: 12px 8px 10px; }
  .rail-brand { padding-bottom: 8px; }
  .rail-brand__zh { font-size: 15px; }
  .rail-nav__list { gap: 4px; }
  .rail-nav__link { font-size: 13px; padding: 7px 8px; letter-spacing: .08em; }
  .rail-cta { font-size: 11px; padding: 9px 8px; }
  .needle { width: 44px; height: 44px; }
}

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 980px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(220px, 1.4fr) repeat(2, minmax(150px, 1fr)); }
}

/* ---------- mobile ---------- */
@media (max-width: 880px) {
  :root { --rail-w: 0px; }

  body { padding-left: 0; padding-top: 108px; }

  .rail {
    inset: 0 0 auto 0;
    width: 100%;
    height: 56px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 0 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(169, 192, 180, .22);
    overflow: visible;
    background: var(--green-deep);
  }
  .rail-brand {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: auto;
    padding: 0;
    border-bottom: 0;
  }
  .rail-brand__zh {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    font-size: 16px;
    letter-spacing: .06em;
  }
  .rail-brand__en { display: none; }

  .rail-search { margin-left: auto; flex-direction: row; padding: 0; }
  .needle { width: 38px; height: 38px; box-shadow: none; }
  .needle__dot { width: 7px; height: 7px; box-shadow: 0 0 0 4px rgba(230, 57, 70, .22); }
  .needle__dot::after { display: none; }
  .needle__label { display: none; }

  .rail-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(320px, 84vw);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 22px 22px 34px;
    background: linear-gradient(180deg, var(--green-deep), #061d15);
    border-left: 1px solid rgba(244, 162, 97, .28);
    box-shadow: -22px 0 60px rgba(0, 0, 0, .5);
    transform: translateX(102%);
    visibility: hidden;
    overflow-y: auto;
    transition: transform .3s var(--ease), visibility .3s var(--ease);
    z-index: 120;
  }
  [data-nav][data-open] { transform: translateX(0); visibility: visible; }

  .rail-nav__close {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 16px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    color: var(--mist);
    background: transparent;
    border: 1px solid rgba(169, 192, 180, .4);
    border-radius: 999px;
    padding: 8px 16px;
  }
  .rail-nav__list { align-items: stretch; gap: 6px; }
  .rail-nav__link {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    font-size: 16px;
    letter-spacing: .08em;
    padding: 13px 16px;
    border-radius: 12px;
    background: rgba(21, 80, 65, .5);
  }
  .rail-nav__link[aria-current="page"] { background: var(--gold); color: var(--green-deep); }

  .rail-foot { display: none; }
  .nav-toggle { display: inline-flex; flex: 0 0 auto; }

  .needle-panel {
    top: 108px;
    left: 12px;
    right: 12px;
    width: auto;
    transform: translateY(-10px) scale(.99);
    transform-origin: center top;
  }

  .topbar {
    top: 56px;
    left: 0;
    height: 52px;
    gap: 10px;
    padding: 0 12px;
  }
  .topbar__coord {
    font-size: 10px;
    letter-spacing: .1em;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .topbar__actions { gap: 8px; }
  .btn { padding: 10px 14px; font-size: 12px; }

  .progress { left: 0; }

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

@media (max-width: 640px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .figure-num { font-size: 40px; }
  .footer-skyline { height: 54px; }
  .topbar__coord { display: none; }
  .topbar__actions { margin-left: 0; width: 100%; justify-content: flex-end; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .glass-card:hover,
  .needle:hover,
  .btn--solid:hover { transform: none; }
}
