/* ══════════════════════════════════════════════
   Max & Cami — Styles
   ══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=DM+Sans:wght@400;500;600&display=swap');

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

:root {
  --bg: #0B0D1A;
  --bg2: #10132A;
  --card: rgba(255,255,255,.04);
  --card-border: rgba(255,255,255,.08);
  --text: #E8E0F0;
  --text-dim: #8B82A0;
  --accent: #D4889A;
  --accent2: #E8C170;
  --accent3: #B8A9D4;
  --accent4: #7EC8C8;
  --pink: #B06078;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ══ SKY ══ */
.sky {
  position: fixed; inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at 70% 20%, #151940 0%, #0B0D1A 60%, #080a14 100%);
}
.stars-layer, .stars-layer-2 {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,.3), transparent),
    radial-gradient(1.5px 1.5px at 50% 10%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 70% 40%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,.3), transparent);
  background-size: 200px 200px;
}
.stars-layer-2 {
  background-size: 300px 300px;
  opacity: .5;
}

/* Twinkle stars */
.twinkle-container {
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none;
}
.star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: twinkle var(--dur, 3s) ease-in-out infinite;
  opacity: var(--bright, .5);
}
@keyframes twinkle {
  0%, 100% { opacity: var(--bright, .5); transform: scale(1); }
  50% { opacity: .1; transform: scale(.5); }
}

/* Moon */
.moon {
  position: fixed;
  top: 8%; right: 12%;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f5f0e8 0%, #d4cfc4 80%);
  box-shadow:
    0 0 40px rgba(245,240,232,.2),
    0 0 80px rgba(245,240,232,.1),
    0 0 120px rgba(245,240,232,.05);
  z-index: 1;
}

/* Aurora */
.aurora {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 40vh;
  z-index: 0;
  pointer-events: none;
  opacity: .3;
}
.aurora-band {
  position: absolute;
  width: 200%;
  height: 100%;
  filter: blur(80px);
}
.aurora-band--1 {
  background: linear-gradient(90deg, transparent 0%, rgba(184,169,212,.15) 30%, rgba(126,200,200,.1) 60%, transparent 100%);
  animation: aurora1 25s ease-in-out infinite;
}
.aurora-band--2 {
  background: linear-gradient(90deg, transparent 0%, rgba(212,136,154,.1) 40%, rgba(232,193,112,.08) 70%, transparent 100%);
  animation: aurora2 30s ease-in-out infinite;
  top: 10%;
}
.aurora-band--3 {
  background: linear-gradient(90deg, transparent 0%, rgba(126,200,200,.08) 35%, rgba(184,169,212,.06) 65%, transparent 100%);
  animation: aurora3 35s ease-in-out infinite;
  top: -5%;
}
@keyframes aurora1 { 0%,100%{transform:translateX(-25%)} 50%{transform:translateX(0%)} }
@keyframes aurora2 { 0%,100%{transform:translateX(0%)} 50%{transform:translateX(-30%)} }
@keyframes aurora3 { 0%,100%{transform:translateX(-15%)} 50%{transform:translateX(-5%)} }

/* ══ SHOOTING STARS — all travel forward (left-to-right, top-left to bottom-right) ══ */
.shoot {
  position: fixed;
  width: 120px; height: 1.5px;
  background: linear-gradient(90deg, rgba(255,255,255,.7), transparent);
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  border-radius: 2px;
}
.shoot--1 {
  top: 15%; left: -120px;
  transform: rotate(15deg);
  animation: shootFwd1 8s 2s linear infinite;
}
.shoot--2 {
  top: 30%; left: -120px;
  transform: rotate(25deg);
  animation: shootFwd2 12s 5s linear infinite;
}
.shoot--3 {
  top: 10%; left: -120px;
  transform: rotate(10deg);
  animation: shootFwd3 10s 8s linear infinite;
}

