/* ==========================================================================
   幻影赛场 / PHANTOM ARENA — 共享站点样式 /assets/site.css
   01 重置  02 变量与底色  03 排版  04 通用组件  05 头部框架  06 页脚  07 响应式与动效
   ========================================================================== */

/* ---------- 01 重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar) + 20px);
}

body, h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote, dl, dd, dt { margin: 0; }
ul, ol { padding: 0; list-style: none; }
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%; }

/* ---------- 02 变量与底色 ---------- */
:root {
  --ink: #05060B;
  --ink-2: #0E1322;
  --stone: #232838;
  --phantom: #6C2BD9;
  --mist: #B49BFF;
  --cyan: #00E5FF;
  --lime: #B6FF3C;
  --terra: #C97B5A;
  --paper: #ECEEF5;
  --fog: #9AA1B8;
  --warn: #FF7A45;

  --rail: 92px;
  --bar: 44px;
  --cut: 14px;
  --maxw: 1280px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  --font-head: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
}

body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(880px 560px at 84% -6%, rgba(108, 43, 217, .30), transparent 68%),
    radial-gradient(620px 520px at 4% 102%, rgba(0, 229, 255, .12), transparent 70%),
    repeating-linear-gradient(114deg, rgba(35, 40, 56, .55) 0 1px, transparent 1px 148px);
  background-repeat: no-repeat, no-repeat, repeat;
  color: var(--paper);
  font-family: var(--font-head);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  display: block;
  padding-top: var(--bar);
  padding-left: var(--rail);
}

/* ---------- 03 排版 ---------- */
h1, .h1, h2, .h2, h3, .h3, h4, .h4 {
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--paper);
}
h1, .h1 { font-size: clamp(34px, 5.2vw, 56px); }
h2, .h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3, .h3 { font-size: clamp(20px, 2.2vw, 24px); line-height: 1.2; }
h4, .h4 { font-size: 18px; line-height: 1.35; }

p { max-width: 34em; }
p + p { margin-top: 1em; }

a { color: var(--mist); transition: color .18s var(--ease); }
a:hover { color: var(--cyan); }

strong { font-weight: 800; color: var(--paper); }

.mono,
time,
th {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 04 通用组件 ---------- */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }

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

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--mist);
  max-width: none;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  flex: none;
  background: linear-gradient(90deg, var(--phantom), var(--cyan));
  transform: skewX(-24deg);
}

.chapter {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}
.chapter__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--mist);
  padding: 2px 8px;
  border: 1px solid rgba(108, 43, 217, .65);
  background: rgba(108, 43, 217, .16);
}
.chapter__name {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .28em;
  color: var(--fog);
}

.rule-band {
  height: 3px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, var(--phantom) 0 32%, var(--cyan) 32% 58%, var(--stone) 58% 100%);
  transform: skewX(-18deg);
  transform-origin: left center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--paper);
  background: var(--ink-2);
  border: 1px solid var(--stone);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .12s var(--ease);
}
.btn:hover { color: var(--paper); border-color: var(--phantom); background: rgba(108, 43, 217, .22); }
.btn:active { transform: scale(.98); }
.btn:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--cyan), 0 0 0 2px rgba(0, 229, 255, .4);
}
.btn--primary { background: var(--phantom); border-color: var(--phantom); color: #fff; }
.btn--primary:hover { background: #7C3BEE; border-color: var(--cyan); color: #fff; }
.btn--ghost { background: transparent; }
.btn--sm { padding: 9px 14px; font-size: 13px; }

.card {
  position: relative;
  padding: 24px;
  background: var(--ink-2);
  border: 1px solid var(--stone);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s var(--ease);
}
.card:hover,
.card:focus-within {
  border-color: var(--phantom);
  background: #101728;
  transform: translateY(-2px);
}
.card:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--cyan);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mist);
  border: 1px solid rgba(108, 43, 217, .55);
  background: rgba(108, 43, 217, .12);
}
.tag--cyan { color: var(--cyan); border-color: rgba(0, 229, 255, .5); background: rgba(0, 229, 255, .08); }
.tag--lime { color: var(--lime); border-color: rgba(182, 255, 60, .45); background: rgba(182, 255, 60, .08); }
.tag--terra { color: var(--terra); border-color: rgba(201, 123, 90, .5); background: rgba(201, 123, 90, .1); }

