/* ==========================================================================
   拉菲娱乐会馆 · 共享站点样式
   文件位置：/assets/site.css
   说明：reset、变量、中文排版、页头页脚、按钮、面包屑、容器、网格、基础组件
   ========================================================================== */

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

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

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

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

a { color: inherit; }

button { font: inherit; color: inherit; }

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

/* ---------- 02 设计变量 ---------- */
:root {
  /* 品牌色 */
  --wine: #4A0E1E;
  --wine-2: #6B1428;
  --wine-3: #8C1F35;
  --gold: #C9A227;
  --gold-soft: #E3C56B;
  --gold-pale: #F2E3B6;
  --ink: #14100F;
  --char: #2A2320;
  --cream: #F5EFE6;
  --paper: #EFE6D8;
  --celadon: #6E9C8F;
  --celadon-deep: #2F6E5E;

  /* 字体族 */
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* 字号 */
  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --display-lg: clamp(2.4rem, 6vw, 5.5rem);
  --display-md: clamp(1.6rem, 3vw, 2.6rem);

  /* 间距（8px 基准） */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;

  /* 布局 */
  --content-max: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --measure: 68ch;

  /* 边界与阴影 */
  --hair: 1px solid rgba(201, 162, 39, 0.28);
  --hair-soft: 1px solid rgba(201, 162, 39, 0.16);
  --hair-light: 1px solid rgba(20, 16, 15, 0.12);
  --shadow-card: 0 1px 0 rgba(20, 16, 15, 0.04), 0 18px 40px -32px rgba(20, 16, 15, 0.55);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 03 基础与中文排版 ---------- */
html { scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1 { font-size: var(--display-lg); font-weight: 300; }
h2 { font-size: var(--display-md); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }

p { text-wrap: pretty; }

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

#main-content:focus { outline: none; }

/* ---------- 04 布局容器与网格 ---------- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}

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

.section { padding-block: clamp(56px, 9vw, 120px); }
.section--dark { background-color: var(--wine); color: var(--cream); }
.section--ink { background-color: var(--ink); color: var(--cream); }
.section--paper { background-color: var(--paper); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2);
  padding-bottom: var(--space-2);
  border-bottom: var(--hair);
  margin-bottom: clamp(24px, 4vw, 48px);
}

.section__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--display-md);
  line-height: 1.2;
}

.section__num {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.prose {
  max-width: var(--measure);
  color: var(--ink);
}

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

.prose h2,
.prose h3 { margin-top: 1.8em; }

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

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

.prose blockquote {
  border-left: 2px solid var(--gold);
  padding-left: var(--space-2);
  color: var(--wine-2);
  font-family: var(--font-display);
}

@media (min-width: 900px) {
  .prose p { text-align: justify; text-justify: inter-ideograph; }
}

/* ---------- 05 辅助元素 ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wine-3);
}

.section--dark .eyebrow,
.section--ink .eyebrow { color: var(--gold); }

.rule {
  height: 1px;
  border: 0;
  background-image: linear-gradient(90deg, var(--gold), rgba(201, 162, 39, 0));
}

/* ---------- 06 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.68rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn--gold {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.btn--gold:hover {
  background-color: var(--gold-soft);
  border-color: var(--gold-soft);
}

.btn--ghost {
  background-color: transparent;
  border-color: rgba(227, 197, 107, 0.5);
  color: var(--gold-pale);
}

.btn--ghost:hover {
  background-color: rgba(201, 162, 39, 0.1);
  border-color: var(--gold);
  color: var(--gold-soft);
}

/* ---------- 07 图片容器（供页面阶段放置占位） ---------- */
.frame {
  position: relative;
  display: block;
  overflow: hidden;
  background-color: var(--char);
  background-image: repeating-linear-gradient(45deg, rgba(201, 162, 39, 0.07) 0 1px, transparent 1px 12px);
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: 2px;
  color: var(--gold-pale);
}

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

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

.frame__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--gold-pale);
  background-image: linear-gradient(180deg, rgba(20, 16, 15, 0), rgba(20, 16, 15, 0.88));
}

@media (prefers-reduced-motion: no-preference) {
  .frame > img { transition: transform 0.6s var(--ease); }
  .frame:hover > img { transform: scale(1.03); }
}

