/* ==========================================================================
   澳门威斯人站 · 共享样式表 /assets/site.css
   深空蓝基底 + 霓虹青/活力橙强调 + 紫罗兰过渡
   悬浮胶囊 · 粗边框硬阴影 · 章节编号色带
   ========================================================================== */

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

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

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

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

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

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

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

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

/* ---------- 2. Tokens ---------- */
:root {
  --ink-900: #071426;
  --ink-800: #0B1E3A;
  --indigo: #7B2FBE;
  --cyan: #00E5FF;
  --orange: #FF6B35;
  --violet: #B794F6;
  --frost: #F4F7FF;
  --steel: #A9B8D6;
  --line: #25406B;
  --mint: #3DDC97;
  --teal: #0E3B3A;
  --wine: #6B1F3B;

  --font-sans: "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --radius-pill: 999px;

  --shadow-hard: 0 8px 0 rgba(7, 20, 38, .62);
  --shadow-hard-lift: 0 12px 0 rgba(7, 20, 38, .68);
  --shadow-glow: 0 0 24px rgba(0, 229, 255, .22);

  --wrap: 1240px;
  --gutter: clamp(16px, 3.2vw, 36px);
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink-800);
  background-image:
    radial-gradient(1100px 640px at 86% -12%, rgba(123, 47, 190, .40), transparent 72%),
    radial-gradient(820px 520px at 6% 0%, rgba(0, 229, 255, .14), transparent 70%),
    linear-gradient(180deg, #0B1E3A 0%, #0B1E3A 48%, #071426 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--frost);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  overflow-x: hidden;
}

::selection { background: var(--cyan); color: var(--ink-900); }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.12; letter-spacing: .04em; }

strong { font-weight: 800; color: var(--frost); }

/* ---------- 4. Layout utilities ---------- */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: 780px; }
.container-wide { max-width: 1440px; }

.section {
  position: relative;
  padding-block: clamp(40px, 6vw, 88px);
}
.section-tight { padding-block: clamp(22px, 3.4vw, 44px); }

.stack > * + * { margin-top: var(--stack-gap, 16px); }

.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-asym { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }

.divider {
  height: 2px;
  border: 0;
  background: linear-gradient(90deg, var(--line), rgba(37, 64, 107, .1));
}

/* ---------- 5. Typography ---------- */
.h-display {
  font-size: clamp(2.25rem, 5.2vw, 4.25rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: .04em;
}
.h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: .04em;
}
.h2 {
  font-size: clamp(1.6rem, 3.1vw, 2.6rem);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: .04em;
}
.h3 {
  font-size: clamp(1.2rem, 1.9vw, 1.6rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: .03em;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
}
.lede {
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.8;
  color: var(--steel);
  max-width: 62ch;
}
.prose {
  max-width: 70ch;
  line-height: 1.8;
  color: var(--steel);
}
.prose p + p { margin-top: .9em; }
.prose strong { color: var(--frost); }

.text-cyan { color: var(--cyan); }
.text-orange { color: var(--orange); }
.text-violet { color: var(--violet); }
.text-mint { color: var(--mint); }
.mono { font-family: var(--font-mono); letter-spacing: .06em; }

/* ---------- 6. Chapter bands ---------- */
.chapter-band {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--steel);
}
.chapter-band::before {
  content: "";
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 0 14px rgba(0, 229, 255, .55);
}
.chapter-index {
  font-weight: 700;
  color: var(--orange);
  letter-spacing: .1em;
}

.band-teal { background: linear-gradient(180deg, rgba(14, 59, 58, .82), rgba(14, 59, 58, .22)); }
.band-wine { background: linear-gradient(180deg, rgba(107, 31, 59, .78), rgba(107, 31, 59, .18)); }
.band-indigo { background: linear-gradient(180deg, rgba(123, 47, 190, .52), rgba(123, 47, 190, .12)); }

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: var(--radius-s);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .05em;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease, color .18s ease;
}
.btn:active { transform: translateY(2px); }

