/* =========================================================
   Moazzam & Esha — wedding invitation
   Navy · champagne gold · ivory
   ========================================================= */
:root {
  --navy-950: #071226;
  --navy-900: #0B1B36;
  --navy-800: #112748;
  --navy-700: #1A365F;
  --gold: #C9A45C;
  --gold-2: #E4C98F;
  --gold-3: #F3E6C6;
  --gold-deep: #8A6A2F;
  --ivory: #FBF7EF;
  --ivory-2: #F5EEDF;
  --ink: #1C2438;
  --muted: #545E73;
  --line: rgba(201, 164, 92, .45);

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --script: "Pinyon Script", "Segoe Script", cursive;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --arabic: "Amiri", "Traditional Arabic", "Noto Naskh Arabic", serif;

  --pattern-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23C9A45C' stroke-width='1'%3E%3Crect x='22' y='22' width='36' height='36'/%3E%3Crect x='22' y='22' width='36' height='36' transform='rotate(45 40 40)'/%3E%3Cpath d='M0 0L22 22M80 0L58 22M0 80L22 58M80 80L58 58M40 0V14.5M40 80V65.5M0 40H14.5M80 40H65.5'/%3E%3Ccircle cx='40' cy='40' r='6'/%3E%3C/g%3E%3C/svg%3E");
  --pattern-deep: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%238A6A2F' stroke-width='1'%3E%3Crect x='22' y='22' width='36' height='36'/%3E%3Crect x='22' y='22' width='36' height='36' transform='rotate(45 40 40)'/%3E%3Cpath d='M0 0L22 22M80 0L58 22M0 80L22 58M80 80L58 58M40 0V14.5M40 80V65.5M0 40H14.5M80 40H65.5'/%3E%3Ccircle cx='40' cy='40' r='6'/%3E%3C/g%3E%3C/svg%3E");
  --gold-grad: linear-gradient(135deg, #F1DDA8 0%, #D5B26B 38%, #B98E45 70%, #E9D29B 100%);
  --ease: cubic-bezier(.22, .7, .2, 1);
  --vh: 100vh;
}
@supports (height: 100svh) { :root { --vh: 100svh; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--navy-950);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
img, svg { display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--gold); color: var(--navy-950); padding: 8px 14px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }

.orn { fill: currentColor; color: var(--gold); }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }

/* ---------- type ---------- */
.kicker {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .9rem;
}
.section--ivory .kicker { color: var(--gold-deep); }
.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 .6rem;
  letter-spacing: .01em;
}
.center { text-align: center; }
.divider { width: 220px; height: 22px; margin: 1.1rem auto; }
.divider.sm { width: 150px; height: 16px; margin: .9rem auto; }

/* ---------- buttons ---------- */
.btn {
  --pad: .95rem 2rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: var(--pad);
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s, color .3s, border-color .3s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}
.btn-gold { background: var(--gold-grad); background-size: 200% 200%; color: var(--navy-950); box-shadow: 0 10px 30px -12px rgba(201,164,92,.7), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-gold::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(201,164,92,.85), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-gold:hover::after { transform: translateX(120%); }
.btn-outline { border-color: var(--line); color: var(--gold-2); background: rgba(255,255,255,.02); }
.btn-outline:hover { border-color: var(--gold); background: rgba(201,164,92,.12); color: var(--gold-3); }
.btn-outline.is-disabled { opacity: .6; cursor: default; letter-spacing: .14em; }
.btn-outline-dark { border-color: rgba(138,106,47,.5); color: var(--gold-deep); background: transparent; }
.btn-outline-dark:hover { background: rgba(138,106,47,.08); }
.btn-block { width: 100%; }
.btn-whatsapp { background: #1F8F53; color: #fff; box-shadow: 0 10px 26px -12px rgba(31,143,83,.8); letter-spacing: .14em; }
.btn-whatsapp:hover { background: #1A7C48; transform: translateY(-2px); }
.link-btn { background: none; border: 0; padding: .4rem .2rem; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; letter-spacing: .08em; color: var(--gold-2); text-decoration: none; opacity: .85; }
.link-btn:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.link-btn.danger { color: #A8322B; }
.inline { display: inline; margin: 0; }

/* ---------- section scaffolding ---------- */
.section { position: relative; padding: clamp(72px, 11vw, 130px) 20px; overflow: hidden; }
.section--navy {
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(26,54,95,.9), transparent 70%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
  color: var(--ivory);
}
.section--navy::before, .hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--pattern-gold); background-size: 84px 84px; opacity: .07;
}
.section--ivory { background: var(--ivory); color: var(--ink); }
.section--ivory::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--pattern-deep); background-size: 84px 84px; opacity: .045;
}
.section--events { background: linear-gradient(180deg, var(--ivory), var(--ivory-2)); padding-top: 20px; }
.container { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; }
.container.narrow { max-width: 720px; }
.section-head { text-align: center; margin-bottom: clamp(36px, 6vw, 60px); }

