/* ==========================================================================
   A-Frame 中文站
   纯原生 CSS，无构建步骤。
   圆角规则：面板 14px / 交互控件 10px / 小标签 6px（全局统一，不要混入其他值）
   强调色：全站唯一 --accent（A-Frame 品牌红降饱和版），交互按钮用 --btn-bg 保证 AA 对比
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --nav-h: 68px;
  --wrap: 1200px;

  --r-panel: 14px;
  --r-control: 10px;
  --r-tag: 6px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC",
    Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", "Courier New", monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.5s;
}

html[data-theme="dark"] {
  --bg: #0b0d11;
  --bg-alt: #0f1218;
  --surface: #14181f;
  --surface-2: #191e27;
  --line: #232a36;
  --line-strong: #313a49;
  --text: #e9ecf2;
  --text-dim: #9aa3b4;
  --accent: #e4405f;
  --accent-text: #ff7a92;
  --accent-soft: rgba(228, 64, 95, 0.13);
  --btn-bg: #d22f4e;
  --btn-bg-hover: #e03a5a;
  --btn-text: #ffffff;
  --code-bg: #0d1015;
  --tint: linear-gradient(150deg, rgba(228, 64, 95, 0.16), rgba(228, 64, 95, 0.02) 60%);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.35);
}

html[data-theme="light"] {
  --bg: #f6f7f9;
  --bg-alt: #eef0f5;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --line: #e0e4ea;
  --line-strong: #c9d0da;
  --text: #14171d;
  --text-dim: #5b6472;
  --accent: #d92e50;
  --accent-text: #c21f3f;
  --accent-soft: rgba(217, 46, 80, 0.08);
  --btn-bg: #d22f4e;
  --btn-bg-hover: #c02545;
  --btn-text: #ffffff;
  --code-bg: #101418;
  --tint: linear-gradient(150deg, rgba(217, 46, 80, 0.1), rgba(217, 46, 80, 0.015) 60%);
  --shadow: 0 18px 40px rgba(20, 23, 29, 0.1);
  --shadow-sm: 0 6px 18px rgba(20, 23, 29, 0.07);
}

/* ---------- 2. 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-text); text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* 关键修复：author 的 display 声明会压过 [hidden] 的 UA 默认值，
   必须显式恢复 hidden 语义，否则错误兜底层会常驻盖住 3D 场景 */
[hidden] { display: none !important; }

