/* ============================================================
   JBO赛场 — /assets/site.css
   共享外壳：reset / tokens / 排版 / 头部 / 页脚 / 基础组件
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 132px;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 620px at 108% -12%, rgba(45, 226, 230, 0.10), transparent 62%),
    radial-gradient(900px 520px at -12% 18%, rgba(255, 138, 61, 0.07), transparent 58%),
    var(--abyss);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

::selection { background: var(--orange); color: #0a1014; }

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

/* ---------- tokens ---------- */
:root {
  --abyss: #061A2E;
  --panel: #0B2A45;
  --fold: #173B57;
  --cyan: #2DE2E6;
  --cyan-soft: #8FF7F2;
  --orange: #FF8A3D;
  --orange-deep: #D95F1F;
  --stone: #6B7A88;
  --paper: #F4F0E8;
  --clay: #C9785A;
  --graphite: #111820;
  --cream: #F4F0E8;

  --ink-70: rgba(244, 240, 232, 0.78);
  --ink-55: rgba(244, 240, 232, 0.58);
  --hair: rgba(143, 247, 242, 0.18);
  --hair-strong: rgba(143, 247, 242, 0.34);

  --font-display: "Barlow Condensed", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-serif: "Noto Serif SC", "Songti SC", Georgia, "Times New Roman", serif;

  --shell: 1220px;
  --gutter: clamp(18px, 4vw, 56px);
  --gap: clamp(14px, 2vw, 26px);
  --radius: 0px;
}

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

.page-shell { padding-block: clamp(26px, 4vw, 54px); }

.section {
  position: relative;
  padding-block: clamp(44px, 6vw, 88px);
}

.section--paper {
  background: var(--paper);
  color: var(--graphite);
  border-block: 1px solid rgba(17, 24, 32, 0.12);
}
.section--paper .eyebrow { color: var(--orange-deep); }
.section--paper .eyebrow::before { background: var(--orange-deep); }
.section--paper .lede { color: #3C4752; }
.section--paper .hair-rule { background: rgba(17, 24, 32, 0.16); }
.section--paper .note-serif { color: #2A3340; }
.section--paper a:not(.btn) { color: var(--orange-deep); }
.section--paper a:not(.btn):hover { color: #A8440F; }
.section--paper :focus-visible { outline-color: var(--orange-deep); }
.section--paper .btn--ghost { color: #0B5C60; border-color: rgba(11, 92, 96, 0.5); }

.grid { display: grid; gap: clamp(16px, 2.4vw, 32px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stack { display: flex; flex-direction: column; gap: var(--gap); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(10px, 1.6vw, 18px); }

.hair-rule { height: 1px; border: 0; margin-block: clamp(24px, 4vw, 44px); background: var(--hair); }

.panel {
  background: var(--panel);
  border: 1px solid var(--hair);
  padding: clamp(18px, 2.4vw, 30px);
}

.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;
}

/* ---------- typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(44px, 7vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.025em;
}

.headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--orange);
  flex: none;
}

.lede {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.75;
  color: var(--ink-70);
  max-width: 62ch;
}

.note-serif {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--cyan-soft);
}

.mono {
  font-family: var(--font-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn--primary {
  background: var(--orange);
  color: #1A0E06;
}
.btn--primary:hover { background: var(--orange-deep); color: #FFF2E6; }

.btn--ghost {
  background: transparent;
  border-color: rgba(45, 226, 230, 0.55);
  color: var(--cyan);
}
.btn--ghost:hover { background: rgba(45, 226, 230, 0.12); border-color: var(--cyan); }

.btn--sm { padding: 7px 15px; font-size: 0.8rem; }
.btn--block { width: 100%; }

.link-quiet {
  font-size: 0.84rem;
  color: var(--ink-70);
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(244, 240, 232, 0.24);
  transition: color 0.18s ease, border-color 0.18s ease;
}
.link-quiet:hover { color: var(--cyan); border-color: var(--cyan); }

.link-cyan {
  color: var(--cyan);
  border-bottom: 1px solid rgba(45, 226, 230, 0.45);
}
.link-cyan:hover { color: var(--cyan-soft); border-color: var(--cyan-soft); }

/* ---------- tags & chips ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--cyan-soft);
  border: 1px solid rgba(143, 247, 242, 0.32);
}
.tag--orange { color: var(--orange); border-color: rgba(255, 138, 61, 0.5); }
.tag--clay { color: #F0BFA8; border-color: rgba(201, 120, 90, 0.55); }

.round-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 26px;
  padding: 0 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--orange);
  background: rgba(255, 138, 61, 0.08);
  border: 1px solid rgba(255, 138, 61, 0.42);
}

/* ---------- breadcrumbs ---------- */
.breadcrumbs {
  margin-block: 4px clamp(16px, 2vw, 26px);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-55); }
.breadcrumbs li:not(:last-child)::after { content: "/"; color: rgba(45, 226, 230, 0.6); }
.breadcrumbs a { color: var(--ink-70); }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs [aria-current="page"] { color: var(--orange); }

/* ---------- media frames ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--fold);
  border: 1px solid var(--hair);
}
.media-frame > img,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(143, 247, 242, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 247, 242, 0.13) 1px, transparent 1px);
  background-size: 48px 48px;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--diagonal {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
}
.media-frame__label {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: #061A2E;
  background: var(--cyan);
}
.media-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: rgba(143, 247, 242, 0.62);
  background:
    repeating-linear-gradient(135deg, rgba(23, 59, 87, 0.9) 0 14px, rgba(11, 42, 69, 0.9) 14px 28px);
}

/* ---------- scrollspy ---------- */
.spy-nav__list { display: flex; flex-direction: column; gap: 2px; }
.spy-nav__link {
  display: block;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--ink-55);
  border-left: 2px solid rgba(143, 247, 242, 0.2);
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}
.spy-nav__link:hover { color: var(--cyan-soft); border-color: var(--cyan); background: rgba(23, 59, 87, 0.5); }
.spy-nav__link[aria-current="true"] {
  color: var(--cyan);
  border-left-color: var(--orange);
  background: rgba(23, 59, 87, 0.72);
}

/* ---------- reveal ---------- */
html.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
html.js-reveal [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, #061A2E 0%, #082440 100%);
  border-bottom: 1px solid var(--hair);
  isolation: isolate;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 120;
  padding: 10px 18px;
  background: var(--cyan);
  color: #04121F;
  font-weight: 700;
  font-size: 0.9rem;
  transition: top 0.18s ease;
}
.skip-link:focus { top: 10px; }

.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(143, 247, 242, 0.12);
  overflow: hidden;
}
.header-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--cyan) 55%, var(--orange) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* --- layer 1: signature strip --- */
.header-strip {
  background: rgba(4, 17, 30, 0.92);
  border-bottom: 1px solid rgba(143, 247, 242, 0.1);
}
.header-strip__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: 46px;
  padding-block: 6px;
}

