
@font-face{font-family:'Cinzel';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/cinzel-latin-400-normal.woff2) format('woff2');}
@font-face{font-family:'Cinzel';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/cinzel-latin-500-normal.woff2) format('woff2');}
@font-face{font-family:'Cinzel';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/cinzel-latin-600-normal.woff2) format('woff2');}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:300;font-display:swap;src:url(fonts/cormorant-garamond-latin-300-normal.woff2) format('woff2');}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/cormorant-garamond-latin-400-normal.woff2) format('woff2');}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/cormorant-garamond-latin-500-normal.woff2) format('woff2');}
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:300;font-display:swap;src:url(fonts/cormorant-garamond-latin-300-italic.woff2) format('woff2');}
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:400;font-display:swap;src:url(fonts/cormorant-garamond-latin-400-italic.woff2) format('woff2');}
@font-face{font-family:'Manrope';font-style:normal;font-weight:300;font-display:swap;src:url(fonts/manrope-latin-300-normal.woff2) format('woff2');}
@font-face{font-family:'Manrope';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/manrope-latin-400-normal.woff2) format('woff2');}
@font-face{font-family:'Manrope';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/manrope-latin-600-normal.woff2) format('woff2');}
@font-face{font-family:'Pinyon Script';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/pinyon-script-latin-400-normal.woff2) format('woff2');}
/* ==========================================================
   Design tokens — "Luminous Vessel"
   Midnight indigo, ivory, metallic gold. Light is the material.
   ========================================================== */
