:root {
  color-scheme: light;
  --paper: #fff9f6;
  --paper-warm: #f8e9e9;
  --paper-soft: #fffdfb;
  --ink: #3f2b32;
  --ink-soft: #755f67;
  --accent: #b64b68;
  --accent-deep: #8e3650;
  --accent-pale: #f1c7d0;
  --line: rgba(142, 54, 80, 0.22);
  --white: #fffdfb;
  --shadow: 0 18px 48px rgba(117, 48, 70, 0.13);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
}

body {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.site-shell {
  position: relative;
  min-height: 100dvh;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 249, 246, 0.84), rgba(255, 249, 246, 0.84)),
    url("assets/watercolor-wash.png") center / cover no-repeat,
    var(--paper);
}

.site-shell::after {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  content: "";
  opacity: 0.09;
  background-image: radial-gradient(rgba(66, 45, 53, 0.18) 0.5px, transparent 0.5px);
  background-size: 5px 5px;
  mix-blend-mode: multiply;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 18px clamp(20px, 4vw, 64px);
}

.site-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent-deep);
  font-family: var(--serif);
  font-size: 18px;
  text-decoration: none;
}

.site-mark__heart {
  color: var(--accent);
  font-size: 25px;
  line-height: 1;
}

.progress {
  color: var(--ink-soft);
  font-size: 14px;
  letter-spacing: 0.05em;
}

.progress span:first-child {
  color: var(--accent-deep);
  font-weight: 700;
}

.story {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
}

.scene {
  position: absolute;
  inset: 0;
  display: grid;
  min-height: 100dvh;
  isolation: isolate;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-padding-top: 104px;
  visibility: hidden;
  opacity: 0;
  transform: translate3d(20px, 0, 0);
  transition: opacity 480ms cubic-bezier(0.16, 1, 0.3, 1), transform 480ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 480ms;
  pointer-events: none;
}

.scene::before,
.scene::after {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  content: "";
}

/* A single pressed-flower detail changes place from slide to slide. */
.scene::before {
  top: 9%;
  right: 6%;
  width: 122px;
  height: 122px;
  opacity: 0.28;
  background:
    radial-gradient(ellipse at 50% 16%, var(--floral-petal, rgba(234, 151, 178, 0.74)) 0 18%, transparent 19%),
    radial-gradient(ellipse at 84% 39%, var(--floral-petal, rgba(234, 151, 178, 0.74)) 0 18%, transparent 19%),
    radial-gradient(ellipse at 68% 80%, var(--floral-petal, rgba(234, 151, 178, 0.74)) 0 18%, transparent 19%),
    radial-gradient(ellipse at 32% 80%, var(--floral-petal, rgba(234, 151, 178, 0.74)) 0 18%, transparent 19%),
    radial-gradient(ellipse at 16% 39%, var(--floral-petal, rgba(234, 151, 178, 0.74)) 0 18%, transparent 19%),
    radial-gradient(circle at 50% 50%, var(--floral-center, rgba(182, 75, 104, 0.76)) 0 9%, transparent 10%);
  filter: blur(0.15px);
  transform-origin: center;
  animation: floral-float 9s ease-in-out infinite;
}

.scene::after {
  top: 15%;
  right: 2.5%;
  width: 148px;
  height: 126px;
  opacity: 0.2;
  background:
    linear-gradient(72deg, transparent 48%, rgba(142, 54, 80, 0.3) 49% 50%, transparent 51%) 21px 18px / 74px 103px no-repeat,
    radial-gradient(ellipse at 16% 25%, var(--floral-petal, rgba(234, 151, 178, 0.74)) 0 11%, transparent 12%),
    radial-gradient(ellipse at 82% 20%, var(--floral-petal, rgba(234, 151, 178, 0.74)) 0 10%, transparent 11%),
    radial-gradient(ellipse at 43% 89%, var(--floral-petal, rgba(234, 151, 178, 0.74)) 0 12%, transparent 13%);
  transform: rotate(var(--floral-trail-rotation, 0deg));
  animation: petal-drift 11s ease-in-out infinite;
}

/* Each scene keeps the same ink and paper, then gets its own margin mark. */
#scene-1 {
  --floral-petal: rgba(243, 169, 192, 0.74);
  --floral-center: rgba(182, 75, 104, 0.76);
  --floral-rotation: 16deg;
  --floral-scale: 1.08;
  --floral-trail-rotation: 14deg;
}

#scene-1::before {
  top: 14%;
  right: auto;
  left: 4%;
  width: 106px;
  height: 98px;
  clip-path: polygon(50% 94%, 5% 48%, 5% 29%, 20% 13%, 38% 14%, 50% 30%, 62% 14%, 80% 13%, 95% 29%, 95% 48%);
  background:
    radial-gradient(circle at 34% 31%, var(--floral-petal) 0 23%, transparent 24%),
    radial-gradient(circle at 66% 31%, var(--floral-petal) 0 23%, transparent 24%),
    linear-gradient(135deg, rgba(243, 169, 192, 0.82), rgba(182, 75, 104, 0.44));
  opacity: 0.3;
}

