/* =========================================================
   新宝体育主站 · 共享外壳样式 /assets/site.css
   夜间球场指挥中心 + 奶油纸画册区块
   ========================================================= */

/* ---------- 01 Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol, li, dl, dt, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ---------- 02 Tokens ---------- */
:root {
  --ink-blue-base: #0B1220;
  --midnight-panel: #121E36;
  --deep-brown-black: #241E1B;
  --cream-paper: #F4EDE2;
  --warm-paper-line: #E0D4C1;
  --fluoro-cyan: #35F0D0;
  --signal-orange: #FF7A2F;
  --electric-violet: #8A6CFF;
  --steel-text: #93A4C4;
  --pure-white: #FFFFFF;

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

  --topline-h: 34px;
  --rail-w: 92px;
  --rail-w-open: 268px;
  --mbar-h: 60px;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shell-max: 1240px;
  --pad-x: 28px;

  --line-dark: rgba(147, 164, 196, .18);
  --line-darker: rgba(147, 164, 196, .12);
  --cyan-soft: rgba(53, 240, 208, .14);
}

/* ---------- 03 Base ---------- */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--pure-white);
  background-color: var(--ink-blue-base);
  background-image:
    repeating-linear-gradient(0deg, rgba(147, 164, 196, .035) 0 1px, transparent 1px 5px),
    radial-gradient(120% 80% at 84% -10%, rgba(53, 240, 208, .10), transparent 62%),
    radial-gradient(90% 70% at 8% 108%, rgba(138, 108, 255, .10), transparent 60%);
  background-attachment: fixed;
  padding-top: var(--topline-h);
  padding-left: var(--rail-w);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 5.4vw, 66px); font-weight: 900; }
h2 { font-size: clamp(26px, 3.6vw, 42px); }
h3 { font-size: clamp(19px, 2.2vw, 26px); }
p { max-width: 72ch; }
p + p { margin-top: 1.2em; }

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

/* ---------- 04 Skip link ---------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 200;
  padding: 12px 22px;
  background: var(--fluoro-cyan);
  color: #04150F;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: top .18s ease-out;
}
.skip-link:focus { top: 0; }

/* ---------- 05 Topline ---------- */
.topline {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--topline-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: #070C16;
  border-bottom: 1px solid rgba(53, 240, 208, .22);
  overflow: hidden;
}
.topline__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--steel-text);
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.topline__inner::-webkit-scrollbar { display: none; }
.topline__item { display: inline-flex; align-items: baseline; gap: 8px; flex: 0 0 auto; }
.topline__key { color: rgba(147, 164, 196, .68); }
.topline__val { color: var(--pure-white); font-weight: 700; letter-spacing: .06em; }
.topline__pulse {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fluoro-cyan);
  animation: topline-pulse 1.6s ease-out infinite;
}
@keyframes topline-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(53, 240, 208, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(53, 240, 208, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 240, 208, 0); }
}
.topline__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--fluoro-cyan), var(--electric-violet));
  transition: width .12s linear;
}

