/* ============================================================
   米兰安装 / shared site kit
   赛场黑 + 纸白 + 米兰红锚点 / 纵向长卷 + 侧轨导航
   ============================================================ */

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

:root {
  --ink: #0B0B0C;
  --paper: #F7F5F2;
  --red: #D1122A;
  --red-deep: #8E0B1D;
  --blue: #1F6BFF;
  --blue-deep: #1447B8;
  --lime: #B8FF3C;
  --steel: #6E6E73;
  --warm: #D9D4CC;
  --carbon: #1A1A1D;

  --rail-w: 0px;
  --topbar-h: 56px;
  --quick-h: 62px;
  --gutter: clamp(18px, 4vw, 56px);
  --grid-gap: clamp(14px, 2vw, 24px);
  --beat: clamp(60px, 8vw, 128px);
  --line: rgba(11, 11, 12, .12);
  --line-light: rgba(217, 212, 204, .16);
  --ease: cubic-bezier(.2, .7, .3, 1);
  --shadow-soft: 0 2px 8px -4px rgba(11, 11, 12, .18);
  --shadow-float: 0 12px 24px -10px rgba(11, 11, 12, .32);

  --font-display: "Noto Sans SC", "Archivo Black", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (min-width: 1024px) {
  :root {
    --rail-w: clamp(88px, 7vw, 112px);
    --topbar-h: 60px;
  }
}

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

body {
  margin: 0;
  padding-left: var(--rail-w);
  padding-top: var(--topbar-h);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -.022em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 7vw, 6rem); }
h2 { font-size: clamp(1.9rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); letter-spacing: -.012em; }

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

a { color: inherit; }

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

ul, ol { margin: 0; padding: 0; }

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

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

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: calc(var(--rail-w) + 10px);
  z-index: 300;
  padding: .7rem 1.15rem;
  background: var(--red);
  color: #fff;
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-decoration: none;
  border-radius: 2px;
  box-shadow: var(--shadow-float);
  transform: translateY(-180%);
  transition: transform .22s var(--ease);
}
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

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

/* ---------- topbar ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
  height: var(--topbar-h);
  padding: 0 var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.topbar__brandline {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  max-width: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--ink);
}

.topbar__now {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin: 0 0 0 auto;
  max-width: none;
  font-size: .75rem;
  line-height: 1;
  color: var(--steel);
  white-space: nowrap;
}
.topbar__nowkey { letter-spacing: .14em; }
.topbar__nowval {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--red);
}

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: rgba(11, 11, 12, .07);
  overflow: hidden;
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--red) 0%, var(--red) 62%, var(--blue) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .12s linear;
}

/* ---------- nav toggle ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  flex: none;
  margin-left: auto;
  padding: .5rem .75rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  cursor: pointer;
  transition: background-color .18s var(--ease);
}
.nav-toggle:hover { background: var(--red); border-color: var(--red); }
.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 16px;
  height: 12px;
}
.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transform-origin: 50% 50%;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] { background: var(--red); border-color: var(--red); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.nav-toggle__text { line-height: 1; }

/* ---------- rail (desktop track) ---------- */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(10px, 1.6vh, 20px);
  padding: 16px 0 22px;
  background: var(--ink);
  color: var(--paper);
  border-right: 1px solid var(--line-light);
  overflow-y: auto;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }

.rail__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  padding: .25rem .5rem .5rem;
  color: var(--paper);
  text-decoration: none;
}
.rail__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--red);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 900;
  line-height: 1;
  clip-path: polygon(0 0, 100% 8%, 100% 100%, 0 92%);
  transition: transform .22s var(--ease);
}
.rail__brand:hover .rail__mark { transform: translateY(-2px); }
.rail__sign {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .26em;
  color: rgba(247, 245, 242, .82);
}

.rail__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  width: 100%;
}
.rail__item { display: block; }

.rail__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  width: 100%;
  padding: .62rem .25rem;
  color: rgba(247, 245, 242, .6);
  text-decoration: none;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.rail__link:hover { color: var(--paper); background: rgba(247, 245, 242, .06); }
.rail__num {
  font-family: var(--font-mono);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1;
  color: rgba(247, 245, 242, .38);
  transition: color .18s var(--ease);
}
.rail__link:hover .rail__num { color: var(--lime); }
.rail__label {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: .875rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .22em;
}
.rail__link[aria-current="page"] {
  color: var(--paper);
  background: linear-gradient(90deg, rgba(209, 18, 42, .26), rgba(209, 18, 42, 0) 72%);
}
.rail__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8%;
  bottom: 8%;
  width: 3px;
  background: var(--red);
}
.rail__link[aria-current="page"] .rail__num { color: var(--lime); }

.rail__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  width: 100%;
  padding: 0 .6rem;
}
.rail__note {
  margin: 0;
  max-width: none;
  font-size: .5625rem;
  line-height: 1.55;
  letter-spacing: .06em;
  text-align: center;
  color: rgba(247, 245, 242, .48);
}
.rail__cta {
  display: block;
  width: 100%;
  padding: .58rem .3rem;
  background: var(--red);
  color: #fff;
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-align: center;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 8%, 100% 100%, 0 92%);
  transition: background-color .18s var(--ease), transform .18s var(--ease);
}
.rail__cta:hover { background: var(--red-deep); transform: translateY(-2px); }

