:root {
  --paper: #F4EBDC;
  --paper-deep: #ECDFC8;
  --espresso: #3D2817;
  --espresso-soft: #5A3D26;
  --terracotta: #C77B5E;
  --terracotta-deep: #A55C42;
  --sage: #7B9B6F;
  --sage-deep: #5C7853;
  --gold: #C8A668;
  --night: #1A1428;
  --night-deep: #0F0A1E;

  --shadow-card: 0 12px 32px -8px rgba(61, 40, 23, 0.35), 0 4px 12px -4px rgba(61, 40, 23, 0.2);
  --shadow-deep: 0 24px 60px -12px rgba(61, 40, 23, 0.45);

  --serif: 'Playfair Display', Georgia, serif;
  --display: 'Abril Fatface', 'Playfair Display', Georgia, serif;
  --hand: 'Caveat', 'Brush Script MT', cursive;
  --type: 'Special Elite', 'Courier New', monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--espresso);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background-image:
    radial-gradient(ellipse at top left, rgba(199, 123, 94, 0.08), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(123, 155, 111, 0.06), transparent 50%);
}

/* FILM GRAIN OVERLAY — sabit, hafif vintage doku */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.09;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.24 0 0 0 0 0.16 0 0 0 0 0.09 0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 240px;
}

/* TICKER TAPE BANNER */
.ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--espresso);
  color: var(--paper);
  font-family: var(--type);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  overflow: hidden;
  padding: 0.55rem 0;
  z-index: 50;
  border-bottom: 1px solid rgba(244, 235, 220, 0.1);
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: tickerScroll 38s linear infinite;
  will-change: transform;
}

.ticker-track span {
  padding-right: 1.5rem;
  flex-shrink: 0;
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem 8vw 4rem;
  position: relative;
  overflow: hidden;
}

/* DOODLES — hand-drawn SVG accents */
.doodle {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  animation: doodleIn 1.4s 1.5s forwards ease-out;
}

.doodle-star {
  top: 12%;
  right: 38%;
  width: 56px;
  height: 56px;
  color: var(--gold);
  transform: rotate(-15deg);
  animation-delay: 1.4s;
}

.doodle-scribble {
  bottom: 18%;
  left: 6%;
  width: 110px;
  height: 110px;
  color: var(--sage);
  opacity: 0;
  transform: rotate(-12deg);
  animation: doodleIn 1.6s 2s forwards ease-out;
}

.doodle-arrow {
  top: 38%;
  left: 50%;
  width: 130px;
  height: 80px;
  color: var(--terracotta-deep);
  transform: rotate(8deg);
  animation-delay: 1.8s;
}

@keyframes doodleIn {
  0%   { opacity: 0; transform: rotate(var(--rot, 0deg)) scale(0.6); }
  100% { opacity: 0.85; }
}

/* DATE STAMP — vintage circular postmark */
.date-stamp {
  position: absolute;
  top: 9%;
  right: 6%;
  width: 130px;
  height: 130px;
  color: var(--terracotta-deep);
  opacity: 0;
  transform: rotate(-12deg);
  animation: stampIn 1.2s 1s forwards cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 2px 6px rgba(61, 40, 23, 0.15));
  z-index: 3;
}

.date-stamp svg {
  width: 100%;
  height: 100%;
}

