/* ==========================================================================
   加拿大指南 · beacon-canada.com.cn
   /assets/site.css —— reset / tokens / header / footer / shared components
   ========================================================================== */

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

/* ---------- 2. tokens ---------- */
:root {
  /* 色板 */
  --ink: #020A12;
  --night: #061826;
  --deck: #0B2A3F;
  --mist: #1C415A;
  --aurora: #5FE3A1;
  --aurora-soft: #B8FFD9;
  --amber: #F3B45C;
  --maple: #D95B4A;
  --snow: #F4F8FB;
  --slate: #7E96A8;
  --text: #D8E5EF;
  --line: rgba(126, 150, 168, 0.34);
  --line-strong: rgba(126, 150, 168, 0.55);

  /* 字体 */
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, serif;
  --font-sans: "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  /* 尺寸与节奏 */
  --wrap: 1180px;
  --gutter: clamp(18px, 4.5vw, 56px);
  --shadow-hard: 8px 8px 0 rgba(2, 10, 18, 0.92);
  --shadow-soft: 0 18px 44px rgba(2, 10, 18, 0.5);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. base typography ---------- */
body {
  background-color: var(--night);
  background-image:
    radial-gradient(900px 520px at 12% -6%, rgba(95, 227, 161, 0.10), transparent 62%),
    radial-gradient(760px 460px at 96% 2%, rgba(243, 180, 92, 0.07), transparent 60%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.012em;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 {
  color: var(--snow);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: 0.02em;
}
h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  letter-spacing: 0.04em;
  font-weight: 600;
}
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
h3 { font-size: 1.12rem; letter-spacing: 0.06em; }
strong { color: var(--snow); font-weight: 600; }
::selection { background: var(--aurora); color: var(--ink); }

/* ---------- 4. a11y ---------- */
:focus-visible {
  outline: 2px solid var(--aurora);
  outline-offset: 3px;
  border-radius: 1px;
}
.u-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.bc-skip {
  position: fixed;
  top: -140px;
  left: clamp(12px, 3vw, 24px);
  z-index: 200;
  padding: 0.75em 1.25em;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(2, 10, 18, 0.85);
  transition: top 0.22s var(--ease);
}
.bc-skip:focus { top: clamp(12px, 3vw, 24px); }

/* ---------- 5. layout utilities ---------- */
.u-container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  position: relative;
  padding-block: clamp(44px, 8vw, 96px);
}
.u-grid {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}
.bento > * { grid-column: span 12; min-width: 0; }
@media (min-width: 840px) {
  .bento > .b3  { grid-column: span 3; }
  .bento > .b4  { grid-column: span 4; }
  .bento > .b5  { grid-column: span 5; }
  .bento > .b6  { grid-column: span 6; }
  .bento > .b7  { grid-column: span 7; }
  .bento > .b8  { grid-column: span 8; }
  .bento > .b9  { grid-column: span 9; }
  .bento > .b12 { grid-column: span 12; }
}

/* ---------- 6. section headings ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--slate);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--aurora);
  flex: none;
}
.section-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--aurora-soft);
  opacity: 0.92;
}
.section-title {
  font-family: var(--font-sans);
  font-size: clamp(1.32rem, 2.4vw, 1.95rem);
  letter-spacing: 0.12em;
  color: var(--snow);
  margin-top: 0.35em;
}
.section-lede {
  max-width: 62ch;
  margin-top: 0.9em;
  color: var(--slate);
  font-size: 1rem;
  line-height: 1.9;
}

/* ---------- 7. panel / tags / buttons ---------- */
.panel {
  position: relative;
  background: var(--deck);
  border: 2px solid var(--mist);
  box-shadow: var(--shadow-hard);
  padding: clamp(20px, 3vw, 36px);
}
.chip, .tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.26em 0.72em;
  border: 1px solid var(--line-strong);
  background: rgba(11, 42, 63, 0.65);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--slate);
  white-space: nowrap;
}
.tag--aurora { border-color: rgba(95, 227, 161, 0.6); color: var(--aurora-soft); }
.tag--amber  { border-color: rgba(243, 180, 92, 0.6); color: var(--amber); }
.tag--maple  { border-color: rgba(217, 91, 74, 0.65); color: var(--maple); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.82em 1.6em;
  border: 2px solid var(--aurora);
  background: transparent;
  color: var(--aurora-soft);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease);
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(95, 227, 161, 0.3);
}
.btn--amber {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}
.btn--amber:hover {
  background: var(--aurora-soft);
  border-color: var(--aurora-soft);
  box-shadow: 6px 6px 0 rgba(243, 180, 92, 0.3);
}
.btn--ghost {
  border-color: var(--line-strong);
  color: var(--snow);
}
.btn--ghost:hover {
  border-color: var(--aurora);
  box-shadow: 6px 6px 0 rgba(28, 65, 90, 0.95);
}
.btn--quiet {
  padding: 0.3em 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--aurora);
  letter-spacing: 0.08em;
}
.btn--quiet:hover { transform: none; box-shadow: none; color: var(--aurora-soft); }

