/* =====================================================
   STRONA DLA MAMY — DESIGN SYSTEM (mobile-first, rose gold)
   ===================================================== */
:root {
  /* Żywy, nasycony róż — różowe muzeum */
  --bg-0:        #5a0a3a;
  --bg-1:        #6e0e48;
  --bg-2:        #821256;
  --bg-3:        #961664;
  --bg-4:        #aa1a72;

  --rg-1:        #ffe2ec;  /* najjaśniejszy różowy */
  --rg-2:        #ffadcc;  /* główny pink */
  --rg-3:        #ff7aae;  /* średni różowy */
  --rg-4:        #e04a8a;  /* mocny róż */
  --rg-deep:     #a02868;

  /* Mosiądz / złoto muzealne */
  --gold-1:      #f2dca0;
  --gold-2:      #d4a85a;
  --gold-3:      #8a6a2e;

  --rose:        #ff9bc8;
  --rose-soft:   #ffd2e2;

  --cream:       #fff0f5;
  --ivory:       #fde8f0;
  --text:        #fde0ea;
  --text-dim:    #e0a8c2;
  --text-mute:   #a07088;

  /* Modern: Plus Jakarta dla h2/UI, Fraunces dla akcentów editorialnych */
  --display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --serif:   'Fraunces', 'Times New Roman', serif;
  --sans:    'Inter', system-ui, -apple-system, sans-serif;
  --hand:    'Caveat', cursive;

  --ease: cubic-bezier(.6,.05,.3,1);
  --ease-out-back: cubic-bezier(.34,1.56,.64,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  /* Blokada przesuwania w bok na telefonie — strona jest pionowa */
  touch-action: pan-y;
  overscroll-behavior-x: none;
}
body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--text);
  background: var(--bg-0);
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
  touch-action: pan-y;
  overscroll-behavior-x: none;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.locked { overflow: hidden; height: 100vh; }

/* Mocne różowe tło z animowanymi plamami światła */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 75% 55% at 12% 12%, rgba(255,120,180,0.55), transparent 62%),
    radial-gradient(ellipse 65% 55% at 88% 72%, rgba(255,80,150,0.45), transparent 65%),
    radial-gradient(ellipse 85% 65% at 50% 100%, rgba(255,180,220,0.30), transparent 70%),
    linear-gradient(180deg, #6e0e48 0%, #3a0420 100%);
  pointer-events: none;
  animation: bgShift 18s ease-in-out infinite alternate;
}
@keyframes bgShift {
  0%   { background-position: 0% 0%, 100% 100%, 50% 100%; filter: hue-rotate(0deg); }
  100% { background-position: 8% 4%, 92% 96%, 48% 98%; filter: hue-rotate(-8deg); }
}

/* Iskierki przepływające w tle */
#sparkles-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.sparkle {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, rgba(255,200,220,0.6) 40%, transparent 70%);
  opacity: 0;
  animation: sparkleFloat linear forwards;
  will-change: transform, opacity;
  transform: translateZ(0);
  filter: drop-shadow(0 0 6px rgba(255,200,220,0.7));
  contain: layout style paint;
}
@keyframes sparkleFloat {
  0%   { opacity: 0; transform: translateY(20px) scale(0.4); }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-100vh) scale(1.2); }
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
}
h2 { font-weight: 700; letter-spacing: -0.04em; }

.eyebrow {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.68rem;
  color: var(--rg-2);
  font-weight: 600;
  margin-bottom: 16px;
}

/* ===================================================
   SERDUSZKA-BĄBELKI
   =================================================== */
#hearts-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
}
.heart {
  position: absolute;
  bottom: -60px;
  width: 32px;
  height: 32px;
  opacity: 0;
  filter: drop-shadow(0 0 10px rgba(224,168,136,0.5));
  animation: bubble linear forwards;
  will-change: transform, opacity;
  transform: translateZ(0);
  contain: layout style paint;
}
.heart svg { width: 100%; height: 100%; display: block; overflow: visible; }
@keyframes bubble {
  0%   { opacity: 0; transform: translateY(0) translateX(0) scale(0.6); }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-115vh) translateX(var(--drift, 40px)) scale(1); }
}

/* ===================================================
   INTRO
   =================================================== */
#intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 40%, #3a1828 0%, #1f0d18 60%, #0e060a 100%);
  transition: opacity 0.6s ease;
  text-align: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
}
#intro.hide { opacity: 0; pointer-events: none; }
#intro.hide .bouquet,
#intro.hide .flower { animation: none !important; }

