/* Desktop overlay locks scroll; mobile page mode (below) restores body scroll. */
body.choreography-popups-open {
  overflow: hidden;
}

/* Ink trail paints above the frosted veil; canvas stays pointer-events: none */
body.choreography-popups-open .site-bg-effects {
  z-index: 45;
}

.choreography-popups {
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  background: transparent;
}

.choreography-popups.is-open {
  opacity: 1;
  visibility: visible;
  /* Keep none so only backdrop + interactive chrome capture; ink draws through gaps */
  pointer-events: none;
}

/* Single full-viewport veil — catches empty-area clicks (dismiss) without covering ink */
.choreography-popups__backdrop {
  position: absolute;
  inset: 0;
  /* ~5% see-through; SVG shapes painted on top so parts always have site bg art */
  background-color: rgba(242, 242, 242, 0.95);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  cursor: pointer;
  pointer-events: auto;
  overflow: hidden;
}

.choreography-popups__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("../media/images/becoming_chimeric_svg.svg") center / cover no-repeat;
  opacity: 0.38;
}

/* Transparent layout shell — no white card / stage panel */
.choreography-popups__stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(0.85rem, 2vw, 1.5rem) clamp(0.85rem, 2.5vw, 2rem)
    clamp(1.25rem, 3vw, 2rem);
  pointer-events: none;
  box-sizing: border-box;
  overflow: hidden;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border: 0;
}

.choreography-popups__stage::before,
.choreography-popups__stage::after,
.choreography-popups__grid::before,
.choreography-popups__grid::after,
.choreography-popups__body::before,
.choreography-popups__body::after {
  content: none;
  display: none;
  background: none;
}

.choreography-popups__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.45rem 1rem;
  flex: 0 0 auto;
  width: 100%;
  max-width: min(1280px, 100%);
  margin: 0 auto;
  padding: 0 clamp(0.35rem, 1.5vw, 0.75rem);
  pointer-events: auto;
  z-index: 10;
  background: transparent;
}

.choreography-popups__header-end {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.55rem 1.15rem;
  margin-left: auto;
}

.choreography-popups__nav,
.choreography-popups__close-all {
  border: 0;
  background: transparent;
  padding: 0.2rem 0.15rem;
  font-family: var(--font-title);
  font-weight: 400;
  font-style: normal;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #000;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.15s ease;
}

.choreography-popups__nav {
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  padding: 0.1rem 0.2rem;
}

.choreography-popups__close-all {
  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
}

.choreography-popups__nav:hover,
.choreography-popups__nav:focus-visible,
.choreography-popups__close-all:hover,
.choreography-popups__close-all:focus-visible {
  opacity: 0.55;
}

.choreography-popups__nav[hidden] {
  display: none;
}

.choreography-popups__body {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2.4vw, 1.75rem);
  min-height: 0;
  width: 100%;
  max-width: min(1280px, 100%);
  margin: clamp(0.35rem, 1vw, 0.75rem) auto 0;
  padding: 0 clamp(0.35rem, 1.5vw, 0.75rem);
  /* none: drag-draw ink through content; links/QR opt back in below */
  pointer-events: none;
  background: transparent;
}

.choreography-popups__body--split {
  grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.45fr);
  align-items: stretch;
}

.choreography-popups__body--instructions-only {
  grid-template-columns: minmax(0, 42rem);
  justify-content: center;
}

.choreography-popups__left {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.5rem);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.choreography-popups__title {
  margin: 0;
  font-family: var(--font-choreography-title);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a1814;
}

.choreography-popups__idea {
  min-width: 0;
  font-family: var(--font-choreography-body);
  font-size: clamp(0.72rem, 0.9vw, 0.85rem);
  line-height: 1.4;
  text-align: justify;
  color: rgba(26, 24, 20, 0.88);
}

.choreography-popups__idea p {
  margin: 0 0 0.7em;
}

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

.choreography-popups__idea a {
  color: inherit;
  font-style: italic;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  pointer-events: auto;
}

