:root {
  --green: #1f7a4d;
  --green-soft: #cfe8d6;
  --ink: #0a0a0b;
  --bg: #ffffff;
  --soft: #f5f5f7;
  --soft-2: #ececef;
  --line: rgba(10, 10, 11, 0.1);
  --line-strong: rgba(10, 10, 11, 0.28);
  --muted: rgba(10, 10, 11, 0.6);
  --faint: rgba(10, 10, 11, 0.42);
  --accent: #e0452f;
  --accent-soft: #fdeeea;
  --shadow: 0 18px 50px rgba(10, 10, 11, 0.08);
  --title: "Sora", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --content: 760px;
  --wide: 1120px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
video, img { display: block; max-width: 100%; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.84);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-family: var(--title);
  font-size: 15px;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand svg { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover, .nav-links a.is-current { color: var(--ink); background: var(--soft); }

/* ---------- pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.pill svg { width: 17px; height: 17px; flex: none; }
.pill:hover { border-color: var(--ink); transform: translateY(-1px); }
.pill-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill-dark:hover { background: #26262a; }
.pill[data-soon] { position: relative; }
.pill[data-soon]:hover::after {
  content: "Coming soon";
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 400;
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 92px 20px 40px; text-align: center; overflow: hidden; }
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(10, 10, 11, 0.13) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 62% 52% at 50% 26%, #000 0%, transparent 100%);
  mask-image: radial-gradient(ellipse 62% 52% at 50% 26%, #000 0%, transparent 100%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: var(--content); margin: 0 auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  margin: 0;
  font-family: var(--title);
  font-size: clamp(40px, 6.4vw, 64px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.055em;
}
.hero h1 .thin { font-weight: 300; color: var(--faint); }
/* the wordmark: a hand above "HO" tosses a ball, which lands on "Phys" and bounces away over its letters */
.wordmark { position: relative; display: inline-block; padding-top: 0.6em; white-space: nowrap; }
.wm-base { display: inline-block; width: 0; height: 0; vertical-align: baseline; }
.wm-hand { position: absolute; left: 0; top: 0; width: 0.8em; height: 0.4em; overflow: visible; fill: none; stroke: var(--faint); stroke-width: 7; stroke-linejoin: round; stroke-linecap: round; transform-origin: 95% 68%; pointer-events: none; }
.wm-ball { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; }
.wm-ball b { position: absolute; left: -0.075em; top: -0.075em; width: 0.15em; height: 0.15em; border-radius: 50%; background: var(--accent); opacity: 0; }

.subtitle {
  margin: 12px auto 0;
  max-width: 820px;
  font-family: var(--title);
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.nb { white-space: nowrap; }
.authors { margin: 20px auto 0; max-width: 700px; font-size: 16.5px; line-height: 1.7; text-wrap: balance; }
.authors .nb { margin: 0 9px; }
.authors sup, .affils sup { font-size: 0.66em; line-height: 0; color: var(--accent); font-family: var(--mono); }
.authors sup { margin-left: 2px; }
.affils { list-style: none; margin: 10px auto 0; padding: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.affils sup { margin-right: 4px; }
.affils .mail { margin-top: 4px; font-family: var(--mono); font-size: 12.5px; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }

.tag {
  position: absolute;
  left: 10px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px 4px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
}
.sym {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 11.5px;
  font-style: italic;
  line-height: 1;
}

/* ---------- showcase: a deck of two stages; on each stage the videos of one setting are stacked ---------- */
@property --r { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
.deck {
  position: relative;
  width: clamp(min(100%, 620px), calc((100vh - 366px) * 832 / 480), min(100%, 1180px));
  aspect-ratio: 832 / 480;
  margin: 28px auto 34px;
  text-align: left;
}
.card { position: absolute; inset: 0; border-radius: 22px; transform-origin: 50% 100%; }
.card.is-front { z-index: 2; }
.card.is-back { z-index: 1; transform: translateY(26px) scale(0.93); cursor: pointer; }
.card.is-back .stage { pointer-events: none; }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(245, 245, 247, 0.55); opacity: 0; pointer-events: none; transition: opacity 0.5s ease; }
.card.is-back::after { opacity: 1; }
.card.is-back:hover::after { opacity: 0.3; }
.card.anim-out { animation: card-out 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.card.anim-in { animation: card-in 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes card-out {
  0% { transform: none; z-index: 3; }
  45% { transform: translate(40%, 1%) rotate(5deg) scale(0.95); z-index: 3; }
  55% { transform: translate(36%, 2%) rotate(4deg) scale(0.945); z-index: 1; }
  100% { transform: translateY(26px) scale(0.93); z-index: 1; }
}
@keyframes card-in { from { transform: translateY(26px) scale(0.93); } to { transform: none; } }

.stage {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  overflow: hidden;
  background: var(--soft-2);
  box-shadow: 0 30px 70px -20px rgba(10, 10, 11, 0.3), 0 0 0 1px var(--line);
  isolation: isolate;
}
.layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.layer.is-active { opacity: 1; z-index: 1; }
.layer.is-entering {
  opacity: 1;
  z-index: 2;
  -webkit-mask-image: radial-gradient(circle at var(--x, 50%) var(--y, 50%), #000 calc(var(--r) - 22%), transparent var(--r));
  mask-image: radial-gradient(circle at var(--x, 50%) var(--y, 50%), #000 calc(var(--r) - 22%), transparent var(--r));
  animation: reveal 0.95s cubic-bezier(0.3, 0.7, 0.2, 1) forwards;
}
@keyframes reveal { from { --r: 0%; } to { --r: 150%; } }
.ripple {
  position: absolute;
  z-index: 3;
  left: var(--x);
  top: var(--y);
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 2px solid #fff;
  border-radius: 50%;
  pointer-events: none;
  animation: ripple 0.95s cubic-bezier(0.3, 0.7, 0.2, 1) forwards;
}
@keyframes ripple { from { transform: scale(0.2); opacity: 0.9; } to { transform: scale(34); opacity: 0; } }

/* the controls stay out of the picture until the pointer is on the stage */
.chrome { opacity: 0; transition: opacity 0.35s ease, transform 0.35s ease; }
.card.is-front .stage:hover .chrome, .card.is-front .stage:focus-within .chrome, .card.is-front .stage.is-hint .chrome { opacity: 1; }
@media (hover: none) { .card.is-front .chrome { opacity: 1; } }
.progress { position: absolute; z-index: 4; left: 0; bottom: 0; height: 3px; width: var(--p, 0%); background: var(--accent); }
.transport.mini { position: absolute; z-index: 4; left: 14px; top: 12px; margin: 0; }
.transport.mini > :not(.play) { display: none; }
.transport.mini .play { width: 34px; height: 34px; background: rgba(255, 255, 255, 0.88); color: var(--ink); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.transport.mini .play svg { width: 13px; height: 13px; }

.dock {
  position: absolute;
  z-index: 4;
  right: 16px;
  top: 50%;
  transform: translate(10px, -50%);
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 12px 34px rgba(10, 10, 11, 0.18);
}
.card.is-front .stage:hover .dock, .card.is-front .stage:focus-within .dock, .card.is-front .stage.is-hint .dock { transform: translate(0, -50%); }

/* the rose: the grip slides down a drawn stem, flower up as in the video */
.grip { position: relative; width: 92px; height: 236px; }
.grip svg { position: absolute; inset: 0; width: 92px; height: 236px; overflow: visible; }
.grip-hand {
  position: absolute;
  left: 9px;
  top: var(--gy);
  width: 30px;
  height: 30px;
  margin-top: -15px;
  pointer-events: none;
  transition: top 0.6s cubic-bezier(0.34, 1.45, 0.5, 1);
}
.grip .grip-hand svg { position: absolute; inset: 0; width: 30px; height: 30px; fill: #fff; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; paint-order: stroke; overflow: visible; filter: drop-shadow(0 3px 5px rgba(10, 10, 11, 0.28)); }
.grip-stop.is-active i { opacity: 0; }
.grip-stop { position: absolute; left: 0; width: 92px; height: 48px; margin-top: -24px; padding: 0; border: 0; border-radius: 12px; background: none; }
.grip-stop i { position: absolute; left: 19px; top: 19px; width: 10px; height: 10px; border: 2px solid var(--ink); border-radius: 50%; background: #fff; transition: transform 0.2s ease, opacity 0.25s ease; }
.grip-stop:hover i { transform: scale(1.35); }
.grip-stop b { position: absolute; left: 46px; top: 15px; color: var(--muted); font-family: var(--mono); font-size: 11.5px; font-weight: 400; white-space: nowrap; transition: color 0.2s ease; }
.grip-stop.is-active b { color: var(--ink); font-weight: 500; }

/* generic choice: options with a thumb that slides between them */
.choice { position: relative; display: flex; flex-direction: column; padding: 4px; border-radius: 14px; background: rgba(10, 10, 11, 0.06); }
.choice-thumb { position: absolute; top: 0; left: 0; width: var(--w); height: var(--h); border-radius: 11px; background: #fff; box-shadow: 0 2px 8px rgba(10, 10, 11, 0.16); transform: translate(var(--tx), var(--ty)); transition: transform 0.5s cubic-bezier(0.34, 1.3, 0.5, 1), width 0.3s ease; }
.choice button { position: relative; display: flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 14px 0 6px; border: 0; background: none; color: var(--muted); font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: color 0.2s ease; }
.choice button.is-active, .choice button:hover { color: var(--ink); }
.choice svg { width: 44px; height: 30px; flex: none; }
.choice .arrow { stroke: var(--faint); transition: stroke 0.2s ease; }
.choice .is-active .arrow { stroke: var(--accent); }

.deck-foot { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 14px 32px; width: clamp(min(100%, 620px), calc((100vh - 366px) * 832 / 480), min(100%, 1180px)); margin: 0 auto; padding: 0 4px; text-align: left; }
#deck-pager { grid-column: 1 / -1; justify-self: center; }
.show-blurb { margin: 0; max-width: 680px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.link { display: inline-flex; align-items: center; gap: 6px; margin-top: 1px; font-size: 14.5px; font-weight: 500; text-decoration: none; white-space: nowrap; border-bottom: 1px solid transparent; transition: border-color 0.15s ease; }
.link:hover { border-bottom-color: var(--ink); }
.link svg { width: 16px; height: 16px; }

/* ---------- sections ---------- */
.section { max-width: var(--wide); margin: 0 auto; padding: 84px 20px; }
.section.narrow { max-width: calc(var(--content) + 40px); }
.section.band {
  max-width: none;
  background: var(--soft);
  border-block: 1px solid var(--line);
  padding-inline: max(20px, calc((100vw - var(--wide)) / 2 + 20px));
}
.section-head { max-width: var(--content); margin-bottom: 30px; }
.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.idx { color: var(--accent); }
h2 {
  margin: 0;
  font-family: var(--title);
  font-size: clamp(27px, 4vw, 38px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.lede { margin: 14px 0 0; color: var(--muted); font-size: 16.5px; }
.lead { margin: 0 0 16px; font-family: var(--title); font-size: clamp(20px, 2.8vw, 25px); font-weight: 300; line-height: 1.4; letter-spacing: -0.02em; }
#abstract p:not(.kicker):not(.lead) { margin: 0; color: rgba(10, 10, 11, 0.78); }

/* ---------- segmented controls ---------- */
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 15px 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.seg button .sym { background: var(--soft-2); color: var(--ink); width: 23px; height: 23px; font-size: 12.5px; transition: inherit; }
.seg button:hover { color: var(--ink); border-color: var(--line-strong); }
.seg button.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg button.is-active .sym { background: var(--accent); color: #fff; }
.seg-small { gap: 0; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg-small::-webkit-scrollbar { display: none; }
.seg-small button { min-height: 30px; padding: 0 13px; border: 0; background: transparent; font-size: 13.5px; }
.seg-small:empty, .is-hidden { display: none !important; }

/* ---------- results panel ---------- */
.panel {
  margin-top: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg);
  box-shadow: var(--shadow);
}
.panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.panel-head h3 { margin: 0; font-family: var(--title); font-size: 21px; font-weight: 500; letter-spacing: -0.025em; }
.panel-head p { margin: 6px 0 0; max-width: 640px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.panel-opts { display: flex; flex: none; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.triptych { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}
.frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--soft-2);
  aspect-ratio: var(--ar, 832 / 480);
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow 0.18s ease;
}
.frame video { width: 100%; height: 100%; object-fit: cover; }
.tile:hover .frame { box-shadow: 0 0 0 1px var(--line-strong); }
.tile.is-active .frame { box-shadow: 0 0 0 2px var(--ink); }
.tile .meta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 11px 2px 0; }
.tile .value { font-family: var(--title); font-size: 16px; font-weight: 500; letter-spacing: -0.02em; }
.tile .outcome { color: var(--muted); font-size: 13.5px; text-align: right; }
.tile.is-active .outcome { color: var(--accent); }

.panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.panel-foot p { margin: 0; color: var(--muted); font-size: 14.5px; }
.panel-foot strong { color: var(--ink); font-weight: 500; }

/* ---------- transport ---------- */
.transport { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.play {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  transition: transform 0.15s ease;
}
.play:hover { transform: scale(1.06); }
.play svg { width: 15px; height: 15px; fill: currentColor; }
.play .i-play, .play.is-paused .i-pause { display: none; }
.play.is-paused .i-play { display: block; }
.scrub {
  flex: 1;
  min-width: 0;
  height: 22px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.scrub::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--ink) var(--p, 0%), var(--soft-2) var(--p, 0%)); }
.scrub::-moz-range-track { height: 4px; border-radius: 2px; background: var(--soft-2); }
.scrub::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--ink); }
.scrub::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border: 2px solid #fff; border-radius: 50%; background: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
.scrub::-moz-range-thumb { width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; background: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
.band .scrub::-webkit-slider-runnable-track { background: linear-gradient(to right, var(--ink) var(--p, 0%), rgba(10, 10, 11, 0.12) var(--p, 0%)); }
.time { flex: none; min-width: 92px; color: var(--muted); font-family: var(--mono); font-size: 12.5px; text-align: right; font-variant-numeric: tabular-nums; }

/* the room: one small picture per room with a frame that slides to the chosen one */
.scenes { position: relative; display: inline-flex; gap: 2px; padding: 4px; border-radius: 16px; background: var(--soft); max-width: 100%; }
.scene-thumb { position: absolute; top: 4px; bottom: 4px; left: 0; width: var(--w, 0); border-radius: 12px; background: #fff; box-shadow: 0 2px 10px rgba(10, 10, 11, 0.14), 0 0 0 1px rgba(10, 10, 11, 0.06); transform: translateX(var(--tx, 0)); transition: transform 0.5s cubic-bezier(0.34, 1.3, 0.5, 1), width 0.3s ease; }
.scenes button { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; min-width: 0; padding: 5px 13px 5px 5px; border: 0; border-radius: 12px; background: none; color: var(--muted); font-size: 13px; font-weight: 500; white-space: nowrap; transition: color 0.2s ease; }
.scenes button img { width: 50px; height: 32px; flex: none; border-radius: 8px; object-fit: cover; background: var(--soft-2); filter: saturate(0.85); opacity: 0.8; transition: opacity 0.25s ease, filter 0.25s ease, transform 0.35s cubic-bezier(0.34, 1.4, 0.5, 1); }
.scenes button[hidden] { display: none; }
.scene-bar:has(.scenes.is-hidden) { display: none; }
.scenes button:hover { color: var(--ink); }
.scenes button:hover img { opacity: 1; transform: scale(1.05); }
.scenes button.is-active { color: var(--ink); }
.scenes button.is-active img { opacity: 1; filter: none; }
.scene-bar { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 2px 0 22px; }
.scenes.on-stage { position: absolute; z-index: 4; left: 50%; bottom: 16px; transform: translate(-50%, 8px); border: 1px solid rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.74); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); box-shadow: 0 12px 34px rgba(10, 10, 11, 0.18); }
.scenes.on-stage .scene-thumb { box-shadow: 0 2px 8px rgba(10, 10, 11, 0.16); }
.card.is-front .stage:hover .scenes.on-stage, .card.is-front .stage:focus-within .scenes.on-stage, .card.is-front .stage.is-hint .scenes.on-stage { transform: translate(-50%, 0); }
.card.is-back .scenes.on-stage { pointer-events: none; }
.stage .layer { transition: filter 0.26s ease; }
.stage.is-swapping .layer { filter: blur(14px) brightness(1.06); }
@media (max-width: 640px) {
  .scenes button { padding: 4px; }
  .scenes button span { display: none; }
  .scenes button img { width: 46px; height: 30px; }
  .scenes.on-stage { bottom: 10px; }
  .scenes.on-stage button img { width: 38px; height: 25px; }
}

/* one row per model, one column per value */
.matrix { display: grid; grid-template-columns: 138px repeat(var(--n, 3), minmax(0, 1fr)); gap: 10px 12px; align-items: center; }
.m-head { padding: 0 2px 4px; }
.m-head b { display: block; font-family: var(--title); font-size: 16px; font-weight: 500; letter-spacing: -0.02em; }
.m-head span { display: block; color: var(--accent); font-size: 13px; }
.m-label { font-size: 13.5px; font-weight: 500; line-height: 1.3; color: var(--muted); }
.m-label.is-ours { display: flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 600; }
.m-label small { display: block; color: var(--faint); font-size: 12px; font-weight: 400; }
.matrix .frame.is-ours { box-shadow: 0 0 0 2px var(--ink); }
.matrix.is-portrait { grid-template-columns: 138px repeat(var(--n, 3), minmax(0, 190px)); justify-content: center; }
.m-rule { grid-column: 1 / -1; height: 1px; margin: 6px 0; background: var(--line); }

/* ---------- comparison ---------- */
.c-controls { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 18px 0 22px; }
.c-control { display: flex; align-items: center; gap: 12px; min-width: 0; }
.c-label { flex: none; color: var(--muted); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.07em; text-transform: uppercase; }
.cgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cgrid .frame { box-shadow: 0 0 0 1px var(--line); }
.cgrid .frame.is-ours { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; min-height: 100%; box-shadow: 0 0 0 2px var(--ink), var(--shadow); }
.tag { padding: 4px 11px; }
.is-ours .tag { background: var(--ink); color: #fff; padding-left: 9px; }
.is-ours .tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.frame.is-missing { display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--soft-2) 0 10px, #e4e4e8 10px 20px); }
.frame.is-missing p { margin: 0; color: var(--muted); font-size: 13px; }
.target { margin: 16px 0 0; color: var(--muted); font-size: 14.5px; }
.target strong { color: var(--ink); font-weight: 500; }
.target .chip { display: inline-block; margin-right: 8px; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 500; }

/* ---------- method ---------- */
.fig { margin: 0; }
.fig img { width: 100%; height: auto; }
.fig-wide { padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.fig-wide img { max-width: 1000px; margin: 0 auto; }

.fig-narrow img { max-width: 420px; margin: 0 auto; }
.fig-map { position: relative; max-width: 1000px; margin: 0 auto; }
.fig-map img { max-width: none; width: 100%; }
.hint { display: flex; align-items: center; gap: 10px; }
/* marks on the figure: a small tinted disc in the colour of its module, on a blank spot, see-through so nothing is hidden */
.fig-map { container-type: inline-size; }
.spot, .spot-demo { display: grid; place-items: center; padding: 0; border: 1.5px solid var(--c); border-radius: 50%; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
.spot-demo { flex: none; width: 20px; height: 20px; }
.spot svg, .spot-demo svg { width: 55%; height: 55%; transition: transform 0.3s cubic-bezier(0.3, 1.4, 0.5, 1); }
.spot { position: absolute; z-index: 2; left: var(--x); top: var(--y); width: clamp(13px, 2.1cqw, 21px); height: clamp(13px, 2.1cqw, 21px); transform: translate(-50%, -50%); transition: background 0.2s ease, color 0.2s ease; }
.spot::after { content: ""; position: absolute; inset: -1.5px; border-radius: 50%; border: 1.5px solid var(--c); animation: halo 2.8s cubic-bezier(0.2, 0.6, 0.3, 1) infinite; pointer-events: none; }
.spot:nth-of-type(2)::after { animation-delay: 0.55s; } .spot:nth-of-type(3)::after { animation-delay: 1.1s; } .spot:nth-of-type(4)::after { animation-delay: 1.65s; } .spot:nth-of-type(5)::after { animation-delay: 2.2s; }
@keyframes halo { from { transform: scale(1); opacity: 0.5; } to { transform: scale(2.1); opacity: 0; } }
.spot:hover, .spot.is-open { background: var(--c); color: #fff; }
.spot.is-open svg { transform: rotate(45deg); }
.spot.is-open::after { animation: none; opacity: 0; }
.pop { position: absolute; z-index: 3; left: var(--px); top: var(--py); width: min(340px, calc(100% - 16px)); padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.97); box-shadow: 0 24px 60px rgba(10, 10, 11, 0.24); text-align: left; animation: pop 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); transform-origin: var(--ox, 50%) 0; }
.pop.is-above { transform-origin: var(--ox, 50%) 100%; }
.pop-wide { width: min(460px, calc(100% - 16px)); }
@keyframes pop { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
.pop-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pop-pair figure { margin: 0; }
.pop-pair video { width: 100%; aspect-ratio: 832 / 480; border-radius: 10px; background: var(--soft-2); object-fit: cover; }
.pop-pair figcaption { margin-top: 5px; color: var(--muted); font-size: 12px; text-align: center; }
.pop-title { margin: 0 0 10px; font-family: var(--title); font-size: 15.5px; font-weight: 500; letter-spacing: -0.02em; }
.pop img { width: 100%; height: auto; }
.pop-note { margin: 8px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.pop .defs dt { margin-top: 10px; font-size: 13.5px; }
.pop .defs dt:first-child { margin-top: 0; }
.pop .defs dd { font-size: 13px; line-height: 1.55; }

.mod { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 56px; align-items: start; }
.mod-text > p { margin: 0 0 14px; color: rgba(10, 10, 11, 0.78); font-size: 15.5px; }
.mod i { font-family: Georgia, "Times New Roman", serif; font-size: 1.05em; }
.defs { margin: 0; }
.defs dt { margin-top: 16px; font-size: 14.5px; font-weight: 600; }
.defs dd { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.defs em { color: var(--ink); font-style: normal; font-weight: 500; }
.eq { margin: 18px 0 !important; padding: 14px 18px; border-radius: 12px; background: var(--soft); color: var(--ink) !important; font-family: var(--title); font-size: 16px !important; text-align: center; }

/* the method on one example: four stages to click, everything on the clock of the video */
.lab { margin-top: 26px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.lab-tabs { display: grid; grid-template-columns: repeat(3, 1fr) 1.6fr; border-bottom: 1px solid var(--line); background: var(--soft); }
.lab-tabs button { position: relative; display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 0 20px; border: 0; border-right: 1px solid var(--line); background: none; color: var(--muted); font-family: var(--title); font-size: 15.5px; letter-spacing: -0.02em; text-align: left; transition: color 0.2s ease, background 0.2s ease; }
.lab-tabs button:last-child { border-right: 0; }
.lab-tabs button span { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--soft-2); font-family: var(--mono); font-size: 11.5px; transition: inherit; }
.lab-tabs button:hover { color: var(--ink); }
.lab-tabs button.is-active { background: #fff; color: var(--ink); }
.lab-tabs button.is-active span { background: var(--accent); color: #fff; }
.lab-tabs button.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: #fff; }
.lab-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 30px; padding: 26px; align-items: start; }
.lab-view { grid-column: 2; grid-row: 1; }
/* supp.html: the video on top, the four stages below it two by two */
.lab-grid .lab-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; padding: 0; align-items: stretch; }
.lab-grid .lab-view { grid-column: 1 / -1; grid-row: auto; width: 100%; max-width: 780px; margin: 0 auto; padding: 28px 26px 24px; }
.lab-grid .lab-panel { display: block; padding: 24px 26px 26px; border-top: 1px solid var(--line); animation: none; }
.lab-grid .lab-panel:nth-of-type(even) { border-right: 1px solid var(--line); }
.lab-title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-family: var(--title); font-size: 16.5px; font-weight: 500; letter-spacing: -0.02em; }
.lab-title span { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0; }
.lab-view .frame { box-shadow: 0 0 0 1px var(--line); margin-bottom: 18px; }
.lab-view .transport { margin-top: 6px; }
.lab-panel { display: none; }
.lab-panel.is-active { display: block; animation: panel 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes panel { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.lab-lead { margin: 0 0 16px; color: rgba(10, 10, 11, 0.78); font-size: 15px; line-height: 1.6; }
.rows { margin: 0; }
.rows div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.5; }
.rows dt { color: var(--muted); }
.rows dd { margin: 0; }
.rows b { font-weight: 600; }
.rows .is-live b { color: var(--accent); font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.rows.is-mono dt { font-family: var(--mono); font-size: 12.5px; }
.lab-canvas { display: block; width: 100%; height: auto; margin-bottom: 14px; border-radius: var(--radius); background: var(--soft); }
.lab-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lab-pair figure { margin: 0; }
.lab-pair img, .lab-pair video { width: 100%; height: 100%; object-fit: cover; }
.lab-pair figcaption { margin-top: 7px; color: var(--muted); font-size: 12.5px; text-align: center; }
.lab-prompt { position: relative; height: 180px; margin-top: 14px; padding: 36px 16px 12px; border-radius: 12px; background: var(--soft); overflow: hidden; font-family: var(--mono); font-size: 12px; line-height: 1.65; }
.lab-prompt::before { content: "Prompt P, sentence by sentence"; position: absolute; z-index: 1; inset: 0 0 auto 0; padding: 12px 16px 8px; background: var(--soft); color: var(--ink); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.lab-prompt ol { margin: 0; padding: 0; list-style: none; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.lab-prompt li { padding: 4px 0; color: var(--faint); transition: color 0.3s ease; }
.lab-prompt li time { margin-right: 8px; color: inherit; }
.lab-prompt li.is-now { color: var(--ink); }
.lab-prompt li.is-now time { color: var(--accent); }

/* the phases of the physics program on one time axis; --p is the position of the playhead */
.phases { position: relative; display: flex; gap: 3px; padding-bottom: 22px; }
.phases span { position: relative; flex: var(--w) 0 0; min-width: 0; height: 22px; border-radius: 6px; background: var(--soft-2); transition: background 0.25s ease; }
.phases span.is-now { background: var(--ink); }
.phases span i { position: absolute; left: 0; top: 26px; color: var(--muted); font-family: var(--mono); font-size: 10.5px; font-style: normal; white-space: nowrap; opacity: 0; transition: opacity 0.25s ease; }
.phases span:first-child i, .phases span.is-now i { opacity: 1; }
.phases span.is-now i { color: var(--ink); font-weight: 500; }
.phases span.is-now ~ span:first-child i, .phases:has(span.is-now:not(:first-child)) span:first-child i { opacity: 0; }
.phases::after { content: ""; position: absolute; top: -4px; left: var(--p, 0%); width: 2px; height: 30px; margin-left: -1px; border-radius: 1px; background: var(--accent); }

/* sections rise into place when they scroll into view */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.steps .n { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.steps h3 { margin: 10px 0 8px; font-family: var(--title); font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
.steps p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ---------- numbers: the two tables as slides ---------- */
.slides { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -20px; padding: 14px 20px 44px; scroll-padding-inline: 20px; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 min(100%, 1000px); scroll-snap-align: start; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 10px 26px rgba(10, 10, 11, 0.07); }
.slide header { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: baseline; margin-bottom: 20px; }
.slide h3 { margin: 0; font-family: var(--title); font-size: 23px; font-weight: 400; letter-spacing: -0.03em; }
.slide header p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.slide header b { color: var(--ink); font-weight: 500; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; min-width: 760px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl th { padding: 8px 8px 9px; color: var(--muted); font-size: 12.5px; font-weight: 500; text-align: left; white-space: nowrap; }
.tbl thead tr:last-child th { border-bottom: 1px solid var(--ink); }
.tbl th.grp { padding-bottom: 2px; color: var(--ink); font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.tbl th.grp span { display: block; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 9px 8px; border-bottom: 1px solid var(--line); font-size: 14px; }
.tbl td:first-child, .tbl th:first-child { padding-left: 0; white-space: nowrap; }
.tbl td:first-child { font-weight: 500; }
.tbl tr.is-ours td { border-bottom: 0; border-top: 1px solid var(--ink); }
.tbl tr.is-ours td:first-child { font-weight: 600; }
.tbl tr.is-ours .dot { display: inline-block; margin-right: 7px; vertical-align: middle; background: var(--green); }
.tbl tr:has(+ tr.is-ours) td { border-bottom: 0; }
.tbl tr.gap td { border-bottom-color: var(--line-strong); }
/* a number over a bar of its size; the bars grow when the slide is seen */
.cell { position: relative; display: block; padding: 3px 7px; border-radius: 6px; overflow: hidden; isolation: isolate; }
.cell::before { content: ""; position: absolute; z-index: -1; inset: 0 auto 0 0; width: calc(var(--v) * 100%); border-radius: 6px; background: var(--soft-2); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--delay, 0s); }
.slide.in .cell::before { transform: none; }
.cell.is-second::before { background: #d9d9de; }
.cell.is-best { font-weight: 600; }
.is-ours .cell::before { background: var(--green-soft); }
.is-ours .cell { color: #0f4a2d; }
/* preference tables: every quantity column equally wide; a bar is gray up to 50 % and green only beyond it */
.pct { table-layout: fixed; }
.pct th:first-child { width: 152px; }
.pct .cell::before { background: linear-gradient(to right, var(--soft-2) 0, var(--soft-2) calc(50% / var(--v)), var(--green-soft) calc(50% / var(--v)), var(--green-soft) 100%); }
.pct td { position: relative; }
.pct td:not(:first-child)::after { content: ""; position: absolute; top: 5px; bottom: 5px; left: calc(8px + (100% - 16px) / 2); width: 1px; background: var(--line-strong); }
.tbl-name { margin: 18px 0 2px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--green); }
.tbl-name span { margin-left: 12px; color: var(--muted); font-family: var(--body); font-size: 13.5px; letter-spacing: 0; text-transform: none; }
.cam-canvas { display: block; width: 100%; height: auto; border-radius: 10px; background: var(--soft); }
.duo { position: relative; display: grid; gap: 3px; min-width: 84px; }
.duo::after { content: ""; position: absolute; top: -2px; bottom: -2px; left: 50%; width: 1px; background: var(--line-strong); }
.duo .cell { padding: 1px 7px; font-size: 13px; }
.duo .cell:first-child { font-weight: 600; }
.duo .cell:first-child::before { background: color-mix(in srgb, var(--accent) 26%, #fff); }
.legend { display: flex; align-items: center; gap: 6px; margin: 16px 0 0; color: var(--muted); font-size: 12.5px; }
.key { display: inline-block; width: 22px; height: 10px; margin-left: 12px; border-radius: 4px; background: var(--soft-2); }
.key:first-child { margin-left: 0; }
.key-a { background: color-mix(in srgb, var(--accent) 26%, #fff); }
.key-50 { width: 1px; height: 14px; border-radius: 0; background: var(--line-strong); }
.slider-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: -14px; }
.slider-nav > button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: #fff; transition: border-color 0.15s ease, opacity 0.15s ease; }
.slider-nav > button:hover { border-color: var(--ink); }
.slider-nav > button:disabled { opacity: 0.3; cursor: default; }
.slider-nav svg { width: 18px; height: 18px; }

/* ---------- footer ---------- */
.footer { display: flex; justify-content: space-between; gap: 16px; max-width: var(--wide); margin: 0 auto; padding: 26px 20px 40px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13.5px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .deck, .deck-foot { width: 100%; }
  .deck { margin-bottom: 124px; }
  .card, .stage { border-radius: 16px; }
  .stage { overflow: visible; }
  .stage .layer { border-radius: 16px; }
  .card.is-back .dock { display: none; }
  .card.is-front .chrome { opacity: 1; }
  .dock { top: calc(100% + 34px); right: auto; left: 50%; transform: translateX(-50%) !important; padding: 6px; background: var(--soft); border-color: var(--line); box-shadow: none; }
  .dock:has(.grip) { width: 252px; height: 84px; }
  .grip { position: absolute; left: 50%; top: 50%; margin: -118px 0 0 -46px; transform: rotate(-90deg); }
  .grip-stop b { left: 34px; top: 14px; transform: rotate(90deg); transform-origin: 0 50%; margin-left: 12px; }
  .choice { flex-direction: row; }
  .choice button { flex-direction: column; gap: 0; padding: 4px 10px 6px; font-size: 12.5px; }
  .deck-foot { grid-template-columns: 1fr; }
  .hero { padding-top: 108px; }
  .section { padding-block: 60px; }
  .panel { padding: 16px; border-radius: 18px; }
  .panel-head { flex-direction: column; align-items: flex-start; }
  .matrix { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 6px; }
  .matrix .m-corner { display: none; }
  .m-label { grid-column: 1 / -1; margin-top: 8px; }
  .m-head b { font-size: 13.5px; } .m-head span { font-size: 11.5px; }
  .matrix.is-portrait { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
  .mod { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .fig-wide { padding: 12px; }
  .slide { padding: 18px; }
  .slide header { grid-template-columns: 1fr; gap: 8px; }
  .lab-tabs { grid-template-columns: 1fr 1fr; }
  .lab-tabs button { min-height: 50px; padding: 0 12px; font-size: 13.5px; border-bottom: 1px solid var(--line); }
  .lab-body { grid-template-columns: minmax(0, 1fr); padding: 14px; gap: 20px; }
  .lab-view { grid-column: auto; grid-row: auto; }
  .lab-grid .lab-body { grid-template-columns: minmax(0, 1fr); }
  .lab-grid .lab-view { padding: 16px 14px; }
  .lab-grid .lab-panel { padding: 18px 14px; border-right: 0; }
  .rows div { grid-template-columns: 1fr; gap: 2px; }
  .panel-foot { flex-direction: column; align-items: flex-start; }
  .cgrid { grid-template-columns: repeat(2, 1fr); }
  .c-control { flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; }
}
@media (max-width: 520px) {
  .slides { margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
  .nav { padding-inline: 16px; }
  .hero, .section, .footer { padding-inline: 16px; }
  .time { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .layer.is-entering, .ripple, .card.anim-in, .card.anim-out { animation-duration: 0.01s; }
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
