.collection-banner {
  --collection-corner: 18px;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: clamp(48px, 6vw, 72px);
  margin: 5px 0 7px;
  padding: 8px 16px;
  overflow: hidden;
  border-radius: var(--collection-corner);
  clip-path: inset(0 round var(--collection-corner));
  color: #fff;
  background: #263750;
}

.collection-scenes,
.collection-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.collection-scenes {
  z-index: 0;
}

.collection-scenes::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(90deg, #0a17221a, #0a1722b3 29%, #0a1722b3 71%, #0a17221a);
}

.collection-scene {
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transition: opacity 340ms ease, visibility 0s 340ms;
}

.collection-scene.is-current {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.collection-scene::before,
.collection-scene::after,
.collection-scene-edge,
.collection-flight-track {
  position: absolute;
}

.collection-scene::before {
  content: "";
  inset: -10% -6%;
  background: var(--art) center var(--focus, 55%) / cover;
  animation: collection-depth var(--drift, 9s) ease-in-out -2.2s infinite alternate paused;
}

.collection-scene-edge {
  inset: -12% -10%;
  opacity: var(--edge-opacity, .46);
  background: var(--art) center var(--focus, 55%) / cover;
  mask-image: linear-gradient(90deg, #000 0%, #000 8%, transparent 29%, transparent 71%, #000 92%, #000);
  animation: collection-detail var(--near, 6.5s) ease-in-out -1.4s infinite alternate paused;
}

.collection-scene::after {
  content: "";
  inset: -15% -20%;
  background: var(--light);
  mix-blend-mode: var(--light-blend, screen);
  animation: collection-light var(--sweep, 5.2s) ease-in-out -1.5s infinite alternate paused;
}

.collection-banner.is-running .collection-scene.is-current::before,
.collection-banner.is-running .collection-scene.is-current::after,
.collection-banner.is-running .collection-scene.is-current :is(.collection-scene-edge, .collection-flight-track, .collection-flight-track > i) {
  animation-play-state: running;
}

.collection-flight-track {
  inset-inline-start: 0;
  inset-block-start: var(--flight-top, 34%);
  inline-size: var(--flight-width, 34%);
  block-size: 16px;
  opacity: 0;
  animation: collection-flight var(--flight-time, 3.55s) linear var(--flight-delay, -.48s) infinite var(--flight-direction, normal) paused;
}
.collection-flight-track > i {
  display: block;
  inline-size: var(--flyer-width, 16px);
  aspect-ratio: 1;
  background: var(--flyer) center / contain no-repeat;
  filter: var(--petal-color, saturate(1)) drop-shadow(0 1px 2px #07162b80);
  animation: collection-petal-turn var(--petal-spin, 1.45s) ease-in-out infinite alternate paused;
}
.collection-flight-track.petal-right {
  inset-inline-start: auto;
  inset-inline-end: 0;
  --flight-top: 26%;
  --flight-width: 30%;
  --flight-time: 4s;
  --flight-delay: -1.38s;
  --flight-direction: reverse;
  --flight-rise: 10px;
  --flyer: url('/assets/collections/kelopak-cerah.webp');
  --flyer-width: 15px;
}
.petal-left { --flyer: url('/assets/collections/kelopak-biru.webp'); }

.scene-romansa-foto {
  --art: url('/assets/collections/romansa-kebun.webp');
  --focus: 59%;
  --move: -3%; --lift: -5%; --tilt: -1.6deg; --sweep: 6.4s;
  --light: radial-gradient(ellipse at 59% 79%, #bbc9d861, transparent 55%);
}
.scene-romansa-foto .petal-left {
  --flight-top: 61%; --flight-rise: -19px; --flight-delay: -1.18s; --flight-time: 4.2s;
}
.scene-romansa-tanpa-foto {
  --art: url('/assets/collections/romansa-cat-air.webp');
  --focus: 51%;
  --move: 2.5%; --lift: 5%; --tilt: 1.5deg; --near: 7s;
  --light: radial-gradient(ellipse at 77% 64%, #d2adcb62, transparent 47%);
  --petal-color: hue-rotate(43deg) saturate(.85);
  --petal-spin: 2s;
}
.scene-romansa-tanpa-foto .petal-left {
  --flight-top: 39%; --flight-rise: 11px; --flight-time: 4s;
}
.scene-romansa-tanpa-foto .petal-right {
  --flight-top: 58%; --flight-rise: -14px; --flight-delay: -2s;
}
.scene-minimalis-foto {
  --art: url('/assets/collections/minimalis-galeri.webp');
  --focus: 54%;
  --move: -3.5%; --lift: 1%; --tilt: -.3deg; --drift: 10s; --sweep: 5.2s;
  --edge-opacity: .27;
  --light: linear-gradient(116deg, transparent 24%, #1c292745 27%, #1c292775 39%, transparent 48%, transparent 51%, #1c29274d 59%, transparent 63%);
  --light-blend: multiply;
}
.scene-minimalis-tanpa-foto {
  --art: url('/assets/collections/minimalis-kaca.webp');
  --focus: 54%;
  --move: 3.5%; --lift: -2%; --sweep: 4.1s;
  --light: linear-gradient(124deg, transparent 23%, #c5dffe60 35%, #e4f9ff8c 43%, transparent 54%);
}
.scene-minimalis-tanpa-foto .collection-scene-edge {
  inset: -23% -15%;
  opacity: .8;
  background: linear-gradient(66deg, transparent 49%, #87abd151 64%, #d0efff63 70%, transparent 79%);
  mix-blend-mode: screen;
  mask-image: none;
  animation: collection-light 6.1s ease-in-out -2.9s infinite alternate-reverse paused;
}
.scene-klasik-foto {
  --art: url('/assets/collections/klasik-taman-kaca.webp');
  --focus: 62%;
  --move: -3.5%; --lift: -5%; --drift: 10s; --sweep: 6.8s;
  --light-travel: 12%;
  --light: radial-gradient(ellipse at 78% 16%, #ffdf9859, transparent 52%),
           radial-gradient(ellipse at 33% 80%, #b9dbff32, transparent 50%);
}

.scene-klasik-foto .collection-scene-edge {
  inset: 0;
  z-index: 2;
  opacity: 1;
  background: none;
  mask-image: none;
  animation: none;
}

.scene-klasik-foto .collection-scene-edge::before,
.scene-klasik-foto .collection-scene-edge::after {
  content: "";
  position: absolute;
  inset-block-end: -40%;
  inline-size: clamp(68px, 27%, 196px);
  aspect-ratio: 1.6;
  background: url('/assets/collections/klasik-ranting.webp') center / contain no-repeat;
  transform-origin: 9% 91%;
  animation: collection-garden-foliage 4.1s ease-in-out -1.5s infinite alternate paused;
}

.scene-klasik-foto .collection-scene-edge::before { inset-inline-start: -5%; }

.scene-klasik-foto .collection-scene-edge::after {
  inset-inline-end: -4%;
  inset-block-end: -30%;
  --foliage-side: -1;
  animation-duration: 5.3s;
  animation-delay: -3.8s;
}

.collection-garden-bird {
  --travel-direction: 1;
  --bird-heading: 84deg;
  --wing-span: clamp(22px, 6.25vw, 38px);
  --flight-top: 34%;
  --flight-arc: 8px;
  --flight-time: 6.6s;
  --flight-delay: -1.1s;
  --flap-time: 1.35s;
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: var(--flight-top);
  inline-size: 100%;
  block-size: 0;
  z-index: 1;
  opacity: 0;
  animation: collection-garden-flight var(--flight-time) linear var(--flight-delay) infinite paused;
}

.collection-garden-bird:nth-last-child(2) {
  --travel-direction: -1;
  --bird-heading: -94deg;
  --wing-span: clamp(18px, 4.9vw, 30px);
  --flight-top: 60%;
  --flight-arc: -8px;
  --flight-time: 8.1s;
  --flight-delay: -3.8s;
  --flap-time: 1.64s;
  inset-inline-start: 100%;
}

.collection-garden-bird:last-child {
  --bird-heading: 89deg;
  --wing-span: clamp(14px, 4vw, 22px);
  --flight-top: 30%;
  --flight-arc: 8px;
  --flight-time: 10.6s;
  --flight-delay: -7.35s;
  --flap-time: 1.92s;
}

.collection-garden-bird > i {
  --swallow: url('/assets/collections/klasik-layang-layang.webp');
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0;
  inline-size: var(--wing-span);
  aspect-ratio: 2 / 1;
  transform: translate(-50%, -50%) rotate(var(--bird-heading));
  filter: brightness(1.76) drop-shadow(0 1px 2px #061c3d90);
}

.collection-garden-bird > i::before,
.collection-garden-bird > i::after,
.collection-garden-bird b {
  position: absolute;
  inset: 0;
  display: block;
  background: var(--swallow) center / 100% 100% no-repeat;
}

.collection-garden-bird > i::before,
.collection-garden-bird > i::after {
  content: "";
  animation: collection-garden-wing var(--flap-time) ease-in-out var(--flight-delay) infinite paused;
}

.collection-garden-bird > i::before {
  --wing-side: 1;
  clip-path: polygon(0 0, 49% 0, 52% 52%, 44% 60%, 0 60%);
  transform-origin: 47% 36%;
}

.collection-garden-bird > i::after {
  --wing-side: -1;
  clip-path: polygon(51% 0, 100% 0, 100% 60%, 56% 60%, 48% 52%);
  transform-origin: 53% 36%;
}

.collection-garden-bird b {
  z-index: 1;
  clip-path: polygon(43% 0, 57% 0, 57% 20%, 54% 40%, 55% 65%, 62% 100%, 38% 100%, 45% 65%, 46% 40%, 43% 20%);
}

.collection-banner.is-running .collection-scene.is-current .collection-scene-edge::before,
.collection-banner.is-running .collection-scene.is-current .collection-scene-edge::after,
.collection-banner.is-running .collection-scene.is-current .collection-garden-bird,
.collection-banner.is-running .collection-scene.is-current .collection-garden-bird > i::before,
.collection-banner.is-running .collection-scene.is-current .collection-garden-bird > i::after {
  animation-play-state: running;
}

@keyframes collection-garden-foliage {
  from { transform: scaleX(var(--foliage-side, 1)) rotate(-6deg) translateY(3%); }
  to { transform: scaleX(var(--foliage-side, 1)) rotate(6deg) translateY(-5%); }
}

@keyframes collection-garden-flight {
  0% {
    transform: translate3d(calc(-10% * var(--travel-direction)), 5px, 0);
    opacity: 0;
  }
  15% { opacity: .94; }
  38% { transform: translate3d(calc(36% * var(--travel-direction)), var(--flight-arc), 0); }
  66% { transform: translate3d(calc(71% * var(--travel-direction)), calc(-.6 * var(--flight-arc)), 0); }
  88% { opacity: .83; }
  100% {
    transform: translate3d(calc(110% * var(--travel-direction)), -4px, 0);
    opacity: 0;
  }
}

@keyframes collection-garden-wing {
  0%, 51%, 100% { transform: perspective(90px) rotateY(0deg); }
  10%, 33% { transform: perspective(90px) rotateY(calc(var(--wing-side) * 62deg)); }
  21%, 43% { transform: perspective(90px) rotateY(calc(var(--wing-side) * -46deg)); }
  73% { transform: perspective(90px) rotateY(calc(var(--wing-side) * 12deg)); }
}

.scene-klasik-tanpa-foto {
  --art: url('/assets/collections/klasik-botani.webp');
  --focus: 52%;
  --move: -2%; --lift: 4%; --tilt: .9deg; --sweep: 5.8s;
  --light-travel: 17%;
  --light: radial-gradient(ellipse at 37% 59%, #e6cd9069, transparent 48%);
  --petal-spin: 1.8s;
}
.scene-klasik-tanpa-foto .petal-left {
  --flight-rise: 12px; --flight-top: 22%; --flight-time: 4.7s;
}
.scene-klasik-tanpa-foto .petal-right {
  --flight-rise: -12px; --flight-top: 66%; --flight-time: 5.1s; --flight-delay: -2s;
}
.scene-adat-foto {
  --art: url('/assets/collections/adat-pendopo.webp');
  --focus: 58%;
  --move: -3.5%; --lift: 2%; --tilt: .8deg; --drift: 10.5s; --sweep: 6.2s;
  --light: radial-gradient(ellipse at 25% 28%, #ffce897a, transparent 47%);
}
.scene-adat-foto .collection-garden-bird {
  --bird-heading: 78deg;
  --flight-top: 38%;
  --flight-arc: -7px;
  --flight-time: 8.2s;
  --flight-delay: -1.8s;
}
.scene-adat-foto .collection-garden-bird:nth-last-child(2) {
  --bird-heading: -81deg;
  --flight-top: 56%;
  --flight-arc: 7px;
  --flight-time: 6.9s;
  --flight-delay: -3.5s;
}
.scene-adat-foto .collection-garden-bird:last-child {
  --bird-heading: 94deg;
  --flight-top: 31%;
  --flight-arc: 6px;
  --flight-time: 11.2s;
  --flight-delay: -9.1s;
}
.scene-adat-tanpa-foto {
  --art: url('/assets/collections/adat-tenun.webp');
  --focus: 52%;
  --move: 2%; --lift: 2%; --tilt: -.6deg; --near: 8s; --sweep: 4.8s;
  --light: linear-gradient(106deg, transparent 15%, #c18b491c 29%, #ffd8948c 39%, #ffddab45 47%, transparent 62%);
  --petal-color: sepia(.76) saturate(1.34);
  --petal-spin: 2.2s;
}
.scene-adat-tanpa-foto .petal-left {
  --flight-top: 25%; --flight-rise: 9px; --flight-time: 5.5s; --flight-delay: -1.2s;
}
.scene-adat-tanpa-foto .petal-right {
  --flight-top: 57%; --flight-rise: -11px; --flight-time: 4.7s; --flight-delay: -2.2s;
}

@keyframes collection-depth {
  from { transform: translate3d(0, 0, 0) scale(1.015); }
  to { transform: translate3d(var(--move), var(--lift), 0) scale(1.09); }
}
@keyframes collection-detail {
  from { transform: translate3d(-1%, 0, 0) scale(1.05); }
  to { transform: translate3d(1%, 2%, 0) scale(1.11) rotate(var(--tilt)); }
}
@keyframes collection-light {
  from { transform: translate3d(calc(-1 * var(--light-travel, 29%)), -5%, 0); opacity: .56; }
  to { transform: translate3d(var(--light-travel, 29%), 5%, 0); opacity: .97; }
}
@keyframes collection-flight {
  0% { transform: translate3d(-10%, 0, 0); opacity: 0; }
  17% { opacity: .88; }
  78% { opacity: .76; }
  100% { transform: translate3d(108%, var(--flight-rise, -12px), 0); opacity: 0; }
}
@keyframes collection-petal-turn {
  from { transform: rotate(-20deg) scaleX(.78); }
  to { transform: rotate(78deg) scaleX(1); }
}
.collection-title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff;
  font: 600 clamp(14px, 3.9vw, 21px) / 1.25 Inter, Arial, sans-serif;
  text-align: center;
  text-shadow: 0 1px 6px #0d1728;
}

@media (prefers-reduced-motion: reduce) {
  .collection-scene { transition: none; }

  .collection-scene::before,
  .collection-scene::after,
  .collection-scene-edge,
  .collection-scene-edge::before,
  .collection-scene-edge::after {
    animation: none;
  }

  .scene-klasik-foto .collection-scene-edge::after { transform: scaleX(-1); }
  .collection-garden-bird,
  .collection-flight-track { display: none; }
}
