/* ==============================
   DESIGN TOKENS
   ============================== */
:root {
  --rose-900: #6e1d43;
  --rose-700: #b2336b;
  --rose-500: #e0608f;
  --pink-400: #f28bb0;
  --pink-300: #f7aec8;
  --pink-200: #fbcfe0;
  --pink-100: #fde6ef;
  --cream: #fff7f2;
  --cream-2: #fff1ea;
  --lavender: #c9b0ef;
  --lavender-200: #e9defc;
  --ink: #5b2840;
  --ink-soft: #8d5c74;

  --grad-text: linear-gradient(100deg, #e0608f 0%, #b46fd0 45%, #f28bb0 75%, #e0608f 100%);
  --glass-bg: rgba(255, 255, 255, 0.42);
  --glass-border: rgba(255, 255, 255, 0.7);
  --shadow-soft: 0 10px 40px rgba(178, 51, 107, 0.12), 0 2px 8px rgba(178, 51, 107, 0.06);
  --shadow-glow: 0 0 0 1px rgba(255, 255, 255, 0.6), 0 18px 60px rgba(224, 96, 143, 0.32);

  /* English fonts (used on the Hero page only) */
  --en-script: "Dancing Script", "Brush Script MT", cursive;
  --en-serif: "Playfair Display", Georgia, serif;
  --en-body: "Quicksand", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Thai fonts (cute & readable) — used everywhere else */
  --font-script: "Sriracha", "Dancing Script", cursive;     /* handwritten accents */
  --font-serif: "Itim", "Mali", sans-serif;                  /* headings */
  --font-body: "Mali", "Quicksand", system-ui, sans-serif;   /* body text */

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --radius: 24px;
  --section-pad: clamp(5rem, 11vw, 9rem);
}

/* ==============================
   RESET / BASE
   ============================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
html.is-locked, html.is-locked body,
html.modal-open, html.modal-open body { overflow: hidden; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
::selection { background: var(--pink-300); color: #fff; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { fill: currentColor; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.section { position: relative; padding-block: var(--section-pad); z-index: 2; }

/* ==============================
   LOADING SCREEN
   ============================== */
.loader {
  position: fixed; inset: 0; z-index: 10001;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem;
  background: linear-gradient(160deg, #d9467e 0%, #ee7aa3 45%, #fbc9da 100%);
  color: #fff; text-align: center; padding: 2rem;
  transition: opacity 0.9s var(--ease-out), visibility 0.9s;
}
.loader__glow {
  position: absolute; width: 70vmin; height: 70vmin; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45), transparent 65%);
  animation: glowPulse 2.4s ease-in-out infinite;
}
.loader__heart { position: relative; width: 96px; height: 96px; color: #fff; filter: drop-shadow(0 8px 30px rgba(120, 10, 60, 0.35)); }
.loader__heart svg { width: 100%; height: 100%; animation: heartbeat 1.2s ease-in-out infinite; }
.loader__text { position: relative; font-family: var(--font-serif); font-style: italic; font-size: clamp(1.05rem, 2.6vw, 1.35rem); letter-spacing: 0.01em; text-shadow: 0 2px 16px rgba(110, 29, 67, 0.3); }
.loader__bar { position: relative; width: min(280px, 70vw); height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.3); overflow: hidden; }
.loader__fill {
  position: absolute; inset: 0; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, #fff, #ffe1ec);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.9);
  border-radius: inherit;
}
.loader__percent { position: relative; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.15em; opacity: 0.9; font-variant-numeric: tabular-nums; }

