/* ==========================================================
   LIDYA — Digital Invitation
   Palette: white + #BCCFBC (sage), #26332A text, #667268 sub,
   #E8EFE8 light accent
   ========================================================== */

:root {
  --white: #ffffff;
  --accent: #bccfbc;
  --accent-dark: #9fb89f;
  --ink: #26332a;
  --muted: #667268;
  --light: #e8efe8;
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Great Vibes", cursive;
  --sans: "Jost", "Segoe UI", sans-serif;
  --shadow: 0 10px 40px rgba(38, 51, 42, 0.08);
  --shadow-hover: 0 18px 50px rgba(38, 51, 42, 0.14);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

body.locked { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: min(1100px, 90%); margin-inline: auto; }

/* ==========================================================
   1. OPENING SCREEN
   ========================================================== */
#opening-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 20% 15%, var(--light) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 85%, var(--light) 0%, transparent 55%),
    var(--white);
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}

#opening-screen.closed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.opening-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  animation: openingIn 1.6s var(--ease) both;
}

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

.opening-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.opening-name {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(4rem, 17vw, 8.5rem);
  line-height: 1.05;
  color: var(--ink);
  animation: nameBreathe 5s ease-in-out infinite;
}

@keyframes nameBreathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.035); }
}

.opening-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: 1.2rem auto 0.8rem;
  color: var(--accent-dark);
}

.opening-divider span {
  height: 1px;
  width: clamp(50px, 18vw, 110px);
  background: linear-gradient(90deg, transparent, var(--accent));
}
.opening-divider span:last-child {
  background: linear-gradient(90deg, var(--accent), transparent);
}
.opening-divider i { font-style: normal; font-size: 1.2rem; }

.opening-subtitle {
  font-size: 0.85rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.6rem;
}

/* Corner florals on opening screen */
.corner-floral {
  position: absolute;
  width: clamp(120px, 30vw, 220px);
  color: var(--accent);
  opacity: 0;
  animation: floralIn 1.8s var(--ease) 0.4s both;
  pointer-events: none;
}
.corner-floral.top-left     { top: 0; left: 0; }
.corner-floral.bottom-right { bottom: 0; right: 0; }

@keyframes floralIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* Floating particles */
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  animation: floatParticle linear infinite;
  pointer-events: none;
}

@keyframes floatParticle {
  0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  10%  { opacity: var(--p-opacity, 0.5); }
  90%  { opacity: var(--p-opacity, 0.5); }
  100% { transform: translateY(-110vh) translateX(var(--p-drift, 30px)) rotate(180deg); opacity: 0; }
}

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn {
  display: inline-block;
  padding: 0.95rem 2.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 400;
  transition: all 0.45s var(--ease);
  border: 1px solid var(--accent-dark);
}

.btn-primary {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(159, 184, 159, 0.35);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(159, 184, 159, 0.45);
}

.btn-primary:active { transform: translateY(-1px); }

/* ==========================================================
   NAVIGATION
   ========================================================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem clamp(1.2rem, 5vw, 3rem);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(188, 207, 188, 0.4);
  transform: translateY(-100%);
  animation: navIn 0.8s var(--ease) 0.4s forwards;
}

@keyframes navIn { to { transform: translateY(0); } }

.nav-brand {
  font-family: var(--script);
  font-size: 2rem;
  line-height: 1;
  color: var(--accent-dark);
}

.nav-menu { display: flex; gap: clamp(1rem, 3vw, 2.4rem); }

.nav-menu a {
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.3s;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent-dark);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.nav-menu a:hover { color: var(--ink); }
.nav-menu a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  z-index: 70;
}

.nav-toggle span {
  display: block;
  width: 24px; height: 1.6px;
  background: var(--ink);
  transition: transform 0.4s var(--ease), opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, var(--light) 0%, transparent 60%),
    var(--white);
  padding: 6rem 1rem 4rem;
}

.hero-inner { text-align: center; position: relative; z-index: 2; }

.hero-eyebrow {
  font-size: clamp(0.72rem, 2.4vw, 0.9rem);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.2rem;
}

.hero-frame {
  position: relative;
  display: inline-block;
  padding: clamp(2rem, 8vw, 4rem) clamp(2.5rem, 10vw, 6rem);
}

.frame-corner {
  position: absolute;
  width: clamp(34px, 9vw, 56px);
  color: var(--accent-dark);
}
.frame-corner.tl { top: 0; left: 0; }
.frame-corner.tr { top: 0; right: 0; }
.frame-corner.bl { bottom: 0; left: 0; }
.frame-corner.br { bottom: 0; right: 0; }

.hero-name {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(4.5rem, 19vw, 10rem);
  line-height: 1;
  color: var(--ink);
  text-shadow: 0 0 60px rgba(188, 207, 188, 0.55);
  animation: heroGlow 6s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% { text-shadow: 0 0 40px rgba(188, 207, 188, 0.4); }
  50%      { text-shadow: 0 0 80px rgba(188, 207, 188, 0.75); }
}

.hero-tagline {
  margin-top: 2rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 3.4vw, 1.4rem);
  color: var(--muted);
  letter-spacing: 0.12em;
}

.hero-branch {
  position: absolute;
  height: min(60vh, 420px);
  color: var(--accent);
  opacity: 0.7;
  animation: sway 9s ease-in-out infinite;
  pointer-events: none;
}
.hero-branch.left  { left: max(2vw, -20px); bottom: 0; transform-origin: bottom; }
.hero-branch.right { right: max(2vw, -20px); bottom: 0; transform-origin: bottom; animation-delay: -4.5s; }

@keyframes sway {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(2.2deg); }
}

.hero-scroll {
  display: inline-flex;
  margin-top: 3.4rem;
  width: 26px; height: 44px;
  border: 1.4px solid var(--accent-dark);
  border-radius: 999px;
  justify-content: center;
}

.hero-scroll span {
  width: 3px; height: 9px;
  border-radius: 3px;
  background: var(--accent-dark);
  margin-top: 7px;
  animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ==========================================================
   SECTIONS — shared
   ========================================================== */
