:root {
  color-scheme: light;
  --ink: #251923;
  --soft-ink: #46313d;
  --muted: #6e5963;
  --wine: #793849;
  --berry: #a04a5c;
  --coral: #d86a63;
  --blush: #fff2eb;
  --veil: rgba(255, 255, 255, 0.58);
  --veil-strong: rgba(255, 255, 255, 0.74);
  --line: rgba(121, 56, 73, 0.18);
  --line-strong: rgba(121, 56, 73, 0.28);
  --focus: #5d2437;
  --shadow-soft: 0 18px 48px rgba(101, 46, 65, 0.16);
  --shadow-deep: 0 28px 90px rgba(86, 38, 57, 0.22);
  --shadow-glow: 0 0 90px rgba(216, 106, 99, 0.14);
  --radius-lg: 26px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 230, 205, 0.86), transparent 30%),
    radial-gradient(circle at 88% 16%, rgba(232, 185, 218, 0.48), transparent 34%),
    radial-gradient(circle at 52% 92%, rgba(255, 247, 215, 0.66), transparent 30%),
    linear-gradient(142deg, #fff8ef 0%, #f7ddd8 48%, #f1e4ff 100%);
  background-size: 150% 150%;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  animation: warmBreath 18s ease-in-out infinite alternate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(121, 56, 73, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 56, 73, 0.022) 1px, transparent 1px);
  background-size: 86px 86px;
  mask-image: radial-gradient(circle at 50% 24%, black, transparent 72%);
}

button,
a {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(93, 36, 55, 0.72);
  outline-offset: 4px;
}

.audio-pill {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  z-index: 100;
  min-width: 126px;
  min-height: 42px;
  border: 1px solid rgba(121, 56, 73, 0.18);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--wine);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 34px rgba(101, 46, 65, 0.13);
  backdrop-filter: blur(18px);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 220ms var(--ease),
    background 220ms var(--ease),
    border-color 220ms var(--ease),
    box-shadow 220ms var(--ease);
}

.audio-pill:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--line-strong);
}

.audio-pill:active {
  transform: translateY(1px) scale(0.98);
}

.audio-pill.is-playing {
  color: #fffdf9;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 34%),
    linear-gradient(135deg, var(--wine), var(--coral));
  box-shadow: 0 16px 34px rgba(121, 56, 73, 0.24);
}

.audio-pill::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.55;
  vertical-align: 1px;
}

.ambient,
.floaters {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.ambient {
  z-index: 0;
  overflow: hidden;
}

.glow,
.soft-ring {
  position: absolute;
  border-radius: 999px;
}

.glow {
  width: clamp(18rem, 58vw, 39rem);
  aspect-ratio: 1;
  filter: blur(34px);
  opacity: 0.46;
  animation: drift 20s var(--ease) infinite alternate;
}

.glow-one {
  left: -12rem;
  top: 7rem;
  background: rgba(255, 184, 145, 0.72);
}

.glow-two {
  right: -15rem;
  top: 4rem;
  background: rgba(213, 174, 255, 0.62);
  animation-delay: -5s;
}

.glow-three {
  bottom: -16rem;
  left: 18%;
  background: rgba(255, 246, 199, 0.78);
  animation-delay: -9s;
}

.soft-ring {
  width: 34rem;
  aspect-ratio: 1;
  right: 8%;
  top: 22%;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 0 90px rgba(255, 255, 255, 0.16);
  opacity: 0.42;
  transform: rotate(-14deg);
}

.floaters {
  z-index: 1;
  color: rgba(121, 56, 73, 0.18);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(0.86rem, 1.7vw, 1.36rem);
}

.floaters span {
  position: absolute;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.74);
  animation: floatUp 15s linear infinite;
}

.floaters span:nth-child(1) {
  left: 13%;
  bottom: -10%;
}

.floaters span:nth-child(2) {
  left: 36%;
  bottom: -13%;
  animation-delay: -4s;
  animation-duration: 14s;
}

.floaters span:nth-child(3) {
  left: 54%;
  bottom: -11%;
  animation-delay: -7s;
}

.floaters span:nth-child(4) {
  left: 72%;
  bottom: -15%;
  animation-delay: -2s;
  animation-duration: 13s;
}

