
/* Speaking Machine Labs
   Black and white. A black ground, white type and monochrome archival plates.
   Pure white is kept for the machine voice and for focus; people are grey. */

:root {
  --prussian: #000000;      /* page ground, also the plate shadow tone */
  --prussian-deep: #0a0a0a; /* alternate bands */
  --print: #f2f2f2;         /* primary text */
  --print-dim: #9e9e9e;     /* secondary text */
  --rule: rgba(255, 255, 255, 0.14);
  --sodium: #ffffff;        /* the machine; focus */

  --serif: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif; /* italic captions only */
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --band: clamp(88px, 11vw, 168px);

  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--prussian);
  color: var(--print);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Paper grain: a fixed, very quiet fibre texture over everything. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.07;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: #fff; }

:focus-visible {
  outline: 2px solid var(--sodium);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--sodium); color: var(--prussian); }

.skip {
  position: absolute; left: 12px; top: -48px;
  background: var(--sodium); color: var(--prussian);
  padding: 8px 14px; z-index: 200; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Header ---------- */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.brand svg { width: auto; height: 24px; flex: none; }
.nav { display: flex; gap: clamp(16px, 3vw, 36px); }
.nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  color: var(--print-dim);
  padding-block: 6px;
}
.nav a:hover, .nav a[aria-current='page'] { color: var(--print); }
.nav a[aria-current='page'] { text-decoration: underline; text-decoration-color: var(--sodium); }

/* ---------- Type ---------- */

.display {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.96;
  margin: 0;
  text-wrap: balance;
}
h1.display { font-size: clamp(3rem, 6.6vw, 6.75rem); letter-spacing: -0.052em; }
h2.display { font-size: clamp(2.25rem, 4.8vw, 4.25rem); line-height: 1; }
h3 {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.025em;
  font-size: clamp(1.375rem, 2.1vw, 1.75rem);
  line-height: 1.15;
  margin: 0 0 0.5em;
}
.lede {
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.55;
  color: var(--print);
  max-width: 36em;
  margin: 0;
}
.dim { color: var(--print-dim); }
.caption {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: 'opsz' 12;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--print-dim);
}
p { margin: 0 0 1em; }
.measure { max-width: 34em; }

/* Redaction: a lab that is not ready to say. */
.redact {
  background: var(--print);
  color: transparent;
  border-radius: 1px;
  padding-inline: 0.15em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  user-select: none;
  cursor: help;
}

/* ---------- Buttons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--print);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9875rem;
  letter-spacing: 0.01em;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-solid { background: var(--print); color: var(--prussian); }
.btn-solid:hover { background: #fff; color: var(--prussian); border-color: #fff; }
.btn-line:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: minmax(240px, 1fr) auto;
  padding-top: 76px;
}
.hero::before {
  /* A faint light over the instrument, so the dark ground has depth. */
  content: '';
  position: absolute;
  inset: 0 0 30% 0;
  background: radial-gradient(ellipse 60% 60% at 50% 40%, rgba(255, 255, 255, 0.055), rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}
.field { position: relative; touch-action: pan-y; }
.field canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.field.is-3d { cursor: grab; }
.field.is-3d.dragging { cursor: grabbing; }
.field.is-3d.over-lane { cursor: pointer; }
.field .labels { pointer-events: none; }
.hero-status {
  position: absolute;
  right: var(--gutter);
  bottom: 0;
  margin: 0;
  max-width: 22em;
  text-align: right;
  pointer-events: none;
}
.hero-copy {
  padding-top: clamp(28px, 4vh, 48px);
  padding-bottom: clamp(40px, 7vh, 88px);
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 24px clamp(32px, 4vw, 64px);
  align-items: end;
}
.hero .lede { font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); }
.hero .actions { margin-top: 30px; }
.hero-hint { margin: 18px 0 0; }

/* Wide screens: the instrument spans the whole hero and sits in its upper
   half (field3d.js fits it there); the copy rests on top along the bottom. */
@media (min-width: 961px) {
  .hero { grid-template-rows: 1fr auto; }
  .hero .field { position: absolute; inset: 0; z-index: 0; }
  .hero .hero-copy { grid-row: 2; position: relative; z-index: 1; }
  .hero .hero-copy > * { position: relative; }
}

