/* ORAV project page — v5: zoetrope cover, centered editorial body */

:root {
  --paper: #fbfbf9;
  --tint: #f3f3ef;
  --paper-2: #f0f1ed;
  --paper-3: #e7e9e4;
  --white: #fff;
  --ink: #121417;
  --ink-2: #3a4047;
  --ink-3: #676f78;
  --ink-4: #99a0a7;
  --rule: #e3e5e0;
  --rule-2: #cfd3cd;

  --img: #2f9fc6;
  --vid: #d4637d;
  --aud: #c99a2e;
  --out: #3aa27a;

  --night: #0c0e11;
  --night-2: #14171b;
  --night-3: #1d2126;
  --on-night: rgba(255, 255, 255, 0.92);
  --on-night-2: rgba(255, 255, 255, 0.64);
  --on-night-3: rgba(255, 255, 255, 0.42);
  --night-rule: rgba(255, 255, 255, 0.1);

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --mh: 60px;
  --pad: clamp(24px, 4vw, 56px);
  --max: clamp(1200px, 72vw, 1440px);
  --text: 720px;
  --block: clamp(56px, 6vw, 84px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

.hero,
.sec--dark {
  --img: #6cc6e6;
  --vid: #f190a5;
  --aud: #ecc263;
}

/* ------------------------------------------------------------------ base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--mh);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

::selection {
  background: rgba(47, 159, 198, 0.2);
}

:focus-visible {
  outline: 1.5px solid currentColor;
  outline-offset: 3px;
  border-radius: 3px;
}

sup {
  position: relative;
  top: -0.5em;
  font-size: 0.68em;
  line-height: 0;
  vertical-align: baseline;
  letter-spacing: 0.02em;
}

abbr[title] {
  text-decoration: none;
  cursor: help;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.i {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mark {
  width: 26px;
  height: 14px;
  flex: none;
  overflow: visible;
  color: var(--ink);
}

.eyebrow {
  margin: 0;
  font: 500 11px/1.3 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.combo {
  font: 400 0.84em/1 var(--mono);
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ------------------------------------------------------------------ masthead */

.masthead {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--mh);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(18px, 2.4vw, 34px);
  pointer-events: none;
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.masthead > * {
  pointer-events: auto;
}

.mh-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 14px/1 var(--sans);
  letter-spacing: 0.06em;
  color: #fff;
  transition: color 0.35s var(--ease);
}

.mh-brand .mark {
  color: currentColor;
}

.mh-name {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.mh-nav {
  display: flex;
  gap: clamp(16px, 2vw, 30px);
  font: 450 13.5px/1 var(--sans);
  color: rgba(255, 255, 255, 0.66);
}

.mh-nav a {
  position: relative;
  padding: 8px 0;
  transition: color 0.2s var(--ease);
}

.mh-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.mh-nav a:hover {
  color: #fff;
}

.mh-nav a:hover::after,
.mh-nav a.is-active::after {
  transform: scaleX(1);
}

.masthead.is-solid {
  background: rgba(251, 251, 249, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  box-shadow: 0 1px 0 var(--rule);
}

.masthead.is-solid .mh-brand {
  color: var(--ink);
}

.masthead.is-solid .mh-name {
  opacity: 1;
  transform: none;
}

.masthead.is-solid .mh-nav {
  color: var(--ink-3);
}

.masthead.is-solid .mh-nav a:hover,
.masthead.is-solid .mh-nav a.is-active {
  color: var(--ink);
}

.masthead.is-solid.is-ink {
  background: rgba(16, 18, 21, 0.82);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07);
}

.masthead.is-solid.is-ink .mh-brand {
  color: #f1f1ec;
}

.masthead.is-solid.is-ink .mh-nav {
  color: rgba(255, 255, 255, 0.5);
}

.masthead.is-solid.is-ink .mh-nav a:hover,
.masthead.is-solid.is-ink .mh-nav a.is-active {
  color: #fff;
}

/* ------------------------------------------------------------------ hero: zoetrope cover */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  background: #08090b;
  color: #fff;
  isolation: isolate;
}

.drum-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.drum-stage.is-dragging {
  cursor: grabbing;
}

.drum {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  perspective: 1150px;
}

/* Each reel is its own 3D context: reels never overlap on screen, and a shared context
   makes the compositor split frames against other reels' planes. */
.reel {
  position: absolute;
  left: 0;
  top: 0;
  transform-style: preserve-3d;
}

.frame {
  position: absolute;
  left: -320px;
  top: -180px;
  width: 640px;
  height: 360px;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #15171b;
  opacity: 0;
  transition: opacity 0.9s var(--ease-out);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.frame.is-shown {
  opacity: 1;
}

.frame.is-away {
  visibility: hidden;
}

.frame video,
.frame-poster {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The poster layer covers the <video> until it has presented a real frame. */
.frame-poster {
  transition: opacity 0.6s var(--ease);
}

.frame.is-live .frame-poster {
  opacity: 0;
}

.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(0deg, rgba(6, 7, 9, 0.6) 0, rgba(6, 7, 9, 0) 32%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.07);
  transition: background-color 0.4s var(--ease), box-shadow 0.3s var(--ease);
  pointer-events: none;
}

.drum:has(.frame:hover) .frame:not(:hover)::after {
  background-color: rgba(6, 7, 9, 0.38);
}

.frame:hover::after {
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.82);
}

.frame.is-link {
  cursor: pointer;
}

.frame-cap {
  position: absolute;
  z-index: 1;
  left: 22px;
  right: 22px;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font: 400 19px/1 var(--mono);
  color: rgba(255, 255, 255, 0.8);
  pointer-events: none;
}

.frame-dots {
  display: flex;
  gap: 9px;
}

.frame-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--m);
}

