:root {
  color-scheme: light;
  --ink-strong: #172820;
  --ink: #263a31;
  --ink-soft: #5f7067;
  --paper: #fffaf4;
  --paper-deep: #f6eee5;
  --paper-raised: #fffdf9;
  --rose: #cf5061;
  --rose-strong: #ad354a;
  --rose-deep: #7f2638;
  --rose-soft: #f6dde0;
  --peach-soft: #f8e8d8;
  --sage-soft: #dfe9dc;
  --sage: #8fa98f;
  --line: rgb(38 58 49 / 14%);
  --shadow-card: 0 28px 72px rgb(91 65 57 / 14%);
  --shadow-float: 0 18px 44px rgb(120 58 66 / 22%);
  --display: "LXGW WenKai", "Kaiti SC", "STKaiti", serif;
  --body: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --radius-card: 16px;
  --ease-page: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 40;
  box-shadow: inset 0 0 80px rgb(92 63 54 / 5%);
  content: "";
  pointer-events: none;
}

::selection {
  background: var(--rose-soft);
  color: var(--rose-deep);
}

button,
a {
  color: inherit;
}

button {
  font: inherit;
}

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

h1,
h2,
p,
figure,
blockquote {
  margin-top: 0;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.skip-link {
  position: fixed;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 60;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: var(--rose-strong);
  color: #fffaf6;
  transform: translateY(-180%);
  transition: transform 180ms var(--ease-soft);
}

.skip-link:focus {
  transform: translateY(0);
}

.story-deck {
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  outline: none;
}

.story-deck:focus-visible {
  box-shadow: inset 0 0 0 3px var(--rose);
}

.story-track {
  --slide-index: 0;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  transform: translate3d(0, calc(var(--slide-index) * -100dvh), 0);
  transition: none;
  will-change: transform;
}

.story-track.is-ready {
  transition: transform 840ms var(--ease-page);
}

.story-slide {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--paper);
  isolation: isolate;
}

.story-slide:not(.hero-slide)::before,
.story-slide:not(.hero-slide)::after {
  position: absolute;
  z-index: 0;
  width: clamp(16rem, 36vw, 34rem);
  height: clamp(16rem, 36vw, 34rem);
  border-radius: 50%;
  content: "";
  filter: blur(2px);
  opacity: 0.5;
  pointer-events: none;
}

.story-slide:not(.hero-slide)::before {
  top: -18%;
  right: -12%;
  background: radial-gradient(circle, rgb(207 80 97 / 10%), transparent 68%);
}

.story-slide:not(.hero-slide)::after {
  bottom: -24%;
  left: -14%;
  background: radial-gradient(circle, rgb(143 169 143 / 10%), transparent 68%);
}

.slide-inner {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 10vw));
  height: 100dvh;
  margin: 0 auto;
  padding-block: clamp(2rem, 6vh, 4.75rem);
}

.story-slide .slide-inner > * {
  opacity: 0.24;
  filter: blur(9px);
  transform: translate3d(0, 30px, 0) scale(0.985);
  transition:
    opacity 420ms ease-out,
    filter 620ms ease-out,
    transform 780ms var(--ease-soft);
}

.story-slide.is-before .slide-inner > * {
  transform: translate3d(0, -24px, 0) scale(0.99);
}

.story-slide.is-after .slide-inner > * {
  transform: translate3d(0, 30px, 0) scale(0.985);
}

.story-slide.is-active .slide-inner > * {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1);
}

.story-slide.is-active .slide-inner > :nth-child(2) {
  transition-delay: 90ms;
}

.story-slide.is-active .slide-inner > :nth-child(3) {
  transition-delay: 150ms;
}

.story-slide.is-active .slide-inner > :nth-child(4) {
  transition-delay: 210ms;
}

.hero-slide .slide-inner > * {
  opacity: 1;
  filter: none;
  transform: none;
}

.slide-title,
.story-title,
.hero-content h1 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.slide-title {
  max-width: 13em;
  margin-bottom: 1.15rem;
  color: var(--ink-strong);
  font-size: clamp(2.65rem, 5vw, 5.4rem);
  line-height: 1.08;
}

.slide-body {
  min-width: 0;
  max-width: 42rem;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(0.94rem, 1.24vw, 1.06rem);
  letter-spacing: 0.018em;
  line-height: 1.88;
  overflow-wrap: anywhere;
}