@keyframes stampIn {
  0%   { opacity: 0; transform: rotate(-30deg) scale(1.6); }
  60%  { opacity: 0.95; transform: rotate(-10deg) scale(0.92); }
  100% { opacity: 0.85; transform: rotate(-12deg) scale(1); }
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

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

.hero-text .kicker {
  font-family: var(--type);
  color: var(--espresso-soft);
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  opacity: 0;
  animation: fadeUp 1s 0.2s forwards ease-out;
}

.hero-title {
  font-family: var(--display);
  line-height: 0.92;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero-title em {
  display: block;
  font-style: italic;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  color: var(--espresso);
  margin-bottom: 0.4rem;
  transform: rotate(-1.5deg);
  transform-origin: left center;
  opacity: 0;
  animation: fadeUp 1s 0.4s forwards ease-out;
}

.hero-title .name {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(5rem, 15vw, 12rem);
  color: var(--terracotta-deep);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(20px) rotate(-2deg);
  animation: heroName 1.2s 0.7s forwards cubic-bezier(0.2, 0.7, 0.2, 1);
  cursor: default;
  user-select: none;
  position: relative;
  /* Retro vintage poster — layered offset shadows replace gradient */
  text-shadow:
    3px 3px 0 var(--gold),
    6px 6px 0 var(--espresso),
    12px 12px 28px rgba(61, 40, 23, 0.18);
}

.hero-title .name::after {
  content: '';
  position: absolute;
  left: 4%;
  bottom: -8px;
  height: 8px;
  width: 0;
  background: var(--sage);
  border-radius: 2px;
  animation: underline 1.4s 1.6s forwards cubic-bezier(0.2, 0.7, 0.2, 1);
  opacity: 0.85;
  transform: skewX(-8deg);
}

@keyframes heroName {
  to { opacity: 1; transform: translateY(0) rotate(-2deg); }
}

@keyframes underline {
  to { width: 92%; }
}

.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: var(--espresso-soft);
  margin: 1.5rem 0 0.5rem;
  max-width: 38ch;
  opacity: 0;
  animation: fadeUp 1s 1.1s forwards ease-out;
}

.hero-tag {
  font-family: var(--type);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-top: 1rem;
  opacity: 0;
  animation: fadeUp 1s 1.3s forwards ease-out;
}

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

/* POLAROID */
.polaroid {
  background: var(--paper);
  padding: 1rem 1rem 3.5rem;
  border-radius: 4px;
  box-shadow: var(--shadow-deep);
  transform: rotate(-3deg) translateY(20px);
  opacity: 0;
  animation: polaroidIn 1.2s 0.9s forwards cubic-bezier(0.2, 0.7, 0.2, 1);
  transition: transform 0.4s ease;
  width: min(100%, 360px);
  justify-self: center;
  position: relative;
  border: 1px solid rgba(61, 40, 23, 0.08);
  z-index: 2;
}

/* Multi-piece masking tape — feels hand-applied */
.tape {
  position: absolute;
  width: 78px;
  height: 22px;
  background: rgba(200, 166, 104, 0.5);
  box-shadow: 0 2px 5px rgba(61, 40, 23, 0.18);
  z-index: 3;
}

.tape::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(200, 166, 104, 0.0) 0,
    rgba(200, 166, 104, 0.0) 4px,
    rgba(0, 0, 0, 0.05) 4px,
    rgba(0, 0, 0, 0.05) 6px
  );
}

.tape-tl {
  top: -10px;
  left: -18px;
  transform: rotate(-32deg);
}

.tape-br {
  bottom: 60px;
  right: -20px;
  transform: rotate(28deg);
  background: rgba(199, 123, 94, 0.45);
  width: 64px;
  height: 20px;
}

.polaroid:hover {
  transform: rotate(-1deg) translateY(-8px) scale(1.02);
}

.polaroid-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--espresso);
  position: relative;
}

.polaroid-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  filter: url(#duotone) contrast(1.05) brightness(0.95);
  display: block;
}

.polaroid-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(61, 40, 23, 0.25) 100%);
  pointer-events: none;
}

.polaroid figcaption {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--hand);
  font-size: 1.6rem;
  color: var(--espresso);
  font-weight: 600;
}

.polaroid figcaption span {
  color: var(--terracotta-deep);
  margin: 0 0.3rem;
}

@keyframes polaroidIn {
  to { opacity: 1; transform: rotate(-3deg) translateY(0); }
}

/* SCROLL CUE */
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border: 2px solid var(--espresso-soft);
  border-radius: 14px;
  opacity: 0;
  animation: fadeUp 1s 1.6s forwards;
  text-decoration: none;
}

