/* Exhibition v2: exact-fit spreads and open, breathing quotation pauses. */
:root {
  --ex-gap: clamp(12px, 1.3vw, 24px);
  --ex-ink: #f2ede3;
  --ex-quiet: rgba(242, 237, 227, .52);
  --ex-serif: 'Cormorant Garamond', 'Cormorant', 'EB Garamond', Georgia, 'Times New Roman', serif;
  --ex-sans: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* Spreads ------------------------------------------------------------- */
#art-grid.ex-wall {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ex-gap);
}
.ex-block {
  display: flex;
  justify-content: center;
  gap: var(--ex-gap);
  width: 100%;
  flex: none;
}
.ex-column {
  display: flex;
  flex-direction: column;
  gap: var(--ex-gap);
  flex: none;
  min-width: 0;
}
.ex-wall .art-card,
.ex-wall .art-card:nth-child(5n+2),
.ex-wall .art-card:nth-child(7n+1) {
  flex: none;
  grid-column: auto;
  aspect-ratio: auto;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 2px;
  background: var(--card-color, #090b10);
  box-shadow: 0 34px 60px -34px rgba(0, 0, 0, .95), 0 2px 6px rgba(0, 0, 0, .45);
  contain-intrinsic-size: auto 360px;
  transform: none;
  transition: border-color .5s ease, box-shadow .6s ease, transform .7s cubic-bezier(.2, .8, .2, 1), filter .6s ease;
}
.ex-wall .art-card::after,
.ex-wall .art-card.is-featured::after {
  inset: 0;
  border: 0;
  border-image: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
  opacity: 1;
  filter: none;
}
.ex-wall .art-card:hover,
.ex-wall .art-card:focus-visible {
  z-index: 5;
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, .34);
  box-shadow: 0 44px 80px -36px #000, 0 0 60px -28px var(--card-color, rgba(255, 255, 255, .4));
}
.ex-wall .art-card img { object-fit: cover; }

/* Hero: the first work stands alone with room to breathe. */
.ex-block.is-hero { margin-bottom: calc(var(--ex-gap) * 1.5); }

/* Quotation pauses ---------------------------------------------------- */
.ex-pause {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  width: 100%;
  min-height: clamp(420px, 66vh, 760px);
  margin: calc(var(--ex-gap) * 1.5) 0;
  padding: clamp(80px, 13vh, 160px) clamp(8px, 5vw, 80px);
  color: var(--ex-ink);
  background: none;
  scroll-margin-top: 10vh;
}
.ex-pause::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 8% 12%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--glow, #7fc8d8) 30%, transparent), transparent 68%);
  filter: blur(46px);
  opacity: 0;
  transition: opacity 3s ease;
  pointer-events: none;
}
.ex-pause.is-visible::before { opacity: .5; }
.ex-pause figure {
  margin: 0;
  width: min(100%, 940px);
  justify-self: center;
  text-align: center;
}
.ex-pause.is-short figure { width: min(100%, 1080px); }
.ex-pause[data-align="left"] figure { justify-self: start; margin-left: clamp(0px, 6vw, 110px); text-align: left; }
.ex-pause[data-align="right"] figure { justify-self: end; margin-right: clamp(0px, 6vw, 110px); text-align: right; }
.ex-pause blockquote { margin: 0; }

