/* =========================================================
   爱游戏赛场 · 全站共享样式 / assets/site.css
   技术蓝图网格 + 电竞霓虹撞色 + 档案式信息层
   ========================================================= */

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

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

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

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

/* ---------- 2. Tokens ---------- */
:root {
  --void: #050A14;
  --panel: #0B1626;
  --panel-soft: #101F33;
  --cyan: #16F2D2;
  --lava: #FF6A2B;
  --lime: #8CFF5A;
  --haze: #8FA3BF;
  --paper: #F4F8FF;
  --violet: #5B6CFF;
  --amber: #FFC857;
  --alert: #FF4D6D;

  --text-soft: #C6D3E4;

  --line: rgba(143, 163, 191, 0.20);
  --line-strong: rgba(143, 163, 191, 0.34);
  --line-soft: rgba(143, 163, 191, 0.10);

  --shell: 1240px;
  --gutter: clamp(18px, 4vw, 48px);
  --header-h: 78px;

  --radius: 3px;
  --radius-soft: 22px;

  --font-head: 'HarmonyOS Sans SC', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', 'SFMono-Regular', 'Menlo', monospace;

  --ease: cubic-bezier(0.22, 0.7, 0.24, 1);
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--paper);
  background-color: var(--void);
  background-image:
    radial-gradient(1100px 560px at 82% -8%, rgba(22, 242, 210, 0.10), transparent 62%),
    radial-gradient(880px 520px at 2% 6%, rgba(255, 106, 43, 0.085), transparent 60%),
    linear-gradient(rgba(143, 163, 191, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 163, 191, 0.045) 1px, transparent 1px);
  background-size: auto, auto, 80px 80px, 80px 80px;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-nav-open {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--paper);
}

