:root {
  --gold: #c9a227;
  --gold-light: #e6c65c;
  --gold-dark: #a5851d;
  --navy: #1a1a2e;
  --navy-2: #16213e;
  --navy-3: #0f3460;
  --bg: #f6f7fb;
  --bg-alt: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --text: #1c1f2b;
  --text-soft: #4a4f5e;
  --text-muted: #7b8091;
  --border: rgba(26, 26, 46, 0.1);
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 8px 28px rgba(26, 26, 46, 0.1);
  --shadow-lg: 0 18px 50px rgba(26, 26, 46, 0.16);
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --header-h: 72px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --grad-banner: linear-gradient(135deg, #1a1a2e 0%, #16213e 45%, #0f3460 100%);
  --grad-gold: linear-gradient(135deg, #e6c65c 0%, #c9a227 55%, #a5851d 100%);
  --glass-blur: blur(16px) saturate(160%);
}

[data-theme="dark"] {
  --bg: #0d0f18;
  --bg-alt: #141726;
  --surface: rgba(26, 30, 46, 0.66);
  --surface-solid: #161a2b;
  --text: #eef0f7;
  --text-soft: #b9bece;
  --text-muted: #8b91a5;
  --border: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.6);
  --grad-banner: linear-gradient(135deg, #0a0c14 0%, #141a30 45%, #0f2a4a 100%);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 100% -10%, rgba(201, 162, 39, 0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(15, 52, 96, 0.1), transparent 55%);
  background-attachment: fixed;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

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

a {
  color: var(--gold-dark);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover,
a:focus-visible {
  color: var(--gold);
}

h1, h2, h3, h4 {
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  color: var(--text);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p {
  margin: 0 0 1em;
  color: var(--text-soft);
}

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
  color: var(--text-soft);
}

li {
  margin-bottom: 0.4em;
}

strong {
  color: var(--text);
}

blockquote {
  margin: 0;
}

::selection {
  background: rgba(201, 162, 39, 0.35);
  color: var(--text);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============ Header ============ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease), background-color 0.4s var(--ease);
}

#site-header.is-scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.brand-logo svg {
  transition: transform 0.5s var(--ease);
}

.brand-logo:hover svg {
  transform: rotate(-12deg) scale(1.06);
}

.brand-name {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.main-nav {
  flex: 1 1 auto;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  justify-content: center;
}

.main-nav li {
  margin: 0;
}

.main-nav a {
  display: inline-block;
  padding: 0.4rem 0.7rem;
  font-size: 0.9rem;
  color: var(--text-soft);
  border-radius: var(--radius-pill);
  position: relative;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-gold);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text);
  background: rgba(201, 162, 39, 0.1);
}

.main-nav a:hover::after {
  width: 60%;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.site-search {
  display: flex;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.15rem 0.15rem 0.15rem 0.8rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-search:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}

.site-search input {
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.85rem;
  padding: 0.35rem 0.4rem;
  width: 140px;
  outline: none;
  font-family: inherit;
}

.site-search input::placeholder {
  color: var(--text-muted);
}

.site-search button {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1a1a2e;
  background: var(--grad-gold);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  transition: filter 0.25s var(--ease), transform 0.2s var(--ease);
}

.site-search button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

#theme-toggle,
#menu-toggle {
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  transition: all 0.25s var(--ease);
}

#theme-toggle:hover,
#menu-toggle:hover {
  color: var(--text);
  border-color: var(--gold);
  transform: translateY(-1px);
}

#menu-toggle {
  display: none;
}

/* ============ Main layout ============ */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

main > section {
  background: var(--surface);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s var(--ease);
  scroll-margin-top: calc(var(--header-h) + 20px);
}

main > section:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 162, 39, 0.28);
}

main > section > h2 {
  position: relative;
  padding-bottom: 0.6rem;
  margin-bottom: 1.2rem;
}

main > section > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: var(--grad-gold);
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  margin-bottom: 1.25rem;
}

.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb li {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 0.4rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-soft);
}

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

.breadcrumb [aria-current="page"] {
  color: var(--gold-dark);
  font-weight: 600;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  color: #eef0f7;
  background: var(--grad-banner) !important;
  border: none !important;
  padding: clamp(1.75rem, 4vw, 3.25rem) !important;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.45), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto auto -50% -15%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(15, 52, 96, 0.7), transparent 65%);
  filter: blur(24px);
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
  max-width: 22ch;
}

.hero h1::first-letter {
  color: var(--gold-light);
}

.hero-lead {
  color: rgba(238, 240, 247, 0.85);
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  max-width: 72ch;
}

.hero h2 {
  color: #ffffff;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

.hero .slide p {
  color: rgba(238, 240, 247, 0.8);
}

/* Carousel */
.hero-carousel {
  position: relative;
  margin: 1.75rem 0;
  min-height: 300px;
}

.hero-carousel .slide {
  display: none;
  background: rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 1.5rem;
  gap: 1.5rem;
  align-items: center;
  grid-template-columns: 1fr;
}

.hero-carousel .slide.active {
  display: grid;
  animation: slideIn 0.6s var(--ease);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-carousel .slide svg {
  border-radius: var(--radius-sm);
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.carousel-controls {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.carousel-controls button {
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #eef0f7;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  transition: all 0.25s var(--ease);
}

.carousel-controls button:hover {
  background: var(--grad-gold);
  color: #1a1a2e;
  border-color: transparent;
  transform: translateY(-2px);
}

/* Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}

.hero-stats .stat {
  text-align: center;
  padding: 1rem 0.5rem;
  background: rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease);
}

.hero-stats .stat:hover {
  transform: translateY(-4px);
  background: rgba(201, 162, 39, 0.18);
}

.stat-num {
  display: block;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(238, 240, 247, 0.7);
  margin-top: 0.2rem;
}

/* ============ Anchor nav ============ */
.anchor-nav {
  margin-bottom: 1.75rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.anchor-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.anchor-nav li {
  margin: 0;
}

.anchor-nav a {
  display: inline-block;
  font-size: 0.82rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  color: var(--text-soft);
  border: 1px solid transparent;
  transition: all 0.25s var(--ease);
}

.anchor-nav a:hover {
  color: #1a1a2e;
  background: var(--grad-gold);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(201, 162, 39, 0.3);
}

/* ============ Articles / news cards ============ */
#news article,
#articles article {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#news article:hover,
#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 162, 39, 0.4);
}

#news article h3,
#articles article h3 {
  margin-bottom: 0.35rem;
}

#news article time,
#articles article time {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--gold-dark);
  background: rgba(201, 162, 39, 0.12);
  padding: 0.1rem 0.6rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.5rem;
}

#news article a,
#articles article a {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-dark);
  padding: 0.25rem 0;
  position: relative;
}

#news article a::after,
#articles article a::after {
  content: "→";
  margin-left: 0.25rem;
  transition: margin-left 0.25s var(--ease);
}

