/* =========================================================
   维基体育 · 共享样式 /assets/site.css
   基底：高原暮色深蓝 / 功能高亮：经幡五色
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

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

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

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

a { color: inherit; }

table { border-collapse: collapse; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink-900: #08182B;
  --ink-800: #0B1E33;   /* 高原暮色深蓝 */
  --ink-700: #102A45;
  --ink-600: #153554;

  --teal-800: #0F3B3A;  /* 深蓝绿 */
  --indigo-700: #4B3F8F; /* 靛紫 */
  --wine-700: #7A2E3A;   /* 酒红 */

  --snow: #E6F0F5;       /* 雪线冷光 */
  --paper: #F2F0EA;      /* 暖灰纸色 */

  --flag-blue: #2E7DD1;
  --flag-red: #D64545;
  --flag-green: #2E9E6B;
  --flag-yellow: #F2B63D;

  --text: #E6F0F5;
  --text-dim: rgba(230, 240, 245, 0.72);
  --text-faint: rgba(230, 240, 245, 0.54);

  --line: rgba(230, 240, 245, 0.14);
  --line-strong: rgba(230, 240, 245, 0.28);
  --surface: rgba(230, 240, 245, 0.045);
  --surface-2: rgba(230, 240, 245, 0.085);

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

  --header-h: 76px;
  --maxw: 1280px;
  --gutter: 48px;
  --radius: 4px;
  --skew: 4deg;

  --shadow-1: 0 1px 0 rgba(230, 240, 245, 0.06), 0 18px 40px -30px rgba(0, 0, 0, 0.9);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

@media (max-width: 640px) {
  :root { --gutter: 20px; --header-h: 62px; }
}

/* ---------- 3. Base ---------- */
body {
  background: var(--ink-800);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.012em;
  color: var(--snow);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.5rem); font-weight: 700; line-height: 1.3; }

::selection {
  background: var(--flag-yellow);
  color: var(--ink-900);
}

/* ---------- 4. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

#main-content {
  display: block;
  padding-block-start: var(--header-h);
}

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

.measure { max-width: 42em; }

.divider {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, var(--line-strong) 0%, rgba(230, 240, 245, 0.04) 72%, transparent 100%);
}

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

@media (max-width: 900px) {
  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .grid-12 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

/* ---------- 5. Accessibility ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -120px;
  z-index: 9999;
  display: inline-block;
  padding: 10px 18px;
  background: var(--flag-yellow);
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 3px;
  transition: top 0.18s var(--ease);
}

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

:where(a, button, [tabindex], input, select, textarea):focus-visible {
  outline: 2px solid var(--flag-yellow);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 6. Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.24s var(--ease), border-color 0.24s var(--ease), box-shadow 0.24s var(--ease);
}

.site-header[data-solid="true"] {
  background: rgba(11, 30, 51, 0.94);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(230, 240, 245, 0.05), 0 24px 48px -42px rgba(0, 0, 0, 0.95);
}

.header-inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 26px;
}

/* 品牌署名 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--snow);
}

.brand__mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  color: var(--ink-900);
  background: linear-gradient(142deg, #FFD070 0%, var(--flag-yellow) 46%, #DE9A24 100%);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 78% 100%, 0 100%);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand__name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--snow);
}

.brand__desc {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}

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

/* 主导航 */
.primary-nav {
  display: flex;
  align-items: center;
  min-width: 0;
}

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav__link {
  position: relative;
  display: inline-block;
  padding: 10px 13px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--text-dim);
  text-decoration: none;
  border-radius: 3px;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.primary-nav__link::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 4px;
  height: 2px;
  background: var(--flag-yellow);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s var(--ease);
}

.primary-nav__link:hover {
  color: var(--snow);
  background: var(--surface-2);
}

.primary-nav__link[aria-current="page"] {
  color: var(--snow);
  font-weight: 700;
}

.primary-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