.primary-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 1.45rem;
  padding: 0.82rem 1.55rem;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--rose-strong);
  box-shadow: var(--shadow-float);
  color: #fffaf6;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  white-space: nowrap;
  transition:
    background 180ms ease,
    box-shadow 220ms ease,
    transform 220ms var(--ease-soft);
}

.primary-button:hover {
  background: var(--rose-deep);
  box-shadow: 0 22px 52px rgb(127 38 56 / 26%);
  transform: translateY(-2px);
}

.primary-button:active {
  box-shadow: 0 12px 28px rgb(127 38 56 / 20%);
  transform: translateY(1px) scale(0.98);
}

.primary-button:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 4px;
}

.hero-art,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-art {
  z-index: 0;
  object-fit: cover;
  object-position: center;
  animation: hero-image-reveal 1400ms var(--ease-page) both;
}

.hero-shade {
  z-index: 1;
  background:
    radial-gradient(ellipse at 8% 46%, rgb(255 250 244 / 98%) 0 22%, rgb(255 250 244 / 84%) 38%, transparent 64%),
    linear-gradient(90deg, rgb(255 250 244 / 72%), transparent 64%);
}

.hero-content {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
}

.hero-content h1 {
  max-width: 7.8em;
  margin-bottom: 1.25rem;
  color: var(--ink-strong);
  font-size: clamp(3.5rem, 6.25vw, 6rem);
  line-height: 1.04;
}

.hero-content > p:not(.hero-dedication) {
  max-width: 30rem;
  margin-bottom: 0;
  color: #52665b;
  font-size: clamp(0.96rem, 1.24vw, 1.06rem);
  letter-spacing: 0.025em;
  line-height: 1.8;
}

.hero-dedication {
  margin: 1.15rem 0 0;
  color: var(--rose-strong);
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  letter-spacing: 0.02em;
}

.prologue-slide {
  background:
    linear-gradient(135deg, rgb(248 232 216 / 62%), transparent 46%),
    var(--paper);
}

.prologue-layout {
  display: grid;
  grid-template-columns: minmax(19rem, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(3rem, 9vw, 8rem);
  align-items: center;
}

.days-card {
  position: relative;
  padding: clamp(2.2rem, 4vw, 4rem);
  overflow: hidden;
  border-radius: var(--radius-card);
  background: linear-gradient(145deg, #f8dfe0, #f2cdd1);
  box-shadow: var(--shadow-card);
}

.days-number-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  gap: 0.7rem;
}

.days-number {
  color: var(--rose-deep);
  font-size: clamp(4rem, 9vw, 8rem);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.88;
}

.days-unit {
  padding-bottom: 0.5rem;
  color: var(--rose-deep);
  font-size: 1rem;
  font-weight: 700;
}

.days-note {
  position: relative;
  z-index: 1;
  max-width: 24rem;
  margin: 1.35rem 0 0;
  color: #704b51;
  font-size: 0.88rem;
  line-height: 1.7;
}

.days-heart {
  position: absolute;
  top: -2.2rem;
  right: -2.3rem;
  width: 12rem;
  height: 12rem;
  color: var(--rose);
  fill: currentColor;
  opacity: 0.11;
  transform: rotate(10deg);
}

.prologue-copy {
  max-width: 44rem;
}

.timeline-intro-slide {
  background:
    radial-gradient(circle at 82% 16%, rgb(143 169 143 / 20%), transparent 29rem),
    var(--paper);
}

.timeline-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(17rem, 0.75fr);
  gap: clamp(4rem, 11vw, 10rem);
  align-items: center;
}

.timeline-intro-copy {
  max-width: 49rem;
}

.timeline-note {
  max-width: 25rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}

.timeline-note-heart {
  display: block;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 1.5rem;
  color: var(--rose);
  fill: currentColor;
}

.timeline-note p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.85;
}

.story-chapter {
  background: var(--paper);
}

.story-variant-2 {
  background: var(--paper-deep);
}

.story-variant-3 {
  background: linear-gradient(145deg, var(--peach-soft), #f7dfd7);
}

.story-layout {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(3.5rem, 9vw, 8rem);
  align-items: center;
}

.story-media {
  position: relative;
  min-width: 0;
  width: min(100%, 510px);
  max-height: min(72dvh, 650px);
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--paper-raised);
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 5;
}

.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.055);
  transition: transform 1100ms var(--ease-page);
}

.story-slide.is-active .story-media img {
  transform: scale(1);
}

