/* =========================================================
   /assets/site.css — 安博电竞 共享外壳与基础组件
   赛博峡谷档案：深夜底 + 数据流纹理 + 印刷硬边
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 168px;
}

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

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

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

button { font: inherit; color: inherit; }

/* ---------- 2. Tokens ---------- */
:root {
  --void: #060A14;
  --void-2: #080D1A;
  --rock: #0D1730;
  --ink: #000000;
  --paper: #F2F6FF;
  --cyan: #2EF2D6;
  --lava: #FF6A2B;
  --violet: #A46BFF;
  --idx: #8A98B8;
  --line: #1C2B4D;
  --tc: #4F6B85;

  --glow-cyan: rgba(46, 242, 214, 0.16);
  --glow-lava: rgba(255, 106, 43, 0.18);
  --glow-violet: rgba(164, 107, 255, 0.16);

  --body-text: #D9E2F4;

  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system,
          "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas,
          "Liberation Mono", monospace;

  --wrap-w: 1180px;
  --gutter: clamp(16px, 4vw, 40px);

  --shadow-hard: 4px 4px 0 var(--ink);
  --shadow-hard-sm: 2px 2px 0 var(--ink);
  --ease: 0.18s ease;
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  background-color: var(--void);
  background-image:
    repeating-linear-gradient(90deg,
      rgba(46, 242, 214, 0.055) 0 1px, transparent 1px 94px),
    radial-gradient(1100px 620px at 82% -8%, rgba(46, 242, 214, 0.10), transparent 62%),
    radial-gradient(880px 560px at 4% 4%, rgba(164, 107, 255, 0.09), transparent 60%),
    radial-gradient(760px 520px at 60% 108%, rgba(255, 106, 43, 0.07), transparent 62%);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body[data-nav-lock] { overflow: hidden; }

a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(46, 242, 214, 0.45);
  transition: color var(--ease), text-decoration-color var(--ease),
              border-color var(--ease), background-color var(--ease);
}

a:hover { color: #7FF8E6; text-decoration-color: var(--cyan); }

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

::selection {
  background: var(--cyan);
  color: var(--void);
}

/* ---------- 4. Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--paper);
}

h1 {
  font-size: clamp(38px, 6.4vw, 112px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  transform: skew(-5deg);
  transform-origin: 0 100%;
}

h2 { font-size: clamp(24px, 3.2vw, 40px); }
h3 { font-size: clamp(18px, 2vw, 22px); line-height: 1.22; }
h4 { font-size: 17px; line-height: 1.3; }

.display {
  font-size: clamp(34px, 5.6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-weight: 900;
  transform: skew(-5deg);
  transform-origin: 0 100%;
}

.mono {
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

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

/* ---------- 5. Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(48px, 7vw, 96px); }

.section--rule { border-top: 1px solid var(--line); }

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

.section-title {
  font-size: clamp(24px, 3.4vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 900;
}

.section-desc {
  max-width: 54ch;
  color: var(--idx);
  font-size: 15.5px;
  line-height: 1.75;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--cyan);
  flex: 0 0 auto;
}

.sec-num {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-right: 12px;
  vertical-align: 0.42em;
}

.prose { max-width: 66ch; }
.prose > * + * { margin-top: 1.4em; }
.prose p { color: var(--body-text); }
.prose h2 { font-size: clamp(22px, 2.6vw, 30px); margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.5em; }
.prose a { text-decoration-thickness: 1px; }

/* ---------- 6. Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 18px 0;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--idx);
  list-style: none;
  margin: 0;
}

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

.breadcrumb li + li::before {
  content: "/";
  color: var(--tc);
}

.breadcrumb a {
  color: var(--idx);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.breadcrumb a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  text-decoration: none;
}

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

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--rock);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: var(--shadow-hard-sm);
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease),
              border-color var(--ease), background-color var(--ease),
              color var(--ease);
}

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--ink);
  border-color: var(--cyan);
  color: var(--cyan);
  text-decoration: none;
}

.btn--primary {
  background: var(--lava);
  border-color: var(--ink);
  color: var(--void);
}

.btn--primary:hover {
  background: #FF8A56;
  border-color: var(--ink);
  color: var(--void);
}

.btn--cyan {
  background: var(--cyan);
  border-color: var(--ink);
  color: var(--void);
}

.btn--cyan:hover {
  background: #7FF8E6;
  border-color: var(--ink);
  color: var(--void);
}

.btn--ghost { background: transparent; }

/* ---------- 8. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--void);
  border-bottom: 1px solid var(--ink);
  box-shadow: 0 1px 0 var(--line);
}

.skip-link {
  position: absolute;
  left: 10px;
  top: -80px;
  z-index: 400;
  padding: 10px 18px;
  background: var(--cyan);
  color: var(--void);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: 2px;
  box-shadow: var(--shadow-hard-sm);
  transition: top var(--ease);
}

.skip-link:focus {
  top: 10px;
  color: var(--void);
  text-decoration: none;
}

/* --- 刊头 --- */
.masthead {
  padding: 18px 0 14px;
  transition: padding var(--ease);
}

.masthead-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.masthead-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.masthead-brand {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}

.brand {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-decoration: none;
  transform: skew(-5deg);
  transition: color var(--ease), text-shadow var(--ease);
}

.brand:hover {
  color: var(--cyan);
  text-decoration: none;
  text-shadow: 2px 2px 0 rgba(255, 106, 43, 0.42);
}

.season-tag {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid rgba(46, 242, 214, 0.55);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--cyan);
  white-space: nowrap;
  background: rgba(46, 242, 214, 0.07);
}

