/* ============================================================
   安博体育入口 · 全站共享样式 /assets/site.css
   冰城数据室：墨蓝取景窗 + 品牌轨道 + 等宽索引
   ============================================================ */

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

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

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

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

a { color: inherit; }

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

button { font: inherit; color: inherit; }

[hidden] { display: none !important; }

/* ---------- tokens ---------- */
:root {
  --ink-950: #0A1120;
  --ink-900: #0D1628;
  --ink-800: #131F33;
  --ink-700: #1B2A43;
  --steel-600: #3A4A62;
  --silver-300: #A9B8CB;
  --paper-100: #F3F1EC;
  --brand-500: #FF5A2B;
  --ember-600: #D63A16;
  --clay-400: #C4835E;
  --field-500: #5FA36B;
  --ice-300: #8FD8E6;
  --amber-400: #F2B33D;

  --font-sans: "HarmonyOS Sans SC", "Noto Sans SC", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --rail-w: 84px;
  --topbar-h: 64px;
  --shell-max: 1440px;
  --gutter: clamp(18px, 3.4vw, 56px);

  --hair: rgba(58, 74, 98, 0.55);
  --hair-soft: rgba(58, 74, 98, 0.32);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 200ms;
}

@media (max-width: 900px) {
  :root {
    --rail-w: 0px;
    --topbar-h: 56px;
    --gutter: clamp(16px, 5vw, 32px);
  }
}

/* ---------- base typography ---------- */
body {
  min-height: 100vh;
  padding: var(--topbar-h) 0 0 var(--rail-w);
  background-color: var(--ink-950);
  background-image:
    radial-gradient(1100px 600px at 82% -8%, rgba(255, 90, 43, 0.10), transparent 60%),
    radial-gradient(880px 520px at 0% 4%, rgba(143, 216, 230, 0.06), transparent 58%),
    repeating-linear-gradient(0deg, rgba(58, 74, 98, 0.15) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(90deg, rgba(58, 74, 98, 0.11) 0 1px, transparent 1px 72px);
  color: var(--paper-100);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.22;
  color: var(--paper-100);
}

h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.16; }
h2 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.3; }
h3 { font-size: clamp(18px, 1.8vw, 20px); line-height: 1.4; letter-spacing: -0.01em; }

p { text-wrap: pretty; }

::selection {
  background: var(--brand-500);
  color: var(--ink-950);
}

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

#main-content { display: block; }

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: -90px;
  left: 14px;
  z-index: 120;
  padding: 12px 20px;
  background: var(--brand-500);
  color: var(--ink-950);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: top 140ms var(--ease);
}

.skip-link:focus {
  top: 14px;
  outline: 2px solid var(--ice-300);
  outline-offset: 3px;
}

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

.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(28px, 4vw, 56px); }

.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-300);
}

.section-label::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--hair);
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-500);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.btn--sm {
  padding: 8px 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.btn--primary {
  background: var(--brand-500);
  color: var(--ink-950);
  border-color: var(--brand-500);
}

.btn--primary:hover {
  background: var(--ember-600);
  border-color: var(--ember-600);
  color: var(--paper-100);
}

.btn--ghost {
  border-color: rgba(169, 184, 203, 0.34);
  color: var(--paper-100);
}

.btn--ghost:hover {
  border-color: var(--brand-500);
  color: var(--brand-500);
}

/* ---------- breadcrumbs ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--silver-300);
}

.crumbs__link {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.crumbs__link:hover {
  color: var(--brand-500);
  border-color: currentColor;
}

.crumbs__sep {
  color: var(--steel-600);
  font-family: var(--font-mono);
  font-size: 11px;
}

.crumbs__current {
  color: var(--paper-100);
  font-weight: 600;
}

/* ---------- tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--hair);
  color: var(--silver-300);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.tag--brand { color: var(--brand-500); border-color: rgba(255, 90, 43, 0.45); }
.tag--field { color: var(--field-500); border-color: rgba(95, 163, 107, 0.45); }
.tag--ice { color: var(--ice-300); border-color: rgba(143, 216, 230, 0.4); }

/* ---------- media frames ---------- */
.media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hair);
  background-color: var(--ink-800);
  background-image:
    linear-gradient(150deg, rgba(143, 216, 230, 0.14), transparent 48%),
    linear-gradient(320deg, rgba(255, 90, 43, 0.16), transparent 56%),
    repeating-linear-gradient(0deg, rgba(169, 184, 203, 0.07) 0 1px, transparent 1px 7px);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(10, 17, 32, 0.55), transparent 40%),
    repeating-linear-gradient(90deg, rgba(58, 74, 98, 0.28) 0 1px, transparent 1px 56px);
}

.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.06);
}

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }

.media--cut {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 36px), calc(100% - 36px) 100%, 0 100%);
}