#scene-1::after {
  top: 18%;
  right: auto;
  left: 0;
  width: 132px;
  height: 110px;
  background:
    radial-gradient(circle at 18% 23%, var(--floral-center) 0 4px, transparent 5px),
    radial-gradient(circle at 79% 68%, var(--floral-petal) 0 7px, transparent 8px),
    linear-gradient(72deg, transparent 48%, rgba(142, 54, 80, 0.24) 49% 50%, transparent 51%);
}

#scene-2 {
  --floral-petal: rgba(233, 155, 173, 0.68);
  --floral-center: rgba(165, 76, 100, 0.68);
  --floral-rotation: -24deg;
  --floral-scale: 0.9;
  --floral-trail-rotation: -22deg;
}

#scene-2::before {
  top: auto;
  right: auto;
  bottom: 12%;
  left: 4%;
  width: 134px;
  height: 134px;
  opacity: 0.34;
}

#scene-2::after {
  top: 10%;
  right: 4%;
  width: 142px;
  height: 112px;
  background:
    linear-gradient(72deg, transparent 48%, rgba(142, 54, 80, 0.24) 49% 50%, transparent 51%) 24px 10px / 66px 94px no-repeat,
    radial-gradient(ellipse at 18% 30%, var(--floral-petal) 0 13%, transparent 14%),
    radial-gradient(ellipse at 80% 24%, var(--floral-petal) 0 12%, transparent 13%),
    radial-gradient(ellipse at 48% 88%, var(--floral-petal) 0 13%, transparent 14%);
}

#scene-3 {
  --floral-petal: rgba(219, 159, 180, 0.62);
  --floral-center: rgba(142, 54, 80, 0.62);
  --floral-rotation: 9deg;
  --floral-scale: 0.78;
  --floral-trail-rotation: 30deg;
}

#scene-3::before {
  top: 14%;
  right: auto;
  left: 2%;
  width: 104px;
  height: 104px;
  clip-path: polygon(50% 0, 62% 36%, 100% 36%, 69% 58%, 80% 100%, 50% 73%, 20% 100%, 31% 58%, 0 36%, 38% 36%);
  background: linear-gradient(135deg, rgba(219, 159, 180, 0.72), rgba(142, 54, 80, 0.32));
  opacity: 0.28;
}

#scene-3::after {
  top: 20%;
  right: auto;
  left: 0;
  width: 152px;
  height: 118px;
  background:
    radial-gradient(circle at 21% 24%, var(--floral-center) 0 3px, transparent 4px),
    radial-gradient(circle at 77% 31%, var(--floral-petal) 0 4px, transparent 5px),
    radial-gradient(circle at 58% 83%, var(--floral-petal) 0 3px, transparent 4px),
    linear-gradient(116deg, transparent 49%, rgba(142, 54, 80, 0.18) 50% 51%, transparent 52%);
}

#scene-4 {
  --floral-petal: rgba(239, 156, 171, 0.72);
  --floral-center: rgba(182, 75, 104, 0.72);
  --floral-rotation: 28deg;
  --floral-scale: 0.92;
  --floral-trail-rotation: 12deg;
}

#scene-4::before {
  top: 11%;
  right: 3%;
  width: 126px;
  height: 126px;
  border: 1px solid rgba(182, 75, 104, 0.24);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--floral-center) 0 6%, transparent 7%),
    repeating-radial-gradient(circle at 50% 50%, transparent 0 9px, rgba(239, 156, 171, 0.62) 10px 12px, transparent 13px 20px);
  opacity: 0.27;
  filter: none;
}

#scene-4::after {
  top: 18%;
  right: 0;
  width: 150px;
  height: 112px;
  background:
    radial-gradient(circle at 22% 65%, transparent 0 15px, var(--floral-petal) 16px 18px, transparent 19px 28px),
    radial-gradient(circle at 74% 34%, transparent 0 12px, var(--floral-petal) 13px 15px, transparent 16px 25px),
    linear-gradient(72deg, transparent 48%, rgba(142, 54, 80, 0.2) 49% 50%, transparent 51%);
}

#scene-5 {
  --floral-petal: rgba(244, 178, 191, 0.72);
  --floral-center: rgba(174, 87, 111, 0.7);
  --floral-rotation: -14deg;
  --floral-scale: 0.86;
  --floral-trail-rotation: -28deg;
}

#scene-5::before {
  top: 14%;
  right: auto;
  left: 3%;
  width: 106px;
  height: 128px;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 48%, rgba(142, 54, 80, 0.28) 49% 51%, transparent 52%),
    radial-gradient(ellipse at 28% 40%, var(--floral-petal) 0 21%, transparent 22%),
    radial-gradient(ellipse at 72% 60%, var(--floral-petal) 0 21%, transparent 22%);
  opacity: 0.3;
}