.btn-primary {
  color: var(--ink-900);
  background: linear-gradient(100deg, var(--orange), #FF9B6B);
  border-color: rgba(255, 255, 255, .16);
  box-shadow: 0 4px 0 rgba(107, 31, 59, .85);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(107, 31, 59, .9), 0 12px 26px rgba(255, 107, 53, .28);
}

.btn-cyan {
  color: var(--ink-900);
  background: var(--cyan);
  border-color: rgba(255, 255, 255, .18);
  box-shadow: 0 4px 0 rgba(0, 229, 255, .28);
}
.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(0, 229, 255, .3), 0 12px 26px rgba(0, 229, 255, .26);
}

.btn-ghost {
  color: var(--frost);
  background: rgba(7, 20, 38, .55);
  border-color: var(--line);
}
.btn-ghost:hover {
  color: var(--cyan);
  border-color: rgba(0, 229, 255, .6);
  transform: translateY(-2px);
}

/* ---------- 8. Tags & status ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(7, 20, 38, .65);
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
  white-space: nowrap;
}
.tag--cyan { color: var(--cyan); border-color: rgba(0, 229, 255, .45); background: rgba(0, 229, 255, .10); }
.tag--orange { color: var(--orange); border-color: rgba(255, 107, 53, .45); background: rgba(255, 107, 53, .10); }
.tag--mint { color: var(--mint); border-color: rgba(61, 220, 151, .45); background: rgba(61, 220, 151, .10); }
.tag--violet { color: var(--violet); border-color: rgba(183, 148, 246, .45); background: rgba(183, 148, 246, .10); }

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px rgba(61, 220, 151, .85);
}

/* ---------- 9. Panels ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.6vw, 30px);
  border: 2px solid var(--line);
  border-radius: var(--radius-m);
  background: linear-gradient(160deg, rgba(11, 30, 58, .94), rgba(7, 20, 38, .94));
  box-shadow: var(--shadow-hard);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.panel:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, .7);
  box-shadow: var(--shadow-hard-lift), 0 0 0 1px rgba(0, 229, 255, .2), var(--shadow-glow);
}
.panel-flat {
  position: relative;
  padding: clamp(16px, 2.2vw, 26px);
  border: 2px solid var(--line);
  border-radius: var(--radius-m);
  background: rgba(7, 20, 38, .62);
}

/* ---------- 10. Breadcrumbs ---------- */
.breadcrumbs { padding-block: 14px; }
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--steel);
}
.breadcrumb-list li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb-list li + li::before {
  content: "/";
  color: var(--line);
  margin-inline-end: 0;
}
.breadcrumb-list a { color: var(--steel); transition: color .2s ease; }
.breadcrumb-list a:hover { color: var(--cyan); }
.breadcrumb-list [aria-current="page"] { color: var(--frost); }

/* ---------- 11. Media frame ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: var(--radius-m);
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(140deg, rgba(0, 229, 255, .16), rgba(123, 47, 190, .22) 46%, rgba(255, 107, 53, .14));
  box-shadow: var(--shadow-hard);
}
.media-frame > img,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--steel);
}

/* ---------- 12. Reveal ---------- */
html.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
html.js-reveal [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- 13. Progress bar ---------- */
.read-progress {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  z-index: 300;
  background: rgba(37, 64, 107, .55);
  pointer-events: none;
}
.read-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 52%, var(--orange));
  box-shadow: 0 0 14px rgba(0, 229, 255, .7);
  transition: width .12s linear;
}

/* ---------- 14. Skip link ---------- */
.skip-link {
  position: fixed;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  z-index: 400;
  padding: 12px 20px;
  border-radius: var(--radius-s);
  background: var(--cyan);
  color: var(--ink-900);
  font-weight: 800;
  letter-spacing: .04em;
  transform: translateY(-180%);
  transition: transform .2s ease;
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- 15. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  padding: clamp(10px, 1.6vw, 20px) clamp(12px, 3vw, 32px) 0;
  pointer-events: none;
}