@keyframes shootFwd1 {
  0%   { opacity: 0; transform: translate(0, 0) rotate(15deg); }
  2%   { opacity: 1; }
  15%  { opacity: 0; transform: translate(calc(100vw + 200px), 120px) rotate(15deg); }
  100% { opacity: 0; transform: translate(calc(100vw + 200px), 120px) rotate(15deg); }
}
@keyframes shootFwd2 {
  0%   { opacity: 0; transform: translate(0, 0) rotate(25deg); }
  2%   { opacity: 1; }
  12%  { opacity: 0; transform: translate(calc(100vw + 200px), 180px) rotate(25deg); }
  100% { opacity: 0; transform: translate(calc(100vw + 200px), 180px) rotate(25deg); }
}
@keyframes shootFwd3 {
  0%   { opacity: 0; transform: translate(0, 0) rotate(10deg); }
  2%   { opacity: 1; }
  10%  { opacity: 0; transform: translate(calc(100vw + 200px), 80px) rotate(10deg); }
  100% { opacity: 0; transform: translate(calc(100vw + 200px), 80px) rotate(10deg); }
}

/* Fireflies */
.fireflies {
  position: fixed; inset: 0;
  z-index: 1; pointer-events: none;
}
.fly {
  position: absolute;
  border-radius: 50%;
  animation: flyMove var(--dur, 8s) ease-in-out infinite;
  opacity: var(--bright, .3);
}
@keyframes flyMove {
  0%, 100% { transform: translate(0, 0); opacity: var(--bright, .3); }
  25% { transform: translate(var(--tx, 20px), var(--ty, -15px)); opacity: calc(var(--bright, .3) * 1.5); }
  50% { transform: translate(calc(var(--tx, 20px) * -0.5), calc(var(--ty, -15px) * 1.2)); opacity: var(--bright, .3); }
  75% { transform: translate(calc(var(--tx, 20px) * 0.8), calc(var(--ty, -15px) * -0.7)); opacity: calc(var(--bright, .3) * 1.3); }
}

/* ══ NAV ══ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  z-index: 100;
  transition: background .3s, backdrop-filter .3s;
}
.nav.scrolled {
  background: rgba(11,13,26,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  display: flex; align-items: center; gap: 6px;
}
.nav-logo svg { width: 16px; height: 16px; color: var(--accent); fill: var(--accent); }
.nav-right { display: flex; gap: 20px; }
.nav-right a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: .85rem;
  transition: color .3s;
}
.nav-right a:hover { color: var(--text); }

/* ══ HERO ══ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-flags {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.flag { font-size: 1.6rem; }
.flag-line {
  width: 40px; height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent3));
  opacity: .5;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.amp {
  font-style: italic;
  color: var(--accent);
  margin: 0 8px;
}
.tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--accent3);
  opacity: .85;
  margin-bottom: 16px;
}
.desc {
  max-width: 440px;
  color: var(--text-dim);
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: 28px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 1px solid var(--card-border);
  border-radius: 40px;
  color: var(--text);
  text-decoration: none;
  font-size: .9rem;
  transition: all .3s;
  background: rgba(255,255,255,.03);
}
.hero-cta:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.15);
}
.hero-cta svg { width: 16px; height: 16px; }

/* ══ SCROLL HINT — properly centered on all screens ══ */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: .4;
  animation: scrollBounce 2.5s ease-in-out infinite;
}
.scroll-hint span {
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.scroll-arrow {
  width: 1px;
  height: 24px;
  background: linear-gradient(to bottom, var(--text-dim), transparent);
  position: relative;
}
.scroll-arrow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 6px; height: 6px;
  border-right: 1px solid var(--text-dim);
  border-bottom: 1px solid var(--text-dim);
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* Secret star egg */
.secret-star {
  position: absolute;
  top: 12%; right: 18%;
  width: 36px; height: 36px;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.secret-star::before {
  content: '\2726';
  font-size: 12px;
  color: rgba(232,193,112,.4);
  animation: secretPulse 4s ease-in-out infinite;
}
@keyframes secretPulse {
  0%, 100% { opacity: .3; }
  50% { opacity: .7; }
}

/* ══ BOND SECTION ══ */
.bond {
  position: relative;
  z-index: 2;
  padding: 100px 24px 60px;
  max-width: 1000px;
  margin: 0 auto;
}
.section-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s ease, transform .8s ease;
}
.section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.bond-header {
  text-align: center;
  margin-bottom: 50px;
}
.bond-label {
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 12px;
}
.bond-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 400;
  margin-bottom: 14px;
}
.bond-sub {
  color: var(--text-dim);
  font-size: .95rem;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}
