/* =========================================================
   奔驰宝马电玩 · 共享站点样式  /assets/site.css
   赛博夜场电玩城：霓虹灯管 / 金属反光 / 街机扫描线
   ========================================================= */

/* ---------- 1. 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 { margin: 0; }
ul, ol { 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%; }
:focus-visible { outline: 2px solid #39FF88; outline-offset: 3px; }

/* ---------- 2. TOKENS ---------- */
:root {
  --night: #0B0F1A;
  --night-deep: #070A12;
  --panel: #1E2636;
  --panel-deep: #101724;
  --neon-purple: #7C3AED;
  --electric-blue: #06B6D4;
  --benz-gold: #D4AF37;
  --bmw-silver: #C0C7D0;
  --neon-pink: #FF4D9D;
  --laser-green: #39FF88;
  --warn-orange: #FF8A3D;
  --bright: #F4F7FF;
  --muted: #8E9AB2;
  --line: rgba(192, 199, 208, .16);
  --line-strong: rgba(6, 182, 212, .38);
  --shell: 1240px;
  --font-display: "Montserrat", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Roboto Condensed", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(.22, .7, .3, 1);
}

/* ---------- 3. BASE ---------- */
body {
  min-height: 100vh;
  background-color: var(--night);
  background-image:
    radial-gradient(60% 42% at 84% -8%, rgba(124, 58, 237, .30), transparent 66%),
    radial-gradient(52% 38% at 6% 2%, rgba(6, 182, 212, .20), transparent 64%),
    linear-gradient(180deg, #0B0F1A 0%, #0A0D17 48%, #070A12 100%);
  background-attachment: fixed;
  color: var(--bright);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: .01em;
  overflow-x: hidden;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: .45;
  background-image: repeating-linear-gradient(180deg, rgba(244, 247, 255, .05) 0 1px, transparent 1px 3px);
}
h1, h2, h3, h4, .h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.012em;
  color: var(--bright);
}
h1, .h1 { font-size: clamp(40px, 6.4vw, 72px); text-shadow: 0 0 26px rgba(124, 58, 237, .45), 0 0 62px rgba(6, 182, 212, .18); }
h2, .h2 { font-size: clamp(26px, 3.4vw, 40px); text-shadow: 0 0 20px rgba(124, 58, 237, .30); }
h3, .h3 { font-size: clamp(20px, 2.2vw, 28px); font-weight: 800; }
h4, .h4 { font-size: clamp(17px, 1.6vw, 20px); font-weight: 700; }
p { max-width: 74ch; }
::selection { background: rgba(255, 77, 157, .45); color: #fff; }
main { display: block; }
#main-content { scroll-margin-top: 130px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- 4. LAYOUT ---------- */
.container { width: min(100% - 32px, var(--shell)); margin-inline: auto; }
.container--narrow { width: min(100% - 32px, 880px); }
.section { padding-block: clamp(44px, 6vw, 84px); }
.section--tight { padding-block: clamp(28px, 4vw, 48px); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .26em;
  color: var(--electric-blue);
  text-shadow: 0 0 12px rgba(6, 182, 212, .6);
}
.section-title { font-size: clamp(26px, 3.4vw, 38px); }
.lede { font-size: clamp(16px, 1.5vw, 18px); color: var(--muted); max-width: 64ch; }
.divider { height: 1px; border: 0; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.grid { display: grid; gap: 20px; }
.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)); }
.grid--split { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }

/* ---------- 5. HEADER ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 400;
  padding: 12px 20px;
  background: var(--neon-purple);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: top .22s var(--ease);
}
.skip-link:focus { top: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(11, 15, 26, .97), rgba(9, 12, 21, .90) 62%, rgba(7, 10, 18, .84)),
    radial-gradient(120% 150% at 50% -60%, rgba(124, 58, 237, .30), transparent 62%);
  backdrop-filter: blur(10px);
}

.hud-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--muted);
}
.hud-item { display: inline-flex; align-items: center; gap: 8px; }
.hud-item--live { color: var(--laser-green); }
.hud-item--mono { color: var(--bmw-silver); }
.hud-item--warn { color: var(--warn-orange); }
.hud-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--laser-green);
  box-shadow: 0 0 10px var(--laser-green);
  animation: hudPulse 2.4s ease-in-out infinite;
}
@keyframes hudPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .42; transform: scale(.82); }
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0 14px;
}
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.brand__mark {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--benz-gold);
  border: 1px solid rgba(212, 175, 55, .5);
  background: linear-gradient(140deg, rgba(212, 175, 55, .22), rgba(6, 182, 212, .14));
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  box-shadow: inset 0 0 18px rgba(212, 175, 55, .18), 0 0 16px rgba(124, 58, 237, .28);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(17px, 1.7vw, 21px);
  letter-spacing: .06em;
  color: var(--bright);
  text-shadow: 0 0 18px rgba(124, 58, 237, .6);
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--bmw-silver);
  opacity: .78;
}
.brand:hover .brand__name { color: #fff; text-shadow: 0 0 22px rgba(6, 182, 212, .85); }

.access-cluster { display: flex; align-items: center; gap: 10px; }
.access-status {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 34px; padding: 0 12px;
  border: 1px solid rgba(57, 255, 136, .38);
  background: rgba(57, 255, 136, .07);
  color: var(--laser-green);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
}
.room-bubble {
  display: flex; flex-direction: column; align-items: flex-end;
  padding: 5px 14px;
  border: 1px solid rgba(255, 77, 157, .42);
  background: linear-gradient(135deg, rgba(255, 77, 157, .14), rgba(124, 58, 237, .12));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
}
.room-bubble__num {
  font-family: var(--font-mono);
  font-size: 16px; font-weight: 700; line-height: 1.2;
  letter-spacing: .04em;
  color: var(--benz-gold);
  text-shadow: 0 0 14px rgba(212, 175, 55, .45);
}
.room-bubble__label {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .16em;
  color: var(--bmw-silver);
}

.nav-toggle {
  display: none;
  align-items: center; gap: 10px;
  min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line-strong);
  background: rgba(6, 182, 212, .06);
  color: var(--bmw-silver);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
}
.nav-toggle:hover { color: var(--bright); box-shadow: 0 0 18px rgba(6, 182, 212, .32); }
.nav-toggle__bars { display: grid; gap: 4px; width: 20px; }
.nav-toggle__bars i {
  display: block; height: 2px;
  background: var(--electric-blue);
  box-shadow: 0 0 8px rgba(6, 182, 212, .8);
  transition: transform .26s var(--ease), opacity .26s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.primary-nav {
  border-top: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(6, 182, 212, 0), rgba(6, 182, 212, .07) 30%, rgba(124, 58, 237, .08) 70%, rgba(6, 182, 212, 0));
}
.primary-nav__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.primary-nav__link {
  position: relative;
  display: inline-flex; align-items: center;
  min-height: 46px; padding: 0 20px;
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: .1em;
  color: var(--bmw-silver);
  transition: color .22s var(--ease), background-color .22s var(--ease), text-shadow .22s var(--ease);
}
.primary-nav__link::after {
  content: "";
  position: absolute; left: 20px; right: 20px; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-purple), var(--electric-blue));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s var(--ease);
}
.primary-nav__link:hover {
  color: var(--bright);
  background-color: rgba(124, 58, 237, .14);
  text-shadow: 0 0 14px rgba(6, 182, 212, .7);
}
.primary-nav__link:hover::after { transform: scaleX(1); }
.primary-nav__link[aria-current="page"] {
  color: #fff;
  background-color: rgba(124, 58, 237, .22);
  text-shadow: 0 0 16px rgba(124, 58, 237, .9);
}
.primary-nav__link[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav__link[aria-current="page"]::before {
  content: "";
  position: absolute; top: 0; left: 50%;
  width: 6px; height: 6px;
  transform: translateX(-50%);
  background: var(--benz-gold);
  box-shadow: 0 0 10px var(--benz-gold);
}

.entry-strip {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 9px 0 10px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--muted);
}
.entry-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  background: rgba(6, 182, 212, .07);
  color: var(--electric-blue);
}
.entry-tag__key { color: var(--muted); }
.entry-tag__val { color: var(--bright); }
.entry-ticks { display: flex; gap: 6px; }
.entry-ticks li { width: 22px; height: 3px; background: rgba(192, 199, 208, .18); }
.entry-ticks li.is-hot { background: var(--benz-gold); box-shadow: 0 0 8px rgba(212, 175, 55, .7); }
.entry-note { color: var(--muted); }

.scroll-progress {
  position: absolute; left: 0; bottom: -1px;
  width: 100%; height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--laser-green), var(--electric-blue), var(--neon-purple), var(--neon-pink));
  box-shadow: 0 0 12px rgba(6, 182, 212, .75);
}

/* ---------- 6. FOOTER ---------- */
.site-footer {
  margin-top: clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(30, 38, 54, .60), rgba(7, 10, 18, .96)),
    radial-gradient(90% 120% at 12% 0%, rgba(124, 58, 237, .22), transparent 62%);
}
.footer-masthead {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 32px 0 22px;
  border-bottom: 1px solid var(--line);
}
.footer-masthead__code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .2em;
  color: var(--bmw-silver);
  opacity: .75;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.4fr 1fr;
  gap: 28px;
  padding: 34px 0 30px;
}
.footer-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.footer-col__title {
  position: relative;
  padding-left: 14px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .2em;
  color: var(--bmw-silver);
}
.footer-col__title::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 6px; height: 6px;
  transform: translateY(-50%);
  background: var(--benz-gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, .8);
}
.footer-list { display: flex; flex-direction: column; gap: 2px; }
.footer-list li {
  padding: 7px 0;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px dashed rgba(192, 199, 208, .1);
}
.footer-list li:last-child { border-bottom: 0; }
.footer-list--coords li { display: flex; align-items: baseline; gap: 10px; color: var(--bmw-silver); }
.coord { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; color: var(--electric-blue); }
.footer-note { font-size: 13px; line-height: 1.65; color: var(--muted); }
.footer-link {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 32px;
  font-size: 14px;
  color: var(--bmw-silver);
  transition: color .2s var(--ease), text-shadow .2s var(--ease);
}
.footer-link::after { content: "▸"; font-size: 11px; color: var(--electric-blue); transition: transform .2s var(--ease); }
.footer-link:hover { color: var(--bright); text-shadow: 0 0 12px rgba(6, 182, 212, .75); }
.footer-link:hover::after { transform: translateX(3px); }
.footer-link--slim { min-height: 26px; font-size: 12.5px; color: var(--muted); }
.footer-link--slim::after { display: none; }
.footer-contact { display: flex; flex-direction: column; gap: 2px; }
.footer-contact li {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  padding: 7px 0;
  font-size: 13.5px;
  color: var(--bmw-silver);
  border-bottom: 1px dashed rgba(192, 199, 208, .1);
}
.footer-contact li:last-child { border-bottom: 0; }
.footer-contact__key { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; color: var(--muted); }
.footer-contact__val { word-break: break-word; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 16px 0 26px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.footer-copy { margin: 0; }
.footer-icp { font-family: var(--font-mono); letter-spacing: .06em; color: var(--bmw-silver); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- 7. COMPONENTS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .08em;
  border: 1px solid transparent;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: transform .18s var(--ease), box-shadow .22s var(--ease), background-color .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--primary {
  background: linear-gradient(115deg, var(--neon-purple), var(--electric-blue));
  color: #05070E;
  box-shadow: 0 0 22px rgba(124, 58, 237, .5);
}
.btn--primary:hover { color: #02040A; box-shadow: 0 0 32px rgba(6, 182, 212, .72); }
.btn--gold {
  border-color: rgba(212, 175, 55, .6);
  background: rgba(212, 175, 55, .08);
  color: var(--benz-gold);
}
.btn--gold:hover { background: rgba(212, 175, 55, .18); color: #FFE9A8; box-shadow: 0 0 22px rgba(212, 175, 55, .42); }
.btn--ghost {
  border-color: var(--line-strong);
  background: rgba(6, 182, 212, .06);
  color: var(--bmw-silver);
}
.btn--ghost:hover { border-color: var(--electric-blue); color: var(--bright); box-shadow: 0 0 18px rgba(6, 182, 212, .35); }

.breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
}
.breadcrumbs a { color: var(--bmw-silver); }
.breadcrumbs a:hover { color: var(--electric-blue); text-shadow: 0 0 12px rgba(6, 182, 212, .7); }
.breadcrumbs__sep { color: rgba(192, 199, 208, .35); }
.breadcrumbs [aria-current="page"] { color: var(--bright); }

.panel {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(30, 38, 54, .92), rgba(11, 15, 26, .92));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}
.panel--glow {
  border-color: rgba(124, 58, 237, .45);
  box-shadow: inset 0 0 26px rgba(124, 58, 237, .20), 0 0 20px rgba(6, 182, 212, .14);
}
.card {
  position: relative;
  display: flex; flex-direction: column;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(30, 38, 54, .86), rgba(9, 13, 22, .94));
  transition: transform .24s var(--ease), border-color .24s var(--ease), box-shadow .24s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, .5);
  box-shadow: 0 14px 34px rgba(4, 7, 14, .6), 0 0 22px rgba(124, 58, 237, .24);
}

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  border: 1px solid var(--line-strong);
  background: rgba(6, 182, 212, .08);
  color: var(--electric-blue);
}
.tag--gold { border-color: rgba(212, 175, 55, .5); background: rgba(212, 175, 55, .1); color: var(--benz-gold); }
.tag--pink { border-color: rgba(255, 77, 157, .5); background: rgba(255, 77, 157, .1); color: var(--neon-pink); }
.tag--green { border-color: rgba(57, 255, 136, .5); background: rgba(57, 255, 136, .1); color: var(--laser-green); }
.tag--warn { border-color: rgba(255, 138, 61, .5); background: rgba(255, 138, 61, .1); color: var(--warn-orange); }

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .02em;
  color: var(--benz-gold);
  text-shadow: 0 0 18px rgba(212, 175, 55, .35);
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--muted);
}

