/* =========================================================
   /assets/site.css — 百家家乐主页 共享层
   框架式导航 + 切角 Bento + 矿物色节奏
   ========================================================= */

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

/* ---------- 2. tokens ---------- */
:root {
  --ink-900: #121C3A;
  --indigo-700: #1E2F5C;
  --indigo-100: #E3E7F3;
  --gold-500: #D8A33C;
  --gold-200: #F4E3BF;
  --coral-500: #E4693F;
  --celadon-500: #3E8F76;
  --clay-500: #A9523A;
  --moss-400: #7C9A6A;
  --stone-600: #5C626E;
  --paper-050: #FAF5EA;

  --frame-h: 76px;
  --rail-w: 64px;
  --gap: 20px;
  --r-sm: 6px;
  --r-cut: 14px;
  --shadow-1: 0 2px 8px rgba(18, 28, 58, .08);
  --shadow-2: 0 10px 30px rgba(18, 28, 58, .18);
  --ease: cubic-bezier(.22, .61, .36, 1);

  --font-display: "Archivo Black", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-ui: "PingFang SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --font-data: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (max-width: 1023px) {
  :root { --frame-h: 62px; --rail-w: 0px; --gap: 16px; }
}

/* ---------- 3. base ---------- */
body {
  padding-top: var(--frame-h);
  padding-left: var(--rail-w);
  background-color: var(--paper-050);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  overflow-x: hidden;
}

p + p { margin-top: .9em; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: .01em;
  color: var(--ink-900);
}
h1 { font-size: clamp(40px, 7vw, 88px); }
h2 { font-size: clamp(28px, 3.6vw, 48px); }
h3 { font-size: clamp(20px, 2.2vw, 28px); }
h4 { font-family: var(--font-ui); font-weight: 800; font-size: 17px; letter-spacing: .02em; }

strong { font-weight: 700; color: var(--clay-500); }
::selection { background: var(--gold-200); color: var(--ink-900); }

:focus-visible { outline: 3px solid var(--coral-500); outline-offset: 3px; border-radius: 2px; }
.frame-top :focus-visible,
.frame-rail :focus-visible,
.site-footer :focus-visible { outline-color: var(--gold-200); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 4. skip link ---------- */
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  transform: translateY(-220%);
  padding: 10px 18px;
  background: var(--gold-500); color: var(--ink-900);
  border-radius: var(--r-sm);
  font-family: var(--font-ui); font-size: 14px; font-weight: 700;
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 5. buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-family: var(--font-ui); font-size: 14px; font-weight: 700; letter-spacing: .04em;
  line-height: 1.3;
  white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease);
}
.btn--gold { background: var(--gold-500); color: var(--ink-900); }
.btn--gold:hover { background: var(--gold-200); transform: translateY(-2px); }
.btn--ink { background: var(--ink-900); color: var(--gold-200); }
.btn--ink:hover { background: var(--indigo-700); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink-900); border-color: rgba(18, 28, 58, .28); }
.btn--ghost:hover { border-color: var(--coral-500); color: var(--clay-500); }
.btn--block { width: 100%; }

/* ---------- 6. header : frame ---------- */
.site-frame { position: relative; z-index: 80; }

.frame-top {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--frame-h);
  background: var(--ink-900);
  color: var(--paper-050);
  border-bottom: 1px solid rgba(216, 163, 60, .34);
  z-index: 70;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.site-frame[data-condensed] .frame-top {
  box-shadow: 0 8px 26px rgba(18, 28, 58, .34);
  border-bottom-color: var(--gold-500);
}
.site-frame[data-condensed] .brand__tag { opacity: 0; }

.frame-top__inner {
  height: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 18px;
  display: flex; align-items: center; gap: 16px;
}