#news article a:hover::after,
#articles article a:hover::after {
  margin-left: 0.5rem;
}

/* ============ Reviews ============ */
#reviews blockquote {
  position: relative;
  background: var(--bg-alt);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem 1rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

#reviews blockquote:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

#reviews blockquote p {
  font-style: italic;
  color: var(--text-soft);
  margin-bottom: 0.6rem;
}

#reviews blockquote footer {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-dark);
  text-align: right;
}

/* ============ FAQ ============ */
#faq details {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1.2rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#faq details[open] {
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: var(--shadow-sm);
}

#faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  position: relative;
  padding-right: 1.75rem;
  transition: color 0.25s var(--ease);
}

#faq summary::-webkit-details-marker {
  display: none;
}

#faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--gold-dark);
  transition: transform 0.3s var(--ease);
}

#faq details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}

#faq summary:hover {
  color: var(--gold-dark);
}

#faq details p {
  margin: 0.75rem 0 0.25rem;
  animation: fadeDown 0.35s var(--ease);
}

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

/* ============ Contact / sitemap / links ============ */
#contact ul,
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem;
}

#contact ul li {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
  margin: 0;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

#contact ul li:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

#sitemap ul li,
#links ul li {
  margin: 0;
}

#sitemap a,
#links a {
  display: block;
  font-size: 0.9rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  transition: all 0.25s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  color: #1a1a2e;
  background: var(--grad-gold);
  border-color: transparent;
  transform: translateX(4px);
}

/* ============ Footer ============ */
footer {
  background: var(--grad-banner);
  color: rgba(238, 240, 247, 0.8);
  padding: clamp(2rem, 4vw, 3.5rem) 1.25rem 1.5rem;
  margin-top: 1rem;
}

footer > section {
  max-width: var(--maxw);
  margin: 0 auto 1.75rem;
}

footer h2 {
  color: #ffffff;
  font-size: 1.15rem;
  position: relative;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

footer h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad-gold);
}

footer h3 {
  color: var(--gold-light);
  font-size: 0.95rem;
  margin: 1rem 0 0.4rem;
}

footer p {
  color: rgba(238, 240, 247, 0.72);
  font-size: 0.9rem;
  max-width: 78ch;
}

footer a {
  color: var(--gold-light);
}

footer a:hover {
  color: #ffffff;
}

footer .copyright {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: rgba(238, 240, 247, 0.55);
  text-align: center;
}

/* ============ Back to top ============ */
#back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1a1a2e;
  background: var(--grad-gold);
  border: none;
  padding: 0.65rem 1.05rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s var(--ease), filter 0.25s var(--ease);
}

#back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  filter: brightness(1.08);
  transform: translateY(-3px);
}

/* ============ Scroll reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Responsive ============ */
@media (min-width: 720px) {
  .hero-carousel .slide {
    grid-template-columns: 1.1fr 1fr;
  }
}

@media (max-width: 1024px) {
  .main-nav ul {
    justify-content: flex-start;
  }

  .site-search input {
    width: 110px;
  }
}

@media (max-width: 860px) {
  .header-inner {
    gap: 0.6rem;
  }

  .main-nav {
    order: 3;
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease);
  }

  .main-nav.is-open {
    max-height: 520px;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.5rem 0 0.25rem;
  }

  .main-nav a {
    display: block;
    padding: 0.55rem 0.75rem;
    font-size: 0.95rem;
  }

  .main-nav a::after {
    display: none;
  }

  #menu-toggle {
    display: inline-block;
  }

  .header-tools {
    margin-left: auto;
  }

  .site-search {
    display: none;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  main {
    padding: 1rem 0.85rem 3rem;
  }

  main > section {
    padding: 1.25rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
  }

  .hero {
    padding: 1.35rem 1rem !important;
  }

  .hero-carousel {
    min-height: 0;
  }

  .hero-carousel .slide {
    padding: 1.15rem;
  }

  .hero-stats {
    gap: 0.6rem;
  }

  .hero-stats .stat {
    padding: 0.75rem 0.35rem;
  }

  .carousel-controls button {
    flex: 1;
  }

  #contact ul,
  #sitemap ul,
  #links ul {
    grid-template-columns: 1fr;
  }

  #back-to-top {
    right: 0.85rem;
    bottom: 0.85rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.78rem;
  }

  footer {
    padding: 1.75rem 0.85rem 1.25rem;
  }
}

/* ============ Motion & a11y ============ */
@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 print {
  #site-header,
  #back-to-top,
  .anchor-nav,
  .carousel-controls,
  .header-tools {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  main > section {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }
}