#scene-5::after {
  top: 13%;
  right: 4%;
  width: 132px;
  height: 108px;
  background:
    linear-gradient(90deg, transparent 48%, rgba(142, 54, 80, 0.2) 49% 50%, transparent 51%) 44px 10px / 2px 92px no-repeat,
    radial-gradient(ellipse at 24% 30%, var(--floral-petal) 0 12%, transparent 13%),
    radial-gradient(ellipse at 73% 73%, var(--floral-petal) 0 12%, transparent 13%);
}

#scene-6 {
  --floral-petal: rgba(208, 151, 173, 0.66);
  --floral-center: rgba(126, 68, 88, 0.66);
  --floral-rotation: 18deg;
  --floral-scale: 0.82;
  --floral-trail-rotation: 25deg;
}

#scene-6::before {
  top: 12%;
  right: 3%;
  width: 92px;
  height: 132px;
  border: 1px solid rgba(126, 68, 88, 0.24);
  border-radius: 54% 46% 56% 44%;
  background:
    linear-gradient(78deg, transparent 45%, var(--floral-center) 46% 49%, transparent 50%),
    radial-gradient(ellipse at 51% 24%, var(--floral-petal) 0 17%, transparent 18%),
    radial-gradient(ellipse at 48% 76%, rgba(208, 151, 173, 0.38) 0 17%, transparent 18%);
  opacity: 0.3;
  filter: none;
}

#scene-6::after {
  top: 19%;
  right: 0;
  width: 136px;
  height: 116px;
  background:
    linear-gradient(77deg, transparent 46%, rgba(126, 68, 88, 0.2) 47% 49%, transparent 50%) 24px 18px / 64px 82px no-repeat,
    radial-gradient(ellipse at 19% 27%, var(--floral-petal) 0 13%, transparent 14%),
    radial-gradient(ellipse at 79% 80%, var(--floral-petal) 0 11%, transparent 12%);
}

#scene-7 {
  --floral-petal: rgba(225, 148, 171, 0.7);
  --floral-center: rgba(154, 59, 87, 0.68);
  --floral-rotation: -17deg;
  --floral-scale: 0.94;
  --floral-trail-rotation: -18deg;
}

#scene-7::before {
  top: auto;
  right: auto;
  bottom: 12%;
  left: 5%;
  width: 156px;
  height: 94px;
  background:
    radial-gradient(ellipse at 31% 50%, transparent 0 23%, var(--floral-petal) 24% 27%, transparent 28%),
    radial-gradient(ellipse at 69% 50%, transparent 0 23%, var(--floral-petal) 24% 27%, transparent 28%);
  opacity: 0.3;
  filter: none;
}

#scene-7::after {
  top: 12%;
  right: 4%;
  width: 142px;
  height: 116px;
  background:
    linear-gradient(72deg, transparent 48%, rgba(142, 54, 80, 0.24) 49% 50%, transparent 51%) 22px 12px / 88px 96px no-repeat,
    radial-gradient(ellipse at 17% 28%, var(--floral-petal) 0 12%, transparent 13%),
    radial-gradient(ellipse at 82% 70%, var(--floral-petal) 0 12%, transparent 13%);
}

#scene-8 {
  --floral-petal: rgba(241, 185, 200, 0.62);
  --floral-center: rgba(182, 75, 104, 0.62);
  --floral-rotation: 7deg;
  --floral-scale: 0.8;
  --floral-trail-rotation: 32deg;
}

#scene-8::before {
  top: 12%;
  right: auto;
  left: 4%;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--floral-center) 0 8%, transparent 9%),
    repeating-conic-gradient(from -8deg, var(--floral-petal) 0 4deg, transparent 4deg 22deg);
  opacity: 0.3;
  filter: none;
}

#scene-8::after {
  top: 18%;
  right: auto;
  left: 1%;
  width: 144px;
  height: 112px;
  background:
    linear-gradient(100deg, transparent 47%, rgba(142, 54, 80, 0.2) 48% 49%, transparent 50%) 32px 0 / 64px 112px no-repeat,
    radial-gradient(ellipse at 20% 28%, var(--floral-petal) 0 10%, transparent 11%),
    radial-gradient(ellipse at 79% 32%, var(--floral-petal) 0 10%, transparent 11%);
}

#scene-9 {
  --floral-petal: rgba(234, 144, 174, 0.74);
  --floral-center: rgba(142, 54, 80, 0.72);
  --floral-rotation: 20deg;
  --floral-scale: 0.94;
  --floral-trail-rotation: 15deg;
}

#scene-9::before {
  top: auto;
  right: 3%;
  bottom: 11%;
  width: 90px;
  height: 120px;
  border: 1px solid rgba(142, 54, 80, 0.26);
  border-radius: 52% 52% 54% 0;
  background:
    radial-gradient(circle at 49% 37%, var(--floral-petal) 0 16%, transparent 17%),
    linear-gradient(135deg, rgba(234, 144, 174, 0.2), rgba(142, 54, 80, 0.28));
  opacity: 0.32;
  filter: none;
}