/* 右侧操作 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline-start: auto;
  flex: 0 0 auto;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
}

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

.btn--primary {
  background: var(--flag-yellow);
  color: var(--ink-900);
  border-color: var(--flag-yellow);
}

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

.btn--ghost {
  background: transparent;
  color: var(--snow);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  background: var(--surface-2);
  border-color: rgba(230, 240, 245, 0.52);
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--snow);
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.nav-toggle:hover {
  background: var(--surface-2);
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.22s var(--ease), opacity 0.18s var(--ease);
}

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

/* 滚动进度 */
.header-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(90deg,
    var(--flag-blue) 0%,
    var(--flag-green) 30%,
    var(--flag-yellow) 62%,
    var(--flag-red) 100%);
  transition: width 0.12s linear, opacity 0.24s var(--ease);
}

/* 页头响应式 */
@media (max-width: 1080px) {
  .header-inner { gap: 18px; }
  .primary-nav__link { padding: 10px 10px; font-size: 13.5px; }
  .primary-nav__link::after { left: 10px; right: 10px; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .header-actions__score { display: none; }

  .primary-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: block;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(9, 24, 42, 0.985);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 32px 64px -48px #000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  }

  .primary-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--gutter) 28px;
  }

  .primary-nav__list > li { border-bottom: 1px solid rgba(230, 240, 245, 0.08); }
  .primary-nav__list > li:last-child { border-bottom: 0; }

  .primary-nav__link {
    display: block;
    padding: 15px 4px;
    font-size: 16px;
    border-radius: 0;
  }

  .primary-nav__link::after {
    left: 4px;
    right: auto;
    width: 22px;
    bottom: 11px;
  }
}

@media (max-width: 560px) {
  .header-actions__cta { display: none; }
  .brand__desc { display: none; }
  .brand__name { font-size: 16px; }
}

/* ---------- 7. Footer ---------- */
.site-footer {
  position: relative;
  background: var(--ink-800);
  color: var(--text);
  border-top: 1px solid var(--line-strong);
}

.footer-stripe {
  display: flex;
  width: 100%;
  height: 3px;
}

.footer-stripe span { flex: 1 1 20%; }
.footer-stripe span:nth-child(1) { background: var(--flag-blue); }
.footer-stripe span:nth-child(2) { background: var(--snow); }
.footer-stripe span:nth-child(3) { background: var(--flag-red); }
.footer-stripe span:nth-child(4) { background: var(--flag-green); }
.footer-stripe span:nth-child(5) { background: var(--flag-yellow); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.85fr 1.25fr 1.1fr;
  gap: 56px 48px;
  padding-block: 64px 56px;
}

.footer-col { min-width: 0; }
.footer-col--brand { max-width: 340px; }
.footer-col--contact { min-width: 0; }
.footer-col--event .btn { margin-top: 18px; }

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.footer-col__title::before {
  content: "";
  flex: 0 0 auto;
  width: 16px;
  height: 2px;
  background: var(--flag-yellow);
}

.footer-note {
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--text-dim);
}

.footer-flags {
  display: flex;
  gap: 5px;
  margin-top: 20px;
}

.footer-flags span {
  display: block;
  width: 22px;
  height: 4px;
  border-radius: 1px;
}

.footer-flags span:nth-child(1) { background: var(--flag-blue); }
.footer-flags span:nth-child(2) { background: var(--snow); }
.footer-flags span:nth-child(3) { background: var(--flag-red); }
.footer-flags span:nth-child(4) { background: var(--flag-green); }
.footer-flags span:nth-child(5) { background: var(--flag-yellow); }

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

.footer-links a {
  display: inline-block;
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.18s var(--ease), padding-left 0.18s var(--ease);
}

.footer-links a:hover {
  color: var(--flag-yellow);
  padding-left: 4px;
}

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

.footer-contact li {
  display: grid;
  gap: 2px;
  font-size: 13px;
  line-height: 1.6;
}

.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.footer-contact__value {
  color: var(--text-dim);
  overflow-wrap: anywhere;
}

.footer-bar {
  background: var(--teal-800);
  border-top: 1px solid var(--line);
}