.data-bar {
  position: relative;
  height: 8px;
  background: var(--stone);
  overflow: hidden;
}
.data-bar__fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--phantom), var(--cyan));
  transition: width .6s var(--ease);
}
.data-bar.is-filled .data-bar__fill { width: var(--bar-value, 0%); }
.data-bar__value {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: .08em;
}

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.stat__label { font-size: 13px; color: var(--fog); }
.stat--up .stat__num { color: var(--lime); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--stone);
  background: rgba(14, 19, 34, .66);
}
.table { width: 100%; font-size: 14px; }
.table th {
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-align: left;
  text-transform: uppercase;
  color: var(--fog);
  border-bottom: 1px solid var(--stone);
  white-space: nowrap;
}
.table td {
  padding: 12px;
  border-bottom: 1px solid rgba(35, 40, 56, .7);
  vertical-align: middle;
}
.table tbody tr:hover { background: var(--ink-2); }
.table__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--cyan);
}

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--frame-ratio, 16 / 9);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(108, 43, 217, .55), transparent 62%),
    linear-gradient(160deg, #131A2C, #05060B);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.86) contrast(1.06) brightness(.86);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(108, 43, 217, .26), rgba(5, 6, 11, .58) 72%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.media-frame__caption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--mist);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fog);
  max-width: none;
}
.breadcrumb a { color: var(--mist); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb__sep { color: var(--stone); }
.breadcrumb [aria-current="page"] { color: var(--paper); }

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 65;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--mist);
  background: rgba(14, 19, 34, .94);
  border: 1px solid var(--stone);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s, border-color .2s var(--ease), color .2s var(--ease);
}
.to-top[data-visible] { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--cyan); border-color: var(--phantom); }
.to-top:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--cyan); }