/* ---------- 3D figures (gl3d.js) ---------- */

.figure3d { margin: 0; }
.figure3d-stage { position: relative; touch-action: pan-y; }
.figure3d-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.figure3d-stage .labels { pointer-events: none; }
.figure3d-stage.is-3d { cursor: grab; }
.figure3d-stage.is-3d.dragging { cursor: grabbing; }
.figure3d-stage.is-3d.over-lane { cursor: pointer; }
.figure3d.no-3d .figure3d-stage, .figure3d-stage.no-3d { display: none; }
.figure3d-status { position: absolute; left: 0; right: 0; bottom: 8px; margin: 0; text-align: center; pointer-events: none; }
.room-band { padding-bottom: clamp(48px, 6vw, 88px); }
.room .figure3d-stage { height: clamp(360px, 50vw, 640px); max-height: 76vh; }
.room figcaption { margin-top: 18px; }
.room .figure3d-status { top: 8px; bottom: auto; }
.ribbon .figure3d-stage { aspect-ratio: 4 / 3; }
.ribbon figcaption { margin-top: 12px; }
.era-now { grid-template-columns: minmax(0, 2fr) minmax(0, 6fr) minmax(0, 4fr); }

/* ---------- 3D plates ----------
   Archival plates lean toward the pointer like a print held to the light.
   tilt.js sets --rx, --ry and the sheen position. */

.tilt {
  display: block;
  position: relative;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s ease;
}
.tilt.is-active { transition: none; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); }
.tilt::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s ease;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 55%);
  mix-blend-mode: screen;
}
.tilt.is-active::after { opacity: 1; }

/* ---------- Bands ---------- */

.band { padding-block: var(--band); }
.band-deep { background: var(--prussian-deep); }
.band:not(.band-deep) + .band:not(.band-deep):not(.flush) { padding-top: 0; }
.band-deep + .band-deep { padding-top: 0; }

.kicker {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--print-dim);
  margin: 0 0 20px;
}

