.book-hero {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(1.4rem, 5vw, 4.25rem);
}
.book-hero-copy > p:not(.page-label) { color: #d3e6ee; }
.book-footage {
  margin: 0;
  overflow: hidden;
  border: 1px solid #345b70;
  border-radius: .4rem;
  background: #070f17;
}
.arc-footage { position: relative; }

.scene-controls {
  position: absolute;
  inset: auto auto .35rem .35rem;
  max-width: calc(79% - .7rem);
  display: flex;
  align-items: center;
  gap: .25rem;
  padding-inline: .25rem;
  color: #dbfaff;
  background: #07131df5;
  border-radius: .3rem;
  transition: opacity .15s;
}
.scene-controls button {
  min-height: 44px;
  min-width: 44px;
  padding: 0 .35rem;
  white-space: nowrap;
  font: inherit;
  font-size: .78rem;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.scene-controls input { min-width: 0; width: 6rem; height: 44px; accent-color: #9cdeed; }
.scene-controls[hidden], .scene-controls button[hidden] { display: none; }
.scene-controls.scene-ready {
  inset: 0;
  max-width: none;
  display: grid;
  place-items: center;
  padding: 0;
  background: none;
  pointer-events: none;
}
.scene-controls.scene-ready > :not([data-play]) { display: none; }
.scene-ready [data-play] {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  background: #08151edb;
  border: 1px solid #c0e7f3;
  border-radius: 50%;
  font-size: 0;
  pointer-events: auto;
}
.scene-ready [data-play]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 12px;
  transform: translate(-50%, -50%);
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.scene-ready [data-play]:is(:hover, :focus-visible) { background: #1c4053; }
.arc-footage.has-scene-controls video::-webkit-media-controls-start-playback-button {
  display: none;
  -webkit-appearance: none;
}
.arc-footage.controls-idle .scene-controls { opacity: 0; pointer-events: none; }
.arc-footage:fullscreen { background: black; display: grid; align-items: center; }
.arc-footage:fullscreen video { max-height: 100vh; }
@media (prefers-reduced-motion: reduce) { .scene-controls { transition: none; } }

.book-footage video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #02070c;
  object-fit: contain;
}
.book-footage figcaption {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .35rem .75rem;
  padding: .8rem 1rem;
  color: #9cdeed;
  font-weight: 700;
}
.book-footage figcaption span { color: #ccdae3; font-size: .88rem; font-weight: 400; }
.book-scenes { margin-block: clamp(2rem, 6vw, 4.5rem); }
.book-scenes > h2 { margin: 0 0 1rem; font-size: clamp(1.7rem, 3.5vw, 2.65rem); }
.book-scenes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.book-scene { background: #08121d; border: 1px solid #284454; border-radius: .4rem; overflow: hidden; }
.book-scene .book-footage { border: 0; border-bottom: 1px solid #284454; border-radius: 0; }
.book-scene-copy { padding: 1rem clamp(1rem, 2.5vw, 1.5rem) 1.25rem; }
.book-scene-copy h3 { margin: 0 0 .45rem; font-size: 1.35rem; }
.book-scene-copy p { margin: 0; color: #d3e6ee; line-height: 1.6; }

@media (max-width: 720px) {
  .book-hero, .book-scenes-grid { grid-template-columns: 1fr; }
}

.book-scene-feature { grid-column: 1 / -1; }

@media (min-width: 721px) {
  .book-scene-feature {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: center;
  }
  .book-scene-feature .book-footage { border-bottom: 0; border-right: 1px solid #284454; }
}

.chapter-access {
  margin-block: 2rem;
  padding: clamp(1rem, 4vw, 1.75rem);
  border: 1px solid #407085;
  border-radius: .4rem;
  background: radial-gradient(ellipse at top left, #122c3f, #08121d 75%);
}
.chapter-access h3 { margin: .35rem 0; font-size: clamp(1.35rem, 3vw, 1.9rem); }
.chapter-access p { margin-block: 0 .5rem; }
.chapter-continuation { scroll-margin-top: 1rem; }
.chapter-continuation > p { font: 1.14rem/1.75 Georgia, serif; white-space: pre-line; }

.book-page {
  --book-background: #121416;
  background: var(--book-background);
}
.book-page .page-stage { background: var(--book-background); }
.book-page .page-stage::before,
.book-page .page-stage::after { content: none; }

.book-cover {
  display: block;
  width: min(100%, 19rem);
  height: auto;
  justify-self: center;
  border: 1px solid #405663;
  border-radius: .2rem;
  box-shadow: 0 1rem 3rem #0008;
}
.book-prism {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(1rem, 5vw, 4rem);
  margin-block: 0 clamp(1.5rem, 5vw, 3rem);
  padding-block: clamp(1rem, 4vw, 2rem);
  border-block: 1px solid #354751;
}
.book-prism p { margin-top: .5rem; color: #d3e6ee; line-height: 1.6; }
.book-hero-copy h1 + p + p { margin-top: .75rem; line-height: 1.55; }
@media (max-width: 720px) {
  .book-prism { grid-template-columns: 1fr; }
  .book-cover { width: min(72%, 16rem); }
}

/* Keep the inline nameplate legible at phone widths. Fullscreen uses the
   matching nameplate already encoded into the footage. */
@media (max-width: 720px) {
  .arc-footage:not(:fullscreen)::after {
    content: attr(data-scene-label);
    position: absolute;
    inset: auto 0 0 auto;
    box-sizing: border-box;
    min-width: 21%;
    min-height: 9%;
    display: grid;
    place-items: center;
    padding: .22rem .4rem;
    border: 1px solid #3e8296;
    background: #08131c;
    color: #b4f4ff;
    font: 700 .65rem/1.3 system-ui, sans-serif;
    pointer-events: none;
  }
  .scene-controls:not(.scene-ready) { max-width: calc(74% - .7rem); }
}