.signature {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.signature__mark {
  width: 11px;
  height: 11px;
  background: var(--orange);
  transform: skewX(-20deg);
  flex: none;
}
.signature__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.06em;
  color: var(--cream);
  white-space: nowrap;
}
.signature__sep { color: var(--cyan); padding-inline: 2px; }

.header-sync {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-inline: auto;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-55);
  white-space: nowrap;
}
.header-sync__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(45, 226, 230, 0.16);
  flex: none;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 18px);
  flex: none;
  margin-left: auto;
}

/* --- layer 2: navigation bar --- */
.header-bar { position: relative; }
.header-bar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(80px, 14vw, 220px);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan));
  transform: skewX(-34deg);
  transform-origin: 100% 100%;
  pointer-events: none;
}
.header-bar__inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  min-height: 58px;
  padding-block: 6px;
}

.site-nav { min-width: 0; }
.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(10px, 1.7vw, 26px);
}
.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-70);
  transition: color 0.16s ease;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.2s ease;
}
.site-nav__link:hover { color: var(--cream); }
.site-nav__link:hover::after { transform: scaleX(1); }
.site-nav__link[aria-current="page"] { color: var(--cyan); }
.site-nav__link[aria-current="page"]::after {
  background: var(--orange);
  transform: scaleX(1);
}

.round-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: none;
}
.round-strip__label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--stone);
  text-transform: uppercase;
}
.round-strip__list { display: flex; align-items: center; gap: 6px; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 13px;
  border: 1px solid rgba(143, 247, 242, 0.3);
  background: rgba(23, 59, 87, 0.45);
  color: var(--cyan);
}
.nav-toggle__bars { display: grid; gap: 4px; width: 22px; }
.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
}

