/* =========================================================
   SMP Project Page — Self-contained styles
   Design language: academic, clean, confident.
   Typography: system UI; Inter/Segoe/SF Pro. No CDNs.
   Color: warm off-white paper + deep ink + indigo accent.
   ========================================================= */

:root {
  /* Palette */
  --bg:            #fbfaf7;
  --bg-elev:       #ffffff;
  --bg-soft:       #f3f1ec;
  --ink:           #14161a;
  --ink-soft:      #3a3f48;
  --ink-muted:     #666d78;
  --ink-faint:     #9098a3;
  --rule:          #e4e0d7;
  --rule-strong:   #d5cfc1;

  --accent:        #3b4cf0;       /* indigo */
  --accent-deep:   #2a34b0;
  --accent-tint:   #eceefc;
  --accent-glow:   rgba(59, 76, 240, .16);
  --highlight:     #f6a623;
  --grad-accent:   linear-gradient(135deg, #3b4cf0 0%, #7b5cff 100%);

  /* Layout */
  --maxw:          1180px;
  --maxw-prose:    760px;
  --radius:        14px;
  --radius-lg:     22px;
  --shadow-sm:     0 1px 2px rgba(16,18,22,.05), 0 2px 6px rgba(16,18,22,.04);
  --shadow-md:     0 6px 18px rgba(16,18,22,.08), 0 2px 6px rgba(16,18,22,.05);
  --shadow-lg:     0 24px 60px rgba(16,18,22,.18), 0 6px 18px rgba(16,18,22,.10);

  /* Type */
  --sans: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --serif: "Newsreader", "Source Serif 4", "Iowan Old Style", "Palatino Linotype",
           "Georgia", serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono",
          monospace;
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "ss01", "cv11", "kern";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }

code, pre { font-family: var(--mono); }
code { font-size: .92em; background: var(--bg-soft); padding: .08em .35em; border-radius: 4px; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -.012em; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
  background: #111;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 101%;
  height: 101%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
  filter: saturate(1.02);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 80% at 50% 90%, rgba(10,12,24,.82) 0%, rgba(10,12,24,.55) 45%, rgba(10,12,24,.15) 75%, rgba(10,12,24,0) 100%),
    linear-gradient(180deg, rgba(10,12,24,.50) 0%, rgba(10,12,24,.05) 35%, rgba(10,12,24,.10) 65%, rgba(10,12,24,.70) 100%);
}
.hero-scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 40% at 20% 30%, rgba(123, 92, 255, .18) 0%, transparent 60%),
    radial-gradient(50% 40% at 85% 70%, rgba(59, 76, 240, .16) 0%, transparent 60%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 10rem 1.25rem 7rem;
  max-width: 960px;
}

.eyebrow {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #fff;
  padding: .44rem .95rem;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  margin: 0 0 1.6rem;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 14px rgba(0,0,0,.28);
}

.title {
  font-family: var(--sans);
  font-size: clamp(4rem, 14vw, 9.5rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.055em;
  margin: 0 0 .65rem;
  color: #fff;
  background: linear-gradient(180deg, #ffffff 0%, #d8dcff 90%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 30px rgba(0,0,0,.35));
}

.subtitle {
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255,255,255,.95);
  margin: 0 auto 1.6rem;
  max-width: 32ch;
  text-wrap: balance;
  text-shadow: 0 1px 12px rgba(0,0,0,.25);
}

.tagline {
  font-size: 1.02rem;
  color: rgba(255,255,255,.84);
  max-width: 58ch;
  margin: 0 auto;
  line-height: 1.55;
  text-shadow: 0 1px 8px rgba(0,0,0,.3);
}
.tagline strong { color: #fff; font-weight: 600; }

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(255,255,255,.05);
  animation: hero-bounce 2.4s ease-in-out infinite;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.hero-scroll:hover {
  color: #fff;
  border-color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.12);
  text-decoration: none;
}
@keyframes hero-bounce {
  0%, 100% { transform: translate(-50%, 0); opacity: .8; }
  50%      { transform: translate(-50%, 6px); opacity: 1; }
}

/* ============================================================
   SECTION PRIMITIVES
   ============================================================ */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 6rem 1.5rem;
}

.section--prose { max-width: var(--maxw-prose); }
.section--prose p { font-size: 1.08rem; color: var(--ink-soft); margin: 0 0 1.1em; }
.section--prose p strong { color: var(--ink); }

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 1.1rem;
  color: var(--ink);
  position: relative;
}
.section--prose > .section-title::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  border-radius: 2px;
  background: var(--grad-accent);
  margin-top: .65rem;
}

.section-lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 68ch;
  margin: 0 0 2.25rem;
}
.section:not(.section--prose) > .section-lede {
  max-width: none;
}

/* ============================================================
   AUTHORS & LINKS
   ============================================================ */
.section--meta {
  text-align: center;
  padding-top: 3.8rem;
  padding-bottom: 3.2rem;
}

