/* =========================================================================
   For Amma — Mother's Day Keepsake
   styles.css
   ------------------------------------------------------------------------
   Sections:
     1. Tokens & resets
     2. Ambient background
     3. Intro / welcome scene
     4. Main stage (header + memory orbs)
     5. Final gift scene
     6. Memory-card modal
     7. Footer
     8. Utilities & a11y
     9. Responsive
   ========================================================================= */

/* ----- 1. Design tokens & reset ----- */
:root {
  /* Palette — soft, warm, museum-card */
  --bg-1: #fff7f3;
  --bg-2: #ffe8ee;
  --bg-3: #ffd9e5;
  --bg-4: #f7e6ff;

  --ink-1: #2a1424;
  --ink-2: #5a2a4a;
  --ink-3: #8a4a73;

  --rose-100: #ffeaf2;
  --rose-300: #f7a9c4;
  --rose-500: #e75388;
  --rose-700: #c2185b;
  --rose-900: #7a1141;

  --gold:    #d4a373;
  --gold-2:  #b88652;

  /* Type */
  --font-sans:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif:   'Cormorant Garamond', 'Georgia', serif;
  --font-script:  'Dancing Script', cursive;

  /* Geometry */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --shadow-soft: 0 10px 30px -10px rgba(122, 17, 65, 0.18);
  --shadow-lift: 0 24px 60px -20px rgba(122, 17, 65, 0.35);
  --shadow-deep: 0 40px 100px -30px rgba(42, 20, 36, 0.45);

  /* Motion */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.2, 0.9, 0.3, 1.4);
  --ease-soft:   cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--ink-2);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  position: relative;
  overscroll-behavior: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
}

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

/* Selection */
::selection { background: var(--rose-300); color: var(--ink-1); }


/* ----- 2. Ambient background ----- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 20%, var(--bg-2), transparent 60%),
    radial-gradient(ellipse at 80% 80%, var(--bg-3), transparent 60%),
    radial-gradient(ellipse at 50% 50%, var(--bg-4), transparent 70%),
    var(--bg-1);
}

.mesh {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  mix-blend-mode: multiply;
  will-change: transform;
}
.mesh--1 {
  width: 60vw; height: 60vw;
  top: -15vw; left: -10vw;
  background: radial-gradient(circle, var(--rose-300), transparent 60%);
  animation: drift 22s ease-in-out infinite alternate;
}
.mesh--2 {
  width: 50vw; height: 50vw;
  bottom: -10vw; right: -10vw;
  background: radial-gradient(circle, #ffd6a8, transparent 60%);
  animation: drift 28s ease-in-out -8s infinite alternate-reverse;
}
.mesh--3 {
  width: 40vw; height: 40vw;
  top: 30vh; left: 40vw;
  background: radial-gradient(circle, #d6c8ff, transparent 60%);
  animation: drift 34s ease-in-out -14s infinite alternate;
}
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(8vw, 6vh, 0) scale(1.15); }
}

#ambient-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}


/* ----- 3. Intro / welcome ----- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at center, rgba(255, 247, 243, 0.0) 0%, rgba(255, 247, 243, 0.4) 100%);
  transition: opacity 1s var(--ease-out), visibility 1s;
}
.intro.is-hiding {
  opacity: 0;
  pointer-events: none;
}
.intro.is-hidden { visibility: hidden; }

.intro__inner {
  text-align: center;
  max-width: 620px;
}

.intro__eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--rose-700);
  opacity: 0;
  animation: fadeUp 0.9s 0.1s var(--ease-out) forwards;
}

.intro__title {
  margin: 18px 0 14px;
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--ink-1);
  line-height: 1.05;
}
.intro__title-line {
  display: block;
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  font-style: italic;
  opacity: 0;
  animation: fadeUp 0.9s 0.3s var(--ease-out) forwards;
}
.intro__title-name {
  display: block;
  font-family: var(--font-script);
  font-weight: 700;
  font-size: clamp(4rem, 14vw, 8rem);
  color: var(--rose-700);
  background: linear-gradient(120deg, var(--rose-700), var(--rose-500), var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 14px rgba(231, 83, 136, 0.25));
  opacity: 0;
  animation: fadeUp 1.1s 0.55s var(--ease-spring) forwards;
}

.intro__sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--ink-3);
  max-width: 460px;
  margin: 6px auto 32px;
  opacity: 0;
  animation: fadeUp 0.9s 0.85s var(--ease-out) forwards;
}

.intro__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 999px;
  background: var(--ink-1);
  color: var(--bg-1);
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  box-shadow: 0 14px 30px -10px rgba(42, 20, 36, 0.5);
  transform: translateY(8px);
  opacity: 0;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s, background 0.4s;
  animation: fadeUp 0.9s 1.1s var(--ease-out) forwards;
}
.intro__btn:hover {
  transform: translateY(-2px);
  background: var(--rose-700);
  box-shadow: 0 18px 36px -10px rgba(194, 24, 91, 0.55);
}
.intro__btn svg { transition: transform 0.3s var(--ease-out); }
.intro__btn:hover svg { transform: translateX(4px); }

.intro__hint {
  margin-top: 18px;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  opacity: 0;
  animation: fadeUp 0.9s 1.4s var(--ease-out) forwards;
}

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


/* ----- 4. Stage ----- */
.stage {
  position: fixed;
  inset: 0;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s var(--ease-out);
}
.stage.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.stage.is-fading-out {
  opacity: 0;
  transition: opacity 1.2s var(--ease-soft);
}