.secret-word {
  color: var(--accent4);
  cursor: pointer;
  border-bottom: 1px dashed rgba(126,200,200,.3);
  transition: color .3s;
  padding: 4px 2px;
  -webkit-tap-highlight-color: transparent;
}
.secret-word:hover { color: var(--accent); }

/* Bond Grid */
.bond-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}
.bond-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px 24px;
  transition: transform .3s, border-color .3s;
}
.bond-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.12);
}
.bond-emoji {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 12px;
}
.bond-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.bond-card p {
  color: var(--text-dim);
  font-size: .88rem;
  line-height: 1.65;
}

/* ══ DISTANCE RIBBON ══ */
.distance-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 36px 24px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}
.d-stat { text-align: center; min-width: 100px; }
.d-num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 600;
  color: var(--accent2);
  cursor: pointer;
  padding: 4px 8px;
  -webkit-tap-highlight-color: transparent;
}
.d-label {
  font-size: .78rem;
  color: var(--text-dim);
  margin-top: 4px;
  letter-spacing: .05em;
}
.d-divider {
  width: 1px;
  height: 36px;
  background: var(--card-border);
}

/* Bond Quote */
.bond-quote {
  text-align: center;
  padding: 20px 0 40px;
}
.bond-quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: var(--text);
  opacity: .8;
  max-width: 520px;
  margin: 0 auto 10px;
  line-height: 1.6;
}
.attr {
  font-size: .8rem;
  color: var(--text-dim);
}

/* ══ ENVELOPE SECTION ══ */
.envelope-section {
  position: relative;
  z-index: 2;
  padding: 80px 24px 100px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.env-label {
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 12px;
}
.env-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 400;
  margin-bottom: 8px;
}
.env-hint {
  font-size: .82rem;
  color: var(--text-dim);
  margin-bottom: 36px;
}

/* ══ REALISTIC ENVELOPE ══ */
.env-wrap {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.envelope-3d {
  position: relative;
  width: 320px;
  height: 220px;
  transition: transform .4s cubic-bezier(.25,.46,.45,.94);
}
.envelope-3d:hover {
  transform: translateY(-8px) rotate(-1deg);
}
.envelope-3d:active {
  transform: translateY(-3px) scale(.98);
}

/* Realistic shadow — soft, spread, like sitting on a surface */
.env-shadow {
  position: absolute;
  bottom: -12px;
  left: 8%;
  right: 8%;
  height: 24px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.35) 0%, rgba(0,0,0,.12) 50%, transparent 80%);
  filter: blur(8px);
  z-index: 0;
  transition: all .4s;
}
.envelope-3d:hover .env-shadow {
  bottom: -18px;
  filter: blur(12px);
  opacity: .7;
}

/* ── ENVELOPE BODY ── */
.env-body {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(175deg,
      #f7f0e3 0%,
      #f2eadb 15%,
      #ede2d0 40%,
      #e8dbc6 65%,
      #e3d5be 85%,
      #dfd0b8 100%
    );
  border-radius: 4px;
  z-index: 2;
  overflow: hidden;
  /* Subtle paper-like border */
  box-shadow:
    0 1px 0 rgba(0,0,0,.08),
    0 -1px 0 rgba(255,255,255,.4) inset,
    0 0 0 1px rgba(0,0,0,.06);
}