.reveal { transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
html.js .reveal:not(.in) { opacity: 0; transform: translateY(26px); }
@media (prefers-reduced-motion: reduce) { html.js .reveal:not(.in) { opacity: 1; transform: none; } }

/* ---------- corner florals ---------- */
.corner { position: absolute; width: clamp(110px, 18vw, 200px); height: clamp(110px, 18vw, 200px); opacity: .75; pointer-events: none; z-index: 1; }
.c-tl { top: 10px; left: 10px; }
.c-tr { top: 10px; right: 10px; transform: scaleX(-1); }
.c-bl { bottom: 10px; left: 10px; transform: scaleY(-1); }
.c-br { bottom: 10px; right: 10px; transform: scale(-1, -1); }

/* ---------- Arabic + Bismillah ---------- */
.bismillah-ar { font-family: var(--arabic); font-size: clamp(1.9rem, 6vw, 2.7rem); line-height: 1.6; color: var(--gold-2); margin: 0; }
.bismillah-ar.small { font-size: 1.45rem; }
.bismillah-en { font-family: var(--serif); font-style: italic; font-size: 1.1rem; letter-spacing: .06em; color: var(--gold-3); margin: .1rem 0 0; opacity: .9; }

/* =========================================================
   OPENING CARD
   ========================================================= */
.opening { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; perspective: 1600px; }
html:not(.js) .opening, html.opened .opening { display: none; }
.gate {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background:
    radial-gradient(ellipse at 100% 50%, rgba(26,54,95,.95), transparent 70%),
    var(--navy-900);
  transition: transform 1.5s cubic-bezier(.65,0,.25,1), opacity 1.5s;
}
.gate::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern-gold); background-size: 84px; opacity: .12; }
.gate::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: linear-gradient(transparent, var(--gold), transparent); opacity: .7; }
.gate-l { left: 0; transform-origin: left center; }
.gate-l::after { right: 0; }
.gate-r { right: 0; transform-origin: right center; background: radial-gradient(ellipse at 0% 50%, rgba(26,54,95,.95), transparent 70%), var(--navy-900); }
.gate-r::after { left: 0; }

.op-card {
  position: relative; z-index: 2;
  width: min(560px, 100%);
  max-height: calc(var(--vh) - 36px);
  padding: 10px;
  border-radius: 260px 260px 22px 22px;
  background: linear-gradient(180deg, rgba(17,39,72,.92), rgba(7,18,38,.95));
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.75), 0 0 0 1px rgba(201,164,92,.12) inset;
  transition: transform 1s var(--ease), opacity .8s;
}
.op-frame {
  position: relative;
  border: 1px solid rgba(201,164,92,.38);
  border-radius: 250px 250px 16px 16px;
  padding: clamp(44px, 9vw, 64px) clamp(20px, 6vw, 48px) clamp(30px, 6vw, 44px);
  text-align: center;
  color: var(--ivory);
  overflow: hidden;
}
.op-frame .corner { width: 84px; height: 84px; opacity: .55; }
.op-frame .c-tl, .op-frame .c-tr { display: none; }
.op-medallion { width: 66px; height: 66px; margin: 0 auto 10px; animation: spin 60s linear infinite; }
.op-small { font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin: .4rem 0 .3rem; }
.op-invite { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 3.6vw, 1.35rem); margin: 0 auto .4rem; max-width: 26ch; color: var(--gold-3); line-height: 1.4; }
.op-name {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.6rem, 11vw, 4.2rem);
  letter-spacing: .2em; line-height: 1.05; margin: .3rem 0 0; padding-left: .2em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.op-name-2 { font-size: clamp(1.7rem, 7vw, 2.4rem); letter-spacing: .3em; margin: 0 0 1.4rem; }
.op-amp { font-family: var(--script); font-size: 2.1rem; line-height: 1; margin: .2rem 0; color: var(--gold-2); }

/* entrance sequence */
html.js .opening .a1, html.js .opening .a2, html.js .opening .a3,
html.js .opening .a4, html.js .opening .a5, html.js .opening .a6 { opacity: 0; animation: rise 1.1s var(--ease) forwards; }
.opening .a1 { animation-delay: .25s !important; }
.opening .a2 { animation-delay: .6s !important; }
.opening .a3 { animation-delay: 1s !important; }
.opening .a4 { animation-delay: 1.35s !important; }
.opening .a5 { animation-delay: 1.7s !important; }
.opening .a6 { animation-delay: 2.15s !important; }
.op-medallion.a1 { animation: rise 1.1s var(--ease) .25s forwards, spin 60s linear 1.3s infinite !important; }
html.js .op-card { animation: cardIn 1.2s var(--ease) both; }

