/* ============================================================
   /assets/site.css — 九游娱乐网页版 共享外壳
   夜间赛场控制台：深墨蓝底 · 荧光青绿路径 · 暖橙轮次
   ============================================================ */

/* 01 · 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, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }
:where(h1, h2, h3, h4) { font-weight: 300; }

/* 02 · Tokens */
:root {
  --ink: #06101C;
  --module: #0B1B2E;
  --panel: #10263D;
  --grid: #1D3B54;
  --edge: #274764;
  --text: #F2F8FF;
  --muted: #9FB6CC;
  --teal: #36F2C0;
  --teal-deep: #0FA98A;
  --teal-veil: rgba(54, 242, 192, 0.14);
  --orange: #FF8A3D;
  --orange-soft: #FFB56B;
  --header-h: 76px;
  --wrap-max: 1240px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --font-display: "HarmonyOS Sans Condensed", "Oswald", "Arial Narrow", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-num: "JetBrains Mono", "DIN Alternate", "SFMono-Regular", ui-monospace, monospace;
  --step-1: clamp(1.5rem, 3vw, 2.4rem);
  --step-2: clamp(2rem, 4.6vw, 3.4rem);
  --hero: clamp(3.2rem, 9vw, 8.2rem);
  --pad-block: clamp(2.4rem, 6.5vw, 5rem);
}

/* 03 · Base */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    linear-gradient(90deg, rgba(29, 59, 84, 0.34) 1px, transparent 1px),
    linear-gradient(0deg, rgba(29, 59, 84, 0.34) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
body ::selection { background: var(--teal); color: var(--ink); }
#main-content { display: block; scroll-margin-top: calc(var(--header-h) + 16px); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; letter-spacing: 0.02em; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -120px;
  z-index: 300;
  padding: 0.7rem 1.1rem;
  background: var(--teal);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 1px solid var(--teal);
  transition: top 0.18s ease;
}
.skip-link:focus { top: 0.8rem; }

/* 04 · Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 16, 28, 0.94), rgba(6, 16, 28, 0));
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.24s ease;
}
.site-header[data-scrolled="true"],
.site-header[data-open="true"] {
  background: var(--module);
  border-bottom-color: var(--grid);
  box-shadow: 0 1px 0 rgba(54, 242, 192, 0.1);
}
.site-header[data-scrolled="true"]::before,
.site-header[data-open="true"]::before { opacity: 0; }

.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 2vw, 1.8rem);
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex: 0 0 auto;
  padding-block: 0.35rem;
}
.brand__mark {
  position: relative;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--edge);
  background: linear-gradient(160deg, var(--teal-veil), rgba(11, 27, 46, 0.94));
}
.brand__mark::before {
  content: "";
  width: 13px;
  height: 13px;
  border: 2px solid var(--teal);
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-38deg);
}
.brand__dot {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  animation: signal 2.8s ease-out infinite;
}
.brand__text { display: flex; flex-direction: column; gap: 1px; line-height: 1.1; }
.brand__title {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--text);
}
.brand__descriptor {
  font-family: var(--font-num);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.5rem, 1.6vw, 1.4rem);
  flex: 1 1 auto;
  margin-left: auto;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.2rem, 1vw, 0.9rem);
  flex-wrap: wrap;
}
.nav__item { display: inline-flex; }
.nav__link {
  position: relative;
  display: inline-block;
  padding: 0.6rem 0.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.28rem;
  height: 1px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}
.nav__link:hover,
.nav__link:focus-visible { color: var(--text); }
.nav__link:hover::after,
.nav__link:focus-visible::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--teal); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -0.15rem;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
  transform: translateY(-50%);
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: 0.4rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--edge);
  background: rgba(16, 38, 61, 0.6);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.nav-toggle:hover { border-color: var(--teal); background: var(--teal-veil); }
.nav-toggle__bars { position: relative; display: block; width: 20px; height: 12px; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }
.site-header[data-open="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

.header__meter {
  height: 2px;
  background: transparent;
  overflow: hidden;
  transition: background-color 0.24s ease;
}
.site-header[data-scrolled="true"] .header__meter,
.site-header[data-open="true"] .header__meter { background: var(--grid); }
.header__meter-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--teal-deep), var(--teal) 70%, var(--orange));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.1s linear;
}

/* 05 · Buttons */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: var(--edge);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.5rem 1.05rem;
  border: 1px solid var(--btn-bd);
  border-radius: 0;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn--primary {
  --btn-bg: var(--teal);
  --btn-fg: var(--ink);
  --btn-bd: var(--teal);
  font-weight: 700;
}
.btn--primary:hover { --btn-bg: #62f7d3; --btn-bd: #62f7d3; }
.btn--ghost {
  --btn-bg: rgba(16, 38, 61, 0.55);
  --btn-fg: var(--text);
  --btn-bd: var(--edge);
}
.btn--ghost:hover { --btn-bd: var(--teal); --btn-bg: var(--teal-veil); }
.btn--sm { min-height: 34px; padding: 0.28rem 0.7rem; font-size: 0.78rem; letter-spacing: 0.1em; }
.btn--block { width: 100%; }

/* 06 · Layout & typography */
.wrap {
  width: 100%;
  max-width: calc(var(--wrap-max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { position: relative; padding-block: var(--pad-block); }
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.8rem 2rem;
  margin-bottom: clamp(1.2rem, 2.6vw, 2.2rem);
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--grid);
}
.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--hero);
  line-height: 0.92;
  letter-spacing: 0.01em;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--step-2);
  line-height: 1.02;
}
.index-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-num);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.index-label::before { content: ""; width: 18px; height: 1px; background: var(--teal); }
.lede {
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.1vw, 1.12rem);
  line-height: 1.8;
}
.numeric {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}
.stack { display: grid; gap: clamp(0.8rem, 1.8vw, 1.4rem); }