.nav-capsule {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 20px);
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 9px clamp(12px, 1.6vw, 20px);
  border: 2px solid var(--line);
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(7, 20, 38, .95), rgba(11, 30, 58, .93));
  box-shadow: 0 10px 0 rgba(7, 20, 38, .55), 0 22px 46px rgba(0, 0, 0, .46);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: padding .28s ease, border-color .28s ease, box-shadow .28s ease, border-radius .28s ease;
}

.site-header[data-scrolled="true"] .nav-capsule {
  padding-block: 6px;
  border-color: rgba(0, 229, 255, .45);
  box-shadow: 0 6px 0 rgba(7, 20, 38, .55), 0 18px 40px rgba(0, 0, 0, .5), 0 0 0 1px rgba(0, 229, 255, .16);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 3px 8px 3px 3px;
  border-radius: var(--radius-pill);
  transition: background-color .2s ease;
}
.brand-lockup:hover { background: rgba(0, 229, 255, .07); }

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 2px solid var(--cyan);
  border-radius: 11px;
  background: linear-gradient(140deg, rgba(0, 229, 255, .95), rgba(123, 47, 190, .95));
  box-shadow: inset 0 0 0 3px rgba(7, 20, 38, .9), 0 0 18px rgba(0, 229, 255, .35);
}
.brand-mark::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--orange);
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(255, 107, 53, .95);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .1em;
  color: var(--frost);
  white-space: nowrap;
}
.brand-tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--steel);
  white-space: nowrap;
}

.version-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: linear-gradient(100deg, var(--cyan), var(--mint));
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  white-space: nowrap;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .38);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  color: var(--steel);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.nav-link:hover { color: var(--frost); background: rgba(0, 229, 255, .1); }
.nav-link[aria-current="page"] {
  color: var(--ink-900);
  background: var(--cyan);
  box-shadow: 0 0 0 2px rgba(0, 229, 255, .22), 0 0 20px rgba(0, 229, 255, .35);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-utility {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 2px solid rgba(183, 148, 246, .45);
  border-radius: var(--radius-pill);
  color: var(--violet);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.nav-utility:hover {
  color: var(--frost);
  border-color: var(--violet);
  background: rgba(183, 148, 246, .14);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius-pill);
  background: linear-gradient(100deg, var(--orange), #FF9B6B);
  color: var(--ink-900);
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: .06em;
  white-space: nowrap;
  box-shadow: 0 4px 0 rgba(107, 31, 59, .85);
  transition: transform .18s ease, box-shadow .18s ease;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(107, 31, 59, .9), 0 12px 26px rgba(255, 107, 53, .3);
}
.nav-cta:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(107, 31, 59, .9);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 46px;
  height: 46px;
  margin-inline-start: auto;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 20, 38, .92);
  transition: border-color .2s ease, background-color .2s ease;
}
.nav-toggle:hover { border-color: rgba(0, 229, 255, .65); }
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--frost);
  transition: transform .22s ease, opacity .22s ease;
}
.site-header[data-nav-open="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-nav-open="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.site-header[data-nav-open="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 16. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 112px);
  padding-block: clamp(44px, 6vw, 78px) 0;
  overflow: hidden;
  border-top: 3px solid var(--line);
  background:
    linear-gradient(180deg, rgba(14, 59, 58, .55) 0%, rgba(7, 20, 38, 0) 44%),
    var(--ink-900);
  color: var(--steel);
  font-size: 14.5px;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--violet) 34%, var(--orange) 68%, var(--wine) 100%);
}
.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .34;
  background-image:
    linear-gradient(rgba(37, 64, 107, .55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 64, 107, .55) 1px, transparent 1px);
  background-size: 72px 72px;
}

.footer-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  gap: clamp(28px, 4vw, 64px);
  padding-bottom: clamp(28px, 4vw, 48px);
  border-bottom: 2px solid rgba(37, 64, 107, .85);
}