.photo-placeholder {
  display: grid;
  padding: clamp(1.5rem, 4vw, 3rem);
  outline: 1px dashed rgb(173 53 74 / 42%);
  outline-offset: -1px;
  background:
    radial-gradient(circle at 22% 18%, rgb(207 80 97 / 13%), transparent 8rem),
    radial-gradient(circle at 82% 76%, rgb(143 169 143 / 16%), transparent 9rem),
    var(--paper-raised);
  box-shadow: none;
  place-content: center;
  text-align: center;
}

.placeholder-number {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--rose);
  font-family: var(--display);
  font-size: clamp(3.4rem, 7vw, 6rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
  line-height: 1;
}

.placeholder-note {
  max-width: 14rem;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.7;
}

.story-copy {
  min-width: 0;
  max-width: 38rem;
}

.story-date {
  display: block;
  margin-bottom: 1rem;
  color: var(--rose-strong);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.story-title {
  max-width: 9.5em;
  margin-bottom: 1.2rem;
  color: var(--ink-strong);
  font-size: clamp(2.4rem, 4.4vw, 4.6rem);
  line-height: 1.1;
}

.story-text {
  width: 100%;
  max-width: 36rem;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(0.94rem, 1.2vw, 1.05rem);
  letter-spacing: 0.018em;
  line-height: 1.88;
  overflow-wrap: anywhere;
}

.story-variant-2 .story-media {
  grid-column: 2;
  justify-self: end;
}

.story-variant-2 .story-copy {
  grid-row: 1;
  grid-column: 1;
  justify-self: end;
}

.story-variant-3 .story-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
}

.story-variant-3 .story-media {
  width: 100%;
  max-width: 710px;
  max-height: min(64dvh, 570px);
  aspect-ratio: 16 / 10;
}

.everyday-slide {
  background:
    linear-gradient(155deg, rgb(223 233 220 / 72%), transparent 55%),
    var(--paper);
}

.everyday-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.9fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}

.everyday-image {
  position: relative;
  justify-self: end;
  width: min(100%, 510px);
  max-height: min(70dvh, 630px);
  margin: 0;
}

.everyday-image::before {
  position: absolute;
  inset: 0.85rem -0.85rem -0.85rem 0.85rem;
  z-index: -1;
  border-radius: var(--radius-card);
  background: var(--rose-soft);
  content: "";
  transform: rotate(1.8deg);
  transition: transform 900ms var(--ease-page);
}

.story-slide.is-active .everyday-image::before {
  transform: rotate(3.2deg);
}

.everyday-image img {
  width: 100%;
  max-height: min(70dvh, 630px);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  object-fit: cover;
}

.everyday-copy {
  max-width: 40rem;
}

.everyday-quote {
  max-width: 34rem;
  margin: 2rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgb(173 53 74 / 28%);
  color: var(--rose-deep);
  font-family: var(--display);
  font-size: clamp(1.18rem, 2vw, 1.58rem);
  line-height: 1.7;
}

.reasons-slide {
  background: var(--paper);
}

.reasons-layout {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.reasons-layout > .slide-title {
  max-width: 10.5em;
  margin-bottom: clamp(1.7rem, 4vh, 3rem);
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: minmax(150px, 1fr) minmax(120px, 0.72fr);
  max-height: 50dvh;
  gap: 1rem;
}

.reason-card {
  display: flex;
  min-height: 0;
  padding: clamp(1.4rem, 3vw, 2.5rem);
  border-radius: var(--radius-card);
  flex-direction: column;
  justify-content: space-between;
  opacity: 0.22;
  transform: translateY(20px);
  transition:
    opacity 420ms ease-out,
    transform 720ms var(--ease-soft);
}

.story-slide.is-active .reason-card {
  opacity: 1;
  transform: translateY(0);
}

.story-slide.is-active .reason-card:nth-child(2) {
  transition-delay: 130ms;
}

.story-slide.is-active .reason-card:nth-child(3) {
  transition-delay: 210ms;
}

.reason-card:nth-child(1) {
  grid-column: span 7;
  background: var(--rose-soft);
}

.reason-card:nth-child(2) {
  grid-column: span 5;
  background: var(--sage-soft);
}

.reason-card:nth-child(3) {
  grid-row: 2;
  grid-column: 3 / span 8;
  background: var(--paper-raised);
  box-shadow: 0 16px 46px rgb(83 70 62 / 10%);
}

.reason-heart,
.future-heart {
  width: 1rem;
  height: 1rem;
  color: var(--rose);
  fill: currentColor;
}

.reason-card p {
  max-width: 28rem;
  margin: 1rem 0 0;
  color: var(--ink-strong);
  font-family: var(--display);
  font-size: clamp(1.2rem, 1.9vw, 1.72rem);
  letter-spacing: -0.015em;
  line-height: 1.45;
}

.future-slide {
  background:
    linear-gradient(135deg, rgb(248 232 216 / 82%), transparent 62%),
    var(--paper-deep);
}

.future-layout {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 0.92fr) minmax(22rem, 1.08fr);
  gap: clamp(3rem, 9vw, 8rem);
  align-items: center;
}

