:root {
  --sky: #071A2C;
  --console: #0D243B;
  --steel: #1B3A57;
  --mist: #8CA3B8;
  --frost: #F3F8FC;
  --orange: #FF6A2A;
  --signal: #FFD24A;
  --red-card: #D93A3F;
  --yellow-card: #F2B705;
  --pitch: #35C47A;

  --rail-width: 268px;
  --content-max: 1240px;
  --gutter: clamp(1rem, 2.4vw, 2.5rem);
  --line: 1px solid rgba(140, 163, 184, 0.22);
  --line-strong: 1px solid rgba(140, 163, 184, 0.42);
  --radius: 4px;
  --shadow-soft: 0 18px 40px -28px rgba(0, 0, 0, 0.9);

  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-data: "IBM Plex Mono", "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --font-edit: "Noto Serif SC", "Songti SC", serif;
}

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

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

body {
  margin: 0;
  background:
    radial-gradient(1200px 480px at 88% -10%, rgba(255, 106, 42, 0.12), transparent 62%),
    linear-gradient(180deg, #071A2C 0%, #081F33 44%, #071A2C 100%);
  color: var(--frost);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p, ul, ol, figure, blockquote {
  margin: 0;
}

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

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

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

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

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

::selection {
  background: var(--orange);
  color: #0A1420;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: 200;
  padding: 0.7rem 1.2rem;
  background: var(--signal);
  color: #0A1420;
  font-family: var(--font-data);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 2px;
  transition: top 160ms ease;
}

.skip-link:focus-visible {
  top: 0.75rem;
}

/* ---------- Rail header ---------- */
.rail {
  position: relative;
  z-index: 60;
  background: linear-gradient(180deg, rgba(9, 30, 48, 0.98), rgba(7, 26, 44, 0.96));
  border-bottom: var(--line);
}

.rail::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(140, 163, 184, 0.09) 0 1px, transparent 1px 84px);
  opacity: 0.65;
}

.rail__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 0.9rem var(--gutter);
  min-height: 76px;
}

.rail__brand {
  flex: 1 1 auto;
  min-width: 0;
}

.rail__brandlink {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.rail__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: var(--line-strong);
  border-radius: 2px;
  background:
    linear-gradient(135deg, rgba(255, 106, 42, 0.22), transparent 58%),
    var(--console);
  color: var(--signal);
  font-family: var(--font-data);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  box-shadow: inset 0 0 0 1px rgba(255, 210, 74, 0.08);
}

.rail__wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.rail__name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--frost);
  white-space: nowrap;
}

.rail__descriptor {
  font-family: var(--font-data);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--mist);
  text-transform: uppercase;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem;
  border: var(--line-strong);
  border-radius: 2px;
  background: var(--console);
  color: var(--frost);
  font-family: var(--font-data);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  transition: border-color 160ms ease, background 160ms ease;
}

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

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--orange);
  transition: transform 200ms ease, opacity 200ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(6px) 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(-6px) rotate(-45deg);
}

.rail__nav {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1.1rem var(--gutter) 1.4rem;
  background: linear-gradient(180deg, #0A2135, #081C2E);
  border-bottom: var(--line-strong);
  box-shadow: var(--shadow-soft);
  max-height: calc(100vh - 130px);
  overflow-y: auto;
}

.rail__nav[data-open="true"] {
  display: flex;
  animation: navDrop 220ms ease both;
}

@keyframes navDrop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.rail__list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.rail__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.72rem 0.85rem 0.72rem 1.05rem;
  border-left: 2px solid transparent;
  color: var(--frost);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.rail__link::after {
  content: "›";
  font-family: var(--font-data);
  color: var(--mist);
  opacity: 0.55;
  font-size: 0.9rem;
}

.rail__link:hover {
  background: rgba(27, 58, 87, 0.42);
  border-left-color: var(--orange);
  color: var(--frost);
}

.rail__link[aria-current="page"] {
  background: linear-gradient(90deg, rgba(255, 106, 42, 0.16), transparent 78%);
  border-left-color: var(--orange);
  color: var(--signal);
  font-weight: 600;
}

.rail__link[aria-current="page"]::after {
  content: "●";
  color: var(--orange);
  opacity: 1;
  font-size: 0.52rem;
}

.rail__utility {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding-top: 0.9rem;
  border-top: var(--line);
}

.rail__clock {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-data);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: var(--mist);
}

