/* ==========================================================================
   9博主页 · 共享样式 /assets/site.css
   深夜控制室 · 数字档案库
   ========================================================================== */

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

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

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

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

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

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

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

/* 2. Tokens -------------------------------------------------------------- */
:root {
  --ink: #06121F;
  --panel: #0B2239;
  --violet: #8E85B8;
  --muted: #A8B4C8;
  --white: #F4F8FF;
  --cyan: #29E0FF;
  --amber: #FFB547;
  --coral: #FF7A59;
  --cobalt: #2E6BFF;
  --line: #0F6F82;

  --wrap: 1220px;
  --gutter: clamp(18px, 4vw, 40px);
  --gap: clamp(16px, 2.4vw, 28px);

  --fs-display: clamp(2.75rem, 8vw, 5.5rem);
  --fs-h1: clamp(2rem, 4.6vw, 3.5rem);
  --fs-h2: clamp(1.5rem, 3.2vw, 2.25rem);
  --fs-h3: clamp(1.1rem, 1.8vw, 1.5rem);
  --fs-body: 1rem;
  --fs-label: 0.75rem;

  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: "Space Grotesk", "Sora", ui-sans-serif, "Segoe UI", Arial, sans-serif;

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --cut-lg: 22px;
  --cut-sm: 14px;
}

/* 3. Base ---------------------------------------------------------------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 640px at 82% -12%, rgba(41, 224, 255, 0.16), transparent 62%),
    radial-gradient(840px 560px at -4% 6%, rgba(46, 107, 255, 0.15), transparent 66%),
    radial-gradient(720px 480px at 96% 88%, rgba(255, 181, 71, 0.08), transparent 70%),
    repeating-linear-gradient(90deg, rgba(15, 111, 130, 0.07) 0 1px, transparent 1px 96px);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-h1); line-height: 1.1; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

small { font-size: 0.8rem; color: var(--muted); }
strong { font-weight: 700; }

p a {
  color: var(--cyan);
  box-shadow: inset 0 -1px 0 rgba(41, 224, 255, 0.45);
  transition: color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
p a:hover { color: var(--white); box-shadow: inset 0 -1px 0 var(--amber); }

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

::selection { background: rgba(41, 224, 255, 0.32); color: var(--white); }

/* 4. Layout primitives --------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

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

.section__head {
  max-width: 62ch;
  margin-bottom: clamp(22px, 3vw, 40px);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-num);
  font-size: var(--fs-label);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.9rem;
}

.display {
  font-size: var(--fs-display);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0;
}

.lead {
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.75;
  color: var(--muted);
  max-width: 56ch;
}

.rule {
  height: 1px;
  border: 0;
  margin: clamp(24px, 4vw, 48px) 0;
  background: linear-gradient(90deg, var(--line), rgba(15, 111, 130, 0.15) 55%, transparent);
}

/* 5. Grid ---------------------------------------------------------------- */
.grid { display: grid; gap: var(--gap); }

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

.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }

