/* ============================================================
   九博娱乐汇 · jiuboyule-sports.com.cn
   Shared kit — cyber steppe night / editorial framework
   ============================================================ */

/* ---------- 1. tokens ---------- */
:root {
  --c-space: #0A1030;
  --c-night: #060A1F;
  --c-panel: #131C42;
  --c-cyan: #35E0D0;
  --c-coral: #FF6B4A;
  --c-gold: #F5C451;
  --c-mist: #8FA0C8;
  --c-snow: #E8EEFF;
  --c-steppe: #0E2A2A;

  --edge-left: 220px;
  --edge-right: 172px;

  --font-display: "Archivo Black", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r-cut: 14px;
  --shadow-hard: 4px 4px 0 rgba(53, 224, 208, .16);
  --shadow-coral: 4px 4px 0 rgba(255, 107, 74, .22);

  --gap-1: 8px;
  --gap-2: 14px;
  --gap-3: 22px;
  --gap-4: 36px;
  --gap-5: clamp(56px, 8vw, 110px);
}

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

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

body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, blockquote, dl, dd, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 3px solid var(--c-gold);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- 3. base type ---------- */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--c-snow);
  background-color: var(--c-space);
  background-image:
    linear-gradient(rgba(53, 224, 208, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 224, 208, .045) 1px, transparent 1px);
  background-size: 68px 68px, 68px 68px;
  min-height: 100vh;
  padding-left: var(--edge-left);
  padding-right: var(--edge-right);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: -6% -4%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 42% at 76% 4%, rgba(53, 224, 208, .15), transparent 68%),
    radial-gradient(52% 38% at 10% 80%, rgba(255, 107, 74, .10), transparent 70%),
    radial-gradient(40% 30% at 46% 44%, rgba(14, 42, 42, .55), transparent 72%);
  animation: drift 54s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-2%, 1.5%, 0) scale(1.05); }
}

main { position: relative; z-index: 1; padding-top: clamp(22px, 3.5vw, 58px); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--c-snow);
  text-wrap: balance;
}
h1 { font-size: clamp(38px, 5.4vw, 76px); }
h2 { font-size: clamp(27px, 3.2vw, 44px); }
h3 { font-size: clamp(20px, 1.9vw, 26px); }
h4 { font-size: clamp(17px, 1.5vw, 20px); }

h1 em, h2 em, h3 em { font-style: normal; color: var(--c-cyan); }

p { max-width: 62ch; }

a { color: var(--c-cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-snow); }

strong { color: var(--c-snow); }

::selection { background: rgba(255, 107, 74, .38); color: #fff; }

.mono, code, kbd { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: .02em; }

.lede { font-size: clamp(17px, 1.5vw, 20px); color: #C4D2F2; max-width: 56ch; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-gold);
}
.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--c-gold);
}

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .07em;
  color: var(--c-cyan);
  border: 1px solid rgba(53, 224, 208, .45);
  border-radius: 999px;
  padding: 3px 11px;
  white-space: nowrap;
}
.stamp::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-cyan);
  flex: 0 0 6px;
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-mist);
  border: 1px solid rgba(143, 160, 200, .4);
  border-radius: 4px;
  padding: 3px 9px;
}

.rule {
  height: 2px;
  border: 0;
  background: linear-gradient(90deg, var(--c-cyan), rgba(245, 196, 81, .8) 46%, transparent);
  opacity: .55;
}

/* ---------- 4. layout ---------- */
.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(18px, 3.2vw, 46px);
}

.section { margin-block: var(--gap-5); }

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 4fr);
  gap: var(--gap-3);
  align-items: end;
  margin-bottom: var(--gap-4);
}

.grid { display: grid; gap: var(--gap-3); }
.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)); }

.panel {
  position: relative;
  background: var(--c-panel);
  border: 2px solid rgba(53, 224, 208, .3);
  border-radius: var(--r-cut);
  padding: clamp(20px, 2.4vw, 30px);
}

.shadow-hard { box-shadow: var(--shadow-hard); }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-top: clamp(18px, 2.4vw, 34px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--c-mist);
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; color: rgba(143, 160, 200, .5); }
.breadcrumbs a { color: var(--c-mist); text-decoration: none; border-bottom: 1px dashed rgba(143, 160, 200, .45); }
.breadcrumbs a:hover { color: var(--c-cyan); border-bottom-color: var(--c-cyan); }

