:root {
  --ink: #3f202a;
  --wine: #742c42;
  --berry: #a94462;
  --rose: #d989a1;
  --blush: #f4dce3;
  --paper: #fffaf8;
  --cream: #fff3ed;
  --deep: #351520;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 15%, rgba(255, 255, 255, 0.9), transparent 27%),
    linear-gradient(125deg, var(--paper), #f9e7eb);
  font-family: "Manrope", sans-serif;
  font-weight: 300;
}

button {
  color: inherit;
  font: inherit;
}

button:focus-visible {
  outline: 2px solid var(--berry);
  outline-offset: 5px;
}

.grain {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.85'/%3E%3C/svg%3E");
}

body.is-locked .site-header,
body.is-locked #story,
body.is-locked .story-dots,
body.is-locked .keyboard-hint {
  visibility: hidden;
}

.password-gate {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: 38px 24px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.95), transparent 28%),
    linear-gradient(135deg, #fffaf8 0%, #f7dfe6 53%, #ecc4d0 100%);
  transition: visibility 0s linear 900ms;
}

.password-gate::before,
.password-gate::after {
  position: absolute;
  color: rgba(116, 44, 66, 0.055);
  font-family: "Parisienne", cursive;
  font-size: clamp(180px, 28vw, 480px);
  line-height: 1;
  content: "♡";
}

.password-gate::before {
  top: -17%;
  left: -4%;
  transform: rotate(-18deg);
}

.password-gate::after {
  right: -3%;
  bottom: -24%;
  transform: rotate(15deg);
}

.gate-card {
  position: relative;
  z-index: 2;
  width: min(690px, 92vw);
  padding: clamp(35px, 6vw, 75px);
  border: 1px solid rgba(116, 44, 66, 0.2);
  background: rgba(255, 250, 248, 0.68);
  box-shadow: 0 35px 110px rgba(87, 32, 49, 0.15);
  text-align: center;
  backdrop-filter: blur(14px);
}

.gate-card::before {
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(116, 44, 66, 0.1);
  content: "";
  pointer-events: none;
}

.gate-monogram {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  margin: 0 auto 30px;
  border: 1px solid var(--wine);
  border-radius: 50%;
  font-family: "Italiana", serif;
  font-size: 24px;
}

.gate-card h1 {
  max-width: none;
  font-size: clamp(46px, 6vw, 78px);
}

.gate-card h1 em {
  margin-top: 5px;
}

.gate-form {
  width: min(430px, 100%);
  margin: 42px auto 0;
  text-align: left;
}

