/* =========================================================
   site.css — 尊龙凯寸通用 · 版本资料库共享外壳
   路径：/assets/site.css
   ========================================================= */

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

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

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

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

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

button, input, select, textarea { font: inherit; color: inherit; }

a { color: inherit; }

/* ---------- 2. Design tokens ---------- */
:root {
  /* 色彩体系 */
  --ink: #0B1B2B;
  --ink-2: #102A43;
  --cinnabar: #C8362B;
  --cinnabar-deep: #8E2A22;
  --gold: #C9A24A;
  --gold-light: #E3C77E;
  --cool: #8A98A8;
  --paper: #F3F5F7;
  --paper-2: #DDE2E7;
  --black: #05090F;

  /* 线条 */
  --hair: rgba(243, 245, 247, 0.14);
  --hair-strong: rgba(243, 245, 247, 0.26);
  --hair-gold: rgba(201, 162, 74, 0.34);
  --hair-dark: rgba(11, 27, 43, 0.16);

  /* 尺寸 */
  --rail: 88px;
  --maxw: 1280px;
  --gutter: clamp(18px, 4vw, 48px);

  /* 字体 */
  --serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", "SimSun", "STSong", Georgia, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "JetBrains Mono", "SFMono-Regular", "Menlo", Consolas, "Courier New", monospace;

  /* 动效 */
  --t-fast: 160ms;
  --t-main: 380ms;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- 3. Base typography ---------- */
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }
p { line-height: 1.8; }

strong { font-weight: 600; }

::selection {
  background: var(--cinnabar);
  color: #fff;
}

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

/* 跳至主要内容 */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  display: inline-block;
  padding: 10px 18px;
  background: var(--gold);
  color: var(--black);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-decoration: none;
  transform: translateY(-220%);
  transition: transform var(--t-fast) var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline-offset: 2px;
}

#main-content { display: block; }

/* ---------- 4. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(44px, 7vw, 96px);
  position: relative;
}

.section--paper {
  background: var(--paper);
  color: var(--ink);
}

.section--paper .section__title,
.section--paper .page-title { color: var(--ink); }

.section--paper .lead,
.section--paper .page-lead { color: rgba(11, 27, 43, 0.78); }

.section--paper .rule { background: var(--hair-dark); }

.section--paper .eyebrow,
.section--paper .section__index { color: var(--cinnabar); }

.section--paper .card {
  background: #fff;
  border-color: var(--paper-2);
  color: var(--ink);
}

.section__head {
  max-width: 72ch;
  margin-bottom: clamp(22px, 3vw, 40px);
}

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

.section__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.lead {
  max-width: 64ch;
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  line-height: 1.9;
  color: rgba(243, 245, 247, 0.82);
}

.rule {
  height: 1px;
  border: 0;
  background: var(--hair);
  margin-block: clamp(24px, 4vw, 48px);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vw, 20px);
}

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--split { grid-template-columns: 5fr 7fr; }
}

/* 页头区块（页面级复用） */
.page-head {
  padding-block: clamp(30px, 5vw, 62px) clamp(20px, 3vw, 34px);
  border-bottom: 1px solid var(--hair);
}

.page-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.4vw, 3.1rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin-block: 14px 14px;
}

.page-lead {
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.9;
  color: rgba(243, 245, 247, 0.82);
}

/* ---------- 5. Buttons / tags / breadcrumbs ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t-fast) linear,
              color var(--t-fast) linear,
              border-color var(--t-fast) linear;
}

.btn--primary {
  background: var(--cinnabar);
  border-color: var(--cinnabar);
  color: #fff;
}

.btn--primary:hover { background: var(--cinnabar-deep); border-color: var(--cinnabar-deep); }

.btn--ghost {
  border-color: var(--hair-gold);
  color: var(--gold-light);
}

.btn--ghost:hover {
  background: rgba(201, 162, 74, 0.14);
  color: var(--paper);
  border-color: var(--gold);
}

.btn--line {
  border-color: var(--hair-strong);
  color: var(--paper);
}

.btn--line:hover { border-color: var(--gold); color: var(--gold-light); }

.tag {
  display: inline-block;
  padding: 4px 9px;
  border: 1px solid var(--hair-gold);
  color: var(--gold-light);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.tag--red {
  background: var(--cinnabar);
  border-color: var(--cinnabar);
  color: #fff;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--cool);
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs__item:not(:last-child)::after {
  content: "/";
  color: rgba(138, 152, 168, 0.55);
}

.breadcrumbs__link {
  color: var(--cool);
  text-decoration: none;
  transition: color var(--t-fast) linear;
}

.breadcrumbs__link:hover { color: var(--gold-light); }

.breadcrumbs [aria-current="page"] { color: var(--paper); }

/* ---------- 6. Cards / media containers ---------- */
.card {
  background: var(--ink-2);
  border: 1px solid var(--hair);
  border-radius: 0;
  padding: clamp(16px, 2.4vw, 28px);
  position: relative;
}