.section-number {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  color: rgba(124, 58, 237, .28);
  -webkit-text-stroke: 1px rgba(192, 199, 208, .35);
  text-shadow: 0 0 24px rgba(124, 58, 237, .35);
}

.prose p { margin-bottom: 1.1em; color: #D7DEEC; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { margin: 1.5em 0 .55em; }
.prose h3 { margin: 1.4em 0 .5em; }
.prose a { color: var(--electric-blue); border-bottom: 1px solid rgba(6, 182, 212, .45); }
.prose a:hover { color: var(--neon-pink); border-color: rgba(255, 77, 157, .6); }

.media-frame {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, #141B29, #0A0E18);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .55;
  background: repeating-linear-gradient(180deg, rgba(6, 182, 212, .08) 0 1px, transparent 1px 4px);
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame__caption {
  position: absolute; left: 0; bottom: 0;
  z-index: 1;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--bmw-silver);
  background: linear-gradient(90deg, rgba(11, 15, 26, .92), rgba(11, 15, 26, 0));
}

/* ---------- 8. MOTION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .62s var(--ease), transform .62s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--d1 { transition-delay: .08s; }
.reveal--d2 { transition-delay: .16s; }
.reveal--d3 { transition-delay: .24s; }
.reveal--d4 { transition-delay: .32s; }

.to-top {
  position: fixed; right: 18px; bottom: 18px;
  z-index: 140;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  background: rgba(11, 15, 26, .88);
  color: var(--electric-blue);
  font-family: var(--font-mono);
  font-size: 16px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { border-color: var(--neon-pink); color: var(--neon-pink); box-shadow: 0 0 20px rgba(255, 77, 157, .45); }

/* ---------- 9. RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
}

@media (max-width: 960px) {
  .hud-strip { font-size: 11px; }
  .hud-item--mono { display: none; }
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    background: rgba(7, 10, 18, .98);
    transition: max-height .40s var(--ease), opacity .30s var(--ease);
  }
  .primary-nav[data-open] { max-height: 640px; opacity: 1; }
  .primary-nav__list { flex-direction: column; gap: 0; padding: 6px 0 10px; }
  .primary-nav__list li { width: 100%; }
  .primary-nav__link { width: 100%; justify-content: flex-start; padding: 0 6px; border-bottom: 1px solid var(--line); }
  .primary-nav__link::after { left: 6px; right: 6px; }
  .primary-nav__link[aria-current="page"]::before { left: auto; right: 10px; top: 50%; transform: translateY(-50%); }
  .entry-strip { flex-wrap: wrap; justify-content: flex-start; gap: 10px; }
  .entry-ticks { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .access-status { display: none; }
  .room-bubble { padding: 5px 10px; }
  .room-bubble__label { display: none; }
  .brand__sub { display: none; }
  .grid--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-masthead { padding: 26px 0 18px; }
  .footer-bottom { justify-content: flex-start; }
}

@media (max-width: 420px) {
  .entry-note { display: none; }
  .hud-item--warn { display: none; }
  .hud-strip { justify-content: flex-start; }
  .nav-toggle__text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hud-dot { animation: none; }
  .scroll-progress { transition: none; }
}