/* image placement base — real artwork is added at page stage */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(53, 224, 208, .34);
  border-radius: var(--r-cut);
  background:
    linear-gradient(150deg, rgba(19, 28, 66, .95), rgba(6, 10, 31, .95));
  box-shadow: var(--shadow-hard);
}
.media-frame > img,
.media-frame > svg,
.media-frame > picture,
.media-frame__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--c-snow);
  background: linear-gradient(0deg, rgba(6, 10, 31, .92), transparent);
}

/* ---------- 5. buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .01em;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, color .16s ease;
}
.btn:hover { transform: translate(-2px, -2px); }
.btn:active { transform: translate(0, 0); }

.btn--coral {
  background: rgba(255, 107, 74, .16);
  color: var(--c-snow);
  border-color: var(--c-coral);
  box-shadow: var(--shadow-coral);
}
.btn--coral:hover { background: rgba(255, 107, 74, .3); color: #fff; }

.btn--cyan {
  background: rgba(53, 224, 208, .1);
  color: var(--c-snow);
  border-color: var(--c-cyan);
  box-shadow: var(--shadow-hard);
}
.btn--cyan:hover { background: rgba(53, 224, 208, .24); color: #fff; }

.btn--ghost {
  background: rgba(232, 238, 255, .05);
  color: var(--c-snow);
  border-color: rgba(143, 160, 200, .45);
}
.btn--ghost:hover { background: rgba(232, 238, 255, .12); }

.btn--sm { padding: 8px 15px; font-size: 13px; border-radius: 7px; }
.btn--block { width: 100%; }

/* ---------- 6. header frame ---------- */
.site-header {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
}
.site-header > :not(.read-progress) { pointer-events: auto; }

.skip-link {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translate(-50%, -180%);
  z-index: 200;
  padding: 10px 20px;
  background: var(--c-gold);
  color: #0A1030;
  font-family: var(--font-display);
  font-size: 14px;
  text-decoration: none;
  border-radius: 999px;
  transition: transform .2s ease;
}
.skip-link:focus { transform: translate(-50%, 0); }

.read-progress {
  position: fixed;
  top: 0;
  left: var(--edge-left);
  right: var(--edge-right);
  height: 3px;
  z-index: 90;
  background: rgba(53, 224, 208, .12);
  pointer-events: none;
}
.read-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-gold) 62%, var(--c-coral));
}

.frame-edge {
  position: fixed;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 76;
  background: linear-gradient(180deg, #060A1F 0%, #0A1030 62%, #070C24 100%);
}

.frame-edge--left {
  left: 0;
  width: var(--edge-left);
  padding: 26px 20px 24px;
  gap: 26px;
  border-right: 2px solid rgba(53, 224, 208, .32);
}
.frame-edge--left::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 200px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(53, 224, 208, .16));
}

.frame-edge--right {
  right: 0;
  width: var(--edge-right);
  padding: 26px 18px 26px;
  gap: 14px;
  align-items: flex-end;
  text-align: right;
  border-left: 2px solid rgba(245, 196, 81, .3);
}

.frame-edge__foot {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: .05em;
  color: var(--c-mist);
  max-width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--c-snow);
  text-decoration: none;
}
.brand__mark {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--c-cyan);
  border: 2px solid var(--c-cyan);
  border-radius: 12px 12px 12px 3px;
  box-shadow: var(--shadow-hard);
  background: rgba(53, 224, 208, .07);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__name {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--c-snow);
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-gold);
}
.brand--compact { gap: 9px; }
.brand--compact .brand__mark { width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px 10px 10px 3px; }
.brand--compact .brand__name { font-size: 15px; }
.brand:hover .brand__mark { background: rgba(53, 224, 208, .18); }

.frame-nav { width: 100%; }
.frame-nav__list { display: flex; flex-direction: column; gap: 2px; }
.frame-nav__link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 10px;
  font-size: 15px;
  color: var(--c-mist);
  text-decoration: none;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}
.frame-nav__link::before {
  content: attr(data-idx);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: rgba(143, 160, 200, .7);
}
.frame-nav__link:hover {
  color: var(--c-snow);
  background: rgba(53, 224, 208, .08);
  border-left-color: rgba(53, 224, 208, .55);
}
.frame-nav__link[aria-current="page"] {
  color: var(--c-snow);
  background: linear-gradient(90deg, rgba(255, 107, 74, .26), transparent 88%);
  border-left-color: var(--c-coral);
  font-weight: 700;
}
.frame-nav__link[aria-current="page"]::before { color: var(--c-coral); }

