:root {
  --lava: #FF6A1F;
  --signal: #E2263B;
  --ember: #FFA05C;
  --void: #0B0D10;
  --slate: #16191F;
  --cyan: #33D6D0;
  --ice: #E8F1F4;
  --ash: #A8B0B8;
  --earth: #6E4A2C;
  --cream: #FFF3E4;
  --line: rgba(51, 214, 208, 0.16);
  --line-warm: rgba(255, 106, 31, 0.28);
  --rail-w: 272px;
  --rail-w-min: 76px;
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-geo: "Archivo Black", "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
}

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

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

body {
  margin: 0;
  padding-left: var(--rail-w);
  min-height: 100vh;
  color: var(--ice);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  background-color: var(--void);
  background-image:
    radial-gradient(900px 520px at 84% -10%, rgba(255, 106, 31, 0.16), transparent 66%),
    radial-gradient(760px 440px at 6% 106%, rgba(51, 214, 208, 0.1), transparent 64%),
    linear-gradient(rgba(51, 214, 208, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 214, 208, 0.055) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  transition: padding-left 0.2s ease;
}

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

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--cream);
}

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.12s ease;
}
a:hover { color: var(--ember); }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}

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

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  transform: translateY(-200%);
  padding: 0.6rem 1.1rem;
  background: var(--lava);
  color: #0B0D10;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 2px;
  transition: transform 0.16s ease;
}
.skip-link:focus { transform: translateY(0); color: #0B0D10; }

/* ---------- header shell ---------- */
.site-head {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  z-index: 90;
  background: linear-gradient(180deg, #101319 0%, #0B0D10 48%, #0d1016 100%);
  border-inline-end: 1px solid var(--line);
  transition: width 0.2s ease;
}

.site-head::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 300px;
  pointer-events: none;
  background: radial-gradient(180px 210px at 22% -4%, rgba(255, 106, 31, 0.3), transparent 70%);
}

.site-head__bar { display: none; }

/* ---------- brand ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--cream);
  min-width: 0;
}
.brand:hover { color: var(--cream); }

.brand__mark {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #FFD9B0, var(--lava) 46%, var(--signal) 100%);
  box-shadow: 0 0 0 1px rgba(255, 160, 92, 0.5), 0 0 18px rgba(255, 106, 31, 0.55);
}
.brand__mark::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid rgba(255, 106, 31, 0.35);
}

.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.22rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--cream);
}
.brand__tag {
  font-size: 0.7rem;
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: var(--ash);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- nav toggle ---------- */
.nav-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  cursor: pointer;
  border: 1px solid var(--line-warm);
  border-radius: 2px;
  background: rgba(255, 106, 31, 0.08);
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ember);
  transition: transform 0.16s ease, background 0.16s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.site-head[data-open="true"] .nav-toggle__bars { background: transparent; }
.site-head[data-open="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.site-head[data-open="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- rail ---------- */
.rail {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1 1 auto;
  min-height: 0;
  padding: 1.35rem 0.85rem 1.15rem;
  overflow-y: auto;
  scrollbar-width: thin;
}

.rail__plate { display: flex; flex-direction: column; gap: 0.55rem; }

.rail__coord {
  margin: 0;
  font-size: 0.68rem;
  color: var(--cyan);
  opacity: 0.85;
}

.rail__heat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line-warm);
  background:
    linear-gradient(90deg, rgba(255, 106, 31, 0.16), rgba(255, 106, 31, 0.02)),
    var(--slate);
}
.rail__heat-label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--ash);
}
.rail__heat-val {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--lava);
  text-shadow: 0 0 14px rgba(255, 106, 31, 0.55);
}

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

.rail__link {
  position: relative;
  display: grid;
  grid-template-columns: 2.1rem 1fr;
  align-items: center;
  gap: 0.55rem;
  padding: 0.62rem 0.7rem 0.62rem 0.85rem;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ice);
  border-inline-start: 2px solid transparent;
  transition: color 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.rail__link:hover {
  color: var(--cream);
  background: rgba(255, 106, 31, 0.09);
  border-inline-start-color: var(--ember);
}
.rail__idx {
  font-size: 0.72rem;
  color: var(--ash);
  transition: color 0.12s ease;
}
.rail__link:hover .rail__idx { color: var(--ember); }
.rail__link[aria-current="page"] {
  color: #fff;
  background: linear-gradient(90deg, rgba(255, 106, 31, 0.24), rgba(255, 106, 31, 0));
  border-inline-start-color: var(--lava);
}
.rail__link[aria-current="page"] .rail__idx {
  color: var(--lava);
  text-shadow: 0 0 12px rgba(255, 106, 31, 0.6);
}
.rail__label { min-width: 0; }