.loader.is-done .loader__heart { transition: transform 0.9s var(--ease-out), opacity 0.9s; transform: scale(14); opacity: 0; }
.loader.is-done .loader__heart svg { animation: none; }
.loader.is-done .loader__text,
.loader.is-done .loader__bar,
.loader.is-done .loader__percent { transition: opacity 0.4s; opacity: 0; }
.loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* ==============================
   BACKGROUND
   ============================== */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bg__gradient {
  position: absolute; inset: -50%;
  background:
    radial-gradient(circle at 30% 30%, #ffe0ec 0%, transparent 40%),
    radial-gradient(circle at 70% 60%, #eadcff 0%, transparent 42%),
    radial-gradient(circle at 40% 80%, #ffe9dc 0%, transparent 40%),
    linear-gradient(135deg, #fff6f2, #fde7f0 40%, #f3e9ff 70%, #fff3ec);
  animation: bgDrift 38s ease-in-out infinite alternate;
  will-change: transform;
}
.orb-layer { position: absolute; inset: 0; will-change: transform; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; will-change: transform; }
.orb--1 { width: 42vmax; height: 42vmax; left: -12vmax; top: -10vmax; background: radial-gradient(circle, #ffb3cd, transparent 70%); animation: orbFloat 22s ease-in-out infinite alternate; }
.orb--2 { width: 36vmax; height: 36vmax; right: -10vmax; top: 20vh; background: radial-gradient(circle, #d6c2ff, transparent 70%); animation: orbFloat 26s ease-in-out infinite alternate-reverse; }
.orb--3 { width: 30vmax; height: 30vmax; left: 20vw; bottom: -14vmax; background: radial-gradient(circle, #ffd6c4, transparent 70%); animation: orbFloat 30s ease-in-out infinite alternate; }
.orb--4 { width: 22vmax; height: 22vmax; right: 18vw; top: -8vmax; background: radial-gradient(circle, #ffc4dc, transparent 70%); animation: orbFloat 24s ease-in-out infinite alternate-reverse; }
.bg__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bg__vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 55%, rgba(224, 96, 143, 0.08) 100%); }

.mouse-glow {
  position: fixed; left: 0; top: 0; z-index: 1; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(255, 170, 200, 0.35), rgba(201, 176, 239, 0.12) 40%, transparent 70%);
  transition: opacity 0.6s; will-change: transform;
}
html.has-cursor .mouse-glow { opacity: 1; }

/* ==============================
   CUSTOM CURSOR
   ============================== */
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 10000; border-radius: 50%; display: none; will-change: transform; }
html.has-cursor .cursor-dot, html.has-cursor .cursor-ring { display: block; }
html.has-cursor, html.has-cursor * { cursor: none !important; }
.cursor-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--rose-500); box-shadow: 0 0 10px rgba(224, 96, 143, 0.8); }
.cursor-ring { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
.cursor-ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid rgba(224, 96, 143, 0.6);
  transition: transform 0.35s var(--ease-out), background-color 0.35s, border-color 0.35s;
}
html.cursor-hover .cursor-ring::before { transform: scale(1.7); background: rgba(242, 139, 176, 0.15); border-color: rgba(224, 96, 143, 0.35); }
html.cursor-down .cursor-ring::before { transform: scale(0.75); }
html.cursor-hidden .cursor-dot, html.cursor-hidden .cursor-ring { opacity: 0; }

/* ==============================
   TOPBAR / LOGO
   ============================== */
.topbar { position: fixed; top: max(14px, env(safe-area-inset-top)); left: 16px; z-index: 50; }
.logo {
  display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.45rem 1rem 0.45rem 0.55rem;
  border-radius: 99px; background: var(--glass-bg); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: var(--shadow-soft); transition: scale 0.3s var(--ease-spring);
}
.logo:hover { scale: 1.04; }
.logo__heart { width: 30px; height: 30px; display: grid; place-items: center; color: var(--rose-500); }
.logo__heart svg { width: 24px; height: 24px; animation: heartbeat 1.6s ease-in-out infinite; filter: drop-shadow(0 2px 6px rgba(224, 96, 143, 0.45)); }
.logo__names { font-family: var(--font-script); font-size: 1.15rem; font-weight: 700; color: var(--rose-700); white-space: nowrap; }
.logo__names i { font-style: normal; color: var(--pink-400); }

body.is-loading .topbar, body.is-loading .music-btn { opacity: 0; }
.topbar, .music-btn { transition: opacity 0.8s var(--ease-out); }

/* ==============================
   FLOATING NAVIGATION
   ============================== */
.dots-nav {
  position: fixed; right: max(18px, env(safe-area-inset-right)); top: 50%; z-index: 50;
  display: flex; flex-direction: column; gap: 14px; padding: 14px 10px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.35); border: 1px solid rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transform: translate(30px, -50%); opacity: 0; pointer-events: none;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
html.is-unlocked .dots-nav { opacity: 1; transform: translate(0, -50%); pointer-events: auto; }
.dots-nav a { position: relative; display: grid; place-items: center; width: 16px; height: 16px; text-decoration: none; }
.dots-nav__dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(224, 96, 143, 0.35); transition: transform 0.4s var(--ease-spring), background-color 0.4s, box-shadow 0.4s; }
.dots-nav a:hover .dots-nav__dot { transform: scale(1.4); background: var(--pink-400); }
.dots-nav a.is-active .dots-nav__dot { transform: scale(1.6); background: var(--rose-500); box-shadow: 0 0 0 4px rgba(224, 96, 143, 0.18), 0 0 12px rgba(224, 96, 143, 0.7); }
.dots-nav__label {
  position: absolute; right: 28px; top: 50%; padding: 4px 12px; border-radius: 99px; white-space: nowrap;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; color: var(--rose-700);
  background: rgba(255, 255, 255, 0.85); box-shadow: var(--shadow-soft);
  opacity: 0; transform: translate(8px, -50%); pointer-events: none;
  transition: opacity 0.3s, transform 0.35s var(--ease-out);
}
.dots-nav a:hover .dots-nav__label, .dots-nav a:focus-visible .dots-nav__label { opacity: 1; transform: translate(0, -50%); }

/* ==============================
   MUSIC BUTTON
   ============================== */
.music-btn {
  position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft); transition: scale 0.3s var(--ease-spring), box-shadow 0.4s, opacity 0.8s;
}
.music-btn:hover { scale: 1.08; }
.music-btn__icon { font-size: 1.5rem; line-height: 1; display: block; }
.music-btn__ring { position: absolute; inset: -5px; border-radius: 50%; border: 2px dashed rgba(224, 96, 143, 0.0); transition: border-color 0.4s; }
.music-btn.is-playing { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6), 0 0 26px rgba(224, 96, 143, 0.45); }
.music-btn.is-playing .music-btn__icon { animation: spin 4s linear infinite; }
.music-btn.is-playing .music-btn__ring { border-color: rgba(224, 96, 143, 0.45); animation: spin 9s linear infinite reverse; }

/* ==============================
   SHARED: SECTION HEADINGS / GLASS / BUTTONS
   ============================== */
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(2.5rem, 6vw, 4.5rem); }
.section-kicker { display: inline-block; font-family: var(--font-script); font-size: clamp(1.2rem, 2.4vw, 1.5rem); color: var(--rose-500); margin-bottom: 0.4rem; }
.section-title {
  font-family: var(--font-serif); font-weight: 700; font-size: clamp(2rem, 5.2vw, 3.6rem); line-height: 1.15;
  background: var(--grad-text); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 8s linear infinite; padding-bottom: 0.08em;
}
.section-sub { margin-top: 0.9rem; color: var(--ink-soft); font-size: clamp(1rem, 1.8vw, 1.12rem); }
.section-sub strong { color: var(--rose-700); font-weight: 600; }

.glass-card {
  position: relative; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--shadow-soft);
}

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 1rem 2.2rem; border-radius: 99px; font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em;
  color: #fff; overflow: hidden; isolation: isolate;
  background: linear-gradient(120deg, #ec6c9b, #d94a85 50%, #b45fc3);
  box-shadow: 0 10px 30px rgba(217, 74, 133, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: scale 0.35s var(--ease-spring), box-shadow 0.4s;
}
.btn > span { position: relative; z-index: 1; }
/* sparkle sweep on hover */
.btn::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; z-index: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg) translateX(0); transition: transform 0.9s var(--ease-out);
}
.btn:hover { scale: 1.05; box-shadow: 0 14px 44px rgba(217, 74, 133, 0.5), 0 0 30px rgba(242, 139, 176, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn:hover::after { transform: skewX(-20deg) translateX(420%); }
.btn:active { scale: 0.97; }
.btn--glow { animation: btnGlow 2.8s ease-in-out infinite; }
.btn--ghost { background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.6); box-shadow: 0 0 24px rgba(255, 255, 255, 0.15); }
.btn--small { padding: 0.75rem 1.6rem; font-size: 0.98rem; }
.btn:focus-visible, .polaroid:focus-visible, .big-heart:focus-visible, .envelope:focus-visible, .logo:focus-visible { outline: 3px solid rgba(224, 96, 143, 0.55); outline-offset: 4px; }

/* missing image placeholder (shown if an image file can't be found) */
.is-missing { background: linear-gradient(135deg, #fde0ea, #efe2ff) !important; display: grid; place-items: center; }
.is-missing img { opacity: 0; }
.is-missing::after {
  content: "♡\A" attr(data-missing); white-space: pre; text-align: center; position: absolute;
  font-size: 0.8rem; color: var(--rose-500); font-weight: 600; line-height: 1.6;
}

/* ==============================
   HERO SECTION
   ============================== */
.hero { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding-block: 6rem 5rem; text-align: center; }
.hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; padding-inline: 1.25rem; }
.hero__eyebrow { font-family: var(--font-script); font-size: clamp(1.15rem, 2.6vw, 1.55rem); color: var(--rose-500); margin-bottom: 0.4rem; }
.hero__title {
  font-family: var(--font-script); font-weight: 700; font-size: clamp(2.9rem, 9vw, 6.6rem); line-height: 1.1;
  color: var(--rose-700); text-shadow: 0 6px 30px rgba(224, 96, 143, 0.28); perspective: 600px;
}
.hero__title .word { display: inline-block; white-space: nowrap; }
.hero__title .char { display: inline-block; will-change: transform, opacity; }
.hero__number { display: flex; flex-direction: column; align-items: center; margin-top: -0.2rem; }
.hero__big {
  font-family: var(--font-serif); font-weight: 700; font-size: clamp(8rem, 30vw, 17rem); line-height: 0.95;
  background: var(--grad-text); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite; filter: drop-shadow(0 12px 40px rgba(224, 96, 143, 0.35));
}
.hero__months { font-weight: 700; font-size: clamp(1rem, 3vw, 1.6rem); letter-spacing: 0.6em; margin-right: -0.6em; color: var(--rose-700); margin-top: -0.4rem; }
.hero__sub { margin-top: 1.6rem; max-width: 34rem; font-family: var(--font-serif); font-style: italic; font-size: clamp(1.05rem, 2.3vw, 1.35rem); color: var(--ink-soft); line-height: 1.7; }
.hero__btn { margin-top: 2.4rem; }

.scroll-hint { position: absolute; bottom: 28px; left: 50%; width: 24px; height: 38px; margin-left: -12px; border: 2px solid rgba(224, 96, 143, 0.45); border-radius: 14px; opacity: 0; transition: opacity 0.8s; }
.scroll-hint span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--rose-500); animation: scrollDot 1.8s ease-in-out infinite; }
html.is-unlocked .scroll-hint { opacity: 1; }

