/* Shared content styles for the Work and Reel pages. work.html and reel.html use them on their own; the landing page
   uses the same markup on the walls of the bare room. Everything is scoped under .pg, so it can't leak into the landing.
   Palette: light paper from the bare-room render, near-black ink, burnt sand for links and marks. */
.pg {
  --paper: #F4EBDD;
  --ink: #1A120B;
  --body: #3A2E24;
  --soft: #7A6A5C;
  --rule: rgba(26, 18, 11, .14);
  --rust: #93430F;
  --screen: #1A120B;
  --f-jost: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
  --f-gs: "General Sans", "Helvetica Neue", Arial, sans-serif;
  --no: 56px;
  --gap: 24px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color: var(--body);
  font: 400 17px/1.65 var(--f-gs);
  letter-spacing: -.005em;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
.pg *, .pg *::before, .pg *::after { box-sizing: border-box; }
.pg a { color: inherit; }
.pg :focus-visible { outline: 1.5px solid var(--rust); outline-offset: 4px; border-radius: 2px; }
.pg ::selection { background: rgba(147, 67, 15, .18); }
.pg-label { margin: 0; font: 500 11px/1.3 var(--f-jost); letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }

/* ---------- title block: thin Jost title, the lede beside it ---------- */
.pg-hero { display: grid; grid-template-columns: auto minmax(0, 46ch); justify-content: space-between; align-items: end; gap: 22px 56px; padding: var(--hero-pad, clamp(36px, 8vh, 96px) 0 clamp(40px, 8vh, 80px)); }
.pg-title { margin: 0; display: flex; align-items: flex-start; font: 200 var(--title-size, clamp(72px, 12vw, 180px))/.82 var(--f-jost); letter-spacing: -.025em; text-transform: uppercase; color: var(--ink); }
.pg-title > span { display: inline-block; }
.pg-lede { margin: 0; font: 400 clamp(18px, 1.55vw, 22px)/1.5 var(--f-gs); letter-spacing: -.015em; color: var(--ink); text-wrap: pretty; }

/* entrance, replayed each time a page is shown (.play is added by script) */
.pg.play .pg-title > span { animation: pg-rise 1.1s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + .1s); }
.pg.play .pg-lede { animation: pg-fade .9s var(--ease) .45s both; }
.pg.play .pg-paper { animation: pg-up .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + .45s); }
.pg.play .pg-player, .pg.play .pg-info { animation: pg-up 1s var(--ease) both; animation-delay: .35s; }
.pg.play .pg-info { animation-delay: .55s; }
@keyframes pg-rise { from { transform: translateY(.55em); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pg-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pg-up { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- papers: a ruled list; a row opens its abstract and links ---------- */
.pg-sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.pg-sec-head .pg-label:first-child { color: var(--ink); }
.pg-list { list-style: none; margin: 0; padding: 0; }
.pg-paper { position: relative; border-bottom: 1px solid var(--rule); scroll-margin-top: 24px; }
.pg-paper::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--rust); transform: scaleX(0); transform-origin: 0 50%; transition: transform .8s var(--ease); }
.pg-paper:hover::after, .pg-paper.open::after { transform: scaleX(1); }
.pg-paper h3 { margin: 0; font: inherit; }
.pg-row { display: grid; grid-template-columns: var(--no) minmax(0, 1fr) minmax(0, 300px) 16px; column-gap: var(--gap); align-items: baseline; width: 100%; padding: clamp(20px, 3vh, 28px) 0; margin: 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pg-no { font: 500 12px/1 var(--f-jost); letter-spacing: .08em; color: var(--soft); font-variant-numeric: tabular-nums; transition: color .3s var(--ease); }
.pg-t { font: 500 clamp(18px, 1.65vw, 24px)/1.25 var(--f-gs); letter-spacing: -.02em; color: var(--ink); text-wrap: balance; transition: transform .7s var(--ease), color .3s var(--ease); }
.pg-venue { font: 500 11px/1.55 var(--f-jost); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); text-wrap: balance; }
.pg-plus { position: relative; width: 14px; height: 14px; align-self: center; }
.pg-plus::before, .pg-plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: var(--ink); transition: transform .5s var(--ease); }
.pg-plus::after { transform: rotate(90deg); }
.pg-paper.open .pg-plus::after { transform: rotate(0deg); }
.pg-row:hover .pg-t, .pg-row:focus-visible .pg-t { transform: translateX(10px); color: var(--rust); }
.pg-row:hover .pg-no, .pg-paper.open .pg-no { color: var(--rust); }