.media__tag {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 6px 12px;
  background: var(--ink-950);
  border-top: 1px solid var(--hair);
  border-right: 1px solid var(--hair);
  color: var(--ice-300);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

/* ---------- prose ---------- */
.prose {
  max-width: 72ch;
  color: #DCE3EC;
  font-size: 16px;
  line-height: 1.85;
}

.prose > * + * { margin-top: 1.1em; }

.prose h2 {
  margin-top: 1.9em;
  padding-top: 0.7em;
  border-top: 1px solid var(--hair);
}

.prose h3 { margin-top: 1.6em; }

.prose ul {
  list-style: none;
  padding-left: 0;
}

.prose li {
  position: relative;
  padding-left: 20px;
}

.prose li + li { margin-top: 0.5em; }

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 1px;
  background: var(--brand-500);
}

.prose a {
  color: var(--ice-300);
  text-decoration: none;
  border-bottom: 1px solid rgba(143, 216, 230, 0.45);
}

.prose a:hover { color: var(--brand-500); border-color: currentColor; }

/* ---------- tabs protocol ---------- */
.tabs { position: relative; }

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--hair);
  margin-bottom: 24px;
}

.tabs__tab {
  position: relative;
  padding: 12px 16px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--silver-300);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

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

.tabs__tab[aria-selected="true"] {
  color: var(--brand-500);
  border-bottom-color: var(--brand-500);
}

.tabs__panel { padding-top: 4px; }

/* ---------- reveal ---------- */
html.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  clip-path: inset(0 0 12% 0);
  transition:
    opacity 320ms var(--ease),
    transform 320ms var(--ease),
    clip-path 420ms var(--ease);
}

html.js-ready [data-reveal].is-in {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0);
}

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

/* ---------- brand rail ---------- */
.rail {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 20px 0 18px;
  background-color: var(--ink-900);
  background-image: linear-gradient(180deg, #0C1728 0%, var(--ink-950) 46%, #0B1526 100%);
  border-right: 1px solid var(--hair);
}

.rail::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 6px;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(169, 184, 203, 0.26) 0 1px,
    transparent 1px 12px
  );
}

.rail__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.rail__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--brand-500);
  color: var(--ink-950);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  transition: background-color var(--dur) var(--ease);
}

.rail__logo:hover .rail__mark { background: var(--ember-600); color: var(--paper-100); }

.rail__name {
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--silver-300);
  line-height: 1;
}

.rail__nav {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow-y: auto;
  scrollbar-width: none;
}

.rail__nav::-webkit-scrollbar { display: none; }

.rail__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.rail__item { width: 100%; }

.rail__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 10px 0;
  color: var(--silver-300);
  text-decoration: none;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.rail__num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(169, 184, 203, 0.48);
  transition: color var(--dur) var(--ease);
}

.rail__text {
  writing-mode: vertical-rl;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
}

.rail__link:hover {
  color: var(--paper-100);
  background: rgba(58, 74, 98, 0.22);
}

.rail__link:hover .rail__num { color: var(--brand-500); }

.rail__link[aria-current="page"] {
  color: var(--brand-500);
  background: rgba(255, 90, 43, 0.08);
}

.rail__link[aria-current="page"] .rail__num { color: var(--brand-500); }

.rail__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 4px;
  width: 2px;
  background: var(--brand-500);
}

.rail__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--hair);
  width: 56px;
}

.rail__version {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(169, 184, 203, 0.62);
}

.rail__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--field-500);
  box-shadow: 0 0 0 3px rgba(95, 163, 107, 0.18);
}

/* ---------- topbar ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  z-index: 50;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 18px;
  padding-inline: var(--gutter);
  background: rgba(10, 17, 32, 0.84);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  border-bottom: 1px solid var(--hair);
}

.topbar__brand {
  display: none;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.topbar__brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--brand-500);
  color: var(--ink-950);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}

.topbar__brand-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--paper-100);
  white-space: nowrap;
}

.topbar__tagline {
  margin-right: auto;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--silver-300);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__version {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ice-300);
  border: 1px solid rgba(143, 216, 230, 0.3);
  padding: 3px 8px;
  white-space: nowrap;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- nav toggle ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: transparent;
  border: 1px solid var(--hair);
  color: var(--paper-100);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  border-color: var(--brand-500);
  color: var(--brand-500);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: background-color var(--dur) var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease);
}

.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }

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

/* ---------- scrim ---------- */
.nav-scrim {
  position: fixed;
  top: var(--topbar-h);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 55;
  display: none;
  background: rgba(6, 11, 20, 0.68);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--ease);
}

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

/* ---------- scroll meter ---------- */
.scroll-meter {
  position: fixed;
  top: var(--topbar-h);
  left: var(--rail-w);
  right: 0;
  z-index: 51;
  height: 2px;
  background: rgba(58, 74, 98, 0.4);
}

