/* =========================================================
   盈佳国际中心 · 中文站 共享样式 /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, p, ul, ol, li, figure, blockquote, hr { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg, video { display: block; max-width: 100%; }
hr { border: 0; }
::selection { background: var(--terra); color: #fff; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #0B1B2B;
  --night: #143049;
  --paper: #F7F3EA;
  --paper-2: #E6DED0;
  --terra: #D9541E;
  --terra-deep: #C34A1A;
  --brass: #C08A3E;
  --brass-ink: #8A5F1E;
  --mint: #4FA98A;
  --mint-ink: #2F7A61;
  --graphite: #4A4F55;
  --rain: #1E4438;
  --alert: #A63A2E;

  --line: rgba(11, 27, 43, 0.16);
  --line-strong: rgba(11, 27, 43, 0.42);
  --line-invert: rgba(247, 243, 234, 0.16);

  --font-head: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: var(--font-head);
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-num: "Archivo Narrow", "Oswald", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;

  --edge: clamp(16px, 4vw, 56px);
  --maxw: 1240px;
  --sheet: 6px 6px 0 0 var(--paper-2);
  --sheet-hover: 6px 12px 0 0 var(--paper-2);
}

/* ---------- 3. Base typography ---------- */
body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h1 { font-size: clamp(2rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
h3 { font-size: clamp(1.08rem, 1.8vw, 1.35rem); letter-spacing: -0.01em; }
h4 { font-size: 1rem; letter-spacing: 0; }
p { max-width: 78ch; }
strong, b { font-weight: 700; }
a { transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease; }

/* ---------- 4. Focus ---------- */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 3px;
}
.nav-link:focus-visible,
.masthead-cta:focus-visible,
.footer-link:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }

/* ---------- 5. Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--edge);
}
.section { padding-block: clamp(40px, 6vw, 84px); }
.section--tight { padding-block: clamp(26px, 4vw, 52px); }
.section--dark { background: var(--night); color: var(--paper); }
.section--paper2 { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--paper); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: clamp(22px, 3vw, 40px); }
.section-no {
  font-family: var(--font-num);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-ink);
}
.section--dark .section-no, .section--ink .section-no { color: var(--brass); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-num);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--graphite);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--terra); }
.lede {
  max-width: 48ch;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  font-weight: 500;
  line-height: 1.75;
  color: var(--graphite);
}
.section--dark .lede, .section--ink .lede { color: rgba(247, 243, 234, 0.76); }
.rule { display: block; width: 56px; height: 2px; background: var(--terra); border: 0; }
.rule--wide { width: 100%; height: 1px; background: var(--line); }

.grid { display: grid; gap: clamp(18px, 2.6vw, 32px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--aside { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.btn--terra { background: var(--terra); color: #fff; box-shadow: 0 2px 0 rgba(11, 27, 43, 0.3); }
.btn--terra:hover { background: var(--terra-deep); transform: translateY(-2px); box-shadow: 0 4px 0 rgba(11, 27, 43, 0.32); }
.btn--outline { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--outline:hover { border-color: var(--terra); color: var(--terra); transform: translateY(-2px); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--night); transform: translateY(-2px); }

/* ---------- 7. Breadcrumbs ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 18px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--graphite);
}
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "／"; color: var(--brass); }
.breadcrumbs a:hover { color: var(--terra); }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 700; }

/* ---------- 8. Prose ---------- */
.prose { max-width: 70ch; font-size: 1.0625rem; line-height: 1.8; }
.prose > * + * { margin-top: 20px; }
.prose h2 { margin-top: 44px; }
.prose h3 { margin-top: 32px; color: var(--night); }
.prose ul, .prose ol { display: grid; gap: 10px; }
.prose li { position: relative; padding-left: 24px; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9em;
  width: 12px;
  height: 1px;
  background: var(--terra);
}
.prose a { color: var(--terra); border-bottom: 1px solid rgba(217, 84, 30, 0.4); }
.prose a:hover { border-bottom-color: var(--terra); }
.quote {
  border-left: 3px solid var(--rain);
  background: rgba(30, 68, 56, 0.07);
  padding: 18px 22px;
  color: var(--ink);
  font-weight: 500;
}

/* ---------- 9. Cards ---------- */
.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  padding: clamp(18px, 2.4vw, 28px);
  box-shadow: var(--sheet);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--sheet-hover); }
.card--offset { margin-top: 16px; }
.card--dark {
  background: var(--night);
  color: var(--paper);
  border-color: rgba(247, 243, 234, 0.2);
  box-shadow: 6px 6px 0 0 rgba(11, 27, 43, 0.45);
}
.card--dark:hover { box-shadow: 6px 12px 0 0 rgba(11, 27, 43, 0.45); }
.card__title { font-size: 1.05rem; font-weight: 900; letter-spacing: -0.01em; line-height: 1.35; }
.card__meta {
  margin-top: 8px;
  font-family: var(--font-num);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-ink);
}
.card--dark .card__meta { color: var(--brass); }
.card__body { margin-top: 12px; color: var(--graphite); font-size: 0.95rem; line-height: 1.75; }
.card--dark .card__body { color: rgba(247, 243, 234, 0.74); }