.stage__header {
  position: relative;
  z-index: 2;
  padding: 28px 24px 0;
  text-align: center;
  pointer-events: none;
}
.stage__eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--rose-700);
  opacity: 0.85;
}
.stage__title {
  margin: 6px 0 14px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--ink-1);
}

.stage__progress {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.stage__progress-track {
  width: clamp(180px, 32vw, 260px);
  height: 6px;
  background: rgba(122, 17, 65, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.stage__progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--rose-300), var(--rose-500), var(--rose-700));
  border-radius: 999px;
  transition: width 0.7s var(--ease-spring);
  box-shadow: 0 0 18px rgba(231, 83, 136, 0.5);
}
.stage__progress-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Orbs container */
.orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  --orb-size: 124px;
  position: absolute;
  width: var(--orb-size);
  height: var(--orb-size);
  border-radius: 50%;
  pointer-events: auto;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.4s var(--ease-spring), filter 0.4s;
  will-change: transform, left, top;
  outline: none;
}
.orb:focus-visible .orb__shell {
  box-shadow: 0 0 0 3px var(--rose-500), 0 20px 40px -10px rgba(231, 83, 136, 0.4);
}

.orb__halo {
  position: absolute;
  inset: -28px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 221, 0.65), transparent 65%);
  filter: blur(8px);
  opacity: 0.85;
  animation: pulse 3.6s ease-in-out infinite;
  pointer-events: none;
}

.orb__shell {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,0.95), rgba(255,255,255,0.5) 40%, rgba(255, 220, 232, 0.35) 70%, rgba(255, 200, 221, 0.15) 100%);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -10px 24px rgba(231, 83, 136, 0.18),
    0 16px 36px -10px rgba(122, 17, 65, 0.3);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s;
}
.orb:hover .orb__shell {
  transform: scale(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 -12px 28px rgba(231, 83, 136, 0.28),
    0 24px 50px -10px rgba(194, 24, 91, 0.45);
}
.orb:hover .orb__halo { opacity: 1; transform: scale(1.05); }
.orb:active .orb__shell { transform: scale(0.96); }

.orb__icon {
  position: relative;
  font-size: 2.4rem;
  filter: drop-shadow(0 4px 8px rgba(122, 17, 65, 0.3));
  animation: bobble 4s ease-in-out infinite;
}

.orb__label {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-2);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}
.orb:hover .orb__label {
  opacity: 1;
  transform: translateX(-50%) translateY(2px);
}

.orb.is-collected {
  animation: collect 0.9s var(--ease-spring) forwards;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% { transform: scale(1);   opacity: 0.85; }
  50%      { transform: scale(1.18); opacity: 1; }
}
@keyframes bobble {
  0%, 100% { transform: translateY(0)   rotate(-3deg); }
  50%      { transform: translateY(-6px) rotate(3deg); }
}
@keyframes collect {
  0%   { transform: scale(1)   rotate(0);    opacity: 1; }
  40%  { transform: scale(1.35) rotate(180deg); opacity: 1; }
  100% { transform: scale(0)    rotate(540deg); opacity: 0; }
}


/* ----- 5. Final gift scene ----- */
.gift-stage {
  position: fixed;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s var(--ease-out);
}
.gift-stage.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.gift-stage__pedestal {
  text-align: center;
  position: relative;
  transform: translateY(20px);
  opacity: 0;
  animation: pedestalIn 1.2s 0.2s var(--ease-spring) forwards;
}
@keyframes pedestalIn {
  to { opacity: 1; transform: translateY(0); }
}