.footer-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(230, 240, 245, 0.62);
}

.footer-bar__copy,
.footer-bar__icp {
  margin: 0;
  white-space: nowrap;
}

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

.footer-legal a {
  color: rgba(230, 240, 245, 0.74);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.footer-legal a:hover { color: var(--flag-yellow); }

@media (max-width: 1080px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 44px 40px;
    padding-block: 52px 48px;
  }
  .footer-col--brand { max-width: none; }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-block: 44px 40px;
  }
  .footer-bar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-bar__copy,
  .footer-bar__icp { white-space: normal; }
}

/* ---------- 8. Shared content components ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

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

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

/* 经幡标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.tag:hover { transform: translateY(-2px); }

.tag--blue   { color: #BBDDFB; background: rgba(46, 125, 209, 0.18); border-color: rgba(46, 125, 209, 0.52); }
.tag--red    { color: #F6BDBD; background: rgba(214, 69, 69, 0.18); border-color: rgba(214, 69, 69, 0.52); }
.tag--green  { color: #A9E3C8; background: rgba(46, 158, 107, 0.18); border-color: rgba(46, 158, 107, 0.52); }
.tag--yellow { color: #F7D67F; background: rgba(242, 182, 61, 0.18); border-color: rgba(242, 182, 61, 0.55); }
.tag--indigo { color: #C9C2F2; background: rgba(75, 63, 143, 0.34); border-color: rgba(75, 63, 143, 0.72); }

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

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

.breadcrumb li + li::before {
  content: "/";
  color: rgba(230, 240, 245, 0.26);
}

.breadcrumb a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

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

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

/* 堆叠面板 */
.panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}

.panel--paper {
  background: var(--paper);
  color: var(--ink-800);
  border-color: rgba(11, 30, 51, 0.14);
  box-shadow: 0 1px 0 rgba(11, 30, 51, 0.06), 0 22px 44px -34px rgba(11, 30, 51, 0.8);
}

.panel--teal   { background: var(--teal-800);   border-color: rgba(230, 240, 245, 0.16); }
.panel--indigo { background: var(--indigo-700); border-color: rgba(230, 240, 245, 0.2); }
.panel--wine   { background: var(--wine-700);   border-color: rgba(230, 240, 245, 0.2); }

/* 长文 */
.prose {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-dim);
}

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

.prose h2,
.prose h3 {
  margin-block-start: 1.8em;
  color: var(--snow);
}

.prose h2:first-child,
.prose h3:first-child { margin-block-start: 0; }

.prose ul,
.prose ol {
  padding-left: 1.3em;
  list-style: none;
}

.prose ul li,
.prose ol li {
  position: relative;
  padding-left: 1em;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 6px;
  height: 1px;
  background: var(--flag-yellow);
}

.prose li + li { margin-block-start: 0.4em; }

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

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

.prose--paper { color: rgba(11, 30, 51, 0.82); }
.prose--paper h2,
.prose--paper h3 { color: var(--ink-800); }
.prose--paper a { color: var(--indigo-700); }
.prose--paper ul li::before { background: var(--indigo-700); }

/* 章节标题行 */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 32px;
}

.section-head__title { margin: 0; }

.section-head__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}

/* 图片容器基础规则（页面阶段填充 <img>） */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, rgba(46, 125, 209, 0.26), transparent 56%),
    linear-gradient(302deg, rgba(75, 63, 143, 0.42), transparent 62%),
    var(--ink-700);
}

.media-frame > img,
.media-frame > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 30, 51, 0) 44%, rgba(11, 30, 51, 0.78) 100%);
}

.media-frame__badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-900);
  background: var(--flag-yellow);
  border-radius: 2px;
}

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

.media-frame--tilt {
  clip-path: polygon(0 0, 100% 3.6%, 100% 100%, 0 96.4%);
}

/* ---------- 9. Reveal（入场显现协议） ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

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

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

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

  .tag:hover,
  .footer-links a:hover {
    transform: none;
    padding-left: 0;
  }

  .btn:active { transform: none; }
}
