/* ============================================================
   球盟会赛场 · 共享 Site Kit
   边疆赛场沙盘：刻度框景 / 切角面板 / 黑白高对比 + 戈壁橙锚点
   ============================================================ */

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

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

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

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

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

button { font: inherit; color: inherit; }

a { color: inherit; }

/* ---------- tokens ---------- */
:root {
  --ink: #0B0D0C;
  --snow: #F7F4EC;
  --gobi: #D96B2B;
  --gobi-deep: #C05C21;
  --glacier: #7FA8B8;
  --sand: #E7D8BD;
  --sand-deep: #DBC9A6;
  --pine: #1F3B32;
  --amber: #F5B841;
  --charcoal: #2C2F2D;
  --slate: #5C7076;
  --peach: #F5D8C8;

  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(18px, 4.4vw, 56px);
  --cut: 22px;
  --line: rgba(11, 13, 12, 0.14);
  --line-soft: rgba(11, 13, 12, 0.08);
  --line-light: rgba(247, 244, 236, 0.18);
  --ease: cubic-bezier(0.2, 0.72, 0.24, 1);
}

/* ---------- base ---------- */
body {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.02vw, 17px);
  line-height: 1.75;
  color: var(--ink);
  background: var(--snow);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

.site-header :where(a, button):focus-visible,
.site-footer :where(a, button):focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -140px;
  z-index: 300;
  display: inline-block;
  padding: 12px 20px;
  background: var(--gobi);
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: top 0.18s var(--ease);
}

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

/* ---------- shared type utilities ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 9vw, 160px);
  line-height: 0.84;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin: 0;
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: 0.01em;
}

.label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.4;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gobi);
  flex: none;
}

/* ---------- layout containers ---------- */
.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: 860px; }
.wrap--wide { max-width: 1560px; }

.rule {
  height: 1px;
  border: 0;
  background: var(--line);
  margin: 0;
}

.rule--ink { background: var(--ink); }

.prose {
  max-width: 68ch;
}

.prose > * + * {
  margin-top: 1.15em;
}

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin-top: 1.8em;
}

.prose h2 { font-size: clamp(26px, 3.2vw, 38px); }
.prose h3 { font-size: clamp(20px, 2.4vw, 26px); }

.prose a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--gobi);
}

.prose a:hover { background: var(--peach); }

.prose ul,
.prose ol {
  padding-left: 1.35em;
  list-style: disc;
}

.prose ol { list-style: decimal; }

.prose li + li { margin-top: 0.4em; }

.prose blockquote {
  border-left: 4px solid var(--glacier);
  padding: 4px 0 4px 20px;
  color: var(--charcoal);
  font-size: 1.05em;
}

/* ---------- breadcrumbs ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}

.crumbs a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.crumbs a:hover,
.crumbs a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--gobi);
}

.crumbs [aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

.crumbs__sep {
  color: var(--slate);
  opacity: 0.6;
}

/* ---------- buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.85em 1.35em 0.85em 1.15em;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.15;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-left: 5px solid var(--btn-bd);
  transition:
    background-color 0.16s var(--ease),
    color 0.16s var(--ease),
    border-color 0.16s var(--ease),
    transform 0.16s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  --btn-bg: var(--gobi);
  --btn-fg: var(--ink);
  --btn-bd: var(--gobi);
}

.btn--primary:hover { --btn-bg: var(--gobi-deep); --btn-bd: var(--gobi-deep); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--snow);
  --btn-bd: rgba(247, 244, 236, 0.55);
}

.btn--ghost:hover {
  --btn-bg: var(--snow);
  --btn-fg: var(--ink);
  --btn-bd: var(--snow);
}

.btn--amber {
  --btn-bg: transparent;
  --btn-fg: var(--amber);
  --btn-bd: var(--amber);
}

.btn--amber:hover {
  --btn-bg: var(--amber);
  --btn-fg: var(--ink);
  --btn-bd: var(--amber);
}

/* ---------- panels & shapes ---------- */
.cut-corner {
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    0 100%
  );
}

.panel {
  background: var(--snow);
  border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 34px);
  padding-bottom: clamp(30px, 4vw, 46px);
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    0 100%
  );
}

.panel--sand {
  background: var(--sand);
  border-color: transparent;
}

.panel--pine {
  background: var(--pine);
  border-color: transparent;
  color: var(--snow);
}