.hero-dof {
  position: absolute;
  z-index: 1;
  inset: 8% 14%;
  pointer-events: none;
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-mask-image: radial-gradient(closest-side, #000 0, #000 46%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 0, #000 46%, transparent 100%);
}

.hero-veil {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(40% 46% at 50% 50%, rgba(8, 9, 11, 0.72) 0, rgba(8, 9, 11, 0.5) 52%, rgba(8, 9, 11, 0) 100%),
    linear-gradient(180deg, rgba(8, 9, 11, 0.82) 0, rgba(8, 9, 11, 0.3) 9%, rgba(8, 9, 11, 0) 17%, rgba(8, 9, 11, 0) 80%, rgba(8, 9, 11, 0.8) 100%),
    linear-gradient(90deg, rgba(8, 9, 11, 0.62) 0, rgba(8, 9, 11, 0) 13%, rgba(8, 9, 11, 0) 87%, rgba(8, 9, 11, 0.62) 100%);
}

.hero-content {
  position: absolute;
  z-index: 2;
  inset: var(--mh) 0 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  text-align: center;
  pointer-events: none;
}

.hero-content a {
  pointer-events: auto;
}

.js .hero-content > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1s var(--ease-out) calc(var(--i, 0) * 90ms + 0.35s), transform 1.3s var(--ease-out) calc(var(--i, 0) * 90ms + 0.35s);
}

.js .hero-content > .hero-title {
  letter-spacing: 0.14em;
  transition: opacity 1.2s var(--ease-out) 0.3s, letter-spacing 1.9s var(--ease-out) 0.3s, transform 1.3s var(--ease-out) 0.3s;
}

.hero.is-ready .hero-content > * {
  opacity: 1;
  transform: none;
}

.hero.is-ready .hero-content > .hero-title {
  letter-spacing: -0.035em;
}

.hero-content > :nth-child(1) { --i: 0; }
.hero-content > :nth-child(3) { --i: 3; }
.hero-content > :nth-child(4) { --i: 4; }
.hero-content > :nth-child(5) { --i: 5; }

.hero-dock {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(20px, 2.6vw, 36px) 20px;
  pointer-events: none;
}

.dock-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font: 500 10.5px/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.dock-hint .i {
  width: 16px;
  height: 16px;
}

.dock-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  font: 500 12px/1 var(--sans);
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  pointer-events: auto;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.dock-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.dock-btn .i {
  width: 13px;
  height: 13px;
}

.drum-card {
  position: absolute;
  z-index: 4;
  left: 0;
  top: 0;
  width: 336px;
  padding: 14px 16px 15px;
  border-radius: 12px;
  color: #fff;
  background: rgba(13, 15, 18, 0.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 20px 50px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease);
  will-change: transform;
}

.drum-card.is-on {
  opacity: 1;
}

.dc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dc-model {
  font: 500 12px/1 var(--mono);
}

.dc-roles {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 10px;
  font: 500 10.5px/1 var(--sans);
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
}

.dc-roles span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dc-roles span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--m);
}

.dc-refs {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

.dc-ref {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 6px;
  color: var(--m);
  background: rgba(255, 255, 255, 0.06);
}

.dc-ref img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dc-ref::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--m);
}

.dc-ref .i {
  width: 18px;
  height: 18px;
}

.dc-prompt {
  margin: 11px 0 0;
  font: 400 13.5px/1.5 var(--serif);
  color: rgba(255, 255, 255, 0.86);
}

