/* ===========================================================
   火狐看台 · 共享样式 /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, ul, ol, li, figure, figcaption,
dl, dt, dd, blockquote { margin: 0; padding: 0; }

ul, ol { list-style: none; }

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

a { color: inherit; text-decoration: none; }

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

table { width: 100%; border-collapse: collapse; }

/* ---------- 2. tokens ---------- */
:root {
  --fox-orange: #F04E23;
  --ink: #121014;
  --ink-2: #1C1B22;
  --ink-3: #232230;
  --gray-blue: #8FA3B8;
  --indigo: #2B2A5E;
  --teal: #0F3B3A;
  --wine: #5A1B2A;
  --cyan: #2FF3D6;
  --amber: #FFC24B;
  --paper: #F4EFE6;
  --line: #C9C3B8;
  --on-paper: #1A1A1A;
  --text: #E7E1D6;

  --hair: 1px solid rgba(201, 195, 184, 0.22);
  --hair-strong: 1px solid rgba(201, 195, 184, 0.45);
  --hair-paper: 1px solid rgba(26, 26, 26, 0.18);

  --fs-12: 12px;
  --fs-14: 14px;
  --fs-16: 16px;
  --fs-20: 20px;
  --fs-28: 28px;
  --fs-40: 40px;
  --fs-60: 60px;

  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --rail: 88px;
  --rail-open: 236px;
  --bar-h: 62px;
  --shell: 1240px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. base ---------- */
html { background: var(--ink); }

body {
  min-height: 100vh;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 1024px) {
  body { padding-left: var(--rail); }
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* ---------- 4. layout ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

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

.section--paper {
  background: var(--paper);
  color: var(--on-paper);
  border-block: 1px solid rgba(26, 26, 26, 0.12);
}

.section--teal { background: var(--teal); color: var(--paper); }
.section--indigo { background: var(--indigo); color: var(--paper); }
.section--wine { background: var(--wine); color: var(--paper); }

.page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 40px);
}

@media (min-width: 1120px) {
  .page-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
}

.section__head {
  display: grid;
  gap: 12px;
  max-width: 62ch;
  margin-bottom: clamp(24px, 4vw, 40px);
}

/* ---------- 5. typography ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}

.section--paper .eyebrow { color: #8C3A11; }

.display {
  font-size: clamp(28px, 4.2vw, 60px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.section--paper .display { color: var(--on-paper); }

.lede {
  max-width: 56ch;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.8;
  color: var(--gray-blue);
}

.section--paper .lede { color: #4A4740; }

.label {
  font-family: var(--font-sans);
  font-size: var(--fs-12);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-blue);
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.muted { color: var(--gray-blue); }

.rule {
  border: 0;
  border-top: var(--hair);
  margin-block: clamp(20px, 3vw, 32px);
}

/* ---------- 6. buttons / tags ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  font-size: var(--fs-14);
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: transform 0.16s var(--ease), background-color 0.18s var(--ease),
    color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--signal { background: var(--fox-orange); color: #170C07; }
.btn--signal:hover { background: #FF6534; }

.btn--ghost { border-color: rgba(201, 195, 184, 0.5); color: var(--paper); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.btn--paper { background: var(--paper); color: var(--on-paper); border-color: rgba(26, 26, 26, 0.2); }

.btn--compact { min-height: 36px; padding: 0 14px; font-size: 13px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-blue);
  border: 1px solid rgba(201, 195, 184, 0.45);
  border-radius: 1px;
}

.tag--amber { color: var(--amber); border-color: rgba(255, 194, 75, 0.55); }
.tag--cyan { color: var(--cyan); border-color: rgba(47, 243, 214, 0.5); }
.tag--print { background: var(--paper); color: var(--on-paper); border-color: rgba(26, 26, 26, 0.35); }

/* ---------- 7. breadcrumb ---------- */
.breadcrumb { margin-top: clamp(16px, 2vw, 24px); }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--gray-blue);
}

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

.breadcrumb__link {
  color: var(--gray-blue);
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.breadcrumb__link:hover { color: var(--cyan); border-bottom-color: rgba(47, 243, 214, 0.5); }

.breadcrumb__sep { color: rgba(143, 163, 184, 0.5); }

.breadcrumb__current { color: var(--paper); }

/* ---------- 8. figure ---------- */
.figure {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  border: var(--hair-strong);
  background:
    linear-gradient(150deg, rgba(240, 78, 35, 0.22), rgba(15, 59, 58, 0.6) 50%, rgba(43, 42, 94, 0.65)),
    var(--ink-2);
}

.figure::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(244, 239, 230, 0.22);
  pointer-events: none;
}

