/* ============================================================
   半岛体育登录 · 全站共享样式
   路径：/assets/site.css
   负责：reset / CSS 变量 / 中文排版 / 头部 / 页脚 / 通用组件
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: #05070C;
}

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

ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #05070C;
  --hull: #0B1220;
  --panel: #131C2B;
  --line: #22314A;

  --pulse: #22D3EE;
  --tactic: #FF7A1A;
  --signal: #7CFF6B;
  --electric: #4C8DFF;

  --white: #EAF2FF;
  --mist: #8FA3C0;
  --body-ink: #D3DEF0;

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

  --rail: 96px;
  --head-h: 88px;
  --shell: 1360px;
  --cut: 16px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 140ms;
  --t-base: 220ms;
}

/* ---------- 3. Base & 中文排版 ---------- */
body {
  background: transparent;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  padding-top: var(--head-h);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(34, 211, 238, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34, 211, 238, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(circle at 28% 10%, #000 0%, rgba(0, 0, 0, 0.35) 52%, transparent 76%);
  mask-image: radial-gradient(circle at 28% 10%, #000 0%, rgba(0, 0, 0, 0.35) 52%, transparent 76%);
}

main { display: block; }

h1, h2, h3, h4 {
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-weight: 900;
  text-wrap: balance;
}

h1 { font-size: clamp(34px, 6vw, 68px); }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; }
h4 { font-size: clamp(17px, 1.8vw, 20px); font-weight: 700; }

p { text-wrap: pretty; }

strong, b { font-weight: 700; }

.num,
[data-year] {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.01em;
}

::selection {
  background: rgba(34, 211, 238, 0.32);
  color: #FFFFFF;
}

/* ---------- 4. Focus ---------- */
:focus-visible {
  outline: 2px solid var(--electric);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- 5. Skip link ---------- */
.skip-link {
  position: absolute;
  left: 18px;
  top: -120px;
  z-index: 200;
  padding: 12px 22px;
  background: var(--pulse);
  color: #04171B;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: top var(--t-base) var(--ease);
}

.skip-link:focus {
  top: 12px;
}

/* ---------- 6. Header ---------- */
.site-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: var(--head-h);
  display: flex;
  align-items: stretch;
  background: linear-gradient(180deg, #06090F 0%, #05070C 100%);
  border-bottom: 1px solid var(--line);
}

.head-scan {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.head-scan::after {
  content: "";
  position: absolute;
  top: 0;
  left: -34%;
  width: 34%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--pulse), transparent);
  animation: head-scan 4.8s var(--ease) infinite;
}

@keyframes head-scan {
  0% { left: -34%; }
  62%, 100% { left: 104%; }
}

/* 品牌轨道 */
.head-rail {
  flex: 0 0 var(--rail);
  width: var(--rail);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.09), rgba(34, 211, 238, 0) 72%);
}

.rail-mark {
  display: block;
  width: 36px;
  height: 36px;
}

.rail-mark__glyph {
  position: relative;
  display: block;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(34, 211, 238, 0.5);
  background: rgba(34, 211, 238, 0.08);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background var(--t-fast) var(--ease);
}

.rail-mark:hover .rail-mark__glyph { background: rgba(34, 211, 238, 0.2); }

.rail-mark__glyph i {
  position: absolute;
  left: 7px;
  height: 2px;
  background: var(--pulse);
}

.rail-mark__glyph i:nth-child(1) { top: 9px; width: 14px; }
.rail-mark__glyph i:nth-child(2) { top: 17px; width: 22px; }
.rail-mark__glyph i:nth-child(3) { top: 25px; width: 9px; }

.rail-line {
  position: relative;
  display: block;
  width: 2px;
  height: 20px;
  background: rgba(143, 163, 192, 0.28);
  overflow: hidden;
}

.rail-line b {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--pulse);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 120ms linear;
}