/* ---------- 8. filter protocol ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.filter-btn {
  padding: 0.5em 1.05em;
  border: 1px solid var(--line-strong);
  background: rgba(6, 24, 38, 0.7);
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease),
              background 0.22s var(--ease);
}
.filter-btn:hover { color: var(--snow); border-color: var(--aurora); }
.filter-btn.is-active {
  background: var(--aurora);
  border-color: var(--aurora);
  color: var(--ink);
}
.filter-status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--slate);
}

/* ---------- 9. breadcrumb ---------- */
.breadcrumb {
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65em;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.1em;
  color: var(--slate);
}
.breadcrumb__item { display: inline-flex; align-items: center; gap: 0.65em; }
.breadcrumb__link {
  color: var(--slate);
  border-bottom: 1px solid transparent;
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.breadcrumb__link:hover { color: var(--aurora); border-bottom-color: var(--aurora); }
.breadcrumb__sep { color: var(--mist); }
.breadcrumb__current { color: var(--snow); }

/* ---------- 10. prose ---------- */
.prose {
  max-width: 72ch;
  color: var(--text);
}
.prose > * + * { margin-top: 1.15em; }
.prose p { line-height: 1.92; }
.prose h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  margin-top: 2em;
  padding-top: 0.7em;
  border-top: 1px solid var(--line);
}
.prose h3 { margin-top: 1.8em; color: var(--aurora-soft); }
.prose ul, .prose ol { display: grid; gap: 0.6em; }
.prose li { position: relative; padding-left: 1.5em; line-height: 1.85; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.78em;
  width: 9px; height: 2px;
  background: var(--aurora);
}
.prose a {
  color: var(--aurora);
  border-bottom: 1px solid rgba(95, 227, 161, 0.45);
}
.prose a:hover { color: var(--aurora-soft); border-bottom-color: var(--aurora-soft); }
.prose blockquote {
  border-left: 2px solid var(--amber);
  padding-left: 1.2em;
  font-family: var(--font-serif);
  color: var(--aurora-soft);
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--amber);
}

