/* =========================================================================
   Cincin Gerhana — warna, huruf, dan panggung MESIN CAHAYA.

   Kartu, section, sampul, jendela adegan & layar lebar: _base/assets/parallax.css.
   Di sini (partials/stage, posisi dari scene.php):
     .cg-sky      empat langit saling-pudar: fajar, siang, gerhana, malam
     .cg-eclipse  matahari, bulan (+ prominensa), korona, cincin berlian —
                  satu titik tengah (--ex, --ey)
     .cg-land     daratan satu kelompok. Cahaya = filter pada KELOMPOK
                  (urutan fungsi sama di semua keadaan supaya interpolasi
                  mulus; hue-rotate sengaja 0 — memutarnya melewati hijau/
                  ungu di tengah transisi) + .cg-shade biru (multiply) yang
                  hanya menutupi daratan. Filter per lapisan dari variabel
                  CSS hanya ±40 fps di ponsel kelas menengah (prototipe);
                  filter kelompok 60 fps.

   Pembukaan (detik setelah "Buka undangan", total 10 — data-px-open).
   Satu garis waktu (animasi 10 dtk) hanya selama body.is-open:not(.px-opened):
     0,3–3,4  lautan awan terbelah & turun, kamera naik ke punggung kaldera
     3,0–4,6  fajar → siang; 2,8–5,0 matahari terbit
     5,0–8,2  bulan menutup matahari, cahaya meredup, bintang & planet muncul
     7,9–8,6  korona menyala; 8,2–9,6 CINCIN BERLIAN (kilatan sekali, ≤ .35)
     8,5–     nama muncul
   Setelah body.px-opened (atau tombol "Lewati" → .cg-skip): animasi
   dilepas, keadaan babak (body[data-ch]) mengambil alih dengan transisi.
   ========================================================================= */

body.px--cincingerhana {
    --c-paper: #FAF6EE;
    --c-ink: #16161F;
    --c-accent: #8C6A1E;
    --c-action: #28345C;
    --c-gold: #D4A848;
    --c-muted: color-mix(in srgb, var(--c-ink) 60%, var(--c-paper));
    --c-rule: color-mix(in srgb, var(--c-gold) 36%, var(--c-paper));
    --c-sunk: color-mix(in srgb, var(--c-gold) 7%, var(--c-paper));

    --f-display: 'Cinzel', Georgia, serif;
    --f-script: 'Italianno', cursive;
    --f-body: 'Cormorant Garamond', Georgia, serif;

    --px-veil: #0B1024;
    --px-hero-ink: #F7F4FF;
    --px-hero-shadow: 0 2px 18px rgb(5 8 25 / .85), 0 0 34px rgb(170 200 255 / .45);
    /* Area putih susu bingkai-sampul (diukur): atas 25%, kanan 13%, bawah 11%, kiri 13%. */
    --px-cover-in: 28% 15% 13% 15%;
    --cg-ease: cubic-bezier(.5, 0, .2, 1);
}

/* ------------------------------------------------------------------ sampul */

body.px--cincingerhana .px-cover__names { font-size: 21cqw; }
body.px--cincingerhana .px-cover__names .px-amp { font-size: .4em; }

/* --------------------------------------------------------------- panggung */