.brand { display: flex; align-items: center; gap: 12px; flex: 0 1 auto; min-width: 0; }
.brand__mark {
  flex: 0 0 auto; width: 34px; height: 34px;
  background: linear-gradient(140deg, var(--gold-500), var(--clay-500));
  clip-path: polygon(0 0, 100% 0, 100% 62%, 62% 100%, 0 100%);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand__line {
  font-family: var(--font-ui); font-weight: 800; font-size: 16px;
  letter-spacing: .02em; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.brand__tag {
  font-family: var(--font-data); font-size: 10px; letter-spacing: .18em;
  color: var(--gold-200); text-transform: uppercase;
  white-space: nowrap; transition: opacity .25s var(--ease);
}

.frame-utils { margin-left: auto; }
.frame-utils__list { display: flex; align-items: center; gap: 22px; }
.frame-utils__list a {
  display: inline-block; padding: 6px 0;
  font-family: var(--font-data); font-size: 12px; letter-spacing: .1em;
  color: var(--indigo-100);
  border-bottom: 1px solid transparent;
  white-space: nowrap;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.frame-utils__list a:hover { color: var(--gold-200); border-bottom-color: var(--coral-500); }

.frame-top__cta { flex: 0 0 auto; }

/* hamburger */
.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center; gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(244, 227, 191, .45);
  border-radius: var(--r-sm);
  color: var(--gold-200);
  font-family: var(--font-data); font-size: 11px; letter-spacing: .14em;
}
.nav-toggle:hover { border-color: var(--gold-500); }
.nav-toggle__bars {
  display: flex; flex-direction: column; justify-content: space-between;
  width: 18px; height: 12px;
}
.nav-toggle__bars span {
  display: block; height: 2px; border-radius: 2px;
  background: currentColor;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* scroll progress */
.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; background: rgba(244, 227, 191, .16);
  pointer-events: none;
}
.scroll-progress__fill {
  display: block; width: 0; height: 100%;
  background: linear-gradient(90deg, var(--gold-500), var(--coral-500));
}

/* left rail */
.frame-rail {
  position: fixed;
  top: var(--frame-h); left: 0; bottom: 0;
  width: var(--rail-w);
  padding: 16px 0 14px;
  background: var(--indigo-700);
  border-right: 1px solid rgba(216, 163, 60, .32);
  z-index: 60;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  overflow-y: auto; overflow-x: hidden;
  scrollbar-width: none;
}
.frame-rail::-webkit-scrollbar { width: 0; height: 0; }

.frame-rail__list { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; }
.rail-item { width: 100%; }

.rail-item__link {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: 100%;
  padding: 10px 4px;
  color: var(--indigo-100);
  border-left: 3px solid transparent;
  transition: transform .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), background-color .22s var(--ease);
}
.rail-item__link:hover {
  color: var(--gold-200);
  border-left-color: var(--coral-500);
  background: rgba(216, 163, 60, .1);
  transform: translate(4px, -4px);
}
.rail-item__link[aria-current="page"] {
  color: var(--gold-500);
  border-left-color: var(--gold-500);
  background: rgba(216, 163, 60, .14);
}
.rail-item__num {
  font-family: var(--font-data); font-size: 10px; letter-spacing: .06em;
  opacity: .72;
}
.rail-item__label {
  writing-mode: vertical-rl;
  font-family: var(--font-ui); font-weight: 600;
  font-size: 13px; letter-spacing: .18em;
}

.frame-rail__aux { display: none; }

.rail-mark {
  margin-top: auto; flex: 0 0 auto;
  width: 14px; height: 52px;
  background: linear-gradient(to bottom, var(--gold-500), var(--clay-500));
  clip-path: polygon(0 0, 100% 20%, 100% 100%, 0 80%);
}

/* ---------- 7. footer ---------- */
.site-footer {
  position: relative;
  margin-top: 88px;
  background: var(--ink-900);
  color: var(--indigo-100);
}
.footer-brick {
  height: 26px;
  background-color: rgba(169, 82, 58, .18);
  background-image: radial-gradient(circle at 1px 1px, rgba(216, 163, 60, .5) 1.2px, transparent 1.7px);
  background-size: 26px 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(130px, .7fr));
  gap: 40px 28px;
  padding-top: 54px;
  padding-bottom: 42px;
}

.footer-brand__line {
  font-family: var(--font-display); font-size: 22px; line-height: 1.25;
  color: var(--paper-050);
}
.footer-brand__tag {
  margin-top: 8px;
  font-family: var(--font-data); font-size: 11px; letter-spacing: .18em;
  color: var(--gold-500);
}
.footer-contact { margin-top: 22px; display: grid; gap: 12px; }
.footer-contact li { display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: start; }
.footer-contact__k {
  font-family: var(--font-data); font-size: 11px; letter-spacing: .12em;
  color: var(--gold-200); padding-top: 3px;
}
.footer-contact__v { font-size: 14px; line-height: 1.7; color: var(--indigo-100); word-break: break-word; }
.footer-note {
  margin-top: 20px; max-width: 42ch;
  font-size: 12.5px; line-height: 1.8; color: rgba(227, 231, 243, .62);
}

.footer-col__title {
  font-family: var(--font-data); font-weight: 400;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-500);
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(216, 163, 60, .3);
}
.footer-col__list { margin-top: 14px; display: grid; gap: 10px; }
.footer-col__list a {
  font-size: 15px; color: var(--indigo-100);
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.footer-col__list a:hover { color: var(--gold-200); border-bottom-color: var(--coral-500); }

.footer-base { border-top: 1px solid rgba(227, 231, 243, .14); }
.footer-base__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px;
  padding-top: 18px; padding-bottom: 18px;
}
.footer-base__legal {
  font-family: var(--font-data); font-size: 12px; letter-spacing: .08em;
  color: rgba(227, 231, 243, .72);
}
.footer-meta {
  font-family: var(--font-data); font-size: 12px; letter-spacing: .08em;
  color: rgba(227, 231, 243, .62);
}
.to-top {
  margin-left: auto;
  padding: 8px 16px;
  border: 1px solid rgba(216, 163, 60, .45);
  border-radius: var(--r-sm);
  font-family: var(--font-ui); font-size: 13px; font-weight: 700;
  color: var(--gold-200);
  transition: background-color .2s var(--ease), border-color .2s var(--ease), opacity .25s var(--ease);
}
.to-top:hover { background: rgba(216, 163, 60, .16); border-color: var(--gold-500); }
.to-top[data-visible] { opacity: 1; }