@property --edge {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

:root {
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-script: 'Hello Paris', 'Pinyon Script', 'Snell Roundhand', cursive;
  --font-caps: 'Cinzel', 'Cormorant Garamond', serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  --ink-900: #040915;
  --ink-800: #071026;
  --ink-700: #0c1c3d;
  --ink-600: #15305f;
  --ivory: #fbf3e0;
  --ivory-soft: #d9dfe9;
  --mist: #9fb0cb;
  --gold-100: #fff3cf;
  --gold-300: #f0d48e;
  --gold-500: #d4a752;
  --gold-700: #8e6526;
  --gold-900: #4a2d0e;

  --gold-metal: linear-gradient(180deg, #fff6d6 0%, #f3d692 22%, #d6a94f 48%, #a87728 66%, #e9c77a 84%, #fff1c6 100%);
  --glass: linear-gradient(160deg, rgba(36, 64, 118, .30) 0%, rgba(12, 26, 58, .50) 50%, rgba(7, 16, 38, .68) 100%);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.45, 0, .2, 1);

  --space-xs: .5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--ink-900); overflow-x: clip; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--ivory);
  font-family: var(--font-body);
  font-weight: 300;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, #1d3f78 0%, rgba(13, 30, 66, .6) 45%, transparent 75%),
    radial-gradient(ellipse 60% 50% at 50% 100%, #0d2048 0%, transparent 70%),
    linear-gradient(180deg, var(--ink-700) 0%, var(--ink-800) 40%, var(--ink-900) 100%);
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================
   Atmosphere — layered light (all decorative, aria-hidden)
   ========================================================== */
.atmos { position: fixed; inset: 0; pointer-events: none; z-index: 0; }

.bokeh {
  position: absolute;
  inset: -10%;
  background-repeat: repeat;
  mix-blend-mode: screen;
}
.bokeh--far {
  background-image: url(bokeh-far.webp);
  background-size: 600px 600px;
  opacity: .55;
  animation: drift-far 90s linear infinite, twinkle 7s var(--ease-soft) infinite alternate;
}
.bokeh--near {
  background-image: url(bokeh-near.webp);
  background-size: 900px 900px;
  opacity: .5;
  filter: blur(2px);
  animation: drift-near 60s linear infinite, twinkle 9s var(--ease-soft) -3s infinite alternate;
}

.shard {
  position: absolute;
  width: clamp(160px, 22vw, 300px);
  aspect-ratio: 1;
  background: url(shards.webp) center / contain no-repeat;
  filter: blur(3px) drop-shadow(0 0 24px rgba(240, 200, 120, .35));
  opacity: .55;
  animation: float 14s var(--ease-soft) infinite alternate;
}
.shard--a { left: -40px; top: 32vh; }
.shard--b { right: -60px; top: 68vh; transform: scaleX(-1) rotate(20deg); filter: blur(6px); opacity: .35; animation-duration: 18s; }

.grain {
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 50;
  background: url(grain.jpg) repeat;
  background-size: 256px;
  opacity: .07;
  mix-blend-mode: overlay;
  animation: grain 1.2s steps(6) infinite;
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  background: radial-gradient(ellipse 120% 90% at 50% 40%, transparent 55%, rgba(2, 5, 14, .7) 100%);
}

/* ==========================================================
   Layout
   ========================================================== */
main {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(56px, 9vh, 96px) 20px 96px;
}

/* God rays — rotate slowly behind the hero, breathing. */
.rays {
  position: absolute;
  left: 50%;
  top: clamp(190px, 30vw, 300px);
  width: min(1500px, 170vw);
  aspect-ratio: 1;
  translate: -50% -50%;
  pointer-events: none;
  z-index: 0;
}
.rays__layer {
  position: absolute;
  inset: 0;
  background: url(godrays.webp) center / contain no-repeat;
  mix-blend-mode: screen;
}
.rays__layer--a { animation: spin 160s linear infinite, breathe 8s var(--ease-soft) infinite alternate; }
.rays__layer--b { animation: spin 240s linear infinite reverse, breathe 11s var(--ease-soft) -4s infinite alternate; opacity: .6; scale: .82; }

/* ==========================================================
   Glass card with travelling light along the edge
   ========================================================== */
.card {
  position: relative;
  z-index: 1;
  border-radius: 34px;
  padding: clamp(40px, 7vw, 76px) clamp(22px, 6.5vw, 72px) clamp(44px, 7vw, 72px);
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 210, .28),
    inset 0 -1px 0 rgba(255, 255, 255, .04),
    inset 0 0 80px rgba(120, 160, 230, .06),
    0 40px 120px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(240, 214, 150, .14);
  animation: rise 1.4s var(--ease) both;
}
/* Edge ring: a conic highlight that circles the card. */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.2px;
  background: conic-gradient(from var(--edge),
    transparent 0deg, transparent 230deg,
    rgba(240, 212, 142, .15) 270deg,
    rgba(255, 244, 210, .95) 310deg,
    rgba(240, 212, 142, .15) 340deg,
    transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: edge 10s linear infinite;
  pointer-events: none;
}
/* Soft sheen across the top of the glass. */
.card::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 46%;
  border-radius: 34px 34px 60% 60% / 34px 34px 20% 20%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), transparent);
  pointer-events: none;
}

/* ==========================================================
   Hero
   ========================================================== */
.hero { position: relative; text-align: center; }

.eyebrow {
  font-family: var(--font-caps);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold-300);
  text-align: center;
  margin: 0;
  padding-left: .42em; /* optically recentre tracked caps */
}

.title { margin: var(--space-md) 0 var(--space-sm); line-height: 1; }
.title__lead {
  display: block;
  margin-top: -.1rem;
  font-family: var(--font-caps);
  font-weight: 400;
  font-size: clamp(13px, 3.3vw, 24px);
  letter-spacing: .28em;
  padding-left: .28em;
  text-wrap: balance;
  color: var(--ivory);
  text-shadow: 0 0 24px rgba(255, 235, 190, .35);
}
.title__main {
  position: relative;
  display: inline-block;
  margin-top: .08em;
  font-family: var(--font-script);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(34px, 12.4vw, 112px);
  white-space: nowrap;
  letter-spacing: 0;
  line-height: 1;
  padding: .02em .12em 0;
  color: var(--gold-300);
  background: url(foil.jpg) 0% 50% / 260% 100%, var(--gold-metal);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 rgba(74, 45, 14, .55)) drop-shadow(0 0 28px rgba(240, 200, 120, .28));
  animation: foil-sweep 9s var(--ease-soft) infinite alternate;
}
/* Starburst flare sitting on the first letter, like light catching gilt. */
.flare {
  position: absolute;
  width: clamp(200px, 34vw, 360px);
  aspect-ratio: 1;
  left: 17%;
  top: 36%;
  translate: -50% -50%;
  background: url(flare.webp) center / contain no-repeat;
  mix-blend-mode: screen;
  filter: brightness(.8) saturate(.9);
  pointer-events: none;
  animation: flare 5.5s var(--ease-soft) infinite;
}
.flare--small {
  left: auto; right: 8%; top: 74%;
  width: clamp(90px, 13vw, 140px);
  animation-duration: 7s;
  animation-delay: -2.5s;
}

