/* The film is the site's first page, in ordinary document flow. */
body.opening-visible .site-header {
  color: #f0e8d3;
  background: linear-gradient(180deg, #08151dd9, #08151d66 72%, transparent);
  backdrop-filter: none;
}
body.opening-visible .site-header::before { border-bottom-color: #dfc99d1c; }
body.opening-visible .brand-mark { color: #dfc99d; }
body.opening-visible .brand small { color: #c5cbbb; }
body.opening-visible .motion-icon { border-color: #dfc99d66; }
body.opening-visible .site-header :is(a, button):hover { color: #f3dba7; }
body.opening-visible .page-index { visibility: hidden; opacity: 0; pointer-events: none; }
.opening-sequence.pv-opening {
  --pv-gold: #dfc99d;
  --pv-paper: #f7f0df;
  --pv-progress: 0%;
  --pv-side: clamp(25px, 5.8vw, 100px);
  position: relative;
  inset: auto;
  z-index: 0;
  display: block !important;
  width: 100%;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  background: #08151d;
  color: var(--pv-paper);
  opacity: 1;
  -webkit-font-smoothing: antialiased;
}
.pv-opening .intro-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  transform: none;
  filter: none;
  clip-path: none;
  background: #08151d;
}
.pv-opening::before,
.pv-opening::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
}
.pv-opening::before {
  top: 0;
  height: 170px;
  background: linear-gradient(180deg, #08151dd9, #08151d58 60%, transparent);
}
.pv-opening::after {
  bottom: 0;
  height: min(25%, 220px);
  background: linear-gradient(0deg, #08151df2, #08151d8c 47%, transparent);
}
.pv-page-top {
  position: absolute;
  z-index: 2;
  top: max(110px, calc(var(--header-height, 76px) + 32px));
  left: var(--pv-side);
  right: var(--pv-side);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.pv-kicker { display: flex; align-items: center; gap: 13px; color: #e9ddc2; font: 11px/1.5 var(--serif); letter-spacing: .18em; }
.pv-kicker > span { font: 9px/1.5 Georgia, serif; letter-spacing: .25em; }
.pv-kicker > i { width: 36px; height: 1px; background: #dbc69666; }
.pv-page-number { color: #cccebf; font: 9px/1.5 Georgia, serif; letter-spacing: .16em; }
.pv-marginalia { position: absolute; z-index: 2; top: 50%; right: 21px; writing-mode: vertical-rl; transform: translateY(-50%); font: 8px/1 Georgia, serif; letter-spacing: .24em; color: #b9c4ba; text-shadow: 0 1px 12px #08151dcc; pointer-events: none; }
.pv-page-bottom { position: absolute; z-index: 2; bottom: calc(66px + env(safe-area-inset-bottom, 0px)); left: var(--pv-side); right: var(--pv-side); display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.pv-poetry > span { display: block; margin-bottom: 13px; font: 8px/1.5 Georgia, serif; letter-spacing: .24em; color: #b4c1b5; }
.pv-poetry h2 { font: 500 clamp(18px, 1.8vw, 28px)/1.7 var(--serif); letter-spacing: .12em; color: #f0e9d6; }
.pv-poetry h2 em { padding-left: .25em; color: #dac59a; }
.pv-continue { display: inline-flex; align-items: center; gap: 29px; min-height: 56px; color: #efe7d4; font: 12px/1.7 var(--serif); letter-spacing: .12em; }
.pv-continue small { display: block; padding-top: 6px; color: #b6c2b9; font: 7px/1.7 Georgia, serif; letter-spacing: .18em; }
.pv-continue > i { display: grid; place-items: center; width: 44px; height: 52px; border: 1px solid #e0cb984d; font: normal 24px/1 Georgia, serif; transition: border-color 300ms ease, transform 500ms cubic-bezier(.16,1,.3,1), background 300ms ease; }
.pv-continue:hover > i { transform: translateY(4px); border-color: #e0cb98b3; background: #ddcfa30b; }
.pv-page-actions { position: absolute; z-index: 3; left: var(--pv-side); bottom: calc(9px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 17px; }
.pv-page-actions button { min-height: 44px; padding: 0 2px; color: #d5d9c9; font: 11px/1.5 var(--serif); letter-spacing: .08em; transition: color 250ms ease; }
.pv-page-actions button:hover { color: #f5dfad; }
.pv-sound { display: inline-flex; align-items: center; gap: 11px; }
.pv-sound-wave { display: inline-flex; align-items: center; justify-content: center; gap: 3px; width: 19px; height: 18px; color: var(--pv-gold); }
.pv-sound-wave i { width: 2px; height: 11px; border-radius: 2px; background: currentColor; transform-origin: center; }
.pv-sound-wave i:nth-child(1) { height: 6px; }
.pv-sound-wave i:nth-child(2) { height: 14px; }
.pv-sound-wave i:nth-child(3) { height: 10px; }
.pv-sound-wave i:nth-child(4) { height: 5px; }
.pv-opening[data-state="playing"] .pv-sound-wave i { animation: pv-page-wave 1.75s ease-in-out infinite; }
.pv-opening[data-state="playing"] .pv-sound-wave i:nth-child(1) { animation-delay: -.3s; }
.pv-opening[data-state="playing"] .pv-sound-wave i:nth-child(2) { animation-delay: -.7s; }
.pv-opening[data-state="playing"] .pv-sound-wave i:nth-child(3) { animation-delay: -.15s; }
.pv-opening[data-state="playing"] .pv-sound-wave i:nth-child(4) { animation-delay: -.55s; }
.pv-action-divider { width: 1px; height: 11px; background: #c9c4a839; }
.pv-replay span { display: inline-block; padding-left: 6px; color: var(--pv-gold); font-size: 15px; }
.pv-status { position: absolute; z-index: 3; right: var(--pv-side); bottom: calc(21px + env(safe-area-inset-bottom, 0px)); max-width: min(48%, 440px); color: #ddcda8; font: 10px/1.6 var(--serif); text-align: right; }
.pv-progress { position: absolute; z-index: 3; inset: auto 0 0; height: 1px; background: #dcc59622; pointer-events: none; }
.pv-progress > i { display: block; height: 100%; width: var(--pv-progress); background: linear-gradient(90deg, #8d9177, #ead5a5); }
.pv-opening :is(button, a):focus-visible { outline: 2px solid #f4daa0; outline-offset: 5px; }
@keyframes pv-page-wave { 0%, 100% { transform: scaleY(.5); opacity: .65; } 50% { transform: scaleY(1); opacity: 1; } }
@media (min-width: 1450px) and (min-height: 850px) {
  .pv-page-bottom { bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
  .pv-page-actions { bottom: calc(21px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 760px) {
  .opening-sequence.pv-opening { --pv-side: 25px; min-height: 610px; }
  .pv-opening::before { height: 160px; }
  .pv-opening::after { height: 30%; }
  .pv-page-top { top: max(108px, calc(var(--header-height, 72px) + 29px)); }
  .pv-page-number { font-size: 7px; letter-spacing: .1em; }
  .pv-kicker { font-size: 10px; gap: 9px; }
  .pv-kicker > span { font-size: 8px; letter-spacing: .16em; }
  .pv-kicker > i { width: 20px; }
  .pv-marginalia { top: 24%; font-size: 7px; writing-mode: horizontal-tb; transform: none; right: var(--pv-side); }
  .pv-page-bottom { bottom: calc(77px + env(safe-area-inset-bottom, 0px)); display: block; }
  .pv-poetry > span { margin-bottom: 11px; font-size: 7px; letter-spacing: .17em; }
  .pv-poetry h2 { font-size: clamp(17px, 4.8vw, 24px); letter-spacing: .09em; }
  .pv-continue { width: 100%; justify-content: space-between; margin-top: 23px; min-height: 50px; font-size: 11px; }
  .pv-continue small { font-size: 6px; }
  .pv-continue > i { height: 44px; }
  .pv-page-actions { bottom: calc(15px + env(safe-area-inset-bottom, 0px)); gap: 15px; }
  .pv-page-actions button { font-size: 10px; }
  .pv-status { bottom: calc(62px + env(safe-area-inset-bottom, 0px)); left: var(--pv-side); right: auto; max-width: calc(100% - 50px); text-align: left; font-size: 9px; }
}
@media (max-height: 580px) and (min-width: 620px) {
  .opening-sequence.pv-opening { height: 100svh; min-height: 340px; --pv-side: max(25px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); }
  .pv-page-top { top: max(80px, calc(var(--header-height, 56px) + 15px)); }
  .pv-page-number { display: none; }
  .pv-marginalia { display: none; }
  .pv-page-bottom { bottom: calc(49px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: flex-end; }
  .pv-poetry > span { margin-bottom: 5px; font-size: 6px; }
  .pv-poetry h2 { font-size: 17px; }
  .pv-continue { width: auto; margin-top: 0; gap: 14px; min-height: 44px; font-size: 10px; }
  .pv-continue > i { height: 39px; width: 35px; }
  .pv-page-actions { bottom: calc(3px + env(safe-area-inset-bottom, 0px)); }
  .pv-page-actions button { font-size: 9px; }
  .pv-status { bottom: calc(17px + env(safe-area-inset-bottom, 0px)); left: auto; right: var(--pv-side); max-width: 50%; text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  .opening-sequence.pv-opening { display: block !important; }
  .pv-opening, .pv-opening *, .pv-opening *::before, .pv-opening *::after { animation: none !important; transition: none !important; }
}