.dc-go {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 11px 0 0;
  font: 500 10.5px/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.dc-go .i {
  width: 12px;
  height: 12px;
}

.kicker {
  margin: 0;
  font: 500 11px/1.3 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.hero-title {
  margin: clamp(8px, 1.6vh, 18px) 0 0;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.4);
  font: 400 clamp(72px, min(8.2vw, 14.5vh), 176px)/0.86 var(--serif);
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.035em;
  color: #fff;
}

.hero-sub {
  margin: clamp(8px, 1.6vh, 18px) 0 0;
  font: italic 400 clamp(18px, min(1.6vw, 2.9vh), 28px)/1.25 var(--serif);
  font-variation-settings: "opsz" 28;
  letter-spacing: -0.005em;
  color: rgba(255, 255, 255, 0.78);
  text-wrap: balance;
}

.hero-brand {
  margin: clamp(40px, 5.6vh, 58px) 0 0;
  line-height: 0;
}

.hero-brand img {
  width: auto;
  height: clamp(26px, 3.3vh, 34px);
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.45));
}

.toolstrip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(16px, 2.1vh, 22px);
}

.toolstrip a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 15px 0 13px;
  border-radius: 999px;
  font: 500 13px/1 var(--sans);
  color: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.toolstrip a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.toolstrip a.is-primary {
  color: var(--ink);
  background: #fff;
  box-shadow: none;
}

.toolstrip a.is-primary:hover {
  background: rgba(255, 255, 255, 0.86);
}

.toolstrip .i {
  width: 15px;
  height: 15px;
}

/* ------------------------------------------------------------------ plates & tokens */

.plate {
  position: relative;
  min-width: 0;
  margin: 0;
  transition: opacity 0.35s var(--ease);
}

.plate-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  background: var(--paper-3);
  transition: box-shadow 0.25s var(--ease);
}

.plate-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(18, 20, 23, 0.06);
  pointer-events: none;
}

.plate-media img,
.plate-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plate-media img.zoomable {
  cursor: zoom-in;
}

.plate-audio {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 10%;
  background: #f5f0e3;
}

.plate-audio .wave {
  width: 100%;
  height: 46%;
  fill: var(--aud);
}

.plate-play {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 1px 3px rgba(18, 20, 23, 0.14);
  transition: transform 0.2s var(--ease);
}

.plate-play:hover {
  transform: scale(1.06);
}

.plate-play .i {
  width: 11px;
  height: 11px;
}

.plate-cap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  overflow: hidden;
  font: 400 11.5px/1.2 var(--sans);
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--ink-3);
}

.plate-cap::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--m);
}

.plate-cap b {
  font: 500 11px/1 var(--mono);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.plate.is-linked .plate-media {
  box-shadow: 0 0 0 1.5px var(--m);
}

.tok {
  padding: 0 0.08em;
  border-bottom: 1.5px solid var(--m);
  border-radius: 2px 2px 0 0;
  font: 500 0.8em/1 var(--mono);
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease);
}

.tok[data-m="image"] {
  --m: var(--img);
}

.tok[data-m="video"] {
  --m: var(--vid);
}

.tok[data-m="audio"] {
  --m: var(--aud);
}

.tok.is-linked {
  background: color-mix(in srgb, var(--m) 26%, transparent);
}

/* ------------------------------------------------------------------ sections */

.sec {
  padding: clamp(96px, 10vw, 144px) 0;
}

.sec--tint {
  background: var(--tint);
}

.sec-head {
  max-width: 880px;
  margin: 0 auto clamp(48px, 5vw, 72px);
  text-align: center;
}

.sec-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font: 500 11.5px/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.sec-kicker .mark {
  width: 22px;
  height: 12px;
}

.sec-title {
  margin: 0;
  font: 400 clamp(34px, 3.3vw, 50px)/1.08 var(--serif);
  font-variation-settings: "opsz" 60;
  letter-spacing: -0.022em;
  color: var(--ink);
  text-wrap: balance;
}

.sec-lede {
  max-width: 640px;
  margin: 22px auto 0;
  font: 400 17px/1.65 var(--sans);
  color: var(--ink-3);
  text-wrap: pretty;
}

.prose {
  max-width: var(--text);
  margin: 0 auto;
}

.prose p {
  margin: 0 0 1.1em;
  font: 400 17px/1.75 var(--sans);
  color: var(--ink-2);
  text-wrap: pretty;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose .lede {
  margin-bottom: 1em;
  font: 400 clamp(20px, 1.55vw, 23px)/1.6 var(--serif);
  font-variation-settings: "opsz" 20;
  color: var(--ink);
}

.panel {
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--rule), 0 1px 2px rgba(18, 20, 23, 0.03);
}

/* stats */

.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: var(--block) 0 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 12px 28px;
  text-align: center;
}

.stat + .stat {
  border-left: 1px solid var(--rule);
}

.stat-num {
  order: 0;
  margin: 0;
  font: 300 clamp(38px, 3.6vw, 54px)/1 var(--serif);
  font-variation-settings: "opsz" 60;
  font-variant-numeric: lining-nums;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: var(--ink);
}

.stat-num small {
  margin-left: 0.05em;
  font-size: 0.48em;
  letter-spacing: 0;
  color: var(--ink-3);
}

