/* Experience-led project pages: artwork determines its own frame. */
.case-opening,.case-article[data-kind=character] .case-opening,.case-article[data-project=pukupuku] .case-opening,.case-article[data-project=pyaco] .case-opening { display: block; }
.case-heading,.case-article[data-project=pyaco] .case-heading,.case-article[data-project=pukupuku] .case-heading,.case-article[data-kind=character] .case-heading { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); align-items: end; padding: 48px 0 32px; gap: 32px; }
.case-heading h2 { font-size: clamp(32px,4.7vw,68px); }
.case-facts,.case-article[data-kind=character] .case-facts,.case-article[data-project=pyaco] .case-facts,.case-article[data-project=pukupuku] .case-facts { margin: 0; }
.case-heading .case-lead { font-size: 17px; margin-top: 16px; }
.case-heading .case-facts { font-size: 14px; }
.case-opening>.collection,.case-opening>.live-model-section { padding-top: 0; }
.case-figures.natural-figures { display: block; background: none; padding: 0; }
.case-figures.natural-figures .art-row { display: grid; gap: 24px; align-items: start; margin-bottom: 24px; }
.natural-figures .art-row figure { min-width: 0; }
.natural-figures .art-row button { height: auto; display: block; background: none; padding: 0; }
.case-figures.natural-figures img { display: block; width: 100%; height: auto; max-height: none; aspect-ratio: auto; object-fit: initial; padding: 0; }
.case-figures.natural-figures .chapter-film { margin-block: 24px; max-width: none; }
.natural-figures .chapter-film video { width: 100%; height: auto; max-height: none; }
.collection-stage { background: none; overflow: visible; border-radius: 0; }
.collection-stage>img { width: 100%; height: auto; max-height: none; object-fit: initial; }
.collection-layout,.collection-films .collection-layout { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 40px; align-items: start; }
.collection-picker,.collection-films .collection-picker { display: flex; flex-direction: column; gap: 0; padding: 0 12px 0 0; max-height: 640px; overflow-y: auto; }
.collection-picker button,.collection-films .collection-picker button { flex: 0 0 auto; display: block; width: 100%; min-height: 48px; font-size: 17px; line-height: 1.5; border: 0; border-bottom: 1px solid var(--case-rule,var(--rule)); border-radius: 0; padding: 12px 4px; background: none; }
.collection-picker button[aria-pressed=true] { color: var(--case-accent,var(--ink)); font-weight: 700; border-bottom: 2px solid currentColor; }
.collection-picker button:hover { padding-left: 12px; }
.collection-stage iframe { width: 100%; aspect-ratio: 16/9; display: block; border: 0; border-radius: var(--radius-media); background: var(--film-paper); }
.collection-stage>video { width: 100%; height: auto; aspect-ratio: 16/9; }
.local-film,.fan-pause,.banner-pause { min-height: 44px; padding: 8px 12px; background: var(--case-paper,var(--paper)); color: var(--case-ink,var(--ink)); border: 1px solid var(--case-rule,var(--rule)); font-size: 14px; }
.local-film { margin-top: 12px; }
.card-fan { overflow: visible; }
.fan-stage { position: relative; height: clamp(460px,48vw,620px); isolation: isolate; --fan-spread: clamp(40px,6vw,88px); }
.fan-card { position: absolute; width: clamp(140px,16vw,208px); left: 50%; top: 44%; padding: 0; border: 0; background: var(--transparent); border-radius: var(--radius-media); transform-origin: center 90%; transform: translate(calc(-50% + var(--fan-slot)*var(--fan-spread)),calc(-25% + var(--fan-arc)*3px)) rotate(calc(var(--fan-slot)*7deg)); z-index: var(--fan-order); transition: transform .4s cubic-bezier(.16,1,.3,1),filter .25s ease; box-shadow: 0 12px 24px var(--book-shadow); }
.fan-card>img { width: 100%; height: auto; }
.fan-card>video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.fan-card.is-selected,.fan-card.is-selected:active:enabled { transform: translate(-50%,calc(-25% - 88px)) rotate(0) scale(1.5); z-index: 20; }
.fan-card.is-selected>video { opacity: 1; }
.fan-card:focus-visible { outline-color: var(--case-accent,var(--ink)); outline-offset: 5px; }
.fan-reading { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr) auto; gap: 24px; align-items: start; min-height: 100px; }
.fan-reading .collection-current { font: 600 clamp(22px,3vw,36px)/1.4 var(--face-body); margin: 0; }
.fan-description { margin: 0; max-width: 36em; font-size: 16px; }
.character-card-scene { perspective: 1100px; padding: 24px; }
.character-card { display: block; max-width: 440px; width: 100%; margin: auto; padding: 0; border: 0; background: none; transform-style: preserve-3d; transform: rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)); transition: transform .18s ease; }
.character-card:active:enabled { transform: rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)); }
.character-card-turn { display: block; position: relative; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.16,1,.3,1); }
.character-card.is-flipped .character-card-turn { transform: rotateY(180deg); }
.character-card-front,.character-card-back { display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: var(--radius-media); box-shadow: 0 18px 36px var(--book-shadow); }
.character-card-front { transform: translateZ(1px); }
.character-card-back { position: absolute; inset: 0; transform: rotateY(180deg) translateZ(1px); }
.character-card-front img,.character-card-back img { width: 100%; height: auto; }
.collection-characters .collection-stage { display: grid; grid-template-columns: minmax(0,1fr); }
.collection-characters .selected-character-art { width: 40%; max-width: 260px; margin: 24px auto 0; }
.fook-banner { position: relative; margin-inline: calc(-1 * var(--gutter)); }
.fook-banner video { display: block; width: 100%; height: auto; border-radius: 0; }
.banner-pause { position: absolute; right: 24px; bottom: 24px; }
.live-model-stage { height: min(72svh,760px); min-height: 420px; background: var(--case-panel,var(--project-bg)); }
.live-view-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 16px 0; }
.live-view-controls button { min-height: 44px; background: none; border: 1px solid var(--case-rule,var(--rule)); padding: 8px 16px; }
.live-view-controls label { margin-left: auto; display: flex; align-items: center; gap: 16px; font-size: 14px; }
.live-zoom { accent-color: var(--case-accent,var(--ink)); width: 180px; min-height: 44px; }
.live-zoom:focus-visible { outline: 2px solid var(--case-ink,var(--ink)); outline-offset: 4px; }
@media(max-width:700px) {
 .case-heading,.case-article[data-project=pyaco] .case-heading,.case-article[data-project=pukupuku] .case-heading,.case-article[data-kind=character] .case-heading { grid-template-columns: minmax(0,1fr); gap: 20px; padding: 28px 0 24px; }
 .case-figures.natural-figures .art-row { grid-template-columns: minmax(0,1fr) !important; gap: 20px; margin-bottom: 20px; }
 .collection-layout,.collection-films .collection-layout { grid-template-columns: minmax(0,1fr); gap: 24px; }
 .collection-picker,.collection-films .collection-picker { max-height: 288px; }
 .collection-picker button,.collection-films .collection-picker button { font-size: 16px; }
 .fan-stage { height: 400px; --fan-spread: clamp(8px,calc(6vw - 10px),16px); }
 .fan-card { width: 112px; }
 .fan-card.is-selected,.fan-card.is-selected:active:enabled { transform: translate(-50%,calc(-25% - 64px)) rotate(0) scale(1.7); }
 .fan-reading { grid-template-columns: minmax(0,1fr); gap: 12px; }
 .fan-pause { justify-self: start; }
 .character-card-scene { padding: 16px; }
 .live-model-stage { height: 64svh; min-height: 340px; }
 .live-view-controls label { width: 100%; margin: 0; justify-content: space-between; }
 .banner-pause { right: 12px; bottom: 12px; }
}
@media(prefers-reduced-motion:reduce) { .fan-card,.character-card,.character-card-turn { transition: none; } .fan-card.is-selected,.fan-card.is-selected:active:enabled { transform: translate(-50%,-25%) rotate(0); } }
.case-opening { padding: 0 0 32px; }
.fan-stage { height: clamp(480px,44vw,560px); margin-bottom: 64px; }
.fan-card.is-selected,.fan-card.is-selected:active:enabled { transform-origin: center center; transform: translate(-50%,calc(-25% - 64px)) rotate(0) scale(1.35); }
@media(max-width:700px) { .fan-stage { height: 400px; margin-bottom: 0; } .fan-card.is-selected,.fan-card.is-selected:active:enabled { transform: translate(-50%,calc(-25% - 32px)) rotate(0) scale(1.7); } }
@media(prefers-reduced-motion:reduce) { .fan-card.is-selected,.fan-card.is-selected:active:enabled { transform: translate(-50%,-25%) rotate(0); } }