.intro-vignette {
  position: absolute;
  inset: -10%;
  background: radial-gradient(ellipse 40% 50% at 50% 38%, rgba(224,168,136,0.2), transparent 65%);
  pointer-events: none;
  animation: vignette 6s ease-in-out infinite alternate;
}
@keyframes vignette { from { opacity: 0.7; } to { opacity: 1; } }

.intro-inner {
  position: relative;
  max-width: 580px;
  width: 100%;
  animation: introFade 1.4s var(--ease);
}
@keyframes introFade {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.intro-eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.5em;
  font-size: 0.62rem;
  color: var(--rg-2);
  margin-bottom: 10px;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) 0.2s forwards;
}

.bouquet {
  width: min(58vw, 320px);
  margin: 0 auto 10px;
  filter: drop-shadow(0 20px 35px rgba(106,48,80,0.6));
  animation: bouquetIn 1.6s cubic-bezier(.34,1.4,.5,1) 0.2s both,
             bouquetFloat 7s ease-in-out 1.9s infinite alternate;
  transform-origin: center bottom;
}
.bouquet svg { width: 100%; height: auto; display: block; overflow: visible; }
@keyframes bouquetIn {
  0%   { transform: scale(0.15) rotate(-18deg); opacity: 0; }
  60%  { transform: scale(1.06) rotate(3deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes bouquetFloat {
  from { transform: translateY(0) rotate(-1.5deg); }
  to   { transform: translateY(-10px) rotate(1.5deg); }
}

/* Kwiaty pojawiają się jeden po drugim */
.flower {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: flowerIn 0.6s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes flowerIn {
  from { opacity: 0; transform: scale(0.3); }
  to   { opacity: 1; transform: scale(1); }
}

.intro-title {
  font-family: var(--serif);
  color: var(--cream);
  margin: 8px 0 8px;
  line-height: 1;
}
.intro-title .line-1 {
  display: block;
  font-size: clamp(0.85rem, 3.6vw, 1.4rem);
  letter-spacing: 0.3em;
  font-weight: 300;
  text-transform: uppercase;
  color: var(--text-dim);
}
.intro-title .line-2 {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(3.4rem, 12vw, 6rem);
  color: var(--rg-1);
  line-height: 1;
  margin-top: 4px;
  text-shadow: 0 4px 30px rgba(245,192,208,0.4);
  letter-spacing: -0.02em;
}

.intro-sub {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin: 10px auto 20px;
  max-width: 320px;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) 0.9s forwards;
  line-height: 1.5;
}

#enter-btn {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--rg-2);
  padding: 16px 32px;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: color 0.4s var(--ease);
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) 1.0s forwards;
  min-height: 50px;
}
#enter-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--rg-2), var(--rg-1));
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
  z-index: -1;
}
#enter-btn:hover, #enter-btn:active { color: var(--bg-0); }
#enter-btn:hover::before, #enter-btn:active::before { transform: translateY(0); }
#enter-btn svg { transition: transform 0.3s var(--ease); }
#enter-btn:hover svg { transform: translateX(4px); }

.intro-hint {
  margin-top: 14px;
  margin-bottom: 8px;
  font-size: 0.62rem;
  color: var(--text-mute);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) 1.15s forwards;
}

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

/* ===================================================
   NAWIGACJA (mobile-first)
   =================================================== */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  padding-top: max(14px, env(safe-area-inset-top));
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
  opacity: 0;
  pointer-events: none;
}
#nav.show { opacity: 1; pointer-events: auto; }
#nav.scrolled {
  background: rgba(22, 11, 16, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(224,168,136,0.15);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.08em;
}
.nav-logo span { color: var(--rg-2); font-style: italic; margin: 0 2px; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
}
.nav-links a {
  font-family: var(--display);
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  position: relative;
  padding: 8px 2px;
  transition: color 0.35s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0;
  width: 100%; height: 1.5px;
  background: linear-gradient(90deg, var(--rg-2), var(--gold-2));
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.5s var(--ease-out-back);
}
.nav-links a:hover,
.nav-links a.active { color: var(--cream); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); transform-origin: left center; }

#nav-toggle {
  display: flex;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}
#nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--cream);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
#nav.open #nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
#nav.open #nav-toggle span:nth-child(2) { opacity: 0; }
#nav.open #nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu (default - mobile first) */
.nav-links {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  height: 100dvh;
  width: 78%;
  max-width: 320px;
  background: rgba(22, 11, 16, 0.97);
  backdrop-filter: blur(20px);
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 40px;
  gap: 30px;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  border-left: 1px solid rgba(224,168,136,0.2);
}
#nav.open .nav-links { transform: translateX(0); }
.nav-links a { font-size: 0.95rem; padding: 8px 0; }

/* ===================================================
   GŁÓWNA TREŚĆ
   =================================================== */
#main-content {
  opacity: 0;
  transition: opacity 0.5s ease;
  position: relative;
  z-index: 1;
}
#main-content.show { opacity: 1; }

/* Mniej animacji jak user tego chce */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
section { position: relative; }

/* Fade-in przy scrollu — z lekkim rotate + skew dla nowoczesnego efektu */
.photo, .wish, .section-head, .letter-card, .divider-quote, .hero-text, .hero-portrait {
  opacity: 0;
  transform: translateY(60px) scale(0.96);
  transition: opacity 1s var(--ease), transform 1s var(--ease-out-back);
}
.in-view { opacity: 1 !important; transform: translateY(0) scale(1) !important; }

/* Stagger pomiędzy zdjęciami */
.photo.in-view .photo-meta  { animation: slideRight 0.7s var(--ease-out-back) 0.1s both; }
.photo.in-view .photo-frame { animation: photoIn 0.9s var(--ease-out-back) 0.2s both; }
.photo.in-view .photo-caption { animation: slideUp 0.7s var(--ease-out-back) 0.4s both; }
@keyframes slideRight {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes photoIn {
  from { opacity: 0; transform: translateY(40px) rotate(-1deg) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
  padding: 0 20px;
}
.section-head h2 {
  font-size: clamp(2.6rem, 10vw, 4.4rem);
  color: var(--cream);
  margin: 6px 0 16px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.045em;
  background: linear-gradient(180deg, #fff0f5 0%, #ffadcc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleSheen 6s ease-in-out infinite;
  background-size: 200% 200%;
}
@keyframes titleSheen {
  0%, 100% { background-position: 0% 0%; }
  50%      { background-position: 100% 100%; }
}
.section-sub {
  color: var(--text-dim);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
}

/* ===================================================
   HERO (mobile-first)
   =================================================== */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 110px 20px 60px;
}
.hero-grid {
  display: flex;
  flex-direction: column-reverse;
  gap: 40px;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}
.hero-text {
  max-width: 520px;
}
.hero-text h1 {
  font-size: clamp(3.2rem, 14vw, 5.5rem);
  color: var(--cream);
  margin: 12px 0 22px;
  letter-spacing: -0.025em;
  font-weight: 300;
}
.hero-text h1 em {
  font-style: italic;
  color: var(--rg-1);
  font-weight: 300;
  padding: 0 4px;
  font-size: 0.78em;
}
.hero-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 4.5vw, 1.5rem);
  color: var(--rose-soft);
  margin: 0 auto 22px;
  padding: 6px 0 6px 16px;
  border-left: 2px solid var(--rg-2);
  display: inline-block;
  text-align: left;
}
.hero-body {
  color: var(--text-dim);
  font-size: 1rem;
  margin: 0 auto 28px;
  max-width: 440px;
}
.hero-body strong { color: var(--cream); font-weight: 500; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rg-2);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--rg-2);
  transition: color 0.3s var(--ease), letter-spacing 0.3s var(--ease);
  min-height: 44px;
}
.btn-ghost span { transition: transform 0.3s var(--ease); display: inline-block; }
.btn-ghost:hover { color: var(--cream); letter-spacing: 0.35em; }
.btn-ghost:hover span { transform: translateY(3px); }

.hero-portrait {
  position: relative;
  width: min(86vw, 360px);
  /* brak wymuszonej proporcji — zdjęcie ma własną */
}
.portrait-frame {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(160deg, #fdeaf0 0%, #f5d0dc 45%, #e8b8c8 100%);
  padding: 12px;
  box-shadow:
    0 30px 60px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,200,216,0.25),
    0 0 0 8px rgba(245,226,205,0.04);
}
.portrait-frame::after { content: none; }
.portrait-frame img {
  width: 100%; height: auto;
  display: block;
  border-radius: 10px;
  object-fit: contain;
  transition: transform 0.8s var(--ease);
  filter: saturate(1.05);
}
.hero-portrait::before {
  content: '';
  position: absolute;
  inset: 16px -16px -16px 16px;
  border: 1px solid var(--rg-2);
  z-index: -1;
  opacity: 0.45;
  border-radius: 18px;
}

