/* ==========================================================================
   云体育 · 共享样式 /assets/site.css
   ========================================================================== */

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

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

body {
  margin: 0;
  padding-top: var(--bar-h);
  padding-left: var(--rail-w);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.85;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

/* ---------- tokens ---------- */
:root {
  --ink: #060B1A;
  --deep: #0B1B3A;
  --night: #16305C;
  --paper: #F4F0E8;
  --paper-2: #E2DCCE;
  --cyan: #2FF0D6;
  --cyan-mist: #9FF7EC;
  --orange: #FF6A2B;
  --orange-deep: #C24A11;
  --line: #2A3A55;

  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo,
          Consolas, "Liberation Mono", monospace;

  --bar-h: 60px;
  --rail-w: 0px;
  --pad-x: 5vw;
  --max-w: 1440px;
}

@media (min-width: 900px) {
  :root {
    --bar-h: 72px;
    --rail-w: 84px;
  }
}

/* ---------- focus & motion ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

#main-content { scroll-margin-top: calc(var(--bar-h) + 12px); }

/* ---------- typography helpers ---------- */
.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.index-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

.lede {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(244, 240, 232, 0.72);
  max-width: 54ch;
}

.prose {
  max-width: 68ch;
  font-size: 15px;
  line-height: 1.85;
}
.prose p + p { margin-top: 1.05em; }
.prose ul, .prose ol { padding-left: 1.3em; margin-top: 1em; }
.prose li + li { margin-top: 0.5em; }

.link-sweep {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: var(--cyan);
}
.link-sweep::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s ease;
}
.link-sweep:hover::after,
.link-sweep:focus-visible::after { transform: scaleX(1); }

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 112px 0; } }

.section--ink { background: var(--ink); color: var(--paper); }
.section--deep { background: var(--deep); color: var(--paper); }
.section--paper { background: var(--paper); color: #0A1122; }

.section--paper .index-label { color: var(--orange-deep); }
.section--paper .lede { color: rgba(10, 17, 34, 0.72); }
.section--paper .rule { background: rgba(42, 58, 85, 0.28); }
.section--paper .panel { background: #FFFDF8; border-color: rgba(42, 58, 85, 0.3); }
.section--paper .panel__idx { color: var(--orange-deep); }
.section--paper .link-sweep { color: var(--orange-deep); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
@media (min-width: 900px) {
  .grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}

.split-62,
.split-8-4 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
@media (min-width: 900px) {
  .split-62 { grid-template-columns: 62fr 38fr; gap: 3vw; align-items: start; }
  .split-8-4 { grid-template-columns: 8fr 4fr; gap: 3vw; align-items: start; }
}

.section-head {
  display: grid;
  gap: 16px;
  margin-bottom: 40px;
}
@media (min-width: 900px) {
  .section-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.55fr);
    align-items: end;
    gap: 48px;
    margin-bottom: 64px;
  }
}

.section-title {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.01em;
}

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn--accent {
  background: var(--orange);
  color: var(--ink);
  font-weight: 700;
}
.btn--accent:hover,
.btn--accent:focus-visible {
  background: #FF8048;
  color: var(--ink);
}

.btn--line {
  background: transparent;
  color: var(--paper);
  border-color: var(--line);
}
.btn--line:hover,
.btn--line:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
}