.scroll-meter__fill {
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--ember-600), var(--brand-500) 58%, var(--amber-400));
  transition: transform 80ms linear;
}

/* ============================================================
   footer
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 120px);
  background-color: var(--ink-800);
  background-image:
    radial-gradient(720px 340px at 90% 0%, rgba(255, 90, 43, 0.12), transparent 66%),
    linear-gradient(180deg, #152339 0%, var(--ink-900) 62%, var(--ink-950) 100%);
  border-top: 1px solid var(--hair);
  color: var(--silver-300);
  font-size: 14px;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 90, 43, 0.6) 0 1px,
    transparent 1px 16px
  );
  opacity: 0.55;
}

.footer__inner {
  padding-block: clamp(40px, 5vw, 72px) 0;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.15fr 1.5fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  padding-bottom: clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--hair);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--brand-500);
  color: var(--ink-950);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.footer__name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--paper-100);
  line-height: 1.2;
}

.footer__tagline {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--brand-500);
}

.footer__intro {
  max-width: 36ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--silver-300);
}

.footer__status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--field-500);
}

.footer__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(95, 163, 107, 0.18);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 20px;
}

.footer__col-title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hair);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-100);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer__link {
  display: inline-block;
  color: var(--silver-300);
  font-size: 14px;
  text-decoration: none;
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}

.footer__link:hover {
  color: var(--brand-500);
  padding-left: 6px;
}

.footer__contact {
  display: flex;
  flex-direction: column;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-item__label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(169, 184, 203, 0.7);
}

.contact-item__value {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--paper-100);
  word-break: break-word;
}

.footer__note {
  margin-top: 14px;
  padding-left: 10px;
  border-left: 2px solid var(--clay-400);
  font-size: 12px;
  line-height: 1.7;
  color: rgba(169, 184, 203, 0.78);
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  padding-block: 18px 26px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(169, 184, 203, 0.72);
}

.footer__copy {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.footer__icp {
  font-family: var(--font-mono);
  color: var(--silver-300);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-left: auto;
}

.footer__legal-link {
  color: var(--silver-300);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.footer__legal-link:hover {
  color: var(--brand-500);
  border-color: currentColor;
}

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 1100px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__contact { grid-column: 1 / -1; }
  .footer__note { max-width: 62ch; }
}

@media (max-width: 900px) {
  html.nav-open,
  html.nav-open body {
    overflow: hidden;
    touch-action: none;
  }

  .rail {
    width: min(86vw, 320px);
    align-items: stretch;
    gap: 16px;
    padding: 18px 20px 24px;
    border-right: 1px solid rgba(58, 74, 98, 0.75);
    box-shadow: 32px 0 90px rgba(0, 0, 0, 0.5);
    transform: translateX(-102%);
    transition: transform 240ms var(--ease);
    overflow-y: auto;
  }

  .rail::before { display: none; }

  .site-header[data-open] .rail { transform: translateX(0); }

  .rail__logo {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--hair);
  }

  .rail__mark { width: 34px; height: 34px; font-size: 13px; }

  .rail__name {
    writing-mode: horizontal-tb;
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--paper-100);
    font-weight: 700;
  }

  .rail__nav {
    flex: 0 1 auto;
    overflow: visible;
    width: auto;
  }

  .rail__list {
    align-items: stretch;
    gap: 0;
  }

  .rail__link {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    width: auto;
    padding: 14px 4px;
    border-bottom: 1px solid var(--hair-soft);
  }

  .rail__num {
    width: 24px;
    font-size: 11px;
    flex: 0 0 auto;
  }

  .rail__text {
    writing-mode: horizontal-tb;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  .rail__link[aria-current="page"]::before {
    top: 0;
    bottom: 0;
    left: -20px;
    width: 2px;
  }

  .rail__foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: auto;
    margin-top: auto;
    padding-top: 16px;
  }

  .rail__version {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 11px;
  }

  .topbar {
    left: 0;
    justify-content: space-between;
    gap: 12px;
    padding-inline: 16px;
  }

  .topbar__brand { display: inline-flex; }
  .topbar__tagline { display: none; }
  .topbar__version { display: none; }
  .topbar__actions { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-scrim { display: block; }

  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .footer__contact { grid-column: auto; }
}

@media (max-width: 720px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__legal { margin-left: 0; width: 100%; }
  .footer__base { gap: 8px 18px; }
}

@media (max-width: 480px) {
  .footer__cols { grid-template-columns: 1fr; }
  .topbar__brand-name { font-size: 13px; }
  .nav-toggle__label { display: none; }
  .nav-toggle { padding: 10px; }
}

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

  html.js-ready [data-reveal] {
    opacity: 1;
    transform: none;
    clip-path: none;
  }

  .scroll-meter__fill { transition: none; }

  .rail { transition: none; }
}