.choreography-popups__instructions {
  min-width: 0;
}

.choreography-popups__instruction-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: choreography-step;
  display: flex;
  flex-direction: column;
  gap: clamp(0.95rem, 2vw, 1.35rem);
}

.choreography-popups__instruction {
  counter-increment: choreography-step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.1rem 0.55rem;
  align-items: start;
}

.choreography-popups__instruction::before {
  content: counter(choreography-step) ".";
  grid-row: 1;
  font-family: var(--font-choreography-body);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.35;
  color: #1a1814;
}

.choreography-popups__instruction-title {
  margin: 0;
  grid-column: 2;
  font-family: var(--font-choreography-body);
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.35;
  color: #1a1814;
}

.choreography-popups__instruction-title strong {
  font-weight: 600;
}

.choreography-popups__instruction-detail {
  margin: 0.15rem 0 0;
  grid-column: 2;
  font-family: var(--font-choreography-body);
  font-size: clamp(0.72rem, 0.9vw, 0.85rem);
  line-height: 1.4;
  text-align: justify;
  color: rgba(26, 24, 20, 0.88);
}

.choreography-popups__instruction-detail p {
  margin: 0 0 0.55em;
}

.choreography-popups__instruction-detail p:last-child {
  margin-bottom: 0;
}

.choreography-popups__instruction-title a,
.choreography-popups__instruction-detail a,
.choreography-popups__instruction-text a {
  color: inherit;
  font-style: italic;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  pointer-events: auto;
}

/* Legacy single-block instruction text (older payloads). */
.choreography-popups__instruction-text {
  margin: 0;
  grid-column: 2;
  font-family: var(--font-choreography-body);
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.35;
  color: #1a1814;
}

.choreography-popups__tools-section {
  margin-top: clamp(0.95rem, 2vw, 1.35rem);
  max-width: 100%;
}

.choreography-popups__tools-label {
  margin: 0 0 0.55rem;
  font-family: var(--font-choreography-body);
  font-size: clamp(0.72rem, 0.9vw, 0.85rem);
  line-height: 1.4;
  color: rgba(26, 24, 20, 0.88);
}

.choreography-popups__tools {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 0;
  max-width: 100%;
}

.choreography-popups__tool {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.choreography-popups__tool-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 100%;
}

.choreography-popups__tool-list-item {
  margin: 0;
  padding: 0;
  min-width: 0;
}

.choreography-popups__tool-list-item::before {
  content: "– ";
  font-family: var(--font-choreography-body);
  font-style: normal;
  color: rgba(26, 24, 20, 0.72);
}

.choreography-popups__tool-link {
  font-family: var(--font-choreography-body);
  font-style: italic;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.35;
  color: #1a1814;
  word-break: break-word;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  pointer-events: auto;
}

.choreography-popups__tools--multi .choreography-popups__tool-link {
  font-size: clamp(0.88rem, 1.05vw, 1.05rem);
  line-height: 1.25;
}

.choreography-popups__tool-link:hover,
.choreography-popups__tool-link:focus-visible {
  color: #000;
}

.choreography-popups__qr-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem 0.95rem;
  max-width: 100%;
}

.choreography-popups__qr {
  width: min(9.5rem, 38vw);
  max-width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  box-sizing: border-box;
  pointer-events: auto;
  flex: 0 0 auto;
}

.choreography-popups__tools--multi .choreography-popups__qr {
  width: min(5.25rem, 22vw);
}

.choreography-popups__qr svg {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
}

/* Overlapping cutout collage — transparent, no glow plate behind photos */
.choreography-popups__grid {
  position: relative;
  min-width: 0;
  min-height: min(58vh, 560px);
  display: block;
  overflow: hidden;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
}

/* Fabulating (and other reading-panel parts): markdown on the right */
.choreography-popups__grid--reading {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  pointer-events: auto;
}