/* ---------- 10. Tags & status ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--font-num);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid currentColor;
}
.tag--brass { color: var(--brass-ink); border-color: rgba(192, 138, 62, 0.7); background: rgba(192, 138, 62, 0.1); }
.tag--mint { color: var(--mint-ink); border-color: rgba(79, 169, 138, 0.6); background: rgba(79, 169, 138, 0.12); }
.tag--terra { color: var(--terra); border-color: rgba(217, 84, 30, 0.55); background: rgba(217, 84, 30, 0.08); }
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--graphite);
}
.status-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(79, 169, 138, 0.2);
}
.status-dot--off::before { background: var(--graphite); box-shadow: 0 0 0 3px rgba(74, 79, 85, 0.18); }

/* ---------- 11. Media frames ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(150deg, rgba(20, 48, 73, 1), rgba(11, 27, 43, 1) 70%),
    var(--night);
}
.media-frame img, .media-frame svg, .media-frame canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(11, 27, 43, 0), rgba(11, 27, 43, 0.85));
  color: var(--paper);
  font-size: 0.78rem;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

/* ---------- 12. Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--terra);
  z-index: 200;
  pointer-events: none;
}

/* ---------- 13. Header ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 10px 16px;
  background: var(--terra);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
}
.skip-link:focus { left: 12px; top: 10px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid rgba(192, 138, 62, 0.35);
}

.masthead {
  background:
    radial-gradient(120% 170% at 10% -10%, rgba(217, 84, 30, 0.18), transparent 58%),
    radial-gradient(90% 150% at 92% 8%, rgba(79, 169, 138, 0.14), transparent 62%),
    var(--ink);
}
.masthead__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  min-height: 86px;
  padding-block: 14px;
}
.masthead__left { justify-self: start; }
.masthead__center { justify-self: center; text-align: center; }
.masthead__right { justify-self: end; }

.update-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(192, 138, 62, 0.45);
  color: var(--brass);
  font-family: var(--font-num);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.update-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(79, 169, 138, 0.22);
}

.brand-lockup { display: block; }
.brand-lockup__main {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.6vw, 1.72rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--paper);
}
.brand-lockup__sub {
  display: block;
  margin-top: 5px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: rgba(247, 243, 234, 0.6);
}
.brand-lockup:hover .brand-lockup__main { color: var(--brass); }

.masthead-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  background: var(--terra);
  border: 1px solid rgba(11, 27, 43, 0.35);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.masthead-cta:hover { background: var(--terra-deep); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  background: var(--night);
  border-top: 1px solid var(--line-invert);
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.nav-toggle__bar {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--paper);
  transition: background-color 0.2s ease;
}
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--paper);
  transition: transform 0.22s ease;
}
.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle__label { line-height: 1; }

.nav-bar {
  background: linear-gradient(180deg, rgba(20, 48, 73, 0.9), rgba(11, 27, 43, 0.99));
  border-top: 1px solid var(--line-invert);
}
.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2.6vw, 40px);
  min-height: 52px;
}
.nav-list__item { display: block; }
.nav-link {
  position: relative;
  display: inline-block;
  padding: 14px 4px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(247, 243, 234, 0.78);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 2px;
  background: var(--terra);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}
.nav-link:hover { color: var(--paper); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--paper); font-weight: 700; }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- 14. Footer ---------- */
.site-footer {
  margin-top: clamp(40px, 6vw, 80px);
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid rgba(192, 138, 62, 0.4);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.72fr));
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(40px, 6vw, 72px) clamp(26px, 4vw, 44px);
}
.footer-brandline {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: var(--paper);
}
.footer-service {
  margin-top: 14px;
  max-width: 34em;
  font-size: 0.94rem;
  line-height: 1.85;
  color: rgba(247, 243, 234, 0.7);
}
.footer-contact {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed rgba(247, 243, 234, 0.2);
}
.footer-contact li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.footer-contact__key {
  flex: 0 0 auto;
  min-width: 5.2em;
  font-family: var(--font-num);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}
.footer-contact__val {
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: rgba(247, 243, 234, 0.9);
  word-break: break-all;
}
.footer-col__title {
  margin-bottom: 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(192, 138, 62, 0.3);
  font-family: var(--font-num);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}
.footer-col__list { display: grid; gap: 2px; }
.footer-link {
  display: inline-block;
  padding-block: 6px;
  font-size: 0.94rem;
  color: rgba(247, 243, 234, 0.78);
}
.footer-link:hover { color: var(--paper); box-shadow: inset 0 -1px 0 var(--terra); }

.footer-region {
  padding-block: 16px;
  border-top: 1px solid var(--line-invert);
  font-size: 0.8rem;
  line-height: 1.7;
  color: rgba(247, 243, 234, 0.55);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 18px 26px;
  border-top: 1px solid var(--line-invert);
  font-size: 0.78rem;
  color: rgba(247, 243, 234, 0.6);
}
.footer-record {
  font-family: var(--font-num);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 243, 234, 0.85);
}
.footer-copy { letter-spacing: 0.02em; }

