/* Kate Kolody Page Transitions */

.kkpt-transition-stage {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
}

.kkpt-transition-stage.is-open {
  display: block;
  pointer-events: auto;
}

.kkpt-transition-overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--kkpt-top-gap, 20vh);
  z-index: 5;
  border: 0;
  padding: 0;
  background: var(--kkpt-overlay-color, rgba(0,0,0,0.36));
  opacity: 0;
  backdrop-filter: blur(var(--kkpt-overlay-blur, 60px));
  -webkit-backdrop-filter: blur(var(--kkpt-overlay-blur, 60px));
  cursor: pointer;
  pointer-events: auto;
}

.kkpt-transition-overlay::after {
  content: "Close";
  position: absolute;
  right: 28px;
  top: 28px;
  color: #CDC9B9;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  opacity: 0.72;
}

.kkpt-incoming-shell {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--kkpt-panel-height, 80vh);
  overflow: hidden;
  background: #111111;
  transform: translate3d(0, 105%, 0);
  box-shadow: 0 -60px 140px rgba(0,0,0,0.46);
  will-change: transform, height;
  cursor: pointer;
}

.kkpt-incoming-hero {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background: #000000;
}

.kkpt-incoming-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.kkpt-incoming-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transform: scale(1.08);
  will-change: transform, opacity;
}

.kkpt-incoming-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0,0,0,0.32);
  pointer-events: none;
}

.kkpt-incoming-copy {
  position: absolute;
  left: 48px;
  right: 48px;
  bottom: 52px;
  z-index: 2;
  max-width: 960px;
  color: #CDC9B9;
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  will-change: transform, opacity;
}

.kkpt-incoming-kicker {
  margin-bottom: 16px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.kkpt-incoming-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(56px, 8vw, 132px);
  line-height: 0.88;
  font-weight: 400;
  letter-spacing: -0.075em;
}

.kkpt-scroll-cue {
  position: absolute;
  left: 48px;
  bottom: 24px;
  z-index: 3;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: rgba(205, 201, 185, 0.56);
  opacity: 0;
  transform: translateY(10px);
}

body.kkpt-transition-locked {
  overflow: hidden !important;
}

@media (max-width: 767px) {
  .kkpt-incoming-copy {
    left: 24px;
    right: 24px;
    bottom: 42px;
  }

  .kkpt-scroll-cue {
    left: 24px;
  }

  .kkpt-transition-overlay::after {
    right: 20px;
    top: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kkpt-transition-stage {
    display: none !important;
  }
}


/* v1.0.15: destination page top preview */
.kkpt-incoming-page-frame {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #111111;
  pointer-events: none;
  opacity: 0;
  transform: scale(1.015);
  transform-origin: center top;
  will-change: opacity, transform;
}

.kkpt-incoming-page-frame.is-loaded {
  opacity: 1;
}

.kkpt-incoming-media,
.kkpt-incoming-copy,
.kkpt-scroll-cue {
  pointer-events: none;
}

.kkpt-incoming-copy.is-hidden-template {
  display: none !important;
}

.kkpt-incoming-hero::after {
  background: transparent !important;
}


/* v1.0.17: mobile overlay/close and smoother mobile enter */
.kkpt-transition-overlay {
  background: var(--kkpt-overlay-color, rgba(0,0,0,0.36)) !important;
  backdrop-filter: blur(var(--kkpt-overlay-blur, 60px)) !important;
  -webkit-backdrop-filter: blur(var(--kkpt-overlay-blur, 60px)) !important;
}

.kkpt-transition-overlay::after {
  color: #CDC9B9 !important;
}

.kkpt-incoming-shell {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (max-width: 767px) {
  .kkpt-transition-overlay {
    height: var(--kkpt-top-gap, 20vh) !important;
    background: rgba(0,0,0,0.36) !important;
    backdrop-filter: blur(60px) !important;
    -webkit-backdrop-filter: blur(60px) !important;
  }

  .kkpt-transition-overlay::after {
    content: "" !important;
    display: none !important;
  }

  .kkpt-incoming-shell {
    cursor: pointer;
  }
}