/* ---------- 05 头部框架 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 50%;
  z-index: 200;
  transform: translate(-50%, -220%);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  background: var(--cyan);
  pointer-events: auto;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); color: var(--ink); }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  pointer-events: none;
}

.status-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--bar);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px 0 calc(var(--rail) + 20px);
  background: rgba(5, 6, 11, .88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(108, 43, 217, .5);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fog);
  pointer-events: auto;
}
.status-bar__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--paper);
  font-weight: 700;
}
.status-bar__dot {
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--lime);
  border-radius: 50%;
  animation: phantom-pulse 2.6s ease-in-out infinite;
}
.status-bar__meta { color: var(--fog); letter-spacing: .12em; }
.status-bar__brand {
  display: none;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .06em;
  color: var(--paper);
  text-transform: none;
}
.status-bar__spacer { flex: 1 1 auto; }
.status-bar__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, .45);
  background: rgba(0, 229, 255, .07);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.status-bar__cta::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid currentColor;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}
.status-bar__cta:hover {
  color: var(--ink);
  background: var(--cyan);
  border-color: var(--cyan);
}
.status-bar__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(35, 40, 56, .8);
  overflow: hidden;
}
.status-bar__progress-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--phantom), var(--cyan));
}

.frame-nav {
  position: fixed;
  top: var(--bar);
  left: 0;
  width: var(--rail);
  height: calc(100vh - var(--bar));
  height: calc(100dvh - var(--bar));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(180deg, #0B0F1B 0%, #06070E 62%, #05060B 100%);
  border-right: 1px solid rgba(108, 43, 217, .5);
  pointer-events: auto;
}

.frame-nav__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 0 16px;
  border-bottom: 1px solid var(--stone);
  color: var(--paper);
}
.frame-nav__brand:hover { color: var(--paper); }
.brand-mark {
  width: 20px;
  height: 20px;
  flex: none;
  background: linear-gradient(135deg, var(--phantom) 0%, var(--cyan) 100%);
  border-radius: 3px;
  transform: rotate(45deg);
  transition: background .2s var(--ease), transform .3s var(--ease);
}
.frame-nav__brand:hover .brand-mark {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--lime) 100%);
  transform: rotate(135deg);
}
.brand-name {
  writing-mode: vertical-rl;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .22em;
  line-height: 1;
}
.brand-sub {
  display: none;
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .26em;
  color: var(--fog);
}

.frame-nav__list {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--stone) transparent;
}
.frame-nav__item { flex: none; }
.frame-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 11px 4px;
  border-left: 3px solid transparent;
  color: var(--fog);
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.frame-nav__index {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .1em;
  color: rgba(154, 161, 184, .62);
  transition: color .2s var(--ease);
}
.frame-nav__text {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.2;
  white-space: nowrap;
}
.frame-nav__link:hover {
  color: var(--paper);
  background: rgba(108, 43, 217, .2);
  border-left-color: var(--mist);
}
.frame-nav__link:hover .frame-nav__index { color: var(--cyan); }
.frame-nav__link[aria-current="page"] {
  color: var(--paper);
  background: linear-gradient(90deg, rgba(108, 43, 217, .48), rgba(108, 43, 217, 0));
  border-left-color: var(--phantom);
}
.frame-nav__link[aria-current="page"] .frame-nav__index { color: var(--cyan); }
.frame-nav__link:focus-visible { outline-offset: -3px; }

.frame-nav__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 0 18px;
  border-top: 1px solid var(--stone);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .2em;
  color: var(--fog);
}
.frame-nav__pulse {
  width: 6px;
  height: 6px;
  background: var(--lime);
  border-radius: 50%;
  animation: phantom-pulse 2.6s ease-in-out infinite;
}
.frame-nav__foot-text { writing-mode: vertical-rl; }

@keyframes phantom-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(182, 255, 60, .5); }
  50% { opacity: .5; box-shadow: 0 0 0 5px rgba(182, 255, 60, 0); }
}

.nav-toggle {
  display: none;
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 95;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 255, .45);
  background: linear-gradient(150deg, var(--phantom) 0%, #3B10A0 100%);
  color: #fff;
  pointer-events: auto;
  box-shadow: 0 0 0 1px rgba(5, 6, 11, .9), 0 12px 28px rgba(108, 43, 217, .38);
  transition: transform .12s var(--ease), border-color .2s var(--ease);
}
.nav-toggle:active { transform: scale(.96); }
.nav-toggle:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--cyan); }
.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}
.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  transition: transform .24s var(--ease), opacity .24s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 06 页脚 ---------- */
.site-footer {
  position: relative;
  padding-left: var(--rail);
  background: linear-gradient(180deg, #070911 0%, #05060B 100%);
  border-top: 1px solid var(--stone);
}
.footer-hairline {
  height: 3px;
  background: linear-gradient(90deg, var(--lime) 0%, rgba(182, 255, 60, .35) 30%, transparent 72%);
}
.footer-grid {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 48px) clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.7fr;
  gap: clamp(24px, 3vw, 44px);
}
.footer-brand__mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .06em;
  color: var(--paper);
}
.footer-brand__mark::before {
  content: "";
  width: 12px;
  height: 12px;
  flex: none;
  background: linear-gradient(135deg, var(--phantom), var(--cyan));
  transform: rotate(45deg);
}
.footer-brand__mark:hover { color: var(--cyan); }
.footer-brand__sub {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .28em;
  color: var(--fog);
  max-width: none;
}
.footer-brand__line {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--fog);
  max-width: 20em;
}
.footer-col__title {
  margin-bottom: 16px;
  padding-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
  color: var(--mist);
  border-bottom: 1px solid var(--stone);
}
.footer-links li + li { margin-top: 10px; }
.footer-link {
  position: relative;
  display: inline-block;
  padding-left: 14px;
  font-size: 14px;
  color: var(--fog);
  transition: color .18s var(--ease);
}
.footer-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 6px;
  height: 2px;
  background: var(--stone);
  transform: skewX(-24deg);
  transition: background .18s var(--ease), width .18s var(--ease);
}
.footer-link:hover { color: var(--paper); }
.footer-link:hover::before { width: 10px; background: var(--cyan); }