/* ==============================
   RELATIONSHIP COUNTER
   ============================== */
.counter__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.8rem, 2vw, 1.5rem); }
.counter__card {
  padding: clamp(1.4rem, 3vw, 2.4rem) 1rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  transition: translate 0.45s var(--ease-out), box-shadow 0.45s;
}
.counter__card:hover { translate: 0 -6px; box-shadow: var(--shadow-glow); }
.counter__num {
  font-family: var(--font-serif); font-weight: 700; font-size: clamp(1.7rem, 4.2vw, 3.2rem); line-height: 1.1;
  font-variant-numeric: tabular-nums; color: var(--rose-700); word-break: break-all;
}
.counter__num.tick { animation: tick 0.5s var(--ease-out); }
.counter__label { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-soft); margin-right: -0.3em; }
.counter__note { text-align: center; margin-top: 2rem; font-family: var(--font-script); font-size: clamp(1.2rem, 2.4vw, 1.5rem); color: var(--rose-500); }

/* ==============================
   OUR STORY TIMELINE
   ============================== */
.timeline { position: relative; max-width: 1000px; margin: 0 auto; padding: 1rem 0; }
.timeline__track { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; border-radius: 3px; background: rgba(224, 96, 143, 0.14); }
.timeline__line {
  position: absolute; inset: 0; border-radius: inherit; transform-origin: top center;
  background: linear-gradient(180deg, var(--pink-400), var(--lavender) 50%, var(--rose-500));
  box-shadow: 0 0 12px rgba(224, 96, 143, 0.55);
}
.tl-item { position: relative; width: 50%; padding-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item--left { padding-right: clamp(2rem, 4vw, 3.4rem); }
.tl-item--right { margin-left: 50%; padding-left: clamp(2rem, 4vw, 3.4rem); }
.tl-item__dot {
  position: absolute; top: 1.4rem; width: 44px; height: 44px; border-radius: 50%; z-index: 2;
  display: grid; place-items: center; font-size: 1.1rem; background: #fff;
  box-shadow: 0 0 0 5px rgba(253, 230, 239, 0.9), 0 6px 20px rgba(224, 96, 143, 0.35);
}
.tl-item--left .tl-item__dot { right: -22px; }
.tl-item--right .tl-item__dot { left: -22px; }
.tl-card { overflow: hidden; transition: translate 0.5s var(--ease-out), box-shadow 0.5s; }
.tl-card:hover { translate: 0 -6px; box-shadow: var(--shadow-glow); }
.tl-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.tl-card__media img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease-out); }
.tl-card:hover .tl-card__media img { scale: 1.06; }
.tl-card__body { padding: 1.3rem 1.5rem 1.6rem; }
.tl-card__date { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rose-500); padding: 0.2rem 0.75rem; border-radius: 99px; background: rgba(242, 139, 176, 0.15); }
.tl-card h3 { margin-top: 0.7rem; font-family: var(--font-serif); font-size: clamp(1.25rem, 2.4vw, 1.5rem); color: var(--rose-900); }
.tl-card p { margin-top: 0.5rem; color: var(--ink-soft); }
.tl-item--today .tl-card { box-shadow: var(--shadow-glow); }
.tl-item--today .tl-item__dot { animation: dotPulse 2.2s ease-in-out infinite; }