.cta-btn {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: var(--lava);
  color: var(--void);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: 2px;
  box-shadow: var(--shadow-hard-sm);
  transition: transform var(--ease), box-shadow var(--ease),
              background-color var(--ease);
}

.cta-btn-inner {
  display: inline-block;
  transform: skew(-5deg);
}

.cta-btn:hover {
  background: #FF8A56;
  color: var(--void);
  text-decoration: none;
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}

/* --- 状态条 --- */
.status-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 0;
  max-height: 60px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--idx);
  text-align: center;
  opacity: 1;
  transition: max-height var(--ease), opacity var(--ease);
}

.status-line li {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  white-space: nowrap;
}

.status-line li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 10px;
  background: var(--line);
  transform: translateY(-50%);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.dot--lava {
  background: var(--lava);
  box-shadow: 0 0 8px var(--lava);
}

.dot--idx {
  background: var(--idx);
  box-shadow: none;
}

/* --- 导航 --- */
.nav-bar {
  background: rgba(13, 23, 48, 0.86);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--ink);
}

.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 13px;
  color: var(--paper);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--ease), border-color var(--ease),
              background-color var(--ease);
}

.nav-num {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--idx);
  transition: color var(--ease);
}

.nav-list a:hover {
  color: var(--cyan);
  text-decoration: none;
  background: rgba(46, 242, 214, 0.07);
  border-bottom-color: var(--line);
}

.nav-list a:hover .nav-num { color: var(--cyan); }

.nav-list a[aria-current="page"] {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.nav-list a[aria-current="page"] .nav-num { color: var(--lava); }

.nav-legal { display: none; }

/* --- 移动开关 --- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color var(--ease), color var(--ease),
              background-color var(--ease);
}

.nav-toggle:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(46, 242, 214, 0.07);
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--ease), top var(--ease);
}

.nav-toggle-bars::before { top: 1px; }
.nav-toggle-bars::after { top: 9px; }

.site-header[data-open] .nav-toggle-bars::before {
  top: 5px;
  transform: rotate(45deg);
}

.site-header[data-open] .nav-toggle-bars::after {
  top: 5px;
  transform: rotate(-45deg);
}

/* --- 压缩态 --- */
.site-header[data-condensed] .masthead { padding: 8px 0 8px; }

.site-header[data-condensed] .status-line {
  max-height: 0;
  opacity: 0;
}

.site-header[data-condensed] .brand {
  font-size: clamp(19px, 2.6vw, 24px);
}

@media (max-width: 860px) {
  .masthead { padding: 14px 0 10px; }
  .masthead-top { grid-template-columns: auto 1fr; gap: 10px; }
  .masthead-brand {
    grid-column: 1 / -1;
    justify-content: center;
    order: 1;
  }
  .cta-btn {
    grid-column: 1 / -1;
    justify-self: center;
    order: 2;
    font-size: 13px;
    padding: 7px 14px;
  }
  .status-line { font-size: 11px; }
  .status-line li { padding: 0 10px; }

  .nav-inner { justify-content: flex-start; min-height: 52px; }

  .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 330;
  }

  .nav-list {
    position: fixed;
    inset: 0;
    z-index: 320;
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 84px var(--gutter) 48px;
    overflow-y: auto;
    background-color: var(--void);
    background-image:
      repeating-linear-gradient(90deg,
        rgba(46, 242, 214, 0.07) 0 1px, transparent 1px 64px),
      radial-gradient(700px 420px at 90% 0%, rgba(164, 107, 255, 0.16), transparent 65%);
    border-bottom: 1px solid var(--cyan);
  }

  .site-header[data-open] .nav-list { display: flex; }

  .nav-list a {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    width: 100%;
    padding: 15px 10px;
    font-size: 19px;
    font-weight: 700;
    border-bottom: 1px solid var(--line);
  }

  .nav-list a[aria-current="page"] {
    color: var(--cyan);
    border-bottom-color: var(--line);
    box-shadow: inset 3px 0 0 var(--cyan);
    padding-left: 16px;
  }

  .nav-num { font-size: 11px; width: 22px; }

  .nav-legal {
    display: block;
    margin-top: 6px;
  }

  .nav-legal a {
    font-size: 14px;
    font-weight: 500;
    color: var(--idx);
    padding: 12px 10px;
    border-bottom: 1px dashed var(--line);
  }

  .nav-legal a:hover { color: var(--cyan); }
}

