/* ============================================================
   安装娱乐会馆 · /assets/site.css
   夜间档案馆共享外壳：reset / tokens / 排版 / 头部 / 页脚 / 基础组件
   ============================================================ */

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

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

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 { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

[hidden] { display: none !important; }

/* ---------- tokens ---------- */
:root {
  --ink-900: #070E1A;
  --ink-800: #0D1829;
  --ink-700: #16243A;
  --cyan: #35E6DA;
  --amber: #FFA23A;
  --mute: #A99BD1;
  --paper: #EAF0F8;
  --ash: #93A3B8;
  --teal-950: #0B2B2C;
  --amber-950: #2E2114;

  --line: rgba(234, 240, 248, 0.12);
  --line-soft: rgba(234, 240, 248, 0.07);
  --cyan-line: rgba(53, 230, 218, 0.38);
  --amber-line: rgba(255, 162, 58, 0.42);

  --font-display: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --cut: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  --cut-sm: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 64px;
  --header-h-compact: 52px;
  --gutter: clamp(18px, 4vw, 64px);
  --radius-cut: 18px;
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; }

body {
  background-color: var(--ink-900);
  background-image:
    radial-gradient(120% 80% at 84% -12%, rgba(53, 230, 218, 0.10), transparent 62%),
    radial-gradient(90% 60% at 2% 2%, rgba(255, 162, 58, 0.06), transparent 58%),
    radial-gradient(80% 50% at 50% 110%, rgba(169, 155, 209, 0.07), transparent 60%);
  background-attachment: fixed;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--paper);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(44px, 7vw, 96px); line-height: 1.02; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.22; letter-spacing: -0.012em; }
h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.35; font-weight: 700; letter-spacing: -0.005em; }
h4 { font-size: 18px; line-height: 1.45; font-weight: 700; letter-spacing: 0; }

p { line-height: 1.9; }
strong { font-weight: 700; color: var(--paper); }

a:hover { color: var(--cyan); }

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

.clip-shape { clip-path: var(--cut); }

/* ---------- layout utilities ---------- */
.container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.prose { max-width: 38em; }
.prose p + p { margin-top: 1.2em; }

.stack > * + * { margin-top: 1.2em; }

.grid { display: grid; gap: 24px; }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3vw, 48px);
}

@media (min-width: 1000px) {
  .split { grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); }
  .split__rail { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  clip-path: var(--cut-sm);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: -4px; }

.btn--amber { background: var(--amber); color: var(--ink-900); }
.btn--ghost {
  background: rgba(53, 230, 218, 0.07);
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px var(--cyan-line);
}

.btn--sm { padding: 9px 15px; font-size: 13px; }

@media (hover: hover) {
  .btn--amber:hover { background: #FFB75E; color: var(--ink-900); }
  .btn--ghost:hover { background: rgba(53, 230, 218, 0.16); color: var(--paper); }
  .btn:hover { transform: translateY(-1px); }
}

/* ---------- tags / labels ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: var(--cyan);
  background: rgba(53, 230, 218, 0.08);
  box-shadow: inset 0 0 0 1px var(--cyan-line);
  clip-path: var(--cut-sm);
}

.mono-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ash);
  line-height: 1.7;
}

.annotation {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--ash);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;
  line-height: 1;
}

.hairline {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--cyan), rgba(53, 230, 218, 0.16) 42%, rgba(234, 240, 248, 0.05) 100%);
}

/* ---------- card / panel ---------- */
.card {
  position: relative;
  padding: clamp(20px, 2.4vw, 32px);
  background: var(--ink-800);
  clip-path: var(--cut);
  transition: background-color 0.24s var(--ease), transform 0.24s var(--ease);
}

.card > * { position: relative; z-index: 1; }

.corner-mark::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 18px;
  background: linear-gradient(
    to bottom right,
    transparent calc(50% - 1px),
    var(--cyan) calc(50% - 1px),
    var(--cyan) calc(50% + 0.5px),
    transparent calc(50% + 0.5px)
  );
  pointer-events: none;
  z-index: 2;
}

@media (hover: hover) {
  .card:hover { background: var(--ink-700); transform: translateY(-1px); }
}