.scroll-cue span {
  display: block;
  width: 3px;
  height: 8px;
  background: var(--espresso);
  border-radius: 2px;
  margin: 6px auto 0;
  animation: cueBounce 1.6s infinite cubic-bezier(0.6, 0, 0.4, 1);
}

@keyframes cueBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(14px); opacity: 0.2; }
}

/* TIMELINE */
.timeline-section {
  padding: 8rem 8vw 6rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.section-head {
  text-align: center;
  margin-bottom: 5rem;
}

.section-kicker {
  font-family: var(--type);
  color: var(--terracotta-deep);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--espresso);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.section-lede {
  font-family: var(--serif);
  font-style: italic;
  color: var(--espresso-soft);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  max-width: 50ch;
  margin: 0 auto;
}

.timeline {
  list-style: none;
  position: relative;
  padding-left: 3rem;
  border-left: 2px dashed rgba(61, 40, 23, 0.25);
  margin-left: 1.5rem;
}

.timeline-item {
  position: relative;
  padding: 1.5rem 0 3rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -3.6rem;
  top: 2rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--terracotta);
  box-shadow: 0 0 0 4px var(--paper), 0 2px 6px rgba(61, 40, 23, 0.2);
}

.timeline-item .year {
  display: inline-block;
  font-family: var(--type);
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  color: var(--paper);
  background: var(--sage-deep);
  padding: 0.25rem 0.7rem;
  border-radius: 2px;
  margin-bottom: 0.75rem;
  box-shadow: 2px 2px 0 rgba(61, 40, 23, 0.2);
  transform: rotate(-1deg);
}

.timeline-item h3 {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  color: var(--espresso);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.timeline-item p {
  color: var(--espresso-soft);
  font-size: 1rem;
  max-width: 60ch;
}

.timeline-item em {
  font-style: italic;
  color: var(--terracotta-deep);
}

/* FINALE — the big moment */
.timeline-item.finale {
  margin-top: 2rem;
  padding: 3rem 0 1rem;
}

.timeline-item.finale::before {
  width: 24px;
  height: 24px;
  left: -3.9rem;
  top: 3.5rem;
  background: var(--terracotta);
  border-color: var(--gold);
  box-shadow: 0 0 0 6px var(--paper), 0 0 24px rgba(199, 123, 94, 0.5);
  animation: finalePulse 2.4s ease-in-out infinite;
}

@keyframes finalePulse {
  0%, 100% { box-shadow: 0 0 0 6px var(--paper), 0 0 24px rgba(199, 123, 94, 0.5); }
  50%      { box-shadow: 0 0 0 6px var(--paper), 0 0 48px rgba(199, 123, 94, 0.8); }
}

.timeline-item.finale .year {
  font-family: var(--hand);
  font-size: 2rem;
  color: var(--terracotta-deep);
  background: transparent;
  padding: 0;
  box-shadow: none;
  letter-spacing: 0;
  text-transform: none;
  transform: rotate(-2deg);
}

.finale-line {
  font-family: var(--serif) !important;
  font-size: clamp(1.8rem, 4.5vw, 3.2rem) !important;
  line-height: 1.15 !important;
  color: var(--espresso) !important;
  margin: 1rem 0 1.5rem !important;
  letter-spacing: -0.01em;
}

.finale-line em {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--espresso-soft) !important;
  font-size: 0.8em;
}

.finale-line strong {
  display: block;
  font-weight: 700;
  font-style: normal;
  background: linear-gradient(110deg, var(--terracotta-deep) 0%, var(--terracotta) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0.3rem 0;
  line-height: 1.05;
  font-size: 1.15em;
}

.finale-signoff {
  font-family: var(--hand) !important;
  font-size: 1.6rem !important;
  color: var(--sage-deep) !important;
  margin-top: 1rem !important;
}

.finale-signoff .hw {
  color: var(--terracotta-deep);
  font-weight: 600;
  margin-left: 0.5rem;
}

/* ============== WISH SECTION ============== */
.wish-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 8vw 5rem;
  background:
    radial-gradient(ellipse at center top, rgba(199, 123, 94, 0.06), transparent 50%),
    var(--paper);
  position: relative;
  text-align: center;
}