/* Canvas grain texture — generated via JS for real paper feel */
.env-grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .12;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Diagonal fold lines — the real V-crease on envelopes */
.env-fold-left,
.env-fold-right {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}
.env-fold-left::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    to bottom right,
    transparent 49.3%,
    rgba(0,0,0,.04) 49.5%,
    rgba(0,0,0,.06) 50%,
    rgba(255,255,255,.08) 50.5%,
    transparent 51%
  );
}
.env-fold-right::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    to bottom left,
    transparent 49.3%,
    rgba(0,0,0,.04) 49.5%,
    rgba(0,0,0,.06) 50%,
    rgba(255,255,255,.08) 50.5%,
    transparent 51%
  );
}

/* Bottom edge — thicker paper illusion */
.env-edge-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to bottom, rgba(0,0,0,.04), rgba(0,0,0,.1));
  z-index: 4;
}

/* Inner liner peek — colored pattern visible at top */
.env-liner-peek {
  position: absolute;
  top: 0; left: 1px; right: 1px;
  height: 8px;
  background: linear-gradient(90deg,
    #c9a0b0 0%, #b8a0c8 20%, #a8b8c8 40%, #c0b0d0 60%, #c8a0b8 80%, #b8a8c0 100%
  );
  opacity: .5;
  z-index: 4;
  border-radius: 3px 3px 0 0;
}

/* ── ADDRESS ── */
.env-address {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  text-align: center;
}
.env-address-to {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 400;
  color: #3d3555;
  margin-bottom: 10px;
  letter-spacing: .03em;
  /* Simulate ink on paper */
  text-shadow: 0 0 1px rgba(61,53,85,.15);
}
.env-address-line {
  width: 100px;
  height: 1px;
  background: rgba(61,53,85,.12);
  margin: 0 auto 6px;
}
.env-address-line--2 {
  width: 70px;
}

