:root {
  --night-blue: #1B2A4A;
  --deep-ink: #0E1728;
  --stand-blue: #26365A;
  --sand-gold: #D9A441;
  --sand-light: #F2CE86;
  --score-cyan: #2FC4B2;
  --signal-red: #E2452F;
  --paper: #F4EFE4;
  --muted: #9AA4B8;
  --clay: #A85A3C;
  --line: rgba(217, 164, 65, .26);
  --line-soft: rgba(244, 239, 228, .12);
  --rail-w: 96px;
  --rail-open: 214px;
  --topbar-h: 76px;
  --gutter: clamp(18px, 3.2vw, 46px);
  --content: 1440px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --font-narrow: "Arial Narrow", "Roboto Condensed", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", "Cascadia Mono", "Roboto Mono", Consolas, monospace;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

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

html {
  background: var(--deep-ink);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-left: var(--rail-w);
  padding-top: var(--topbar-h);
  overflow-x: hidden;
  color: var(--paper);
  background-color: var(--night-blue);
  background-image:
    radial-gradient(ellipse at 82% 6%, rgba(47, 196, 178, .10), transparent 34%),
    radial-gradient(ellipse at 12% 72%, rgba(168, 90, 60, .10), transparent 30%),
    linear-gradient(180deg, #1B2A4A 0%, #16233D 42%, #0E1728 100%);
  background-attachment: fixed;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

::selection {
  color: var(--deep-ink);
  background: var(--sand-light);
}

img {
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--score-cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}

a:hover {
  color: var(--sand-light);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-narrow);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.7rem);
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
}

h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
}

p {
  margin: 0 0 1.1em;
  max-width: 38em;
}

ul,
ol {
  margin-top: 0;
}

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

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 300;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  color: var(--deep-ink);
  background: var(--sand-light);
  border: 1px solid var(--sand-light);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}

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

.site-header {
  position: relative;
  z-index: 80;
}

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--topbar-h);
  padding: 0 clamp(16px, 3vw, 40px);
  background: rgba(14, 23, 40, .94);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: var(--paper);
  text-decoration: none;
}

.brand:hover {
  color: var(--paper);
}

.brand__glyph {
  position: relative;
  display: block;
  flex: none;
  width: 44px;
  height: 34px;
  border: 1px solid var(--sand-gold);
  background: linear-gradient(135deg, rgba(217, 164, 65, .18), rgba(47, 196, 178, .08));
  clip-path: polygon(0 0, 100% 0, 100% 72%, 78% 100%, 0 100%);
}

.brand__glyph::before {
  content: "";
  position: absolute;
  inset: 7px 9px;
  background: repeating-linear-gradient(115deg, var(--sand-gold) 0 2px, transparent 2px 7px);
  opacity: .9;
  transform: skewX(-18deg);
}

.brand__glyph::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 9px;
  width: 16px;
  height: 2px;
  background: var(--score-cyan);
  box-shadow: 0 6px 0 rgba(47, 196, 178, .55);
  transform: rotate(-32deg);
}

.brand__word {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1;
}

.brand__name {
  font-family: var(--font-narrow);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .02em;
  white-space: nowrap;
}

.brand__cn {
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .22em;
  white-space: nowrap;
}

.topbar__session {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  color: var(--muted);
  background: rgba(38, 54, 90, .5);
  border: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  white-space: nowrap;
}

.topbar__session-text {
  color: var(--muted);
}

.session-dot {
  display: block;
  width: 7px;
  height: 7px;
  background: var(--signal-red);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(226, 69, 47, .12);
  animation: session-pulse 2.2s infinite;
}

@keyframes session-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: .55;
    transform: scale(.82);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  --btn-line: var(--sand-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 18px;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-line);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .02em;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}

.btn:hover {
  --btn-line: var(--score-cyan);
  color: var(--sand-light);
  background: rgba(47, 196, 178, .08);
}

.btn--primary {
  --btn-bg: var(--sand-gold);
  --btn-fg: var(--deep-ink);
  --btn-line: var(--sand-gold);
  font-weight: 800;
}

.btn--primary:hover {
  --btn-bg: var(--sand-light);
  --btn-line: var(--sand-light);
  color: var(--deep-ink);
  background: var(--sand-light);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  --btn-line: var(--line);
}

.btn--sm {
  min-height: 36px;
  padding: 0 13px;
  font-size: 12px;
}

.btn--block {
  width: 100%;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 44px;
  height: 44px;
  padding: 9px;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--sand-gold);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px 0;
  background: currentColor;
  transition: transform .24s var(--ease), opacity .24s var(--ease);
}

.site-header[data-open] .nav-toggle__bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header[data-open] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.site-header[data-open] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.scroll-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--score-cyan), var(--sand-gold), var(--signal-red));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .1s linear;
}

.rail {
  position: fixed;
  top: var(--topbar-h);
  bottom: 0;
  left: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: var(--rail-w);
  padding: 24px 0 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #111D33 0%, #0E1728 55%, #1B2A4A 100%);
  border-right: 1px solid var(--line-soft);
  transition: width .35s var(--ease), box-shadow .35s var(--ease);
}