.grid { display: grid; gap: clamp(0.75rem, 1.6vw, 1.25rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.6rem, 1.2vw, 1rem);
}
.bento__cell { grid-column: span 4; min-width: 0; }
.bento__cell--wide { grid-column: span 8; }
.bento__cell--full { grid-column: span 12; }
.bento__cell--tall { grid-row: span 2; }

/* 07 · Panels / cards */
.panel {
  position: relative;
  padding: clamp(1.05rem, 2.2vw, 1.7rem);
  background: var(--module);
  border: 1px solid var(--grid);
  transition: background-color 0.22s ease, border-color 0.22s ease;
}
.panel::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 0;
  background: var(--teal);
  transition: height 0.24s ease;
}
.panel:hover { background: var(--panel); border-color: var(--edge); }
.panel:hover::after { height: 100%; }
.panel--focus {
  background-image: linear-gradient(160deg, var(--panel), var(--module) 70%);
  border-color: var(--teal-deep);
}
.panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}
.panel__title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  font-weight: 400;
  letter-spacing: 0.03em;
}
.panel__meta {
  font-family: var(--font-num);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  white-space: nowrap;
}

/* 08 · Tags & status */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.16rem 0.5rem;
  border: 1px solid var(--edge);
  background: rgba(16, 38, 61, 0.65);
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  line-height: 1.6;
}
.tag--teal { background: var(--teal); border-color: var(--teal); color: var(--ink); font-weight: 700; }
.tag--orange { background: var(--orange); border-color: var(--orange); color: var(--ink); font-weight: 700; }

.signal-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: signal 2.8s ease-out infinite;
}
@keyframes signal {
  0% { box-shadow: 0 0 0 0 rgba(255, 138, 61, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(255, 138, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 138, 61, 0); }
}

/* 09 · Lists & key-value */
.list-rule { border-top: 1px solid var(--grid); }
.list-rule > li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1.2rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--grid);
  font-size: 0.95rem;
}
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.45rem 1rem; font-size: 0.95rem; }
.kv__k {
  font-family: var(--font-num);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  align-self: center;
}
.kv__v { color: var(--text); overflow-wrap: anywhere; }

/* 10 · Timeline */
.timeline { display: grid; margin-left: 0.4rem; border-left: 1px solid var(--grid); }
.timeline__item {
  position: relative;
  padding: 0 0 clamp(1.1rem, 2.4vw, 1.9rem) clamp(1rem, 2.2vw, 1.7rem);
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__marker {
  position: absolute;
  left: -4px;
  top: 0.55rem;
  width: 7px;
  height: 7px;
  background: var(--module);
  border: 1px solid var(--teal);
}
.timeline__item[data-state="current"] .timeline__marker {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.18);
}
.timeline__label {
  font-family: var(--font-num);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--teal);
}
.timeline__title {
  margin-top: 0.15rem;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.5vw, 1.3rem);
  font-weight: 400;
}
.timeline__body {
  margin-top: 0.3rem;
  max-width: 58ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* 11 · Accordion */
.accordion { display: grid; border-top: 1px solid var(--grid); }
.accordion__item { border-bottom: 1px solid var(--grid); }
.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1rem 0.2rem;
  text-align: left;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  cursor: pointer;
  transition: color 0.2s ease;
}
.accordion__trigger:hover { color: var(--teal); }
.accordion__trigger[aria-expanded="true"] { color: var(--teal); }
.accordion__icon { position: relative; flex: 0 0 auto; width: 14px; height: 14px; }
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform 0.22s ease;
}
.accordion__icon::before { left: 0; top: 6px; width: 14px; height: 1.5px; }
.accordion__icon::after { left: 6px; top: 0; width: 1.5px; height: 14px; }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: scaleY(0); }
.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.24s ease;
}
.accordion__panel[data-open="true"] { grid-template-rows: 1fr; }
.accordion__panel-inner { overflow: hidden; }
.accordion__panel-inner > * {
  padding: 0 0.2rem 1.05rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* 12 · Breadcrumb */
.breadcrumb { margin-bottom: 1.1rem; }
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-num);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.breadcrumb__item { display: inline-flex; align-items: center; gap: 0.35rem; }
.breadcrumb__item + .breadcrumb__item::before { content: "/"; color: var(--edge); }
.breadcrumb__link { color: var(--muted); transition: color 0.18s ease; }
.breadcrumb__link:hover { color: var(--teal); }
.breadcrumb__current { color: var(--text); }