/* ---------- 06 Rail ---------- */
.rail {
  position: fixed;
  top: var(--topline-h);
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 0 26px;
  background: linear-gradient(180deg, #0F1A2E 0%, #0B1220 62%, #080E19 100%);
  border-right: 1px solid var(--line-dark);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(147, 164, 196, .3) transparent;
  transition: width .22s ease-out, box-shadow .22s ease-out;
}
.rail::-webkit-scrollbar { width: 5px; }
.rail::-webkit-scrollbar-thumb { background: rgba(147, 164, 196, .28); border-radius: 4px; }
.rail:hover,
.rail:focus-within {
  width: var(--rail-w-open);
  box-shadow: 26px 0 60px -30px rgba(0, 0, 0, .95);
}

/* 品牌 */
.rail__brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 48px;
  padding-left: 26px;
  text-decoration: none;
}
.rail__mark {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--fluoro-cyan), #17B7A3);
  color: #06231E;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 0 0 1px rgba(53, 240, 208, .45), 0 10px 24px -14px rgba(53, 240, 208, .8);
}
.rail__brandtext {
  display: flex;
  flex-direction: column;
  min-width: 0;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .18s ease-out .04s, transform .18s ease-out .04s;
}
.rail__name {
  font-size: 14px;
  font-weight: 800;
  color: var(--pure-white);
  white-space: nowrap;
  letter-spacing: .01em;
}
.rail__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--steel-text);
  white-space: nowrap;
}
.rail:hover .rail__brandtext,
.rail:focus-within .rail__brandtext { opacity: 1; transform: none; }

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(53, 240, 208, .4);
  border-radius: 14px;
  background: var(--cyan-soft);
}
.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--fluoro-cyan);
  transition: transform .2s ease-out;
}
.rail[data-open] .nav-toggle__bar:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.rail[data-open] .nav-toggle__bar:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* 导航 */
.rail-nav {
  flex: 1 1 auto;
  min-height: 0;
  padding: 14px 14px 0;
  border-top: 1px solid var(--line-darker);
}
.rail-nav__list { display: flex; flex-direction: column; gap: 6px; }
.rail-nav__item { display: flex; }
.rail-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 50px;
  padding-left: 24px;
  border-radius: 14px;
  text-decoration: none;
  white-space: nowrap;
  color: var(--steel-text);
  transition: background-color .16s ease-out, color .16s ease-out, box-shadow .16s ease-out;
}
.rail-link__num {
  flex: 0 0 16px;
  width: 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: rgba(147, 164, 196, .72);
  transition: color .16s ease-out;
}
.rail-link__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--pure-white);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .18s ease-out .04s, transform .18s ease-out .04s;
}
.rail:hover .rail-link__label,
.rail:focus-within .rail-link__label { opacity: 1; transform: none; }
.rail-link:hover { background: rgba(53, 240, 208, .09); color: var(--pure-white); }
.rail-link:hover .rail-link__num { color: var(--fluoro-cyan); }
.rail-link[aria-current="page"] {
  background: var(--cyan-soft);
  box-shadow: inset 3px 0 0 var(--fluoro-cyan);
}
.rail-link[aria-current="page"] .rail-link__num,
.rail-link[aria-current="page"] .rail-link__label { color: var(--fluoro-cyan); }
.rail-link:focus-visible { outline-offset: -3px; }

/* 轨道 CTA */
.rail__cta {
  margin-top: auto;
  padding: 18px 14px 0;
  border-top: 1px solid var(--line-darker);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rail-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .16s ease-out, color .16s ease-out, border-color .16s ease-out, transform .16s ease-out;
}
.rail-cta__full { display: none; }
.rail-cta__short { display: inline; }
.rail:hover .rail-cta__full,
.rail:focus-within .rail-cta__full { display: inline; }
.rail:hover .rail-cta__short,
.rail:focus-within .rail-cta__short { display: none; }
.rail-cta--primary {
  background: var(--fluoro-cyan);
  color: #04150F;
  box-shadow: 0 10px 26px -16px rgba(53, 240, 208, .95);
}
.rail-cta--primary:hover { background: #5BF6DC; transform: translateY(-2px); }
.rail-cta--ghost { border: 1px solid rgba(147, 164, 196, .42); color: var(--pure-white); }
.rail-cta--ghost:hover { border-color: var(--fluoro-cyan); color: var(--fluoro-cyan); transform: translateY(-2px); }

/* ---------- 07 Footer ---------- */
.site-footer {
  position: relative;
  margin-top: 80px;
  background: linear-gradient(180deg, #0B1220 0%, #070C16 100%);
  border-top: 1px solid rgba(53, 240, 208, .22);
  color: var(--steel-text);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(147, 164, 196, .06) 0 1px, transparent 1px 64px);
  pointer-events: none;
}
.footer__inner {
  position: relative;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 64px var(--pad-x) 34px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
}
.footer__wordmark {
  font-size: 26px;
  font-weight: 900;
  color: var(--pure-white);
  letter-spacing: -.01em;
}
.footer__tagline {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--fluoro-cyan);
}
.footer__desc {
  margin-top: 16px;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--steel-text);
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.footer__col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  color: rgba(147, 164, 196, .78);
  margin-bottom: 14px;
}
.footer__list { display: flex; flex-direction: column; gap: 10px; }
.footer__link {
  display: inline-block;
  padding: 3px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--pure-white);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .16s ease-out, border-color .16s ease-out;
}
.footer__link:hover { color: var(--fluoro-cyan); border-bottom-color: rgba(53, 240, 208, .6); }

.footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 13px;
}
.footer__item { display: inline-flex; align-items: baseline; gap: 10px; }
.footer__key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: rgba(147, 164, 196, .7);
}
.footer__val { color: var(--pure-white); font-weight: 600; letter-spacing: .02em; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(147, 164, 196, .72);
}
.footer__icp { color: var(--steel-text); }

/* 回到顶部 */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(53, 240, 208, .45);
  background: rgba(18, 30, 54, .94);
  color: var(--fluoro-cyan);
  font-size: 18px;
  font-weight: 800;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease-out, transform .2s ease-out, visibility .2s ease-out, background-color .16s ease-out;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: rgba(53, 240, 208, .16); }

/* ---------- 08 Layout helpers ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.shell--narrow { max-width: 920px; }

.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.2em; }
.prose p:last-child { margin-bottom: 0; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--7-5 { grid-template-columns: 7fr 5fr; }
.grid--8-4 { grid-template-columns: 8fr 4fr; }

/* ---------- 09 Section surfaces ---------- */
.panel-block {
  position: relative;
  background: linear-gradient(160deg, #101B31 0%, var(--ink-blue-base) 72%);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.4vw, 46px);
}
.paper-block {
  position: relative;
  background: var(--cream-paper);
  color: var(--deep-brown-black);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.4vw, 46px);
}
.paper-block h2,
.paper-block h3,
.paper-block h4 { color: var(--deep-brown-black); }
.paper-block p { color: #3B322C; }
.paper-block a { color: #9A3A0C; text-underline-offset: 3px; }
.paper-block a:hover { color: #C24A11; }
.paper-block .label { color: #7A6A5C; }

/* ---------- 10 Chapter & labels ---------- */
.chapter-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.chapter-no {
  font-family: var(--font-mono);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.03em;
  color: var(--fluoro-cyan);
}
.paper-block .chapter-no { color: #C24A11; }
.label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--steel-text);
}

/* ---------- 11 Cards ---------- */
.card {
  background: var(--midnight-panel);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: transform .18s ease-out, border-color .18s ease-out, box-shadow .18s ease-out;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(53, 240, 208, .5);
  box-shadow: 0 18px 44px -30px rgba(53, 240, 208, .75);
}
.card--paper {
  background: var(--cream-paper);
  color: var(--deep-brown-black);
  border-color: var(--warm-paper-line);
}
.card--paper:hover { border-color: #C9B79C; box-shadow: 0 18px 44px -32px rgba(36, 30, 27, .6); }
.card--flush { padding: 0; overflow: hidden; }

/* ---------- 12 Stats & pills ---------- */
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--pure-white);
}
.paper-block .stat__num { color: var(--deep-brown-black); }
.stat__num--cyan { color: var(--fluoro-cyan); }
.stat__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--steel-text);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  white-space: nowrap;
}
.pill--cyan { background: var(--cyan-soft); color: var(--fluoro-cyan); border: 1px solid rgba(53, 240, 208, .4); }
.pill--signal { background: rgba(255, 122, 47, .14); color: var(--signal-orange); border: 1px solid rgba(255, 122, 47, .45); }
.pill--violet { background: rgba(138, 108, 255, .14); color: var(--electric-violet); border: 1px solid rgba(138, 108, 255, .45); }