/* ---------- image containers (page stage reuses these) ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--sand);
  border: 1px solid var(--line-soft);
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(11, 13, 12, 0.055) 0 1px,
    transparent 1px 9px
  );
}

.media-frame--cut {
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 28px),
    calc(100% - 28px) 100%,
    0 100%
  );
}

.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3  { aspect-ratio: 4 / 3; }
.media-frame--1x1  { aspect-ratio: 1 / 1; }

.img-ph {
  display: grid;
  place-items: center;
  min-height: 180px;
  width: 100%;
  height: 100%;
  padding: 20px;
  background: linear-gradient(150deg, var(--sand) 0%, var(--sand-deep) 100%);
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-align: center;
}

/* ---------- reveal protocol ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--snow);
  border-bottom: 3px solid var(--gobi);
}

.header-ruler {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 24px;
  padding: 0 var(--gutter);
  background-image: repeating-linear-gradient(
    90deg,
    rgba(247, 244, 236, 0.28) 0 1px,
    transparent 1px 16px
  );
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
}

.header-ruler__label {
  white-space: nowrap;
  line-height: 1;
}

.header-ruler__label--end {
  color: var(--glacier);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  width: 100%;
  max-width: 1680px;
  margin-inline: auto;
  padding: 12px var(--gutter);
}

/* brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  text-decoration: none;
  color: var(--snow);
}

.brand__mark {
  width: 26px;
  height: 26px;
  flex: none;
  background: var(--gobi);
  clip-path: polygon(0 0, 100% 0, 100% 58%, 58% 100%, 0 100%);
  transition: clip-path 0.22s var(--ease), background-color 0.22s var(--ease);
}

.brand:hover .brand__mark {
  background: var(--amber);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 42% 100%, 0 42%);
}

.brand__text {
  display: block;
}

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 23px;
  line-height: 1;
  letter-spacing: 0.06em;
}

.brand__tagline {
  display: block;
  margin-top: 5px;
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: 0.16em;
  color: rgba(247, 244, 236, 0.55);
}

.header-badge {
  flex: none;
  padding: 5px 9px;
  border: 1px solid rgba(127, 168, 184, 0.55);
  color: var(--glacier);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

/* toggle (mobile only) */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 10px 14px;
  background: transparent;
  color: var(--snow);
  border: 1px solid rgba(247, 244, 236, 0.35);
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.16em;
  line-height: 1;
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 10px;
  flex: none;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--snow);
  transition: transform 0.2s var(--ease), top 0.2s var(--ease);
}

.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { top: 8px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 4px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  top: 4px;
  transform: rotate(-45deg);
}

.nav-toggle__label { white-space: nowrap; }

/* navigation */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.6vw, 26px);
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.5vw, 22px);
  margin: 0;
  padding: 0;
}

.site-nav__item { flex: none; }

.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 9px 0;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-decoration: none;
  color: rgba(247, 244, 236, 0.72);
  transition: color 0.16s var(--ease);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 3px;
  height: 2px;
  background: var(--gobi);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s var(--ease);
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--snow);
}

.site-nav__link:hover::after,
.site-nav__link:focus-visible::after,
.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav__link[aria-current="page"] {
  color: var(--snow);
  font-weight: 700;
}

.header-cta {
  flex: none;
  padding: 0.72em 1.05em 0.72em 0.95em;
  font-size: 13px;
  letter-spacing: 0.08em;
}

/* ---------- header responsive ---------- */
@media (max-width: 1180px) {
  .site-nav { gap: 10px; }
  .site-nav__list { gap: 4px; }
  .site-nav__link { font-size: 12.5px; letter-spacing: 0.06em; }
  .header-cta { font-size: 12px; padding: 0.7em 0.85em; }
}

@media (max-width: 980px) {
  .header-badge { display: none; }
  .brand__tagline { display: none; }
  .brand__name { font-size: 21px; }

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

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 4px var(--gutter) 22px;
    background: var(--ink);
    border-top: 1px solid rgba(247, 244, 236, 0.15);
    border-bottom: 4px solid var(--gobi);
    max-height: min(76vh, 620px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav[data-open] { display: flex; }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .site-nav__item {
    border-bottom: 1px solid rgba(247, 244, 236, 0.12);
  }

  .site-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 0;
    font-size: 16px;
    letter-spacing: 0.1em;
    color: var(--snow);
  }

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

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

  .header-cta {
    width: 100%;
    margin-top: 20px;
    padding: 0.95em 1.1em;
    font-size: 15px;
  }
}

@media (max-width: 640px) {
  .header-ruler {
    height: 20px;
    font-size: 9px;
    letter-spacing: 0.12em;
  }
  .header-ruler__label--end { display: none; }
  .header-inner { padding-block: 10px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 120px);
  background: var(--pine);
  color: rgba(247, 244, 236, 0.82);
  overflow: hidden;
}

