/* ============================================================
   For Her — Interactive Romantic Website
   style.css  ·  mobile-first  ·  soft minimal
   ============================================================ */

:root {
  --bg: #FBF6F0;
  --bg-soft: #F7EEE7;
  --paper: #FFFDFA;
  --ink: #43302E;
  --muted: #7C615E;
  --rose: #C97B74;
  --rose-deep: #B4635B;
  --rose-soft: #F5E1DB;
  --blush: #F9EAE3;
  --hairline: rgba(67, 48, 46, 0.12);
  --gold: #C9A886;
  --dusk: #3A2427;
  --dusk-deep: #26161A;

  --serif: 'Playfair Display', 'Georgia', serif;
  --body: 'Sarabun', 'Segoe UI', sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --dur: 950ms;

  --radius: 22px;
  --tap: 56px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.85;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

html.locked, body.locked { overscroll-behavior: none; }

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; }

canvas#hearts-bg {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
body.started canvas#hearts-bg { opacity: 0.55; }
body.on-final canvas#hearts-bg { opacity: 1; }

canvas#burst {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 80; pointer-events: none;
}

.wrap { width: min(1080px, 92%); margin-inline: auto; }
.wrap.narrow { width: min(700px, 92%); }
.center { text-align: center; }

.hidden { display: none !important; }

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: var(--rose);
  text-transform: inherit;
  margin-bottom: 1.2rem;
}

.accent { color: var(--rose); font-style: italic; }

.section {
  position: relative;
  padding: clamp(4.5rem, 12vw, 8.5rem) 0;
  z-index: 1;
}

.section-title {
  font-size: clamp(1.7rem, 5.4vw, 2.5rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.4;
  margin-bottom: 1.4rem;
}

/* ---------- reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity var(--dur) var(--ease) var(--rd, 0ms),
    transform var(--dur) var(--ease) var(--rd, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.line {
  display: block;
  opacity: 0;
  transform: translateY(1em);
  transition:
    opacity 1s var(--ease) var(--rd, 0ms),
    transform 1s var(--ease) var(--rd, 0ms);
}
.is-in .line { opacity: 1; transform: none; }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--tap);
  padding: 0.7rem 2.2rem;
  border: none;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-deep) 100%);
  box-shadow: 0 14px 34px -14px rgba(185, 100, 95, 0.65);
  transition: transform 0.36s var(--ease), box-shadow 0.36s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.96); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--hairline);
  box-shadow: none;
}
.btn-ghost:hover { border-color: var(--rose); color: var(--rose-deep); background: var(--blush); }

.btn:focus-visible {
  outline: 3px solid rgba(201, 123, 116, 0.5);
  outline-offset: 3px;
}

/* ---------- 0. loading ---------- */
#loading {
  position: fixed; inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: radial-gradient(120% 120% at 50% 0%, #fffdf9 0%, var(--bg-soft) 60%, #f2e3dc 100%);
  opacity: 1;
  transition: opacity 0.8s 0.15s var(--ease), visibility 0s 1s;
}
#loading.done { opacity: 0; visibility: hidden; }

.loading__inner { text-align: center; padding: 0 1.5rem; }

.loading__heart {
  position: relative;
  width: 44px; height: 40px;
  margin: 0 auto 1.4rem;
  animation: heartPulse 1.5s ease-in-out infinite;
}
.loading__heart span,
.loading__heart::before,
.loading__heart::after {
  content: "";
  position: absolute;
  top: 0; left: 22px;
  width: 22px; height: 34px;
  background: var(--rose);
  border-radius: 11px 11px 0 0;
  transform-origin: 50% 100%;
  animation: heartPulse 1.5s ease-in-out infinite;
}
.loading__heart::before { transform: rotate(-45deg); animation-delay: 0.06s; }
.loading__heart::after { transform: rotate(45deg); animation-delay: 0.06s; }
.loading__heart span { left: 0; }

@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.12); }
  55% { transform: scale(0.96); }
  70% { transform: scale(1.06); }
}
@keyframes heartFill {
  0%, 85% { opacity: 0; }
  100% { opacity: 1; }
}

