Beach (Photons)

by Chantal Roth

HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width,initial-scale=1"/>
<title>The Beach of Clicks — why sudden falls don't prove the sea is made of balls</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/dat-gui/0.7.7/dat.gui.min.js"></script>
<style>
  html, body { margin: 0; height: 100%; overflow: hidden; background: #05060a;
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif; }
  #c { width: 100vw; height: 100vh; display: block; }
  #overlay {
    position: absolute; left: 14px; top: 14px; padding: 14px 16px; border-radius: 18px;
    background: rgba(5,10,18,0.50); color: #e6f2ff; font-size: 13px; line-height: 1.4;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 18px 40px rgba(0,0,0,0.35);
    max-width: min(390px, calc(100vw - 28px)); z-index: 5;
  }
  #overlay h1 { margin: 0 0 3px 0; font-size: 18px; font-weight: 800; color: #fff; }
  #overlay .sub { color: rgba(226,236,255,0.78); margin-bottom: 9px; font-size: 12px; }
  .chipRow { display: flex; flex-wrap: wrap; gap: 7px; margin: 7px 0; }
  .chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px;
    border-radius: 999px; background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10); font-size: 11.5px; }
  .swatch { width: 10px; height: 10px; border-radius: 999px; box-shadow: 0 0 12px currentColor; }
  #stepRow { display: flex; gap: 6px; margin: 9px 0 8px; }
  .stepBtn { width: 30px; height: 30px; border-radius: 9px; cursor: pointer;
    border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.06);
    color: #fff; font-weight: 700; font-size: 13px; }
  .stepBtn:hover { background: rgba(120,160,255,0.25); }
  .stepBtn.active { background: #ffd166; color: #1d1503; border-color: #ffd166; }
  #narTitle { font-weight: 800; color: #ffd166; margin: 2px 0 3px; font-size: 13px;...