/* ==========================================================================
   博业体育 · 共享样式表 /assets/site.css
   夜场研究板：左侧刻度栏即页面边界，深蓝基底 + 草坪绿 / 夜训橙双色节奏
   ========================================================================== */

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

html, body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, blockquote, dl, dd, hr { margin: 0; padding: 0; }
ul, ol { list-style: none; }
hr { border: 0; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

/* 2. Tokens --------------------------------------------------------------- */
:root {
  --night: #0E1620;
  --panel: #17222E;
  --stroke: #2A3947;
  --white: #EEF3F1;
  --dim: #8C9DA9;
  --green: #35C46F;
  --orange: #FF7B33;
  --amber: #FFC64B;
  --mist: #BDF0D2;
  --ink: #070C11;

  --rail: 88px;
  --topbar: 64px;
  --maxw: 1280px;
  --wide: 1440px;
  --gap: 24px;
  --cut: 12px;
  --edge: 1px solid var(--stroke);

  --f-display: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --f-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --f-serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", serif;
  --f-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: 180ms;

  --pad-x: clamp(20px, 4vw, 48px);
}

/* 3. Base ----------------------------------------------------------------- */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  padding-left: var(--rail);
  padding-top: var(--topbar);
  background-color: var(--night);
  background-image:
    radial-gradient(58vw 42vh at 84% -6%, rgba(53, 196, 111, .10), transparent 62%),
    radial-gradient(44vw 34vh at 4% 104%, rgba(255, 123, 51, .08), transparent 60%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--white);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: .004em;
  -webkit-font-smoothing: antialiased;
}

html.nav-open { overflow: hidden; }

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

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

/* 4. Layout primitives ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.container--wide { max-width: var(--wide); }
.container--narrow { max-width: 780px; }

.section { position: relative; padding: clamp(48px, 7vw, 96px) 0; }
.section--tight { padding: clamp(28px, 4vw, 48px) 0; }
.section--gap { padding-top: clamp(120px, 14vw, 180px); }
.section--panel {
  background: var(--panel);
  border-top: var(--edge);
  border-bottom: var(--edge);
}

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.grid--split-alt { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }

.rule { height: 1px; background: var(--stroke); }
.rule--green { background: linear-gradient(90deg, var(--green), rgba(53, 196, 111, 0)); }

.ticks { display: flex; align-items: flex-end; gap: 8px; height: 12px; }
.ticks span { width: 1px; height: 6px; background: var(--stroke); }
.ticks span:nth-child(5n + 1) { height: 12px; background: var(--dim); }

/* 5. Typographic components ---------------------------------------------- */
.display {
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 87.5%;
  letter-spacing: -.02em;
  line-height: 1.04;
  color: var(--white);
  text-wrap: balance;
}
.display--xl { font-size: clamp(44px, 8vw, 88px); }
.display--l { font-size: clamp(34px, 5vw, 64px); }
.display--m { font-size: clamp(26px, 3.4vw, 44px); }
.display--s { font-size: clamp(20px, 2.2vw, 28px); font-weight: 800; letter-spacing: -.01em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .24em;
  color: var(--dim);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--green); }
.eyebrow--orange { color: var(--amber); }
.eyebrow--orange::before { background: var(--orange); }

.lede {
  max-width: 38ch;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.75;
  color: var(--dim);
}

.mono {
  font-family: var(--f-mono);
  font-weight: 500;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}