#scene-9::after {
  top: 13%;
  right: 0;
  width: 140px;
  height: 112px;
  background:
    linear-gradient(90deg, transparent 46%, rgba(142, 54, 80, 0.2) 47% 49%, transparent 50%) 29px 18px / 68px 82px no-repeat,
    radial-gradient(ellipse at 18% 25%, var(--floral-petal) 0 10%, transparent 11%),
    radial-gradient(ellipse at 81% 75%, var(--floral-petal) 0 12%, transparent 13%);
}

#scene-10 {
  --floral-petal: rgba(242, 173, 194, 0.72);
  --floral-center: rgba(182, 75, 104, 0.72);
  --floral-rotation: -8deg;
  --floral-scale: 0.9;
  --floral-trail-rotation: -14deg;
}

#scene-10::before {
  top: 12%;
  right: auto;
  left: 4%;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--floral-center) 0 7%, transparent 8%),
    repeating-conic-gradient(from 8deg, var(--floral-petal) 0 5deg, transparent 5deg 23deg);
  opacity: 0.28;
  filter: none;
}

#scene-10::after {
  top: auto;
  right: 3%;
  bottom: 12%;
  width: 142px;
  height: 104px;
  background:
    radial-gradient(ellipse at 25% 53%, transparent 0 14px, var(--floral-petal) 15px 18px, transparent 19px 28px),
    radial-gradient(ellipse at 72% 35%, transparent 0 11px, var(--floral-petal) 12px 15px, transparent 16px 25px),
    linear-gradient(72deg, transparent 48%, rgba(142, 54, 80, 0.2) 49% 50%, transparent 51%);
}

.beauty-copy {
  max-width: 520px;
}

.beauty-quote {
  max-width: 420px;
  margin: 30px 0 0;
  padding-left: 20px;
  border-left: 2px solid var(--accent-pale);
}

.beauty-quote p {
  margin-bottom: 10px;
  color: var(--ink) !important;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.3vw, 1.8rem) !important;
  line-height: 1.18;
}

.beauty-quote cite {
  color: var(--accent-deep);
  font-size: 14px;
  font-style: normal;
}

.beauty-photo {
  transform: rotate(1.5deg);
}

#scene-11 {
  --floral-petal: rgba(242, 158, 186, 0.78);
  --floral-center: rgba(182, 75, 104, 0.8);
  --floral-rotation: -10deg;
  --floral-scale: 1.04;
  --floral-trail-rotation: -16deg;
}

#scene-11::before {
  top: 9%;
  right: 6%;
  width: 148px;
  height: 94px;
  background:
    radial-gradient(ellipse at 29% 50%, transparent 0 24%, var(--floral-petal) 25% 29%, transparent 30%),
    radial-gradient(ellipse at 71% 50%, transparent 0 24%, var(--floral-petal) 25% 29%, transparent 30%),
    radial-gradient(circle at 50% 50%, var(--floral-center) 0 9%, transparent 10%);
  opacity: 0.32;
  filter: none;
}

#scene-11::after {
  top: 17%;
  right: 2%;
  width: 126px;
  height: 120px;
  background:
    linear-gradient(90deg, transparent 47%, rgba(142, 54, 80, 0.24) 48% 50%, transparent 51%) 54px 10px / 18px 106px no-repeat,
    radial-gradient(ellipse at 26% 82%, var(--floral-petal) 0 12%, transparent 13%),
    radial-gradient(ellipse at 74% 82%, var(--floral-petal) 0 12%, transparent 13%);
}

@keyframes floral-float {
  0%,
  100% {
    transform: rotate(var(--floral-rotation, 0deg)) translate3d(0, 0, 0) scale(var(--floral-scale, 1));
  }
  50% {
    transform: rotate(calc(var(--floral-rotation, 0deg) + 4deg)) translate3d(0, -5px, 0) scale(var(--floral-scale, 1.015));
  }
}

@keyframes petal-drift {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 2px -4px;
  }
}

.scene.is-active {
  visibility: visible;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0s;
  pointer-events: auto;
}

.scene__inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 64px));
  min-height: 100dvh;
  margin: 0 auto;
  padding: 112px 0 110px;
}

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

h1,
h2 {
  max-width: 720px;
  margin-bottom: 24px;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.9rem, 7.2vw, 6.9rem);
}

h2 {
  font-size: clamp(3.1rem, 5.8vw, 5.8rem);
}

h1 em,
h2 em {
  display: inline-block;
  padding-bottom: 0.1em;
  font-weight: 400;
  line-height: 1.08;
}

p {
  max-width: 60ch;
}

.lede {
  max-width: 410px;
  color: var(--ink-soft);
  font-size: clamp(1.06rem, 1.5vw, 1.2rem);
  line-height: 1.55;
}

.scene p {
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.45vw, 1.17rem);
}

.scene h1,
.scene h2,
.scene p,
.scene blockquote,
.scene cite {
  -webkit-user-select: text;
  user-select: text;
}