/* ---------- 9. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 112px);
  border-top: 1px solid var(--ink);
  background-image:
    linear-gradient(180deg, rgba(13, 23, 48, 0.9) 0%,
                    rgba(13, 23, 48, 0.92) 42%, #070C17 100%),
    repeating-linear-gradient(90deg,
      rgba(46, 242, 214, 0.05) 0 1px, transparent 1px 84px);
  background-color: var(--void-2);
}

.site-footer::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 50%, var(--lava));
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 32px;
  padding: 40px 0 26px;
  border-bottom: 1px solid var(--line);
}

.footer-closing {
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--paper);
  transform: skew(-5deg);
  transform-origin: 0 50%;
}

.footer-meta {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--idx);
}

.footer-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 32px;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}

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

.footer-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  line-height: 1.4;
}

.footer-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list a {
  display: inline-block;
  color: var(--paper);
  font-size: 14.5px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--ease), border-color var(--ease),
              transform var(--ease);
}

.footer-list a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  transform: translateX(2px);
  text-decoration: none;
}

.footer-text {
  margin-top: 10px;
  color: var(--idx);
  font-size: 13.5px;
  line-height: 1.7;
}

.footer-contact {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 28px 40px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.contact-label {
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--idx);
  background: rgba(28, 43, 77, 0.4);
}

.contact-value {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--paper);
  word-break: break-all;
}

.copy-btn {
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--idx);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color var(--ease), border-color var(--ease),
              background-color var(--ease);
}

.copy-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.copy-btn[data-copied] {
  border-color: var(--cyan);
  background: var(--cyan);
  color: var(--void);
}

.contact-note {
  margin-top: 12px;
  max-width: 46ch;
  color: var(--idx);
  font-size: 13.5px;
  line-height: 1.7;
}

.footer-small {
  margin-top: 10px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--tc);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  padding: 20px 0 38px;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--idx);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-legal a {
  color: var(--idx);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color var(--ease), border-color var(--ease);
}

.footer-legal a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  text-decoration: none;
}

/* ---------- 10. Grid ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

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

/* ---------- 11. Card ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 26px);
  background: var(--rock);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-hard);
  transition: border-color var(--ease), transform var(--ease),
              box-shadow var(--ease);
}

.card:hover {
  border-color: var(--cyan);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.card h3 { margin-bottom: 8px; }
.card p { color: var(--body-text); font-size: 15px; }
.card p + p { margin-top: 0.8em; }

.card--paper {
  background: var(--paper);
  border-color: var(--ink);
  color: var(--void);
}

.card--paper h3,
.card--paper h2,
.card--paper p,
.card--paper li { color: var(--void); }

.card--paper .mono { color: #3A4A6B; }

.card--flat {
  box-shadow: none;
  background: rgba(13, 23, 48, 0.72);
}

.card--flat:hover {
  transform: none;
  box-shadow: none;
  background: rgba(13, 23, 48, 0.92);
}

/* ---------- 12. Tag ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(13, 23, 48, 0.7);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--idx);
  white-space: nowrap;
}

.tag--cyan {
  color: var(--cyan);
  border-color: rgba(46, 242, 214, 0.55);
  background: rgba(46, 242, 214, 0.08);
}

.tag--lava {
  color: var(--lava);
  border-color: rgba(255, 106, 43, 0.55);
  background: rgba(255, 106, 43, 0.09);
}

.tag--violet {
  color: var(--violet);
  border-color: rgba(164, 107, 255, 0.55);
  background: rgba(164, 107, 255, 0.09);
}

/* ---------- 13. Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px 28px;
}

.stat {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.stat-value {
  display: block;
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--cyan);
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--idx);
}

/* ---------- 14. Panel (details) ---------- */
.panel {
  border: 1px solid var(--line);
  background: rgba(13, 23, 48, 0.74);
  transition: border-color var(--ease), background-color var(--ease);
}

