/* Depth refinement for the user's ORIGINAL two-photo nature layout.
   No typography, spacing, buttons, navigation, content or functionality changes. */

/* A convincing two-plane stack: the mountain lives behind the waterfall. */
#start .rf-nature-pair {
  perspective: 1250px;
  perspective-origin: 50% 42%;
  transform: none;
  filter: none;
  isolation: isolate;
}
#start .rf-nature-pair::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -2;
  left: 10%; right: 8%; bottom: -2%; height: 15%;
  border-radius: 50%;
  background: radial-gradient(ellipse,rgba(32,74,43,.23) 0%,rgba(32,74,43,.07) 49%,transparent 76%);
  filter: blur(17px);
}
#start .rf-pair-photo {
  /* Physical shadows and crisp white photo-paper edges. */
  box-shadow:
    0 2px 0 rgba(255,255,255,.94) inset,
    0 1px 3px rgba(11,41,23,.09),
    0 22px 38px -14px rgba(26,60,36,.28),
    0 48px 82px -30px rgba(24,53,32,.35);
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  transition: transform .48s cubic-bezier(.16,1,.3,1), box-shadow .48s ease;
  animation: none !important; /* Never override live parallax transforms. */
  will-change: auto;
}
#start .rf-pair-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.23),
              inset 0 14px 18px -18px rgba(255,255,255,.60);
  background: linear-gradient(123deg,rgba(255,255,255,.19) 0%,rgba(255,255,255,.055) 18%,transparent 35%,transparent 78%,rgba(9,39,20,.07) 100%);
}
#start .rf-pair-photo::after {
  background: linear-gradient(160deg,rgba(255,255,255,.08),transparent 38%,rgba(13,47,25,.11));
}
#start .rf-pair-photo img {
  transform: scale(1.075);
  filter: saturate(1.06) contrast(1.035);
  transition: transform 1.1s cubic-bezier(.16,1,.3,1), filter .7s;
}
#start .rf-pair-mountain {
  box-shadow: 0 12px 22px -10px rgba(24,53,32,.22),
              0 35px 65px -27px rgba(25,59,39,.28);
  transform: perspective(1120px)
    translate3d(calc(-9px + var(--rf-back-x,0px)),calc(1px + var(--rf-back-y,0px) + var(--rf-back-scroll,0px)),-34px)
    rotateZ(8deg) rotateY(calc(-11deg + var(--rf-back-ry,0deg))) rotateX(var(--rf-back-rx,0deg));
}
#start .rf-pair-waterfall {
  box-shadow: 0 3px 8px rgba(10,46,22,.10),
              0 20px 37px -10px rgba(17,45,26,.34),
              0 53px 83px -24px rgba(19,50,28,.40);
  transform: perspective(1120px)
    translate3d(calc(6px + var(--rf-front-x,0px)),calc(10px + var(--rf-front-y,0px) + var(--rf-front-scroll,0px)),40px)
    rotateZ(-7deg) rotateY(calc(8deg + var(--rf-front-ry,0deg))) rotateX(var(--rf-front-rx,0deg));
}

/* Floating visual depth elsewhere, without repositioning content or clickable UI. */
.rf-editorial .scene-main {
  box-shadow: 0 26px 45px -19px rgba(18,49,29,.34),0 55px 85px -42px rgba(18,49,29,.24);
}
.rf-editorial .scene-detail {
  box-shadow: 0 15px 26px -10px rgba(18,49,29,.26),0 31px 58px -28px rgba(18,49,29,.22);
}
.rf-gallery-tile {
  box-shadow: 0 6px 12px rgba(32,77,41,.07),0 22px 42px -15px rgba(32,77,41,.23);
  transition: translate .5s cubic-bezier(.16,1,.3,1),box-shadow .5s ease;
}
.rf-snapshot {
  box-shadow: 0 6px 14px rgba(42,79,46,.035),0 28px 58px -27px rgba(35,79,48,.17);
}
@media (hover:hover) and (pointer:fine) {
  #start.rf-welcome:hover .rf-pair-waterfall {
    box-shadow: 0 7px 12px rgba(10,46,22,.10),0 29px 52px -13px rgba(17,45,26,.36),0 63px 94px -24px rgba(19,50,28,.45);
  }
  #start.rf-welcome:hover .rf-pair-waterfall img {transform: scale(1.105)}
  #start.rf-welcome:hover .rf-pair-mountain img {transform: scale(1.095)}
  .rf-gallery-tile:hover {translate: 0 -4px;box-shadow:0 11px 19px rgba(32,77,41,.11),0 31px 53px -13px rgba(32,77,41,.28)}
}
@media (max-width:760px) {
  /* Same original geometry; slightly tighter contact shadows on phones. */
  #start .rf-pair-photo {transition-duration: .7s;}
  #start .rf-pair-waterfall {box-shadow: 0 3px 8px rgba(10,46,22,.09),0 18px 30px -10px rgba(17,45,26,.33),0 38px 58px -24px rgba(19,50,28,.37)}
  #start .rf-pair-mountain {box-shadow:0 12px 20px -10px rgba(24,53,32,.24),0 31px 48px -27px rgba(25,59,39,.32)}
  #start .rf-nature-pair::after {bottom:0;filter:blur(12px)}
}
@media (prefers-reduced-motion:reduce) {
  #start .rf-pair-photo, #start .rf-pair-photo img, .rf-gallery-tile {transition:none!important;animation:none!important}
}
html.depth-paused #start .rf-pair-photo,
html.depth-paused #start .rf-pair-photo img {transition:none!important;}
