/* ==========================================================
   乐投会馆 · /assets/site.css
   共享外壳：夜间会馆 × 档案库
   ========================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
}

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

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

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

button { font: inherit; color: inherit; background: none; border: 0; }

a { color: inherit; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink-900: #06111C;
  --ink-800: #0B1B2B;
  --ink-700: #122A44;
  --ivory: #F2EAD9;
  --gold: #C9A24A;
  --gold-soft: #E8CE8F;
  --cinnabar: #C44B3F;
  --celadon: #7FAE9C;
  --mist: #8FA3B5;
  --bronze: #8C6A3F;

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", SFMono-Regular, ui-monospace, Menlo, Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --line: 1px solid rgba(201, 162, 74, 0.28);
  --shadow-block: 14px 14px 0 -2px rgba(6, 17, 28, 0.86);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink-800);
  background-image:
    radial-gradient(150% 95% at 50% -25%, rgba(201, 162, 74, 0.16), transparent 62%),
    repeating-linear-gradient(90deg, rgba(201, 162, 74, 0.055) 0 1px, transparent 1px 148px),
    repeating-linear-gradient(0deg, rgba(143, 163, 181, 0.035) 0 1px, transparent 1px 148px);
  background-attachment: fixed;
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: clamp(15px, 0.9rem + 0.22vw, 17px);
  line-height: 1.8;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.02em;
}

h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.7rem); }

p { text-wrap: pretty; }

strong { color: var(--gold-soft); font-weight: 700; }

::selection { background: rgba(201, 162, 74, 0.35); color: #fff; }

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

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 200;
  padding: 0.7rem 1.15rem;
  background: var(--gold);
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 0.6rem;
}

/* ---------- 5. Header / masthead ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background:
    linear-gradient(180deg, rgba(11, 27, 43, 0.99) 0%, rgba(11, 27, 43, 0.97) 62%, rgba(18, 42, 68, 0.98) 100%);
  border-bottom: 1px solid var(--bronze);
  box-shadow: 0 22px 46px -34px #000;
  backdrop-filter: blur(6px);
}

.site-header::after {
  content: "";
  display: block;
  height: 3px;
  background:
    linear-gradient(90deg,
      var(--gold) 0 16%,
      transparent 16% 19%,
      var(--cinnabar) 19% 29%,
      transparent 29% 32%,
      var(--celadon) 32% 42%,
      transparent 42% 45%,
      rgba(201, 162, 74, 0.35) 45% 100%);
}

.masthead {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.masthead__util {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(201, 162, 74, 0.22);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.masthead__kicker { line-height: 1.5; }

.masthead__figure { color: var(--gold); letter-spacing: 0.16em; }

.quickbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
}

.quickbar__item { display: flex; }

.quickbar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.15rem 0;
  color: var(--gold-soft);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.18s var(--ease);
}

.quickbar__link::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--cinnabar);
  flex: none;
}

.quickbar__link:hover { color: var(--ivory); }

.masthead__brandrow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.15rem 0 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: var(--ivory);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: none;
  border: 2px solid var(--gold);
  background:
    linear-gradient(155deg, rgba(201, 162, 74, 0.24), rgba(11, 27, 43, 0) 70%);
  box-shadow: inset 0 0 0 1px rgba(242, 234, 217, 0.14);
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 1;
  letter-spacing: 0;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.brand:hover .brand__mark,
.brand:focus-visible .brand__mark {
  background: linear-gradient(155deg, rgba(201, 162, 74, 0.42), rgba(11, 27, 43, 0) 70%);
  color: #fff;
}

.brand__text { display: block; }

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 1.1rem + 1.6vw, 2.3rem);
  letter-spacing: 0.2em;
  line-height: 1.1;
  color: var(--ivory);
}

.brand__sub {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.28em;
  color: var(--mist);
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid rgba(201, 162, 74, 0.55);
  color: var(--gold-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.nav-toggle:hover { background: rgba(201, 162, 74, 0.14); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: background 0.2s var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.22s var(--ease);
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
  display: block;
  counter-reset: navidx;
  border-top: 1px solid rgba(201, 162, 74, 0.3);
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.1rem clamp(0.3rem, 1.6vw, 1.4rem);
}

.site-nav__item { display: flex; }

.site-nav__link {
  position: relative;
  display: block;
  padding: 0.85rem 0.55rem;
  counter-increment: navidx;
  color: rgba(242, 234, 217, 0.82);
  text-decoration: none;
  font-size: 0.94rem;
  letter-spacing: 0.06em;
  border-bottom: 2px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.site-nav__link::before {
  content: counter(navidx, decimal-leading-zero);
  margin-right: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  vertical-align: super;
  color: var(--bronze);
  transition: color 0.18s var(--ease);
}

.site-nav__link:hover {
  color: var(--gold-soft);
  border-bottom-color: var(--gold);
}

.site-nav__link:hover::before { color: var(--gold-soft); }

.site-nav__link[aria-current="page"] {
  color: var(--gold-soft);
  font-weight: 600;
  border-bottom-color: var(--cinnabar);
}

.site-nav__link[aria-current="page"]::before { color: var(--cinnabar); }

.site-nav__meta {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--mist);
}

/* ---------- 6. Footer ---------- */
.site-footer {
  margin-top: clamp(2.5rem, 7vw, 5rem);
  background-color: var(--ink-900);
  background-image:
    radial-gradient(120% 80% at 50% 0%, rgba(201, 162, 74, 0.1), transparent 62%),
    repeating-linear-gradient(90deg, rgba(201, 162, 74, 0.045) 0 1px, transparent 1px 120px);
  border-top: 3px double rgba(201, 162, 74, 0.5);
  color: var(--ivory);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 0.85fr 0.85fr 1.2fr;
  gap: clamp(1.6rem, 4vw, 3.2rem);
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(2.4rem, 6vw, 4.4rem) var(--gutter) clamp(1.8rem, 4vw, 3rem);
}