/* ==============================
   PHOTO MEMORY GALLERY
   ============================== */
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.6rem, 4vw, 3.2rem) clamp(1.2rem, 3vw, 2.6rem); padding: 1rem clamp(0rem, 2vw, 2rem); }
.polaroid {
  position: relative; margin: 0; padding: 12px 12px 0; background: #fffdfb; border-radius: 6px;
  rotate: var(--r, 0deg);
  box-shadow: 0 12px 30px rgba(110, 29, 67, 0.16), 0 2px 6px rgba(110, 29, 67, 0.08);
  transition: rotate 0.55s var(--ease-out), scale 0.55s var(--ease-out), box-shadow 0.55s;
}
.polaroid:nth-child(even) { margin-top: 1.6rem; }
.polaroid::before { /* washi tape */
  content: ""; position: absolute; top: -12px; left: 50%; width: 86px; height: 24px; margin-left: -43px; z-index: 2;
  background: rgba(247, 174, 200, 0.6); rotate: -4deg; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.polaroid::after { /* sparkle on hover */
  content: "✦"; position: absolute; top: 18px; right: 18px; z-index: 2; color: #fff; font-size: 1.3rem;
  text-shadow: 0 0 10px #fff, 0 0 18px var(--pink-400); opacity: 0; scale: 0.3; transition: opacity 0.4s, scale 0.5s var(--ease-spring);
}
.polaroid:hover, .polaroid:focus-visible { rotate: 0deg; scale: 1.06; z-index: 3; box-shadow: 0 24px 60px rgba(110, 29, 67, 0.22), 0 0 40px rgba(242, 139, 176, 0.55); }
.polaroid:hover::after { opacity: 1; scale: 1; animation: twinkle 1.4s ease-in-out infinite; }
.polaroid__img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; background: var(--pink-100); }
.polaroid__img img { width: 100%; height: 100%; object-fit: cover; }
.polaroid figcaption { font-family: var(--font-script); font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.4rem); text-align: center; color: var(--rose-700); padding: 0.75rem 0.4rem 0.95rem; line-height: 1.25; }

/* ==============================
   LIGHTBOX
   ============================== */
.lightbox { position: fixed; inset: 0; z-index: 9200; display: grid; place-items: center; visibility: hidden; pointer-events: none; transition: visibility 0s 0.5s; }
.lightbox.is-open { visibility: visible; pointer-events: auto; transition: visibility 0s; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(60, 18, 40, 0.55); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); opacity: 0; transition: opacity 0.5s var(--ease-out); }
.lightbox.is-open .lightbox__backdrop { opacity: 1; }
.lightbox__figure {
  position: relative; margin: 0; padding: 14px 14px 0; background: #fffdfb; border-radius: 8px; max-width: min(88vw, 760px);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35), 0 0 60px rgba(242, 139, 176, 0.35);
  opacity: 0; transform: scale(0.88) translateY(30px); transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}