.to-top { opacity: .75; }

/* ---------- 8. layout ---------- */
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 24px; }
.wrap--wide { max-width: 1400px; }
.wrap--narrow { max-width: 780px; }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.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-12 { grid-column: span 12; }
@media (max-width: 900px) {
  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9 { grid-column: span 12; }
}

.section { padding-block: 64px; }
.section--tight { padding-block: 40px; }
.section--open { padding-block: 104px; }
@media (max-width: 900px) {
  .section { padding-block: 46px; }
  .section--open { padding-block: 66px; }
}

.section__head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(18, 28, 58, .16);
  margin-bottom: 28px;
}
.section__title { font-size: clamp(24px, 3vw, 38px); }
.section__note {
  margin-left: auto;
  font-family: var(--font-data); font-size: 11px; letter-spacing: .16em;
  color: var(--stone-600);
}

/* ---------- 9. panels & cards ---------- */
.panel {
  position: relative;
  padding: 22px 22px 24px;
  background: #fff;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-1);
}
.panel--cut {
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}
.panel--ink { background: var(--ink-900); color: var(--indigo-100); }
.panel--gold { background: var(--gold-200); }
.panel--line { background: transparent; box-shadow: none; border: 1px solid rgba(18, 28, 58, .18); }
.panel--ink .panel__title,
.panel--ink h2, .panel--ink h3 { color: var(--paper-050); }

.panel__head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(18, 28, 58, .14);
  margin-bottom: 16px;
}
.panel--ink .panel__head { border-bottom-color: rgba(244, 227, 191, .22); }
.panel__title { font-family: var(--font-ui); font-weight: 800; font-size: 18px; letter-spacing: .02em; }
.panel__meta {
  margin-left: auto;
  font-family: var(--font-data); font-size: 11px; letter-spacing: .12em;
  color: var(--stone-600);
}
.panel--ink .panel__meta { color: var(--gold-200); }
.panel__body { font-size: 15.5px; line-height: 1.8; }

/* ---------- 10. tags / pills ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(18, 28, 58, .08);
  background: var(--gold-200); color: var(--ink-900);
  font-family: var(--font-data); font-size: 11px; letter-spacing: .12em;
  white-space: nowrap;
}
.tag--ink { background: var(--ink-900); color: var(--gold-200); border-color: transparent; }
.tag--celadon { background: rgba(62, 143, 118, .14); color: #2B6A57; border-color: rgba(62, 143, 118, .32); }
.tag--coral { background: rgba(228, 105, 63, .14); color: #A8461F; border-color: rgba(228, 105, 63, .32); }
.tag--clay { background: rgba(169, 82, 58, .12); color: var(--clay-500); border-color: rgba(169, 82, 58, .34); }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(18, 28, 58, .18);
  background: transparent;
  font-family: var(--font-data); font-size: 12px; letter-spacing: .08em;
  color: var(--indigo-700);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.pill:hover { border-color: var(--coral-500); color: var(--clay-500); }
.pill[aria-pressed="true"], .pill.is-active {
  background: var(--ink-900); border-color: var(--ink-900); color: var(--gold-200);
}

/* ---------- 11. accordion ---------- */
.accordion { border-top: 1px solid rgba(18, 28, 58, .16); }
.accordion__item { border-bottom: 1px solid rgba(18, 28, 58, .16); }
.accordion__trigger {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 18px 4px;
  text-align: left;
  font-family: var(--font-ui); font-weight: 700; font-size: 17px;
  line-height: 1.5; color: var(--ink-900);
  transition: color .2s var(--ease);
}
.accordion__trigger:hover { color: var(--clay-500); }
.accordion__icon { position: relative; margin-left: auto; flex: 0 0 auto; width: 16px; height: 16px; }
.accordion__icon::before, .accordion__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  background: var(--gold-500); transform: translate(-50%, -50%);
}
.accordion__icon::before { width: 16px; height: 2px; }
.accordion__icon::after { width: 2px; height: 16px; transition: transform .22s var(--ease); }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.accordion__panel { padding: 0 4px 22px; font-size: 15.5px; line-height: 1.85; color: #2A3149; }

/* ---------- 12. progress / breadcrumb / annotation ---------- */
.progress { display: flex; align-items: center; gap: 14px; }
.progress__label {
  font-family: var(--font-data); font-size: 11px; letter-spacing: .14em;
  color: var(--stone-600); white-space: nowrap;
}
.progress__track { flex: 1; height: 6px; border-radius: 999px; background: var(--gold-200); overflow: hidden; }
.progress__fill { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-500), var(--coral-500)); }