/* Hairline before Chimera Character Guide — separates Idea/Instructions from reading */
.choreography-popups__body--reading.choreography-popups__body--split
  .choreography-popups__grid--reading {
  padding-left: clamp(0.85rem, 1.8vw, 1.35rem);
  border-left: 1px solid #000;
}

.choreography-popups__reading {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.choreography-popups__reading-body {
  margin: 0;
  padding: 0.15rem 0.35rem 1rem 0;
  max-width: 38rem;
  font-family: var(--font-choreography-body);
  font-size: clamp(0.72rem, 0.9vw, 0.85rem);
  line-height: 1.4;
  text-align: justify;
  color: rgba(26, 24, 20, 0.88);
}

.choreography-popups__reading-body h1,
.choreography-popups__reading-body h2,
.choreography-popups__reading-body h3,
.choreography-popups__reading-body h4 {
  margin: 0 0 0.55em;
  font-family: var(--font-choreography-body);
  font-weight: 600;
  font-size: clamp(0.95rem, 1.15vw, 1.15rem);
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-align: left;
  color: #1a1814;
}

.choreography-popups__reading-body h1 {
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  margin-bottom: 0.75em;
}

.choreography-popups__reading-body h1:not(:first-child),
.choreography-popups__reading-body h2:not(:first-child),
.choreography-popups__reading-body h3:not(:first-child),
.choreography-popups__reading-body h4:not(:first-child) {
  margin-top: 1.15em;
}

.choreography-popups__reading-body p,
.choreography-popups__reading-body ul {
  margin: 0 0 0.7em;
}

.choreography-popups__reading-body p:last-child,
.choreography-popups__reading-body ul:last-child {
  margin-bottom: 0;
}

.choreography-popups__reading-body ul {
  padding-left: 1.15em;
  list-style: disc;
  text-align: left;
}

.choreography-popups__reading-body li {
  margin: 0 0 0.35em;
}

.choreography-popups__reading-body li:last-child {
  margin-bottom: 0;
}

.choreography-popups__reading-body a {
  color: inherit;
  font-style: italic;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  pointer-events: auto;
}

.choreography-popups__reading-empty {
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  max-width: 28rem;
  font-family: var(--font-choreography-body);
  font-size: clamp(0.75rem, 0.95vw, 0.9rem);
  line-height: 1.45;
  color: rgba(26, 24, 20, 0.72);
  background: rgba(255, 255, 255, 0.35);
}

/* Reflection: one question at a time — click to advance */
.choreography-popups__reading--stepper {
  justify-content: center;
  align-items: center;
}

.choreography-popups__reading--stepper .choreography-popups__reading-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: none;
  width: 100%;
  height: 100%;
  padding: 0.5rem 1rem 1.25rem;
}

.choreography-popups__question-preamble {
  display: none;
}

.choreography-popups__question-meta {
  margin: 0 0 1rem;
  font-family: var(--font-choreography-body);
  font-size: clamp(0.68rem, 0.82vw, 0.78rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(26, 24, 20, 0.55);
}

.choreography-popups__question-card {
  display: block;
  width: 100%;
  max-width: min(34rem, 100%);
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
  cursor: pointer;
  font-family: var(--font-choreography-body);
  font-size: clamp(1.55rem, 3.2vw, 2.65rem);
  font-weight: 500;
  line-height: 1.25;
  color: #1a1814;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s ease;
}

.choreography-popups__question-card:hover,
.choreography-popups__question-card:focus-visible {
  opacity: 0.72;
  outline: none;
}

.choreography-popups__question-hint {
  margin: 1.35rem 0 0;
  font-family: var(--font-choreography-body);
  font-size: clamp(0.68rem, 0.82vw, 0.78rem);
  font-style: italic;
  line-height: 1.35;
  color: rgba(26, 24, 20, 0.5);
  text-align: center;
}

.choreography-popups__body--images-only .choreography-popups__grid {
  min-height: min(70vh, 640px);
}

.choreography-popups__cell {
  --choreography-popup-delay: 0ms;
  position: absolute;
  margin: 0;
  padding: 0;
  width: 42%;
  height: auto;
  overflow: visible;
  opacity: 0;
  transform: translateY(10px);
  animation: choreography-popup-in 0.38s ease forwards;
  animation-delay: var(--choreography-popup-delay);
}

/* Default + seeding: original airy collage (pre-2d5aa07) */
.choreography-popups__cell:nth-child(1),
.choreography-popups--seeding .choreography-popups__cell:nth-child(1) {
  left: 2%;
  bottom: 4%;
  width: 44%;
  z-index: 2;
}

.choreography-popups__cell:nth-child(2),
.choreography-popups--seeding .choreography-popups__cell:nth-child(2) {
  left: 30%;
  top: 2%;
  width: 40%;
  z-index: 3;
}

.choreography-popups__cell:nth-child(3),
.choreography-popups--seeding .choreography-popups__cell:nth-child(3) {
  right: 1%;
  bottom: 8%;
  left: auto;
  width: 42%;
  z-index: 1;
}

/* Friending: vertical column — no overlap / no absolute scatter */
.choreography-popups--friending .choreography-popups__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.65rem, 1.6vh, 1.15rem);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
  height: 100%;
  padding: 0.25rem 0;
}