.stat-num .times {
  margin: 0 0.1em;
  font-size: 0.56em;
  vertical-align: 0.16em;
  color: var(--ink-4);
}

.stat-label {
  order: 1;
  margin-top: 14px;
  font: 500 13px/1.3 var(--sans);
  color: var(--ink);
}

.stat-note {
  order: 2;
  margin: 4px 0 0;
  font: 400 12.5px/1.4 var(--sans);
  color: var(--ink-3);
}

/* figures */

.fig {
  margin: var(--block) 0 0;
}

.fig-plate {
  position: relative;
  padding: clamp(12px, 2vw, 28px);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--rule), 0 1px 2px rgba(18, 20, 23, 0.03);
}

.fig-plate img {
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

figcaption {
  max-width: 780px;
  margin: 16px auto 0;
  font: 400 13.5px/1.6 var(--sans);
  text-align: center;
  color: var(--ink-3);
  text-wrap: pretty;
}

.fig-no {
  margin-right: 0.7em;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.fig-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
  margin-top: var(--block);
}

.fig-pair .fig {
  margin: 0;
}

/* roles */

.roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
}

.roles-col {
  padding-top: 18px;
  border-top: 2px solid var(--m);
}

.roles-col h3 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  font: 400 26px/1.1 var(--serif);
  letter-spacing: -0.01em;
}

.roles-col h3 span {
  font: 500 11px/1 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.roles-col dl {
  margin: 6px 0 0;
}

.roles-col dt {
  margin-top: 18px;
  font: 600 13.5px/1.3 var(--sans);
  color: var(--ink);
}

.roles-col dd {
  margin: 5px 0 0;
  font: 400 15px/1.6 var(--sans);
  color: var(--ink-2);
}

/* tables */

.tbl {
  margin: var(--block) 0 0;
}

.tbl-caption {
  margin: 0 auto 18px;
}

.tbl-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tbl-notes {
  max-width: 860px;
  margin: 14px auto 0;
  font: 400 12.5px/1.6 var(--sans);
  text-align: center;
  color: var(--ink-4);
}

.booktabs {
  width: 100%;
  border-collapse: collapse;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  font: 400 14px/1.35 var(--sans);
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--ink-2);
}

.booktabs th {
  padding: 10px 12px;
  font: 500 12px/1.3 var(--sans);
  text-align: left;
  white-space: nowrap;
  vertical-align: bottom;
  color: var(--ink-3);
}

.booktabs .th-group th[colspan],
.booktabs .th-group th[scope="colgroup"] {
  position: relative;
  padding-bottom: 8px;
}

.booktabs .th-group th[scope="colgroup"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 1px;
  background: var(--rule-2);
}

.booktabs thead tr:last-child th {
  border-bottom: 1px solid var(--ink-3);
}

.booktabs thead .th-group th[rowspan] {
  border-bottom: 1px solid var(--ink-3);
}

.booktabs td {
  padding: 11px 12px;
  border-top: 1px solid var(--rule);
  white-space: nowrap;
}

.booktabs tbody tr:first-child td {
  border-top: 0;
}

.booktabs th:first-child,
.booktabs td:first-child {
  padding-left: 0;
}

.booktabs th:last-child,
.booktabs td:last-child {
  padding-right: 0;
}

.booktabs .c {
  text-align: center;
}

.booktabs .r {
  text-align: right;
}

.booktabs td:first-child {
  color: var(--ink);
}

.booktabs tr.is-ours td {
  border-top: 1px solid var(--ink-3);
  color: var(--ink);
  font-weight: 600;
}

.booktabs strong {
  font-weight: 600;
  color: var(--ink);
}

.booktabs .dim {
  font-weight: 400;
  color: var(--ink-4);
}

.booktabs--compact {
  font-size: 13.5px;
}

.booktabs--compact th,
.booktabs--compact td {
  padding: 8px 10px;
}

.booktabs--num td {
  text-align: right;
}

.booktabs--num td:first-child {
  text-align: left;
}

.dot-yes {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  vertical-align: 0.08em;
}

/* steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  padding-top: 18px;
  border-top: 1px solid var(--rule-2);
}

.step-no {
  font: 500 11.5px/1 var(--mono);
  letter-spacing: 0.04em;
  color: var(--ink-4);
}

.step h3 {
  margin: 14px 0 10px;
  font: 400 24px/1.18 var(--serif);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.step p {
  margin: 0;
  font: 400 15px/1.62 var(--sans);
  color: var(--ink-2);
}

/* validation */

.validation {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
  align-items: stretch;
  margin-top: var(--block);
}

.chart {
  margin: 0;
}

.validation .panel {
  padding: clamp(22px, 2.4vw, 34px);
}