/* 主区 */
.head-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.head-top {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 34px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(34, 49, 74, 0.6);
}

.head-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.head-brand__name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.head-brand__name::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  background: var(--tactic);
  vertical-align: middle;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.head-brand__sub {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mist);
  white-space: nowrap;
}

.head-state {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mist);
  white-space: nowrap;
}

.head-state__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  animation: pulse-dot 2.4s var(--ease) infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(124, 255, 107, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(124, 255, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 255, 107, 0); }
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 8px 13px;
  background: rgba(19, 28, 43, 0.9);
  border: 1px solid var(--line);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}

.nav-toggle:hover { border-color: rgba(34, 211, 238, 0.55); }

.nav-toggle__bars {
  display: block;
  width: 16px;
}

.nav-toggle__bars i {
  display: block;
  height: 2px;
  margin: 3px 0;
  background: var(--pulse);
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 命令栏 */
.cmd-nav {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: stretch;
}

.cmd-nav__list {
  display: flex;
  align-items: stretch;
  gap: 2px;
  padding: 0 12px;
  height: 100%;
}

.cmd-nav__item { display: flex; }

.cmd-nav__link {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  padding: 0 16px;
  height: 100%;
  transition: background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

.cmd-nav__link:hover { background: rgba(34, 211, 238, 0.08); }

.cmd-nav__no {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.14em;
  color: var(--mist);
  transition: color var(--t-fast) var(--ease);
}

.cmd-nav__label {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.32;
  white-space: nowrap;
}

.cmd-nav__hint {
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.06em;
  color: var(--mist);
  white-space: nowrap;
}

.cmd-nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  background: var(--pulse);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  opacity: 0;
  transform: translateY(3px);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}

.cmd-nav__link[aria-current="page"] {
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.15), rgba(34, 211, 238, 0.03));
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.42);
}

.cmd-nav__link[aria-current="page"] .cmd-nav__no { color: var(--pulse); }
.cmd-nav__link[aria-current="page"] .cmd-nav__hint { color: var(--white); }

.cmd-nav__link[aria-current="page"]::after {
  opacity: 1;
  transform: none;
}

/* ---------- 7. Quick dock ---------- */
.quick-dock {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease), visibility var(--t-base) linear;
}

.quick-dock[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.quick-dock__link {
  display: inline-block;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(17, 25, 38, 0.94);
  border: 1px solid rgba(34, 211, 238, 0.45);
  color: var(--white);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.quick-dock__link:hover { background: rgba(34, 211, 238, 0.2); border-color: var(--pulse); }

.quick-dock__link--alt { color: var(--tactic); border-color: rgba(255, 122, 26, 0.5); }
.quick-dock__link--alt:hover { background: rgba(255, 122, 26, 0.18); border-color: var(--tactic); }

/* ---------- 8. Footer ---------- */
.site-foot {
  position: relative;
  margin-top: clamp(64px, 9vw, 140px);
  background: var(--hull);
  padding-top: calc(34px + clamp(22px, 3.2vw, 44px));
  clip-path: polygon(0 34px, 100% 0, 100% 100%, 0 100%);
}

.foot-grid {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  column-gap: 0;
}

.foot-col {
  position: relative;
  padding: 4px clamp(12px, 1.7vw, 26px) 36px;
}

.foot-col:first-child { padding-left: 0; }
.foot-col:last-child { padding-right: 0; }

.foot-col + .foot-col::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 28px;
  width: 1px;
  background: var(--line);
  transform: skewX(-4deg);
}

.foot-mark {
  display: inline-block;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.foot-mark::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 9px;
  background: var(--pulse);
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}

.foot-line {
  margin-top: 14px;
  max-width: 26em;
  font-size: 14px;
  line-height: 1.85;
  color: var(--mist);
}

.foot-tag {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--pulse);
}

.foot-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--white);
  margin-bottom: 15px;
}