.gate-form label {
  display: block;
  margin-bottom: 11px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.gate-input-row {
  display: grid;
  grid-template-columns: 1fr 52px;
  border-bottom: 1px solid var(--wine);
}

.gate-input-row input {
  min-width: 0;
  padding: 13px 8px 13px 2px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-family: "Italiana", serif;
  font-size: 27px;
  letter-spacing: 0.04em;
}

.gate-input-row button {
  border: 0;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  transition: color 200ms ease, transform 200ms ease;
}

.gate-input-row button:hover {
  color: var(--berry);
  transform: translateX(4px);
}

.gate-feedback {
  min-height: 20px;
  margin: 12px 0 0;
  color: rgba(63, 32, 42, 0.57);
  font-family: "Parisienne", cursive;
  font-size: 19px;
  text-align: center;
}

.gate-form.has-error .gate-input-row {
  border-color: #b72f4e;
  animation: gate-shake 420ms ease;
}

.gate-form.has-error .gate-feedback {
  color: #9b2843;
}

.gate-footer {
  position: absolute;
  z-index: 2;
  bottom: 28px;
  margin: 0;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.gate-orbit {
  position: absolute;
  border: 1px solid rgba(116, 44, 66, 0.11);
  border-radius: 50%;
}

.orbit-one {
  width: min(82vw, 1050px);
  aspect-ratio: 1;
}

.orbit-two {
  width: min(63vw, 790px);
  aspect-ratio: 1;
}

body.is-unlocking .password-gate {
  visibility: hidden;
  animation: gate-open 900ms var(--ease) both;
}

body.is-unlocking .site-header,
body.is-unlocking #story,
body.is-unlocking .story-dots,
body.is-unlocking .keyboard-hint {
  animation: story-reveal 850ms 450ms var(--ease) both;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 26px clamp(24px, 4vw, 70px);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.wordmark-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: "Italiana", serif;
  font-size: 19px;
}

.wordmark-text {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.progress-shell {
  display: flex;
  align-items: center;
  gap: 14px;
}

.progress-track {
  width: clamp(90px, 11vw, 165px);
  height: 1px;
  overflow: hidden;
  background: rgba(63, 32, 42, 0.2);
}

.progress-fill {
  display: block;
  width: 16.666%;
  height: 100%;
  background: currentColor;
  transition: width 700ms var(--ease);
}

.progress-count {
  min-width: 48px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
}

#story {
  position: relative;
  min-height: 100svh;
}

.story-page {
  position: absolute;
  inset: 0;
  display: grid;
  min-height: 100svh;
  padding: 110px clamp(28px, 7vw, 120px) 76px;
  overflow: hidden;
}

.story-page[hidden] {
  display: none;
}

.story-page.is-entering > *:not(.page-arrow, .chapter-number, .finale-glow) {
  animation: enter-up 850ms var(--ease) both;
}

.story-page.is-entering > *:nth-child(2) {
  animation-delay: 100ms;
}

.story-page.is-entering > *:nth-child(3) {
  animation-delay: 180ms;
}

.story-page.is-leaving {
  animation: leave-page 420ms ease both;
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 19px;
  color: var(--berry);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Italiana", serif;
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 750px;
  font-size: clamp(50px, 6.8vw, 108px);
}

h2 {
  font-size: clamp(50px, 6vw, 96px);
}

h1 em,
h2 em {
  display: block;
  color: var(--berry);
  font-family: "Parisienne", cursive;
  font-weight: 400;
  line-height: 0.92;
}

.body-copy,
.lede {
  max-width: 560px;
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.85;
}

.love-button {
  display: inline-flex;
  min-width: 205px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 28px;
  padding: 17px 20px;
  border: 1px solid var(--wine);
  border-radius: 100px;
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 250ms ease, background 250ms ease, transform 250ms ease;
}

.love-button:hover {
  color: white;
  background: var(--wine);
  transform: translateY(-2px);
}

.button-arrow {
  font-size: 18px;
}

.page-arrow {
  position: absolute;
  right: clamp(24px, 4vw, 70px);
  bottom: 34px;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  font-size: 21px;
  cursor: pointer;
  transition: color 250ms ease, background 250ms ease, transform 250ms ease;
}

.page-arrow:hover {
  color: white;
  background: var(--wine);
  transform: translateX(4px);
}

/* Intro */
.page-intro {
  grid-template-columns: minmax(0, 1.4fr) minmax(290px, 0.65fr);
  align-items: center;
  gap: clamp(30px, 6vw, 100px);
}

.intro-copy {
  position: relative;
  z-index: 2;
}

.page-intro .lede {
  margin: 30px 0 0;
}

.hero-polaroid {
  position: relative;
  width: min(100%, 440px);
  margin: 0;
  padding: 12px 12px 20px;
  background: white;
  box-shadow: 0 24px 80px rgba(85, 33, 48, 0.18);
}

.hero-polaroid::before {
  position: absolute;
  z-index: -1;
  inset: 18px -18px -18px 18px;
  border: 1px solid rgba(169, 68, 98, 0.25);
  content: "";
}

.hero-polaroid img {
  display: block;
  width: 100%;
  aspect-ratio: 1.2;
  object-fit: cover;
  filter: sepia(0.08) saturate(0.86);
}

.hero-polaroid figcaption,
.media-card figcaption,
.large-frame .frame-label,
.finale-cat figcaption {
  margin-top: 14px;
  font-family: "Parisienne", cursive;
  font-size: 22px;
  text-align: center;
}

.tilt-right {
  transform: rotate(2.5deg);
}

.tape {
  position: absolute;
  z-index: 2;
  top: -17px;
  left: 50%;
  width: 90px;
  height: 34px;
  background: rgba(239, 208, 197, 0.7);
  transform: translateX(-50%) rotate(-2deg);
}

.side-note {
  position: absolute;
  right: 24px;
  bottom: 50%;
  margin: 0;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transform: rotate(90deg) translateX(50%);
  transform-origin: right bottom;
}

/* Absolutely */
.page-split {
  grid-template-columns: minmax(320px, 0.85fr) minmax(380px, 1.15fr);
  align-items: center;
  gap: clamp(50px, 7vw, 130px);
  background: var(--cream);
}

.page-confession {
  grid-template-columns: 1fr;
}

.page-confession .message-column {
  width: min(100%, 1050px);
  margin: 0 auto;
  padding-left: 0;
}

.page-confession .message-column h2 {
  max-width: 1000px;
  font-size: clamp(50px, 6vw, 94px);
}

.page-confession .message-column .body-copy {
  max-width: 810px;
}

.page-confession .message-column .body-copy + .body-copy {
  margin-top: 10px;
}

.message-column {
  position: relative;
  z-index: 1;
  padding-left: clamp(0px, 4vw, 65px);
}

.message-column h2 {
  max-width: 510px;
  font-size: clamp(53px, 6.3vw, 100px);
}

.script-answer {
  margin: 0 0 10px;
  color: var(--berry);
  font-family: "Parisienne", cursive;
  font-size: clamp(58px, 7vw, 110px);
  line-height: 0.9;
  transform: rotate(-4deg);
}

.message-column .body-copy {
  max-width: 490px;
  margin-top: 28px;
}

.chapter-number {
  position: absolute;
  top: 90px;
  left: 4vw;
  color: rgba(116, 44, 66, 0.065);
  font-family: "Italiana", serif;
  font-size: clamp(170px, 22vw, 360px);
  line-height: 1;
}

.media-card {
  position: relative;
  width: 100%;
  max-width: 690px;
  margin: 0;
  padding: 11px 11px 17px;
  border: 1px solid rgba(63, 32, 42, 0.13);
  background: white;
  box-shadow: 0 30px 90px rgba(77, 28, 43, 0.13);
  transform: rotate(1.3deg);
}

.media-card img {
  display: block;
  width: 100%;
  max-height: 53vh;
  object-fit: cover;
}

/* Cat collage */
.page-collage {
  grid-template-columns: minmax(300px, 0.75fr) minmax(500px, 1.25fr);
  align-items: center;
  gap: 6vw;
  background:
    linear-gradient(rgba(255, 250, 248, 0.78), rgba(255, 250, 248, 0.78)),
    radial-gradient(circle at 75% 30%, var(--blush), transparent 38%);
}

.page-memory {
  grid-template-columns: minmax(480px, 1.05fr) minmax(430px, 0.95fr);
  gap: clamp(40px, 6vw, 105px);
}

.page-memory .collage-copy h2 {
  max-width: 760px;
  font-size: clamp(46px, 4.6vw, 72px);
}

.page-memory .collage-copy .body-copy {
  max-width: 720px;
  margin: 13px 0 0;
  font-size: clamp(12px, 0.92vw, 15px);
  line-height: 1.68;
}

.page-memory .collage-copy h2 + .body-copy {
  margin-top: 24px;
}

.page-memory .snapshot-one {
  top: 0;
  left: 1%;
  width: 53%;
  height: 69%;
}

.page-memory .snapshot-two {
  right: 1%;
  bottom: 0;
  width: 52%;
  height: 69%;
}

.collage-copy h2 {
  max-width: 600px;
}

.collage-copy .body-copy {
  margin-top: 28px;
}

.handwritten-note {
  margin: 8px 0 0;
  color: var(--berry);
  font-family: "Parisienne", cursive;
  font-size: 28px;
  transform: rotate(-3deg);
}

.photo-collage {
  position: relative;
  width: 100%;
  height: min(65vh, 680px);
}

.snapshot {
  position: absolute;
  margin: 0;
  padding: 9px 9px 14px;
  background: white;
  box-shadow: 0 18px 45px rgba(69, 27, 39, 0.18);
}

.snapshot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.snapshot figcaption {
  padding-top: 9px;
  font-family: "Parisienne", cursive;
  font-size: 21px;
  text-align: center;
}

.snapshot-one {
  z-index: 2;
  top: 2%;
  left: 4%;
  width: 49%;
  height: 58%;
  transform: rotate(-5deg);
}

.snapshot-two {
  z-index: 3;
  right: 3%;
  bottom: 2%;
  width: 51%;
  height: 58%;
  transform: rotate(5deg);
}

.snapshot-three {
  z-index: 1;
  top: 13%;
  right: 1%;
  width: 44%;
  height: 48%;
  transform: rotate(8deg);
}

/* Quote */
.page-quote {
  place-items: center;
  color: var(--paper);
  background:
    radial-gradient(circle at 72% 30%, rgba(255, 195, 210, 0.15), transparent 25%),
    var(--deep);
}

.page-quote::after {
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  content: "";
  pointer-events: none;
}

.quote-wrap {
  position: relative;
  z-index: 2;
  width: min(880px, 80vw);
  text-align: center;
}

.quote-wrap .eyebrow {
  color: #eaa4b8;
}

.quote-wrap h2 {
  font-size: clamp(48px, 6.4vw, 100px);
}

.quote-wrap h2 em {
  color: #eaa4b8;
}

.quote-wrap .body-copy {
  margin: 35px auto 0;
  color: rgba(255, 250, 248, 0.72);
}

.quote-mark {
  position: absolute;
  top: 6%;
  left: 9%;
  color: rgba(255, 255, 255, 0.06);
  font-family: "Italiana", serif;
  font-size: 32vw;
  line-height: 1;
}

.mini-note {
  position: absolute;
  right: 8vw;
  bottom: 10vh;
  display: flex;
  align-items: center;
  gap: 13px;
  color: rgba(255, 255, 255, 0.55);
  font-family: "Parisienne", cursive;
  font-size: 19px;
  transform: rotate(-5deg);
}

.mini-note p {
  margin: 0;
}

.mini-heart {
  color: #eaa4b8;
}

.light-arrow:hover {
  color: var(--deep);
  background: var(--paper);
}

/* The one */
.page-one {
  grid-template-columns: minmax(440px, 1.1fr) minmax(330px, 0.8fr);
  align-items: center;
  gap: clamp(50px, 8vw, 140px);
  background: #f8e7eb;
}

.page-toast {
  grid-template-columns: minmax(330px, 0.8fr) minmax(440px, 1.1fr);
  background: #fff5f1;
}

.page-toast .large-frame {
  order: 2;
  transform: rotate(1.5deg);
}

.page-toast .one-copy {
  order: 1;
}

.page-toast .one-copy .body-copy + .body-copy {
  margin-top: 10px;
}

.large-frame {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0;
  padding: 13px;
  background: white;
  box-shadow: 0 24px 80px rgba(69, 27, 39, 0.16);
  transform: rotate(-1.5deg);
}

.large-frame::before,
.large-frame::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(116, 44, 66, 0.25);
  content: "";
}

.large-frame::before {
  inset: 22px -22px -22px 22px;
}

.large-frame::after {
  inset: -19px 25px 25px -19px;
}

.large-frame img {
  display: block;
  width: 100%;
  max-height: 58vh;
  object-fit: cover;
}

.one-copy .body-copy {
  margin-top: 28px;
}

.signature {
  margin-top: 24px;
  color: var(--berry);
  font-family: "Parisienne", cursive;
  font-size: 37px;
  transform: rotate(-4deg);
  transform-origin: left;
}

/* Finale */
.page-finale {
  grid-template-columns: 1fr;
  place-items: center;
  background: var(--paper);
  text-align: center;
}

.proposal-copy {
  position: relative;
  z-index: 2;
  width: min(900px, 90vw);
}

.proposal-copy h2 {
  font-size: clamp(52px, 5.8vw, 90px);
}

.proposal-copy .body-copy {
  margin: 30px auto 0;
}

.proposal-copy .proposal-lede {
  max-width: 690px;
  margin: 0 auto 30px;
}

.proposal-choices {
  position: relative;
  width: min(560px, 90vw);
  height: 150px;
  margin: 20px auto 0;
}

.proposal-button {
  position: absolute;
  top: 48px;
  min-width: 175px;
  padding: 17px 25px;
  border: 1px solid var(--wine);
  border-radius: 100px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease,
    left 260ms var(--ease),
    top 260ms var(--ease),
    transform 220ms ease;
}

.yes-button {
  left: 55px;
  color: white;
  background: var(--wine);
  box-shadow: 0 13px 35px rgba(116, 44, 66, 0.22);
}

.yes-button:hover {
  background: var(--berry);
  transform: translateY(-3px) scale(1.04);
}

.no-button {
  left: 330px;
  background: transparent;
}

.proposal-hint {
  margin: -8px 0 0;
  color: rgba(63, 32, 42, 0.48);
  font-family: "Parisienne", cursive;
  font-size: 20px;
}

.finale-glow {
  position: absolute;
  top: 48%;
  left: 50%;
  width: min(92vw, 1050px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(231, 164, 183, 0.34), transparent 67%);
  transform: translate(-50%, -50%);
}

.cat-cursor {
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  width: 82px;
  height: 82px;
  padding: 4px;
  border: 2px solid white;
  border-radius: 50%;
  opacity: 0;
  background: var(--blush);
  box-shadow: 0 9px 30px rgba(53, 21, 32, 0.28);
  pointer-events: none;
  transform: translate3d(-150px, -150px, 0);
  transition: opacity 120ms ease, border-color 160ms ease, width 160ms ease, height 160ms ease;
}

.cat-cursor.is-visible {
  opacity: 1;
}

.cat-cursor.is-angry {
  width: 92px;
  height: 92px;
  border-color: #b72f4e;
}

.cat-cursor img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.cat-cursor.is-jumping img {
  animation: cat-cursor-jump 620ms var(--ease);
}

.cat-cursor-active,
.cat-cursor-active * {
  cursor: none !important;
}

.page-celebration {
  grid-template-columns: 1fr;
  align-content: start;
  justify-items: center;
  overflow-y: auto;
  padding-top: clamp(105px, 13vh, 145px);
  padding-bottom: 70px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.92), transparent 28%),
    linear-gradient(135deg, #fffaf8, #f6dce4);
  text-align: center;
}