.footer-ruler {
  height: 26px;
  border-bottom: 1px solid rgba(247, 244, 236, 0.12);
  background-image: repeating-linear-gradient(
    90deg,
    rgba(247, 244, 236, 0.22) 0 1px,
    transparent 1px 18px
  );
  background-repeat: no-repeat;
  background-position: left top;
  background-size: 100% 9px;
}

.footer-inner {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding: clamp(38px, 5.6vw, 74px) var(--gutter) 0;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(260px, 1.05fr) minmax(0, 2fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}

/* brand block */
.footer-brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--snow);
}

.footer-brand__mark {
  width: 24px;
  height: 24px;
  flex: none;
  background: var(--gobi);
  clip-path: polygon(0 0, 100% 0, 100% 58%, 58% 100%, 0 100%);
  transition: background-color 0.2s var(--ease), clip-path 0.2s var(--ease);
}

.footer-brand:hover .footer-brand__mark {
  background: var(--amber);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 42% 100%, 0 42%);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.06em;
}

.footer-tagline {
  margin-top: 18px;
  max-width: 30ch;
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(247, 244, 236, 0.6);
}

.footer-cta {
  margin-top: 24px;
  font-size: 13px;
}

/* link columns */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
}

.footer-col__title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(247, 244, 236, 0.16);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-link {
  display: inline-block;
  padding-bottom: 1px;
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(247, 244, 236, 0.72);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--snow);
  border-bottom-color: var(--gobi);
}

.footer-link--old {
  color: var(--amber);
  border-bottom: 1px dashed rgba(245, 184, 65, 0.7);
}

.footer-link--old:hover,
.footer-link--old:focus-visible {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

/* contact */
.footer-contact {
  display: grid;
  gap: 16px;
  margin-top: clamp(34px, 5vw, 56px);
  padding-top: clamp(24px, 3vw, 34px);
  border-top: 1px solid rgba(247, 244, 236, 0.14);
}

.footer-contact__title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 36px;
}

.contact-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.contact-key {
  flex: none;
  min-width: 42px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--glacier);
}

.contact-value {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
  padding: 3px 0;
  background: transparent;
  border: 1px solid transparent;
  border-bottom-color: transparent;
  color: rgba(247, 244, 236, 0.92);
  text-align: left;
  cursor: pointer;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.contact-value__text {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  word-break: break-all;
}

.contact-value__hint {
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--amber);
  opacity: 0.8;
  white-space: nowrap;
}

.contact-value:hover {
  color: var(--snow);
  border-bottom-color: var(--amber);
}

.contact-value.is-copied .contact-value__hint {
  color: var(--glacier);
  opacity: 1;
}

.contact-value--static {
  color: rgba(247, 244, 236, 0.72);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  cursor: default;
  border: 0;
}

.contact-value--static:hover {
  color: rgba(247, 244, 236, 0.72);
  border-bottom-color: transparent;
}

.footer-note {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(247, 244, 236, 0.62);
}

.footer-note--amber {
  max-width: 62ch;
  padding-left: 12px;
  border-left: 3px solid rgba(245, 184, 65, 0.75);
  color: var(--amber);
}

/* base bar */
.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: clamp(32px, 5vw, 52px);
  padding: 18px 0 26px;
  border-top: 1px solid rgba(247, 244, 236, 0.14);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: rgba(247, 244, 236, 0.5);
}

.footer-copy { margin-right: auto; }

.footer-icp { white-space: nowrap; }

.footer-legal-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.footer-base .footer-link {
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: rgba(247, 244, 236, 0.62);
}

.footer-dot {
  opacity: 0.4;
}

@media (max-width: 1024px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-tagline { max-width: 46ch; }
  .contact-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-base { font-size: 11px; letter-spacing: 0.06em; }
  .footer-copy { margin-right: 0; }
}

@media (max-width: 440px) {
  .footer-nav { grid-template-columns: minmax(0, 1fr); }
  .contact-item { gap: 6px 12px; }
  .contact-key { min-width: 100%; }
}

/* ============================================================
   JS-INJECTED UI
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  z-index: 140;
  pointer-events: none;
  background: var(--gobi);
}

.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 130;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  background: var(--ink);
  color: var(--snow);
  border: 1px solid rgba(247, 244, 236, 0.3);
  border-left: 4px solid var(--gobi);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 0.2s var(--ease),
    transform 0.2s var(--ease),
    background-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover {
  background: var(--gobi);
  color: var(--ink);
  border-color: var(--gobi);
  border-left-color: var(--ink);
}

/* ============================================================
   MOTION PREFERENCES
   ============================================================ */
@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;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .btn:hover,
  .to-top {
    transform: none;
  }
}