.figure__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.96);
}

.figure__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--paper);
  background: linear-gradient(0deg, rgba(18, 16, 20, 0.88), rgba(18, 16, 20, 0));
}

.figure--cover { aspect-ratio: 4 / 5; }
.figure--wide { aspect-ratio: 16 / 9; }
.figure--square { aspect-ratio: 1 / 1; }

/* ---------- 9. board card ---------- */
.board {
  position: relative;
  display: grid;
  gap: 14px;
  padding: clamp(18px, 2.4vw, 26px);
  background: var(--ink-2);
  border: var(--hair-strong);
  box-shadow: 7px 7px 0 -1px rgba(201, 195, 184, 0.1);
}

.section--paper .board {
  background: #FBF7F0;
  border: var(--hair-paper);
  box-shadow: 7px 7px 0 -1px rgba(26, 26, 26, 0.08);
}

.board__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
}

.board__title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.section--paper .board__title { color: var(--on-paper); }

.board__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--gray-blue);
}

.board__figure { margin: 0; }

.board__foot {
  padding-top: 12px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--gray-blue);
  border-top: 1px dashed rgba(201, 195, 184, 0.25);
}

.section--paper .board__foot { color: #5A564D; border-top-color: rgba(26, 26, 26, 0.18); }

.board__link {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
  border-bottom: 1px solid rgba(47, 243, 214, 0.4);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.board__link:hover { color: var(--paper); border-bottom-color: var(--paper); }

.section--paper .board__link { color: #0B6B5E; border-bottom-color: rgba(11, 107, 94, 0.4); }

/* ---------- 10. compare ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr;
  border: var(--hair);
}

@media (min-width: 640px) {
  .compare { grid-template-columns: 1fr 1px 1fr; }
}

.compare__col { display: grid; gap: 6px; padding: 16px 18px; }

.compare__col .label { color: var(--gray-blue); }

.compare__value {
  font-family: var(--font-mono);
  font-size: var(--fs-28);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: var(--paper);
}

.compare__divider { background: rgba(201, 195, 184, 0.3); }

@media (max-width: 639px) {
  .compare__divider { height: 1px; width: 100%; }
}

.compare__delta {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.04em;
  color: var(--amber);
}

/* ---------- 11. segmented tabs ---------- */
.segmented { display: grid; }

.segmented__list {
  position: relative;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: var(--hair);
}

.segmented__list::-webkit-scrollbar { display: none; }

.segmented__list::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: var(--tab-w, 0px);
  height: 2px;
  transform: translateX(var(--tab-x, 0px));
  background: var(--amber);
  transition: transform 0.18s var(--ease), width 0.18s var(--ease);
}

.segmented__tab {
  flex: 0 0 auto;
  padding: 10px 14px;
  font-size: var(--fs-14);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gray-blue);
  white-space: nowrap;
  transition: color 0.18s var(--ease);
}

.segmented__tab:hover { color: var(--paper); }
.segmented__tab[aria-selected="true"] { color: var(--paper); }

.segmented__panel { padding-top: clamp(18px, 3vw, 28px); }
.segmented__panel[hidden] { display: none; }

/* ---------- 12. timeline ---------- */
.timeline {
  position: relative;
  display: grid;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: rgba(201, 195, 184, 0.3);
}

.timeline__item { position: relative; padding: 10px 0; }

.timeline__item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 17px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--line);
}

.timeline__item[data-current="true"]::before {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(47, 243, 214, 0.16);
}

.timeline__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--paper);
}

.timeline__desc {
  display: block;
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray-blue);
}

/* ---------- 13. collapsible stat rows ---------- */
.stat-row { border-bottom: var(--hair); }

.stat-row__toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 4px;
  text-align: left;
  font-size: var(--fs-14);
  color: var(--text);
  transition: color 0.18s var(--ease);
}

.stat-row__toggle:hover { color: var(--amber); }

.stat-row__toggle::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--amber);
}

.stat-row[data-open="true"] .stat-row__toggle::after { content: "–"; }

.stat-row__panel { padding: 0 4px 18px; }

.stat-row__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(201, 195, 184, 0.22);
}

.stat { display: grid; gap: 2px; }

.stat__value {
  font-family: var(--font-mono);
  font-size: var(--fs-20);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  color: var(--amber);
}

.stat__label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gray-blue);
}

