/* ==========================================================================
   九1官网服务 · 共享 Site Kit
   展览画册式布局 / 侧边轨道导航 / 硬边粗野主义细节
   ========================================================================== */

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

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

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ul, ol, fieldset {
  margin: 0;
}

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

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

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

a { color: inherit; }

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

/* ---------- 2. Tokens ---------- */
:root {
  /* 色板 */
  --ink-950: #080B0F;
  --ink-850: #111820;
  --ink-800: #161F29;
  --graphite-700: #27313B;
  --graphite-600: #3A4653;
  --silver-200: #C7D0D9;
  --silver-100: #E8EDF2;
  --paper-050: #F3F5F7;
  --blue-500: #0A84FF;
  --blue-deep: #0757A8;
  --cyan-400: #2EE6D6;
  --cyan-deep: #07786F;
  --orange-400: #FF9F45;
  --orange-deep: #A85C10;
  --mist-300: #7D8B99;

  /* 字体 */
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, "Times New Roman", serif;
  --font-cond: "Archivo Narrow", "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;

  /* 尺度 */
  --rail-w: 268px;
  --bar-h: 64px;
  --edge: 2px;
  --radius: 2px;
  --gap: 24px;
  --shell-max: 1240px;
  --shadow-hard: 8px 8px 0 var(--graphite-700);
  --shadow-soft: 6px 6px 0 rgba(39, 49, 59, 0.16);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --z-rail: 60;
  --z-progress: 70;
  --z-skip: 200;
}

/* ---------- 3. Base typography ---------- */
body {
  min-height: 100vh;
  padding-left: var(--rail-w);
  background-color: var(--paper-050);
  color: var(--ink-950);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.78;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.04;
}

h2 { font-size: clamp(1.55rem, 2.6vw, 2.25rem); }

h3 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  letter-spacing: 0.01em;
}

h4 { font-size: 1.05rem; }

strong, b { font-weight: 700; }

small { font-size: 0.8em; }

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--blue-deep);
  background: rgba(10, 132, 255, 0.08);
  padding: 1px 5px;
  border-radius: var(--radius);
}

hr {
  border: 0;
  border-top: var(--edge) solid var(--graphite-700);
  margin: 0;
}

#main-content { display: block; scroll-margin-top: 24px; }

/* ---------- 4. Focus / motion ---------- */
:focus-visible {
  outline: 3px solid var(--cyan-400);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.plinth :focus-visible,
.rail :focus-visible { outline-color: var(--cyan-400); }

.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-skip);
  display: inline-block;
  padding: 12px 20px;
  background: var(--cyan-400);
  color: var(--ink-950);
  font-family: var(--font-cond);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  border: var(--edge) solid var(--ink-950);
  transform: translateY(-140%);
  transition: transform 0.18s var(--ease);
}

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

/* ---------- 5. Scroll progress ---------- */
.progress {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  height: 3px;
  z-index: var(--z-progress);
  pointer-events: none;
  background: rgba(39, 49, 59, 0.28);
}

.progress__bar {
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan-400), var(--blue-500));
}

/* ---------- 6. Rail (header) — desktop ---------- */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: var(--z-rail);
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 26px 20px 24px;
  background-color: var(--ink-950);
  background-image:
    repeating-linear-gradient(0deg, rgba(199, 208, 217, 0.05) 0 1px, transparent 1px 7px);
  color: var(--silver-100);
  border-right: var(--edge) solid var(--graphite-700);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--graphite-600) transparent;
}

.rail::after {
  content: "";
  position: absolute;
  top: 0;
  right: -2px;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--cyan-400), transparent 32%, transparent 68%, var(--blue-500));
  opacity: 0.5;
  pointer-events: none;
}

.rail::-webkit-scrollbar { width: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--graphite-600); }

.rail__top {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rail__brand {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 16px;
  text-decoration: none;
  color: inherit;
  border-bottom: var(--edge) solid var(--graphite-700);
}

.rail__glyph {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--cyan-400);
  border: var(--edge) solid var(--cyan-400);
  box-shadow: 3px 3px 0 rgba(46, 230, 214, 0.28);
  color: var(--ink-950);
  font-family: var(--font-cond);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.rail__brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.rail__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--silver-100);
}

.rail__descriptor {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--mist-300);
}

.rail__toggle { display: none; }

.rail__drawer {
  display: flex;
  flex-direction: column;
  gap: 22px;
  flex: 1 1 auto;
}

.rail__nav { display: block; }

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

.rail__item { display: block; }

