/* ============================================================
   企鹅体育赛场 · 共享外壳样式 /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, ul, ol, li, figure, blockquote, dl, dd {
  margin: 0;
}

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

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

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

a { color: inherit; }

/* ---------- 2. Tokens ---------- */
:root {
  --deep: #0B1F3A;
  --night: #071426;
  --ice: #6FE3D4;
  --ice-soft: #C9F7F0;
  --orange: #FF6A2A;
  --orange-lift: #FF8049;
  --signal: #FFD23F;
  --paper: #F7FAFC;
  --fog: #DDE5EE;
  --ink: #3A4A5E;
  --green: #2FBF71;
  --white: #FFFFFF;

  --font-display: "MiSans", "HarmonyOS Sans SC", "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap-w: 1240px;
  --gap: 24px;
  --radius: 2px;

  --dur-1: 160ms;
  --dur-2: 240ms;
  --dur-3: 560ms;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);

  --shadow-panel: 0 24px 48px -34px rgba(7, 20, 38, 0.9);
  --shadow-card: 0 18px 34px -26px rgba(11, 31, 58, 0.55);
}

/* ---------- 3. Base typography ---------- */
html { font-size: 16px; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--deep);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

p { max-width: 42ch; }

::selection {
  background: var(--ice);
  color: var(--deep);
}

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

/* ---------- 4. Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap-w);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

.section {
  padding-block: clamp(48px, 7vw, 96px);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(24px, 3vw, 40px);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--fog);
}

.section__title {
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  margin: 0;
}

.section__lead {
  max-width: 42ch;
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
}

.rule {
  height: 1px;
  border: 0;
  background: var(--fog);
  margin: 0;
}

.grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

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

.span-full { grid-column: 1 / -1; }

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

/* ---------- 5. Skip link ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  display: inline-block;
  padding: 10px 16px;
  background: var(--signal);
  color: var(--deep);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top var(--dur-2) var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  outline: 2px solid var(--deep);
  outline-offset: 3px;
}

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease),
              color var(--dur-1) var(--ease),
              border-color var(--dur-1) var(--ease),
              transform var(--dur-1) var(--ease);
}

.btn--primary {
  background-color: var(--orange);
  color: var(--white);
}

.btn--primary:hover { background-color: var(--orange-lift); }

.btn--ghost {
  background-color: transparent;
  border-color: rgba(111, 227, 212, 0.55);
  color: var(--ice);
}

.btn--ghost:hover {
  background-color: rgba(111, 227, 212, 0.14);
  color: var(--white);
}

.btn--sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: 13px;
}

.btn--block { width: 100%; }

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

/* ---------- 7. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background-color: var(--deep);
  color: var(--paper);
  border-bottom: 1px solid rgba(111, 227, 212, 0.22);
}

/* 贯穿式观赛入口条 */
.entry-strip {
  background-color: var(--night);
  border-bottom: 1px solid rgba(111, 227, 212, 0.16);
}

.entry-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
  padding-block: 6px;
}

.entry-strip__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ice);
  border-radius: var(--radius);
  padding: 3px 2px;
  transition: color var(--dur-1) var(--ease);
}

.entry-strip__link:hover { color: var(--white); }

.entry-strip__signal {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background-color: var(--orange);
  box-shadow: 0 0 0 0 rgba(255, 106, 42, 0.55);
  animation: signal-pulse 2.6s var(--ease) infinite;
}

@keyframes signal-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 106, 42, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(255, 106, 42, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 106, 42, 0); }
}

.entry-strip__text {
  font-weight: 700;
  color: var(--ice);
}

.entry-strip__divider {
  color: rgba(247, 250, 252, 0.3);
}

.entry-strip__note {
  color: rgba(247, 250, 252, 0.7);
  letter-spacing: 0.1em;
}

.entry-strip__hint {
  display: none;
  margin: 0;
  max-width: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 250, 252, 0.5);
  white-space: nowrap;
}

/* 滚动进度轨 */
.progress-rail {
  height: 2px;
  background-color: rgba(247, 250, 252, 0.09);
  overflow: hidden;
}

.progress-rail__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background-image: linear-gradient(90deg, var(--ice) 0%, var(--signal) 62%, var(--orange) 100%);
}

/* 命令栏 */
.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding-block: 12px 14px;
}

.brand {
  order: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--paper);
  border-radius: var(--radius);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  background-color: var(--ice);
  color: var(--deep);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 78% 100%, 0 100%);
}

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

.brand__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--paper);
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ice);
  line-height: 1.2;
}