.loading__text {
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 1.3rem;
}

.loading__bar {
  width: 180px; height: 3px;
  margin-inline: auto;
  border-radius: 99px;
  background: rgba(201, 123, 116, 0.18);
  overflow: hidden;
}
.loading__bar i {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rose-soft), var(--rose));
  animation: loadSlide 1.1s var(--ease) infinite alternate;
}
@keyframes loadSlide {
  from { transform: translateX(-100%); }
  to { transform: translateX(260%); }
}

.loading #main { display: none; }

/* ---------- 1. opening ---------- */
.opening {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0 1.5rem;
  z-index: 2;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
}
.opening.is-open {
  opacity: 0;
  transform: translateY(-46px);
  filter: blur(6px);
  pointer-events: none;
}

.opening__inner { max-width: 640px; }

.opening__title {
  font-size: clamp(2.1rem, 7.5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: 0.01em;
  margin: 0.6rem 0 1.1rem;
}

.opening__hint {
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 2.2rem;
}

.btn-open { box-shadow: 0 18px 44px -16px rgba(185, 100, 95, 0.75); }

.btn-open__ring {
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 1.5px solid rgba(201, 123, 116, 0.55);
  animation: ringPulse 2.4s var(--ease) infinite;
}
@keyframes ringPulse {
  0% { transform: scale(0.86); opacity: 0.9; }
  70% { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}

.opening__scroll {
  position: absolute;
  bottom: 4.5vh;
  left: 50%;
  transform: translateX(-50%);
  color: var(--rose);
  font-size: 1.2rem;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

.opening__orbs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  animation: drift 16s ease-in-out infinite;
  pointer-events: none;
}
.opening__orbs span:nth-child(1) {
  width: 46vmax; height: 46vmax; left: -12vmax; top: -8vmax;
  background: radial-gradient(circle, #F3D9Cf, transparent 65%);
}
.opening__orbs span:nth-child(2) {
  width: 38vmax; height: 38vmax; right: -14vmax; bottom: -6vmax;
  background: radial-gradient(circle, #EFD3D8, transparent 65%);
  animation-delay: -6s;
}
.opening__orbs span:nth-child(3) {
  width: 22vmax; height: 22vmax; left: 22%; bottom: -4vmax;
  background: radial-gradient(circle, #EBDEC8, transparent 65%);
  animation-delay: -11s;
}
@keyframes drift {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(4vmax, -3vmax) scale(1.1); }
}

/* ---------- 2. love message ---------- */
.love-message { text-align: center; }

.love-message__big {
  font-size: clamp(2.3rem, 8vw, 4rem);
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 2rem;
}

.love-message__small {
  font-weight: 300;
  color: var(--muted);
  font-size: clamp(1rem, 3.4vw, 1.15rem);
  line-height: 2.1;
}

/* ---------- 3. polaroids ---------- */
.photos { background: linear-gradient(180deg, var(--bg) 0%, var(--blush) 100%); }

.photos__intro {
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 2.6rem;
  line-height: 2.1;
}

.polaroids {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 330px);
  gap: 1.4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1.4rem 4% 2.6rem;
  margin: 0 -4%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.polaroids::-webkit-scrollbar { display: none; }

.polaroid {
  scroll-snap-align: center;
  position: relative;
  background: #fffdfb;
  padding: 15px 15px 14px;
  border-radius: 6px;
  box-shadow: 0 24px 50px -26px rgba(80, 48, 45, 0.4);
  transition:
    opacity var(--dur) var(--ease) var(--rd, 0ms),
    transform 0.6s var(--ease) var(--rd, 0ms),
    box-shadow 0.6s var(--ease);
}
.polaroid[data-reveal] { transform: translateY(30px) rotate(var(--tilt, 0deg)); }
.polaroid.is-in { transform: rotate(0deg); }
.polaroid:hover { transform: rotate(0deg) translateY(-8px); box-shadow: 0 34px 60px -26px rgba(80, 48, 45, 0.5); }

.polaroid__tape {
  position: absolute;
  top: -13px; left: 50%;
  width: 84px; height: 28px;
  margin-left: -42px;
  background: rgba(247, 236, 225, 0.85);
  border-left: 1px dashed rgba(201, 123, 116, 0.25);
  border-right: 1px dashed rgba(201, 123, 116, 0.25);
  transform: rotate(-2deg);
  box-shadow: 0 2px 6px rgba(120, 80, 70, 0.08);
}

.polaroid__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 3px;
  background: var(--blush);
}
.polaroid__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.polaroid:hover .polaroid__frame img { transform: scale(1.06); }

.polaroid__caption {
  padding-top: 13px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.86rem;
  color: var(--muted);
  min-height: 1.6em;
}
.polaroid__date {
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  color: #b4a09c;
  text-transform: uppercase;
  margin-top: 2px;
}

.photo-placeholder {
  width: 100%; height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 90% at 30% 15%, #f9eae3 0%, transparent 55%),
    radial-gradient(140% 100% at 78% 85%, #f3d9ce 0%, transparent 60%),
    linear-gradient(160deg, #fdf5ee, #f6e3dc);
}
.photo-placeholder span { font-size: 3rem; opacity: 0.75; }
.photo-placeholder small {
  position: absolute;
  bottom: 2rem;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: #c29a95;
  text-transform: uppercase;
}

/* ---------- 4. timeline ---------- */
.story { background: var(--bg-soft); }

.timeline {
  position: relative;
  margin-top: 2.4rem;
  padding-left: 2rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0.6rem; top: 0; bottom: 0;
  width: 2px;
  border-radius: 2px;
  background: var(--hairline);
}
.timeline__line {
  position: absolute;
  left: 0.6rem; top: 0;
  width: 2px; height: 100%;
  transform-origin: top;
  transform: scaleY(0);
  background: linear-gradient(180deg, var(--rose-soft), var(--rose));
  z-index: 1;
}

.timeline-item { position: relative; padding-bottom: 2.6rem; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.74rem;
  top: 0.5rem;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--rose);
  box-shadow: 0 0 0 4px var(--blush);
}

.timeline-item:last-child { padding-bottom: 0.2rem; }

.timeline-item__card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: 0 18px 40px -28px rgba(80, 48, 45, 0.35);
}
.timeline-item__date {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--rose);
  margin-bottom: 0.5rem;
}
.timeline-item__title {
  font-size: clamp(1.15rem, 4.4vw, 1.4rem);
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.timeline-item__text { font-weight: 300; color: var(--muted); font-size: 0.98rem; }

/* ---------- 5. reasons ---------- */
.reason-scroll {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 2rem -4% 0;
  padding: 1.2rem 4% 2.6rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.reason-scroll::-webkit-scrollbar { display: none; }

.reason-swipe-hint {
  text-align: center;
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: #b09a96;
  margin-bottom: -0.8rem;
  animation: bob 2.6s ease-in-out infinite;
}

.reason-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(76vw, 300px);
  gap: 1.2rem;
}
.reason-grid[data-scrolled] { justify-content: start; }

.reason-card {
  position: relative;
  scroll-snap-align: center;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.7rem 1.6rem;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--hairline);
  box-shadow: 0 18px 40px -30px rgba(80, 48, 45, 0.4);
  transition:
    opacity var(--dur) var(--ease) var(--rd, 0ms),
    transform 0.55s var(--ease) var(--rd, 0ms),
    box-shadow 0.55s var(--ease),
    border-color 0.55s var(--ease);
}
.reason-card[data-reveal] { opacity: 0; transform: translateY(30px); }
.reason-card.is-in { opacity: 1; transform: none; }
.reason-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201, 123, 116, 0.5);
  box-shadow: 0 30px 55px -30px rgba(80, 48, 45, 0.5);
}