/* 13 · Media frame (图片占位基础容器) */
.media-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--grid);
  background-color: var(--module);
  background-image:
    linear-gradient(90deg, rgba(29, 59, 84, 0.85) 1px, transparent 1px),
    linear-gradient(0deg, rgba(29, 59, 84, 0.85) 1px, transparent 1px),
    radial-gradient(80% 90% at 72% 18%, rgba(54, 242, 192, 0.16), transparent 62%);
  background-size: 64px 64px, 64px 64px, 100% 100%;
}
.media-frame::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent 70%);
}
.media-frame > img,
.media-frame > picture > img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 100%;
  padding: 0.5rem 0.75rem;
  border-top: 1px solid var(--grid);
  background: rgba(6, 16, 28, 0.84);
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

/* 14 · Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* 15 · Footer */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 8vw, 6rem);
  padding-block: clamp(2.2rem, 5.5vw, 4rem) 1.4rem;
  background-color: var(--ink);
  background-image: radial-gradient(120% 100% at 50% 0%, rgba(15, 169, 138, 0.12), transparent 62%);
  border-top: 1px solid var(--grid);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.8fr 1.15fr;
  gap: clamp(1.5rem, 3.2vw, 3rem);
}
.footer__brand { min-width: 0; }
.footer__brand-title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.9rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.1;
}
.footer__tagline {
  margin-top: 0.55rem;
  color: var(--teal);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}
.footer__note {
  margin-top: 0.85rem;
  max-width: 34ch;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.75;
}
.footer__hours {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
  font-family: var(--font-num);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--orange-soft);
}
.footer__col { min-width: 0; }
.footer__heading {
  margin-bottom: 0.85rem;
  font-family: var(--font-num);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.footer__list { display: grid; gap: 0.5rem; }
.footer__link {
  font-size: 0.92rem;
  color: var(--text);
  opacity: 0.86;
  transition: color 0.18s ease, opacity 0.18s ease;
}
.footer__link:hover { color: var(--teal); opacity: 1; }
.contact__row { display: flex; flex-direction: column; gap: 0.1rem; margin-bottom: 0.55rem; }
.contact__label {
  font-family: var(--font-num);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.contact__value {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
  overflow-wrap: anywhere;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: clamp(1.6rem, 3.5vw, 2.6rem);
  padding-top: 1.1rem;
  border-top: 1px solid var(--grid);
}
.footer__icp,
.footer__copy {
  font-family: var(--font-num);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* 16 · Responsive */
@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .header__inner { min-height: 64px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 70;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 0.4rem var(--gutter) 1.5rem;
    background: var(--module);
    border-bottom: 1px solid var(--grid);
    box-shadow: 0 28px 48px rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  }
  .site-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    display: block;
    padding: 0.9rem 0.2rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--grid);
  }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"]::before { left: auto; right: 0.2rem; top: 1.25rem; }
  .nav__actions { flex-direction: column; align-items: stretch; gap: 0.6rem; margin: 1.1rem 0 0; }
  .nav__actions .btn { width: 100%; min-height: 46px; }
  html.is-nav-open { overflow: hidden; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento__cell { grid-column: span 6; }
  .bento__cell--wide,
  .bento__cell--full { grid-column: span 12; }
  .bento__cell--tall { grid-row: auto; }
}
@media (max-width: 640px) {
  .brand__descriptor { display: none; }
  .grid--2,
  .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .bento__cell { grid-column: span 12; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .panel__head { flex-direction: column; gap: 0.25rem; }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
}

/* 17 · Motion & contrast 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;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .header__meter-fill { transition: none; }
}
@media (prefers-contrast: more) {
  :root { --muted: #C6D8E8; --grid: #2F5876; --edge: #3B6A8C; }
  .nav__link { color: var(--muted); }
}