/* ---------- media ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--ink-700);
  clip-path: var(--cut);
}

.media--square { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 4 / 5; }

.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.04) brightness(0.9);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(7, 14, 26, 0) 0 2px,
    rgba(7, 14, 26, 0.16) 2px 3px
  );
}

.media__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ash);
}

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

.breadcrumb__item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: rgba(147, 163, 184, 0.5);
}
.breadcrumb__item a { color: var(--ash); }
.breadcrumb__item a:hover { color: var(--cyan); }
.breadcrumb__item[aria-current="page"] { color: var(--cyan); }

/* ---------- timeline ---------- */
.timeline { position: relative; padding-left: 4px; }

.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--mute), rgba(169, 155, 209, 0.14));
}

.timeline__item {
  position: relative;
  padding-left: 34px;
  padding-bottom: 22px;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink-900);
  box-shadow: inset 0 0 0 2px var(--mute);
  transition: box-shadow 0.24s var(--ease), background-color 0.24s var(--ease);
}

.timeline__item[data-state="active"]::before {
  background: var(--cyan);
  box-shadow: inset 0 0 0 2px var(--cyan), 0 0 0 4px rgba(53, 230, 218, 0.16);
}

.timeline__time {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ash);
  margin-bottom: 4px;
}

/* ---------- fold ---------- */
.fold {
  background: var(--ink-800);
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: var(--cut);
  transition: background-color 0.24s var(--ease);
}

.fold[open] { background: var(--amber-950); }

.fold__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
}

.fold__summary::-webkit-details-marker { display: none; }

.fold__summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  color: var(--amber);
  transition: transform 0.24s var(--ease);
}

.fold[open] .fold__summary::after { transform: rotate(45deg); }

.fold__body {
  padding: 0 22px 20px;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ash);
}

/* ---------- stat ---------- */
.stat { display: flex; flex-direction: column; gap: 2px; }

.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--amber);
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ash);
}

/* ---------- filter ---------- */
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter__btn {
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--ash);
  background: rgba(22, 36, 58, 0.7);
  clip-path: var(--cut-sm);
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.filter__btn:hover { color: var(--paper); background: var(--ink-700); }

.filter__btn[aria-pressed="true"] {
  color: var(--ink-900);
  background: var(--amber);
  font-weight: 700;
}

.filter__count {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ash);
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--cyan);
  color: var(--ink-900);
  font-weight: 700;
  font-size: 14px;
  clip-path: var(--cut-sm);
  transition: top 0.2s var(--ease);
}

.skip-link:focus { top: 10px; color: var(--ink-900); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 14, 26, 0.90);
  border-bottom: 1px solid var(--line-soft);
  transition: background-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

@supports ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .site-header {
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    backdrop-filter: blur(14px) saturate(120%);
  }
}

.site-header[data-scrolled] {
  background: rgba(7, 14, 26, 0.98);
  box-shadow: 0 18px 40px -34px #000;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--header-h);
  transition: height 0.28s var(--ease);
}

.site-header[data-scrolled] .header-inner { height: var(--header-h-compact); }

/* brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  color: var(--paper);
}

.brand:hover { color: var(--paper); }

.brand__mark {
  width: 28px;
  height: 28px;
  flex: none;
  background: linear-gradient(150deg, var(--cyan) 0%, var(--ink-700) 52%, var(--amber) 100%);
  clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%);
  transition: transform 0.28s var(--ease);
}

.brand:hover .brand__mark { transform: skewX(-6deg); }

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--ash);
  margin-top: 2px;
}

/* status readout */
.header-context {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-inline-start: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  color: var(--ash);
  white-space: nowrap;
}

.header-context__label { color: rgba(147, 163, 184, 0.72); }
.header-context__value { color: var(--cyan); }
.header-context__sep { color: rgba(147, 163, 184, 0.4); }

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

/* mobile toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  margin-inline-start: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cyan);
  background: rgba(53, 230, 218, 0.08);
  clip-path: var(--cut-sm);
}

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 13px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  transition: transform 0.24s var(--ease), opacity 0.18s var(--ease);
}

.nav-toggle__bars span:nth-child(2) { width: 70%; }

.site-header[data-open] .nav-toggle__bars span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* progress */
.progress {
  height: 2px;
  background: rgba(234, 240, 248, 0.07);
  overflow: hidden;
}

.progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--mute) 55%, var(--amber));
  transition: transform 0.12s linear;
}

/* index rail nav */
.site-nav {
  background: var(--ink-800);
  border-top: 1px solid rgba(234, 240, 248, 0.05);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2px, 1vw, 16px);
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 10px;
  color: var(--ash);
  transition: color 0.18s var(--ease);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s var(--ease), background-color 0.22s var(--ease);
}

.site-nav__link:hover { color: var(--paper); }
.site-nav__link:hover::after { transform: scaleX(1); }

.site-nav__link[aria-current="page"] { color: var(--paper); }
.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--amber);
}

.site-nav__no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(147, 163, 184, 0.62);
  transition: color 0.18s var(--ease);
}

.site-nav__link[aria-current="page"] .site-nav__no { color: var(--amber); }
.site-nav__link:hover .site-nav__no { color: var(--cyan); }

.site-nav__label {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.015em;
  white-space: nowrap;
}

.site-nav__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(147, 163, 184, 0.62);
  white-space: nowrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 120px);
  background: var(--ink-900);
  border-top: 1px solid var(--line-soft);
}

.footer-rule {
  height: 2px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--mute) 46%, var(--amber) 100%);
  opacity: 0.85;
}

.footer-inner { padding-block: clamp(40px, 5.5vw, 72px) 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 0.9fr 1.15fr;
  gap: clamp(24px, 3vw, 48px);
}

.footer-col { min-width: 0; }

.brand--footer { margin-bottom: 14px; }

.footer-tagline {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ash);
  max-width: 22em;
}

.footer-icp {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(147, 163, 184, 0.8);
}

.footer-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--paper);
}

.footer-title::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--cyan);
  clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%);
}

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

.footer-list a {
  display: inline-block;
  padding-block: 5px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ash);
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.footer-list a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan-line);
}

.footer-contact li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding-block: 4px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ash);
}

.footer-contact__k {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(147, 163, 184, 0.66);
  min-width: 32px;
}

.footer-contact__v { color: var(--paper); word-break: break-word; }

.copy {
  padding: 2px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--cyan);
  text-align: left;
  border-bottom: 1px dashed var(--cyan-line);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
  word-break: break-all;
}

.copy:hover { color: var(--paper); border-bottom-color: var(--paper); }
.copy[data-copied] { color: var(--amber); border-bottom-color: var(--amber-line); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(32px, 4.5vw, 56px);
  padding-block: 20px 26px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: rgba(147, 163, 184, 0.78);
}

.footer-domain {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(147, 163, 184, 0.62);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1120px) {
  .header-context { display: none; }
}

@media (max-width: 900px) {
  .header-actions { display: none; }

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    background: var(--ink-800);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: max-height 0.32s var(--ease), opacity 0.24s var(--ease), visibility 0.32s var(--ease);
  }

  .site-header[data-open] .site-nav {
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    visibility: visible;
    opacity: 1;
  }

  .site-nav__inner {
    flex-direction: column;
    align-items: stretch;
    padding-block: 8px 22px;
  }

  .site-nav__list { flex-direction: column; gap: 0; }

  .site-nav__link {
    width: 100%;
    padding: 15px 6px;
    border-bottom: 1px solid var(--line-soft);
    justify-content: flex-start;
  }

  .site-nav__link::after { display: none; }

  .site-nav__link[aria-current="page"] {
    color: var(--amber);
    box-shadow: inset 2px 0 0 var(--amber);
    padding-left: 14px;
  }

  .site-nav__label { white-space: normal; font-size: 16px; }

  .site-nav__meta {
    padding-top: 14px;
    font-size: 11px;
  }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-col--brand { grid-column: 1 / -1; }
}

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

@media (max-width: 560px) {
  body { font-size: 16px; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-base { flex-direction: column; align-items: flex-start; }

  .brand__name { font-size: 15.5px; }
  .brand__sub { font-size: 10px; letter-spacing: 0.12em; }
}

/* ---------- motion preference ---------- */
@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;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  .btn:hover,
  .card:hover,
  .brand:hover .brand__mark { transform: none; }

  .progress__bar { transition: none; }
}