.wish-inner {
  max-width: 640px;
}

.wish-tag {
  font-family: var(--type);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
}

.wish-title {
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1;
  color: var(--espresso);
  margin-bottom: 1.5rem;
}

.wish-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--terracotta-deep);
  margin-right: 0.2em;
}

.wish-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: var(--espresso-soft);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.wish-tiny {
  font-family: var(--type);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--sage-deep);
  opacity: 0.7;
  margin-bottom: 2.5rem;
}

.wish-sparkle {
  width: 100px;
  height: 50px;
  color: var(--gold);
  margin: 0 auto 2rem;
  display: block;
  animation: sparkleFloat 3s ease-in-out infinite;
}

@keyframes sparkleFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.85; }
  50%      { transform: translateY(-8px) rotate(3deg); opacity: 1; }
}

.wish-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--type);
  font-size: 0.95rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--espresso);
  padding: 0.95rem 2rem;
  border-radius: 2px;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--terracotta);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 1.5px solid var(--espresso);
}

.wish-cta svg {
  width: 16px;
  height: 16px;
}

.wish-cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--terracotta);
  background: var(--espresso-soft);
}

.wish-cta:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--terracotta);
}

/* ============== CAKE SECTION ============== */
.cake-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 8vw 6rem;
  background:
    radial-gradient(ellipse at center bottom, rgba(123, 155, 111, 0.08), transparent 55%),
    var(--paper-deep);
  position: relative;
  text-align: center;
  border-top: 1px dashed rgba(61, 40, 23, 0.18);
  border-bottom: 1px dashed rgba(61, 40, 23, 0.18);
}

.cake-inner {
  max-width: 640px;
  width: 100%;
}

.cake-tag {
  font-family: var(--type);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
}

.cake-title {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  color: var(--espresso);
  margin-bottom: 1rem;
}

.cake-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--terracotta-deep);
}

.cake-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--espresso-soft);
  margin-bottom: 2.5rem;
}

.cake-wrap {
  max-width: 420px;
  margin: 0 auto 2.5rem;
  filter: drop-shadow(0 12px 24px rgba(61, 40, 23, 0.18));
}

.cake {
  width: 100%;
  height: auto;
  display: block;
}

/* Flame flicker (while lit) */
.flame,
.flame-inner {
  transform-origin: 50% 100%;
  transform-box: fill-box;
  animation: flicker 0.42s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
}

.flame-inner {
  animation-duration: 0.36s;
}

@keyframes flicker {
  from { transform: scale(1, 1); opacity: 1; }
  to   { transform: scale(0.86, 1.1); opacity: 0.92; }
}

/* Smoke (hidden by default) */
.smoke {
  opacity: 0;
  transform-origin: 50% 100%;
  transform-box: fill-box;
}

/* Blown state */
.cake-wrap.blown .flame-group {
  transform-origin: 50% 100%;
  transform-box: fill-box;
  animation: blowOut 0.8s forwards cubic-bezier(0.6, 0.05, 0.2, 1);
  animation-delay: var(--d, 0s);
}

@keyframes blowOut {
  0%   { opacity: 1; transform: scale(1, 1) skewX(0deg); }
  30%  { opacity: 0.85; transform: scale(0.7, 1.25) skewX(-25deg) translate(-2px, -4px); }
  100% { opacity: 0; transform: scale(0.2, 0.2) skewX(-30deg) translate(-6px, -16px); }
}

.cake-wrap.blown .smoke {
  animation: smokeUp 2.4s forwards ease-out;
  animation-delay: calc(var(--d, 0s) + 0.6s);
}