.card--paper {
  background: var(--paper);
  border-color: var(--paper-2);
  color: var(--ink);
}

.card__meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 10px;
}

.card__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.card__text {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(243, 245, 247, 0.78);
}

.card--paper .card__text { color: rgba(11, 27, 43, 0.78); }
.card--paper .card__meta { color: var(--cinnabar); }

/* 图片 / CSS 视觉容器：页面阶段放置版本档案盒、时间轴切片、界面新旧对照 */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--hair);
  border-radius: 0;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(201, 162, 74, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 162, 74, 0.16) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.45;
}

.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }

.media-frame__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.media-frame__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  margin: 0;
  padding: 7px 12px;
  background: rgba(5, 9, 15, 0.82);
  color: var(--gold-light);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  line-height: 1.6;
}

/* ---------- 7. Header：桌面侧边轨道 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
}

/* 侧边轨道（默认隐藏，≥1024px 启用） */
.rail { display: none; }

.rail__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--paper);
}

.rail__brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1;
  transition: background var(--t-fast) linear, color var(--t-fast) linear;
}

.rail__brand:hover .rail__brand-mark {
  background: var(--gold);
  color: var(--black);
}

.rail__brand-word {
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 12.5px;
  letter-spacing: 0.32em;
  color: var(--paper);
}

.rail__brand-sub {
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.26em;
  color: var(--cool);
}

.rail__nav {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  scrollbar-width: none;
}

.rail__nav::-webkit-scrollbar { width: 0; height: 0; }

.rail__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

.rail__item { width: 100%; }

.rail__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 6px 2px;
  text-decoration: none;
  transition: background var(--t-fast) linear;
}

.rail__index {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--gold);
  opacity: 0.8;
  transition: opacity var(--t-fast) linear;
}

.rail__label {
  writing-mode: vertical-rl;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.26em;
  color: var(--cool);
  transition: color var(--t-fast) linear;
}

.rail__link:hover .rail__label { color: var(--gold-light); }
.rail__link:hover .rail__index { opacity: 1; }

.rail__link[aria-current="page"] .rail__label { color: var(--paper); }
.rail__link[aria-current="page"] .rail__index { color: var(--cinnabar); opacity: 1; }

.rail__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 24px;
  background: var(--cinnabar);
}

.rail__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding-inline: 10px;
}

.rail__cta {
  display: block;
  writing-mode: vertical-rl;
  padding: 16px 8px;
  background: var(--cinnabar);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-decoration: none;
  text-align: center;
  transition: background var(--t-fast) linear;
}

.rail__cta:hover { background: var(--cinnabar-deep); }

.rail__progress {
  position: relative;
  width: 2px;
  height: 64px;
  background: rgba(243, 245, 247, 0.16);
  overflow: hidden;
}

.rail__progress-fill {
  position: absolute;
  inset: 0 0 auto 0;
  display: block;
  height: calc(var(--p, 0) * 1%);
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  transition: height 120ms linear;
}

.rail__meta {
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(138, 152, 168, 0.8);
}