.rail__link {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 26px 9px 8px;
  border-left: 2px solid transparent;
  color: var(--silver-200);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition:
    background-color 0.16s var(--ease),
    color 0.16s var(--ease),
    border-color 0.16s var(--ease);
}

.rail__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mist-300);
  transition: color 0.16s var(--ease);
}

.rail__label { min-width: 0; }

.rail__link:hover,
.rail__link:focus-visible {
  background: var(--ink-850);
  color: var(--silver-100);
  border-left-color: var(--cyan-400);
}

.rail__link:hover .rail__num { color: var(--cyan-400); }

.rail__link[aria-current="page"] {
  background: var(--ink-850);
  color: #FFFFFF;
  font-weight: 700;
  border-left-color: var(--cyan-400);
  box-shadow: inset -2px 0 0 var(--graphite-700);
}

.rail__link[aria-current="page"] .rail__num { color: var(--cyan-400); }

.rail__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 5px;
  height: 5px;
  transform: translateY(-50%);
  background: var(--cyan-400);
}

.rail__foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: var(--edge) solid var(--graphite-700);
}

.rail__note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.55;
  color: var(--mist-300);
}

.rail__cta { font-size: 14px; }

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: var(--edge) solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-cond);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease),
    border-color 0.18s var(--ease),
    color 0.18s var(--ease);
}

.btn--block { width: 100%; }

.btn--primary {
  background: var(--blue-500);
  border-color: var(--blue-500);
  color: #FFFFFF;
  box-shadow: 4px 4px 0 rgba(10, 132, 255, 0.32);
}

.btn--primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(10, 132, 255, 0.46);
}

.btn--ghost {
  background: transparent;
  border-color: var(--graphite-600);
  color: var(--silver-100);
}

.btn--ghost:hover {
  transform: translate(-2px, -2px);
  border-color: var(--cyan-400);
  color: var(--cyan-400);
  box-shadow: 4px 4px 0 rgba(46, 230, 214, 0.22);
}

.btn--solid {
  background: var(--paper-050);
  border-color: var(--ink-950);
  color: var(--ink-950);
  box-shadow: 4px 4px 0 rgba(39, 49, 59, 0.3);
}

.btn--solid:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(39, 49, 59, 0.38);
}

.btn--amber {
  background: transparent;
  border-color: var(--orange-400);
  color: var(--orange-deep);
}

.btn--amber:hover {
  transform: translate(-2px, -2px);
  background: var(--orange-400);
  color: var(--ink-950);
}

/* ---------- 8. Tags / labels ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.7;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag--neutral { color: var(--graphite-700); }
.tag--blue { color: var(--blue-deep); }
.tag--cyan { color: var(--cyan-400); }
.tag--orange { color: var(--orange-deep); }
.tag--dark { color: var(--silver-200); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--blue-deep);
}

.eyebrow--onDark { color: var(--cyan-400); }

/* ---------- 9. Breadcrumbs ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--mist-300);
}

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

.crumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.crumbs li + li::before {
  content: "/";
  color: var(--graphite-600);
}

.crumbs a {
  color: var(--mist-300);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.crumbs a:hover,
.crumbs a:focus-visible {
  color: var(--cyan-deep);
  border-bottom-color: var(--cyan-deep);
}

/* ---------- 10. Layout ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 44px);
}

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

.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-12 { grid-column: span 12; }

.stack { display: flex; flex-direction: column; gap: 16px; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ---------- 11. Prose ---------- */
.prose { max-width: 68ch; }

.prose > * + * { margin-top: 1.05em; }

.prose h2 {
  margin-top: 2em;
  padding-top: 0.6em;
  border-top: var(--edge) solid var(--graphite-700);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.prose h3 { margin-top: 1.6em; }

.prose p,
.prose li {
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--graphite-700);
}

.prose ul,
.prose ol {
  padding-left: 1.25em;
  list-style: disc;
}

.prose ol { list-style: decimal; }

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