.choreography-popups--friending .choreography-popups__cell,
.choreography-popups--friending .choreography-popups__cell:nth-child(1),
.choreography-popups--friending .choreography-popups__cell:nth-child(2),
.choreography-popups--friending .choreography-popups__cell:nth-child(3) {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  width: min(92%, 420px);
  z-index: auto;
  flex: 0 0 auto;
}

.choreography-popups--friending .choreography-popups__cell img {
  max-height: min(26vh, 220px);
  width: 100%;
  object-position: center center;
}

/* Intro: tidy 3-column photo grid (text left / images right) */
.choreography-popups--intro .choreography-popups__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.55rem, 1.4vw, 1rem);
  align-content: start;
  align-items: start;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
  height: 100%;
  padding: 0.15rem 0;
}

.choreography-popups--intro .choreography-popups__cell,
.choreography-popups--intro .choreography-popups__cell:nth-child(1),
.choreography-popups--intro .choreography-popups__cell:nth-child(2),
.choreography-popups--intro .choreography-popups__cell:nth-child(3),
.choreography-popups--intro .choreography-popups__cell:nth-child(4),
.choreography-popups--intro .choreography-popups__cell:nth-child(n) {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  width: 100%;
  z-index: auto;
  margin: 0;
}

.choreography-popups--intro .choreography-popups__cell img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(38vh, 320px);
  object-fit: contain;
  object-position: center center;
}

/* Manifesting: one hero photo fills the right panel (cover / crop) */
.choreography-popups--manifesting .choreography-popups__grid {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
  min-height: 0;
  height: 100%;
  padding: 0;
}

.choreography-popups--manifesting .choreography-popups__cell,
.choreography-popups--manifesting .choreography-popups__cell:nth-child(1),
.choreography-popups--manifesting .choreography-popups__cell:nth-child(2),
.choreography-popups--manifesting .choreography-popups__cell:nth-child(3),
.choreography-popups--manifesting .choreography-popups__cell:only-child {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  width: 100%;
  height: 100%;
  flex: 1 1 auto;
  min-height: 0;
  z-index: auto;
  margin: 0;
  display: block;
}

.choreography-popups--manifesting .choreography-popups__cell img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center center;
}

/* Glitching (and other model parts): stacked plain 3D viewers, no AR */
.choreography-popups__grid--models,
.choreography-popups--glitching .choreography-popups__grid {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: clamp(0.65rem, 1.6vh, 1.15rem);
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
  height: 100%;
  padding: 0;
  pointer-events: none;
}

