/* ==================================================================
   云体育入口 · CLOUD SPORTS ENTRANCE
   /assets/site.css
   共享层：重置、变量、基础排版、头部页脚、通用组件
================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
[hidden] { display: none !important; }

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

/* ---------- Design Tokens ---------- */
:root {
  --color-primary: #0A192F;
  --color-primary-light: #172A45;
  --color-accent: #FF6B35;
  --color-paper: #F5F0E6;
  --color-ink: #1A1A2E;
  --color-text-light: #E0E0E0;
  --color-border: #C0C0C0;
  --color-success: #2ECC71;
  --color-warning: #F1C40F;
  --color-error: #E74C3C;

  --font-body: 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Heiti SC', sans-serif;
  --font-display: 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-mono: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;

  --header-height: 60px;
  --container-width: 1280px;
  --radius: 4px;
  --section-pad: clamp(4rem, 9vw, 6.5rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --link-color: var(--color-accent);
  --link-color-hover: #FF8A5C;
}

.section--paper {
  --link-color: #C4512A;
  --link-color-hover: #8F2E10;
}

/* ---------- Base Typography ---------- */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-light);
  background: var(--color-primary);
  padding-top: var(--header-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--link-color-hover); }

#main-content {
  outline: none;
  scroll-margin-top: var(--header-height);
}

.site-main {
  min-height: 70vh;
  outline: none;
}