@keyframes smokeUp {
  0%   { opacity: 0; transform: translateY(0) scale(0.8); }
  25%  { opacity: 0.7; }
  100% { opacity: 0; transform: translateY(-30px) scale(1.1); }
}

.cake-wrap.blown .flame,
.cake-wrap.blown .flame-inner {
  animation: none;
}

/* Blow button — chunky retro */
.blow-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--type);
  font-size: 1rem;
  letter-spacing: 0.3em;
  color: var(--paper);
  background: var(--terracotta-deep);
  padding: 1.1rem 2.2rem;
  border: 2px solid var(--espresso);
  border-radius: 2px;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--espresso);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  position: relative;
}

.blow-btn .blow-ico {
  color: var(--gold);
  font-size: 1.1rem;
}

.blow-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--espresso);
  background: var(--terracotta);
}

.blow-btn:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--espresso);
}

.blow-btn.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92) translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Cake done message */
.cake-done {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  margin-top: -0.5rem;
}

.cake-done.show {
  opacity: 1;
  transform: translateY(0);
}

.done-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  color: var(--espresso);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.done-text em {
  color: var(--terracotta-deep);
}

.cake-next {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--type);
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--espresso);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--terracotta);
  transition: gap 0.2s ease, color 0.2s ease;
}

.cake-next svg {
  width: 14px;
  height: 14px;
}

.cake-next:hover {
  gap: 0.8rem;
  color: var(--terracotta-deep);
}

/* SKY SECTION */
.sky-section {
  position: relative;
  padding: 7rem 0 0;
  background: var(--night-deep);
  color: #F4EBDC;
  overflow: hidden;
  min-height: 90vh;
  border-top: 1px solid rgba(244, 235, 220, 0.06);
}

.sky-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5rem;
  background: linear-gradient(180deg, rgba(244, 235, 220, 0.06) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.sky-head {
  position: relative;
  z-index: 2;
  padding: 0 8vw;
  margin-bottom: 2rem;
}

.sky-head .section-kicker {
  color: var(--gold);
}

.sky-head h2 {
  color: #F4EBDC;
}

.sky-head .section-lede {
  color: rgba(244, 235, 220, 0.7);
}

#stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.sky-foot {
  position: relative;
  z-index: 2;
  text-align: center;
  font-family: var(--hand);
  font-size: 1.4rem;
  color: rgba(244, 235, 220, 0.55);
  padding: 4rem 1rem 3rem;
}

.sky-foot .touch-only { display: none; }
@media (hover: none), (pointer: coarse) {
  .sky-foot .hover-only { display: none; }
  .sky-foot .touch-only { display: inline; }
}

/* CLOSING */
.closing {
  background: var(--night-deep);
  padding: 4rem 8vw 5rem;
  text-align: center;
  color: rgba(244, 235, 220, 0.85);
}

.note-card {
  display: inline-block;
  background: var(--paper);
  color: var(--espresso);
  padding: 2.5rem 3rem 2rem;
  border-radius: 2px;
  box-shadow: var(--shadow-deep);
  transform: rotate(1.2deg);
  max-width: 480px;
  margin-bottom: 3rem;
  position: relative;
}

.note-card::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(2deg);
  width: 70px;
  height: 20px;
  background: rgba(123, 155, 111, 0.4);
  border-radius: 2px;
}

.note-body {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  line-height: 1.5;
  color: var(--espresso);
}

.note-sign {
  font-family: var(--hand);
  font-size: 1.4rem;
  color: var(--terracotta-deep);
  margin-top: 1.5rem;
}

.meta {
  font-size: 0.85rem;
  color: rgba(244, 235, 220, 0.4);
  letter-spacing: 0.05em;
}

.meta a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px dotted var(--gold);
}

/* SONG CARD (Spotify embed) */
.song-card {
  max-width: 460px;
  margin: 0 auto 3rem;
  text-align: center;
}