.photo-slot {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(245, 226, 229, 0.74)),
    var(--paper-warm);
  box-shadow: var(--shadow);
}

.photo-slot::before {
  position: absolute;
  inset: 12px;
  z-index: 0;
  border: 1px solid rgba(142, 54, 80, 0.15);
  border-radius: 12px;
  content: "";
  pointer-events: none;
}

.photo-slot img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transition: opacity 320ms ease;
}

.photo-slot.has-image img {
  opacity: 1;
}

.photo-slot__empty {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  gap: 4px;
  padding: 24px;
  color: var(--accent-deep);
  text-align: center;
  font-family: var(--serif);
  font-size: 21px;
}

.photo-slot__empty small {
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 14px;
}

.photo-slot__glyph {
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 30px;
  line-height: 1;
}

.scene__inner--hero {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: clamp(48px, 9vw, 132px);
}

.hero-copy {
  padding-left: clamp(0px, 3vw, 42px);
}

.hero-copy h1 {
  max-width: 650px;
}

.hero-photo {
  width: min(100%, 390px);
  aspect-ratio: 4 / 5;
  justify-self: end;
  transform: rotate(2deg);
}

.hero-photo img {
  object-position: 54% 50%;
}

.scene__inner--name {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: clamp(50px, 10vw, 154px);
}

.scene-heading h2 {
  max-width: 640px;
}

.story-copy {
  position: relative;
  min-height: 235px;
  padding: 18px 0 0 44px;
  border-left: 1px solid var(--line);
}

.story-copy p {
  max-width: 420px;
}

.name-word {
  margin-bottom: 20px;
  color: var(--accent-deep) !important;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 5rem) !important;
  line-height: 1 !important;
}

.scene--pleasures,
.scene--home,
.scene--scent,
.scene--taste,
.scene--portrait-story,
.scene--together-story,
.scene--faith,
.scene--future,
.scene--birthday {
  background: linear-gradient(135deg, rgba(248, 233, 233, 0.48), rgba(255, 249, 246, 0.08));
}

.scene__inner--pleasures {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.pleasures-copy {
  max-width: 460px;
}

.scene__inner--pleasures h2 {
  font-size: clamp(2.8rem, 5.2vw, 5.2rem);
}

.pleasures-board {
  display: grid;
  grid-template-columns: minmax(210px, 0.82fr) minmax(250px, 1fr);
  align-items: stretch;
  gap: 18px;
}

.pleasures-board--single {
  display: block;
  width: min(100%, 360px);
}

.pleasures-board--single .pleasure-photo {
  min-height: 360px;
}

.pleasure-photo {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
}

.pleasure-photo::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 44%, rgba(45, 24, 32, 0.76));
}

.pleasure-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(0.96);
}

.pleasure-photo span {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  z-index: 1;
  color: var(--white);
  font-family: var(--serif);
  font-size: 23px;
}

.pleasure-photo span::before {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin: 0 9px 2px 0;
  border-radius: 50% 50% 50% 0;
  background: var(--accent-pale);
  content: "";
  transform: rotate(-45deg);
}

/* The caption mark echoes the object on the page without adding another label. */
.scene--cinnamon .pleasure-photo span::before {
  border: 1px solid var(--accent-pale);
  border-radius: 50%;
  background: transparent;
  transform: none;
}

.scene--tea .pleasure-photo span::before {
  border-radius: 50% 0 50% 50%;
  transform: rotate(-45deg);
}

.scene--coffee .pleasure-photo span::before {
  width: 7px;
  height: 12px;
  border: 1px solid var(--accent-pale);
  border-radius: 50%;
  background: transparent;
  transform: rotate(28deg);
}

.scene--perfume .pleasure-photo span::before {
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.pleasure-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: center;
}

.pleasure-list span {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 11px 14px;
  border: 1px solid rgba(142, 54, 80, 0.16);
  border-radius: 11px;
  background: rgba(255, 253, 251, 0.63);
  color: var(--accent-deep);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.12;
  animation: settle 7s ease-in-out infinite;
}

.pleasure-list span:nth-child(2n) {
  animation-delay: -2.4s;
}

.pleasure-list span:nth-child(3n) {
  animation-delay: -4.8s;
}

@keyframes settle {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.scene__inner--feature {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: clamp(48px, 10vw, 150px);
}

.scene__inner--feature-reverse {
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 0.76fr);
}

.feature-copy {
  max-width: 520px;
}

.feature-photo {
  width: min(100%, 500px);
  aspect-ratio: 4 / 5;
  justify-self: end;
  transform: rotate(1.5deg);
}

.scene__inner--feature-reverse .feature-photo {
  justify-self: start;
  transform: rotate(-1.5deg);
}

.taste-photo {
  width: min(100%, 390px);
  min-height: 360px;
  aspect-ratio: 4 / 5;
  justify-self: start;
}

.taste-photo img {
  object-position: center center;
}

