:root {
  --night: #050f16;
  --navy: #0a1b2e;
  --bed: #0b1e28;
  --lift: #112b38;
  --ink: #f3ede1;
  --mute: #a2b8ae;
  --gold: #c9a45f;
  --gold-hi: #f4e2b4;
  --gold-mid: #a8843f;
  --gold-lo: #6f5426;
  --gold-ink: #1c1406;
  --blue: #6ea8d4;
  --forest-mid: #234862;
  --forest-deep: #173143;
  --line: rgba(201, 164, 95, 0.26);
  --r: 14px;
  --r-sm: 10px;
  --pad: clamp(1rem, 4vw, 2rem);
  --shadow: 0 1px 0 rgba(0,0,0,.35), 0 18px 40px rgba(0,0,0,.35);
  --well-max: min(52vh, calc(100dvh - 18rem));
}
* { box-sizing: border-box; }
html { color-scheme: dark; background: var(--night); }
html::before {
  content: "";
  position: fixed;
  inset: -16px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(88% 68% at 50% 40%, rgb(5 15 22 / 0.1), rgb(5 15 22 / 0.4) 100%),
    url("./forest.webp") center 46% / cover no-repeat;
  filter: blur(4px);
}
html, body { margin: 0; color: var(--ink); }
body {
  position: relative;
  z-index: 1;
  font-family: Figtree, system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
  background: transparent;
  min-height: 100dvh;
}
a { color: inherit; }
button { font-family: inherit; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip {
  position: absolute; left: var(--pad); top: 0.7rem;
  transform: translateY(-160%); z-index: 40;
  background: var(--gold); color: var(--gold-ink);
  padding: 0.5rem 0.8rem; border-radius: 999px; text-decoration: none; font-weight: 600;
}
.skip:focus { transform: none; }

.player-title { display: none; }

.bed {
  width: min(1080px, calc(100% - 2 * var(--pad)));
  margin: 1.1rem auto 2rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0 1.4rem;
}

.page-head { position: relative; padding: 1.35rem 0 0.4rem; overflow: visible; }
.page-head.center { text-align: center; }
.eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
}
.display {
  margin: 0;
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  font-weight: 500;
  line-height: 1.2;
  overflow: visible;
  padding: 0.08em 0.12em 0.22em;
}
.lede { margin: 0.55rem 0 0; color: var(--mute); max-width: 36rem; }
.page-head.center .lede { margin-inline: auto; }
.lede-gold {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  background-image: linear-gradient(168deg, var(--gold-hi) 10%, var(--gold) 50%, var(--gold-mid) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.cta-row { margin: 1.15rem 0 0; }
.page-head.center .cta-row { display: flex; justify-content: center; }
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.7rem;
  min-height: 48px; padding: 0.7rem 1.45rem;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 2px;
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-wrap: balance;
  cursor: pointer;
  box-shadow: none;
  transition: box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.cta::after {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}
.cta:hover,
.cta:focus-visible {
  color: var(--gold-hi);
  border-color: var(--gold-hi);
  box-shadow:
    0 0 0 1px rgb(244 226 180 / 0.16),
    0 0 14px 3px rgb(201 164 95 / 0.42),
    0 0 28px 10px rgb(201 164 95 / 0.2);
}
.about-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.15rem 0.2rem;
  flex: 0 0 auto;
}

.pills { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0.9rem 0 0; margin: 0; }
.page-head.center + .pills { justify-content: center; }
.pills li, .pill {
  font-size: 0.78rem;
  border: 1px solid var(--line);
  background: rgb(35 72 98 / 0.5);
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  min-height: 32px; display: inline-flex; align-items: center;
  color: var(--ink);
}

.option-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(72rem, 100%);
  margin: 0.95rem auto 0;
  border-bottom: 1px solid rgb(201 164 95 / 0.22);
}
.option-bar a {
  position: relative;
  min-height: 44px;
  padding: 0.55rem 0.55rem 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  text-wrap: balance;
  border-bottom: 0;
  margin-bottom: 0;
  box-sizing: border-box;
}
.option-bar a:not([aria-current="true"]):hover { color: var(--gold-hi); }
.option-bar a[aria-current="true"] {
  color: var(--gold);
}
.option-bar a[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.28rem;
  width: min(7.5rem, calc(100% - 1.4rem));
  height: 2px;
  background: var(--gold);
  transform: translateX(-50%);
}
.option-bar:has(> :nth-child(4)) a {
  font-size: 0.86rem;
  padding: 0.45rem 0.55rem;
  min-height: 40px;
}
.option-bar:has(> :nth-child(7)) a {
  font-size: 0.8rem;
  padding: 0.4rem 0.35rem 0.55rem;
}
/* Center leftover tabs when the leftover count is odd (fits the 5-col grid).
   Even leftovers stay left so column edges stay aligned. */
