@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600;1,700&display=swap');

:root {
    --burgundy: #315d86;
    --burgundy-deep: #102a43;
    --green: #244f75;
    --green-dark: #183a59;
    --cream: #f5f0e7;
    --paper: #eef2f5;
    --gold: #c8a75b;
    --gold-light: #e7cf91;
    --ink: #1a1512;
    --muted: #857b6d;
    --white: #fffaf0;
    --denim-deep: #102a43;
    --denim: #315d86;
    --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    background: var(--denim-deep, #102a43);
    color: var(--cream);
    font-family: "DM Sans", Arial, sans-serif;
    overflow-x: hidden;
}

body.locked { overflow: hidden; }

button, a { font: inherit; }

button { cursor: pointer; }

img, video { max-width: 100%; display: block; }

code {
    font-size: .8em;
    padding: .15em .35em;
    background: rgba(200,167,91,.12);
    border-radius: 4px;
}

.container { width: min(1120px, calc(100% - 48px)); margin: auto; position: relative; z-index: 2; }
.narrow { width: min(780px, calc(100% - 48px)); }
.center { text-align: center; }
.section-dark { background: var(--green-dark); color: var(--cream); }
.section-light { background: var(--paper); color: var(--ink); }

.preloader {
    position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
    background: #0c0908; transition: opacity .7s var(--ease), visibility .7s;
}
.preloader.hide { opacity: 0; visibility: hidden; }
.loader-mark { text-align: center; letter-spacing: .25em; color: var(--gold-light); }
.loader-mark span { display:block; font-family:"Playfair Display",serif; font-size:2rem; }
.loader-mark small { font-size:.55rem; letter-spacing:.35em; }

.grain {
    position: fixed; inset: 0; z-index: 20; pointer-events:none; opacity:.045;
    background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
.snow-layer { position:fixed; inset:0; z-index:15; pointer-events:none; overflow:hidden; }
.snowflake { position:absolute; top:-10px; width:3px; height:3px; border-radius:50%; background:rgba(255,247,220,.75); animation:fall linear infinite; }
@keyframes fall { to { transform:translate3d(80px,110vh,0); } }

.music-toggle {
    position: fixed; right: 22px; top: 22px; z-index: 30; width:46px; height:46px;
    border:1px solid rgba(231,207,145,.45); border-radius:50%; color:var(--gold-light);
    background:rgba(12,33,28,.72); backdrop-filter:blur(12px); display:grid; place-items:center;
}
.music-toggle.playing .music-icon { animation:spin 2.2s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }

.eyebrow { margin:0 0 18px; font-size:.68rem; letter-spacing:.28em; font-weight:700; text-transform:uppercase; color:var(--gold); }
.opening {
    min-height:100svh; position:relative; overflow:hidden; display:grid; place-items:center;
    background:
        radial-gradient(circle at 50% 45%, rgba(79,125,164,.34), transparent 38%),
        linear-gradient(145deg, #173e60, #244f75 58%, #102a43);
}
.opening::before {
    content:""; position:absolute; inset:5%; border:1px solid rgba(200,167,91,.2);
    pointer-events:none;
}
.opening-content { text-align:center; width:min(800px,calc(100% - 40px)); z-index:2; }
.cross-symbol { color:var(--gold-light); font-size:1.6rem; margin:18px 0; }
.year { color:var(--gold); letter-spacing:.35em; font-size:.65rem; font-weight:700; }
.opening-title, .display-title, .section-title, .theme-word, .closing-title {
    font-family:"Playfair Display", Georgia, serif; font-weight:500; line-height:.96; margin:0;
}
.opening-title { font-size:clamp(4.3rem,12vw,9rem); letter-spacing:-.05em; }
.opening-title em, .display-title em, .section-title em, .theme-word em, .closing-title em { color:var(--gold-light); font-style:italic; }
.opening-theme { margin:28px auto 34px; max-width:500px; color:#e6dcca; font-family:"Playfair Display",serif; font-size:1.05rem; font-style:italic; }
.open-button, .primary-button {
    border:1px solid rgba(231,207,145,.65); color:var(--cream); background:rgba(255,255,255,.04);
    padding:15px 22px; min-width:190px; display:inline-flex; justify-content:center; gap:18px; align-items:center;
    text-transform:uppercase; letter-spacing:.16em; font-size:.68rem; font-weight:700;
    transition:transform .3s, background .3s, color .3s;
}
.open-button:hover, .primary-button:hover { transform:translateY(-3px); background:var(--gold); color:#211612; }
.opening-bottom { position:absolute; bottom:22px; left:50%; transform:translateX(-50%); width:min(360px,70%); display:flex; flex-direction:column; align-items:center; gap:13px; font-size:.6rem; letter-spacing:.2em; color:#d8e1e9; text-align:center; z-index:3; }
.opening-date { width:100%; display:flex; justify-content:center; align-items:center; gap:12px; white-space:nowrap; }
.opening-date span { color:var(--gold-light); }
.opening-bottom i { display:block; width:100%; max-width:300px; height:1px; background:rgba(231,207,145,.72); }
.opening-orbit { position:absolute; width:55vw; aspect-ratio:1; border:1px solid rgba(200,167,91,.08); border-radius:50%; }
.orbit-one { transform:rotate(20deg) scaleY(.42); }
.orbit-two { transform:rotate(-25deg) scaleY(.42); }

.hero { min-height:100svh; position:relative; overflow:hidden; display:grid; align-items:center; }
.hero-bg {
    position:absolute; inset:0; opacity:.26;
    background:
        radial-gradient(circle at 70% 35%, rgba(200,167,91,.28), transparent 20%),
        radial-gradient(circle at 30% 70%, rgba(79,125,164,.30), transparent 28%);
}
.hero::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(5,18,15,.9),rgba(5,18,15,.25)); }
.hero-content { padding:120px 0; }
.display-title { font-size:clamp(3.5rem,8vw,7.5rem); max-width:900px; }
.hero-verse { max-width:610px; line-height:1.8; color:#cfc4b2; margin:35px 0 12px; }
.verse-ref { color:var(--gold); font-size:.65rem; letter-spacing:.25em; font-weight:700; }
.scroll-cue { position:absolute; bottom:30px; left:50%; transform:translateX(-50%); z-index:3; font-size:.58rem; letter-spacing:.25em; color:var(--gold-light); }
.scroll-cue span { margin-left:10px; }

.countdown { padding:130px 0; text-align:center; }
.section-title { font-size:clamp(3rem,6vw,5.5rem); letter-spacing:-.035em; }
.countdown-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:1px; margin-top:60px; border-top:1px solid #cfc5b4; border-bottom:1px solid #cfc5b4; }
.countdown-grid div { padding:30px 10px; border-right:1px solid #cfc5b4; }
.countdown-grid div:last-child { border-right:0; }
.countdown-grid strong { display:block; font-family:"Playfair Display",serif; font-size:clamp(2.5rem,7vw,5.3rem); font-weight:500; color:var(--burgundy); }
.countdown-grid span { font-size:.6rem; text-transform:uppercase; letter-spacing:.2em; color:var(--muted); }

.theme-section { min-height:85svh; display:grid; place-items:center; position:relative; overflow:hidden; }
.theme-word { font-size:clamp(4rem,11vw,9rem); margin-bottom:25px; }
.gold-line { width:70px; height:1px; background:var(--gold); margin:28px auto; }
.body-copy { color:#a9a093; line-height:1.9; max-width:650px; margin:0 auto; }
.theme-art { position:absolute; color:rgba(200,167,91,.14); font-size:12rem; font-family:"Playfair Display",serif; }
.art-left { left:-40px; top:12%; }
.art-right { right:-30px; bottom:8%; }

.verse-section { padding:150px 0; }
.quote-layout { display:grid; grid-template-columns:120px 1fr; gap:30px; }
.quote-number { font-size:.7rem; letter-spacing:.2em; color:var(--gold); padding-top:10px; }
.big-quote { font-family:"Playfair Display",serif; font-size:clamp(2.2rem,5vw,4.8rem); line-height:1.08; margin:10px 0 35px; }
.quote-ref { color:var(--burgundy); letter-spacing:.2em; text-transform:uppercase; font-size:.7rem; font-weight:700; }

.details { padding:140px 0; }
.section-heading { margin-bottom:60px; }
.details-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:1px; }
.info-card { min-height:250px; padding:28px; background:#173e60; border:1px solid rgba(200,167,91,.12); position:relative; }
.card-number { color:var(--gold); font-size:.65rem; }
.info-card small { display:block; margin-top:70px; color:#8c9d94; letter-spacing:.2em; font-size:.6rem; }
.info-card h3 { font-family:"Playfair Display",serif; font-size:1.75rem; font-weight:500; margin:10px 0; }
.info-card h3 em { color:var(--gold-light); font-size:1rem; }
.address-box { margin-top:1px; padding:30px; border:1px solid rgba(200,167,91,.12); display:flex; align-items:center; gap:35px; }
.address-box > span:first-child { font-size:.6rem; letter-spacing:.2em; color:var(--gold); }
.address-box p { margin:0; color:#bdb4a7; line-height:1.7; flex:1; }
.text-link { color:var(--gold-light); text-decoration:none; font-size:.7rem; letter-spacing:.08em; }
.muted { opacity:.65; }

.campuses, .gallery-section { padding:140px 0; }
.split-heading { display:grid; grid-template-columns:1.3fr .7fr; gap:50px; align-items:end; }
.side-copy { margin:0; color:#756e65; line-height:1.8; max-width:350px; }
.campus-list { margin-top:60px; border-top:1px solid #c9bead; }
.campus-item { display:grid; grid-template-columns:60px 1fr 30px; align-items:center; gap:20px; padding:23px 0; border-bottom:1px solid #c9bead; }
.campus-item span { color:#9b8f80; font-size:.7rem; }
.campus-item strong { font-family:"Playfair Display",serif; font-size:clamp(1.3rem,3vw,2rem); font-weight:500; }
.campus-item i { font-style:normal; color:var(--burgundy); }

.schedule { padding:140px 0; }
.schedule-layout { display:grid; grid-template-columns:.8fr 1.2fr; gap:100px; }
.timeline-item { display:grid; grid-template-columns:100px 1fr; padding:25px 0; border-bottom:1px solid rgba(200,167,91,.15); }
.timeline-item span { color:var(--gold); font-size:.7rem; letter-spacing:.1em; }
.timeline-item strong { font-family:"Playfair Display",serif; font-size:1.5rem; font-weight:500; }

.gallery-grid { margin-top:60px; display:grid; grid-template-columns:repeat(12,1fr); gap:12px; }
.gallery-item { padding:0; border:0; overflow:hidden; position:relative; background:#ddd1bf; min-height:220px; }
.gallery-item:nth-child(1) { grid-column:span 7; grid-row:span 2; min-height:470px; }
.gallery-item:nth-child(2), .gallery-item:nth-child(3) { grid-column:span 5; }
.gallery-item:nth-child(n+4) { grid-column:span 4; }
.gallery-item img { width:100%; height:100%; object-fit:cover; transition:transform .8s var(--ease), filter .8s; }
.gallery-item:hover img { transform:scale(1.06); filter:saturate(.8); }
.gallery-item > span { position:absolute; left:16px; bottom:14px; color:white; font-size:.6rem; letter-spacing:.2em; text-shadow:0 2px 10px #000; }
.gallery-item.placeholder::before {
    content:"MASUKKAN FOTO"; position:absolute; inset:0; display:grid; place-items:center;
    color:#8d8273; font-size:.65rem; letter-spacing:.2em; background:linear-gradient(135deg,#ddd1bf,#c8b9a5);
}

.video-section { padding:140px 0; }
.video-frame {
    margin:60px auto 0;
    width:min(900px,100%);
    aspect-ratio:16/9;
    position:relative;
    overflow:hidden;
    background:#0a1713;
    cursor:pointer;
    border:1px solid rgba(231,207,145,.16);
}
.video-frame video {
    position:relative;
    z-index:1;
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    object-position:center;
    cursor:pointer;
}
.video-play-hint {
    position:absolute;
    inset:0;
    z-index:2;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:12px;
    pointer-events:none;
    background:linear-gradient(180deg,rgba(16,42,67,.04),rgba(16,42,67,.18));
    transition:opacity .35s ease;
}
.video-play-hint.hidden { opacity:0; }
.video-play-icon {
    width:72px;
    height:72px;
    border:1px solid rgba(255,250,240,.72);
    border-radius:50%;
    display:grid;
    place-items:center;
    padding-left:4px;
    color:#fffaf0;
    background:rgba(16,42,67,.52);
    backdrop-filter:blur(8px);
    font-size:1.35rem;
    box-shadow:0 8px 30px rgba(0,0,0,.22);
}
.video-play-hint small {
    color:#fffaf0;
    font-size:.62rem;
    letter-spacing:.16em;
    text-transform:uppercase;
    text-shadow:0 2px 10px rgba(0,0,0,.45);
}

.rsvp, .wishes { padding:140px 0; }
.rsvp .body-copy, .wishes .body-copy { margin:30px auto; }
.primary-button { background:var(--burgundy); border-color:var(--burgundy); }
.wishes .primary-button { background:transparent; border-color:rgba(231,207,145,.6); }

.location { padding:100px 0; }
.location-box { padding:60px; background:#e2d8c8; display:grid; grid-template-columns:1fr .8fr; gap:50px; align-items:center; }
.location-box p { max-width:520px; line-height:1.8; color:#665e55; }
.map-placeholder { min-height:250px; background:linear-gradient(135deg,#cfc3b0,#e9dfd0); display:grid; place-items:center; align-content:center; gap:10px; color:#756b5d; }
.map-placeholder span { font-family:"Playfair Display",serif; font-size:2rem; color:var(--burgundy); }
.map-placeholder a { color:var(--burgundy); }

.closing { min-height:100svh; display:grid; place-items:center; position:relative; overflow:hidden; }
.closing-glow { position:absolute; width:70vw; aspect-ratio:1; border-radius:50%; background:radial-gradient(circle,rgba(104,31,37,.6),transparent 65%); }
.closing-title { font-size:clamp(4.5rem,12vw,9rem); }
.closing-subtitle { font-family:"Playfair Display",serif; color:#c5b9a7; font-style:italic; font-size:1.4rem; margin:15px 0; }
.closing-date { color:var(--gold); letter-spacing:.2em; font-size:.65rem; }
.share-row { margin:30px 0 60px; }
.closing-brand { display:inline-grid; grid-template-columns:auto 1fr; text-align:left; column-gap:12px; align-items:center; }
.closing-brand span { grid-row:span 2; color:var(--gold); }
.closing-brand strong { font-family:"Playfair Display",serif; font-size:1.3rem; }
.closing-brand small { font-size:.55rem; letter-spacing:.2em; color:#9c9182; }

.lightbox, .modal { position:fixed; inset:0; z-index:100; display:none; align-items:center; justify-content:center; padding:30px; background:rgba(5,8,7,.94); }
.lightbox.active, .modal.active { display:flex; }
.lightbox img { max-height:85vh; max-width:90vw; object-fit:contain; }
.lightbox-close, .modal-close { position:absolute; right:24px; top:18px; border:0; background:none; color:white; font-size:2rem; }
.modal-card { width:min(460px,100%); padding:45px; background:var(--paper); color:var(--ink); text-align:center; }
.modal-card h3 { font-family:"Playfair Display",serif; font-size:2rem; margin:10px 0; }
.modal-card p { line-height:1.7; color:#6e665d; }

.reveal, .reveal-on-scroll { opacity:0; transform:translateY(24px); transition:opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.visible, .reveal-on-scroll.visible { opacity:1; transform:none; }
.delay-1 { transition-delay:.15s; } .delay-2 { transition-delay:.25s; } .delay-3 { transition-delay:.35s; } .delay-4 { transition-delay:.45s; }

@media (max-width: 800px) {
    .container, .narrow { width:min(100% - 34px, 680px); }
    .opening::before { inset:18px; }
    .opening-title { font-size:clamp(4rem,19vw,7rem); }
    .opening-theme { font-size:.95rem; }
    .display-title { font-size:clamp(3.2rem,15vw,6rem); }
    .countdown { padding:90px 0; }
    .countdown-grid { grid-template-columns:repeat(2,1fr); }
    .countdown-grid div:nth-child(2) { border-right:0; }
    .countdown-grid div:nth-child(-n+2) { border-bottom:1px solid #cfc5b4; }
    .quote-layout, .schedule-layout, .location-box, .split-heading { grid-template-columns:1fr; gap:35px; }
    .details, .campuses, .gallery-section, .schedule, .video-section, .rsvp, .wishes { padding:90px 0; }
    .details-grid { grid-template-columns:repeat(2,1fr); }
    .address-box { align-items:flex-start; flex-direction:column; gap:12px; }
    .gallery-grid { grid-template-columns:repeat(2,1fr); }
    .gallery-item:nth-child(1), .gallery-item:nth-child(2), .gallery-item:nth-child(3), .gallery-item:nth-child(n+4) {
        grid-column:span 1; grid-row:auto; min-height:190px;
    }
    .gallery-item:nth-child(1) { grid-column:span 2; min-height:300px; }
    .location-box { padding:35px 25px; }
}

@media (max-width: 480px) {
    .container, .narrow { width:calc(100% - 28px); }
    .music-toggle { right:14px; top:14px; }
    .opening-bottom { bottom:18px; }
    .eyebrow { font-size:.58rem; }
    .section-title { font-size:clamp(2.7rem,15vw,4rem); }
    .theme-word { font-size:clamp(3.5rem,17vw,5rem); }
    .details-grid { grid-template-columns:1fr; }
    .info-card { min-height:190px; }
    .info-card small { margin-top:40px; }
    .campus-item { grid-template-columns:38px 1fr 20px; }
    .campus-item strong { font-size:1.2rem; }
    .timeline-item { grid-template-columns:75px 1fr; }
    .timeline-item strong { font-size:1.15rem; }
    .video-placeholder span { font-size:2rem; }
}


/* ===== HKPI visual refinements ===== */
body.invitation-locked { overflow:hidden; height:100vh; }
.opening { position:fixed; inset:0; z-index:90; }
.opening.opening-closed { opacity:0; visibility:hidden; pointer-events:none; transform:translateY(-18px); transition:opacity .9s var(--ease), transform .9s var(--ease), visibility .9s; }
.open-button { position:relative; overflow:hidden; }
.open-button .envelope-icon { font-size:1.05rem; line-height:1; font-weight:400; transform:translateY(-1px); }
.open-button::after { content:""; position:absolute; inset:-80%; background:linear-gradient(110deg, transparent 42%, rgba(255,255,255,.32) 50%, transparent 58%); transform:translateX(-45%); animation:buttonShimmer 3.6s ease-in-out infinite; pointer-events:none; }
@keyframes buttonShimmer { 0%,55%{transform:translateX(-55%) rotate(8deg);opacity:0} 65%{opacity:1} 82%,100%{transform:translateX(55%) rotate(8deg);opacity:0} }
.cross-symbol, .opening-title em { animation:twinkle 2.8s ease-in-out infinite; }
@keyframes twinkle { 0%,100%{opacity:.72; text-shadow:0 0 0 rgba(231,207,145,0)} 50%{opacity:1; text-shadow:0 0 18px rgba(231,207,145,.48), 0 0 34px rgba(231,207,145,.18)} }
.opening-orbit { animation:orbitPulse 5s ease-in-out infinite; }
.orbit-two { animation-delay:1.2s; }
@keyframes orbitPulse { 0%,100%{opacity:.35; transform:rotate(20deg) scaleY(.42) scale(1)} 50%{opacity:.72; transform:rotate(20deg) scaleY(.42) scale(1.025)} }
.orbit-two { animation-name:orbitPulseTwo; }
@keyframes orbitPulseTwo { 0%,100%{opacity:.28; transform:rotate(-25deg) scaleY(.42) scale(1)} 50%{opacity:.65; transform:rotate(-25deg) scaleY(.42) scale(1.025)} }
.dear-invitation { margin:22px 0 30px; text-align:center; display:flex; flex-direction:column; gap:5px; }
.dear-invitation span { font-family:"Playfair Display",serif; font-size:1rem; font-style:italic; color:#d8e1e9; }
.dear-invitation strong { color:var(--gold-light); font-size:.72rem; letter-spacing:.16em; text-transform:uppercase; font-weight:700; }
.reveal, .reveal-on-scroll { opacity:0; transform:translate3d(0,28px,0) scale(.985); filter:blur(2px); transition:opacity .85s var(--ease), transform .85s var(--ease), filter .85s var(--ease); }
.reveal.visible, .reveal-on-scroll.visible { opacity:1; transform:none; filter:none; }
.reveal-on-scroll.is-leaving { opacity:0; transform:translate3d(0,28px,0) scale(.985); filter:blur(2px); }
@media (max-width:480px){
  .opening-bottom { bottom:18px; width:min(330px,82%); }
  .opening-date { font-size:.54rem; letter-spacing:.16em; gap:9px; }
  .opening-bottom i { max-width:250px; }
  .dear-invitation { margin:18px 0 24px; }
  .dear-invitation strong { font-size:.62rem; letter-spacing:.11em; }
}
@media (prefers-reduced-motion:reduce){
  .cross-symbol,.opening-title em,.opening-orbit,.open-button::after { animation:none; }
}

/* ===== Christmas opening experience ===== */
.opening { isolation:isolate; }
.opening::after {
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    z-index:1;
    background:radial-gradient(circle at 50% 45%, rgba(255,255,255,.055), transparent 38%), linear-gradient(to bottom, rgba(8,25,42,.04), rgba(8,25,42,.22));
}
.opening-content { position:relative; z-index:5; }
.opening-brand { display:flex; justify-content:center; align-items:center; margin:0 auto 18px; }
.opening-brand img { width:min(330px,72vw); height:auto; filter:drop-shadow(0 7px 20px rgba(0,0,0,.12)); }
/* Guaranteed centered date: full viewport anchor, independent of text width. */
.opening-bottom { left:0; right:0; bottom:24px; transform:none; width:100%; max-width:none; }
.opening-date { width:100%; justify-content:center; text-align:center; }
.opening-bottom i { width:min(280px,62vw); max-width:none; }

.opening-snow-glow { position:absolute; inset:0; z-index:2; pointer-events:none; background:radial-gradient(circle at 50% 28%, rgba(255,255,255,.08), transparent 24%); animation:snowGlow 5.5s ease-in-out infinite; }
@keyframes snowGlow { 0%,100%{opacity:.45} 50%{opacity:1} }

.santa-scene { position:absolute; right:clamp(16px,5vw,80px); bottom:clamp(92px,13vh,150px); z-index:4; pointer-events:none; text-align:center; animation:santaFloat 3.6s ease-in-out infinite; }
.santa-wave { position:relative; display:inline-flex; align-items:flex-end; filter:drop-shadow(0 12px 16px rgba(0,0,0,.18)); }
.santa-hat { display:block; font-size:clamp(3.3rem,7vw,6rem); transform:scaleX(-1); }
.santa-hand { position:absolute; right:-5px; top:0; font-size:clamp(1.35rem,2.6vw,2rem); transform-origin:bottom center; animation:waveHand .75s ease-in-out infinite alternate; }
.santa-caption { display:block; margin-top:2px; color:rgba(247,242,232,.78); font-size:.52rem; letter-spacing:.22em; text-transform:uppercase; }
@keyframes santaFloat { 0%,100%{transform:translateY(0) rotate(-1deg)} 50%{transform:translateY(-9px) rotate(1deg)} }
@keyframes waveHand { from{transform:rotate(-22deg)} to{transform:rotate(18deg)} }

.sleigh-scene { position:absolute; inset:0; z-index:3; pointer-events:none; overflow:hidden; }
.sleigh-track { position:absolute; top:12%; left:-25%; display:flex; align-items:center; gap:0; white-space:nowrap; animation:sleighFly 19s linear infinite; opacity:.9; filter:drop-shadow(0 5px 10px rgba(0,0,0,.15)); }
.reindeer { font-size:clamp(1.8rem,3vw,3rem); animation:reindeerBounce .7s ease-in-out infinite alternate; }
.reindeer-2 { margin-left:-7px; animation-delay:.15s; }
.sleigh { font-size:clamp(1.8rem,3vw,3rem); margin-left:-2px; }
.sleigh-santa { font-size:clamp(1.8rem,3vw,3rem); margin-left:-20px; transform:scaleX(-1); }
@keyframes sleighFly { 0%{transform:translateX(0) translateY(0)} 45%{transform:translateX(65vw) translateY(-10px)} 100%{transform:translateX(155vw) translateY(0)} }
@keyframes reindeerBounce { from{transform:translateY(0)} to{transform:translateY(-5px)} }

/* More snow / sparkle particles */
.snowflake { box-shadow:0 0 7px rgba(255,255,255,.55); }
.snowflake:nth-child(3n) { animation-name:fallDrift; }
@keyframes fallDrift { to { transform:translate3d(-65px,110vh,0) rotate(180deg); } }

/* Soft twinkle on festive accents */
.opening .cross-symbol { animation:christmasTwinkle 2.2s ease-in-out infinite; }
@keyframes christmasTwinkle { 0%,100%{transform:scale(.92);opacity:.55;text-shadow:0 0 0 rgba(255,255,255,0)} 50%{transform:scale(1.18);opacity:1;text-shadow:0 0 14px rgba(255,255,255,.7),0 0 30px rgba(231,207,145,.45)} }

@media (max-width:800px){
    .opening-brand img { width:min(285px,68vw); }
    .santa-scene { right:8px; bottom:104px; }
    .santa-caption { display:none; }
    .sleigh-track { top:9%; }
}
@media (max-width:480px){
    .opening-brand { margin-bottom:12px; }
    .opening-brand img { width:min(245px,68vw); }
    .opening-bottom { bottom:20px; }
    .opening-date { font-size:.54rem; letter-spacing:.14em; gap:8px; }
    .opening-bottom i { width:min(230px,58vw); }
    .santa-scene { right:5px; bottom:88px; }
    .santa-hat { font-size:3rem; }
    .santa-hand { font-size:1.25rem; }
    .sleigh-track { top:8%; }
}
@media (prefers-reduced-motion:reduce){
    .opening-snow-glow,.santa-scene,.santa-hand,.sleigh-track,.reindeer,.opening .cross-symbol { animation:none; }
}


/* ===== HKPI logo + organization name ===== */
.opening-brand {
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:14px;
}
.opening-brand img {
    width:78px;
    height:78px;
    object-fit:contain;
    display:block;
    filter:drop-shadow(0 8px 18px rgba(0,0,0,.16));
    animation:logoFloat 4.5s ease-in-out infinite;
}
.opening-organization {
    margin:0;
    color:var(--gold);
    font-size:.72rem;
    line-height:1.4;
    letter-spacing:.25em;
    font-weight:700;
    text-align:center;
    white-space:nowrap;
}
@keyframes logoFloat {
    0%,100% { transform:translateY(0); }
    50% { transform:translateY(-5px); }
}
@media (max-width:480px){
    .opening-brand { gap:10px; }
    .opening-brand img { width:62px; height:62px; }
    .opening-organization { font-size:.52rem; letter-spacing:.16em; white-space:normal; max-width:300px; }
}
@media (prefers-reduced-motion:reduce){ .opening-brand img { animation:none; } }


/* =========================================================
   HKPI 2026 PREMIUM CHRISTMAS OPENING
   Premium illustrated Santa + Rudolph flight scene
   ========================================================= */

.opening {
    background:
        radial-gradient(circle at 50% 42%, rgba(91,137,178,.34), transparent 34%),
        radial-gradient(circle at 82% 12%, rgba(231,207,145,.12), transparent 20%),
        linear-gradient(145deg, #102a43 0%, #214d75 56%, #0c2238 100%);
}

/* Premium illustrated flight */
.premium-sleigh-scene {
    position:absolute;
    inset:0;
    z-index:3;
    overflow:hidden;
    pointer-events:none;
    perspective:900px;
}
.premium-flight {
    position:absolute;
    width:clamp(520px, 48vw, 900px);
    height:clamp(170px, 23vw, 390px);
    right:-12%;
    top:7%;
    transform:translate3d(0,0,0);
    animation:premiumFlight 22s cubic-bezier(.42,0,.58,1) infinite;
    filter:drop-shadow(0 18px 25px rgba(0,0,0,.22));
    will-change:transform;
}
.premium-reindeer-art,
.premium-santa-art {
    position:absolute;
    mix-blend-mode:screen;
    pointer-events:none;
}
.premium-reindeer-art {
    left:0;
    top:0;
    width:62%;
    animation:premiumReindeerBob 1.8s ease-in-out infinite;
}
.premium-santa-art {
    right:0;
    bottom:0;
    width:48%;
    animation:premiumSleighBob 2.2s ease-in-out infinite;
}
.premium-reindeer-art img,
.premium-santa-art img {
    width:100%;
    height:auto;
    display:block;
}
@keyframes premiumFlight {
    0%   { transform:translate3d(36vw,-4vh,0) rotate(-1deg) scale(.92); opacity:0; }
    8%   { opacity:1; }
    25%  { transform:translate3d(5vw,1vh,0) rotate(0deg) scale(1); }
    55%  { transform:translate3d(-22vw,-2vh,0) rotate(-1deg) scale(1.02); opacity:1; }
    78%  { transform:translate3d(-52vw,2vh,0) rotate(1deg) scale(1.01); opacity:.94; }
    100% { transform:translate3d(-115vw,-5vh,0) rotate(-2deg) scale(.94); opacity:0; }
}
@keyframes premiumReindeerBob {
    0%,100% { transform:translateY(0) rotate(0deg); }
    50% { transform:translateY(-8px) rotate(-1deg); }
}
@keyframes premiumSleighBob {
    0%,100% { transform:translateY(0) rotate(0deg); }
    50% { transform:translateY(7px) rotate(1.2deg); }
}

/* Tiny golden trail particles around the sleigh */
.premium-sparkles { position:absolute; inset:0; z-index:2; pointer-events:none; }
.premium-sparkles i {
    position:absolute;
    width:4px; height:4px;
    border-radius:50%;
    background:#f5d58a;
    box-shadow:0 0 10px rgba(245,213,138,.9);
    opacity:0;
    animation:premiumSparkle 3.8s ease-in-out infinite;
}
.premium-sparkles i:nth-child(1){top:11%;right:23%;animation-delay:.2s}
.premium-sparkles i:nth-child(2){top:16%;right:29%;animation-delay:1.1s}
.premium-sparkles i:nth-child(3){top:22%;right:17%;animation-delay:2s}
.premium-sparkles i:nth-child(4){top:27%;right:34%;animation-delay:2.8s}
.premium-sparkles i:nth-child(5){top:9%;right:39%;animation-delay:1.7s}
.premium-sparkles i:nth-child(6){top:31%;right:27%;animation-delay:3.1s}
@keyframes premiumSparkle {
    0%,100% { transform:scale(.25); opacity:0; }
    45% { transform:scale(1); opacity:.9; }
    70% { transform:scale(.5); opacity:.2; }
}

/* Logo: source can be 1037x1037, display remains intentionally small */
.opening-brand {
    position:relative;
    z-index:7;
    gap:12px;
}
.opening-brand img {
    width:clamp(56px, 5.5vw, 86px);
    height:clamp(56px, 5.5vw, 86px);
    object-fit:contain;
    display:block;
    animation:logoPremiumFloat 5s ease-in-out infinite;
}
@keyframes logoPremiumFloat {
    0%,100% { transform:translateY(0) scale(1); }
    50% { transform:translateY(-5px) scale(1.015); }
}
.opening-organization {
    position:relative;
    z-index:7;
    max-width:min(90vw, 720px);
    white-space:normal;
}

/* Date is centered independently from all content. */
.opening-bottom {
    position:absolute;
    left:0;
    right:0;
    width:100%;
    max-width:none;
    bottom:22px;
    transform:none;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    z-index:8;
}
.opening-date {
    width:100%;
    max-width:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    white-space:normal;
    padding:0 18px;
    line-height:1.5;
}
.opening-bottom i {
    width:min(300px,62vw);
}

/* More premium button glow */
.open-button {
    box-shadow:0 0 0 1px rgba(231,207,145,.04), 0 0 28px rgba(231,207,145,.07);
}
.open-button:hover,
.open-button:focus-visible {
    box-shadow:0 0 28px rgba(231,207,145,.25), inset 0 0 22px rgba(231,207,145,.08);
}
.open-button .envelope-icon {
    animation:envelopePulse 2.6s ease-in-out infinite;
}
@keyframes envelopePulse {
    0%,100% { transform:translateY(-1px) scale(1); opacity:.85; }
    50% { transform:translateY(-1px) scale(1.14); opacity:1; }
}

/* Countdown card refinement */
.countdown-grid {
    width:min(650px,100%);
    margin-left:auto;
    margin-right:auto;
    border:1px solid #d4d9de;
    border-radius:20px;
    overflow:hidden;
    background:rgba(255,255,255,.34);
    box-shadow:0 18px 45px rgba(16,42,67,.07);
}
.countdown-grid div {
    min-height:126px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    position:relative;
    padding:18px 10px;
    border-right:1px solid #d4d9de;
    border-bottom:1px solid #d4d9de;
}
.countdown-grid div:nth-child(2),
.countdown-grid div:nth-child(4) { border-right:0; }
.countdown-grid div:nth-child(3),
.countdown-grid div:nth-child(4) { border-bottom:0; }
.countdown-grid strong {
    font-size:clamp(2.4rem,5.4vw,4.2rem);
    line-height:1;
    color:var(--denim);
}
.countdown-grid span {
    margin-top:10px;
    font-size:.58rem;
    letter-spacing:.22em;
}
.countdown-grid div::after {
    content:"";
    position:absolute;
    top:14px;
    right:15px;
    width:5px;
    height:5px;
    border-radius:50%;
    background:var(--gold);
    box-shadow:0 0 10px rgba(200,167,91,.45);
    animation:countdownDot 2.5s ease-in-out infinite;
}
@keyframes countdownDot {
    0%,100%{opacity:.25;transform:scale(.7)}
    50%{opacity:1;transform:scale(1.15)}
}

.calendar-action {
    margin-top:26px;
    display:flex;
    justify-content:center;
}
.save-date-button {
    min-width:250px;
    padding:12px 22px;
    border:2px solid rgba(49,93,134,.7);
    border-radius:999px;
    color:#52606b;
    background:#f8fafb;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    font-size:.68rem;
    letter-spacing:.12em;
    transition:transform .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease);
}
.save-date-button:hover {
    transform:translateY(-2px);
    color:var(--denim);
    box-shadow:0 10px 28px rgba(49,93,134,.13);
}
.calendar-icon { font-size:.8rem; }

@media (max-width:800px) {
    .premium-flight {
        width:560px;
        height:220px;
        right:-35%;
        top:5%;
    }
    .opening-brand img {
        width:68px;
        height:68px;
    }
    .opening-organization {
        max-width:310px;
        font-size:.56rem;
        letter-spacing:.17em;
    }
    .opening-bottom {
        bottom:20px;
    }
    .opening-date {
        font-size:.55rem;
        letter-spacing:.14em;
        padding-inline:12px;
    }
}
@media (max-width:480px) {
    .premium-flight {
        width:410px;
        height:165px;
        right:-44%;
        top:4%;
    }
    .opening-brand {
        gap:9px;
        margin-bottom:12px;
    }
    .opening-brand img {
        width:58px;
        height:58px;
    }
    .opening-organization {
        max-width:280px;
        font-size:.50rem;
        letter-spacing:.13em;
    }
    .opening-date {
        font-size:.51rem;
        letter-spacing:.12em;
        gap:7px;
    }
    .opening-bottom i {
        width:min(230px,62vw);
    }
    .countdown-grid {
        border-radius:16px;
    }
    .countdown-grid div {
        min-height:108px;
        padding:14px 7px;
    }
    .countdown-grid strong {
        font-size:2.55rem;
    }
    .countdown-grid span {
        margin-top:8px;
        font-size:.50rem;
        letter-spacing:.17em;
    }
    .save-date-button {
        min-width:225px;
        font-size:.61rem;
    }
}

@media (prefers-reduced-motion:reduce) {
    .premium-flight,
    .premium-reindeer-art,
    .premium-santa-art,
    .premium-sparkles i,
    .opening-brand img,
    .envelope-icon,
    .countdown-grid div::after {
        animation:none !important;
    }
}


/* =========================================================
   CLASSIC HKPI OPENING — based on the original first design
   No logo, no Santa/Rudolph. Burgundy + black + warm gold.
   ========================================================= */
.opening {
    position: fixed;
    inset: 0;
    z-index: 90;
    min-height: 100svh;
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(ellipse at 50% 45%, rgba(103, 24, 35, .58) 0%, rgba(64, 15, 23, .42) 24%, rgba(17, 17, 17, .86) 58%, #101010 100%),
        linear-gradient(135deg, #0b1210 0%, #221013 50%, #100f10 100%);
    transition: opacity .95s var(--ease), visibility .95s, transform .95s var(--ease);
}
.opening.opening-closed {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-14px);
}
.opening::before {
    content: "";
    position: absolute;
    inset: 3.7%;
    border: 1px solid rgba(231, 207, 145, .16);
    pointer-events: none;
    z-index: 1;
}
.opening::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: .34;
    background:
        radial-gradient(circle at 50% 45%, rgba(119, 28, 41, .20), transparent 32%),
        linear-gradient(115deg, transparent 0%, rgba(255,255,255,.025) 48%, transparent 55%);
    animation: classicSheen 13s ease-in-out infinite alternate;
}
@keyframes classicSheen {
    0% { opacity: .25; transform: scale(1); }
    100% { opacity: .5; transform: scale(1.04); }
}

.opening-content {
    position: relative;
    z-index: 5;
    width: min(800px, calc(100% - 40px));
    text-align: center;
    padding: 5vh 0 12vh;
}
.opening-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}
.opening-organization {
    margin: 0;
    color: #d2a34b;
    font-size: clamp(.58rem, .72vw, .72rem);
    line-height: 1.4;
    letter-spacing: .25em;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}
.cross-symbol {
    color: #efd08a;
    font-size: 1.55rem;
    margin: 22px 0 18px;
    animation: classicTwinkle 2.8s ease-in-out infinite;
    text-shadow: 0 0 18px rgba(239,208,138,.55);
}
@keyframes classicTwinkle {
    0%,100% { opacity: .62; transform: scale(.9) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.14) rotate(8deg); }
}
.year {
    color: #d2a34b;
    letter-spacing: .35em;
    font-size: .65rem;
    font-weight: 700;
    margin: 0 0 24px;
}
.opening-title {
    font-size: clamp(4.2rem, 12vw, 9rem);
    letter-spacing: -.055em;
    line-height: .9;
    text-shadow: 0 5px 30px rgba(0,0,0,.22);
}
.opening-title em {
    color: #f0c766;
    font-style: italic;
    text-shadow: 0 0 25px rgba(212,163,75,.12);
}
.opening-theme {
    margin: 30px auto 38px;
    max-width: 500px;
    color: #e6dcca;
    font-family: "Playfair Display", serif;
    font-size: 1.05rem;
    font-style: italic;
}
.open-button {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(231,207,145,.65);
    color: #f5f0e7;
    background: rgba(255,255,255,.025);
    padding: 15px 22px;
    min-width: 210px;
    display: inline-flex;
    justify-content: center;
    gap: 18px;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .68rem;
    font-weight: 700;
    transition: transform .35s var(--ease), background .35s, box-shadow .35s;
}
.open-button::after {
    content: "";
    position: absolute;
    top: -40%;
    left: -120%;
    width: 55%;
    height: 180%;
    transform: skewX(-20deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
    animation: buttonShimmer 5.5s ease-in-out infinite;
}
@keyframes buttonShimmer {
    0%, 58%, 100% { left: -120%; }
    72% { left: 145%; }
}
.open-button:hover {
    transform: translateY(-3px);
    background: rgba(104,31,37,.25);
    box-shadow: 0 0 30px rgba(194,91,96,.12);
}
.open-button .envelope-icon {
    font-size: 1rem;
    line-height: 1;
    font-weight: 400;
    transform: translateY(-1px);
}

.classic-orbit {
    position: absolute;
    z-index: 1;
    width: min(58vw, 900px);
    aspect-ratio: 1.72 / 1;
    border: 1px solid rgba(213, 165, 82, .085);
    border-radius: 50%;
    pointer-events: none;
    transform-origin: center;
}
.classic-orbit-one {
    transform: rotate(18deg) scaleY(.66);
    animation: orbitDriftOne 18s ease-in-out infinite alternate;
}
.classic-orbit-two {
    transform: rotate(-22deg) scaleY(.58) translateX(-3%);
    animation: orbitDriftTwo 21s ease-in-out infinite alternate;
}
@keyframes orbitDriftOne {
    from { transform: rotate(18deg) scaleY(.66) translate3d(-10px,0,0); opacity:.55; }
    to { transform: rotate(22deg) scaleY(.66) translate3d(10px,7px,0); opacity:1; }
}
@keyframes orbitDriftTwo {
    from { transform: rotate(-22deg) scaleY(.58) translate3d(8px,5px,0); opacity:.45; }
    to { transform: rotate(-18deg) scaleY(.58) translate3d(-8px,-5px,0); opacity:.9; }
}
.classic-glow {
    position: absolute;
    z-index: 1;
    width: min(52vw, 760px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(125,31,44,.20), transparent 67%);
    filter: blur(18px);
    animation: glowBreath 7s ease-in-out infinite;
    pointer-events: none;
}
@keyframes glowBreath {
    0%,100% { opacity: .45; transform: scale(.96); }
    50% { opacity: .9; transform: scale(1.04); }
}

.classic-stars {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}
.classic-stars i {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: rgba(244, 222, 172, .82);
    box-shadow: 0 0 8px rgba(244, 222, 172, .35);
    animation: classicStarBlink 4.8s ease-in-out infinite;
}
.classic-stars i:nth-child(1){left:24%;top:17%;animation-delay:.4s}
.classic-stars i:nth-child(2){left:33%;top:74%;animation-delay:2.1s}
.classic-stars i:nth-child(3){left:68%;top:20%;animation-delay:1.4s}
.classic-stars i:nth-child(4){left:75%;top:61%;animation-delay:3s}
.classic-stars i:nth-child(5){left:43%;top:28%;animation-delay:2.7s}
.classic-stars i:nth-child(6){left:60%;top:83%;animation-delay:1s}
.classic-stars i:nth-child(7){left:84%;top:38%;animation-delay:3.6s}
.classic-stars i:nth-child(8){left:17%;top:82%;animation-delay:1.8s}
@keyframes classicStarBlink {
    0%,100% { opacity:.16; transform:scale(.7); }
    48% { opacity:.9; transform:scale(1.4); }
    60% { opacity:.35; transform:scale(.9); }
}

.opening-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 22px;
    width: 100%;
    max-width: none;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
    color: #d8d0c3;
    text-align: center;
}
.opening-date {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    font-size: .6rem;
    letter-spacing: .2em;
}
.opening-date span { color: #e7cf91; }
.opening-bottom i {
    display: block;
    width: min(300px, 62vw);
    max-width: 300px;
    height: 1px;
    background: rgba(231,207,145,.72);
}

@media (max-width: 700px) {
    .opening::before { inset: 18px; }
    .opening-content { width: calc(100% - 34px); padding: 3vh 0 13vh; }
    .opening-organization {
        white-space: normal;
        max-width: 320px;
        font-size: .54rem;
        letter-spacing: .17em;
    }
    .cross-symbol { margin: 16px 0 13px; font-size: 1.4rem; }
    .year { font-size: .57rem; letter-spacing: .28em; margin-bottom: 20px; }
    .opening-title { font-size: clamp(4rem, 20vw, 6.6rem); }
    .opening-theme { margin: 24px auto 30px; font-size: .93rem; }
    .open-button { min-width: 200px; padding: 14px 19px; }
    .classic-orbit { width: 112vw; }
    .classic-glow { width: 100vw; }
    .opening-bottom { bottom: 18px; }
    .opening-date { font-size: .52rem; letter-spacing: .13em; gap: 8px; }
    .opening-bottom i { width: min(230px, 58vw); }
}
@media (prefers-reduced-motion: reduce) {
    .classic-orbit, .classic-glow, .classic-stars i, .cross-symbol, .open-button::after {
        animation: none !important;
    }
}

.map-container {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: 0;
}

@media (max-width: 768px) {
    .map-container iframe {
        height: 350px;
    }
}
/* RSVP + Christmas Wishes */
.form-card {
    max-height: min(88vh, 760px);
    overflow-y: auto;
    text-align: left;
}
.form-card > .eyebrow,
.form-card > h3 { text-align: center; }
.invite-form { display:grid; gap:16px; margin-top:25px; }
.invite-form label { display:grid; gap:7px; color:#4f4740; font-size:.75rem; font-weight:700; letter-spacing:.04em; }
.invite-form label span { font-weight:400; color:#8b8175; }
.invite-form input,
.invite-form select,
.invite-form textarea {
    width:100%; box-sizing:border-box; border:1px solid #cfc5b4; background:#f8f3eb; color:#2d2520;
    padding:12px 13px; border-radius:2px; font:inherit; font-size:.85rem; outline:none; transition:border-color .2s, box-shadow .2s;
}
.invite-form textarea { resize:vertical; min-height:95px; }
.invite-form input:focus,
.invite-form select:focus,
.invite-form textarea:focus { border-color:var(--burgundy); box-shadow:0 0 0 3px rgba(104,31,37,.08); }
.invite-form button:disabled { opacity:.55; cursor:wait; transform:none; }
.form-status { min-height:20px; font-size:.76rem; line-height:1.5; text-align:center; color:#766b60; }
.form-status.success { color:#416846; }
.form-status.error { color:#9a3434; }
.wishes-button { margin-top:5px; }
.wishes-list { width:min(720px,100%); margin:50px auto 0; display:grid; gap:14px; text-align:left; }
.wish-card { display:flex; gap:15px; padding:20px 22px; background:rgba(255,255,255,.045); border:1px solid rgba(231,207,145,.16); }
.wish-mark { color:var(--gold); font-size:1rem; flex:0 0 auto; }
.wish-card strong { color:#f0e6d5; font-family:"Playfair Display",serif; font-size:1.05rem; }
.wish-card p { margin:7px 0 0; color:#c9bfb1; line-height:1.65; font-size:.88rem; white-space:pre-line; }
.wishes-empty, .wishes-loading { padding:22px; border:1px dashed rgba(231,207,145,.2); color:#a99e90; font-size:.8rem; }
@media (max-width:480px) {
    .form-card { padding:32px 22px; }
    .wish-card { padding:17px; }
}



/* Christmas wishes pagination: keeps the list compact and page-based. */
.wishes-pagination{
    width:min(720px,100%);
    margin:22px auto 0;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:20px;
    min-height:48px;
}
.wish-page-arrow{
    width:42px;
    height:42px;
    border:1px solid rgba(231,207,145,.30);
    border-radius:50%;
    background:rgba(255,255,255,.035);
    color:#e7cf91;
    display:grid;
    place-items:center;
    padding:0;
    cursor:pointer;
    font:inherit;
    transition:transform .25s ease, background .25s ease, border-color .25s ease, opacity .25s ease;
}
.wish-page-arrow span{
    display:block;
    font-size:1.65rem;
    line-height:1;
    transform:translateY(-1px);
}
.wish-page-arrow:hover:not(:disabled){
    transform:translateY(-2px);
    background:rgba(255,255,255,.09);
    border-color:rgba(231,207,145,.60);
}
.wish-page-arrow:active:not(:disabled){
    transform:translateY(0);
}
.wish-page-arrow:disabled{
    opacity:.30;
    cursor:default;
}
.wish-page-number{
    min-width:54px;
    text-align:center;
    color:#d8cec0;
    font-size:.82rem;
    letter-spacing:.10em;
    font-weight:600;
}
@media (max-width:480px){
    .wishes-pagination{
        gap:17px;
        margin-top:18px;
    }
    .wish-page-arrow{
        width:40px;
        height:40px;
    }
    .wish-page-number{
        font-size:.78rem;
    }
}

/* =========================================================
   SOFT & SWEET VISUAL REFINEMENT
   Only visual styling: colors, content, features and existing
   animations are intentionally preserved.
   ========================================================= */

:root{
    --soft-radius: 22px;
    --soft-radius-sm: 16px;
    --soft-shadow: 0 18px 45px rgba(16,42,67,.12);
    --soft-shadow-dark: 0 18px 45px rgba(0,0,0,.16);
}

/* A gentler overall rhythm without changing the existing palette. */
.container,
.narrow{
    position:relative;
}

.section-heading{
    margin-bottom:52px;
}

/* Buttons: softer edges while retaining their original colors and hover animation. */
.open-button,
.primary-button{
    border-radius:999px;
    box-shadow:0 10px 28px rgba(0,0,0,.08);
}

.open-button:hover,
.primary-button:hover{
    box-shadow:0 14px 34px rgba(0,0,0,.13);
}

.music-toggle{
    box-shadow:0 10px 26px rgba(0,0,0,.15);
}

/* Light sections get subtle depth through cards and soft borders. */
.countdown-grid{
    border-radius:var(--soft-radius);
    overflow:hidden;
    box-shadow:var(--soft-shadow);
    background:rgba(255,250,240,.35);
}

.countdown-grid div{
    position:relative;
    background:rgba(255,255,255,.18);
    transition:background .35s var(--ease), transform .35s var(--ease);
}

.countdown-grid div:hover{
    background:rgba(255,255,255,.30);
    transform:translateY(-2px);
}

.save-date-button{
    box-shadow:0 8px 24px rgba(49,93,134,.08);
}

/* Theme / quote areas feel less rigid without introducing new colors. */
.gold-line{
    border-radius:999px;
    box-shadow:0 0 14px rgba(200,167,91,.12);
}

.big-quote{
    max-width:940px;
}

.body-copy{
    text-wrap:pretty;
}

/* Event detail cards: rounded, airy and gently elevated. */
.details-grid{
    gap:14px;
}

.info-card{
    min-height:250px;
    border-radius:var(--soft-radius-sm);
    box-shadow:var(--soft-shadow-dark);
    overflow:hidden;
    transition:transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.info-card::before{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background:linear-gradient(135deg,rgba(255,255,255,.035),transparent 45%);
}

.info-card:hover{
    transform:translateY(-4px);
    box-shadow:0 22px 48px rgba(0,0,0,.20);
}

.address-box{
    margin-top:14px;
    border-radius:var(--soft-radius-sm);
    box-shadow:var(--soft-shadow-dark);
}

/* Lists and timeline: soften the hard horizontal rhythm. */
.campus-list{
    border-top:0;
}

.campus-item{
    margin-bottom:10px;
    padding:22px 20px;
    border:1px solid rgba(49,93,134,.12);
    border-radius:var(--soft-radius-sm);
    background:rgba(255,255,255,.16);
    box-shadow:0 8px 24px rgba(16,42,67,.06);
    transition:transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
}

.campus-item:hover{
    transform:translateX(4px);
    box-shadow:0 14px 30px rgba(16,42,67,.10);
    background:rgba(255,255,255,.28);
}

.timeline{
    padding:8px 20px;
    border-radius:var(--soft-radius);
    background:rgba(255,255,255,.025);
    box-shadow:0 14px 35px rgba(0,0,0,.08);
}

.timeline-item{
    transition:padding-left .35s var(--ease), background .35s var(--ease);
    border-radius:12px;
    padding-left:10px;
    padding-right:10px;
}

.timeline-item:hover{
    padding-left:16px;
    background:rgba(255,255,255,.025);
}

/* Gallery: keep all existing image sizing/layout, only soften the frame. */
.gallery-grid{
    gap:16px;
}

.gallery-item{
    border-radius:var(--soft-radius-sm);
    box-shadow:0 14px 34px rgba(16,42,67,.12);
    background:transparent;
}

.gallery-item img{
    border-radius:inherit;
}

.gallery-item > span{
    left:18px;
    bottom:16px;
    padding:6px 10px;
    border-radius:999px;
    background:rgba(0,0,0,.20);
    backdrop-filter:blur(6px);
}

/* Video frame and map become softer without touching their functionality. */
.video-frame{
    border-radius:var(--soft-radius);
    box-shadow:var(--soft-shadow-dark);
}

.video-frame video,
.video-placeholder{
    border-radius:inherit;
}

.location-box{
    border-radius:var(--soft-radius);
    box-shadow:var(--soft-shadow);
    overflow:hidden;
}

.map-container{
    overflow:hidden;
    border-radius:var(--soft-radius-sm);
    box-shadow:0 12px 30px rgba(16,42,67,.10);
}

.map-container iframe{
    display:block;
}

/* RSVP / wishes areas: preserve the existing controls, just make them friendlier. */
.rsvp .body-copy,
.wishes .body-copy{
    max-width:600px;
}

.wishes-list{
    margin-top:38px;
}

.form-card{
    border-radius:26px;
    box-shadow:0 25px 70px rgba(0,0,0,.25);
}

.invite-form input,
.invite-form select,
.invite-form textarea{
    border-radius:14px;
    transition:border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}

.invite-form input:focus,
.invite-form select:focus,
.invite-form textarea:focus{
    outline:none;
    box-shadow:0 0 0 4px rgba(200,167,91,.10);
}

/* Lightbox keeps the existing behavior, only softens its image presentation. */
.lightbox img{
    border-radius:var(--soft-radius-sm);
    box-shadow:0 25px 70px rgba(0,0,0,.35);
}

/* Opening screen: same palette and animations, with a gentler visual frame. */
.opening::before{
    border-radius:28px;
}

.opening-content{
    padding-left:10px;
    padding-right:10px;
}

.open-button{
    box-shadow:0 12px 32px rgba(0,0,0,.16);
}

/* Small typographic softening; no font family/color changes. */
.eyebrow{
    opacity:.9;
}

.side-copy{
    text-wrap:pretty;
}

/* Mobile: preserve responsive layout while avoiding cramped hard edges. */
@media (max-width:800px){
    .details-grid{
        gap:12px;
    }

    .info-card{
        min-height:220px;
    }

    .timeline{
        padding:4px 12px;
    }

    .gallery-grid{
        gap:12px;
    }

    .location-box{
        box-shadow:0 14px 35px rgba(16,42,67,.10);
    }
}

@media (max-width:480px){
    .container,
    .narrow{
        width:calc(100% - 28px);
    }

    .countdown-grid{
        border-radius:18px;
    }

    .info-card{
        border-radius:18px;
    }

    .campus-item{
        border-radius:16px;
        padding:19px 16px;
    }

    .gallery-item{
        border-radius:16px;
    }

    .video-frame,
    .location-box{
        border-radius:20px;
    }

    .map-container{
        border-radius:15px;
    }

    .form-card{
        border-radius:22px;
    }
}

@media (prefers-reduced-motion:reduce){
    .countdown-grid div,
    .info-card,
    .campus-item,
    .timeline-item,
    .open-button,
    .primary-button{
        transition:none;
    }
}



/* Video sound control */
.video-sound-btn {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 5;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255,250,240,.7);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(16,42,67,.62);
    color: #fffaf0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 6px 22px rgba(0,0,0,.22);
    cursor: pointer;
    transition: transform .25s ease, background .25s ease, opacity .25s ease;
}
.video-sound-btn:hover {
    transform: scale(1.06);
    background: rgba(16,42,67,.82);
}
.video-sound-btn:active {
    transform: scale(.96);
}
.video-sound-btn span {
    font-size: 17px;
    line-height: 1;
}
.video-sound-btn.is-muted {
    opacity: .92;
}
@media (max-width: 600px) {
    .video-sound-btn {
        right: 10px;
        bottom: 10px;
        width: 38px;
        height: 38px;
    }
    .video-sound-btn span {
        font-size: 15px;
    }
}


/* Warna khusus tulisan GMI Sion Pekanbaru */
/*.location-box .section-title em {*/
/*    color: #9E7B38;*/
/*}*/
