/* ==========================================================================
   Marquee — marketing site
   Dark mode is the default (mirrors the app's "Outerspace" theme); light
   mode is an alternate, not an afterthought.
   ========================================================================== */

:root {
  --purple-deep: 46, 10, 112;       /* nav bar / brand purple, from the app */
  --purple-bright: 194, 117, 255;   /* selection-ring purple, from the app */
  --green-match: 80, 230, 160;      /* search-match green, from the app */
  --gold: 255, 210, 60;

  --font-display: -apple-system, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Menlo", monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 72px;

  color-scheme: dark;

  --bg: #07050d;
  --bg-elevated: #0e0919;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-border: rgba(255, 255, 255, 0.09);
  --panel-hover: rgba(255, 255, 255, 0.075);
  --text: rgba(255, 255, 255, 0.94);
  --text-secondary: rgba(255, 255, 255, 0.62);
  --text-tertiary: rgba(255, 255, 255, 0.4);
  --accent: rgb(var(--purple-bright));
  --accent-soft: rgba(var(--purple-bright), 0.16);
  --hairline: rgba(255, 255, 255, 0.08);
  --shadow-color: 260, 30%, 3%;
  --nav-bg: rgba(10, 6, 20, 0.72);
  --code-bg: rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f1fb;
  --bg-elevated: #ffffff;
  --panel: rgba(30, 12, 60, 0.035);
  --panel-border: rgba(30, 12, 60, 0.09);
  --panel-hover: rgba(30, 12, 60, 0.06);
  --text: #180d2e;
  --text-secondary: rgba(24, 13, 46, 0.66);
  --text-tertiary: rgba(24, 13, 46, 0.42);
  --accent: rgb(124, 40, 214);
  --accent-soft: rgba(124, 40, 214, 0.1);
  --hairline: rgba(30, 12, 60, 0.1);
  --shadow-color: 260, 40%, 60%;
  --nav-bg: rgba(255, 255, 255, 0.78);
  --code-bg: rgba(30, 12, 60, 0.05);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; line-height: 1.6; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(var(--purple-bright), 0.9);
}

/* ---------- background ambience (echoes the app's OuterspaceBackground) --- */

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
}

.ambient-bg::before,
.ambient-bg::after {
  content: "";
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 900px;
  max-height: 900px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: driftPulse 16s ease-in-out infinite alternate;
}

.ambient-bg::before {
  top: -20%;
  left: -12%;
  background: radial-gradient(circle, rgba(var(--purple-deep), 0.9), transparent 70%);
}

.ambient-bg::after {
  bottom: -25%;
  right: -12%;
  background: radial-gradient(circle, rgba(var(--purple-bright), 0.35), transparent 70%);
  animation-delay: -8s;
}

html[data-theme="light"] .ambient-bg::before,
html[data-theme="light"] .ambient-bg::after {
  opacity: 0.28;
}

@keyframes driftPulse {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(4%, 5%) scale(1.12); }
}

/* ---------------------------- nav ---------------------------------------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--hairline);
}

.site-nav .wrap {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.brand img { width: 30px; height: 30px; border-radius: 8px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-links a:hover { background: var(--panel-hover); color: var(--text); }
.nav-links a.active { color: var(--text); background: var(--panel); }

.nav-right { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.theme-toggle:hover { background: var(--panel-hover); transform: scale(1.06); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .sun { display: none; }
html[data-theme="light"] .theme-toggle .sun { display: block; }
html[data-theme="light"] .theme-toggle .moon { display: none; }

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ---------------------------- buttons ------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-display);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, rgb(155, 90, 255), rgb(110, 50, 230));
  color: #fff;
  box-shadow: 0 8px 24px -6px rgba(var(--purple-bright), 0.55);
}

.btn-primary:hover {
  box-shadow: 0 12px 32px -6px rgba(var(--purple-bright), 0.75);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--panel);
  color: var(--text);
  border-color: var(--panel-border);
}

.btn-secondary:hover { background: var(--panel-hover); }

.btn-lg { padding: 16px 30px; font-size: 16.5px; }

.btn-block { width: 100%; }

/* ---------------------------- hero --------------------------------------- */

.hero {
  padding: 76px 0 40px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.04;
  margin: 22px auto 20px;
  max-width: 900px;
}