.taste-photo .photo-credit {
  position: absolute;
  right: 16px;
  bottom: 10px;
  z-index: 1;
  max-width: 62%;
  color: rgba(255, 253, 251, 0.78);
  font-family: var(--sans);
  font-size: 10px;
  line-height: 1.2;
  text-align: right;
}

.tea-photo {
  width: min(100%, 280px);
  min-height: 0;
  aspect-ratio: 335 / 597;
}

.scene__inner--feature .taste-photo {
  transform: rotate(-1.5deg);
}

.scene__inner--faith {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(48px, 9vw, 136px);
}

.scene__inner--faith-reverse {
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 0.7fr);
}

.faith-copy {
  max-width: 500px;
}

.verse-card {
  position: relative;
  max-width: 590px;
  margin: 0;
  padding: clamp(34px, 5vw, 62px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 251, 0.74);
  box-shadow: var(--shadow);
}

.verse-card::before {
  position: absolute;
  top: 4px;
  left: 24px;
  color: var(--accent-pale);
  content: "“";
  font-family: var(--serif);
  font-size: 110px;
  line-height: 1;
}

.verse-card p {
  position: relative;
  max-width: 500px;
  margin-bottom: 26px;
  color: var(--ink) !important;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.7vw, 2.35rem) !important;
  line-height: 1.15;
}

.verse-card cite {
  color: var(--accent-deep);
  font-size: 15px;
  font-style: normal;
  letter-spacing: 0.04em;
}

.verse-card--light {
  background: rgba(255, 249, 246, 0.54);
}

.scene__inner--portrait {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(48px, 10vw, 150px);
}

.portrait-photo {
  width: min(100%, 360px);
  aspect-ratio: 3 / 4;
  justify-self: end;
  transform: rotate(-1.5deg);
}

.portrait-copy,
.together-copy {
  max-width: 590px;
}

.scene__inner--together {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 1fr);
  align-items: center;
  gap: clamp(48px, 10vw, 150px);
}

.together-photo {
  width: min(100%, 390px);
  aspect-ratio: 3 / 4;
  justify-self: end;
  transform: rotate(1deg);
}

.gift-copy {
  max-width: 520px;
}

.gift-copy p:last-child {
  color: var(--accent-deep);
}

.gift-verse {
  max-width: 430px;
  margin: 30px 0 0;
  padding-left: 20px;
  border-left: 2px solid var(--accent-pale);
}

.gift-verse-lede {
  margin: 22px 0 0;
  color: var(--ink-soft) !important;
  font-size: 15px !important;
}

.gift-verse p {
  margin-bottom: 10px;
  color: var(--ink) !important;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem) !important;
  line-height: 1.16;
}

.gift-verse cite {
  color: var(--accent-deep);
  font-size: 14px;
  font-style: normal;
}

.scene__inner--gift {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(330px, 0.8fr);
  align-items: center;
  gap: clamp(48px, 9vw, 126px);
}

.gift-stage {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(100%, 420px);
}

.gift-stage__intro {
  margin: 0;
  color: var(--accent-deep) !important;
  font-family: var(--serif);
  font-size: 1.25rem !important;
}

.gift-stage__intro::before {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin: 0 9px 1px 0;
  border: 1px solid var(--accent-pale);
  border-radius: 50% 50% 50% 0;
  content: "";
  transform: rotate(-45deg);
}

.gift-stage__prompt {
  max-width: 290px;
  margin: 0;
  color: var(--ink-soft) !important;
  font-size: 15px !important;
  text-align: center;
}

.gift-stage__copy {
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-soft);
  color: var(--accent-deep);
  font-size: 14px;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.gift-stage__copy:hover {
  border-color: var(--accent-pale);
  background: var(--paper);
  transform: translateY(-1px);
}

.gift-stage__copy:active {
  transform: translateY(1px);
}

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

.gift-stage__copy-status:empty {
  display: none;
}

.gift-stage__message {
  max-width: 420px;
  margin: -2px 0 0;
  color: var(--ink-soft) !important;
  font-size: 14px !important;
  line-height: 1.45;
  text-align: center;
}

@media (min-width: 821px) {
  .scene__inner--gift .gift-stage {
    transform: translateY(-24px);
  }
}

