/* C-only: two Kyoto landscapes, 12s apart, with a 3s overlapping dissolve. */
/* Clip the fixed backdrop to the scrolling hero window. Keep ancestors free of
   transforms/paint containment so the viewport remains its containing block. */
.hero-stage { clip-path:inset(0); }
.hero-scene { overflow:hidden; }
.hero-parallax { position:fixed; inset:0; height:100vh; height:100lvh; }
.hero-scene .hero-slide { opacity:0; z-index:1; }
.hero-scene .hero-slide:first-child { opacity:1; }
.hero-scene::after { z-index:3; pointer-events:none; }
.hero-scene figcaption { z-index:4; bottom:max(18px,calc(100% - 100svh + 92px)); }

.hero-slides-ready .hero-slide, .hero-slides-ready .hero-slide:first-child { opacity:0; transition:opacity 3s linear; }
.hero-slides-ready .hero-slide.is-previous { opacity:1; transition:none; z-index:1; }
.hero-slides-ready .hero-slide.is-active { opacity:1; z-index:2; }
.hero-slide-controls {
  position:absolute; right:4px; bottom:max(12px,calc(100% - 100svh + 86px)); z-index:5;
  display:flex;
}
.hero-slide-controls button {
  display:grid; place-items:center; width:44px; height:44px; padding:0;
  border:0; background:none; color:white; cursor:pointer;
}
.hero-slide-controls button::after {
  content:""; width:9px; height:9px; border:1px solid currentColor;
  border-radius:50%; box-shadow:0 1px 4px #17292c55;
}
.hero-slide-controls button:first-child::after { transform:translateX(12px); }
.hero-slide-controls button:last-child::after { transform:translateX(-12px); }
.hero-slide-controls button[aria-pressed="true"]::after { background:currentColor; }
.hero-slide-controls button:focus-visible { outline:2px solid white; outline-offset:-4px; border-radius:50%; }
@media(min-width:900px) {
  .hero-slide-controls { right:84px; bottom:16px; }
  .hero-scene figcaption { right:190px; bottom:30px; }
  /* Only the bamboo's bright central sky needs a little shade behind the logo. */
  .hero-slide:nth-child(2)::after {
    content:""; position:absolute; inset:0; pointer-events:none;
    background:radial-gradient(ellipse at 50% 32%,#061c125c,transparent 57%);
  }
}
@media(prefers-reduced-motion:reduce) {
  .hero-stage { clip-path:none; }
  .hero-parallax { position:absolute; height:100%; }
  .hero-slides-ready .hero-slide { transition:none; }
  .hero-slide img { transform:none!important; }
}