.footer-name {
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  font-weight: 900;
  letter-spacing: .14em;
  color: var(--frost);
}
.footer-tagline {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
}
.footer-intro {
  margin-top: 16px;
  max-width: 40ch;
  line-height: 1.8;
  color: var(--steel);
}
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.footer-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
}
.footer-badge--cyan {
  color: var(--cyan);
  border-color: rgba(0, 229, 255, .45);
  background: rgba(0, 229, 255, .10);
}
.footer-badge--mint {
  color: var(--mint);
  border-color: rgba(61, 220, 151, .45);
  background: rgba(61, 220, 151, .10);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}
.footer-col-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(37, 64, 107, .9);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--frost);
}
.footer-col-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--cyan);
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
}
.footer-col:nth-child(2) .footer-col-index { background: var(--violet); }
.footer-col:nth-child(3) .footer-col-index { background: var(--orange); }

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  color: var(--steel);
  font-size: 14.5px;
  letter-spacing: .02em;
  transition: color .2s ease, transform .2s ease;
}
.footer-link::before {
  content: "";
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: width .22s ease;
}
.footer-link:hover { color: var(--frost); transform: translateX(2px); }
.footer-link:hover::before { width: 12px; }

.footer-contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
  margin-top: clamp(24px, 3.4vw, 40px);
  padding: clamp(18px, 2.4vw, 26px);
  border: 2px solid rgba(37, 64, 107, .9);
  border-radius: var(--radius-m);
  background: linear-gradient(150deg, rgba(11, 30, 58, .92), rgba(7, 20, 38, .92));
  box-shadow: var(--shadow-hard);
}
.footer-contact-label {
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.footer-contact-value {
  color: var(--frost);
  font-size: 14.5px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.footer-note {
  max-width: 88ch;
  margin-top: 18px;
  padding-left: 14px;
  border-left: 3px solid var(--wine);
  font-size: 13px;
  line-height: 1.7;
  color: var(--steel);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  margin-top: clamp(24px, 3vw, 36px);
  padding-block: 22px;
  border-top: 2px solid rgba(37, 64, 107, .85);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--steel);
}
.footer-legal { color: var(--steel); }
.footer-copy { color: var(--frost); }
.footer-version { margin-inline-start: auto; color: var(--violet); }

/* ---------- 17. Utility ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 18. Focus ---------- */
:where(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 19. Responsive ---------- */
@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .nav-capsule {
    flex-wrap: wrap;
    gap: 8px 12px;
    border-radius: 26px;
  }
  .brand-lockup { margin-inline-end: auto; }

  .nav-links {
    order: 4;
    flex: 1 1 100%;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    display: none;
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px dashed rgba(37, 64, 107, .95);
  }
  .nav-links[data-open="true"],
  .nav-capsule[data-open="true"] .nav-links { display: flex; }

  .nav-link {
    justify-content: flex-start;
    padding-inline: 14px;
    border-radius: 12px;
    font-size: 15px;
  }

  .nav-actions {
    order: 5;
    flex: 1 1 100%;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    display: none;
    padding-bottom: 4px;
  }
  .nav-capsule[data-open="true"] .nav-actions { display: flex; }
  .nav-utility,
  .nav-cta { flex: 1 1 140px; justify-content: center; }
}

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

@media (max-width: 720px) {
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-contact { grid-template-columns: minmax(0, 1fr); }
  .footer-version { margin-inline-start: 0; }
}

@media (max-width: 520px) {
  .brand-tagline { display: none; }
  .brand-name { font-size: 15px; letter-spacing: .08em; }
  .version-badge { font-size: 10px; padding: 2px 7px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 9px; }
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { font-size: 11.5px; }
}

/* ---------- 20. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .panel:hover { transform: none; }
  .read-progress-fill { transition: none; }
  html.js-reveal [data-reveal] { opacity: 1; transform: none; }
}