.gift-card {
  position: relative;
  display: block;
  width: min(100%, 390px);
  height: 364px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.gift-card::after {
  position: absolute;
  right: 12%;
  bottom: 22px;
  left: 12%;
  height: 24px;
  border-radius: 50%;
  background: rgba(117, 48, 70, 0.16);
  content: "";
  filter: blur(12px);
}

.gift-card__lid,
.gift-card__body,
.gift-card__inside {
  position: absolute;
  right: 0;
  left: 0;
  border: 1px solid rgba(112, 38, 62, 0.3);
  border-radius: 14px;
  box-shadow: 0 18px 35px rgba(117, 48, 70, 0.18);
}

.gift-card__lid {
  top: 38px;
  left: 3%;
  z-index: 3;
  height: 78px;
  background: linear-gradient(135deg, #cb5b78, #a83e5d);
  transform: rotate(-1.5deg);
  transition: transform 560ms cubic-bezier(0.16, 1, 0.3, 1), opacity 300ms ease;
}

.gift-card__lid::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 46%;
  width: 12%;
  background: rgba(255, 227, 231, 0.58);
  content: "";
}

.gift-card__bow,
.gift-card__bow::before,
.gift-card__bow::after {
  position: absolute;
}

.gift-card__bow {
  top: -29px;
  left: 50%;
  width: 24px;
  height: 34px;
  border-radius: 12px;
  background: #f3bac8;
  transform: translateX(-50%);
}

.gift-card__bow::before,
.gift-card__bow::after {
  top: -7px;
  width: 48px;
  height: 34px;
  border: 8px solid #f3bac8;
  content: "";
}

.gift-card__bow::before {
  right: 8px;
  border-right-color: transparent;
  border-radius: 50% 44% 50% 48%;
  transform: rotate(-22deg);
}

.gift-card__bow::after {
  left: 8px;
  border-left-color: transparent;
  border-radius: 44% 50% 48% 50%;
  transform: rotate(22deg);
}

.gift-card__body {
  top: 98px;
  left: 9%;
  z-index: 2;
  height: 242px;
  overflow: hidden;
  background: linear-gradient(135deg, #b64b68, #8e3650);
  transition: opacity 420ms ease;
}

.gift-card__band {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 44%;
  width: 14%;
  background: rgba(255, 227, 231, 0.48);
}

.gift-card__band::after {
  position: absolute;
  top: 45%;
  right: -620%;
  left: -620%;
  height: 18%;
  background: rgba(255, 227, 231, 0.48);
  content: "";
}

.gift-card__front {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 11px;
  padding: 28px;
  color: var(--white);
  text-align: center;
  transition: opacity 280ms ease;
}

.gift-card__front strong {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4.4vw, 3.8rem);
  font-weight: 400;
  line-height: 1;
}

.gift-card__front small {
  max-width: 190px;
  font-size: 15px;
  line-height: 1.35;
}

.gift-card__inside {
  top: 106px;
  right: 9%;
  left: 9%;
  z-index: 4;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 11px;
  height: 226px;
  padding: 28px 20px;
  background: var(--paper-soft);
  color: var(--ink);
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  pointer-events: none;
  transition: opacity 360ms ease, transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.gift-card__inside small,
.gift-card__hint {
  color: var(--ink-soft);
  font-size: 14px;
}

.gift-card__inside strong {
  color: var(--accent-deep);
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 3.3rem);
  font-weight: 400;
  line-height: 1;
  text-align: center;
}

.gift-card code {
  user-select: all;
  white-space: nowrap;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--accent-deep);
  font-family: var(--sans);
  font-size: 17px;
  letter-spacing: 0.1em;
}

.gift-card.is-open .gift-card__lid {
  opacity: 0.48;
  transform: translateY(-68px) rotate(-7deg);
}

.gift-card.is-open .gift-card__body {
  opacity: 0.16;
}

.gift-card.is-open .gift-card__front {
  opacity: 0;
}

.gift-card.is-open .gift-card__inside {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.story-controls {
  position: fixed;
  right: clamp(20px, 4vw, 64px);
  bottom: 22px;
  z-index: 6;
  display: flex;
  gap: 10px;
  align-items: center;
}

.control-button {
  min-width: 112px;
  padding: 11px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 251, 0.86);
  color: var(--accent-deep);
  font-size: 14px;
  transition: transform 220ms ease, background 220ms ease, color 220ms ease, border-color 220ms ease;
}

.control-button:hover {
  transform: translateY(-2px);
  background: var(--paper-soft);
}

.control-button:active {
  transform: translateY(1px) scale(0.98);
}

.control-button--primary {
  border-color: var(--accent-deep);
  background: var(--accent-deep);
  color: var(--white);
}

.control-button--primary:hover {
  border-color: var(--accent-deep);
  background: var(--accent-deep);
  color: var(--white);
}

.control-button--restart {
  min-width: auto;
  border-color: transparent;
  background: transparent;
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: rgba(117, 95, 103, 0.45);
  text-underline-offset: 4px;
}

.control-button--restart:hover {
  border-color: var(--line);
  background: rgba(255, 253, 251, 0.7);
  color: var(--accent-deep);
}

.no-script {
  position: fixed;
  inset: auto 20px 20px;
  z-index: 8;
  display: none;
  padding: 16px;
  border-radius: 12px;
  background: var(--accent-deep);
  color: var(--white);
  text-align: center;
}

body:not(.js-ready) .no-script {
  display: block;
}