.rail__foot {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.rail__cta {
  display: block;
  padding: 0.6rem 0.75rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0B0D10;
  background: linear-gradient(120deg, var(--ember), var(--lava) 55%, var(--signal));
  border-radius: 2px;
  transition: box-shadow 0.16s ease, filter 0.16s ease;
}
.rail__cta:hover {
  color: #0B0D10;
  filter: brightness(1.08);
  box-shadow: 0 0 0 1px rgba(255, 160, 92, 0.7), 0 12px 26px -14px rgba(255, 106, 31, 0.9);
}

.version-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.version-switch__btn {
  padding: 0.35rem 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ash);
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  transition: color 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.version-switch__btn:hover { color: var(--cyan); border-color: rgba(51, 214, 208, 0.5); }
.version-switch__btn[aria-pressed="true"] {
  color: var(--cream);
  border-color: var(--line-warm);
  background: rgba(255, 106, 31, 0.16);
}

.rail__collapse {
  padding: 0.3rem 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--ash);
  cursor: pointer;
  border: 1px dashed rgba(51, 214, 208, 0.28);
  border-radius: 2px;
  transition: color 0.12s ease, border-color 0.12s ease;
}
.rail__collapse:hover { color: var(--cyan); border-color: var(--cyan); }

/* collapsed rail (desktop) */
.site-head[data-rail="collapsed"] .rail { padding-inline: 0.5rem; }
.site-head[data-rail="collapsed"] .brand__text,
.site-head[data-rail="collapsed"] .rail__coord,
.site-head[data-rail="collapsed"] .rail__heat,
.site-head[data-rail="collapsed"] .rail__label,
.site-head[data-rail="collapsed"] .rail__cta,
.site-head[data-rail="collapsed"] .version-switch {
  display: none;
}
.site-head[data-rail="collapsed"] .rail__link {
  grid-template-columns: 1fr;
  justify-items: center;
  padding-inline: 0.2rem;
}
.site-head[data-rail="collapsed"] .rail__idx { font-size: 0.8rem; color: var(--ember); }
.site-head[data-rail="collapsed"] .rail__plate { align-items: center; }

/* ---------- scroll meter ---------- */
.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 120;
  pointer-events: none;
  background: rgba(51, 214, 208, 0.12);
}
.scroll-meter i {
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--ember), var(--lava) 45%, var(--signal));
}

/* ---------- layout helpers ---------- */
.shell {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
}

.grid { display: grid; gap: clamp(1rem, 2vw, 1.75rem); }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.85rem;
  font-family: var(--font-geo);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lava);
  text-shadow: 0 0 12px rgba(255, 106, 31, 0.5);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  flex: none;
  background: linear-gradient(90deg, var(--lava), transparent);
}

.t-display {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--cream);
}

.prose { max-width: 68ch; }
.prose p { margin: 0 0 1.05em; }
.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-color: rgba(51, 214, 208, 0.45);
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--ember); text-decoration-color: var(--ember); }
.prose ul { margin: 0 0 1.05em 1.1em; }
.prose li { list-style: disc; margin-bottom: 0.4em; }

/* ---------- breadcrumbs ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ash);
}
.crumbs__item { color: var(--ash); }
.crumbs__item a { color: var(--cyan); }
.crumbs__item a:hover { color: var(--ember); }
.crumbs__item[aria-current="page"] { color: var(--cream); }
.crumbs__sep { color: rgba(168, 176, 184, 0.55); }

/* ---------- panel ---------- */
.panel {
  position: relative;
  padding: clamp(1rem, 2.2vw, 1.7rem);
  background: var(--slate);
  border: 1px solid var(--line);
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.panel:hover {
  border-color: var(--line-warm);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -26px rgba(255, 106, 31, 0.9);
}
.panel--notch::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 22px;
  height: 22px;
  background: var(--void);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  border-left: 1px solid var(--line-warm);
  pointer-events: none;
}
.panel--warm {
  background:
    radial-gradient(240px 160px at 12% 0%, rgba(255, 106, 31, 0.2), transparent 72%),
    var(--slate);
  border-color: var(--line-warm);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.btn--heat {
  color: #0B0D10;
  background: linear-gradient(120deg, var(--lava), var(--signal));
}
.btn--heat:hover {
  color: #0B0D10;
  background: linear-gradient(120deg, var(--ember), var(--lava));
  box-shadow: 0 0 0 1px rgba(255, 160, 92, 0.7), 0 14px 28px -16px rgba(255, 106, 31, 0.95);
}
.btn--ghost {
  color: var(--cyan);
  border-color: rgba(51, 214, 208, 0.45);
  background: transparent;
}
.btn--ghost:hover {
  color: var(--cream);
  border-color: var(--cyan);
  background: rgba(51, 214, 208, 0.08);
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--void), 0 0 0 4px var(--cyan);
}

