/* =========================================================
   安博体育主站 · 共享站点样式 /assets/site.css
   夜场指挥中心：墨绿底 + 荧光草绿脉冲 + 比分牌节奏
   ========================================================= */

:root {
  --night: #0B1F1A;
  --tactic: #12352B;
  --lime: #B8FF3D;
  --yellow: #FFD23F;
  --red: #FF4D4D;
  --white: #F4FFF8;
  --carbon: #07100D;
  --mist: #7E9B8F;
  --cyan: #2EE6C8;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --pill: 999px;

  --shell: 1240px;
  --header-h: 112px;

  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Arial Narrow", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Courier New", monospace;
}

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

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

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

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

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

button { font: inherit; }

a { color: inherit; }

/* ---------- base ---------- */
body {
  min-height: 100vh;
  background-color: var(--night);
  background-image:
    radial-gradient(1200px 620px at 78% -10%, rgba(46, 230, 200, 0.10), transparent 65%),
    radial-gradient(900px 520px at 8% 4%, rgba(184, 255, 61, 0.09), transparent 62%),
    linear-gradient(rgba(126, 155, 143, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 155, 143, 0.07) 1px, transparent 1px);
  background-size: auto, auto, 72px 72px, 72px 72px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-stretch: condensed;
  color: var(--white);
}

h1 { font-size: clamp(34px, 5.4vw, 64px); }
h2 { font-size: clamp(26px, 3.4vw, 42px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }

p { text-wrap: pretty; }

::selection { background: var(--lime); color: var(--carbon); }

#main-content { display: block; scroll-margin-top: 132px; }

/* ---------- focus ---------- */
:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

/* ---------- layout ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-left: 26px;
  padding-right: 26px;
}

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.panel {
  padding: 26px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(126, 155, 143, 0.22);
  background:
    linear-gradient(160deg, rgba(18, 53, 43, 0.92), rgba(11, 31, 26, 0.94));
}

/* ---------- type utilities ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--yellow);
}

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

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--pill);
  border: 1px solid rgba(46, 230, 200, 0.32);
  background: rgba(46, 230, 200, 0.12);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}
.tag--lime {
  border-color: rgba(184, 255, 61, 0.36);
  background: rgba(184, 255, 61, 0.13);
  color: var(--lime);
}
.tag--yellow {
  border-color: rgba(255, 210, 63, 0.38);
  background: rgba(255, 210, 63, 0.13);
  color: var(--yellow);
}
.tag--red {
  border-color: rgba(255, 77, 77, 0.42);
  background: rgba(255, 77, 77, 0.14);
  color: var(--red);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease,
    border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--accent {
  background: var(--lime);
  color: var(--carbon);
  box-shadow: 0 12px 30px -16px rgba(184, 255, 61, 0.95);
}
.btn--accent:hover { background: #c9ff6e; }

.btn--ghost {
  background: rgba(18, 53, 43, 0.6);
  border-color: rgba(126, 155, 143, 0.5);
  color: var(--white);
}
.btn--ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
}

/* ---------- breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before {
  content: "/";
  color: rgba(126, 155, 143, 0.5);
}
.breadcrumb a {
  color: rgba(244, 255, 248, 0.7);
  text-decoration: none;
  transition: color 0.18s ease;
}
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb [aria-current="page"] { color: var(--lime); }

/* ---------- prose ---------- */
.prose { max-width: 70ch; }
.prose p { margin-bottom: 1.1em; color: rgba(244, 255, 248, 0.84); }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { margin: 1.5em 0 0.6em; }
.prose h3 { margin: 1.3em 0 0.5em; color: var(--yellow); }
.prose a { color: var(--lime); text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.2em; }
.prose li { margin-bottom: 0.5em; color: rgba(244, 255, 248, 0.84); }
.prose ul li { list-style: square; }

/* ---------- section head ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 28px;
}
.section-head__title { font-size: clamp(24px, 3vw, 38px); }

/* ---------- media frame ---------- */
.media-frame {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(126, 155, 143, 0.26);
  background:
    radial-gradient(circle at 28% 18%, rgba(46, 230, 200, 0.18), transparent 62%),
    linear-gradient(150deg, var(--tactic), var(--carbon) 72%);
}
.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(184, 255, 61, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 255, 61, 0.13) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 18%, transparent 86%);
  mask-image: radial-gradient(circle at 50% 50%, #000 18%, transparent 86%);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 21 / 9; border-radius: var(--radius-lg); }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame__label {
  position: relative;
  padding: 8px 16px;
  border-radius: var(--pill);
  border: 1px solid rgba(184, 255, 61, 0.34);
  background: rgba(7, 16, 13, 0.62);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: 20px;
  top: -120px;
  z-index: 300;
  padding: 12px 22px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--lime);
  color: var(--carbon);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus,