/* ===================================================
   DIVIDER
   =================================================== */
.divider-quote {
  padding: 70px 24px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--rg-2);
  margin-bottom: 26px;
}
.ornament span {
  height: 1px;
  width: 60px;
  background: linear-gradient(90deg, transparent, var(--rg-2), transparent);
}
.divider-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  color: var(--cream);
  line-height: 1.55;
  font-weight: 300;
}

/* ===================================================
   GALERIA — sekwencyjny stack (mobile-first)
   =================================================== */
.gallery {
  padding: 70px 0 90px;
}

.photo-stack {
  display: flex;
  flex-direction: column;
  gap: 80px;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

.photo {
  display: flex;
  flex-direction: column;
  /* Pomiń render kiedy poza viewportem — znaczny boost płynności scrolla */
  content-visibility: auto;
  contain-intrinsic-size: 1px 720px;
}
.photo-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
  padding-left: 4px;
}
.photo-meta .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.4rem;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 500;
  line-height: 1;
}
.photo-meta .of {
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: var(--gold-2);
  text-transform: uppercase;
  opacity: 0.9;
  font-weight: 600;
}

/* Rama „muzealna": złota listwa + podwójna ramka + shimmer + mosiężna tabliczka */
.photo-frame {
  position: relative;
  padding: 18px;
  background:
    linear-gradient(135deg, #fdf0e0 0%, #f5d8b8 25%, #e8b878 50%, #d4a85a 70%, #b8862e 100%);
  border-radius: 4px;
  box-shadow:
    0 35px 70px rgba(0,0,0,0.55),
    0 14px 28px rgba(60,10,30,0.5),
    0 0 0 1px rgba(212,168,90,0.6),
    inset 0 0 0 1px rgba(255,240,210,0.6),
    inset 0 0 25px rgba(184,134,46,0.25);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
  overflow: hidden;
  transform: translateZ(0);
  will-change: transform;
}
/* Złoty shimmer przesuwający się po ramie */
.photo-frame::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(115deg,
    transparent 0%,
    rgba(255,250,220,0) 30%,
    rgba(255,250,220,0.5) 50%,
    rgba(255,250,220,0) 70%,
    transparent 100%);
  transform: skewX(-20deg);
  animation: frameShimmer 7s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
@keyframes frameShimmer {
  0%, 70%, 100% { left: -60%; }
  85%          { left: 130%; }
}
/* Wewnętrzna podwójna ramka — cieniutka linia + głęboki rowek */
.photo-frame::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 2px;
  border: 1px solid rgba(122,80,30,0.55);
  box-shadow:
    inset 0 0 0 2px rgba(255,240,210,0.4),
    inset 0 0 0 3px rgba(122,80,30,0.4),
    inset 0 0 0 10px transparent;
  pointer-events: none;
  z-index: 1;
}
.photo:hover .photo-frame {
  transform: translateY(-6px) scale(1.005);
  box-shadow:
    0 45px 85px rgba(0,0,0,0.6),
    0 18px 34px rgba(60,10,30,0.55),
    0 0 0 1px rgba(242,220,160,0.9),
    inset 0 0 0 1px rgba(255,240,210,0.7);
}

.photo-img {
  position: relative;
  overflow: hidden;
  background: #1a0612;
  border-radius: 1px;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.6),
    inset 0 0 20px rgba(0,0,0,0.4);
}
.photo-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 1s var(--ease), filter 1s var(--ease);
  filter: saturate(0.95);
}
.photo:hover .photo-img img {
  transform: scale(1.03);
  filter: saturate(1.15) brightness(1.05);
}

