/* ============================================================
   V体育看台 · 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, p,
figure, blockquote, dl, dd, ul, ol, address {
  margin: 0;
}

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

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

button { font: inherit; color: inherit; background: none; border: 0; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--lime); color: var(--ink); }

/* ---------- 2. Tokens ---------- */
:root {
  /* 色板 */
  --ink: #0B1512;
  --panel: #10201B;
  --line: #1F352C;
  --dim: #8FA79B;
  --lime: #C8FF3D;
  --lime-soft: #E4FF9B;
  --orange: #FF6B1A;
  --paper: #F4F1E9;
  --char: #1A1A17;

  /* 结构 */
  --rail: 1320px;
  --gutter: clamp(18px, 4vw, 44px);
  --header-h: 84px;
  --radius-flat: 2px;

  /* 字体 */
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Helvetica Neue", "Arial Narrow", "PingFang SC",
    "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  /* 阴影与缓动 */
  --shadow-hard: 8px 8px 0 rgba(4, 10, 8, 0.65);
  --shadow-soft: 0 22px 44px -32px rgba(0, 0, 0, 0.95);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- 3. Base & 中文排版 ---------- */
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 768px) {
  body { font-size: 17px; }
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6.2vw, 5.25rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.65rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.22; }
h4 { font-size: 1.05rem; line-height: 1.35; letter-spacing: 0; }

p { max-width: 72ch; }

strong { color: var(--lime); font-weight: 700; }

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

#main-content { display: block; }

/* ---------- 4. 布局工具 ---------- */
.container {
  width: 100%;
  max-width: var(--rail);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 880px; }

.section { padding-block: clamp(56px, 9vw, 128px); }
.section--tight { padding-block: clamp(40px, 6vw, 88px); }

.section--paper {
  background: var(--paper);
  color: var(--char);
}

.section--paper h1,
.section--paper h2,
.section--paper h3,
.section--paper h4 { color: var(--char); }

.section--paper .label { color: #5B6B60; }

.section--paper .data-num { color: var(--char); }

.section--paper .section-head { border-bottom-color: rgba(26, 26, 23, 0.18); }

.section--paper .panel {
  background: #FFFFFF;
  border-color: rgba(26, 26, 23, 0.16);
  color: var(--char);
  box-shadow: 6px 6px 0 rgba(26, 26, 23, 0.08);
}

.grid {
  display: grid;
  gap: clamp(18px, 2.6vw, 34px);
}

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

@media (max-width: 900px) {
  .grid--7-4,
  .grid--4-7,
  .grid--3 { grid-template-columns: minmax(0, 1fr); }
}

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

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: clamp(24px, 4vw, 48px);
  padding-bottom: 14px;
  border-bottom: 2px solid var(--line);
}

.section-head__index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--lime);
  text-transform: uppercase;
}

/* ---------- 5. 底色纹样与刻度 ---------- */
.blueprint {
  background-image:
    linear-gradient(to right, rgba(31, 53, 44, 0.6) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(31, 53, 44, 0.6) 1px, transparent 1px);
  background-size: 64px 64px;
}

.blueprint--paper {
  background-image:
    linear-gradient(to right, rgba(26, 26, 23, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26, 26, 23, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
}

.tick-rule {
  height: 12px;
  border-top: 1px solid var(--line);
  background-image: repeating-linear-gradient(
    90deg,
    var(--line) 0 1px,
    transparent 1px 18px
  );
  background-size: 100% 7px;
  background-repeat: no-repeat;
}

.frame {
  position: relative;
  border: 2px solid var(--line);
  padding: clamp(20px, 3vw, 40px);
}

.frame::before,
.frame::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--lime);
  pointer-events: none;
}

.frame::before {
  top: -2px;
  left: -2px;
  border-right: 0;
  border-bottom: 0;
}

.frame::after {
  right: -2px;
  bottom: -2px;
  border-left: 0;
  border-top: 0;
}

/* ---------- 6. 字体级小组件 ---------- */
.label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  background: rgba(200, 255, 61, 0.07);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.tag--orange {
  color: var(--orange);
  border-color: rgba(255, 107, 26, 0.5);
  background: rgba(255, 107, 26, 0.08);
}

.data-num {
  font-family: var(--font-mono);
  font-size: 1.25em;
  letter-spacing: -0.01em;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}