.site-footer__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.4rem);
  letter-spacing: 0.2em;
  line-height: 1.2;
  color: var(--ivory);
}

.site-footer__statement {
  margin-top: 0.9rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--gold);
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--gold-soft);
  max-width: 34ch;
}

.site-footer__note {
  margin-top: 1rem;
  font-size: 0.8rem;
  line-height: 1.85;
  color: var(--mist);
  max-width: 42ch;
}

.footer-nav { min-width: 0; }

.footer-nav__title {
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(201, 162, 74, 0.35);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--gold);
}

.footer-nav__list {
  display: grid;
  gap: 0.55rem;
}

.footer-nav__link {
  display: inline-block;
  color: rgba(242, 234, 217, 0.82);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  transition: color 0.18s var(--ease);
}

.footer-nav__link:hover {
  color: var(--gold-soft);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-nav__link[aria-current="page"] { color: var(--gold-soft); }

.site-footer__contact { min-width: 0; }

.contact-list {
  display: grid;
  gap: 0.9rem;
}

.contact-list__item { display: grid; gap: 0.15rem; }

.contact-list__label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  color: var(--celadon);
}

.contact-list__value {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(242, 234, 217, 0.9);
  overflow-wrap: anywhere;
}

.site-footer__bottom {
  border-top: 1px solid rgba(140, 106, 63, 0.55);
  background: rgba(6, 17, 28, 0.7);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 1.1rem var(--gutter);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.site-footer__icp { color: var(--bronze); }

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

.section { padding-block: clamp(2.4rem, 6vw, 5rem); }

.section--ink { background: rgba(6, 17, 28, 0.62); }
.section--panel {
  background: linear-gradient(180deg, rgba(18, 42, 68, 0.9), rgba(11, 27, 43, 0.9));
  border-block: 1px solid rgba(140, 106, 63, 0.5);
}

.grid { display: grid; gap: clamp(1rem, 2.6vw, 2rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

/* ---------- 8. Editorial components ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--celadon);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 30px;
  height: 2px;
  background: var(--gold);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  line-height: 1.6;
  border: 1px solid transparent;
  white-space: nowrap;
}

.tag--gold {
  color: var(--gold-soft);
  border-color: rgba(201, 162, 74, 0.6);
  background: rgba(201, 162, 74, 0.1);
}

.tag--red {
  color: #F6DEDA;
  border-color: rgba(196, 75, 63, 0.8);
  background: rgba(196, 75, 63, 0.24);
}

.tag--green {
  color: #E4F2EC;
  border-color: rgba(127, 174, 156, 0.7);
  background: rgba(127, 174, 156, 0.2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.35rem;
  border: 2px solid var(--gold);
  color: var(--gold-soft);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover { background: var(--gold); color: var(--ink-900); }

.btn--solid {
  background: var(--gold);
  color: var(--ink-900);
  box-shadow: 6px 6px 0 -1px rgba(6, 17, 28, 0.9);
}

.btn--solid:hover { background: var(--gold-soft); border-color: var(--gold-soft); }

.btn--alert {
  background: var(--cinnabar);
  border-color: var(--cinnabar);
  color: #FFF3F0;
}

.btn--alert:hover { background: #D55A4D; border-color: #D55A4D; color: #fff; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.breadcrumb a {
  color: rgba(242, 234, 217, 0.78);
  text-decoration: none;
}

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

.breadcrumb__sep { color: var(--bronze); }

.prose {
  max-width: 68ch;
  font-size: clamp(0.98rem, 0.94rem + 0.18vw, 1.06rem);
  line-height: 1.88;
  color: rgba(242, 234, 217, 0.9);
}

.prose > * + * { margin-top: 1.1em; }

.prose h2 {
  margin-top: 2em;
  padding-top: 0.8em;
  border-top: 1px solid rgba(201, 162, 74, 0.3);
  font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.9rem);
  color: var(--ivory);
}

.prose h3 {
  margin-top: 1.6em;
  color: var(--gold-soft);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.35rem);
}

.prose ul { list-style: none; display: grid; gap: 0.5em; }

.prose ul > li {
  position: relative;
  padding-left: 1.4em;
}

.prose ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 2px;
  background: var(--gold);
}

.prose a {
  color: var(--gold-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose blockquote {
  padding: 0.9rem 0 0.9rem 1.1rem;
  border-left: 3px solid var(--cinnabar);
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.panel {
  position: relative;
  padding: clamp(1.1rem, 2.6vw, 1.9rem);
  background: linear-gradient(170deg, rgba(18, 42, 68, 0.95), rgba(11, 27, 43, 0.95));
  border: 1px solid rgba(140, 106, 63, 0.7);
  box-shadow: var(--shadow-block);
}

.panel::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(201, 162, 74, 0.14);
  pointer-events: none;
}

.panel__title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  color: var(--ivory);
}

.panel__meta {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--mist);
}

.index-num {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.rule-line {
  height: 1px;
  margin-block: clamp(1.6rem, 4vw, 3rem);
  border: 0;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(201, 162, 74, 0.15) 46%, transparent 100%);
}

/* ---------- 9. Media frames ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 2px solid rgba(201, 162, 74, 0.45);
  background:
    linear-gradient(150deg, rgba(18, 42, 68, 0.95), rgba(6, 17, 28, 0.98)),
    repeating-linear-gradient(45deg, rgba(201, 162, 74, 0.1) 0 6px, transparent 6px 14px);
  box-shadow: var(--shadow-block);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--wide { aspect-ratio: 21 / 9; }

.media-frame__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 100%;
  padding: 0.55rem 0.85rem;
  background: rgba(6, 17, 28, 0.9);
  border-top: 1px solid rgba(201, 162, 74, 0.45);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--gold-soft);
}

/* ---------- 10. Scroll meter & back to top ---------- */
.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--cinnabar));
  pointer-events: none;
}