.song-kicker {
  font-family: var(--hand);
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.song-frame {
  background: var(--paper);
  padding: 0.85rem 0.85rem 0.6rem;
  border-radius: 4px;
  box-shadow: var(--shadow-deep);
  transform: rotate(-1.2deg);
  position: relative;
  border: 1px solid rgba(61, 40, 23, 0.08);
  transition: transform 0.3s ease;
}

.song-frame::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%) rotate(1deg);
  width: 90px;
  height: 22px;
  background: rgba(200, 166, 104, 0.45);
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(61, 40, 23, 0.18);
}

.song-frame:hover {
  transform: rotate(0deg) translateY(-4px);
}

.song-frame iframe {
  display: block;
  border-radius: 8px;
  width: 100%;
  background: transparent;
}

.song-meta {
  font-family: var(--hand);
  font-size: 1.2rem;
  color: rgba(244, 235, 220, 0.55);
  margin-top: 1rem;
  letter-spacing: 0.03em;
}

/* TOAST (easter egg) */
.toast {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  background: var(--espresso);
  color: var(--paper);
  font-family: var(--hand);
  font-size: 1.3rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  box-shadow: var(--shadow-deep);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 1001;
  max-width: 280px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}

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

.timeline-item.finale.in .finale-line strong {
  animation: shimmer 3s ease-in-out infinite;
  background-size: 200% auto;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% center; }
  50%      { background-position: 100% center; }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero {
    padding: 5rem 6vw 3rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-title em {
    transform: none;
  }

  .hero-title .name {
    transform: rotate(-1deg);
  }

  .hero-title .name::after {
    left: 50%;
    transform: translateX(-50%) skewX(-8deg);
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .polaroid {
    width: min(85%, 320px);
  }

  /* Hide most doodles on mobile to reduce clutter */
  .doodle-arrow { display: none; }
  .doodle-star {
    top: 8%;
    right: 8%;
    width: 40px;
    height: 40px;
  }
  .doodle-scribble {
    width: 70px;
    height: 70px;
    bottom: 5%;
    left: 3%;
    opacity: 0.5 !important;
  }
  .date-stamp {
    width: 90px;
    height: 90px;
    top: 4.5rem;
    right: 4vw;
  }
  .ticker { font-size: 0.65rem; padding: 0.4rem 0; letter-spacing: 0.14em; }

  .timeline-section {
    padding: 5rem 6vw 4rem;
  }

  .timeline {
    padding-left: 2rem;
    margin-left: 0.5rem;
  }

  .timeline-item::before {
    left: -2.6rem;
  }

  .timeline-item.finale::before {
    left: -2.9rem;
  }

  .scroll-cue { display: none; }
  .album-section { padding: 5rem 6vw 4rem; }
}

@media (max-width: 480px) {
  .hero-title em { font-size: 2rem; }
  .hero-title .name { font-size: clamp(4rem, 18vw, 6rem); }
  .closing { padding: 3rem 6vw 4rem; }
  .note-card { padding: 2rem 1.5rem 1.5rem; }
  .album-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1.5rem; }
  .album-modal-polaroid { width: min(300px, 92vw); }
  .album-modal-footer { flex-direction: column; gap: 1rem; }
}

/* ============== ALBUM SECTION ============== */
.album-section {
  padding: 8rem 8vw 6rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.album-deck-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto 3rem;
}

.album-deck-hint {
  font-family: var(--type);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  color: var(--espresso-soft);
  margin-top: 2rem;
  opacity: 0.6;
  text-transform: uppercase;
}

/* Face-down deck container */
.album-deck {
  position: relative;
  width: 220px;
  height: 280px;
  cursor: pointer;
  margin: 2rem auto 0;
  transition: transform 0.25s ease;
  outline: none;
}

.album-deck:hover { transform: translateY(-8px); }
.album-deck:active { transform: translateY(0) scale(0.97); }
.album-deck:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 8px;
  border-radius: 4px;
}