.skip-link:focus-visible { top: 0; outline-offset: 0; }

/* ---------- live dot ---------- */
.dot-live {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(184, 255, 61, 0.18);
  animation: livePulse 2.6s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(184, 255, 61, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(184, 255, 61, 0.04); }
}

/* =========================================================
   页头
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  color: var(--white);
  background: linear-gradient(180deg, rgba(7, 16, 13, 0.985), rgba(11, 31, 26, 0.96));
  border-bottom: 1px solid rgba(126, 155, 143, 0.22);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.header-rail {
  background: rgba(7, 16, 13, 0.92);
  border-bottom: 1px solid rgba(126, 155, 143, 0.16);
}
.header-rail__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
}
.header-rail__tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--mist);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-rail__meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(126, 155, 143, 0.82);
  white-space: nowrap;
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 74px;
}

/* brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  text-decoration: none;
  color: inherit;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--lime);
  color: var(--carbon);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.05em;
  box-shadow: inset 0 0 0 3px rgba(7, 16, 13, 0.14);
}
.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}
.brand__name {
  font-size: 15.5px;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--white);
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--mist);
}

/* nav toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 10px 16px;
  border: 1px solid rgba(126, 155, 143, 0.45);
  border-radius: var(--pill);
  background: rgba(18, 53, 43, 0.65);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.nav-toggle:hover { border-color: var(--lime); color: var(--lime); }
.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 18px;
}
.nav-toggle__bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.18s ease;
}
.site-header[data-open] .nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle__label { white-space: nowrap; }

/* nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 10px 12px 12px;
  border-radius: var(--pill);
  color: rgba(244, 255, 248, 0.78);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease, background-color 0.18s ease;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}
.site-nav__link:hover {
  color: var(--white);
  background: rgba(184, 255, 61, 0.09);
}
.site-nav__link:hover::after { transform: scaleX(1); }
.site-nav__idx {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--mist);
  transform: translateY(-4px);
}
.site-nav__label { white-space: nowrap; }

.site-nav__link[aria-current="page"] {
  color: var(--lime);
  background: rgba(184, 255, 61, 0.1);
  box-shadow: inset 0 0 0 1px rgba(184, 255, 61, 0.34);
}
.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--lime);
  box-shadow: 0 0 10px rgba(184, 255, 61, 0.8);
}
.site-nav__link[aria-current="page"] .site-nav__idx { color: var(--lime); }

.site-nav__foot { display: none; }

/* header cta */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  padding: 12px 20px;
  border-radius: var(--pill);
  background: var(--lime);
  color: var(--carbon);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 10px 26px -14px rgba(184, 255, 61, 0.95);
  transition: transform 0.18s ease, background-color 0.18s ease;
}
.header-cta::after {
  content: "→";
  font-family: var(--font-mono);
  font-size: 13px;
}
.header-cta:hover {
  transform: translateY(-2px);
  background: #c9ff6e;
}

/* progress */
.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(126, 155, 143, 0.16);
  overflow: hidden;
}
.header-progress > span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--lime) 55%, var(--yellow));
  transition: width 0.12s linear;
}

/* =========================================================
   页脚
   ========================================================= */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 120px);
  color: var(--white);
  background: linear-gradient(180deg, #07100D 0%, #050B09 100%);
  border-top: 1px solid rgba(184, 255, 61, 0.18);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--lime) 0 46px,
    transparent 46px 92px
  );
  opacity: 0.55;
}
.footer-inner {
  padding-top: 72px;
  padding-bottom: 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 48px 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(126, 155, 143, 0.2);
}