.future-copy {
  max-width: 38rem;
}

.future-note {
  margin: 1.2rem 0 0;
  color: var(--rose-strong);
  font-family: var(--display);
  font-size: 1.25rem;
}

.future-list {
  display: grid;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.future-list li {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0.9rem 0.35rem;
  border-bottom: 1px solid var(--line);
  gap: 0.9rem;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.2;
  transform: translateX(18px);
  transition:
    opacity 420ms ease-out,
    transform 720ms var(--ease-soft);
}

.story-slide.is-active .future-list li {
  opacity: 1;
  transform: translateX(0);
}

.story-slide.is-active .future-list li:nth-child(2) {
  transition-delay: 70ms;
}

.story-slide.is-active .future-list li:nth-child(3) {
  transition-delay: 140ms;
}

.story-slide.is-active .future-list li:nth-child(4) {
  transition-delay: 210ms;
}

.story-slide.is-active .future-list li:nth-child(5) {
  transition-delay: 280ms;
}

.letter-slide {
  background:
    radial-gradient(circle at 88% 10%, rgb(207 80 97 / 9%), transparent 25rem),
    var(--paper-deep);
}

.letter-layout {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(20rem, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(3rem, 6vw, 5.5rem);
  align-items: center;
}

.letter-intro {
  max-width: 31rem;
}

.letter-sticker {
  display: inline-grid;
  width: 68px;
  height: 68px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--rose);
  border-radius: 50%;
  color: var(--rose-strong);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  transform: rotate(-8deg);
  place-items: center;
}

.letter-intro .slide-title {
  font-size: clamp(2.5rem, 4vw, 4.1rem);
}

.letter-paper {
  position: relative;
  width: 100%;
  min-width: 0;
  max-height: min(72dvh, 640px);
  padding: clamp(2.1rem, 4.5vw, 4.5rem);
  overflow: hidden;
  border-radius: var(--radius-card);
  background:
    repeating-linear-gradient(transparent 0 2.05rem, rgb(71 88 78 / 7%) 2.05rem calc(2.05rem + 1px)),
    #fffdf8;
  box-shadow: var(--shadow-card);
  color: #334139;
}

.letter-paper::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(1.25rem, 3.3vw, 3rem);
  width: 1px;
  background: rgb(207 80 97 / 22%);
  content: "";
}

.letter-salutation,
.letter-body,
.letter-signature {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-size: clamp(1rem, 1.48vw, 1.17rem);
  letter-spacing: 0.015em;
  line-height: 1.92;
}

.letter-salutation {
  margin-bottom: 1rem;
  color: var(--ink-strong);
  font-size: clamp(1.12rem, 1.62vw, 1.3rem);
}

.letter-body p {
  margin-bottom: 0.88rem;
  overflow-wrap: anywhere;
  opacity: 0.18;
  transform: translateY(12px);
  transition:
    opacity 420ms ease-out,
    transform 680ms var(--ease-soft);
}

.story-slide.is-active .letter-body p {
  opacity: 1;
  transform: translateY(0);
}

.story-slide.is-active .letter-body p:nth-child(2) {
  transition-delay: 90ms;
}

.story-slide.is-active .letter-body p:nth-child(3) {
  transition-delay: 180ms;
}

.letter-signature {
  margin: 1.5rem 0 0;
  color: var(--rose-strong);
  text-align: right;
}

