/* =========================================================
   华体手机站 · 共享外壳样式 /assets/site.css
   ========================================================= */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, blockquote, dl, dd, table, th, td {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

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

a {
  color: inherit;
  text-decoration: none;
}

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

table { border-collapse: collapse; width: 100%; }

/* ---------- 2. Tokens ---------- */
:root {
  --red: #E8451F;
  --orange: #F26A2E;
  --ink: #101C2C;
  --paper: #F6F1E7;
  --paper-2: #EFEAE0;
  --cool: #D9DEE5;
  --teal: #0E9F8A;
  --gold: #F2C14E;
  --blue: #2F6FED;

  --ink-70: rgba(16, 28, 44, 0.72);
  --ink-45: rgba(16, 28, 44, 0.48);
  --ink-12: rgba(16, 28, 44, 0.14);
  --line: rgba(16, 28, 44, 0.16);

  --rail-w: 268px;
  --bar-h: 60px;
  --wrap: 1180px;

  --r-sm: 3px;
  --r-md: 6px;
  --r-lg: 10px;

  --shadow-1: 0 1px 0 rgba(16, 28, 44, 0.05), 0 14px 34px -22px rgba(16, 28, 44, 0.42);
  --shadow-2: 0 2px 0 rgba(16, 28, 44, 0.06), 0 26px 54px -30px rgba(16, 28, 44, 0.5);

  --font-display: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. Base typography ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.78;
  color: var(--ink);
  background-color: var(--paper);
  background-image: linear-gradient(180deg, rgba(16, 28, 44, 0.035), rgba(16, 28, 44, 0) 420px);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}

h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
h2 { font-size: clamp(1.45rem, 3.1vw, 2.05rem); }
h3 { font-size: clamp(1.1rem, 1.9vw, 1.3rem); }
h4 { font-size: 1rem; font-weight: 700; }

p { text-wrap: pretty; }

strong { font-weight: 700; }

::selection {
  background: var(--red);
  color: #fff;
}

main:focus { outline: none; }

/* ---------- 4. Accessibility ---------- */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 2px;
}

.site-rail :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--gold);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 200;
  transform: translate(-50%, -180%);
  padding: 11px 20px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-2);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

/* ---------- 5. Layout primitives ---------- */
.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(48px, 7vw, 96px);
}

.section--tight { padding-block: clamp(28px, 4.5vw, 54px); }
.section--paper { background: var(--paper-2); }

.section--ink {
  background: var(--ink);
  color: var(--paper);
}

.section--ink h1,
.section--ink h2,
.section--ink h3,
.section--ink h4 { color: var(--paper); }

.section--ink .lede { color: rgba(246, 241, 231, 0.74); }
.section--ink .note { color: rgba(246, 241, 231, 0.78); }
.section--ink .eyebrow { color: var(--gold); }
.section--ink .rule { background: rgba(246, 241, 231, 0.18); }

/* ---------- 6. Text atoms ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  flex: 0 0 auto;
}

.lede {
  max-width: 64ch;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.9;
  color: var(--ink-70);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.note {
  padding-left: 14px;
  border-left: 3px solid var(--gold);
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--ink-70);
}

.note--teal { border-left-color: var(--teal); }

/* ---------- 7. Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  line-height: 1.3;
  transition: transform 0.18s var(--ease), background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn::after {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.18s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-1);
}

.btn:hover::after {
  transform: translate(3px, -3px) rotate(45deg);
}

.btn--primary { --btn-bg: var(--red); --btn-fg: #ffffff; }
.btn--primary:hover { background: #d63a17; }

.btn--teal { --btn-bg: var(--teal); --btn-fg: #ffffff; }
.btn--teal:hover { background: #0b8a78; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--ink-12);
}

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

.section--ink .btn--ghost,
.panel--ink .btn--ghost {
  --btn-fg: var(--paper);
  border-color: rgba(246, 241, 231, 0.32);
}

.section--ink .btn--ghost:hover,
.panel--ink .btn--ghost:hover { border-color: var(--paper); }

.btn--block {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

/* ---------- 8. Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 2px;
  background: var(--cool);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag--red { background: var(--red); color: #fff; }
.tag--teal { background: var(--teal); color: #fff; }
.tag--gold { background: var(--gold); color: var(--ink); }
.tag--blue { background: var(--blue); color: #fff; }
.tag--ink { background: var(--ink); color: var(--paper); }

/* ---------- 9. Panels ---------- */
.panel {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
}