.pg-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.pg-paper.open .pg-panel { grid-template-rows: 1fr; }
.pg-panel-in { min-height: 0; overflow: hidden; }
.pg-detail { margin-left: calc(var(--no) + var(--gap)); padding: 0 0 clamp(28px, 5vh, 44px); max-width: 64ch; opacity: 0; transform: translateY(-8px); transition: opacity .4s var(--ease), transform .7s var(--ease); }
.pg-paper.open .pg-detail { opacity: 1; transform: none; transition-delay: .15s; }
.pg-detail p { margin: 0 0 14px; }
.pg-authors { font-size: 14.5px; line-height: 1.55; color: var(--soft); }
.pg-authors strong { font-weight: 500; color: var(--ink); }
.pg-abstract { font-size: 16.5px; line-height: 1.65; color: var(--body); }
.pg-note { font-size: 12.5px; color: var(--soft); }
.pg-links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 20px !important; }
.pg-links a { font: 500 12px/1.3 var(--f-jost); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rust); padding-bottom: 2px; transition: color .3s var(--ease); }
.pg-links a:hover { color: var(--rust); }

/* ---------- the way on ---------- */
.pg-after { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: clamp(48px, 9vh, 96px); padding: 28px 0 0; border-top: 1px solid var(--ink); }
.pg-after a { font: 500 12px/1.3 var(--f-jost); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rust); padding-bottom: 2px; transition: color .3s var(--ease); }
.pg-after a:hover { color: var(--rust); }

/* ---------- reel: a 16:9 player sized to the height it has; on wide screens the title and caption sit beside it ---------- */
.pg-reel { --player-w: calc(var(--avail-h, 60vh) * 1.7778 + 28px); display: grid; gap: clamp(16px, 3vh, 30px); width: min(100%, var(--player-w)); margin: 0 auto; padding-top: var(--reel-top, clamp(28px, 6vh, 72px)); }
.pg-reel .pg-hero { padding: 0; grid-template-columns: auto; }
@media (min-width: 961px) {
  .pg-reel { --title-size: clamp(60px, min(8.5vw, 15vh), 140px); width: 100%; grid-template-columns: minmax(210px, 1fr) minmax(0, var(--player-w)); grid-template-rows: auto 1fr; column-gap: clamp(28px, 4vw, 64px); row-gap: 24px; }
  .pg-reel .pg-hero { grid-column: 1; grid-row: 1; padding-top: 14px; }
  .pg-reel .pg-player { grid-column: 2; grid-row: 1 / 3; }
  .pg-reel .pg-info { grid-column: 1; grid-row: 2; align-self: end; grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 0 0 14px; }
}
.pg-player { position: relative; margin: 0; padding: 14px; }
.pg-screen { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: var(--screen); display: grid; place-items: center; overflow: hidden; }
.pg-screen::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 70% at 50% 45%, rgba(224, 156, 78, .08), transparent 70%); }
.pg-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pg-placeholder { position: relative; display: grid; justify-items: center; gap: 14px; color: rgba(244, 235, 221, .62); font: 500 11px/1.3 var(--f-jost); letter-spacing: .16em; text-transform: uppercase; text-align: center; padding: 0 16px; }
.pg-play { width: clamp(56px, 6vw, 84px); aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(244, 235, 221, .35); display: grid; place-items: center; }
.pg-play::after { content: ""; width: 0; height: 0; margin-left: 4px; border-left: 14px solid var(--paper); border-top: 9px solid transparent; border-bottom: 9px solid transparent; opacity: .85; }
.pg-mark { position: absolute; width: 22px; height: 22px; border: 0 solid var(--rust); }
.pg-mark.tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.pg-mark.tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.pg-mark.bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.pg-mark.br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.pg-info { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 40px; align-items: baseline; padding: 0 14px; }
.pg-info p { margin: 0; max-width: 58ch; font-size: clamp(15px, 1.15vw, 17px); color: var(--body); }
.pg-inline { color: var(--ink); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--rust); transition: color .3s var(--ease); }
.pg-inline:hover { color: var(--rust); }
.pg-back { justify-self: start; font: 500 12px/1.3 var(--f-jost); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rust); padding-bottom: 2px; white-space: nowrap; transition: color .3s var(--ease); }
.pg-back:hover { color: var(--rust); }

@media (max-width: 960px) {
  .pg-hero { grid-template-columns: minmax(0, 1fr); }
  .pg-row { grid-template-columns: 36px minmax(0, 1fr) 14px; grid-template-areas: "no t plus" ". venue plus"; row-gap: 10px; column-gap: 14px; }
  .pg-no { grid-area: no; } .pg-t { grid-area: t; } .pg-plus { grid-area: plus; } .pg-venue { grid-area: venue; }
  .pg-detail { margin-left: 50px; }
}
@media (max-width: 720px) {
  .pg-title { font-weight: 300; } /* smaller on phones, so heavier strokes, like the name */
  .pg-row:hover .pg-t { transform: none; }
  .pg-player { padding: 10px; }
  .pg-info { grid-template-columns: minmax(0, 1fr); padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .pg.play .pg-title > span, .pg.play .pg-lede, .pg.play .pg-paper, .pg.play .pg-player, .pg.play .pg-info { animation: none; }
  .pg-panel, .pg-detail, .pg-t, .pg-paper::after { transition: none; }
}