.subtitle {
  margin: var(--space-sm) 0 0;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--mist);
}

.divider {
  display: block;
  width: min(520px, 86%);
  height: auto;
  margin: var(--space-lg) auto;
  opacity: .95;
}
.divider--tight { margin: var(--space-md) auto; }

/* ==========================================================
   Greeting & copy
   ========================================================== */
.greeting { text-align: center; }
.greeting__label {
  display: block;
  font-family: var(--font-caps);
  font-size: 12px;
  letter-spacing: .38em;
  padding-left: .38em;
  color: var(--gold-500);
  margin-bottom: 10px;
}
.greeting__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(34px, 6vw, 50px);
  line-height: 1.1;
  margin: 0;
  color: var(--gold-100);
  text-shadow: 0 0 30px rgba(240, 200, 120, .3);
}

.copy {
  max-width: 600px;
  margin: var(--space-md) auto 0;
  text-align: center;
  font-size: 15px;
  font-weight: 300;
  line-height: 2;
  color: var(--ivory-soft);
}
.copy b { font-weight: 600; color: var(--gold-300); }
.copy + .copy { margin-top: 1rem; }
.rsvp-button {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid rgba(240, 214, 150, .65);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(201, 164, 94, .2), rgba(201, 164, 94, .08));
  color: var(--gold-100);
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  transition: background .2s, border-color .2s, transform .2s;
}
.rsvp-button:hover, .rsvp-button:focus-visible {
  background: rgba(201, 164, 94, .3);
  border-color: var(--gold-300);
  transform: translateY(-1px);
}
.rsvp-button:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 3px; }
.rsvp-contact { margin: 10px 0 0; color: var(--ivory-soft); font-size: 13px; opacity: .8; }
.greeting__name.is-long { font-size: clamp(24px, 4.4vw, 36px); line-height: 1.2; }
.greeting__name.is-xlong { font-size: clamp(19px, 3.4vw, 28px); line-height: 1.25; }

/* ==========================================================
   Save-the-date block — crop-mark frame + metallic pill
   ========================================================== */
.date-block {
  position: relative;
  margin: var(--space-lg) auto 0;
  max-width: 560px;
  padding: 38px clamp(18px, 4vw, 40px) 34px;
  text-align: center;
  border: 1px solid rgba(240, 214, 150, .28);
}
.date-block i {
  position: absolute;
  width: 10px; height: 10px;
  background: var(--gold-metal);
  box-shadow: 0 0 10px rgba(240, 200, 120, .5);
}
.date-block i:nth-child(1) { top: -5px; left: -5px; }
.date-block i:nth-child(2) { top: -5px; right: -5px; }
.date-block i:nth-child(3) { bottom: -5px; left: -5px; }
.date-block i:nth-child(4) { bottom: -5px; right: -5px; }

.label {
  display: block;
  font-family: var(--font-caps);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .32em;
  padding-left: .32em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 12px;
}

