:root {
  color-scheme: dark;
  --ink: #0B0F0E;
  --deep: #071A14;
  --surface: #0E2A22;
  --accent: #35F2B2;
  --signal: #FF8A3D;
  --white: #EAF7F2;
  --muted: #9AB3AA;
  --line: #1F3B32;
  --link-hover: #78FFE0;
  --danger: #FF6B5E;
  --rail-w: 232px;
  --rail-w-compact: 78px;
  --topbar-h: 56px;
  --content-max: 1440px;
  --page-gutter: clamp(16px, 3vw, 32px);
  --radius: 2px;
  --shadow: 0 22px 50px rgba(0, 0, 0, 0.32);
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --numeric: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

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

html {
  min-width: 320px;
  background: var(--ink);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-top: var(--topbar-h);
  overflow-x: hidden;
  background-color: var(--ink);
  background-image:
    radial-gradient(ellipse at 86% 6%, rgba(53, 242, 178, 0.09), transparent 34rem),
    radial-gradient(ellipse at 0% 82%, rgba(255, 138, 61, 0.05), transparent 30rem),
    linear-gradient(90deg, rgba(53, 242, 178, 0.025) 1px, transparent 1px);
  background-size: auto, auto, 96px 96px;
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

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

h1,
h2,
h3,
h4 {
  color: var(--white);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(44px, 7vw, 76px);
}

h2 {
  font-size: clamp(30px, 4.4vw, 48px);
}

h3 {
  font-size: clamp(20px, 2.4vw, 26px);
}

h4 {
  font-size: 18px;
}

a {
  color: inherit;
}

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

button {
  color: inherit;
}

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

img,
video {
  display: block;
}

table {
  border-collapse: collapse;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--link-hover);
  outline-offset: 3px;
}

#main-content {
  display: block;
  min-height: 60vh;
}

#main-content:focus {
  outline: none;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 300;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 120;
}

.command-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--topbar-h);
  padding: 0 clamp(12px, 2vw, 22px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 26, 20, 0.96);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.brand-lockup {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  min-width: 196px;
  color: var(--white);
  text-decoration: none;
}

.brand-lockup__mark {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(53, 242, 178, 0.34);
  background:
    linear-gradient(135deg, rgba(53, 242, 178, 0.1), transparent 62%),
    var(--deep);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.24);
}

.brand-lockup__rail {
  position: absolute;
  left: 6px;
  height: 2px;
  background: var(--accent);
  transform: skewX(-26deg);
}

.brand-lockup__rail:nth-child(1) {
  top: 9px;
  width: 18px;
}

.brand-lockup__rail:nth-child(2) {
  top: 15px;
  width: 12px;
  background: var(--signal);
}

.brand-lockup__rail:nth-child(3) {
  top: 21px;
  width: 16px;
  background: var(--link-hover);
}

.brand-lockup__text {
  display: grid;
  min-width: 0;
  line-height: 1;
}

.brand-lockup__name {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-lockup__sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.maintenance-status {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.maintenance-status__text {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.12), 0 0 12px rgba(255, 138, 61, 0.55);
}

.command-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.button {
  --button-bg: transparent;
  --button-fg: var(--white);
  --button-border: var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--button-border);
  border-radius: var(--radius);
  background: var(--button-bg);
  color: var(--button-fg);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  --button-bg: var(--accent);
  --button-fg: var(--ink);
  --button-border: var(--accent);
  box-shadow: 0 0 0 1px rgba(53, 242, 178, 0.12), 0 8px 24px rgba(53, 242, 178, 0.12);
}

.button--primary:hover {
  --button-bg: var(--link-hover);
  --button-border: var(--link-hover);
}

.button--ghost {
  --button-bg: rgba(14, 42, 34, 0.38);
  --button-fg: var(--white);
  --button-border: var(--line);
}

.button--ghost:hover {
  --button-border: var(--accent);
  color: var(--accent);
}