.hero h1 .accent-text {
  background: linear-gradient(135deg, rgb(210, 160, 255), rgb(150, 90, 255) 55%, rgb(120, 200, 255));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 600px;
  margin: 0 auto;
  font-size: 18px;
  color: var(--text-secondary);
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.version-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

/* -------------------- hero screenshot frame ------------------------------- */

.hero-frame {
  position: relative;
  max-width: 1040px;
  margin: 56px auto 0;
  perspective: 1800px;
}

.hero-frame-inner {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 40px 90px -30px hsla(var(--shadow-color), 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transform: rotateX(4deg) scale(1);
  transition: transform 0.6s var(--ease);
  animation: heroFloat 7s ease-in-out infinite;
}

.hero-frame:hover .hero-frame-inner { transform: rotateX(0deg) scale(1.008); }

@keyframes heroFloat {
  0%, 100% { transform: rotateX(4deg) translateY(0); }
  50% { transform: rotateX(4deg) translateY(-10px); }
}

.hero-frame img { width: 100%; display: block; }

.hero-glow {
  position: absolute;
  inset: -10% -10% 20% -10%;
  background: radial-gradient(60% 60% at 50% 20%, rgba(var(--purple-bright), 0.35), transparent 70%);
  filter: blur(40px);
  z-index: -1;
}

/* ---------------- motion strip (GIFs) -------------------------------------- */

.motion-strip {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.motion-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--panel-border);
  background: var(--panel);
}

.motion-item img {
  display: block;
  width: 100%;
  height: auto;
}

.motion-item span {
  display: block;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

@media (max-width: 800px) {
  .motion-strip { grid-template-columns: 1fr; }
}

/* ---------------- source pills strip -------------------------------------- */

.sources-strip {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--hairline);
  text-align: center;
}

.sources-strip .label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 20px;
  display: block;
}

.source-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.source-badge {
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  letter-spacing: -0.01em;
}

.source-badge.crossover { background: #b1362f; }
.source-badge.steam { background: #1b5e8c; }
.source-badge.epic { background: #2c2c33; }
.source-badge.gog { background: #6f3fa0; }
.source-badge.mac { background: #4a4a52; }

/* ------------------------ CSS-only coverflow silhouette -------------------
   A pure HTML/CSS/JS stand-in for the app's SceneKit 3D carousel — the
   "silhouette" of Marquee itself, no screenshots required. */

.silhouette-stage {
  position: relative;
  height: 340px;
  margin: 20px auto 0;
  perspective: 1400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.silhouette-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.sbox {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 132px;
  height: 198px;
  margin: -99px 0 0 -66px;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--sbox-a), var(--sbox-b));
  box-shadow: 0 20px 40px -14px rgba(0,0,0,0.6);
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease), opacity 0.7s var(--ease);
  display: flex;
  align-items: flex-end;
  padding: 14px;
}

.sbox::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.14), transparent 40%);
}

.sbox .sbox-line {
  width: 60%;
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.5);
}

.sbox.center {
  z-index: 5;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.9), 0 0 44px rgba(var(--purple-bright), 0.85), 0 26px 50px -14px rgba(0,0,0,0.7);
}

/* JS assigns --tx/--rot/--scale/--z/--op per slot */
.sbox {
  transform:
    translateX(var(--tx, 0px))
    translateZ(var(--tz, 0px))
    rotateY(var(--rot, 0deg))
    scale(var(--scl, 1));
  opacity: var(--op, 1);
  filter: brightness(var(--brt, 1));
}

/* ----------------------------- section shell ------------------------------ */

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin: 14px 0 14px;
  line-height: 1.12;
}

.section-head p { color: var(--text-secondary); font-size: 17px; }

/* ------------------------------ feature grid ------------------------------ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color .3s var(--ease);
}

.feature-card:hover {
  transform: translateY(-4px);
  background: var(--panel-hover);
  border-color: rgba(var(--purple-bright), 0.35);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}

.feature-icon svg { width: 21px; height: 21px; }

.feature-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 14.5px;
  color: var(--text-secondary);
}

/* ------------------------------ showcase rows ------------------------------ */

.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--hairline);
}

.showcase-row:first-of-type { border-top: none; }
.showcase-row.reverse .showcase-copy { order: 2; }
.showcase-row.reverse .showcase-media { order: 1; }

.showcase-copy .eyebrow { margin-bottom: 14px; }
.showcase-copy h3 { font-size: 27px; margin-bottom: 14px; line-height: 1.2; }
.showcase-copy p { color: var(--text-secondary); font-size: 16px; margin-bottom: 18px; }

.showcase-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.showcase-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.showcase-list svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--green-match, #50e6a0); color: rgb(var(--green-match)); }

.showcase-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--panel-border);
  box-shadow: 0 30px 60px -24px hsla(var(--shadow-color), 0.7);
}

/* -------------------------------- quote / callout -------------------------- */

.callout {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 40px;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgba(var(--purple-deep), 0.5), rgba(var(--purple-bright), 0.08));
  border: 1px solid var(--panel-border);
}