/* ── STAMP ── */
.env-real-stamp {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 5;
}
.env-stamp-border {
  width: 40px;
  height: 48px;
  background: #f8f4f0;
  /* Perforated stamp edges */
  mask-image: radial-gradient(circle at 0 0, transparent 2px, black 2.5px),
              radial-gradient(circle at 100% 0, transparent 2px, black 2.5px),
              radial-gradient(circle at 0 100%, transparent 2px, black 2.5px),
              radial-gradient(circle at 100% 100%, transparent 2px, black 2.5px);
  mask-size: 10px 10px;
  mask-repeat: repeat;
  -webkit-mask-image: radial-gradient(circle at 0 0, transparent 2px, black 2.5px),
              radial-gradient(circle at 100% 0, transparent 2px, black 2.5px),
              radial-gradient(circle at 0 100%, transparent 2px, black 2.5px),
              radial-gradient(circle at 100% 100%, transparent 2px, black 2.5px);
  -webkit-mask-size: 10px 10px;
  -webkit-mask-repeat: repeat;
  padding: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.env-stamp-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(150deg, #e8d8e8 0%, #d8c8e0 50%, #c8b8d8 100%);
  border-radius: 1px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.env-stamp-inner span {
  font-size: 1rem;
  color: #8a6090;
  line-height: 1;
}
.env-stamp-text {
  font-size: .35rem;
  font-weight: 600;
  letter-spacing: .15em;
  color: #8a6090;
  text-transform: uppercase;
}

/* ── TOP FLAP ── */
.env-flap {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 55%;
  background:
    linear-gradient(178deg,
      #f2eadc 0%,
      #ede3d2 30%,
      #e6d9c6 70%,
      #e0d2bc 100%
    );
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  transform-origin: top center;
  transition: transform .7s cubic-bezier(.4, 0, .2, 1);
  z-index: 6;
  overflow: hidden;
}
.env-grain--flap {
  opacity: .1;
}
/* Shadow cast by the flap onto the body */
.env-flap-shadow {
  position: absolute;
  bottom: 0;
  left: 15%;
  right: 15%;
  height: 20px;
  background: linear-gradient(to top, rgba(0,0,0,.06) 0%, transparent 100%);
  clip-path: polygon(0 100%, 50% 0%, 100% 100%);
  pointer-events: none;
}
/* Fold crease on flap */
.env-flap-fold {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100%;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(255,255,255,.12) 2%,
    transparent 4%,
    transparent 100%
  );
  pointer-events: none;
}
.env-flap.open {
  transform: rotateX(180deg);
}

/* ── WAX SEAL ── */
.env-seal {
  position: absolute;
  top: 43%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  transition: all .4s cubic-bezier(.4, 0, .2, 1);
}
/* Outer ring — the irregular wax spread */
.env-seal-outer {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%,
    #c4475e 0%,
    #a83850 30%,
    #8c2c42 60%,
    #721f35 100%
  );
  box-shadow:
    0 3px 10px rgba(114,31,53,.5),
    0 1px 3px rgba(0,0,0,.25),
    inset 0 -3px 6px rgba(0,0,0,.2),
    inset 0 2px 4px rgba(255,200,200,.12);
  position: relative;
}
/* Inner stamped area */
.env-seal-inner {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Pressed-in effect */
  box-shadow: inset 0 1px 3px rgba(0,0,0,.2);
}
.env-seal-inner svg {
  width: 15px; height: 15px;
  color: rgba(255,220,220,.7);
  fill: rgba(255,220,220,.5);
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.2));
}
/* Light reflection on wax */
.env-seal-shine {
  position: absolute;
  top: 4px; left: 6px;
  width: 12px; height: 7px;
  background: radial-gradient(ellipse, rgba(255,255,255,.2) 0%, transparent 80%);
  border-radius: 50%;
  transform: rotate(-20deg);
}
/* Small wax drips for organic realism */
.env-seal-drip {
  position: absolute;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}
.env-seal-drip--1 {
  width: 8px; height: 6px;
  background: #9a3048;
  bottom: -2px; left: 6px;
  transform: rotate(15deg);
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.env-seal-drip--2 {
  width: 6px; height: 5px;
  background: #8c2c42;
  bottom: -1px; right: 8px;
  transform: rotate(-10deg);
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.env-seal-drip--3 {
  width: 5px; height: 4px;
  background: #a03550;
  top: -1px; right: 4px;
  transform: rotate(5deg);
  box-shadow: 0 1px 1px rgba(0,0,0,.15);
}

.env-seal.broken {
  transform: translateX(-50%) scale(.4) rotate(20deg);
  opacity: 0;
}

/* ══ LETTER OVERLAY ══ */
.letter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s;
}
.letter-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.letter {
  position: relative;
  background: linear-gradient(160deg, #1e1a35 0%, #15122a 100%);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 40px 36px;
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(30px);
  transition: transform .4s ease;
}
.letter-overlay.show .letter {
  transform: translateY(0);
}
.letter-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: 1px solid var(--card-border);
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dim);
  transition: all .3s;
}
.letter-close:hover { color: var(--text); border-color: rgba(255,255,255,.2); }
.letter-close svg { width: 16px; height: 16px; }
.letter-from {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--accent);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.letter-from svg { width: 14px; height: 14px; }
.letter h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 18px;
}
.letter p {
  color: var(--text-dim);
  font-size: .92rem;
  line-height: 1.75;
  margin-bottom: 16px;
}
.sign {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sign-sub {
  font-size: .82rem;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 4px;
}
.letter-deco {
  position: absolute;
  bottom: 20px; right: 24px;
  opacity: .06;
}
.letter-deco svg { width: 60px; height: 60px; }

/* ══ CONFETTI ══ */
#confetti {
  position: fixed;
  inset: 0;
  z-index: 210;
  pointer-events: none;
}