.opening.is-opening .op-card { opacity: 0; transform: scale(1.06) translateY(-8px); }
.opening.is-opening .gate-l { transform: translateX(-102%); }
.opening.is-opening .gate-r { transform: translateX(102%); }
.opening.is-gone { display: none; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes cardIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-height: 640px) {
  .op-medallion { width: 46px; height: 46px; }
  .op-frame { padding-top: 34px; }
  .bismillah-ar { font-size: 1.7rem; }
  .op-name { font-size: 2.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html.js .opening .a1, html.js .opening .a2, html.js .opening .a3,
  html.js .opening .a4, html.js .opening .a5, html.js .opening .a6, html.js .op-card { animation: none !important; opacity: 1 !important; }
  .gate, .op-card { transition-duration: .01s; }
}

/* =========================================================
   TOP BAR
   ========================================================= */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(10px, env(safe-area-inset-top)) 16px 10px;
  color: var(--ivory);
  transition: background-color .4s, box-shadow .4s, backdrop-filter .4s;
}
.topbar.scrolled { background: rgba(7,18,38,.9); box-shadow: 0 8px 30px -18px rgba(0,0,0,.8); border-bottom: 1px solid rgba(201,164,92,.18); }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .topbar.scrolled { background: rgba(7,18,38,.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
.brand { text-decoration: none; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  font-family: var(--serif); font-size: 1.05rem; letter-spacing: .04em; color: var(--gold-2);
  border: 1px solid var(--line); border-radius: 50%; background: rgba(7,18,38,.45);
}
.brand-mark i { font-style: normal; font-family: var(--script); font-size: .95rem; margin: 0 1px; }
.nav { display: none; gap: 28px; }
.nav a { text-decoration: none; font-size: .76rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-3); opacity: .85; padding: 6px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .35s var(--ease); }
.nav a:hover, .nav a.active { opacity: 1; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.tools { display: flex; gap: 8px; }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line);
  background: rgba(7,18,38,.45); color: var(--gold-2); cursor: pointer;
  transition: background-color .3s, border-color .3s, transform .3s;
}
.icon-btn:hover { border-color: var(--gold); background: rgba(201,164,92,.14); }
.icon-btn .ic { width: 20px; height: 20px; }
#musicToggle .ic-on { display: none; }
#musicToggle[aria-pressed="true"] .ic-on { display: block; }
#musicToggle[aria-pressed="true"] .ic-off { display: none; }
#musicToggle[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,164,92,.14); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(201,164,92,.06); } }
@media (min-width: 860px) { .nav { display: flex; } .topbar { padding-left: 28px; padding-right: 28px; } }

/* =========================================================
   HERO / WELCOME
   ========================================================= */
.hero {
  position: relative; min-height: var(--vh);
  display: grid; place-items: center;
  padding: 96px 18px 70px; overflow: hidden;
  color: var(--ivory);
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(201,164,92,.16), transparent 70%),
    radial-gradient(ellipse 120% 80% at 50% 0%, var(--navy-700), transparent 70%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
}
.hero::before { opacity: .08; }
.hero .corner { width: clamp(120px, 24vw, 250px); height: clamp(120px, 24vw, 250px); top: auto; }
.hero .c-tl, .hero .c-tr { top: 70px; }
@media (max-width: 640px) {
  .hero .corner { width: 92px; height: 92px; opacity: .6; }
  .hero .c-tl, .hero .c-tr { top: 66px; }
  .hero-arch { padding-top: 78px; }
  .hero .kicker { letter-spacing: .22em; font-size: .7rem; }
  .op-frame .corner { width: 60px; height: 60px; opacity: .4; }
}
.hero-arch {
  position: relative; z-index: 2; text-align: center;
  width: min(720px, 100%);
  padding: clamp(56px, 10vw, 96px) clamp(18px, 6vw, 64px) clamp(44px, 7vw, 64px);
  border: 1px solid var(--line);
  border-radius: 400px 400px 24px 24px;
  background: linear-gradient(180deg, rgba(17,39,72,.55), rgba(7,18,38,.35));
}
.hero-arch::before {
  content: ""; position: absolute; inset: 10px; border: 1px solid rgba(201,164,92,.22);
  border-radius: 390px 390px 18px 18px; pointer-events: none;
}
.couple { margin: 0; font-weight: 400; display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.person { display: flex; flex-direction: column; align-items: center; }
.script {
  font-family: var(--script); font-weight: 400;
  font-size: clamp(2.9rem, 10vw, 4.8rem); line-height: 1.15;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: 0 .15em;
}
.parent { font-family: var(--serif); font-style: italic; font-size: clamp(1.05rem, 2.8vw, 1.25rem); color: var(--gold-3); letter-spacing: .04em; margin-top: -.2rem; }
.amp { font-family: var(--serif); font-style: italic; font-size: clamp(1.8rem, 5vw, 2.6rem); color: var(--gold); line-height: 1; margin: .5rem 0; }
.hero-lead { font-family: var(--serif); font-size: clamp(1.2rem, 3.2vw, 1.45rem); line-height: 1.5; max-width: 34ch; margin: 0 auto 1.2rem; color: #EDE6D6; }
.hero-date { display: inline-block; font-size: .8rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .65rem 1.2rem; margin: 0; }
.scroll-cue { display: block; width: 26px; height: 42px; margin: 34px auto 0; border: 1px solid var(--line); border-radius: 14px; position: relative; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* =========================================================
   MESSAGE
   ========================================================= */
.medallion-sm { width: 70px; height: 70px; margin: 0 auto 18px; color: var(--gold); }
.section--ivory .medallion-sm { color: var(--gold-deep); }
.invite-message { font-family: var(--serif); font-size: clamp(1.4rem, 3.6vw, 1.85rem); line-height: 1.5; color: var(--ink); margin: 1rem auto 2.2rem; max-width: 32ch; }
.ayah { margin: 0 auto; max-width: 560px; padding: 22px 26px; border-top: 1px solid rgba(138,106,47,.35); border-bottom: 1px solid rgba(138,106,47,.35); }
.ayah blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--muted); line-height: 1.6; }
.ayah figcaption { margin-top: .6rem; font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-deep); }

