:root {
  --bg-1: #09050A;
  --bg-2: #160A16;
  --bg-3: #241024;
  --wine: #3A1534;
  --rose: #D86F9D;
  --soft-rose: #F7B8CF;
  --gold: #F6D58E;
  --warm-white: #FFF7FA;
  --muted-text: #D9C8D2;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.13);
  --border: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --display: "Playfair Display", Georgia, serif;
  --body: "Inter", system-ui, sans-serif;
  --script: "Great Vibes", cursive;
  --pad: 18px;
  --radius: 28px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--muted-text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  background:
    radial-gradient(circle at 78% 5%, rgba(216, 111, 157, 0.16), transparent 34rem),
    radial-gradient(circle at 12% 32%, rgba(246, 213, 142, 0.07), transparent 24rem),
    linear-gradient(180deg, var(--bg-1), var(--bg-2) 44%, var(--bg-1));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  opacity: 0.26;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

img {
  display: block;
  width: 100%;
  height: auto;
}

button {
  border: 0;
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 25%, rgba(216, 111, 157, 0.22), transparent 28rem),
    radial-gradient(circle at 15% 88%, rgba(246, 213, 142, 0.1), transparent 20rem),
    var(--bg-1);
  transition: opacity 720ms ease, filter 720ms ease, transform 720ms ease, visibility 720ms ease;
}

.intro-screen.is-leaving {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.985);
  filter: blur(12px);
  pointer-events: none;
}

.ambient,
.global-glow {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(70px);
}

.ambient--one {
  width: 260px;
  height: 260px;
  left: -82px;
  top: 8%;
  background: rgba(216, 111, 157, 0.28);
  animation: drift 10s ease-in-out infinite;
}

.ambient--two {
  width: 220px;
  height: 220px;
  right: -70px;
  bottom: 7%;
  background: rgba(246, 213, 142, 0.16);
  animation: drift 12s ease-in-out infinite reverse;
}

.soft-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.soft-particles span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(247, 184, 207, 0.58);
  box-shadow: 0 0 18px rgba(247, 184, 207, 0.5);
  animation: particleRise 11s linear infinite;
}

.soft-particles span:nth-child(1) { left: 12%; animation-delay: 0s; }
.soft-particles span:nth-child(2) { left: 30%; animation-delay: 1.8s; }
.soft-particles span:nth-child(3) { left: 47%; animation-delay: 3.5s; }
.soft-particles span:nth-child(4) { left: 64%; animation-delay: 5.2s; }
.soft-particles span:nth-child(5) { left: 78%; animation-delay: 6.8s; }
.soft-particles span:nth-child(6) { left: 90%; animation-delay: 8.4s; }

.intro-card {
  position: relative;
  z-index: 2;
  width: min(100%, 440px);
  padding: 34px 22px 24px;
  border: 1px solid rgba(246, 213, 142, 0.18);
  border-radius: 28px;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045)),
    rgba(22, 10, 22, 0.72);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(22px);
}

.intro-card::before {
  content: "♡";
  position: absolute;
  top: 18px;
  right: 22px;
  color: rgba(247, 184, 207, 0.22);
  font-size: 38px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--soft-rose);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.intro-card h1,
.hero-copy h1,
.section-heading h2,
.antonio-copy h2,
.letter-card h2,
.secret-card h2 {
  margin: 0;
  color: var(--warm-white);
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: 0;
}

.intro-card h1 {
  font-size: clamp(2rem, 13vw, 3.1rem);
  max-width: 11ch;
  margin-inline: auto;
}

.intro-card p:not(.eyebrow) {
  margin: 18px auto 24px;
  max-width: 30ch;
}

.intro-actions {
  display: grid;
  gap: 12px;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease, border-color 220ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  color: var(--warm-white);
  background: linear-gradient(135deg, var(--rose), #b94b7c);
  box-shadow: 0 14px 42px rgba(216, 111, 157, 0.34);
}

.btn-primary:hover {
  box-shadow: 0 18px 54px rgba(216, 111, 157, 0.46);
}

.btn-ghost {
  color: var(--muted-text);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.07);
}