.cg-stage { background: #0B1024; }
.cg-stage img:not(.px-pt) { display: block; max-width: none; }
body.px--cincingerhana .cg-stage * { --u: max(100cqh / 1920, 100cqw / 1080); --oy: calc((100cqh - var(--u) * 1920) / 2); }
@media (min-width: 900px) { body.px--cincingerhana .cg-stage * { --u: max(100cqh / 1920, 100cqw / 2400); } }

/* Langit. */
.cg-sky { position: absolute; inset: 0; }
.cg-sky__layer { position: absolute; inset: 0; opacity: 0; transition: opacity 2.4s ease; }
.cg-sky__layer img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.cg-sky--dawn { opacity: 1; }

/* Benda langit. */
.cg-stage .cg-planet { position: absolute; height: auto; opacity: 0; transition: opacity 2s ease; }
.cg-eclipse { position: absolute; left: calc(50% + var(--u) * (var(--ex) - 540)); top: calc(var(--oy) + var(--u) * var(--ey)); width: 0; height: 0; }
.cg-eclipse > *, .cg-moon > * { position: absolute; left: 0; top: 0; }
.cg-stage .cg-sun { width: calc(var(--u) * var(--sun)); translate: -50% calc(-50% + var(--u) * 520); transition: translate 3s var(--cg-ease), opacity 2s ease; }
.cg-stage .cg-corona { width: calc(var(--u) * var(--corona)); translate: -50% -50%; opacity: 0; mix-blend-mode: screen;
    transition: opacity 2s ease, scale 3s var(--cg-ease); }
.cg-moon { width: calc(var(--u) * var(--moon)); aspect-ratio: 1; translate: calc(-50% + var(--u) * var(--moon-from)) -50%; opacity: 0;
    transition: translate 3.2s var(--cg-ease), opacity 1.6s ease; }
.cg-stage .cg-moon__disc { position: relative; width: 100%; height: auto; }
/* Prominensa: di tepi bulan, diputar ke sudutnya. */
.cg-stage .cg-prom { left: 50%; top: 50%; height: auto; opacity: 0; mix-blend-mode: screen; transform-origin: 50% 50%;
    transform: translate(-50%, -50%) rotate(var(--deg)) translateY(calc(var(--u) * var(--moon) * -.48)); transition: opacity 1.6s ease; }
.cg-diamond { left: calc(var(--u) * var(--dx)); top: calc(var(--u) * var(--dy)); width: 0; height: 0; }
.cg-diamond > img { position: absolute; left: 0; top: 0; opacity: 0; mix-blend-mode: screen; }
.cg-stage .cg-diamond__star { width: calc(var(--u) * 460); translate: -50% -50%; }
.cg-stage .cg-diamond__bloom { width: calc(var(--u) * 1100); translate: -50% -50%; }
.cg-stage .cg-diamond__lens { width: calc(var(--u) * 1500); translate: -50% -50%; }

/* Burung & bintang jatuh. */
.cg-bird { position: absolute; left: 0; top: 0; width: calc(var(--u) * 120); aspect-ratio: 3 / 2; opacity: 0; }
.cg-bird--2 { width: calc(var(--u) * 96); }
.cg-bird--3 { width: calc(var(--u) * 80); }
.cg-stage .cg-bird img { position: absolute; inset: 0; width: 100%; height: 100%; animation: cg-flap .5s steps(1) infinite; }
.cg-stage .cg-bird img + img { animation-name: cg-flap-2; }
.cg-stage .cg-shooting { position: absolute; left: 10%; top: calc(var(--oy) + var(--u) * 260); width: calc(var(--u) * 520); opacity: 0; rotate: 18deg; }

/* Daratan. */
.cg-land { position: absolute; inset: 0; filter: brightness(.5) saturate(.6) sepia(0) hue-rotate(0deg); transition: filter 2.6s ease; }
.cg-land > img, .cg-land > div { position: absolute; }
.cg-stage .cg-caldera { left: 50%; top: calc(var(--oy) + var(--u) * 640); width: calc(var(--u) * 2400); translate: -50% 0; }
.cg-stage .cg-smoke { left: calc(50% + var(--u) * 560); top: calc(var(--oy) + var(--u) * 90); width: calc(var(--u) * 160); opacity: .6;
    transform-origin: 50% 100%; animation: cg-smoke 9s ease-in-out infinite alternate; }
.cg-savanna { left: 50%; bottom: 0; width: max(100%, var(--u) * 1080); height: calc(var(--u) * 1100); translate: -50% 0; }
.cg-savanna picture, .cg-stage .cg-savanna img { width: 100%; height: 100%; }
.cg-stage .cg-savanna img { object-fit: cover; object-position: 50% 0; }
.cg-stage .cg-wedding { left: 50%; top: calc(var(--oy) + var(--u) * 937); width: calc(var(--u) * 700); translate: -50% 0; }
.cg-horse { left: 0; margin-top: var(--oy); aspect-ratio: 3 / 2; opacity: 0; transition: opacity 1.2s ease; }
.cg-horse.cg-horse { position: absolute; }
.cg-stage .cg-horse img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cg-stage .cg-horse__frame { opacity: 0; animation: cg-gallop .64s linear infinite; animation-delay: calc(var(--f) * -.16s); }
.cg-stage .cg-horse__dust { left: -55%; top: 30%; width: 80%; height: auto; opacity: .7; }
.cg-stage .cg-side { top: calc(var(--oy) + var(--u) * 470); width: calc(var(--u) * 540); }
.cg-side--l { left: calc(var(--u) * -20); }
.cg-side--r { right: calc(var(--u) * -20); }
/* Bayangan biru totalitas/malam: hanya menutupi daratan (mulai di kaki langit,
   tepi atas memudar) — bukan lapisan penuh layar yang tepinya tampak. */
.cg-stage .cg-shade { left: 0; right: 0; top: calc(var(--oy) + var(--u) * 600); bottom: 0; pointer-events: none;
    background: linear-gradient(transparent, #0E1838 24%); mix-blend-mode: multiply; opacity: .55; transition: opacity 2.6s ease; }
.cg-ground { left: 50%; bottom: 0; width: max(100%, var(--u) * 1080); height: calc(var(--u) * 600); translate: -50% 0; }
.cg-ground picture, .cg-stage .cg-ground img { width: 100%; height: 100%; }
.cg-stage .cg-ground img { object-fit: cover; object-position: 50% 100%; }

/* Obor (penutup). */
.cg-torches { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.cg-torch { position: absolute; margin-top: var(--oy); }
.cg-stage .cg-torch img { position: absolute; }
.cg-stage .cg-torch__body { position: relative; width: 100%; height: auto; filter: brightness(.35); transition: filter .6s ease; }
.cg-stage .cg-torch__glow { left: -150%; top: -70%; width: 400%; opacity: 0; mix-blend-mode: screen; transition: opacity .9s ease; }

/* Ilalang depan. */
.cg-front { top: 0; width: calc(var(--u) * 720); height: calc(var(--u) * 2200); transition: translate 2.4s var(--cg-ease); }
.cg-front--l { left: 0; }
.cg-front--r { right: 0; }
.cg-front .px-m { filter: brightness(.5) saturate(.6) sepia(0) hue-rotate(0deg); transition: filter 2.6s ease; }
.cg-front--l .px-p { transform: translate3d(calc(-46% - var(--read) * 16%), calc(var(--p) * var(--u) * -240), 0); }
.cg-front--r .px-p { transform: translate3d(calc(46% + var(--read) * 16%), calc(var(--p) * var(--u) * -240), 0); }
.cg-front--l .px-m { transform-origin: 0 100%; animation: px-sway 8s ease-in-out infinite alternate; }
.cg-front--r .px-m { transform-origin: 100% 100%; animation: px-sway-r 9s ease-in-out -3s infinite alternate; }

/* Lautan awan. */
.cg-clouds { position: absolute; inset: 0; pointer-events: none; }
.cg-stage .cg-cloud { position: absolute; left: 50%; width: calc(var(--u) * 2400); height: auto; translate: -50% 0; opacity: 0;
    transition: translate 2.6s var(--cg-ease), opacity 2s ease, scale 2.6s var(--cg-ease); }
.cg-cloud--1l, .cg-cloud--1r { bottom: calc(var(--u) * -120); }
.cg-cloud--2l, .cg-cloud--2r { bottom: calc(var(--u) * 240); }
.cg-cloud--3 { bottom: calc(var(--u) * 470); }
.cg-cloud--1l, .cg-cloud--2l { -webkit-mask: linear-gradient(to right, #000 50%, transparent 62%); mask: linear-gradient(to right, #000 50%, transparent 62%); }
.cg-cloud--1r, .cg-cloud--2r { -webkit-mask: linear-gradient(to left, #000 50%, transparent 62%); mask: linear-gradient(to left, #000 50%, transparent 62%); }
/* Kabut tipis di puncak awan-3 tidak boleh berujung garis lurus. */
.cg-cloud--3 { -webkit-mask: linear-gradient(transparent, #000 38%); mask: linear-gradient(transparent, #000 38%); }

.cg-flash { position: absolute; inset: 0; background: #F4F8FF; opacity: 0; pointer-events: none; }
.cg-stage .px-particles { opacity: 0; transition: opacity 2s ease; }

/* Tombol lewati pembuka. */
.cg-skip { position: fixed; right: 1rem; bottom: calc(1.25rem + env(safe-area-inset-bottom)); z-index: 60;
    font: 600 .72rem / 1 var(--f-body); letter-spacing: .16em; text-transform: uppercase;
    padding: .7em 1.2em; border: 1px solid rgb(255 255 255 / .45); border-radius: 999px;
    color: #fff; background: rgb(11 16 36 / .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); cursor: pointer; }
.cg-skip[hidden] { display: none; }
@media (min-width: 900px) { .cg-skip { right: calc(var(--px-col) + 1.25rem); } }

/* ---------------------------------------------------- tertutup (sampul) */

body.px--cincingerhana:not(.is-open) .cg-land { filter: brightness(.84) saturate(.9) sepia(.28) hue-rotate(0deg); translate: 0 42%; scale: 1.08; }
body.px--cincingerhana:not(.is-open) body.px--cincingerhana:not(.is-open) body.px--cincingerhana:not(.is-open) .cg-front--l { translate: -100% 0; }
body.px--cincingerhana:not(.is-open) .cg-front--r { translate: 100% 0; }
body.px--cincingerhana:not(.is-open) .cg-front .px-m { filter: brightness(.84) saturate(.9) sepia(.28) hue-rotate(0deg); }
body.px--cincingerhana:not(.is-open) .cg-stage .cg-cloud { opacity: 1; }
body.px.px--cincingerhana:not(.is-open) .px-veil { opacity: .1; }
body.px--cincingerhana:not(.is-open) .cg-stage .cg-shade { opacity: 0; }
body.px--cincingerhana:not(.is-open) .cg-bird img { animation-play-state: paused; }

/* ------------------------------------------- pembukaan (satu garis waktu) */

body.px--cincingerhana.is-open:not(.px-opened) .cg-stage :is(.cg-land, .cg-front .px-m, .cg-sky__layer, .cg-sun, .cg-moon, .cg-corona,
    .cg-prom, .cg-planet, .px-particles, .cg-diamond > img, .cg-flash, .cg-cloud, .cg-bird) { transition: none; }
body.px--cincingerhana.is-open:not(.px-opened) .cg-land { animation: cg-o-land 10s linear both; }
body.px--cincingerhana.is-open:not(.px-opened) .cg-stage .cg-shade { transition: none; animation: cg-o-shade 10s linear both; }
body.px--cincingerhana.is-open:not(.px-opened) .cg-front .px-m { animation: cg-o-light 10s linear both, px-sway 8s ease-in-out infinite alternate; }
body.px--cincingerhana.is-open:not(.px-opened) .cg-front--r .px-m { animation: cg-o-light 10s linear both, px-sway-r 9s ease-in-out -3s infinite alternate; }
body.px--cincingerhana.is-open:not(.px-opened) body.px--cincingerhana.is-open:not(.px-opened) body.px--cincingerhana.is-open:not(.px-opened) .cg-sky--dawn { animation: cg-o-dawn 10s linear both; }
body.px--cincingerhana.is-open:not(.px-opened) .cg-sky--day { animation: cg-o-day 10s linear both; }
body.px--cincingerhana.is-open:not(.px-opened) .cg-sky--eclipse { animation: cg-o-eclipse 10s linear both; }
body.px--cincingerhana.is-open:not(.px-opened) .cg-sun { animation: cg-o-sun 10s linear both; }
body.px--cincingerhana.is-open:not(.px-opened) .cg-moon { animation: cg-o-moon 10s linear both; }
body.px--cincingerhana.is-open:not(.px-opened) .cg-corona { animation: cg-o-corona 10s linear both; }
body.px--cincingerhana.is-open:not(.px-opened) .cg-prom { animation: cg-o-prom 10s linear both; }
body.px--cincingerhana.is-open:not(.px-opened) :is(.cg-planet, .cg-stage .px-particles) { animation: cg-o-stars 10s linear both; }
body.px--cincingerhana.is-open:not(.px-opened) .cg-diamond--1 .cg-diamond__star { animation: cg-o-star 10s linear both; }
body.px--cincingerhana.is-open:not(.px-opened) .cg-diamond--1 .cg-diamond__bloom { animation: cg-o-bloom 10s linear both; }
body.px--cincingerhana.is-open:not(.px-opened) .cg-diamond--1 .cg-diamond__lens { animation: cg-o-lens 10s linear both; }
body.px--cincingerhana.is-open:not(.px-opened) .cg-flash { animation: cg-o-flash 10s linear both; }
body.px--cincingerhana.is-open:not(.px-opened) .cg-cloud--1l { animation: cg-o-cloud-l 10s linear both; }
body.px--cincingerhana.is-open:not(.px-opened) .cg-cloud--1r { animation: cg-o-cloud-r 10s linear both; }
body.px--cincingerhana.is-open:not(.px-opened) .cg-cloud--2l { animation: cg-o-cloud-l 10s linear -.5s both; }
body.px--cincingerhana.is-open:not(.px-opened) .cg-cloud--2r { animation: cg-o-cloud-r 10s linear -.5s both; }
body.px--cincingerhana.is-open:not(.px-opened) .cg-cloud--3 { animation: cg-o-cloud-3 10s linear both; }
body.px--cincingerhana.is-open:not(.px-opened) .cg-bird { animation: cg-fly 4.6s linear 5s both; }
body.px--cincingerhana.is-open:not(.px-opened) .cg-bird--2 { animation-delay: 5.3s; }
body.px--cincingerhana.is-open:not(.px-opened) .cg-bird--3 { animation-delay: 5.6s; }

body.px--cincingerhana.is-open .cg-land { translate: 0 0; scale: 1; transition: filter 2.6s ease, translate 3s var(--cg-ease) .6s, scale 3s var(--cg-ease) .6s; }
body.px--cincingerhana.is-open .cg-front { transition-delay: 3s; }
body.px--cincingerhana.px-opened .cg-front { transition-delay: 0s; }

body.px.px--cincingerhana.is-open .px-hero__eyebrow { transition-delay: 8.5s; }
body.px.px--cincingerhana.is-open .px-hero__names { transition-delay: 8.8s; }
body.px.px--cincingerhana.is-open .px-hero__date { transition-delay: 9.2s; }
body.px.px--cincingerhana.is-open .px-hero__cue { transition-delay: 9.8s; }
/* Layar lebar: judul di bawah (di atas sabana) — langit atas milik gerhana. */
@media (min-width: 900px) { body.px--cincingerhana .px-stage__title { inset: auto 8% 7%; transition-delay: 8.5s; } }
body.px.px--cincingerhana.cg-skip .px-hero > *, body.px--cincingerhana.cg-skip .px-stage__title,
body.px--cincingerhana.cg-skip .cg-land { transition-delay: 0s !important; }

/* ---------------------------------------- keadaan babak (setelah pembukaan) */

/* 1 & 2: totalitas — langit gerhana, korona, bintang & planet. */
body.px--cincingerhana.px-opened .cg-sky--dawn { opacity: 0; }
body.px--cincingerhana.px-opened .cg-sky--eclipse { opacity: 1; }
body.px--cincingerhana.px-opened .cg-stage .cg-sun { translate: -50% -50%; }
body.px--cincingerhana.px-opened .cg-moon { translate: -50% -50%; opacity: 1; }
body.px--cincingerhana.px-opened .cg-stage .cg-corona { opacity: 1; }
body.px--cincingerhana.px-opened .cg-stage .cg-prom { opacity: .9; }
body.px--cincingerhana.px-opened :is(.cg-planet, .cg-stage .px-particles) { opacity: 1; }
body.px--cincingerhana.px-opened[data-ch="2"] .cg-stage .cg-corona { scale: 1.12; animation: cg-pulse 4s ease-in-out infinite alternate; }

/* 3 acara: cincin berlian kedua, bulan bergeser keluar, cahaya keemasan, kuda. */
body.px-opened[data-ch="3"] .cg-sky--eclipse { opacity: 0; }
body.px-opened[data-ch="3"] .cg-sky--day { opacity: 1; transition-delay: .8s; }
body.px-opened[data-ch="3"] .cg-moon { translate: calc(-50% + var(--u) * var(--moon-away)) -50%; opacity: 0; transition-delay: .9s, 2.4s; }
body.px-opened[data-ch="3"] .cg-stage :is(.cg-corona, .cg-prom) { opacity: 0; transition-delay: .9s; }
body.px-opened[data-ch="3"] :is(.cg-planet, .cg-stage .px-particles) { opacity: 0; transition-delay: .9s; }
body.px-opened[data-ch="3"] .cg-land { filter: brightness(1.04) saturate(1.1) sepia(.32) hue-rotate(0deg); transition-delay: .8s; }
body.px-opened[data-ch="3"] .cg-front .px-m { filter: brightness(1.04) saturate(1.1) sepia(.32) hue-rotate(0deg); transition-delay: .8s; }
body.px-opened[data-ch="3"] body.px-opened[data-ch="3"] body.px-opened[data-ch="3"] .cg-stage .cg-shade { opacity: 0; transition-delay: .8s; }
body.px-opened[data-ch="3"] .cg-diamond--2 .cg-diamond__star { animation: cg-ring-star 2.4s ease-out both; }
body.px-opened[data-ch="3"] .cg-diamond--2 .cg-diamond__bloom { animation: cg-ring-bloom 2.4s ease-out both; }
body.px-opened[data-ch="3"] .cg-diamond--2 .cg-diamond__lens { animation: cg-ring-lens 2.4s ease-out both; }
body.px-opened[data-ch="3"] .cg-horse { opacity: 1; transition-delay: 1.6s; animation: cg-run var(--dur) linear var(--delay) infinite; }

/* 4 penutup: malam, Bima Sakti, obor, bintang jatuh, awan naik di kaki layar. */
body.px-opened[data-ch="4"] .cg-sky--eclipse { opacity: 0; }
body.px-opened[data-ch="4"] .cg-sky--night { opacity: 1; }
body.px-opened[data-ch="4"] .cg-stage :is(.cg-sun, .cg-moon, .cg-corona, .cg-prom, .cg-planet) { opacity: 0; }
body.px-opened[data-ch="4"] .cg-stage .px-particles { opacity: .8; }
body.px-opened[data-ch="4"] .cg-land, body.px-opened[data-ch="4"] .cg-front .px-m { filter: brightness(.52) saturate(.58) sepia(0) hue-rotate(0deg); }
body.px-opened[data-ch="4"] body.px-opened[data-ch="4"] .cg-torches { opacity: 1; }
body.px-opened[data-ch="4"] .cg-stage .cg-shade { opacity: .5; }
body.px-opened[data-ch="4"] .cg-stage .cg-torch__body { filter: none; transition-delay: calc(1s + var(--i) * .2s); }
body.px-opened[data-ch="4"] .cg-stage .cg-torch__glow { opacity: .9; transition-delay: calc(1s + var(--i) * .2s);
    animation: cg-flicker 2.4s ease-in-out calc(2s + var(--i) * .3s) infinite alternate; }
body.px-opened[data-ch="4"] .cg-stage .cg-shooting { animation: cg-shoot 7s ease-in 2s infinite; }
body.px-opened[data-ch="4"] .cg-stage .cg-cloud--3 { opacity: .8; translate: -50% 84%; transition-delay: 1.2s; }

/* Ponsel: babak berganti di balik tirai jendela adegan, tanpa jeda. */
@media (max-width: 899px) {
    body.px--cincingerhana { --px-band-top: 26vw; --px-band-bottom: 44vw; }
    body.px--cincingerhana .px-hero { padding-top: 34svh; }
}

/* ------------------------------------------------------------ isi kartu */

/* Mempelai: ikon matahari (pria) & bulan (wanita) di atas nama. */
body.px--cincingerhana .px-person .px-person__name::before {
    content: ''; display: block; width: 2.4rem; aspect-ratio: 1; margin: 0 auto .2rem; background: url('ikon-matahari.webp') center / contain no-repeat;
}
body.px--cincingerhana .px-person ~ .px-person .px-person__name::before { background-image: url('ikon-bulan.webp'); }
body.px--cincingerhana .px-person__name { font-size: 2.9rem; line-height: 1; }
/* Foto bulat di bingkai korona (lubang diukur: x 16–84%, y 17–83%). */
body.px--cincingerhana .px-photo { aspect-ratio: 1; }
body.px--cincingerhana .px-photo__img, body.px--cincingerhana .px-photo__initial { left: 17%; top: 17.5%; width: 66%; height: 65.5%; border-radius: 50%; }
body.px--cincingerhana .px-photo__initial { background: radial-gradient(circle, #28345C, #0B1024); }

/* Acara: lengkung ilalang dengan korona kecil di puncak. */
body.px--cincingerhana .px-event {
    padding: 44% 22% 14%; border: 0; border-radius: 0;
    background: url('bingkai-acara.webp') center / 100% 100% no-repeat;
}
body.px--cincingerhana .px-anim .px-event[data-px-reveal] { clip-path: inset(78% 0 0 0); }
body.px--cincingerhana .px-anim .px-event.is-in { clip-path: inset(0 0 0 0); }
body.px--cincingerhana .px-event__title { font-size: 2.7rem; line-height: 1; }
body.px--cincingerhana .px-event__actions { flex-direction: column; align-items: center; }

/* Hitung mundur: angka di dalam cakram biru totalitas berlingkar emas. */
body.px--cincingerhana .px-countdown .inv-countdown__cell {
    display: grid; place-content: center; inline-size: min(4.6rem, 20vw); aspect-ratio: 1; padding: 0; justify-self: center; border-radius: 50%; color: #F7F4FF;
    background: radial-gradient(circle at 50% 45%, #28345C, #0B1024 72%);
    box-shadow: 0 0 0 2px var(--c-gold), 0 0 18px rgb(212 168 72 / .45);
}
body.px--cincingerhana .px-countdown .inv-countdown__cell b { color: #F7F4FF; }
body.px--cincingerhana .px-countdown .inv-countdown__cell span { color: rgb(247 244 255 / .75); }

/* Kisah: titik linimasa berupa fase gerhana berurutan (1–4, lalu tetap cincin). */
body.px--cincingerhana .px-story__item::before {
    left: -2.15rem; top: 0; width: 1.5rem; height: 1.5rem; border-radius: 0; box-shadow: none;
    background: url('titik-fase-4.webp') center / contain no-repeat;
}
body.px--cincingerhana .px-story__item:nth-child(1)::before { background-image: url('titik-fase-1.webp'); }
body.px--cincingerhana .px-story__item:nth-child(2)::before { background-image: url('titik-fase-2.webp'); }
body.px--cincingerhana .px-story__item:nth-child(3)::before { background-image: url('titik-fase-3.webp'); }

/* ------------------------------------------------- keyframes pembukaan */

/* Cahaya: fajar (0–30%) → siang (36–58%) → totalitas (82%). */
@keyframes cg-o-land {
    0% { filter: brightness(.84) saturate(.9) sepia(.28) hue-rotate(0deg); translate: 0 42%; scale: 1.08; }
    6% { translate: 0 42%; scale: 1.08; animation-timing-function: var(--cg-ease); }
    30% { filter: brightness(.84) saturate(.9) sepia(.28) hue-rotate(0deg); }
    36% { translate: 0 0; scale: 1; }
    40%, 58% { filter: brightness(1) saturate(1) sepia(.05) hue-rotate(0deg); }
    82%, 100% { filter: brightness(.5) saturate(.6) sepia(0) hue-rotate(0deg); translate: 0 0; scale: 1; }
}
@keyframes cg-o-light {
    0%, 30% { filter: brightness(.84) saturate(.9) sepia(.28) hue-rotate(0deg); }
    40%, 58% { filter: brightness(1) saturate(1) sepia(.05) hue-rotate(0deg); }
    82%, 100% { filter: brightness(.5) saturate(.6) sepia(0) hue-rotate(0deg); }
}
@keyframes cg-o-shade { 0%, 58% { opacity: 0; } 82%, 100% { opacity: .55; } }
@keyframes cg-o-dawn { 0%, 30% { opacity: 1; } 46%, 100% { opacity: 0; } }
@keyframes cg-o-day { 0%, 28% { opacity: 0; } 42%, 58% { opacity: 1; } 82%, 100% { opacity: 0; } }
@keyframes cg-o-eclipse { 0%, 58% { opacity: 0; } 82%, 100% { opacity: 1; } }
@keyframes cg-o-sun {
    0%, 28% { translate: -50% calc(-50% + var(--u) * 520); animation-timing-function: var(--cg-ease); }
    50%, 100% { translate: -50% -50%; }
}
@keyframes cg-o-moon {
    0%, 50% { translate: calc(-50% + var(--u) * var(--moon-from)) -50%; opacity: 0; animation-timing-function: cubic-bezier(.4, 0, .25, 1); }
    60% { opacity: 0; }
    66%, 100% { opacity: 1; }
    82%, 100% { translate: -50% -50%; }
}
@keyframes cg-o-corona { 0%, 80% { opacity: 0; scale: .92; } 83% { opacity: .25; } 88% { opacity: .4; } 95%, 100% { opacity: 1; scale: 1; } }
@keyframes cg-o-prom { 0%, 84% { opacity: 0; } 92%, 100% { opacity: .9; } }
@keyframes cg-o-stars { 0%, 66% { opacity: 0; } 84%, 100% { opacity: 1; } }
/* Cincin berlian: satu kilatan, tanpa kedip berulang. */
@keyframes cg-o-star { 0%, 81% { opacity: 0; scale: .2; } 85% { opacity: 1; scale: 1.2; } 92% { opacity: .7; scale: .8; } 98%, 100% { opacity: 0; scale: .6; } }
@keyframes cg-o-bloom { 0%, 82% { opacity: 0; scale: .3; } 85.5% { opacity: .9; scale: 1; } 96%, 100% { opacity: 0; scale: 1.5; } }
@keyframes cg-o-lens { 0%, 83% { opacity: 0; scale: 0 1; } 86% { opacity: .9; scale: 1 1; } 94%, 100% { opacity: 0; scale: 1.2 1; } }
@keyframes cg-o-flash { 0%, 83.5% { opacity: 0; } 85% { opacity: .35; } 91%, 100% { opacity: 0; } }
@keyframes cg-o-cloud-l {
    0%, 3% { opacity: 1; translate: -50% 0; scale: 1; animation-timing-function: cubic-bezier(.5, 0, .7, .4); }
    21%, 100% { opacity: 0; translate: -95% 12%; scale: 1.4; }
}
@keyframes cg-o-cloud-r {
    0%, 3% { opacity: 1; translate: -50% 0; scale: 1; animation-timing-function: cubic-bezier(.5, 0, .7, .4); }
    21%, 100% { opacity: 0; translate: -5% 12%; scale: 1.4; }
}
@keyframes cg-o-cloud-3 { 0%, 10% { opacity: 1; translate: -50% 0; } 34%, 100% { opacity: 0; translate: -50% 90%; } }

/* ----------------------------------------------------- keyframes lain */

@keyframes cg-ring-star { 0% { opacity: 0; scale: .2; } 18% { opacity: 1; scale: 1.2; } 60% { opacity: .5; scale: .8; } 100% { opacity: 0; scale: .6; } }
@keyframes cg-ring-bloom { 0% { opacity: 0; scale: .3; } 22% { opacity: .85; scale: 1; } 100% { opacity: 0; scale: 1.5; } }
@keyframes cg-ring-lens { 0% { opacity: 0; scale: 0 1; } 20% { opacity: .85; scale: 1 1; } 70%, 100% { opacity: 0; scale: 1.2 1; } }
@keyframes cg-pulse { from { scale: 1.08; opacity: .9; } to { scale: 1.16; opacity: 1; } }
@keyframes cg-gallop { 0%, 24.9% { opacity: 1; } 25%, 100% { opacity: 0; } }
@keyframes cg-run { from { translate: calc(var(--u) * -400) 0; } to { translate: calc(100cqw + var(--u) * 200) 0; } }
@keyframes cg-flap { 0%, 49.9% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes cg-flap-2 { 0%, 49.9% { opacity: 0; } 50%, 100% { opacity: 1; } }
@keyframes cg-fly {
    0% { opacity: 0; translate: 105cqw calc(var(--oy) + var(--u) * 700); }
    8% { opacity: 1; }
    92% { opacity: 1; }
    100% { opacity: 0; translate: -20cqw calc(var(--oy) + var(--u) * 980); }
}
@keyframes cg-smoke { from { translate: 0 0; scale: 1; opacity: .5; } to { translate: calc(var(--u) * 20) calc(var(--u) * -30); scale: 1.1; opacity: .7; } }
@keyframes cg-flicker { 0% { opacity: .7; scale: .95; } 40% { opacity: .95; } 100% { opacity: .82; scale: 1.05; } }
@keyframes cg-shoot {
    0%, 70% { opacity: 0; translate: 0 0; }
    72% { opacity: 1; }
    82%, 100% { opacity: 0; translate: calc(var(--u) * 520) calc(var(--u) * 170); }
}

/* Kurangi-gerak: langsung totalitas yang diam dengan korona & nama, tanpa kilatan & kuda. */
@media (prefers-reduced-motion: reduce) {
    .cg-stage *, .cg-stage { animation: none !important; transition: none !important; }
    body.px--cincingerhana.is-open .cg-sky--dawn { opacity: 0; }
    body.px--cincingerhana.is-open .cg-sky--eclipse { opacity: 1; }
    body.px--cincingerhana.is-open .cg-stage .cg-sun { translate: -50% -50%; }
    body.px--cincingerhana.is-open .cg-moon { translate: -50% -50%; opacity: 1; }
    body.px--cincingerhana.is-open .cg-stage .cg-corona { opacity: 1; }
    body.px--cincingerhana.is-open .cg-stage .cg-cloud { opacity: 0; }
    .cg-horse, .cg-bird, .cg-shooting, .cg-flash { display: none; }
}