.lightbox.is-open .lightbox__figure { opacity: 1; transform: none; }
.lightbox__figure img { max-height: 70vh; max-height: 70svh; width: auto; margin: 0 auto; border-radius: 3px; transition: opacity 0.3s; }
.lightbox__figure.is-switching img, .lightbox__figure.is-switching figcaption { opacity: 0; }
.lightbox__figure figcaption { font-family: var(--font-script); font-weight: 700; font-size: clamp(1.3rem, 3vw, 1.8rem); text-align: center; color: var(--rose-700); padding: 0.8rem 0.5rem 1.1rem; transition: opacity 0.3s; }
.lightbox__figure.is-missing { min-width: min(80vw, 420px); min-height: 50vh; display: block; }
.lightbox__count { position: absolute; top: -34px; left: 0; right: 0; text-align: center; color: #fff; font-size: 0.85rem; letter-spacing: 0.2em; font-weight: 600; }
.lightbox__close, .lightbox__nav {
  position: absolute; z-index: 2; display: grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: 50%;
  opacity: 0; transition: opacity 0.4s 0.15s, background-color 0.3s, scale 0.3s var(--ease-spring);
}
.lightbox.is-open .lightbox__close, .lightbox.is-open .lightbox__nav { opacity: 1; }
.lightbox__close { top: max(18px, env(safe-area-inset-top)); right: 18px; width: 48px; height: 48px; font-size: 1.8rem; line-height: 1; }
.lightbox__nav { top: 50%; width: 54px; height: 54px; margin-top: -27px; font-size: 2.2rem; line-height: 1; padding-bottom: 4px; }
.lightbox__nav--prev { left: clamp(10px, 3vw, 40px); }
.lightbox__nav--next { right: clamp(10px, 3vw, 40px); }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(242, 139, 176, 0.5); scale: 1.08; }

/* ==============================
   REASONS WHY I LOVE YOU
   ============================== */
.reasons__stage { display: flex; flex-direction: column; align-items: center; }
.big-heart { position: relative; width: clamp(170px, 30vw, 240px); aspect-ratio: 1; display: grid; place-items: center; transition: scale 0.4s var(--ease-spring); }
.big-heart:hover { scale: 1.05; }
.big-heart svg { position: relative; width: 100%; height: 100%; filter: drop-shadow(0 18px 40px rgba(217, 74, 133, 0.45)); animation: heartbeat 1.4s ease-in-out infinite; }
.big-heart__glow { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(242, 139, 176, 0.65), transparent 65%); filter: blur(10px); animation: glowPulse 1.4s ease-in-out infinite; }
.reasons__hint { margin-top: 0.6rem; font-family: var(--font-script); font-size: 1.5rem; color: var(--rose-500); transition: opacity 0.5s; }
.reasons__card { margin-top: 2rem; width: min(640px, 100%); min-height: 170px; padding: 1.8rem 2rem; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.7rem; }
.reasons__count { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; color: var(--rose-500); }
.reasons__text { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.2rem, 2.8vw, 1.7rem); line-height: 1.5; color: var(--rose-900); }

/* ==============================
   OUR 3 MONTHS
   ============================== */