.btn-ghost.is-dodging {
  transform: translate(var(--dodge-x), var(--dodge-y));
}

.site-shell {
  position: relative;
  overflow: hidden;
}

.global-glow--top {
  z-index: -1;
  width: 420px;
  height: 420px;
  top: -110px;
  right: -170px;
  background: rgba(216, 111, 157, 0.16);
}

.global-glow--mid {
  z-index: -1;
  width: 360px;
  height: 360px;
  top: 1850px;
  left: -150px;
  background: rgba(246, 213, 142, 0.08);
}

.chapter {
  width: min(100% - calc(var(--pad) * 2), 1140px);
  margin-inline: auto;
  padding: 78px 0;
}

.hero {
  min-height: 100svh;
  display: grid;
  align-content: center;
  gap: 24px;
  padding-top: 34px;
}

.hero-media {
  order: -1;
}

.photo-polaroid {
  position: relative;
  width: min(100%, 310px);
  margin-inline: auto;
  padding: 10px;
  border: 1px solid rgba(246, 213, 142, 0.22);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 247, 250, 0.16), rgba(255, 247, 250, 0.045)),
    rgba(18, 9, 18, 0.76);
  box-shadow: var(--shadow);
  transform: rotate(-1.3deg);
  transition: transform 360ms ease, border-color 360ms ease, box-shadow 360ms ease;
}

.photo-polaroid::before {
  content: "";
  position: absolute;
  inset: -26px;
  z-index: -1;
  border-radius: 36px;
  background: radial-gradient(circle, rgba(216, 111, 157, 0.22), transparent 68%);
  filter: blur(22px);
}

.photo-polaroid img {
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 22px;
  background: var(--bg-1);
}

.photo-polaroid:hover {
  transform: rotate(0deg) translateY(-4px);
  border-color: rgba(246, 213, 142, 0.44);
  box-shadow: 0 30px 92px rgba(0, 0, 0, 0.58);
}

.hero-copy {
  text-align: center;
}

.hero-copy h1 {
  font-size: clamp(2.15rem, 11vw, 4.8rem);
}

.hero-copy p:not(.eyebrow) {
  max-width: 35rem;
  margin: 16px auto 22px;
  font-size: 1rem;
}

.section-heading {
  max-width: 680px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading h2,
.antonio-copy h2,
.letter-card h2,
.secret-card h2 {
  font-size: clamp(2rem, 10vw, 3.8rem);
}

.section-heading p:not(.eyebrow),
.section-subtitle {
  margin: 16px auto 0;
  max-width: 620px;
  color: var(--muted-text);
}

.timeline-list {
  position: relative;
  display: grid;
  gap: 22px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 16px;
  width: 1px;
  background: linear-gradient(transparent, rgba(246, 213, 142, 0.4), transparent);
}

.memory-card {
  position: relative;
  display: grid;
  gap: 18px;
  margin-left: 22px;
  padding: 12px 12px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045));
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.28);
  transition: transform 260ms ease, border-color 260ms ease, background 260ms ease;
}

.memory-card::before {
  content: "";
  position: absolute;
  top: 28px;
  left: -29px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 7px rgba(246, 213, 142, 0.1);
}

.memory-card:hover,
.meaning-card:hover,
.promise-card:hover {
  transform: translateY(-6px);
  border-color: rgba(246, 213, 142, 0.36);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06));
}

.memory-card figure {
  margin: 0;
  padding: 10px 10px 14px;
  border-radius: 22px;
  background: rgba(255, 247, 250, 0.12);
}

.memory-card img {
  height: 310px;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 16px;
  background: var(--bg-1);
  transition: transform 360ms ease;
}

.memory-card:hover img {
  transform: scale(1.02);
}

.memory-card:nth-child(1) img {
  object-position: center 54%;
}

.memory-card:nth-child(2) img {
  object-position: center 38%;
}

.memory-card:nth-child(3) img {
  object-position: center 42%;
}