.reason-card__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--rose);
  letter-spacing: 0.12em;
}
.reason-card__text {
  font-size: clamp(1rem, 4vw, 1.12rem);
  font-weight: 300;
  line-height: 1.9;
}

/* ---------- 6. ask ---------- */
.ask { background: linear-gradient(180deg, var(--blush) 0%, var(--bg) 100%); }

.ask__card {
  position: relative;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 30px;
  padding: clamp(2.6rem, 8vw, 4rem) clamp(1.4rem, 6vw, 3.4rem);
  box-shadow: 0 40px 90px -50px rgba(80, 48, 45, 0.45);
  overflow: hidden;
}

.ask__quote {
  position: absolute;
  top: 0.4rem; left: 1.5rem;
  font-family: var(--serif);
  font-size: 7rem;
  line-height: 1;
  color: var(--rose-soft);
  user-select: none;
}

.ask__card.nudge { animation: askNudge 0.45s var(--ease); }
@keyframes askNudge {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}
#yesBtn.pulse { animation: yesPulse 0.6s ease; }
@keyframes yesPulse {
  0% { box-shadow: 0 0 0 0 rgba(201, 123, 116, 0.55); }
  100% { box-shadow: 0 0 0 16px rgba(201, 123, 116, 0); }
}

.ask__question {
  font-size: clamp(1.9rem, 7vw, 2.8rem);
  font-weight: 400;
  line-height: 1.5;
  margin: 0.2rem 0 2.1rem;
}