.breadcrumb { padding-top: 16px; }
.breadcrumb__list {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-family: var(--font-data); font-size: 11px; letter-spacing: .1em;
  color: var(--stone-600);
}
.breadcrumb__list a:hover { color: var(--clay-500); border-bottom: 1px solid var(--coral-500); }
.breadcrumb__list [aria-current="page"] { color: var(--ink-900); }
.breadcrumb__sep { color: var(--gold-500); }

.eyebrow {
  display: block;
  font-family: var(--font-data); font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--clay-500);
}
.note-vert {
  writing-mode: vertical-rl;
  font-family: var(--font-data); font-size: 11px; letter-spacing: .3em;
  color: var(--stone-600);
}
.rule-slant {
  height: 14px; border: 0;
  background-image: repeating-linear-gradient(58deg, rgba(216, 163, 60, .85) 0 1px, transparent 1px 9px);
}

/* ---------- 13. media ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: var(--r-sm);
  background-color: var(--indigo-100);
  background-image:
    linear-gradient(135deg, rgba(30, 47, 92, .16), rgba(216, 163, 60, .18)),
    repeating-linear-gradient(45deg, rgba(18, 28, 58, .06) 0 1px, transparent 1px 10px);
}
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--3x4 { aspect-ratio: 3 / 4; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media__caption {
  position: absolute; left: 0; bottom: 0;
  padding: 8px 14px;
  background: rgba(18, 28, 58, .82);
  color: var(--paper-050);
  font-family: var(--font-data); font-size: 11px; letter-spacing: .1em;
}
.media[data-placeholder]::after {
  content: attr(data-placeholder);
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 9px 14px;
  background: rgba(250, 245, 234, .88);
  color: var(--indigo-700);
  font-family: var(--font-data); font-size: 11px; letter-spacing: .1em;
}

/* ---------- 14. reveal motion ---------- */
.reveal { transition: opacity .32s var(--ease), transform .32s var(--ease); }
.motion-ready .reveal { opacity: 0; transform: translateY(16px); }
.motion-ready .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 15. responsive frame ---------- */
@media (max-width: 1023px) {
  .frame-utils, .frame-top__cta { display: none; }
  .nav-toggle { display: inline-flex; }

  .frame-rail {
    top: var(--frame-h); left: 0; bottom: 0;
    width: min(320px, 84vw);
    padding: 20px 18px 24px;
    background: var(--ink-900);
    border-right: 1px solid rgba(216, 163, 60, .32);
    align-items: stretch;
    gap: 16px;
    transform: translateX(-102%);
    transition: transform .3s var(--ease);
    z-index: 65;
  }
  .frame-rail[data-open] {
    transform: translateX(0);
    box-shadow: var(--shadow-2);
  }

  .frame-rail__list { align-items: stretch; gap: 2px; }
  .rail-item__link {
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding: 13px 12px;
    border-left: 3px solid transparent;
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
  }
  .rail-item__label {
    writing-mode: horizontal-tb;
    font-size: 15px; letter-spacing: .1em;
  }
  .rail-item__link:hover { transform: translateX(4px); }

  .frame-rail__aux {
    display: grid; gap: 10px;
    padding-top: 16px;
    border-top: 1px solid rgba(244, 227, 191, .22);
  }
  .frame-rail__aux-title {
    font-family: var(--font-data); font-size: 11px; letter-spacing: .2em;
    text-transform: uppercase; color: var(--gold-500);
  }
  .frame-rail__aux a {
    font-size: 14px; color: var(--indigo-100);
  }
  .frame-rail__aux a:hover { color: var(--gold-200); }
  .frame-rail__aux .btn { margin-top: 6px; }
  .rail-mark { display: none; }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 24px;
    padding-top: 40px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  body { font-size: 16.5px; }
  .brand__tag { display: none; }
  .brand__line { font-size: 15px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-contact li { grid-template-columns: 1fr; gap: 2px; }
  .footer-base__inner { flex-direction: column; align-items: flex-start; }
  .to-top { margin-left: 0; }
}

/* ---------- 16. anchors & reduced motion ---------- */
[id="main-content"] { scroll-margin-top: calc(var(--frame-h) + 20px); }

@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;
  }
  .motion-ready .reveal { opacity: 1; transform: none; }
  .rail-item__link:hover { transform: none; }
  .btn:hover { transform: none; }
}