.pill {
  position: relative;
  display: inline-block;
  overflow: hidden;
  padding: 16px clamp(26px, 6vw, 48px);
  border-radius: 999px;
  background: var(--gold-metal);
  color: var(--gold-900);
  font-family: var(--font-caps);
  font-weight: 600;
  font-size: clamp(17px, 3.4vw, 24px);
  letter-spacing: .12em;
  line-height: 1.25;
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, .75),
    inset 0 -3px 6px rgba(110, 70, 20, .55),
    0 0 0 1px rgba(110, 72, 22, .6),
    0 0 0 4px rgba(240, 212, 142, .14),
    0 10px 30px rgba(0, 0, 0, .4),
    0 0 40px rgba(240, 200, 120, .25);
  text-shadow: 0 1px 0 rgba(255, 245, 215, .7);
}
.pill small {
  display: block;
  font-size: .56em;
  letter-spacing: .4em;
  padding-left: .4em;
  opacity: .8;
}
/* Light sweep across the metal. */
.pill::after {
  content: '';
  position: absolute;
  top: -50%; bottom: -50%;
  left: -40%;
  width: 30%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .85), transparent);
  transform: skewX(-20deg);
  animation: sweep 4.5s var(--ease-soft) 1.8s infinite;
}

.meta {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: clamp(14px, 3vw, 28px);
  align-items: center;
  margin-top: 30px;
}
.meta__rule { height: 54px; background: linear-gradient(180deg, transparent, rgba(240, 214, 150, .5), transparent); }
.meta__value {
  font-family: var(--font-caps);
  font-size: clamp(13px, 2.4vw, 16px);
  letter-spacing: .14em;
  line-height: 1.6;
  color: var(--ivory);
}

/* ==========================================================
   Rundown — timeline with a travelling point of light
   ========================================================== */
.section-head { position: relative; text-align: center; margin-bottom: var(--space-md); }
.section-head::before {
  content: '';
  position: absolute;
  left: 50%; top: 60%;
  width: min(520px, 90%);
  height: 160px;
  translate: -50% -50%;
  background: radial-gradient(ellipse at center, rgba(240, 200, 120, .14), transparent 70%);
  animation: breathe 7s var(--ease-soft) infinite alternate;
  pointer-events: none;
}
.section-head .flare { left: 78%; top: 58%; width: clamp(110px, 16vw, 170px); animation-delay: -1.5s; }
.section-head h2 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(40px, 7vw, 58px);
  line-height: 1;
  color: var(--gold-300);
  background: var(--gold-metal);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 0;
  --rail: 132px;
}
.timeline::before { /* the rail */
  content: '';
  position: absolute;
  left: var(--rail);
  top: 10px; bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(240, 214, 150, .45) 6%, rgba(240, 214, 150, .45) 94%, transparent);
}
.timeline::after { /* the comet of light travelling down the rail */
  content: '';
  position: absolute;
  left: calc(var(--rail) - 1px);
  top: 0;
  width: 3px;
  height: 120px;
  border-radius: 3px;
  background: linear-gradient(180deg, transparent, rgba(255, 236, 190, .95), transparent);
  box-shadow: 0 0 14px 2px rgba(240, 200, 120, .6);
  animation: comet 7s var(--ease-soft) infinite;
}

.event {
  position: relative;
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  gap: 0 34px;
  padding: 22px 0;
}
.event__time {
  padding-top: 5px;
  padding-right: 26px;
  text-align: right;
  font-family: var(--font-caps);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--gold-300);
  white-space: nowrap;
}
.event__node {
  position: absolute;
  left: calc(var(--rail) - 5px);
  top: 30px;
  width: 11px; height: 11px;
  transform: rotate(45deg);
  background: var(--ink-700);
  border: 1px solid var(--gold-300);
  transition: background .8s var(--ease), box-shadow .8s var(--ease);
}
.event.is-in .event__node {
  background: var(--gold-metal);
  box-shadow: 0 0 0 4px rgba(240, 212, 142, .12), 0 0 18px rgba(255, 220, 150, .75);
}
.event h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 3.4vw, 26px);
  line-height: 1.2;
  color: var(--ivory);
}
.event p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ivory-soft);
  opacity: .88;
}