/* ---------- 14. reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms);
}

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

/* ---------- 15. skip link ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  font-size: var(--fs-14);
  font-weight: 800;
  color: #0A1A18;
  background: var(--cyan);
  border-radius: var(--radius);
  transform: translateY(-180%);
  transition: transform 0.18s var(--ease);
}

.skip-link:focus { transform: translateY(0); }

/* ---------- 16. header ---------- */
.site-header {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 90;
  width: var(--rail);
  background: var(--ink-2);
  border-right: 1px solid rgba(201, 195, 184, 0.22);
  transition: width 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.site-header__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 100%;
  height: 100%;
  padding: 16px 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}

.site-header:hover,
.site-header:focus-within {
  width: var(--rail-open);
  box-shadow: 24px 0 48px rgba(0, 0, 0, 0.45);
}

/* brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding: 0 16px 0 18px;
  min-height: 48px;
}

.brand__mark {
  position: relative;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--fox-orange);
  color: #160D09;
  font-size: var(--fs-20);
  font-weight: 900;
  line-height: 1;
  border-radius: var(--radius);
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(18, 16, 20, 0.35);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.site-header:hover .brand__text,
.site-header:focus-within .brand__text { opacity: 1; transform: none; }

.brand__name {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--paper);
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--gray-blue);
}

.site-header__tag {
  padding: 0 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(143, 163, 184, 0.8);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.site-header:hover .site-header__tag,
.site-header:focus-within .site-header__tag { opacity: 1; }

/* nav rail */
.site-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 8px 0;
}

.site-nav__eyebrow,
.site-nav__foot {
  padding: 0 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(143, 163, 184, 0.75);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.site-nav__eyebrow { margin-bottom: 8px; }
.site-nav__foot { margin-top: 10px; }

.site-header:hover .site-nav__eyebrow,
.site-header:hover .site-nav__foot,
.site-header:focus-within .site-nav__eyebrow,
.site-header:focus-within .site-nav__foot { opacity: 1; }

.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-nav__item { display: block; }

.site-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 16px 0 22px;
  color: var(--gray-blue);
  border-left: 2px solid transparent;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.site-nav__link:hover {
  color: var(--paper);
  background: rgba(244, 239, 230, 0.05);
}

.site-nav__idx {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.04em;
  color: inherit;
}

.site-nav__label {
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}

.site-header:hover .site-nav__label,
.site-header:focus-within .site-nav__label { opacity: 1; transform: none; }

.site-nav__link[aria-current="page"] {
  color: var(--paper);
  border-left-color: var(--fox-orange);
  background: linear-gradient(90deg, rgba(240, 78, 35, 0.2), rgba(240, 78, 35, 0) 72%);
}

.site-nav__link[aria-current="page"] .site-nav__idx { color: var(--fox-orange); }

/* quick entry */
.quick-entry {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto 8px 0;
  min-height: 48px;
  padding: 8px;
  text-align: center;
  background: var(--fox-orange);
  color: #170C07;
  border-radius: var(--radius);
  transition: background-color 0.18s var(--ease), transform 0.16s var(--ease);
}

.quick-entry:hover { background: #FF6534; transform: translateY(-1px); }

.quick-entry__label {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.04em;
}

/* toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  color: var(--paper);
  border: 1px solid rgba(201, 195, 184, 0.45);
  border-radius: var(--radius);
}

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.18s var(--ease), opacity 0.18s var(--ease);
}

.nav-toggle__text {
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.site-header[data-open="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.site-header[data-open="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 17. footer ---------- */
.site-footer {
  background: linear-gradient(180deg, #141319 0%, var(--ink) 46%);
  border-top: 1px solid rgba(201, 195, 184, 0.28);
  color: var(--text);
  padding-top: clamp(40px, 6vw, 72px);
}

.site-footer__inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.footer__masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  padding-bottom: clamp(22px, 3vw, 32px);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer__brand-text { display: flex; flex-direction: column; gap: 2px; }

.footer__brand-name {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--paper);
}

.footer__brand-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-blue);
}

.footer__lede {
  max-width: 36ch;
  font-size: var(--fs-14);
  line-height: 1.75;
  color: var(--gray-blue);
}

.footer__masthead .btn { margin-left: auto; }

.footer__ticks {
  height: 10px;
  margin-bottom: clamp(22px, 3vw, 34px);
  background-image: repeating-linear-gradient(90deg, rgba(201, 195, 184, 0.4) 0 1px, transparent 1px 14px);
  opacity: 0.7;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding-bottom: clamp(26px, 4vw, 40px);
  border-bottom: var(--hair);
}

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