.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.chart-head h3 {
  margin: 0;
  font: 400 22px/1.2 var(--serif);
  letter-spacing: -0.01em;
}

.chart figcaption {
  max-width: none;
  margin: 14px 0 0;
  text-align: left;
  font-size: 12.5px;
}

.switch {
  display: inline-flex;
  flex: none;
  padding: 2px;
  border-radius: 999px;
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--rule);
}

.switch button {
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  font: 500 12px/1 var(--sans);
  color: var(--ink-3);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.switch button:hover {
  color: var(--ink);
}

.switch button[aria-pressed="true"] {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--rule), 0 1px 2px rgba(18, 20, 23, 0.08);
}

.switch--dark {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--night-rule);
}

.switch--dark button {
  color: var(--on-night-3);
}

.switch--dark button:hover {
  color: #fff;
}

.switch--dark button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  box-shadow: none;
}

.big-num {
  margin: 14px 0 0;
  font: 300 clamp(52px, 5vw, 72px)/1 var(--serif);
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.big-num small {
  margin-left: 0.04em;
  font-size: 0.44em;
  letter-spacing: 0;
  color: var(--ink-3);
}

.replication-text {
  margin: 14px 0 24px;
  font: 400 15px/1.6 var(--sans);
  color: var(--ink-2);
}

/* forest plots */

.forest {
  --cols: minmax(150px, 1fr) minmax(0, 2.4fr) 104px;
  position: relative;
}

.f-row,
.f-axis {
  display: grid;
  grid-template-columns: var(--cols);
  column-gap: 18px;
  align-items: center;
}

.f-row {
  min-height: 50px;
  border-top: 1px solid var(--rule);
  transition: background-color 0.2s var(--ease);
}

.f-axis {
  height: 28px;
  border-top: 1px solid var(--rule);
}

.f-name {
  min-width: 0;
  padding: 8px 0;
}

.f-name b {
  display: block;
  font: 500 14px/1.3 var(--sans);
  color: var(--ink);
}

.f-name small {
  display: block;
  margin-top: 2px;
  font: 400 12px/1.3 var(--sans);
  color: var(--ink-4);
}

.f-rank {
  display: inline-block;
  width: 24px;
  font: 500 11px/1 var(--mono);
  color: var(--ink-4);
}

.f-plot {
  position: relative;
  height: 34px;
}

.f-grid {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--rule);
}

.f-ref {
  position: absolute;
  top: -1px;
  bottom: -1px;
  border-left: 1px dashed var(--ink-4);
}

.f-ci {
  position: absolute;
  top: 50%;
  height: 1.5px;
  margin-top: -0.75px;
  background: var(--ink-3);
  transition: left 0.6s var(--ease-out), width 0.6s var(--ease-out);
}

.f-ci::before,
.f-ci::after {
  content: "";
  position: absolute;
  top: -3.25px;
  width: 1.5px;
  height: 8px;
  background: inherit;
}

.f-ci::before {
  left: 0;
}

.f-ci::after {
  right: 0;
}

.f-dot {
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 1.5px var(--ink-2);
  transition: left 0.6s var(--ease-out);
}

.f-row.is-primary .f-dot {
  background: var(--ink);
  box-shadow: 0 0 0 1.5px var(--ink);
}

.f-row.is-primary .f-ci {
  background: var(--ink);
}

.f-row.is-human .f-dot {
  border-radius: 1px;
  background: var(--paper);
  box-shadow: 0 0 0 1.5px var(--ink-3);
  transform: rotate(45deg) scale(0.9);
}

.f-row.is-human .f-name b {
  font-weight: 450;
  font-style: italic;
  font-family: var(--serif);
  font-size: 15px;
}

.f-val {
  text-align: right;
  font: 500 14px/1.25 var(--sans);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.f-val small {
  display: block;
  margin-top: 2px;
  font: 400 11.5px/1.2 var(--sans);
  color: var(--ink-4);
}

.f-ticks {
  position: relative;
  height: 100%;
}

.f-ticks span {
  position: absolute;
  top: 8px;
  transform: translateX(-50%);
  font: 400 11px/1 var(--sans);
  font-variant-numeric: tabular-nums;
  color: var(--ink-4);
}

.f-axis-label {
  grid-column: 3;
  text-align: right;
  padding-top: 8px;
  font: 400 11px/1 var(--sans);
  color: var(--ink-4);
}

.forest--board {
  --cols: minmax(170px, 0.8fr) minmax(0, 3fr) 112px;
}

.forest--board .f-row {
  min-height: 56px;
}

.forest--board .f-row:hover {
  background: rgba(18, 20, 23, 0.018);
}

/* results */

.tabs {
  display: flex;
  justify-content: center;
  gap: 32px;
  overflow-x: auto;
  border-bottom: 1px solid var(--rule);
  scrollbar-width: none;
}

.tab {
  position: relative;
  padding: 0 0 14px;
  font: 500 14px/1 var(--sans);
  white-space: nowrap;
  color: var(--ink-3);
  transition: color 0.2s var(--ease);
}

.tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-out);
}

