/* ══════════════════════════════════════════════════════════
   MOTION / LESS — base styles
   Dark, specimen aesthetic. Black / white / grey.
   ══════════════════════════════════════════════════════════ */
:root{
  --bg:#0A0A0B;
  --ink:#EFEFEA;
  --dim:#8A8A82;
  --line:#26262A;
  --line2:#33333A;
  --panel:#141416;
  --accent:#EDEFF5;
  --gut:7vw;           /* one gutter value used everywhere */
  --maxw:1360px;       /* one max width used everywhere */
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion: reduce){ html{scroll-behavior:auto} }
body{
  margin:0; background:var(--bg); color:var(--ink);
  font:300 16px/1.55 "Helvetica Neue",Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased; overflow-x:hidden;
}
h1,h2,h3{font-weight:400;letter-spacing:-.02em;margin:0}
p{margin:0}
.mono{font-family:"SF Mono",Menlo,Consolas,"Courier New",monospace;
  font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--dim)}
.link{color:var(--ink);text-decoration:none;border-bottom:1px solid var(--line2);padding-bottom:1px;
  transition:border-color .2s}
.link:hover{border-color:var(--ink)}

/* ── fixed corner meta: same gutter as the content ── */
.meta{position:absolute;z-index:20;top:0;padding:22px 0;
  font-family:"SF Mono",Menlo,monospace;font-size:11px;letter-spacing:.2em;
  text-transform:uppercase;color:var(--dim);pointer-events:none}
.tl{left:var(--gut)}
.tr{right:var(--gut)}
@media(max-width:720px){.tr{display:none}}

/* ── the shared layout rail — everything lines up on this ── */
.pane{
  min-height:100vh;
  display:flex;flex-direction:column;justify-content:center;
  width:100%;max-width:var(--maxw);margin:0 auto;
  padding:120px var(--gut) 110px;
}

/* ── landing ── */
.hero h1{font-size:clamp(48px,12.5vw,158px);line-height:.86;font-weight:200;
  margin-left:-.055em}                 /* optical: pull the M back to the rail */