/* ---------- chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ember);
  background: rgba(255, 106, 31, 0.08);
  border: 1px solid rgba(255, 160, 92, 0.35);
  border-radius: 1px;
}
.chip--cool {
  color: var(--cyan);
  background: rgba(51, 214, 208, 0.08);
  border-color: rgba(51, 214, 208, 0.4);
}

/* ---------- media containers ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(142deg, #1b2028, #0d1015 62%, #12202a);
  border: 1px solid var(--line);
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 44%, rgba(11, 13, 16, 0.78) 100%);
}
.media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--wide { aspect-ratio: 21 / 9; }
.media--empty::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(51, 214, 208, 0.09) 0 1px,
    transparent 1px 14px
  );
}
.media__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  padding: 0.45rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--ash);
}

/* ---------- footer ---------- */
.site-foot {
  position: relative;
  margin-top: clamp(3rem, 8vw, 6rem);
  border-top: 1px solid var(--line-warm);
  color: var(--ash);
  background:
    radial-gradient(620px 260px at 10% 0%, rgba(255, 106, 31, 0.17), transparent 70%),
    radial-gradient(540px 240px at 90% 8%, rgba(51, 214, 208, 0.1), transparent 72%),
    linear-gradient(180deg, #0d1015, #080a0d);
}

.foot__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.15fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-block: clamp(2rem, 5vw, 3.25rem);
}

.foot__col { min-width: 0; }
.foot__col--brand { display: flex; flex-direction: column; gap: 0.85rem; }

.brand--foot .brand__name { font-size: 1.1rem; }

.foot__lede {
  margin: 0;
  max-width: 34ch;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ash);
}
.foot__coord {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  opacity: 0.8;
}

.foot__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-geo);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lava);
  text-shadow: 0 0 12px rgba(255, 106, 31, 0.45);
}

.foot__list { display: flex; flex-direction: column; gap: 0.45rem; }

.foot__link {
  position: relative;
  display: inline-block;
  font-size: 0.9rem;
  color: var(--ash);
  transition: color 0.12s ease;
}
.foot__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--lava);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.12s ease;
}
.foot__link:hover { color: var(--cream); }
.foot__link:hover::after { transform: scaleX(1); }

.foot__contact {
  margin: 1rem 0 0;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.9;
  letter-spacing: 0.03em;
  color: rgba(168, 176, 184, 0.85);
  word-break: break-word;
}

.foot__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 0.9rem;
  border-top: 1px solid var(--line);
}
.foot__icp {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: rgba(168, 176, 184, 0.8);
}
.foot__top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--ember);
  border: 1px solid var(--line-warm);
  border-radius: 2px;
  transition: color 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.foot__top:hover {
  color: #0B0D10;
  background: var(--lava);
  border-color: var(--lava);
}

.foot__strip {
  overflow: hidden;
  padding-block: 0.55rem;
  border-top: 1px solid var(--line);
  background: rgba(11, 13, 16, 0.7);
}
.foot__strip-track {
  display: flex;
  width: max-content;
  animation: strip-run 46s linear infinite;
}
.foot__strip-set {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding-inline: 1rem;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ash);
}
.foot__dot { color: var(--lava); }

@keyframes strip-run {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .col-3 { grid-column: span 3; }
  .col-4 { grid-column: span 3; }
  .col-6 { grid-column: span 6; }
  .col-8 { grid-column: span 6; }
  .col-12 { grid-column: span 6; }
}

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  body { padding-left: 0; padding-top: 64px; }

  .site-head {
    position: static;
    width: auto;
    height: auto;
    border-inline-end: 0;
    background: transparent;
  }
  .site-head::before { display: none; }

  .site-head__bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    height: 64px;
    padding-inline: 1rem;
    background: linear-gradient(180deg, #111419, #0B0D10);
    border-bottom: 1px solid var(--line);
  }
  .site-head__bar .brand__tag { display: none; }
  .site-head__bar .brand__name { font-size: 1.05rem; }

  .rail {
    position: fixed;
    inset: 64px 0 0 0;
    z-index: 95;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem 1rem 2.5rem;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    background:
      radial-gradient(520px 320px at 78% 6%, rgba(255, 106, 31, 0.26), transparent 70%),
      radial-gradient(420px 280px at 6% 92%, rgba(51, 214, 208, 0.16), transparent 70%),
      linear-gradient(160deg, #12161d, #0A0C10 55%, #0d1319);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  }
  .site-head[data-open="true"] .rail {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .rail__plate { display: none; }
  .rail__link { font-size: 1rem; padding-block: 0.75rem; }
  .rail__foot { border-top-color: var(--line-warm); }
  .rail__collapse { display: none; }

  .site-head[data-rail="collapsed"] .rail__label,
  .site-head[data-rail="collapsed"] .rail__cta,
  .site-head[data-rail="collapsed"] .version-switch { display: revert; }
  .site-head[data-rail="collapsed"] .rail__link { grid-template-columns: 2.1rem 1fr; padding-inline: 0.85rem; }

  body.nav-open { overflow: hidden; }
}

@media (min-width: 901px) {
  body.nav-open { overflow: auto; }
}

@media (max-width: 640px) {
  .grid--12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .col-3, .col-4, .col-6, .col-8, .col-12 { grid-column: span 2; }

  .foot__grid { grid-template-columns: 1fr; }
  .foot__legal { flex-direction: column; align-items: flex-start; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .foot__strip-track { animation: none; }
  .panel:hover { transform: none; }
}
