/* =========================================================
   /assets/site.css — 168彩票讯 共享外壳样式
   1. Reset  2. Tokens  3. Base  4. Utilities  5. Buttons
   6. Tags/Panels/Figures  7. Tables  8. Breadcrumb  9. Header
   10. Footer  11. Floating  12. Reveal  13. Responsive
   ========================================================= */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 128px;
}
body, h1, h2, h3, h4, h5, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #171310;
  --ink-soft: #3A322B;
  --ink-mute: #6B6259;
  --paper: #F8F3E9;
  --sand: #EFE4D4;
  --gray: #D8D3CB;
  --red: #7A1120;
  --red-deep: #560A13;
  --red-bright: #96182B;
  --gold: #C9A24B;
  --amber: #F2B84B;
  --teal: #237A8C;
  --coral: #E56B4A;

  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "IBM Plex Mono", "Roboto Mono", "SFMono-Regular", Menlo, monospace;

  --container: 1240px;
  --gutter: clamp(18px, 4.2vw, 48px);
  --ease: cubic-bezier(.22, .72, .28, 1);
  --cut-clip: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  --shadow-1: 0 10px 26px rgba(23, 19, 16, .10);
  --shadow-2: 0 22px 48px rgba(23, 19, 16, .18);
}

/* ---------- 3. Base ---------- */
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(900px 460px at 88% -10%, rgba(239, 228, 212, .95), transparent 72%),
    radial-gradient(720px 420px at -8% 10%, rgba(201, 162, 75, .10), transparent 70%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: .01em;
}

::selection { background: rgba(242, 184, 75, .45); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}
.status-strip :focus-visible,
.site-footer :focus-visible,
.panel--dark :focus-visible,
.panel--red :focus-visible { outline-color: var(--amber); }

/* ---------- 4. Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 860px; }

.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(32px, 4vw, 56px); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: clamp(22px, 3vw, 38px);
}

.display-xl {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.06;
  letter-spacing: .005em;
}
.display-l {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.95rem, 4.2vw, 3.1rem);
  line-height: 1.14;
}
.h-2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  line-height: 1.3;
}
.h-3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.4;
}
.lede {
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 62ch;
}
.prose {
  max-width: 70ch;
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}
.prose p + p { margin-top: 1.05em; }
.prose h2, .prose h3 { color: var(--ink); margin-top: 1.8em; margin-bottom: .5em; }

.meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--ink-mute);
}
.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .24em;
  color: var(--red);
}
.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
  flex: none;
}
.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--gold), rgba(201, 162, 75, 0));
}

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 2px;
  clip-path: var(--cut-clip);
  transition: background-color .28s var(--ease), color .28s var(--ease),
              border-color .28s var(--ease), transform .28s var(--ease);
}
.btn--primary {
  background: linear-gradient(135deg, var(--red-bright), var(--red) 58%, var(--red-deep));
  color: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 75, .55);
}
.btn--primary:hover { color: var(--amber); transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  border-color: var(--gold);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--sand); border-color: var(--red); color: var(--red); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--red); color: var(--amber); }
.btn--block { width: 100%; }
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--amber); }

/* ---------- 6. Tags / Panels / Figures ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--gold);
  border-radius: 1px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: #5F4A16;
  background: rgba(201, 162, 75, .10);
  white-space: nowrap;
}
.tag--amber { border-color: var(--amber); color: #6A4A05; background: rgba(242, 184, 75, .20); }
.tag--teal { border-color: var(--teal); color: #155E6C; background: rgba(35, 122, 140, .10); }
.tag--coral { border-color: var(--coral); color: #A83C1E; background: rgba(229, 107, 74, .12); }
.tag--dark { border-color: rgba(248, 243, 233, .35); color: var(--paper); background: rgba(23, 19, 16, .40); }

.panel {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--gray);
  padding: clamp(18px, 2.4vw, 28px);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.panel--sand { background: var(--sand); }
.panel--dark {
  background: linear-gradient(160deg, #241D17, #171310);
  color: var(--paper);
  border-color: rgba(201, 162, 75, .35);
}
.panel--red {
  background: linear-gradient(155deg, var(--red), var(--red-deep));
  color: var(--paper);
  border-color: rgba(201, 162, 75, .45);
}
.panel--red .panel-title, .panel--dark .panel-title { color: var(--paper); }
.panel-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: .4em;
  color: var(--ink);
  line-height: 1.35;
}

.figure-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--sand) 0%, #F3EADB 45%, var(--gray) 100%);
  border: 1px solid rgba(201, 162, 75, .45);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}
.figure-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(122, 17, 32, .10) 0 1px, transparent 1px 14px);
  pointer-events: none;
}
.figure-frame img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.figure-frame--wide { aspect-ratio: 21 / 9; }
.figure-frame--tall { aspect-ratio: 4 / 5; }
.figure-frame--square { aspect-ratio: 1 / 1; }
.figure-caption {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--ink-mute);
  margin-top: .6em;
}

/* ---------- 7. Tables ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  color: var(--ink);
}
.data-table caption {
  caption-side: top;
  text-align: left;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--ink-mute);
  padding-bottom: 10px;
}
.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, #7A1120, #5A0B16);
  color: var(--paper);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .1em;
  text-align: left;
  padding: 12px 14px;
  white-space: nowrap;
}
.data-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--gray);
  vertical-align: middle;
}
.data-table tbody tr:nth-child(even) { background: var(--sand); }
.data-table tbody tr:hover { background: rgba(242, 184, 75, .22); }
.data-table tbody td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- 8. Breadcrumb ---------- */
.breadcrumb {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--ink-mute);
}
.breadcrumb-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumb-item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb-item + .breadcrumb-item::before { content: "／"; color: var(--gold); }
.breadcrumb a { transition: color .2s var(--ease); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb-item[aria-current="page"] { color: var(--red); }

/* ---------- 9. Header ---------- */
.skip-link {
  position: fixed;
  left: 50%;
  top: -80px;
  transform: translateX(-50%);
  z-index: 400;
  padding: 10px 22px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--gold);
  font-size: 13px;
  letter-spacing: .1em;
  transition: top .22s var(--ease);
}
.skip-link:focus { top: 10px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(23, 19, 16, .10), 0 10px 24px rgba(23, 19, 16, .06);
  transition: box-shadow .3s var(--ease);
}
.site-header[data-scrolled="true"] {
  box-shadow: 0 1px 0 rgba(23, 19, 16, .12), 0 14px 32px rgba(23, 19, 16, .14);
}