.display-heading {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 7.5vw, 5.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.chapter-label {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.chapter-label::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}
.section--paper .chapter-label { color: #C4512A; }
.section--paper .chapter-label::before { background: #C4512A; }

.section-title {
  margin-top: 0.625rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.section-desc {
  margin-top: 0.875rem;
  max-width: 42rem;
  font-size: 1.0625rem;
  line-height: 1.85;
  opacity: 0.82;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.section {
  position: relative;
  padding: var(--section-pad) 0;
}
.section--dark { background: var(--color-primary); color: var(--color-text-light); }
.section--deep { background: var(--color-primary-light); color: var(--color-text-light); }
.section--paper { background: var(--color-paper); color: var(--color-ink); }
.section--ink { background: var(--color-ink); color: var(--color-paper); }

.section-header { margin-bottom: clamp(2rem, 4vw, 3rem); }

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-12 { grid-column: 1 / -1; }

@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .span-3, .span-5, .span-7, .span-9 { grid-column: span 6; }
}

@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .span-3, .span-4, .span-5, .span-6, .span-7, .span-8, .span-9, .span-12 { grid-column: 1 / -1; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.75rem 1.375rem;
  border: 1px solid transparent;
  border-radius: 4px 4px 4px 12px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  transition: transform 0.22s var(--ease-out), background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--accent {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-ink);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}
.btn--accent:hover {
  background: #FF7B4D;
  border-color: #FF7B4D;
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}
.btn--ghost {
  background: transparent;
  border-color: rgba(224, 224, 224, 0.4);
  color: var(--color-text-light);
}
.btn--ghost:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn--paper {
  background: var(--color-paper);
  border-color: var(--color-paper);
  color: var(--color-ink);
}
.btn--paper:hover { background: #ECE3D2; border-color: #ECE3D2; }
.btn--small {
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  border-radius: 3px 3px 3px 8px;
}
.btn--block { width: 100%; }

/* ---------- Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  height: 1.75rem;
  padding: 0 0.75rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.tag--accent { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-ink); }
.tag--outline { color: var(--color-text-light); }
.tag--paper { color: var(--color-ink); }
.tag--success { color: var(--color-success); background: rgba(46, 204, 113, 0.1); }
.tag--warning { color: var(--color-warning); background: rgba(241, 196, 15, 0.1); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { margin-bottom: 1.5rem; font-size: 0.875rem; }
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.625rem;
  color: rgba(224, 224, 224, 0.62);
}
.breadcrumb__item { display: inline-flex; align-items: center; gap: 0.625rem; }
.breadcrumb__item + .breadcrumb__item::before { content: "/"; color: rgba(224, 224, 224, 0.3); }
.breadcrumb__link { color: var(--color-text-light); transition: color 0.2s ease; }
.breadcrumb__link:hover { color: var(--color-accent); }
.breadcrumb__current { color: var(--color-accent); }
.breadcrumb--paper { color: rgba(26, 26, 46, 0.6); }
.breadcrumb--paper .breadcrumb__link { color: var(--color-ink); }
.breadcrumb--paper .breadcrumb__link:hover { color: #C4512A; }
.breadcrumb--paper .breadcrumb__current { color: #C4512A; }
.breadcrumb--paper .breadcrumb__item + .breadcrumb__item::before { color: rgba(26, 26, 46, 0.3); }

/* ---------- Rich Text Content ---------- */
.content { font-size: 1rem; line-height: 1.85; }
.content p { margin-bottom: 1.25rem; }
.content h1, .content h2, .content h3, .content h4, .content h5, .content h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.3;
  margin: 2rem 0 0.75rem;
}
.content h1 { font-size: 2rem; }
.content h2 { font-size: 1.5rem; }
.content h3 { font-size: 1.25rem; }
.content h4 { font-size: 1.125rem; }
.content ul, .content ol { margin: 0 0 1.25rem 1.375rem; }
.content ul { list-style: disc; }
.content ol { list-style: decimal; }
.content li { margin-bottom: 0.375rem; }
.content li > ul, .content li > ol { margin-bottom: 0.25rem; }
.content a { text-decoration: underline; text-underline-offset: 3px; }
.content a:hover { color: var(--link-color-hover); text-decoration-color: var(--link-color-hover); }
.content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--color-accent);
  background: rgba(224, 224, 224, 0.06);
}
.content figure { margin: 1.5rem 0; }
.content figcaption { font-size: 0.8125rem; color: rgba(224, 224, 224, 0.55); margin-top: 0.5rem; }
.content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9375rem; }
.content th, .content td { border: 1px solid rgba(224, 224, 224, 0.2); padding: 0.625rem 0.875rem; text-align: left; }
.content th { background: rgba(255, 107, 53, 0.12); font-weight: 600; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--color-primary-light);
  border: 1px solid rgba(224, 224, 224, 0.14);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--color-text-light);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: 0 14px 28px rgba(10, 25, 47, 0.4);
}
.card--paper {
  background: var(--color-paper);
  color: var(--color-ink);
  border-color: rgba(26, 26, 46, 0.12);
}
.card--paper:hover {
  border-color: var(--color-accent);
  box-shadow: 0 14px 28px rgba(26, 26, 46, 0.12);
}
.card--dark {
  background: var(--color-primary);
  border-color: rgba(224, 224, 224, 0.1);
}
.card--accent {
  background: var(--color-accent);
  color: var(--color-ink);
  border-color: var(--color-accent);
}
.card--accent:hover {
  border-color: var(--color-accent);
  box-shadow: 0 14px 28px rgba(255, 107, 53, 0.28);
}
.card--blueprint {
  background: var(--color-paper);
  color: var(--color-ink);
  border: 1px solid var(--color-border);
  border-radius: 2px;
}
.card--blueprint::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(26, 26, 46, 0.16);
  pointer-events: none;
}
.card--tilt {
  border-radius: 0;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}
.card--tilt:hover { box-shadow: none; }

/* ---------- Stack Panel ---------- */
.stack-panel {
  position: relative;
  background: var(--color-paper);
  color: var(--color-ink);
  border: 1px solid rgba(26, 26, 46, 0.14);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 10px 10px 0 rgba(255, 107, 53, 0.14), 18px 18px 0 rgba(10, 25, 47, 0.08);
}
.stack-panel--dark {
  background: var(--color-primary-light);
  color: var(--color-text-light);
  border-color: rgba(224, 224, 224, 0.12);
  box-shadow: 10px 10px 0 rgba(255, 107, 53, 0.14), 18px 18px 0 rgba(10, 25, 47, 0.35);
}