.ex-quote-text {
  margin: 0;
  font-family: var(--ex-serif);
  font-weight: 400;
  color: var(--ex-ink);
  letter-spacing: -.012em;
  text-wrap: balance;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
}
.ex-pause.is-short .ex-quote-text { font-size: clamp(36px, 5.4vw, 92px); line-height: 1.04; font-style: italic; font-weight: 300; }
.ex-pause.is-medium .ex-quote-text { font-size: clamp(29px, 3.6vw, 60px); line-height: 1.14; }
.ex-pause.is-long .ex-quote-text { font-size: clamp(25px, 2.75vw, 46px); line-height: 1.24; }
.ex-mark {
  color: color-mix(in srgb, var(--glow, #cfe6ea) 40%, #fff);
  opacity: .62;
}
.ex-word:first-child .ex-mark { margin-right: .04em; }

.ex-word {
  display: inline-block;
  opacity: 0;
  filter: blur(9px);
  transform: translateY(.3em);
  transition:
    opacity 1.1s cubic-bezier(.2, .7, .2, 1),
    filter 1.3s cubic-bezier(.2, .7, .2, 1),
    transform 1.3s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 75ms + 250ms);
}
.ex-pause.is-visible .ex-word { opacity: 1; filter: none; transform: none; }

.ex-ornament {
  display: block;
  width: 30px;
  height: 30px;
  margin: 0 auto clamp(30px, 4vw, 50px);
  color: color-mix(in srgb, var(--glow, #cfe6ea) 50%, #fff);
  opacity: 0;
  transform: rotate(-45deg) scale(.6);
  transition: opacity 1.6s ease, transform 3s cubic-bezier(.2, .8, .2, 1);
}
.ex-pause[data-align="left"] .ex-ornament { margin-left: 0; }
.ex-pause[data-align="right"] .ex-ornament { margin-right: 0; }
.ex-pause.is-visible .ex-ornament { opacity: .75; transform: none; }
.ex-ornament svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; }

.ex-attribution {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: clamp(30px, 3.6vw, 50px);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1.4s ease 1.5s, transform 1.4s ease 1.5s;
}
.ex-pause[data-align="left"] .ex-attribution { align-items: flex-start; }
.ex-pause[data-align="right"] .ex-attribution { align-items: flex-end; }
.ex-pause.is-visible .ex-attribution { opacity: 1; transform: none; }
.ex-attribution::before {
  content: '';
  width: 34px;
  height: 1px;
  margin-bottom: 8px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
}
.ex-attribution-name {
  font: 500 11px/1.2 var(--ex-sans);
  letter-spacing: .34em;
  text-transform: uppercase;
  color: rgba(242, 237, 227, .86);
  padding-left: .34em;
}
.ex-attribution-source,
.ex-pause .ex-attribution-source {
  font: italic 400 16px/1.4 var(--ex-serif);
  letter-spacing: .01em;
  color: var(--ex-quiet);
  text-decoration: none;
  transition: color .3s ease;
}
.ex-attribution-source:hover,
.ex-attribution-source:focus-visible { color: var(--ex-ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Citation numbers --------------------------------------------------- */
.ex-cite {
  position: relative;
  top: -.78em;
  margin-left: .16em;
  font: 500 clamp(13px, .42em, 18px)/1 var(--ex-sans);
  letter-spacing: .02em;
  color: color-mix(in srgb, var(--glow, #cfe6ea) 35%, #fff);
  opacity: .78;
  vertical-align: baseline;
  font-style: normal;
  text-decoration: none;
}
a.ex-cite:hover, a.ex-cite:focus-visible { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

/* The final passage, then the reveal ---------------------------------- */
.ex-final-passage {
  min-height: 92vh;
  margin-top: calc(var(--ex-gap) * 3);
}
.ex-final-passage.is-visible::before { opacity: .7; }
.ex-final-passage figure { width: min(100%, 1000px); }
.ex-final-passage .ex-quote-text { font-size: clamp(32px, 4.3vw, 74px); line-height: 1.12; font-weight: 300; }
.ex-final-passage .ex-word { transition-delay: calc(var(--i, 0) * 120ms + 400ms); }
.ex-final-passage .ex-ornament { width: 44px; height: 44px; transition-duration: 2s, 5s; }
.ex-final-passage.is-visible .ex-ornament { opacity: .9; }

.ex-reveal {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  width: 100%;
  padding: clamp(40px, 8vh, 90px) 0 clamp(60px, 10vh, 120px);
  color: var(--ex-ink);
  text-align: center;
}
.ex-reveal-head {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 86vh;
  width: 100%;
  position: relative;
}
.ex-reveal-head::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 10% 8%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--glow, #7fc8d8) 34%, transparent), transparent 66%);
  filter: blur(60px);
  opacity: 0;
  transition: opacity 4s ease 1.2s;
}
.ex-reveal-head.is-visible::before { opacity: .65; }
.ex-reveal-name {
  margin: 0;
  font: 300 clamp(48px, 8.4vw, 148px)/.95 var(--ex-serif);
  letter-spacing: -.02em;
  color: var(--ex-ink);
  opacity: 0;
  filter: blur(14px);
  transform: scale(.97);
  transition: opacity 2.6s ease .3s, filter 3s ease .3s, transform 4s cubic-bezier(.2, .8, .2, 1) .3s;
}
.ex-reveal-dash { font-weight: 300; opacity: .55; margin-right: .08em; }
.ex-reveal-head.is-visible .ex-reveal-name { opacity: 1; filter: none; transform: none; }
.ex-reveal-years {
  margin: clamp(26px, 3vw, 40px) 0 0;
  font: 500 11px/1.6 var(--ex-sans);
  letter-spacing: .32em;
  color: var(--ex-quiet);
  opacity: 0;
  transition: opacity 2s ease 2.6s;
}
.ex-reveal-head.is-visible .ex-reveal-years { opacity: 1; }
.ex-reveal-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 4px;
  width: min(100%, 860px);
  margin: clamp(40px, 6vh, 70px) 0 0;
  padding: 0;
  list-style: none;
}
.ex-reveal-numbers li { position: relative; }
.ex-reveal-numbers a {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 6px;
  border-radius: 999px;
  font: 400 clamp(17px, 1.5vw, 21px)/1 var(--ex-serif);
  color: rgba(242, 237, 227, .78);
  text-decoration: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1s ease, transform 1s ease, color .3s ease, background-color .3s ease;
  transition-delay: calc(var(--n, 0) * 60ms + 3.4s), calc(var(--n, 0) * 60ms + 3.4s), 0s, 0s;
}
.ex-reveal-head.is-visible .ex-reveal-numbers a { opacity: 1; transform: none; }
.ex-reveal-numbers a:hover,
.ex-reveal-numbers a:focus-visible { color: #fff; background: rgba(255, 255, 255, .08); }
.ex-tip {
  position: absolute;
  z-index: 20;
  bottom: calc(100% + 10px);
  left: 50%;
  display: grid;
  gap: 10px;
  width: min(340px, 80vw);
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px;
  background: rgba(6, 8, 11, .94);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity .25s ease, transform .25s ease;
}
.ex-reveal-numbers li:hover .ex-tip,
.ex-reveal-numbers li:focus-within .ex-tip { opacity: 1; transform: translate(-50%, 0); }
.ex-tip-quote { font: italic 400 17px/1.35 var(--ex-serif); color: var(--ex-ink); }
.ex-tip-source { font: 500 10.5px/1.5 var(--ex-sans); letter-spacing: .08em; color: var(--ex-quiet); }

.ex-return { margin-top: clamp(30px, 6vh, 80px); }

.ex-sources {
  width: min(100%, 760px);
  margin-top: clamp(80px, 12vh, 140px);
  font: 13px/1.6 var(--ex-sans);
  color: var(--ex-quiet);
  text-align: left;
}
.ex-sources summary {
  width: max-content;
  margin: 0 auto;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  font: 500 10.5px/1 var(--ex-sans);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(242, 237, 227, .7);
  cursor: pointer;
  list-style: none;
  transition: border-color .3s ease, color .3s ease;
}
.ex-sources summary::-webkit-details-marker { display: none; }
.ex-sources summary:hover,
.ex-sources[open] summary { border-color: rgba(255, 255, 255, .32); color: var(--ex-ink); }
.ex-sources ol { margin: 44px 0 0; padding: 0; list-style: none; counter-reset: source; }
.ex-sources li { display: grid; grid-template-columns: 28px auto 1fr; align-items: start; gap: 16px; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.ex-sources li > div { display: grid; gap: 6px; min-width: 0; }
.ex-sources li img { width: 96px; height: auto; border-radius: 2px; border: 1px solid rgba(255, 255, 255, .08); }
.ex-sources p { margin: 0; font-size: 12px; line-height: 1.55; color: rgba(242, 237, 227, .42); }
.ex-source-number { font: 400 18px/1.3 var(--ex-serif); color: rgba(242, 237, 227, .55); text-align: right; }
.ex-read-again { margin-top: 42px; font: italic 400 17px/1.4 var(--ex-serif); color: var(--ex-quiet); text-decoration: none; }
.ex-read-again[href]:hover, .ex-read-again[href]:focus-visible { color: var(--ex-ink); text-decoration: underline; text-underline-offset: 4px; }

/* Curate mode -------------------------------------------------------- */
.ex-cell { position: relative; flex: none; }
.ex-cell .art-card { display: block; }
.ex-cell.is-cut .art-card { opacity: .22; filter: grayscale(1); }
.ex-cell.is-best .art-card { outline: 2px solid #f4d48c; outline-offset: 3px; }
.curate-tools { position: absolute; z-index: 6; left: 8px; right: 8px; top: 8px; display: flex; align-items: center; gap: 6px; pointer-events: none; }
.curate-number { margin-right: auto; padding: 5px 9px; border-radius: 999px; background: rgba(0, 0, 0, .72); font: 600 12px/1 var(--ex-sans); letter-spacing: .03em; color: #fff; }
.curate-tools button { pointer-events: auto; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; background: rgba(0, 0, 0, .66); color: rgba(255, 255, 255, .8); font-size: 15px; cursor: pointer; }
.curate-tools .curate-best[aria-pressed="true"] { background: #f4d48c; border-color: #f4d48c; color: #111; }
.curate-tools .curate-cut[aria-pressed="true"] { background: #d9615a; border-color: #d9615a; color: #fff; }
.curate-bar { position: fixed; z-index: 40; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; max-width: calc(100vw - 24px); padding: 8px 10px 8px 18px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 30px; background: rgba(5, 7, 9, .9); backdrop-filter: blur(18px); box-shadow: 0 16px 50px rgba(0, 0, 0, .6); font: 13px/1 var(--ex-sans); color: var(--ex-ink); }
.curate-count b { font-weight: 600; }
.curate-bar button { min-height: 36px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: rgba(255, 255, 255, .05); color: var(--ex-ink); font: inherit; cursor: pointer; }
.curate-bar button[aria-pressed="true"] { background: rgba(255, 255, 255, .16); }
.curate-status:empty { display: none; }
.curate-status { color: #f4d48c; }
@media (max-width: 980px) { .curate-bar { bottom: auto; top: 84px; } }
.ex-sources q { font: italic 400 18px/1.4 var(--ex-serif); color: rgba(242, 237, 227, .82); }
.ex-sources a { width: max-content; max-width: 100%; color: var(--ex-quiet); text-decoration: none; font-size: 12px; letter-spacing: .02em; }
.ex-sources a:hover, .ex-sources a:focus-visible { color: var(--ex-ink); text-decoration: underline; text-underline-offset: 3px; }

.ex-signature {
  margin: clamp(90px, 14vh, 160px) 0 0;
  font: italic 300 clamp(20px, 1.8vw, 26px)/1 var(--ex-serif);
  letter-spacing: .08em;
  color: rgba(242, 237, 227, .62);
}

.load-more-shell:has(.load-more[hidden]) { margin: 0; }

/* Smaller screens ----------------------------------------------------- */
@media (max-width: 980px) {
  :root { --ex-gap: 14px; }
  .ex-pause[data-align="left"] figure { margin-left: 0; }
  .ex-pause[data-align="right"] figure { margin-right: 0; }
}
@media (max-width: 620px) {
  :root { --ex-gap: 10px; }
  .ex-pause { min-height: 58vh; padding: 72px 10px; margin: 18px 0; }
  .ex-pause[data-align] figure { justify-self: center; text-align: center; margin: 0; }
  .ex-pause[data-align] .ex-ornament { margin-left: auto; margin-right: auto; }
  .ex-pause[data-align] .ex-attribution { align-items: center; }
  .ex-pause.is-short .ex-quote-text { font-size: clamp(32px, 9.5vw, 46px); }
  .ex-pause.is-medium .ex-quote-text { font-size: clamp(26px, 7.4vw, 36px); }
  .ex-pause.is-long .ex-quote-text { font-size: clamp(22px, 6.2vw, 30px); }
  .ex-final-passage .ex-quote-text { font-size: clamp(25px, 7vw, 34px); }
  .ex-sources li { grid-template-columns: 22px 64px 1fr; gap: 10px; }
  .ex-sources li img { width: 64px; }
  .ex-tip { display: none; }
  .ex-attribution-source { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .ex-word, .ex-ornament, .ex-attribution, .ex-reveal-name, .ex-reveal-years, .ex-reveal-numbers a { opacity: 1; filter: none; transform: none; transition: none; }
}

/* Lining figures keep citation numbers unambiguous. */
.ex-cite, .ex-reveal-numbers a, .ex-source-number { font-variant-numeric: lining-nums tabular-nums; }

/* Opening: the welcome alone, a two-line play mark, then the first work. */
.ex-opening {
  /* The welcome owns the whole first screen; the first work waits just below. */
  min-height: calc(100svh - clamp(20px, 4vh, 56px));
  margin: 0 0 clamp(120px, 28vh, 340px);
  padding: clamp(60px, 14vh, 160px) clamp(8px, 4vw, 60px) clamp(60px, 10vh, 140px);
  align-content: center;
}
.ex-opening figure { position: relative; z-index: 1; }
.ex-fireflies { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ex-opening figure { width: min(100%, 1100px); }
.ex-pause.ex-opening .ex-quote-text { font-size: clamp(40px, 5vw, 86px); line-height: 1.08; font-style: italic; font-weight: 300; }
.ex-opening .ex-word { transition-delay: calc(var(--i, 0) * 110ms + 350ms); }
.ex-listen {
  position: relative; display: block; width: 210px; height: 170px; margin: clamp(110px, 20vh, 260px) auto 0;
  padding: 0; border: 0; background: none; cursor: pointer;
  opacity: 0; transition: opacity 1.6s ease 2.2s;
}
.ex-pause.is-visible .ex-listen { opacity: 1; }
.ex-line {
  position: absolute; right: 45px; top: 83px; width: 120px; height: 4px; border-radius: 4px;
  background: #f2ede3; transform-origin: 100% 50%;
  box-shadow: 0 0 18px rgba(242, 237, 227, .28);
  transition: transform .8s cubic-bezier(.65, 0, .25, 1), box-shadow .45s ease, background-color .45s ease;
}
.ex-line-a { transform: translateY(0) rotate(32deg); }
.ex-line-b { transform: translateY(0) rotate(-32deg); }
.ex-listen.is-playing .ex-line-a { transform: translateY(-20px) rotate(0deg); }
.ex-listen.is-playing .ex-line-b { transform: translateY(20px) rotate(0deg); }
.ex-listen:hover .ex-line, .ex-listen:focus-visible .ex-line {
  background: #fff; box-shadow: 0 0 26px color-mix(in srgb, var(--glow, #bfe6ff) 60%, rgba(255, 255, 255, .5));
}
.ex-listen:not(.is-playing) .ex-line { animation: ex-listen-breathe 4.2s ease-in-out 4.2s infinite; }
@keyframes ex-listen-breathe { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.3) drop-shadow(0 0 8px rgba(220, 240, 255, .4)); } }
.ex-listen:focus-visible { outline: 1px solid rgba(255, 255, 255, .5) !important; outline-offset: 6px; border-radius: 12px; }

/* Fairy elves flit out from behind the play mark and back again. */
.ex-fairy { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.ex-fairy i {
  position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 35%, rgba(255, 244, 214, .9) 45%, rgba(255, 230, 170, 0) 72%);
  box-shadow: 0 0 12px 3px rgba(255, 236, 190, .55), 0 0 26px 6px color-mix(in srgb, var(--glow, #bfe6ff) 35%, transparent);
  opacity: 0;
}
.ex-fairy i::before, .ex-fairy i::after {
  content: ''; position: absolute; top: -5px; width: 9px; height: 12px; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 70%, rgba(230, 245, 255, .75), rgba(200, 230, 255, 0) 70%);
  animation: ex-wing .18s ease-in-out infinite alternate;
}
.ex-fairy i::before { left: -8px; transform-origin: 100% 80%; }
.ex-fairy i::after { right: -8px; transform-origin: 0% 80%; }
@keyframes ex-wing { from { transform: scaleX(1) rotate(-14deg); } to { transform: scaleX(.35) rotate(10deg); } }
.ex-pause.is-visible .ex-fairy-0 i { animation: ex-fairy-a 7.5s ease-in-out 1.4s infinite; }
.ex-pause.is-visible .ex-fairy-1 i { animation: ex-fairy-b 9s ease-in-out 3.6s infinite; }
.ex-pause.is-visible .ex-fairy-2 i { animation: ex-fairy-c 8.2s ease-in-out 5.8s infinite; }
@keyframes ex-fairy-a {
  0%, 62%, 100% { opacity: 0; transform: translate(0, 0) scale(.3); }
  4% { opacity: 1; transform: translate(-30px, -40px) scale(1); }
  12% { transform: translate(-90px, -70px) scale(1); }
  22% { transform: translate(-60px, -120px) scale(.95); }
  32% { transform: translate(-110px, -40px) scale(1.05); opacity: 1; }
  44% { transform: translate(-40px, 20px) scale(1); opacity: .9; }
  56% { opacity: .6; transform: translate(-6px, 4px) scale(.5); }
}
@keyframes ex-fairy-b {
  0%, 58%, 100% { opacity: 0; transform: translate(0, 0) scale(.3); }
  5% { opacity: 1; transform: translate(40px, -30px) scale(1); }
  16% { transform: translate(100px, -90px) scale(1.05); }
  27% { transform: translate(150px, -30px) scale(1); }
  38% { transform: translate(90px, 40px) scale(.95); opacity: 1; }
  50% { opacity: .5; transform: translate(10px, 6px) scale(.5); }
}
@keyframes ex-fairy-c {
  0%, 55%, 100% { opacity: 0; transform: translate(0, 0) scale(.3); }
  6% { opacity: 1; transform: translate(10px, -50px) scale(1); }
  18% { transform: translate(-50px, -110px) scale(.9); }
  30% { transform: translate(40px, -150px) scale(1); }
  42% { transform: translate(60px, -60px) scale(1); opacity: .9; }
  52% { opacity: .5; transform: translate(4px, -4px) scale(.5); }
}
@media (prefers-reduced-motion: reduce) { .ex-listen .ex-line, .ex-fairy i { animation: none !important; } }

/* The first work arrives slowly once the visitor reaches it. */
.ex-block.ex-arrival { opacity: 0; transform: translateY(36px) scale(.985); filter: blur(10px) brightness(.55);
  transition: opacity 2.4s ease, transform 2.8s cubic-bezier(.2, .8, .2, 1), filter 2.6s ease; }
.ex-block.ex-arrival.is-visible { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { .ex-block.ex-arrival { opacity: 1; transform: none; filter: none; transition: none; } }

/* The exhibition is the experience: archive controls step aside. */
.collection-toolbar, #review-banner { display: none !important; }
#viewer-save, #viewer-aside { display: none !important; }

/* Long atlas jumps fade through black. */
.archive-main { transition: opacity .22s ease; }
body.is-jumping .archive-main { opacity: 0; transition-duration: .2s; }
@media (prefers-reduced-motion: reduce) { .ex-listen-ring { animation: none !important; } }

/* Display grade (per artwork, from js/art-grades.json). */
.art-card img, .art-card .panorama-preview img { filter: var(--grade, none); }

/* Old decorative arc reads as a glitch above the welcome. */
.light-orbit { display: none !important; }

/* The welcome stays the largest words on small screens too. */
@media (max-width: 620px) {
  .ex-pause.ex-opening .ex-quote-text { font-size: clamp(32px, 9.6vw, 44px); line-height: 1.12; }
  .ex-listen { margin-top: clamp(80px, 14vh, 150px); transform: scale(.8); }
}

/* Staggered features sit to one side, alternating, like a hung wall. */
/* Solo features sit centred: a lone offset piece reads as a broken layout. */
.ex-block[data-kind="hero"] { margin: calc(var(--ex-gap) * .75) 0; }
.ex-block[data-kind="tower"] { margin: calc(var(--ex-gap) * 1.5) 0; }
@media (max-width: 940px) { .ex-block[data-kind="feature"] { justify-content: center !important; } }

/* Launch: no downloads; the artist's links sit under the signature. */
#viewer-download { display: none !important; }
.ex-signature { margin-bottom: 0; }
.ex-links { display: flex; justify-content: center; gap: 22px; margin: 26px 0 0; }
.ex-links a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  color: rgba(242, 237, 227, .55); border: 1px solid rgba(255, 255, 255, .1);
  transition: color .3s ease, border-color .3s ease, background-color .3s ease;
}
.ex-links a:hover, .ex-links a:focus-visible { color: #fff; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .05); }
.ex-links svg { width: 17px; height: 17px; fill: currentColor; }
.ex-links .ex-link-sama svg { fill: none; stroke: #e0574f; stroke-width: 1.8; stroke-linecap: round; }
.ex-links .ex-link-sama:hover svg { stroke: #ff6a60; }