/* ---------- 13 Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .16s ease-out, color .16s ease-out, border-color .16s ease-out, transform .16s ease-out;
}
.btn--primary { background: var(--fluoro-cyan); color: #04150F; }
.btn--primary:hover { background: #5BF6DC; transform: translateY(-2px); }
.btn--ghost { border-color: rgba(147, 164, 196, .45); color: var(--pure-white); }
.btn--ghost:hover { border-color: var(--fluoro-cyan); color: var(--fluoro-cyan); transform: translateY(-2px); }
.btn--signal { background: var(--signal-orange); color: #210C00; }
.btn--signal:hover { background: #FF9559; transform: translateY(-2px); }
.btn--paper { background: var(--deep-brown-black); color: var(--cream-paper); }
.btn--paper:hover { background: #3A3129; transform: translateY(-2px); }

/* ---------- 14 Media frames ---------- */
.figure-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-dark);
  background:
    linear-gradient(140deg, #16233C 0%, #0B1220 58%, #131C30 100%);
  isolation: isolate;
}
.figure-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 4px),
    radial-gradient(120% 90% at 82% 0%, rgba(53, 240, 208, .16), transparent 60%);
}
.figure-frame--wide { aspect-ratio: 21 / 9; }
.figure-frame--tall { aspect-ratio: 3 / 4; }
.figure-frame--square { aspect-ratio: 1 / 1; }
.figure-caption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--steel-text);
}
.paper-block .figure-caption { color: #7A6A5C; }

/* ---------- 15 Data rows ---------- */
.data-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: background-color .16s ease-out, border-color .16s ease-out;
}
.data-row + .data-row { margin-top: 6px; }
.data-row:hover { background: rgba(53, 240, 208, .07); border-color: rgba(53, 240, 208, .28); }
.data-row__rank {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--steel-text);
}
.data-row[data-top] .data-row__rank { color: var(--fluoro-cyan); }
.data-row__name { font-size: 15px; font-weight: 600; color: var(--pure-white); }
.data-row__val {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  color: var(--pure-white);
}

/* ---------- 16 Crumbs ---------- */
.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--steel-text);
}
.crumbs a {
  color: var(--steel-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(147, 164, 196, .4);
  padding-bottom: 1px;
  transition: color .16s ease-out, border-color .16s ease-out;
}
.crumbs a:hover { color: var(--fluoro-cyan); border-bottom-color: var(--fluoro-cyan); }
.crumbs__sep { color: rgba(147, 164, 196, .5); }
.crumbs [aria-current="page"] { color: var(--pure-white); }

/* ---------- 17 Reveal ---------- */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease-out, transform .5s ease-out;
}
.js-reveal [data-reveal].is-inview { opacity: 1; transform: none; }

/* ---------- 18 Responsive ---------- */
@media (max-width: 1023.98px) {
  :root { --rail-w: 0px; }
  body { padding-left: 0; padding-top: calc(var(--topline-h) + var(--mbar-h)); }

  .rail {
    top: var(--topline-h);
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: var(--mbar-h);
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
    overflow: visible;
    box-shadow: none;
    transition: none;
  }
  .rail:hover,
  .rail:focus-within { width: auto; box-shadow: none; }

  .rail__brand { flex: 1 1 auto; height: auto; padding-left: 0; }
  .rail__mark { flex: 0 0 36px; width: 36px; height: 36px; font-size: 16px; border-radius: 12px; }
  .rail__brandtext { opacity: 1; transform: none; }
  .rail__tag { display: none; }

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

  .rail-nav {
    position: fixed;
    top: calc(var(--topline-h) + var(--mbar-h));
    left: 0;
    right: 0;
    z-index: 98;
    max-height: 0;
    padding: 0;
    border-top: 0;
    border-bottom: 1px solid rgba(53, 240, 208, .2);
    background: #0C1526;
    overflow: hidden;
    transition: max-height .24s ease-out;
  }
  .rail[data-open] .rail-nav {
    max-height: calc(100vh - var(--topline-h) - var(--mbar-h));
    overflow-y: auto;
  }
  .rail-nav__list { padding: 12px 14px 20px; gap: 4px; }
  .rail-link { height: 54px; padding-left: 16px; }
  .rail .rail-nav .rail-link__label { opacity: 1; transform: none; font-size: 15px; }
  .rail .rail-nav .rail-link__num { font-size: 12px; }
}

@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
  .grid--2,
  .grid--3,
  .grid--7-5,
  .grid--8-4 { grid-template-columns: 1fr; }
  .data-row { grid-template-columns: 44px 1fr auto; gap: 12px; padding: 12px 14px; }
}

@media (max-width: 767px) {
  :root { --pad-x: 18px; }
  .topline__inner { gap: 14px; font-size: 10px; letter-spacing: .08em; padding: 0 14px; }
  body { font-size: 15px; }
  .to-top { right: 16px; bottom: 16px; }
}

@media (max-width: 560px) {
  .footer__cols { grid-template-columns: 1fr; }
  .footer__inner { padding: 44px var(--pad-x) 28px; }
  .footer__wordmark { font-size: 22px; }
  .footer__bottom { justify-content: 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;
  }
  .js-reveal [data-reveal] { opacity: 1; transform: none; }
}