@media (max-width: 820px) {
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .site-header {
    min-height: 62px;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(142, 54, 80, 0.1);
    background: rgba(255, 249, 246, 0.78);
    backdrop-filter: blur(10px);
  }

  .site-mark {
    font-size: 17px;
  }

  .scene {
    align-items: start;
    padding-bottom: 84px;
  }

  .scene::before {
    width: 88px;
    height: 88px;
    opacity: 0.24;
  }

  .scene::after {
    width: 112px;
    height: 94px;
    opacity: 0.16;
  }

  .scene__inner,
  .scene__inner--hero,
  .scene__inner--name,
  .scene__inner--pleasures,
  .scene__inner--feature,
  .scene__inner--feature-reverse,
  .scene__inner--faith,
  .scene__inner--faith-reverse,
  .scene__inner--portrait,
  .scene__inner--together,
  .scene__inner--gift {
    display: flex;
    width: min(100% - 32px, 560px);
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    padding: 92px 0 110px;
  }

  .hero-copy {
    padding-left: 0;
  }

  h1 {
    font-size: clamp(3.45rem, 16vw, 5.6rem);
  }

  h2 {
    font-size: clamp(2.9rem, 13vw, 4.8rem);
  }

  .scene p,
  .lede {
    font-size: 1.03rem;
  }

  .hero-photo,
  .feature-photo,
  .taste-photo,
  .portrait-photo,
  .together-photo {
    width: min(100%, 430px);
    align-self: center;
  }

  .hero-photo {
    width: min(100%, 340px);
  }

  .portrait-photo,
  .together-photo {
    width: min(100%, 360px);
  }

  .story-copy {
    min-height: auto;
    padding: 24px 0 0 24px;
  }

  .pleasures-board {
    width: 100%;
    grid-template-columns: minmax(145px, 0.8fr) minmax(0, 1fr);
  }

  .pleasures-board--single {
    display: block;
    align-self: center;
  }

  .pleasure-photo {
    min-height: 360px;
  }

  .pleasure-list {
    gap: 8px;
  }

  .pleasure-list span {
    min-height: 50px;
    padding: 9px 11px;
    font-size: 14px;
  }

  .verse-card {
    padding: 38px 25px 30px;
  }

  .verse-card p {
    font-size: 1.55rem !important;
  }

  .gift-card {
    height: 344px;
  }

  #scene-1::before,
  #scene-4::before,
  #scene-6::before,
  #scene-11::before {
    top: 7%;
    right: -5%;
  }

  #scene-1::before {
    left: auto;
  }

  #scene-2::before,
  #scene-5::before,
  #scene-7::before,
  #scene-9::before {
    right: auto;
    bottom: 8%;
    left: -5%;
  }

  #scene-5::before {
    top: 8%;
    bottom: auto;
  }

  #scene-3::before,
  #scene-8::before {
    top: 8%;
    right: auto;
    left: -5%;
  }

  #scene-1::after,
  #scene-4::after,
  #scene-6::after,
  #scene-11::after {
    top: 13%;
    right: -10%;
  }

  #scene-1::after {
    left: auto;
  }

  #scene-2::after,
  #scene-5::after,
  #scene-7::after,
  #scene-9::after {
    top: 10%;
    right: -9%;
  }

  #scene-3::after,
  #scene-8::after {
    top: 13%;
    right: auto;
    left: -10%;
  }

  .story-controls {
    right: 16px;
    bottom: 15px;
    left: 16px;
    justify-content: space-between;
  }

  .control-button {
    min-width: calc(50% - 5px);
    padding: 11px 12px;
  }

  .control-button--restart {
    min-width: auto;
  }
}

@media (max-width: 500px) {
  .scene__inner,
  .scene__inner--hero,
  .scene__inner--name,
  .scene__inner--pleasures,
  .scene__inner--feature,
  .scene__inner--feature-reverse,
  .scene__inner--faith,
  .scene__inner--faith-reverse,
  .scene__inner--portrait,
  .scene__inner--together,
  .scene__inner--gift {
    gap: 24px;
  }

  .pleasures-board {
    grid-template-columns: 1fr;
  }

  .pleasure-photo {
    min-height: 180px;
    aspect-ratio: 16 / 9;
  }

  .taste-photo {
    min-height: 290px;
    aspect-ratio: 4 / 5;
  }

  .tea-photo {
    width: min(100%, 280px);
    min-height: 0;
    aspect-ratio: 335 / 597;
  }

  .pleasures-board--single .pleasure-photo {
    min-height: 280px;
    aspect-ratio: 4 / 5;
  }

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

  .pleasure-list span {
    min-height: 42px;
    padding: 7px 9px;
    font-size: 12px;
  }

  .gift-card {
    height: 278px;
  }

  .gift-card__lid {
    top: 22px;
    height: 58px;
  }

  .gift-card__body {
    top: 66px;
    height: 185px;
  }

  .gift-card__inside {
    top: 75px;
    height: 174px;
    padding: 20px 14px;
  }

  .gift-card__inside strong {
    font-size: 1.95rem;
  }

  .gift-card__front strong {
    font-size: 2.3rem;
  }

  .gift-stage__prompt {
    transform: translateY(-16px);
  }
}

@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;
  }
}