.rail::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: repeating-linear-gradient(180deg, var(--sand-gold) 0 10px, transparent 10px 20px);
  opacity: .7;
}

.rail:hover,
.rail:focus-within {
  width: var(--rail-open);
  box-shadow: 16px 0 36px rgba(0, 0, 0, .3);
}

.rail__inner {
  padding-top: 6px;
}

.rail__eyebrow {
  margin: 0 0 18px 30px;
  color: var(--clay);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .16em;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  transition: opacity .2s var(--ease);
}

.rail:hover .rail__eyebrow,
.rail:focus-within .rail__eyebrow {
  opacity: 0;
}

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 12px;
}

.rail-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 10px;
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}

.rail-nav__link:hover,
.rail-nav__link[aria-current="page"] {
  color: var(--paper);
  background: linear-gradient(90deg, rgba(217, 164, 65, .14), transparent);
  border-left-color: var(--sand-gold);
}

.rail-nav__link[aria-current="page"] .rail-nav__index {
  color: var(--sand-light);
}

.rail-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 14px;
  width: 6px;
  height: 6px;
  background: var(--score-cyan);
  transform: rotate(45deg);
}

.rail-nav__index {
  flex: none;
  width: 34px;
  color: var(--sand-gold);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
}

.rail-nav__label {
  position: absolute;
  left: 56px;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}

.rail:hover .rail-nav__label,
.rail:focus-within .rail-nav__label {
  opacity: 1;
  transform: translateX(0);
}

.rail-meta {
  min-height: 84px;
  margin: 0 10px;
  padding: 14px 8px 0;
  border-top: 1px solid var(--line-soft);
}

.rail-meta__label {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-meta__value {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: var(--sand-light);
  font-family: var(--font-mono);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.season-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--score-cyan);
  font-size: 11px;
  white-space: nowrap;
}

.season-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--score-cyan);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(47, 196, 178, .14);
  animation: chip-pulse 2.4s infinite;
}

@keyframes chip-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: .45;
  }
}

.nav-scrim {
  display: none;
  position: fixed;
  inset: var(--topbar-h) 0 0 0;
  z-index: 88;
  background: rgba(14, 23, 40, .72);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s var(--ease), visibility .28s var(--ease);
}

.page-shell {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 72px) var(--gutter);
}

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

#main-content {
  display: block;
  min-height: 60vh;
}

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

.span-4 {
  grid-column: span 4;
}

.span-6 {
  grid-column: span 6;
}

.span-8 {
  grid-column: span 8;
}

.span-12 {
  grid-column: span 12;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 28px;
  margin-bottom: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--sand-gold);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

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

.display {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.lede {
  max-width: 36em;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.8;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  list-style: none;
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs__item:not(:last-child)::after {
  content: "/";
  color: var(--clay);
}

.breadcrumbs__link {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs__link:hover {
  color: var(--paper);
}

.media-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--stand-blue), var(--deep-ink));
  border: 1px solid var(--line-soft);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant, 18px)), calc(100% - var(--slant, 18px)) 100%, 0 100%);
}

.media-frame--slant {
  clip-path: polygon(var(--slant, 18px) 0, 100% 0, 100% 100%, 0 100%, 0 var(--slant, 18px));
}

.media-frame--ratio-16x9 {
  aspect-ratio: 16 / 9;
}

.media-frame--ratio-4x5 {
  aspect-ratio: 4 / 5;
}

.media-frame--ratio-1x1 {
  aspect-ratio: 1 / 1;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 52%, rgba(14, 23, 40, .68));
  pointer-events: none;
}

.media-frame__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame__caption {
  position: absolute;
  right: 14px;
  bottom: 12px;
  left: 14px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 12px;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
}

.data-strip {
  display: flex;
  overflow-x: auto;
  background: rgba(38, 54, 90, .34);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  scrollbar-color: var(--sand-gold) var(--deep-ink);
}

.data-strip__item {
  flex: 1 0 min(240px, 70vw);
  padding: 14px 18px;
  border-right: 1px solid var(--line-soft);
}

.data-strip__item:last-child {
  border-right: 0;
}

.data-strip__label {
  display: block;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
}

.data-strip__value {
  display: block;
  margin-top: 4px;
  color: var(--sand-light);
  font-family: var(--font-mono);
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  line-height: 1;
}

.tick-scale {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  min-height: 54px;
  padding: 10px 2px 8px;
  overflow-x: auto;
  background: repeating-linear-gradient(90deg, transparent 0 27px, rgba(217, 164, 65, .16) 27px 28px);
  border-bottom: 1px solid var(--line);
}

.tick-scale__item {
  position: relative;
  flex: 0 0 auto;
  min-width: 36px;
  padding-top: 18px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  text-align: center;
}

.tick-scale__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 10px;
  background: var(--line);
}

.tick-scale__item[aria-current="true"] {
  color: var(--sand-light);
}

.expand-group {
  border-top: 1px solid var(--line-soft);
}

.expand-group:last-child {
  border-bottom: 1px solid var(--line-soft);
}

