/* =============================================================
   银河入口 · /assets/site.css
   共享外壳：框架式头部、页脚、通用组件与图片容器基础规则
   ============================================================= */

/* ---------- 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, dt, dd, fieldset {
  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; }

/* ---------- tokens ---------- */
:root {
  --void: #070B1E;
  --panel: #0E1533;
  --panel-2: #111B41;
  --violet: #7C5CFF;
  --cyan: #36E0E8;
  --gold: #FFC857;
  --star: #F5F8FF;
  --text: #D3DCF2;
  --mist: #A9B6D9;
  --line: #2A355F;
  --mint: #6EF0B8;
  --rose: #FF7A9A;
  --ink: #0A0E1F;

  --font-display: "Space Grotesk", "HarmonyOS Sans SC", "Noto Sans SC", system-ui, -apple-system, "PingFang SC", sans-serif;
  --font-body: "Noto Sans SC", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --max: 1360px;
  --gutter: 24px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --head-h: 0px;
}

/* ---------- base ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: .01em;
  color: var(--text);
  background-color: var(--void);
  background-image:
    repeating-linear-gradient(90deg, rgba(42, 53, 95, .30) 0 1px, transparent 1px 132px),
    radial-gradient(920px 540px at 10% -8%, rgba(124, 92, 255, .32), transparent 62%),
    radial-gradient(760px 460px at 92% 2%, rgba(54, 224, 232, .17), transparent 66%),
    radial-gradient(820px 720px at 50% 112%, rgba(124, 92, 255, .16), transparent 70%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.012em;
  color: var(--star);
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 4.6rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }

p { text-wrap: pretty; }

strong, b { color: var(--star); font-weight: 700; }

::selection { background: rgba(255, 200, 87, .85); color: var(--ink); }

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

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .12em;
  color: var(--ink);
  background: var(--gold);
  border: 1px solid var(--ink);
  transition: top .16s var(--ease);
}

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

/* ---------- header frame ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background:
    linear-gradient(180deg, rgba(7, 11, 30, .97) 0%, rgba(7, 11, 30, .88) 100%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.frame__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--cyan) 62%, var(--gold));
  box-shadow: 0 0 14px rgba(54, 224, 232, .55);
  pointer-events: none;
}

.frame__rail { position: relative; }

.frame__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: 13px var(--gutter);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

/* brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 0;
}

.brand__mark {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(54, 224, 232, .55);
  background: radial-gradient(circle at 50% 50%, rgba(124, 92, 255, .35), transparent 70%);
}

.brand__mark::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(255, 200, 87, .9);
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(54, 224, 232, .35);
  border-radius: 50%;
}

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

.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: .1em;
  color: var(--star);
  line-height: 1.1;
}

.brand__line {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mist);
  line-height: 1.2;
  white-space: nowrap;
}

.brand--footer .brand__name { font-size: 1.2rem; }

.frame__note {
  flex: 1 1 auto;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mist);
  text-align: right;
  padding-right: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.frame__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .12em;
  line-height: 1.4;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--star);
  cursor: pointer;
  transition: color .12s var(--ease), background-color .12s var(--ease),
              border-color .12s var(--ease), box-shadow .12s var(--ease);
}

.btn--ghost { background: rgba(14, 21, 51, .6); }
.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--cyan);
  border-color: rgba(54, 224, 232, .55);
  background: rgba(54, 224, 232, .08);
}

.btn--gold {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
  font-weight: 700;
}
.btn--gold:hover,
.btn--gold:focus-visible {
  background: #FFD67F;
  border-color: #FFD67F;
  box-shadow: 0 0 0 3px rgba(255, 200, 87, .22);
}

.btn--line {
  color: var(--cyan);
  border-color: rgba(54, 224, 232, .5);
}
.btn--line:hover,
.btn--line:focus-visible {
  background: rgba(54, 224, 232, .1);
}

/* nav toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-left: auto;
  background: rgba(14, 21, 51, .8);
  border: 1px solid var(--line);
  color: var(--star);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  cursor: pointer;
}

.nav-toggle__label { line-height: 1; }

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bars i {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--cyan);
  transition: transform .16s var(--ease), opacity .16s var(--ease);
}

.nav-toggle[aria-expanded="true"] {
  border-color: rgba(255, 200, 87, .6);
  color: var(--gold);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:first-child { transform: translateY(2.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:last-child { transform: translateY(-2.5px) rotate(-45deg); }

/* nav track */
.frame-nav {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 21, 51, .72), rgba(7, 11, 30, .55));
}