code, pre, kbd { font-family: var(--font-mono); }
:not(pre) > code {
  background: var(--accent-soft);
  color: var(--accent-text);
  padding: 0.1em 0.38em;
  border-radius: var(--r-tag);
  font-size: 0.88em;
  word-break: break-word;
}

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--btn-bg);
  color: var(--btn-text);
  padding: 10px 16px;
  border-radius: 0 0 var(--r-control) 0;
}
.skip-link:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 3. 滚动进度条（CSS 滚动驱动动画，不支持则静止） ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 2px;
  width: 100%;
  z-index: 60;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-text));
  pointer-events: none;
}
@supports (animation-timeline: scroll(root)) {
  @media (prefers-reduced-motion: no-preference) {
    .scroll-progress {
      animation: progress-grow linear both;
      animation-timeline: scroll(root);
    }
  }
}
@keyframes progress-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- 4. 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); }

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-mark { width: 24px; height: 24px; color: var(--accent); flex: none; }
.brand-lang {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.8em;
  margin-left: 2px;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  color: var(--text-dim);
  padding: 6px 12px;
  border-radius: var(--r-control);
  font-size: 0.94rem;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  background: var(--surface);
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:active { transform: translateY(1px); }

html[data-theme="dark"] .i-sun { display: block; }
html[data-theme="dark"] .i-moon { display: none; }
html[data-theme="light"] .i-sun { display: none; }
html[data-theme="light"] .i-moon { display: block; }

.nav-burger {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  place-items: center;
  gap: 5px;
}
.nav-burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.nav-panel {
  display: none;
  flex-direction: column;
  padding: 8px 24px 20px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.nav-panel a {
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}
.nav-panel a:last-child { border-bottom: 0; }

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-control);
  border: 1px solid transparent;
  font-size: 0.96rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s var(--ease), background-color 0.2s var(--ease),
    border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn svg { width: 16px; height: 16px; flex: none; }

.btn-primary { background: var(--btn-bg); color: var(--btn-text); }
.btn-primary:hover { background: var(--btn-bg-hover); }
.btn-primary:active { transform: translateY(1px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--text-dim); }
.btn-ghost:active { transform: translateY(1px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  border-bottom: 1px solid transparent;
}
.link-arrow:hover { border-bottom-color: currentColor; }
.link-arrow svg { width: 15px; height: 15px; }

/* ---------- 6. 通用排版与区块 ---------- */
.section {
  padding: clamp(64px, 9vw, 120px) 0;
}
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 62ch; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  margin-bottom: 14px;
}
.section-head p { color: var(--text-dim); font-size: 1.02rem; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 14px;
}

.accent { color: var(--accent-text); }

/* ---------- 7. Hero ---------- */
.hero {
  min-height: calc(100dvh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 40px 0 clamp(48px, 6vw, 80px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-title {
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero-sub {
  color: var(--text-dim);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  max-width: 46ch;
  margin-bottom: 30px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual { margin: 0; }
.scene-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 300px;
  border-radius: var(--r-panel);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.scene-mount, .scene-mount a-scene { width: 100%; height: 100%; }
.scene-mount a-scene {
  display: block;
  border-radius: inherit;
}

.scene-skeleton {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  color: var(--text-dim);
  font-size: 0.88rem;
  background: var(--surface-2);
}
.scene-frame[data-state="ready"] .scene-skeleton,
.scene-frame[data-state="error"] .scene-skeleton { display: none; }

.skeleton-cube {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  transform: rotate(45deg);
  animation: cube-pulse 1.8s var(--ease) infinite;
}
@keyframes cube-pulse {
  0%, 100% { opacity: 0.35; transform: rotate(45deg) scale(0.9); }
  50% { opacity: 1; transform: rotate(135deg) scale(1); }
}

.scene-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 28px;
  text-align: center;
  background: var(--surface-2);
  color: var(--text-dim);
  font-size: 0.92rem;
}

.hero-visual figcaption {
  margin-top: 12px;
  color: var(--text-dim);
  font-size: 0.86rem;
}

/* ---------- 8. 特性 Bento（7 个内容 = 7 个格子） ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.cell {
  grid-column: span 4;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--surface);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.cell:hover { border-color: var(--line-strong); }
.cell-a { grid-column: span 7; }
.cell-b { grid-column: span 5; }
.cell-f { grid-column: span 5; }
.cell-g { grid-column: span 7; }
.card-tint { background-image: var(--tint); background-color: var(--surface); }

.cell-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-control);
  background: var(--accent-soft);
  color: var(--accent-text);
  margin-bottom: 16px;
}
.cell-icon svg { width: 20px; height: 20px; }
.cell h3 { font-size: 1.12rem; margin-bottom: 10px; }
.cell p { color: var(--text-dim); font-size: 0.95rem; }
.cell-note { margin-top: 14px; font-size: 0.82rem; }

.mini-code {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: var(--r-control);
  background: var(--code-bg);
  color: #d7dce7;
  font-size: 0.82rem;
  overflow-x: auto;
}

.kbd-row { display: flex; align-items: center; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
kbd {
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: var(--r-tag);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.8rem;
}
.kbd-plus { color: var(--text-dim); font-size: 0.8rem; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.chip {
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-tag);
  background: var(--surface-2);
  color: var(--text-dim);
  font-size: 0.82rem;
}
.chip-alt {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  background: var(--accent-soft);
  color: var(--accent-text);
}

/* ---------- 9. 代码块与标签页 ---------- */
.tabs { border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); overflow: hidden; }

.tablist { display: flex; gap: 2px; padding: 8px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab {
  flex: none;
  padding: 9px 16px;
  border: 0;
  border-radius: var(--r-control);
  background: transparent;
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.tab:hover { color: var(--text); }
.tab.is-active { background: var(--accent-soft); color: var(--accent-text); }

.panel { display: none; }
.panel.is-active { display: block; animation: panel-in 0.35s var(--ease) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.panel-body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}
.panel-note {
  padding: 26px;
  border-left: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.95rem;
}
.panel-note h3 { color: var(--text); font-size: 1.05rem; margin-bottom: 12px; }
.panel-note p + p, .panel-note p + a { margin-top: 12px; }
.panel-note a { display: inline-flex; }

.code-block { position: relative; min-width: 0; background: var(--code-bg); }
.code-block-flat { border-radius: var(--r-control); }

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.code-name { color: #8b95a8; font-family: var(--font-mono); font-size: 0.78rem; }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-tag);
  background: rgba(255, 255, 255, 0.05);
  color: #b8c0d0;
  font-size: 0.76rem;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.11); color: #fff; }
.copy-btn:active { transform: translateY(1px); }
.copy-btn svg { width: 14px; height: 14px; }
.copy-btn .i-check { display: none; }
.copy-btn.is-copied .i-copy { display: none; }
.copy-btn.is-copied .i-check { display: block; }
.copy-btn.is-copied { color: #6ee7a8; border-color: rgba(110, 231, 168, 0.4); }
.copy-btn.is-failed { color: #ffa08a; border-color: rgba(255, 160, 138, 0.4); }

.copy-btn-float { position: absolute; top: 10px; right: 10px; z-index: 2; }

.code-block pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  font-size: 0.83rem;
  line-height: 1.75;
  color: #cfd6e4;
  tab-size: 2;
}
.code-block-flat pre { padding: 14px 16px; }
.code-block-flat:has(.copy-btn-float) pre { padding-right: 64px; }

/* 语法高亮 token（深浅主题共用代码块深色底，故颜色固定） */
.tok-tag { color: #7fb2ff; }
.tok-attr { color: #ffb86b; }
.tok-str { color: #8ce99a; }
.tok-punc { color: #7d8798; }
.tok-com { color: #6b7688; font-style: italic; }
.tok-key { color: #ff8ab3; }
.tok-cmd { color: #8ce99a; }

.stack-code { display: grid; gap: 14px; padding: 18px; }

/* ---------- 10. 示例作品 ---------- */
.showcase {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.shot {
  grid-column: span 2;
  position: relative;
  display: block;
  border-radius: var(--r-panel);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.shot-wide { grid-column: span 3; }
.shot:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.shot:hover img { transform: scale(1.03); }
.shot-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.shot-name { font-weight: 600; font-size: 0.95rem; }
.shot-credit { color: var(--text-dim); font-size: 0.78rem; font-family: var(--font-mono); }

.shot.is-missing img { display: none; }
.shot.is-missing::before {
  content: "预览图未能加载";
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  color: var(--text-dim);
  font-size: 0.85rem;
  background: var(--surface-2);
}

.showcase-more { margin-top: 24px; color: var(--text-dim); font-size: 0.94rem; }
.showcase-more a { border-bottom: 1px solid transparent; }
.showcase-more a:hover { border-bottom-color: currentColor; }

/* ---------- 11. 本地开发步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step h3 { font-size: 1rem; margin-bottom: 12px; }

.callout {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--surface);
}
.callout-body h3 { font-size: 1.1rem; margin-bottom: 12px; }
.callout-body p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- 12. 社区 ---------- */
.community { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); }
.community-group h3 { font-size: 1.05rem; margin-bottom: 16px; }
.community-sub { margin-top: 28px; }
.community-text { color: var(--text-dim); font-size: 0.94rem; margin-bottom: 14px; }
.community-group .btn { margin-top: 4px; }

.link-list li + li { margin-top: 2px; }
.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  color: var(--text);
  font-size: 0.96rem;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s var(--ease);
}
.link-list a:hover { color: var(--accent-text); }
.link-list .i-arrow { display: inline-flex; color: var(--text-dim); transition: color 0.2s var(--ease); }
.link-list .i-arrow svg { width: 16px; height: 16px; }
.link-list a:hover .i-arrow { color: var(--accent-text); }

/* ---------- 13. 页脚 ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 56px; background: var(--bg-alt); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.footer-brand p { color: var(--text-dim); font-size: 0.92rem; margin-top: 12px; max-width: 42ch; }
.footer-meta { color: var(--text-dim); font-size: 0.85rem; max-width: 40ch; }

/* ---------- 14. 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-burger { display: grid; }
  .nav-panel { display: none; }
  .nav-panel.is-open { display: flex; }
  .nav-actions { margin-left: auto; }

  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; }

  .cell-a, .cell-b, .cell-f, .cell-g { grid-column: span 6; }
  .cell { grid-column: span 6; }

  .panel-body { grid-template-columns: 1fr; }
  .panel-note { border-left: 0; border-top: 1px solid var(--line); }

  .steps { grid-template-columns: 1fr; }
  .callout { grid-template-columns: 1fr; }

  .community { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .cell, .cell-a, .cell-b, .cell-f, .cell-g { grid-column: span 12; }
  .showcase { grid-template-columns: 1fr; }
  .shot, .shot-wide { grid-column: span 1; }
  .community { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- 16. 无障碍与降级 ---------- */
@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;
  }
  .reveal { opacity: 1; transform: none; }
}

@media (prefers-contrast: more) {
  :root { --line: var(--text-dim); --line-strong: var(--text); }
}