/* ---------- 8. Header：移动顶栏 + 抽屉 ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 10px var(--gutter);
  background: var(--ink);
  border-bottom: 1px solid var(--hair-gold);
}

.topbar__brand {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--paper);
  text-decoration: none;
}

.topbar__brand span {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--gold);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: transparent;
  border: 1px solid var(--hair-gold);
  border-radius: 0;
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: border-color var(--t-fast) linear, color var(--t-fast) linear;
}

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

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bar {
  display: block;
  height: 1px;
  width: 100%;
  background: currentColor;
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) linear;
}

.site-header[data-open] .nav-toggle__bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.nav-toggle__text { font-family: var(--sans); }

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(5, 9, 15, 0.66);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-main) var(--ease), visibility var(--t-main) var(--ease);
}

.site-header[data-open] .drawer-backdrop {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  width: min(88vw, 380px);
  padding: 20px 20px 26px;
  overflow-y: auto;
  background: var(--ink-2);
  border-right: 1px solid var(--hair-gold);
  transform: translateX(-102%);
  transition: transform var(--t-main) var(--ease);
}

.site-header[data-open] .drawer { transform: translateX(0); }

.drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hair);
}

.drawer__brand { display: block; text-decoration: none; }

.drawer__title {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--paper);
}

.drawer__sub {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.drawer__close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--hair);
  border-radius: 0;
  color: var(--cool);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: color var(--t-fast) linear, border-color var(--t-fast) linear;
}

.drawer__close:hover { color: var(--gold-light); border-color: var(--gold); }

.drawer__nav { margin-top: 14px; }

.drawer__list { display: flex; flex-direction: column; }

.drawer__item { border-bottom: 1px solid rgba(243, 245, 247, 0.08); }

.drawer__link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 2px;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--paper);
  text-decoration: none;
  transition: color var(--t-fast) linear;
}

.drawer__link:hover { color: var(--gold-light); }

.drawer__num {
  min-width: 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.drawer__link[aria-current="page"] { color: var(--gold-light); }
.drawer__link[aria-current="page"] .drawer__num { color: var(--cinnabar); }

.drawer__sub-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0 0 12px 12px;
  padding: 0 0 12px 22px;
  border-left: 1px solid var(--hair-gold);
}

.drawer__sub-link {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--cool);
  text-decoration: none;
  transition: color var(--t-fast) linear;
}

.drawer__sub-link:hover { color: var(--gold-light); }

.drawer__foot {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer__cta {
  display: block;
  padding: 13px 18px;
  background: var(--cinnabar);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-align: center;
  text-decoration: none;
  transition: background var(--t-fast) linear;
}

.drawer__cta:hover { background: var(--cinnabar-deep); }

.drawer__note {
  font-size: 11.5px;
  line-height: 1.85;
  color: var(--cool);
}

/* 桌面断点：启用侧边轨道，收起顶栏与抽屉 */
@media (min-width: 1024px) {
  body { padding-left: var(--rail); }

  .site-header { position: relative; top: auto; }

  .rail {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 95;
    width: var(--rail);
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 22px 0 18px;
    background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
    border-right: 1px solid var(--hair-gold);
  }

  .rail::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--cinnabar);
  }

  .topbar,
  .drawer,
  .drawer-backdrop { display: none; }
}

@media (min-width: 1024px) and (max-height: 800px) {
  .rail { padding-block: 16px 12px; gap: 10px; }
  .rail__brand-sub { display: none; }
  .rail__list { gap: 12px; }
  .rail__progress { height: 44px; }
}

/* ---------- 9. Footer ---------- */
.site-footer {
  background: var(--black);
  color: var(--paper);
  border-top: 1px solid var(--hair-gold);
  position: relative;
}

.footer__band {
  display: flex;
  height: 4px;
}

.footer__band::before {
  content: "";
  width: 26%;
  background: var(--cinnabar);
}

.footer__band::after {
  content: "";
  flex: 1;
  background: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 16px);
  opacity: 0.55;
}

.footer__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(38px, 6vw, 78px) var(--gutter) clamp(30px, 4vw, 46px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 56px);
}

.footer__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer__display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--paper);
  margin-bottom: 14px;
}

.footer__note {
  max-width: 32ch;
  font-size: 13px;
  line-height: 1.9;
  color: var(--cool);
  margin-bottom: 22px;
}

.footer__cta { margin-top: 2px; }

.footer__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px 24px;
}

.footer__col { min-width: 0; }

.footer__col-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hair);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--paper);
}

.footer__col-index {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--gold);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  display: inline-block;
  padding-bottom: 1px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--cool);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast) linear, border-color var(--t-fast) linear;
}

.footer__link:hover {
  color: var(--gold-light);
  border-bottom-color: rgba(227, 199, 126, 0.5);
}

.footer__contact {
  font-style: normal;
  font-size: 13px;
  line-height: 1.85;
  color: var(--cool);
}

.footer__contact p { margin-bottom: 12px; }
.footer__contact p:last-child { margin-bottom: 0; }

.footer__contact-label {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 3px;
}

.footer__contact strong {
  display: block;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--paper);
  word-break: break-all;
}

.footer__contact-text {
  display: block;
  font-size: 12.5px;
  color: var(--paper);
}

.footer__contact-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(243, 245, 247, 0.08);
  font-size: 11.5px;
  line-height: 1.85;
  color: rgba(138, 152, 168, 0.9);
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  padding: 18px var(--gutter) 26px;
  border-top: 1px solid var(--hair);
}

.footer__copy,
.footer__legal {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--cool);
}

.footer__legal { color: var(--gold-light); opacity: 0.85; }

.footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer__legal-links .footer__link { font-size: 11.5px; }

@media (min-width: 520px) {
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .footer__inner { grid-template-columns: 5fr 7fr; align-items: start; }
  .footer__cols { grid-template-columns: 1fr 1fr 1.3fr; }
}

/* ---------- 10. Motion ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}

.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@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;
    transition-delay: 0ms !important;
  }

  .has-js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .rail__progress-fill { transition: none; }
}