.data-num--orange { color: var(--orange); }

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 2px solid var(--lime);
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(4, 10, 8, 0.6);
  transition:
    transform 0.12s var(--ease),
    box-shadow 0.12s var(--ease),
    background-color 0.12s var(--ease),
    border-color 0.12s var(--ease),
    color 0.12s var(--ease);
}

.btn:hover {
  background: var(--lime-soft);
  border-color: var(--lime-soft);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(4, 10, 8, 0.7);
}

.btn:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 rgba(4, 10, 8, 0.6);
}

.btn--sm {
  padding: 9px 15px;
  font-size: 13px;
  box-shadow: 3px 3px 0 rgba(4, 10, 8, 0.6);
}

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

.btn--ghost:hover {
  background: transparent;
  border-color: var(--lime);
  color: var(--lime);
}

.btn--orange {
  background: var(--orange);
  border-color: var(--orange);
  color: #140A04;
}

.btn--orange:hover {
  background: #FF8A4C;
  border-color: #FF8A4C;
  color: #140A04;
}

/* ---------- 8. 面板 / 卡片 ---------- */
.panel {
  background: var(--panel);
  border: 2px solid var(--line);
  padding: clamp(18px, 2.4vw, 28px);
  box-shadow: var(--shadow-hard);
}

.panel--flat { box-shadow: none; }
.panel--lime { border-color: var(--lime); }

.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.panel__head h3 { font-size: 1.1rem; }

/* ---------- 9. 媒体容器基础规则 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border: 2px solid var(--line);
  background:
    radial-gradient(120% 90% at 18% 8%, rgba(200, 255, 61, 0.16), transparent 62%),
    radial-gradient(90% 80% at 92% 100%, rgba(255, 107, 26, 0.14), transparent 60%),
    linear-gradient(155deg, #10201B 0%, #0B1512 72%);
}

.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(31, 53, 44, 0.65) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(31, 53, 44, 0.65) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.55;
}

.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame--4x5 { aspect-ratio: 4 / 5; }

.media-frame__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 6px 10px;
  background: rgba(11, 21, 18, 0.88);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--dim);
}

/* ---------- 10. 面包屑与正文容器 ---------- */
.breadcrumb { margin-bottom: clamp(18px, 3vw, 28px); }

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.breadcrumb li + li::before {
  content: "/";
  margin-inline: 8px;
  color: var(--line);
}

.breadcrumb a { color: var(--dim); transition: color 0.12s var(--ease); }
.breadcrumb a:hover { color: var(--lime); }

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

.prose {
  max-width: 70ch;
  font-size: 16px;
  line-height: 1.78;
}

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

.prose h2 { margin-top: 2em; margin-bottom: 0.6em; }
.prose h3 { margin-top: 1.6em; margin-bottom: 0.5em; }

.prose ul {
  display: grid;
  gap: 10px;
}

.prose ul li {
  position: relative;
  padding-left: 20px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 2px;
  background: var(--lime);
}

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

.prose--paper {
  background: var(--paper);
  color: var(--char);
  padding: clamp(24px, 4vw, 52px);
  border-left: 6px solid var(--lime);
}

.prose--paper h2,
.prose--paper h3 { color: var(--char); }

.prose--paper a {
  color: var(--char);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--lime);
}

.prose--paper ul li::before { background: #7BA012; }

/* ---------- 11. Skip link ---------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  background: var(--lime);
  color: var(--ink);
  border: 2px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: top 0.16s var(--ease);
}

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

/* ---------- 12. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background-color: transparent;
  background-image: linear-gradient(
    180deg,
    rgba(11, 21, 18, 0.94) 0%,
    rgba(11, 21, 18, 0.62) 58%,
    rgba(11, 21, 18, 0) 100%
  );
  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.is-condensed {
  background-color: var(--ink);
  background-image: none;
  border-bottom-color: var(--line);
  box-shadow: 0 18px 34px -28px #000000;
}

.site-header[data-open] {
  background-color: var(--ink);
  background-image: none;
  border-bottom-color: var(--line);
}

.header-rail {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  width: 100%;
  max-width: var(--rail);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: var(--header-h);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
}

.brand-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(200, 255, 61, 0.16);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-sub {
  padding-left: 10px;
  border-left: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}

/* 导航 */
.site-nav { justify-self: center; min-width: 0; }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
}