h1 { font-size: clamp(30px, 4.8vw, 48px); }
h2 { font-size: clamp(24px, 3.2vw, 36px); }
h3 { font-size: clamp(19px, 2.2vw, 26px); }
h4 { font-size: 17px; letter-spacing: 0; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

::selection {
  background: var(--cyan);
  color: #04121a;
}

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

/* ---------- 4. Utilities ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.section {
  position: relative;
  padding-block: clamp(40px, 6vw, 88px);
}

.lead {
  max-width: 60ch;
  font-size: clamp(16px, 1.6vw, 18.5px);
  line-height: 1.8;
  color: var(--text-soft);
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.rule {
  height: 1px;
  border: 0;
  margin: clamp(30px, 5vw, 62px) 0;
  background: linear-gradient(90deg, var(--line-strong), rgba(143, 163, 191, 0.05) 62%, transparent);
}

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

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  flex: none;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 32px;
  margin-bottom: clamp(22px, 3vw, 40px);
}

.index-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--lava);
  font-variant-numeric: tabular-nums;
}

/* ---------- 5. Grids ---------- */
.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)); }
.grid--split { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.btn--lava {
  padding: 13px 24px 15px;
  color: #1B0500;
  font-weight: 800;
  background: linear-gradient(135deg, #FF8347, var(--lava) 58%, #F04E12);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  box-shadow: 0 14px 34px -22px rgba(255, 106, 43, 0.95);
}

.btn--lava:hover,
.btn--lava:focus-visible {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.btn--primary {
  color: #031219;
  font-weight: 800;
  background: linear-gradient(135deg, #5CFFE4, var(--cyan) 55%, #0FCEB4);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn--ghost {
  color: var(--paper);
  border-color: var(--line-strong);
  background: rgba(22, 242, 210, 0.05);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--cyan);
  border-color: rgba(22, 242, 210, 0.65);
  background: rgba(22, 242, 210, 0.10);
}

.btn--quiet {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--haze);
  border-color: transparent;
}

.btn--quiet:hover,
.btn--quiet:focus-visible {
  color: var(--cyan);
}

/* ---------- 7. Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--haze);
  background: rgba(143, 163, 191, 0.06);
  white-space: nowrap;
}

.tag--cyan {
  color: var(--cyan);
  border-color: rgba(22, 242, 210, 0.40);
  background: rgba(22, 242, 210, 0.09);
}

.tag--lava {
  color: #FFB594;
  border-color: rgba(255, 106, 43, 0.42);
  background: rgba(255, 106, 43, 0.10);
}

.tag--lime {
  color: var(--lime);
  border-color: rgba(140, 255, 90, 0.38);
  background: rgba(140, 255, 90, 0.09);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- 8. Cards ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.6vw, 30px);
  border: 1px solid rgba(143, 163, 191, 0.16);
  border-radius: var(--radius) var(--radius) var(--radius) var(--radius-soft);
  background: linear-gradient(165deg, rgba(16, 31, 51, 0.92), rgba(9, 18, 31, 0.94));
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  border-color: rgba(22, 242, 210, 0.40);
  transform: translateY(-3px);
  box-shadow: 0 24px 46px -32px rgba(22, 242, 210, 0.70);
}

.card--archive {
  padding-left: clamp(28px, 3.4vw, 40px);
}

.card--archive::before {
  content: "";
  position: absolute;
  top: clamp(18px, 2.6vw, 30px);
  bottom: clamp(18px, 2.6vw, 30px);
  left: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--lava), rgba(255, 106, 43, 0));
}

/* ---------- 9. Figures ---------- */
.figure {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

.figure__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(145deg, #0B1626, #10203a 54%, #08111d);
}

.figure__frame > img,
.figure__frame > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure__ph {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 16% 10%, rgba(22, 242, 210, 0.22), transparent 58%),
    radial-gradient(100% 84% at 86% 90%, rgba(255, 106, 43, 0.20), transparent 62%),
    linear-gradient(145deg, #0B1626, #10203a 54%, #08111d);
}

.figure__ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(143, 163, 191, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 163, 191, 0.10) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.7;
}

.figure__ph::after {
  content: "";
  position: absolute;
  inset: 14% 11%;
  border: 1px solid rgba(143, 163, 191, 0.24);
  clip-path: polygon(0 0, 100% 0, 100% 66%, 66% 100%, 0 100%);
}

.figure--square .figure__frame { aspect-ratio: 1 / 1; }
.figure--wide .figure__frame { aspect-ratio: 21 / 9; }

.figure__caption {
  padding: 10px 14px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--haze);
}

/* ---------- 10. Breadcrumb / Prose ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--haze);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "/";
  margin: 0 8px;
  color: rgba(143, 163, 191, 0.45);
}

.breadcrumb a {
  color: var(--cyan);
}

.breadcrumb a:hover {
  color: var(--paper);
}

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

.prose {
  max-width: 66ch;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-soft);
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2 {
  margin-top: 2em;
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--paper);
}

.prose h3 {
  margin-top: 1.6em;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--paper);
}

.prose ul,
.prose ol {
  padding-left: 1.35em;
}

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

.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--paper);
}

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

.prose blockquote {
  margin: 1.4em 0;
  padding: 12px 18px;
  border-left: 2px solid var(--lava);
  background: rgba(255, 106, 43, 0.06);
  color: var(--paper);
}

/* ---------- 11. Skip link ---------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  padding: 12px 22px;
  border-radius: 2px;
  background: var(--cyan);
  color: #031219;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  color: #031219;
}

/* ---------- 12. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--paper);
  background: rgba(5, 10, 20, 0.94);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--lava) 46%, rgba(255, 106, 43, 0) 84%);
  pointer-events: none;
}

.site-header.is-compact {
  background: rgba(5, 10, 20, 0.985);
  border-bottom-color: rgba(22, 242, 210, 0.26);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 2.6vw, 40px);
  min-height: var(--header-h);
  padding-block: 12px;
  transition: min-height 0.25s ease, padding 0.25s ease;
}

.site-header.is-compact .site-header__inner {
  min-height: 58px;
  padding-block: 7px;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  text-decoration: none;
  justify-self: start;
}

.brand:hover,
.brand:focus-visible {
  color: var(--paper);
}

.brand__glyph {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  background: linear-gradient(150deg, rgba(22, 242, 210, 0.95), rgba(22, 242, 210, 0.22) 55%, rgba(255, 106, 43, 0.9));
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  transition: width 0.25s ease, height 0.25s ease;
}

.brand__glyph::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(5, 10, 20, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 10, 20, 0.55) 1px, transparent 1px);
  background-size: 9px 9px;
  background-position: 4px 4px;
}

.site-header.is-compact .brand__glyph {
  width: 30px;
  height: 30px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand__name {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--paper);
  white-space: nowrap;
}

.brand__meta {
  font-size: 10px;
  letter-spacing: 0.26em;
  line-height: 1;
  color: var(--haze);
  white-space: nowrap;
  transition: opacity 0.25s ease;
}

.site-header.is-compact .brand__meta {
  opacity: 0.55;
}

/* Primary nav (desktop) */
.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.8vw, 12px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav__item {
  min-width: 0;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 10px;
  border-radius: 2px;
  color: var(--haze);
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link__idx {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(143, 163, 191, 0.62);
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--paper);
}

.nav-link:hover .nav-link__idx,
.nav-link:focus-visible .nav-link__idx {
  color: var(--cyan);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: var(--paper);
  background: rgba(255, 106, 43, 0.10);
}

.nav-link[aria-current="page"] .nav-link__idx {
  color: var(--lava);
}

.nav-link[aria-current="page"]::after {
  height: 2px;
  background: var(--lava);
  transform: scaleX(1);
}

.primary-nav__foot {
  display: none;
  margin: 26px 0 0;
  padding-top: 16px;
  border-top: 1px dashed rgba(143, 163, 191, 0.24);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.7;
  color: var(--haze);
}

/* Header tools */
.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.header-cta {
  font-size: 14px;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(11, 22, 38, 0.85);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: rgba(22, 242, 210, 0.7);
  color: var(--cyan);
}

.nav-toggle__label {
  line-height: 1;
}

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 18px;
  flex: none;
}