.celebration-copy {
  position: relative;
  z-index: 2;
  width: min(960px, 90vw);
  animation: enter-up 900ms var(--ease) both;
}

.celebration-copy h2 {
  font-size: clamp(72px, 9vw, 135px);
}

.celebration-glow {
  position: absolute;
  top: 45%;
  left: 50%;
  width: min(85vw, 850px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(231, 164, 183, 0.38), transparent 68%);
  transform: translate(-50%, -50%);
}

.celebration-cat {
  width: min(250px, 55vw);
  margin: 25px auto 0;
  padding: 9px 9px 13px;
  background: white;
  box-shadow: 0 18px 55px rgba(69, 27, 39, 0.16);
  transform: rotate(3deg);
}

.celebration-cat img {
  display: block;
  width: 100%;
  aspect-ratio: 1.1;
  object-fit: cover;
}

.celebration-cat figcaption {
  margin-top: 9px;
  font-family: "Parisienne", cursive;
  font-size: 19px;
}

.terms-note {
  position: relative;
  z-index: 2;
  width: min(720px, 84vw);
  margin: 55px auto 0;
  color: rgba(63, 32, 42, 0.55);
  font-family: "Parisienne", cursive;
  font-size: 18px;
  line-height: 1.45;
}

/* Navigation */
.story-dots {
  position: fixed;
  z-index: 30;
  bottom: 37px;
  left: clamp(24px, 4vw, 70px);
  display: flex;
  gap: 11px;
}