.closing-slide {
  background:
    radial-gradient(circle at 50% 42%, #fae9e5, transparent 44%),
    linear-gradient(145deg, #f6dce0, #f5e3dc);
}

.closing-copy {
  display: grid;
  max-width: 900px;
  place-content: center;
  text-align: center;
}

.closing-copy .slide-title {
  max-width: 11em;
  margin: 0 auto 1.25rem;
  font-size: clamp(3.2rem, 6.2vw, 6rem);
}

.closing-note {
  margin: 0 0 1.35rem;
  color: var(--rose-strong);
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
}

.closing-names {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.closing-heart {
  position: absolute;
  z-index: 1;
  color: var(--rose);
  fill: currentColor;
  opacity: 0.12;
  pointer-events: none;
}

.closing-heart-one {
  top: 10%;
  left: 7%;
  width: clamp(7rem, 17vw, 15rem);
  transform: rotate(-14deg);
}

.closing-heart-two {
  right: 7%;
  bottom: 5%;
  width: clamp(6rem, 14vw, 12rem);
  transform: rotate(16deg);
}

.closing-slide.is-active .closing-heart-one {
  animation: heart-float-one 5.6s ease-in-out infinite alternate;
}

.closing-slide.is-active .closing-heart-two {
  animation: heart-float-two 6.2s ease-in-out infinite alternate;
}

.noscript-message {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 50;
  margin: 0;
  padding: 1rem;
  border-radius: var(--radius-card);
  background: var(--rose-strong);
  color: #fffaf6;
  text-align: center;
}

@keyframes hero-image-reveal {
  from {
    filter: saturate(0.82) brightness(1.05);
    transform: scale(1.035);
  }

  to {
    filter: saturate(1) brightness(1);
    transform: scale(1);
  }
}

@keyframes heart-float-one {
  to {
    transform: translate3d(0, 10px, 0) rotate(-10deg);
  }
}

@keyframes heart-float-two {
  to {
    transform: translate3d(0, -10px, 0) rotate(12deg);
  }
}

@media (max-width: 900px) {
  .slide-inner {
    width: calc(100% - 2rem);
    padding-block:
      max(1.15rem, env(safe-area-inset-top))
      max(1.15rem, env(safe-area-inset-bottom));
  }

  .slide-title {
    font-size: clamp(2.35rem, 10vw, 3.75rem);
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgb(255 250 244 / 98%) 0%, rgb(255 250 244 / 80%) 36%, transparent 66%),
      linear-gradient(90deg, rgb(255 250 244 / 40%), transparent 72%);
  }

  .hero-art {
    object-position: 76% center;
  }

  .hero-content {
    justify-content: flex-start;
    padding-top: max(2.1rem, env(safe-area-inset-top));
  }

  .hero-content h1 {
    max-width: 7.8em;
    margin-bottom: 0.9rem;
    font-size: clamp(2.9rem, 13vw, 4.25rem);
    line-height: 1.04;
  }

  .hero-content > p:not(.hero-dedication) {
    max-width: 21rem;
    font-size: 0.92rem;
  }

  .hero-dedication {
    margin-top: 0.8rem;
    font-size: 1rem;
  }

  .primary-button {
    min-height: 48px;
    margin-top: 1.1rem;
  }

  .prologue-layout,
  .timeline-intro,
  .story-layout,
  .story-variant-3 .story-layout,
  .everyday-layout,
  .future-layout,
  .letter-layout {
    grid-template-columns: 1fr;
  }

  .prologue-layout {
    align-content: center;
    gap: 1.6rem;
  }

  .days-card {
    padding: 1.65rem;
  }

  .days-number {
    font-size: clamp(4rem, 20vw, 6.4rem);
  }

  .days-note {
    margin-top: 0.9rem;
  }

  .days-heart {
    width: 9rem;
    height: 9rem;
  }

  .prologue-copy .slide-title {
    margin-bottom: 0.7rem;
  }

  .timeline-intro {
    align-content: center;
    gap: 1.8rem;
  }

  .timeline-note {
    padding-top: 1.2rem;
  }

  .timeline-note-heart {
    width: 1.8rem;
    height: 1.8rem;
    margin-bottom: 0.8rem;
  }

  .story-layout,
  .story-variant-3 .story-layout {
    align-content: center;
    gap: 1.15rem;
  }

  .story-media,
  .story-variant-3 .story-media,
  .story-variant-2 .story-media {
    grid-row: auto;
    grid-column: 1;
    justify-self: stretch;
    width: 100%;
    max-width: none;
    height: min(34dvh, 290px);
    max-height: none;
    border-radius: 14px;
    aspect-ratio: auto;
  }

  .story-variant-2 .story-copy,
  .story-copy {
    grid-row: auto;
    grid-column: 1;
    justify-self: stretch;
    max-width: none;
    width: 100%;
  }

  .placeholder-number {
    margin-bottom: 0.4rem;
    font-size: 3.1rem;
  }

  .story-date {
    margin-bottom: 0.55rem;
  }

  .story-title {
    margin-bottom: 0.65rem;
    font-size: clamp(2.15rem, 9vw, 3.35rem);
  }

  .story-text {
    font-size: 0.9rem;
    line-height: 1.72;
  }

  .everyday-layout {
    align-content: center;
    gap: 1.45rem;
  }

  .everyday-image {
    justify-self: center;
    width: min(68vw, 310px);
    max-height: 37dvh;
  }

  .everyday-image img {
    max-height: 37dvh;
    border-radius: 14px;
  }

  .everyday-image::before {
    inset: 0.6rem -0.6rem -0.6rem 0.6rem;
    border-radius: 14px;
  }

  .everyday-copy .slide-title {
    margin-bottom: 0.65rem;
  }

  .everyday-quote {
    margin-top: 1rem;
    padding-top: 0.8rem;
    font-size: 1.06rem;
  }

  .reasons-layout {
    justify-content: center;
  }

  .reasons-layout > .slide-title {
    margin-bottom: 1.1rem;
  }

  .reasons-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, minmax(94px, auto));
    max-height: none;
    gap: 0.7rem;
  }

  .reason-card:nth-child(n) {
    grid-row: auto;
    grid-column: 1;
    min-height: 94px;
    padding: 1rem 1.1rem;
    border-radius: 14px;
  }

  .reason-card p {
    margin-top: 0.4rem;
    font-size: clamp(1.05rem, 4.4vw, 1.3rem);
  }

  .future-layout {
    align-content: center;
    gap: 1.25rem;
  }

  .future-copy .slide-title {
    margin-bottom: 0;
  }

  .future-note {
    margin-top: 0.65rem;
    font-size: 1.05rem;
  }

  .future-list li {
    min-height: 48px;
    padding-block: 0.65rem;
  }

  .letter-layout {
    align-content: center;
    gap: 1.1rem;
  }

  .letter-intro {
    max-width: none;
  }

  .letter-sticker {
    width: 52px;
    height: 52px;
    margin-bottom: 0.8rem;
    font-size: 0.49rem;
  }

  .letter-intro .slide-title {
    margin-bottom: 0;
    font-size: clamp(2.2rem, 9vw, 3.35rem);
  }

  .letter-paper {
    width: 100%;
    max-height: 52dvh;
    padding: 1.45rem 1.3rem 1.45rem 2rem;
    border-radius: 14px;
  }

  .letter-paper::before {
    left: 1.15rem;
  }

  .letter-salutation,
  .letter-body,
  .letter-signature {
    font-size: 0.92rem;
    line-height: 1.72;
  }

  .letter-body p {
    margin-bottom: 0.62rem;
  }

  .letter-signature {
    margin-top: 0.85rem;
  }

  .closing-copy .slide-title {
    font-size: clamp(3rem, 12vw, 4.7rem);
  }

  .closing-heart-one {
    top: 14%;
    left: -4%;
  }

  .closing-heart-two {
    right: -2%;
    bottom: 10%;
  }
}