.floaters span:nth-child(5) {
  left: 87%;
  bottom: -9%;
  animation-delay: -9s;
}

.floaters span:nth-child(6) {
  left: 6%;
  bottom: -16%;
  animation-delay: -6s;
  animation-duration: 15s;
}

.floaters span:nth-child(7) {
  left: 44%;
  bottom: -18%;
  animation-delay: -10s;
  animation-duration: 16s;
}

.floaters span:nth-child(8) {
  left: 96%;
  bottom: -12%;
  animation-delay: -12s;
  animation-duration: 17s;
}

.page-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0 auto;
  padding: 22px 18px 68px;
}

.hero {
  min-height: calc(100svh - 18px);
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: clamp(54px, 11vh, 106px) 0 62px;
}

.brand {
  margin: 0 0 20px;
  color: var(--wine);
  font-size: clamp(0.72rem, 2.2vw, 0.82rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.45;
  text-transform: uppercase;
  animation: riseIn 760ms var(--ease) both;
}

h1 {
  width: min(100%, 10.4ch);
  margin: 0;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.78rem, 12.5vw, 3.55rem);
  line-height: 0.97;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 14px 44px rgba(86, 38, 57, 0.14);
  animation: riseIn 860ms var(--ease) 80ms both;
}

h1 span {
  display: block;
}

.intro {
  width: min(100%, 17.25rem);
  margin: 26px auto 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
  animation: riseIn 860ms var(--ease) 170ms both;
}

.actions {
  width: min(100%, 15.75rem);
  display: grid;
  gap: 12px;
  margin-top: 38px;
  animation: riseIn 860ms var(--ease) 260ms both;
}

.primary-button,
.whatsapp-button {
  min-height: 58px;
  border-radius: 999px;
  padding: 0 24px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  will-change: transform;
  transition:
    transform 220ms var(--ease),
    box-shadow 220ms var(--ease),
    background 220ms var(--ease),
    border-color 220ms var(--ease);
}

.primary-button,
.whatsapp-button {
  position: relative;
  overflow: hidden;
  color: #fffdf9;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 34%),
    linear-gradient(135deg, var(--wine), var(--coral));
  box-shadow: 0 18px 40px rgba(121, 56, 73, 0.3);
}

.primary-button::after,
.whatsapp-button::after {
  content: "";
  position: absolute;
  inset: 1px auto 1px -45%;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.36), transparent);
  transform: skewX(-18deg);
  transition: translate 650ms var(--ease);
}

.primary-button:hover,
.whatsapp-button:hover {
  transform: translateY(-2px);
}

.primary-button:hover,
.whatsapp-button:hover {
  box-shadow: 0 20px 44px rgba(121, 56, 73, 0.32);
}

.primary-button:hover::after,
.whatsapp-button:hover::after {
  translate: 340% 0;
}

.primary-button:active,
.whatsapp-button:active {
  transform: translateY(1px) scale(0.99);
}

.primary-button:disabled {
  cursor: default;
  opacity: 0.78;
  transform: none;
}

.reveal-panel {
  display: grid;
  gap: 20px;
  align-items: stretch;
  opacity: 0;
  transform: translateY(34px) scale(0.982);
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
  transition:
    opacity 680ms var(--ease),
    transform 680ms var(--ease),
    max-height 760ms var(--ease);
}

.reveal-panel.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  max-height: 5200px;
}

.reveal-panel.is-visible::before {
  content: "";
  grid-column: 1 / -1;
  height: 1px;
  margin-bottom: 4px;
  background: linear-gradient(90deg, transparent, rgba(121, 56, 73, 0.3), transparent);
  animation: lineReveal 900ms var(--ease) both;
}

.reveal-item {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition: opacity 820ms var(--ease), transform 820ms var(--ease);
}

.reveal-item.is-in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.message-card,
.slideshow {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.42)),
    rgba(255, 255, 255, 0.52);
  box-shadow:
    var(--shadow-soft),
    0 1px 0 rgba(255, 255, 255, 0.4) inset;
  backdrop-filter: blur(24px);
}

.message-card::before,
.slideshow::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(216, 106, 99, 0.18), transparent 34%);
  opacity: 0.74;
}