/* ---------- 15. Side index ---------- */
.side-index {
  position: sticky;
  top: 168px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}
.side-index__title {
  padding-bottom: 8px;
  font-family: var(--font-num);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-ink);
}
.side-index__link {
  display: block;
  padding: 7px 10px;
  border-left: 2px solid var(--line);
  color: var(--graphite);
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}
.side-index__link:hover { color: var(--ink); border-left-color: var(--brass); background: rgba(192, 138, 62, 0.08); }
.side-index__link[aria-current="true"] {
  color: var(--terra);
  border-left-color: var(--terra);
  font-weight: 700;
  background: rgba(217, 84, 30, 0.07);
}

/* ---------- 16. Tabs / accordion / filter / copy ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line-strong);
}
.tabs__btn {
  position: relative;
  top: 1px;
  padding: 10px 16px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--graphite);
  border: 1px solid transparent;
}
.tabs__btn:hover { color: var(--terra); }
.tabs__btn[aria-selected="true"] {
  color: var(--ink);
  font-weight: 700;
  background: var(--paper);
  border-color: var(--line-strong);
  border-bottom-color: var(--paper);
}
.tab-panel { padding-block: 24px; }
.tab-panel[hidden] { display: none; }

.accordion { border-top: 1px solid var(--line-strong); }
.accordion__item { border-bottom: 1px solid var(--line-strong); }
.accordion__btn {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 0;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.5;
}
.accordion__btn:hover { color: var(--terra); }
.accordion__sign { position: relative; flex: 0 0 auto; width: 14px; height: 14px; margin-top: 6px; }
.accordion__sign::before, .accordion__sign::after { content: ""; position: absolute; background: currentColor; }
.accordion__sign::before { left: 0; top: 6px; width: 14px; height: 2px; }
.accordion__sign::after { left: 6px; top: 0; width: 2px; height: 14px; transition: transform 0.2s ease; }
.accordion__btn[aria-expanded="true"] .accordion__sign::after { transform: scaleY(0); }
.accordion__panel { padding-bottom: 20px; font-size: 0.96rem; line-height: 1.8; color: var(--graphite); }
.accordion__panel[hidden] { display: none; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-block: 16px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.filter-chip {
  padding: 7px 14px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--graphite);
  border: 1px solid var(--line-strong);
  background: transparent;
}
.filter-chip:hover { border-color: var(--terra); color: var(--terra); }
.filter-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filter-count {
  margin-left: auto;
  font-family: var(--font-num);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brass-ink);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.copy-btn:hover { border-color: var(--terra); color: var(--terra); }
.copy-feedback { font-size: 0.82rem; color: var(--mint-ink); opacity: 0; transition: opacity 0.2s ease; }
.copy-feedback[data-visible] { opacity: 1; }

/* ---------- 17. Timeline base ---------- */
.timeline { position: relative; padding-left: 26px; border-left: 1px solid var(--line-strong); }
.timeline__item { position: relative; padding-bottom: 28px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 9px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--line-strong);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.timeline__item[data-active]::before { background: var(--brass); border-color: var(--brass); }

/* ---------- 18. Reveal ---------- */
[data-js="on"] [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-js="on"] [data-reveal][data-revealed] { opacity: 1; transform: none; }

/* ---------- 19. Responsive ---------- */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .grid--aside { grid-template-columns: minmax(0, 1fr); }
  .side-index { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; top: auto; }
  .side-index__link { border-left: 0; border-bottom: 2px solid var(--line); }
  .side-index__link[aria-current="true"] { border-left: 0; border-bottom-color: var(--terra); }
}

@media (max-width: 900px) {
  .update-badge { display: none; }
  .masthead__grid {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 68px;
    padding-block: 12px;
  }
  .masthead__left { display: none; }
  .masthead__center { justify-self: start; text-align: left; }
  .masthead__right { justify-self: end; }
  .brand-lockup__sub { font-size: 0.66rem; letter-spacing: 0.08em; }
  .masthead-cta { padding: 9px 12px; font-size: 0.74rem; }

  .nav-toggle { display: flex; }
  .nav-bar {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-bar[data-open] { max-height: 72vh; overflow-y: auto; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 0;
    padding-block: 6px 14px;
  }
  .nav-link {
    display: block;
    padding: 13px 6px;
    border-bottom: 1px dashed var(--line-invert);
  }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] {
    color: var(--paper);
    background: rgba(217, 84, 30, 0.16);
    box-shadow: inset 3px 0 0 var(--terra);
  }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .card--offset { margin-top: 0; }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-legal { flex-direction: column; gap: 6px; }
  .filter-count { margin-left: 0; width: 100%; }
  .timeline { padding-left: 20px; }
  .timeline__item::before { left: -27px; }
}

/* ---------- 20. 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;
  }
  [data-js="on"] [data-reveal] { opacity: 1; transform: none; }
  .card:hover, .btn:hover { transform: none; }
  .card:hover { box-shadow: var(--sheet); }
}
