/* =============================================================
   bila-pani.css – Bílá paní – Scroll-snap presentation
   Standalone page. Only navbar.css + contact.css are inherited.
   Palette: void-black (#06070c) – moonsilver (#dde8ff) – frost (#bfd0f4)
============================================================= */

/* -- Tokens ------------------------------------------------- */
:root {
  --bg:       #06070c;
  --silver:   #dde8ff;
  --frost:    #bfd0f4;
  --steel:    #7a96cc;
  --text:     #edf1ff;
  --muted:    rgba(237,241,255,0.68);
  --ease-out: cubic-bezier(.14,.85,.2,1);
}

/* -- Base reset --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Rubik", sans-serif;
  opacity: 0;
  transition: opacity .6s ease;
  overflow: hidden;
}

body.loaded { opacity: 1; }

h1, h2, h3 { font-family: "Cinzel", serif; margin: 0; }
a { text-decoration: none; color: inherit; }

/* =============================================================
   GHOST ENTRY VEIL
   Full-screen dark overlay with a pulsing white-lady silhouette.
   Fades out after page load via JS (.bp-veil--gone class).
============================================================= */
.bp-veil {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #06070c;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1.4s ease .3s, visibility 1.4s ease .3s;
}

.bp-veil.bp-veil--gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.bp-veil-ghost {
  position: relative;
  width: 100px;
  height: 220px;
}

.bp-ghost-svg {
  width: 100%;
  height: 100%;
  animation: bpGhostPulse 3.4s ease-in-out infinite;
  filter:
    drop-shadow(0 0 28px rgba(180,210,255,0.72))
    drop-shadow(0 0 72px rgba(140,178,248,0.34));
}

@keyframes bpGhostPulse {
  0%, 100% { transform: scale(1);    opacity: .90; }
  50%       { transform: scale(1.06); opacity: 1;   }
}

/* -- Fixed background layers -------------------------------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50%  0%,  rgba(115,150,220,.12), transparent 44%),
    radial-gradient(circle at 18% 65%,  rgba(75,105,185,.07),  transparent 50%),
    radial-gradient(circle at 82% 35%,  rgba(95,128,205,.06),  transparent 50%),
    linear-gradient(180deg, #050610, #030410);
}

.bg-fog {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 58% 24%, rgba(148,175,232,.09), transparent 54%),
    radial-gradient(circle at 28% 68%, rgba(88,115,185,.06),  transparent 58%);
  filter: blur(26px);
  opacity: .85;
  animation: bpFogDrift 32s ease-in-out infinite;
}

@keyframes bpFogDrift {
  0%, 100% { transform: translate3d( 0,    0, 0) scale(1.02); }
  50%       { transform: translate3d(-1.5%, 1.2%, 0) scale(1.05); }
}

#mistCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .72;
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 38%, rgba(0,0,0,.72) 100%);
}

.bg-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: .18;
}

/* -- Deck (scroll container) -------------------------------- */
.deck {
  position: fixed;
  inset: 0;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  z-index: 5;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.deck::-webkit-scrollbar { display: none; }

/* -- Slides ------------------------------------------------- */
.slide {
  position: relative;
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* -- Reveal animation --------------------------------------- */
.rblock {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(5px);
  transition:
    opacity   .85s var(--ease-out) var(--rd, 0s),
    transform .85s var(--ease-out) var(--rd, 0s),
    filter    .85s var(--ease-out) var(--rd, 0s);
}

.slide.is-active .rblock {
  opacity: 1;
  transform: none;
  filter: none;
}

/* -- Chapter tag -------------------------------------------- */
.chapter-tag {
  display: block;
  font-family: "Cinzel", serif;
  font-size: clamp(.72rem, .72vw + .30rem, .86rem);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(191,208,244,.55);
  margin-bottom: 14px;
}

/* =============================================================
   SLIDE 0 - PROLOG
============================================================= */
.s-prolog {
  flex-direction: column;
  text-align: center;
}

.s-prolog__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.s-prolog__eyebrow {
  display: block;
  font-family: "Cinzel", serif;
  font-size: clamp(.70rem, .65vw + .28rem, .84rem);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(191,208,244,.58);
  margin-bottom: 22px;
  font-weight: 600;
}

.s-prolog__title {
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(2.8rem, 8vw, 7.5rem);
  letter-spacing: .04em;
  line-height: 1.05;
  color: var(--silver);
  text-shadow:
    0 0  78px rgba(191,208,244,.64),
    0 0 185px rgba(130,165,228,.30),
    0 22px 80px rgba(0,0,0,.80);
}

.s-prolog__rule {
  width: 86px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--silver), transparent);
  margin: 28px auto 34px;
  opacity: .40;
}