.edge-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-gold);
}
.edge-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--c-snow);
  padding: 8px 13px;
  border: 2px solid rgba(245, 196, 81, .42);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease;
}
.edge-btn:hover { background: rgba(245, 196, 81, .14); border-color: var(--c-gold); }
.edge-clock {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  letter-spacing: .06em;
  color: var(--c-cyan);
}
.edge-clock-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-mist);
}
.edge-cta { margin-top: 10px; text-align: center; }

.frame-scrim {
  position: fixed;
  inset: 0;
  z-index: 74;
  background: rgba(4, 7, 20, .74);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
}
.site-header[data-open] .frame-scrim { opacity: 1; visibility: visible; }

/* ---------- 7. mobile bar ---------- */
.mobile-bar { display: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 2px solid rgba(53, 224, 208, .45);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--c-snow);
}
.nav-toggle__bars {
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--c-cyan);
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--c-cyan);
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.site-header[data-open] .nav-toggle__bars { background: transparent; }
.site-header[data-open] .nav-toggle__bars::before { transform: rotate(45deg); top: 0; }
.site-header[data-open] .nav-toggle__bars::after { transform: rotate(-45deg); top: 0; }

.icon-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--c-snow);
  padding: 9px 13px;
  border: 2px solid rgba(245, 196, 81, .38);
  border-radius: 8px;
  cursor: pointer;
}
.icon-btn:hover { background: rgba(245, 196, 81, .14); }

/* ---------- 8. settings drawer ---------- */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 84;
  width: min(88vw, 360px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 26px 24px 34px;
  overflow-y: auto;
  background: linear-gradient(180deg, #0D1436 0%, #060A1F 100%);
  border-left: 2px solid rgba(245, 196, 81, .38);
  box-shadow: -8px 0 0 rgba(53, 224, 208, .1);
  transform: translateX(103%);
  transition: transform .32s cubic-bezier(.2, .7, .3, 1);
}
.site-header[data-drawer-open] .drawer { transform: none; }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(53, 224, 208, .28);
}
.drawer__title {
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: -0.01em;
  color: var(--c-snow);
}
.drawer__close {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--c-mist);
  padding: 6px 10px;
  border: 1px solid rgba(143, 160, 200, .4);
  border-radius: 6px;
  cursor: pointer;
}
.drawer__close:hover { color: var(--c-snow); border-color: var(--c-cyan); }

.drawer__group { display: flex; flex-direction: column; gap: 10px; }
.drawer__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-gold);
}
.drawer__hint { font-size: 13px; color: var(--c-mist); font-family: var(--font-mono); }
.drawer__note {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--c-mist);
  border-top: 1px dashed rgba(143, 160, 200, .3);
  padding-top: 14px;
}

.switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--c-snow);
  text-align: left;
  background: rgba(232, 238, 255, .04);
  border: 2px solid rgba(143, 160, 200, .32);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease;
}
.switch::after {
  content: "OFF";
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--c-mist);
}
.switch.is-on {
  border-color: var(--c-cyan);
  background: rgba(53, 224, 208, .12);
}
.switch.is-on::after { content: "ON"; color: var(--c-cyan); }

html[data-contrast="high"] {
  --c-mist: #C9D6F2;
  --c-panel: #1A2550;
  --c-space: #05081A;
}
html[data-contrast="high"] body { background-image: none; }
html[data-calm="on"] body::before { animation: none; }
html[data-notice="off"] .stamp { border-color: rgba(143, 160, 200, .3); color: var(--c-mist); }
html[data-notice="off"] .stamp::before { background: var(--c-mist); }

/* ---------- 9. lighthouse ---------- */
.lighthouse {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 88;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.lighthouse__panel {
  width: min(78vw, 266px);
  padding: 14px 16px;
  background: linear-gradient(160deg, #101A42 0%, #060A1F 100%);
  border: 2px solid rgba(53, 224, 208, .42);
  border-radius: 12px;
  box-shadow: 6px 6px 0 rgba(53, 224, 208, .14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .24s ease, transform .24s ease, visibility .24s ease;
}
.lighthouse[data-open] .lighthouse__panel { opacity: 1; visibility: visible; transform: none; }
.lighthouse__state {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--c-cyan);
  margin-bottom: 8px;
}
.lighthouse__line {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--c-mist);
  overflow-wrap: anywhere;
}
.lighthouse__btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 17px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .1em;
  color: var(--c-snow);
  background: #0D1640;
  border: 2px solid var(--c-cyan);
  border-radius: 999px;
  box-shadow: 4px 4px 0 rgba(53, 224, 208, .2);
  cursor: pointer;
}
.lighthouse__btn:hover { background: #14204F; }
.lighthouse__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-cyan);
  box-shadow: 0 0 0 4px rgba(53, 224, 208, .18);
}
.lighthouse.is-idle .lighthouse__btn { animation: beacon 3.8s ease-in-out infinite; }
@keyframes beacon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}