@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: repeat(3, minmax(120px, 1fr)) minmax(0, 1.6fr); gap: 32px; }
}

.footer__col-title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  border-bottom: var(--hair);
}

.footer__list { display: grid; gap: 2px; }

.footer__link {
  display: inline-block;
  padding: 5px 0;
  font-size: var(--fs-14);
  color: var(--gray-blue);
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}

.footer__link:hover {
  color: var(--paper);
  transform: translateX(3px);
  text-decoration: underline;
  text-decoration-color: var(--fox-orange);
  text-underline-offset: 5px;
}

.footer__contact-list { display: grid; }

.footer__contact-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(201, 195, 184, 0.16);
}

.footer__contact-row:last-child { border-bottom: 0; }

.footer__label {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gray-blue);
}

.footer__value {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text);
  word-break: break-word;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding: 18px 0 clamp(24px, 3vw, 32px);
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.04em;
  color: var(--gray-blue);
}

.footer__copy { margin-left: auto; }

/* ---------- 18. mobile / tablet header ---------- */
@media (max-width: 1023px) {
  .site-header {
    position: sticky;
    inset: auto;
    top: 0;
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid rgba(201, 195, 184, 0.22);
    background: #15131A;
  }

  .site-header:hover,
  .site-header:focus-within {
    width: 100%;
    box-shadow: none;
  }

  .site-header__inner {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    height: var(--bar-h);
    padding: 0 14px;
    overflow: visible;
  }

  .brand { padding: 0; min-height: 44px; gap: 10px; }

  .brand__mark { flex-basis: 38px; width: 38px; height: 38px; font-size: 17px; }

  .brand__text,
  .site-header:hover .brand__text,
  .site-header:focus-within .brand__text { opacity: 1; transform: none; }

  .brand__name { font-size: 16px; }
  .brand__sub { font-size: 10px; }

  .site-header__tag { display: none; }

  .quick-entry {
    margin: 0 0 0 auto;
    min-height: 38px;
    padding: 0 12px;
  }

  .quick-entry__label { font-size: var(--fs-12); }

  .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 96;
    flex: 0 0 auto;
  }

  /* drawer */
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: flex;
    flex-direction: column;
    padding: calc(var(--bar-h) + 26px) 22px 32px;
    background: linear-gradient(165deg, #1B1F30 0%, #121014 46%, #291019 100%);
    border-right: 1px solid rgba(201, 195, 184, 0.2);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s var(--ease);
  }

  .site-header[data-open="true"] .site-nav {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .site-nav__eyebrow,
  .site-nav__foot {
    padding: 0 6px;
    font-size: 11px;
    opacity: 1;
  }

  .site-nav__eyebrow { margin-bottom: 12px; }

  .site-nav__list { gap: 0; margin-top: 4px; }

  .site-nav__link {
    min-height: 64px;
    padding: 0 6px;
    gap: 12px;
    color: var(--paper);
    border-left: 0;
    border-bottom: 1px solid rgba(201, 195, 184, 0.16);
  }

  .site-nav__link:hover { background: rgba(244, 239, 230, 0.04); }

  .site-nav__idx { font-size: 11px; color: var(--gray-blue); }

  .site-nav__label,
  .site-header:hover .site-nav__label,
  .site-header:focus-within .site-nav__label {
    opacity: 1;
    transform: none;
    font-size: 17px;
    font-weight: 700;
  }

  .site-nav__link[aria-current="page"] {
    background: linear-gradient(90deg, rgba(240, 78, 35, 0.16), rgba(240, 78, 35, 0));
    border-left: 0;
    border-bottom-color: var(--fox-orange);
  }

  .site-nav__link[aria-current="page"] .site-nav__idx { color: var(--fox-orange); }

  .site-nav__foot { margin-top: auto; padding-top: 20px; }

  .footer__masthead .btn { margin-left: 0; }
}

/* ---------- 19. small screens ---------- */
@media (max-width: 479px) {
  .brand__sub { display: none; }
  .footer__brand-name { font-size: 18px; }
  .footer__copy { margin-left: 0; }
  .footer__contact-row { grid-template-columns: 48px minmax(0, 1fr); }
}

@media (max-width: 719px) {
  .footer__masthead { gap: 16px; }
  .footer__lede { max-width: none; }
}

/* ---------- 20. motion preferences ---------- */
@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;
  }

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

  .segmented__list::after { transition: none; }
}