/* ══ EGGS ══ */
.egg-bg {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 180;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.egg-bg.show { opacity: 1; pointer-events: auto; }

.egg {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.9);
  background: linear-gradient(160deg, #1e1a35 0%, #15122a 100%);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 36px 30px;
  max-width: 420px;
  width: calc(100% - 40px);
  max-height: calc(100vh - 80px);
  max-height: calc(100dvh - 80px);
  overflow-y: auto;
  z-index: 190;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  text-align: center;
  -webkit-overflow-scrolling: touch;
}
.egg.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.egg-x {
  position: sticky;
  top: 0; right: 0;
  float: right;
  background: rgba(30,26,53,.9);
  border: 1px solid var(--card-border);
  border-radius: 50%;
  width: 32px; height: 32px;
  min-width: 32px; min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dim);
  z-index: 5;
  transition: color .3s, border-color .3s;
}
.egg-x:hover { color: var(--text); border-color: rgba(255,255,255,.2); }
.egg-x:active { transform: scale(.92); }
.egg-x svg { width: 14px; height: 14px; }
.egg-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent4);
  margin-bottom: 14px;
  clear: both;
}
.egg-tag svg { width: 12px; height: 12px; }
.egg h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.egg-msg {
  color: var(--text-dim);
  font-size: .88rem;
  line-height: 1.7;
  margin-bottom: 16px;
}
.egg-sign {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
  font-size: .95rem;
}

