/* =========================================================
   /assets/site.css — 168彩票讯 共享样式
   报摊 + 仪表盘：深墨绿报头、朱砂红印章、鎏金数据焦点
   ========================================================= */

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body { margin: 0; }

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

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

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

p, h1, h2, h3, h4, h5, h6, figure { margin: 0; }

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

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

/* ---------- variables ---------- */
:root {
  --cinnabar: #B8322A;
  --cinnabar-deep: #9C2820;
  --gold: #C9A227;
  --gold-deep: #7D6410;
  --ink: #0B3B34;
  --ivory: #F8F4E9;
  --graphite: #1C1B18;
  --wine: #6E1F2A;
  --indigo: #2E2A4A;
  --celadon: #A9C8B8;
  --mist: #E4DCCB;
  --patina: #5E7F70;

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;

  --shell-w: min(1280px, calc(100% - clamp(32px, 7vw, 96px)));

  --line-soft: rgba(28, 27, 24, 0.14);
  --line-gold: rgba(201, 162, 39, 0.5);
  --shadow-card: 0 30px 60px -42px rgba(11, 59, 52, 0.6);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- base typography ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: var(--graphite);
  background-color: var(--ivory);
  background-image: radial-gradient(rgba(28, 27, 24, 0.045) 1px, transparent 1px);
  background-size: 26px 26px;
}

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

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

.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--gold);
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: clamp(12px, 3vw, 24px);
  top: -120px;
  z-index: 120;
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: #2A2205;
  font-size: 14px;
  letter-spacing: 0.1em;
  transition: top 0.22s var(--ease);
}

.skip-link:focus {
  top: 14px;
}

/* ---------- shell ---------- */
.shell {
  width: var(--shell-w);
  margin-inline: auto;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  color: var(--ivory);
  box-shadow: 0 1px 0 rgba(201, 162, 39, 0.3);
}

.header-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 3vw, 44px);
  min-height: 78px;
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  color: var(--ivory);
}

.brand__seal {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--cinnabar);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.65), 0 10px 20px -12px rgba(184, 50, 42, 0.95);
}

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.32;
}

.brand__tagline {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  line-height: 1.4;
  color: var(--celadon);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
}

.primary-nav__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}

.primary-nav__list a {
  display: inline-block;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  letter-spacing: 0.09em;
  color: rgba(248, 244, 233, 0.8);
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease);
}

.primary-nav__list a:hover {
  background: rgba(248, 244, 233, 0.1);
  color: var(--ivory);
}

.primary-nav__list a[aria-current="page"] {
  background: var(--cinnabar);
  color: var(--ivory);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.7);
}

.utility-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: clamp(10px, 1.4vw, 22px);
  border-left: 1px solid rgba(248, 244, 233, 0.16);
}

.utility-nav a {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--celadon);
  transition: color 0.2s var(--ease);
}

.utility-nav a:hover,
.utility-nav a[aria-current="page"] {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ivory);
  font-size: 13px;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: background-color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 10px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}

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

.site-header[data-open] .nav-toggle {
  background: var(--cinnabar);
  border-color: var(--cinnabar);
  color: var(--ivory);
}

.site-header[data-open] .nav-toggle__bars::before { top: 4px; transform: rotate(45deg); }
.site-header[data-open] .nav-toggle__bars::after { top: 4px; transform: rotate(-45deg); }

.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(248, 244, 233, 0.12);
  overflow: hidden;
}

.header-progress > span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold), var(--cinnabar));
  transition: transform 0.12s linear;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  margin-top: clamp(48px, 7vw, 96px);
  background: var(--ink);
  color: var(--ivory);
}

.footer-shell {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.25fr;
  gap: clamp(24px, 3vw, 48px);
  padding-block: clamp(42px, 6vw, 76px);
}

.footer-brand__seal {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--cinnabar);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.65);
}

.footer-brand__name {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.footer-brand__desc {
  margin-top: 10px;
  max-width: 28ch;
  font-size: 13.5px;
  line-height: 1.85;
  color: rgba(248, 244, 233, 0.72);
}

.footer-brand__area {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--celadon);
}

.footer-col__title {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  font-size: 14px;
}

.footer-col__list a {
  color: rgba(248, 244, 233, 0.82);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer-col__list a:hover {
  color: var(--gold);
  border-color: var(--line-gold);
}

.footer-contact {
  gap: 9px;
}

.footer-contact li {
  display: flex;
  gap: 10px;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(248, 244, 233, 0.78);
}

.footer-contact__k {
  flex: none;
  width: 2.6em;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--celadon);
}

.footer-col__note {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(169, 200, 184, 0.9);
}

.footer-bar {
  background: var(--wine);
}

.footer-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 16px;
}

.footer-bar__copy {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.09em;
  color: rgba(248, 244, 233, 0.92);
}

.footer-bar__legal {
  max-width: 74ch;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(248, 244, 233, 0.76);
}