.months__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 3vw, 2.2rem); align-items: center; }
.month-card { padding: 1.4rem 1.4rem 1.8rem; text-align: center; transition: translate 0.5s var(--ease-out), box-shadow 0.5s; }
.month-card:hover { translate: 0 -8px; box-shadow: var(--shadow-glow); }
.month-card__num {
  position: absolute; top: -0.2rem; left: 1rem; z-index: 2; font-family: var(--font-serif); font-weight: 700; font-size: 3.6rem; line-height: 1;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 10px rgba(255, 255, 255, 0.8));
}
.month-card__media { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; margin-bottom: 1.2rem; }
.month-card__media img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease-out); }
.month-card:hover .month-card__media img { scale: 1.07; }
.month-card__tag { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--rose-500); }
.month-card h3 { margin-top: 0.4rem; font-family: var(--font-serif); font-size: clamp(1.3rem, 2.4vw, 1.6rem); color: var(--rose-900); }
.month-card p { margin-top: 0.5rem; color: var(--ink-soft); }
.month-card--featured { scale: 1.06; background: rgba(255, 255, 255, 0.58); border-color: rgba(255, 255, 255, 0.95); }
.month-card--featured:hover { scale: 1.08; }
.month-card--featured::before {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; z-index: -1; pointer-events: none;
  box-shadow: 0 0 0 2px rgba(242, 139, 176, 0.55), 0 0 40px 6px rgba(242, 139, 176, 0.55), 0 0 90px 10px rgba(201, 176, 239, 0.45);
  opacity: 0.6; animation: featuredGlow 3s ease-in-out infinite;
}
.month-card--featured h3 { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ==============================
   LOVE LETTER
   ============================== */
.envelope-wrap { display: flex; flex-direction: column; align-items: center; transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.envelope-float { animation: floaty 4.5s ease-in-out infinite; padding-top: 70px; }
.envelope {
  position: relative; display: block; width: min(380px, 82vw); aspect-ratio: 3 / 2; perspective: 900px;
  transition: scale 0.4s var(--ease-spring);
}
.envelope:hover { scale: 1.04; }
.envelope.is-wiggle { animation: wiggle 0.7s ease-in-out; }
.envelope > span { position: absolute; display: block; }
.envelope__back { inset: 0; border-radius: 10px; background: linear-gradient(160deg, #f7a9c4, #ec7fa6); box-shadow: 0 30px 60px rgba(178, 51, 107, 0.28); }
.envelope__paper {
  left: 7%; right: 7%; top: 8%; height: 86%; z-index: 1; border-radius: 6px; padding: 1.1rem 1.2rem;
  background: linear-gradient(#fffdf9, #fff6ef); box-shadow: 0 4px 14px rgba(110, 29, 67, 0.12);
  display: flex !important; flex-direction: column; gap: 0.6rem; text-align: left;
  transition: transform 1s var(--ease-out) 0.55s;
}
.envelope__paper-title { font-family: var(--font-script); font-weight: 700; font-size: 1.3rem; color: var(--rose-700); }
.envelope__paper-line { display: block; height: 6px; border-radius: 3px; background: rgba(224, 96, 143, 0.18); }
.envelope__paper-line.short { width: 60%; }
.envelope__front {
  inset: 0; z-index: 2; border-radius: 10px;
  background: linear-gradient(170deg, #fbbfd3, #f497b8);
  clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
}
.envelope__flap {
  left: 0; right: 0; top: 0; height: 58%; z-index: 3; transform-origin: top center;
  background: linear-gradient(180deg, #f28bb0, #f7a9c4);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-radius: 10px 10px 0 0;
  transition: transform 0.65s var(--ease-out), z-index 0s 0.32s;
  filter: drop-shadow(0 3px 4px rgba(110, 29, 67, 0.15));
}
.envelope__seal {
  left: 50%; top: 58%; width: 46px; height: 46px; margin: -23px 0 0 -23px; z-index: 4; border-radius: 50%;
  display: grid !important; place-items: center; color: #fff;
  background: radial-gradient(circle at 35% 30%, #f06292, #b2336b);
  box-shadow: 0 4px 12px rgba(110, 29, 67, 0.35), inset 0 -3px 6px rgba(0, 0, 0, 0.15);
  transition: opacity 0.3s, scale 0.4s var(--ease-out);
}
.envelope__seal svg { width: 22px; height: 22px; animation: heartbeat 1.6s ease-in-out infinite; }
.envelope.is-open .envelope__seal { opacity: 0; scale: 0.4; }
.envelope.is-open .envelope__flap { transform: rotateX(180deg); z-index: 0; }
.envelope.is-open .envelope__paper { transform: translateY(-58%); }
.envelope__hint { margin-top: 1.8rem; font-family: var(--font-script); font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 700; color: var(--rose-700); }
.envelope__subhint { font-size: 0.85rem; color: var(--ink-soft); letter-spacing: 0.1em; }
.envelope-wrap.is-leaving { opacity: 0; transform: scale(0.85) translateY(-20px); pointer-events: none; }
.envelope-wrap.is-gone { display: none; }

.letter-paper {
  display: none; position: relative; width: min(700px, 100%); margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.6rem) clamp(1.5rem, 5vw, 3.6rem);
  border-radius: 14px; color: var(--ink);
  background:
    repeating-linear-gradient(180deg, transparent 0 2.05rem, rgba(224, 96, 143, 0.1) 2.05rem calc(2.05rem + 1px)),
    linear-gradient(180deg, #fffdf9, #fff5ee);
  box-shadow: 0 30px 80px rgba(110, 29, 67, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.8), 0 0 60px rgba(242, 139, 176, 0.25);
}
.letter-paper::before { content: ""; position: absolute; left: clamp(1rem, 3vw, 2rem); top: 0; bottom: 0; width: 1px; background: rgba(224, 96, 143, 0.25); }
.letter-paper.is-visible { display: block; }
.letter-paper__content { position: relative; display: flex; flex-direction: column; gap: 1.1rem; padding-left: clamp(0.8rem, 2vw, 1.2rem); }
.letter-paper__greeting { font-family: var(--font-script); font-weight: 700; font-size: clamp(2rem, 5vw, 2.8rem); color: var(--rose-700); }
.letter-paper p { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.05rem, 2.2vw, 1.22rem); line-height: 1.85; }
.letter-paper__love { font-family: var(--font-script) !important; font-style: normal !important; font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.3rem) !important; color: var(--rose-500); }
.letter-paper__sign { text-align: right; color: var(--ink-soft); }
.letter-paper__sign span { font-family: var(--font-script); font-style: normal; font-weight: 700; font-size: 1.5em; color: var(--rose-700); }

/* ==============================
   SURPRISE BUTTON SECTION
   ============================== */
.surprise { padding-block: clamp(3rem, 7vw, 5rem); }
.surprise__inner { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; text-align: center; }
.surprise__text { font-family: var(--font-script); font-size: clamp(1.4rem, 3vw, 1.8rem); color: var(--rose-700); }
.btn--surprise { font-size: 1.12rem; padding: 1.1rem 2.4rem; }
.btn--surprise.is-locked { filter: grayscale(0.55); opacity: 0.7; animation: none; }

/* ==============================
   SURPRISE OVERLAY
   ============================== */
.surprise-bg {
  position: fixed; inset: 0; z-index: 9000; pointer-events: none; opacity: 0; visibility: hidden;
  background: radial-gradient(ellipse at center, #3a1029 0%, #170610 75%);
  transition: opacity 1.4s var(--ease-out), visibility 0s 1.4s;
}
.surprise-bg.is-active { opacity: 0.96; visibility: visible; pointer-events: auto; transition: opacity 1.4s var(--ease-out), visibility 0s; }
.surprise-bg.is-boom { background: radial-gradient(ellipse at center, #6e1d43 0%, #2a0a1c 70%); }
.fx-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 9050; pointer-events: none; }
.surprise-stage { position: fixed; inset: 0; z-index: 9100; display: grid; place-items: center; pointer-events: none; visibility: hidden; text-align: center; color: #fff; padding: 1.5rem; }
.surprise-stage.is-active { visibility: visible; }
.surprise-stage > * { grid-area: 1 / 1; }
.ss-eyes { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.4rem, 4vw, 2.4rem); opacity: 0; transform: translateY(16px); filter: blur(8px); transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out), filter 1.2s; text-shadow: 0 0 30px rgba(242, 139, 176, 0.6); }
.ss-eyes.is-visible { opacity: 1; transform: none; filter: blur(0); }
.ss-count { font-family: var(--font-serif); font-weight: 700; font-size: clamp(7rem, 30vw, 15rem); line-height: 1; color: #fff; opacity: 0; text-shadow: 0 0 40px rgba(242, 139, 176, 0.9), 0 0 100px rgba(224, 96, 143, 0.6); }
.ss-final { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; opacity: 0; visibility: hidden; }
.ss-final.is-visible { visibility: visible; pointer-events: auto; animation: zoomGlowIn 1.6s var(--ease-out) forwards; }
.ss-final__title {
  font-family: var(--font-serif); font-weight: 700; font-size: clamp(2.2rem, 7.5vw, 5.4rem); line-height: 1.1; letter-spacing: 0.02em;
  background: linear-gradient(100deg, #fff 0%, #ffc1d6 30%, #fff 50%, #e7d3ff 70%, #fff 100%); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 5s linear infinite; filter: drop-shadow(0 0 24px rgba(242, 139, 176, 0.75));
}
.ss-final__text { font-family: var(--font-script); font-weight: 700; font-size: clamp(1.6rem, 4.4vw, 2.6rem); line-height: 1.35; color: #ffe3ee; text-shadow: 0 0 20px rgba(242, 139, 176, 0.8); }
.ss-final__close { opacity: 0; transition: opacity 0.8s; pointer-events: none; }
.ss-final__close.is-visible { opacity: 1; pointer-events: auto; }

/* ==============================
   EASTER EGG MODAL
   ============================== */
.secret { position: fixed; inset: 0; z-index: 9100; display: grid; place-items: center; padding: 1.5rem; visibility: hidden; pointer-events: none; transition: visibility 0s 0.6s; }
.secret.is-open { visibility: visible; pointer-events: auto; transition: visibility 0s; }
.secret__backdrop { position: absolute; inset: 0; background: rgba(90, 30, 60, 0.25); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.6s; }
.secret.is-open .secret__backdrop { opacity: 1; }
.secret__card {
  width: min(480px, 100%); padding: 2.4rem 2rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem;
  background: rgba(255, 255, 255, 0.72); opacity: 0; transform: scale(0.85) translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-spring);
}
.secret.is-open .secret__card { opacity: 1; transform: none; }
.secret__emoji { font-size: 2.6rem; animation: floaty 3s ease-in-out infinite; }
.secret__card h3 { font-family: var(--font-serif); font-size: 1.7rem; color: var(--rose-700); }
.secret__card p { font-family: var(--font-serif); font-style: italic; color: var(--ink); line-height: 1.8; }

/* ==============================
   FINAL SECTION
   ============================== */
.final { padding-bottom: 0; background: linear-gradient(180deg, rgba(255, 247, 242, 0) 0%, rgba(255, 247, 242, 0.9) 22%, var(--cream) 100%); }
.final__inner { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1.2rem; padding-block: 2rem 4rem; }
.final__title { font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: clamp(2rem, 5.5vw, 3.8rem); color: var(--rose-900); line-height: 1.2; }
.final__sub { font-family: var(--font-script); font-weight: 700; font-size: clamp(1.6rem, 3.6vw, 2.3rem); color: var(--rose-500); }
.final__heart { width: 54px; height: 54px; margin-block: 0.8rem; }
.final__heart svg { width: 100%; height: 100%; animation: heartbeat 1.3s ease-in-out infinite; filter: drop-shadow(0 6px 16px rgba(224, 96, 143, 0.45)); }
.final__made { color: var(--ink-soft); font-weight: 500; }
.footer { position: relative; text-align: center; padding: 1.6rem 1rem calc(1.6rem + env(safe-area-inset-bottom)); font-size: 0.85rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--ink-soft); border-top: 1px solid rgba(224, 96, 143, 0.12); }

/* ==============================
   FLOATING HEART INTERACTION (DOM hearts)
   ============================== */
.pop-heart { position: fixed; left: 0; top: 0; z-index: 9700; pointer-events: none; will-change: transform, opacity; }
.pop-heart svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 2px 6px rgba(224, 96, 143, 0.4)); }

/* ==============================
   TOAST
   ============================== */
.toast {
  position: fixed; left: 50%; bottom: max(90px, calc(env(safe-area-inset-bottom) + 90px)); z-index: 9800; max-width: calc(100% - 2rem);
  padding: 0.8rem 1.4rem; border-radius: 99px; font-size: 0.92rem; font-weight: 600; color: var(--rose-900); text-align: center;
  background: rgba(255, 255, 255, 0.9); box-shadow: var(--shadow-soft);
  opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: opacity 0.4s, transform 0.5s var(--ease-out);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ==============================
   KEYFRAMES
   ============================== */
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.14); }
  28% { transform: scale(1); }
  42% { transform: scale(1.1); }
  70% { transform: scale(1); }
}
@keyframes glowPulse { 0%, 100% { opacity: 0.6; transform: scale(0.95); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes bgDrift { 0% { transform: translate3d(0, 0, 0) rotate(0deg); } 100% { transform: translate3d(-6%, 4%, 0) rotate(8deg); } }
@keyframes orbFloat { 0% { transform: translate3d(0, 0, 0) scale(1); } 100% { transform: translate3d(6vw, 5vh, 0) scale(1.12); } }
@keyframes shimmer { to { background-position: 200% center; } }
@keyframes btnGlow { 0%, 100% { box-shadow: 0 10px 30px rgba(217, 74, 133, 0.35), 0 0 0 0 rgba(242, 139, 176, 0.0), inset 0 1px 0 rgba(255, 255, 255, 0.35); } 50% { box-shadow: 0 12px 40px rgba(217, 74, 133, 0.45), 0 0 34px 6px rgba(242, 139, 176, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes tick { 0% { transform: translateY(-3px); opacity: 0.6; } 100% { transform: none; opacity: 1; } }
@keyframes dotPulse { 0%, 100% { box-shadow: 0 0 0 5px rgba(253, 230, 239, 0.9), 0 6px 20px rgba(224, 96, 143, 0.35); } 50% { box-shadow: 0 0 0 10px rgba(242, 139, 176, 0.25), 0 6px 28px rgba(224, 96, 143, 0.6); } }
@keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); } 50% { opacity: 0.5; transform: scale(0.7) rotate(45deg); } }
@keyframes featuredGlow { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-5deg); } 40% { transform: rotate(5deg); } 60% { transform: rotate(-3deg); } 80% { transform: rotate(2deg); } }
@keyframes zoomGlowIn {
  0% { opacity: 0; transform: scale(0.55); filter: blur(14px); }
  60% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 1024px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .polaroid:nth-child(even) { margin-top: 1.2rem; }
  .months__grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .month-card { padding: 1.1rem 1.1rem 1.4rem; }
  .month-card__num { font-size: 3rem; }
}

@media (max-width: 860px) {
  .counter__grid { grid-template-columns: repeat(2, 1fr); }
  .months__grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; gap: 1.8rem; }
  .month-card--featured { scale: 1.03; }
}

@media (max-width: 768px) {
  /* Timeline becomes single-sided */
  .timeline__track { left: 21px; margin-left: 0; }
  .tl-item, .tl-item--left, .tl-item--right { width: 100%; margin-left: 0; padding-left: 62px; padding-right: 0; }
  .tl-item--left .tl-item__dot, .tl-item--right .tl-item__dot { left: 0; right: auto; }
  .tl-item__dot { width: 42px; height: 42px; font-size: 1rem; }

  .logo__names { font-size: 1rem; }
  .dots-nav { right: 8px; gap: 12px; padding: 12px 7px; }
  .dots-nav__label { display: none; }
  .music-btn { width: 50px; height: 50px; }
  .music-btn__icon { font-size: 1.3rem; }
  .lightbox__nav { top: auto; bottom: max(22px, env(safe-area-inset-bottom)); margin-top: 0; width: 50px; height: 50px; }
  .lightbox__nav--prev { left: calc(50% - 64px); }
  .lightbox__nav--next { right: calc(50% - 64px); }
  .lightbox__figure img { max-height: 62vh; max-height: 62svh; }
}

@media (max-width: 520px) {
  :root { --radius: 20px; }
  .container { width: min(1120px, 100% - 2rem); }
  .gallery__grid { gap: 1.6rem 1rem; padding: 0.5rem 0; }
  .polaroid { padding: 8px 8px 0; }
  .polaroid::before { width: 60px; margin-left: -30px; height: 18px; top: -9px; }
  .polaroid figcaption { font-size: 1rem; padding: 0.55rem 0.2rem 0.7rem; }
  .counter__card { padding: 1.3rem 0.6rem; }
  .counter__label { font-size: 0.7rem; letter-spacing: 0.2em; }
  .tl-card__body { padding: 1.1rem 1.1rem 1.3rem; }
  .reasons__card { padding: 1.5rem 1.2rem; }
  .btn { padding: 0.95rem 1.8rem; font-size: 1rem; }
  .hero__months { letter-spacing: 0.45em; margin-right: -0.45em; }
  .topbar { left: 12px; }
}

@media (max-height: 640px) and (min-width: 769px) {
  .hero__big { font-size: clamp(6rem, 22vh, 11rem); }
  .hero__title { font-size: clamp(2.6rem, 9vh, 4.4rem); }
}

/* ==============================
   THAI TYPOGRAPHY
   (Hero keeps the English fonts; everything else uses Thai fonts)
   ============================== */
.hero { --font-script: var(--en-script); --font-serif: var(--en-serif); --font-body: var(--en-body); font-family: var(--en-body); }

/* Thai fonts look best upright (no fake italics) */
.loader__text, .reasons__text, .letter-paper p, .final__title, .ss-eyes, .secret__card p { font-style: normal; }

/* Itim has a single weight — avoid faux-bold */
.section-title, .tl-card h3, .month-card h3, .final__title, .ss-final__title, .secret__card h3,
.counter__num, .month-card__num { font-weight: 400; }

/* Extra room for Thai vowels & tone marks */
.section-title { line-height: 1.45; text-wrap: balance; }
.final__title, .ss-final__title { text-wrap: balance; }
.ss-final__title { line-height: 1.35; letter-spacing: 0; }
.tl-card h3, .month-card h3 { line-height: 1.45; }
.letter-paper p { line-height: 2; }
.letter-paper__greeting, .letter-paper__love { font-weight: 400 !important; }
.reasons__text { line-height: 1.7; }

/* Thai doesn't need wide tracking */
.counter__label, .tl-card__date, .reasons__count, .month-card__tag, .footer, .dots-nav__label, .lightbox__count { letter-spacing: 0.04em; margin-right: 0; }
.counter__label { font-size: 0.92rem; }
.tl-card__date, .month-card__tag, .reasons__count { font-size: 0.85rem; }
.logo__names { font-weight: 400; }
.polaroid figcaption, .lightbox__figure figcaption, .section-kicker, .envelope__hint, .surprise__text,
.final__sub, .ss-final__text, .counter__note, .reasons__hint, .envelope__paper-title { font-weight: 400; }

/* No-GSAP fallback: everything visible */
html.no-gsap [data-reveal] { opacity: 1 !important; }

/* ==============================
   REDUCED MOTION
   ============================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.25s !important;
    transition-delay: 0s !important;
  }
  .ss-final.is-visible { animation: none; opacity: 1; }
  .orb { animation: none; }
}