.option-bar[data-count="1"] > a:first-child,
.option-bar[data-count="6"] > a:nth-child(6) {
  grid-column-start: 3;
}
.option-bar[data-count="3"] > a:first-child,
.option-bar[data-count="8"] > a:nth-child(6) {
  grid-column-start: 2;
}

.player { margin: 1.05rem 0 0; padding: 0 0 0.4rem; }
.card {
  background: rgb(8 22 32 / 0.88);
  border: 1px solid rgb(15 38 52 / 0.7);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.well {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: var(--well-max);
  background: #000;
  overflow: hidden;
  isolation: isolate;
  contain: paint;
}
body:not(.cinema-open) .player:not(.ar-player) #reel-card {
  width: min(100%, calc(var(--well-max) * 16 / 9));
  max-width: 100%;
  margin-inline: auto;
}
body:not(.cinema-open) .player:not(.ar-player) .well {
  max-height: none;
}
.well-frame { position: relative; }
.well iframe,
.well #player {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.well #player iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.well.is-slides iframe,
.well.is-slides .play-hit { display: none; }
.well.is-photo .slide-nav { display: none; }
.ar-plate .well-frame:has(.is-photo) {
  align-items: center;
  justify-content: center;
}
.ar-plate .well.is-photo {
  width: auto;
  height: 100%;
  aspect-ratio: 1;
  max-width: 100%;
  flex: 0 1 auto;
}
.well.is-photo .slides img {
  object-fit: cover;
}
.well:not(.is-slides) .slides,
.slides[hidden] { display: none; }
.slides {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.slide-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide-nav.prev { left: 0.7rem; }
.slide-nav.next { right: 0.7rem; }
.slide-nav:hover,
.slide-nav:focus-visible {
  color: var(--gold-hi);
  background: transparent;
}
.slide-nav .vid-skip-icon { display: block; width: 10px; height: 10px; border-style: solid; border-color: currentColor; }
.slide-nav.prev .vid-skip-icon {
  border-width: 2px 0 0 2px;
  transform: rotate(-45deg);
  margin-left: 0.2rem;
}
.slide-nav.next .vid-skip-icon {
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
  margin-right: 0.2rem;
}
.slide-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.15rem;
  min-height: 44px;
  margin-bottom: 0.35rem;
}
.slide-dots[hidden] { display: none; }
.slide-dot {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.slide-dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--blue);
  opacity: 0.55;
}
.slide-dot[aria-current="true"]::after {
  background: var(--gold);
  opacity: 1;
  box-shadow: 0 0 0 3px rgb(201 164 95 / 0.22);
}
.slide-dot:hover::after,
.slide-dot:focus-visible::after { opacity: 1; }
.now.is-slides,
.now.ar-now {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 0;
  overflow: visible;
  padding: 1.15rem 1.25rem 1.2rem;
  text-align: center;
  width: 100%;
}
.now.ar-now time,
.now.is-slides time { display: none; }
.ar-player.has-timeline .now.ar-now time { display: block; }
.ar-now h2 {
  margin: 0 0 0.45rem;
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.15;
  text-align: center;
  color: var(--gold);
  text-wrap: balance;
}
.ar-player.has-timeline .now.ar-now {
  grid-template-columns: 5.25rem 1fr;
}
.ar-player.has-timeline .ar-now h2 {
  text-align: left;
}
.ar-now .slide-dots {
  margin: 0 0 0.5rem;
  min-height: 36px;
}
.ar-now .now-copy {
  overflow: visible;
  min-height: 0;
  width: 100%;
  text-align: center;
  text-wrap: pretty;
}
.ar-now .now-copy p:first-child { margin-top: 0; }
.now-copy .copy-context {
  margin: 0 0 0.7rem;
  font-family: Figtree, system-ui, sans-serif;
  font-style: normal;
  font-weight: 400;
  color: var(--mute);
  width: 100%;
  max-width: none;
}
.now-copy .copy-bullets {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0.2rem 0 0;
  padding: 0 0 0 1.2rem;
  text-align: left;
  box-sizing: border-box;
}
.now-copy .copy-bullets li {
  margin: 0.28rem 0;
}
.ar-player {
  margin-top: 0.85rem;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.reel-home {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.ar-plate {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  max-height: none;
}
body:has(.ar-player) {
  min-height: 100dvh;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  align-items: start;
}
.bed:has(.ar-player) {
  display: flex;
  flex-direction: column;
  height: auto;
  max-height: none;
  min-height: 0;
  overflow: visible;
  margin-bottom: 0.8rem;
}
#stage:has(.ar-player) {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
.ar-plate .well-frame {
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.ar-plate .well {
  flex: 0 1 auto;
  min-height: 12rem;
  max-height: min(52vh, calc(100dvh - 16rem));
  aspect-ratio: 16 / 9;
  height: auto;
  width: 100%;
}
.ar-plate .dock {
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
}
.vid-skip {
  display: none;
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  transform: translateY(-50%);
  align-items: center;
  justify-content: center;
}
.vid-skip.prev { left: 0.7rem; }
.vid-skip.next { right: 0.7rem; }
body.cinema-open .vid-skip { display: flex; }
body.cinema-open .slide-nav { display: none; }
.vid-skip:hover,
.vid-skip:focus-visible {
  color: var(--gold-hi);
  background: transparent;
}
.vid-skip-icon {
  display: block;
  width: 10px;
  height: 10px;
  border-style: solid;
  border-color: currentColor;
}
.vid-skip.prev .vid-skip-icon {
  border-width: 2px 0 0 2px;
  transform: rotate(-45deg);
  margin-left: 0.2rem;
}
.vid-skip.next .vid-skip-icon {
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
  margin-right: 0.2rem;
}
.vid-skip-tip {
  position: absolute;
  top: 50%;
  width: max-content;
  max-width: 14rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0;
  background: rgb(8 18 24 / 0.4);
  border: 0;
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: center;
  text-wrap: balance;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease 0.35s;
  z-index: 5;
}
.vid-skip.prev .vid-skip-tip {
  left: calc(100% + 10px);
  transform: translateY(-50%);
}
.vid-skip.next .vid-skip-tip {
  right: calc(100% + 10px);
  left: auto;
  transform: translateY(-50%);
}
.vid-skip:hover .vid-skip-tip,
.vid-skip:focus-visible .vid-skip-tip { opacity: 1; }
.play-hit {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: rgb(5 15 22 / 0.22);
  display: grid;
  place-items: center;
}
.play-hit:hover { background: rgb(5 15 22 / 0.32); }
.play-icon {
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 50%;
  background: linear-gradient(174deg, var(--gold-hi) 4%, var(--gold) 48%, var(--gold-mid) 100%);
  box-shadow: 0 1px 0 rgba(244, 226, 180, 0.35) inset, 0 12px 28px rgb(0 0 0 / 0.4);
  display: grid;
  place-items: center;
}
.play-icon::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin-left: 0.2rem;
  border-style: solid;
  border-width: 0.7rem 0 0.7rem 1.15rem;
  border-color: transparent transparent transparent var(--gold-ink);
}
.play-hit:hover .play-icon { filter: brightness(1.06); }
body.cinema-open .play-hit { display: none; }
#reel-card { cursor: pointer; }
#reel-card .dock,
#reel-card .now,
#reel-card .now * { cursor: pointer; }
body.cinema-open #reel-card,
body.cinema-open #reel-card .dock,
body.cinema-open #reel-card .now,
body.cinema-open #reel-card .now * { cursor: default; }
body.cinema-open #reel-card .mark { cursor: pointer; }
.dock {
  padding: 0.95rem 1rem 1.05rem;
  border-top: 0;
  background: transparent;
}
body:not(.cinema-open) .player:not(.ar-player) .dock,
body:not(.cinema-open) .ar-player:not(:has(.now.is-slides)) .dock {
  display: none;
}
.bar-wrap { position: relative; height: 30px; display: flex; align-items: center; margin-bottom: 2.4rem; cursor: pointer; overflow: visible; }
.bar-wrap[hidden] { display: none; }
.ar-player:not(.has-timeline) .bar-wrap,
.ar-plate:not(.has-timeline) .bar-wrap,
.ar-player:not(.has-timeline) #video-dock,
.ar-plate:not(.has-timeline) #video-dock,
body:has(.ar-player:not(.has-timeline)) .bar-wrap,
body:has(.ar-player:not(.has-timeline)) #video-dock,
body:has(.ar-player:not(.has-timeline)) #marks,
body.cinema-open:has(.ar-player:not(.has-timeline)) .bar-wrap,
body.cinema-open:has(.ar-player:not(.has-timeline)) #video-dock,
body.cinema-open:has(.ar-player:not(.has-timeline)) #marks {
  display: none !important;
}
.bar { position: relative; width: 100%; height: 2px; background: rgb(201 164 95 / 0.28); border-radius: 0; }
.bar-fill {
  position: absolute; inset: 0 auto 0 0; width: 0%;
  background: var(--gold); border-radius: inherit; transition: width 0.25s ease;
}
#marks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
.mark {
  position: absolute; top: 50%; width: 44px; height: 44px;
  transform: translate(-50%, -50%); border: 0; background: transparent; padding: 0; cursor: pointer;
  pointer-events: auto; z-index: 3;
}
.mark i {
  display: block; width: 8px; height: 8px; margin: 0 auto; border-radius: 99px;
  background: var(--ink); box-shadow: none;
}
.mark[aria-current="true"] i { background: var(--gold); }
.tip {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  width: max-content; max-width: 16rem;
  padding: 0.45rem 0.6rem; border-radius: 0;
  background: rgb(8 18 24 / 0.4); border: 0;
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  box-shadow: none;
  font-size: 0.75rem; opacity: 0; pointer-events: none; transition: opacity 0.16s ease; z-index: 6;
}
.tip time {
  display: block; font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums; color: var(--blue); font-size: 0.68rem;
}
.mark:first-child .tip { left: 8px; transform: none; }
.mark:last-child:not(:first-child) .tip { left: auto; right: 8px; transform: none; }
.mark:hover .tip, .mark:focus-visible .tip { opacity: 1; }
.now {
  display: grid; grid-template-columns: 5.25rem 1fr; gap: 0.8rem;
  margin-top: 0.85rem; padding: 0.9rem 1rem;
  border: 0; border-radius: 0;
  background: rgb(5 16 24 / 0.92);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
}
.now time {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums; color: var(--gold); font-size: 0.8rem; padding-top: 0.15rem;
}
.now h2 {
  margin: 0;
  font-family: Figtree, system-ui, sans-serif;
  font-size: 0.98rem;
  font-style: normal;
  font-weight: 600;
}
.now h2:empty,
.now h2[hidden] { display: none; }
.now-copy { color: var(--mute); font-size: 0.88rem; width: 100%; max-width: none; }
.now-copy:empty { display: none; }
.now-copy p { margin: 0.4rem 0 0; width: 100%; max-width: none; }
.now-copy p:first-child { margin-top: 0.25rem; }
.now h2:empty + .now-copy p:first-child,
.now h2[hidden] + .now-copy p:first-child { margin-top: 0; }
.now-copy[data-preview="true"] { color: var(--gold-hi); }

.study { padding: 0.4rem 0 1.4rem; }
.still {
  aspect-ratio: 16 / 9;
  max-height: min(46vh, 28rem);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background:
    linear-gradient(180deg, rgb(17 43 56 / 0.2), rgb(5 15 22 / 0.65)),
    radial-gradient(80% 80% at 30% 40%, rgb(110 168 212 / 0.18), transparent 55%),
    var(--bed);
  display: grid; place-items: end start;
  padding: 1rem 1.1rem;
  color: var(--mute); font-size: 0.82rem;
}
.meta {
  display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem;
  margin: 0.9rem 0 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem; color: var(--gold); letter-spacing: 0.04em;
}
.shots { list-style: none; padding: 1.1rem 0 0; margin: 0; display: grid; gap: 0.7rem; }
.shots li {
  display: grid; grid-template-columns: 3.2rem 1fr;
  gap: 0.85rem; padding: 0.85rem 0;
  border-top: 0;
}
.shots time {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums; color: var(--blue); font-size: 0.75rem;
}
.shots strong { display: block; font-size: 0.95rem; }
.shots p { margin: 0.2rem 0 0; color: var(--mute); font-size: 0.88rem; }

.siblings {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: 1.4rem; padding-top: 1rem; border-top: 0;
}
.siblings a { text-decoration: none; color: var(--mute); min-height: 44px; display: inline-flex; align-items: center; }
.siblings a:hover { color: var(--gold); }
.siblings em { font-style: italic; font-family: "EB Garamond", Georgia, serif; font-size: 1.15rem; color: var(--ink); }

.dir { list-style: none; padding: 0.4rem 0 1.5rem; margin: 0; }
.dir a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 0; border-top: 0;
  text-decoration: none; min-height: 56px;
}
.dir a:last-child { border-bottom: 0; }
.dir strong {
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 500;
}
.dir span { color: var(--mute); font-size: 0.9rem; }
.dir a:hover strong { color: var(--gold); }