/* =========================================================
   LAYOUT BLOCKS
   ========================================================= */
.section { padding-block: clamp(46px, 7vw, 100px); }
.section--tight { padding-block: clamp(28px, 4vw, 58px); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(22px, 3vw, 42px);
}

.slab {
  position: relative;
  padding: clamp(28px, 4.4vw, 72px);
  border-radius: clamp(26px, 4vw, 56px);
  overflow: hidden;
}

.band--ink { background: var(--ink); color: var(--ivory); }
.band--wine { background: var(--wine); color: var(--ivory); }
.band--indigo { background: var(--indigo); color: var(--ivory); }
.band--mist { background: var(--mist); color: var(--graphite); }
.band--ivory { background: var(--ivory); color: var(--graphite); }

.band--ink .lede,
.band--wine .lede,
.band--indigo .lede {
  color: rgba(248, 244, 233, 0.82);
}

.band--ink .h-section,
.band--wine .h-section,
.band--indigo .h-section,
.band--ink .display,
.band--wine .display,
.band--indigo .display {
  color: var(--ivory);
}

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 28px);
}

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

.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-12 { grid-column: span 12; }

.layers {
  display: grid;
  grid-template-columns: minmax(180px, 3fr) minmax(0, 7fr) minmax(160px, 2fr);
  gap: clamp(18px, 2.4vw, 38px);
  align-items: start;
}

.note-card {
  padding-left: 16px;
  border-left: 2px solid var(--line-gold);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--patina);
}

.band--ink .note-card,
.band--wine .note-card,
.band--indigo .note-card {
  border-left-color: var(--gold);
  color: rgba(169, 200, 184, 0.92);
}

/* =========================================================
   TYPE SCALE
   ========================================================= */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: 0.045em;
}

.display--xl { font-size: clamp(40px, 8.2vw, 112px); }
.display--lg { font-size: clamp(32px, 5.6vw, 72px); }
.display--md { font-size: clamp(26px, 3.6vw, 46px); font-weight: 700; }

.h-section {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0.06em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--patina);
}

.eyebrow--gold { color: var(--gold); }

.lede {
  max-width: 58ch;
  font-size: clamp(15.5px, 1.4vw, 18.5px);
  line-height: 1.85;
  color: rgba(28, 27, 24, 0.76);
}

.prose {
  max-width: 66ch;
  font-size: 16.5px;
  line-height: 1.85;
}

.prose p + p { margin-top: 1em; }

.prose--tight {
  font-size: 15px;
  line-height: 1.8;
}

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

.num--xl { font-size: clamp(30px, 4.4vw, 64px); font-weight: 700; line-height: 1.05; }
.num--lg { font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; line-height: 1.15; }
.num--gold { color: var(--gold); }
.num--red { color: var(--cinnabar); }
.num--ink { color: var(--ink); }

.index-label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--patina);
}

.index-label--gold { color: var(--gold); }
.index-label--soft { color: rgba(248, 244, 233, 0.62); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 25px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--mist);
  color: var(--graphite);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease),
    color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

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

.btn--primary {
  background: var(--cinnabar);
  color: var(--ivory);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.45);
}

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

.btn--gold {
  background: var(--gold);
  color: #2A2205;
}

.btn--outline {
  background: transparent;
  border-color: rgba(28, 27, 24, 0.28);
  color: var(--graphite);
}

.btn--outline:hover {
  border-color: var(--ink);
  background: rgba(11, 59, 52, 0.06);
}

.btn--on-dark {
  background: transparent;
  border-color: var(--line-gold);
  color: var(--gold);
}

.btn--on-dark:hover { background: rgba(201, 162, 39, 0.14); }

.btn--sm {
  padding: 8px 17px;
  font-size: 13px;
}

/* =========================================================
   CARDS / PILLS / TABS / BREADCRUMB
   ========================================================= */
.card {
  position: relative;
  padding: clamp(20px, 2.4vw, 32px);
  border-radius: var(--radius-lg);
  background: #FFFFFF;
}

.card--mist { background: var(--mist); }
.card--ink { background: var(--ink); color: var(--ivory); }
.card--wine { background: var(--wine); color: var(--ivory); }
.card--indigo { background: var(--indigo); color: var(--ivory); }

.card--outline {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-soft);
}

.card--float { box-shadow: var(--shadow-card); }
.card--xl { border-radius: var(--radius-xl); }

.card--ink .lede,
.card--wine .lede,
.card--indigo .lede {
  color: rgba(248, 244, 233, 0.82);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--mist);
  color: var(--graphite);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.pill--gold {
  background: rgba(201, 162, 39, 0.15);
  color: var(--gold-deep);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.5);
}

.pill--red {
  background: rgba(184, 50, 42, 0.12);
  color: var(--cinnabar);
}

.pill--ink {
  background: var(--ink);
  color: var(--ivory);
}

.pill--indigo {
  background: rgba(46, 42, 74, 0.1);
  color: var(--indigo);
}

