:root {
  --bg-1: #120814;
  --bg-2: #23102b;
  --bg-3: #411432;
  --wine: #6d163b;
  --rose: #ff6f91;
  --pink: #ffb3c7;
  --soft-white: #fff8fb;
  --gold: #e4bf6a;
  --glass: rgba(255, 255, 255, 0.11);
  --glass-strong: rgba(255, 255, 255, 0.16);
  --border: rgba(255, 255, 255, 0.18);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: var(--soft-white);
  background:
    radial-gradient(circle at top, rgba(255, 111, 145, 0.22), transparent 25%),
    radial-gradient(circle at bottom right, rgba(228, 191, 106, 0.15), transparent 28%),
    linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 44%, var(--bg-3) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
  pointer-events: none;
  opacity: 0.35;
  z-index: 0;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

#app-shell,
.intro-screen,
.background-stage {
  position: relative;
  z-index: 1;
}

.background-stage {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-layer,
.stars,
.glow {
  position: absolute;
  inset: 0;
}

.stars {
  background-image:
    radial-gradient(2px 2px at 18px 18px, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1.5px 1.5px at 120px 80px, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(1px 1px at 220px 160px, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(2px 2px at 300px 40px, rgba(255, 255, 255, 0.85), transparent);
  background-size: 360px 260px;
  opacity: 0.35;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
  animation: starsDrift 100s linear infinite;
}

.glow {
  filter: blur(60px);
  opacity: 0.45;
  mix-blend-mode: screen;
}

.glow-a {
  background: radial-gradient(circle, rgba(255, 111, 145, 0.4), transparent 55%);
  top: -10%;
  left: -15%;
}

.glow-b {
  background: radial-gradient(circle, rgba(228, 191, 106, 0.25), transparent 58%);
  bottom: -20%;
  right: -10%;
}

.glow-c {
  background: radial-gradient(circle, rgba(177, 107, 255, 0.18), transparent 58%);
  top: 20%;
  right: 20%;
}

#app-shell {
  width: 100%;
  max-width: 100%;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.app-shell.is-hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.section {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  padding: 96px 0;
}

.glass {
  background: linear-gradient(180deg, var(--glass-strong), var(--glass));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.topbar {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: linear-gradient(145deg, rgba(255, 111, 145, 0.35), rgba(228, 191, 106, 0.25));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.brand-kicker,
.eyebrow,
.section-copy,
.intro-text,
.timeline-content p,
.reason-back p,
.letter-body p,
.final-copy,
.gallery-subtitle {
  color: rgba(255, 248, 251, 0.84);
}

.brand h1,
.section-heading h2,
.hero h2,
.hero h3,
.final-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  margin: 0;
  line-height: 0.94;
}

.brand h1 {
  font-size: clamp(1.2rem, 2vw, 1.75rem);
}

.brand-kicker {
  margin: 0 0 6px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.topnav a {
  color: rgba(255, 248, 251, 0.88);
  font-size: 0.94rem;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.topnav a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: center;
  padding-top: 56px;
}

.hero-card,
.counter-section,
.final-section {
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 44px);
}

.hero-card {
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: '';
  position: absolute;
  inset: auto -12% -55% auto;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 111, 145, 0.18), transparent 62%);
  filter: blur(10px);
  pointer-events: none;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}

.hero h2 {
  font-size: clamp(3rem, 8vw, 5.8rem);
  color: var(--soft-white);
}

.hero h3 {
  margin-top: 18px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--pink);
}

.typewriter {
  min-height: 2.4em;
  margin: 20px 0 28px;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.8;
  color: rgba(255, 248, 251, 0.9);
  max-width: 56ch;
}

.typewriter::after {
  content: '|';
  margin-left: 4px;
  color: var(--gold);
  animation: caret 1s step-end infinite;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.btn:hover::before {
  transform: translateX(120%);
}

.btn:hover {
  transform: translateY(-3px) scale(1.01);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #ef5d86, #d4516f 58%, #a73556);
  box-shadow: 0 18px 36px rgba(212, 81, 111, 0.32);
}

.btn-secondary {
  color: var(--soft-white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.mini-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mini-badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 248, 251, 0.82);
  font-size: 0.84rem;
}

.hero-visual {
  min-height: 440px;
  display: grid;
  place-items: center;
  position: relative;
}

.heart-frame {
  width: min(360px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 60%, transparent 75%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.heart-frame::before,
.heart-frame::after {
  content: '';
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px dashed rgba(228, 191, 106, 0.3);
  animation: spinSlow 24s linear infinite;
}

.heart-frame::after {
  inset: 18%;
  border-style: solid;
  border-color: rgba(255, 111, 145, 0.22);
  animation-direction: reverse;
}

.heart-heart {
  font-size: clamp(5rem, 12vw, 8rem);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.28));
  animation: floatY 4.8s ease-in-out infinite;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(3px);
  opacity: 0.75;
}

.orb-one {
  width: 120px;
  height: 120px;
  top: 8%;
  right: 12%;
  background: radial-gradient(circle, rgba(255, 111, 145, 0.8), transparent 65%);
  animation: drift 10s ease-in-out infinite;
}

.orb-two {
  width: 160px;
  height: 160px;
  bottom: 14%;
  left: 0;
  background: radial-gradient(circle, rgba(228, 191, 106, 0.55), transparent 65%);
  animation: drift 12s ease-in-out infinite reverse;
}

.orb-three {
  width: 90px;
  height: 90px;
  bottom: 10%;
  right: 12%;
  background: radial-gradient(circle, rgba(173, 113, 255, 0.45), transparent 65%);
  animation: drift 8s ease-in-out infinite;
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading h2,
.final-section h2 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}

.section-copy {
  max-width: 70ch;
  line-height: 1.8;
  margin: 0 0 26px;
}

.counter-section {
  position: relative;
  overflow: hidden;
}

.counter-section::before {
  content: '';
  position: absolute;
  inset: -20% auto auto -10%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 111, 145, 0.18), transparent 60%);
  pointer-events: none;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.counter-card {
  border-radius: 24px;
  padding: 22px 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.counter-card span {
  display: block;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--gold);
}

.counter-card small {
  color: rgba(255, 248, 251, 0.82);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.timeline {
  position: relative;
  display: grid;
  gap: 26px;
  margin-top: 34px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--gold), rgba(255, 255, 255, 0.12));
}

.timeline-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: start;
}