/* =========================================================
   EVENTS
   ========================================================= */
.events-grid { display: grid; gap: 30px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .events-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .events-grid { grid-template-columns: repeat(3, 1fr); } }
.event-card {
  position: relative; text-align: center; color: var(--ivory);
  padding: 74px 26px 32px;
  border-radius: 200px 200px 20px 20px;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(201,164,92,.18), transparent 70%),
    linear-gradient(180deg, var(--navy-800), var(--navy-950));
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -34px rgba(7,18,38,.7);
  display: flex; flex-direction: column; align-items: center;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity 1s var(--ease);
}
.event-card::before {
  content: ""; position: absolute; inset: 9px; border: 1px solid rgba(201,164,92,.25);
  border-radius: 192px 192px 14px 14px; pointer-events: none;
}
.event-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background-image: var(--pattern-gold); background-size: 70px; opacity: .05; pointer-events: none; }
.event-card:hover { transform: translateY(-6px); box-shadow: 0 40px 70px -34px rgba(7,18,38,.85); }
.event-emblem { width: 70px; height: 70px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); margin-bottom: 14px; background: rgba(7,18,38,.5); }
.event-emblem .orn { width: 40px; height: 40px; color: var(--gold-2); }
.event-name { font-family: var(--script); font-weight: 400; font-size: 3rem; line-height: 1.1; margin: 0; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .2em; }
.event-tagline { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--gold-3); margin: .2rem 0 1.2rem; min-height: 2.8em; line-height: 1.35; }
.event-meta { width: 100%; margin: 0 0 1.6rem; text-align: left; border-top: 1px solid rgba(201,164,92,.22); position: relative; z-index: 1; }
.event-meta > div { display: grid; grid-template-columns: 104px 1fr; gap: 10px; padding: .62rem 0; border-bottom: 1px solid rgba(201,164,92,.14); }
.event-meta dt { display: flex; align-items: center; gap: .55rem; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.event-meta dt .ic { width: 17px; height: 17px; }
.event-meta dd { margin: 0; font-size: .98rem; color: #EEE8DB; line-height: 1.45; }
.event-card .btn { margin-top: auto; position: relative; z-index: 1; }

/* =========================================================
   COUNTDOWN
   ========================================================= */
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 2.5vw, 22px); max-width: 720px; margin: 1.4rem auto 1.2rem; }
.cd-unit {
  position: relative; padding: clamp(18px, 4vw, 30px) 6px clamp(14px, 3vw, 22px);
  border-radius: 999px 999px 14px 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) { .cd-unit { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); } }
.cd-num { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 8vw, 3.6rem); line-height: 1; color: var(--gold-2); font-variant-numeric: lining-nums tabular-nums; }
.cd-label { display: block; margin-top: .55rem; font-size: clamp(.6rem, 1.8vw, .74rem); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-3); opacity: .85; }
.countdown[data-pending] .cd-num { opacity: .45; }
.cd-note { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--gold-3); margin: 0; }

/* =========================================================
   LOCATION
   ========================================================= */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: -14px 0 26px; }