.pill--sm {
  padding: 5px 12px;
  font-size: 12px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--patina);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.breadcrumb li + li::before {
  content: "/";
  color: rgba(94, 127, 112, 0.6);
}

.breadcrumb a { color: var(--patina); }
.breadcrumb a:hover { color: var(--cinnabar); }
.breadcrumb [aria-current="page"] { color: var(--graphite); }

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.tabs__btn {
  flex: none;
  padding: 9px 19px;
  border: 1px solid rgba(28, 27, 24, 0.16);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--graphite);
  font-size: 13.5px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease),
    border-color 0.22s var(--ease);
}

.tabs__btn:hover { border-color: var(--ink); }

.tabs__btn[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ivory);
}

.tabs__panel[hidden] { display: none; }

/* =========================================================
   TABLES
   ========================================================= */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  background: #FFFFFF;
}

.data-table {
  width: 100%;
  min-width: 520px;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 13px 17px;
  text-align: left;
  white-space: nowrap;
}

.data-table thead th {
  position: sticky;
  top: 0;
  background: var(--ink);
  color: var(--ivory);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.data-table tbody tr:nth-child(even) { background: var(--mist); }

.data-table td.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   DISCLOSURE
   ========================================================= */
.disclosure {
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  overflow: hidden;
}

.disclosure + .disclosure { margin-top: 12px; }

.disclosure__btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 24px;
  border: 0;
  background: none;
  color: var(--graphite);
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.disclosure__btn:hover { color: var(--cinnabar); }

.disclosure__icon {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  transition: transform 0.3s var(--ease);
}

.disclosure__icon::before,
.disclosure__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 2px;
  background: var(--cinnabar);
  transform: translate(-50%, -50%);
}

.disclosure__icon::before { width: 14px; height: 2px; }
.disclosure__icon::after {
  width: 2px;
  height: 14px;
  transition: opacity 0.25s var(--ease);
}

.disclosure[data-open] .disclosure__icon::after { opacity: 0; }

.disclosure__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease);
}

.disclosure[data-open] .disclosure__panel { grid-template-rows: 1fr; }

.disclosure__panel > div { overflow: hidden; }

.disclosure__body {
  padding: 0 24px 22px;
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(28, 27, 24, 0.78);
}

/* =========================================================
   MEDIA
   ========================================================= */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--mist);
}

.media > img,
.media > svg,
.media > picture > img,
.media > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--wide { aspect-ratio: 16 / 9; }
.media--photo { aspect-ratio: 4 / 3; }
.media--square { aspect-ratio: 1 / 1; }
.media--portrait { aspect-ratio: 3 / 4; }
.media--tall { aspect-ratio: 2 / 3; }
.media--ink { background: var(--ink); }

.media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 18px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ivory);
  background: linear-gradient(to top, rgba(11, 59, 52, 0.9), rgba(11, 59, 52, 0));
}

.media__tag {
  position: absolute;
  top: 14px;
  left: 14px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(12px, 1.8vw, 20px);
}

/* =========================================================
   REVEAL / TO TOP
   ========================================================= */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 50;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--cinnabar);
  color: var(--ivory);
  font-size: 15px;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 16px 30px -16px rgba(184, 50, 42, 0.95);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease),
    background-color 0.2s var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

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

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .layers { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }

  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px clamp(16px, 5vw, 32px) 26px;
    background: var(--ink);
    border-bottom: 1px solid rgba(201, 162, 39, 0.32);
    box-shadow: 0 34px 44px -32px rgba(0, 0, 0, 0.85);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
      visibility 0.25s var(--ease);
  }

  .site-header[data-open] .primary-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .primary-nav__list a {
    padding: 14px 0;
    border-radius: 0;
    border-bottom: 1px solid rgba(248, 244, 233, 0.1);
    font-size: 16px;
    letter-spacing: 0.1em;
  }

  .primary-nav__list a:hover { background: transparent; color: var(--gold); }

  .primary-nav__list a[aria-current="page"] {
    padding-left: 14px;
    background: transparent;
    box-shadow: none;
    color: var(--gold);
    border-left: 2px solid var(--gold);
  }

  .utility-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 18px;
    padding: 18px 0 0;
    border-left: 0;
  }

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

@media (max-width: 900px) {
  .grid--12 { grid-template-columns: minmax(0, 1fr); }
  .span-3, .span-4, .span-5, .span-6,
  .span-7, .span-8, .span-9, .span-12 { grid-column: auto; }
  .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  .brand__tagline { display: none; }
  .brand__seal { width: 42px; height: 42px; border-radius: 13px; font-size: 13px; }
  .brand__name { font-size: 16px; }
  .footer-shell { grid-template-columns: minmax(0, 1fr); }
  .footer-bar__inner { flex-direction: column; align-items: flex-start; }
  .display { letter-spacing: 0.04em; }
}

/* =========================================================
   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;
  }

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

  .btn:hover { transform: none; }
}