.prose a {
  color: var(--blue-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose blockquote {
  padding: 14px 20px;
  border-left: 6px solid var(--cyan-deep);
  background: rgba(46, 230, 214, 0.08);
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink-850);
}

/* ---------- 12. Cards ---------- */
.slab {
  position: relative;
  padding: clamp(18px, 2.2vw, 28px);
  background: #FFFFFF;
  border: var(--edge) solid var(--ink-950);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

a.slab,
.slab--link {
  display: block;
  text-decoration: none;
  color: inherit;
}

a.slab:hover,
a.slab:focus-visible,
.slab--link:hover,
.slab--link:focus-visible {
  transform: translate(-4px, -4px);
  box-shadow: 10px 10px 0 rgba(39, 49, 59, 0.24);
}

.slab--dark {
  background: var(--ink-850);
  border-color: var(--graphite-700);
  color: var(--silver-200);
  box-shadow: var(--shadow-hard);
}

.slab--dark h2,
.slab--dark h3,
.slab--dark h4 { color: var(--silver-100); }

.slab--amber { border-left: 6px solid var(--orange-400); }

.slab--cyan { border-top: 6px solid var(--cyan-400); }

/* ---------- 13. Figure / image containers ---------- */
.figure {
  position: relative;
  margin: 0;
  background: var(--ink-850);
  border: var(--edge) solid var(--graphite-700);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
}

.figure__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink-850);
}

.figure--wide .figure__media { aspect-ratio: 21 / 9; }
.figure--tall .figure__media { aspect-ratio: 4 / 5; }
.figure--square .figure__media { aspect-ratio: 1 / 1; }

.figure__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.figure__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(46, 230, 214, 0.14) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, rgba(199, 208, 217, 0.10) 0 1px, transparent 1px 22px),
    radial-gradient(120% 90% at 20% 0%, rgba(10, 132, 255, 0.22), transparent 62%);
}

.figure__caption {
  position: relative;
  z-index: 2;
  padding: 10px 14px;
  background: var(--ink-950);
  border-top: var(--edge) solid var(--graphite-700);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--silver-200);
}

/* ---------- 14. Filter bar ---------- */
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter__btn {
  padding: 8px 14px;
  background: transparent;
  border: var(--edge) solid var(--graphite-600);
  border-radius: var(--radius);
  color: var(--silver-200);
  font-family: var(--font-cond);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.3;
  cursor: pointer;
  transition:
    background-color 0.16s var(--ease),
    color 0.16s var(--ease),
    border-color 0.16s var(--ease),
    transform 0.16s var(--ease);
}

.filter__btn:hover {
  border-color: var(--cyan-400);
  color: var(--cyan-400);
  transform: translateY(-2px);
}

.filter__btn[aria-pressed="true"] {
  background: var(--cyan-400);
  border-color: var(--cyan-400);
  color: var(--ink-950);
  transform: none;
}

.filter--light .filter__btn {
  border-color: var(--graphite-700);
  color: var(--graphite-700);
}

.filter--light .filter__btn:hover {
  border-color: var(--blue-500);
  color: var(--blue-deep);
}

.filter--light .filter__btn[aria-pressed="true"] {
  background: var(--blue-500);
  border-color: var(--blue-500);
  color: #FFFFFF;
}

[data-filter-tag][hidden] { display: none !important; }

/* ---------- 15. Reveal ---------- */
[data-reveal] {
  transition: opacity 0.52s var(--ease), transform 0.52s var(--ease);
}

[data-reveal].reveal-init {
  opacity: 0;
  transform: translateY(18px);
}

[data-reveal].reveal-init.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 16. Plinth (footer) ---------- */
.plinth {
  position: relative;
  margin-top: clamp(56px, 8vw, 120px);
  padding-top: clamp(44px, 6vw, 80px);
  background-color: var(--ink-950);
  background-image:
    radial-gradient(120% 90% at 12% 0%, rgba(46, 230, 214, 0.08), transparent 58%),
    radial-gradient(90% 80% at 92% 8%, rgba(10, 132, 255, 0.10), transparent 60%);
  color: var(--silver-200);
  border-top: var(--edge) solid var(--graphite-700);
}

.plinth__inner {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 0 clamp(18px, 4vw, 44px) clamp(36px, 5vw, 56px);
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(320px, 1.65fr) minmax(220px, 1fr);
  gap: clamp(24px, 3.4vw, 52px);
  align-items: start;
}

.plinth__lede { min-width: 0; }

.plinth__mark {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--silver-100);
}

.plinth__line {
  margin-top: 8px;
  max-width: 24ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--mist-300);
}

.plinth__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--mist-300);
}

.plinth__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  min-width: 0;
}

.plinth__col { min-width: 0; }

.plinth__title {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--graphite-600);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--cyan-400);
}

.plinth__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.plinth__links a {
  display: inline-block;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  font-size: 15px;
  line-height: 1.55;
  color: var(--silver-200);
  text-decoration: none;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.plinth__links a:hover,
.plinth__links a:focus-visible {
  color: var(--cyan-400);
  border-bottom-color: var(--cyan-400);
}

.plinth__contact { min-width: 0; }

.plinth__contact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  line-height: 1.6;
}