.button--compact {
  min-height: 32px;
  padding: 0 11px;
  font-size: 12px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 42, 34, 0.48);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.nav-toggle__bars {
  display: inline-block;
  width: 16px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 -5px 0 var(--accent), 0 5px 0 var(--accent);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: var(--signal);
  box-shadow: 0 -5px 0 var(--signal), 0 5px 0 var(--signal);
  transform: rotate(90deg);
}

.nav-toggle__label {
  line-height: 1;
}

.side-rail {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  bottom: 0;
  z-index: 110;
  display: flex;
  flex-direction: column;
  width: var(--rail-w);
  padding: 24px 18px 20px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(53, 242, 178, 0.035), transparent 30%),
    linear-gradient(180deg, var(--deep), #06110e);
  box-shadow: 12px 0 28px rgba(0, 0, 0, 0.16);
}

.rail-kicker {
  margin: 0;
  color: var(--signal);
  font-family: var(--numeric);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.14em;
}

.rail-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 24px;
}

.rail-link {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  font-weight: 550;
  line-height: 1.2;
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.rail-index {
  color: var(--signal);
  font-family: var(--numeric);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  opacity: 0.82;
  transition: color 180ms ease, opacity 180ms ease;
}

.rail-link__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-link:hover {
  border-color: var(--line);
  background: rgba(14, 42, 34, 0.62);
  color: var(--white);
}

.rail-link[aria-current="page"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(53, 242, 178, 0.13);
  transform: translateX(3px);
}

.rail-link[aria-current="page"] .rail-index {
  color: var(--deep);
  opacity: 1;
}

.rail-foot {
  display: grid;
  gap: 5px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.rail-coordinate {
  color: var(--signal);
  font-family: var(--numeric);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.rail-meta {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.reading-progress {
  position: fixed;
  top: calc(var(--topbar-h) - 2px);
  left: 0;
  right: 0;
  z-index: 150;
  height: 2px;
  overflow: hidden;
  background: rgba(31, 59, 50, 0.55);
  pointer-events: none;
}

.reading-progress__bar {
  display: block;
  width: var(--reading-progress-width, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--link-hover));
  box-shadow: 0 0 14px rgba(53, 242, 178, 0.52);
  transition: width 120ms linear;
}

.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 120px);
  overflow: hidden;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 96% 0%, rgba(53, 242, 178, 0.06), transparent 30rem),
    linear-gradient(180deg, var(--deep), #050b09);
  color: var(--white);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(53, 242, 178, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(53, 242, 178, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.55;
  pointer-events: none;
}

.footer-signal,
.footer-grid,
.footer-legal {
  position: relative;
  z-index: 1;
  width: min(calc(100% - var(--page-gutter) * 2), var(--content-max));
  margin-inline: auto;
}

.footer-signal {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  color: var(--muted);
  font-family: var(--numeric);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.1em;
}

.footer-signal__line {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--signal), rgba(255, 138, 61, 0.04));
}

.footer-signal__code {
  flex: 0 0 auto;
}

.footer-signal__status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  color: var(--signal);
}

.footer-signal__dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 10px rgba(255, 138, 61, 0.5);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(300px, 1.3fr) minmax(260px, 0.95fr);
  gap: 36px;
  align-items: start;
  padding-block: 44px;
}

.footer-brand {
  min-width: 0;
  max-width: 540px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--white);
  text-decoration: none;
}

.footer-logo__mark {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: rgba(14, 42, 34, 0.72);
}

.footer-logo__rail {
  position: absolute;
  left: 8px;
  height: 2px;
  background: var(--accent);
  transform: skewX(-28deg);
}

.footer-logo__rail:nth-child(1) {
  top: 11px;
  width: 21px;
}

.footer-logo__rail:nth-child(2) {
  top: 18px;
  width: 14px;
  background: var(--signal);
}

.footer-logo__rail:nth-child(3) {
  top: 25px;
  width: 19px;
  background: var(--link-hover);
}