/* ---------- Stats & Index ---------- */
.stat {
  padding: 1.25rem;
  background: var(--color-primary-light);
  border-left: 3px solid var(--color-accent);
}
.stat__number {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
}
.stat__label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: rgba(224, 224, 224, 0.65);
}

.index-list {
  --index-border-color: rgba(224, 224, 224, 0.16);
  border-top: 1px solid var(--index-border-color);
}
.index-list__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--index-border-color);
}
.index-list__key { font-weight: 500; }
.index-list__value {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--color-accent);
}
.section--paper .index-list { --index-border-color: rgba(26, 26, 46, 0.18); }

/* ---------- Image Ratio Containers ---------- */
.img-ratio {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--color-primary-light);
  aspect-ratio: var(--ratio, 16 / 9);
}
.img-ratio--16-9 { --ratio: 16 / 9; }
.img-ratio--4-3 { --ratio: 4 / 3; }
.img-ratio--1-1 { --ratio: 1 / 1; }
.img-ratio--tall { --ratio: 3 / 4; }
.img-ratio > img,
.img-ratio > picture,
.img-ratio > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-ratio::before {
  content: attr(data-placeholder);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  color: rgba(224, 224, 224, 0.5);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}
.img-ratio:not([data-placeholder])::before { content: none; }
@media (max-width: 640px) {
  .img-ratio--tall { aspect-ratio: 4 / 5; }
}

/* ---------- Decorative Utilities ---------- */
.frame-line { position: relative; }
.frame-line::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid currentColor;
  opacity: 0.22;
  border-radius: 2px;
  pointer-events: none;
}

.dot-grid {
  background-image: radial-gradient(rgba(224, 224, 224, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
}
.dot-grid--paper {
  background-image: radial-gradient(rgba(26, 26, 46, 0.14) 1px, transparent 1px);
}

.diag-lines {
  background-image: repeating-linear-gradient(-45deg, transparent 0, transparent 20px, rgba(255, 107, 53, 0.14) 20px, rgba(255, 107, 53, 0.14) 21px);
}
.diag-lines--blue {
  background-image: repeating-linear-gradient(-45deg, transparent 0, transparent 20px, rgba(23, 42, 69, 0.18) 20px, rgba(23, 42, 69, 0.18) 21px);
}

.divider { border: none; border-top: 1px solid rgba(224, 224, 224, 0.16); margin: 2.5rem 0; }
.divider--accent { border-top-color: var(--color-accent); }
.divider--paper { border-top-color: rgba(26, 26, 46, 0.18); }

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 2000;
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.25rem;
  background: var(--color-accent);
  color: var(--color-ink);
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 0 0 6px 6px;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 0; outline: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--color-primary);
  border-bottom: 1px solid rgba(224, 224, 224, 0.1);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1010;
  width: 100%;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: 0 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
}
.site-brand:hover { color: #fff; }
.site-brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--color-accent);
  color: var(--color-ink);
  font-size: 1.125rem;
  font-weight: 800;
  border-radius: 4px 4px 4px 12px;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-out);
}
.site-brand:hover .site-brand__mark { transform: rotate(-6deg) scale(1.05); }
.site-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.site-brand__name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.site-brand__sub {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  color: rgba(224, 224, 224, 0.55);
  white-space: nowrap;
  text-transform: uppercase;
}