.prose { max-width: 68ch; font-size: 17px; line-height: 1.75; }
.prose > * + * { margin-top: 1.15em; }
.prose h2, .prose h3 {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.25;
  color: var(--white);
}
.prose h2 { font-size: clamp(22px, 2.6vw, 28px); margin-top: 1.8em; }
.prose h3 { font-size: 20px; margin-top: 1.6em; }
.prose p, .prose li { color: #D6DFE2; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-top: .5em; }
.prose a { color: var(--green); border-bottom: 1px solid rgba(53, 196, 111, .42); }
.prose a:hover { border-bottom-color: var(--green); }

.note {
  padding-left: 14px;
  border-left: 2px solid var(--stroke);
  font-family: var(--f-serif);
  font-size: 13px;
  line-height: 1.9;
  color: var(--dim);
}
.note--orange { border-left-color: var(--orange); color: var(--mist); }

/* 6. Panels / cards / tags / buttons ------------------------------------- */
.panel {
  position: relative;
  background: var(--panel);
  border: var(--edge);
  padding: clamp(20px, 2.6vw, 32px);
}
.panel--hover { transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.panel--hover:hover { border-color: var(--green); transform: translateY(-2px); }

.cut { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.cut--tr { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.cut--bl { clip-path: polygon(0 0, 100% 0, 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.cut--both { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }

.card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: var(--edge);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid var(--stroke);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--dim);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.tag:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.tag--green { color: var(--green); border-color: rgba(53, 196, 111, .42); }
.tag--amber { background: var(--amber); border-color: var(--amber); color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--stroke);
  background: transparent;
  color: var(--white);
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:focus-visible { outline-offset: -4px; }
.btn--orange { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn--orange:hover { background: var(--amber); border-color: var(--amber); }
.btn--ghost:hover { border-color: var(--green); color: var(--green); }

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__value {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: .04em;
  color: var(--white);
  transition: color var(--dur) var(--ease);
}
.stat:hover .stat__value { color: var(--orange); }
.stat--green .stat__value { color: var(--green); }
.stat__label {
  font-family: var(--f-serif);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--dim);
}

/* 7. Media containers ----------------------------------------------------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--panel);
  border: var(--edge);
}
.media > img,
.media > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.94) contrast(1.05);
}
.media--wide { aspect-ratio: 16 / 9; }
.media--standard { aspect-ratio: 4 / 3; }
.media--square { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }
.media--cut { clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); }
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(62% 74% at 74% 12%, rgba(255, 198, 75, .16), transparent 70%);
  mix-blend-mode: screen;
}
.media--grain::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .04;
  background-image: repeating-linear-gradient(0deg, var(--white) 0 1px, transparent 1px 3px);
}
.media__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  padding: 6px 10px;
  background: rgba(7, 12, 17, .82);
  font-family: var(--f-serif);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--dim);
}

/* 8. Breadcrumb ----------------------------------------------------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 0;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--dim);
}
.breadcrumb__item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb__item + .breadcrumb__item::before { content: "/"; color: var(--stroke); }
.breadcrumb a { color: var(--dim); transition: color var(--dur) var(--ease); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb [aria-current="page"] { color: var(--green); }

/* 9. Header / 框架式导航 -------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 90;
  padding: 10px 16px;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  transform: translateY(-220%);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: none; }

/* 左侧固定刻度栏 */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0 18px;
  background: var(--panel);
  border-right: var(--edge);
  overflow: hidden auto;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { width: 0; }
.rail::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 10px;
  pointer-events: none;
  opacity: .55;
  background: repeating-linear-gradient(to bottom, transparent 0 23px, var(--stroke) 23px 24px);
}

.rail__brand {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px 0 14px;
  border-bottom: var(--edge);
}
.rail__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--green);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
.rail__word {
  writing-mode: vertical-rl;
  font-family: var(--f-serif);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  color: var(--dim);
}

.rail__nav { position: relative; z-index: 1; width: 100%; flex: 1 1 auto; padding: 16px 0; }
.rail__list { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rail__item { width: 100%; }

.rail__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 12px 0 14px;
  color: var(--dim);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.rail__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  background: var(--green);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.rail__link:hover { color: var(--white); }
.rail__link:hover::before { transform: scaleY(.34); background: var(--green); opacity: .55; }
.rail__link[aria-current="page"] { color: var(--white); }
.rail__link[aria-current="page"]::before { transform: scaleY(1); opacity: 1; }

.rail__idx { font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em; opacity: .7; }
.rail__label {
  writing-mode: vertical-rl;
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .14em;
}

.rail__foot {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 12px;
  border-top: var(--edge);
}
.rail__tick { display: block; width: 18px; height: 1px; background: var(--stroke); }
.rail__tick:nth-child(2) { width: 26px; }
.rail__tick:nth-child(3) { width: 10px; background: var(--orange); }

/* 顶栏 */
.topbar {
  position: fixed;
  top: 0;
  left: var(--rail);
  right: 0;
  height: var(--topbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--pad-x);
  background: rgba(14, 22, 32, .88);
  backdrop-filter: blur(10px);
  border-bottom: var(--edge);
}
.topbar__brand {
  display: flex;
  align-items: center;
  min-width: 0;
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar__brand::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  background: var(--green);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}
.topbar__actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.topbar__cta { padding: 8px 16px; font-size: 13px; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--stroke);
  color: var(--white);
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
.nav-toggle__bars { display: flex; flex-direction: column; gap: 4px; width: 18px; }
.nav-toggle__bars i {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.site-header[data-open] .nav-toggle__bars i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bars i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.site-header[data-open] .nav-toggle { border-color: var(--green); color: var(--green); }

.scroll-progress {
  position: fixed;
  left: var(--rail);
  right: 0;
  top: calc(var(--topbar) - 2px);
  height: 2px;
  z-index: 70;
  pointer-events: none;
  background: linear-gradient(90deg, var(--green), var(--amber) 62%, var(--orange));
  transform: scaleX(0);
  transform-origin: left center;
}

/* 10. Footer -------------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 8vw, 112px);
  background: var(--ink);
  border-top: var(--edge);
  color: var(--dim);
  font-size: 15px;
}

.footer-grid {
  position: relative;
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) var(--pad-x) 32px;
  display: grid;
  grid-template-columns: minmax(200px, 1.1fr) minmax(150px, .8fr) minmax(140px, .7fr) minmax(260px, 1.4fr);
  gap: clamp(24px, 3vw, 44px);
}

.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--green);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.footer-brand__name {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--white);
}
.footer-brand__line {
  max-width: 22ch;
  font-family: var(--f-serif);
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: .04em;
  color: var(--dim);
}

.footer-col__title {
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: var(--edge);
  font-family: var(--f-serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--white);
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  position: relative;
  display: inline-block;
  font-size: 14px;
  color: var(--dim);
  transition: color var(--dur) var(--ease);
}
.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease);
}
.footer-links a:hover { color: var(--white); }
.footer-links a:hover::after { transform: scaleX(1); }

.footer-contact__list { display: flex; flex-direction: column; gap: 4px; }
.footer-contact__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(42, 57, 71, .6);
}
.footer-contact__label {
  flex: 0 0 auto;
  min-width: 4.5em;
  font-family: var(--f-serif);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--dim);
}
.footer-contact__value { color: var(--white); font-size: 14px; }
.footer-contact__value.mono { letter-spacing: .04em; }
.footer-contact__row--wide .footer-contact__value { font-size: 13px; line-height: 1.7; }
.footer-note {
  margin-top: 12px;
  font-family: var(--f-serif);
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--dim);
}

.copy-btn {
  padding: 4px 9px;
  border: 1px solid var(--stroke);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--dim);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.copy-btn:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.copy-btn[data-copied] { background: var(--green); border-color: var(--green); color: var(--ink); }

.footer-trail {
  position: relative;
  grid-column: 1 / -1;
  height: 54px;
  margin-top: 4px;
  pointer-events: none;
}
.footer-trail__arc {
  position: absolute;
  right: 0;
  bottom: 20px;
  width: min(340px, 42%);
  height: 1px;
  background: linear-gradient(90deg, rgba(53, 196, 111, 0), var(--green));
  transform: rotate(-8deg);
  transform-origin: 100% 50%;
}
.footer-trail__arc::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -3px;
  width: 7px;
  height: 7px;
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.footer-trail__ticks {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 56px;
  height: 16px;
  background: repeating-linear-gradient(90deg, var(--stroke) 0 1px, transparent 1px 8px);
}

.footer-meta { border-top: var(--edge); }
.footer-meta__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 16px var(--pad-x) 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--dim);
}
.footer-meta__icp { color: var(--white); }
.footer-meta__copy { margin-left: auto; }
.footer-meta__domain { color: var(--green); }

/* 11. Responsive ---------------------------------------------------------- */
@media (max-width: 1180px) {
  .footer-grid { grid-template-columns: minmax(180px, 1fr) minmax(140px, .8fr) minmax(140px, .8fr); }
  .footer-contact { grid-column: 1 / -1; }
  .footer-contact__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  .footer-contact__row--wide { grid-column: 1 / -1; }
}

@media (max-width: 1023px) {
  body { padding-left: 0; }
  .topbar { left: 0; }
  .nav-toggle { display: inline-flex; }
  .scroll-progress { left: 0; }

  .rail {
    top: var(--topbar);
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    max-height: calc(100vh - var(--topbar));
    align-items: stretch;
    padding: 18px var(--pad-x) 24px;
    background: var(--ink);
    border-right: 0;
    border-bottom: var(--edge);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
  }
  .site-header[data-open] .rail { transform: none; opacity: 1; visibility: visible; }
  .rail::before { display: none; }

  .rail__brand { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 0 0 14px; }
  .rail__word { writing-mode: horizontal-tb; letter-spacing: .18em; font-size: 13px; }
  .rail__mark { width: 34px; height: 34px; font-size: 17px; }

  .rail__nav { padding: 8px 0 0; overflow-y: auto; }
  .rail__list { align-items: stretch; gap: 0; }
  .rail__link {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 14px 4px;
    border-bottom: 1px solid rgba(42, 57, 71, .6);
  }
  .rail__link::before { left: -14px; top: 9px; bottom: 9px; width: 3px; }
  .rail__label { writing-mode: horizontal-tb; font-size: 16px; letter-spacing: .12em; }

  .rail__foot { flex-direction: row; justify-content: center; gap: 10px; padding-top: 16px; }
  .rail__foot .rail__tick { width: 26px; }
  .rail__foot .rail__tick:nth-child(3) { width: 12px; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-trail__arc { width: min(260px, 56%); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .grid--2, .grid--3, .grid--split, .grid--split-alt { grid-template-columns: minmax(0, 1fr); }
  .footer-contact__list { grid-template-columns: minmax(0, 1fr); }
  .footer-meta__copy { margin-left: 0; }
  .footer-meta__inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .nav-toggle__text { display: none; }
  .topbar__brand { font-size: 13px; letter-spacing: .06em; }
  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* 12. Motion / print ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .site-header, .site-footer, .scroll-progress { display: none; }
  body { padding: 0; background: #fff; color: #000; }
}