.story-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: currentColor;
  cursor: pointer;
  opacity: 0.25;
  transition: opacity 250ms ease, transform 250ms ease;
}

.story-dot.is-active {
  opacity: 1;
  transform: scale(1.55);
}

.keyboard-hint {
  position: fixed;
  z-index: 30;
  bottom: 29px;
  left: 50%;
  margin: 0;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.22em;
  opacity: 0.45;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.on-dark .site-header,
.on-dark .story-dots,
.on-dark .keyboard-hint {
  color: var(--paper);
}

.on-dark .progress-track {
  background: rgba(255, 255, 255, 0.22);
}

.floating-heart {
  position: fixed;
  z-index: 25;
  bottom: -30px;
  color: var(--rose);
  font-size: var(--size);
  pointer-events: none;
  animation: float-heart var(--duration) linear forwards;
}

@keyframes enter-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes leave-page {
  to {
    opacity: 0;
    transform: translateY(-14px);
  }
}

@keyframes float-heart {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(0);
  }
  15% {
    opacity: 0.75;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift), -110vh, 0) rotate(28deg);
  }
}

@keyframes gate-shake {
  25% {
    transform: translateX(-7px);
  }
  50% {
    transform: translateX(6px);
  }
  75% {
    transform: translateX(-3px);
  }
}

