:root {
  --bg: #050b19;
  --bg-2: #081733;
  --text: #f8fbff;
  --muted: #aebbd0;
  --line: rgba(255, 255, 255, 0.15);
  --glass: rgba(255, 255, 255, 0.1);
  --glass-strong: rgba(255, 255, 255, 0.18);
  --accent: #4ea4ff;
  --accent-2: #a8ddff;
  --cyan: #66e5ff;
  --gold: #e7c678;
  --violet: #9c86ff;
  --rose: #ff8abf;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: min(1160px, calc(100% - 36px));
  --script: "Marck Script", cursive;
  --hand: "Caveat", cursive;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-synthesis-weight: none;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 5%, rgba(78, 164, 255, .22), transparent 28%),
    radial-gradient(circle at 90% 8%, rgba(231, 198, 120, .16), transparent 24%),
    radial-gradient(circle at 48% 55%, rgba(156, 134, 255, .14), transparent 35%),
    linear-gradient(180deg, var(--bg), var(--bg-2) 58%, #020610);
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
code {
  padding: 0.16rem 0.42rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--accent-2);
  background: rgba(255,255,255,0.07);
}
::selection { background: rgba(168, 221, 255, .32); color: #fff; }

.hover-gradient {
  background-image: linear-gradient(110deg, #ffffff, var(--accent-2), var(--gold), #ffffff);
  background-size: 260% 100%;
  background-position: 0 50%;
  -webkit-background-clip: text;
  background-clip: text;
  transition: color .25s ease, background-position .75s ease, text-shadow .45s ease, transform .35s ease, filter .35s ease;
}
.handwritten.hover-gradient,
.script-title.hover-gradient,
.brand-text.hover-gradient {
  background-size: 320% 100%;
}
.hover-gradient:hover,
.brand:hover .hover-gradient,
.nav a:hover,
.time-item:hover h3,
.glass-card:hover h2,
.final-card:hover h2,
.banner-card:hover h2,
.place-card:hover h2,
figure:hover figcaption {
  color: transparent;
  background-position: 100% 50%;
  text-shadow: 0 0 24px rgba(168, 221, 255, .26), 0 0 42px rgba(231, 198, 120, .14);
  filter: drop-shadow(0 0 10px rgba(168,221,255,.08));
  animation: textGradientFlow 1.8s linear infinite;
}
.handwritten { font-family: var(--script); font-weight: 400; }

.intro-launch {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 40%, rgba(78, 164, 255, .28), transparent 30%),
    radial-gradient(circle at 62% 60%, rgba(231, 198, 120, .18), transparent 28%),
    rgba(3, 7, 18, .88);
  backdrop-filter: blur(22px);
  transition: opacity .78s ease, visibility .78s ease;
  isolation: isolate;
}
.intro-launch::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3,7,18,.96), rgba(3,7,18,.82), rgba(3,7,18,.96)),
    url("assets/photos/main-banner.svg") center / cover no-repeat;
  opacity: .72;
  transform: scale(1.04);
  filter: brightness(.52) saturate(1.12) contrast(1.05);
}
.intro-launch::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 46%, rgba(168,221,255,.18), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(231,198,120,.14), transparent 26%);
}
.intro-launch.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.intro-aurora {
  position: absolute;
  inset: -20%;
  background:
    conic-gradient(from 90deg at 50% 50%, transparent, rgba(78,164,255,.22), transparent, rgba(231,198,120,.18), transparent, rgba(156,134,255,.2), transparent);
  filter: blur(32px);
  opacity: .8;
  animation: rotateAurora 14s linear infinite;
}
.intro-card {
  position: relative;
  width: min(620px, 100%);
  text-align: center;
  padding: clamp(30px, 5vw, 60px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 42px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.17), rgba(255,255,255,.06)),
    radial-gradient(circle at 50% 0, rgba(168,221,255,.16), transparent 58%);
  box-shadow: 0 40px 120px rgba(0,0,0,.5), inset 0 0 70px rgba(78,164,255,.08);
  overflow: hidden;
  animation: introIn .86s cubic-bezier(.2,.9,.2,1) both;
}
.intro-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(115deg, transparent 12%, rgba(255,255,255,.22) 38%, transparent 58%);
  transform: translateX(-120%);
  animation: cardShine 3.4s ease-in-out infinite;
}
.intro-kicker {
  position: relative;
  color: var(--accent-2);
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 12px;
}
.intro-card h2 {
  position: relative;
  margin: 10px 0 6px;
  font-size: clamp(54px, 10vw, 94px);
  line-height: .92;
}
.intro-card p {
  position: relative;
  margin: 0 auto 26px;
  max-width: 470px;
  color: var(--muted);
}