.gift-stage__halo {
  position: absolute;
  top: 50%; left: 50%;
  width: 360px; height: 360px;
  transform: translate(-50%, -65%);
  background:
    radial-gradient(circle, rgba(255, 200, 221, 0.7), rgba(255,255,255,0) 60%);
  border-radius: 50%;
  filter: blur(20px);
  animation: pulse 3.4s ease-in-out infinite;
  pointer-events: none;
}

/* The wrapped present */
.gift {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto;
  display: block;
  transform: translateZ(0);
  animation: giftFloat 3.4s ease-in-out infinite;
  filter: drop-shadow(0 24px 40px rgba(122, 17, 65, 0.35));
  transition: transform 0.4s var(--ease-spring);
}
.gift:hover { transform: scale(1.05); }
@keyframes giftFloat {
  0%, 100% { transform: translateY(0)   rotate(-2deg); }
  50%      { transform: translateY(-14px) rotate(2deg); }
}

.gift__box {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 70%;
  background:
    linear-gradient(160deg, var(--rose-500) 0%, var(--rose-700) 100%);
  border-radius: 8px;
  box-shadow:
    inset 0 4px 0 rgba(255,255,255,0.18),
    inset 0 -10px 20px rgba(122, 17, 65, 0.4);
}
.gift__lid {
  position: absolute;
  top: 0;
  left: -6%; right: -6%;
  height: 38%;
  background:
    linear-gradient(160deg, var(--rose-300) 0%, var(--rose-500) 100%);
  border-radius: 8px;
  box-shadow:
    inset 0 4px 0 rgba(255,255,255,0.3),
    inset 0 -8px 16px rgba(194, 24, 91, 0.35),
    0 6px 12px -4px rgba(122, 17, 65, 0.4);
  transform-origin: center bottom;
  transition: transform 0.6s var(--ease-spring);
  z-index: 3;
}
.gift__ribbon-v {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%; transform: translateX(-50%);
  width: 18px;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  box-shadow: inset -2px 0 4px rgba(0,0,0,0.15), inset 2px 0 4px rgba(255,255,255,0.4);
  z-index: 2;
}
.gift__ribbon-h {
  position: absolute;
  left: -6%; right: -6%;
  top: 38%; height: 18px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.15), inset 0 2px 4px rgba(255,255,255,0.4);
  z-index: 2;
}
.gift__bow {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 40px;
  z-index: 4;
}
.gift__bow-l, .gift__bow-r {
  position: absolute;
  top: 0;
  width: 36px; height: 36px;
  background: radial-gradient(circle at 30% 30%, var(--gold), var(--gold-2));
  border-radius: 50% 60% 30% 60%;
  box-shadow: inset 0 -4px 8px rgba(0,0,0,0.15);
}
.gift__bow-l { left: 0;  transform: rotate(-25deg); }
.gift__bow-r { right: 0; transform: rotate(25deg) scaleX(-1); }
.gift__bow-c {
  position: absolute;
  top: 8px; left: 50%;
  width: 22px; height: 22px;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--gold-2), #8a5e36);
  border-radius: 50%;
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.3);
}

/* Opening animation */
.gift.is-opening { animation: giftShake 0.6s var(--ease-out); }
.gift.is-opening .gift__lid {
  transform: translateY(-160%) rotate(-12deg);
}
.gift.is-opening .gift__bow {
  animation: bowFly 0.8s var(--ease-out) forwards;
}
@keyframes giftShake {
  0%, 100% { transform: translateY(0) rotate(0); }
  20% { transform: translateY(-6px) rotate(-2deg); }
  40% { transform: translateY(0)    rotate(3deg); }
  60% { transform: translateY(-4px) rotate(-2deg); }
  80% { transform: translateY(0)    rotate(1deg); }
}
@keyframes bowFly {
  to { transform: translateX(-50%) translateY(-200px) scale(0.6) rotate(40deg); opacity: 0; }
}

.gift-stage__label {
  margin-top: 28px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-2);
}
.gift-stage__hint {
  margin-top: 6px;
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--rose-700);
  animation: pulseSoft 1.6s ease-in-out infinite;
}
@keyframes pulseSoft {
  0%, 100% { opacity: 0.7; transform: translateY(0); }
  50%      { opacity: 1;   transform: translateY(-3px); }
}