/* Individual back-facing card */
.album-card-back {
  position: absolute;
  width: 180px;
  height: 220px;
  background: var(--paper);
  border: 10px solid var(--paper);
  border-bottom-width: 52px;
  border-radius: 2px;
  box-shadow: var(--shadow-card);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.album-card-back::before {
  content: '✦';
  font-size: 1.2rem;
  color: rgba(61, 40, 23, 0.1);
}

/* Grid */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2.5rem 2rem;
  padding: 2rem 0 3rem;
  text-align: left;
}

.album-grid-card {
  position: relative;
  background: var(--paper);
  padding: 0.75rem 0.75rem 3.2rem;
  border-radius: 2px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(61, 40, 23, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.album-grid-card:hover {
  transform: scale(1.04) translateY(-5px) !important;
  box-shadow: var(--shadow-deep);
}

.album-grid-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--espresso);
}

.album-grid-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
/*  filter: url(#duotone) contrast(1.05) brightness(0.95); */
  display: block;
}

.album-grid-card figcaption {
  position: absolute;
  bottom: 0.7rem;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--hand);
  font-size: 1.25rem;
  color: var(--espresso);
  font-weight: 600;
}

/* Album end / memory note */
.album-end {
  text-align: center;
  padding: 2.5rem 0 1rem;
  border-top: 1px dashed rgba(61, 40, 23, 0.22);
  margin-top: 0.5rem;
}

.album-memory {
  font-family: var(--hand);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  color: var(--espresso-soft);
  line-height: 1.6;
  margin-bottom: 2.2rem;
  font-style: italic;
}

.album-parenthetical {
  display: block;
  font-size: 0.82em;
  opacity: 0.65;
  margin-top: 0.4rem;
}

.album-continue {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--type);
  font-size: 0.95rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--espresso);
  padding: 0.95rem 2rem;
  border-radius: 2px;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--terracotta);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1.5px solid var(--espresso);
}

.album-continue svg { width: 16px; height: 16px; }

.album-continue:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--terracotta);
}

.album-continue:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--terracotta);
}

/* ---- ALBUM MODAL ---- */
.album-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.album-modal[hidden] { display: none; }
.album-modal.show { opacity: 1; }

.album-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 10, 30, 0.88);
  cursor: pointer;
}

.album-modal-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.album-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 34px;
  height: 34px;
  background: var(--espresso);
  color: var(--paper);
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.album-modal-close:hover {
  background: var(--terracotta-deep);
  transform: scale(1.12);
}

.album-modal-polaroid {
  background: var(--paper);
  padding: 0.85rem 0.85rem 3.6rem;
  border-radius: 2px;
  box-shadow: var(--shadow-deep);
  width: min(360px, 88vw);
  position: relative;
  border: 1px solid rgba(61, 40, 23, 0.08);
  transform: rotate(-1.5deg);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.album-modal-polaroid.changing {
  opacity: 0;
  transform: rotate(-1.5deg) scale(0.95);
}

.album-modal-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--espresso);
}

.album-modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
/*  filter: url(#duotone) contrast(1.05) brightness(0.95); */
  display: block;
}

.album-modal-polaroid figcaption {
  position: absolute;
  bottom: 0.8rem;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--hand);
  font-size: 1.45rem;
  color: var(--espresso);
  font-weight: 600;
}

.album-modal-footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.album-progress {
  font-family: var(--type);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: rgba(244, 235, 220, 0.6);
  text-transform: uppercase;
}

.album-next-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--type);
  font-size: 0.88rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--espresso);
  padding: 0.85rem 1.6rem;
  border: 1.5px solid rgba(244, 235, 220, 0.25);
  border-radius: 2px;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--terracotta);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.album-next-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--terracotta);
}

.album-next-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--terracotta);
}

.album-next-btn svg { width: 15px; height: 15px; flex-shrink: 0; }

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-title .name::after { width: 92%; }
  .polaroid { opacity: 1; transform: rotate(-3deg); }
  .doodle { opacity: 0.85; }
  .date-stamp { opacity: 0.85; transform: rotate(-12deg); }
  .ticker-track { animation: none; }
}