.tab:hover,
.tab[aria-selected="true"] {
  color: var(--ink);
}

.tab[aria-selected="true"]::after {
  transform: scaleX(1);
}

.pane {
  margin-top: 32px;
}

.pane[hidden] {
  display: none;
}

.pane-desc {
  max-width: 720px;
  min-height: 1.6em;
  margin: 22px auto 18px;
  font: 400 16px/1.6 var(--sans);
  text-align: center;
  color: var(--ink-2);
}

.pane-foot {
  max-width: 860px;
  margin: 18px auto 0;
  font: 400 12.5px/1.6 var(--sans);
  text-align: center;
  color: var(--ink-4);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font: 500 12.5px/1 var(--sans);
  color: var(--ink-3);
  box-shadow: inset 0 0 0 1px var(--rule);
  transition: color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}

.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--m, var(--ink-4));
}

.chip:hover {
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--rule-2);
}

.chip[aria-pressed="true"] {
  color: var(--ink);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--ink-3), 0 1px 2px rgba(18, 20, 23, 0.05);
}

.chip-sep {
  width: 1px;
  height: 18px;
  margin: 6px 6px 0;
  background: var(--rule);
}

/* heat tables */

.heat {
  width: 100%;
  border-collapse: separate;
  border-spacing: 3px;
  font: 400 13.5px/1.2 var(--sans);
  font-variant-numeric: tabular-nums;
}

.heat th {
  padding: 6px 8px;
  font: 500 12px/1.25 var(--sans);
  text-align: center;
  white-space: nowrap;
  color: var(--ink-3);
}

.heat th.corner {
  padding: 0 0 8px;
  text-align: left;
  vertical-align: bottom;
}

.heat th[scope="row"] {
  padding: 0 14px 0 0;
  text-align: left;
  font-size: 13.5px;
  color: var(--ink);
}

.heat td {
  min-width: 84px;
  height: 54px;
  padding: 0 6px;
  border-radius: 3px;
  text-align: center;
  color: var(--ink);
  background: rgba(20, 32, 44, var(--a, 0));
}

.heat td.is-dark {
  color: #fff;
}

.heat td small {
  display: block;
  margin-top: 5px;
  font-size: 10.5px;
  opacity: 0.66;
}

.heat td.is-self {
  background: repeating-linear-gradient(135deg, var(--paper-3) 0 1px, transparent 1px 6px);
}

.heat td.is-lead {
  font-weight: 650;
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.heat td.is-lead.is-dark {
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.85);
}

.heat--comps td {
  height: 36px;
}

.heat--comps th[scope="row"] {
  font: 400 13px/1.2 var(--sans);
}

.heat--comps th.n {
  font: 400 12px/1 var(--sans);
  color: var(--ink-4);
  text-align: right;
  padding-right: 12px;
}

.combo-row {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
}

.combo-row .r {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.combo-row .r::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--m);
}

.combo-row i {
  font-style: normal;
  color: var(--ink-4);
}

.heat tr.is-reversal th[scope="row"] {
  position: relative;
}

.heat tr.is-reversal th[scope="row"] .tag {
  margin-left: 10px;
  font: italic 400 13px/1 var(--serif);
  color: var(--aud);
}

/* findings */

.finding {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding: clamp(26px, 3.2vw, 48px);
}

.finding + .finding {
  margin-top: clamp(20px, 2.4vw, 32px);
}

.finding h3 {
  margin: 12px 0 16px;
  font: 400 clamp(25px, 2.2vw, 31px)/1.16 var(--serif);
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
}

.finding p:not(.eyebrow) {
  margin: 0 0 1em;
  font: 400 15.5px/1.68 var(--sans);
  color: var(--ink-2);
  text-wrap: pretty;
}

.finding p:last-child {
  margin-bottom: 0;
}

.finding-chart {
  margin: 0;
}

.finding-chart figcaption {
  max-width: none;
  margin-top: 10px;
  font-size: 12.5px;
}

.svg-chart svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart-svg text {
  font: 400 11.5px var(--sans);
  font-variant-numeric: tabular-nums;
  fill: var(--ink-3);
}

.chart-svg .t-head {
  font: 400 11.5px var(--mono);
  fill: var(--ink-2);
}

.chart-svg .t-strong {
  font-weight: 500;
  fill: var(--ink);
}

.chart-svg .t-dim {
  fill: var(--ink-4);
}

.chart-svg .grid {
  stroke: var(--rule);
  stroke-width: 1;
}

.chart-svg .parity {
  stroke: var(--ink-4);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}

.chart-svg .axis {
  stroke: var(--rule-2);
  stroke-width: 1;
}

