/* Panggung (Tema Fase 4, 3 Dec 2026): a night at the theatre. Base layout from cine-seri.css; this file gives the
 * palette (curtain red, gold, black), the type (Playfair Display for display, Josefin Sans for reading), a warm stage
 * grade over the photos with a spotlight pool, and the pieces of the theatre: the velvet curtain cover, the gilt
 * arch, the prologue spotlight, oval cameos, acts under a valance, the playbill, marquee bulbs, draped fabric, the
 * dressing-room mirror and the curtain call. */
@font-face { font-family: "Playfair Display"; src: url("/frontend/assets/fonts/playfair-display-latin.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("/frontend/assets/fonts/playfair-display-italic-latin.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Josefin Sans"; src: url("/frontend/assets/fonts/josefin-sans-latin.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
    --c-night: #140608; --c-ink: #f5ebdd; --c-muted: rgba(245, 235, 221, .82); --c-accent: #d9b770; /* 10:1 on stage black */ --c-accent-ink: #140608;
    --c-line: rgba(217, 183, 112, .45); --c-glass: rgba(26, 8, 11, .66); --c-field: rgba(245, 235, 221, .07);
    --c-veil: rgba(20, 6, 8, .55); --c-shade-top: rgba(20, 6, 8, .82); --c-shade-foot: rgba(20, 6, 8, .92); --c-photo-foot: rgba(20, 6, 8, .95);
    --f-display: "Playfair Display", Georgia, serif; --f-script: "Playfair Display", Georgia, serif; --f-body: "Josefin Sans", system-ui, sans-serif;
    --ct-shine: #f3d891;
    --velvet: repeating-linear-gradient(90deg, #3d0a10 0, #6e161f 1.6rem, #84202a 2.3rem, #5e1219 3.2rem, #3d0a10 4.4rem);
    --gold: #c9a45c; --gold-hi: #f3d891; --paper: #f4ead6; --paper-ink: #2a0f12; --wine: #7a1d24;
}
:root[data-scheme="light"] {
    --c-night: #f6eee3; --c-ink: #2a0f12; --c-muted: #5a3a3c; --c-accent: #7a1d24; /* 9:1 on ivory */ --c-accent-ink: #fff8ee;
    --c-line: rgba(122, 29, 36, .36); --c-glass: rgba(250, 244, 236, .88); --c-field: rgba(255, 255, 255, .72);
    --c-veil: rgba(246, 238, 227, .76); --c-shade-top: rgba(246, 238, 227, .9); --c-shade-foot: rgba(246, 238, 227, .94); --c-photo-foot: rgba(246, 238, 227, .95);
    --ct-shine: #b4842e;
}
.cine-backdrop { background: radial-gradient(120% 80% at 50% 10%, #3a0d13, #140608 72%); }
.pg-amp { color: var(--c-accent); font-style: italic; }
.cine-title { font-weight: 500; }
.cine-kicker { letter-spacing: .3em; }

/* A warm stage grade, and a soft spotlight pool over the photo behind the words. */
.cine-slide, .cine-backdrop-video, .cine-section-photo img { filter: sepia(.2) saturate(.95) contrast(1.08) brightness(.9); }
.cs-sign { background: radial-gradient(60% 45% at 50% 38%, rgba(255, 226, 170, .14), transparent 70%), linear-gradient(90deg, rgba(60, 8, 14, .55), transparent 18%, transparent 82%, rgba(60, 8, 14, .55)); }
:root[data-scheme="light"] .cs-sign { background: radial-gradient(60% 45% at 50% 38%, rgba(255, 240, 210, .3), transparent 70%); }

/* ---- The curtain (cover) ---------------------------------------------------------------- */
.pg-opening { justify-content: center; gap: 2.2rem; background: #140608; color: #f5ebdd; }
.pg-opening .cine-opening-photo { filter: sepia(.25) brightness(.7); }
.pg-curtain { position: fixed; top: 0; bottom: 0; width: 51%; background: var(--velvet), #5e1219; box-shadow: inset 0 -6rem 6rem -2rem rgba(0, 0, 0, .55); }
.pg-curtain::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 30%, transparent 70%, rgba(0, 0, 0, .5)); }
.pg-curtain-left { left: 0; border-radius: 0 0 40% 0 / 0 0 6% 0; transform-origin: left top; }
.pg-curtain-right { right: 0; border-radius: 0 0 0 40% / 0 0 0 6%; transform-origin: right top; }
.pg-valance { position: fixed; top: 0; left: 0; right: 0; height: 4.2rem; background: radial-gradient(circle at 50% 0, #84202a 0 62%, transparent 64%) 0 1.4rem / 4rem 3rem repeat-x, linear-gradient(#5e1219, #5e1219) 0 0 / 100% 2.6rem no-repeat;
    border-bottom: 0; box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .35); }
.pg-valance::after { content: ""; position: absolute; left: 0; right: 0; top: 2.35rem; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-hi), var(--gold)); }
/* The spotlight: a soft disc of light that sweeps once across the names, then rests on them. */
.pg-sweep { position: fixed; top: 18%; left: 50%; width: 22rem; height: 22rem; margin-left: -11rem; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(255, 236, 196, .3), rgba(255, 236, 196, .1) 45%, transparent 68%); mix-blend-mode: screen; }
@media (prefers-reduced-motion: no-preference) { .pg-sweep { animation: pg-sweep 3.2s cubic-bezier(.45, 0, .2, 1) .3s both; } }
@keyframes pg-sweep { 0% { transform: translateX(-70vw); opacity: 0; } 20% { opacity: 1; } 70% { transform: translateX(20vw); } 100% { transform: none; } }
.pg-cover-words, .pg-cover-foot { position: relative; z-index: 2; }
.pg-cover-words > *, .pg-cover-foot > * { animation: cine-in 1.2s var(--ease-film) both; }
.pg-cover-words > :nth-child(2) { animation-delay: .5s; }
.pg-cover-words > :nth-child(3) { animation-delay: .8s; }
.pg-cover-foot > * { animation-delay: 1.1s; }
.pg-opening .cine-opening-kicker { color: var(--gold-hi); }
.pg-cover-names { margin: .8rem 0 0; font: italic 500 clamp(2.8rem, 13vw, 4.2rem)/1.05 var(--f-display); text-shadow: 0 2px 20px rgba(0, 0, 0, .6); text-wrap: balance; }
.pg-cover-names .pg-amp { display: block; font-size: .6em; color: var(--gold-hi); }
.pg-cover-date { margin: .9rem 0 0; color: var(--gold-hi); font: 600 .8rem/1.4 var(--f-body); letter-spacing: .3em; text-transform: uppercase; }
.pg-opening .cine-guest-label, .pg-opening .cine-guest-note { color: rgba(245, 235, 221, .88); }
.pg-opening .cine-opening-cta { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #140608; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 .6rem 1.6rem rgba(0, 0, 0, .4); }
.pg-opening .cine-opening-cta:focus-visible { outline-color: var(--gold-hi); }
/* Open: the curtains draw apart, gathering towards the wings; the valance lifts; the stage shows the couple. */
.pg-opening.is-closing { background-color: transparent; }
.pg-opening.is-closing .pg-curtain-left { transform: translateX(-92%) scaleX(.45); transition: transform 1.4s cubic-bezier(.6, 0, .25, 1); }
.pg-opening.is-closing .pg-curtain-right { transform: translateX(92%) scaleX(.45); transition: transform 1.4s cubic-bezier(.6, 0, .25, 1); }
.pg-opening.is-closing .pg-valance { transform: translateY(-100%); transition: transform .9s ease-in .7s; }
.pg-opening.is-closing :is(.pg-cover-words, .pg-cover-foot) > *, .pg-opening.is-closing .pg-sweep { animation: cine-out .6s ease-in both; }
.pg-opening.is-closing .cine-opening-photo { opacity: 0; transition-delay: .9s; }
.pg-opening.is-closing .cine-opening-shade { opacity: 0; }
@media (max-height: 40rem) { .pg-opening { gap: 1rem; padding-top: 4.6rem; } .pg-cover-names { font-size: clamp(2.2rem, 10svh, 3rem); } }

/* ---- Home: names under a gilt stage arch ------------------------------------------------- */
.pg-arch { position: relative; width: min(100%, 22rem); margin: 0 auto; padding: 3.2rem 1.4rem 2.6rem; box-sizing: border-box; border: 2px solid var(--c-accent);
    border-radius: 11rem 11rem .4rem .4rem; box-shadow: inset 0 0 0 6px transparent, inset 0 0 0 7px var(--c-line); text-align: center; }
.pg-arch::before { content: ""; position: absolute; left: 50%; top: -.75rem; width: 1.4rem; height: 1.4rem; margin-left: -.7rem; background: var(--c-night); border: 2px solid var(--c-accent); transform: rotate(45deg); }
.pg-presents { color: var(--c-accent); font: 600 .75rem/1.5 var(--f-body); letter-spacing: .32em; text-transform: uppercase; }
.pg-names { margin: 1rem 0 0; font: italic 500 clamp(3rem, 15vw, 4.6rem)/1 var(--f-display); }
.pg-names > span > span { display: block; }
.pg-names .pg-amp { margin: .1em 0; font-size: .55em; }
.pg-date { margin-top: 1.2rem !important; padding-top: .9rem; border-top: 1px solid var(--c-line); font: 600 .8rem/1.4 var(--f-body); letter-spacing: .22em; text-transform: uppercase; }

/* ---- Prologue in a spotlight -------------------------------------------------------------- */
.pg-prologue { overflow: hidden; }
.pg-spot { position: absolute; left: 50%; top: -10%; width: 150%; height: 120%; translate: -50% 0; pointer-events: none;
    background: conic-gradient(from 168deg at 50% 0, transparent, rgba(255, 232, 186, .16) 6deg, rgba(255, 232, 186, .16) 18deg, transparent 24deg),
        radial-gradient(45% 18% at 50% 88%, rgba(255, 232, 186, .22), transparent 70%); }
:root[data-scheme="light"] .pg-spot { opacity: .6; }
@media (prefers-reduced-motion: no-preference) {
    .has-reveal .pg-prologue:not(:has(.is-revealed)) .pg-spot { opacity: 0; }
    .pg-spot { transition: opacity 1.6s ease; }
}
.pg-small-title { margin: 0 0 1.1rem; color: var(--c-muted); font: 600 .75rem/1.4 var(--f-body); letter-spacing: .3em; text-transform: uppercase; }
.pg-verse { margin: 0; }
.pg-verse + .pg-verse { margin-top: 1.3rem; }
.pg-verse blockquote { margin: 0; font: italic 400 clamp(1.2rem, 5vw, 1.45rem)/1.6 var(--f-display); text-wrap: pretty; }
.pg-verse figcaption { margin-top: .8rem; color: var(--c-accent); font-size: .85rem; letter-spacing: .1em; }

/* ---- Dramatis Personae: oval cameos ------------------------------------------------------- */
.pg-cast-page { justify-content: center; }
.pg-cast-page .cine-block { margin-inline: auto; text-align: center; }
.pg-cast { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; width: 100%; max-width: 30rem; margin: 0 auto; }
.pg-role { text-align: center; }
.pg-cameo { display: grid; place-items: center; width: 82%; aspect-ratio: 3 / 4; margin: 0 auto .9rem; overflow: hidden; border-radius: 50%; background: #3a0d13;
    box-shadow: 0 0 0 3px var(--c-night), 0 0 0 5px var(--c-accent), 0 0 0 9px var(--c-night), 0 0 0 10px var(--c-line); color: var(--gold-hi); font: italic 3rem/1 var(--f-display); }
.pg-cameo img { width: 100%; height: 100%; object-fit: cover; }
.pg-role-as { color: var(--c-accent); font: 600 .75rem/1.4 var(--f-body); letter-spacing: .24em; text-transform: uppercase; }
.pg-role-name { margin: .35rem 0 0; font: italic 500 clamp(1.15rem, 5vw, 1.45rem)/1.2 var(--f-display); text-wrap: balance; }
.pg-role-parent { margin-top: .45rem !important; color: var(--c-muted); font-size: .82rem; line-height: 1.55; }
.pg-role .cine-socials { justify-content: center; }
@media (max-width: 21rem) { .pg-cast { grid-template-columns: 1fr; } .pg-cameo { width: 55%; } }

/* ---- The story in acts -------------------------------------------------------------------- */
.pg-scene { position: relative; width: min(70vw, 16rem); padding: 2.4rem 1.1rem 1.2rem; border: 1px solid var(--c-line); border-radius: .3rem; background: var(--c-glass);
    text-shadow: none; scroll-snap-align: start; overflow: hidden; }
/* A scalloped valance at the top of each scene. */
.pg-scene::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1.5rem; background: radial-gradient(circle at 50% 0, #84202a 0 64%, transparent 66%) 0 .5rem / 1.6rem 1rem repeat-x, linear-gradient(#5e1219, #5e1219) 0 0 / 100% .7rem no-repeat; }
.pg-act { color: var(--c-accent); font: italic 500 1.05rem/1.2 var(--f-display); letter-spacing: .04em; }
.pg-scene .cine-chapter-date { margin-top: .2rem !important; }
.pg-scene h3 { margin: .35rem 0 .6rem; font: 500 1.35rem/1.2 var(--f-display); }
.pg-scene img { display: block; width: 100%; aspect-ratio: 4 / 3; margin-bottom: .7rem; border-radius: .2rem; object-fit: cover; }
.pg-scene p:not(.pg-act, .cine-chapter-date) { color: var(--c-muted); font-size: .9rem; line-height: 1.65; }

/* ---- The programme: a playbill ------------------------------------------------------------ */
.pg-playbill { width: 100%; max-width: 25rem; box-sizing: border-box; margin: 0 auto; padding: 1.8rem 1.4rem 1.6rem; border: 1px solid #b89a5c; outline: 1px solid #b89a5c; outline-offset: -7px;
    background: var(--paper); color: var(--paper-ink); text-align: center; text-shadow: none; box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, .4); }
.pg-playbill-kicker { color: var(--wine); font: 700 .75rem/1.4 var(--f-body); letter-spacing: .34em; text-transform: uppercase; }
.pg-playbill-title { margin: .4rem 0 0; padding-bottom: .9rem; border-bottom: 3px double #b89a5c; font: italic 600 clamp(1.9rem, 8vw, 2.4rem)/1.1 var(--f-display); }
.pg-bill { margin: 0; padding: 0; list-style: none; }
.pg-bill-act { padding: 1.1rem 0; border-bottom: 1px solid rgba(122, 29, 36, .22); }
.pg-bill-act:last-child { border-bottom: 0; padding-bottom: 0; }
.pg-bill-no { color: var(--wine); font: italic 500 .95rem/1.2 var(--f-display); }
.pg-bill-act h3 { margin: .3rem 0 .4rem; font: 600 1.35rem/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .06em; }
.pg-bill-date { font-weight: 600; font-size: .9rem; }
.pg-bill-time { margin-top: .15rem !important; color: #5a3a3c; font-size: .88rem; }
.pg-bill-act address { margin-top: .6rem; color: #5a3a3c; font-style: normal; font-size: .86rem; line-height: 1.55; }
.pg-bill-act address strong { display: block; color: var(--paper-ink); }
.pg-bill-act .cine-directions { margin-top: .8rem; border-color: rgba(122, 29, 36, .45); color: var(--wine); }

/* ---- Countdown under marquee bulbs -------------------------------------------------------- */
.pg-marquee { position: relative; padding: 1.1rem .9rem; border: 2px solid var(--c-accent); border-radius: .6rem; }
.pg-marquee::before, .pg-marquee::after { content: ""; position: absolute; left: .6rem; right: .6rem; height: .7rem;
    background: radial-gradient(circle, #ffe6a8 0 .2rem, rgba(255, 214, 128, .35) .26rem, transparent .4rem) 0 0 / 1.4rem .7rem repeat-x; }
.pg-marquee::before { top: -.38rem; }
.pg-marquee::after { bottom: -.38rem; }
@media (prefers-reduced-motion: no-preference) { .pg-marquee::before, .pg-marquee::after { animation: pg-chase 1.2s steps(2) infinite; } }
@keyframes pg-chase { to { background-position: .7rem 0; } }
.pg-marquee .cine-clock-cells div { border: 0; }
.pg-marquee .cine-clock-cells span { font-style: italic; }

/* ---- The wardrobe: draped fabric ---------------------------------------------------------- */
.pg-drapes { display: flex; justify-content: center; gap: .55rem; margin: 0 0 1.4rem; }
.pg-drape { width: 3.2rem; height: 5.4rem; border-radius: .2rem .2rem 45% 45% / .2rem .2rem 14% 14%;
    background: linear-gradient(90deg, rgba(0, 0, 0, .28), transparent 22%, rgba(255, 255, 255, .18) 40%, transparent 55%, rgba(0, 0, 0, .25) 80%, rgba(255, 255, 255, .1)), var(--swatch);
    box-shadow: 0 -3px 0 var(--c-accent), 0 .6rem 1.2rem rgba(0, 0, 0, .3); }

/* ---- Backstage: the dressing-room mirror ---------------------------------------------------- */
.pg-backstage .cine-block { margin-inline: auto; text-align: center; }
.pg-gallery-line { color: var(--c-muted); font: italic 400 1rem/1.6 var(--f-display); }
.pg-mirror { position: relative; width: 100%; max-width: 26rem; box-sizing: border-box; margin: 0 auto; padding: 1.6rem 1.3rem; border-radius: .8rem;
    background: linear-gradient(150deg, rgba(255, 255, 255, .1), transparent 40%), #241014; border: .7rem solid #3a2418;
    box-shadow: inset 0 0 2rem rgba(0, 0, 0, .5), 0 1rem 2.4rem rgba(0, 0, 0, .4); }
/* Bulbs round the frame. */
.pg-mirror::before { content: ""; position: absolute; inset: -.95rem; border-radius: 1.2rem; pointer-events: none;
    background: radial-gradient(circle, #fff1c9 0 .28rem, rgba(255, 220, 140, .45) .36rem, transparent .6rem) 0 0 / 2.2rem 2.2rem space;
    -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); padding: .95rem; }
.pg-tucked { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin: 0; padding: 0; list-style: none; }
.pg-tucked li:nth-child(1) { transform: rotate(-3deg); }
.pg-tucked li:nth-child(2) { transform: rotate(2.5deg) translateY(.4rem); }
.pg-tucked li:nth-child(3) { transform: rotate(1.5deg); }
.pg-tucked li:nth-child(4) { transform: rotate(-2deg) translateY(-.3rem); }
.pg-photo { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: .35rem .35rem 1.1rem; border: 0; background: #f4ead6; cursor: zoom-in; box-shadow: 0 .4rem .9rem rgba(0, 0, 0, .45); }
.pg-photo img { width: 100%; height: 100%; object-fit: cover; }
.pg-photo:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.pg-all { align-self: center; }

/* ---- RSVP, wishes, gift ------------------------------------------------------------------- */
.pg-insert { border-color: var(--c-accent); outline: 1px solid var(--c-line); outline-offset: -6px; border-radius: .4rem; }
.pg-bravo { color: var(--c-accent); font: italic 600 clamp(2.2rem, 10vw, 2.8rem)/1 var(--f-display); }
.pg-notes .cine-wish-list li { border-left: 2px solid var(--c-accent); padding-left: .9rem; }

/* ---- Curtain call ------------------------------------------------------------------------- */
.pg-call { overflow: hidden; }
.pg-fall { position: absolute; left: 0; right: 0; top: 0; height: 26%; background: var(--velvet), #5e1219; border-radius: 0 0 50% 50% / 0 0 22% 22%; box-shadow: 0 1rem 2rem rgba(0, 0, 0, .45); pointer-events: none; }
.pg-fall::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(transparent, rgba(0, 0, 0, .35)); border-radius: inherit; }
@media (prefers-reduced-motion: no-preference) {
    .pg-fall { transition: transform 2.2s cubic-bezier(.3, .7, .2, 1); }
    .has-reveal .pg-call:not(:has(.is-revealed)) .pg-fall { transform: translateY(-100%); }
}
.pg-call .cine-block { margin-top: 12vh; }
.pg-end-names { margin-top: 1.3rem !important; font: italic 500 clamp(1.9rem, 8vw, 2.4rem)/1.1 var(--f-display); }