.message-card {
  padding: clamp(30px, 7vw, 60px);
}

.eyebrow,
.letter,
.slide,
.slide-controls {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--wine);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.45;
  text-transform: uppercase;
}

.letter {
  color: var(--soft-ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.38rem, 5.6vw, 2.12rem);
  line-height: 1.34;
}

.letter p {
  margin: 0;
}

.letter p + p {
  margin-top: 22px;
}

.slideshow {
  min-height: 300px;
  display: grid;
  place-items: center;
  padding: 30px;
  box-shadow:
    var(--shadow-soft),
    0 0 0 1px rgba(255, 255, 255, 0.28),
    var(--shadow-glow);
}

.slideshow::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: calc(var(--radius-lg) - 8px);
  pointer-events: none;
}

.slideshow-sticker {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(121, 56, 73, 0.14);
  border-radius: 999px;
  color: rgba(121, 56, 73, 0.42);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 12px 28px rgba(101, 46, 65, 0.09);
  backdrop-filter: blur(14px);
}

.sticker-one {
  top: 18px;
  right: 22px;
  animation: softPulse 3.8s ease-in-out infinite;
}

.sticker-two {
  left: 22px;
  bottom: 48px;
  animation: softPulse 4.6s ease-in-out infinite reverse;
}

.slide {
  position: absolute;
  inset: 36px 32px 58px;
  display: grid;
  align-content: center;
  gap: 16px;
  opacity: 0;
  transform: translateX(18px) scale(0.982);
  filter: blur(5px);
  transition:
    opacity 740ms var(--ease),
    transform 740ms var(--ease),
    filter 740ms var(--ease);
}

.slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  filter: blur(0);
}

.slide span {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.slide p {
  max-width: 12ch;
  margin: 0;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 10vw, 3rem);
  line-height: 1.02;
  text-wrap: balance;
}

.slide-controls {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 26px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.dot {
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: transparent;
}

.dot::before {
  content: "";
  display: block;
  height: 4px;
  border-radius: inherit;
  background: rgba(121, 56, 73, 0.2);
  transition: height 220ms var(--ease), background 220ms var(--ease), transform 220ms var(--ease);
}

.dot:hover::before,
.dot:focus-visible::before {
  height: 6px;
  transform: translateY(-1px);
}

.dot.active::before {
  background: linear-gradient(90deg, var(--wine), var(--coral));
}

.whatsapp-button {
  width: min(100%, 15.75rem);
  min-height: 58px;
  justify-self: center;
  display: inline-grid;
  place-items: center;
  margin-top: 4px;
}

.memories-gallery {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 26px;
  margin: 18px 0 10px;
}

.memories-gallery[hidden] {
  display: none;
}

.memories-copy {
  text-align: center;
  max-width: 34rem;
}

.memories-copy .eyebrow {
  margin-bottom: 12px;
}

.memories-copy h2 {
  width: min(100%, 17ch);
  margin: 0 auto;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.14rem, 8.2vw, 3.55rem);
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}

.memories-copy > p:not(.eyebrow) {
  width: min(100%, 24rem);
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.memory-frame {
  position: relative;
  width: min(100%, 350px);
  aspect-ratio: 9 / 16;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 38px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.18)),
    rgba(121, 56, 73, 0.18);
  box-shadow:
    0 34px 90px rgba(86, 38, 57, 0.24),
    0 0 0 10px rgba(255, 255, 255, 0.18),
    0 0 100px rgba(216, 106, 99, 0.18);
  backdrop-filter: blur(22px);
  isolation: isolate;
}

.memory-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(37, 25, 35, 0.08), rgba(37, 25, 35, 0.24)),
    radial-gradient(circle at 20% 8%, rgba(255, 255, 255, 0.58), transparent 30%),
    radial-gradient(circle at 82% 88%, rgba(216, 106, 99, 0.28), transparent 32%);
}

.memory-frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 28px;
  pointer-events: none;
}

.memory-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 1;
  transform: scale(1);
  transition: opacity 840ms var(--ease), transform 840ms var(--ease), filter 840ms var(--ease);
}