.memory-card:nth-child(4) img {
  object-position: center 48%;
}

.memory-card:nth-child(5) img {
  object-position: center 48%;
}

.memory-card:nth-child(6) img {
  object-position: center 44%;
}

.memory-card figcaption {
  margin-top: 10px;
  color: var(--gold);
  font-family: var(--script);
  font-size: 1.45rem;
  line-height: 1;
  text-align: right;
}

.memory-card span,
.promise-card span {
  display: inline-block;
  color: rgba(246, 213, 142, 0.58);
  font-family: var(--display);
  font-weight: 800;
}

.memory-card h3,
.meaning-card h3 {
  margin: 6px 0 8px;
  color: var(--warm-white);
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1.15;
}

.memory-card p,
.meaning-card p,
.promise-card p {
  margin: 0;
}

.antonio-transition {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 110px var(--pad);
  background:
    radial-gradient(circle at 50% 50%, rgba(216, 111, 157, 0.11), transparent 24rem),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.28), transparent);
}

.transition-lines {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.transition-lines p {
  margin: 0;
  color: var(--warm-white);
  font-family: var(--display);
  font-size: clamp(2.05rem, 12vw, 4.8rem);
  font-weight: 800;
  line-height: 1.05;
}

.transition-lines p:nth-child(2) {
  color: var(--soft-rose);
}

.antonio-section {
  width: min(100% - calc(var(--pad) * 2), 1040px);
}

.antonio-card {
  position: relative;
  display: grid;
  gap: 30px;
  padding: 20px;
  border: 1px solid rgba(246, 213, 142, 0.25);
  border-radius: 34px;
  background:
    radial-gradient(circle at 22% 28%, rgba(246, 213, 142, 0.12), transparent 17rem),
    radial-gradient(circle at 78% 70%, rgba(216, 111, 157, 0.14), transparent 20rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.antonio-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  animation: cardPulse 1.6s ease-in-out infinite;
}

.heartbeat-wrap {
  display: grid;
  place-items: center;
  gap: 16px;
  text-align: center;
}

.ultrasound-frame {
  position: relative;
  width: min(100%, 315px);
  padding: 9px;
  border: 1px solid rgba(246, 213, 142, 0.34);
  border-radius: 38px;
  background: rgba(9, 5, 10, 0.72);
  box-shadow: 0 0 0 rgba(247, 184, 207, 0);
  animation: heartbeat 1.6s ease-in-out infinite;
}

.ultrasound-frame.is-strong {
  animation: heartbeatStrong 1.05s ease-in-out 3, heartbeat 1.6s ease-in-out 3.2s infinite;
}

.ultrasound-frame img {
  aspect-ratio: 1170 / 766;
  object-fit: cover;
  object-position: center;
  border-radius: 30px;
  background: #020202;
}

.heartbeat-wrap > p {
  margin: 0;
  color: var(--gold);
  font-family: var(--script);
  font-size: 1.7rem;
  line-height: 1.1;
}

.heartbeat-sparkles {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 28%, rgba(247, 184, 207, 0.45) 0 2px, transparent 3px),
    radial-gradient(circle at 76% 18%, rgba(246, 213, 142, 0.34) 0 2px, transparent 3px),
    radial-gradient(circle at 88% 70%, rgba(247, 184, 207, 0.36) 0 2px, transparent 3px),
    radial-gradient(circle at 18% 78%, rgba(246, 213, 142, 0.3) 0 2px, transparent 3px);
  animation: sparkleOrbit 4.6s linear infinite;
}

.antonio-copy {
  position: relative;
  z-index: 1;
  text-align: center;
}

.antonio-copy p {
  max-width: 640px;
  margin: 16px auto 0;
}

.ecg-line {
  width: min(100%, 320px);
  height: 64px;
  margin: 14px auto 4px;
  color: var(--gold);
  opacity: 0.72;
}

.ecg-line path {
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: drawEcg 2.2s ease-in-out infinite;
}

.meaning-grid,
.promises-grid {
  display: grid;
  gap: 16px;
}

.meaning-card,
.promise-card,
.secret-card,
.letter-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045));
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.25);
}