.authors {
  list-style: none;
  padding: 0;
  margin: 0 0 .8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .45rem 1.35rem;
  font-size: 1.05rem;
  color: var(--ink);
}
.authors .name {
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
a.name { cursor: pointer; }
a.name:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}
.authors sup {
  color: var(--accent);
  margin-left: 2px;
  font-weight: 600;
  font-size: .68em;
  line-height: 0;
  position: relative;
  top: -.55em;
  vertical-align: baseline;
}

.affiliations {
  list-style: none;
  padding: 0;
  margin: 0 0 .4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .3rem 1rem;
  font-size: .92rem;
  color: var(--ink-muted);
}
.affiliations sup { color: var(--accent); margin-right: 2px; }

.joint-note {
  text-align: center;
  font-size: .85rem;
  color: var(--ink-muted);
  margin: 0 0 2.2rem;
}
.joint-note sup { color: var(--accent); }

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .7rem 1.15rem;
  background: var(--bg-elev);
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 500;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-md);
}
.btn--primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn--primary:hover {
  background: #000;
  color: #fff;
  border-color: #000;
  box-shadow: 0 10px 24px rgba(16,18,22,.22), 0 3px 8px rgba(16,18,22,.14);
}
.btn--disabled {
  color: var(--ink-faint);
  background: var(--bg-soft);
  border-color: var(--rule);
  cursor: not-allowed;
  box-shadow: none;
}
.btn--disabled:hover {
  transform: none;
  box-shadow: none;
  color: var(--ink-faint);
  border-color: var(--rule);
}
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: .9;
}
.btn-icon svg { display: block; }

/* ============================================================
   TL;DR
   ============================================================ */
.section--tldr {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.tldr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.tldr-card {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tldr-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-accent);
  opacity: 0;
  transition: opacity .25s ease;
}
.tldr-card:hover {
  transform: translateY(-4px);
  border-color: var(--rule-strong);
  box-shadow: var(--shadow-md);
}
.tldr-card:hover::before { opacity: 1; }
.tldr-num {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: .9rem;
  display: inline-block;
  padding: .2rem .55rem;
  background: var(--accent-tint);
  border-radius: 999px;
}
.tldr-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 .55rem;
}
.tldr-card p {
  font-size: .98rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.6;
}
.tldr-card em { color: var(--ink); font-style: italic; }
.tldr-card strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   METHOD
   ============================================================ */
.section--method .pillars {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.pillar {
  padding: 1.5rem 1.4rem;
  border-left: 3px solid var(--accent);
  background: linear-gradient(180deg, var(--accent-tint) 0%, transparent 100%);
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pillar:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--accent-glow);
}
.pillar-label {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 700;
  margin-bottom: .5rem;
}
.pillar p {
  font-size: .98rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}
.pillar code { background: rgba(255,255,255,.7); font-size: .85em; }

/* ============================================================
   RESULT SECTIONS
   Each result section is a full-bleed band; content stays centered.
   ============================================================ */
.section--result {
  position: relative;
  max-width: none;
  padding: 6rem 1.5rem;
}

.section--result > * {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

/* Alternating subtle banded backgrounds for visual rhythm.
   Using explicit helper class on every-other result section. */
.section--result.section--band {
  background: var(--bg-soft);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.result-head {
  text-align: left;
  margin-bottom: 2.25rem;
  max-width: var(--maxw-prose);
}
.result-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-tint);
  padding: .35rem .8rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
  font-weight: 600;
  border: 1px solid rgba(59, 76, 240, .14);
}
.result-head .section-title { margin-bottom: .9rem; }
.result-head .section-lede { margin-bottom: 0; }

.section--robot {
  position: relative;
  background: radial-gradient(80% 60% at 80% 0%, rgba(123, 92, 255, .12) 0%, transparent 60%),
              radial-gradient(60% 60% at 10% 100%, rgba(59, 76, 240, .10) 0%, transparent 60%),
              linear-gradient(180deg, #0f1220 0%, #171b30 100%) !important;
  color: #e7eaf3;
}
.section--robot .section-title { color: #fff; }
.section--robot .section-lede { color: #b9bfd0; }
.section--robot .result-tag {
  background: rgba(255,255,255,.08);
  color: #9db0ff;
  border-color: rgba(157, 176, 255, .18);
}
.section--robot .figure {
  background: #12162a;
  border-color: rgba(255,255,255,.08);
}
.section--robot .figure figcaption {
  color: #9aa2b5;
  background: #12162a;
  border-top-color: rgba(255,255,255,.08);
}
.section--robot .figure figcaption strong { color: #fff; }

/* ============================================================
   FIGURES & VIDEO CARDS
   ============================================================ */
.figure {
  margin: 0 auto;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform .25s ease, box-shadow .25s ease;
}
.figure:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px rgba(16,18,22,.12), 0 6px 16px rgba(16,18,22,.08);
}
/* Feature videos: keep a consistent, slightly narrower max width
   so hero-sized content doesn't dominate the layout. */
.figure--wide {
  max-width: 960px;
  width: 100%;
}

.figure .video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0f1115;
}

.figure figcaption {
  padding: 1.1rem 1.4rem;
  font-size: .95rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--rule);
  background: var(--bg-elev);
  line-height: 1.55;
}
.figure figcaption strong { color: var(--ink); font-weight: 600; }

/* Card grid */
.grid {
  display: grid;
  gap: 1.4rem;
  margin-top: 2rem;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--rule-strong);
  box-shadow: 0 18px 40px rgba(16,18,22,.10), 0 4px 12px rgba(16,18,22,.06);
}