/* ---------- 10. footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(70px, 9vw, 130px);
  padding: clamp(52px, 6vw, 82px) 0 28px;
  background: linear-gradient(180deg, #060A1F 0%, #080D26 100%);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-gold) 52%, var(--c-coral));
  opacity: .75;
}
.footer__trace {
  position: absolute;
  top: 6px;
  left: 0;
  width: 100%;
  height: 90px;
  pointer-events: none;
  fill: none;
  stroke: rgba(53, 224, 208, .22);
  stroke-width: 1.5;
}
.footer__trace path:last-child { stroke: rgba(255, 107, 74, .18); }

.footer__inner {
  position: relative;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(20px, 3.2vw, 46px);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(24px, 3vw, 48px);
}
.footer__brand .brand { margin-bottom: 16px; }
.footer__desc {
  font-size: 15px;
  color: var(--c-mist);
  max-width: 34ch;
  margin-bottom: 14px;
}
.footer__stamp {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: rgba(245, 196, 81, .85);
  max-width: 100%;
}
.footer__col-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(245, 196, 81, .28);
}
.footer__links { display: flex; flex-direction: column; gap: 11px; }
.footer__links a {
  color: var(--c-mist);
  font-size: 15px;
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 0;
  transition: color .16s ease, border-color .16s ease, padding-left .16s ease;
}
.footer__links a:hover {
  color: var(--c-cyan);
  border-left-color: var(--c-cyan);
  padding-left: 8px;
}
.footer__text {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--c-mist);
  overflow-wrap: anywhere;
}
.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 30px;
  margin-top: clamp(38px, 5vw, 62px);
  padding-top: 22px;
  border-top: 1px dashed rgba(143, 160, 200, .3);
}
.footer__legal,
.footer__meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--c-mist);
  max-width: 100%;
}

/* ---------- 11. reveal / section state ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
}
html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity .42s ease, transform .42s ease;
}
[data-section].is-current { scroll-margin-top: 90px; }

/* ---------- 12. responsive ---------- */
@media (max-width: 1180px) {
  .section__head { grid-template-columns: 1fr; gap: var(--gap-2); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  :root { --edge-left: 0px; --edge-right: 0px; }

  body {
    padding-left: 0;
    padding-right: 0;
    padding-top: 72px;
  }

  .mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    padding: 0 16px;
    z-index: 78;
    background: rgba(6, 10, 31, .97);
    border-bottom: 2px solid rgba(53, 224, 208, .32);
    backdrop-filter: blur(8px);
  }
  .mobile-bar__actions { display: flex; align-items: center; gap: 9px; }

  .frame-edge--left {
    z-index: 76;
    width: min(86vw, 320px);
    padding-top: 22px;
    transform: translateX(-103%);
    transition: transform .32s cubic-bezier(.2, .7, .3, 1);
    box-shadow: 10px 0 0 rgba(53, 224, 208, .1);
  }
  .site-header[data-open] .frame-edge--left { transform: translateX(0); }

  .frame-edge--right { display: none; }

  .read-progress { left: 0; right: 0; top: 72px; }

  .lighthouse { left: 12px; bottom: 12px; }
}

@media (max-width: 860px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  main { padding-top: 20px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .footer__top { grid-template-columns: minmax(0, 1fr); }
  .footer__base { flex-direction: column; }
  .lighthouse__panel { width: min(84vw, 266px); }
  .btn { width: 100%; }
  .btn--sm, .edge-cta { width: auto; }
}

/* ---------- 13. reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before { animation: none; }
  .lighthouse.is-idle .lighthouse__btn { animation: none; }
  html.js [data-reveal],
  html.js [data-reveal].is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn, .frame-nav__link, .footer__links a, .drawer, .frame-edge--left { transition: none; }
}