.s-prolog__sub {
  font-size: clamp(1rem, .98vw + .48rem, 1.20rem);
  color: var(--muted);
  letter-spacing: .06em;
  line-height: 1.65;
  margin: 0;
}

.s-prolog__cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-family: "Cinzel", serif;
  font-size: .75rem;
  letter-spacing: .22em;
  color: rgba(191,208,244,.54);
  font-weight: 600;
  animation: bpCueFloat 2.6s ease-in-out infinite 2.5s;
}

@keyframes bpCueFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* =============================================================
   SHARED: Ghost slide numerals
============================================================= */
.s-perchta__ghost,
.s-utrap__ghost,
.s-navrat__ghost,
.s-zjevi__ghost,
.s-poklad__ghost {
  position: absolute;
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(14rem, 32vw, 31rem);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  letter-spacing: -.02em;
  transition: color 1.2s ease;
  z-index: 1;
}

/* I - castle side - ghost right (behind SVG) */
.s-perchta__ghost {
  right: -4vw;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(191,208,244,.026);
}
.slide.is-active .s-perchta__ghost { color: rgba(191,208,244,.046); }

/* II - quote slide - ghost left */
.s-utrap__ghost {
  left: -4vw;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(191,208,244,.026);
}
.slide.is-active .s-utrap__ghost { color: rgba(191,208,244,.048); }

/* III - keys side - ghost right */
.s-navrat__ghost {
  right: -4vw;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(191,208,244,.026);
}
.slide.is-active .s-navrat__ghost { color: rgba(191,208,244,.048); }

/* IV - corridor - ghost right */
.s-zjevi__ghost {
  right: -4vw;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(191,208,244,.026);
}
.slide.is-active .s-zjevi__ghost { color: rgba(191,208,244,.048); }

/* V - cradle - ghost right */
.s-poklad__ghost {
  right: -4vw;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(191,208,244,.026);
}
.slide.is-active .s-poklad__ghost { color: rgba(191,208,244,.048); }

/* =============================================================
   SLIDE 1 - I - PERCHTA
   Text left, Cesky Krumlov castle SVG right.
============================================================= */
.s-perchta {
  justify-content: flex-start;
  padding-left: clamp(5%, 8vw, 12%);
}

.s-perchta__scene {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 55%;
  height: 92%;
  pointer-events: none;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.4s var(--ease-out) .12s,
              transform 1.4s var(--ease-out) .12s;
}
.slide.is-active .s-perchta__scene { opacity: 1; transform: translateY(0); }

.s-perchta__content {
  max-width: 500px;
  position: relative;
  z-index: 2;
}

.s-perchta__heading {
  font-size: clamp(2.2rem, 3.8vw + .6rem, 4.4rem);
  color: var(--silver);
  text-shadow: 0 0 52px rgba(191,208,244,.28);
  margin-bottom: 18px;
}

.s-perchta__body {
  font-size: clamp(.98rem, .92vw + .54rem, 1.16rem);
  line-height: 1.74;
  color: rgba(237,241,255,.88);
  margin: 0 0 16px;
}

.s-perchta__source {
  font-family: "Cinzel", serif;
  font-size: clamp(.68rem, .62vw + .28rem, .80rem);
  letter-spacing: .18em;
  color: rgba(191,208,244,.34);
  margin: 0;
}

/* =============================================================
   SLIDE 2 – II – UTRPENÍ
   Oversized quote. Centered.
============================================================= */
.s-utrap {
  flex-direction: column;
  text-align: center;
  padding: 0 clamp(20px, 8vw, 100px);
}