.panel--cut {
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
  border-color: transparent;
}

.panel--tint {
  background: var(--paper-2);
  box-shadow: none;
}

.panel--ink {
  background: var(--ink);
  color: var(--paper);
  border-color: transparent;
}

.panel--ink h2,
.panel--ink h3 { color: var(--paper); }

.panel__head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.panel--ink .panel__head { border-bottom-color: rgba(246, 241, 231, 0.16); }

.panel__body { padding: 22px; }

/* ---------- 10. Grid ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

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

@media (max-width: 980px) {
  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 11. Rules & breadcrumb ---------- */
.rule {
  border: 0;
  height: 1px;
  background: var(--line);
}

.rule--accent {
  height: 4px;
  background: linear-gradient(90deg, var(--red) 0 30%, var(--orange) 30% 55%, var(--gold) 55% 72%, var(--teal) 72% 90%, var(--blue) 90% 100%);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.77rem;
  letter-spacing: 0.03em;
  color: var(--ink-45);
}

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

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--ink-12);
}

.breadcrumb a { transition: color 0.16s ease; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb [aria-current="page"] { color: var(--ink); }

/* ---------- 12. Media frame ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background-color: var(--paper-2);
  background-image: repeating-linear-gradient(135deg, rgba(16, 28, 44, 0.065) 0 1px, transparent 1px 14px);
}

.media-frame > img,
.media-frame > picture { display: block; width: 100%; height: 100%; }

.media-frame > img,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--bleed { border: 0; border-radius: 0; }

.media-frame__tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 2px;
  background: rgba(16, 28, 44, 0.84);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.69rem;
  letter-spacing: 0.08em;
}

/* ---------- 13. Copy chip ---------- */
.copy-chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 6px 11px;
  border: 1px dashed var(--ink-12);
  border-radius: 2px;
  background: var(--paper-2);
  color: var(--ink);
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.copy-chip:hover {
  border-color: var(--red);
  color: var(--red);
}

.copy-chip.is-copied {
  border-style: solid;
  border-color: var(--teal);
  background: var(--teal);
  color: #ffffff;
}

/* ---------- 14. Header / rail ---------- */
.site-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 70;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 26px 22px 22px;
  background: var(--ink);
  color: var(--paper);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.site-rail::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--red), var(--orange));
  pointer-events: none;
}

.site-rail a { color: inherit; }

/* rail top */
.rail__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__mark {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding-bottom: 4px;
  background: var(--red);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.28;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: rgba(246, 241, 231, 0.46);
}

/* toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(246, 241, 231, 0.3);
  border-radius: var(--r-sm);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.84rem;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.nav-toggle:hover { border-color: var(--paper); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 12px;
}

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

.nav-toggle__bars::before {
  top: 0;
  box-shadow: 0 5px 0 currentColor;
}

.nav-toggle__bars::after { bottom: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(5px) rotate(45deg);
  box-shadow: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-5px) rotate(-45deg);
}

.nav-toggle__text { letter-spacing: 0.02em; }

/* rail nav */
.rail__nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1 1 auto;
  min-height: 0;
}

.nav__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(246, 241, 231, 0.42);
}

.nav__eyebrow::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: rgba(246, 241, 231, 0.16);
}

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

.nav-list__item { display: block; }

.nav-link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 10px 10px 12px;
  border-left: 3px solid transparent;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: rgba(246, 241, 231, 0.72);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.97rem;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, padding-left 0.18s ease;
}

.nav-link__idx {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: rgba(246, 241, 231, 0.34);
  transition: color 0.18s ease;
}

.nav-link:hover {
  background: rgba(246, 241, 231, 0.07);
  border-left-color: var(--orange);
  color: #ffffff;
  padding-left: 15px;
}

.nav-link[aria-current="page"] {
  background: rgba(232, 69, 31, 0.18);
  border-left-color: var(--red);
  color: #ffffff;
}

.nav-link[aria-current="page"] .nav-link__idx { color: var(--gold); }