/* The gap */
.gap-statement {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.4vw, 3.125rem);
  line-height: 1.14;
  letter-spacing: -0.035em;
  max-width: 22em;
  margin: 0;
  text-wrap: pretty;
}
.gap-statement .num {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  white-space: nowrap;
}
.gap-statement .num { color: var(--print-dim); }
.gap-statement .num.low { color: #fff; font-weight: 600; }
.gap-follow {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-top: clamp(40px, 6vw, 72px);
}
.gap-follow > p { grid-column: 7 / span 6; font-size: 1.125rem; color: var(--print); align-self: center; }
.gap-follow > .caption { grid-column: 1 / span 3; margin: 0; padding-top: 4px; }

/* The gap, in 3D: two prisms on a floor grid, grown and turned by scroll
   (scroll.js sets --p). The dashed outline over the voice agent is the gap. */
.gap-chart { grid-column: 1 / span 5; margin: 0; --p: 0.5; }
.gap-stage { perspective: 1100px; perspective-origin: 50% 20%; height: 340px; display: grid; place-items: end center; }
.gap-scene {
  --grow: clamp(0, (var(--p) - 0.12) * 3.2, 1);
  position: relative;
  width: 300px;
  height: 290px;
  transform-style: preserve-3d;
  transform: translateY(-20px) rotateX(-16deg) rotateY(calc(-26deg + (var(--p) - 0.5) * 46deg));
}
.gap-floor {
  position: absolute;
  left: -40px; right: -40px; bottom: 0;
  height: 200px;
  transform-origin: 50% 100%;
  transform: translateZ(100px) rotateX(90deg);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent);
  mask-image: radial-gradient(closest-side, #000 40%, transparent);
}
.prism {
  --d: 76px;
  position: absolute;
  bottom: 0;
  width: var(--d);
  height: calc(var(--v) * 3px * var(--grow));
  transform-style: preserve-3d;
}
.prism.solid { left: 40px; }
.prism.hollow, .prism.ghost { left: 184px; }
.prism.ghost { height: calc(var(--v) * 3px * var(--grow)); }
.prism i { position: absolute; display: block; }
.prism .f { inset: 0; transform: translateZ(calc(var(--d) / 2)); }
.prism .b { inset: 0; transform: translateZ(calc(var(--d) / -2)) rotateY(180deg); }
.prism .r { top: 0; bottom: 0; width: var(--d); left: calc(100% - var(--d) / 2); transform: rotateY(90deg); }
.prism .l { top: 0; bottom: 0; width: var(--d); left: calc(var(--d) / -2); transform: rotateY(-90deg); }
.prism .t { left: 0; right: 0; height: var(--d); top: calc(var(--d) / -2); transform: rotateX(90deg); }
.prism.solid .f { background: linear-gradient(to bottom, #fff, #cfcfcf); }
.prism.solid .r { background: linear-gradient(to bottom, #9a9a9a, #5c5c5c); }
.prism.solid .l { background: #3a3a3a; }
.prism.solid .b { background: #262626; }
.prism.solid .t { background: #f4f4f4; }
.prism.hollow i { border: 1px solid rgba(255, 255, 255, 0.85); background: rgba(255, 255, 255, 0.05); }
.prism.ghost i { border: 1px dashed rgba(255, 255, 255, 0.3); }
.gap-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
  font-size: 0.9375rem;
  color: var(--print-dim);
}
.gap-legend b { display: block; color: var(--print); font-weight: 500; font-size: 1.5rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.gap-chart > .caption { margin: 14px 0 0; }

/* Programs */
.programs {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.programs-figure { position: sticky; top: 32px; margin: 0; }
.programs-figure img { width: 100%; }
.programs-figure figcaption { margin-top: 14px; }
.program-list { list-style: none; margin: 0; padding: 0; }
.program {
  border-top: 1px solid var(--rule);
  padding: 34px 0 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 24px;
}
.program:last-child { border-bottom: 1px solid var(--rule); }
.program-name {
  font-family: var(--sans);
  font-size: clamp(2.5rem, 4.6vw, 4rem);
  font-weight: 500;
  line-height: 1;
  margin: 0 0 12px;
  letter-spacing: -0.05em;
}
.program-q {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  margin: 0 0 14px;
}
.program p.body { grid-column: 1 / -1; max-width: 34em; color: var(--print); margin: 0; }
.status {
  align-self: start;
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--print-dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.status::before {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--print-dim);
}
.status.live::before { background: var(--sodium); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16); }

/* Origins teaser */
.plate-bleed { position: relative; margin: 0; overflow: hidden; --p: 0.5; perspective: 1600px; }
.plate-bleed img {
  width: 100%; max-height: 86vh; object-fit: cover; object-position: center 40%;
  transform-origin: 50% 100%;
  transform: rotateX(calc((0.5 - min(var(--p), 0.5)) * 34deg)) scale(calc(1.08 - min(var(--p), 0.5) * 0.16));
  will-change: transform;
}
.plate-bleed::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--prussian-deep) 0%, rgba(10, 10, 10, 0) 16%, rgba(10, 10, 10, 0) 70%, var(--prussian-deep) 100%);
  pointer-events: none;
}
.plate-bleed figcaption {
  position: relative; z-index: 1;
  max-width: var(--max);
  margin: -8px auto 0;
  padding-inline: var(--gutter);
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}
.two-col .copy { max-width: 34em; }

/* Principles */
.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  margin-top: clamp(48px, 6vw, 80px);
}
.principles h3 { font-size: 1.5rem; }
.principles p { color: var(--print-dim); margin: 0; }

/* Lab line */
.lab-line {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}
.lab-line .lede { color: var(--print-dim); }

/* ---------- Page heads (inner pages) ---------- */

.page-head { padding-top: clamp(160px, 22vh, 240px); padding-bottom: clamp(56px, 8vw, 104px); }
.page-head .lede { margin-top: 28px; }

/* Research index */
.index-table { width: 100%; border-collapse: collapse; }
.index-table th {
  text-align: left;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--print-dim);
  padding: 0 16px 14px 0;
  border-bottom: 1px solid var(--rule);
}
.index-table td {
  padding: 22px 16px 22px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.index-table td.t {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.025em;
  font-size: clamp(1.1875rem, 1.8vw, 1.5rem);
  line-height: 1.25;
  width: 56%;
}
.index-table td.k, .index-table td.s { color: var(--print-dim); font-size: 0.9375rem; white-space: nowrap; }

.questions { list-style: none; padding: 0; margin: 0; counter-reset: q; }
.questions li {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.035em;
  font-size: clamp(1.5rem, 2.8vw, 2.375rem);
  line-height: 1.14;
  padding: 26px 0;
  border-top: 1px solid var(--rule);
  max-width: 24em;
  text-wrap: balance;
}
.questions li:last-child { border-bottom: 1px solid var(--rule); }
.questions li small {
  display: block;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--print-dim);
  margin-top: 10px;
  max-width: 34em;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  margin-bottom: clamp(40px, 5vw, 64px);
  align-items: end;
}
.section-head p { margin: 0; color: var(--print-dim); max-width: 34em; }

/* Origins timeline: a real sequence, so years are the markers. */
.timeline { list-style: none; margin: 0; padding: 0; }
.era {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 5fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(40px, 6vw, 80px) 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.era-year {
  font-family: var(--sans);
  font-size: clamp(2.75rem, 5.4vw, 5rem);
  line-height: 0.9;
  font-weight: 500;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  margin: 0;
}
.era-year.next { color: var(--print-dim); }
.era figure { margin: 0; }
.era figure img { width: 100%; }
.era figcaption { margin-top: 12px; }
.era-copy p { color: var(--print); max-width: 32em; }
.era-copy h3 { margin-bottom: 0.6em; }

/* Join */
.areas { list-style: none; margin: 0; padding: 0; }
.areas li {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 5vw, 80px);
  border-top: 1px solid var(--rule);
  padding: 30px 0;
}
.areas li:last-child { border-bottom: 1px solid var(--rule); }
.areas h3 { margin: 0; }
.areas p { margin: 0; color: var(--print-dim); max-width: 34em; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: clamp(56px, 7vw, 96px) 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) repeat(2, minmax(0, 3fr));
  gap: 32px;
}
.footer-motto {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.04em;
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  line-height: 1.04;
  margin: 18px 0 0;
  max-width: 13em;
  text-wrap: balance;
}
.footer-col h2 { font-size: 0.875rem; font-weight: 400; color: var(--print-dim); margin: 6px 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0 0 8px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-legal {
  margin-top: clamp(48px, 6vw, 80px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  font-size: 0.875rem;
  color: var(--print-dim);
}
.footer-legal p { margin: 0; }

/* ---------- Legal pages ---------- */

.legal { padding-bottom: var(--band); }
.legal .wrap { max-width: 860px; }
.legal h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.legal .meta { margin: 20px 0 48px; }
.legal h2 {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 2.4em 0 0.6em;
}
.legal p, .legal li { max-width: 40em; line-height: 1.7; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: 0.4em; }
.legal address { font-style: normal; line-height: 1.7; }

/* ---------- 404 ---------- */
.lost { min-height: 100svh; display: flex; align-items: center; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-copy { grid-template-columns: 1fr; }
  .programs, .two-col, .lab-line, .section-head { grid-template-columns: 1fr; }
  .programs-figure { position: static; max-width: 560px; }
  .principles { grid-template-columns: 1fr; }
  .gap-follow > p, .gap-follow > .caption, .gap-chart { grid-column: 1 / -1; }
  .gap-follow > .caption { order: 2; }
  .gap-chart { max-width: 460px; }
  .era-now { grid-template-columns: 1fr; }
  .era { grid-template-columns: 1fr; }
  .era figure { max-width: 520px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .areas li { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand span { display: none; }
  .brand::after { content: 'SML'; font-family: var(--sans); font-weight: 500; letter-spacing: -0.01em; }
  .hero-status { left: var(--gutter); text-align: left; }
  .index-table thead { display: none; }
  .index-table tr { display: block; border-bottom: 1px solid var(--rule); padding: 18px 0; }
  .index-table td { display: inline; border: 0; padding: 0; }
  .index-table td.t { display: block; width: auto; margin-bottom: 8px; }
  .index-table td.k::after { content: ', '; }
  .program { grid-template-columns: 1fr; }
  .status { margin: 0 0 12px; order: -1; }
  .gap-stage { height: 300px; }
  .gap-scene { transform: translateY(-10px) scale(0.86) rotateX(-16deg) rotateY(calc(-26deg + (var(--p) - 0.5) * 46deg)); }
  .gap-legend b { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

.band.flush { padding-top: 0; }
