/* ============================================================
   ZEIT FÜR WAHRNEHMUNG — Master Edition 1.0
   Kein Website-Bereich. Ein eigenständiges digitales Werk.
   Schwarz. Gold. Sehr viel Leere. Keine Kästen, keine Buttons,
   keine Karten, keine Navigation, keine Seitenzahlen.
   ============================================================ */

*{ box-sizing:border-box; }
html,body{
  margin:0; padding:0; height:100%;
  background:#000; color:#F4F1EA;
  overflow:hidden;
  font-family:'Cormorant Garamond', Georgia, serif;
  cursor:none;
}
::selection{ background:#C7A15B; color:#000; }

.stage{
  position:fixed; inset:0;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center;
  padding:8vw;
  opacity:0;
  transition:opacity 1.8s ease;
}
.stage.active{ opacity:1; }

.line{
  opacity:0; transform:translateY(10px);
  transition:opacity 2.2s ease, transform 2.2s ease;
  font-weight:300;
  font-size:clamp(22px, 3.4vw, 42px);
  line-height:1.6;
  letter-spacing:.01em;
  color:#F4F1EA;
  max-width:16em;
}
.stage.active .line{ opacity:1; transform:translateY(0); }
.stage.active .line.d1{ transition-delay:.3s; }
.stage.active .line.d2{ transition-delay:2.6s; }
.stage.active .line.d3{ transition-delay:4.8s; }

.line.small{
  font-size:clamp(14px, 1.6vw, 19px);
  color:#c9c2b0; font-style:italic; font-weight:300; letter-spacing:.02em;
  max-width:22em; line-height:1.9;
}

.roman{
  opacity:0; transform:scale(.94);
  transition:opacity 2.4s ease, transform 2.4s ease;
  font-family:'Cinzel', 'Cormorant Garamond', serif;
  font-weight:500;
  font-size:clamp(70px, 13vw, 180px);
  color:#C7A15B;
  letter-spacing:.06em;
  text-shadow:0 0 60px rgba(199,161,91,.25);
}
.stage.active .roman{ opacity:1; transform:scale(1); }

.weiter{
  opacity:0;
  transition:opacity 2s ease;
  transition-delay:3.6s;
  margin-top:4.5em;
  font-family:'Inter',Arial,sans-serif;
  font-size:10px;
  letter-spacing:.5em;
  text-transform:uppercase;
  color:#8f8371;
}
.stage.active .weiter{ opacity:1; }

/* --- breathing light (Kapitel II) --- */
.breathe-wrap{ position:relative; width:1px; height:1px; }
.breathe-glow{
  position:absolute; top:50%; left:50%; width:60px; height:60px; margin:-30px 0 0 -30px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(255,240,205,.9) 0%, rgba(199,161,91,.35) 45%, transparent 75%);
  animation:breathe 4.2s ease-in-out infinite;
  filter:blur(2px);
}
@keyframes breathe{
  0%,100%{ transform:scale(.7); opacity:.5; }
  50%{ transform:scale(1.55); opacity:1; }
}

/* --- book (Kapitel V): der Besucher blättert selbst --- */
.book{ position:relative; width:min(70vw,520px); height:min(46vh,320px); perspective:1600px; cursor:pointer; }
.book-page{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  padding:2em;
  border:1px solid rgba(199,161,91,.28);
  backface-visibility:hidden;
  transition:transform .9s cubic-bezier(.4,0,.2,1), opacity .6s ease;
  font-style:italic; font-weight:300; font-size:clamp(16px,2vw,22px); line-height:1.85; color:#e7ddc8;
}
.book-page.next{ transform:rotateY(90deg); opacity:0; }
.book.flipped .book-page.current{ transform:rotateY(-90deg); opacity:0; }
.book.flipped .book-page.next{ transform:rotateY(0deg); opacity:1; }
.book-hint{
  position:absolute; left:0; right:0; bottom:-3.2em; text-align:center;
  font-family:'Inter',Arial,sans-serif; font-size:9px; letter-spacing:.35em; text-transform:uppercase;
  color:#6b6252; opacity:0; transition:opacity 2s ease; transition-delay:2.5s;
}
.stage.active .book-hint{ opacity:1; }

/* --- journey images (Kapitel VI): ein Raum, keine Seiten --- */
.journey{ position:absolute; inset:0; overflow:hidden; }
.journey-img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  filter:brightness(.6) saturate(.85) contrast(1.05);
  opacity:0;
  transform:scale(1.04);
  transition:opacity 3s ease, transform 1.4s ease-out;
  transition-property:opacity, transform;
}
.stage.active .journey-img{ opacity:1; }
.journey:after{ content:""; position:absolute; inset:0; background:radial-gradient(circle at 50% 50%, transparent 35%, rgba(0,0,0,.6) 100%); pointer-events:none; }
.weiter.img-weiter{ position:absolute; bottom:9vh; left:0; right:0; margin-top:0; z-index:2; }

/* --- end --- */
.return-link{
  opacity:0; transition:opacity 2s ease; transition-delay:3.2s;
  margin-top:3.5em; color:#a79f8f; font-size:12px; letter-spacing:.32em;
  text-transform:uppercase; text-decoration:none; cursor:pointer;
  border-bottom:1px solid transparent; padding-bottom:6px;
}
.stage.active .return-link{ opacity:1; }
.return-link:hover{ color:#C7A15B; border-color:rgba(199,161,91,.4); }

/* subtle escape hint, invisible until keyboard focus / long idle — not a button, just a whisper */
.escape-hint{
  position:fixed; bottom:26px; right:30px; z-index:5;
  font-size:9px; letter-spacing:.3em; text-transform:uppercase; color:#3a3529;
  opacity:0; transition:opacity 1.2s ease; pointer-events:none;
}
.escape-hint.show{ opacity:1; }

@media (prefers-reduced-motion: reduce){
  .stage, .line, .roman, .weiter, .journey-img, .book-page, .return-link{ transition:opacity .3s linear !important; transform:none !important; }
  .breathe-glow{ animation:none; opacity:.8; }
}

@media (max-width:700px){
  .line{ font-size:clamp(19px,5vw,28px); }
  .roman{ font-size:clamp(56px,20vw,110px); }
}