.panel + .panel { margin-top: 10px; }

.panel > summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--paper);
  cursor: pointer;
  list-style: none;
  transition: color var(--ease), background-color var(--ease);
}

.panel > summary::-webkit-details-marker { display: none; }

.panel > summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1;
  color: var(--cyan);
  flex: 0 0 auto;
}

.panel[open] > summary::after { content: "–"; }

.panel > summary:hover {
  color: var(--cyan);
  background: rgba(46, 242, 214, 0.06);
}

.panel:hover { border-color: var(--cyan); }

.panel-body {
  padding: 0 18px 18px;
  color: var(--body-text);
  font-size: 15px;
  line-height: 1.75;
}

.panel-body > * + * { margin-top: 0.9em; }

/* ---------- 15. Data table ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: rgba(13, 23, 48, 0.6);
}

.data {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14.5px;
}

.data caption {
  padding: 12px 16px;
  text-align: left;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--idx);
  border-bottom: 1px solid var(--line);
}

.data th {
  padding: 12px 16px;
  text-align: left;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--idx);
  background: rgba(28, 43, 77, 0.42);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data td {
  padding: 12px 16px;
  color: var(--body-text);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data tbody tr { transition: background-color var(--ease); }

.data tbody tr:hover { background: rgba(46, 242, 214, 0.07); }

.data tbody tr:hover td { color: var(--paper); }

.data .mono { color: var(--cyan); }

/* ---------- 16. Rail ---------- */
.rail {
  display: flex;
  gap: 16px;
  padding: 4px 0 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--line) transparent;
  scrollbar-width: thin;
}

.rail > * {
  flex: 0 0 min(320px, 82vw);
  scroll-snap-align: start;
}

.rail::-webkit-scrollbar { height: 6px; }

.rail::-webkit-scrollbar-track { background: rgba(28, 43, 77, 0.4); }

.rail::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 3px;
}

.rail::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* ---------- 17. Figure / media ---------- */
.figure-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--rock);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-hard);
}

.figure-frame > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.figure-ph {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--rock);
  background-image:
    radial-gradient(120% 90% at 18% 8%, var(--glow-cyan), transparent 62%),
    radial-gradient(100% 90% at 88% 92%, var(--glow-lava), transparent 64%),
    radial-gradient(90% 80% at 50% 50%, rgba(164, 107, 255, 0.12), transparent 70%),
    repeating-linear-gradient(90deg,
      rgba(46, 242, 214, 0.08) 0 1px, transparent 1px 26px);
}

.figure-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(0deg,
    rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 4px);
  opacity: 0.42;
}

.timecode {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  padding: 3px 9px 3px 8px;
  background: rgba(79, 107, 133, 0.8);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--paper);
}

.figure-cap {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--idx);
}

/* ---------- 18. Paper band ---------- */
.paper-band {
  background: var(--paper);
  color: var(--void);
  border-block: 1px solid var(--ink);
  padding-block: clamp(36px, 5vw, 64px);
}

.paper-band h2,
.paper-band h3,
.paper-band p { color: var(--void); }

.paper-band .eyebrow { color: #0A6B62; }

.paper-band .eyebrow::before { background: #0A6B62; }

.paper-band .mono { color: #3A4A6B; }

/* ---------- 19. Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 380;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 55%, var(--lava));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.scroll-progress[data-active] { opacity: 1; }

/* ---------- 20. TOC state ---------- */
[data-toc] a[aria-current] {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* ---------- 21. Reveal ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

html.js [data-reveal="in"] {
  opacity: 1;
  transform: none;
}

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

@media (max-width: 900px) {
  .footer-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-contact { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 132px; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .footer-map { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .footer-top { padding-top: 32px; }
  .footer-base { justify-content: flex-start; }
  .section-head { align-items: flex-start; }
  .contact-value { font-size: 13.5px; }
}

@media (max-width: 420px) {
  .status-line { font-size: 10.5px; }
  .status-line li { padding: 0 8px; }
}

/* ---------- 23. Motion & print ---------- */
@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;
    scroll-behavior: auto !important;
  }

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

  .card:hover,
  .btn:hover,
  .cta-btn:hover,
  .footer-list a:hover { transform: none; }
}

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