/* ---------- scrim ---------- */
.nav-scrim {
  display: none;
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 65;
  background: rgba(11, 11, 12, .58);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.nav-scrim[data-open] { opacity: 1; pointer-events: auto; }

/* ---------- quickbar ---------- */
.quickbar { display: none; }
.quickbar__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .32rem;
  color: rgba(247, 245, 242, .6);
  text-decoration: none;
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .06em;
  transition: color .18s var(--ease);
}
.quickbar__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(247, 245, 242, .28);
  transition: background-color .18s var(--ease), box-shadow .18s var(--ease);
}
.quickbar__link[aria-current="page"] { color: var(--lime); }
.quickbar__link[aria-current="page"] .quickbar__dot {
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(184, 255, 60, .16);
}

/* ============================================================
   footer
   ============================================================ */
.site-footer {
  position: relative;
  margin-left: calc(-1 * var(--rail-w));
  padding-left: var(--rail-w);
  background: var(--ink);
  color: var(--paper);
}
.footer__cut {
  height: 12px;
  background: linear-gradient(90deg, var(--red) 0 46%, var(--red-deep) 46% 100%);
  clip-path: polygon(0 0, 100% 0, 100% 32%, 0 100%);
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--grid-gap) clamp(24px, 4vw, 64px);
  padding: clamp(36px, 5.5vw, 72px) var(--gutter) clamp(26px, 4vw, 48px);
}

.footer__brand { display: block; }
.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--paper);
  text-decoration: none;
}
.footer__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--red);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  clip-path: polygon(0 0, 100% 8%, 100% 100%, 0 92%);
}
.footer__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: .04em;
}
.footer__claim {
  margin: 1rem 0 1.1rem;
  max-width: 20em;
  font-size: .8125rem;
  letter-spacing: .1em;
  color: rgba(247, 245, 242, .6);
}
.footer__contact {
  margin: 0 0 1rem;
  max-width: 26em;
  font-size: .8125rem;
  line-height: 1.9;
  color: rgba(247, 245, 242, .78);
  word-break: break-word;
}
.footer__mono {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .875rem;
  color: var(--paper);
  letter-spacing: .04em;
}
.footer__addr {
  margin: 0;
  max-width: 24em;
  font-size: .75rem;
  letter-spacing: .06em;
  color: rgba(247, 245, 242, .46);
  border-left: 2px solid var(--red);
  padding-left: .7rem;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 32px);
}
.footer__col { min-width: 0; }
.footer__title {
  margin: 0 0 .9rem;
  font-family: var(--font-mono);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: rgba(247, 245, 242, .44);
  text-transform: uppercase;
}
.footer__list { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.footer__link {
  position: relative;
  display: inline-block;
  font-size: .875rem;
  line-height: 1.5;
  color: rgba(247, 245, 242, .78);
  text-decoration: none;
  transition: color .18s var(--ease), transform .18s var(--ease);
}
.footer__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 0; height: 1px;
  background: var(--lime);
  transition: width .2s var(--ease);
}
.footer__link:hover { color: var(--paper); transform: translateX(2px); }
.footer__link:hover::after { width: 100%; }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem 1.6rem;
  padding: 16px var(--gutter) 26px;
  border-top: 1px solid var(--line-light);
  font-size: .75rem;
  color: rgba(247, 245, 242, .52);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: 0; max-width: none; }
.footer__legal .footer__link { font-size: .75rem; }
.footer__icp {
  margin: 0 0 0 auto;
  max-width: none;
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .04em;
  color: rgba(247, 245, 242, .42);
}

.site-footer :where(a, button):focus-visible { outline-color: var(--lime); }
.rail :where(a, button):focus-visible { outline-color: var(--lime); }

/* ============================================================
   通用内容组件
   ============================================================ */
.wrap {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--grid-gap);
}
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

.prose { max-width: 64ch; }
.prose p, .prose li { font-size: 1.0625rem; line-height: 1.85; color: #2A2A2E; }
.prose > h2, .prose > h3 { margin-top: 2.2em; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  margin: 0;
  padding: clamp(16px, 2.4vw, 28px) 0 0;
  list-style: none;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--steel);
}
.breadcrumb a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--warm);
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.breadcrumb a:hover { color: var(--red); border-color: var(--red); }
.breadcrumb__sep { color: var(--warm); }