.tab { padding: .55rem 1.3rem; border-radius: 999px; border: 1px solid rgba(138,106,47,.4); background: transparent; color: var(--gold-deep); cursor: pointer; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; }
.tab[aria-selected="true"] { background: var(--navy-900); border-color: var(--navy-900); color: var(--gold-2); }
.map-wrap { display: grid; gap: 22px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 900px) { .map-wrap { grid-template-columns: 1.5fr 1fr; } }
.map-frame { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid rgba(138,106,47,.4); padding: 8px; background: #fff; box-shadow: 0 30px 60px -40px rgba(7,18,38,.6); min-height: 320px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; border-radius: 14px; display: block; background: var(--ivory-2); }
.venue-card { border-radius: 20px; padding: 34px 28px; background: linear-gradient(180deg, var(--navy-800), var(--navy-950)); color: var(--ivory); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; text-align: center; }
.venue-name { font-family: var(--serif); font-weight: 500; font-size: 1.9rem; margin: 0 0 .4rem; line-height: 1.2; }
.venue-address { color: #E6DFCF; margin: 0 0 .5rem; }
.venue-when { font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); margin: 0 0 1.4rem; }
.map-placeholder { text-align: center; max-width: 560px; margin: 0 auto; padding: 46px 26px; border: 1px dashed rgba(138,106,47,.5); border-radius: 220px 220px 20px 20px; background: rgba(255,255,255,.5); }
.map-placeholder h3 { font-family: var(--serif); font-weight: 500; font-size: 1.8rem; margin: 0 0 .4rem; }
.map-placeholder p { color: var(--muted); margin: 0; }

/* =========================================================
   FAMILY
   ========================================================= */
.family-grid { display: grid; gap: 24px; grid-template-columns: 1fr; max-width: 880px; margin: 0 auto; }
@media (min-width: 720px) { .family-grid { grid-template-columns: 1fr 1fr; } }
.family-card { text-align: center; padding: 40px 26px; border-radius: 20px; border: 1px solid var(--line); background: rgba(255,255,255,.03); position: relative; }
.family-card::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(201,164,92,.16); border-radius: 14px; pointer-events: none; }
.family-parent { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 4.5vw, 2.3rem); margin: 0; color: var(--ivory); line-height: 1.2; }
.family-role { font-family: var(--serif); font-style: italic; color: var(--gold-3); margin: .2rem 0 0; font-size: 1.1rem; }
.family-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; color: #E6DFCF; }
.compliments { text-align: center; margin-top: 40px; }
.compliments p:last-child { font-family: var(--serif); font-size: 1.3rem; margin: 0; }
.awaiting { text-align: center; font-family: var(--script); font-size: clamp(2rem, 6vw, 2.8rem); color: var(--gold-2); margin: 46px 0 0; }

/* =========================================================
   RSVP
   ========================================================= */
.rsvp-deadline { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--muted); margin: 0; }
.rsvp-card {
  position: relative; border-radius: 26px; padding: clamp(26px, 6vw, 46px);
  background: #fff; border: 1px solid rgba(138,106,47,.3);
  box-shadow: 0 40px 80px -50px rgba(7,18,38,.55);
}
.rsvp-card::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(138,106,47,.18); border-radius: 20px; pointer-events: none; }
.rsvp-form { position: relative; z-index: 1; display: grid; gap: 22px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); font-weight: 500; padding: 0; }
.field legend { margin-bottom: 8px; }
.field small { text-transform: none; letter-spacing: .02em; color: var(--muted); font-weight: 400; font-size: .85rem; }
.rsvp-form input[type="text"], .rsvp-form input[type="number"], .rsvp-form textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 12px;
  border: 1px solid rgba(28,36,56,.2); background: var(--ivory);
  color: var(--ink); font-size: 1rem; transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.rsvp-form textarea { resize: vertical; min-height: 96px; }