.ask__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}
#yesBtn { flex: 1 1 160px; max-width: 240px; }
#noBtn { flex: 1 1 160px; max-width: 240px; }
#yesBtn.grew {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px -16px rgba(185, 100, 95, 0.85);
}

.ask__result { margin-top: 2.2rem; animation: riseIn 0.8s var(--ease); }
.ask__result[hidden] { display: none; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

.ask__result-title {
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  font-weight: 400;
  color: var(--rose-deep);
  margin-bottom: 1rem;
}
.ask__result-text {
  font-weight: 300;
  color: var(--muted);
  line-height: 2.1;
  margin-bottom: 1.6rem;
}

/* ---------- 7. letter ---------- */
.letter { background: radial-gradient(120% 90% at 50% 0%, var(--blush), var(--bg) 65%); }

.letter__card {
  position: relative;
  background: linear-gradient(180deg, #fffdfb 0%, #fbf4ec 100%);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: clamp(2.4rem, 8vw, 4.2rem) clamp(1.5rem, 7vw, 3.4rem);
  box-shadow: 0 46px 100px -55px rgba(80, 48, 45, 0.5);
}

.letter__seal {
  position: absolute;
  top: -22px; left: 50%;
  transform: translateX(-50%);
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.3rem;
  color: var(--paper);
  background:
    radial-gradient(circle at 35% 30%, #d98d84, #b4635b 70%);
  box-shadow: 0 10px 22px -8px rgba(180, 99, 91, 0.7);
  border: 3px solid rgba(255, 253, 251, 0.55);
}

.letter__to {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 1.7rem;
}

.letter__body {
  font-weight: 300;
  color: var(--muted);
  font-size: clamp(1rem, 3.6vw, 1.12rem);
  line-height: 2.2;
  white-space: pre-line;
}

.letter__sign {
  margin-top: 2.6rem;
  text-align: right;
}
.letter__from {
  font-weight: 300;
  color: var(--muted);
  font-size: 0.95rem;
}
.letter__name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.9rem;
  color: var(--ink);
  margin-top: 0.3rem;
}
.letter__line {
  width: 120px; height: 1.5px;
  margin: 1.1rem 0 0 auto;
  background: linear-gradient(90deg, transparent, var(--gold));
}

/* ---------- 8. final ---------- */
.final {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  background: linear-gradient(180deg, var(--dusk) 0%, var(--dusk-deep) 100%);
  color: #fbf2ec;
}
.final::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 50% 38%, rgba(206, 130, 120, 0.28), transparent 70%);
  pointer-events: none;
}