.section--paper .btn--line { color: #0A1122; border-color: rgba(42, 58, 85, 0.4); }
.section--paper .btn--line:hover,
.section--paper .btn--line:focus-visible { color: var(--orange-deep); border-color: var(--orange-deep); }

.btn--ghost {
  background: transparent;
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
  color: var(--cyan);
}
.btn--ghost:hover,
.btn--ghost:focus-visible { color: var(--paper); }

/* ---------- panel / chip ---------- */
.panel {
  position: relative;
  border: 1px solid var(--line);
  background: var(--deep);
  padding: 20px;
}

.panel__idx {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  color: rgba(244, 240, 232, 0.7);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}
.chip:hover { color: var(--cyan-mist); border-color: rgba(47, 240, 214, 0.5); }
.chip--on,
.chip[aria-pressed="true"] {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(47, 240, 214, 0.08);
}

.section--paper .chip { color: rgba(10, 17, 34, 0.7); border-color: rgba(42, 58, 85, 0.35); }
.section--paper .chip--on,
.section--paper .chip[aria-pressed="true"] {
  color: var(--orange-deep);
  border-color: var(--orange-deep);
  background: rgba(194, 74, 17, 0.08);
}

/* ---------- breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(244, 240, 232, 0.55);
}
.breadcrumb a { text-decoration: none; color: inherit; transition: color 0.18s ease; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb__sep { color: var(--line); }
.breadcrumb__current { color: var(--cyan-mist); }
.section--paper .breadcrumb { color: rgba(10, 17, 34, 0.55); }
.section--paper .breadcrumb__current { color: var(--orange-deep); }
.section--paper .breadcrumb a:hover { color: var(--orange-deep); }

/* ---------- media frame ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(22, 48, 92, 0.9), transparent 62%),
    linear-gradient(160deg, #0D1F3E 0%, #060B1A 100%);
  overflow: hidden;
}
.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(47, 240, 214, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 240, 214, 0.09) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.55;
  pointer-events: none;
}
.media-frame::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 12px;
  width: 18px;
  height: 18px;
  border-left: 1px solid var(--cyan);
  border-top: 1px solid var(--cyan);
  opacity: 0.7;
  pointer-events: none;
}
.media-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--detail { aspect-ratio: 4 / 5; }

.media-frame__cap {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(244, 240, 232, 0.5);
}
.section--paper .media-frame {
  border-color: rgba(42, 58, 85, 0.35);
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(226, 220, 206, 0.95), transparent 62%),
    linear-gradient(160deg, #E7E1D3 0%, #D9D2C2 100%);
}
.section--paper .media-frame::before {
  background-image:
    linear-gradient(rgba(42, 58, 85, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 58, 85, 0.12) 1px, transparent 1px);
}
.section--paper .media-frame::after { border-color: var(--orange-deep); }
.section--paper .media-frame__cap { color: rgba(10, 17, 34, 0.55); }

/* ---------- reveal ---------- */
[data-reveal].is-pending {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header { position: relative; z-index: 70; }

/* skip link */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--cyan);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-220%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* topbar */
.topbar {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 14px;
  height: var(--bar-h);
  padding: 0 16px;
  background: rgba(6, 11, 26, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@media (min-width: 900px) {
  .topbar { padding: 0 32px; gap: 24px; border-left: 1px solid var(--line); }
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
  color: var(--paper);
  flex: 0 0 auto;
}
.brand__mark {
  position: relative;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding-left: 16px;
  line-height: 1;
}
.brand__mark::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  background: var(--cyan);
}
.brand__meta {
  display: none;
  position: relative;
  padding-left: 12px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.14em;
  color: rgba(244, 240, 232, 0.5);
}
.brand__meta::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 12px;
  margin-top: -6px;
  background: var(--line);
}
@media (min-width: 640px) {
  .brand__mark { font-size: 20px; }
  .brand__meta { display: inline-block; }
}

.brand__tag {
  display: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(244, 240, 232, 0.45);
  white-space: nowrap;
}
@media (min-width: 1100px) { .brand__tag { display: block; margin-left: 8px; } }

.topbar__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (min-width: 900px) { .topbar__actions { gap: 10px; } }

.topbar__quick {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.12em;
  color: var(--cyan-mist);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.topbar__quick:hover,
.topbar__quick:focus-visible { color: var(--cyan); border-color: var(--cyan); }
.topbar__quick-key { color: var(--orange); }
@media (min-width: 900px) { .topbar__quick { display: inline-flex; } }

.topbar .btn { padding: 11px 14px; font-size: 13px; }
.topbar .btn--line { display: none; }
@media (min-width: 900px) {
  .topbar .btn { padding: 12px 18px; font-size: 14px; }
  .topbar .btn--line { display: inline-flex; }
}

/* nav toggle */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
  cursor: pointer;
  color: var(--paper);
  transition: border-color 0.18s ease, color 0.18s ease;
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.nav-toggle__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  line-height: 1;
}
.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}
.nav-toggle__bar {
  display: block;
  height: 1px;
  width: 100%;
  background: currentColor;
  transition: transform 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child { transform: translateY(2.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-child { transform: translateY(-2.5px) rotate(-45deg); }
@media (min-width: 900px) { .nav-toggle { display: none; } }

/* rail navigation */
.rail {
  position: fixed;
  top: var(--bar-h);
  left: 0;
  bottom: 0;
  width: min(84vw, 320px);
  z-index: 80;
  display: flex;
  flex-direction: column;
  padding: 18px 16px 20px;
  background: var(--ink);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  scrollbar-width: thin;
  transform: translateX(-102%);
  visibility: hidden;
  transition: transform 0.28s cubic-bezier(0.22, 0.8, 0.3, 1), visibility 0.28s linear;
  box-shadow: 24px 0 60px rgba(0, 0, 0, 0.5);
}
.rail[data-open] {
  transform: translateX(0);
  visibility: visible;
}

.rail__head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 0 16px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.rail__badge {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--orange);
  border: 1px solid var(--line);
  padding: 4px 7px;
  line-height: 1;
}

.rail__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rail__link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 14px 10px;
  border-left: 2px solid transparent;
  text-decoration: none;
  color: rgba(244, 240, 232, 0.68);
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.rail__link:hover,
.rail__link:focus-visible {
  color: var(--paper);
  border-left-color: var(--cyan);
  background: rgba(47, 240, 214, 0.06);
}
.rail__link[aria-current="page"] {
  color: var(--cyan);
  border-left-color: var(--orange);
  background: rgba(255, 106, 43, 0.09);
}
.rail__link[aria-current="page"] .rail__idx { color: var(--orange); }

.rail__idx {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(159, 247, 236, 0.5);
  line-height: 1;
}
.rail__label {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.rail__aside { display: none; }
.rail__note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(244, 240, 232, 0.55);
  margin-bottom: 12px;
}
.rail__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 14px;
  background: var(--orange);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 0.18s ease;
}
.rail__cta:hover,
.rail__cta:focus-visible { background: #FF8048; }

@media (max-width: 899.98px) {
  .rail__aside {
    display: block;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }
}

.rail__foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.to-top {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: rgba(244, 240, 232, 0.6);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  transition: color 0.18s ease;
}
.to-top:hover,
.to-top:focus-visible { color: var(--cyan); }
.to-top__glyph { font-size: 13px; line-height: 1; }
.to-top__text { line-height: 1; }

/* desktop rail: vertical index */
@media (min-width: 900px) {
  .rail {
    top: 0;
    bottom: 0;
    width: 84px;
    padding: 14px 0 12px;
    transform: none;
    visibility: visible;
    box-shadow: none;
    overflow-x: hidden;
  }
  .rail__head {
    justify-content: center;
    padding: 6px 0 14px;
    margin-bottom: 8px;
  }
  .rail__list { align-items: stretch; }
  .rail__link {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 4px;
    border-left-width: 2px;
    text-align: center;
  }
  .rail__label {
    writing-mode: vertical-rl;
    font-size: 13px;
    letter-spacing: 0.18em;
  }
  .rail__foot { padding-top: 10px; }
  .to-top {
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
    font-size: 9px;
  }
  .to-top__text { writing-mode: vertical-rl; letter-spacing: 0.2em; }
}

/* scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  height: 2px;
  z-index: 95;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  position: relative;
  padding: 0 var(--pad-x) 28px;
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--line);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(42, 58, 85, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 58, 85, 0.5) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: 0.28;
  pointer-events: none;
}
.site-footer > * { position: relative; }

.footer__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 48px 0 28px;
  border-bottom: 1px solid var(--line);
}
.footer__closing {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.1em;
  color: rgba(244, 240, 232, 0.62);
  max-width: 46ch;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  padding: 40px 0;
}
@media (min-width: 900px) {
  .footer__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.4fr);
    gap: 64px;
    padding: 48px 0;
  }
}

.footer__mark {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--paper);
  text-decoration: none;
  transition: color 0.18s ease;
}
.footer__mark:hover,
.footer__mark:focus-visible { color: var(--cyan); }
.footer__mark-sub {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: rgba(244, 240, 232, 0.5);
}

.footer__note {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(244, 240, 232, 0.62);
  max-width: 34ch;
}

.footer__contact {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer__contact li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
}
@media (min-width: 560px) {
  .footer__contact li {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: baseline;
  }
}
.footer__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(159, 247, 236, 0.6);
}
.footer__value {
  font-size: 14px;
  color: rgba(244, 240, 232, 0.86);
  overflow-wrap: anywhere;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 16px;
}
@media (min-width: 640px) {
  .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}

.footer__col-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer__links a {
  position: relative;
  display: inline-block;
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
  color: rgba(244, 240, 232, 0.78);
  transition: color 0.18s ease;
}
.footer__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.footer__links a:hover,
.footer__links a:focus-visible { color: var(--cyan); }
.footer__links a:hover::after,
.footer__links a:focus-visible::after { transform: scaleX(1); }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(244, 240, 232, 0.5);
}
.footer__legal,
.footer__base-note { margin: 0; }

/* ---------- 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;
  }
  [data-reveal].is-pending { opacity: 1; transform: none; }
}