.section { padding: clamp(4.5rem, 12vw, 8rem) 0; position: relative; }

.section-eyebrow {
  text-align: center;
  font-size: 0.74rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  text-align: center;
  font-size: clamp(2rem, 6.5vw, 3.2rem);
  color: var(--ink);
  letter-spacing: 0.02em;
}

.section-title.light { color: var(--ink); }

.leaf-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.2rem auto 2.6rem;
  color: var(--accent-dark);
}

.leaf-divider svg { width: 22px; height: 22px; }
.leaf-divider span {
  height: 1px;
  width: clamp(46px, 14vw, 90px);
  background: linear-gradient(90deg, transparent, var(--accent));
}
.leaf-divider span:last-child {
  background: linear-gradient(90deg, var(--accent), transparent);
}

/* ---------- Invitation message ---------- */
.invitation {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(188, 207, 188, 0.28) 0%, transparent 70%),
    var(--light);
  border-top: 1px solid rgba(188, 207, 188, 0.5);
  border-bottom: 1px solid rgba(188, 207, 188, 0.5);
}

.invitation-text {
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 4vw, 1.7rem);
  font-weight: 400;
  line-height: 1.85;
  color: var(--ink);
}

/* ---------- Event details ---------- */
.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  max-width: 900px;
  margin-inline: auto;
}

.detail-card {
  background: var(--white);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 2.6rem 1.4rem 2.2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s;
}

.detail-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-dark);
}

.detail-icon {
  width: 40px; height: 40px;
  margin: 0 auto 1.1rem;
  color: var(--accent-dark);
  display: block;
}

.detail-card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.detail-card p {
  font-family: var(--serif);
  font-size: 1.45rem;
  color: var(--ink);
}

/* ---------- Countdown ---------- */
.countdown-section {
  background:
    radial-gradient(ellipse at 50% 120%, rgba(188, 207, 188, 0.5) 0%, transparent 65%),
    var(--light);
  border-top: 1px solid rgba(188, 207, 188, 0.5);
  border-bottom: 1px solid rgba(188, 207, 188, 0.5);
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.4rem, 2vw, 1.4rem);
  flex-wrap: nowrap;
}

.count-box {
  background: var(--white);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  min-width: clamp(68px, 20vw, 120px);
  padding: clamp(0.9rem, 3vw, 1.6rem) 0.4rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.count-num {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 8vw, 3.4rem);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  transition: transform 0.3s var(--ease);
}

.count-num.tick { transform: scale(1.12); }

.count-label {
  display: block;
  margin-top: 0.5rem;
  font-size: clamp(0.58rem, 1.8vw, 0.72rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.count-sep {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 5vw, 2.4rem);
  color: var(--accent-dark);
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.9rem, 2.5vw, 1.6rem);
  max-width: 1080px;
  margin-inline: auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  box-shadow: var(--shadow);
  background:
    linear-gradient(135deg, var(--light), rgba(188, 207, 188, 0.45));
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.gallery-item { aspect-ratio: 3 / 4; }

/* Editorial stagger — every other photo sits slightly lower */
.gallery-item:nth-child(even) { margin-top: 2.4rem; }

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.gallery-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.gallery-item:hover img { transform: scale(1.06); }

/* Elegant placeholder if the photo file is missing */
.gallery-item.no-img::after {
  content: "L";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--script);
  font-size: 5rem;
  color: var(--accent-dark);
  opacity: 0.8;
}
.gallery-item.no-img img { display: none; }

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  max-width: 560px;
  margin-inline: auto;
  position: relative;
  padding-left: 2.4rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 8px; bottom: 8px;
  width: 1.6px;
  background: linear-gradient(var(--accent), var(--accent-dark), var(--accent));
}