/* ---------- 08 章节索引链接 ---------- */
.index-link {
  display: block;
  padding: 0.45rem 0 0.45rem 0.85rem;
  border-left: 2px solid rgba(201, 162, 39, 0.22);
  font-size: 0.875rem;
  line-height: 1.5;
  text-decoration: none;
  color: rgba(20, 16, 15, 0.72);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.index-link:hover {
  color: var(--wine);
  border-left-color: var(--gold-soft);
}

.index-link[data-state="current"] {
  color: var(--wine);
  border-left-color: var(--gold);
  font-weight: 500;
}

.section--dark .index-link,
.section--ink .index-link { color: rgba(245, 239, 230, 0.72); }

.section--dark .index-link[data-state="current"],
.section--ink .index-link[data-state="current"] { color: var(--gold-pale); }

/* ---------- 09 折叠面板 ---------- */
.disclosure {
  border: var(--hair);
  border-radius: 2px;
  background-color: var(--paper);
  overflow: hidden;
}

.disclosure + .disclosure { margin-top: -1px; }

.disclosure__trigger {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  width: 100%;
  padding: 1rem 1.25rem;
  border: 0;
  background-color: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.disclosure__trigger:hover { background-color: rgba(201, 162, 39, 0.09); }

.disclosure__trigger[aria-expanded="true"] { color: var(--wine); }

.disclosure__sign {
  flex: none;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--wine-3);
}

.disclosure__panel {
  padding: 0 1.25rem 1.25rem;
  color: var(--char);
}

.disclosure__panel[hidden] { display: none; }

/* ---------- 10 面包屑 ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: rgba(20, 16, 15, 0.6);
}

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

.breadcrumb__item { display: inline-flex; align-items: center; gap: 0.5rem; }

.breadcrumb a {
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 162, 39, 0.4);
  color: rgba(20, 16, 15, 0.72);
}

.breadcrumb a:hover { color: var(--wine); border-bottom-color: var(--gold); }

.breadcrumb__sep { color: var(--gold); }

.breadcrumb [aria-current="page"] { color: var(--wine-2); font-weight: 500; }

.section--dark .breadcrumb,
.section--dark .breadcrumb a { color: rgba(245, 239, 230, 0.7); }

/* ---------- 11 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -5rem;
  left: var(--space-2);
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background-color: var(--gold);
  color: var(--ink);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus { top: var(--space-2); }

/* ---------- 12 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  width: 100%;
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background-color: rgba(201, 162, 39, 0.14);
  pointer-events: none;
  z-index: 2;
}

.scroll-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background-image: linear-gradient(90deg, var(--wine-3), var(--gold) 60%, var(--gold-soft));
}

.header-meta {
  background-color: var(--ink);
  color: rgba(242, 227, 182, 0.8);
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
}

.header-meta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 0.4rem var(--gutter);
}

.header-meta__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.header-meta__hours { color: rgba(242, 227, 182, 0.62); }

.status-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--celadon);
  box-shadow: 0 0 0 3px rgba(110, 156, 143, 0.24);
}

@media (prefers-reduced-motion: no-preference) {
  .status-dot { animation: dot-breathe 3.6s ease-in-out infinite; }
}

@keyframes dot-breathe {
  0%, 100% { box-shadow: 0 0 0 3px rgba(110, 156, 143, 0.24); }
  50% { box-shadow: 0 0 0 5px rgba(110, 156, 143, 0.1); }
}

.header-bar {
  position: relative;
  background-color: var(--wine);
  border-bottom: 1px solid rgba(201, 162, 39, 0.32);
}

.header-bar__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 0.55rem var(--gutter);
  min-height: 62px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
  text-decoration: none;
  color: var(--cream);
}

.brand__mark {
  flex: none;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(201, 162, 39, 0.45);
  background-image:
    linear-gradient(var(--gold), var(--gold)),
    linear-gradient(var(--gold-soft), var(--gold-soft)),
    linear-gradient(var(--gold), var(--gold)),
    linear-gradient(var(--gold-soft), var(--gold-soft));
  background-repeat: no-repeat;
  background-size: 2px 7px, 2px 14px, 2px 20px, 2px 11px;
  background-position: 5px 100%, 10px 100%, 15px 100%, 20px 100%;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cream);
}

.brand__tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  color: rgba(242, 227, 182, 0.66);
}

/* 导航 */
.nav { margin-left: auto; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.55rem 0.7rem 0.65rem;
  border-radius: 2px;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: rgba(245, 239, 230, 0.76);
  text-decoration: none;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav__index {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(201, 162, 39, 0.55);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.3rem;
  height: 1px;
  background-color: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s var(--ease);
}

.nav__link:hover { color: var(--gold-pale); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__link[aria-current="page"] { color: var(--gold-soft); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); background-color: var(--gold-soft); }
.nav__link[aria-current="page"] .nav__index { color: var(--gold-soft); }

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 2px;
  background-color: transparent;
  color: var(--gold-pale);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

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

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 14px;
}

.nav-toggle__bars span {
  display: block;
  height: 1px;
  background-color: currentColor;
}

.nav-toggle__bars span:nth-child(2) { width: 10px; }

.nav-toggle[aria-expanded="true"] { border-color: var(--gold); color: var(--gold-soft); }

/* 行动按钮 */
.header-cta { flex: none; margin-left: 0.25rem; }

/* ---------- 13 页脚 ---------- */
.site-footer {
  position: relative;
  background-color: var(--wine);
  background-image:
    repeating-linear-gradient(90deg, rgba(227, 197, 107, 0.08) 0 1px, transparent 1px 80px),
    radial-gradient(120% 90% at 12% 0%, rgba(140, 31, 53, 0.55), rgba(74, 14, 30, 0) 62%);
  border-top: 1px solid rgba(227, 197, 107, 0.32);
  color: var(--cream);
  padding-top: clamp(48px, 7vw, 88px);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-bottom: clamp(32px, 5vw, 64px);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-pale);
}

