/* ============================================================
   Do You Realize? · You Have Never Touched Anything
   Design system: Deep Water / Bioluminescent (shared with /phishradio)
   A dark, scroll-driven meditation. Dark-only by design · the void
   is part of the piece.
   ============================================================ */

:root {
  --bg:          #07100e;
  --bg-surface:  #0c1c18;
  --bg-raised:   #132420;

  --text:   #d8efea;
  --text-2: #7aada4;
  --text-3: #3f6b64;

  --accent:       #00c9b1;
  --accent-light: #00ecd4;
  --accent-dim:   rgba(0, 201, 177, 0.12);
  --accent-glow:  rgba(0, 201, 177, 0.25);

  --border:        rgba(0, 201, 177, 0.1);
  --border-subtle: rgba(255,255,255,0.05);

  --font-display: 'Inter', system-ui, sans-serif;
  --font-mono:    'Helvetica Neue', Helvetica, Arial, sans-serif;

  --max-line: 34rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* faint living grain so the void isn't dead flat */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0,201,177,0.05) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(0,201,177,0.04) 0%, transparent 55%);
}

main { position: relative; z-index: 1; }

a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-light); }

/* ============================================================
   MINIMAL NAV
   ============================================================ */
.mininav {
  position: fixed;
  top: 0; left: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 1.1rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  opacity: 0.45;
  transition: opacity .25s;
}
.mininav:hover { opacity: 1; }
.mininav-home { color: var(--text-3); }
.mininav-home:hover { color: var(--accent); }
.mininav-sep { color: var(--text-3); opacity: 0.5; }
.mininav-current { color: var(--text-2); }

/* ============================================================
   ACT LAYOUT
   ============================================================ */
.act {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem;
  position: relative;
}

.act-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-3);
  margin-bottom: 1.6rem;
}

.act-lead {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.12;
  font-size: clamp(1.5rem, 4.5vw, 2.7rem);
  max-width: var(--max-line);
}
.act-lead em { font-style: normal; color: var(--accent); }

.act-body {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--text-2);
  max-width: var(--max-line);
  margin-top: 1.4rem;
}
.act-body strong { color: var(--text); font-weight: 600; }

.act-caption {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-3);
  margin-top: 1.2rem;
  letter-spacing: 0.02em;
}

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

/* ============================================================
   ACT 0 · TITLE
   ============================================================ */
.act--title { min-height: 100vh; }
.title-pre {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--text-2);
  margin-bottom: 1.2rem;
}
.title-main {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.98;
  font-size: clamp(2.4rem, 9vw, 5.5rem);
}
.title-main .l2 { color: var(--accent); }
.scroll-cue {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.4rem;
  color: var(--text-3);
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ============================================================
   ACT 1 · THE DENIAL (press surface)
   ============================================================ */
.press-surface {
  margin-top: 2.4rem;
  width: min(420px, 80vw);
  height: 160px;
  border-radius: 14px;
  background:
    radial-gradient(circle 120px at var(--px,50%) var(--py,50%), rgba(0,201,177,0.16), transparent 70%),
    var(--bg-surface);
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.press-surface.pressed {
  transform: scale(0.985);
  box-shadow: inset 0 0 60px rgba(0,0,0,0.5), inset 0 0 0 1px var(--accent-dim);
}
.press-surface::after {
  content: 'press and hold';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  pointer-events: none;
  transition: opacity .2s;
}
.press-surface.pressed::after { opacity: 0; }
.press-hint {
  opacity: 0;
  transition: opacity .4s;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.press-hint.show { opacity: 1; }

/* ============================================================
   ACT 2a · THE ZOOM (pinned scrollytelling)
   ============================================================ */
.zoom-scroll { height: 420vh; position: relative; }
.zoom-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.zoom-stage {
  position: relative;
  width: min(440px, 80vw);
  height: min(440px, 80vw);
}
.zoom-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  will-change: opacity, transform;
}
.zoom-layer svg { width: 100%; height: 100%; overflow: visible; }
.zoom-readout {
  position: absolute;
  bottom: 8vh;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  white-space: nowrap;
}
.zoom-hint {
  position: absolute;
  top: 12vh;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}
/* svg stroke defaults for zoom illustrations */
.zoom-layer .stroke { fill: none; stroke: var(--accent); stroke-width: 2; }
.zoom-layer .stroke-dim { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: 0.4; }
.zoom-layer .fill { fill: var(--accent-dim); stroke: var(--accent); stroke-width: 1.5; }
.zoom-layer .dot { fill: var(--accent); }

/* ============================================================
   ACT 2b · THE GAP (draggable clouds + force meter)
   ============================================================ */
.gap-stage {
  position: relative;
  width: min(520px, 88vw);
  height: 220px;
  margin-top: 2rem;
  touch-action: none;
}
.cloud {
  position: absolute;
  top: 50%; left: 50%;
  width: 150px; height: 150px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 50% 50%, var(--accent-glow) 0%, rgba(0,201,177,0.08) 45%, transparent 72%);
}
.cloud::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
  transform: translate(-50%,-50%);
  box-shadow: 0 0 10px 2px var(--accent-glow);
}
.cloud--fixed { }
.cloud--move { cursor: grab; }
.cloud--move:active { cursor: grabbing; }
.cloud--move::before {
  content: 'drag →';
  position: absolute;
  bottom: -1.6rem; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}