.choreography-popups__grid--models .choreography-popups__cell,
.choreography-popups__grid--models .choreography-popups__cell:nth-child(1),
.choreography-popups__grid--models .choreography-popups__cell:nth-child(2),
.choreography-popups__grid--models .choreography-popups__cell:nth-child(3),
.choreography-popups--glitching .choreography-popups__cell,
.choreography-popups--glitching .choreography-popups__cell:nth-child(1),
.choreography-popups--glitching .choreography-popups__cell:nth-child(2),
.choreography-popups--glitching .choreography-popups__cell:nth-child(3) {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  width: 100%;
  z-index: auto;
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.choreography-popups__cell--model {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.choreography-popups__model {
  display: block;
  width: 100%;
  height: 100%;
  flex: 1 1 auto;
  min-height: 0;
  background: transparent;
  border: 0;
  outline: none;
  box-shadow: none;
  pointer-events: auto;
  --poster-color: transparent;
  --progress-bar-color: rgba(26, 24, 20, 0.35);
  --progress-bar-height: 2px;
}

/* Single model: fill the entire right-column media area edge-to-edge */
.choreography-popups__grid--models
  .choreography-popups__cell--model:only-child,
.choreography-popups--glitching
  .choreography-popups__cell--model:only-child {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.choreography-popups__grid--models
  .choreography-popups__cell--model:only-child
  .choreography-popups__model,
.choreography-popups--glitching
  .choreography-popups__cell--model:only-child
  .choreography-popups__model {
  width: 100%;
  height: 100%;
  flex: 1 1 auto;
  min-height: 0;
}

.choreography-popups__cell:nth-child(n + 4) {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  width: min(42%, 220px);
  display: inline-block;
  margin: 0.5rem;
  vertical-align: middle;
}

.choreography-popups__cell img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(68vh, 520px);
  object-fit: contain;
  object-position: center bottom;
  background: transparent;
  border: 0;
  outline: none;
  box-shadow: none;
}

.site-home-projects__tile.has-choreography-media,
.site-home-projects__sidebar-row.has-choreography-media,
.workshop-choreography-menu__item.has-choreography-media {
  cursor: pointer;
}

@keyframes choreography-popup-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  /*
   * Mobile: full-page part view (About-like), not a scroll-locked overlay.
   * Same fixed SVG shapes background (.site-bg-art) shows through.
   */
  body.choreography-popups-open {
    overflow: visible;
  }

  body.choreography-popups-open .site-bg-effects {
    z-index: 1;
  }

  /* Hide choreography landing chrome; part panel becomes the page. */
  body.choreography-popups-open .site-home-main {
    display: none;
  }

  body.choreography-popups-open .choreography-popups.is-open {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    height: auto;
    z-index: 2;
    pointer-events: auto;
    background: transparent;
  }

  /*
   * Keep backdrop (with SVG shapes) as a fixed page wash under the in-flow
   * stage; clicks still dismiss via the backdrop layer.
   */
  body.choreography-popups-open .choreography-popups__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 0;
    cursor: default;
    background-color: var(--site-bg-base, #f2f2f2);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.choreography-popups-open .site-bg-art {
    opacity: 0;
  }

  .choreography-popups__stage {
    overflow: visible;
    padding: 0.65rem var(--site-home-mobile-pad-x, 0.9rem) 2rem;
    box-sizing: border-box;
  }

  body.choreography-popups-open .choreography-popups__stage {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    overflow: visible;
    pointer-events: auto;
  }

  .choreography-popups__header {
    position: sticky;
    top: 0;
    z-index: 20;
    flex-wrap: nowrap;
    gap: 0.35rem 0.65rem;
    padding: 0.35rem 0.15rem 0.55rem;
    background: rgba(242, 242, 242, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .choreography-popups__header-end {
    flex-wrap: nowrap;
    gap: 0.35rem 0.75rem;
    margin-left: auto;
  }

  .choreography-popups__nav,
  .choreography-popups__close-all {
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.35rem 0.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .choreography-popups__nav {
    font-size: clamp(1.65rem, 7vw, 2.1rem);
  }

  .choreography-popups__close-all {
    font-size: clamp(1.25rem, 5.5vw, 1.55rem);
  }

  .choreography-popups__body {
    margin-top: 0.55rem;
    padding: 0;
    overflow: visible;
    height: auto;
    min-height: 0;
    flex: 0 0 auto;
  }

  .choreography-popups__body--split {
    grid-template-columns: 1fr;
    align-content: start;
    overflow: visible;
    gap: 1.25rem;
  }

  .choreography-popups__left {
    overflow: visible;
  }

  /*
   * Seeding + Friending + Chimering + Glitching + Manifesting mobile:
   * Title → Idea → Media → Instructions → Links.
   * Unwrap the left column so media can sit between idea and instructions.
   * Friending: one random photo via JS. Seeding/Chimering: full collage.
   * Glitching: model-viewer GLB at a fixed usable height.
   * Manifesting: single full-bleed hero.
   */
  .choreography-popups--intro .choreography-popups__body--split,
  .choreography-popups--seeding .choreography-popups__body--split,
  .choreography-popups--friending .choreography-popups__body--split,
  .choreography-popups--chimering .choreography-popups__body--split,
  .choreography-popups--glitching .choreography-popups__body--split,
  .choreography-popups--manifesting .choreography-popups__body--split {
    display: flex;
    flex-direction: column;
  }

  .choreography-popups--intro .choreography-popups__left,
  .choreography-popups--seeding .choreography-popups__left,
  .choreography-popups--friending .choreography-popups__left,
  .choreography-popups--chimering .choreography-popups__left,
  .choreography-popups--glitching .choreography-popups__left,
  .choreography-popups--manifesting .choreography-popups__left {
    display: contents;
  }

  .choreography-popups--intro .choreography-popups__title,
  .choreography-popups--seeding .choreography-popups__title,
  .choreography-popups--friending .choreography-popups__title,
  .choreography-popups--chimering .choreography-popups__title,
  .choreography-popups--glitching .choreography-popups__title,
  .choreography-popups--manifesting .choreography-popups__title {
    order: 1;
  }

  .choreography-popups--intro .choreography-popups__idea,
  .choreography-popups--seeding .choreography-popups__idea,
  .choreography-popups--friending .choreography-popups__idea,
  .choreography-popups--chimering .choreography-popups__idea,
  .choreography-popups--glitching .choreography-popups__idea,
  .choreography-popups--manifesting .choreography-popups__idea {
    order: 2;
  }

  .choreography-popups--intro .choreography-popups__grid,
  .choreography-popups--seeding .choreography-popups__grid,
  .choreography-popups--friending .choreography-popups__grid,
  .choreography-popups--chimering .choreography-popups__grid,
  .choreography-popups--glitching .choreography-popups__grid,
  .choreography-popups--manifesting .choreography-popups__grid {
    order: 3;
  }

  .choreography-popups--intro .choreography-popups__instructions,
  .choreography-popups--seeding .choreography-popups__instructions,
  .choreography-popups--friending .choreography-popups__instructions,
  .choreography-popups--chimering .choreography-popups__instructions,
  .choreography-popups--glitching .choreography-popups__instructions,
  .choreography-popups--manifesting .choreography-popups__instructions {
    order: 4;
  }

  .choreography-popups__title {
    font-size: clamp(1.2rem, 5.5vw, 1.65rem);
    word-break: break-word;
  }

  .choreography-popups__idea,
  .choreography-popups__instruction-detail,
  .choreography-popups__reading-body {
    font-size: clamp(0.85rem, 3.6vw, 0.95rem);
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .choreography-popups__instruction-title,
  .choreography-popups__instruction::before,
  .choreography-popups__instruction-text,
  .choreography-popups__tool-link {
    font-size: clamp(1rem, 4.2vw, 1.15rem);
  }

  .choreography-popups__tools--multi .choreography-popups__tool-link {
    font-size: clamp(0.92rem, 3.8vw, 1.05rem);
  }

  /* Mobile: suggested links stay; QR codes are not shown (JS also skips gen). */
  .choreography-popups__qr-row,
  .choreography-popups__qr {
    display: none;
  }

  .choreography-popups__grid {
    min-height: min(42vh, 360px);
    width: 100%;
    height: auto;
  }

  .choreography-popups__grid--reading {
    min-height: 0;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  /* Stacked full-page: horizontal hairline before Character Guide */
  .choreography-popups__body--reading.choreography-popups__body--split
    .choreography-popups__grid--reading {
    padding-left: 0;
    border-left: none;
    margin-top: 0.15rem;
    padding-top: 0.85rem;
    border-top: 1px solid #000;
  }

  .choreography-popups__reading {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .choreography-popups__reading-body {
    max-width: none;
    padding: 0 0 0.5rem;
  }

  .choreography-popups__grid--models,
  .choreography-popups--glitching .choreography-popups__grid {
    min-height: min(48vh, 400px);
    height: min(48vh, 400px);
    overflow: hidden;
  }

  .choreography-popups--manifesting .choreography-popups__grid {
    min-height: min(42vh, 360px);
    height: min(42vh, 360px);
  }

  .choreography-popups__cell img {
    max-height: min(38vh, 320px);
  }

  .choreography-popups--manifesting .choreography-popups__cell img {
    max-height: none;
  }

  /* Friending: keep vertical stack on mobile (not a 2-col grid) */
  .choreography-popups--friending .choreography-popups__grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(0.55rem, 1.4vh, 1rem);
    overflow: visible;
    min-height: 0;
    height: auto;
    padding: 0.15rem 0;
  }

  .choreography-popups--friending .choreography-popups__cell,
  .choreography-popups--friending .choreography-popups__cell:nth-child(1),
  .choreography-popups--friending .choreography-popups__cell:nth-child(2),
  .choreography-popups--friending .choreography-popups__cell:nth-child(3) {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: min(92%, 420px);
    z-index: auto;
  }

  .choreography-popups--friending .choreography-popups__cell img {
    max-height: min(26vh, 220px);
    width: 100%;
    object-fit: contain;
    object-position: center center;
  }

  /* Intro: keep 3-column photo grid on mobile */
  .choreography-popups--intro .choreography-popups__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem 0.65rem;
    overflow: visible;
    min-height: 0;
    height: auto;
    padding: 0.15rem 0;
  }

  .choreography-popups--intro .choreography-popups__cell,
  .choreography-popups--intro .choreography-popups__cell:nth-child(1),
  .choreography-popups--intro .choreography-popups__cell:nth-child(2),
  .choreography-popups--intro .choreography-popups__cell:nth-child(3),
  .choreography-popups--intro .choreography-popups__cell:nth-child(4),
  .choreography-popups--intro .choreography-popups__cell:nth-child(n) {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    z-index: auto;
  }

  .choreography-popups--intro .choreography-popups__cell img {
    max-height: min(28vh, 220px);
    width: 100%;
    object-fit: contain;
    object-position: center center;
  }

  /* Seeding + Chimering: all 3 images on one row */
  .choreography-popups--seeding .choreography-popups__grid,
  .choreography-popups--chimering .choreography-popups__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    gap: 0.55rem 0.65rem;
    overflow: visible;
    min-height: 0;
    height: auto;
    padding: 0.15rem 0;
  }

  .choreography-popups--seeding .choreography-popups__cell,
  .choreography-popups--seeding .choreography-popups__cell:nth-child(1),
  .choreography-popups--seeding .choreography-popups__cell:nth-child(2),
  .choreography-popups--seeding .choreography-popups__cell:nth-child(3),
  .choreography-popups--chimering .choreography-popups__cell,
  .choreography-popups--chimering .choreography-popups__cell:nth-child(1),
  .choreography-popups--chimering .choreography-popups__cell:nth-child(2),
  .choreography-popups--chimering .choreography-popups__cell:nth-child(3) {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    z-index: auto;
  }

  .choreography-popups--seeding .choreography-popups__cell img,
  .choreography-popups--chimering .choreography-popups__cell img {
    max-height: min(22vh, 180px);
    width: 100%;
    object-fit: contain;
    object-position: center center;
  }
}

@media (max-width: 640px) {
  .choreography-popups__stage {
    padding: 0.5rem var(--site-home-mobile-pad-x, 0.75rem) 1.5rem;
  }

  .choreography-popups__grid {
    min-height: min(40vh, 320px);
  }

  .choreography-popups__cell:nth-child(1) {
    left: 1%;
    width: 52%;
  }

  .choreography-popups__cell:nth-child(2) {
    width: 48%;
    left: 24%;
  }

  .choreography-popups__cell:nth-child(3) {
    right: 0;
    width: 50%;
  }

  .choreography-popups--friending .choreography-popups__grid {
    min-height: 0;
    height: auto;
    gap: 0.45rem;
  }

  .choreography-popups--friending .choreography-popups__cell,
  .choreography-popups--friending .choreography-popups__cell:nth-child(1),
  .choreography-popups--friending .choreography-popups__cell:nth-child(2),
  .choreography-popups--friending .choreography-popups__cell:nth-child(3) {
    width: min(94%, 420px);
  }

  .choreography-popups--friending .choreography-popups__cell img {
    max-height: min(22vh, 180px);
  }

  .choreography-popups--intro .choreography-popups__grid {
    min-height: 0;
    height: auto;
    gap: 0.45rem 0.5rem;
  }

  .choreography-popups--intro .choreography-popups__cell,
  .choreography-popups--intro .choreography-popups__cell:nth-child(1),
  .choreography-popups--intro .choreography-popups__cell:nth-child(2),
  .choreography-popups--intro .choreography-popups__cell:nth-child(3),
  .choreography-popups--intro .choreography-popups__cell:nth-child(4),
  .choreography-popups--intro .choreography-popups__cell:nth-child(n) {
    width: 100%;
  }

  .choreography-popups--intro .choreography-popups__cell img {
    max-height: min(24vh, 180px);
  }

  .choreography-popups--seeding .choreography-popups__grid,
  .choreography-popups--chimering .choreography-popups__grid {
    min-height: 0;
    height: auto;
    gap: 0.45rem 0.5rem;
  }

  .choreography-popups--seeding .choreography-popups__cell,
  .choreography-popups--seeding .choreography-popups__cell:nth-child(1),
  .choreography-popups--seeding .choreography-popups__cell:nth-child(2),
  .choreography-popups--seeding .choreography-popups__cell:nth-child(3),
  .choreography-popups--chimering .choreography-popups__cell,
  .choreography-popups--chimering .choreography-popups__cell:nth-child(1),
  .choreography-popups--chimering .choreography-popups__cell:nth-child(2),
  .choreography-popups--chimering .choreography-popups__cell:nth-child(3) {
    width: 100%;
  }

  .choreography-popups--seeding .choreography-popups__cell img,
  .choreography-popups--chimering .choreography-popups__cell img {
    max-height: min(18vh, 140px);
  }

  .choreography-popups__grid--models,
  .choreography-popups--glitching .choreography-popups__grid {
    min-height: min(44vh, 340px);
    height: min(44vh, 340px);
    gap: 0.45rem;
  }

  .choreography-popups--manifesting .choreography-popups__grid {
    min-height: min(38vh, 300px);
    height: min(38vh, 300px);
  }

  .choreography-popups__grid--models .choreography-popups__cell,
  .choreography-popups--glitching .choreography-popups__cell,
  .choreography-popups--glitching .choreography-popups__cell:nth-child(1),
  .choreography-popups--glitching .choreography-popups__cell:nth-child(2),
  .choreography-popups--glitching .choreography-popups__cell:nth-child(3) {
    width: 100%;
  }

}

@media (prefers-reduced-motion: reduce) {
  .choreography-popups,
  .choreography-popups__cell {
    transition: none;
    animation: none;
    opacity: 1;
    transform: none;
  }
}
