/* ============================================================
   theskyisnotreal.com · "cosmic premium dark"
   ============================================================ */

:root {
  --bg-0: #05060a;        /* near black */
  --bg-1: #0b1026;        /* deep indigo */
  --bg-2: #12173a;        /* lifted indigo (cards) */
  --ink: #e8ecff;         /* primary text */
  --ink-dim: #8891b5;     /* muted text */
  --violet: #7c5cff;      /* accent 1 */
  --cyan: #4dd6ff;        /* accent 2 */
  --amber: #ffb865;       /* faint "sun" warmth */
  --border: rgba(180, 195, 255, 0.12);
  --card-bg: rgba(20, 26, 58, 0.55);
  --glow: 0 0 40px rgba(124, 92, 255, 0.35);
  --maxw: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(1200px 800px at 50% -10%, #1a2150 0%, transparent 60%),
    radial-gradient(900px 700px at 85% 20%, rgba(124, 92, 255, 0.18) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 45%);
  background-attachment: fixed;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Starfield + vignette ---------- */
#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  display: block;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(120% 80% at 50% 30%, transparent 55%, rgba(5, 6, 10, 0.85) 100%);
}

/* ---------- Watching pill ---------- */
.watcher {
  position: fixed;
  top: clamp(14px, 3vw, 26px);
  right: clamp(14px, 3vw, 26px);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  background: rgba(8, 10, 24, 0.6);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.watcher__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 1.8s var(--ease) infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---------- Layout primitives ---------- */
main { position: relative; z-index: 1; }

section {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(38px, 6vh, 76px) clamp(22px, 6vw, 56px);
}

.section-kicker {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin-bottom: clamp(32px, 6vw, 56px);
  background: linear-gradient(180deg, #ffffff, #b9c2f0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 22px;
}

.hero__title {
  font-size: clamp(3.2rem, 13vw, 9rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #ffffff 0%, #cdd6ff 55%, #7f8bd6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(124, 92, 255, 0.25);
}

.hero__tagline {
  margin-top: clamp(18px, 3vw, 30px);
  font-size: clamp(1.05rem, 2.4vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--cyan);
  text-shadow: 0 0 24px rgba(77, 214, 255, 0.5);
}

.hero__actions {
  margin-top: clamp(34px, 5vw, 52px);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--pad-y) 24px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), border-color 0.25s var(--ease);
  will-change: transform;
}
.btn--lg { --pad-y: 16px; padding-left: 34px; padding-right: 34px; font-size: 1.05rem; }

.btn--primary {
  color: #0a0a16;
  background: linear-gradient(120deg, var(--cyan), var(--violet));
  box-shadow: var(--glow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 55px rgba(124, 92, 255, 0.6); }

.btn--ghost {
  color: var(--ink);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: rgba(180, 195, 255, 0.4); }

/* ---------- Disabled / "coming soon" button ---------- */
.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.6;
  filter: saturate(0.75);
  box-shadow: none;
}
.btn:disabled:hover,
.btn[aria-disabled="true"]:hover {
  transform: none;
  box-shadow: none;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  gap: clamp(16px, 2.4vw, 24px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.card {
  position: relative;
  padding: clamp(26px, 3.2vw, 40px);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(124, 92, 255, 0.5), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.7;
  pointer-events: none;
}
.card p { color: #cfd6f5; font-size: 1.02rem; }
.card__index {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--violet);
  margin-bottom: 16px;
}
.pullquote {
  margin-top: 20px;
  padding-left: 18px;
  border-left: 2px solid var(--cyan);
  font-size: 1.12rem;
  font-weight: 600;
  font-style: italic;
  color: var(--ink);
}

/* ---------- The brief (deception) ---------- */
.brief {
  max-width: 760px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.brief__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 22px;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 16, 38, 0.4);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.brief__stamp {
  color: #ff9db0;
  border: 1px solid rgba(255, 157, 176, 0.4);
  border-radius: 6px;
  padding: 3px 9px;
}
.brief__body {
  padding: clamp(22px, 3.2vw, 34px);
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.4vw, 24px);
}
.brief__row {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 20px;
  align-items: start;
}
.brief__label {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  padding-top: 4px;
}
.brief__row p { margin: 0; color: #cfd6f5; font-size: 1.04rem; line-height: 1.65; }
.brief__quote { margin: 0; }
@media (max-width: 560px) {
  .brief__row { grid-template-columns: 1fr; gap: 6px; }
  .brief__label { padding-top: 0; }
}

/* ---------- Evidence stats ---------- */
.stats {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}
.stat {
  text-align: center;
  padding: clamp(24px, 3vw, 38px) 18px;
  background: rgba(11, 16, 38, 0.4);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.stat__num {
  display: block;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(120deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  display: block;
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--ink-dim);
  letter-spacing: 0.02em;
}

/* Slim horizontal band variant: the four stats as one compact strip rather
   than four chunky boxes (breaks up the card rhythm elsewhere on the page). */
.stats--band {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(11, 16, 38, 0.4);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.stats--band .stat {
  flex: 1 1 150px;
  padding: 16px 14px;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--border);
  border-radius: 0;
}
.stats--band .stat:first-child { border-left: 0; }
.stats--band .stat__num { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.stats--band .stat__label { margin-top: 4px; font-size: 0.78rem; }
@media (max-width: 620px) {
  .stats--band .stat { flex-basis: 50%; }
  .stats--band .stat:nth-child(odd) { border-left: 0; }
  .stats--band .stat:nth-child(n + 3) { border-top: 1px solid var(--border); }
}

/* ---------- Deception Detector ---------- */
.scanner__panel {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 30px);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}
.scanner__chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 16px;
}
.scanner__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.scanner__vp {
  position: relative;
  height: 200px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #101a44, #0a1030);
  border: 1px solid var(--border);
}
.scanner__star { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; transition: opacity 0.4s var(--ease); }
.scanner__scanline {
  position: absolute;
  left: 0; right: 0; top: -12%;
  height: 16px;
  z-index: 3;
  background: linear-gradient(180deg, transparent, rgba(77, 214, 255, 0.55), transparent);
  opacity: 0;
}
.scanner__vp.is-scanning .scanner__scanline { opacity: 1; animation: sky-sweep 1.1s linear infinite; }
@keyframes sky-sweep { 0% { top: -12%; } 100% { top: 100%; } }
.scanner__stat {
  position: absolute;
  left: 14px; bottom: 12px;
  z-index: 4;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #9fb0e0;
}

/* ---------- Scanner map (zoom-to-your-sky) ---------- */
.scanner__map { position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity 0.4s var(--ease); }
.scanner__vp.has-map .scanner__map { opacity: 1; }
.scanner__vp.has-map .scanner__star { opacity: 0.25; }
.scanner__map svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scanner__land {
  fill: rgba(77, 214, 255, 0.08);
  stroke: var(--cyan);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.scanner__grid line { stroke: rgba(180, 195, 255, 0.14); stroke-width: 1; vector-effect: non-scaling-stroke; }
.scanner__reticle {
  position: absolute;
  left: 50%; top: 50%;
  width: 96px; height: 96px;
  z-index: 2;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.scanner__vp.is-located .scanner__reticle { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.scanner__reticle-ring { position: absolute; inset: 0; border: 1.5px solid var(--cyan); border-radius: 50%; opacity: 0.5; }
.scanner__reticle-ring--pulse { animation: sky-ping 1.8s var(--ease) infinite; }
@keyframes sky-ping { 0% { transform: scale(0.5); opacity: 0.8; } 100% { transform: scale(1.4); opacity: 0; } }
.scanner__reticle-dot { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.scanner__reticle-cross { position: absolute; background: var(--cyan); opacity: 0.8; }
.scanner__reticle-cross.h { left: 50%; top: 0; bottom: 0; width: 1px; margin-left: -0.5px; }
.scanner__reticle-cross.v { top: 50%; left: 0; right: 0; height: 1px; margin-top: -0.5px; }
.scanner__log {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  line-height: 1.7;
  color: #9fb6e6;
  min-height: 24px;
  margin: 16px 0;
}
.scanner__log div { opacity: 0; animation: sky-fadein 0.3s forwards; }
@keyframes sky-fadein { to { opacity: 1; } }
.scanner__controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.scanner__controls--top { max-width: 640px; margin: 0 auto 18px; }
.scanner__result {
  margin-top: 18px;
  padding: 20px;
  border-radius: 14px;
  background: rgba(20, 26, 58, 0.5);
  border: 1px solid rgba(255, 95, 109, 0.35);
}
.scanner__result--real { border-color: rgba(77, 214, 255, 0.45); }
.scanner__label {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-dim); margin-bottom: 8px;
}
.scanner__verdict {
  font-size: clamp(2.4rem, 7vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  background: linear-gradient(120deg, #ff8a8a, #ff5f6d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.scanner__result--real .scanner__verdict {
  background: linear-gradient(120deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
}
.scanner__diag { color: var(--ink); font-weight: 600; margin-top: 6px; }
.scanner__rec { margin-top: 14px; color: var(--ink-dim); font-style: italic; font-size: 0.95rem; }
.scanner__geo { margin-top: 12px; font-size: 0.9rem; color: #ff9db0; letter-spacing: 0.01em; }
.scanner__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.scanner__metric {
  background: rgba(11, 16, 38, 0.5);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}
.scanner__metric b { display: block; font-size: 20px; font-weight: 800; color: var(--cyan); }
.scanner__metric span { font-size: 11px; color: var(--ink-dim); }
.scanner__toast {
  position: absolute;
  left: 50%; bottom: 16px;
  transform: translateX(-50%);
  background: #0a0e28;
  border: 1px solid rgba(77, 214, 255, 0.4);
  color: #cfe8ff;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.scanner__toast.is-visible { opacity: 1; }

/* Public "skies scanned" counter */
.scanner__counter {
  max-width: 640px;
  margin: 0 auto 16px;
  text-align: center;
  color: var(--ink-dim);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
.scanner__counter-num {
  color: var(--cyan);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.scanner__counter-sub { color: var(--ink-dim); opacity: 0.85; }

/* "Recently scanned" feed */
.scanner__feed {
  max-width: 640px;
  margin: 18px auto 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px 6px;
}
.scanner__feed-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}
.scanner__feed-title { color: var(--ink); font-weight: 700; font-size: 0.95rem; }
.scanner__feed-note { color: var(--ink-dim); font-size: 0.78rem; letter-spacing: 0.02em; }
.scanner__feed-list { list-style: none; margin: 0; padding: 0; }
.scanner__feed-row { border-top: 1px solid var(--border); }
.scanner__feed-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s var(--ease);
}
.scanner__feed-link:hover { opacity: 0.7; }
.scanner__feed-loc {
  color: var(--ink-dim);
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.scanner__feed-meta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.scanner__feed-verdict { color: var(--cyan); font-weight: 700; font-size: 0.88rem; }
.scanner__feed-verdict.is-real { color: var(--amber); }
.scanner__feed-conf { color: var(--ink-dim); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.scanner__feed-time {
  color: var(--ink-dim);
  font-size: 0.78rem;
  min-width: 52px;
  text-align: right;
  opacity: 0.8;
}

.scanner__glitch { animation: sky-glitch 0.12s steps(2) 5; }
@keyframes sky-glitch {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2px, 1px); }
  50% { transform: translate(2px, -1px); }
  75% { transform: translate(-1px, -1px); }
  100% { transform: translate(0, 0); }
}

/* ---------- Join / CTA ---------- */
.join { text-align: center; }
.join__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 56px);
  background: radial-gradient(120% 140% at 50% 0%, rgba(124, 92, 255, 0.18), transparent 60%),
    var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 28px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.join__title {
  font-size: clamp(1.7rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 18px;
}
.join__body { color: var(--ink-dim); font-size: 1.08rem; max-width: 52ch; margin: 0 auto 32px; }

/* ---------- Signup form ---------- */
.signup {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 520px;
  margin: 0 auto;
}
.signup__input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 15px 20px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: rgba(8, 10, 24, 0.55);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.signup__input::placeholder { color: rgba(136, 145, 181, 0.55); }
.signup__input:focus {
  outline: none;
  border-color: rgba(77, 214, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(77, 214, 255, 0.15);
}
.signup__input[aria-invalid="true"] {
  border-color: rgba(255, 95, 109, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 95, 109, 0.15);
}
.signup__msg {
  min-height: 1.4em;
  margin: 16px auto 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.signup__msg.is-ok { color: var(--cyan); }
.signup__msg.is-error { color: #ff8a8a; }

/* ---------- FAQ ---------- */
.faq__list {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq__item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 4px clamp(18px, 3vw, 28px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--cyan);
  transition: transform 0.25s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p {
  color: #cfd6f5;
  font-size: 1rem;
  padding: 0 0 18px;
  margin: 0;
}
.faq__item a { color: var(--cyan); }

/* Collapsible "what's actually happening" reveal, used inside .prose on the
   exhibit pages so the real-science punchline sits one click away. */
.reveal-note {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0 clamp(14px, 2.5vw, 20px);
  margin-bottom: 20px;
}
.reveal-note summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 0;
  font-weight: 600;
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.reveal-note summary::-webkit-details-marker { display: none; }
.reveal-note summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--cyan);
  transition: transform 0.25s var(--ease);
}
.reveal-note[open] summary::after { transform: rotate(45deg); }
.reveal-note p {
  color: #cfd6f5;
  font-size: 1rem;
  padding: 0 0 16px;
  margin: 0;
}

/* Jira-style ticket meta on the glitches exhibit: a status lozenge, an assignee
   avatar chip, and gray labels, played straight for the bug-tracker gag. */
.ticket-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 14px;
}
.jira-status {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 4px;
  line-height: 1;
}
.jira-status--gray { background: rgba(150, 163, 186, 0.16); color: #b7c0d4; }
.jira-status--green { background: rgba(52, 199, 123, 0.16); color: #6ee2a0; }
.jira-status--blue { background: rgba(77, 163, 255, 0.16); color: #8ec5ff; }
.jira-status--yellow { background: rgba(255, 196, 61, 0.16); color: #ffce6b; }
.jira-status--purple { background: rgba(157, 123, 255, 0.18); color: #c3b1ff; }
.jira-assignee {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--ink-dim);
}
.jira-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 700;
  color: #0a0a16;
  background: linear-gradient(120deg, var(--cyan), var(--violet));
}
.jira-avatar::after { content: "BS"; }
.jira-label {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-dim);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
}
.ticket-note { font-size: 0.82rem; color: var(--ink-dim); }
.ticket-note a { color: var(--cyan); }

/* Each glitch as a self-contained ticket card, so six of them read as a scannable
   list instead of one dense column. Header (title + status), report, meta, reveal. */
.ticket {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(20px, 3vw, 28px);
  margin-bottom: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.ticket__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.ticket .ticket__title {
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  line-height: 1.3;
}
.ticket__head .jira-status { flex-shrink: 0; margin-top: 4px; }
.ticket__report { margin: 0 0 14px; }
.ticket__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 16px;
}
.reveal-note--flush {
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  padding: 0;
  margin: 0;
}

/* ---------- Ad slots ---------- */
.ad-slot[hidden] { display: none; }
.ad-slot {
  max-width: var(--maxw);
  margin: 0 auto clamp(40px, 8vw, 80px);
  padding: 0 clamp(22px, 6vw, 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* Top banner sits below the fixed watcher pill; give it a little breathing room. */
.ad-slot--top {
  margin-top: clamp(56px, 9vw, 90px);
  margin-bottom: 0;
}
.ad-slot .adsbygoogle {
  display: block;
  width: 100%;
}
/* Take up space only when an ad actually fills. A slot stays collapsed to zero
   footprint (no height, no margins) until AdSense confirms a fill: it sets
   data-ad-status="filled" on the <ins>, and `script.js` mirrors that onto the
   slot as .ad-slot--filled. The <ins> keeps its full width the whole time so the
   responsive unit can still size itself; only the slot's height is held at 0.
   Collapsing up front (rather than reserving space and then removing it when the
   response comes back "unfilled") avoids a jump near the top of the page on load. */
.ad-slot:not(.ad-slot--filled) {
  max-height: 0;
  margin-top: 0;
  margin-bottom: 0;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(40px, 7vw, 70px) 22px clamp(50px, 8vw, 90px);
  border-top: 1px solid var(--border);
}
.footer__mark {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 12px;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-bottom: 18px;
}
.footer__nav a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  transition: color 0.25s var(--ease);
}
.footer__nav a:hover { color: var(--cyan); }
.footer__fine { color: rgba(136, 145, 181, 0.42); font-size: 0.72rem; letter-spacing: 0.01em; max-width: 44ch; margin: 0 auto 14px; }
.footer__meta { color: rgba(136, 145, 181, 0.6); font-size: 0.8rem; letter-spacing: 0.04em; }

/* ---------- Content / prose pages (about, contact, privacy, disclaimer) ---------- */
.page { min-height: 70vh; padding-top: clamp(80px, 12vh, 140px); }
.page__eyebrow { margin-bottom: 22px; }
.page__title {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #cdd6ff 60%, #7f8bd6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page__lead { color: var(--ink-dim); font-size: 1.1rem; max-width: 60ch; margin-bottom: 34px; }
.prose { max-width: 68ch; }
.prose h2 {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 36px 0 12px;
  color: var(--ink);
}
.prose p, .prose li { color: #cfd6f5; font-size: 1.02rem; margin-bottom: 14px; }
.prose ul { padding-left: 1.2em; margin-bottom: 14px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--cyan); }
.prose strong { color: var(--ink); }
.prose .back-link {
  display: inline-block;
  margin-top: 40px;
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
}
.prose .back-link:hover { text-decoration: underline; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
/* stagger children within a group */
.cards .reveal:nth-child(2) { transition-delay: 0.08s; }
.cards .reveal:nth-child(3) { transition-delay: 0.16s; }
.stats .reveal:nth-child(2) { transition-delay: 0.06s; }
.stats .reveal:nth-child(3) { transition-delay: 0.12s; }
.stats .reveal:nth-child(4) { transition-delay: 0.18s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .watcher__dot { animation: none; }
  .scanner__scanline, .scanner__glitch { animation: none !important; }
  .scanner__log div { animation: none; opacity: 1; }
  .scanner__reticle-ring--pulse { animation: none !important; }
  .scanner__reticle, .scanner__map { transition: none !important; }
}