/* rail legal (mobile drawer only) */
.rail__legal {
  display: none;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(246, 241, 231, 0.14);
}

.rail__legal a {
  font-size: 0.82rem;
  color: rgba(246, 241, 231, 0.6);
  transition: color 0.16s ease;
}

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

/* rail meta */
.rail__meta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(246, 241, 231, 0.16);
}

.rail__version {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.rail__key {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(246, 241, 231, 0.45);
}

.copy-chip--rail {
  width: 100%;
  text-align: left;
  border-color: rgba(246, 241, 231, 0.28);
  background: transparent;
  color: var(--paper);
}

.copy-chip--rail:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
}

.copy-chip--rail.is-copied {
  background: var(--teal);
  border-color: var(--teal);
  color: #ffffff;
}

.rail__cadence {
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(246, 241, 231, 0.55);
}

/* ---------- 15. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: auto;
  padding-top: 60px;
  background: var(--ink);
  color: rgba(246, 241, 231, 0.78);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red) 0 22%, var(--orange) 22% 46%, var(--gold) 46% 62%, var(--teal) 62% 84%, var(--blue) 84% 100%);
}

.footer__grid {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr 1.4fr;
  gap: clamp(20px, 3vw, 40px);
  padding-bottom: 46px;
}

.footer__brand { min-width: 0; }

.footer__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin-bottom: 8px;
}

.footer__tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.footer__note {
  max-width: 30ch;
  font-size: 0.86rem;
  line-height: 1.8;
  color: rgba(246, 241, 231, 0.6);
}

.footer__col { min-width: 0; }

.footer__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  color: var(--paper);
  margin-bottom: 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(246, 241, 231, 0.16);
}

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

.footer__list a {
  display: inline-block;
  font-size: 0.88rem;
  color: rgba(246, 241, 231, 0.7);
  transition: color 0.16s ease, padding-left 0.16s ease;
}

.footer__list a:hover {
  color: var(--paper);
  padding-left: 5px;
}

.footer__list--mono li {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.01em;
  line-height: 1.65;
  color: rgba(246, 241, 231, 0.7);
  word-break: break-all;
}

.footer__addr {
  font-size: 0.85rem;
  line-height: 1.85;
  color: rgba(246, 241, 231, 0.64);
}

.footer__bar {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(246, 241, 231, 0.16);
}

.footer__mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(246, 241, 231, 0.56);
}

/* ---------- 16. Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  height: 3px;
  background: rgba(16, 28, 44, 0.08);
  pointer-events: none;
}

.scroll-progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--red), var(--orange) 42%, var(--gold) 68%, var(--teal));
  transition: width 0.12s linear;
}

/* ---------- 17. Reveal ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 18. Responsive shell ---------- */
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }
}

@media (max-width: 1100px) {
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
  .site-rail {
    position: sticky;
    inset: auto;
    top: 0;
    width: auto;
    height: var(--bar-h);
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    overflow: visible;
    box-shadow: 0 1px 0 rgba(246, 241, 231, 0.1);
  }

  .site-rail::before { display: none; }

  .rail__top {
    flex: 1 1 auto;
    width: 100%;
    align-items: center;
  }

  .brand__mark {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .brand__name { font-size: 0.98rem; }
  .brand__sub { display: none; }

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

  .rail__meta { display: none; }

  .rail__nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--bar-h);
    max-height: calc(100dvh - var(--bar-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 65;
    padding: 22px 20px 26px;
    background: var(--ink);
    border-top: 1px solid rgba(246, 241, 231, 0.12);
    border-bottom: 4px solid var(--red);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.26s var(--ease), opacity 0.22s var(--ease), visibility 0.22s linear;
  }

  .rail__nav[data-open] {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .rail__legal { display: flex; }

  .nav-link { font-size: 1.02rem; padding-block: 12px; }

  .footer__bar { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer { padding-top: 46px; }
}

@media (max-width: 460px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .wrap,
  .footer__grid,
  .footer__bar { width: min(100% - 28px, var(--wrap)); }
}

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

  .has-js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .btn:hover { transform: none; }
  .nav-link:hover { padding-left: 12px; }
  .footer__list a:hover { padding-left: 0; }
}