.rail__clock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pitch);
  box-shadow: 0 0 0 3px rgba(53, 196, 122, 0.16);
}

.rail__clock-label {
  color: var(--mist);
}

.rail__clock-value {
  color: var(--signal);
  font-weight: 600;
}

.rail__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  background: var(--orange);
  color: #10151B;
  font-family: var(--font-data);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 2px;
  border: 1px solid rgba(255, 106, 42, 0.6);
  transition: background 160ms ease, transform 160ms ease;
}

.rail__action:hover {
  background: #FF8347;
  transform: translateY(-1px);
}

/* ---------- Ticker ---------- */
.ticker {
  position: relative;
  border-top: var(--line);
  background: var(--console);
}

.ticker__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 0.5rem var(--gutter);
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--mist);
}

.ticker__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px rgba(255, 210, 74, 0.14);
}

.ticker__label {
  color: var(--mist);
  text-transform: uppercase;
}

.ticker__value {
  color: var(--frost);
}

.ticker__sep {
  width: 1px;
  height: 12px;
  background: rgba(140, 163, 184, 0.35);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.35rem;
  border-radius: 2px;
  border: 1px solid transparent;
  font-family: var(--font-data);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.btn--primary {
  background: var(--orange);
  color: #10151B;
  border-color: rgba(255, 106, 42, 0.7);
}

.btn--primary:hover {
  background: #FF8347;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--frost);
  border-color: rgba(140, 163, 184, 0.5);
}

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

.btn--sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.76rem;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 1rem var(--gutter) 0;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  color: rgba(140, 163, 184, 0.55);
}

.breadcrumbs__link {
  color: var(--mist);
  transition: color 150ms ease;
}

.breadcrumbs__link:hover {
  color: var(--signal);
}

.breadcrumbs__link[aria-current="page"] {
  color: var(--frost);
}

/* ---------- Page shells ---------- */
.page-shell {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: clamp(1.5rem, 3.4vw, 3.2rem) var(--gutter) clamp(2.5rem, 5vw, 5rem);
}

.page-container {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.75rem);
}

.prose {
  max-width: 72ch;
  color: rgba(243, 248, 252, 0.88);
  font-size: 1rem;
  line-height: 1.8;
}

.prose h2,
.prose h3 {
  margin-top: 1.9em;
  color: var(--frost);
}

.prose h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.prose h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-family: var(--font-edit);
  font-weight: 700;
  letter-spacing: 0;
}

.prose p + p {
  margin-top: 1em;
}

.prose strong {
  color: var(--signal);
  font-weight: 600;
}

.prose a {
  color: var(--signal);
  border-bottom: 1px solid rgba(255, 210, 74, 0.45);
}

.prose a:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.prose ul,
.prose ol {
  margin-top: 0.9em;
  padding-left: 1.15rem;
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

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

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

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid--5-7 {
  grid-template-columns: 1fr;
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(13, 36, 59, 0.92), rgba(9, 28, 45, 0.92));
  border: var(--line);
  border-radius: var(--radius);
  padding: clamp(1rem, 2vw, 1.4rem);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 106, 42, 0.45);
  box-shadow: 0 22px 46px -26px rgba(0, 0, 0, 0.95);
}

.card--file::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--orange), rgba(255, 106, 42, 0.12));
  border-radius: var(--radius) 0 0 var(--radius);
}