.music-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 54px;
  height: 54px;
  z-index: 80;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  color: #07101e;
  font-size: 23px;
  font-weight: 900;
  background: linear-gradient(135deg, #fff, var(--accent-2) 48%, var(--gold));
  box-shadow: 0 0 28px rgba(78,164,255,.36), 0 16px 40px rgba(0,0,0,.35);
  cursor: pointer;
  transition: transform .25s ease, filter .25s ease, box-shadow .25s ease;
}
.music-toggle:hover { transform: translateY(-3px) scale(1.05) rotate(4deg); filter: saturate(1.2); }
.music-toggle[data-state="on"] { animation: pulseMusic 1.7s ease-in-out infinite; }
.music-toggle[data-state="off"] { opacity: .86; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .095;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
.light-system {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.beam {
  position: absolute;
  width: 50vw;
  height: 2px;
  opacity: .46;
  background: linear-gradient(90deg, transparent, rgba(168,221,255,.78), rgba(231,198,120,.54), transparent);
  filter: blur(.25px) drop-shadow(0 0 18px rgba(78,164,255,.75));
  transform: rotate(-16deg);
  animation: lightSweep 8s linear infinite;
}
.beam-1 { top: 20%; left: -55vw; animation-delay: 0s; }
.beam-2 { top: 48%; left: -60vw; animation-delay: -3.2s; opacity: .34; }
.beam-3 { top: 78%; left: -58vw; animation-delay: -5.6s; opacity: .28; }
.beam-4 { top: 34%; left: -62vw; animation-delay: -7s; transform: rotate(12deg); opacity: .24; }
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  opacity: .58;
  animation: floatGlow 9s ease-in-out infinite;
}
.glow-1 { width: 240px; height: 240px; left: 6%; top: 18%; background: rgba(78,164,255,.2); }
.glow-2 { width: 190px; height: 190px; right: 12%; bottom: 16%; background: rgba(231,198,120,.18); animation-delay: -4s; }
.glow-3 { width: 170px; height: 170px; left: 46%; top: 62%; background: rgba(156,134,255,.18); animation-delay: -6s; }
.spark {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 18px rgba(168,221,255,.96), 0 0 36px rgba(78,164,255,.4);
  opacity: .78;
  animation: sparkMove 9s ease-in-out infinite;
}
.spark-1 { left: 18%; top: 26%; animation-delay: 0s; }
.spark-2 { right: 22%; top: 24%; animation-delay: -2s; }
.spark-3 { left: 36%; bottom: 18%; animation-delay: -4s; }
.spark-4 { right: 12%; bottom: 42%; animation-delay: -6s; }
.spark-5 { left: 9%; bottom: 38%; animation-delay: -8s; }
.spark-6 { right: 38%; top: 13%; animation-delay: -10s; }

.cursor-dot,
.cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 999;
  transform: translate(-50%, -50%);
  opacity: 0;
}
.cursor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 18px var(--accent-2);
}
.cursor-ring {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(154, 215, 255, .58);
  backdrop-filter: blur(2px);
  transition: width .18s ease, height .18s ease, border-color .18s ease, background .18s ease;
}
.cursor-ring.is-hover {
  width: 66px;
  height: 66px;
  border-color: rgba(231, 198, 120, .88);
  background: rgba(255,255,255,.035);
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: var(--container);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 14, 27, .66);
  backdrop-filter: blur(24px);
  z-index: 50;
  box-shadow: 0 15px 50px rgba(0,0,0,.24);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -.03em;
  padding-right: 12px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #07101e;
  background: linear-gradient(135deg, var(--accent-2), #fff 52%, var(--gold));
  box-shadow: 0 0 28px rgba(89,168,255,.35);
  transition: transform .35s ease, box-shadow .35s ease;
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.08); box-shadow: 0 0 40px rgba(231,198,120,.4); }
.brand-text { font-family: var(--hand); font-size: 28px; line-height: 1; }
.nav {
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav a {
  padding: 11px 14px;
  color: rgba(248,251,255,.84);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  background-image: linear-gradient(110deg, rgba(248,251,255,.86), var(--accent-2), var(--gold), rgba(248,251,255,.95));
  background-size: 260% 100%;
  background-position: 0 50%;
  -webkit-background-clip: text;
  background-clip: text;
  transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease, background-position .7s ease;
}
.nav a:hover {
  background-color: rgba(255,255,255,.1);
  transform: translateY(-1px);
  box-shadow: inset 0 0 24px rgba(168,221,255,.08), 0 8px 24px rgba(0,0,0,.16);
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  transition: transform .25s ease, top .25s ease;
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.section {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin: 0 auto;
  padding: clamp(74px, 10vw, 120px) 0;
}
.hero {
  width: 100%;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 132px max(18px, calc((100vw - 1160px) / 2)) 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -4;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .58;
  transform: scale(1.045);
  filter: brightness(.58) saturate(1.18) contrast(1.12);
  animation: slowZoom 22s ease-in-out infinite alternate;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(115deg, rgba(168,221,255,0) 0%, rgba(168,221,255,.08) 42%, rgba(231,198,120,.08) 50%, rgba(168,221,255,0) 62%);
  transform: translateX(-70%);
  animation: heroScan 7s ease-in-out infinite;
  mix-blend-mode: screen;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(3, 8, 20, .20) 0%, rgba(4,10,24,.20) 38%, rgba(4,10,24,.20) 68%, rgba(4,10,24,.20) 100%),
    linear-gradient(180deg, rgba(3,8,20,.20) 0%, rgba(3,8,20,.20) 55%, var(--bg) 100%);
}
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(circle at 75% 38%, rgba(78,164,255,.26), transparent 29%),
    radial-gradient(circle at 15% 78%, rgba(231,198,120,.18), transparent 26%),
    radial-gradient(ellipse at center, transparent 36%, rgba(0,0,0,.48) 100%);
}
.hero-light {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  border-radius: 999px;
  opacity: .56;
  filter: blur(38px);
  mix-blend-mode: screen;
  animation: floatGlow 8.5s ease-in-out infinite;
}
.hero-light-1 { width: 330px; height: 330px; right: 11%; top: 21%; background: rgba(78,164,255,.28); }
.hero-light-2 { width: 260px; height: 260px; left: 7%; bottom: 16%; background: rgba(231,198,120,.2); animation-delay: -4s; }
.hero-content {
  position: relative;
  z-index: 7;
  width: min(760px, 100%);
  justify-self: start;
  padding-top: 30px;
  text-shadow: 0 14px 40px rgba(0,0,0,.44);
}
.eyebrow,
.kicker,
.section-label {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(68px, 11.5vw, 142px);
  line-height: .83;
  letter-spacing: -.08em;
  font-weight: 900;
}
.script-title {
  margin: 12px 0 14px;
  font-family: var(--script);
  font-size: clamp(54px, 10vw, 112px);
  line-height: .82;
  color: var(--gold);
  text-shadow: 0 0 34px rgba(231,198,120,.28);
}
.hero-text {
  max-width: 620px;
  margin: 0 0 28px;
  color: rgba(248,251,255,.82);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
}
.hero-actions,
.final-card .btn,
.place-info .btn { margin-top: 26px; }
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 15px 24px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  font-weight: 900;
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, color .25s ease;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, var(--accent), #fff, var(--gold), var(--accent-2));
  background-size: 280% 100%;
  transition: background-position .8s ease, opacity .25s ease;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(0,0,0,.32), 0 0 34px rgba(78,164,255,.24); }
