/* ============================================================
   易倍赛场 · /assets/site.css
   共享层：reset / tokens / 排版 / 头部 / 页脚 / 通用组件
   ============================================================ */

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

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

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

ul, ol { list-style: none; }

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

button { font: inherit; color: inherit; }

a { color: inherit; }

main { display: block; position: relative; z-index: 1; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink-900: #0E1024;
  --ink-850: #12142C;
  --ink-800: #161834;
  --ink-700: #1A1738;
  --ink-600: #22254A;

  --line: #2C335C;
  --line-strong: #3E4780;
  --line-soft: rgba(44, 51, 92, 0.72);

  --blue: #38A8FF;
  --violet: #7C5CFF;
  --orange: #FF5A36;
  --mint: #2ED3A6;
  --amber: #FFB454;

  --text: #F3F7FF;
  --muted: #A9B5D6;
  --ink-on-warm: #1A0B06;

  --font-display: "Barlow Condensed", "DIN Condensed", "HarmonyOS Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "HarmonyOS Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", "DIN Alternate", ui-monospace, SFMono-Regular, Consolas, monospace;

  --shell: 1280px;
  --shell-narrow: 860px;
  --shell-wide: 1440px;
  --pad: clamp(16px, 3.2vw, 40px);
  --cut: 14px;
  --shadow-deep: 0 26px 64px rgba(4, 6, 22, 0.58);
  --ease: cubic-bezier(0.22, 0.8, 0.28, 1);
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background:
    radial-gradient(920px 540px at 6% -12%, rgba(124, 92, 255, 0.30), transparent 62%),
    radial-gradient(780px 480px at 96% 2%, rgba(56, 168, 255, 0.22), transparent 60%),
    radial-gradient(680px 520px at 52% 116%, rgba(255, 90, 54, 0.13), transparent 66%),
    var(--ink-900);
  background-color: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(44, 51, 92, 0.22) 1px, transparent 1px),
    linear-gradient(0deg, rgba(44, 51, 92, 0.16) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px;
  opacity: 0.5;
}

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