.foot-title::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 2px;
  margin-right: 8px;
  background: var(--tactic);
  vertical-align: middle;
  transform: skewX(-30deg);
}

.foot-list li + li { margin-top: 9px; }

.foot-list a {
  position: relative;
  display: inline-block;
  font-size: 14px;
  color: var(--mist);
  transition: color var(--t-fast) var(--ease), padding-left var(--t-fast) var(--ease);
}

.foot-list a:hover { color: var(--pulse); padding-left: 9px; }

.foot-list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--pulse);
  transition: width var(--t-fast) var(--ease);
}

.foot-list a:hover::before { width: 6px; }

.foot-list--plain li {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--mist);
}

.foot-k {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(143, 163, 192, 0.75);
}

.foot-list--plain b {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--white);
  word-break: break-word;
}

.foot-base {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 18px clamp(18px, 4vw, 48px) 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  border-top: 1px solid rgba(34, 49, 74, 0.75);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

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

.shell--narrow { max-width: 980px; }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
}

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

.section { padding: clamp(48px, 7vw, 104px) 0; }

.section__head { margin-bottom: clamp(24px, 3.4vw, 48px); }

.section__title { margin-top: 14px; }

.section__lead {
  margin-top: 14px;
  max-width: 38em;
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--mist);
}

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

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--pulse);
  clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.divider {
  height: 1px;
  background: var(--line);
}

.slant-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 12%, var(--line) 88%, transparent);
  transform: skewY(-0.7deg);
  transform-origin: left center;
}

/* ---------- 10. Components ---------- */
.cut {
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}

.cut-sm { --cut: 10px; }
.cut-lg { --cut: 28px; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: clamp(20px, 2.6vw, 32px);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}

.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--pulse);
  border-color: var(--pulse);
  color: #04171B;
}

.btn--primary:hover { background: #5CE4F5; border-color: #5CE4F5; }

.btn--ghost {
  border-color: rgba(34, 211, 238, 0.5);
  color: var(--pulse);
}

.btn--ghost:hover { background: rgba(34, 211, 238, 0.14); }

.btn--tactic {
  background: var(--tactic);
  border-color: var(--tactic);
  color: #1A0A00;
}

.btn--tactic:hover { background: #FF9245; border-color: #FF9245; }

.btn--sm { padding: 9px 16px; font-size: 13px; }

.btn--line::after {
  content: "";
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  transform: skewX(-30deg);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--mist);
  background: rgba(34, 211, 238, 0.05);
  border: 1px solid var(--line);
}

.tag--pulse { color: var(--pulse); border-color: rgba(34, 211, 238, 0.45); }
.tag--tactic { color: var(--tactic); border-color: rgba(255, 122, 26, 0.45); }
.tag--signal { color: var(--signal); border-color: rgba(124, 255, 107, 0.4); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--pulse);
}

.link-arrow::after {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
  transform: skewX(-30deg);
  transition: width var(--t-fast) var(--ease);
}

.link-arrow:hover::after { width: 30px; }

.step {
  position: relative;
  padding: clamp(20px, 2.4vw, 28px);
  background: var(--panel);
  border: 1px solid var(--line);
}

.step::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--pulse), rgba(34, 211, 238, 0));
}

.step__no {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--pulse);
}

.step__title { margin-top: 10px; font-size: 18px; font-weight: 700; }

.step__text {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--mist);
}

.stat { display: flex; flex-direction: column; gap: 5px; }

.stat__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(24px, 3.4vw, 42px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--white);
}

.stat__label {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--mist);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: clamp(16px, 2.4vw, 28px) 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

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

.breadcrumb li + li::before {
  content: "";
  width: 9px;
  height: 1px;
  background: var(--line);
  transform: skewX(-30deg);
}

.breadcrumb a:hover { color: var(--pulse); }
.breadcrumb [aria-current="page"] { color: var(--white); }

.prose-cn {
  max-width: 40em;
  font-size: 16.5px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  color: var(--body-ink);
}