.chapter { padding-block: var(--beat); }
.chapter:first-child { padding-top: clamp(28px, 4vw, 56px); }
.chapter__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--red);
}
.chapter__title {
  margin: .35em 0 .3em;
  font-size: clamp(1.9rem, 4.6vw, 3.6rem);
}
.chapter__lede {
  max-width: 34em;
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--steel);
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: var(--shadow-soft);
  padding: clamp(18px, 2.4vw, 28px);
}
.card--ink {
  background: var(--carbon);
  color: var(--paper);
  border-color: var(--line-light);
}
.card--ink h2, .card--ink h3 { color: var(--paper); }
.card--ink p { color: rgba(247, 245, 242, .78); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .22rem .6rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.5;
  color: var(--blue-deep);
  vertical-align: middle;
}
.tag--live { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.tag--ink { background: var(--carbon); color: var(--paper); border-color: var(--carbon); }

.rule {
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--line);
}

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .85rem 1.5rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: .9375rem;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-float); }
.btn--red { --btn-bg: var(--red); --btn-fg: #fff; }
.btn--red:hover { --btn-bg: var(--red-deep); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--paper); }
.btn--cut { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%); }

/* ---------- 图片容器基础规则 ---------- */
.figure { display: block; margin: 0; }
.figure__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 2px;
  background:
    linear-gradient(135deg, rgba(26, 26, 29, 1) 0%, rgba(11, 11, 12, 1) 58%, rgba(142, 11, 29, .55) 100%);
  box-shadow: var(--shadow-soft);
}
.figure__media > img,
.figure__media > picture,
.figure__media > picture > img,
.figure__media > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure--wide .figure__media { aspect-ratio: 21 / 9; }
.figure--portrait .figure__media { aspect-ratio: 3 / 4; }
.figure--square .figure__media { aspect-ratio: 1 / 1; }
.figure--cut .figure__media { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%); }
.figure__cap {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  margin: .7rem 0 0;
  max-width: none;
  font-size: .8125rem;
  line-height: 1.6;
  color: var(--steel);
}
.figure__cap::before {
  content: "";
  flex: none;
  width: 16px;
  height: 2px;
  margin-top: .1em;
  background: var(--red);
}

/* ---------- tabs ---------- */
.tabs { border-top: 1px solid var(--line); }
.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem;
  border-bottom: 1px solid var(--line);
}
.tabs__btn {
  appearance: none;
  padding: .8rem 1.05rem;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  font-size: .9375rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--steel);
  cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease), background-color .18s var(--ease);
}
.tabs__btn:hover { color: var(--ink); background: rgba(11, 11, 12, .04); }
.tabs__btn[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--red); }
.tabs__panel { padding-block: clamp(18px, 2.4vw, 28px); }
.tabs__panel[hidden] { display: none; }

/* ---------- reveal ---------- */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
[data-reveal].is-visible { animation: revealUp .5s var(--ease) both; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1023px) {
  body[data-nav-open] { overflow: hidden; }

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

  .topbar__now { margin-left: auto; }
  .topbar__nowkey { display: none; }

  .nav-scrim { display: block; }

  .rail {
    top: var(--topbar-h);
    left: auto;
    right: 0;
    bottom: 0;
    width: min(86vw, 372px);
    padding: 20px clamp(18px, 5vw, 28px) 26px;
    gap: 16px;
    border-right: 0;
    border-left: 1px solid var(--line-light);
    transform: translateX(102%);
    visibility: hidden;
    box-shadow: var(--shadow-float);
    transition: transform .34s var(--ease), visibility 0s linear .34s;
  }
  .rail[data-open] {
    transform: translateX(0);
    visibility: visible;
    transition: transform .34s var(--ease), visibility 0s linear 0s;
  }

  .rail__brand {
    flex-direction: row;
    align-items: center;
    gap: .75rem;
    padding: 0 0 .2rem;
  }
  .rail__sign {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    font-size: 1rem;
    letter-spacing: .12em;
  }
  .rail__list { gap: 0; }
  .rail__item { border-top: 1px solid var(--line-light); }
  .rail__link {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    padding: 1rem .2rem;
  }
  .rail__num { font-size: .75rem; width: 1.9rem; }
  .rail__label {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    font-size: 1.25rem;
    letter-spacing: .05em;
  }
  .rail__link[aria-current="page"] { background: rgba(209, 18, 42, .16); }
  .rail__link[aria-current="page"]::before { top: 0; bottom: 0; }

  .rail__foot {
    margin-top: auto;
    align-items: stretch;
    padding: 0;
  }
  .rail__note { font-size: .6875rem; text-align: left; }
  .rail__cta {
    padding: .8rem 1rem;
    font-size: .8125rem;
    letter-spacing: .14em;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  }

  .quickbar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    height: var(--quick-h);
    background: var(--carbon);
    border-top: 1px solid var(--line-light);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  body { padding-bottom: var(--quick-h); }

  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .span-4, .span-5, .span-6, .span-7, .span-8, .span-12 { grid-column: span 4; }

  .footer__inner { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__icp { margin-left: 0; }
}

@media (max-width: 620px) {
  .topbar__brandline { font-size: .6875rem; letter-spacing: .05em; }
  .topbar__now { display: none; }
  .footer__cols { grid-template-columns: 1fr; gap: 1.6rem; }
  .chapter__lede { font-size: 1rem; }
  .footer__base { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal].is-visible { animation: none; }
  .btn:hover,
  .footer__link:hover,
  .rail__cta:hover,
  .rail__brand:hover .rail__mark { transform: none; }
}