h1 { font-size: clamp(34px, 5.2vw, 64px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: clamp(19px, 2vw, 24px); }

p { color: var(--muted); }

::selection {
  background: rgba(255, 90, 54, 0.42);
  color: #fff;
}

/* ---------- 4. A11y & focus ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -96px;
  z-index: 220;
  padding: 10px 18px;
  background: var(--orange);
  color: var(--ink-on-warm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

.btn:focus-visible,
.to-top:focus-visible,
.nav-toggle:focus-visible,
.panel:focus-visible,
.media-frame:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: -4px;
}

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

/* ---------- 5. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.container--narrow { max-width: var(--shell-narrow); }
.container--wide { max-width: var(--shell-wide); }

.section {
  position: relative;
  padding-block: clamp(40px, 6vw, 82px);
}
.section--tight { padding-block: clamp(24px, 3.4vw, 44px); }

.section-head {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin-bottom: clamp(20px, 3vw, 38px);
}

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

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.12;
  color: var(--text);
}

.section-lead {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.78;
  color: var(--muted);
  max-width: 66ch;
}

.grid {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 46px); }
.grid--sidebar { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(20px, 3vw, 44px); }

/* ---------- 6. Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 22%, rgba(255, 255, 255, 0.34) 50%, transparent 78%);
  transform: translateX(-125%);
  transition: transform 0.62s var(--ease);
}
.btn:hover::after,
.btn:focus-visible::after { transform: translateX(125%); }

.btn--primary {
  background: var(--orange);
  color: var(--ink-on-warm);
  box-shadow: 0 10px 28px rgba(255, 90, 54, 0.28);
}
.btn--primary:hover { background: #FF7152; }

.btn--ghost {
  background: rgba(56, 168, 255, 0.08);
  border-color: rgba(56, 168, 255, 0.45);
  color: var(--text);
}
.btn--ghost:hover {
  background: rgba(56, 168, 255, 0.2);
  border-color: var(--blue);
  color: #fff;
}

.btn--quiet {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.btn--quiet:hover {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(56, 168, 255, 0.08);
}

.btn--sm {
  padding: 8px 14px;
  font-size: 13px;
}

/* ---------- 7. Tags & status ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  background: rgba(34, 37, 74, 0.6);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}
.tag--live {
  color: var(--mint);
  border-color: rgba(46, 211, 166, 0.5);
  background: rgba(46, 211, 166, 0.1);
}
.tag--warn {
  color: var(--amber);
  border-color: rgba(255, 180, 84, 0.5);
  background: rgba(255, 180, 84, 0.1);
}
.tag--info {
  color: var(--blue);
  border-color: rgba(56, 168, 255, 0.5);
  background: rgba(56, 168, 255, 0.1);
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(46, 211, 166, 0.18);
  animation: statusPulse 1.8s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(46, 211, 166, 0.18); opacity: 1; }
  50% { box-shadow: 0 0 0 6px rgba(46, 211, 166, 0.04); opacity: 0.72; }
}

/* ---------- 8. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(14, 16, 36, 0.97), rgba(14, 16, 36, 0.88));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}
.site-header.is-scrolled {
  box-shadow: 0 18px 42px rgba(4, 6, 22, 0.6);
  border-bottom-color: var(--line-strong);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  z-index: 3;
  background: rgba(44, 51, 92, 0.55);
  pointer-events: none;
}
.scroll-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--violet) 58%, var(--orange));
  transition: width 0.14s linear;
}

.header-frame {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 12px var(--pad);
}

.header-brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}

.header-brand { flex: 0 0 auto; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 54px;
  height: 40px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-on-warm);
  background: linear-gradient(135deg, var(--orange) 0%, #FF8A3D 58%, var(--amber) 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  box-shadow: inset 0 -3px 0 rgba(26, 11, 6, 0.22);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text);
}

.brand-descriptor {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  white-space: nowrap;
}

.brand-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--mint);
  white-space: nowrap;
}

/* 移动按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  background: rgba(56, 168, 255, 0.08);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav-toggle:hover { border-color: var(--blue); background: rgba(56, 168, 255, 0.16); }

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: var(--blue);
  transition: background-color 0.22s var(--ease);
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--blue);
  transition: transform 0.24s var(--ease), background-color 0.24s var(--ease);
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.site-header[data-open] .nav-toggle-bars { background: transparent; }
.site-header[data-open] .nav-toggle-bars::before {
  transform: translateY(6px) rotate(45deg);
  background: var(--orange);
}
.site-header[data-open] .nav-toggle-bars::after {
  transform: translateY(-6px) rotate(-45deg);
  background: var(--orange);
}

/* 导航 */
.nav-shell {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  margin-left: auto;
  min-width: 0;
}

.site-nav { min-width: 0; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 10px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(169, 181, 214, 0.55);
  transition: color 0.18s var(--ease);
}

.nav-link[aria-current="page"] {
  color: var(--text);
  background: rgba(56, 168, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(56, 168, 255, 0.28);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--orange);
}
.nav-link[aria-current="page"] .nav-index { color: var(--orange); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: clamp(0px, 1vw, 12px);
  border-left: 1px solid var(--line-soft);
}

/* ---------- 9. Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(48px, 8vw, 96px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(720px 340px at 10% 0%, rgba(124, 92, 255, 0.22), transparent 66%),
    radial-gradient(620px 320px at 90% 8%, rgba(56, 168, 255, 0.16), transparent 62%),
    #0A0C1C;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0.6;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(56, 168, 255, 0.7) 0 2px, transparent 2px 14px);
}

.footer-frame {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(36px, 5vw, 66px) var(--pad) 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(24px, 4vw, 54px);
}

.footer-brand-block { min-width: 0; }

.footer-line {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: var(--text);
  max-width: 24ch;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--mint);
}

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

.footer-col-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.footer-links { display: grid; gap: 10px; }

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}
.footer-link::before {
  content: "";
  width: 10px;
  height: 1px;
  background: var(--line-strong);
  transition: width 0.2s var(--ease), background-color 0.2s var(--ease);
}
.footer-link:hover { color: var(--text); }
.footer-link:hover::before { width: 18px; background: var(--orange); }

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

.contact-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  font-size: 14px;
}
.contact-key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}
.contact-value {
  color: var(--text);
  word-break: break-word;
}

.contact-note {
  margin-top: 16px;
  padding-left: 12px;
  border-left: 2px solid rgba(255, 180, 84, 0.6);
  font-size: 12.5px;
  line-height: 1.72;
  color: rgba(169, 181, 214, 0.86);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(169, 181, 214, 0.78);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.legal-link {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.legal-link:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.footer-icp { color: rgba(169, 181, 214, 0.68); }
.footer-copy { color: rgba(169, 181, 214, 0.68); }

.to-top {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(56, 168, 255, 0.08);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.to-top::before {
  content: "↑";
  font-size: 13px;
  line-height: 1;
}
.to-top:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink-on-warm);
}

/* ---------- 10. Panels ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line);
  background: linear-gradient(158deg, rgba(26, 23, 56, 0.96), rgba(18, 20, 44, 0.96));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
  transition: border-color 0.24s var(--ease), box-shadow 0.24s var(--ease);
}
.panel:hover {
  border-color: var(--line-strong);
  box-shadow: inset 0 0 0 1px rgba(56, 168, 255, 0.18);
}

.panel--accent {
  border-color: rgba(56, 168, 255, 0.45);
  background: linear-gradient(158deg, rgba(56, 168, 255, 0.15), rgba(26, 23, 56, 0.96) 58%);
}
.panel--violet {
  border-color: rgba(124, 92, 255, 0.45);
  background: linear-gradient(158deg, rgba(124, 92, 255, 0.19), rgba(26, 23, 56, 0.96) 62%);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.panel-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}

.panel-body {
  font-size: 15px;
  line-height: 1.76;
  color: var(--muted);
}

.panel-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

/* ---------- 11. Media frames ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, var(--ink-700), var(--ink-900));
  aspect-ratio: 16 / 9;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(14, 16, 36, 0) 42%, rgba(14, 16, 36, 0.74) 100%),
    repeating-linear-gradient(0deg, rgba(56, 168, 255, 0.06) 0 1px, transparent 1px 4px);
}
.media-frame__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 14px 16px;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--portrait { aspect-ratio: 4 / 5; }

.media-caption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(169, 181, 214, 0.8);
}

/* ---------- 12. Breadcrumb ---------- */
.breadcrumb {
  padding-block: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: rgba(169, 181, 214, 0.75);
}
.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--line-strong);
}
.breadcrumb-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}
.breadcrumb-link:hover { color: var(--blue); }
.breadcrumb-current { color: var(--text); }