.nav-item { flex: 0 0 auto; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 9px 0;
  color: var(--dim);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.12s var(--ease);
}

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

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

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

.nav-link[aria-current="page"] {
  color: var(--paper);
  font-weight: 700;
}

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

.nav-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -12px;
  bottom: 5px;
  width: 5px;
  height: 5px;
  background: var(--lime);
}

/* 右侧工具区 */
.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.live-strip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: none;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: rgba(16, 32, 27, 0.7);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--dim);
  white-space: nowrap;
}

.live-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(200, 255, 61, 0.18);
}

.site-header.is-condensed .live-strip { display: none; }

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

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 2px solid var(--line);
  background: var(--panel);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: border-color 0.12s var(--ease), color 0.12s var(--ease);
}

.nav-toggle:hover { border-color: var(--lime); color: var(--lime); }

.nav-toggle-bars {
  display: grid;
  gap: 3px;
  width: 16px;
}

.nav-toggle-bar {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--lime);
  transition: transform 0.18s var(--ease), opacity 0.18s var(--ease);
}

.site-header[data-open] .nav-toggle-bar:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.site-header[data-open] .nav-toggle-bar:nth-child(2) { opacity: 0; }

.site-header[data-open] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.nav-toggle-label { line-height: 1; }

/* 滚动进度刻度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
  background: rgba(31, 53, 44, 0.55);
}

.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--lime), var(--orange));
  transition: width 0.08s linear;
}

/* 头部断点 */
@media (max-width: 1180px) {
  .live-strip { display: none; }
}

@media (max-width: 959px) {
  .header-rail {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 68px;
    gap: 12px;
  }

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

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    padding: 10px var(--gutter) 22px;
    background: var(--ink);
    border-top: 2px solid var(--line);
    border-bottom: 2px solid var(--line);
    box-shadow: 0 26px 40px -30px #000000;
  }

  .site-header[data-open] .site-nav { display: block; }

  .site-nav .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav .nav-link {
    display: block;
    padding: 14px 0;
    font-size: 17px;
    color: var(--paper);
    border-bottom: 1px solid var(--line);
  }

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

  .site-nav .nav-link[aria-current="page"] {
    color: var(--lime);
    padding-left: 18px;
  }

  .site-nav .nav-link[aria-current="page"]::before {
    left: 0;
    bottom: auto;
    top: 50%;
    width: 8px;
    height: 8px;
    transform: translateY(-50%);
  }

  .site-nav .nav-link:hover { color: var(--lime); }
}

@media (max-width: 560px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 17px; }
  .header-cta { padding: 8px 12px; font-size: 12px; }
  .nav-toggle { padding: 8px 10px; }
}

/* ---------- 13. Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  border-top: 2px solid var(--line);
  color: var(--paper);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(31, 53, 44, 0.55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(31, 53, 44, 0.55) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.32;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
}

.footer-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(44px, 6vw, 78px) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.35fr;
  gap: clamp(28px, 4vw, 52px);
}

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

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

.footer-lede {
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.72;
  color: var(--dim);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--dim);
}

.status-chip-dot {
  width: 6px;
  height: 6px;
  background: var(--lime);
}

.footer-title {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
}

.footer-list {
  display: grid;
  gap: 10px;
  font-size: 14.5px;
}

.footer-list a {
  color: var(--dim);
  transition: color 0.12s var(--ease), padding-left 0.12s var(--ease);
}

.footer-list a:hover {
  color: var(--lime);
  padding-left: 4px;
}

.footer-address {
  display: grid;
  gap: 14px;
  font-style: normal;
  font-size: 14.5px;
}

.footer-meta { display: grid; gap: 2px; }

.footer-meta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--dim);
}

.footer-meta-value {
  color: var(--paper);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.footer-scale {
  margin-top: clamp(36px, 5vw, 64px);
  height: 12px;
  border-top: 1px solid var(--line);
  background-image: repeating-linear-gradient(
    90deg,
    var(--line) 0 1px,
    transparent 1px 16px
  );
  background-size: 100% 7px;
  background-repeat: no-repeat;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 18px 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.footer-legal { max-width: none; }

.footer-note { max-width: none; color: var(--dim); }

@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- 14. 显现与动效降级 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

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