.card-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0f1115;
  display: block;
}
.card-body {
  padding: 1.1rem 1.25rem 1.3rem;
}
.card-body h3 {
  font-size: 1.12rem;
  font-weight: 600;
  margin: 0 0 .4rem;
  letter-spacing: -.01em;
}
.card-body p {
  font-size: .93rem;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.55;
}
.card-body em { color: var(--ink-soft); font-style: italic; }

/* ============================================================
   VIDEO EMBED
   ============================================================ */
.video-tabs { margin-top: 1.5rem; }

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--rule);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Side-by-side video + paper preview */
.video-paper-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  column-gap: 1.75rem;
  row-gap: .75rem;
  align-items: stretch;
}
.vp-frame {
  position: relative;
  display: block;
  width: 100%;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--rule);
  min-width: 0;
}
.vp-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.vp-frame--video { aspect-ratio: 16 / 9; }
.vp-frame--paper {
  background: #f5f5f7;
  transition: transform .25s ease, box-shadow .25s ease;
}
.vp-frame--paper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
a.vp-frame--paper:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl, 0 18px 40px -12px rgba(0,0,0,.25));
}
.vp-caption {
  margin: 0;
  font-size: .9rem;
  color: var(--ink-muted);
  text-align: center;
}
.vp-caption a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
}
.vp-caption a:hover { border-bottom-color: var(--accent); }
.vp-caption {
  margin-top: .75rem;
  font-size: .9rem;
  color: var(--ink-muted);
  text-align: center;
}
.vp-caption a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
}
.vp-caption a:hover { border-bottom-color: var(--accent); }

@media (max-width: 900px) {
  .video-paper-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

#full-video.section--prose { max-width: var(--maxw); }

.local-fallback {
  margin-top: 1.25rem;
  font-size: .92rem;
  color: var(--ink-muted);
}
.local-fallback summary {
  cursor: pointer;
  padding: .6rem .9rem;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 10px;
  list-style: none;
  display: inline-block;
  transition: background .15s ease;
}
.local-fallback summary::-webkit-details-marker { display: none; }
.local-fallback summary:hover { background: var(--rule); }
.local-fallback .video {
  margin-top: 1rem;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  background: #000;
}

/* ============================================================
   BIBTEX
   ============================================================ */
.bibtex {
  position: relative;
  background: linear-gradient(180deg, #12141a 0%, #0d0f15 100%);
  color: #dbe1ef;
  padding: 1.6rem 1.8rem;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: .88rem;
  line-height: 1.65;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,.06);
}
.bibtex::before {
  content: "BibTeX";
  position: absolute;
  top: .85rem;
  right: 1rem;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
}
.bibtex code { background: transparent; padding: 0; color: inherit; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--rule);
  background: var(--bg-soft);
  padding: 2.5rem 1.5rem;
  margin-top: 4rem;
  font-size: .92rem;
  color: var(--ink-muted);
  text-align: center;
}
.footer a { color: var(--accent); }
.footer .dnerf { font-variant: small-caps; }
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}
.footer-credit {
  color: var(--ink-muted);
  font-size: .92rem;
  margin: 0 0 .4rem;
}
.footer-credit--small {
  font-size: .84rem;
  color: var(--ink-faint);
  margin: 0;
}
.footer code { background: transparent; color: var(--ink-soft); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .tldr-grid,
  .section--method .pillars,
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .section,
  .section--result { padding: 4.5rem 1.25rem; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { min-height: 100vh; }
  .hero-content { padding: 7rem 1.1rem 5rem; }
  .tldr-grid,
  .section--method .pillars,
  .grid--3 { grid-template-columns: 1fr; }
  .authors { gap: .3rem .85rem; font-size: .98rem; }
  .affiliations { font-size: .85rem; }
  .section,
  .section--result { padding: 3.8rem 1.1rem; }
  .section-title { font-size: 1.55rem; }
  .section-lede { font-size: 1.02rem; }
  .figure figcaption { padding: .9rem 1.1rem; font-size: .9rem; }
  .bibtex { font-size: .78rem; padding: 1.1rem 1.2rem; }
}

/* ============================================================
   Print (nice-to-have)
   ============================================================ */
@media print {
  .hero { min-height: auto; }
  .hero-video, .hero-scrim, .hero-scroll { display: none; }
  .hero { color: var(--ink); background: var(--bg); }
  .title { color: var(--ink); text-shadow: none; }
  .subtitle, .tagline { color: var(--ink-soft); text-shadow: none; }
  .section--robot { background: var(--bg-soft) !important; color: var(--ink); }
  .card, .figure, .tldr-card { break-inside: avoid; }
  video { display: none; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