.about-card {
  overflow: visible;
  max-width: 44rem;
  margin: 0 auto 2rem;
  padding: 0.15rem 1.5rem 1.8rem;
}
.about {
  max-width: none;
  margin: 0;
  padding: 0 0 0.2rem;
  text-align: center;
}
.about-photo {
  display: block;
  width: min(22rem, 100%);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  margin: 0.35rem auto 0.85rem;
  border-radius: 0;
  border: 0;
  box-shadow: none;
}
.cta-sm {
  min-height: 36px;
  padding: 0.38rem 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  gap: 0.5rem;
}
.cta-sm::after {
  width: 0.28rem;
  height: 0.28rem;
}
.about-cta {
  display: flex;
  justify-content: center;
  margin: 1.15rem 0 0;
}
.reel-cta-wrap {
  display: flex;
  justify-content: center;
  margin: 1.15rem 0 0.2rem;
}
body.cinema-open .reel-cta-wrap { display: none; }
.about-copy {
  margin: 1.15rem 0 0;
  text-align: center;
  text-wrap: pretty;
}
.about-copy p {
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.6;
}
.about-copy p:last-child { margin-bottom: 0; }
button.cta { appearance: none; }

.resume-dialog {
  position: fixed;
  inset: 0;
  z-index: 95;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 3.2rem 1.1rem 2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
body.resume-open { overflow: hidden; }
body.resume-open .rail {
  visibility: hidden;
  pointer-events: none;
}
body.resume-open::before {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 90;
}
body.resume-open .resume-dialog {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.resume-close {
  position: fixed;
  top: max(0.65rem, env(safe-area-inset-top));
  right: max(0.75rem, env(safe-area-inset-right));
  z-index: 96;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--gold-hi);
  cursor: pointer;
}
.resume-close:hover { color: var(--gold); }
.resume-sheet {
  width: min(52rem, 100%);
  margin: 0 auto 2.4rem;
}
.resume-image {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  box-shadow: var(--shadow);
}



.cinema-title[hidden] { display: none; }
html:has(body.cinema-open),
body.cinema-open { overflow: hidden; }
body.cinema-open { --cinema-chrome: 20rem; }
body.cinema-open:has(.ar-now) { --cinema-chrome: 22rem; }
.cinema {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  padding: 2.7rem clamp(0.9rem, 3.4vw, 2.1rem) 0.85rem;
  background: rgb(5 15 22 / 0);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: background 0.4s ease, opacity 0.35s ease, visibility 0.35s ease;
}
.cinema.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  background: rgb(5 15 22 / 0.96);
}
.cinema-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  z-index: 3;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: var(--gold-hi);
  cursor: pointer;
}
.cinema-close:hover { color: var(--gold); }
body.cinema-open .page-head,
body.cinema-open .pills,
body.cinema-open .option-bar { visibility: hidden; }
body.cinema-open .rail { visibility: hidden; pointer-events: none; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgb(5 15 22 / 0.46);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
body.cinema-open::before {
  opacity: 1;
  visibility: visible;
}
body.cinema-open .cinema {
  z-index: 80;
  pointer-events: none;
  background: transparent;
}
body.cinema-open .cinema-close,
body.cinema-open .cinema-title { pointer-events: auto; }
body.cinema-open .bed {
  position: fixed;
  inset: 0;
  z-index: 70;
  margin: 0;
  width: auto;
  max-width: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 2.7rem clamp(0.9rem, 3.4vw, 2.1rem) 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-x: hidden;
  overflow-y: auto;
}
body.cinema-open #stage,
body.cinema-open .player,
body.cinema-open .reel-home {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: auto;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
body.cinema-open #reel-card {
  width: min(100%, 92rem);
  max-width: min(100%, 92rem);
  margin: 0 auto;
  height: auto;
  max-height: 100%;
  min-height: 0;
  flex: 0 1 auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  display: flex;
  flex-direction: column;
}
body.cinema-open .well-frame {
  flex: 0 0 auto;
  min-width: 0;
  width: min(100%, calc((100dvh - var(--cinema-chrome, 17.5rem)) * 16 / 9));
  margin-inline: auto;
  display: flex;
  justify-content: center;
}
body.cinema-open .well {
  flex: 0 0 auto;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 16 / 9;
  height: auto;
  width: 100%;
  max-height: calc(100dvh - var(--cinema-chrome, 17.5rem));
}
body.cinema-open .well.is-photo {
  aspect-ratio: 1;
  width: auto;
  max-height: min(70dvh, 100%);
}
body.cinema-open .dock {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.cinema-title {
  position: absolute;
  top: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  margin: 0;
  max-width: min(42rem, calc(100% - 8.5rem));
  padding: 0.08em 0.2em 0.18em;
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.25;
  color: var(--gold);
  text-align: center;
  text-wrap: balance;
  overflow: visible;
}
.cinema-stage {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: stretch;
  transform: translateY(14px) scale(0.96);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(.2, .8, .2, 1), opacity 0.35s ease;
}
.cinema.open .cinema-stage {
  transform: none;
  opacity: 1;
}
#cinema-slot {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
  max-width: 1280px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.cinema .card {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.cinema .well-frame {
  flex: 0 0 auto;
  min-width: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}
.cinema .well {
  flex: 0 0 auto;
  min-width: 0;
  aspect-ratio: 16 / 9;
  height: auto;
  width: 100%;
}
.cinema .dock { flex: 0 0 auto; width: 100%; }
body.cinema-open .firefly-field {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

@media (min-width: 861px) {
  body.cinema-open .page-head,
  body.cinema-open .pills,
  body.cinema-open .option-bar {
    display: none;
  }
  body.cinema-open .rail {
    visibility: hidden;
    pointer-events: none;
  }
  body.cinema-open::before {
    background: rgb(5 15 22 / 0.46);
    pointer-events: auto;
  }
  body.cinema-open .bed {
    background: transparent;
    pointer-events: auto;
    justify-content: flex-start;
    align-items: stretch;
    padding: 3.2rem 1.1rem 1.1rem;
    overflow-x: hidden;
    overflow-y: auto;
  }
  body.cinema-open .player-title {
    display: block;
    flex: 0 0 auto;
    margin: 0;
    padding: 0.7rem 1.25rem 0.7rem;
    font-family: "EB Garamond", Georgia, serif;
    font-size: clamp(1.45rem, 2.5vw, 2.05rem);
    font-style: italic;
    font-weight: 500;
    line-height: 1.25;
    text-align: center;
    text-wrap: balance;
    overflow: visible;
  }
  body.cinema-open #stage,
  body.cinema-open .player,
  body.cinema-open .reel-home,
  body.cinema-open .ar-player {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
  body.cinema-open #reel-card,
  body.cinema-open .ar-plate {
    pointer-events: auto;
    overflow: visible;
    flex: 0 1 auto;
    width: min(100%, 92rem);
    max-width: min(100%, 92rem);
    height: auto;
    max-height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  body.cinema-open #reel-card .bar-wrap,
  body.cinema-open #marks {
    overflow: visible;
  }
  body.cinema-open .well-frame {
    flex: 0 0 auto;
    min-height: 0;
    height: auto;
    width: min(100%, calc((100dvh - var(--cinema-chrome, 17.5rem)) * 16 / 9));
    margin-inline: auto;
    display: flex;
    justify-content: center;
    overflow: visible;
  }
  body.cinema-open .vid-skip.prev { left: -3.4rem; }
  body.cinema-open .vid-skip.next { right: -3.4rem; }
  body.cinema-open .vid-skip.prev .vid-skip-tip {
    left: auto;
    right: calc(100% + 8px);
  }
  body.cinema-open .vid-skip.next .vid-skip-tip {
    right: auto;
    left: calc(100% + 8px);
  }
  body.cinema-open .well {
    flex: 0 0 auto;
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
    max-height: calc(100dvh - var(--cinema-chrome, 17.5rem));
    min-height: 0;
  }
  body.cinema-open .dock,
  body.cinema-open .ar-plate .dock {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    width: 100%;
    padding-bottom: 1.6rem;
  }
  body.cinema-open .now.ar-now {
    display: block;
    justify-content: stretch;
    align-items: start;
    text-align: left;
    overflow: visible;
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
  }
  body.cinema-open .now.ar-now time {
    display: none;
  }
  body.cinema-open .ar-now h2 {
    display: none;
  }
  body.cinema-open .player:not(.ar-player) .now h2,
  body.cinema-open .ar-player.has-timeline .now h2 {
    display: block;
    text-align: left;
  }
  body.cinema-open .ar-player.has-timeline .now time {
    display: block;
  }
  body.cinema-open .now-copy,
  body.cinema-open .ar-now .now-copy {
    overflow: visible;
    text-align: left;
    width: 100%;
    max-width: none;
  }
  body.cinema-open .now-copy .copy-bullets,
  body.cinema-open .now-copy p,
  body.cinema-open .now-copy .copy-context {
    width: 100%;
    max-width: none;
  }
  body.cinema-open .now h2[hidden] + .now-copy p:first-child,
  body.cinema-open .now-copy p:first-child {
    margin-top: 0;
  }
}

@media (max-width: 860px) {
  .option-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .option-bar > a {
    grid-column-start: auto;
  }
  .option-bar[data-count="1"] > a:first-child,
  .option-bar[data-count="4"] > a:nth-child(4),
  .option-bar[data-count="7"] > a:nth-child(7) {
    grid-column-start: 2;
  }
  body:not(.cinema-open) .ar-player:not(:has(.now.is-slides)) .dock {
    display: flex;
  }
  .player:not(.ar-player) .dock,
  .player:not(.has-timeline) #video-dock { display: none; }
  .bed:has(.ar-player) { margin-bottom: 0; }
  #stage {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
  }
  #stage:has(> .pills) .player { order: 2; }
  #stage:has(> .pills) .pills {
    order: 3;
    justify-content: center;
    gap: 0.28rem;
    padding: 0.7rem 0 0.2rem;
    margin-top: 0;
  }
  #stage:has(> .pills) .reel-cta-wrap {
    order: 4;
    margin-top: 0.75rem;
  }
  .pills li, .pill {
    font-size: 0.68rem;
    padding: 0.2rem 0.5rem;
    min-height: 0;
  }
  body:has(.ar-player) {
    grid-template-rows: auto minmax(0, 1fr);
  }
  .cinema {
    padding: 0;
  }
  .cinema-close {
    top: max(0.5rem, env(safe-area-inset-top));
    right: max(0.5rem, env(safe-area-inset-right));
    min-height: 44px;
    padding: 0 0.95rem;
    background: transparent;
  }
  body.cinema-open .page-head,
  body.cinema-open .pills,
  body.cinema-open .option-bar,
  body.cinema-open .dock { display: none; }
  body.cinema-open::before { background: #000; }
  body.cinema-open .cinema-title { pointer-events: none; }
  body.cinema-open .bed {
    background: #000;
    padding: 0;
  }
  body.cinema-open .player { margin: 0; padding: 0; }
  body.cinema-open #reel-card {
    max-width: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #000;
  }
  body.cinema-open .well { border-radius: 0; }
  .cinema-title {
    top: max(0.7rem, env(safe-area-inset-top));
    padding: 0.2rem 0.8rem;
    font-size: clamp(1.25rem, 2.6vw, 1.9rem);
    text-shadow: 0 1px 2px rgb(5 15 22 / 0.9), 0 8px 24px rgb(5 15 22 / 0.75);
  }
}
@media (max-width: 700px) {
  .bed { padding-inline: 1rem; }
  .player { margin-inline: 0; padding-inline: 0; }
  .now { grid-template-columns: 1fr; }
  .well { max-height: min(40vh, calc(100dvh - 16rem)); }
  :root { --well-max: min(40vh, calc(100dvh - 16rem)); }
  .ar-plate .well { max-height: none; }
  .ar-plate {
    height: auto;
    max-height: none;
  }
  .cinema-title { max-width: calc(100% - 6.5rem); font-size: 1.2rem; }
  .option-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .option-bar > a {
    grid-column: auto;
  }
  .option-bar[data-count="1"] > a:first-child,
  .option-bar[data-count="3"] > a:nth-child(3),
  .option-bar[data-count="5"] > a:nth-child(5),
  .option-bar[data-count="7"] > a:nth-child(7),
  .option-bar[data-count="9"] > a:nth-child(9) {
    grid-column: 1 / -1;
  }
  .option-bar a {
    font-size: 0.78rem;
    padding: 0.5rem 0.35rem;
  }
  .vid-skip.prev,
  .slide-nav.prev { left: 0.4rem; }
  .vid-skip.next,
  .slide-nav.next { right: 0.4rem; }
}
@media (max-width: 860px) and (orientation: portrait) {
  body.cinema-open .bed,
  body.cinema-open .cinema {
    position: fixed;
    width: 100dvh;
    height: 100dvw;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    margin: 0;
    max-width: none;
    padding: 0;
    transform: translate(-50%, -50%) rotate(90deg);
    transform-origin: center center;
  }
  body.cinema-open .cinema.open .cinema-stage {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bar-fill, .tip, .cinema, .cinema-stage, .vid-skip-tip, .slides img, body::before, .resume-dialog, .cta { transition: none; }
  .cinema-stage { transform: none; }
  #reel-card { animation: none !important; }
}