.rsvp-form input:focus, .rsvp-form textarea:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(201,164,92,.2); }
.rsvp-form ::placeholder { color: #8A90A0; }
.field.has-error input, .field.has-error textarea { border-color: #B3402E; }
.field-error { margin: 0; color: #A8322B; font-size: .9rem; }
.choice-row { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .choice-row { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; cursor: pointer; text-transform: none !important; letter-spacing: 0 !important; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; justify-content: center; min-height: 52px;
  padding: .7rem 1rem; border-radius: 12px; border: 1px solid rgba(28,36,56,.2);
  font-family: var(--serif); font-size: 1.2rem; color: var(--ink); background: var(--ivory);
  transition: all .25s;
}
.choice input:checked + span { background: var(--navy-900); border-color: var(--navy-900); color: var(--gold-2); box-shadow: 0 10px 24px -14px rgba(7,18,38,.8); }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.stepper { display: flex; align-items: stretch; max-width: 220px; }
.stepper input { text-align: center; border-radius: 0 !important; -moz-appearance: textfield; appearance: textfield; font-size: 1.15rem !important; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step { width: 52px; flex: none; border: 1px solid rgba(28,36,56,.2); background: var(--ivory-2); color: var(--navy-900); font-size: 1.4rem; cursor: pointer; }
.step:first-child { border-radius: 12px 0 0 12px; border-right: 0; }
.step:last-child { border-radius: 0 12px 12px 0; border-left: 0; }
.step:hover { background: var(--gold-3); }
#guestsField.is-off { opacity: .45; pointer-events: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { margin: 0 0 4px; padding: .8rem 1rem; border-radius: 12px; background: #FBEDEA; color: #8E2A22; border: 1px solid #EBC3BC; font-size: .95rem; }
.rsvp-done { position: relative; z-index: 1; text-align: center; padding: 20px 0; }
.rsvp-done:focus { outline: none; }
.rsvp-done h3 { font-family: var(--serif); font-weight: 500; font-size: 2.1rem; margin: .4rem 0; }
.rsvp-done p { color: var(--muted); margin: 0 0 1.4rem; font-size: 1.1rem; }
.done-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--navy-900); color: var(--gold-2); }
.done-icon .ic { width: 30px; height: 30px; }
#rsvpSubmit[disabled] { opacity: .7; cursor: wait; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { position: relative; text-align: center; padding: 70px 20px calc(40px + env(safe-area-inset-bottom)); overflow: hidden; }
.footer > * { position: relative; z-index: 1; }
.footer-names { font-family: var(--script); font-size: clamp(2.6rem, 8vw, 3.6rem); margin: 0; line-height: 1.2; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-names span { font-family: var(--serif); font-style: italic; font-size: .6em; }
.footer-love { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--gold-3); margin: .2rem 0 1.6rem; }
.footer-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-domain { margin: 28px 0 0; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); opacity: .7; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 120; background: var(--navy-900); color: var(--gold-3); border: 1px solid var(--line); padding: .75rem 1.2rem; border-radius: 999px; font-size: .92rem; box-shadow: 0 18px 40px -18px rgba(0,0,0,.7); max-width: calc(100% - 32px); text-align: center; }

/* ---------- floating petals ---------- */
.petals { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.petal {
  position: absolute; top: -40px; left: var(--x);
  width: var(--s); height: calc(var(--s) * 1.25);
  background: radial-gradient(circle at 30% 30%, #F8EBCB, #D9B877 60%, #B8914A);
  border-radius: 150% 0 150% 0;
  opacity: 0;
  animation: fall var(--dur) linear var(--delay) infinite;
  will-change: transform, opacity;
}
.petal.rose { background: radial-gradient(circle at 30% 30%, #FFF4EE, #EAC6BA 60%, #C99A8C); }
@keyframes fall {
  0%   { opacity: 0; transform: translate3d(0, 0, 0) rotate(0deg); }
  10%  { opacity: var(--o); }
  90%  { opacity: var(--o); }
  100% { opacity: 0; transform: translate3d(var(--drift), calc(var(--vh) + 80px), 0) rotate(var(--rot)); }
}
html.paused .petal, html.paused .op-medallion { animation-play-state: paused; }

/* =========================================================
   LOGIN
   ========================================================= */
.page-login { background: var(--navy-950); }
.login {
  position: relative; min-height: var(--vh); display: grid; place-items: center;
  padding: 28px 16px; overflow: hidden; color: var(--ivory);
  background:
    radial-gradient(ellipse 70% 50% at 50% 35%, rgba(201,164,92,.16), transparent 70%),
    radial-gradient(ellipse 120% 80% at 50% 0%, var(--navy-700), transparent 70%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
}
.login-bg { position: absolute; inset: 0; background-image: var(--pattern-gold); background-size: 84px; opacity: .08; }
.login .corner { width: clamp(120px, 26vw, 260px); height: clamp(120px, 26vw, 260px); opacity: .6; }
.login-card {
  position: relative; z-index: 2; width: min(460px, 100%); padding: 9px;
  border-radius: 240px 240px 22px 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17,39,72,.9), rgba(7,18,38,.92));
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.85);
  animation: cardIn 1s var(--ease) both;
}
.login-frame { border: 1px solid rgba(201,164,92,.3); border-radius: 232px 232px 16px 16px; padding: 48px clamp(20px, 6vw, 40px) 28px; text-align: center; }
.monogram { position: relative; width: 92px; height: 92px; margin: 14px auto 16px; display: grid; place-items: center; }
.monogram-star { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; animation: spin 80s linear infinite; }
.monogram span { position: relative; font-family: var(--serif); font-size: 1.7rem; color: var(--gold-2); background: var(--navy-900); border-radius: 50%; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; }
.monogram i { font-style: normal; font-family: var(--script); font-size: 1.1rem; }
.login-title { font-family: var(--script); font-weight: 400; font-size: clamp(2.8rem, 11vw, 3.6rem); line-height: 1.15; margin: 0; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .15em; }
.login-title span { font-family: var(--serif); font-style: italic; font-size: .55em; }
.login-lead { font-family: var(--serif); font-size: 1.15rem; color: #E9E2D2; margin: 0 0 20px; line-height: 1.45; }
.login-form { display: grid; gap: 16px; text-align: left; }
.login-form label { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.login-form input {
  width: 100%; padding: .85rem 1rem; border-radius: 12px;
  border: 1px solid rgba(201,164,92,.35); background: rgba(255,255,255,.06);
  color: var(--ivory); font-size: 1rem; transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.login-form input:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,.09); box-shadow: 0 0 0 4px rgba(201,164,92,.18); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 52px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; color: var(--gold-2); cursor: pointer; opacity: .75; }
.pw-toggle[aria-pressed="true"] { opacity: 1; }
.login-form .btn { margin-top: 8px; }
.login .form-alert { background: rgba(179,64,46,.16); color: #FFD9D1; border-color: rgba(255,170,150,.35); text-align: left; }
.login-foot { margin: 22px 0 0; font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); opacity: .7; }

/* =========================================================
   ADMIN
   ========================================================= */
.page-admin { background: var(--ivory); color: var(--ink); }
.admin { max-width: 1100px; margin: 0 auto; padding: 40px 18px 60px; }
.admin-head { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: flex-end; margin-bottom: 26px; }
.admin-head h1 { font-family: var(--serif); font-weight: 500; font-size: 2.2rem; margin: 0; }
.admin .kicker { color: var(--gold-deep); }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.admin .btn-outline { color: var(--navy-900); border-color: rgba(28,36,56,.25); --pad: .65rem 1.1rem; font-size: .72rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat { background: var(--navy-900); color: var(--gold-3); border-radius: 16px; padding: 18px 20px; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; }
.stat span { display: block; font-family: var(--serif); font-size: 2.4rem; color: var(--gold-2); letter-spacing: 0; line-height: 1.1; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: 16px; border: 1px solid rgba(138,106,47,.25); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid rgba(28,36,56,.08); vertical-align: top; }
th { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); background: var(--ivory-2); }
td.msg { max-width: 380px; color: var(--muted); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; }
.pill.yes { background: #E3F1E7; color: #1E6B3C; }
.pill.no { background: #F6E5E2; color: #8E2A22; }
.empty { text-align: center; color: var(--muted); padding: 40px; background: #fff; border-radius: 16px; }

/* =========================================================
   CELEBRATION LAYER — shimmer, lanterns, stars, fireworks
   ========================================================= */
.blossom-canvas { position: fixed; inset: 0; z-index: 110; pointer-events: none; }

/* moving gold shimmer on all gold lettering */
.script, .op-name, .event-name, .footer-names, .login-title {
  background-image: linear-gradient(100deg, #B98E45 0%, #E3C27A 18%, #FFF4D2 27%, #E3C27A 36%, #C79B52 55%, #EED39A 75%, #B98E45 100%);
  background-size: 200% 100%;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer { from { background-position: 0 0; } to { background-position: 200% 0; } }

/* names write themselves in */
html.js .person .script { clip-path: inset(-25% 100% -25% -8%); transition: clip-path 2.2s cubic-bezier(.6,0,.25,1) .35s; }
html.js .person.in .script { clip-path: inset(-25% -12% -25% -12%); }
html.js .amp + .person .script { transition-delay: 1.5s; }
html.js .person .parent { transition: opacity 1.2s ease 1.7s, transform 1.2s var(--ease) 1.7s; }
html.js .amp + .person .parent { transition-delay: 2.9s; }
html.js .person:not(.in) .parent { opacity: 0; transform: translateY(8px); }
html.js .amp.reveal { transition-delay: 1.1s; }
html.js .amp.reveal:not(.in) { transform: scale(.3) rotate(-30deg); }

/* dividers draw outward from the star */
html.js .divider.reveal:not(.in) { transform: scaleX(.12); }

/* slowly turning mandala behind the hero */
.hero-mandala {
  position: absolute; left: 50%; top: 52%; width: min(980px, 170vw); height: min(980px, 170vw);
  color: var(--gold); opacity: .075; pointer-events: none; z-index: 0;
  animation: spinC 160s linear infinite;
}
@keyframes spinC { from { transform: translate(-50%, -50%) rotate(0); } to { transform: translate(-50%, -50%) rotate(360deg); } }
.hero-arch { animation: archGlow 6s ease-in-out infinite alternate; }
@keyframes archGlow { from { box-shadow: 0 0 60px -24px rgba(201,164,92,.25); } to { box-shadow: 0 0 110px -18px rgba(201,164,92,.42); } }

/* hanging lanterns */
.lanterns { position: absolute; top: 0; left: 0; right: 0; height: 0; z-index: 3; pointer-events: none; }
.lantern { position: absolute; transform-origin: 50% 0; animation: sway 5s ease-in-out infinite; filter: drop-shadow(0 8px 16px rgba(255,196,100,.3)); }
.lantern.l1 { left: 10%;  top: -18px; width: 56px; height: 140px; }
.lantern.l2 { left: 19%; top: -46px; width: 42px; height: 105px; animation-duration: 6.2s; animation-delay: -2s; }
.lantern.l3 { right: 19%; top: -46px; width: 42px; height: 105px; animation-duration: 5.6s; animation-delay: -1s; }
.lantern.l4 { right: 10%; top: -18px; width: 56px; height: 140px; animation-duration: 6.6s; animation-delay: -3s; }
@keyframes sway { 0%, 100% { transform: rotate(-3.2deg); } 50% { transform: rotate(3.2deg); } }
@media (max-width: 760px) {
  .lantern.l2, .lantern.l3 { display: none; }
  .lantern.l1 { left: 27%; top: -12px; width: 38px; height: 95px; }
  .lantern.l4 { right: 31%; top: -12px; width: 38px; height: 95px; }
}

/* twinkling stars */
.twinkles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.twinkles span {
  position: absolute; width: var(--s); height: var(--s); opacity: 0;
  background: radial-gradient(circle, #FFF9E6 0 20%, rgba(233,199,123,.95) 34%, transparent 72%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  animation: twinkle var(--t) ease-in-out infinite;
}
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 50% { opacity: .95; transform: scale(1) rotate(45deg); } }

/* opening button rings + sound note */
.open-wrap { position: relative; display: inline-block; }
.open-ring { position: absolute; inset: 0; border-radius: 999px; border: 1px solid var(--gold-2); opacity: 0; animation: ring 2.8s ease-out 2.8s infinite; pointer-events: none; }
.open-ring.r2 { animation-delay: 4.2s; }
@keyframes ring { 0% { transform: scale(1); opacity: .85; } 100% { transform: scale(1.25, 1.7); opacity: 0; } }
.op-sound { display: flex; align-items: center; justify-content: center; gap: .45rem; margin: 1.1rem 0 0; font-size: .76rem; letter-spacing: .12em; color: var(--gold-3); opacity: .75; }
.op-sound .ic { width: 15px; height: 15px; }
.bismillah-ar.reciting { animation: recite 1.4s ease-in-out infinite alternate !important; opacity: 1 !important; }
@keyframes recite { from { text-shadow: 0 0 0 rgba(244,214,140,0); } to { text-shadow: 0 0 16px rgba(244,214,140,.8), 0 0 42px rgba(244,214,140,.4); } }
.op-card.glow { box-shadow: 0 0 0 1px rgba(201,164,92,.3) inset, 0 0 90px -10px rgba(233,199,123,.55), 0 40px 80px -30px rgba(0,0,0,.75); }

/* hero tap hint */
.tap-hint { display: flex; justify-content: center; align-items: center; gap: .55rem; margin: 22px 0 0; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-3); }
.tap-hint .ic { width: 16px; height: 16px; color: var(--gold); animation: spin 9s linear infinite; }
.hero { cursor: default; -webkit-tap-highlight-color: transparent; }

/* scroll progress under the top bar */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold-grad); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); opacity: .9; pointer-events: none; }

/* event cards: emblem pop + 3D tilt */
.event-card { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px)); }
.event-card:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); }
.event-card.tilting { transition: transform .12s linear, box-shadow .5s var(--ease); }
.event-emblem { transition: transform 1.1s cubic-bezier(.3,1.6,.5,1) calc(var(--d, 0ms) + 350ms), opacity .8s ease calc(var(--d, 0ms) + 350ms); }
html.js .event-card:not(.in) .event-emblem { transform: scale(.3) rotate(-140deg); opacity: 0; }
.event-card:hover .event-emblem { box-shadow: 0 0 0 6px rgba(201,164,92,.1), 0 0 30px -4px rgba(233,199,123,.5); }
.event-actions { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; position: relative; z-index: 1; }
.event-actions .btn { margin-top: 0; }
.cal-link { color: var(--gold-2); font-size: .8rem; }

/* countdown digits tick */
.cd-unit { overflow: hidden; }
.cd-num.tick { animation: tick .55s var(--ease); }
@keyframes tick { from { transform: translateY(-40%); opacity: .15; filter: blur(2px); } to { transform: none; opacity: 1; filter: none; } }
.cd-unit::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, transparent 35%, rgba(255,240,200,.12) 50%, transparent 65%); background-size: 250% 100%; animation: glint 6s ease-in-out infinite; pointer-events: none; }
.cd-unit:nth-child(2)::after { animation-delay: .5s; } .cd-unit:nth-child(3)::after { animation-delay: 1s; } .cd-unit:nth-child(4)::after { animation-delay: 1.5s; }
@keyframes glint { 0%, 60% { background-position: 120% 0; } 100% { background-position: -120% 0; } }

/* message medallion + footer */
#message .medallion-sm { animation: spin 50s linear infinite; }
.footer .medallion-sm { animation: spin 50s linear infinite; }

/* login lanterns */
.login .lantern.l1 { left: 7%; top: -14px; width: 46px; height: 115px; }
.login .lantern.l4 { right: 7%; top: -14px; width: 46px; height: 115px; }
@media (max-width: 760px) {
  .login .lantern.l1 { left: 3%; width: 34px; height: 85px; }
  .login .lantern.l4 { right: 3%; width: 34px; height: 85px; }
}

@media (prefers-reduced-motion: reduce) {
  .script, .op-name, .event-name, .footer-names, .login-title, .lantern, .hero-mandala, .hero-arch,
  .open-ring, .tap-hint .ic, .cd-unit::after, #message .medallion-sm, .footer .medallion-sm, .monogram-star { animation: none !important; }
  html.js .person .script, html.js .person .parent { clip-path: none; transition: none; opacity: 1; transform: none; }
  .hero-mandala { transform: translate(-50%, -50%); }
}
