/* The projection fills the viewport. The portfolio resumes its usual width below it. */
.page-home > main { width: 100%; }
.page-home .studio-bar {
  position: fixed;
  inset: max(8px,env(safe-area-inset-top)) 0 auto;
  margin: 0 auto;
  min-height: 56px;
  padding-block: 5px;
}
.page-home:not(.browsing-catalog) .studio-bar {
  color-scheme: dark;
  --ink: #f6f6f5;
  --muted: #d9dce1;
  --accent: #ff943d;
  --line: #4c5057;
  --edge: #ffffff32;
  --surface: rgb(35 38 43 / .90);
  --card: #383c42;
  --well: rgb(9 11 14 / .42);
  --active: #555a61;
  --shadow: 0 4px 18px #0004, inset 0 1px 0 #ffffff10;
}
.page-home .z-nav a:first-child { color: var(--ink); }
.page-home .z-nav a:first-child .i-playlist {
  display: block; width: 16px; height: 16px; color: var(--accent); margin-right: 6px;
}
.page-home .z-nav a[data-in-view] {
  background: var(--active); color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent);
}
.page-home .home-catalog .sc-panel { scroll-margin-top: 0; }
html:has(.page-home) { scroll-padding-top: calc(78px + env(safe-area-inset-top)); }
.film-deck:not(:fullscreen) .film-stage-heading {
  /* The header carries the visible brand; keep the film's heading accessible. */
  width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.home-catalog { width: var(--shell-width); margin-inline: auto; }
.page-home .portfolio-skip:focus { position: fixed; }
.film-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: #030305;
  color: #f4f3ef;
  isolation: isolate;
  scroll-margin: 0;
}
.film-stage:focus { outline: none; }
.film-deck, .film-screen, .film-screen iframe, .film-screen picture, .film-screen img, .film-screen video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.film-deck, .film-screen { overflow: hidden; background: #030305; }
.film-screen iframe { border: 0; pointer-events: none; }
.film-screen img, .film-screen video { object-fit: contain; }
.film-screen picture { z-index: 1; pointer-events: none; }
.film-screen .film-poster { z-index: 1; pointer-events: none; opacity: 1; transition: opacity .35s ease-out; }
.film-screen .film-poster.film-has-picture { opacity: 0; }
.film-deck [hidden] { display: none !important; }
.film-deck svg, .film-program svg, .about-links svg {
  width: 18px; height: 18px; fill: none;
  stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.film-stage-heading, .film-stage-bottom {
  --film-inset: clamp(18px,3.9vw,72px);
  position: absolute; z-index: 3;
  left: max(var(--film-inset),env(safe-area-inset-left));
  right: max(var(--film-inset),env(safe-area-inset-right));
  display: flex; align-items: center;
}
.film-stage-heading {
  top: max(clamp(18px,3vh,40px),env(safe-area-inset-top));
  gap: 12px; pointer-events: none;
  text-shadow: 0 1px 5px #000;
}
.film-brand { font: 720 17px/1 var(--sans); letter-spacing: -.045em; }
#cinema-title {
  padding-left: 12px; border-left: 1px solid #ffffff50;
  color: #c9c9cc; font: 500 13px/1.15 var(--sans); letter-spacing: .065em;
}
.film-now-title {
  margin-inline-start: auto !important; font-size: 13px; line-height: 1.3; color: #c7c8cb;
}
.film-now-title::before {
  content: ""; display: inline-block; width: 6px; height: 6px;
  margin-right: 8px; border-radius: 50%; background: #ff8a35; vertical-align: .1em;
}
.film-stage-bottom {
  bottom: max(clamp(12px,2.4vh,28px),env(safe-area-inset-bottom));
  justify-content: space-between; gap: 16px; pointer-events: none;
}
.film-controls, .film-browse {
  pointer-events: auto; display: flex; align-items: center; border: 1px solid #ffffff32;
  background: rgb(21 23 27 / .82); color: #f1f1ef;
  border-radius: 999px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.film-controls { gap: 4px; width: min(418px,65%); min-width: 0; padding: 3px 8px; }
.film-controls button, .film-controls .film-expand {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px;
  color: inherit; background: transparent; border: 0; border-radius: 50%; padding: 0; cursor: pointer;
}
.film-controls button:disabled, .film-controls input:disabled { opacity: .48; cursor: default; }
.film-controls button:hover:not(:disabled), .film-controls .film-expand:hover { color: white; background: #ffffff1c; }
.film-controls #film-toggle { color: #ff9b50; }
#film-toggle svg { fill: currentColor; }
#film-toggle[data-playing="true"] svg { stroke-width: 2.6; }
#film-time {
  white-space: nowrap; color: #d3d5d7; font: 500 12px/1.3 var(--mono);
  font-variant-numeric: tabular-nums; flex: none;
}
#film-progress {
  flex: 1; min-width: 22px; width: 100%; margin-inline: 5px;
  height: 32px; appearance: none; background: none; cursor: pointer;
}
#film-progress::-webkit-slider-runnable-track {
  background: linear-gradient(to right,#ff963e var(--progress,0%),#636971 var(--progress,0%));
  height: 3px; border-radius: 3px;
}
#film-progress::-moz-range-track { background: #636971; height: 3px; }
#film-progress::-moz-range-progress { background: #ff963e; height: 3px; }
#film-progress::-webkit-slider-thumb { appearance: none; width: 10px; height: 10px; margin-top: -3.5px; border: 0; border-radius: 50%; background: #ff963e; }
#film-progress::-moz-range-thumb { width: 10px; height: 10px; border: 0; border-radius: 50%; background: #ff963e; }
.film-browse {
  gap: 7px; justify-content: center; text-decoration: none; padding: 0 15px;
  min-height: 44px; white-space: nowrap; font: 550 13px/1 var(--sans);
}
.film-browse svg { width: 16px; color: #ff963e; }
.film-browse:hover { background: #303238; }
#film-notice, .film-noscript {
  z-index: 2; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: max(76px,12%); max-width: 90%;
  border-radius: 12px; padding: 8px 14px; background: #17191fee; color: #fff;
  font: 500 14px/1.5 var(--sans); text-align: center;
}
#film-notice button { margin-left: 7px; border: 0; border-radius: 6px; padding: 4px 8px; background: #fff; color: #13161a; cursor: pointer; }
.film-deck:fullscreen { background: #030305; }

.film-program { scroll-margin-top: 0; }
.film-program-head {
  display: grid; grid-template-columns: 1fr auto; align-items: end;
  gap: 10px 20px; margin: 0 0 clamp(18px,2.5vw,30px);
}
.film-program-head h2 {
  grid-column: 1 / -1; font-size: clamp(28px,3vw,39px); line-height: 1.15; letter-spacing: -.035em;
}
.film-caption h3 { font: 650 16px/1.55 var(--sans); }
.film-caption p, .about-links p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.film-details {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding-inline: 14px; border: 1px solid var(--edge); border-radius: 999px;
  background: var(--card); font-size: 14px; font-weight: 600;
}
.film-details svg, .about-links svg { color: var(--accent); }
.film-program ul {
  list-style: none; display: grid; gap: 12px; grid-template-columns: repeat(3,minmax(0,1fr));
  padding: 0; margin: 0;
}
.film-program li { min-width: 0; }
.film-program .film-choice {
  display: flex; flex-direction: column; min-width: 0; height: 100%; overflow: hidden;
  padding: 6px; border: 1px solid var(--edge); border-radius: 17px;
  background: var(--card); box-shadow: var(--shadow);
}
.film-program .film-choice:hover { border-color: var(--line); }
.film-program .film-choice[aria-current="true"] { border-color: var(--accent); }
.film-choice img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 11px; background: #030305; }
.choice-copy { display: grid; align-content: start; gap: 5px; padding: 12px 9px 9px; }
.choice-copy strong { font-size: 16px; font-weight: 670; line-height: 1.4; }
.choice-copy small { display: flex; gap: 7px; align-items: center; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.choice-copy i { width: 2px; height: 2px; background: currentColor; border-radius: 50%; }
.about-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.about-links a { display: block; position: relative; padding: 21px 56px 20px 23px; border-radius: 15px; border: 1px solid var(--edge); background: var(--card); }
.about-links span { font-size: 19px; font-weight: 650; }
.about-links p { margin-top: 5px; }
.about-links svg { position: absolute; right: 18px; top: 23px; }

@media (max-width:767px) {
  html:has(.page-home) { scroll-padding-top: calc(103px + env(safe-area-inset-top)); }
  .page-home { padding-bottom: env(safe-area-inset-bottom); }
  .page-home .studio-bar {
    inset-block-start: max(5px,env(safe-area-inset-top)); width: calc(100% - 16px);
    display: grid; grid-template-columns: 1fr auto; gap: 4px 8px;
    padding: 5px 6px; border-radius: 17px;
  }
  .page-home .studio-bar::before { border-radius: inherit; }
  .page-home .z-brand { gap: 7px; margin-left: 5px; }
  .page-home .z-brand img { width: 25px; height: 25px; }
  .page-home .z-brand > span { display: flex; align-items: baseline; gap: 7px; }
  .page-home .z-brand b { font-size: 15px; }
  .page-home .z-brand small { font-size: 11px; }
  .page-home .z-tools { grid-column: 2; grid-row: 1; gap: 6px; z-index: 1; }
  .page-home .z-index summary, .page-home .z-theme { height: 32px; }
  .page-home .z-theme { width: 32px; }
  .page-home .z-index nav { z-index: 2; }
  .page-home .z-nav {
    grid-row: 2; grid-column: 1 / -1; position: static; z-index: auto; width: 100%; min-width: 0;
    display: grid; grid-auto-flow: column; grid-auto-columns: auto;
    border: 0; border-radius: 12px; padding: 2px; background: var(--well);
    box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .page-home .z-nav a {
    width: 100%; min-height: 38px; padding: 0; border-radius: 9px;
    font-size: clamp(12px,3.4vw,14px); font-weight: 600; line-height: 1.2;
  }
  .page-home .z-nav a .z-icon, .page-home .z-nav a:first-child .i-playlist { display: none; }
  .page-home .z-nav a:first-child { color: var(--ink); }
  .page-home .z-nav a:first-child span::before {
    content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 3px;
    vertical-align: .15em; border-radius: 50%; background: var(--accent);
  }
  .film-stage-heading { gap: 8px; }
  #cinema-title { padding-left: 8px; font-size: 12px; }
  .film-now-title { display: none; }
  .film-stage-bottom { gap: 8px; }
  .film-controls { flex: 1; width: auto; gap: 1px; padding: 2px 4px; }
  .film-controls button, .film-controls .film-expand { width: 34px; height: 39px; }
  #film-time { font-size: 11px; }
  #film-progress { margin-inline: 4px; }
  .film-browse { padding-inline: 10px; min-height: 44px; font-size: 12px; gap: 4px; }
  .film-program-head { gap: 12px; align-items: start; }
  .film-program ul { grid-template-columns: 1fr; gap: 9px; }
  .film-program .film-choice { flex-direction: row; align-items: center; gap: 4px; }
  .film-choice img { width: clamp(80px,26%,120px); }
  .choice-copy { padding: 4px 6px; }
  .choice-copy strong { font-size: 15px; }
  .about-links { grid-template-columns: 1fr; }
}
@media (max-width:405px) {
  .film-browse { padding-inline: 7px; gap: 2px; }
  .browse-verb { display: none; }
}
@media (max-width:374px) {
  .film-stage-bottom { --film-inset: 8px; gap: 4px; }
  .film-controls button, .film-controls .film-expand { width: 30px; }
  .film-program-head { grid-template-columns: 1fr; }
  .film-details { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .film-screen .film-poster { transition: none; }
}