/* ══ FOOTER ══ */
footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 50px 24px 40px;
  border-top: 1px solid var(--card-border);
}
.footer-flags {
  font-size: 1.4rem;
  display: block;
  margin-bottom: 10px;
}
footer p {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.made-with {
  font-size: .78rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.made-with svg { width: 12px; height: 12px; color: var(--accent); fill: var(--accent); }

/* ══ MOBILE RESPONSIVE ══ */
@media (max-width: 768px) {
  .nav { padding: 12px 18px; }
  .nav-right a { font-size: .78rem; }
  .nav-right { gap: 14px; }

  .hero { padding: 0 20px; }
  .hero h1 { font-size: clamp(2.4rem, 10vw, 3.5rem); }
  .desc { font-size: .9rem; max-width: 340px; }

  .bond { padding: 60px 18px 40px; }
  .bond-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .bond-card { padding: 22px 20px; }
  .bond-header { margin-bottom: 36px; }
  .bond-sub { font-size: .88rem; }

  .distance-ribbon {
    flex-direction: column;
    gap: 20px;
    padding: 28px 18px;
  }
  .d-divider { display: none; }

  .envelope-section { padding: 60px 18px 80px; }

  .envelope-3d { width: 280px; height: 192px; }
  .env-address-to { font-size: 1.35rem; }
  .env-seal-outer { width: 46px; height: 46px; }
  .env-seal-inner { width: 32px; height: 32px; }

  .letter { padding: 30px 22px; }
  .letter h3 { font-size: 1.3rem; }
  .letter p { font-size: .88rem; }

  .egg {
    padding: 28px 22px;
    width: calc(100% - 32px);
    max-height: calc(100vh - 60px);
    max-height: calc(100dvh - 60px);
    border-radius: 16px;
  }
  .egg h4 { font-size: 1.15rem; }
  .egg-msg { font-size: .85rem; line-height: 1.65; }
  .egg-x { width: 36px; height: 36px; min-width: 36px; min-height: 36px; }
  .egg-x svg { width: 16px; height: 16px; }

  .bond-quote blockquote { font-size: 1rem; padding: 0 8px; }

  .secret-star { top: 10%; right: 14%; width: 28px; height: 28px; }

  .moon { width: 45px; height: 45px; top: 6%; right: 8%; }
}

@media (max-width: 480px) {
  .nav { padding: 10px 14px; }
  .nav-logo { font-size: 1.05rem; }
  .nav-right { gap: 10px; }
  .nav-right a { font-size: .72rem; }

  .hero { padding: 0 16px; min-height: 100svh; }
  .hero h1 { font-size: 2.4rem; }
  .tagline { font-size: .95rem; }
  .desc { font-size: .85rem; max-width: 300px; }
  .hero-cta { padding: 10px 22px; font-size: .85rem; }
  .flag { font-size: 1.4rem; }
  .flag-line { width: 28px; }

  .bond { padding: 50px 14px 36px; }
  .bond-title { font-size: 1.6rem; }
  .bond-card { padding: 20px 18px; }
  .bond-emoji { font-size: 1.5rem; }
  .bond-card h3 { font-size: 1.05rem; }
  .bond-card p { font-size: .84rem; }

  .distance-ribbon { padding: 22px 14px; gap: 16px; }
  .d-num { font-size: 1.5rem; }
  .d-label { font-size: .72rem; }

  .envelope-section { padding: 50px 14px 70px; }
  .env-title { font-size: 1.6rem; }

  .envelope-3d { width: 240px; height: 165px; }
  .env-address-to { font-size: 1.2rem; }
  .env-address-line { width: 80px; }
  .env-address-line--2 { width: 55px; }
  .env-real-stamp { top: 12px; right: 12px; }
  .env-stamp-border { width: 34px; height: 40px; }
  .env-seal-outer { width: 42px; height: 42px; }
  .env-seal-inner { width: 28px; height: 28px; }
  .env-seal-inner svg { width: 12px; height: 12px; }

  .letter { padding: 26px 18px; border-radius: 16px; max-height: 80vh; max-height: 80dvh; }
  .letter h3 { font-size: 1.2rem; }
  .letter p { font-size: .85rem; line-height: 1.7; }
  .letter-from { font-size: .72rem; }
  .letter-close { width: 28px; height: 28px; top: 12px; right: 12px; }

  .egg {
    padding: 24px 18px;
    width: calc(100% - 24px);
    border-radius: 14px;
  }
  .egg h4 { font-size: 1.1rem; }
  .egg-msg { font-size: .82rem; line-height: 1.6; margin-bottom: 14px; }
  .egg-tag { font-size: .68rem; margin-bottom: 12px; }
  .egg-sign { font-size: .9rem; }

  footer { padding: 40px 16px 32px; }
  footer p { font-size: 1rem; }
  .footer-flags { font-size: 1.2rem; }

  .scroll-hint { bottom: 24px; }
  .scroll-hint span { font-size: .65rem; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 2rem; }
  .flag { font-size: 1.2rem; }
  .nav-logo { font-size: 1rem; }
  .nav-right a { font-size: .68rem; }
  .nav-right { gap: 8px; }

  .bond-title { font-size: 1.4rem; }
  .bond-sub { font-size: .82rem; }
  .bond-card { padding: 18px 16px; }

  .env-title { font-size: 1.4rem; }

  .letter { padding: 22px 16px; }
  .letter p { font-size: .82rem; }

  .egg { padding: 22px 16px; width: calc(100% - 20px); }
  .egg h4 { font-size: 1rem; }
  .egg-msg { font-size: .8rem; }
}

/* Safe area for notched phones */
@supports (padding: max(0px)) {
  .nav { padding-top: max(12px, env(safe-area-inset-top)); }
  footer { padding-bottom: max(32px, env(safe-area-inset-bottom)); }
}

/* Landscape phone fix */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 80px 24px 40px; }
  .scroll-hint { display: none; }
  .egg { max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); }
  .letter { max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); }
}

/* ══ SCROLLBAR ══ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.2); }

/* ══ SELECTION ══ */
::selection { background: rgba(212,136,154,.3); color: #fff; }