/* ---------- 13. Prose & stats ---------- */
.prose {
  max-width: 70ch;
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--muted);
}
.prose h2,
.prose h3 {
  margin: 1.6em 0 0.6em;
  color: var(--text);
}
.prose h2 { font-size: clamp(22px, 2.4vw, 28px); }
.prose h3 { font-size: clamp(18px, 2vw, 21px); }
.prose p { margin-bottom: 1em; }
.prose ul {
  display: grid;
  gap: 0.5em;
  margin-bottom: 1em;
}
.prose ul li {
  position: relative;
  padding-left: 20px;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 9px;
  height: 2px;
  background: var(--blue);
}
.prose a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(56, 168, 255, 0.45);
}
.prose a:hover { color: var(--orange); border-bottom-color: var(--orange); }

.stat { display: grid; gap: 4px; }
.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text);
}
.stat-key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 14. Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translate3d(-14px, 18px, 0) rotate(-0.4deg);
  transition: opacity 0.62s var(--ease), transform 0.62s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0deg);
}

/* ---------- 15. Responsive ---------- */
@media (max-width: 1180px) {
  .nav-index { display: none; }
  .nav-link { font-size: 13.5px; padding: 9px 8px; }
  .header-actions .btn { padding: 10px 15px; font-size: 14px; }
}

@media (max-width: 1024px) {
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand-block { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .header-frame { flex-wrap: nowrap; }

  .nav-shell {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 8px var(--pad) 22px;
    background: linear-gradient(180deg, #151735 0%, #0E1024 92%);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px rgba(3, 5, 18, 0.68);
    max-height: calc(100vh - 74px);
    overflow-y: auto;
  }
  .site-header[data-open] .nav-shell { display: flex; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 4px;
  }
  .nav-item { width: 100%; }
  .nav-link {
    display: flex;
    justify-content: flex-start;
    padding: 14px 10px;
    font-size: 16px;
    border-bottom: 1px solid rgba(44, 51, 92, 0.7);
  }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] {
    clip-path: none;
    box-shadow: inset 3px 0 0 var(--orange);
    background: rgba(56, 168, 255, 0.1);
    border-bottom-color: transparent;
  }

  .header-actions {
    margin-left: auto;
    padding-left: 0;
    border-left: 0;
    gap: 8px;
  }
  .header-actions .btn--ghost { display: none; }
  .header-actions .btn--primary { padding: 10px 14px; font-size: 13.5px; }

  .nav-shell .header-actions { display: none; }
}

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

  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-brand-block { grid-column: auto; }
}

@media (max-width: 620px) {
  .brand-mark { width: 46px; height: 36px; font-size: 12px; }
  .brand-name { font-size: 17px; }
  .brand-descriptor,
  .brand-status { display: none; }
  .nav-toggle-label { display: none; }
  .nav-toggle { padding: 10px 12px; }

  .footer-bottom { gap: 10px 16px; font-size: 11px; }
  .to-top { margin-left: 0; }
  .contact-row { grid-template-columns: 40px minmax(0, 1fr); }
}

/* ---------- 16. 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] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .status-dot {
    animation: none;
    box-shadow: 0 0 0 3px rgba(46, 211, 166, 0.22);
  }

  .btn::after { display: none; }
}