@keyframes cat-cursor-jump {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  42% {
    transform: translateY(-38px) rotate(-9deg) scale(1.08);
  }
  72% {
    transform: translateY(5px) rotate(4deg);
  }
}

@keyframes gate-open {
  0% {
    opacity: 1;
    clip-path: circle(150% at 50% 50%);
  }
  100% {
    opacity: 0;
    clip-path: circle(0% at 50% 50%);
  }
}

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

@media (max-height: 760px) and (min-width: 901px) {
  .page-quote {
    align-content: start;
    justify-items: center;
    overflow-y: auto;
    padding-top: 84px;
    padding-bottom: 120px;
  }

  .quote-wrap {
    width: min(850px, 76vw);
  }

  .quote-wrap h2 {
    font-size: clamp(45px, 5.4vw, 68px);
  }

  .quote-wrap .body-copy {
    margin-top: 22px;
    font-size: 13px;
    line-height: 1.65;
  }

  .mini-note {
    right: 7vw;
    bottom: 58px;
  }
}

@media (max-width: 900px) {
  body {
    overflow: auto;
  }

  .site-header {
    padding: 20px 22px;
  }

  .story-page {
    position: relative;
    min-height: 100svh;
    padding: 95px 25px 90px;
  }

  .page-intro,
  .page-split,
  .page-collage,
  .page-one,
  .page-finale {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 38px;
  }

  h1 {
    font-size: clamp(48px, 12vw, 77px);
  }

  h2,
  .message-column h2 {
    font-size: clamp(48px, 11vw, 74px);
  }

  .page-intro .hero-polaroid {
    width: min(68vw, 340px);
    justify-self: end;
  }

  .page-intro .lede {
    margin-top: 20px;
  }

  .side-note,
  .chapter-number,
  .keyboard-hint {
    display: none;
  }

  .message-column {
    padding-left: 0;
  }

  .script-answer {
    font-size: 70px;
  }

  .media-card {
    width: min(88vw, 560px);
    justify-self: center;
  }

  .media-card img,
  .large-frame img {
    max-height: 38vh;
  }

  .page-collage {
    align-content: start;
    padding-top: 112px;
  }

  .photo-collage {
    height: 46vh;
    min-height: 370px;
  }

  .quote-wrap {
    width: min(90vw, 760px);
  }

  .mini-note {
    right: 12vw;
    bottom: 12vh;
  }

  .large-frame {
    width: min(88vw, 620px);
    justify-self: center;
  }

  .page-one .one-copy {
    order: -1;
  }

  .proposal-copy h2 {
    font-size: clamp(48px, 10vw, 72px);
  }

  .proposal-copy {
    width: min(760px, 92vw);
  }

  .celebration-copy h2 {
    font-size: clamp(68px, 14vw, 105px);
  }

  .progress-track {
    display: none;
  }

  .wordmark-text {
    display: none;
  }
}