.status-strip {
  background: linear-gradient(96deg, var(--red-deep) 0%, var(--red) 48%, var(--red-bright) 100%);
  color: var(--paper);
}
.status-strip-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 7px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 12px;
  letter-spacing: .08em;
}
.status-item { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.status-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(242, 184, 75, .22);
  animation: statusPulse 2.8s var(--ease) infinite;
}
@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .42; transform: scale(.76); }
}
.status-label { color: rgba(248, 243, 233, .74); }
.status-value {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--amber);
  white-space: nowrap;
}
.status-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  color: rgba(248, 243, 233, .68);
  white-space: nowrap;
}
.status-meta-sep { width: 1px; height: 10px; background: rgba(248, 243, 233, .38); }

.masthead {
  position: relative;
  background: linear-gradient(180deg, #FBF7EF, #F8F3E9);
  border-bottom: 1px solid rgba(201, 162, 75, .55);
}
.masthead::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 38%;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold) 60%, transparent);
  pointer-events: none;
}
.masthead-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: padding .3s var(--ease);
}
.site-header[data-scrolled="true"] .masthead-inner { padding-block: 9px; }

.brand { display: inline-flex; align-items: center; gap: 14px; min-width: 0; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: none;
  background: linear-gradient(150deg, var(--red-bright), var(--red) 55%, var(--red-deep));
  color: var(--amber);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 75, .5);
}
.brand-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.15;
  color: var(--ink);
}
.brand-descriptor {
  font-size: 11px;
  letter-spacing: .24em;
  line-height: 1.2;
  color: #7C7268;
  white-space: nowrap;
}