/* Mosiężna tabliczka muzealna pod zdjęciem */
.photo-caption {
  margin: 18px auto 0;
  padding: 22px 24px 20px;
  max-width: 92%;
  background:
    linear-gradient(180deg, #2a0820 0%, #1a0414 100%);
  border-radius: 2px;
  border: 1px solid rgba(212,168,90,0.5);
  box-shadow:
    0 10px 24px rgba(0,0,0,0.45),
    inset 0 0 0 1px rgba(212,168,90,0.18),
    inset 0 1px 0 rgba(242,220,160,0.25);
  position: relative;
}
.photo-caption::before {
  content: '';
  position: absolute;
  top: -8px; left: 50%; transform: translateX(-50%);
  width: 14px; height: 14px;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2) 60%, var(--gold-3));
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4), inset 0 1px 2px rgba(255,255,255,0.4);
}
.photo-caption h3 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 5.2vw, 1.75rem);
  color: var(--gold-1);
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.photo-caption p {
  font-family: var(--display);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.65;
  font-weight: 400;
}

/* Sala humoru — różowo-koralowa rama */
.photo-funny .photo-frame {
  background: linear-gradient(135deg, #ffe8d8 0%, #ffc8a0 30%, #ff9070 60%, #e85878 100%);
}
.photo-funny .photo-caption { border-color: rgba(255,144,112,0.55); }
.photo-funny .photo-caption h3 { color: #ffd0a0; }
.photo-funny .photo-caption::before { background: linear-gradient(135deg, #ffe0c0, #ff9070 60%, #c84858); }
.photo-funny .photo-meta .num { color: #ffb088; text-shadow: 0 2px 8px rgba(255,150,100,0.4); }
.photo-funny .photo-meta .of  { color: #ffb088; }

/* ===================================================
   ŻYCZENIA
   =================================================== */
.wishes {
  padding: 80px 20px 80px;
  max-width: 1100px;
  margin: 0 auto;
}
.wish-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.wish {
  position: relative;
  background: linear-gradient(180deg, rgba(130,18,86,0.55), rgba(74,10,42,0.65));
  padding: 38px 28px 32px;
  border: 1px solid rgba(255,173,204,0.25);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out-back), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.wish:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(255,173,204,0.6);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.wish::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 60px; height: 1px;
  background: var(--rg-2);
  transition: width 0.5s var(--ease);
}
.wish:hover::before { width: 100%; }
.wish-num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--rg-2);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}
.wish h3 {
  font-size: 1.7rem;
  color: var(--cream);
  margin-bottom: 14px;
  font-weight: 400;
}
.wish p {
  color: var(--text-dim);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* ===================================================
   LIST
   =================================================== */
.letter {
  padding: 80px 20px;
  max-width: 720px;
  margin: 0 auto;
}
.letter-card {
  background:
    linear-gradient(180deg, rgba(245,226,205,0.04), rgba(245,226,205,0.01));
  border: 1px solid rgba(224,168,136,0.22);
  padding: 36px 28px;
  position: relative;
}
.letter-card::before, .letter-card::after {
  content: '';
  position: absolute;
  width: 28px; height: 28px;
  border: 1px solid var(--rg-2);
}
.letter-card::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.letter-card::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.letter-from {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.4rem;
  color: var(--rg-1);
  margin-bottom: 18px;
  line-height: 1;
  font-weight: 300;
}
.letter-card p {
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 20px;
  font-weight: 300;
}
.letter-big {
  font-style: italic;
  color: var(--cream);
  font-size: 1.35rem !important;
  margin: 28px 0 26px !important;
  padding-top: 26px;
  border-top: 1px solid rgba(224,168,136,0.2);
}
.letter-sign {
  font-family: var(--hand);
  font-size: 2.2rem !important;
  color: var(--rg-1);
  text-align: right;
  margin-bottom: 0 !important;
  font-weight: 500 !important;
}

/* ===================================================
   STOPKA
   =================================================== */
footer {
  text-align: center;
  padding: 50px 20px 130px;
  color: var(--text-mute);
}
.footer-ornament {
  font-size: 1.4rem;
  color: var(--rg-2);
  margin-bottom: 14px;
}
footer p {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* ============ DODATKOWE ANIMACJE ============ */
.photo-meta .num { animation: floatNum 4s ease-in-out infinite; display: inline-block; }
@keyframes floatNum {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
#play-pause { animation: playPulse 2.4s ease-in-out infinite; }
@keyframes playPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,173,204,0.55); }
  70%      { box-shadow: 0 0 0 14px rgba(255,173,204,0); }
}
.enter-btn { animation: btnGlow 3s ease-in-out infinite; }
@keyframes btnGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,173,204,0.5), 0 10px 30px rgba(0,0,0,0.3); }
  50%      { box-shadow: 0 0 0 12px rgba(255,173,204,0), 0 14px 36px rgba(0,0,0,0.35); }
}
.wish-num { animation: floatNum 5s ease-in-out infinite; display: inline-block; }
.divider-quote { transition-delay: 0.15s; }
.letter-card p { transition-delay: calc(var(--i, 0) * 0.08s); }
@media (prefers-reduced-motion: reduce) {
  .photo-meta .num, #play-pause, .enter-btn, .wish-num,
  body::before, .photo-frame::after, .section-head h2 { animation: none !important; }
}