.frame-nav__list {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.frame-nav__item { display: flex; }

.frame-nav__link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 11px 22px;
  border-right: 1px solid var(--line);
  font-size: .9rem;
  letter-spacing: .04em;
  color: var(--mist);
  transition: color .12s var(--ease), background-color .12s var(--ease);
}

.frame-nav__item:first-child .frame-nav__link { border-left: 1px solid var(--line); }

.frame-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .16s var(--ease);
}

.frame-nav__link:hover,
.frame-nav__link:focus-visible {
  color: var(--star);
  background: linear-gradient(180deg, rgba(124, 92, 255, .16), transparent 92%);
}
.frame-nav__link:hover::after,
.frame-nav__link:focus-visible::after,
.frame-nav__link[aria-current="page"]::after { transform: scaleX(1); }

.frame-nav__link[aria-current="page"] {
  color: var(--star);
  background: linear-gradient(180deg, rgba(124, 92, 255, .24), transparent 92%);
}
.frame-nav__link[aria-current="page"] .frame-nav__num { color: var(--gold); }

.frame-nav__num {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  color: var(--mist);
  transition: color .12s var(--ease);
}

.frame-nav__link:hover .frame-nav__num { color: var(--cyan); }

.frame-nav__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: 7px var(--gutter) 8px;
  border-top: 1px solid rgba(42, 53, 95, .7);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.frame-nav__meta-link {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  color: var(--cyan);
  border-bottom: 1px solid rgba(54, 224, 232, .35);
}
.frame-nav__meta-link:hover,
.frame-nav__meta-link:focus-visible { color: var(--star); border-bottom-color: var(--gold); }

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  margin-top: 96px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(760px 340px at 8% 0%, rgba(124, 92, 255, .22), transparent 68%),
    radial-gradient(600px 300px at 92% 12%, rgba(54, 224, 232, .12), transparent 70%),
    linear-gradient(180deg, var(--panel) 0%, rgba(7, 11, 30, .96) 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--violet), var(--cyan), var(--gold), transparent);
  opacity: .75;
}

.footer__inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: 56px var(--gutter) 26px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 40px var(--gutter);
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.footer__brand { display: flex; flex-direction: column; gap: 18px; }

.footer__summary {
  max-width: 34ch;
  color: var(--mist);
  font-size: .95rem;
  line-height: 1.85;
}

.footer__col { display: flex; flex-direction: column; gap: 14px; }

.footer__col-title {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
}

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

.footer__nav-link {
  display: inline-block;
  padding: 5px 0;
  font-size: .92rem;
  color: var(--mist);
  border-bottom: 1px solid transparent;
  transition: color .12s var(--ease), border-color .12s var(--ease);
}
.footer__nav-link:hover,
.footer__nav-link:focus-visible {
  color: var(--star);
  border-bottom-color: var(--gold);
}

.footer__contact { display: flex; flex-direction: column; gap: 10px; }

.footer__contact-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(42, 53, 95, .6);
}

.footer__label {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  color: var(--mist);
}

.footer__value {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .85rem;
  line-height: 1.6;
  color: var(--star);
  overflow-wrap: anywhere;
}

.footer__note {
  font-size: .82rem;
  line-height: 1.75;
  color: var(--mist);
  max-width: 40ch;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 22px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--mist);
}

.footer__copyright,
.footer__icp { line-height: 1.6; }

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer__legal .footer__nav-link {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  padding: 0;
  color: var(--mist);
}

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

.section { padding-block: 72px; }
.section--tight { padding-block: 40px; }

.section-head {
  display: grid;
  gap: 14px;
  max-width: 70ch;
  margin-bottom: 32px;
}

.section-head__title { margin: 0; }

.section-head__lead {
  color: var(--mist);
  font-size: 1.02rem;
  line-height: 1.85;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
}

.mono {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .12em;
  color: var(--mist);
}

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--line), rgba(42, 53, 95, .18));
  margin-block: 26px;
}

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