.btn:hover::before { background-position: 100% 50%; }
.btn-primary { color: #07101e; box-shadow: 0 16px 42px rgba(78,164,255,.25); }
.btn-soft { color: #fff; background: rgba(255,255,255,.08); }
.btn-soft::before { opacity: 0; }
.btn-soft:hover { border-color: rgba(168,221,255,.44); color: var(--accent-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(86px, 1fr));
  max-width: 600px;
  gap: 12px;
  margin: 0 0 28px;
}
.countdown div,
.event-card div,
.glass-card,
.quote-card,
.time-item,
.place-card,
.final-card,
.banner-card,
.photo-grid figure {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.055));
  box-shadow: 0 22px 70px rgba(0,0,0,.24), inset 0 0 36px rgba(255,255,255,.035);
  backdrop-filter: blur(18px);
}
.countdown div {
  min-height: 94px;
  display: grid;
  place-items: center;
  padding: 16px 10px;
  border-radius: 22px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.countdown div:hover { transform: translateY(-4px); border-color: rgba(231,198,120,.34); background: rgba(255,255,255,.14); box-shadow: 0 24px 58px rgba(0,0,0,.34), 0 0 30px rgba(168,221,255,.08); }
.countdown strong {
  font-size: clamp(29px, 4vw, 44px);
  line-height: .95;
  font-weight: 900;
  letter-spacing: -.05em;
}
.countdown span { color: var(--muted); font-size: 13px; font-weight: 700; }

.event-card {
  position: absolute;
  z-index: 7;
  right: max(18px, calc((100vw - 1160px) / 2));
  bottom: 70px;
  width: min(380px, calc(100% - 36px));
  display: grid;
  gap: 10px;
}
.event-card div {
  padding: 16px 18px;
  border-radius: 20px;
  transition: transform .25s ease, border-color .25s ease;
}
.event-card div:hover { transform: translateX(-4px); border-color: rgba(168,221,255,.4); }
.event-card span,
.details-list span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.event-card strong,
.details-list strong { color: #fff; font-size: 17px; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .55;
  pointer-events: none;
  animation: floatOrb 9s ease-in-out infinite;
}
.orb-one { width: 260px; height: 260px; right: 8%; top: 22%; background: radial-gradient(circle, rgba(78,164,255,.42), transparent 68%); }
.orb-two { width: 210px; height: 210px; left: 6%; bottom: 16%; background: radial-gradient(circle, rgba(231,198,120,.34), transparent 68%); animation-delay: -3s; }
.orb-three { width: 170px; height: 170px; right: 34%; bottom: 12%; background: radial-gradient(circle, rgba(156,134,255,.28), transparent 70%); animation-delay: -6s; }
.hero-lines {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 48%;
  opacity: .18;
  pointer-events: none;
  overflow: hidden;
}
.hero-lines span {
  position: absolute;
  width: 1px;
  height: 130%;
  top: -15%;
  background: linear-gradient(180deg, transparent, #fff, transparent);
  transform: rotate(18deg);
  animation: lineDrift 8s ease-in-out infinite;
}
.hero-lines span:nth-child(1) { left: 18%; }
.hero-lines span:nth-child(2) { left: 48%; animation-delay: -2s; }
.hero-lines span:nth-child(3) { left: 78%; animation-delay: -4s; }

.section-heading { max-width: 780px; margin-bottom: 30px; }
.section-heading h2,
.glass-card h2,
.banner-overlay h2,
.place-info h2,
.final-card h2 {
  margin: 0;
  font-size: clamp(38px, 6vw, 76px);
  line-height: .95;
  letter-spacing: -.06em;
  font-weight: 900;
}
.section-heading p,
.glass-card p,
.banner-overlay p,
.time-item p,
.final-card p,
.quote-card small {
  color: var(--muted);
  line-height: 1.65;
}
.invite-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
  align-items: stretch;
}
.glass-card,
.quote-card,
.final-card {
  position: relative;
  padding: clamp(26px, 4vw, 44px);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.glass-card::after,
.quote-card::after,
.time-item::after,
.final-card::after,
.place-card::after,
.banner-card::after,
.photo-grid figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(168,221,255,.18), transparent 34%);
  transition: opacity .28s ease;
}
.magnetic-card:hover::after,
.photo-grid figure:hover::after,
.banner-card:hover::after,
.place-card:hover::after,
.final-card:hover::after { opacity: 1; }
.quote-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.quote-mark {
  font-family: Georgia, serif;
  color: var(--gold);
  font-size: 120px;
  line-height: .7;
  opacity: .9;
}
.quote-card p {
  margin: 0;
  font-size: clamp(38px, 6vw, 64px);
  line-height: .92;
}
.quote-card small { margin-top: 18px; font-weight: 800; }