/* ===================================================
   ANDROID — niewidoczne mikro-optymalizacje
   (mniejsze blur radius, wolniejsze animacje compositingowe)
   iPhone Safari i desktop bez zmian.
   =================================================== */
html.is-android #player,
html.is-android #nav.scrolled {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
html.is-android .photo-caption,
html.is-android .wish {
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
html.is-android body::before { animation-duration: 60s; }
html.is-android .photo-frame::after { animation-duration: 18s; }
html.is-android .section-head h2 { animation-duration: 14s; }
html.is-android .heart { filter: drop-shadow(0 0 5px rgba(224,168,136,0.5)); }
html.is-android .sparkle { filter: drop-shadow(0 0 3px rgba(255,200,220,0.7)); }

/* ===================================================
   ODTWARZACZ (mobile-first)
   =================================================== */
#player {
  position: fixed;
  bottom: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: rgba(31, 18, 24, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(224,168,136,0.3);
  border-radius: 999px;
  padding: 8px 12px 8px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  z-index: 50;
  width: calc(100vw - 24px);
  max-width: 380px;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
#player.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(140%);
  pointer-events: none;
}
#player button {
  background: transparent;
  color: var(--rg-2);
  border: 1px solid rgba(224,168,136,0.45);
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.2s var(--ease);
  flex-shrink: 0;
  padding: 0;
}
#player button:hover, #player button:active {
  background: var(--rg-2);
  color: var(--bg-0);
}
#play-pause {
  background: var(--rg-2) !important;
  color: var(--bg-0) !important;
  border-color: var(--rg-2) !important;
}
#play-pause:hover { background: var(--rg-1) !important; }

.track-info {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  min-width: 0;
  flex: 1;
  line-height: 1.2;
}
.now-playing {
  font-size: 0.58rem;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.3em;
}
#track-name {
  color: var(--cream);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.8rem;
  margin-top: 3px;
}
#yt-wrap {
  position: fixed;
  width: 1px; height: 1px;
  bottom: 0; left: 0;
  opacity: 0;
  pointer-events: none;
}

/* ===================================================
   RESPONSYWNOŚĆ — większe ekrany (desktop ENHANCEMENT)
   =================================================== */
@media (min-width: 720px) {
  #nav { padding: 18px 40px; padding-top: max(18px, env(safe-area-inset-top)); }
  #nav.scrolled { padding: 14px 40px; }
  #nav-toggle { display: none; }
  .nav-links {
    position: static;
    height: auto;
    width: auto;
    max-width: none;
    background: transparent;
    flex-direction: row;
    padding: 0;
    gap: 38px;
    transform: none;
    border-left: 0;
    backdrop-filter: none;
  }
  .nav-links a { font-size: 0.74rem; }

  .hero { padding: 130px 40px 80px; }
  .hero-grid {
    flex-direction: row;
    text-align: left;
    gap: 80px;
  }
  .hero-grid .hero-text { text-align: left; max-width: none; flex: 1.1; }
  .hero-quote { margin-left: 0; }
  .hero-body { margin-left: 0; }
  .hero-portrait { margin-left: auto; max-width: 440px; flex: 1; }

  .photo-stack { gap: 100px; padding: 0 40px; }
  .photo-meta .num { font-size: 2.6rem; }

  .wishes { padding: 100px 40px; }
  .wish-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; }

  .letter { padding: 100px 40px; }
  .letter-card { padding: 60px; }
  .letter-from { font-size: 3rem; }
  .letter-card p { font-size: 1.2rem; }
  .letter-big { font-size: 1.5rem !important; }
  .letter-sign { font-size: 2.6rem !important; }

  #player { padding: 10px 16px 10px 10px; max-width: 440px; bottom: 24px; }
  #track-name { max-width: 260px; font-size: 0.85rem; }
}

@media (min-width: 1024px) {
  .photo-stack { max-width: 720px; }
}