/* ----- 6. Memory-card modal ----- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}
.modal.is-open {
  visibility: visible;
  opacity: 1;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(42, 20, 36, 0.35), rgba(42, 20, 36, 0.65));
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}

.memory-card {
  position: relative;
  width: min(440px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background:
    linear-gradient(180deg, #fffaf6 0%, #fff0f5 100%);
  border-radius: var(--radius-lg);
  padding: 36px 32px 32px;
  text-align: center;
  box-shadow: var(--shadow-deep);
  transform: translateY(20px) scale(0.94);
  opacity: 0;
  transition: transform 0.5s var(--ease-spring), opacity 0.4s;
}
.modal.is-open .memory-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Soft border glow */
.memory-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(231,83,136,0.2));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.memory-card::-webkit-scrollbar      { width: 6px; }
.memory-card::-webkit-scrollbar-thumb{ background: var(--rose-300); border-radius: 999px; }

.memory-card__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(122, 17, 65, 0.06);
  color: var(--ink-3);
  display: grid;
  place-items: center;
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease-out);
  z-index: 4;
}
.memory-card__close:hover {
  background: var(--rose-700);
  color: #fff;
  transform: rotate(90deg);
}

.memory-card__eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--rose-700);
  margin-bottom: 8px;
}

.memory-card__photo {
  position: relative;
  margin: 6px auto 18px;
  width: 200px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 18px 32px -10px rgba(122, 17, 65, 0.35),
    0 0 0 6px #fff,
    0 0 0 7px rgba(231, 83, 136, 0.18);
  transform: rotate(-1.5deg);
  animation: photoIn 0.7s 0.2s var(--ease-spring) both;
}
.memory-card__photo img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.memory-card__photo--final {
  width: 240px;
  transform: rotate(1deg);
}
.memory-card__photo--final img {
  height: auto;
  max-height: 50vh;
  object-fit: contain;
  background: #fff;
}
.memory-card__caption {
  position: absolute;
  bottom: 8px; left: 8px;
  font-family: var(--font-script);
  font-size: 0.95rem;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  pointer-events: none;
}
@keyframes photoIn {
  from { opacity: 0; transform: rotate(-6deg) scale(0.85) translateY(20px); }
  to   { opacity: 1; transform: rotate(-1.5deg) scale(1) translateY(0); }
}

.memory-card__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--ink-1);
  margin: 0 0 10px;
  letter-spacing: 0.01em;
}
.memory-card__title--script {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--rose-700);
  background: linear-gradient(120deg, var(--rose-700), var(--rose-500), var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

.memory-card__text {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--ink-2);
  font-style: italic;
  min-height: 1.65em;
}
.memory-card__text--letter {
  font-style: normal;
  text-align: left;
  font-size: 1rem;
  color: var(--ink-2);
}

.memory-card__signoff {
  margin-top: 14px;
  font-family: var(--font-script);
  color: var(--rose-700);
  font-size: 1.2rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.6s var(--ease-out) forwards;
}

.memory-card__hearts {
  margin-top: 16px;
  letter-spacing: 14px;
  font-size: 1.6rem;
  color: var(--rose-500);
  animation: pulseSoft 1.6s ease-in-out infinite;
}

/* Typewriter caret */
.typewriter::after {
  content: "▍";
  display: inline-block;
  margin-left: 2px;
  color: var(--rose-500);
  animation: caret 1s steps(2) infinite;
}
.typewriter.is-done::after { display: none; }
@keyframes caret { 50% { opacity: 0; } }


/* ----- 7. Footer ----- */
.footer {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.78rem;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  pointer-events: none;
}
.footer__heart {
  color: var(--rose-500);
  animation: heartBeat 1.4s ease-in-out infinite;
}
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  20%      { transform: scale(1.25); }
  40%      { transform: scale(0.95); }
  60%      { transform: scale(1.15); }
}


/* ----- 8. A11y / utilities ----- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .mesh, .gift, .orb__icon { animation: none !important; }
}


/* ----- 9. Responsive ----- */
@media (max-width: 640px) {
  .stage__header { padding-top: 18px; }
  .orb { --orb-size: 96px; }
  .orb__icon { font-size: 2rem; }
  .gift { width: 140px; height: 140px; }
  .gift-stage__halo { width: 280px; height: 280px; }
  .memory-card { padding: 28px 22px 24px; }
  .memory-card__photo { width: 170px; }
  .memory-card__photo img { height: 170px; }
  .memory-card__title--script { font-size: 2rem; }
}

@media (max-height: 640px) {
  .intro__title-name { font-size: clamp(3rem, 10vw, 5rem); }
}