.hero .slash{color:var(--dim);font-weight:100}
.lede{max-width:26em;color:#C7C7C1;font-size:clamp(15px,1.8vw,19px);margin-top:34px}
.cue{margin-top:48px;transition:opacity .4s}

/* ── the intro, which has to be dismissed before anything else ── */
.intro{
  position:fixed;inset:0;z-index:100;
  background:rgba(10,10,11,.97);
  display:flex;align-items:center;justify-content:center;
  padding:var(--gut);
}
.intro[hidden]{display:none}
body.intro-open{overflow:hidden}
.intro-card{max-width:34em}
.intro-card h2{font-size:clamp(24px,3.4vw,38px);font-weight:200;line-height:1.15;margin:14px 0 26px}
.intro-card ol{margin:0 0 26px;padding-left:1.4em;color:#C7C7C1}
.intro-card li{margin-bottom:14px;font-size:clamp(14px,1.6vw,16px);line-height:1.55}
.intro-card strong{color:var(--ink);font-weight:400}
.intro-note{color:var(--dim);font-size:13.5px;line-height:1.55;margin-bottom:30px;max-width:30em}
@media (prefers-reduced-motion: no-preference){
  .intro-card{animation:introIn .5s cubic-bezier(.16,1,.3,1) both}
  @keyframes introIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
}

/* ── a movement ── */
.movement{
  flex-direction:row;align-items:center;gap:min(6vw,80px);
  border-top:1px solid var(--line);
}
.movement .stage{
  flex:1 1 58%;min-width:0;
  aspect-ratio:4/3;max-height:min(64vh,540px);
  border:1px solid var(--line);background:#070708;position:relative;
  overflow:hidden;transition:border-color .35s;
}
.movement .stage:hover{border-color:var(--line2)}
.movement .stage canvas{display:block;width:100%;height:100%}
.movement .panel{flex:1 1 34%;min-width:0;display:flex;flex-direction:column;justify-content:center}
.tag{margin:0 0 16px}
.movement h2{font-size:clamp(30px,4.4vw,52px);font-weight:200;line-height:1}
.movement .line{color:var(--dim);margin:14px 0 40px;font-size:15px;max-width:23em}
@media(max-width:820px){
  .movement{flex-direction:column;align-items:stretch;gap:30px}
  .movement .stage{aspect-ratio:1/1;max-height:52vh}
}

/* ── the dial ──
   the rail is inset so the 03 and 00 ticks + the handle sit
   fully inside the column instead of hanging off the edges  */
.dial{position:relative;user-select:none;touch-action:none;padding-top:26px}
.dial .cap,.dial .read{position:absolute;top:0;
  font-family:"SF Mono",Menlo,monospace;font-size:10px;letter-spacing:.15em;
  text-transform:uppercase;line-height:1}
.dial .cap{left:0;color:var(--dim);letter-spacing:.08em;text-transform:none;font-size:11px}
/* testers did not realise where they left the slider was the answer */
.dial-note{margin-top:26px;color:var(--dim);font-size:12.5px;line-height:1.5;max-width:26em}
.dial .read{right:0;color:var(--ink);letter-spacing:.1em;font-variant-numeric:tabular-nums}
.dial .rail{position:relative;height:46px;margin:0 13px;cursor:pointer}
.dial .track{position:absolute;top:10px;left:0;right:0;height:2px;background:var(--line2)}
.dial .fill{position:absolute;top:10px;left:0;height:2px;background:var(--dim)}
.dial .tick{position:absolute;top:4px;width:1px;height:14px;background:var(--line2)}
.dial .tick span{position:absolute;top:22px;left:50%;transform:translateX(-50%);
  font-family:"SF Mono",Menlo,monospace;font-size:10px;letter-spacing:.15em;color:var(--dim);
  transition:color .2s}
.dial .tick.on span{color:var(--ink)}
.dial .handle{position:absolute;top:-1px;width:24px;height:24px;border-radius:50%;
  background:var(--accent);cursor:grab;transform:translateX(-50%);
  box-shadow:0 0 0 6px rgba(237,239,245,.06);
  transition:box-shadow .2s,transform .12s}
.dial .handle:hover{box-shadow:0 0 0 10px rgba(237,239,245,.10)}
.dial .handle:active{cursor:grabbing}
.dial:focus-within .handle{box-shadow:0 0 0 3px var(--bg),0 0 0 5px var(--ink)}
@media (prefers-reduced-motion: reduce){ .dial .handle{transition:none} }

/* ── submit ── */
.submit h2{font-size:clamp(28px,4vw,44px);font-weight:200}
.submit .line{color:var(--dim);margin:14px 0 40px;max-width:34em}
#survey{max-width:620px}
#survey fieldset{border:0;padding:0;margin:0 0 28px}
#survey legend{margin-bottom:14px;padding:0}
#survey label{display:inline-flex;align-items:center;margin:0 22px 10px 0;
  font-size:15px;cursor:pointer;color:#C7C7C1}
/* the recall question needs its options stacked, they are full sentences */
#survey .recall{border-top:1px solid var(--line);border-bottom:1px solid var(--line);
  padding:22px 0;margin-bottom:30px}
#survey .recall legend{max-width:34em;line-height:1.45;color:var(--ink);
  font-size:13px;letter-spacing:.06em;text-transform:none}
#survey .recall label{display:flex;align-items:flex-start;margin:0 0 11px;max-width:36em}
#survey .recall input{margin-top:5px;flex:0 0 auto}
.recall-note{margin-top:14px;color:var(--dim);font-size:12.5px}
#survey input{margin:0 9px 0 0;accent-color:var(--ink)}
.btn{appearance:none;background:var(--ink);color:var(--bg);border:0;
  font:600 14px/1 "Helvetica Neue",Arial,sans-serif;letter-spacing:.02em;
  padding:15px 28px;cursor:pointer;transition:opacity .2s}
.btn:hover{opacity:.85}

