/* Homepage reveal: the second screen, between the customer logos and #product.
   Static and readable by default (no JavaScript, reduced motion, short viewports);
   reveal.js adds .is-enhanced for the short scroll scene, .is-masked once the
   Canvas 2D text mask has drawn and .is-glowing once the outline light is ready.
   Built into a hashed asset by build_reveal.py. */
.pp-reveal {
  --pp-reveal-top: 78px;
  position: relative;
  background: #000;
  color: #f5f5f7;
}
.pp-reveal-stage {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 40px;
  min-height: 100vh;
  min-height: calc(100svh - var(--pp-reveal-top));
  padding: 96px 20px 80px;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
/* The photo is a plain background layer, as in the reference design. A transformed,
   lazy-loaded <img> with object-fit left most of the masked words black on mobile
   after a reverse scroll or a desktop-to-mobile resize. Stacking stays explicit and
   non-negative: photo 0, mask 1, lockup 2, hint and credit 3. */
.pp-reveal-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../../img/reveal-kota.b658681adced.webp") 50% 62% / cover no-repeat;
  filter: brightness(0.38);
}
.pp-reveal-shade,
.pp-reveal-hint,
.pp-reveal-mask-canvas {
  display: none;
}
.pp-reveal-words,
.pp-reveal-title h2 {
  margin: 0;
  font-family: "Plus Instrument", sans-serif;
  font-variation-settings: "wdth" 100;
  font-weight: 700;
}
.pp-reveal-words {
  max-width: none;
  font-size: clamp(44px, 8vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  background: linear-gradient(90deg, #ffd9a0, #ff9f43 32%, #f5f5f7 55%, #6fcf97 80%, #2e8b57);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pp-reveal-mask {
  position: relative;
  z-index: 1;
}
.pp-reveal-lockup {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 0 16px;
}
.pp-reveal-title {
  --pp-reveal-pad: 32px;
  position: relative;
}
.pp-reveal-title h2 {
  max-width: none;
  font-size: clamp(32px, 8.5vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: #f5f5f7;
  transition: color 0.3s ease;
}
.pp-reveal-glow-src,
.pp-reveal-glow {
  position: absolute;
  left: calc(var(--pp-reveal-pad) * -1);
  top: calc(var(--pp-reveal-pad) * -1);
  width: calc(100% + var(--pp-reveal-pad) * 2);
  height: calc(100% + var(--pp-reveal-pad) * 2);
  pointer-events: none;
}
.pp-reveal-glow-src {
  opacity: 0;
}
.pp-reveal-glow {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  mix-blend-mode: screen;
  filter: brightness(1.6) saturate(1.15);
}
.pp-reveal-lockup p {
  max-width: 46ch;
  margin: 0;
  font-size: clamp(16px, 1.6vw, 21px);
  line-height: 1.45;
  letter-spacing: normal;
  color: #d2d2d7;
}

/* Enhanced scroll scene */
.pp-reveal.is-enhanced {
  /* With a roughly one-screen sticky stage, 168svh makes the animation's
     scroll travel about one quarter of the previous 400svh scene. */
  height: 168vh;
  height: 168svh;
}
.pp-reveal.is-enhanced .pp-reveal-stage {
  position: sticky;
  top: var(--pp-reveal-top);
  display: block;
  height: calc(100vh - var(--pp-reveal-top));
  height: calc(100svh - var(--pp-reveal-top));
  min-height: 0;
  padding: 0;
  background: #000;
}
/* No will-change on the photo: a permanently promoted layer kept stale, clipped
   tiles after the zoom, leaving most of the words black on mobile once the scene
   scrolled back to the start. */
.pp-reveal.is-enhanced .pp-reveal-photo {
  transform: translateY(var(--pp-photo-y, 0)) scale(var(--pp-photo-scale, 1));
  transform-origin: 50% 80%;
  filter: brightness(var(--pp-photo-bright, 1));
}
.pp-reveal.is-enhanced .pp-reveal-shade {
  display: block;
  position: absolute;
  inset: 0;
  background: #000;
  opacity: var(--pp-shade, 0);
}
/* The black surround with the words cut out is a stage-sized Canvas 2D layer
   (black fill, words removed with destination-out, zoom applied inside the 2D
   context by reveal.js): no CSS blending and no transformed, 61x DOM text, both
   of which left most of the words black on mobile after a reverse scroll. The
   DOM words keep their layout for measurement and the fallbacks, and are hidden
   only once the canvas has drawn (.is-masked). */
.pp-reveal.is-enhanced .pp-reveal-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: var(--pp-mask-opacity, 1);
}
.pp-reveal.is-enhanced .pp-reveal-mask-canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.pp-reveal.is-enhanced .pp-reveal-words {
  position: relative;
  font-size: min(clamp(56px, 11vw, 190px), calc((100vh - var(--pp-reveal-top)) * 0.26));
  font-size: min(clamp(56px, 11vw, 190px), calc((100svh - var(--pp-reveal-top)) * 0.26));
  background: none;
  color: #fff;
}
.pp-reveal.is-enhanced.is-masked .pp-reveal-words {
  /* Hidden with opacity, not visibility, because the canvas is aria-hidden and
     the words must stay in the accessibility tree and keep their boxes. */
  opacity: 0;
}
.pp-reveal.is-enhanced .pp-reveal-lockup {
  position: absolute;
  inset: 0;
  z-index: 2;
  place-content: center;
  opacity: var(--pp-lockup-opacity, 0);
  transform: translateY(var(--pp-lockup-y, 190px));
  pointer-events: none;
}
.pp-reveal.is-enhanced .pp-reveal-glow {
  display: block;
}
.pp-reveal.is-enhanced .pp-reveal-hint {
  display: block;
  position: absolute;
  bottom: calc(100px + env(safe-area-inset-bottom, 0px)); /* clear of the fixed .bottom-explore CTA */
  left: 0;
  right: 0;
  z-index: 3;
  margin: 0;
  font-size:14px;
  letter-spacing: normal;
  color: #a1a1a6;
  opacity: var(--pp-hint, 1);
}
/* Faint base outline where the light is away; only once the outline canvas has drawn. */
.pp-reveal.is-enhanced.is-glowing .pp-reveal-title h2 {
  color: rgba(245, 245, 247, 0.06);
  -webkit-text-stroke: 1px rgba(245, 245, 247, 0.22);
}
.pp-reveal.is-enhanced.is-glowing .pp-reveal-glow {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .pp-reveal-title h2,
  .pp-reveal-glow {
    transition: none;
  }
}