/* ---------- Nav ---------- */
.site-nav { height: 100%; }
.site-nav__list {
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: 0.25rem;
}
.site-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 0.875rem;
  color: rgba(224, 224, 224, 0.78);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: 0 0;
  transition: transform 0.3s var(--ease-out);
}
.site-nav__link:hover { color: #fff; }
.site-nav__link:hover::after { transform: scaleX(1); }
.site-nav__link[aria-current="page"] { color: #fff; font-weight: 600; }
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid rgba(224, 224, 224, 0.24);
  border-radius: 4px;
  background: transparent;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.nav-toggle:hover { border-color: var(--color-accent); }
.nav-toggle:active { transform: scale(0.96); }
.nav-toggle__bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--color-text-light);
  transition: transform 0.25s var(--ease-out), opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .site-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    height: auto;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    background: rgba(10, 25, 47, 0.98);
    border-bottom: 1px solid rgba(255, 107, 53, 0.35);
    box-shadow: 0 20px 40px rgba(10, 25, 47, 0.5);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.32s var(--ease-out), opacity 0.32s ease, visibility 0.32s ease;
  }
  .site-nav[data-open] {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .site-nav__list {
    flex-direction: column;
    height: auto;
    gap: 0;
    padding: 0.5rem clamp(1rem, 3vw, 2rem) 1rem;
  }
  .site-nav__item { border-top: 1px solid rgba(224, 224, 224, 0.08); }
  .site-nav__item:first-child { border-top: none; }
  .site-nav__link {
    height: auto;
    padding: 0.9rem 0.25rem;
    font-size: 1rem;
  }
  .site-nav__link::after { display: none; }
  .site-nav__link[aria-current="page"] {
    color: var(--color-accent);
    padding-left: 0.625rem;
  }
  .nav-toggle { display: flex; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary);
  color: var(--color-text-light);
  border-top: 2px solid var(--color-primary-light);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1.4fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 3rem);
}
.site-footer__panel--brand { max-width: 34rem; }

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1rem;
}
.site-footer__brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--color-accent);
  color: var(--color-ink);
  font-size: 1.375rem;
  font-weight: 800;
  border-radius: 6px 6px 6px 14px;
  flex-shrink: 0;
}
.site-footer__brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.site-footer__brand-name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
}
.site-footer__brand-en {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: rgba(224, 224, 224, 0.5);
  text-transform: uppercase;
}
.site-footer__desc {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 0.75rem;
  color: rgba(224, 224, 224, 0.85);
}
.site-footer__trust {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(224, 224, 224, 0.55);
  padding-top: 0.875rem;
  border-top: 1px solid rgba(224, 224, 224, 0.14);
}

.site-footer__heading {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(224, 224, 224, 0.16);
}
.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.site-footer__links a {
  color: var(--color-text-light);
  transition: color 0.2s ease, padding-left 0.2s var(--ease-out);
}
.site-footer__links a:hover {
  color: var(--color-accent);
  padding-left: 4px;
}
.site-footer__links--contact li {
  display: flex;
  flex-wrap: wrap;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(224, 224, 224, 0.72);
}
.site-footer__contact-label {
  display: inline-block;
  min-width: 2.5em;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(224, 224, 224, 0.42);
  margin-right: 0.5rem;
}

.site-footer__bottom {
  background: var(--color-primary-light);
  border-top: 1px solid rgba(224, 224, 224, 0.1);
}
.site-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.site-footer__copyright {
  font-size: 0.875rem;
  color: rgba(224, 224, 224, 0.5);
}
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}
.site-footer__legal a {
  font-size: 0.875rem;
  color: rgba(224, 224, 224, 0.6);
  transition: color 0.2s ease;
}
.site-footer__legal a:hover { color: var(--color-accent); }

@media (max-width: 860px) {
  .site-footer__inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .site-footer__bottom-inner { flex-direction: column; align-items: flex-start; }
  .site-footer__legal { gap: 0.875rem; }
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.125rem;
  background: var(--color-accent);
  color: var(--color-ink);
  border: 1px solid var(--color-accent);
  border-radius: 4px 4px 4px 12px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 20px rgba(10, 25, 47, 0.45);
  transition: transform 0.2s var(--ease-out), background-color 0.2s ease, box-shadow 0.2s ease;
}
.back-to-top:hover {
  background: #FF7B4D;
  border-color: #FF7B4D;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(10, 25, 47, 0.5);
}
.back-to-top__arrow {
  display: inline-block;
  font-size: 1.125rem;
  line-height: 1;
  transform: rotate(-45deg);
}

/* ---------- Reveal ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
html.js [data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
}

/* ---------- Focus & Reduced Motion ---------- */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

@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;
  }
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