/* ── reward ── */
.reward{margin-top:56px;border-top:1px solid var(--line);padding-top:38px}
.reward h3{font-size:clamp(20px,2.6vw,30px);font-weight:300;margin-bottom:26px}
.reward-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:18px;margin-bottom:26px}
.reward-card{border:1px solid var(--line);padding:20px}
.reward-card .name{font-size:17px;margin-bottom:8px}
.reward-card .stat{font-family:"SF Mono",Menlo,monospace;font-size:12px;color:var(--dim);
  font-variant-numeric:tabular-nums}
.reward .note{margin:8px 0 22px}

footer{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;
  width:100%;max-width:var(--maxw);margin:0 auto;
  padding:56px var(--gut) 110px;border-top:1px solid var(--line);color:var(--dim)}
footer a{color:var(--dim)}

/* ── scroll reveal ── */
.rv{opacity:0;transform:translateY(28px);
  transition:opacity .8s cubic-bezier(.16,1,.3,1),transform .8s cubic-bezier(.16,1,.3,1)}
.rv.in{opacity:1;transform:none}
@media (prefers-reduced-motion: reduce){ .rv{opacity:1;transform:none;transition:none} }

/* ── simple pages (findings / about) ── */
.doc{width:100%;max-width:var(--maxw);margin:0 auto;padding:120px var(--gut) 140px}
.doc h1{font-size:clamp(40px,8vw,84px);font-weight:200;margin-bottom:12px}
.doc h2{font-size:22px;font-weight:400;margin:44px 0 14px}
.doc p{color:#C7C7C1;max-width:62ch;margin:0 0 16px}
.doc .back{display:inline-block;margin-bottom:32px}
.chart{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px;margin:24px 0 12px}
.chart .col{border:1px solid var(--line);padding:20px}
.chart .bars{display:flex;align-items:flex-end;gap:8px;height:150px;margin-bottom:16px}
.chart .bars i{flex:1;background:var(--ink);min-height:4px}
.chart .cap{font-size:16px}
.chart .sub{color:var(--dim);font-family:"SF Mono",Menlo,monospace;font-size:12px;margin-top:4px}

/* ── the content that sits inside every stage ──
   the same words in all four, so the movement is the only variable.
   real HTML, not canvas text: it stays selectable and readable to a
   screen reader no matter what the dial is set to.                  */
.stage .content{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  padding:clamp(18px,6%,54px);pointer-events:none;will-change:transform;
}
/* no panel, no border, no scrim. the words are not sitting on the motion,
   they are made of it: every word is its own element that each movement
   drives directly (see prepareWords / moveWords in movements.js) */
.stage .content .inner{
  max-width:28em;padding:0;
  text-shadow:0 0 22px var(--bg), 0 0 8px var(--bg);
}
.stage .content .w{display:inline-block;will-change:transform,opacity}
/* it has to read as the content, not as a caption on a graphic. testers did not
   attempt it at all, so it is now larger, brighter and set at a proper measure. */
.stage .content h3{font-size:clamp(19px,2.5vw,28px);font-weight:300;letter-spacing:-.015em}
.stage .content p{margin-top:14px;color:var(--ink);font-size:clamp(15px,1.6vw,18px);
  line-height:1.62;max-width:24em}
@media (prefers-reduced-motion: reduce){
  .stage .content, .stage .content .w{transform:none !important;opacity:1 !important}
}

/* ── reference list ── */
.doc h3{font-size:11px;font-weight:400;margin:34px 0 14px;color:var(--dim)}
.doc .ref{padding-left:2.2em;text-indent:-2.2em;margin-bottom:12px;max-width:64ch}

/* ── findings axis ── */
.axis{display:flex;justify-content:space-between;gap:12px;margin-top:14px;color:var(--dim)}

/* the claim code for people who came from a survey exchange. they gave up
   three minutes to help; they should not have to hunt for their points. */
.exchange{border:1px solid var(--line2);background:var(--panel);
  padding:22px 24px;margin:0 0 26px}
.exchange .mono{margin-bottom:10px}
.exchange .code{font-family:"SF Mono",Menlo,Consolas,monospace;
  font-size:clamp(17px,2.4vw,23px);letter-spacing:.12em;color:var(--ink);
  margin-top:12px;user-select:all}