.nav-wrap { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 26px); }
.site-nav { display: block; }
.site-nav-list { display: flex; align-items: center; gap: clamp(2px, .5vw, 6px); }
.nav-link {
  position: relative;
  display: inline-block;
  padding: 9px 10px;
  font-size: 13.5px;
  letter-spacing: .05em;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color .24s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 3px;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-link:hover { color: var(--red); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--red); font-weight: 600; }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  background: linear-gradient(135deg, var(--red-bright), var(--red) 60%, var(--red-deep));
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  clip-path: var(--cut-clip);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 75, .55);
  transition: color .26s var(--ease);
  white-space: nowrap;
}
.header-cta::after {
  content: "→";
  font-family: var(--mono);
  font-size: 14px;
  opacity: .85;
  transition: transform .26s var(--ease);
}
.header-cta:hover { color: var(--amber); }
.header-cta:hover::after { transform: translateX(3px); }
.header-cta:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--amber); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--gold);
  background: rgba(239, 228, 212, .6);
  color: var(--ink);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
}
.nav-toggle:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--teal); }
.nav-toggle-label { font-size: 12.5px; letter-spacing: .14em; }
.nav-toggle-bars {
  position: relative;
  width: 16px;
  height: 2px;
  background: var(--red);
  transition: background-color .2s var(--ease);
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--red);
  transition: transform .26s var(--ease), top .26s var(--ease);
}
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }
.site-header[data-open="true"] .nav-toggle-bars { background: transparent; }
.site-header[data-open="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.site-header[data-open="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* ---------- 10. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  background: linear-gradient(180deg, #1E1914 0%, #171310 55%, #120F0C 100%);
  color: rgba(248, 243, 233, .82);
  overflow: hidden;
}
.footer-rail {
  height: 6px;
  background-image:
    repeating-linear-gradient(90deg, rgba(23, 19, 16, .85) 0 1px, transparent 1px 22px),
    linear-gradient(90deg, var(--red-deep) 0%, var(--red) 30%, var(--gold) 68%, var(--amber) 92%, var(--red) 100%);
}
.footer-inner {
  position: relative;
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(38px, 5vw, 64px) var(--gutter) clamp(20px, 3vw, 30px);
}
.footer-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(201, 162, 75, .07) 0 1px, transparent 1px 16px);
  pointer-events: none;
}
.footer-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.55fr .85fr;
  gap: clamp(26px, 4vw, 56px);
  align-items: start;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.footer-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: linear-gradient(150deg, var(--red-bright), var(--red-deep));
  color: var(--amber);
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: .04em;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 75, .55);
}
.footer-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--paper);
  line-height: 1.2;
}
.footer-summary {
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(248, 243, 233, .6);
  max-width: 26ch;
}
.footer-region {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid rgba(201, 162, 75, .45);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--gold);
  white-space: nowrap;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 20px;
}
.footer-col { min-width: 0; }
.footer-col-title {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  color: var(--gold);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(201, 162, 75, .28);
}
.footer-list { display: flex; flex-direction: column; gap: 9px; }
.footer-link {
  position: relative;
  display: inline-block;
  font-size: 13.5px;
  color: rgba(248, 243, 233, .72);
  transition: color .22s var(--ease), transform .22s var(--ease);
}
.footer-link::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 5px;
  height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .24s var(--ease);
}
.footer-link:hover { color: var(--amber); transform: translateX(4px); }
.footer-link:hover::before { transform: scaleX(1); }
.footer-contact { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.footer-contact-item { display: flex; flex-direction: column; gap: 1px; font-size: 13px; }
.footer-contact-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  color: rgba(248, 243, 233, .45);
}
.footer-contact-value { color: var(--paper); word-break: break-word; line-height: 1.6; }
.footer-legal {
  position: relative;
  z-index: 1;
  margin-top: clamp(26px, 4vw, 42px);
  padding-top: 18px;
  border-top: 1px solid rgba(216, 211, 203, .18);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
}
.footer-copy {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: rgba(248, 243, 233, .52);
}
.footer-note {
  font-size: 12px;
  letter-spacing: .06em;
  color: rgba(248, 243, 233, .42);
}

/* ---------- 11. Floating ---------- */
.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--red), var(--gold) 55%, var(--amber));
  z-index: 300;
  pointer-events: none;
}
.back-to-top {
  position: fixed;
  right: clamp(14px, 3vw, 30px);
  bottom: clamp(14px, 3vw, 30px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--ink);
  color: var(--amber);
  border: 1px solid rgba(201, 162, 75, .55);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease),
              visibility .3s var(--ease), background-color .3s var(--ease);
}
.back-to-top[data-visible="true"] { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--red); color: var(--paper); }
.back-to-top:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* ---------- 12. Reveal ---------- */
.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .62s var(--ease), transform .62s var(--ease);
}
.has-reveal [data-reveal].is-revealed { opacity: 1; transform: none; }

/* ---------- 13. Responsive ---------- */
@media (min-width: 1001px) and (max-width: 1180px) {
  .nav-link { padding: 9px 7px; font-size: 12.5px; letter-spacing: .02em; }
  .header-cta { padding: 10px 14px; font-size: 12px; }
  .brand-descriptor { display: none; }
}

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .nav-wrap {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 120;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px var(--gutter) 22px;
    background: linear-gradient(180deg, #FBF7EF, #F8F3E9);
    border-top: 1px solid var(--gold);
    border-bottom: 1px solid var(--gray);
    box-shadow: var(--shadow-2);
  }
  .site-header[data-open="true"] .nav-wrap { display: flex; }
  .site-nav { width: 100%; }
  .site-nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link {
    display: block;
    padding: 13px 2px;
    font-size: 15px;
    border-bottom: 1px solid rgba(216, 211, 203, .7);
  }
  .nav-link::after { left: 2px; right: auto; width: 26px; bottom: 8px; }
  .header-cta { margin-top: 16px; width: 100%; padding: 13px 20px; }
}

@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
  .footer-contact .footer-col-title { grid-column: 1 / -1; margin-bottom: 0; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

@media (max-width: 720px) {
  .status-meta { display: none; }
  .status-strip-inner { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-contact { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
  .brand-mark { width: 40px; height: 40px; font-size: 13px; }
  .brand-name { font-size: 1.12rem; letter-spacing: .08em; }
  .brand-descriptor { font-size: 9.5px; letter-spacing: .16em; }
  .masthead-inner { padding-block: 11px; }
  html { scroll-padding-top: 104px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .status-dot { animation: none; }
  .has-reveal [data-reveal] { opacity: 1; transform: none; }
  .back-to-top { transition: none; }
}
