/* Match the Mellow case-study layout and retain Muse’s exhibition color. */
.muse-main { --muse-gold: #fcaf16; }
.muse-main .mellow-lead { color: var(--legacy-accent); }
.muse-main #research .mellow-section-head { border-top: 0; padding-top: 0; }
.muse-opening { display: contents; }
.muse-jump, .muse-direct {
  display: inline-flex; align-items: center; width: fit-content; min-height: 44px;
  color: #623b07; font-size: 14px; font-weight: 600;
  text-decoration: underline; text-decoration-color: #bd7908; text-underline-offset: 5px;
}
.muse-jump { margin-top: 16px; }
.muse-direct { margin-top: 16px; }
.muse-jump:hover, .muse-direct:hover { color: #252525; }
/* Let the intro take its natural height, then fit the entire photograph below it. */
@media (min-width: 992px) {
  .muse-page .legacy-container {
    --muse-nav-height: 100px;
    --muse-opening-inset: 12px;
    margin-top: var(--muse-nav-height);
  }
  .muse-main { padding-top: var(--muse-opening-inset); }
  .muse-opening {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: max(29rem, calc(100svh - var(--muse-nav-height) - 2 * var(--muse-opening-inset)));
  }
  .muse-opening .legacy-intro { flex: none; }
  .muse-opening .legacy-back { margin-bottom: 12px; }
  .muse-opening .legacy-eyebrow { margin-bottom: 6px; }
  .muse-opening h1, .muse-opening .mellow-lead { margin-bottom: 10px; }
  .muse-opening .muse-jump { margin-top: 4px; }
  .muse-cover {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
  }
  .muse-cover img { min-height: 0; object-fit: contain; }
  .muse-cover figcaption { flex: none; }
}
.muse-main .mellow-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 820px) {
  .muse-main .mellow-facts {
    grid-template-columns: repeat(4, auto);
    justify-content: space-between;
    column-gap: 16px;
  }
}
.muse-findings { max-width: 960px; }
.muse-findings h3 { margin: 0 0 18px; }
.muse-findings ul { margin: 0; padding-inline-start: 20px; }
.muse-findings li + li { margin-top: 16px; }
.muse-survey-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr));
  gap: clamp(28px, 4vw, 48px);
}
.muse-survey-chart {
  container-type: inline-size;
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  row-gap: 16px;
}
.muse-survey-chart h3 { margin: 0; align-self: end; font-size: 18px; }
.muse-chart-body {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}
.muse-chart-body img { width: 100%; max-width: 355px; justify-self: center; }
.muse-chart-key {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 14px;
  line-height: 1.4;
}
.muse-chart-key li { display: grid; grid-template-columns: 12px 1fr auto; gap: 6px; align-items: baseline; }
.muse-chart-key li::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 1px solid #0002;
  border-radius: 50%;
  background: var(--swatch);
}
.muse-chart-key strong { font-variant-numeric: tabular-nums; font-weight: 600; }
.muse-key-purple { --swatch: #cc7bd9; }
.muse-key-aqua { --swatch: #8ed9df; }
.muse-key-gray { --swatch: #9e9e9e; }
.muse-key-pale { --swatch: #f5f7f9; }
.muse-key-gold { --swatch: #fcaf16; }
.muse-key-green { --swatch: #5ae8aa; }
@container (max-width: 26rem) {
  .muse-chart-body { grid-template-columns: minmax(0, 1fr); }
  .muse-chart-body img { max-width: 18rem; }
}
.muse-flow-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
}
.muse-flow-controls select {
  padding: 8px 10px;
  font: inherit;
  color: inherit;
  background: white;
  border: 1px solid #aaa49b;
  border-radius: 2px;
}
.muse-flow-viewport {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: auto;
  background: #f8f8f8;
}
.muse-flow-viewport img {
  width: 132%;
  max-width: none;
  height: auto;
}
.muse-flow:has(option[value="fit"]:checked) .muse-flow-viewport { aspect-ratio: auto; }
.muse-flow:has(option[value="fit"]:checked) img { width: 100%; }
.muse-flow:has(option[value="detail"]:checked) img { width: max(100%, 4400px); }
.muse-sketch-sheet { width: min(100%, 820px); margin-inline: auto; }
.muse-screen-comparison {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 240px));
  justify-content: center;
  align-items: start;
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(20px, 4vw, 46px);
  background: #f6f4f0;
}
.muse-screen-comparison img {
  aspect-ratio: 393 / 1104;
  object-fit: contain;
  object-position: top center;
  background: white;
  border: 1px solid #dfdad1;
}
.muse-art-grid { display: grid; grid-template-columns: minmax(0,.86fr) minmax(0,1.14fr); align-items: center; gap: clamp(24px,4vw,64px); }
.muse-art-grid figure { margin: 0; min-width: 0; }
.muse-main .mellow-section[id] { scroll-margin-top: 0; }
.muse-main #painting-detail { scroll-margin-top: clamp(72px, 9vw, 110px); }
.muse-main #prototype {
  display: grid; grid-template-columns: minmax(0, .68fr) minmax(0, 1.32fr);
  gap: clamp(28px, 4vw, 64px); align-items: start;
  padding-top: 28px; border-top: 1px solid #ccc;
}
#prototype .mellow-section-head { border: 0; padding: 0; }
.muse-player { width: 100%; overflow: hidden; background: #f6f4f0; border: 1px solid #ddd; }
.muse-player iframe { display: block; width: 100%; height: clamp(540px, 79vh, 860px); height: clamp(540px, 79svh, 860px); border: 0; }
.muse-viewer { position: relative; container-type: inline-size; }
.muse-painting { position: relative; isolation: isolate; width: 100%; background: #efece6; }
.muse-canvas { display: block; width: 100%; height: auto; }
.muse-viewer fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.muse-states { display: flex; gap: 4px 6px; flex-wrap: wrap; margin-top: 12px; }
.muse-hidden {
  position: absolute;
  width: 1px; height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.muse-choice {
  cursor: pointer;
  font: 600 13px/1.25 Montserrat, sans-serif;
  padding: 12px 10px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 3px solid transparent;
}
.muse-choice:hover { background: #f5f3ef; }
.muse-states input:checked + .muse-choice { border-bottom-color: #d58600; }
.muse-states input:focus-visible + .muse-choice,
.muse-flow :focus-visible { outline: 2px solid #222; outline-offset: 2px; }
.muse-detail {
  display: none;
  position: absolute;
  inset-inline: 0;
  z-index: 2;
  grid-template-columns: minmax(0, 1fr) 40%;
  align-items: center;
  background: linear-gradient(to right, rgb(0 0 0 / .83) 80%, transparent 80%);
}
.muse-viewer:has(#muse-fishing:checked) .muse-fishing,
.muse-viewer:has(#muse-brushwork:checked) .muse-brushwork,
.muse-viewer:has(#muse-monkey:checked) .muse-monkey { display: grid; }
.muse-fishing {
  top: 7.5%;
  grid-template-columns: 40% minmax(0, 1fr);
  background: linear-gradient(to left, rgb(0 0 0 / .83) 80%, transparent 80%);
  text-align: right;
}
.muse-brushwork { top: 0; }
.muse-monkey { bottom: 0; }
.muse-lens {
  grid-area: 1 / 2;
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  border: max(2px, .8cqw) solid white;
  border-radius: 50%;
}
.muse-fishing .muse-lens { grid-column: 1; }
.muse-annotation {
  grid-area: 1 / 1;
  padding: 1.5cqw 2.7cqw;
  color: white;
  font: 400 clamp(11px, 2.85cqw, 17px)/1.22 Arial, sans-serif;
}
.muse-fishing .muse-annotation { grid-column: 2; }
.muse-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 14%; aspect-ratio: 1; min-width: 44px;
  box-sizing: border-box; border: max(2px, .8cqw) solid white;
  cursor: pointer; border-radius: 50%;
}
.muse-hotspot:hover { border-color: #fcaf16; }
.muse-hotspot[for="muse-fishing"] { left: 8.65%; top: 37.5%; }
.muse-hotspot[for="muse-brushwork"] { left: 62.1%; top: 15.9%; }
.muse-hotspot[for="muse-monkey"] { left: 73.3%; top: 83.3%; }
.muse-viewer:not(:has(#muse-whole:checked)) .muse-hotspot { pointer-events: none; }
@container (max-width: 380px) {
  .muse-viewer .muse-detail { position: static; background: #24231f; text-align: left; }
  .muse-viewer .muse-lens { position: absolute; z-index: 2; width: 40%; right: 0; top: 0; }
  .muse-viewer .muse-fishing .muse-lens { left: 0; top: 5cqw; }
  .muse-viewer .muse-monkey .muse-lens { top: 26.6cqw; }
  .muse-viewer .muse-annotation { grid-column: 1 / -1; font-size: 14px; padding: 12px 14px; }
  .muse-hotspot[for="muse-fishing"] { top: 25cqw; }
  .muse-hotspot[for="muse-brushwork"] { top: 10.6cqw; }
  .muse-hotspot[for="muse-monkey"] { top: 55.5cqw; }
}
.muse-viewer figcaption { font-size: 13px; line-height: 1.5; margin: 9px 0 0; color: #514e48; }
.muse-viewer .muse-note { display: none; }
.muse-viewer:has(#muse-whole:checked) .muse-note-whole,
.muse-viewer:has(#muse-fishing:checked) .muse-note-fishing,
.muse-viewer:has(#muse-brushwork:checked) .muse-note-brushwork,
.muse-viewer:has(#muse-monkey:checked) .muse-note-monkey { display: block; }

@media (max-width: 991px) {
  .muse-main figcaption {
    max-inline-size: min(86%, 46ch);
    margin-inline: auto;
    text-wrap: balance;
  }
}
@media (max-width: 700px) {
  .muse-art-grid, .muse-main #prototype { grid-template-columns: minmax(0,1fr); }
  .muse-screen-comparison { grid-template-columns: minmax(0,270px); gap: 30px; }
  .muse-choice { padding-inline: 7px; }
  .muse-player iframe { height: clamp(440px, 80vh, 760px); height: clamp(440px, 80svh, 760px); }
}

#prototype [hidden] { display: none; }
.muse-main .muse-walk-info { margin-top: 20px; font-size: 14px; color: #56534c; }
.muse-switch { display: block; margin: 20px 0 0; padding: 9px 14px; min-height: 44px; background: white; color: #282522; border: 1px solid #aaa49b; border-radius: 2px; font: 600 13px/1.4 Montserrat, sans-serif; cursor: pointer; }
.muse-switch:hover { border-color: #6f4c10; background: #faf8f4; }
.muse-walk { min-width: 0; border: 0; margin: 0; padding: 20px clamp(12px,3vw,30px) 24px; }
.muse-walk-tabs { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 16px; }
.muse-walk-tabs input:checked + label { border-bottom-color: #b36e00; }
.muse-walk-tabs input:focus-visible + label { outline: 2px solid #222; outline-offset: 2px; }
.walk-screen { display: none; position: relative; width: min(100%,clamp(215px,32svh,340px)); aspect-ratio: 393 / 852; margin: 0 auto; overflow-x: hidden; overflow-y: auto; background: white; border: 1px solid #9c978c; scrollbar-width: thin; }
.walk-strip { position: relative; }
.walk-strip img { display: block; width: 100%; height: auto; }
.muse-walk:has(#walk-home:checked) .screen-home,
.muse-walk:has(#walk-exhibition:checked) .screen-exhibition,
.muse-walk:has(#walk-artwork:checked) .screen-artwork { display: block; }
.walk-target { position: absolute; display: block; cursor: pointer; margin: 0; }
.enter-show { left: 0; width: 100%; top: 58%; height: 30%; }
.see-artwork { left: 0; width: 100%; top: 50.7%; height: 29%; }