.force-wrap { width: min(420px, 84vw); margin-top: 2.6rem; }
.force-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem;
}
.force-track {
  height: 8px; border-radius: 20px; background: var(--bg-surface);
  border: 1px solid var(--border); overflow: hidden;
}
.force-fill {
  height: 100%; width: 8%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transition: width .08s linear;
}
.gap-dist {
  font-family: var(--font-mono); font-size: 0.86rem; color: var(--accent);
  margin-top: 0.9rem; min-height: 1.2em;
}
.gap-dist small { color: var(--text-3); }

/* ============================================================
   HIDDEN CONTENT · reveal blocks (<details>)
   ============================================================ */
.reveal {
  width: min(var(--max-line), 88vw);
  margin: 1.8rem auto 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-surface);
  text-align: left;
  overflow: hidden;
}
.reveal > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.85rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.reveal > summary::-webkit-details-marker { display: none; }
.reveal > summary::before { content: '+'; font-size: 1rem; line-height: 1; transition: transform .2s; }
.reveal[open] > summary::before { content: '−'; }
.reveal-body {
  padding: 0 1.1rem 1.1rem;
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.65;
}
.reveal-body p + p { margin-top: 0.8rem; }
.reveal-body strong { color: var(--text); }

/* ============================================================
   ACT 4 · ZENO (Achilles & the tortoise)
   ============================================================ */
.zeno-stage { width: min(560px, 90vw); margin-top: 2.2rem; }
.achilles-track {
  position: relative;
  height: 70px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}
.runner {
  position: absolute;
  bottom: 6px;
  transform: translateX(-50%);
  font-size: 1.6rem;
  transition: left .5s cubic-bezier(.2,.7,.2,1);
  line-height: 1;
}
#achilles { left: 0%; }
#tortoise { left: 82%; }
.runner-label {
  position: absolute; bottom: -1.3rem; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.58rem; color: var(--text-3);
  white-space: nowrap; text-transform: uppercase; letter-spacing: 0.1em;
}
.zeno-controls { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }
.zeno-readout {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-2);
  margin-top: 1.2rem; min-height: 1.3em;
}
.zeno-readout .accent { color: var(--accent); }

/* ============================================================
   ACT 5 · THE BRAID (walk / touch toggle)
   ============================================================ */
.braid-toggle { display: inline-flex; gap: 4px; margin-top: 2rem; padding: 4px; border: 1px solid var(--border); border-radius: 24px; }
.braid-toggle button {
  font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.5rem 1.3rem; border-radius: 20px; border: none; background: transparent; color: var(--text-2);
  cursor: pointer; transition: background .15s, color .15s;
}
.braid-toggle button.active { background: var(--accent); color: var(--bg); }
.braid-viz {
  display: flex; align-items: flex-end; justify-content: center; gap: 8px;
  height: 180px; width: min(420px, 84vw); margin: 2rem auto 0;
  border-bottom: 1px solid var(--border); padding-bottom: 0;
}
.braid-bar {
  width: 30px; border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--accent-light), var(--accent));
  transition: height .4s cubic-bezier(.2,.7,.2,1);
  align-self: flex-end;
}
.braid-viz.touch .braid-bar { background: linear-gradient(180deg, #f07888, #c83248); }
.braid-verdict {
  font-family: var(--font-mono); font-size: 0.85rem; margin-top: 1.4rem; min-height: 1.3em;
  color: var(--text);
}

/* ============================================================
   ACT 7 · CLOSE
   ============================================================ */
.act--close .title-main { font-size: clamp(1.6rem, 5vw, 2.8rem); }
.close-zero {
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--text-2);
  margin-bottom: 0.4rem;
}
.close-zero b { color: var(--accent); font-weight: 700; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.04em;
  color: var(--accent); border: 1px solid var(--accent); background: var(--accent-dim);
  padding: 0.6rem 1.2rem; border-radius: 6px; cursor: pointer; transition: background .15s, color .15s;
  margin-top: 2.2rem;
}
.btn:hover { background: var(--accent); color: var(--bg); }
.close-credit {
  margin-top: 2.6rem;
  font-size: 0.92rem;
  color: var(--text-3);
  max-width: var(--max-line);
  line-height: 1.6;
}
.close-credit em { color: var(--text-2); font-style: italic; }
.exhibit-footer {
  margin-top: 3rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-3);
}
.exhibit-footer a { color: var(--text-3); }
.exhibit-footer a:hover { color: var(--accent); }

/* the tiny final easter egg */
.last-egg {
  margin-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text-3);
  opacity: 0;
  cursor: default;
  transition: opacity 1.2s;
}
.last-egg.show { opacity: 0.35; }
.last-egg:hover { opacity: 0.7; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
  .scroll-cue { animation: none; }
  .runner { transition: none; }
}