.memory-slide.is-changing {
  opacity: 0;
  transform: translateX(18px) scale(1.012);
  filter: blur(3px);
}

.memory-bg {
  position: absolute;
  inset: -10%;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: blur(30px) saturate(1.12);
  opacity: 0.52;
  transform: scale(1.14);
}

.memory-photo-shell {
  position: absolute;
  inset: 24px 24px 76px;
  z-index: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 28px;
  background: rgba(37, 25, 35, 0.16);
  box-shadow:
    inset 0 0 40px rgba(255, 255, 255, 0.08),
    0 18px 52px rgba(37, 25, 35, 0.18);
}

.memory-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.memory-slide figcaption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 56px;
  z-index: 4;
  width: fit-content;
  max-width: calc(100% - 44px);
  margin: 0 auto;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 18px;
  color: #fffdf9;
  background: rgba(37, 25, 35, 0.42);
  box-shadow: 0 12px 28px rgba(37, 25, 35, 0.16);
  backdrop-filter: blur(16px);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.memory-slide figcaption:empty {
  display: none;
}

.memory-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: #fffdf9;
  background: rgba(37, 25, 35, 0.26);
  box-shadow: 0 12px 28px rgba(37, 25, 35, 0.14);
  backdrop-filter: blur(14px);
  cursor: pointer;
  font-size: 1.9rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 220ms var(--ease), background 220ms var(--ease);
}

.memory-nav:hover {
  background: rgba(37, 25, 35, 0.34);
}

.memory-nav:active {
  transform: translateY(-50%) scale(0.96);
}

.memory-prev {
  left: 12px;
}

.memory-next {
  right: 12px;
}

.memory-indicators {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 18px;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 7px;
  overflow-x: auto;
  padding: 6px 0;
  scrollbar-width: none;
}

.memory-indicators::-webkit-scrollbar {
  display: none;
}

.memory-indicator {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 240ms var(--ease), background 240ms var(--ease);
}

.memory-indicator.active {
  width: 24px;
  background: #fffdf9;
}

.things-section,
.final-note {
  grid-column: 1 / -1;
}

.things-section {
  padding: clamp(24px, 5vw, 42px) 0 0;
}

.things-section > .eyebrow {
  margin-bottom: 14px;
  text-align: center;
}

.things-grid {
  display: grid;
  gap: 14px;
}

.thing-card {
  position: relative;
  overflow: hidden;
  min-height: 120px;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.38)),
    rgba(255, 255, 255, 0.42);
  box-shadow: 0 16px 42px rgba(101, 46, 65, 0.1);
  backdrop-filter: blur(18px);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}

.thing-card::after {
  content: "";
  position: absolute;
  width: 92px;
  height: 92px;
  right: -44px;
  top: -40px;
  border-radius: 999px;
  background: rgba(216, 106, 99, 0.12);
}

.thing-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 48px rgba(101, 46, 65, 0.14);
}

.thing-card span {
  display: block;
  margin-bottom: 18px;
  color: var(--coral);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.thing-card p {
  max-width: 18rem;
  margin: 0;
  color: var(--soft-ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.34rem, 5vw, 1.9rem);
  line-height: 1.06;
}

.final-note {
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 16px;
  margin-top: 14px;
  padding: clamp(34px, 8vw, 64px) clamp(20px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.72), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.34));
  box-shadow:
    var(--shadow-deep),
    0 0 90px rgba(216, 106, 99, 0.12);
  backdrop-filter: blur(22px);
}

.final-note::before {
  content: "♡";
  position: absolute;
  top: 18px;
  right: 22px;
  color: rgba(121, 56, 73, 0.18);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
}

.final-note p,
.final-note h2,
.final-note span,
.final-note a {
  position: relative;
  z-index: 1;
}

.final-note p {
  margin: 0;
  color: var(--coral);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.final-note h2 {
  max-width: 13ch;
  margin: 0;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 9vw, 4rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.final-note > span {
  max-width: 22rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.final-note .whatsapp-button {
  margin-top: 8px;
}

.quick-replies {
  position: relative;
  z-index: 1;
  width: min(100%, 38rem);
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.quick-replies a {
  min-height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(121, 56, 73, 0.18);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--wine);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 12px 28px rgba(101, 46, 65, 0.08);
  backdrop-filter: blur(16px);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 220ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease);
}

.quick-replies a:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.72);
}