.to-top {
  position: fixed;
  right: clamp(0.9rem, 3vw, 2rem);
  bottom: clamp(0.9rem, 3vw, 2rem);
  z-index: 110;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.68rem 1rem;
  background: rgba(6, 17, 28, 0.96);
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), background 0.2s var(--ease);
}

.to-top[data-visible] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover { background: var(--gold); color: var(--ink-900); }

/* ---------- 11. Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- 12. Responsive ---------- */
@media (max-width: 1080px) {
  .site-footer__grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
  .site-footer__contact { grid-column: 1 / -1; }
  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 110px; }

  .masthead__util {
    display: block;
    padding: 0;
    border-bottom: 0;
    min-height: 0;
  }

  .masthead__kicker { display: none; }

  .quickbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    background: rgba(6, 17, 28, 0.98);
    border-top: 1px solid var(--gold);
    box-shadow: 0 -16px 30px -24px #000;
    backdrop-filter: blur(8px);
  }

  .quickbar__item { border-right: 1px solid rgba(201, 162, 74, 0.24); }
  .quickbar__item:last-child { border-right: 0; }

  .quickbar__link {
    justify-content: center;
    width: 100%;
    padding: 0.85rem 0.4rem;
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    color: var(--gold-soft);
  }

  .quickbar__link::before { display: none; }

  body { padding-bottom: 58px; }

  .masthead__brandrow {
    justify-content: flex-start;
    padding: 0.9rem 4.6rem 0.85rem 0;
  }

  .brand__mark { width: 44px; height: 44px; font-size: 1.3rem; }
  .brand__name { letter-spacing: 0.14em; }
  .brand__sub { font-size: 0.56rem; letter-spacing: 0.2em; }

  .nav-toggle {
    display: inline-flex;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  .site-nav {
    display: none;
    margin-bottom: 0.9rem;
    background: linear-gradient(180deg, rgba(18, 42, 68, 0.98), rgba(11, 27, 43, 0.98));
    border-top: 1px solid rgba(201, 162, 74, 0.4);
    border-bottom: 1px solid rgba(140, 106, 63, 0.7);
    box-shadow: 0 26px 44px -30px #000;
  }

  .site-nav[data-open] {
    display: block;
    animation: navIn 0.22s var(--ease) both;
  }

  .site-nav__list {
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0;
  }

  .site-nav__link {
    padding: 0.95rem 1rem;
    border-bottom: 1px solid rgba(143, 163, 181, 0.16);
    font-size: 0.95rem;
  }

  .site-nav__link::before { font-size: 0.64rem; }

  .site-nav__link[aria-current="page"] {
    background: rgba(196, 75, 63, 0.16);
    border-left: 3px solid var(--cinnabar);
    padding-left: calc(1rem - 3px);
  }

  .site-nav__meta {
    display: block;
    padding: 0.85rem 1rem 1rem;
    line-height: 1.7;
  }

  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brandcol { grid-column: 1 / -1; }
  .site-footer__contact { grid-column: 1 / -1; }

  .grid--2,
  .grid--3 { grid-template-columns: minmax(0, 1fr); }

  .grid--12 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .to-top { bottom: calc(58px + 0.9rem); }
}

@media (max-width: 560px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer__legal { font-size: 0.66rem; letter-spacing: 0.06em; }
  .brand__sub { display: none; }
  .panel { box-shadow: 8px 8px 0 -2px rgba(6, 17, 28, 0.86); }
  .grid--12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@keyframes navIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 13. 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] {
    opacity: 1;
    transform: none;
  }

  .to-top {
    transform: none;
  }
}