@media (max-width: 900px) and (max-height: 720px) {
  .slide-inner {
    padding-block: 0.85rem;
  }

  .hero-content {
    padding-top: 1.15rem;
  }

  .hero-content h1 {
    margin-bottom: 0.7rem;
    font-size: clamp(2.5rem, 11.5vw, 3.55rem);
  }

  .primary-button {
    margin-top: 0.85rem;
  }

  .story-media,
  .story-variant-3 .story-media,
  .story-variant-2 .story-media {
    height: min(29dvh, 220px);
  }

  .story-title {
    font-size: clamp(1.95rem, 8vw, 2.8rem);
  }

  .everyday-image,
  .everyday-image img {
    max-height: 31dvh;
  }

  .reason-card:nth-child(n) {
    min-height: 82px;
  }

  .letter-paper {
    max-height: 48dvh;
  }

  .letter-salutation,
  .letter-body,
  .letter-signature {
    font-size: 0.84rem;
    line-height: 1.58;
  }
}

@media (min-width: 901px) and (max-height: 760px) {
  .slide-inner {
    padding-block: 2rem;
  }

  .story-media,
  .story-variant-3 .story-media {
    max-height: 64dvh;
  }

  .letter-paper {
    max-height: 66dvh;
  }
}

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

  .story-track {
    will-change: auto;
  }

  .story-slide .slide-inner > *,
  .reason-card,
  .future-list li,
  .letter-body p {
    opacity: 1;
    filter: none;
    transform: none;
  }
}