/* code */

.code-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  max-width: 860px;
  margin: 0 auto;
}

.code {
  overflow: hidden;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--rule);
}

.code-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 44px;
  padding: 0 10px 0 20px;
  border-bottom: 1px solid var(--rule);
  font: 500 12.5px/1 var(--sans);
  color: var(--ink-2);
}

.copy {
  height: 28px;
  padding: 0 11px;
  border-radius: 6px;
  font: 500 12px/1 var(--sans);
  color: var(--ink-3);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.copy:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.copy.is-done {
  color: var(--out);
}

a.copy {
  display: inline-flex;
  align-items: center;
}

.paper-body {
  padding: 22px 22px 24px;
}

.paper-title {
  margin: 0;
  font: 400 clamp(21px, 1.7vw, 25px)/1.25 var(--serif);
  font-variation-settings: "opsz" 28;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

.paper-authors {
  margin: 14px 0 0;
  font: 450 15px/1.65 var(--sans);
  color: var(--ink-2);
}

.paper-authors span {
  display: inline-block;
  margin-right: 14px;
  white-space: nowrap;
}

.paper-affil {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
  margin: 6px 0 0;
  font: 400 13px/1.6 var(--sans);
  color: var(--ink-3);
}

.paper-affil sup {
  margin-right: 2px;
}

.paper-roles {
  color: var(--ink-4);
}

.code pre {
  margin: 0;
  padding: 18px 22px 22px;
  overflow-x: auto;
  font: 400 12.5px/1.7 var(--mono);
  color: var(--ink-2);
  tab-size: 2;
}

.code pre .c {
  color: var(--ink-4);
}

/* footer */

.foot {
  padding: 26px 0 34px;
  border-top: 1px solid var(--rule);
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font: 400 13px/1.4 var(--sans);
  color: var(--ink-3);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font: 500 13px/1 var(--sans);
  color: var(--ink-3);
}

.foot-links a {
  transition: color 0.2s var(--ease);
}

.foot-links a:hover {
  color: var(--ink);
}

/* ------------------------------------------------------------------ cases (dark) */

.sec--dark {
  background: var(--night);
  color: var(--on-night);
}

.sec--dark .sec-kicker {
  color: var(--on-night-3);
}

.sec--dark .mark,
.sec--dark .sec-title {
  color: #fff;
}

.sec--dark .sec-lede {
  color: var(--on-night-2);
}

.sec--dark .eyebrow {
  color: var(--on-night-3);
}

.sec--dark .plate-media {
  background: var(--night-3);
}

.sec--dark .plate-media::after {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.sec--dark .plate-cap {
  color: var(--on-night-3);
}

.sec--dark .plate-cap b {
  color: #fff;
}

.sec--dark .plate-audio {
  background: #1f1b12;
}

.case-index {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--night-rule);
}

.case-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: start;
  padding: 16px 18px 4px 0;
  text-align: left;
  color: var(--on-night-3);
  transition: color 0.25s var(--ease);
}

.case-tab::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 18px;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.case-tab:hover {
  color: var(--on-night-2);
}

.case-tab[aria-selected="true"] {
  color: #fff;
}

.case-tab[aria-selected="true"]::before {
  transform: scaleX(1);
}

.ct-no {
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.04em;
  color: var(--on-night-3);
}

.ct-title {
  display: block;
  margin-top: 10px;
  font: 400 17px/1.25 var(--serif);
  text-wrap: balance;
}

.ct-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 9px;
  font: 400 11.5px/1.2 var(--sans);
  color: var(--on-night-3);
}

.ct-roles span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ct-roles span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--m);
}

.case-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  margin-top: clamp(40px, 4.4vw, 56px);
}

.case-brief,
.case-sources,
.case-outputs {
  transition: opacity 0.3s var(--ease);
}

.brief-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.brief-prompt {
  min-height: 6.4em;
  margin: 0;
  font: 400 clamp(18px, 1.45vw, 21px)/1.6 var(--serif);
  font-variation-settings: "opsz" 18;
  color: var(--on-night);
  text-wrap: pretty;
}

.brief-prompt:lang(zh) {
  font: 400 17px/1.9 var(--sans);
  letter-spacing: 0.01em;
}

.brief-note {
  max-width: 62ch;
  margin: 22px 0 0;
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  font: 400 14.5px/1.6 var(--sans);
  color: var(--on-night-2);
}

.brief-note .tok {
  color: var(--on-night);
}

.case-sources {
  display: grid;
  grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr));
  gap: 12px;
  padding-top: 42px;
}

.case-outputs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 26px) clamp(14px, 1.6vw, 22px);
  margin-top: clamp(40px, 4.4vw, 56px);
}

.out-card {
  min-width: 0;
}

.out-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: #000;
  transition: box-shadow 0.25s var(--ease);
}