.brand:hover .brand__mark { background-color: var(--signal); }

/* 移动导航按钮 */
.nav-toggle {
  order: 2;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  background-color: transparent;
  border: 1px solid rgba(111, 227, 212, 0.45);
  border-radius: var(--radius);
  color: var(--paper);
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease),
              border-color var(--dur-1) var(--ease);
}

.nav-toggle:hover {
  background-color: rgba(111, 227, 212, 0.12);
  border-color: var(--ice);
}

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

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background-color: currentColor;
  transition: transform var(--dur-2) var(--ease),
              opacity var(--dur-2) var(--ease);
}

.nav-toggle__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

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

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

/* 导航（移动为下拉面板） */
.nav-command {
  order: 3;
  flex-basis: 100%;
  display: none;
}

.nav-command__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-command__item { display: block; }

.nav-command__link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(111, 227, 212, 0.14);
  border-radius: var(--radius);
  text-decoration: none;
  color: rgba(247, 250, 252, 0.78);
  font-size: 15px;
  font-weight: 500;
  transition: color var(--dur-1) var(--ease),
              background-color var(--dur-1) var(--ease);
}

.nav-command__link:hover {
  color: var(--white);
  background-color: rgba(111, 227, 212, 0.1);
}

.nav-command__index {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ice);
  opacity: 0.85;
}

.nav-command__text { line-height: 1.3; }

.nav-command__foot {
  padding: 14px 0 0;
}

.nav-command__link[aria-current="page"] {
  background-color: var(--ice);
  color: var(--deep);
  font-weight: 700;
  border-bottom-color: transparent;
}

.nav-command__link[aria-current="page"] .nav-command__index {
  color: var(--deep);
  opacity: 0.65;
}

.nav-command__link[aria-current="page"]:hover {
  background-color: var(--ice);
  color: var(--deep);
}

.site-header[data-open] .nav-command {
  display: block;
  animation: nav-drop var(--dur-2) var(--ease) both;
}

@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.header-actions {
  order: 4;
  display: none;
}

/* 桌面 / 平板横向命令栏 */
@media (min-width: 1000px) {
  .header-bar {
    flex-wrap: nowrap;
    gap: 28px;
    padding-block: 14px 16px;
  }

  .nav-toggle { display: none; }

  .site-header[data-open] .nav-command { animation: none; }

  .nav-command {
    order: 2;
    flex-basis: auto;
    display: block;
    margin-left: auto;
  }

  .nav-command__list {
    flex-direction: row;
    gap: 2px;
  }

  .nav-command__link {
    padding: 9px 11px;
    border-bottom: 0;
    font-size: 14px;
    gap: 6px;
  }

  .nav-command__foot { display: none; }

  .header-actions {
    order: 3;
    display: flex;
    align-items: center;
  }
}

@media (min-width: 900px) {
  .entry-strip__hint { display: block; }
}

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

/* ---------- 8. Footer ---------- */
.site-footer {
  position: relative;
  background-color: var(--deep);
  color: rgba(247, 250, 252, 0.78);
  padding-top: 4px;
}

.site-footer::before {
  content: "";
  display: block;
  height: 4px;
  background-image: linear-gradient(90deg,
    var(--ice) 0 38%,
    var(--signal) 38% 56%,
    var(--orange) 56% 100%);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-block: 44px 36px;
}

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

.brand--footer .brand__mark {
  width: 36px;
  height: 36px;
  font-size: 16px;
}

.footer-tagline {
  max-width: 22ch;
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.24;
  color: var(--paper);
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  max-width: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ice);
}

.footer-status__dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 191, 113, 0.2);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 26px;
}

.footer-col__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
}

.footer-col__list {
  display: grid;
  gap: 10px;
}

.footer-col__link {
  display: inline-block;
  padding-block: 2px;
  font-size: 14px;
  color: rgba(247, 250, 252, 0.78);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-1) var(--ease),
              border-color var(--dur-1) var(--ease);
}

.footer-col__link:hover {
  color: var(--ice);
  border-bottom-color: var(--ice);
}

.footer-title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
}

.footer-contact__list {
  display: grid;
  gap: 14px;
}

.footer-contact__item {
  display: grid;
  gap: 3px;
  padding-left: 12px;
  border-left: 2px solid rgba(111, 227, 212, 0.35);
}

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

.footer-contact__value {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(247, 250, 252, 0.88);
  word-break: break-word;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 18px 30px;
  border-top: 1px solid rgba(247, 250, 252, 0.14);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(247, 250, 252, 0.55);
}

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