.meaning-card {
  padding: 26px 22px;
  transition: transform 260ms ease, border-color 260ms ease, background 260ms ease;
}

.meaning-card span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
  color: var(--gold);
  background: rgba(246, 213, 142, 0.1);
  font-size: 1.25rem;
}

.letter-section {
  width: min(100% - calc(var(--pad) * 2), 800px);
}

.letter-card {
  position: relative;
  padding: 34px 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(246, 213, 142, 0.08), transparent 7px),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.052));
}

.letter-card.visible {
  animation: openLetter 760ms ease both;
}

.paper-fold {
  position: absolute;
  top: 0;
  right: 0;
  width: 74px;
  height: 74px;
  border-bottom-left-radius: 18px;
  background: linear-gradient(135deg, rgba(246, 213, 142, 0.2), rgba(255, 255, 255, 0.04));
}

.letter-rule {
  width: 100%;
  height: 1px;
  margin: 22px 0 26px;
  background: linear-gradient(90deg, transparent, rgba(246, 213, 142, 0.65), transparent);
}

.letter-body {
  max-width: 640px;
  margin-inline: auto;
}

.letter-body p {
  margin: 0;
  font-size: 1.02rem;
}

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

.letter-body p:first-child {
  color: var(--soft-rose);
  font-family: var(--script);
  font-size: 2rem;
  line-height: 1.1;
}

.signature {
  display: grid;
  justify-items: end;
  margin-top: 34px;
}

.signature span {
  font-size: 0.92rem;
}

.signature strong,
.secret-content span {
  color: var(--gold);
  font-family: var(--script);
  font-size: 2.9rem;
  font-weight: 400;
  line-height: 1;
}

.promise-card {
  position: relative;
  min-height: 164px;
  padding: 26px 22px 54px;
  overflow: hidden;
  transition: transform 260ms ease, border-color 260ms ease, background 260ms ease;
}

.promise-card span {
  position: absolute;
  right: 20px;
  bottom: 8px;
  color: rgba(246, 213, 142, 0.16);
  font-size: 3.7rem;
  line-height: 1;
}

.promise-card p {
  position: relative;
  z-index: 1;
  max-width: 26rem;
  color: var(--warm-white);
  font-weight: 600;
}

.secret-section {
  width: min(100% - calc(var(--pad) * 2), 720px);
}

.secret-card {
  position: relative;
  padding: 36px 22px;
  text-align: center;
  overflow: hidden;
}

.secret-card.is-revealed {
  border-color: rgba(246, 213, 142, 0.4);
  box-shadow: 0 24px 90px rgba(216, 111, 157, 0.2);
}

.secret-card h2 {
  max-width: 10ch;
  margin: 0 auto 24px;
}

.secret-content {
  margin-top: 30px;
  animation: secretIn 620ms ease both;
}

.secret-content[hidden] {
  display: none;
}

.secret-content p {
  max-width: 600px;
  margin: 0 auto 22px;
}

.secret-content strong {
  display: block;
  color: var(--warm-white);
  font-family: var(--display);
  font-size: clamp(2.2rem, 12vw, 4.7rem);
  line-height: 1.02;
}

.site-footer {
  padding: 36px var(--pad) 44px;
  text-align: center;
  color: rgba(217, 200, 210, 0.72);
}

.site-footer p {
  margin: 0 0 6px;
  font-family: var(--script);
  font-size: 1.7rem;
  color: var(--soft-rose);
}

.site-footer span {
  font-size: 0.82rem;
}

.music-btn {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 900;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted-text);
  background: rgba(36, 16, 36, 0.78);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  cursor: pointer;
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
}

