@font-face { font-family: "Lilita One"; src: url("../fonts/fiesta/lilita-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Pacifico"; src: url("../fonts/fiesta/pacifico-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Asap"; src: url("../fonts/fiesta/asap-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Asap"; src: url("../fonts/fiesta/asap-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* FIESTA (theme key "fiesta"): the Filipino pista. Intro: a bilao (round woven tray) with the monogram on a banana leaf,
   banderitas bunched at the edge; tap and the bilao spins and pops while three strings of flags fly across the screen.
   Cover: banderitas over a sunny page, the photo cut with pinking-shear edges and taped on, names big like a plaza
   banner, the date on a ticket. Sections: little flags over each heading, sticker-style cards with a coloured offset.
   Flags and tray are our own drawings (core/themes/fiesta/_parts.php). Palette: --f1…--f5 the flag colours, --name,
   --cta. Pista Classic, Pastel Pista, Tropical. Type: Lilita One · Pacifico · Asap. */
:root {
  --bg: #fff7e8; --paper: #ffffff; --ink: #2a1f3d; --muted: #66597a; --line: rgba(42, 31, 61, .16);
  --f1: #e63946; --f2: #f4a300; --f3: #2a9d8f; --f4: #3a6ea5; --f5: #e85d9b;
  --name: #e63946; --cta: #2a1f3d; --accent: #e63946; --accent-ink: #ffffff; --leaf: #3f8f4a; --rattan: #d4a259;
  --display: "Lilita One", "Arial Rounded MT Bold", sans-serif; --script: "Pacifico", cursive; --text: "Asap", "Helvetica Neue", Arial, sans-serif; --caps: "Asap", "Helvetica Neue", Arial, sans-serif;
  --radius: 16px; --maxw: 560px;
}
body { font-family: var(--text); font-size: 1.04rem; color: var(--ink);
  background: radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--f2) 10%, transparent), transparent 40%), radial-gradient(circle at 90% 60%, color-mix(in srgb, var(--f5) 7%, transparent), transparent 40%), var(--bg); }

/* ---------- banderitas ---------- */
.fs-flags { display: block; width: 100%; height: auto; overflow: visible; }
.fs-flags .fs-cord { fill: none; stroke: color-mix(in srgb, var(--ink) 55%, transparent); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.fs-flags .f1 { fill: var(--f1); } .fs-flags .f2 { fill: var(--f2); } .fs-flags .f3 { fill: var(--f3); } .fs-flags .f4 { fill: var(--f4); } .fs-flags .f5 { fill: var(--f5); }
.fs-flags .fl { transform-box: fill-box; transform-origin: 50% 0; animation: fs-flap 2.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.23s); }
@keyframes fs-flap { 0%, 100% { transform: rotate(-5deg) scaleY(1); } 50% { transform: rotate(5deg) scaleY(.94); } }

/* ---------- intro: start the fiesta ---------- */
.fs-intro { --intro-ms: 2000; overflow: hidden; background: radial-gradient(90% 60% at 50% 45%, color-mix(in srgb, var(--f2) 22%, var(--bg)), var(--bg)); transition: opacity .6s ease 1.4s, visibility 0s linear 2s; }
.fs-strings { position: absolute; inset: 0 0 auto; display: grid; gap: 4vh; padding-top: env(safe-area-inset-top); pointer-events: none; }
.fs-strings .fs-flags { clip-path: inset(0 100% 0 0); transition: clip-path .9s cubic-bezier(.3, .8, .3, 1); }
.fs-strings .is-b { clip-path: inset(0 0 0 100%); transition-delay: .15s; }
.fs-strings .is-c { transition-delay: .3s; }
.fs-start { position: relative; z-index: 2; display: grid; justify-items: center; gap: 16px; padding: 30px 0 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.fs-bilao { display: grid; place-items: center; width: min(62vw, 250px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, transparent 60%, color-mix(in srgb, var(--rattan) 70%, #000) 61% 63%, transparent 64%),
    repeating-conic-gradient(var(--rattan) 0 6deg, color-mix(in srgb, var(--rattan) 78%, #fff) 6deg 12deg),
    var(--rattan);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--rattan) 75%, #000), 0 18px 34px -12px rgba(60, 35, 10, .55); animation: fs-bob 3s ease-in-out infinite; }
.fs-leaf { display: grid; place-items: center; width: 64%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 35%, color-mix(in srgb, var(--leaf) 70%, #fff), var(--leaf));
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--leaf) 70%, #000); }
.fs-mono { display: grid; place-items: center; width: 74%; aspect-ratio: 1; border-radius: 50%; background: var(--paper); font: 400 2.5rem/1 var(--display); color: var(--name); box-shadow: 0 4px 0 color-mix(in srgb, var(--leaf) 60%, #000); }
.fs-mono i { font: 400 .5em var(--script); margin: 0 .08em; color: var(--f3); }
.fs-for { font: 400 1.5rem/1.2 var(--script); } .fs-for b { font-weight: 400; }
.fs-tap { font: 600 .74rem var(--caps); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); animation: fs-pulse 2.2s ease-in-out infinite; }
@keyframes fs-pulse { 50% { opacity: .45; } }
@keyframes fs-bob { 50% { transform: translateY(-6px) rotate(-3deg); } }
@keyframes fs-pop { 0% { transform: rotate(0) scale(1); } 45% { transform: rotate(200deg) scale(1.12); } 100% { transform: rotate(360deg) scale(.2); opacity: 0; } }
.is-opening .fs-strings .fs-flags { clip-path: inset(0 0 0 0); }
.is-opening .fs-bilao { animation: fs-pop 1.1s cubic-bezier(.5, 0, .5, 1) .25s both; }
.is-opening .fs-tap, .is-opening .fs-for { opacity: 0; transition: opacity .3s; animation: none; }
@media (prefers-reduced-motion: reduce) { .fs-flags .fl, .fs-bilao, .fs-tap { animation: none; } .is-opening .fs-bilao { animation: none; } }

/* ---------- cover ---------- */
.t-fiesta .fs-hero { position: relative; display: block; min-height: 100svh; padding: 0 var(--gutter) 64px; text-align: center; }
.t-fiesta .fs-hero > * { max-width: 470px; }
.fs-top { position: relative; max-width: none !important; margin: 0 calc(-1 * var(--gutter)) 26px; }
.fs-top .fs-flags { width: 100%; }
.fs-top .is-h2 { width: 86%; margin: -2% auto 0; }
.fs-frame { position: relative; width: min(70vw, 270px); aspect-ratio: .82; margin: 0 auto 30px; transform: rotate(-3deg); filter: drop-shadow(0 12px 18px rgba(42, 31, 61, .25)); }
.fs-frame::before, .fs-frame::after { content: ""; position: absolute; z-index: 2; top: -10px; width: 76px; height: 24px; background: color-mix(in srgb, var(--f2) 55%, #fff); opacity: .85; }
.fs-frame::before { left: -14px; transform: rotate(-32deg); } .fs-frame::after { right: -14px; transform: rotate(30deg); background: color-mix(in srgb, var(--f3) 45%, #fff); }
.fs-ph { position: relative; width: 100%; height: 100%; padding: 10px; background: var(--paper);
  -webkit-mask: conic-gradient(from -45deg at bottom, #000 90deg, #0000 0) 50% 100% / 14px 7px repeat-x, conic-gradient(from 135deg at top, #000 90deg, #0000 0) 50% 0 / 14px 7px repeat-x, linear-gradient(#000 0 0) 0 7px / 100% calc(100% - 14px) no-repeat;
  mask: conic-gradient(from -45deg at bottom, #000 90deg, #0000 0) 50% 100% / 14px 7px repeat-x, conic-gradient(from 135deg at top, #000 90deg, #0000 0) 50% 0 / 14px 7px repeat-x, linear-gradient(#000 0 0) 0 7px / 100% calc(100% - 14px) no-repeat; }
.fs-bg { position: absolute; inset: 14px 10px; width: calc(100% - 20px); height: calc(100% - 28px); object-fit: cover; }
.fs-ph .ph-slot { position: absolute; inset: 14px 10px; border-radius: 0; }
.fs-hero .hero-media-tag { bottom: 22px; font-size: .55rem; }
.fs-hero .hero-guest { margin: 0 0 4px; font: 400 1.4rem/1.3 var(--script); color: var(--f3); } .fs-hero .hero-guest b { font-weight: 400; }
.fs-hero .hero-k { margin: 0; font: 400 1.35rem/1.3 var(--script); color: var(--f3); }
.t-fiesta .sh-k { margin: 0 0 4px; font: 400 1.2rem/1.3 var(--script); letter-spacing: 0; text-transform: none; color: var(--f3); }
.t-fiesta .hero-t { margin: 8px 0 0; font: 400 clamp(3rem, 15vw, 4.3rem)/.98 var(--display); color: var(--name); text-shadow: 3px 3px 0 var(--f2); letter-spacing: .01em; }
.t-fiesta .hero-t span { display: block; }
.t-fiesta .hero-t span + i + span { color: var(--f4); text-shadow: 3px 3px 0 var(--f5); }
.t-fiesta .hero-t i { display: block; font: 400 .45em/1.5 var(--script); color: var(--ink); text-shadow: none; }
.fs-hero .hero-line { margin: 14px auto 0; max-width: 21em; color: var(--muted); }
.fs-when { display: inline-grid; gap: 2px; margin: 22px auto 0; padding: 12px 26px; border-radius: 12px; background: var(--f3); color: #fff;
  -webkit-mask: radial-gradient(circle 9px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 9px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat; }
.fs-when span:first-child { font: 600 .8rem var(--caps); letter-spacing: .14em; text-transform: uppercase; }
.fs-when span:last-child { font-size: .95rem; opacity: .92; }
.t-fiesta .hero-cta, .t-fiesta .rs-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 26px; padding: 12px 40px; border: 3px solid var(--ink); border-radius: 999px;
  background: var(--cta-bg, var(--f1)); color: #fff; font: 400 1.15rem var(--display); letter-spacing: .06em; text-transform: uppercase; box-shadow: 4px 4px 0 var(--ink); }
.t-fiesta .hero-cta:active, .t-fiesta .rs-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }

/* ---------- sections ---------- */
.t-fiesta .sh::before { content: ""; display: block; width: 148px; height: 20px; margin: 0 auto 12px; border-top: 1.5px solid color-mix(in srgb, var(--ink) 50%, transparent);
  background: linear-gradient(90deg, var(--f1) 0 20%, var(--f2) 0 40%, var(--f3) 0 60%, var(--f4) 0 80%, var(--f5) 0);
  -webkit-mask: conic-gradient(from -36deg at 50% 100%, #000 72deg, #0000 0) 0 0 / 29.6px 100%; mask: conic-gradient(from -36deg at 50% 100%, #000 72deg, #0000 0) 0 0 / 29.6px 100%; }
.t-fiesta .sh-t { color: var(--name); font-size: clamp(2.1rem, 9.5vw, 2.9rem); line-height: 1; text-shadow: 2px 2px 0 color-mix(in srgb, var(--f2) 70%, transparent); }
.t-fiesta .cd-u b { font: 400 clamp(2.3rem, 11vw, 3rem)/1 var(--display); color: var(--f4); }
.t-fiesta .cd-u span { font: 600 .6rem var(--caps); letter-spacing: .16em; }
.t-fiesta .btn-line { min-height: 46px; border: 2.5px solid var(--ink); color: var(--ink); font: 600 .74rem var(--caps); letter-spacing: .14em; text-transform: uppercase; box-shadow: 3px 3px 0 var(--f2); }
.t-fiesta .btn-line:hover { background: var(--ink); color: var(--bg); }
.t-fiesta .tl-time { color: var(--f1); font: 600 .78rem var(--caps); letter-spacing: .04em; padding-top: 3px; }
.t-fiesta .vn-c, .t-fiesta .dr-roles > div, .t-fiesta .rs, .t-fiesta .rs-done, .t-fiesta .gl-c, .t-fiesta .gl-it { border: 2.5px solid var(--ink); border-radius: var(--radius); background: var(--paper); box-shadow: 6px 6px 0 var(--f3); }
.t-fiesta .rs, .t-fiesta .rs-done { box-shadow: 6px 6px 0 var(--f2); }
.t-fiesta .vn-l, .t-fiesta .dr-roles dt, .t-fiesta .bio-r, .t-fiesta .tml-d { font: 600 .66rem var(--caps); letter-spacing: .16em; color: var(--f1); }
.t-fiesta .vn-n, .t-fiesta .pp-h, .t-fiesta .tml-t { font: 400 1.45rem/1.15 var(--display); color: var(--ink); }
.t-fiesta .f-in, .t-fiesta .ch span { border-radius: 12px; border-width: 2px; background: var(--paper); }
.t-fiesta .rs-btn { width: 100%; }
.t-fiesta .faq summary { font: 400 1.2rem var(--display); }
.t-fiesta .gl-btn { background: var(--f1); color: #fff; }
.t-fiesta .gal-i img, .t-fiesta .gal-ph { border-radius: 12px; border: 2.5px solid var(--ink); }
.t-fiesta .tml::before { background: repeating-linear-gradient(var(--f1) 0 8px, var(--f2) 8px 16px, var(--f3) 16px 24px); width: 3px; }
.t-fiesta .tml-dot { background: var(--f2); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ink); }

/* ---------- closing ---------- */
.t-fiesta .fs-end { text-align: center; margin-top: 10px; padding-top: 30px; }
.t-fiesta .fs-end > * { margin-left: auto; margin-right: auto; }
.fs-end > .fs-flags.is-end { max-width: none; width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)) 34px; }
.t-fiesta .fs-end .cl-line { font-size: 1.2rem; text-wrap: balance; }
.t-fiesta .fs-end .cl-sign { font: 400 2.4rem/1.1 var(--display); color: var(--name); text-shadow: 3px 3px 0 var(--f2); }
.t-fiesta .fs-end .cl-tag { font: 400 1.1rem var(--script); color: var(--f3); }
.t-fiesta body.is-demo .fs-end { padding-bottom: 110px; }