.s-utrap__inner {
  max-width: 870px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.s-utrap__quote {
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(1.8rem, 4.5vw, 4.2rem);
  color: var(--silver);
  text-shadow:
    0 0 55px rgba(191,208,244,.50),
    0 0 130px rgba(130,165,228,.22);
  margin: 12px 0 32px;
  font-style: normal;
  letter-spacing: .02em;
  line-height: 1.35;
  border: none;
  padding: 0;
}

.s-utrap__attr {
  font-family: "Cinzel", serif;
  font-size: clamp(.72rem, .68vw + .32rem, .86rem);
  letter-spacing: .18em;
  color: rgba(191,208,244,.50);
  margin: 0 0 22px;
}

.s-utrap__caption {
  font-size: clamp(.94rem, .88vw + .54rem, 1.10rem);
  line-height: 1.78;
  color: var(--muted);
  max-width: 620px;
  margin: 0;
}

/* =============================================================
   SLIDE 3 - III - NAVRAT
   Keys/gateway SVG left, text right.
============================================================= */
.s-navrat {
  justify-content: flex-end;
  padding-right: clamp(5%, 8vw, 12%);
}

.s-navrat__scene {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 52%;
  height: 94%;
  pointer-events: none;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.4s var(--ease-out) .12s,
              transform 1.4s var(--ease-out) .12s;
}
.slide.is-active .s-navrat__scene { opacity: 1; transform: translateY(0); }

.s-navrat__content {
  max-width: 500px;
  position: relative;
  z-index: 2;
}

.s-navrat__heading {
  font-size: clamp(2.2rem, 3.8vw + .6rem, 4.4rem);
  color: var(--silver);
  text-shadow: 0 0 52px rgba(191,208,244,.28);
  margin-bottom: 12px;
}

.s-navrat__body {
  font-size: clamp(.98rem, .92vw + .54rem, 1.16rem);
  line-height: 1.74;
  color: rgba(237,241,255,.88);
  margin: 0 0 16px;
}

.s-navrat__aside {
  font-size: clamp(.90rem, .84vw + .44rem, 1.06rem);
  color: rgba(191,208,244,.65);
  font-style: italic;
  border-left: 2px solid rgba(191,208,244,.28);
  padding-left: 16px;
  margin: 0;
}

/* =============================================================
   SLIDE 4 - IV - ZJEVENI
   Full-bleed corridor SVG. Text left.
============================================================= */
.s-zjevi {
  flex-direction: column;
  align-items: flex-start;
  padding-left:  clamp(5%, 8vw, 12%);
  padding-right: clamp(5%, 8vw, 12%);
}

.s-zjevi__scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.8s var(--ease-out) .05s;
}
.slide.is-active .s-zjevi__scene { opacity: 1; }

.s-zjevi__inner {
  max-width: 620px;
  position: relative;
  z-index: 2;
}

.s-zjevi__heading {
  font-size: clamp(1.6rem, 3.2vw + .6rem, 3.8rem);
  color: var(--silver);
  text-shadow: 0 0 52px rgba(191,208,244,.34);
  margin-bottom: 14px;
}

.s-zjevi__body {
  font-size: clamp(.98rem, .92vw + .54rem, 1.16rem);
  line-height: 1.74;
  color: rgba(237,241,255,.88);
  margin: 0 0 16px;
}

/* =============================================================
   SLIDE 5 - V - POKLAD
   Full-bleed chamber SVG. Centered quote.
============================================================= */
.s-poklad {
  flex-direction: column;
  text-align: center;
  padding: 0 clamp(20px, 8vw, 100px);
}

.s-poklad__scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.8s var(--ease-out);
}
.slide.is-active .s-poklad__scene { opacity: 1; }

.s-poklad__inner {
  max-width: 860px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.s-poklad__quote { margin: 10px 0 28px; }

.poklad-line {
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(1.6rem, 4.0vw + .4rem, 4.8rem);
  line-height: 1.28;
  color: var(--silver);
  text-shadow:
    0 0  58px rgba(191,208,244,.56),
    0 0 130px rgba(130,165,228,.22);
  margin: 0;
}

.s-poklad__attr {
  font-family: "Cinzel", serif;
  font-size: clamp(.80rem, .75vw + .40rem, .94rem);
  letter-spacing: .20em;
  color: rgba(210,225,252,0.92);
  margin: 0 0 22px;
  font-weight: 600;
}

.s-poklad__epilog {
  font-size: clamp(.96rem, .90vw + .52rem, 1.14rem);
  line-height: 1.74;
  color: var(--muted);
  font-style: italic;
  max-width: 560px;
  margin: 0;
}

/* =============================================================
   KONTAKTY slide - override contact.css height:auto
============================================================= */
.slide.kontakty {
  height: 100vh;
  align-items: center;
  justify-content: center;
}

/* -- Side progress dots ------------------------------------- */
.progress-nav {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
}

.pn-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(191,208,244,.36);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .22s ease, transform .22s ease, border-color .22s ease;
}

