/* A projected, folded print of the recordings. The original text catalogue
   remains usable when the browser does not run the projection. */
body[data-page="works"] .pages { inset-inline: 0; top: var(--header); bottom: var(--footer); }
body[data-page="works"] .screen { background: #090d10; }
body[data-page="works"] .colophon { border-bottom-color: transparent; }
.works.projecting { position: relative; display: block; width: 100%; max-width: none; padding: 0; }
.works.projecting > .page-copy { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; }
.works.projecting > .page-copy > :not(h1) { display: none; }
.projection-field { position: relative; isolation: isolate; height: clamp(22rem,56dvh,48rem); overflow: hidden;
  background: #080b10; touch-action: pan-y; cursor: grab; user-select: none; }
.projection-field[data-dragging] { cursor: grabbing; }.projection-field:focus { outline: 0; }
.projection-field:focus-visible { box-shadow: inset 0 0 0 2px #e4d1ad; }
.projection-field:focus-visible::after { content: ''; pointer-events: none; position: absolute; inset: 2px; border: 1px solid #e4d1ad; }
.projection-fallback,.projection-canvas,.projection-shade { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.projection-fallback { background-position: center; background-size: cover; filter: brightness(.55); }
.projection-shade { background: linear-gradient(0deg,#090d10 0%,rgb(7 10 15/.72) 13%,transparent 50%,rgb(3 7 12/.2) 89%,rgb(6 9 12/.63)),
  linear-gradient(100deg,rgb(5 7 12/.34),transparent 45%); }
.projection-tools { position: absolute; z-index: 2; inset: .65rem var(--gutter) auto; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.passage-label { font: italic 400 clamp(1.5rem,2.2vw,2.7rem)/1 var(--serif); color: #f5efe3; text-shadow: 0 1px 8px #030509; }
.projection-tools button,#close-index { pointer-events: auto; display: inline-flex; align-items: center; gap: .65rem; min-height: 44px;
  background: #080b10dc; color: var(--paper); border: 1px solid #bdb2a280; padding: .25rem .78rem; font: .87rem var(--sans); cursor: pointer; }
.projection-tools i { font: 1.2rem var(--mono); }
.projection-caption { position: absolute; z-index: 1; bottom: .4rem; left: var(--gutter); right: var(--gutter); pointer-events: none; }
#projection-forces { margin: 0 0 .55rem .18rem; color: #e7ddce; font: .82rem/1.5 var(--mono); text-shadow: 0 1px 8px #070909; }
#projection-title { margin: 0; max-width: 23ch; font: 400 clamp(4.1rem,8.4vw,10rem)/.93 var(--serif); letter-spacing: -.045em; color: #f3eddf; text-wrap: balance; text-shadow: 0 1px 15px #03050944; }
#projection-title[data-long] { font-size: clamp(3.5rem,6.35vw,7.8rem); }
.projection-console { margin: .9rem var(--gutter) 0; display: grid; grid-template-columns: minmax(9.8rem, .37fr) minmax(0,1.63fr); align-items: center; gap: 1.1rem; }
.strip-heading { display: grid; gap: .3rem; font: .83rem/1.3 var(--sans); color: var(--paper); }
#strip-position { font: .75rem var(--mono); color: #aaa89b; }
.projection-strip { display: flex; align-items: stretch; height: 43px; position: relative; isolation: isolate; }
.projection-strip button { flex: 1 1 0; min-width: 0; border: 0; border-radius: 0; padding: 0; color: var(--paper); background: transparent; position: relative; cursor: pointer; }
.projection-strip span { position: absolute; inset: 0 -3px; transform: skewX(-12deg) scaleY(.57); background-size: cover; background-position: 50% 45%;
  filter: grayscale(.5) brightness(.59); border-left: 1px solid #080b0f; transition: transform .22s ease, filter .22s ease; }
.projection-strip button[aria-pressed="true"] span, .projection-strip button:hover span { transform: skewX(-12deg) scaleY(.94); filter: none; }
.projection-strip button[aria-pressed="true"]::after { position: absolute; content: ''; width: 1.25rem; height: 2px; left: 50%; bottom: -3px; translate: -50%; background: #e3d3af; }
.programme-leaf { display: grid; grid-template-columns: minmax(0,1.24fr) minmax(0,.76fr); align-items: start; gap: .85rem clamp(2rem,6vw,7rem);
  padding: clamp(1.1rem,2.2vw,2.2rem) var(--gutter) 1.4rem; }
.programme-leaf > p { margin: 0; max-width: 60ch; font: 400 clamp(1.22rem,1.6vw,1.9rem)/1.32 var(--serif); color: #d5d2c7; text-wrap: pretty; }
.programme-leaf > p a { color: inherit; text-underline-offset: .18em; }
.programme-leaf .work-actions { grid-column: 2; grid-row: 1; margin: 0; align-items: start; justify-content: flex-end; }
.programme-leaf .paired-readings,.programme-leaf .film-strip { width: 100%; max-width: 34rem; margin: 0; grid-column: 1; grid-row: 2; }
.programme-leaf .work-actions a { min-height: 42px; }
.works.projecting .film-mount { display: none; }
body[data-closing-print] .works.projecting .film-mount { position: absolute; display: block; z-index: 1; top: 1rem; right: 21%; width: clamp(8rem,18vw,17rem);
  aspect-ratio: 1; pointer-events: none; background: none; }
body[data-closing-print] .works.projecting .film-mount::before { display: none; }
#title-index { width: min(48rem,calc(100vw - 2rem)); max-height: 88dvh; padding: clamp(1rem,3vw,2.8rem);
  border: 1px solid #817c6a; background: #101617; color: var(--paper); overflow: auto; }
#title-index::backdrop { background: #03070cf2; }.index-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.index-heading h2 { margin: 0; font: 400 clamp(2.8rem,5vw,4.4rem)/1 var(--serif); letter-spacing: -.04em; }
#index-filters { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.2rem 0 .7rem; }
#index-filters button { min-height: 40px; color: var(--muted); border: 0; padding: 0; background: transparent; cursor: pointer; font: .88rem var(--sans); }
#index-filters button[aria-pressed="true"] { color: #f3e4c9; text-decoration: underline; text-underline-offset: .3em; }
#index-titles { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.4rem; }
#index-titles button { min-height: 3.1rem; border: 0; border-top: 1px solid var(--hairline); padding: .55rem 0; background: transparent; color: var(--paper); text-align: left; font: 1.3rem/1.15 var(--serif); cursor: pointer; }
#index-titles button[aria-pressed="true"] { color: #ebcf9d; font-style: italic; }
.index-spotify { display: inline-flex; align-items: center; min-height: 44px; margin-top: .6rem; color: var(--muted); font: .92rem var(--sans); text-underline-offset: .3em; }
@media(max-width:740px) {
  .projection-field { height: clamp(19rem,52dvh,32rem); }.projection-caption { bottom: .35rem; }
  #projection-title { font-size: clamp(3.6rem,14.7vw,6.5rem); }#projection-title[data-long] { font-size: clamp(3rem,11.7vw,5.3rem); }
  #projection-forces { font-size: .76rem; margin-bottom: .45rem; }
  .projection-console { display: flex; flex-flow: column; gap: .24rem; align-items: stretch; margin-top: .65rem; }
  .strip-heading { display: flex; justify-content: space-between; align-items: center; }.projection-strip { height: 42px; }
  .programme-leaf { display: flex; flex-direction: column; gap: 1rem; padding-top: 1rem; }
  .programme-leaf .work-actions { justify-content: start; }
}
@media(max-height:520px) and (min-width:600px) { .projection-field { height: 62dvh; min-height: 15rem; } }
@media(prefers-reduced-motion:reduce) { .projection-strip span { transition: none; } }
/* The same split is drawn on the live plates and the low-power film proof. */
.lift-link { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: .82rem; min-height: 44px;
  color: #d0caba; text-decoration: none; font: .82rem/1.35 var(--sans);
  left: var(--gutter); bottom: calc(max(12px,(var(--footer) - 44px)/2) + env(safe-area-inset-bottom,0px));
  text-shadow: 0 1px 8px #02050a; }
.lift-link span { height: 25px; width: 16px; position: relative; }
.lift-link span::before,.lift-link span::after { content:''; position:absolute; inset-block: 1px; width: 5px; border: 1px solid #c8c5b3; transform: skew(-14deg); }
.lift-link span::before { left:0; border-right:0; }.lift-link span::after { right:0; border-left:0; }
.lift-link:hover { color:white; }
body:not([data-page="film"]) .lift-link { display:none; }
.observation .aperture-view { display:none; inset: 12%; width: 76%; height: 76%; border-radius: 50%; pointer-events:none; }
.film-stage[data-parting] .aperture-view { display:block; background: url(assets/work-the-magical-forest.webp) 46% center/cover;
  opacity: var(--opening); filter: brightness(.77); mask-image: radial-gradient(ellipse,#000 30%,#000b 53%,transparent 72%); }
.observation .lift-proof { display:none; pointer-events:none; }
.film-stage[data-proof] .lift-proof { display:block; visibility:visible; }
.film-stage[data-proof] .observation :is(.poster,#planet,#print) { visibility:hidden; }
@media(prefers-reduced-motion:no-preference) {
  body[data-page="film"] .observation,body[data-page="film"] .observation[data-renderer] { pointer-events:auto; touch-action:none; user-select:none; cursor: grab; }
  body[data-page="film"] .observation[data-held] { cursor:grabbing; }
}
@media(prefers-reduced-motion:reduce) {
  .lift-link span { display:none; }
}
/* The portrait and correspondence occupy different cuts through the same object. */
body:is([data-page="biography"],[data-page="contact"]) .pages { top:var(--header); bottom:var(--footer); }
.page:is(.biography,.contact) { width:100%; max-width:none; position:relative; isolation:isolate; overflow:hidden;
  display:grid; grid-template-columns:minmax(0,1.03fr) minmax(0,.97fr); gap:0; padding:0 var(--gutter); align-items:center; }
.page:is(.biography,.contact) .study { z-index:-1; position:absolute; inset:0; width:100%; height:100%; max-width:none; aspect-ratio:auto; box-shadow:none;
  background-repeat:no-repeat; order:initial; grid-area:auto; }
.biography .study { background:linear-gradient(90deg,transparent 19%,#0a101175 43%,#0b1011 65%),url(assets/study-biography.webp) 3% 42%/71% auto no-repeat,#0b1011; }
.biography .study::before,.biography .study::after { content:''; position:absolute; inset:0; background:url(assets/study-biography.webp) -5% 46%/78% auto no-repeat; }
.biography .study::before { clip-path:polygon(19% 0,24% 0,15% 100%,11% 100%); filter:brightness(1.55) saturate(.55); }
.biography .study::after { clip-path:polygon(32% 0,34% 0,26% 100%,23% 100%); filter:brightness(.6); }
.biography .page-copy { grid-area:1/2; padding:2.1rem 0 2.1rem 1.4rem; max-width:44rem; }
.page.biography h1,.page.contact h1 { font-size:clamp(4rem,7.6vw,9.2rem); font-style:italic; letter-spacing:-.045em; margin-bottom:1.7rem; }
.contact .page-copy { grid-area:1/1; padding:2.25rem 1.5rem 2.25rem 0; }
.contact .study { background:linear-gradient(90deg,#0c1011 0%,#0c1011 36%,transparent 71%),url(assets/study-contact.webp) 113% 55%/66% auto no-repeat,#0c1011; }
.contact .study::after { content:''; position:absolute; inset:0; background:url(assets/study-contact.webp) 116% 51%/68% auto no-repeat; clip-path:polygon(81% 0,86% 0,73% 100%,69% 100%); filter:brightness(1.6); }
.contact .form-intro { margin-bottom:1.35rem; }.contact .send { background:transparent; color:var(--paper); border:0; border-bottom:1px solid #b1a690; padding:.5rem 0; font:italic 1.45rem var(--serif); }
@media(max-width:740px) {
  .lift-link { max-width:calc(100% - 9rem); font-size:.8rem; }
  .page:is(.biography,.contact) { display:flex; justify-content:flex-start; align-items:stretch; min-height:100%; padding:0 var(--gutter) 1.8rem; }
  .biography .page-copy,.contact .page-copy { padding:0; max-width:100%; }
  .biography .page-copy { padding-top:clamp(12rem,34dvh,20rem); }
  .biography .study { background:linear-gradient(0deg,#0b1011 0%,#0b1011 37%,transparent 75%),url(assets/study-biography-wide.webp) top center/auto max(45dvh,15rem) no-repeat,#0b1011; }
  .biography .study::before,.biography .study::after { background-image:url(assets/study-biography-wide.webp); background-size:auto max(45dvh,15rem); background-position:43% top; height:max(37dvh,13rem); mask-image:linear-gradient(#000 55%,transparent); }
  .contact .page-copy { padding-top:2.5rem; }.contact .study { background:linear-gradient(90deg,#0c1011 7%,#0c1011c9 62%,#0c10116b),url(assets/study-contact.webp) right top/auto 74% no-repeat,#0c1011; }
  .contact .study::after { display:none; }.contact #enquiry { max-width:32rem; }
}
.projection-field { background: #090d10; }
.projection-field.lit .projection-fallback { filter: blur(32px) saturate(.7); opacity: .105; }
.projection-field.lit .projection-shade { background:linear-gradient(0deg,#090d10 0%,rgb(7 10 15/.61) 13%,transparent 43%),
  linear-gradient(100deg,rgb(5 7 12/.23),transparent 35%); }
.projection-field:focus-visible::after { border:0; }
.projection-field:focus-visible .passage-label { text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:.25em; }
@media(min-width:741px) {
  .projection-field { height:clamp(22rem,57dvh,48rem); }
  .projection-tools { top:.15rem; }
}
@media(max-width:740px) {
  .contact .study { background:linear-gradient(90deg,#0c1011 6%,#0c1011a8 57%,#0c101120),url(assets/study-contact.webp) 122% -3rem/auto 91% no-repeat,#0c1011; }
}
.lift-link b { font-weight:400; }.lift-link .still-instruction { display:none; }
@media(prefers-reduced-motion:reduce) {
  .lift-link .lift-instruction { display:none; }.lift-link .still-instruction { display:inline; }
}
/* The official moving image takes the middle plane; its printed sleeve turns
   out into the wings. The video and all of its own controls remain intact. */
#record-player { isolation:isolate; width:100vw; height:100dvh; max-width:none; max-height:none; margin:0; box-sizing:border-box; border:0;
  padding:clamp(1rem,3.4dvh,3rem) max(1.25rem,var(--gutter)); background: #070a0c; }
#record-player[open] { display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:auto 1fr auto auto; align-content:center; }
#record-player::before,#record-player::after { content:''; z-index:-1; pointer-events:none; position:fixed; inset:7dvh 0; background-image:var(--sleeve);
  background-repeat:no-repeat; background-size:cover; filter:saturate(.68) brightness(.52); }
#record-player::before { background-position:23% center; clip-path:polygon(0 14%,18% 1%,11% 83%,3% 100%,0 92%); }
#record-player::after { background-position:80% center; clip-path:polygon(90% 12%,100% 0,100% 82%,84% 99%); }
#record-player .record-dialog-head,#record-player .record-links,#record-player .record-versions { width:min(100%,calc((100dvh - 12.5rem) * 1.7778),74rem); justify-self:center; }
#record-player .record-dialog-head { align-self:end; padding-bottom:.8rem; }
#record-player .record-dialog-head h2 { font-size:clamp(2rem,3.6vw,4.2rem); }
#record-player #record-video { width:min(100%,calc((100dvh - 12.5rem) * 1.7778),74rem); align-self:center; justify-self:center; position:relative; box-shadow:0 0 0 1px #bcb8aa35,0 12px 70px #0009; }
#record-player .record-links { align-self:start; }#record-player .record-versions { margin-top:.55rem; }
@media(max-width:740px) and (orientation:portrait) {
  #record-player { padding: max(2rem,env(safe-area-inset-top)) 1rem max(2rem,env(safe-area-inset-bottom)); }
  #record-player[open] { grid-template-rows:1fr auto auto 1fr; }
  #record-player::before { inset:5% 0; clip-path:polygon(0 23%,98% 4%,93% 29%,0 56%); opacity:.53; }
  #record-player::after { inset:5% 0; clip-path:polygon(0 76%,100% 54%,100% 73%,7% 98%); opacity:.48; }
  #record-player .record-dialog-head { text-shadow:0 2px 12px #000; }
  #record-player .record-links { grid-row:4; }
}
@media(max-height:520px) and (orientation:landscape) {
  #record-player { padding:.25rem var(--gutter); }
  #record-player .record-dialog-head,#record-player .record-links,#record-player .record-versions,#record-player #record-video { width:min(100%,calc((100dvh - 7rem) * 1.7778)); }
  #record-player .record-dialog-head {padding:0;}#record-player .record-dialog-head .small-type {display:none;}
  #record-player .record-dialog-head h2 {font-size:1.5rem;}#record-player .record-versions {margin:0;}
  #record-player:has(.record-versions:not([hidden])) #record-video {width:min(100%,calc((100dvh - 9.5rem) * 1.7778)); }
}