/* ==========================================================
   Footer
   ========================================================== */
.footer { text-align: center; }
.footer__regards {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--ivory-soft);
}
.footer__org {
  margin: 8px 0 0;
  font-family: var(--font-caps);
  font-size: 14px;
  letter-spacing: .2em;
  color: var(--gold-300);
}
.footer__motto {
  margin: var(--space-md) 0 0;
  font-family: var(--font-caps);
  font-size: 10px;
  letter-spacing: .5em;
  padding-left: .5em;
  color: var(--mist);
}

/* ==========================================================
   Choreography
   ========================================================== */
.fade-in { opacity: 0; animation: fadeInUp 1.1s var(--ease) forwards; }
.s1 { animation-delay: .35s; } .s2 { animation-delay: .55s; } .s3 { animation-delay: .75s; }
.s4 { animation-delay: .95s; } .s5 { animation-delay: 1.15s; } .s6 { animation-delay: 1.35s; }
.s7 { animation-delay: 1.55s; } .s8 { animation-delay: 1.75s; }

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================
   Music toggle
   ========================================================== */
.music {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--gold-300);
  background: linear-gradient(160deg, rgba(36, 64, 118, .55), rgba(7, 16, 38, .8));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 240, 210, .3), 0 0 0 1px rgba(240, 214, 150, .35), 0 10px 30px rgba(0, 0, 0, .5);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  -webkit-tap-highlight-color: transparent;
  animation: fadeInUp 1.1s var(--ease) 2.2s both;
}
.music:hover { transform: scale(1.06); box-shadow: inset 0 1px 0 rgba(255, 240, 210, .4), 0 0 0 1px rgba(240, 214, 150, .6), 0 0 24px rgba(240, 200, 120, .35), 0 10px 30px rgba(0, 0, 0, .5); }
.music:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 3px; }
.music::before { /* soft pulse that invites the first tap */
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(240, 214, 150, .6);
  animation: ping 2.6s var(--ease-soft) infinite;
  pointer-events: none;
}
.music.is-on::before { animation: none; opacity: 0; }
.music__bars { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.music__bars i {
  display: block;
  width: 3px;
  height: 4px;
  border-radius: 2px;
  background: var(--gold-metal);
  transition: height .4s var(--ease);
}
.music.is-on .music__bars i { animation: eq 1.1s ease-in-out infinite alternate; }
.music.is-on .music__bars i:nth-child(2) { animation-duration: .8s; animation-delay: -.3s; }
.music.is-on .music__bars i:nth-child(3) { animation-duration: 1.3s; animation-delay: -.6s; }
.music.is-on .music__bars i:nth-child(4) { animation-duration: .95s; animation-delay: -.15s; }
.music__slash { /* a thin line through the icon while muted */
  position: absolute;
  width: 26px; height: 1.5px;
  background: var(--gold-300);
  rotate: -45deg;
  border-radius: 2px;
  transition: opacity .3s;
}
.music.is-on .music__slash { opacity: 0; }

/* ==========================================================
   Opening gate — intro "Buka Undangan"
   ========================================================== */
.gate { display: none; }

.js .gate {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: clamp(24px, 6vw, 64px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(29, 63, 120, .92) 0%, rgba(13, 30, 66, .65) 45%, transparent 78%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(13, 32, 72, .85) 0%, transparent 70%),
    linear-gradient(180deg, var(--ink-700) 0%, var(--ink-800) 42%, var(--ink-900) 100%);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

/* Lapisan grain agar gate menyatu dengan atmosfer undangan. */
.js .gate::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url(grain.jpg) repeat;
  background-size: 256px;
  opacity: .06;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.js .gate.is-leaving {
  opacity: 0;
  transform: scale(1.015);
  pointer-events: none;
}

/* Kunci scroll halaman selama gate masih tampil. */
html.js:has(.gate) { overflow: hidden; }

/* Tahan koreografi konten sampai undangan dibuka. */
html.js:has(.gate) .card,
html.js:has(.gate) .fade-in { animation-play-state: paused; }

.gate__inner {
  width: min(560px, 100%);
  padding: clamp(8px, 3vw, 24px) 0;
  text-align: center;
  animation: gateRise 1.1s var(--ease) both;
}

.gate__title {
  margin: .6rem 0 0;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(40px, 12vw, 92px);
  line-height: 1;
  padding: .05em .12em 0;
  color: var(--gold-300);
  background: var(--gold-metal);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 rgba(74, 45, 14, .55)) drop-shadow(0 0 26px rgba(240, 200, 120, .3));
}

.gate__lead {
  margin: .5rem 0 0;
  font-family: var(--font-caps);
  font-size: clamp(10px, 2.6vw, 15px);
  letter-spacing: .3em;
  padding-left: .3em;
  text-transform: uppercase;
  color: var(--ivory);
}

.gate__divider {
  display: block;
  width: min(420px, 82%);
  height: auto;
  margin: clamp(18px, 4vw, 32px) auto;
  opacity: .9;
}

.gate__to {
  margin: 0 0 6px;
  font-family: var(--font-caps);
  font-size: 11px;
  letter-spacing: .34em;
  padding-left: .34em;
  color: var(--gold-500);
}

.gate__button {
  margin-top: clamp(20px, 5vw, 34px);
  padding: 13px 30px;
  border: 1px solid rgba(240, 214, 150, .65);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(201, 164, 94, .24), rgba(201, 164, 94, .08));
  color: var(--gold-100);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}