/* 6. Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.55rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease),
              border-color 0.2s var(--ease), filter 0.2s var(--ease),
              box-shadow 0.2s var(--ease);
}

.btn--primary {
  color: #04121c;
  background: linear-gradient(120deg, var(--cyan), #7af0ff 65%, #b9f7ff);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut-sm)), calc(100% - var(--cut-sm)) 100%, 0 100%);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  filter: brightness(1.07);
  box-shadow: 0 0 30px rgba(41, 224, 255, 0.45);
}

.btn--amber {
  color: #1a0f00;
  background: linear-gradient(120deg, var(--amber), #ffd18a);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut-sm)), calc(100% - var(--cut-sm)) 100%, 0 100%);
}
.btn--amber:hover { filter: brightness(1.06); box-shadow: 0 0 26px rgba(255, 181, 71, 0.4); }

.btn--ghost {
  color: var(--white);
  background: transparent;
  border-color: rgba(168, 180, 200, 0.35);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(41, 224, 255, 0.3), 0 0 20px rgba(41, 224, 255, 0.18);
}

/* 7. Tags & panels ------------------------------------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.72rem;
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  color: var(--cyan);
  background: rgba(41, 224, 255, 0.08);
  border: 1px solid rgba(41, 224, 255, 0.35);
  border-radius: 2px;
}

.tag--amber {
  color: var(--amber);
  background: rgba(255, 181, 71, 0.09);
  border-color: rgba(255, 181, 71, 0.42);
}

.tag--violet {
  color: var(--violet);
  background: rgba(142, 133, 184, 0.12);
  border-color: rgba(142, 133, 184, 0.46);
}

.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: linear-gradient(160deg, rgba(11, 34, 57, 0.95), rgba(8, 25, 42, 0.72));
  border: 1px solid rgba(15, 111, 130, 0.55);
  border-radius: 2px;
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease),
              box-shadow 0.22s var(--ease);
}
.panel:hover {
  border-color: rgba(41, 224, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(41, 224, 255, 0.12), 0 18px 44px rgba(0, 0, 0, 0.35);
  transform: translateY(-4px);
}

.panel--cut {
  clip-path: polygon(0 0, calc(100% - var(--cut-lg)) 0, 100% var(--cut-lg), 100% 100%,
                     var(--cut-lg) 100%, 0 calc(100% - var(--cut-lg)));
}

/* 8. Breadcrumb ---------------------------------------------------------- */
.breadcrumb {
  padding-top: 20px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.breadcrumb__item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb__item:not(:first-child)::before {
  content: "/";
  color: var(--line);
}
.breadcrumb__item a { color: var(--muted); transition: color 0.18s var(--ease); }
.breadcrumb__item a:hover { color: var(--cyan); }
.breadcrumb__item [aria-current="page"] { color: var(--white); }

/* 9. Media frames -------------------------------------------------------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(150deg, rgba(41, 224, 255, 0.14), rgba(46, 107, 255, 0.06) 48%, rgba(255, 181, 71, 0.1));
  border: 1px solid rgba(15, 111, 130, 0.55);
  clip-path: polygon(0 0, calc(100% - var(--cut-lg)) 0, 100% var(--cut-lg), 100% 100%,
                     var(--cut-lg) 100%, 0 calc(100% - var(--cut-lg)));
}

.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    repeating-linear-gradient(0deg, rgba(41, 224, 255, 0.1) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(41, 224, 255, 0.1) 0 1px, transparent 1px 28px);
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-frame__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  padding: 8px 14px;
  font-family: var(--font-num);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(6, 18, 31, 0.78);
  border-top: 1px solid rgba(41, 224, 255, 0.35);
  border-right: 1px solid rgba(41, 224, 255, 0.35);
}

/* 10. Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: #06121F;
  background: rgba(6, 18, 31, 0.9);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(15, 111, 130, 0.55);
}

.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
}

.scroll-meter__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  box-shadow: 0 0 14px rgba(41, 224, 255, 0.7);
  transition: width 0.12s linear;
}

.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-block: clamp(12px, 1.8vw, 20px);
}

.masthead__aside {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.masthead__aside--end { justify-self: end; }

.version-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
  color: var(--muted);
  background: rgba(11, 34, 57, 0.65);
  border: 1px solid rgba(15, 111, 130, 0.9);
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.version-pill:hover { color: var(--cyan); border-color: rgba(41, 224, 255, 0.7); }

.version-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: center;
  color: var(--white);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  font-family: var(--font-num);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #04121c;
  background: linear-gradient(145deg, var(--cyan), #6df1ff 45%, var(--amber));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.brand__row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.2;
}

.brand__name {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand__tagline {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.header-actions { display: flex; align-items: center; gap: 10px; }

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(168, 180, 200, 0.32);
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
              background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.ghost-btn:hover,
.ghost-btn:focus-visible {
  color: var(--cyan);
  border-color: rgba(41, 224, 255, 0.8);
  box-shadow: 0 0 0 1px rgba(41, 224, 255, 0.25), 0 0 18px rgba(41, 224, 255, 0.18);
}
.ghost-btn[aria-pressed="true"] {
  color: var(--amber);
  border-color: rgba(255, 181, 71, 0.75);
  background: rgba(255, 181, 71, 0.1);
}

.ghost-btn__icon { font-size: 0.95rem; line-height: 1; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(168, 180, 200, 0.32);
  border-radius: 2px;
  cursor: pointer;
  color: var(--white);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: background 0.2s var(--ease);
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.26s var(--ease);
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.site-header[data-open="true"] .nav-toggle__bars { background: transparent; }
.site-header[data-open="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
  position: static;
  border-top: 1px solid rgba(15, 111, 130, 0.45);
}

.nav-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(14px, 2.4vw, 34px);
}

.nav-item { display: block; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 14px 2px 16px;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 8px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transition: left 0.26s var(--ease), right 0.26s var(--ease);
}
.nav-link:hover,
.nav-link:focus-visible { color: var(--white); }
.nav-link:hover::after,
.nav-link:focus-visible::after { left: 0; right: 0; }

.nav-link[aria-current="page"] {
  color: var(--white);
  font-weight: 700;
}
.nav-link[aria-current="page"]::after {
  left: 0;
  right: 0;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(41, 224, 255, 0.8);
}

/* 11. Footer ------------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 120px);
  overflow: hidden;
  border-top: 1px solid rgba(15, 111, 130, 0.55);
  background:
    linear-gradient(180deg, rgba(11, 34, 57, 0.6), rgba(4, 16, 27, 0.96) 58%),
    #04101B;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image: repeating-linear-gradient(115deg,
    rgba(41, 224, 255, 0.07) 0 1px, transparent 1px 26px);
}

.site-footer .wrap { position: relative; z-index: 1; }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(26px, 4vw, 56px);
  padding-block: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 48px);
}

.brand--footer { justify-self: start; }
.brand--footer .brand__mark { width: 36px; height: 36px; font-size: 0.85rem; opacity: 0.9; }
.brand--footer .brand__name { font-size: 1rem; }
.brand--footer .brand__tagline { font-size: 0.64rem; }

.footer-summary {
  margin-top: 18px;
  max-width: 34ch;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--muted);
}

.footer-note {
  margin-top: 14px;
  font-size: 0.76rem;
  line-height: 1.7;
  color: rgba(168, 180, 200, 0.72);
  max-width: 42ch;
}

.footer-heading {
  margin-bottom: 16px;
  font-family: var(--font-num);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-list { display: flex; flex-direction: column; gap: 4px; }

.footer-link {
  display: inline-block;
  padding: 5px 0;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}
.footer-link:hover,
.footer-link:focus-visible {
  color: var(--white);
  transform: translateX(4px);
}

.footer-contact li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding-block: 10px;
  border-bottom: 1px dashed rgba(15, 111, 130, 0.45);
}
.footer-contact li:first-child { padding-top: 0; }

.footer-label {
  flex: 0 0 100%;
  font-family: var(--font-num);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet);
}

.footer-value {
  font-size: 0.92rem;
  color: var(--white);
  word-break: break-word;
}

.copy-btn {
  padding: 3px 9px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: transparent;
  border: 1px solid rgba(168, 180, 200, 0.3);
  border-radius: 2px;
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.copy-btn:hover,
.copy-btn:focus-visible {
  color: var(--cyan);
  border-color: rgba(41, 224, 255, 0.75);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  padding-block: 20px 34px;
  border-top: 1px solid rgba(15, 111, 130, 0.45);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(168, 180, 200, 0.8);
}
.footer-reg { color: var(--muted); }
.footer-copy { color: rgba(168, 180, 200, 0.72); }

/* 12. Reveal & toast ----------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.62s var(--ease), transform 0.62s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.site-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 200;
  transform: translate(-50%, 16px);
  padding: 10px 18px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: linear-gradient(120deg, var(--cyan), #9af5ff);
  border-radius: 2px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  pointer-events: none;
}
.site-toast[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* 13. Skip link ---------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -90px;
  z-index: 300;
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #04121c;
  background: var(--cyan);
  border-radius: 2px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* 14. Responsive --------------------------------------------------------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-col:last-child { grid-column: 1 / -1; }
  .footer-list { flex-direction: row; flex-wrap: wrap; gap: 4px 22px; }
}

@media (max-width: 900px) {
  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: span 6; }
  .brand__tagline { letter-spacing: 0.12em; }
}

@media (max-width: 860px) {
  .masthead {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding-block: 12px;
  }

  .masthead__aside { display: none; }

  .masthead__aside--end { display: flex; gap: 8px; }

  .masthead .brand {
    justify-self: start;
    gap: 10px;
  }

  .brand__mark { width: 36px; height: 36px; font-size: 0.85rem; }
  .brand__name { font-size: 1rem; }
  .brand__tagline { font-size: 0.62rem; letter-spacing: 0.1em; }

  .header-actions .ghost-btn[data-favorite] { display: none; }
  .header-actions .ghost-btn[href] { display: none; }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    border-top: 1px solid rgba(15, 111, 130, 0.55);
    border-bottom: 1px solid var(--line);
    background: #071727;
    box-shadow: 0 26px 54px rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
    max-height: 78vh;
    overflow-y: auto;
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding-block: 6px 14px;
  }

  .nav-link {
    display: block;
    padding: 15px 4px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(15, 111, 130, 0.32);
  }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] {
    color: var(--cyan);
    box-shadow: inset 3px 0 0 var(--cyan);
    padding-left: 14px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }
  .footer-col:last-child { grid-column: auto; }
  .footer-bottom { padding-bottom: 28px; }
}

@media (max-width: 560px) {
  .grid--12 { grid-template-columns: minmax(0, 1fr); }
  .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: auto; }
  .display { font-size: clamp(2.4rem, 12vw, 3rem); }
  .footer-list { flex-direction: column; gap: 2px; }
}

/* 15. Motion preferences ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

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

  .panel:hover { transform: none; }
  .footer-link:hover { transform: none; }
  .scroll-meter__bar { transition: none; }
}