.footer-icp { color: rgba(247, 250, 252, 0.72); }

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal-links a {
  color: rgba(247, 250, 252, 0.72);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-block: 2px;
  transition: color var(--dur-1) var(--ease),
              border-color var(--dur-1) var(--ease);
}

.footer-legal-links a:hover {
  color: var(--ice);
  border-bottom-color: var(--ice);
}

.site-footer :focus-visible,
.site-header :focus-visible {
  outline-color: var(--signal);
}

@media (min-width: 720px) {
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (min-width: 1040px) {
  .footer-top {
    grid-template-columns: 1.15fr 1.6fr 1.15fr;
    gap: 48px;
    padding-block: 56px 44px;
  }
  .footer-brand { grid-column: auto; }
}

/* ---------- 9. Shared content components ---------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid rgba(11, 31, 58, 0.12);
  border-radius: var(--radius);
  background-color: var(--ice-soft);
  color: var(--deep);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.3;
}

.label--signal {
  background-color: var(--signal);
  border-color: transparent;
  color: var(--deep);
}

.label--dark {
  background-color: var(--deep);
  border-color: transparent;
  color: var(--ice);
}

.eyebrow {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: var(--radius);
  background-color: var(--fog);
  color: var(--deep);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.4;
}

.chip--live {
  background-color: var(--orange);
  color: var(--white);
}

.chip--win {
  background-color: rgba(47, 191, 113, 0.16);
  color: #1F7A48;
}

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

.annot {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(58, 74, 94, 0.6);
  writing-mode: vertical-rl;
  line-height: 1;
}

.annot--light { color: rgba(247, 250, 252, 0.55); }

.rank-delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.rank-delta--up { color: var(--orange); }
.rank-delta--up::before { content: "▲"; font-size: 9px; }

.rank-delta--down { color: #5A7A9A; }
.rank-delta--down::before { content: "▼"; font-size: 9px; }

.rank-delta--flat { color: var(--ink); opacity: 0.6; }
.rank-delta--flat::before { content: "—"; font-size: 9px; }

.panel {
  padding: clamp(20px, 3vw, 32px);
  background-color: var(--deep);
  color: rgba(247, 250, 252, 0.86);
  border: 1px solid rgba(111, 227, 212, 0.22);
  border-radius: var(--radius);
  box-shadow: var(--shadow-panel);
}

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

.panel--light {
  background-color: var(--white);
  color: var(--ink);
  border-color: var(--fog);
  box-shadow: none;
}

.panel--light h2,
.panel--light h3 {
  color: var(--deep);
}

.card {
  padding: clamp(18px, 2.4vw, 26px);
  background-color: var(--white);
  border: 1px solid var(--fog);
  border-radius: var(--radius);
  transition: transform var(--dur-2) var(--ease),
              box-shadow var(--dur-2) var(--ease),
              border-color var(--dur-2) var(--ease);
}

.card:hover,
.card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(111, 227, 212, 0.9);
  box-shadow: var(--shadow-card);
}

/* 转播监视器画框：页面阶段放 <img> 或占位色块 */
.media-frame {
  position: relative;
  overflow: hidden;
  background-color: var(--night);
  border: 1px solid rgba(11, 31, 58, 0.16);
  border-radius: var(--radius);
}

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

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

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

.media-frame__img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}

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

.media-frame__label,
.media-frame__tag {
  position: absolute;
  z-index: 3;
  padding: 4px 8px;
  border-radius: var(--radius);
  background-color: rgba(7, 20, 38, 0.82);
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.media-frame__label {
  left: 10px;
  bottom: 10px;
}

.media-frame__tag {
  top: 10px;
  right: 10px;
  background-color: var(--orange);
  color: var(--white);
}

/* 面包屑 */
.breadcrumbs { margin-bottom: clamp(16px, 2vw, 24px); }

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

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

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  color: var(--fog);
}

.breadcrumbs__link {
  color: var(--deep);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-block: 2px;
  transition: color var(--dur-1) var(--ease),
              border-color var(--dur-1) var(--ease);
}

.breadcrumbs__link:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.breadcrumbs__current {
  color: var(--ink);
  opacity: 0.8;
}

/* ---------- 10. Reveal protocol ---------- */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-3) var(--ease),
              transform var(--dur-3) var(--ease);
}

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

/* ---------- 11. 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;
    scroll-behavior: auto !important;
  }

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

  .card:hover,
  .card:focus-within,
  .btn:active {
    transform: none;
  }
}