.quick-replies a:active {
  transform: translateY(1px) scale(0.99);
}

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

@keyframes warmBreath {
  from {
    background-position: 0% 40%;
  }
  to {
    background-position: 100% 58%;
  }
}

@keyframes lineReveal {
  from {
    opacity: 0;
    transform: scaleX(0);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes softPulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.72;
  }
  50% {
    transform: translateY(-5px) scale(1.04);
    opacity: 1;
  }
}

@keyframes drift {
  to {
    transform: translate3d(7%, -5%, 0) scale(1.06);
  }
}

@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(0.9);
  }
  18%,
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(18px, -112vh, 0) rotate(22deg) scale(1.1);
  }
}

@media (min-width: 560px) {
  .actions {
    width: min(100%, 15.75rem);
  }

  .primary-button {
    min-width: 0;
  }
}

@media (min-width: 760px) {
  .page-shell {
    width: min(100% - 56px, 1160px);
    padding: 30px 0 86px;
  }

  .hero {
    min-height: calc(100svh - 56px);
    padding: clamp(64px, 10vw, 112px) 0;
  }

  h1 {
    width: auto;
    max-width: 850px;
    font-size: clamp(5.4rem, 8vw, 7.8rem);
    line-height: 0.94;
  }

  .intro {
    width: min(100%, 34rem);
    margin-top: 28px;
    font-size: 1.12rem;
  }

  .reveal-panel {
    grid-template-columns: minmax(0, 1.06fr) minmax(310px, 0.94fr);
    gap: 26px;
  }

  .message-card,
  .slideshow {
    border-radius: 30px;
    box-shadow: var(--shadow-deep);
  }

  .letter {
    font-size: clamp(1.64rem, 3vw, 2.28rem);
  }

  .slideshow {
    min-height: 400px;
    padding: 34px;
  }

  .slide {
    inset: 42px 40px 66px;
  }

  .slide p {
    font-size: clamp(2.4rem, 4.4vw, 3.35rem);
  }

  .whatsapp-button {
    width: fit-content;
    min-width: 248px;
    margin-top: 10px;
  }

  .things-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .thing-card {
    min-height: 164px;
    padding: 22px;
  }

  .thing-card p {
    font-size: clamp(1.4rem, 2vw, 1.8rem);
  }

  .final-note {
    border-radius: 34px;
  }

  .quick-replies {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .memories-gallery {
    grid-template-columns: minmax(260px, 0.72fr) minmax(310px, 0.58fr);
    align-items: center;
    justify-items: stretch;
    gap: clamp(34px, 5vw, 76px);
    margin-top: 24px;
  }

  .memories-copy {
    text-align: left;
    max-width: 38rem;
    padding-left: clamp(10px, 2vw, 22px);
  }

  .memories-copy h2 {
    margin: 0;
    font-size: clamp(2.8rem, 4.4vw, 4.8rem);
  }

  .memories-copy > p:not(.eyebrow) {
    margin-left: 0;
    font-size: 1.08rem;
  }

  .memory-frame {
    width: min(100%, 410px);
    justify-self: center;
    border-radius: 42px;
  }
}

@media (max-width: 520px) {
  .audio-pill {
    right: 12px;
    min-width: 0;
    max-width: calc(100vw - 24px);
    min-height: 38px;
    padding: 0 11px;
    font-size: 0.74rem;
  }

  .audio-pill::before {
    margin-right: 6px;
  }

  .reveal-panel {
    gap: 18px;
  }

  .message-card {
    padding: 28px 24px;
  }

  .slideshow {
    min-height: 310px;
  }

  .memories-gallery {
    margin-top: 16px;
  }

  .memory-frame {
    width: min(100%, 332px);
    border-radius: 34px;
  }

  .memory-photo-shell {
    inset: 22px 20px 74px;
  }

  .memory-nav {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 380px) {
  .page-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  h1 {
    font-size: clamp(2.48rem, 12.5vw, 3rem);
  }

  .brand {
    letter-spacing: 0.14em;
  }

  .message-card,
  .slideshow,
  .final-note {
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