.footer-brand__tag {
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: rgba(227, 197, 107, 0.7);
}

.footer-brand__note {
  margin-top: var(--space-2);
  max-width: 34ch;
  font-size: var(--text-sm);
  line-height: 1.8;
  color: rgba(245, 239, 230, 0.66);
}

.footer-col__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.65rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid rgba(227, 197, 107, 0.25);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.footer-col__index {
  font-size: 0.625rem;
  color: rgba(227, 197, 107, 0.45);
}

.footer-col__list {
  display: grid;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link {
  font-size: 0.875rem;
  color: rgba(245, 239, 230, 0.78);
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color 0.2s var(--ease);
}

.footer-link:hover {
  color: var(--gold-soft);
  text-decoration: underline;
  text-decoration-color: rgba(201, 162, 39, 0.7);
}

.footer-legal {
  display: grid;
  gap: 0.6rem;
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 1.75rem var(--gutter) 2.5rem;
  border-top: 1px solid rgba(227, 197, 107, 0.2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: rgba(245, 239, 230, 0.62);
}

.footer-legal a {
  color: rgba(242, 227, 182, 0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 162, 39, 0.4);
}

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

/* 返回顶部 */
.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.95rem;
  border: 1px solid rgba(201, 162, 39, 0.5);
  border-radius: 2px;
  background-color: rgba(20, 16, 15, 0.88);
  color: var(--gold-pale);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s, background-color 0.2s var(--ease);
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background-color: var(--wine-2);
  color: var(--gold-soft);
}

/* ---------- 14 平板与手机 ---------- */
@media (max-width: 1024px) {
  .header-cta { display: none; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    padding: 0.35rem var(--gutter) 1rem;
    max-height: min(72vh, 520px);
    overflow-y: auto;
    background-color: var(--wine-2);
    border-bottom: 1px solid rgba(227, 197, 107, 0.3);
    box-shadow: 0 24px 44px -24px rgba(20, 16, 15, 0.9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s;
  }

  .nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    display: flex;
    width: 100%;
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid rgba(227, 197, 107, 0.14);
  }

  .nav__link::after { display: none; }

  .nav__link[aria-current="page"] {
    padding-left: 0.75rem;
    background-color: rgba(201, 162, 39, 0.09);
  }

  .nav__link[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65rem;
    bottom: 0.65rem;
    width: 2px;
    background-color: var(--gold);
  }

  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

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

@media (max-width: 620px) {
  .header-meta__inner { justify-content: flex-start; }
  .header-meta__hours { display: none; }
  .brand__tag { letter-spacing: 0.16em; }
  .header-bar__inner { min-height: 56px; }
}

@media (max-width: 559px) {
  .grid--12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: 1fr; }
  .footer-brand__note { max-width: none; }
  .footer-legal { font-size: 0.6875rem; }
  .btn { padding: 0.62rem 1.05rem; font-size: 0.8125rem; }
}

/* ---------- 15 焦点与动效偏好 ---------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 1px;
}

.section--dark :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--gold-soft);
}

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

  .to-top { transform: none; }
  .to-top[data-visible] { transform: none; }
}