.gate__button:hover {
  background: rgba(201, 164, 94, .32);
  border-color: var(--gold-300);
  transform: translateY(-1px);
  box-shadow: 0 0 26px rgba(240, 200, 120, .22);
}

.gate__button:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 3px;
}

#invitation-content:focus { outline: none; }

@keyframes gateRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@keyframes ping { 0% { scale: 1; opacity: .8; } 80%, 100% { scale: 1.7; opacity: 0; } }
@keyframes eq { from { height: 4px; } to { height: 18px; } }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(40px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes breathe { from { opacity: .55; } to { opacity: 1; } }
@keyframes twinkle { from { opacity: .3; } to { opacity: .65; } }
@keyframes drift-far { to { background-position: 600px -600px; } }
@keyframes drift-near { to { background-position: -900px -900px; } }
@keyframes float { from { translate: 0 0; rotate: 0deg; } to { translate: 0 -40px; rotate: 8deg; } }
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
@keyframes edge { to { --edge: 360deg; } }
@keyframes foil-sweep { from { background-position: 0% 50%, 0 0; } to { background-position: 100% 50%, 0 0; } }
@keyframes flare {
  0%, 100% { opacity: .16; scale: .82; rotate: 0deg; }
  45% { opacity: .42; scale: 1.02; rotate: 12deg; }
  60% { opacity: .34; scale: .98; rotate: 15deg; }
}
@keyframes sweep { 0% { left: -40%; } 55%, 100% { left: 130%; } }
@keyframes comet { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 120px); opacity: 0; } }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 640px) {
  .card { border-radius: 24px; }
  .card::after { border-radius: 24px 24px 60% 60% / 24px 24px 20% 20%; }
  .meta { grid-template-columns: 1fr; gap: 18px; }
  .meta__rule { height: 1px; width: 60px; margin: 0 auto; background: linear-gradient(90deg, transparent, rgba(240, 214, 150, .5), transparent); }
  .timeline { --rail: 18px; }
  .event { grid-template-columns: var(--rail) 1fr; gap: 0 20px; padding: 18px 0; }
  .event__time { grid-column: 2; text-align: left; padding: 0 0 6px; }
  .event__body { grid-column: 2; }
  .event__node { top: 22px; }
  .shard--a { top: 18vh; }
  .eyebrow { font-size: 10px; letter-spacing: .3em; padding-left: .3em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fade-in, .js .reveal { opacity: 1 !important; transform: none !important; }
}