.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.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; }
.col-9 { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-12 { grid-column: span 12; }

/* ---------- components ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 22px 26px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 21, 51, .92), rgba(14, 21, 51, .58));
  transition: border-color .12s var(--ease), box-shadow .18s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 1px;
  background: var(--cyan);
  opacity: .85;
}

.card:hover,
.card:focus-within {
  border-color: rgba(124, 92, 255, .65);
  box-shadow: 0 26px 60px -44px rgba(54, 224, 232, .8);
}

.card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--star);
  letter-spacing: 0;
}

.card__text {
  color: var(--mist);
  font-size: .95rem;
  line-height: 1.8;
}

.card__meta {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mist);
}

.panel {
  padding: 26px;
  border: 1px solid var(--line);
  background: rgba(14, 21, 51, .55);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--mist);
  border: 1px solid var(--line);
  background: rgba(14, 21, 51, .75);
}

.tag--gold { color: var(--gold); border-color: rgba(255, 200, 87, .45); background: rgba(255, 200, 87, .08); }
.tag--cyan { color: var(--cyan); border-color: rgba(54, 224, 232, .42); background: rgba(54, 224, 232, .07); }
.tag--mint { color: var(--mint); border-color: rgba(110, 240, 184, .42); background: rgba(110, 240, 184, .07); }
.tag--rose { color: var(--rose); border-color: rgba(255, 122, 154, .42); background: rgba(255, 122, 154, .08); }

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

.breadcrumb__item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb__item::after { content: "/"; color: var(--line); }
.breadcrumb__item:last-child::after { content: none; }
.breadcrumb__item a:hover,
.breadcrumb__item a:focus-visible { color: var(--cyan); }
.breadcrumb__item[aria-current="page"] { color: var(--star); }

.prose { max-width: 74ch; font-size: 1.02rem; line-height: 1.9; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 1.8em; font-size: clamp(1.3rem, 2vw, 1.7rem); }
.prose h3 { margin-top: 1.5em; font-size: 1.15rem; }
.prose p { color: var(--text); }
.prose ul > li {
  position: relative;
  padding-left: 22px;
  color: var(--mist);
}
.prose ul > li + li { margin-top: .45em; }
.prose ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .82em;
  width: 12px;
  height: 1px;
  background: var(--cyan);
}
.prose a { color: var(--cyan); border-bottom: 1px solid rgba(54, 224, 232, .4); }
.prose a:hover { color: var(--star); border-bottom-color: var(--gold); }

/* image containers */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(124, 92, 255, .3), transparent 62%),
    repeating-linear-gradient(90deg, rgba(42, 53, 95, .55) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(0deg, rgba(42, 53, 95, .45) 0 1px, transparent 1px 44px),
    var(--panel);
}

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

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

.media-frame__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 90%;
  padding: 7px 12px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--star);
  background: linear-gradient(90deg, rgba(7, 11, 30, .95), rgba(7, 11, 30, .18));
  pointer-events: none;
}

/* data band */
.stat-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(14, 21, 51, .5);
}

.stat__value {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.2;
  color: var(--gold);
  letter-spacing: .02em;
}

.stat__label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mist);
}

/* ---------- reveal ---------- */
html[data-js="on"] [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .32s var(--ease), transform .32s var(--ease);
}

html[data-js="on"] [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .frame__note { display: none; }
  .footer__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .footer__col--contact { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --gutter: 20px; }

  .nav-toggle { display: inline-flex; }
  .frame__actions { display: none; }
  .frame__inner { padding: 11px var(--gutter); }

  .frame-nav { display: none; }
  .frame-nav[data-open] { display: block; }

  .frame-nav__list {
    flex-direction: column;
    flex-wrap: nowrap;
    border-left: 0;
    border-right: 0;
    padding-inline: 0;
  }

  .frame-nav__item { width: 100%; }

  .frame-nav__link {
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
    padding: 14px var(--gutter);
    border-right: 0;
    border-bottom: 1px solid rgba(42, 53, 95, .7);
    font-size: .98rem;
  }
  .frame-nav__item:first-child .frame-nav__link { border-left: 0; }
  .frame-nav__link::after { left: 0; right: auto; width: 3px; height: auto; top: 0; bottom: 0; transform: scaleY(0); transform-origin: top center; }
  .frame-nav__link:hover::after,
  .frame-nav__link:focus-visible::after,
  .frame-nav__link[aria-current="page"]::after { transform: scaleY(1); }

  .frame-nav__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    border-left: 0;
    border-right: 0;
    padding-inline: var(--gutter);
  }

  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .col-2, .col-3, .col-4, .col-5, .col-6,
  .col-7, .col-8, .col-9, .col-10, .col-12 { grid-column: span 4; }

  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .footer__col--contact { grid-column: auto; }
  .footer__inner { padding-top: 44px; }
  .site-footer { margin-top: 72px; }

  .section { padding-block: 52px; }
  .panel { padding: 20px; }

  body { background-attachment: scroll; }
}

@media (max-width: 560px) {
  .brand__line { letter-spacing: .12em; font-size: .6rem; }
  .brand__name { font-size: .98rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer__legal { gap: 14px; }
  .btn { padding: 10px 14px; font-size: .74rem; }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }

  html[data-js="on"] [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