.expand-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 18px 0 18px 18px;
  color: var(--paper);
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 700;
  text-align: left;
}

.expand-trigger::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 2px;
  background: transparent;
  transition: background-color .2s var(--ease);
}

.expand-trigger[aria-expanded="true"]::before {
  background: var(--sand-gold);
}

.expand-trigger__icon {
  flex: none;
  color: var(--sand-gold);
  font-family: var(--font-mono);
  transition: transform .22s var(--ease);
}

.expand-trigger[aria-expanded="true"] .expand-trigger__icon {
  transform: rotate(90deg);
}

.expand-panel {
  padding: 0 0 20px 18px;
  color: var(--muted);
  border-left: 2px solid var(--sand-gold);
}

.expand-panel[hidden] {
  display: none;
}

.site-footer {
  position: relative;
  overflow: hidden;
  color: var(--muted);
  background: var(--deep-ink);
  border-top: 1px solid var(--line);
}

.footer__ruler {
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--sand-gold) 0 2px, transparent 2px 28px);
  opacity: .6;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(140px, .6fr));
  gap: clamp(24px, 4vw, 64px);
  max-width: var(--content);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 72px) var(--gutter) 28px;
}

.footer__brand {
  min-width: 0;
}

.footer__brand-link {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--paper);
  text-decoration: none;
}

.footer__brand-link:hover {
  color: var(--paper);
}

.footer__mark {
  color: var(--paper);
  font-family: var(--font-narrow);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1;
}

.footer__mark span {
  color: var(--sand-gold);
}

.footer__submark {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
}

.footer__tagline {
  max-width: 28em;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.footer__meta {
  margin: 0;
  color: var(--sand-light);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.8;
}

.footer__meta span {
  color: var(--muted);
}

.footer__col {
  min-width: 0;
}

.footer__title {
  margin: 0 0 16px;
  color: var(--sand-gold);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.footer__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__link {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer__link:hover,
.footer__link[aria-current="page"] {
  color: var(--paper);
  border-bottom-color: var(--score-cyan);
}

.footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  max-width: var(--content);
  margin: 0 auto;
  padding: 22px var(--gutter);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.footer__contact-line {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.footer__contact-key {
  margin-right: 8px;
  color: var(--clay);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  max-width: var(--content);
  margin: 0 auto;
  padding: 18px var(--gutter) 30px;
}

.footer__copy,
.footer__legal,
.footer__note {
  margin: 0;
  font-size: 11px;
  line-height: 1.8;
}

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

.footer__note {
  max-width: 46em;
  margin-left: auto;
  color: var(--muted);
}

@media (max-width: 1180px) {
  .topbar__session {
    display: none;
  }

  .footer__grid {
    grid-template-columns: minmax(240px, 1.2fr) repeat(3, minmax(120px, .6fr));
  }
}

@media (max-width: 960px) {
  :root {
    --topbar-h: 64px;
  }

  body {
    padding-left: 0;
    padding-top: var(--topbar-h);
  }

  .topbar {
    gap: 10px;
    height: var(--topbar-h);
    padding: 0 16px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-actions .btn--ghost {
    display: none;
  }

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

  .rail {
    top: var(--topbar-h);
    width: min(86vw, 340px);
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-105%);
    box-shadow: 24px 0 60px rgba(0, 0, 0, .4);
    transition: transform .32s var(--ease), visibility .32s var(--ease), width .32s var(--ease);
  }

  .rail:hover,
  .rail:focus-within {
    width: min(86vw, 340px);
  }

  .site-header[data-open] .rail {
    width: min(86vw, 340px);
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  .rail__eyebrow {
    opacity: 0;
  }

  .rail-nav {
    padding: 0 16px;
  }

  .rail-nav__link {
    min-height: 50px;
  }

  .rail-nav__label {
    position: static;
    margin-left: 14px;
    opacity: 1;
    transform: none;
  }

  .rail-nav__link[aria-current="page"]::after {
    right: 10px;
  }

  .rail-meta {
    margin: 0 16px;
    padding: 14px 0 0;
  }

  .rail-meta__value {
    font-size: 12px;
  }

  .nav-scrim {
    display: block;
  }

  .site-header[data-open] .nav-scrim {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .display {
    font-size: clamp(2rem, 9vw, 3.2rem);
  }

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

  .span-4,
  .span-6,
  .span-8 {
    grid-column: span 6;
  }

  .span-12 {
    grid-column: 1 / -1;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer__bottom {
    align-items: flex-start;
  }

  .footer__note {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .brand {
    gap: 10px;
  }

  .brand__glyph {
    width: 38px;
    height: 30px;
  }

  .brand__name {
    font-size: 19px;
  }

  .brand__cn {
    display: none;
  }

  .header-actions .btn--primary {
    min-height: 34px;
    padding: 0 9px;
    font-size: 11px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__brand {
    grid-column: auto;
  }

  .footer__contact {
    display: grid;
    gap: 8px;
  }

  .footer__bottom {
    display: grid;
    gap: 8px;
  }
}

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

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