/* =========================================================
   Page transitions (assets/js/page-transition.js)
   Leaving : gold then black waves grow out of the click point,
             the destination title rises out of a mask.
   Arriving: the black cover lifts away with a curved edge,
             the new page glides up into place.
   The overlay is appended to <html>, outside <body>, so it is
   not moved when the page content is animated.
   ========================================================= */
html.pt_on { background: #000; }
html.pt_busy body { pointer-events: none; }
/* no browser scrollbar beside the transition screen (it showed while the
   new page loaded, before smooth scrolling took over) */
html.pt_busy,
html.pt_busy body {
  overflow: hidden !important;
  scrollbar-width: none;
}
html.pt_busy::-webkit-scrollbar,
html.pt_busy body::-webkit-scrollbar {
  display: none;
}

/* the old fade-out preloader is replaced by the overlay */
html.pt_on #preloader { display: none !important; }
/* until the script takes over, the old preloader is a plain black screen (no second logo) */
#preloader img { display: none !important; }

.pt_overlay {
  position: fixed;
  inset: 0;
  z-index: 10000000;
  pointer-events: none;
  overflow: hidden;
}
html.pt_busy .pt_overlay { pointer-events: auto; }

/* Everything below animates with transform/opacity only, so the
   graphics card does the work and frames don't drop on heavy pages. */

/* ---------- leaving: circular waves from the click point ---------- */
/* JS sizes each circle to reach the farthest corner and centres it on the click */
.pt_wave {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  transform: scale(0);
  will-change: transform;
}
.pt_wave_gold {
  background: linear-gradient(120deg, #a87900 0%, #ffc227 35%, #ffdd9f 55%, #ffc227 75%, #a87900 100%);
}
.pt_wave_dark { background: #070707; }

/* ---------- arriving: cover that lifts away with a curved edge ---------- */
.pt_lift {
  position: absolute;
  inset: 0;
  will-change: transform;
  visibility: hidden;
}
.pt_lift_gold { background: #ffc227; }
.pt_lift_dark { background: #070707; }
/* the curved "drip" hanging under the cover while it moves */
.pt_curve {
  position: absolute;
  top: calc(100% - 1px);
  left: -10%;
  width: 120%;
  height: 22vh;
  background: inherit;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  transform: scaleY(0);
  transform-origin: 50% 0;
  will-change: transform;
}

/* ---------- content on the dark layer ---------- */
.pt_stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 7vw;
  color: #fff;
  font-family: "BlauerNue", sans-serif;
  visibility: hidden;
}
.pt_meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 2.2vh;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.pt_index { color: #ffc227; font-weight: 600; }
.pt_meta_line {
  display: block;
  width: 48px;
  height: 1px;
  background: rgba(255, 194, 39, 0.6);
  transform-origin: left;
}
/* each word sits in a mask and rises into view */
.pt_title {
  margin: 0;
  font-size: clamp(46px, 9.5vw, 168px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.pt_word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.04em 0.02em 0.1em;
  margin-right: 0.22em;
}
.pt_word > span {
  display: inline-block;
  background: linear-gradient(100deg, #ffc227 0%, #ffdd9f 40%, #ffc227 60%, #a87900 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  will-change: transform;
}
.pt_foot {
  position: absolute;
  left: 7vw;
  right: 7vw;
  bottom: 5vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 767px) {
  .pt_meta { font-size: 11px; }
  .pt_foot { font-size: 10px; }
}
