.hero-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.creator-home .hero-image {
  --bank-start: 27%;
  --shore-start: 53%;
  --bough-top: -5%;
  --bough-right: -2%;
  --bough-width: clamp(238px, 29vw, 476px);
  --petal-start-x: calc(100% - var(--bough-right) - var(--bough-width) * .63);
  --petal-start-y: calc(var(--bough-top) + var(--bough-width) * .25);
  --petal-contact-x: 69%;
  --petal-contact-y: 74%;
  --petal-fall-delay: 1.14s;
  --petal-fall-duration: 1.7s;
  --petal-contact: calc(var(--petal-fall-delay) + var(--petal-fall-duration));
  inset: 0;
  background: #e8ebe2;
}
.creator-home .hero-image::before,
.creator-home .hero-image::after { content: none; }
.hero-landscape {
  --painting: url('/assets/hero-platform-wide-v1.webp');
  --painting-position: center 52%;
  position: absolute;
  inset: -10px;
  display: block;
  transform: translate3d(var(--scene-x, 0px), var(--scene-y, 0px), 0);
  transition: transform .32s cubic-bezier(.2,.7,.25,1);
}
.hero-landscape > picture { display: block; height: 100%; }
.hero-landscape img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--painting-position);
}
.river-reflection {
  position: absolute;
  inset: 0;
  visibility: hidden;
  clip-path: polygon(0 57%, 51% 58%, 74% 60%, 82% 63%, 90% 77%, 93% 100%, 0 100%);
  mask-image: radial-gradient(ellipse 62% 40% at 61% 86%, #000 29%, #000c 56%, transparent 96%);
}
.river-reflection-bands {
  position: absolute;
  inset: 0;
  background: var(--painting) var(--painting-position) / cover no-repeat;
  mask-image: repeating-linear-gradient(180deg, transparent 0 3px, #000d 5px, #000 7px, transparent 11px);
}
.river-mist {
  position: absolute;
  inset: 3% -8% 22% 12%;
  background:
    radial-gradient(ellipse 31% 17% at 62% 45%, #fffcf3ba, transparent),
    radial-gradient(ellipse 38% 16% at 46% 70%, #f7fff3a8, transparent);
  opacity: .4;
}
.river-water, .river-weather, .river-petals { position: absolute; inset: 0; }

/* The landscape supplies the far ridge, bridge and shore. Soft washes uncover
   those areas independently while the transparent branch moves in front. */
.river-wash { display: none; position: absolute; }
.is-scene-entering .river-wash { display: block; }
.river-wash--ridge {
  inset: 0 0 30%;
  background: linear-gradient(180deg, #f5f2e9 30%, #f2f1e5 61%, transparent);
}
.river-wash--bank {
  inset: var(--bank-start) -8% 12%;
  background: linear-gradient(180deg, transparent, #e8eee3 31%, #e8eee3 57%, transparent 88%);
}
.river-wash--water {
  inset: var(--shore-start) 0 -8%;
  background: linear-gradient(180deg, transparent, #e7eee5 26%, #edf1e7);
}
.river-foreground {
  position: absolute;
  top: var(--bough-top);
  right: var(--bough-right);
  width: var(--bough-width);
  transform: translate3d(calc(var(--scene-x, 0px) * -1.65), calc(var(--scene-y, 0px) * -1.25), 0);
  transition: transform .48s cubic-bezier(.2,.7,.25,1);
}
.river-branch, .river-branch-art { transform-origin: right top; }
.river-branch { position: relative; }
.river-branch-art { display: block; width: 100%; height: auto; }
.river-petal-flight {
  position: absolute;
  inset: var(--petal-start-y) calc(100% - var(--petal-start-x))
         calc(100% - var(--petal-contact-y)) var(--petal-contact-x);
}

.is-scene-entering .river-wash--ridge { animation: river-uncover-ridge .65s ease-out both; }
.is-scene-entering .river-wash--bank { animation: river-uncover-bank .82s .19s ease-out both; }
.is-scene-entering .river-wash--water { animation: river-uncover-water .81s .42s ease-out both; }
.is-scene-entering .river-water { animation: river-join-weather .48s .68s ease-out both; }
.is-scene-entering .river-weather, .is-scene-entering .river-petals { animation: river-join-weather .55s .78s ease-out both; }
.is-scene-entering .river-branch { animation: river-enter-branch .89s .54s cubic-bezier(.16,.6,.23,1) both; }
.is-scene-entering .river-first-petal { animation: river-release-petal var(--petal-fall-duration) var(--petal-fall-delay) linear both; }
.is-scene-entering .river-petal-impact { animation: river-petal-contact 1.55s var(--petal-contact) ease-out both; }

@keyframes river-uncover-ridge {
  from { opacity: .96; transform: translateY(-2%); }
  to { opacity: 0; transform: translateY(-14%); }
}
@keyframes river-uncover-bank {
  from { opacity: .95; transform: translateX(-5%); }
  to { opacity: 0; transform: translateX(14%); }
}
@keyframes river-uncover-water {
  from { opacity: 1; transform: translateY(-3%); }
  to { opacity: 0; transform: translateY(26%); }
}
@keyframes river-join-weather { from { opacity: 0; } to { opacity: 1; } }
@keyframes river-enter-branch {
  from { opacity: 0; transform: translate(13%, -24%) rotate(9deg); }
  68% { opacity: 1; transform: translate(-1%, 1%) rotate(-2.2deg); }
  to { opacity: 1; transform: none; }
}
@keyframes river-release-petal {
  0% { left: 100%; top: 0; opacity: 0; transform: translate(-50%, -50%) rotate(12deg) scale(.54); }
  12% { left: 97%; top: 3%; opacity: 1; transform: translate(-50%, -50%) rotate(27deg); }
  34% { left: 70%; top: 23%; transform: translate(-50%, -50%) rotate(87deg) scaleX(.72); }
  58% { left: 61%; top: 52%; transform: translate(-50%, -50%) rotate(144deg); }
  83% { left: 14%; top: 78%; transform: translate(-50%, -50%) rotate(204deg) scaleX(.65); }
  97% { opacity: .96; }
  100% { left: 0; top: 100%; opacity: 0; transform: translate(-50%, -50%) rotate(220deg) scaleY(.42); }
}

.river-ripple, .river-petal-impact {
  --ripple-width: clamp(52px, 8vw, 122px);
  position: absolute;
  width: var(--ripple-width);
  height: calc(var(--ripple-width) * .19);
  transform: translate(-50%, -50%);
}
.river-ripple { top: 72%; left: 78%; }
.river-ripple:nth-child(2) { left: 60%; top: 83%; --ripple-delay: -2.1s; --ripple-width: clamp(44px, 6vw, 96px); }
.river-ripple:nth-child(3) { left: 85%; top: 82%; --ripple-delay: -4.6s; }
.river-ripple::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(transparent, #fffef1e8);
  opacity: 0;
}
.river-ripple::after {
  content: "";
  position: absolute;
  inset: 0;
}
.river-ripple::after, .river-petal-impact {
  border: 1px solid #fffef3f5;
  border-radius: 50%;
  box-shadow: inset 0 0 3px #f4fff09c, 0 1px 1px #2f584870;
  opacity: 0;
}
.river-petal-impact {
  --ripple-width: clamp(62px, 10vw, 139px);
  top: var(--petal-contact-y);
  left: var(--petal-contact-x);
}
.river-petal-impact::after {
  content: "";
  position: absolute;
  inset: 17% 13%;
  border: 1px solid #f7fff1b0;
  border-radius: inherit;
}
.river-rain {
  position: absolute;
  inset: -180px 0 0;
  background: url('/assets/rain-fine.svg') 0 0 / 360px 180px repeat;
  opacity: .28;
}
.river-petals {
  transform: translate3d(calc(var(--scene-x, 0px) * -1), calc(var(--scene-y, 0px) * -1), 0);
  transition: transform .46s cubic-bezier(.2,.7,.25,1);
}
.river-petal, .river-first-petal {
  --petal-size: 8px;
  position: absolute;
  width: var(--petal-size);
  height: calc(var(--petal-size) * .68);
  border-radius: 70% 30% 68% 32%;
  background: linear-gradient(150deg, #fff5eb 6%, #efd5cd 62%, #cf9e99);
  box-shadow: 0 1px 2px #936e6433;
  opacity: 0;
}
.river-petal { top: 16%; left: 67%; }
.river-first-petal {
  --petal-size: clamp(8px, 1vw, 12px);
  top: 0;
  left: 100%;
}
.river-petal:nth-child(2) { top: 4%; left: 90%; --petal-size: 11px; --petal-duration: 13s; --petal-delay: -5s; }
.river-petal:nth-child(3) { top: 34%; left: 83%; --petal-size: 7px; --petal-duration: 10s; --petal-delay: -8s; }
.river-petal:nth-child(4) { top: 12%; left: 99%; --petal-size: 12px; --petal-duration: 15s; --petal-delay: -10s; }

.has-scene-motion .river-mist { animation: river-mist 23s ease-in-out infinite alternate; }
.has-scene-motion .river-reflection { visibility: visible; }
.has-scene-motion .river-reflection-bands { animation: river-reflection 5.6s ease-in-out infinite alternate; }
.has-scene-motion .river-ripple::before { animation: river-drop 6.8s var(--ripple-delay, 0s) linear infinite; }
.has-scene-motion .river-ripple::after { animation: river-ripple 6.8s var(--ripple-delay, 0s) ease-out infinite; }
.has-scene-motion .river-rain { animation: river-rain 1.55s linear infinite; }
.has-scene-motion .river-petal { animation: river-petal var(--petal-duration, 12s) var(--petal-delay, 0s) linear infinite; }
.has-scene-motion .river-branch-art { animation: river-bough-sway 7.4s ease-in-out infinite alternate; }
.has-scene-motion:not(.is-scene-playing) .river-effect,
.has-scene-motion:not(.is-scene-playing) .river-ripple::before,
.has-scene-motion:not(.is-scene-playing) .river-ripple::after { animation-play-state: paused; }
.creator-home:not(.has-scene-motion) .river-rain,
.creator-home.is-motion-off .river-rain { visibility: hidden; }
.creator-home .hero-copy > * { animation: none; }
.creator-home.is-motion-off .hero-landscape,
.creator-home.is-motion-off .river-foreground,
.creator-home.is-motion-off .river-petals { transition: none; }

@keyframes river-bough-sway {
  from { transform: rotate(calc(var(--bough-angle, 3deg) * -.65)); }
  38% { transform: rotate(calc(var(--bough-angle, 3deg) * .2)); }
  to { transform: rotate(var(--bough-angle, 3deg)); }
}
@keyframes river-mist {
  from { transform: translate3d(-5%, 1%, 0) scaleX(.96); opacity: .34; }
  60% { opacity: .78; }
  to { transform: translate3d(12%, -2%, 0) scaleX(1.1); opacity: .49; }
}
@keyframes river-reflection {
  from { transform: translate3d(-6px, 1px, 0) skewX(-.3deg); }
  48% { transform: translate3d(3px, -1px, 0) skewX(.12deg); }
  to { transform: translate3d(7px, .7px, 0) skewX(.26deg); }
}
@keyframes river-drop {
  0% { transform: translate(-50%, -42px); opacity: 0; }
  3% { opacity: .86; }
  8% { transform: translate(-50%, -100%); opacity: .86; }
  8.5%, 100% { transform: translate(-50%, -100%); opacity: 0; }
}
@keyframes river-ripple {
  0%, 8% { transform: scale(.08); opacity: 0; }
  11% { opacity: .92; }
  25% { transform: scale(.74); opacity: .56; }
  56%, 100% { transform: scale(1.18); opacity: 0; }
}
@keyframes river-petal-contact {
  0% { transform: translate(-50%, -50%) scale(.06); opacity: 0; }
  13% { opacity: 1; }
  55% { transform: translate(-50%, -50%) scale(.82); opacity: .58; }
  100% { transform: translate(-50%, -50%) scale(1.18); opacity: 0; }
}
@keyframes river-rain {
  to { transform: translate3d(0, 180px, 0); }
}
@keyframes river-petal {
  0% { transform: translate3d(18px, -22px, 0) rotate(-22deg); opacity: 0; }
  13% { opacity: .88; }
  31% { transform: translate3d(-13px, 44px, 0) rotate(38deg) scaleX(.72); }
  57% { transform: translate3d(-64px, 98px, 0) rotate(123deg); }
  78% { opacity: .64; }
  100% { transform: translate3d(-141px, 217px, 0) rotate(241deg) scaleX(.76); opacity: 0; }
}

.scene-controls {
  position: absolute;
  right: max(28px, calc((100% - 1170px) / 2), env(safe-area-inset-right));
  bottom: 20px;
  z-index: 2;
  display: flex;
  gap: 6px;
}
.scene-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #c8d3c7;
  border-radius: 100px;
  background: #fcfaf5f5;
  color: #345246;
  font-family: inherit;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
  pointer-events: auto;
}
.scene-toggle[hidden], .scene-sound { display: none; }
.scene-toggle[data-home-motion] > span {
  width: 10px;
  height: 11px;
  border-left: 7px solid currentColor;
  border-block: 5px solid transparent;
}
.scene-toggle[data-home-motion][aria-pressed="true"] > span {
  width: 8px;
  border: 0;
  border-inline: 2px solid currentColor;
}

@media (max-width: 620px) {
  .creator-home .hero,
  .creator-home .hero-inner { min-height: 0; }
  .creator-home .hero::after { content: none; }
  .hero-scene {
    position: relative;
    inset: auto;
    width: min(520px, calc(100% - max(18px, env(safe-area-inset-left)) - max(18px, env(safe-area-inset-right))));
    height: clamp(174px, 54vw, 300px);
    margin: 14px auto 0;
  }
  .creator-home .hero-image {
    --bank-start: 38%;
    --shore-start: 62%;
    --bough-top: -7%;
    --bough-width: clamp(132px, 42vw, 223px);
    --petal-contact-x: 30%;
    --petal-contact-y: 81%;
    z-index: 0;
    border-radius: 15px;
  }
  .hero-landscape {
    --painting: url('/assets/hero-jiangnan-v1.webp');
    --painting-position: center 63%;
    inset: 0;
    transform: none;
  }
  .river-reflection {
    clip-path: polygon(23% 71%, 49% 70%, 83% 76%, 89% 100%, 24% 100%, 16% 92%);
    mask-image: radial-gradient(ellipse 45% 31% at 50% 91%, #000 27%, #000b 61%, transparent 97%);
  }
  .river-mist { inset: 0 -19% 15%; }
  .river-foreground { --bough-angle: 2deg; transform: none; }
  .river-ripple { top: 91%; left: 27%; }
  .river-petal { top: 10%; left: 57%; }
  .river-petal:nth-child(2) { top: 2%; left: 87%; }
  .river-ripple:nth-child(n+2),
  .river-petal:nth-child(n+3) { display: none; }
  .river-rain { opacity: .24; }
  .scene-controls { right: 10px; bottom: -19px; }
  .scene-sound { display: inline-flex; }
  .creator-home > .sound-control { display: none; }
  .creator-home .hero-copy { padding: 25px 0 26px; }
  .creator-home .hero-copy .eyebrow { display: none; }
  .creator-home .hero h1 { font-size: clamp(32px, 9.8vw, 50px); line-height: 1.22; }
  .creator-home .hero-kicker { margin-block: 0 7px; }
  .creator-home .hero-description { margin-block: 15px 17px; line-height: 1.8; }
  .creator-home .hero-actions { flex-wrap: wrap; gap: 7px 16px; }
  .creator-home .hero-actions > a { min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
  .creator-home .hero-signature { margin-top: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scene .river-effect,
  .hero-scene .river-ripple::before,
  .hero-scene .river-ripple::after,
  .hero-scene :is(.river-branch, .river-water, .river-weather, .river-petals, .river-first-petal, .river-petal-impact) { animation: none !important; }
  .hero-landscape, .river-foreground, .river-petals { transform: none; transition: none; }
  .is-scene-entering .river-wash,
  .scene-toggle[data-home-motion], .river-rain, .river-reflection { display: none; }
}