.final__inner { position: relative; padding: 0 1.5rem; }

.final__eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: #e8b8ac;
  margin-bottom: 1.4rem;
}

.final__title {
  font-family: 'Sarabun', var(--body);
  font-weight: 400;
  font-size: clamp(3.2rem, 14vw, 6rem);
  line-height: 1.15;
  background: linear-gradient(120deg, #fdf1ea, #f3c6b8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1.3rem;
}

.final__sub {
  font-weight: 300;
  color: rgba(251, 242, 236, 0.82);
  margin-bottom: 2.6rem;
  font-size: clamp(1rem, 3.6vw, 1.15rem);
}

.btn-replay {
  background: rgba(255, 253, 251, 0.1);
  border: 1px solid rgba(255, 253, 251, 0.32);
  box-shadow: none;
  backdrop-filter: blur(6px);
}
.btn-replay:hover {
  background: rgba(255, 253, 251, 0.2);
  border-color: rgba(255, 253, 251, 0.6);
}

/* ---------- music button ---------- */
.music-btn {
  position: fixed;
  top: calc(18px + env(safe-area-inset-top));
  right: 18px;
  z-index: 60;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 253, 251, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--hairline);
  box-shadow: 0 10px 26px -12px rgba(80, 48, 45, 0.35);
  color: var(--rose-deep);
  font-size: 1.05rem;
  transition: transform 0.3s var(--ease), color 0.3s;
  -webkit-tap-highlight-color: transparent;
}
.music-btn:active { transform: scale(0.9); }
.music-btn.is-playing { background: transparent; border-color: transparent; box-shadow: none; }
.on-final .music-btn { color: #e8b8ac; background: rgba(255, 253, 251, 0.08); border-color: rgba(255,253,251,0.25); }

.music-btn__note { font-size: 1rem; transition: opacity 0.3s; position: absolute; }
.is-playing .music-btn__note { opacity: 0; transform: scale(0.6); }

.music-btn__waves {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
  opacity: 0;
  transition: opacity 0.3s;
}
.is-playing .music-btn__waves { opacity: 1; }

.music-btn__waves i {
  width: 3px;
  border-radius: 2px;
  background: currentColor;
  animation: wave 1.1s ease-in-out infinite;
}
.music-btn__waves i:nth-child(1) { height: 8px; animation-delay: 0s; }
.music-btn__waves i:nth-child(2) { height: 16px; animation-delay: 0.18s; }
.music-btn__waves i:nth-child(3) { height: 10px; animation-delay: 0.36s; }
@keyframes wave { 0%,100% { transform: scaleY(0.55); } 50% { transform: scaleY(1); } }

/* ---------- medium screens ---------- */
@media (min-width: 640px) {
  .polaroids, .reason-scroll { margin: 0; padding-left: 0; padding-right: 0; }
  .polaroids { grid-auto-columns: 300px; justify-content: center; margin-top: 0.6rem; }
  .reason-grid { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
  .reason-scroll { overflow: visible; margin-top: 2rem; padding: 0.6rem 0 0; }
  .reason-swipe-hint { display: none; }
}

/* ---------- large screens / timeline center ---------- */
@media (min-width: 860px) {
  .timeline {
    padding-left: 0;
    padding-bottom: 1rem;
  }
  .timeline::before { left: 50%; transform: translateX(-50%); }
  .timeline__line { left: 50%; transform: translateX(-50%) scaleY(0); }

  .timeline-item {
    width: 50%;
    padding-right: 3.4rem;
    padding-bottom: 4rem;
  }
  .timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 3.4rem;
  }
  .timeline-item::before {
    left: auto;
    right: -8px;
  }
  .timeline-item:nth-child(even)::before { right: auto; left: -8px; }
  .timeline-item__card:hover { transform: translateY(-4px); }

  .section-title { font-size: 2.6rem; }
}

/* ---------- 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.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal], .line { opacity: 1; transform: none; }
  .reason-card[data-reveal] { opacity: 1; transform: none; }
}