.timeline-dot {
  width: 18px;
  height: 18px;
  margin: 14px 0 0 13px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold), var(--rose));
  box-shadow: 0 0 0 8px rgba(228, 191, 106, 0.12);
}

.timeline-content {
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.timeline-step {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  margin-bottom: 10px;
  color: #2a0f20;
  font-weight: 800;
  background: linear-gradient(135deg, #ffd9e2, #fff3c9);
}

.timeline-content h3 {
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.gallery-item {
  border-radius: 28px;
  overflow: hidden;
  grid-column: span 4;
  min-height: 260px;
  transform-style: preserve-3d;
}

.gallery-trigger {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(7, 3, 8, 0.82) 100%);
  z-index: 1;
}

.gallery-labels {
  position: absolute;
  inset: auto 18px 18px;
  z-index: 2;
}

.gallery-title {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.gallery-subtitle {
  display: block;
  margin-top: 4px;
  font-size: 0.92rem;
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  perspective: 1400px;
}

.reason-card {
  position: relative;
  aspect-ratio: 3 / 4;
  cursor: pointer;
}

.reason-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.75s cubic-bezier(.2,.7,.2,1);
}

.reason-card.is-flipped .reason-inner {
  transform: rotateY(180deg);
}

.reason-face {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 18px;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.reason-front {
  gap: 8px;
}

.reason-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
}

.reason-front p {
  margin: 0;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.reason-back {
  transform: rotateY(180deg);
  padding: 24px;
}

.reason-back p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
}

.envelope-wrap {
  display: grid;
  justify-items: center;
  gap: 26px;
}

.envelope {
  width: min(440px, 100%);
  aspect-ratio: 1.4 / 1;
  border: 0;
  background: transparent;
  position: relative;
  cursor: pointer;
  transform-style: preserve-3d;
  perspective: 1200px;
}

.envelope-back,
.envelope-front,
.envelope-flap {
  position: absolute;
  inset: 0;
  border-radius: 24px;
}

.envelope-back {
  background: linear-gradient(145deg, #86294a, #5b1534);
  box-shadow: var(--shadow);
}

.envelope-front {
  clip-path: polygon(0 100%, 50% 48%, 100% 100%, 100% 100%, 0 100%);
  background: linear-gradient(145deg, #f1b7c7, #c96b88);
}

.envelope-flap {
  clip-path: polygon(0 0, 50% 55%, 100% 0);
  background: linear-gradient(145deg, #ffdbe5, #d77a98);
  transform-origin: top;
  transition: transform 0.6s ease;
}

.envelope.is-open .envelope-flap {
  transform: rotateX(180deg);
}

.seal {
  width: 64px;
  height: 64px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -10%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.6rem;
  background: linear-gradient(145deg, var(--rose), #ad3d63);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.22);
}

.letter {
  width: min(760px, 100%);
  border-radius: 30px;
  padding: clamp(22px, 4vw, 38px);
  transform: translateY(26px) scale(0.98);
  opacity: 0;
  transition: transform 0.7s ease, opacity 0.7s ease;
}

.envelope.is-open + .letter {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.letter-title,
.letter-signature {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  margin: 0 0 18px;
  color: var(--pink);
}

.letter-body {
  display: grid;
  gap: 14px;
  line-height: 1.9;
}

.final-section {
  margin-bottom: 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-section::before {
  content: '';
  position: absolute;
  inset: auto 50% -110px;
  width: 280px;
  height: 280px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 111, 145, 0.25), transparent 65%);
  filter: blur(8px);
}

.final-copy {
  margin: 0;
  font-size: 1.2rem;
}

.final-pulse {
  width: 92px;
  height: 92px;
  margin: 28px auto 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 111, 145, 0.55), rgba(255, 111, 145, 0.1));
  box-shadow: 0 0 0 0 rgba(255, 111, 145, 0.35);
  animation: pulse 2.1s infinite;
}

.intro-screen {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at top, rgba(255, 111, 145, 0.12), rgba(15, 8, 17, 0.92) 60%);
  z-index: 999;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.intro-screen.is-out {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

.intro-card {
  width: min(640px, 100%);
  border-radius: 34px;
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.intro-card::before,
.intro-card::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 191, 106, 0.22), transparent 60%);
  filter: blur(10px);
}

.intro-card::before {
  width: 180px;
  height: 180px;
  top: -40px;
  left: -40px;
}

.intro-card::after {
  width: 220px;
  height: 220px;
  right: -60px;
  bottom: -80px;
}

.rose {
  width: 150px;
  height: 250px;
  margin: 0 auto 26px;
  position: relative;
  animation: floatY 4.8s ease-in-out infinite;
}

.rose-stem {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 10px;
  height: 150px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, #3e8f5a, #24573a);
}

.rose-leaf {
  position: absolute;
  width: 56px;
  height: 28px;
  bottom: 70px;
  border-radius: 0 100% 0 100%;
  background: linear-gradient(135deg, #3e8f5a, #1d4b32);
}

.rose-leaf-left {
  left: 18px;
  transform: rotate(-26deg);
}

.rose-leaf-right {
  right: 18px;
  transform: scaleX(-1) rotate(-26deg);
}

.rose-bloom {
  position: absolute;
  top: 24px;
  left: 50%;
  width: 120px;
  height: 120px;
  transform: translateX(-50%);
}

.rose-bloom span {
  position: absolute;
  inset: 0;
  border-radius: 50% 50% 45% 45%;
  background: radial-gradient(circle at 35% 35%, #ffb9cb, #de4f76 60%, #8b2144 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.rose-bloom span:nth-child(1) {
  transform: rotate(8deg) translate(-14px, 8px) scale(0.96);
}

.rose-bloom span:nth-child(2) {
  transform: rotate(-10deg) translate(14px, 4px) scale(0.9);
}

.rose-bloom span:nth-child(3) {
  transform: translateY(8px) scale(1.04);
  clip-path: path('M60 4C78 4 95 18 95 38C95 61 76 84 60 112C44 84 25 61 25 38C25 18 42 4 60 4Z');
}

.intro-text {
  margin: 0 0 20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 24px;
  background: rgba(6, 2, 8, 0.84);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.28s ease, transform 0.28s ease;
  z-index: 1000;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.lightbox img {
  width: min(980px, 100%);
  max-height: 76vh;
  object-fit: contain;
  border-radius: 26px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
}

.lightbox p {
  margin: 0;
  color: rgba(255, 248, 251, 0.86);
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.floating-layer .float-heart,
.floating-layer .float-petal,
.floating-layer .sparkle,
.floating-layer .mouse-heart {
  position: absolute;
  user-select: none;
  pointer-events: none;
}

.float-heart {
  color: rgba(255, 111, 145, 0.9);
  text-shadow: 0 0 18px rgba(255, 111, 145, 0.32);
  animation: fall linear forwards;
}

.float-petal {
  width: 16px;
  height: 12px;
  border-radius: 80% 0 80% 0;
  background: linear-gradient(145deg, rgba(255, 185, 203, 0.96), rgba(223, 103, 150, 0.55));
  transform: rotate(35deg);
  filter: drop-shadow(0 0 8px rgba(255, 185, 203, 0.24));
  animation: petalFall linear forwards;
}

.sparkle {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 248, 251, 0.95);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.9);
  animation: sparkle 4s linear infinite;
}

.mouse-heart {
  color: rgba(255, 111, 145, 0.92);
  font-size: 1rem;
  animation: mousePop 1s ease forwards;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

@keyframes drift {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); }
  50% { transform: translateY(-18px) translateX(12px) scale(1.08); }
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 22px rgba(255, 111, 145, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 111, 145, 0);
  }
}

@keyframes fall {
  0% {
    transform: translate3d(0, -10vh, 0) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 1; }
  100% {
    transform: translate3d(var(--drift, 0), 110vh, 0) rotate(220deg);
    opacity: 0;
  }
}

@keyframes petalFall {
  0% {
    transform: translate3d(0, -12vh, 0) rotate(0deg);
    opacity: 0;
  }
  15% { opacity: 1; }
  100% {
    transform: translate3d(var(--drift, 0), 112vh, 0) rotate(260deg);
    opacity: 0;
  }
}

@keyframes sparkle {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
  50% { transform: translateY(-8px) scale(1.35); opacity: 1; }
}

@keyframes mousePop {
  0% { transform: translateY(0) scale(0.7); opacity: 0.95; }
  100% { transform: translateY(-26px) scale(1.25); opacity: 0; }
}

@keyframes starsDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-120px, 90px, 0); }
}

@keyframes caret {
  50% { opacity: 0; }
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 320px;
  }

  .gallery-item {
    grid-column: span 6;
  }
}

@media (max-width: 760px) {
  .section,
  .topbar {
    width: min(var(--container), calc(100% - 24px));
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 20px;
  }

  .topnav {
    justify-content: flex-start;
    gap: 8px;
  }

  .topnav a {
    padding: 8px 12px;
    font-size: 0.86rem;
  }

  .section {
    padding: 72px 0;
  }

  .counter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-item {
    grid-column: span 12;
    min-height: 220px;
  }

  .timeline::before {
    left: 14px;
  }

  .timeline-item {
    grid-template-columns: 30px 1fr;
  }

  .timeline-dot {
    margin-left: 6px;
  }

  .envelope {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .hero h2 {
    font-size: clamp(2.4rem, 14vw, 4rem);
  }

  .hero h3 {
    font-size: clamp(1.5rem, 9vw, 2.4rem);
  }

  .counter-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}