/* ---------- 11. media container (页面阶段放置图片占位) ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--mist);
  background: linear-gradient(158deg, var(--deck), var(--night) 58%, #03101b);
  box-shadow: var(--shadow-hard);
}
.media--wide   { aspect-ratio: 21 / 9; }
.media--tall   { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }
.media .media__img,
.media img,
.media picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 82% 0%, rgba(95, 227, 161, 0.16), transparent 56%),
    radial-gradient(90% 70% at 0% 100%, rgba(243, 180, 92, 0.12), transparent 60%);
}
.media__caption {
  margin-top: 0.7em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--slate);
}

/* ---------- 12. lamp + reveal ---------- */
.lamp-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--aurora);
  box-shadow: 0 0 0 4px rgba(95, 227, 161, 0.14), 0 0 14px rgba(95, 227, 161, 0.85);
  flex: none;
  animation: lamp-pulse 3.2s ease-in-out infinite;
}
@keyframes lamp-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* ==========================================================================
   13. HEADER —— 双层铭牌导航
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 50;
  background: var(--night);
  border-bottom: 2px solid var(--mist);
}
.site-header__upper {
  background: var(--ink);
  border-bottom: 1px solid rgba(126, 150, 168, 0.22);
}
.site-header__inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.site-header__upper > .site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 3vw, 32px);
  min-height: 50px;
  padding-block: 7px;
}
.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  min-width: 0;
  color: var(--snow);
}
.brand-lamp {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--aurora);
  box-shadow: 0 0 0 4px rgba(95, 227, 161, 0.12), 0 0 16px rgba(95, 227, 161, 0.85);
  flex: none;
  animation: lamp-pulse 3.2s ease-in-out infinite;
}
.site-header__brand-name {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  letter-spacing: 0.16em;
  color: var(--snow);
  transition: color 0.25s var(--ease);
}
.site-header__brand:hover .site-header__brand-name { color: var(--aurora-soft); }
.site-header__brand-tag {
  padding-left: 0.85em;
  border-left: 1px solid rgba(126, 150, 168, 0.35);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--slate);
}
.site-header__util {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
  font-family: var(--font-mono);
}
.site-header__mail {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--slate);
  word-break: break-all;
}
.site-header__cta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--amber);
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(243, 180, 92, 0.45);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.site-header__cta:hover {
  color: var(--aurora-soft);
  border-bottom-color: var(--aurora-soft);
}
.site-header__cta--bar { display: none; }

.site-header__lower > .site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
}
.site-nav { flex: 1 1 auto; }
.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(10px, 2.2vw, 30px);
  counter-reset: nav;
}
.site-nav__item { counter-increment: nav; }
.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
  padding: 0.34em 0;
  border-bottom: 2px solid transparent;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: var(--text);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.site-nav__link::before {
  content: counter(nav, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--mist);
  transition: color 0.25s var(--ease);
}
.site-nav__link:hover { color: var(--aurora-soft); border-bottom-color: rgba(95, 227, 161, 0.5); }
.site-nav__link:hover::before { color: var(--aurora); }
.site-nav__link[aria-current="page"] {
  color: var(--aurora-soft);
  border-bottom-color: var(--aurora);
  text-shadow: 0 0 18px rgba(95, 227, 161, 0.35);
}
.site-nav__link[aria-current="page"]::before { color: var(--aurora); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6em;
  padding: 0.6em 0.9em;
  border: 2px solid var(--mist);
  background: rgba(11, 42, 63, 0.7);
  color: var(--snow);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}
.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}
.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: var(--aurora);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle__label { display: inline-block; }
.site-header[data-open="true"] .nav-toggle {
  border-color: var(--aurora);
  color: var(--aurora-soft);
}
.site-header[data-open="true"] .nav-toggle__bars span:first-child {
  transform: translateY(3px) rotate(45deg);
}
.site-header[data-open="true"] .nav-toggle__bars span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* 阅读进度光带 */
.scroll-meter {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 80;
  background: rgba(28, 65, 90, 0.55);
  pointer-events: none;
}
.scroll-meter__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--aurora), var(--aurora-soft), var(--amber));
}