.banner-card {
  position: relative;
  overflow: hidden;
  border-radius: 38px;
  min-height: 460px;
  isolation: isolate;
}
.banner-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3,8,20,.05) 0%, rgba(3,8,20,.34) 58%, rgba(3,8,20,.76) 100%),
    radial-gradient(circle at 78% 18%, rgba(168,221,255,.22), transparent 31%);
}
.banner-card img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.03);
  transition: transform .8s cubic-bezier(.2,.9,.2,1), filter .8s ease;
}
.banner-card:hover img { transform: scale(1.045); filter: saturate(1.24) contrast(1.08); }
.banner-overlay {
  position: absolute;
  z-index: 2;
  inset: auto 24px 24px 24px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 28px;
  background: rgba(5, 11, 25, .64);
  backdrop-filter: blur(20px);
}

.timeline {
  display: grid;
  gap: 16px;
}
.time-item {
  position: relative;
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 22px;
  padding: 22px;
  border-radius: 26px;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.time-item:hover { transform: translateY(-4px); border-color: rgba(231,198,120,.35); }
.time-item > span {
  font-family: var(--hand);
  color: var(--gold);
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 700;
  line-height: 1;
}
.time-item h3 { margin: 0 0 6px; font-size: 24px; }
.time-item p { margin: 0; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.photo-grid figure {
  position: relative;
  margin: 0;
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 4 / 4.7;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.photo-grid figure:hover { transform: translateY(-6px); border-color: rgba(168,221,255,.36); box-shadow: 0 28px 80px rgba(0,0,0,.32); }
.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.9,.2,1), filter .7s ease;
}
.photo-grid figure:hover img { transform: scale(1.08); filter: saturate(1.16); }
.photo-grid figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  padding: 11px 13px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  background: rgba(5,11,25,.58);
  backdrop-filter: blur(16px);
  font-weight: 900;
  background-image: linear-gradient(110deg, #fff, var(--accent-2), var(--gold), #fff);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
}

.place-card {
  position: relative;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 22px;
  padding: 20px;
  border-radius: 38px;
  overflow: hidden;
}
.place-info {
  padding: clamp(20px, 4vw, 34px);
}
.details-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.details-list li {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.06);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.details-list li:hover { transform: translateX(4px); border-color: rgba(168,221,255,.36); background: rgba(255,255,255,.1); }
.map-frame {
  position: relative;
  min-height: 430px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 430px;
  border: 0;
  filter: grayscale(.12) saturate(1.06) contrast(.98);
}
.map-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 46%, rgba(5,11,25,.5));
  box-shadow: inset 0 0 70px rgba(78,164,255,.22);
}
.final-card {
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}
.final-card .eyebrow { justify-content: center; }
.footer {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin: 0 auto;
  padding: 28px 0 44px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.footer span:first-child { font-family: var(--hand); color: #fff; font-size: 28px; font-weight: 700; }

.reveal {
  opacity: 0;
  transform: translateY(30px) scale(.985);
  filter: blur(8px);
  transition: opacity .76s ease, transform .76s cubic-bezier(.2,.9,.2,1), filter .76s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

@keyframes textGradientFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 260% 50%; }
}
@keyframes heroScan {
  0%, 24% { transform: translateX(-120%); opacity: 0; }
  38% { opacity: .52; }
  62%, 100% { transform: translateX(120%); opacity: 0; }
}
@keyframes introIn {
  from { opacity: 0; transform: translateY(24px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes cardShine {
  0%, 40% { transform: translateX(-120%); }
  68%, 100% { transform: translateX(120%); }
}
@keyframes rotateAurora { to { transform: rotate(360deg); } }
@keyframes pulseMusic {
  0%, 100% { box-shadow: 0 0 26px rgba(78,164,255,.35), 0 0 0 0 rgba(168,221,255,.28); }
  50% { box-shadow: 0 0 40px rgba(231,198,120,.42), 0 0 0 11px rgba(168,221,255,0); }
}
@keyframes lightSweep {
  from { transform: translateX(0) rotate(-16deg); }
  to { transform: translateX(170vw) rotate(-16deg); }
}
@keyframes floatGlow {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(20px,-18px,0) scale(1.12); }
}
@keyframes sparkMove {
  0%, 100% { transform: translate3d(0,0,0) scale(.8); opacity: .35; }
  35% { opacity: .95; }
  50% { transform: translate3d(24px,-36px,0) scale(1.25); opacity: .8; }
}
@keyframes slowZoom {
  from { transform: scale(1.035); }
  to { transform: scale(1.08); }
}
@keyframes floatOrb {
  0%, 100% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(20px,-28px,0); }
}
@keyframes lineDrift {
  0%, 100% { transform: translateX(0) rotate(18deg); opacity: .2; }
  50% { transform: translateX(18px) rotate(18deg); opacity: .45; }
}

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .site-header { top: 12px; }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    display: grid;
    gap: 6px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(7, 14, 27, .9);
    backdrop-filter: blur(24px);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }
  .nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav a { width: 100%; }
  .hero { align-items: start; padding-top: 120px; }
  .hero-gradient { background:
    linear-gradient(90deg, rgba(3,8,20,.10), rgba(4,10,24,.10)),
    linear-gradient(180deg, rgba(3,8,20,.10), var(--bg) 100%);
  }
  .event-card { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 36px; }
  .invite-grid,
  .place-card { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .time-item { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 620px) {
  :root { --container: min(100% - 24px, 1160px); }
  .section { padding: 70px 0; }
  .hero { padding: 104px 12px 54px; }
  .hero-bg img { opacity: .42; transform: scale(1.08); }
  .hero-light-1 { right: -80px; top: 18%; }
  .hero-light-2 { left: -110px; bottom: 18%; }
  .hero h1 { font-size: clamp(56px, 18vw, 82px); }
  .script-title { font-size: clamp(50px, 17vw, 76px); }
  .countdown { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { display: grid; }
  .btn { width: 100%; }
  .intro-card { border-radius: 30px; }
  .intro-card h2 { font-size: clamp(48px, 16vw, 70px); }
  .photo-grid { grid-template-columns: 1fr; }
  .banner-card,
  .banner-card img { min-height: 380px; }
  .banner-overlay { inset: auto 14px 14px 14px; }
  .map-frame,
  .map-frame iframe { min-height: 330px; }
  .music-toggle { right: 14px; bottom: 14px; width: 50px; height: 50px; }
  .cursor-dot,
  .cursor-ring { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
  .cursor-dot,
  .cursor-ring { display: none; }
}

/* === v6 mobile gallery fix: всі 9 фото стабільно відображаються на телефонах === */
.gallery,
.photo-grid {
  position: relative;
  z-index: 3;
}

.photo-grid.reveal {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

.photo-grid figure {
  min-height: 240px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.055)),
    radial-gradient(circle at 50% 18%, rgba(78,164,255,.18), transparent 58%),
    #07142c;
  contain: paint;
}

.photo-grid img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100%;
  opacity: 1 !important;
  visibility: visible !important;
  backface-visibility: hidden;
}

@media (max-width: 960px) {
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .photo-grid figure {
    min-height: 230px;
    border-radius: 22px;
  }
}

@media (max-width: 620px) {
  html,
  body {
    overflow-x: hidden;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
  }

  .photo-grid figure {
    min-height: 210px;
    aspect-ratio: 4 / 5;
    border-radius: 20px;
    backdrop-filter: none;
  }

  .photo-grid img {
    transform: none !important;
    filter: saturate(1.06) contrast(1.02);
  }

  .photo-grid figcaption {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 8px 9px;
    border-radius: 14px;
    font-size: 12px;
    line-height: 1.15;
    background: rgba(5,11,25,.72);
  }

  .light-system .beam,
  .hero-lines,
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

@media (max-width: 380px) {
  .photo-grid {
    grid-template-columns: 1fr !important;
  }

  .photo-grid figure {
    min-height: 260px;
  }
}

/* === v7 gallery final fix: 9 JPG фото без приховування на телефоні === */
.gallery {
  position: relative;
  z-index: 4;
}

.gallery .section-heading {
  margin-bottom: clamp(18px, 3vw, 28px);
}

.photo-grid {
  position: relative;
  z-index: 5;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(12px, 2vw, 18px) !important;
  width: 100%;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  filter: none !important;
  perspective: 1200px;
}

.photo-grid .photo-card,
.photo-grid figure {
  position: relative;
  display: block !important;
  min-width: 0;
  margin: 0 !important;
  aspect-ratio: 4 / 4.85;
  min-height: 0 !important;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: clamp(20px, 2.4vw, 30px);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.045)),
    radial-gradient(circle at 50% 10%, rgba(168,221,255,.18), transparent 56%),
    #07142c;
  box-shadow: 0 18px 55px rgba(0,0,0,.27);
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateZ(0);
  transition: transform .34s ease, border-color .34s ease, box-shadow .34s ease, filter .34s ease;
  contain: layout paint;
  isolation: isolate;
}

.photo-grid .photo-card::before,
.photo-grid figure::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2,6,15,0) 42%, rgba(2,6,15,.74) 100%),
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.22), transparent 24%),
    linear-gradient(120deg, transparent 0%, rgba(255,255,255,.12) 42%, transparent 58%);
  opacity: .9;
}

