/* Role pages (on top of v2.0.css): role strip, the screening room, credits, photos */
::selection { background: rgba(201,162,91,.85); color: var(--bg); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* the ten roles, one row; scrolls sideways on a phone with the current one centred */
.role-strip { position: sticky; top: var(--hdr, 64px); z-index: 40; background: rgba(14,13,11,.96); border-bottom: 1px solid var(--line); }
.role-strip ul { list-style: none; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 3rem); max-width: 1200px; display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.role-strip ul::-webkit-scrollbar { display: none; }
.role-strip.fade-r ul { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 5rem), transparent calc(100% - 1rem)); mask-image: linear-gradient(90deg, #000 calc(100% - 5rem), transparent calc(100% - 1rem)); }
.role-strip.fade-l ul { -webkit-mask-image: linear-gradient(90deg, transparent 1rem, #000 5rem); mask-image: linear-gradient(90deg, transparent 1rem, #000 5rem); }
.role-strip.fade-l.fade-r ul { -webkit-mask-image: linear-gradient(90deg, transparent 1rem, #000 5rem, #000 calc(100% - 5rem), transparent calc(100% - 1rem)); mask-image: linear-gradient(90deg, transparent 1rem, #000 5rem, #000 calc(100% - 5rem), transparent calc(100% - 1rem)); }
.role-strip a { display: block; padding: .7rem .75rem; white-space: nowrap; color: var(--muted); font-size: 1rem; border-bottom: 2px solid transparent; }
.role-strip a:hover { color: var(--ink); }
.role-strip a[aria-current] { color: var(--gold); border-bottom-color: var(--gold); }
html { scroll-padding-top: 120px; }

.role-page main > section.role-hero { padding-top: clamp(1.6rem, 4vw, 3rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); border-top: 0; }
.role-hero h1 { font-size: clamp(2.8rem, 9vw, 5.6rem); letter-spacing: -.01em; margin: 0 0 .3rem; text-wrap: balance; }
.role-hero .claim { color: var(--muted); font-size: clamp(1.05rem, 2.2vw, 1.25rem); max-width: 38rem; margin: 0 0 clamp(1.4rem, 3vw, 2.2rem); }

/* the screening room: sized so stage + counter + title fit the first screen on a laptop */
.screen, .stage-photo { max-width: max(640px, calc((100svh - 400px) * 16 / 9)); }
.stage-img.swap { opacity: 0; }
.stage { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; box-shadow: 0 18px 50px -20px rgba(0,0,0,.8); }
.stage-img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s ease-out; }
.stage-play { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; cursor: pointer; }
.stage-play::after { content: ""; position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  background: rgba(14,13,11,.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%23f3efe6'/%3E%3C/svg%3E") center / 40px no-repeat;
  border: 1px solid rgba(243,239,230,.5); transition: background-color .2s; }
.stage-play:hover::after { background-color: rgba(201,162,91,.92); }
.stage-player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; z-index: 1; }
.stage .vnav { z-index: 2; }
.single .vnav, .single .strip { display: none; }
.now { display: flex; gap: .8rem; align-items: baseline; margin: .9rem 0 1.1rem; min-height: 1.6em; }
.count { color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: .95rem; }
.now-title { color: var(--ink); }

/* film strip */
.strip { list-style: none; margin: 0; padding: 0 0 .6rem; display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: rgba(201,162,91,.5) transparent; }
.strip::-webkit-scrollbar { height: 6px; } .strip::-webkit-scrollbar-thumb { background: rgba(201,162,91,.45); border-radius: 3px; }
.strip li { flex: 0 0 clamp(150px, 22vw, 210px); scroll-snap-align: start; }
.strip button { display: block; width: 100%; padding: 0; border: 0; background: none; color: var(--muted); text-align: left; cursor: pointer; font: inherit; }
.strip img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; border: 2px solid transparent; opacity: .72; transition: opacity .2s, border-color .2s; }
.strip span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: .4rem; font-size: .95rem; line-height: 1.35; }
.strip button:hover img { opacity: 1; }
.strip button.on img { opacity: 1; border-color: var(--gold); }
.strip button.on span { color: var(--ink); }

/* roles with no footage: the photo holds the stage */
.stage-photo { margin: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.stage-photo img { width: 100%; height: 100%; object-fit: cover; }

/* about this work */
.role-about { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); }
.role-about.has-img { grid-template-columns: minmax(0, 380px) 1fr; align-items: start; }
.about-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }
.role-about > div { max-width: 44rem; }
.role-about .lead { font-family: var(--serif); font-size: clamp(1.35rem, 2.6vw, 1.6rem); line-height: 1.4; margin: 0 0 1.4rem; }
.credits { margin: 0; border-top: 1px solid var(--line); }
.credits div { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.credits dt { color: var(--muted); font-size: .95rem; font-weight: 600; letter-spacing: .02em; }
.credits dd { margin: .1rem 0 0; }
.role-about h2 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin: 2rem 0 .5rem; }
.role-about h2:first-child { margin-top: 0; }
.plain { margin: 0; padding-left: 1.1rem; } .plain li { margin: .35rem 0; } .plain li::marker { color: var(--gold); }
.papers span { color: var(--muted); font-size: .95rem; }
.links { margin: 1.8rem 0 0; } .links .btn.ghost { margin: 0 .5rem .5rem 0; }

/* photos */
.role-gallery ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.role-gallery figure { margin: 0; }
.role-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.role-gallery figcaption { margin-top: .5rem; color: var(--muted); font-size: .95rem; }

@media (max-width: 760px) {
  .role-about.has-img { grid-template-columns: 1fr; }
  .about-img { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.role-page p, .role-page dd, .role-page li { text-wrap: pretty; }