.timeline-item {
  position: relative;
  padding-bottom: 2.2rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -2.4rem;
  top: 6px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--white);
  border: 1.6px solid var(--accent-dark);
  box-shadow: 0 0 0 5px var(--white), 0 0 0 6px rgba(188, 207, 188, 0.6);
}

.timeline-dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-card {
  background: var(--white);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.3rem 1.6rem;
  box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.timeline-card:hover { transform: translateX(6px); box-shadow: var(--shadow-hover); }

.timeline-card h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
}

.timeline-card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Location ---------- */
.location-card {
  max-width: 760px;
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--accent);
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-placeholder {
  height: clamp(180px, 34vw, 260px);
  background: var(--light);
}

.map-placeholder svg { width: 100%; height: 100%; }

.location-info {
  text-align: center;
  padding: 2.2rem 1.5rem 2.6rem;
}

.location-info h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.location-info p { color: var(--muted); margin-bottom: 1.6rem; }

/* ---------- Wishes ---------- */
.wishes {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(188, 207, 188, 0.3) 0%, transparent 60%),
    var(--light);
  border-top: 1px solid rgba(188, 207, 188, 0.5);
}

.wish-form {
  max-width: 560px;
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--accent);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(1.6rem, 5vw, 2.6rem);
  box-shadow: var(--shadow);
}

.form-row { margin-bottom: 1.3rem; }

.form-row label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 4px rgba(188, 207, 188, 0.3);
}

.form-row input.invalid,
.form-row textarea.invalid { border-color: #d3a4a4; }

.form-error {
  color: #a15656;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  text-align: center;
}

.wish-form .btn { width: 100%; }

.wish-list {
  max-width: 560px;
  margin: 2.4rem auto 0;
  display: grid;
  gap: 1rem;
}

.wish-card {
  background: var(--white);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  box-shadow: var(--shadow);
  animation: wishIn 0.6s var(--ease) both;
}

@keyframes wishIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wish-card .wish-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
}

.wish-card .wish-msg {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  margin-top: 0.2rem;
}

.wish-empty {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 3.4rem 1rem 3rem;
  background: var(--white);
  border-top: 1px solid rgba(188, 207, 188, 0.5);
}

.footer-leaf { width: 26px; height: 26px; color: var(--accent-dark); }

.footer-name {
  font-family: var(--script);
  font-size: 2.6rem;
  color: var(--ink);
  margin-top: 0.4rem;
}

.footer-note {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ==========================================================
   MUSIC BUTTON
   ========================================================== */
.music-btn {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 65;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--accent-dark);
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

.music-btn:hover { transform: scale(1.08); box-shadow: var(--shadow-hover); }

.music-btn .icon-note { width: 22px; height: 22px; }

.music-btn .music-waves {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  display: none;
}

.music-btn.playing .music-waves { display: block; }

.music-btn .music-waves i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--accent-dark);
  opacity: 0;
  animation: wave 2.2s ease-out infinite;
}
.music-btn .music-waves i:nth-child(2) { animation-delay: 0.7s; }
.music-btn .music-waves i:nth-child(3) { animation-delay: 1.4s; }

@keyframes wave {
  0%   { transform: scale(0.85); opacity: 0.8; }
  100% { transform: scale(1.7); opacity: 0; }
}

.music-btn.playing .icon-note { animation: noteBob 1.4s ease-in-out infinite; }

@keyframes noteBob {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(-10deg) translateY(-1px); }
}

/* ==========================================================
   SCROLL REVEAL
   ========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

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

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 820px) {
  .details-grid { grid-template-columns: 1fr; max-width: 420px; }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 560px;
  }
}

@media (max-width: 760px) {
  /* Hamburger menu */
  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    inset: 0;
    z-index: 65;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0.45s;
  }

  .nav-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }

  .nav-menu a {
    font-size: 1rem;
    letter-spacing: 0.3em;
    font-family: var(--serif);
    text-transform: uppercase;
  }

  .countdown { flex-wrap: wrap; gap: 0.7rem; }
  .count-sep { display: none; }
  .count-box { min-width: calc(50% - 1rem); flex: 1 1 calc(50% - 1rem); max-width: 150px; }

  .hero-branch { height: min(44vh, 300px); opacity: 0.55; }
  .music-btn { right: 0.9rem; bottom: 0.9rem; width: 46px; height: 46px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; max-width: 380px; }
  .gallery-item:nth-child(even) { margin-top: 0; }
}