.footer-brand__name {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--white);
}
.footer-brand__name::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-right: 12px;
  border-radius: 3px;
  background: var(--lime);
  transform: rotate(45deg);
  flex: none;
}
.footer-brand__line {
  max-width: 34ch;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--mist);
}
.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  padding: 8px 15px;
  border-radius: var(--pill);
  border: 1px solid rgba(184, 255, 61, 0.3);
  background: rgba(184, 255, 61, 0.07);
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(244, 255, 248, 0.82);
}

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
}
.footer-col__title::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--yellow);
  flex: none;
}

.footer-links {
  display: grid;
  gap: 11px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(244, 255, 248, 0.74);
  font-size: 14.5px;
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
}
.footer-links a::before {
  content: "›";
  font-family: var(--font-mono);
  color: var(--mist);
}
.footer-links a:hover {
  color: var(--lime);
  transform: translateX(3px);
}

.footer-contact {
  display: grid;
  gap: 14px;
}
.footer-contact__item {
  display: grid;
  gap: 3px;
}
.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}
.footer-contact__value {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(244, 255, 248, 0.88);
  word-break: break-word;
  overflow-wrap: anywhere;
}
.footer-note {
  margin-top: 18px;
  padding-left: 13px;
  border-left: 2px solid var(--yellow);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--mist);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding-top: 26px;
}
.footer-legal {
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--mist);
}
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.footer-legal-links a {
  font-size: 12.5px;
  color: rgba(244, 255, 248, 0.72);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.footer-legal-links a:hover {
  color: var(--lime);
  border-bottom-color: rgba(184, 255, 61, 0.6);
}

/* back to top */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 130;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid rgba(184, 255, 61, 0.4);
  border-radius: var(--pill);
  background: rgba(11, 31, 26, 0.94);
  color: var(--lime);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease,
    visibility 0.25s ease, background-color 0.2s ease;
}
.to-top::before {
  content: "↑";
  font-family: var(--font-mono);
  font-size: 14px;
}
.to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.to-top:hover { background: rgba(184, 255, 61, 0.18); }

/* ---------- reveal ---------- */
[data-reveal] {
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html[data-reveal-active] [data-reveal]:not([data-revealed="true"]) {
  opacity: 0;
  transform: translateY(18px);
}

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1080px) {
  html.nav-open { overflow: hidden; }

  .header-bar {
    min-height: 66px;
    gap: 14px;
    flex-wrap: wrap;
  }

  .brand__mark { width: 38px; height: 38px; border-radius: 12px; font-size: 13px; }

  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    margin: 0;
    padding: 14px 26px 26px;
    max-height: min(78vh, 660px);
    overflow-y: auto;
    border-bottom: 1px solid rgba(126, 155, 143, 0.28);
    background: #0B1F1A;
    box-shadow: 0 34px 60px -30px #000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  }
  .site-header[data-open] .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .site-nav__link {
    justify-content: flex-start;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 16px;
  }
  .site-nav__link::after { display: none; }
  .site-nav__idx { font-size: 11px; transform: none; }
  .site-nav__link[aria-current="page"] {
    box-shadow: inset 0 0 0 1px rgba(184, 255, 61, 0.4);
  }
  .site-nav__foot { display: block; margin-top: 16px; }
  .site-nav__foot .btn { width: 100%; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .grid--2,
  .grid--3 { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; }
}

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

  .shell { padding-left: 18px; padding-right: 18px; }

  .header-rail__meta { display: none; }
  .header-rail__inner { justify-content: flex-start; }
  .header-rail__tag { font-size: 11px; letter-spacing: 0.1em; }

  .site-nav { padding: 10px 18px 22px; }

  .footer-inner { padding-top: 54px; padding-bottom: 96px; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-bottom: 34px;
  }
  .footer-brand__name { font-size: 22px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .to-top { right: 14px; bottom: 14px; padding: 11px 15px; }
}

@media (max-width: 420px) {
  .brand__sub { display: none; }
  .nav-toggle__label { display: none; }
  .nav-toggle { padding: 11px 13px; }
}

/* ---------- reduced motion ---------- */
@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[data-reveal-active] [data-reveal]:not([data-revealed="true"]) {
    opacity: 1;
    transform: none;
  }
  .to-top { transition: none; }
}