.nav-toggle__bars i {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cyan);
  transition: transform 0.25s var(--ease), opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:first-child {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-toggle[aria-expanded="true"] {
  border-color: rgba(255, 106, 43, 0.7);
  color: var(--lava);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i {
  background: var(--lava);
}

/* Scroll progress */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  z-index: 2;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan), var(--lava));
  pointer-events: none;
}

/* Scrim */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(5, 10, 20, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-scrim.is-on {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- 13. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(60px, 9vw, 120px);
  overflow: hidden;
  color: var(--paper);
  background: linear-gradient(180deg, #0B1626 0%, #07101C 66%, #050A14 100%);
  border-top: 1px solid rgba(22, 242, 210, 0.22);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--lava), var(--cyan) 44%, rgba(22, 242, 210, 0) 92%);
  pointer-events: none;
}

.site-footer__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(143, 163, 191, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 163, 191, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 72%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 72%);
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 0.95fr 1.1fr;
  gap: clamp(28px, 5vw, 64px);
  padding-block: clamp(44px, 6vw, 78px) clamp(30px, 4vw, 52px);
}

.site-footer__brand {
  min-width: 0;
  max-width: 46ch;
}

.brand--footer {
  margin-bottom: 18px;
}

.site-footer__pitch {
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--haze);
}

.site-footer__stat {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--lime);
}

.site-footer__stat-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(140, 255, 90, 0.14);
  animation: statPulse 2.4s ease-in-out infinite;
}

@keyframes statPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(140, 255, 90, 0.14); }
  50% { box-shadow: 0 0 0 9px rgba(140, 255, 90, 0); }
}

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

.footer-heading {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--haze);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  padding: 5px 0;
  font-size: 14px;
  color: var(--paper);
  opacity: 0.82;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--cyan);
  opacity: 1;
  transform: translateX(3px);
}

.footer-contact {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-contact li {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.footer-contact__k {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(143, 163, 191, 0.85);
}

.footer-contact__v {
  font-size: 14px;
  line-height: 1.6;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.site-footer__base {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 20px 26px;
  border-top: 1px solid rgba(143, 163, 191, 0.14);
}

.footer-legal {
  margin: 0;
  font-size: 12.5px;
  color: var(--haze);
}

.footer-legal .mono {
  color: rgba(143, 163, 191, 0.85);
}

.footer-note {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(143, 163, 191, 0.55);
}

/* ---------- 14. Reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

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

/* ---------- 15. Responsive ---------- */
@media (max-width: 1180px) {
  .nav-link {
    padding: 9px 7px;
    font-size: 13.5px;
  }
  .nav-link::after {
    left: 7px;
    right: 7px;
  }
}

@media (max-width: 1080px) {
  :root {
    --header-h: 68px;
  }

  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: min(86vw, 360px);
    padding: 92px clamp(20px, 6vw, 32px) 36px;
    overflow-y: auto;
    background: linear-gradient(185deg, #0B1626 0%, #07101C 58%, #050A14 100%);
    border-left: 1px solid rgba(22, 242, 210, 0.28);
    box-shadow: -40px 0 80px -30px rgba(0, 0, 0, 0.95);
    transform: translateX(102%);
    transition: transform 0.34s var(--ease);
  }

  .primary-nav::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--lava));
  }

  .primary-nav[data-open] {
    transform: translateX(0);
  }

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .primary-nav__item + .primary-nav__item {
    border-top: 1px solid var(--line-soft);
  }

  .nav-link {
    display: flex;
    align-items: baseline;
    gap: 14px;
    justify-content: flex-start;
    padding: 16px 2px;
    border-radius: 0;
    font-size: 17px;
    color: var(--paper);
    white-space: normal;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link__idx {
    font-size: 11px;
    color: var(--lava);
  }

  .nav-link[aria-current="page"] {
    background: rgba(22, 242, 210, 0.08);
    color: var(--cyan);
    box-shadow: inset 2px 0 0 var(--cyan);
    padding-left: 12px;
  }

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

  .primary-nav__foot {
    display: block;
  }

  .site-footer__inner {
    grid-template-columns: 1.15fr 1fr;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
    max-width: 58ch;
  }
}

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

@media (max-width: 760px) {
  html {
    scroll-padding-top: 84px;
  }

  .brand__name {
    font-size: 17px;
  }

  .brand__glyph {
    width: 32px;
    height: 32px;
  }

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

  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

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

  .figure--wide .figure__frame {
    aspect-ratio: 16 / 9;
  }

  .site-footer__base {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .brand__meta {
    display: none;
  }

  .nav-toggle {
    padding: 9px 11px;
    letter-spacing: 0.04em;
  }
}

/* ---------- 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;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

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

  .site-footer__stat-dot {
    animation: none;
  }
}