.footer-wordmark {
  display: block;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
}

.footer-wordmark__sub {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.footer-brand__title {
  max-width: 15ch;
  margin-bottom: 14px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
}

.footer-blurb {
  max-width: 58ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.78;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 138, 61, 0.28);
  background: rgba(255, 138, 61, 0.06);
  color: var(--signal);
  font-size: 11px;
  line-height: 1.3;
}

.footer-status__dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal);
}

.footer-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  min-width: 0;
}

.footer-col {
  min-width: 0;
}

.footer-col__title {
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--white);
  font-family: var(--numeric);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.12em;
}

.footer-link-list {
  display: grid;
  gap: 9px;
}

.footer-link-list a {
  display: inline-block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.footer-link-list a:hover {
  color: var(--accent);
  transform: translateX(3px);
}

.footer-contact {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(14, 42, 34, 0.44);
  box-shadow: var(--shadow);
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.contact-label {
  padding-top: 2px;
  color: var(--muted);
  font-family: var(--numeric);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.contact-value {
  min-width: 0;
  color: var(--white);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.copy-button {
  min-height: 22px;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--accent);
  font-size: 10px;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.copy-button:hover {
  border-color: var(--accent);
  background: rgba(53, 242, 178, 0.08);
  color: var(--link-hover);
}

.contact-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.footer-contact-link {
  display: inline-flex;
  margin-top: 16px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(53, 242, 178, 0.36);
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
}

.footer-contact-link:hover {
  color: var(--link-hover);
  border-bottom-color: var(--link-hover);
}

.copy-feedback {
  min-height: 16px;
  margin-top: 8px;
  color: var(--accent);
  font-size: 11px;
  line-height: 1.45;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 20px;
  padding-bottom: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.footer-legal__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.footer-legal__icp {
  color: var(--signal);
  font-family: var(--numeric);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.footer-legal__links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms ease;
}

.footer-legal__links a:hover {
  color: var(--accent);
}

.footer-meta {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.container {
  width: min(calc(100% - var(--page-gutter) * 2), var(--content-max));
  margin-inline: auto;
}

.section-shell {
  padding-block: clamp(56px, 8vw, 112px);
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-family: var(--numeric);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.12em;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--signal);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 42, 34, 0.48);
  color: var(--muted);
  font-family: var(--numeric);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.status-pill--accent {
  border-color: rgba(53, 242, 178, 0.36);
  background: rgba(53, 242, 178, 0.08);
  color: var(--accent);
}

.status-pill--signal {
  border-color: rgba(255, 138, 61, 0.34);
  background: rgba(255, 138, 61, 0.08);
  color: var(--signal);
}

.status-pill--danger {
  border-color: rgba(255, 107, 94, 0.34);
  background: rgba(255, 107, 94, 0.08);
  color: var(--danger);
}

.data-number {
  color: var(--white);
  font-family: var(--numeric);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.surface-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.image-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(53, 242, 178, 0.08), transparent 55%),
    var(--deep);
}

.image-frame--landscape {
  aspect-ratio: 16 / 9;
}

.image-frame--portrait {
  aspect-ratio: 3 / 4;
}

.image-frame img,
.image-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-frame__caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid rgba(31, 59, 50, 0.82);
  background: rgba(11, 15, 14, 0.78);
  color: var(--white);
  font-size: 11px;
  line-height: 1.45;
  backdrop-filter: blur(8px);
}

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

.text-link {
  color: var(--link-hover);
  text-decoration: none;
  border-bottom: 1px solid rgba(120, 255, 224, 0.34);
  transition: color 180ms ease, border-color 180ms ease;
}

.text-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.breadcrumbs {
  color: var(--muted);
  font-size: 12px;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  color: var(--line);
}

.breadcrumbs__link {
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms ease;
}

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

.breadcrumbs__current {
  color: var(--white);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.content-grid > * {
  min-width: 0;
}

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

.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 450ms ease, transform 450ms ease;
}

.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (min-width: 901px) and (max-width: 1200px) {
  body {
    padding-left: var(--rail-w-compact);
  }

  .side-rail {
    width: var(--rail-w-compact);
    padding: 20px 8px;
  }

  .rail-kicker {
    display: none;
  }

  .rail-list {
    gap: 8px;
    margin-top: 18px;
  }

  .rail-link {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 46px;
    padding: 8px 4px;
  }

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

  .rail-foot {
    display: none;
  }

  .brand-lockup {
    min-width: 0;
  }
}

@media (max-width: 1080px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  body {
    padding-left: 0;
  }

  .command-bar {
    gap: 10px;
    padding-inline: 14px;
  }

  .brand-lockup {
    min-width: 0;
  }

  .maintenance-status {
    flex: 1 1 auto;
    font-size: 11px;
  }

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

  .side-rail {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    bottom: auto;
    display: block;
    width: auto;
    max-height: 0;
    padding: 0 16px;
    overflow: hidden;
    border-right: 0;
    border-bottom: 1px solid transparent;
    background:
      linear-gradient(180deg, rgba(53, 242, 178, 0.04), transparent 42%),
      var(--deep);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: max-height 240ms ease, opacity 180ms ease, transform 180ms ease, padding 240ms ease, visibility 240ms ease, border-color 180ms ease, box-shadow 180ms ease;
  }

  .side-rail[data-open="true"] {
    max-height: min(70vh, 560px);
    padding: 18px 16px 20px;
    overflow-y: auto;
    border-bottom-color: var(--line);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .rail-kicker {
    margin-bottom: 12px;
  }

  .rail-list {
    flex-direction: row;
    gap: 8px;
    margin-top: 0;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .rail-link {
    display: flex;
    flex: 0 0 auto;
    min-width: 138px;
    min-height: 42px;
    padding: 8px 10px;
  }

  .rail-link[aria-current="page"] {
    transform: translateX(0) translateY(-2px);
  }

  .rail-foot {
    display: none;
  }

  .content-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand,
  .footer-contact {
    grid-column: auto;
  }

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

  .footer-signal {
    gap: 10px;
  }
}

@media (max-width: 760px) {
  .command-actions .button--ghost {
    display: none;
  }

  .maintenance-status {
    font-size: 10px;
  }

  .footer-signal__code {
    display: none;
  }

  .footer-signal__line {
    min-width: 24px;
  }

  .footer-legal {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .brand-lockup__sub {
    display: none;
  }

  .brand-lockup__mark {
    width: 30px;
    height: 30px;
  }

  .brand-lockup__rail:nth-child(1) {
    top: 8px;
  }

  .brand-lockup__rail:nth-child(2) {
    top: 14px;
  }

  .brand-lockup__rail:nth-child(3) {
    top: 20px;
  }

  .brand-lockup__name {
    font-size: 16px;
  }

  .maintenance-status__text {
    max-width: 120px;
  }

  .command-actions .button--primary {
    padding-inline: 9px;
    font-size: 11px;
  }

  .footer-index {
    grid-template-columns: 1fr;
  }

  .content-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-legal__links {
    flex-wrap: wrap;
  }

  .footer-legal__brand {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .command-bar {
    gap: 8px;
    padding-inline: 10px;
  }

  .maintenance-status {
    max-width: 68px;
  }

  .maintenance-status__text {
    max-width: 54px;
  }

  .nav-toggle {
    padding-inline: 8px;
  }

  .nav-toggle__label {
    display: none;
  }

  .command-actions .button--primary {
    min-height: 30px;
    padding-inline: 8px;
  }

  .rail-link {
    min-width: 128px;
  }

  .footer-contact {
    padding: 16px;
  }

  .contact-item {
    grid-template-columns: 46px minmax(0, 1fr) auto;
  }

  .footer-signal__status {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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

  .reading-progress__bar {
    transition: none;
  }
}
