/* Pauram — Prologue Film player (opened from the hero "Prologue Film" button) */
.pf-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(255, 224, 130, 0.06), transparent 60%),
    rgba(3, 3, 5, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}
.pf-overlay.pf-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0s;
}

.pf-frame {
  width: min(1200px, 100%, calc((100vh - 140px) * 16 / 9));
  transform: translateY(14px) scale(0.985);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.pf-open .pf-frame { transform: none; }

.pf-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.pf-eyebrow {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgb(255 224 130 / 0.8);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pf-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgb(255 224 130);
  box-shadow: 0 0 10px rgba(255, 224, 130, 0.8);
}
.pf-title {
  margin: 6px 0 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.1;
  color: #f5f5f5;
}

.pf-close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #d4d4d4;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.pf-close:hover { background: #fff; color: #000; border-color: #fff; }
.pf-close:focus-visible { outline: 2px solid rgb(255 224 130); outline-offset: 3px; }
.pf-close kbd {
  font: inherit;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid currentColor;
  opacity: 0.5;
}

.pf-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(255, 224, 130, 0.04),
    0 30px 120px -20px rgba(56, 89, 248, 0.25),
    0 0 80px -10px rgba(255, 224, 130, 0.08);
}
.pf-screen video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

html.pf-locked, html.pf-locked body { overflow: hidden; }

@media (max-width: 640px) {
  .pf-overlay { padding: 16px; }
  .pf-screen { border-radius: 10px; }
  .pf-close kbd { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pf-overlay, .pf-frame { transition: none; }
}