.callout p.big {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.callout .who {
  margin-top: 16px;
  color: var(--text-tertiary);
  font-size: 14px;
}

/* --------------------------------- stats ------------------------------------ */

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: center;
}

.stat-card {
  padding: 26px 16px;
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 1px solid var(--panel-border);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* --------------------------------- CTA band ---------------------------------- */

.cta-band {
  text-align: center;
  padding: 88px 0 100px;
}

.cta-band h2 { font-size: clamp(28px, 4.5vw, 44px); margin-bottom: 16px; }
.cta-band p { color: var(--text-secondary); font-size: 17px; max-width: 520px; margin: 0 auto 32px; }

/* ------------------------------------ footer ---------------------------------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 48px 0 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 32px;
}

.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-family: var(--font-display); }
.footer-brand img { width: 26px; height: 26px; border-radius: 7px; }
.footer-tag { margin-top: 10px; font-size: 13.5px; color: var(--text-tertiary); max-width: 280px; }

.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 14px; font-weight: 700;}
.footer-col a { display: block; font-size: 14px; color: var(--text-secondary); margin-bottom: 10px; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ------------------------------------ misc page shell ---------------------------- */

.page-hero {
  padding: 64px 0 8px;
  text-align: center;
}

.page-hero h1 { font-size: clamp(32px, 5vw, 52px); margin: 18px 0 14px; }
.page-hero p { color: var(--text-secondary); font-size: 17px; max-width: 560px; margin: 0 auto; }

/* download page */

.download-card {
  max-width: 560px;
  margin: 48px auto 0;
  padding: 40px;
  border-radius: var(--radius-xl);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  text-align: center;
}

.download-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  border-radius: 22px;
}

.download-version {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
}

.req-list {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  text-align: left;
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.req-list li { display: flex; justify-content: space-between; gap: 12px; }
.req-list b { color: var(--text); font-weight: 600; }

.build-note {
  max-width: 700px;
  margin: 56px auto 0;
  padding: 26px 28px;
  border-radius: var(--radius-md);
  background: var(--code-bg);
  border: 1px solid var(--panel-border);
}

.build-note h4 { font-size: 14.5px; margin-bottom: 10px; }
.build-note p { font-size: 14px; color: var(--text-secondary); margin-bottom: 12px; }
.build-note code, .build-note pre {
  font-family: var(--font-mono);
  font-size: 13px;
  background: rgba(0,0,0,0.28);
  border-radius: 8px;
  color: rgb(200, 230, 255);
}
.build-note code { padding: 2px 6px; }
.build-note pre { display: block; padding: 14px 16px; overflow-x: auto; }
html[data-theme="light"] .build-note code,
html[data-theme="light"] .build-note pre { background: rgba(24,13,46,0.08); color: #3a2260; }

.gatekeeper-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 700px;
  margin: 20px auto 0;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(var(--gold), 0.09);
  border: 1px solid rgba(var(--gold), 0.25);
  font-size: 13.5px;
  color: var(--text-secondary);
  text-align: left;
}
.gatekeeper-note svg { width: 18px; height: 18px; flex-shrink: 0; color: rgb(var(--gold)); margin-top: 1px; }

/* legal / privacy */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 100px;
}

.legal h2 {
  font-size: 21px;
  margin: 40px 0 12px;
}
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--text-secondary); font-size: 15.5px; margin-bottom: 14px; }
.legal ul { color: var(--text-secondary); font-size: 15.5px; padding-left: 20px; margin-bottom: 14px; }
.legal li { margin-bottom: 8px; }
.legal .updated { color: var(--text-tertiary); font-size: 13.5px; margin-bottom: 8px; }

/* features page comparison-ish table */

.compare {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 14.5px;
}
.compare th, .compare td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--hairline);
}
.compare th { color: var(--text-tertiary); font-weight: 700; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.compare td { color: var(--text-secondary); }
.compare td:first-child { color: var(--text); font-weight: 600; }

/* ----------------------------------- responsive ---------------------------------- */

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .showcase-row, .showcase-row.reverse { grid-template-columns: 1fr; gap: 28px; }
  .showcase-row.reverse .showcase-copy,
  .showcase-row.reverse .showcase-media { order: initial; }
  .stat-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .wrap { padding: 0 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .hero { padding-top: 48px; }
  .silhouette-stage { height: 260px; }
  .sbox { width: 96px; height: 144px; margin: -72px 0 0 -48px; }
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px 20px 18px;
  border-bottom: 1px solid var(--hairline);
  background: var(--nav-bg);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-secondary);
  border-radius: 10px;
}
.mobile-nav a:hover { background: var(--panel-hover); color: var(--text); }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
