/* A screening on the same black ground as KIP's reader. */
.reader:has(.creativity-film) .book-opening,
.reader:has(.creativity-film) .reader-rail { display: none; }
.reader:has(.creativity-film) > main { padding-top: 4.65rem; }
.creativity-film {
  --film-red: #f2675f;
  position: relative; isolation: isolate;
  display: grid; grid-template-rows: auto 1fr auto;
  min-height: calc(100svh - 4.65rem); margin-block-end: 2rem;
  background: #111010; color: #f4eee8;
  overflow: clip;
}
.creativity-film:fullscreen { min-height: 100%; overflow: auto; }
.film-image {
  position: absolute; z-index: -1; inset: 0;
  background: radial-gradient(ellipse at 73% 48%, #b8614c45, transparent 38%),
    linear-gradient(90deg, #100e0eda 0%, #100e0e85 44%, transparent 75%),
    linear-gradient(0deg, #100e0e 0%, transparent 26%),
    url("/images/screening-projector.webp") right 50% / cover no-repeat, #171210;
  animation: screening-push 21s cubic-bezier(.14,.65,.24,1) both;
}
@keyframes screening-push { from { transform: scale(1.015); } to { transform: scale(1.115); } }
.film-top, .film-dock, .film-scene { padding-inline: clamp(1rem, 6vw, 7rem); }
.film-top, .film-dock { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-block: .7rem; z-index: 1; }
.film-top { margin-top: .25rem; font-size: .81rem; background: linear-gradient(#0c0b0bdc, transparent); }
.film-top p { display: flex; flex-wrap: wrap; column-gap: .65rem; margin: 0; }
.film-top p span { color: #c3b5ad; }
.film-top .film-actions { flex-wrap: nowrap; white-space: nowrap; }
.film-progress { height: 2px; background: #fff2; position: absolute; top: 0; inset-inline: 0; }
.film-progress span { height: 100%; display: block; background: var(--film-red); transition: width .35s ease; }
.film-scene {
  min-width: 0; padding-block: clamp(1.2rem, 5vh, 4rem); align-content: center;
  display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(1rem, 4vw, 5rem);
  align-items: center;
  animation: film-enter .62s cubic-bezier(.17,.72,.25,1) both;
}
@keyframes film-enter { from { opacity: .65; transform: translateY(16px); } }
.film-copy h1 { font-size: clamp(2.5rem, 6.7vw, 8rem); font-weight: 400; letter-spacing: -.076em; line-height: .93; margin: 0 0 .25em; text-wrap: balance; color: inherit; }
.film-copy p { color: #ded0c5; font-size: clamp(.93rem, 1.4vw, 1.2rem); line-height: 1.5; max-width: 32ch; }
.film-scene-0 { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.film-scene-0 .film-copy h1 { max-width: 9ch; font-size: clamp(3rem, 9vw, 10rem); }
.film-scene-0 .film-copy p { max-width: 31ch; }
.creativity-film button, .film-actions a, .film-workbench a, .presentation-launch {
  color: #f4eee8; background: transparent; font: inherit; min-height: 42px; padding: .5rem .7rem;
  border: 1px solid #e9b8a55e; text-underline-offset: .2em; cursor: pointer;
}
.creativity-film button:hover:not(:disabled), .film-actions a:hover, .film-workbench a:hover, .presentation-launch:hover { background: #322321; }
.creativity-film button:disabled { opacity: .44; cursor: default; }
.creativity-film button:focus-visible, .creativity-film a:focus-visible, .creativity-film textarea:focus-visible, .presentation-launch:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.creativity-film .film-start { justify-self: start; border-color: var(--film-red); font-size: .91rem; }
.film-strip {
  --perforation: repeating-linear-gradient(90deg, #130f0f 0 7px, #976c62 7px 15px, #130f0f 15px 23px);
  padding: 18px 9px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px;
  background: var(--perforation) top / 100% 5px no-repeat, var(--perforation) bottom / 100% 5px no-repeat, #201616;
  border: 1px solid #c39a7775;
}
.film-cell { margin: 0; min-width: 0; background: #291b17; animation: film-expose .48s both; animation-delay: calc(var(--frame-index) * 80ms); }
@keyframes film-expose { from { filter: brightness(.6); transform: translateY(6px); } }
.film-cell svg { display: block; width: 100%; background: radial-gradient(circle at 64% 37%, #5f3d34, #2e2421 56%, #271e1b 75%); }
.film-reaction svg { background: radial-gradient(circle at 61% 38%, #815344, #352220 56%, #24191a 78%); }
.film-drawing, .film-accent { fill: none; stroke: #edc4a4; stroke-width: 1.75; }
.film-accent { stroke: var(--film-red); stroke-width: 2; }
.film-cell figcaption { font-size: .72rem; color: #dfc1b3; padding: .35rem .45rem; }
.film-caption { font-size: .86rem; color: #e6cfc6; min-height: 2.5em; }
.film-cut-choices, .film-actions, .film-dock, .film-chapters { display: flex; align-items: center; gap: .35rem; }
.film-cut-choices, .film-actions { flex-wrap: wrap; }
.film-cut-choices { margin-top: .6rem; }
.film-cut-choices button, .film-actions :is(a, button) { font-size: .78rem; }
.film-cut-choices button[aria-pressed="true"], .film-chapters button[aria-current="step"] { border-color: var(--film-red); color: #fff; }
.film-network svg { width: 100%; display: block; max-height: 11rem; }
.film-network circle { fill: #342121; stroke: #efb8a1; stroke-width: 2; }
.film-network text { text-anchor: middle; font: 22px Archivo,sans-serif; fill: #e6cfc6; }
.film-route-base, .film-route-live { fill: none; stroke-width: 2; stroke: #76544b; }
.film-route-live { stroke-width: 4; stroke: var(--film-red); stroke-dasharray: 1; animation: route-draw .75s ease both; }
@keyframes route-draw { from { stroke-dashoffset: 1; } }
.film-network p, .film-workbench p { font-size: .9rem; color: #ddc4b6; }
.film-audience { border-block: 1px solid #994f48; }
.film-audience blockquote { margin: 1rem 0; font-size: clamp(1.4rem, 3.2vw, 3rem); color: #d6bbb0; line-height: 1.05; }
.film-audience blockquote + blockquote { color: #f0dfd0; }
.film-workbench label { display: grid; gap: .5rem; }
.film-workbench textarea { width: 100%; background: #261a19; color: inherit; border: 1px solid #b58a8087; padding: .7rem; font: inherit; resize: vertical; }
.film-workbench :is(button,a) { margin-top: .6rem; font-size: .84rem; }
.film-dock { border-top: 1px solid #f5cac732; background: #0e0c0ceb; }
.film-dock > button { min-width: 42px; }
.film-chapters { min-width: 0; overflow-x: auto; flex: 1; scrollbar-width: thin; }
.film-chapters button { flex: 1 0 auto; border-color: transparent; font-size: .8rem; white-space: nowrap; }
@media (max-width: 760px) {
  .film-scene { grid-template-columns: minmax(0, 1fr); align-content: center; }
  .film-image { background-position: 65% 50%; }
  .film-scene-0 .film-copy h1 { font-size: clamp(3.6rem, 14vw, 6rem); }
  .film-copy h1 { font-size: clamp(2.7rem, 10vw, 5rem); max-width: 14ch; }
  .film-top p { display: block; }
  .film-top p span { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .creativity-film *, .creativity-film *::before { animation: none !important; transition: none !important; }
}
.presentation-launch {
  display: flex; align-items: center; justify-content: center;
  min-height: 2.5rem; font-size: .83rem; background: #161211; color: #f1e5e0;
}
.reader-actions .presentation-launch { margin-inline: .1rem; padding-inline: .6rem; }
.presentation-deck {
  position: fixed; inset: 0; margin: auto;
  padding: 0; border: 1px solid #bc91896f; background: #151212; color: #f5ede6;
  width: min(1160px, calc(100% - 2rem)); max-width: 100%; max-height: calc(100dvh - 2rem);
  font-family: Archivo, "KIP Archivo", system-ui, sans-serif;
  box-shadow: 0 22px 100px #000d;
}
.presentation-deck::backdrop { background: #080606eb; }
.presentation-deck-surface {
  min-height: min(680px, calc(100svh - 2.2rem));
  display: grid; grid-template-rows: 3px auto 1fr auto;
}
.presentation-deck progress { width: 100%; height: 3px; border: 0; appearance: none; color: #f4786d; background: #ffffff1a; }
.presentation-deck progress::-webkit-progress-bar { background: #ffffff1a; }
.presentation-deck progress::-webkit-progress-value { background: #f4786d; }
.presentation-deck progress::-moz-progress-bar { background: #f4786d; }
.presentation-deck header, .presentation-deck nav {
  padding: .75rem clamp(.8rem, 4vw, 3rem); display: flex; gap: .5rem;
  align-items: center; justify-content: space-between; border-bottom: 1px solid #c29a7c35;
}
.presentation-deck header p { margin: 0; font-size: .85rem; }
.presentation-deck nav { border: 0; border-top: 1px solid #c29a7c35; }
.presentation-deck-contents, .deck-contents {
  display: grid; grid-template-columns: 1fr 1fr; min-width: 0; gap: clamp(.5rem,2vw,2.5rem);
  padding: clamp(.9rem,4vw,3rem); align-items: center;
  background: radial-gradient(ellipse at 76% 48%, color-mix(in srgb, var(--deck-accent) 15%, #151212), #151212 64%);
}
.deck-kicker { color: #f9a294; font-size: .84rem; }
.deck-copy, .deck-canvas { min-width: 0; }
.deck-copy h2 { font: 400 clamp(1.8rem,4.8vw,4.5rem)/1 Archivo,"KIP Archivo",sans-serif; letter-spacing: -.06em; margin: .25em 0; text-wrap: balance; }
.deck-lead { max-width: 62ch; font-size: clamp(.91rem, 1.35vw, 1.1rem); line-height: 1.52; color: #e7d2c7; }
.deck-full { color: #f8b1a3; text-underline-offset: .2em; }
.deck-canvas svg { width: 100%; display: block; }
.deck-marks :is(path,circle,ellipse) { stroke: #e6bca7; fill: none; }
.deck-marks .deck-future { opacity: .22; }
.deck-marks .deck-past { opacity: .52; }
.deck-marks .deck-active { stroke: #ff8a79; }
.deck-symbol { font: 400 86px Archivo,sans-serif; fill: #f6cabd; }
.presentation-deck button, .presentation-deck select { font: inherit; min-height: 42px; padding: .35rem .7rem; color: inherit; background: #241b19; border: 1px solid #b08c7f8c; }
.presentation-deck button:disabled { opacity: .5; }
.presentation-deck select { min-width: 0; max-width: 70%; }
.presentation-deck :focus-visible { outline: 2px solid #f7d0c2; outline-offset: 2px; }
@media (max-width: 680px) {
  .deck-contents { grid-template-columns: minmax(0, 1fr); }
  .deck-canvas svg { max-height: 24svh; }
}
.film-player-controls { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin-top: .65rem; }
.film-player-controls button { font-size: .82rem; }
.film-timecode { color: #e6cfc6; font-size: .8rem; margin: 0; }
.film-cell[data-current="true"] { outline: 2px solid #f2675f; outline-offset: -2px; }
.film-shot { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: #1d1412; }
.film-shot svg { height: 100%; }
.film-shot-image {
  position: absolute; inset: 0; display: block;
  background-image: url("/images/screening-frames.webp");
  background-repeat: no-repeat; background-size: 300% auto;
  background-position: var(--shot-x, 0%) var(--shot-y, 49%);
  transition: filter .38s ease, transform 1s ease;
}
.film-reaction { --shot-x: 50%; --shot-y: 41%; }
.film-walk { --shot-x: 100%; --shot-y: 52%; }
.film-corridor { --shot-x: 100%; --shot-y: 12%; }
.film-corridor .film-shot-image { filter: brightness(.68) saturate(.74); }
.film-strip:has([data-current="true"]) .film-cell:not([data-current="true"]) .film-shot-image { filter: brightness(.57); }
.film-cell[data-current="true"] .film-shot-image { transform: scale(1.055); }
@media (prefers-reduced-motion: reduce) { .film-cell[data-current="true"] .film-shot-image { transform: none; } }
.deck-native {
  color: #eee1d9;
  --world: #e9c4ad;
  --ink: #f5ede6;
  --muted: #d6b5a8;
  --world-ink: #e6c9b7;
  margin-block: .4rem;
  min-width: 0;
  max-height: 54svh;
  overflow: auto;
  padding: .55rem .3rem .55rem 0;
  scrollbar-width: thin;
}
.deck-native svg { max-height: 31svh; }

.film-scene > :is(.film-edit, .film-network, .film-workbench, .film-audience) { min-width: 0; }
.deck-native .art-caption { color: #cdb7ac; }
@media (max-width: 430px) { .guide-bar nav { flex-wrap: wrap; } }
.creativity-film { grid-template-columns: minmax(0, 1fr); }
.film-top, .film-dock, .film-player { min-width: 0; }
.film-chapter-picker { display: none; }
@media (max-width: 760px) {
  .film-chapters { display: none; }
  .film-chapter-picker {
    display: block; flex: 1; min-width: 0; min-height: 42px;
    background: #281b1a; color: #f4eee8; border: 1px solid #e9b8a55e;
    padding-inline: .45rem; font: inherit; font-size: .85rem;
  }
  .film-top .film-actions :is(a, button) { min-height: 36px; font-size: .72rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .film-scene-1 .film-strip { animation: splice-in .6s cubic-bezier(.2,.65,.24,1) both; }
  .film-scene-2 .film-reaction .film-shot-image { animation: reaction-reveal .62s ease-out both; }
  .film-scene-5 blockquote { animation: testimony-in .52s ease-out both; }
  .film-scene-5 blockquote + blockquote { animation-delay: .2s; }
}
@keyframes splice-in { from { clip-path: inset(0 95% 0 0); } to { clip-path: inset(0); } }
@keyframes reaction-reveal { from { opacity: .3; } }
@keyframes testimony-in { from { opacity: .25; transform: translateX(12px); } }

/* Facing pages. The caption keeps its own measure while the display face takes the fold. */
@font-face{font-family:KIPDisplay;src:url(/fonts/archivo-black.ttf);font-display:swap}
.presentation-deck{background:#191917;border:0;color:#f4f1e8}
.presentation-deck header,.presentation-deck nav{background:#191917;color:#f4f1e8}
.presentation-deck .deck-contents{background:#f4f1e8;color:#191917;gap:0;padding:0;align-items:stretch}
.deck-contents .deck-copy{padding:clamp(1.2rem,3vw,3rem);align-self:center}
.deck-copy h2{font:normal clamp(2.3rem,4.2vw,4.65rem)/.95 KIPDisplay,Archivo,sans-serif;letter-spacing:-.065em;text-wrap:pretty;overflow-wrap:break-word}
.deck-copy .deck-kicker,.deck-copy .deck-full,.deck-copy .deck-lead{color:inherit}
.presentation-deck .deck-canvas{background:#191917;color:#f4f1e8;padding:clamp(1rem,2.8vw,2.8rem);align-content:center}
.presentation-deck .deck-contents[data-stock="ink"]{background:#191917;color:#f4f1e8}
.presentation-deck .deck-contents[data-stock="red"]{background:#b20b31}
.deck-contents[data-stock="ink"] .deck-canvas:not(:has(.deck-native)){background:#b20b31}
.deck-contents[data-stock="ink"] .deck-canvas:not(:has(.deck-native)) :is(.deck-future,.deck-past,.deck-active){stroke:#191917}
.deck-contents[data-stock="ink"] .deck-symbol{fill:#191917}
.presentation-deck button,.presentation-deck select{background:#191917;border-color:#8d8982}
.presentation-deck .deck-contents[data-stock="red"]{color:white}