.plinth__contact-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}

.plinth__key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist-300);
}

.plinth__value {
  color: var(--silver-100);
  word-break: break-word;
}

.plinth__note {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.72;
  color: var(--mist-300);
}

.plinth__base {
  border-top: var(--edge) solid var(--graphite-700);
  background: rgba(0, 0, 0, 0.4);
}

.plinth__base-inner {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 18px clamp(18px, 4vw, 44px) 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 24px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--mist-300);
}

.plinth__copy,
.plinth__icp { white-space: nowrap; }

.plinth__version {
  margin-left: auto;
  max-width: 56ch;
  text-align: right;
}

/* ---------- 17. Tablet ---------- */
@media (max-width: 1023px) {
  body {
    padding-left: 0;
    padding-top: var(--bar-h);
  }

  .progress {
    top: var(--bar-h);
    left: 0;
    height: 3px;
  }

  .rail {
    inset: 0 0 auto 0;
    width: auto;
    height: var(--bar-h);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    border-right: 0;
    border-bottom: var(--edge) solid var(--graphite-700);
    overflow: visible;
    background-image: none;
  }

  .rail::after { display: none; }

  .rail__top {
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }

  .rail__brand {
    align-items: center;
    gap: 10px;
    padding-bottom: 0;
    border-bottom: 0;
    min-width: 0;
  }

  .rail__glyph {
    width: 34px;
    height: 34px;
    font-size: 15px;
    box-shadow: 2px 2px 0 rgba(46, 230, 214, 0.28);
  }

  .rail__name {
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .rail__descriptor { display: none; }

  .rail__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    background: var(--ink-850);
    border: var(--edge) solid var(--graphite-600);
    border-radius: var(--radius);
    color: var(--silver-100);
    font-family: var(--font-cond);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1;
    cursor: pointer;
    transition:
      background-color 0.18s var(--ease),
      border-color 0.18s var(--ease),
      color 0.18s var(--ease);
  }

  .rail__toggle-bars {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    width: 16px;
    height: 12px;
  }

  .rail__toggle-bars span {
    display: block;
    height: 2px;
    width: 100%;
    background: currentColor;
    transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
  }

  .rail[data-open] .rail__toggle-bars span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }

  .rail[data-open] .rail__toggle-bars span:nth-child(2) { opacity: 0; }

  .rail[data-open] .rail__toggle-bars span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }

  .rail[data-open] .rail__toggle {
    background: var(--cyan-400);
    border-color: var(--cyan-400);
    color: var(--ink-950);
  }

  .rail__drawer {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    gap: 18px;
    max-height: calc(100vh - var(--bar-h));
    max-height: calc(100dvh - var(--bar-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 16px 26px;
    background: var(--ink-950);
    border-bottom: var(--edge) solid var(--graphite-700);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
  }

  .rail[data-open] .rail__drawer { display: flex; }

  .rail__link {
    padding: 12px 26px 12px 10px;
    font-size: 16px;
  }

  .rail__foot { margin-top: 0; }

  .rail__cta { width: 100%; }

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

  .span-9 { grid-column: span 8; }

  .plinth__inner { grid-template-columns: 1fr 1fr; }

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

/* ---------- 18. Phone ---------- */
@media (max-width: 639px) {
  body { font-size: 16px; }

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

  .span-3, .span-4, .span-5, .span-6,
  .span-7, .span-8, .span-9, .span-12 {
    grid-column: 1 / -1;
  }

  .plinth__inner { grid-template-columns: 1fr; }

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

  .plinth__contact { grid-column: auto; }

  .plinth__base-inner { flex-direction: column; align-items: flex-start; }

  .plinth__version {
    margin-left: 0;
    max-width: none;
    text-align: left;
  }

  .plinth__copy,
  .plinth__icp { white-space: normal; }

  .slab { padding: 18px; }

  .figure { box-shadow: 4px 4px 0 var(--graphite-700); }
}

/* ---------- 19. 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;
    scroll-behavior: auto !important;
  }

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

  .progress__bar { transition: none; }
}

/* ---------- 20. Print ---------- */
@media print {
  .rail,
  .progress,
  .skip-link,
  .filter { display: none !important; }

  body {
    padding: 0;
    background: #FFFFFF;
    color: #000000;
  }

  .plinth {
    background: #FFFFFF;
    color: #000000;
    border-top: 1px solid #000000;
  }

  .plinth__links a,
  .plinth__value { color: #000000; }

  .slab,
  .figure {
    box-shadow: none;
    border-color: #000000;
  }
}