.photo-grid .photo-card::after,
.photo-grid figure::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), inset 0 -80px 90px rgba(0,0,0,.18);
}

.photo-grid img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  object-position: center;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateZ(0) scale(1.01) !important;
  filter: saturate(1.06) contrast(1.03);
  backface-visibility: hidden;
  transition: transform .74s cubic-bezier(.2,.9,.2,1), filter .74s ease;
}

.photo-grid figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  color: #fff;
  background: rgba(5,11,25,.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: clamp(12px, 1.4vw, 15px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: .01em;
  text-shadow: 0 2px 16px rgba(0,0,0,.52);
  opacity: 1 !important;
  visibility: visible !important;
}

.photo-grid .photo-card:hover,
.photo-grid figure:hover {
  transform: translateY(-7px) translateZ(0);
  border-color: rgba(168,221,255,.38);
  box-shadow: 0 26px 80px rgba(0,0,0,.35), 0 0 34px rgba(78,164,255,.14);
}

.photo-grid .photo-card:hover img,
.photo-grid figure:hover img {
  transform: translateZ(0) scale(1.07) !important;
  filter: saturate(1.16) contrast(1.06);
}

.photo-grid .photo-card:hover figcaption,
.photo-grid figure:hover figcaption {
  color: #fff;
  background: rgba(5,11,25,.78);
}

@media (max-width: 960px) {
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}

@media (max-width: 620px) {
  .gallery {
    overflow: visible !important;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    padding-bottom: 2px;
    perspective: none;
  }

  .photo-grid .photo-card,
  .photo-grid figure {
    aspect-ratio: 4 / 5.15;
    border-radius: 18px;
    box-shadow: 0 12px 38px rgba(0,0,0,.25);
    transform: none !important;
    contain: layout paint;
  }

  .photo-grid img {
    transform: none !important;
    filter: saturate(1.04) contrast(1.02);
  }

  .photo-grid figcaption {
    left: 7px;
    right: 7px;
    bottom: 7px;
    min-height: 34px;
    padding: 7px 8px;
    border-radius: 12px;
    font-size: 11.5px;
    line-height: 1.08;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .photo-grid .photo-card:hover,
  .photo-grid figure:hover,
  .photo-grid .photo-card:hover img,
  .photo-grid figure:hover img {
    transform: none !important;
  }
}

@media (max-width: 360px) {
  .photo-grid {
    grid-template-columns: 1fr !important;
  }

  .photo-grid .photo-card,
  .photo-grid figure {
    aspect-ratio: 4 / 4.8;
  }
}

/* === v8 gallery layout: на телефоні фото по одному, без 2x сітки === */
@media (max-width: 960px) {
  .photo-grid {
    grid-template-columns: 1fr !important;
    gap: clamp(16px, 4.8vw, 24px) !important;
    max-width: 680px;
    margin-inline: auto;
  }

  .photo-grid .photo-card,
  .photo-grid figure {
    aspect-ratio: 16 / 12.2 !important;
    border-radius: clamp(22px, 5.6vw, 34px) !important;
    border-color: rgba(255,255,255,.18) !important;
    background:
      linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.045)),
      radial-gradient(circle at 18% 4%, rgba(168,221,255,.24), transparent 42%),
      radial-gradient(circle at 86% 88%, rgba(239,207,125,.18), transparent 38%),
      #07142c !important;
    box-shadow:
      0 22px 60px rgba(0,0,0,.34),
      inset 0 1px 0 rgba(255,255,255,.12) !important;
  }

  .photo-grid .photo-card::before,
  .photo-grid figure::before {
    background:
      linear-gradient(180deg, rgba(2,6,15,.04) 0%, rgba(2,6,15,.08) 45%, rgba(2,6,15,.78) 100%),
      radial-gradient(circle at 13% 12%, rgba(255,255,255,.24), transparent 22%),
      linear-gradient(115deg, transparent 0%, rgba(255,255,255,.14) 43%, transparent 60%) !important;
    opacity: .94 !important;
  }

  .photo-grid img {
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    filter: saturate(1.08) contrast(1.04) brightness(.98) !important;
  }

  .photo-grid figcaption {
    left: clamp(12px, 4vw, 22px) !important;
    right: clamp(12px, 4vw, 22px) !important;
    bottom: clamp(12px, 4vw, 22px) !important;
    min-height: 46px !important;
    padding: 12px 16px !important;
    border-radius: 18px !important;
    font-size: clamp(14px, 4.2vw, 18px) !important;
    letter-spacing: .015em !important;
    background:
      linear-gradient(135deg, rgba(5,11,25,.82), rgba(8,21,45,.66)) !important;
    border-color: rgba(255,255,255,.2) !important;
    box-shadow: 0 14px 32px rgba(0,0,0,.24) !important;
  }

  .photo-grid .photo-card:hover,
  .photo-grid figure:hover {
    transform: none !important;
  }

  .photo-grid .photo-card:hover img,
  .photo-grid figure:hover img {
    transform: none !important;
  }
}

@media (max-width: 520px) {
  .gallery {
    padding-inline: 0 !important;
  }

  .photo-grid {
    gap: 18px !important;
  }

  .photo-grid .photo-card,
  .photo-grid figure {
    aspect-ratio: 4 / 5 !important;
    border-radius: 24px !important;
  }

  .photo-grid figcaption {
    min-height: 42px !important;
    padding: 10px 13px !important;
    border-radius: 16px !important;
  }
}