.pn-dot:hover { border-color: rgba(191,208,244,.80); transform: scale(1.3); }

.pn-dot.is-active {
  background: var(--frost);
  border-color: var(--frost);
  box-shadow: 0 0 9px rgba(191,208,244,.54);
  transform: scale(1.18);
}

.pn-dot::after {
  content: attr(aria-label);
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  font-family: "Cinzel", serif;
  font-size: .70rem;
  letter-spacing: .12em;
  color: rgba(191,208,244,.90);
  white-space: nowrap;
  background: rgba(6,7,14,.88);
  border: 1px solid rgba(191,208,244,.22);
  padding: 4px 10px;
  border-radius: 6px;
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.pn-dot:hover::after { opacity: 1; }

/* -- Navbar color overrides --------------------------------- */
.navbar {
  z-index: 1000;
  background-color: rgba(8,10,22,.68);
}

.navbar.scrolled { background-color: rgba(8,10,22,.32); }

.nav-links a:hover { background: rgba(191,208,244,.16); }

@media (max-width: 1100px) {
  .nav-links {
    background-color: rgba(6,7,14,.96);
    border-bottom: 1px solid rgba(191,208,244,.12);
  }
}

/* -- Contact color overrides -------------------------------- */
.kontakty-dotaznik textarea {
  background: rgba(12,15,34,.60);
  border: 1px solid rgba(191,208,244,.28);
  color: var(--text);
}

.kontakty-dotaznik textarea:focus {
  box-shadow: 0 0 0 6px rgba(191,208,244,.14);
}

.kontakty-dotaznik button {
  background: rgba(191,208,244,.88);
  color: #080c1e;
}

.kontakty-dotaznik button:hover { background: rgba(210,225,255,.96); }

.form-status { color: rgba(191,208,244,.85); }

.ornament-frame {
  border: 1px solid rgba(191,208,244,.38);
  background: rgba(0,0,0,.38);
  animation: bpBorderGlow 5s linear infinite;
}

.ornament-frame::before,
.ornament-frame::after {
  border: 1px solid rgba(191,208,244,.46);
}

@keyframes bpBorderGlow {
  0%   { box-shadow: 0 0 10px rgba(191,208,244,.16), inset 0 0 10px rgba(191,208,244,.10); }
  50%  { box-shadow: 0 0 24px rgba(191,208,244,.40), inset 0 0 18px rgba(191,208,244,.22); }
  100% { box-shadow: 0 0 10px rgba(191,208,244,.16), inset 0 0 10px rgba(191,208,244,.10); }
}

/* -- Responsive --------------------------------------------- */
@media (max-width: 768px) {
  .s-perchta,
  .s-navrat {
    justify-content: center;
    padding: 0 clamp(20px, 6vw, 40px);
  }

  .s-perchta__scene,
  .s-navrat__scene { display: none; }

  .s-perchta__ghost { font-size: clamp(10rem, 38vw, 18rem); right: -6vw; }
  .s-utrap__ghost   { font-size: clamp(10rem, 38vw, 18rem); left:  -6vw; }
  .s-navrat__ghost  { font-size: clamp(10rem, 38vw, 18rem); right: -6vw; }
  .s-zjevi__ghost   { font-size: clamp(10rem, 38vw, 18rem); right: -6vw; }
  .s-poklad__ghost  { font-size: clamp(10rem, 38vw, 18rem); right: -6vw; }

  .s-zjevi {
    padding-left:  clamp(20px, 5vw, 36px);
    padding-right: clamp(20px, 5vw, 36px);
  }

  .progress-nav { right: 10px; }
}

@media (max-width: 480px) {
  .s-perchta__ghost,
  .s-utrap__ghost,
  .s-navrat__ghost,
  .s-zjevi__ghost,
  .s-poklad__ghost { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