.card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.7rem;
  margin-bottom: 0.7rem;
  border-bottom: var(--line);
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--frost);
}

.card__meta {
  font-family: var(--font-data);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--mist);
}

/* ---------- Chips & tags ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border: var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--mist);
  font-family: var(--font-data);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.chip:hover {
  color: var(--frost);
  border-color: rgba(255, 210, 74, 0.65);
}

.chip--active {
  background: var(--signal);
  border-color: var(--signal);
  color: #10151B;
  font-weight: 600;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  font-family: var(--font-data);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  border: 1px solid transparent;
}

.tag--warn {
  background: rgba(242, 183, 5, 0.16);
  border-color: rgba(242, 183, 5, 0.55);
  color: var(--yellow-card);
}

.tag--alert {
  background: rgba(217, 58, 63, 0.16);
  border-color: rgba(217, 58, 63, 0.55);
  color: #FF7C80;
}

.tag--ok {
  background: rgba(53, 196, 122, 0.14);
  border-color: rgba(53, 196, 122, 0.5);
  color: var(--pitch);
}

/* ---------- Media frames ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border: var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(27, 58, 87, 0.75), rgba(7, 26, 44, 0.9)),
    repeating-linear-gradient(45deg, rgba(140, 163, 184, 0.12) 0 1px, transparent 1px 14px);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-soft);
}

.media-frame--wide {
  aspect-ratio: 16 / 9;
}

.media-frame--tall {
  aspect-ratio: 3 / 4;
}

.media-frame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.55rem 0.8rem;
  font-family: var(--font-data);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--frost);
  background: linear-gradient(180deg, transparent, rgba(7, 26, 44, 0.94));
}

/* ---------- Section heads ---------- */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 0.9rem;
  border-bottom: var(--line);
}

.section-head__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-data);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
}

.section-head__kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--orange);
}

.section-head__title {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  color: var(--frost);
}

.section-head__note {
  max-width: 64ch;
  color: var(--mist);
  font-size: 0.94rem;
}

/* ---------- Data lines ---------- */
.data-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(140, 163, 184, 0.22);
  font-family: var(--font-data);
}

.data-line:last-child {
  border-bottom: 0;
}

.data-line__num {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--signal);
  letter-spacing: 0.03em;
}

.data-line__label {
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: var(--mist);
}

/* ---------- Reveal ---------- */
.reveal,
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms ease, transform 520ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

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

/* ---------- To top ---------- */
.to-top {
  position: fixed;
  right: clamp(0.9rem, 2.4vw, 1.8rem);
  bottom: clamp(0.9rem, 2.4vw, 1.8rem);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: var(--line-strong);
  border-radius: 2px;
  background: rgba(13, 36, 59, 0.94);
  color: var(--signal);
  font-family: var(--font-data);
  font-size: 0.95rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease, border-color 180ms ease;
}

.to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(2.5rem, 6vw, 5rem);
  background:
    linear-gradient(180deg, rgba(9, 29, 47, 0.98), rgba(6, 22, 37, 0.99)),
    repeating-linear-gradient(90deg, rgba(140, 163, 184, 0.07) 0 1px, transparent 1px 72px);
  border-top: 1px solid rgba(255, 106, 42, 0.32);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--orange) 0 42px, transparent 42px 84px, var(--signal) 84px 126px, transparent 126px 168px);
  opacity: 0.75;
}

.footer__grid {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: clamp(2rem, 4vw, 3.4rem) var(--gutter) clamp(1.4rem, 3vw, 2.2rem);
  display: grid;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  grid-template-columns: 1fr;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer__wordmark {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--frost);
}

.footer__tagline {
  max-width: 34ch;
  color: var(--mist);
  font-size: 0.92rem;
  line-height: 1.65;
}

.footer__stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-data);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(255, 210, 74, 0.85);
}

.footer__stamp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 0.2rem;
  border-top: var(--line);
}