.prose-cn p + p { margin-top: 1.05em; }
.prose-cn h2 { margin: 2.2em 0 0.6em; }
.prose-cn h3 { margin: 1.8em 0 0.5em; }

.prose-cn ul { margin: 1em 0; }

.prose-cn ul li {
  position: relative;
  padding-left: 20px;
  margin-top: 0.5em;
}

.prose-cn ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.74em;
  width: 10px;
  height: 2px;
  background: var(--pulse);
  transform: skewX(-30deg);
}

.prose-cn ol {
  margin: 1em 0;
  padding-left: 1.5em;
  list-style: decimal;
}

.prose-cn ol li { margin-top: 0.5em; }

.prose-cn strong { color: var(--white); }

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

/* 图片容器：页面阶段放入 <img> 即可 */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(11, 18, 32, 0) 62%),
    var(--hull);
  border: 1px solid var(--line);
}

.media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(34, 211, 238, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34, 211, 238, 0.09) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.7;
}

.media::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 28%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--pulse), transparent);
  transform: skewY(-3deg);
  opacity: 0.6;
}

.media > img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }

.media__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--white);
  background: rgba(5, 7, 12, 0.82);
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}

.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;
}

/* ---------- 11. Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

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

/* ---------- 12. Responsive ---------- */
@media (max-width: 1180px) {
  .cmd-nav__hint { display: none; }
  .cmd-nav__link { padding: 0 13px; }
  .cmd-nav__list { padding: 0 8px; }
}

@media (max-width: 1000px) {
  :root { --head-h: 60px; --rail: 0px; }

  .head-rail { display: none; }

  .head-top {
    height: var(--head-h);
    padding: 0 16px;
    border-bottom: 0;
  }

  .head-brand__sub { display: none; }
  .head-state { display: none; }
  .nav-toggle { display: inline-flex; }

  .cmd-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--head-h);
    display: block;
    background: #06090F;
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    max-height: calc(100vh - var(--head-h));
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease), visibility var(--t-base) linear;
  }

  .cmd-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .cmd-nav__list {
    flex-direction: column;
    gap: 0;
    height: auto;
    padding: 6px 14px 18px;
  }

  .cmd-nav__item { display: block; }

  .cmd-nav__link {
    height: auto;
    padding: 13px 14px 13px 20px;
    border-bottom: 1px solid rgba(34, 49, 74, 0.6);
  }

  .cmd-nav__no { font-size: 11px; }
  .cmd-nav__label { font-size: 16px; }
  .cmd-nav__hint { display: block; font-size: 11px; }

  .cmd-nav__link::after {
    left: 0;
    right: auto;
    bottom: auto;
    top: 12px;
    width: 3px;
    height: calc(100% - 24px);
    clip-path: none;
    transform: none;
  }

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

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

  .foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(20px, 5vw, 44px);
  }

  .foot-col {
    padding: 22px 0 26px;
    border-top: 1px solid rgba(34, 49, 74, 0.7);
  }

  .foot-col + .foot-col { padding-left: 0; }
  .foot-col + .foot-col::before { display: none; }
  .foot-col:first-child,
  .foot-col:nth-child(2) { border-top: 0; }

  .quick-dock { right: 12px; bottom: 12px; }
  .quick-dock__link { padding: 9px 14px; font-size: 12px; }
}

@media (max-width: 640px) {
  .col-3, .col-4 { grid-column: span 12; }

  .foot-grid { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
  .foot-col:nth-child(2) { border-top: 1px solid rgba(34, 49, 74, 0.7); }
  .foot-col:first-child { border-top: 0; }

  .foot-base { flex-direction: column; gap: 6px; }
}

/* ---------- 13. 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;
  }

  .head-scan::after { display: none; }
  .head-state__dot { animation: none; box-shadow: none; }

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

  .btn:hover { transform: none; }
}