/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.site-footer {
  position: relative;
  background: var(--ink);
  border-top: 2px solid var(--mist);
  color: var(--text);
}
.site-footer__glow {
  height: 3px;
  background: linear-gradient(90deg,
    rgba(95, 227, 161, 0) 0%,
    var(--aurora) 24%,
    var(--aurora-soft) 50%,
    var(--amber) 78%,
    rgba(243, 180, 92, 0) 100%);
}
.site-footer__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(22px, 3vw, 34px);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.2fr;
  gap: clamp(24px, 4vw, 48px);
}
.site-footer__wordmark {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-serif);
  font-size: 1.28rem;
  letter-spacing: 0.2em;
  color: var(--snow);
}
.site-footer__summary {
  margin-top: 0.9em;
  max-width: 34ch;
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--slate);
}
.site-footer__meta {
  margin-top: 1.2em;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--mist);
}
.site-footer__meta-key { color: var(--aurora); }
.site-footer__title {
  margin-bottom: 1em;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--slate);
}
.site-footer__col--contact { min-width: 0; }
.site-footer__list { display: grid; gap: 0.65em; }
.site-footer__link {
  font-size: 0.92rem;
  color: var(--text);
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.site-footer__link:hover {
  color: var(--aurora-soft);
  border-bottom-color: rgba(95, 227, 161, 0.5);
}
.site-footer__contact { display: grid; gap: 0.9em; }
.site-footer__contact-item { display: grid; gap: 0.15em; }
.site-footer__contact-key {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  color: var(--mist);
}
.site-footer__contact-value {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--snow);
  word-break: break-word;
}
.site-footer__note {
  margin-top: 1.1em;
  padding-left: 0.9em;
  border-left: 2px solid var(--amber);
  font-size: 0.78rem;
  line-height: 1.78;
  color: var(--slate);
}
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: clamp(30px, 5vw, 54px);
  padding-top: 20px;
  border-top: 1px solid rgba(126, 150, 168, 0.22);
}
.site-footer__legal {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--slate);
}
.site-footer__legalnav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 26px);
  font-family: var(--font-mono);
}
.site-footer__legalnav .site-footer__link {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--slate);
}

/* ---------- 15. back to top (JS 注入) ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.7em 1em;
  border: 2px solid var(--aurora);
  background: rgba(6, 24, 38, 0.94);
  color: var(--aurora-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
              background 0.25s var(--ease), color 0.25s var(--ease);
}
.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.to-top:hover { background: var(--aurora); color: var(--ink); }

/* ==========================================================================
   16. responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .site-header__brand-tag { display: none; }
  .site-header__util .site-header__cta { display: none; }
  .site-header__cta--bar { display: inline-block; }

  .nav-toggle { display: inline-flex; }
  .site-header__lower > .site-header__inner {
    flex-wrap: wrap;
    gap: 12px;
    min-height: 58px;
    padding-block: 10px;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    width: 100%;
    flex: none;
    padding-inline: var(--gutter);
    padding-block: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    background: var(--ink);
    border-top: 1px solid rgba(126, 150, 168, 0.22);
    border-bottom: 2px solid var(--mist);
    box-shadow: 0 24px 40px rgba(2, 10, 18, 0.7);
    transition: max-height 0.35s var(--ease), opacity 0.28s var(--ease),
                padding 0.3s var(--ease), visibility 0.3s var(--ease);
  }
  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav__item { border-bottom: 1px solid rgba(126, 150, 168, 0.16); }
  .site-nav__item:last-child { border-bottom: 0; }
  .site-nav__link {
    width: 100%;
    padding: 0.9em 0;
    font-size: 1rem;
    border-bottom: 0;
  }
  .site-nav__link[aria-current="page"] { text-shadow: none; }
  .site-nav__link[aria-current="page"]::before { color: var(--aurora); }
  .site-header[data-open="true"] .site-nav {
    max-height: min(70vh, 520px);
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    padding-block: 8px;
  }
}

@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  .site-header__mail { display: none; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .panel { box-shadow: 5px 5px 0 rgba(2, 10, 18, 0.92); }
  .media { box-shadow: 5px 5px 0 rgba(2, 10, 18, 0.92); }
  .to-top span:last-child { display: none; }
}

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