.out-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.out-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.out-card.is-solo .out-media {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.78);
}

.out-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 11px;
}

.out-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  font: 500 13.5px/1.2 var(--sans);
  color: #fff;
}

.out-name small {
  font: 400 11px/1 var(--mono);
  color: var(--on-night-3);
}

.out-solo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px 0 8px;
  border-radius: 999px;
  font: 500 11.5px/1 var(--sans);
  color: var(--on-night-3);
  box-shadow: inset 0 0 0 1px var(--night-rule);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.out-solo .i {
  width: 14px;
  height: 14px;
}

.out-solo:hover:not(:disabled) {
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.out-solo[aria-pressed="true"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.out-wave {
  position: relative;
  height: 22px;
  margin-top: 9px;
}

.out-wave .wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.out-wave .w-base {
  fill: rgba(255, 255, 255, 0.2);
}

.out-wave .w-played {
  fill: rgba(255, 255, 255, 0.8);
  clip-path: inset(0 calc((1 - var(--p, 0)) * 100%) 0 0);
}

.out-card.is-solo .out-wave .w-played {
  fill: var(--aud);
}

.out-wave.is-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 400 11px/1 var(--mono);
  color: var(--on-night-3);
}

.out-wave.is-empty::before {
  content: "";
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 2px, transparent 2px 5px);
  order: 2;
}

.deck {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 18px 20px 18px;
  border-radius: 4px;
  background: var(--night-2);
  box-shadow: inset 0 0 0 1px var(--night-rule);
}

.deck-top,
.deck-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.deck-clock {
  margin: 0;
  font: 300 clamp(28px, 2.6vw, 38px)/1 var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: #fff;
}

.deck-total {
  font-size: 0.42em;
  letter-spacing: 0;
  color: var(--on-night-3);
}

.deck-btns {
  display: flex;
  gap: 6px;
}

.deck-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  min-width: 32px;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  font: 500 12.5px/1 var(--sans);
  color: var(--on-night);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  transition: background-color 0.2s var(--ease);
}

.deck-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.deck-btn.is-primary {
  color: var(--night);
  background: #fff;
  box-shadow: none;
}

.deck-btn.is-primary:hover {
  background: rgba(255, 255, 255, 0.86);
}

.deck-btn .i {
  width: 12px;
  height: 12px;
}

.deck-listen {
  overflow: hidden;
  font: 400 12px/1.3 var(--sans);
  text-align: right;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--on-night-3);
}

.deck-listen b {
  font-weight: 500;
  color: #fff;
}

.scrub {
  --p: 0%;
  width: 100%;
  height: 18px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.scrub::-webkit-slider-runnable-track {
  height: 1px;
  background: linear-gradient(90deg, #fff var(--p), rgba(255, 255, 255, 0.22) var(--p));
}

.scrub::-webkit-slider-thumb {
  width: 11px;
  height: 11px;
  margin-top: -5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
  -webkit-appearance: none;
  appearance: none;
}

.scrub::-moz-range-track {
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.scrub::-moz-range-progress {
  height: 1px;
  background: #fff;
}

.scrub::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}

.is-fading {
  opacity: 0 !important;
}

/* ------------------------------------------------------------------ lightbox, reveal */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 5vh 5vw;
  background: rgba(12, 14, 17, 0.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open {
  opacity: 1;
}

.lightbox img {
  max-height: 90vh;
  border-radius: 4px;
  background: #fff;
  cursor: zoom-out;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.lightbox-close .i {
  width: 16px;
  height: 16px;
}

.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal,
  .js .hero-content > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .frame,
  .frame-poster {
    transition: none;
  }

  .js .hero-content > .hero-title {
    letter-spacing: -0.035em;
  }
}

/* ------------------------------------------------------------------ responsive */

@media (max-height: 760px) {
  .toolstrip a {
    height: 32px;
  }
}

@media (max-width: 1240px) {
  .case-index {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 8px;
  }

  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stat:nth-child(4) {
    border-left: 0;
  }

  .stat:nth-child(n + 4) {
    border-top: 1px solid var(--rule);
  }

  .validation {
    grid-template-columns: 1fr;
  }

  .mh-nav {
    gap: 16px;
    font-size: 13px;
  }
}

@media (max-width: 1080px) {
  .mh-nav a:nth-child(n + 5):not(:last-child) {
    display: none;
  }
}

@media (max-width: 980px) {
  .roles,
  .steps,
  .finding,
  .case-stage,
  .fig-pair {
    grid-template-columns: minmax(0, 1fr);
  }

  .case-outputs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .mh-nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat:nth-child(n) {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  .stat:nth-child(even) {
    border-left: 1px solid var(--rule);
  }

  .case-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-outputs {
    grid-template-columns: minmax(0, 1fr);
  }
}