.site-header[data-open] .nav-toggle { border-color: var(--orange); color: var(--orange); }
.site-header[data-open] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) 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(-6px) rotate(-45deg); }

@media (max-width: 1099px) {
  .round-strip { display: none; }
}

@media (max-width: 940px) {
  html { scroll-padding-top: 112px; }
  .header-sync { display: none; }
  .header-tools .link-quiet { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .header-bar__inner { min-height: 54px; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 90;
    background: #071F35;
    border-top: 1px solid var(--hair-strong);
    border-bottom: 1px solid var(--hair);
    padding: 8px var(--gutter) 20px;
    box-shadow: 0 22px 40px rgba(2, 10, 18, 0.5);
  }
  .site-header[data-open] .site-nav { display: block; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__item { border-bottom: 1px solid rgba(143, 247, 242, 0.12); }
  .site-nav__item:last-child { border-bottom: 0; }
  .site-nav__link {
    display: block;
    padding: 15px 4px;
    font-size: 1.02rem;
  }
  .site-nav__link::after { display: none; }
  .site-nav__link[aria-current="page"] {
    padding-left: 14px;
    border-left: 3px solid var(--orange);
  }
}

@media (max-width: 560px) {
  .signature__text { font-size: 0.84rem; }
  .header-tools .btn--sm { padding: 6px 11px; font-size: 0.74rem; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  background: #05172A;
  color: var(--ink-70);
  border-top: 1px solid var(--hair);
}

.footer-rail {
  height: 6px;
  background:
    linear-gradient(90deg,
      var(--cyan) 0 20%,
      transparent 20% 24%,
      var(--orange) 24% 32%,
      transparent 32% 36%,
      rgba(143, 247, 242, 0.28) 36% 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1.35fr;
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(38px, 5vw, 68px);
}

.footer-brand__link {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.65rem;
  letter-spacing: 0.03em;
  color: var(--cream);
}
.footer-brand__link span { color: var(--cyan); }
.footer-brand__line {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
  color: var(--cream);
}
.footer-brand__note {
  margin-top: 8px;
  max-width: 28ch;
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(244, 240, 232, 0.52);
}

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}
.footer-col__title::before {
  content: "";
  width: 12px;
  height: 2px;
  background: var(--orange);
  flex: none;
}

.footer-list { display: flex; flex-direction: column; gap: 10px; }
.footer-list a {
  font-size: 0.92rem;
  color: rgba(244, 240, 232, 0.8);
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.footer-list a:hover { color: var(--cyan); border-color: rgba(45, 226, 230, 0.5); }

.footer-list--contact { gap: 12px; }
.footer-list--contact li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.footer-label {
  flex: none;
  min-width: 34px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--stone);
  text-transform: uppercase;
}
.footer-value {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  color: var(--cream);
  word-break: break-all;
}

.copy-btn {
  flex: none;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  color: var(--cyan-soft);
  border: 1px solid rgba(143, 247, 242, 0.34);
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.copy-btn:hover { background: rgba(45, 226, 230, 0.14); border-color: var(--cyan); color: var(--cyan); }
.copy-btn.is-copied {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04121F;
  font-weight: 700;
}

.footer-note {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(143, 247, 242, 0.12);
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(244, 240, 232, 0.5);
}

.footer-base {
  background: rgba(3, 13, 24, 0.9);
  border-top: 1px solid rgba(143, 247, 242, 0.14);
}
.footer-base__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 16px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: rgba(244, 240, 232, 0.58);
}
.footer-copy { color: rgba(244, 240, 232, 0.72); }
.footer-icp { color: var(--stone); }
.footer-dom { color: rgba(45, 226, 230, 0.7); }

/* ---------- back to top ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 34px);
  bottom: clamp(14px, 3vw, 34px);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
  background: var(--panel);
  border: 1px solid rgba(143, 247, 242, 0.42);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.to-top:hover { background: var(--cyan); color: #04121F; border-color: var(--cyan); }
.to-top__glyph { font-size: 0.9rem; line-height: 1; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col--contact { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-base__inner { justify-content: flex-start; gap: 8px 18px; }
  .to-top { padding: 9px 12px; font-size: 0.66rem; }
}

/* ---------- responsive grid + motion ---------- */
@media (max-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  body { font-size: 15.5px; }
}

@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;
    scroll-behavior: auto !important;
  }
  html.js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