@media (max-width: 520px) {
  .password-gate {
    padding: 22px 17px;
  }

  .gate-card {
    width: 100%;
    padding: 39px 25px 35px;
  }

  .gate-monogram {
    margin-bottom: 24px;
  }

  .gate-card h1 {
    font-size: clamp(42px, 13vw, 62px);
  }

  .gate-form {
    margin-top: 33px;
  }

  .gate-footer {
    bottom: 18px;
    width: 80%;
    line-height: 1.6;
    text-align: center;
  }

  .story-page {
    padding-right: 21px;
    padding-left: 21px;
  }

  .eyebrow {
    margin-bottom: 14px;
    font-size: 9px;
  }

  .body-copy,
  .lede {
    font-size: 13px;
    line-height: 1.7;
  }

  .page-intro {
    gap: 25px;
  }

  .page-intro .hero-polaroid {
    width: 57vw;
  }

  .hero-polaroid figcaption,
  .media-card figcaption,
  .large-frame .frame-label,
  .finale-cat figcaption {
    font-size: 17px;
  }

  .love-button {
    margin-top: 17px;
    padding: 14px 18px;
  }

  .proposal-choices {
    width: 100%;
    height: 190px;
  }

  .proposal-button {
    min-width: 160px;
  }

  .yes-button {
    top: 18px;
    left: 0;
  }

  .no-button {
    top: 106px;
    left: calc(100% - 160px);
  }

  .proposal-hint {
    margin-top: -2px;
  }

  .page-celebration {
    padding-top: 105px;
    padding-bottom: 55px;
  }

  .terms-note {
    width: min(520px, 86vw);
    margin-top: 45px;
    font-size: 16px;
  }

  .cat-cursor {
    display: none;
  }

  .page-split,
  .page-one {
    gap: 24px;
  }

  .media-card img,
  .large-frame img {
    max-height: 31vh;
  }

  .message-column .body-copy,
  .one-copy .body-copy {
    margin-top: 18px;
  }

  .photo-collage {
    height: 41vh;
    min-height: 320px;
  }

  .snapshot figcaption {
    font-size: 16px;
  }

  .quote-wrap h2 {
    font-size: clamp(43px, 12vw, 60px);
  }

  .quote-wrap .body-copy {
    margin-top: 24px;
  }

  .mini-note {
    display: none;
  }

  .page-arrow {
    right: 22px;
    bottom: 25px;
    width: 46px;
    height: 46px;
  }

  .story-dots {
    bottom: 32px;
    left: 22px;
  }
}

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

  .floating-hearts {
    display: none;
  }
}