.footer-contact__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
  max-width: none;
}
.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fog);
}
.footer-contact__value {
  font-size: 14px;
  line-height: 1.6;
  color: var(--paper);
  word-break: break-word;
}
.footer-contact__note {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.75;
  color: var(--fog);
  max-width: 24em;
}
.footer-legal {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 18px clamp(20px, 4vw, 48px) 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  border-top: 1px solid var(--stone);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--fog);
}
.footer-legal__copy,
.footer-legal__icp { max-width: none; }

/* ---------- 07 动效与响应式 ---------- */
[data-reveal] {
  transition: opacity .48s var(--ease), transform .48s var(--ease);
  transition-delay: calc(var(--reveal-i, 0) * 60ms);
}
[data-reveal].is-armed {
  opacity: 0;
  transform: translateY(12px);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (min-width: 901px) {
  body {
    background-attachment: fixed, fixed, scroll;
  }
}

@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .status-bar { gap: 12px; font-size: 10px; }
}

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

@media (max-width: 900px) {
  :root { --rail: 0px; }

  main {
    padding-left: 0;
    padding-bottom: 104px;
  }

  .status-bar {
    gap: 10px;
    padding: 0 16px;
    font-size: 10px;
    letter-spacing: .1em;
  }
  .status-bar__brand { display: inline-flex; }
  .status-bar__meta { display: none; }
  .status-bar__cta { padding: 4px 9px; font-size: 10px; letter-spacing: .06em; }

  .frame-nav {
    top: auto;
    left: 12px;
    right: 12px;
    bottom: 88px;
    width: auto;
    height: auto;
    max-height: min(72vh, 540px);
    padding: 0;
    border: 1px solid rgba(108, 43, 217, .55);
    border-right: 1px solid rgba(108, 43, 217, .55);
    background: rgba(11, 15, 27, .97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s;
    z-index: 94;
  }
  .frame-nav[data-open] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .frame-nav__brand {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 16px 16px 14px;
  }
  .brand-mark { width: 16px; height: 16px; }
  .brand-name { writing-mode: horizontal-tb; font-size: 14px; letter-spacing: .08em; }
  .brand-sub { display: inline-block; writing-mode: horizontal-tb; font-size: 8px; letter-spacing: .2em; }

  .frame-nav__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    overflow: visible;
  }
  .frame-nav__link {
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 8px;
    padding: 12px 10px;
    border-left: 2px solid transparent;
    border-top: 1px solid var(--stone);
    background: rgba(14, 19, 34, .8);
  }
  .frame-nav__link:hover { border-top-color: rgba(108, 43, 217, .5); }
  .frame-nav__link[aria-current="page"] {
    border-left-color: var(--phantom);
    border-top-color: rgba(0, 229, 255, .5);
    background: linear-gradient(90deg, rgba(108, 43, 217, .5), rgba(108, 43, 217, .06));
  }
  .frame-nav__text { font-size: 13px; }
  .frame-nav__foot { display: none; }

  .nav-toggle { display: grid; }

  .to-top { right: 18px; bottom: 88px; width: 42px; height: 42px; }

  .site-footer { padding-left: 0; padding-bottom: 88px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-legal { justify-content: flex-start; }
}

@media (max-width: 720px) {
  .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer-contact { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal].is-armed { opacity: 1; transform: none; }
  .data-bar__fill { transition: none; }
  .status-bar__dot,
  .frame-nav__pulse { animation: none; opacity: 1; }
}