@media (max-width: 480px) {
  .music-btn {
    width: 44px;
    justify-content: center;
    padding: 0;
  }

  .music-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

.music-btn.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.music-btn.is-playing .music-note {
  color: var(--gold);
  animation: musicPulse 1.5s ease-in-out infinite;
}

#effectsCanvas {
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(8px);
  transition: opacity 720ms ease, transform 720ms ease, filter 720ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal:nth-child(2) { transition-delay: 80ms; }
.reveal:nth-child(3) { transition-delay: 140ms; }
.reveal:nth-child(4) { transition-delay: 200ms; }

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(18px, -22px, 0); }
}

@keyframes particleRise {
  0% { transform: translateY(108vh) scale(0.7); opacity: 0; }
  12%, 82% { opacity: 0.7; }
  100% { transform: translateY(-18vh) scale(1.15); opacity: 0; }
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(247, 184, 207, 0); }
  14% { transform: scale(1.025); box-shadow: 0 0 28px rgba(247, 184, 207, 0.38); }
  28% { transform: scale(1); }
  42% { transform: scale(1.018); box-shadow: 0 0 42px rgba(246, 213, 142, 0.22); }
  70% { transform: scale(1); }
}

@keyframes heartbeatStrong {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(247, 184, 207, 0); }
  20% { transform: scale(1.045); box-shadow: 0 0 46px rgba(247, 184, 207, 0.5); }
  42% { transform: scale(1); }
  58% { transform: scale(1.03); box-shadow: 0 0 52px rgba(246, 213, 142, 0.34); }
  78% { transform: scale(1); }
}

@keyframes cardPulse {
  0%, 100% { box-shadow: inset 0 0 0 rgba(247, 184, 207, 0); }
  36% { box-shadow: inset 0 0 70px rgba(247, 184, 207, 0.06); }
}

@keyframes sparkleOrbit {
  from { transform: rotate(0deg) scale(1); opacity: 0.65; }
  50% { opacity: 1; }
  to { transform: rotate(360deg) scale(1.03); opacity: 0.65; }
}

@keyframes drawEcg {
  0% { stroke-dashoffset: 420; opacity: 0.18; }
  50% { stroke-dashoffset: 0; opacity: 0.78; }
  100% { stroke-dashoffset: -420; opacity: 0.18; }
}

@keyframes openLetter {
  from { transform: translateY(40px) rotate(1deg); }
  to { transform: translateY(0) rotate(0deg); }
}

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

@keyframes musicPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.22); }
}

@media (min-width: 640px) {
  :root {
    --pad: 24px;
  }

  .intro-actions {
    grid-template-columns: 1fr 1fr;
  }

  .memory-card {
    grid-template-columns: 0.9fr 1fr;
    align-items: center;
  }

  .memory-card:nth-child(even) figure {
    order: 2;
  }

  .meaning-grid,
  .promises-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .chapter {
    padding: 96px 0;
  }

  .hero {
    grid-template-columns: 0.92fr 1fr;
    align-items: center;
    min-height: 100vh;
    gap: 64px;
  }

  .hero-media {
    order: 2;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-copy p:not(.eyebrow) {
    margin-left: 0;
  }

  .hero-copy h1 {
    font-size: clamp(3.6rem, 6.8vw, 5.9rem);
  }

  .photo-polaroid {
    width: min(100%, 430px);
  }

  .antonio-card {
    grid-template-columns: 0.84fr 1.16fr;
    align-items: center;
    padding: 34px;
  }

  .antonio-copy {
    text-align: left;
  }

  .antonio-copy p,
  .ecg-line {
    margin-left: 0;
  }

  .letter-card,
  .secret-card {
    padding: 50px 46px;
  }
}

@media (min-width: 1024px) {
  .timeline-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .timeline-list::before {
    left: 50%;
  }

  .memory-card {
    grid-template-columns: 1fr;
    margin-left: 0;
  }

  .memory-card::before {
    display: none;
  }

  .memory-card:nth-child(even) {
    transform: translateY(46px);
  }

  .memory-card:nth-child(even):hover {
    transform: translateY(40px);
  }

  .memory-card:nth-child(even) figure {
    order: 0;
  }

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

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

  .memory-card img {
    height: 340px;
  }
}

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

  .soft-particles,
  .heartbeat-sparkles {
    display: none;
  }

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