.footer__title {
  padding-top: 0.7rem;
  font-family: var(--font-data);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--signal);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer__link {
  color: rgba(243, 248, 252, 0.84);
  font-size: 0.92rem;
  border-bottom: 1px solid transparent;
  transition: color 150ms ease, border-color 150ms ease;
}

.footer__link:hover {
  color: var(--orange);
  border-bottom-color: rgba(255, 106, 42, 0.6);
}

.footer__contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(243, 248, 252, 0.85);
}

.footer__contact-key {
  flex: 0 0 auto;
  font-family: var(--font-data);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--mist);
  padding-top: 0.18rem;
}

.footer__mono {
  font-family: var(--font-data);
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  color: var(--signal);
}

.footer__note {
  color: var(--mist);
  font-size: 0.78rem;
  line-height: 1.7;
  max-width: 42ch;
}

.footer__status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-data);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: rgba(243, 248, 252, 0.84);
}

.footer__status-light {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pitch);
  box-shadow: 0 0 0 3px rgba(53, 196, 122, 0.15);
}

.footer__status-light--amber {
  background: var(--yellow-card);
  box-shadow: 0 0 0 3px rgba(242, 183, 5, 0.15);
}

.footer__archive {
  font-family: var(--font-data);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--mist);
}

.footer__cta {
  align-self: flex-start;
  margin-top: 0.35rem;
}

.footer__legal {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 1rem var(--gutter) 1.6rem;
  border-top: var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.4rem;
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--mist);
}

.footer__icp {
  color: rgba(243, 248, 252, 0.75);
}

.footer__legal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.footer__copyright {
  margin-left: auto;
  color: rgba(140, 163, 184, 0.85);
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .grid--5-7 {
    grid-template-columns: 5fr 7fr;
  }

  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1.5fr 1fr;
  }

  .footer__brand {
    grid-column: auto;
  }
}

@media (max-width: 899px) {
  .rail__inner {
    min-height: 68px;
  }

  .rail__name {
    font-size: 1.14rem;
  }
}

@media (min-width: 1024px) {
  body {
    padding-left: var(--rail-width);
  }

  .rail {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--rail-width);
    border-bottom: 0;
    border-right: var(--line-strong);
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #081F33 0%, #061827 100%);
  }

  .rail__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1.2rem;
    padding: 1.4rem 1.15rem 1rem;
    min-height: 0;
    flex: 1 1 auto;
    max-width: none;
    overflow-y: auto;
  }

  .rail__brand {
    flex: 0 0 auto;
    padding-bottom: 1rem;
    border-bottom: var(--line);
  }

  .nav-toggle {
    display: none;
  }

  .rail__nav {
    position: static;
    display: flex;
    flex: 1 1 auto;
    padding: 0;
    border-bottom: 0;
    box-shadow: none;
    background: transparent;
    max-height: none;
    overflow: visible;
    animation: none;
  }

  .rail__list {
    gap: 0.1rem;
  }

  .rail__link {
    padding: 0.62rem 0.55rem 0.62rem 0.85rem;
    font-size: 0.92rem;
  }

  .rail__utility {
    margin-top: auto;
  }

  .ticker {
    background: rgba(7, 26, 44, 0.92);
  }

  .ticker__inner {
    padding-inline: 1.15rem;
    font-size: 0.66rem;
    gap: 0.4rem 0.55rem;
  }

  .ticker__sep {
    display: none;
  }

  .ticker__value {
    flex: 1 1 100%;
  }

  .footer__legal {
    padding-bottom: 2.2rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .rail__descriptor {
    font-size: 0.62rem;
    letter-spacing: 0.16em;
  }

  .footer__copyright {
    margin-left: 0;
    flex: 1 1 100%;
  }

  .ticker__inner {
    font-size: 0.66rem;
  }
}

@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;
  }

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

  .card:hover,
  .btn:hover,
  .rail__action:hover {
    transform: none;
  }
}
