:root {
  --cream: #fffaf6;
  --paper: #fffdf9;
  --rose-50: #fff1f3;
  --rose-100: #fbe2e6;
  --rose-200: #f3c6cf;
  --rose-400: #dc879a;
  --rose-500: #c9637d;
  --rose-700: #8e3f59;
  --wine: #512c3b;
  --ink: #3f2c34;
  --muted: #806c74;
  --line: rgba(102, 57, 73, 0.14);
  --shadow: 0 24px 70px rgba(102, 57, 73, 0.13);
  --serif: "Th Sarabun New", "Leelawadee UI", "Tahoma", sans-serif;
  --sans: "Leelawadee UI", "Tahoma", "Noto Sans Thai", sans-serif;
  --script: "Segoe Print", "Bradley Hand", cursive;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--rose-400) var(--rose-50);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
  overflow-wrap: anywhere;
}

body.is-locked {
  height: 100vh;
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

::selection {
  color: var(--wine);
  background: var(--rose-200);
}

:focus-visible {
  outline: 3px solid rgba(201, 99, 125, 0.45);
  outline-offset: 4px;
}

.section-shell {
  position: relative;
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.ambient {
  position: fixed;
  z-index: -3;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.55;
  animation: float-orb 14s ease-in-out infinite alternate;
}

.ambient__orb--one {
  top: 4%;
  left: -12%;
  width: 38vw;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(244, 198, 210, 0.55), transparent 68%);
}

.ambient__orb--two {
  top: 40%;
  right: -15%;
  width: 44vw;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(222, 207, 238, 0.45), transparent 70%);
  animation-delay: -5s;
}

.ambient__orb--three {
  bottom: -18%;
  left: 24%;
  width: 34vw;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(248, 221, 201, 0.5), transparent 68%);
  animation-delay: -9s;
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.032;
  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='.9'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  z-index: 80;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 153, 174, 0.12), transparent 68%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.reading-progress {
  position: fixed;
  z-index: 102;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.35);
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--rose-400), var(--rose-700));
  box-shadow: 0 0 12px rgba(201, 99, 125, 0.35);
}

.opening {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 32px 24px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(68, 33, 46, 0.91), rgba(111, 53, 74, 0.86)),
    url("assets/photos/portrait-mono.jpg") center 34% / cover;
  transition: opacity 0.85s ease, visibility 0.85s ease;
}

.opening::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 16, 22, 0.2), rgba(31, 16, 22, 0.68));
}

.opening.is-opened {
  visibility: hidden;
  opacity: 0;
}

.opening__glow {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.opening__glow--one {
  width: min(70vw, 700px);
  aspect-ratio: 1;
  animation: spin 28s linear infinite;
}

.opening__glow--two {
  width: min(82vw, 820px);
  aspect-ratio: 1;
  border-style: dashed;
  opacity: 0.35;
  animation: spin 36s linear infinite reverse;
}

.opening__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  flex-direction: column;
  width: min(100%, 660px);
  text-align: center;
  animation: opening-in 1.1s cubic-bezier(0.2, 0.75, 0.3, 1) both;
}

.opening__photo {
  position: relative;
  width: 82px;
  margin-bottom: 20px;
}

.opening__photo img {
  width: 82px;
  height: 82px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 16px 40px rgba(20, 5, 12, 0.3);
  transform: rotate(-4deg);
}

.opening__heart {
  position: absolute;
  right: -15px;
  bottom: -7px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--rose-700);
  background: #fff;
  border-radius: 50%;
  font-size: 16px;
  animation: pulse 2s ease-in-out infinite;
}

.opening__eyebrow {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--script);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.opening h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(46px, 7vw, 84px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.opening__note {
  margin: 22px 0 28px;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.8;
}

.opening__button {
  background: #fff !important;
  color: var(--wine) !important;
  box-shadow: 0 16px 50px rgba(30, 8, 17, 0.25);
}

.opening__hint {
  position: absolute;
  z-index: 2;
  bottom: 24px;
  left: 50%;
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  letter-spacing: 0.12em;
  transform: translateX(-50%);
  white-space: nowrap;
}

.petal {
  position: absolute;
  top: -10%;
  width: 10px;
  height: 15px;
  background: linear-gradient(145deg, #fff5f4, #e9a4b5);
  border-radius: 80% 20% 70% 30%;
  opacity: 0.55;
  animation: petal-fall var(--duration) linear infinite;
  animation-delay: var(--delay);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid transparent;
  transition: padding 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  padding-top: 11px;
  padding-bottom: 11px;
  background: rgba(255, 250, 246, 0.84);
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(81, 44, 59, 0.06);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  color: #fff;
  background: var(--wine);
  border-radius: 50% 50% 48% 52% / 55% 47% 53% 45%;
  font-size: 15px;
  box-shadow: 0 7px 20px rgba(81, 44, 59, 0.14);
}

.brand__text {
  color: var(--muted);
  font-family: var(--script);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.site-nav {
  display: flex;
  gap: 34px;
  color: var(--muted);
  font-size: 13px;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: var(--rose-500);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.heart-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.heart-button:hover {
  background: var(--rose-50);
  transform: translateY(-2px) rotate(-5deg);
}

.heart-button svg {
  width: 17px;
  fill: none;
  stroke: var(--rose-500);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.hero {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 70px;
  min-height: 100svh;
  padding-top: 130px;
  padding-bottom: 100px;
}

.hero__copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 16px;
  color: var(--rose-700);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.11em;
}

.eyebrow span {
  display: block;
  width: 30px;
  height: 1px;
  background: var(--rose-400);
}

.hero h2,
.section-heading h2,
.promises__intro h2,
.last-word h2 {
  margin: 0;
  color: var(--wine);
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 78px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero__comma {
  color: var(--rose-400);
}

.mobile-break {
  display: none;
}

.hero h2:focus {
  outline: none;
}

.hero__lead {
  max-width: 590px;
  margin: 28px 0 30px;
  color: var(--muted);
  font-size: 17px;
  line-height: 2;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--rose-500), var(--rose-700));
  box-shadow: 0 12px 26px rgba(166, 72, 99, 0.2);
}

.button--primary:hover {
  box-shadow: 0 17px 34px rgba(166, 72, 99, 0.27);
}

.button--soft {
  color: var(--rose-700);
  background: var(--rose-50);
  border-color: var(--rose-200);
}

.button--ghost {
  color: var(--wine);
  background: transparent;
  border-color: rgba(81, 44, 59, 0.25);
}

.text-link {
  padding-block: 8px;
  border-bottom: 1px solid rgba(81, 44, 59, 0.24);
  color: var(--wine);
  font-size: 14px;
  font-weight: 600;
}

.text-link span {
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.25s ease;
}

.text-link:hover span {
  transform: translate(3px, -3px);
}

.hero__small-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 46px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.hero__small-note p {
  margin: 0;
}

.hero__small-note strong {
  color: var(--wine);
  font-weight: 600;
}

.hero__line {
  display: block;
  width: 2px;
  height: 35px;
  background: var(--rose-200);
}

.hero__visual {
  position: relative;
  min-height: 610px;
}

.photo-card {
  position: absolute;
  padding: 10px 10px 42px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(81, 44, 59, 0.17);
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.84) contrast(0.98);
}

.photo-card span {
  position: absolute;
  right: 13px;
  bottom: 9px;
  left: 13px;
  color: var(--muted);
  font-family: var(--script);
  font-size: 12px;
  text-align: center;
}

.photo-card--main {
  z-index: 2;
  top: 24px;
  left: 50%;
  width: min(360px, 64%);
  height: 480px;
  transform: translateX(-50%) rotate(3deg) perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}

.photo-card--main img {
  object-position: center;
}

.photo-card--left {
  z-index: 1;
  top: 150px;
  left: 0;
  width: 210px;
  height: 270px;
  padding-bottom: 10px;
  transform: rotate(-8deg) perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}

.photo-card--right {
  z-index: 3;
  right: -3px;
  bottom: 68px;
  width: 150px;
  height: 150px;
  padding: 7px;
  border-radius: 22px;
  transform: rotate(8deg) perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}

.photo-card--right img {
  border-radius: 16px;
}

.hero__doodle {
  position: absolute;
  z-index: 4;
  fill: none;
  stroke: var(--rose-400);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.hero__doodle--heart {
  right: 2%;
  top: 48px;
  width: 54px;
  transform: rotate(13deg);
  animation: float 4s ease-in-out infinite;
}

.hero__doodle--spark {
  bottom: 108px;
  left: 25%;
  width: 32px;
  stroke-width: 1.4;
  animation: pulse 3s ease-in-out infinite;
}

.hero__scribble {
  position: absolute;
  z-index: 4;
  right: 5%;
  bottom: 8px;
  margin: 0;
  color: var(--rose-700);
  font-family: var(--script);
  font-size: 15px;
  line-height: 1.4;
  transform: rotate(-5deg);
}

.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  transform: translateX(-50%);
}

.scroll-cue i {
  position: relative;
  display: block;
  width: 1px;
  height: 36px;
  overflow: hidden;
  background: var(--line);
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 1px;
  height: 100%;
  background: var(--rose-500);
  animation: scroll-line 2s ease-in-out infinite;
}

.before-reading {
  padding-top: 125px;
  padding-bottom: 150px;
}

.section-heading {
  min-width: 0;
  margin-bottom: 48px;
}

.section-heading h2,
.promises__intro h2,
.last-word h2 {
  font-size: clamp(40px, 5vw, 64px);
}

.section-heading > p:last-child {
  max-width: 640px;
  margin: 16px 0 0;
  color: var(--muted);
}

.section-heading--center {
  max-width: 700px;
  margin-right: auto;
  margin-bottom: 55px;
  margin-left: auto;
  text-align: center;
}

.section-heading--center .eyebrow {
  justify-content: center;
}

.section-heading--center > p:last-child {
  margin-right: auto;
  margin-left: auto;
}

.intent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.intent-card {
  position: relative;
  min-height: 270px;
  padding: 34px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(142, 63, 89, 0.12);
  border-radius: 26px;
  box-shadow: 0 18px 45px rgba(81, 44, 59, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.intent-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-7px);
}

.intent-card::after {
  content: "";
  position: absolute;
  right: -45px;
  bottom: -45px;
  width: 125px;
  height: 125px;
  border: 1px solid var(--rose-100);
  border-radius: 50%;
}

.intent-card__number {
  position: absolute;
  top: 30px;
  right: 30px;
  color: rgba(81, 44, 59, 0.25);
  font-family: var(--script);
  font-size: 12px;
}

.intent-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 32px;
  color: var(--rose-500);
  background: var(--rose-50);
  border-radius: 50%;
  font-size: 24px;
}

.intent-card h3 {
  margin: 0 0 11px;
  color: var(--wine);
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
}

.intent-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.quote-break {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 580px;
  overflow: hidden;
  color: #fff;
  text-align: center;
}

.quote-break img,
.quote-break__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.quote-break img {
  object-fit: cover;
  object-position: center 36%;
}

.quote-break__overlay {
  background: linear-gradient(180deg, rgba(49, 25, 34, 0.45), rgba(49, 25, 34, 0.76));
}

.quote-break blockquote {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0;
  padding: 80px 24px;
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.5;
  text-wrap: balance;
}

.quote-break__caption {
  position: absolute;
  z-index: 2;
  bottom: 38px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.letter-section {
  padding-top: 145px;
  padding-bottom: 150px;
}

.letter-layout {
  display: grid;
  align-items: start;
  grid-template-columns: 275px minmax(0, 1fr);
  gap: 24px;
  min-width: 0;
}

.chapter-panel {
  position: sticky;
  top: 90px;
  min-width: 0;
  max-width: 100%;
  padding: 25px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  border-radius: 24px;
  backdrop-filter: blur(12px);
}

.chapter-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.chapter-panel__top p,
.chapter-panel__top span {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.chapter-panel__top p {
  color: var(--wine);
  font-weight: 700;
}

.chapter-panel__top span {
  color: var(--muted);
  font-family: var(--script);
}

.chapter-nav {
  display: grid;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
}

.chapter-nav button {
  display: grid;
  grid-template-columns: 27px 1fr;
  gap: 9px;
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 12px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease;
}

.chapter-nav button span {
  color: rgba(81, 44, 59, 0.38);
  font-family: var(--script);
  font-size: 10px;
}

.chapter-nav button:hover,
.chapter-nav button.is-active {
  color: var(--wine);
  background: var(--rose-50);
}

.chapter-nav button.is-active {
  font-weight: 600;
}

.chapter-nav button.is-active span {
  color: var(--rose-500);
}

.chapter-panel__quote {
  margin-top: 22px;
  padding: 18px;
  color: var(--muted);
  background: linear-gradient(135deg, rgba(251, 226, 230, 0.7), rgba(255, 248, 244, 0.9));
  border-radius: 16px;
}

.chapter-panel__quote span {
  display: block;
  height: 26px;
  color: var(--rose-400);
  font-family: Georgia, serif;
  font-size: 36px;
  line-height: 1;
}

.chapter-panel__quote p {
  margin: 0;
  font-size: 11px;
  line-height: 1.75;
}

.letter-paper {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 850px;
  padding: clamp(32px, 6vw, 72px);
  overflow: hidden;
  background:
    linear-gradient(rgba(142, 63, 89, 0.055) 1px, transparent 1px) 0 0 / 100% 36px,
    var(--paper);
  border: 1px solid rgba(142, 63, 89, 0.14);
  border-radius: 4px 28px 28px 4px;
  box-shadow: 0 35px 90px rgba(81, 44, 59, 0.12);
}

.letter-paper::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 34px;
  width: 1px;
  background: rgba(220, 135, 154, 0.25);
}

.letter-paper__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 48px;
}

.letter-paper__label {
  color: var(--rose-700);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.letter-paper__time {
  color: var(--muted);
  font-size: 11px;
}

.letter-paper__heading {
  margin-bottom: 38px;
}

.letter-paper__heading p {
  margin: 0 0 8px;
  color: var(--rose-500);
  font-family: var(--script);
  font-size: 12px;
}

.letter-paper__heading h3 {
  margin: 0;
  color: var(--wine);
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.letter-paper__body {
  min-width: 0;
  color: #49373e;
  font-family: var(--serif);
  font-size: clamp(18px, 1.65vw, 21px);
  line-height: 2.05;
}

.letter-paper__body.is-changing {
  animation: paper-change 0.45s ease both;
}

.letter-paper__body p {
  max-width: 100%;
  margin: 0 0 1.35em;
  overflow-wrap: anywhere;
}

.letter-paper__footer {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  margin-top: 45px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.letter-control {
  width: max-content;
  padding: 8px 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  cursor: pointer;
  transition: color 0.25s ease, transform 0.25s ease;
}

.letter-control:hover:not(:disabled) {
  color: var(--rose-700);
  transform: translateX(-3px);
}

.letter-control--next {
  justify-self: end;
}

.letter-control--next:hover:not(:disabled) {
  transform: translateX(3px);
}

.letter-control:disabled {
  cursor: not-allowed;
  opacity: 0.3;
}

.chapter-dots {
  display: flex;
  gap: 5px;
}

.chapter-dots i {
  display: block;
  width: 5px;
  height: 5px;
  background: var(--rose-200);
  border-radius: 999px;
  transition: width 0.25s ease, background 0.25s ease;
}

.chapter-dots i.is-active {
  width: 18px;
  background: var(--rose-500);
}

.letter-paper__signature {
  margin-top: 34px;
  color: var(--rose-700);
  font-family: var(--script);
  font-size: 11px;
  text-align: right;
  transform: rotate(-1deg);
}

.continuous-wrap {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-top: 42px;
}

.continuous-wrap .button svg {
  transition: transform 0.3s ease;
}

.continuous-wrap .button[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.continuous-letter {
  width: min(100%, 900px);
  margin-top: 32px;
  padding: clamp(28px, 6vw, 70px);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.continuous-letter[hidden] {
  display: none;
}

.continuous-chapter + .continuous-chapter {
  margin-top: 70px;
  padding-top: 65px;
  border-top: 1px solid var(--line);
}

.continuous-chapter span {
  color: var(--rose-500);
  font-family: var(--script);
  font-size: 11px;
}

.continuous-chapter h3 {
  margin: 5px 0 28px;
  color: var(--wine);
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
}

.continuous-chapter p {
  margin: 0 0 1.3em;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 2.05;
}

.promises {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 100px;
  padding-top: 130px;
  padding-bottom: 140px;
  border-top: 1px solid var(--line);
}

.promises__intro {
  position: sticky;
  top: 120px;
  align-self: start;
}

.promises__intro > p:not(.eyebrow):not(.flower-message) {
  max-width: 460px;
  margin: 26px 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 2;
}

.flower-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--rose-200);
  color: var(--rose-700);
  background: transparent;
  font-size: 12px;
  cursor: pointer;
}

.flower-button b {
  font-size: 20px;
  font-weight: 400;
  transition: transform 0.35s ease;
}

.flower-button:hover b {
  transform: rotate(25deg) scale(1.15);
}

.flower-message {
  min-height: 24px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.promise-list {
  display: grid;
}

.promise-item {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 20px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.promise-item:first-child {
  border-top: 1px solid var(--line);
}

.promise-item > span {
  color: var(--rose-400);
  font-family: var(--script);
  font-size: 11px;
}

.promise-item h3 {
  margin: 0 0 7px;
  color: var(--wine);
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
}

.promise-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.memories {
  padding-top: 130px;
  padding-bottom: 150px;
}

.memory-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-auto-rows: 210px;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.memory {
  position: relative;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: var(--rose-100);
  cursor: zoom-in;
}

.memory--wide {
  grid-column: span 2;
}

.memory--tall {
  grid-row: span 2;
}

.memory img,
.rotated-photo {
  width: 100%;
  height: 100%;
}

.memory img {
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.75, 0.3, 1), filter 0.7s ease;
}

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

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

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

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

.memory:nth-child(7) img {
  object-position: center 25%;
}

.memory:hover img {
  filter: saturate(0.9);
  transform: scale(1.055);
}

.memory > span:last-child {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 50px 17px 13px;
  color: rgba(255, 255, 255, 0.8);
  background: linear-gradient(transparent, rgba(45, 23, 31, 0.72));
  font-family: var(--script);
  font-size: 10px;
  text-align: left;
}

.memory > span i {
  font-family: var(--sans);
  font-size: 11px;
  font-style: normal;
}

.rotated-photo {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #171218;
}

.memory--rotate .rotated-photo img {
  width: auto;
  max-width: none;
  height: auto;
  object-fit: contain;
  transform: rotate(90deg);
}

.memory--rotate:nth-child(8) .rotated-photo img {
  width: 210px;
}

.memory--rotate:nth-child(9) .rotated-photo img {
  width: 380px;
}

.memory--rotate:hover .rotated-photo img {
  transform: rotate(90deg) scale(1.04);
}

.last-word {
  display: grid;
  align-items: center;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 100px;
  min-height: 850px;
  padding-top: 130px;
  padding-bottom: 145px;
}

.last-word::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -14vw;
  width: 40vw;
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--rose-100), transparent 70%);
  transform: translateY(-50%);
}

.last-word__photos {
  position: relative;
  min-height: 600px;
}

.last-word__photos figure {
  position: absolute;
  margin: 0;
  padding: 10px 10px 44px;
  background: #fff;
  box-shadow: var(--shadow);
}

.last-word__photos figure:first-child {
  top: 20px;
  left: 0;
  width: 78%;
  transform: rotate(-5deg);
}

.last-word__photos figure:last-of-type {
  right: 0;
  bottom: 15px;
  width: 44%;
  transform: rotate(7deg);
}

.last-word__photos figure:first-child img {
  width: 100%;
  aspect-ratio: 1.1 / 1;
  object-fit: cover;
}

.last-word__photos figure:last-of-type img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.last-word__thread {
  position: absolute;
  z-index: 3;
  right: 6%;
  top: 6%;
  width: 70px;
  height: 62px;
  border: 2px solid var(--rose-400);
  border-radius: 55% 45% 50% 50%;
  transform: rotate(18deg);
  opacity: 0.8;
}

.last-word__copy > p:not(.eyebrow) {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 2;
}

.response-box {
  margin-top: 38px;
  padding: 27px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(81, 44, 59, 0.07);
}

.response-box > p {
  margin: 0 0 18px !important;
  color: var(--wine) !important;
  font-size: 13px !important;
}

.response-box__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.response-box__message {
  display: none;
  margin-top: 18px;
  padding: 15px 17px;
  color: var(--rose-700);
  background: var(--rose-50);
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.75;
}

.response-box__message.is-visible {
  display: block;
  animation: message-in 0.45s ease both;
}

.site-footer {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  padding: 30px max(24px, calc((100vw - var(--max)) / 2));
  color: rgba(255, 255, 255, 0.55);
  background: var(--wine);
  font-size: 10px;
}

.site-footer p {
  margin: 0;
  font-family: var(--script);
  letter-spacing: 0.08em;
}

.site-footer span {
  text-align: center;
}

.site-footer button {
  justify-self: end;
  padding: 5px 0;
  border: 0;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  font-size: 10px;
  cursor: pointer;
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 30px 85px;
  border: 0;
  color: #fff;
  background: rgba(36, 20, 27, 0.94);
  opacity: 0;
  transition: opacity 0.3s ease, display 0.3s allow-discrete, overlay 0.3s allow-discrete;
}

.lightbox[open] {
  display: grid;
  place-items: center;
  opacity: 1;
}

@starting-style {
  .lightbox[open] {
    opacity: 0;
  }
}

.lightbox::backdrop {
  background: rgba(36, 20, 27, 0.72);
  backdrop-filter: blur(8px);
}

.lightbox figure {
  display: grid;
  place-items: center;
  max-width: min(100%, 1100px);
  max-height: calc(100vh - 80px);
  margin: 0;
}

.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 115px);
  border-radius: 8px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.38);
  object-fit: contain;
}

.lightbox img.is-rotated {
  width: min(68vh, 70vw);
  max-height: none;
  transform: rotate(90deg);
}

.lightbox figcaption {
  margin-top: 11px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  text-align: center;
}

.lightbox__close,
.lightbox__nav {
  position: fixed;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
}

.lightbox__close {
  top: 22px;
  right: 22px;
  font-size: 25px;
  font-weight: 300;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__nav--prev {
  left: 22px;
}

.lightbox__nav--next {
  right: 22px;
}

.toast {
  position: fixed;
  z-index: 200;
  right: 22px;
  bottom: 22px;
  padding: 12px 18px;
  color: #fff;
  background: var(--wine);
  border-radius: 999px;
  box-shadow: 0 15px 40px rgba(81, 44, 59, 0.28);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.burst-heart,
.burst-flower {
  position: fixed;
  z-index: 300;
  left: var(--x);
  top: var(--y);
  color: var(--rose-500);
  font-size: var(--size);
  pointer-events: none;
  animation: burst 1.4s cubic-bezier(0.1, 0.7, 0.2, 1) forwards;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.75, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.preview-mode .reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.preview-mode .letter-paper__body {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

.preview-letter .hero,
.preview-letter .before-reading,
.preview-letter .quote-break {
  display: none;
}

.preview-letter .letter-section {
  padding-top: 125px;
}

@keyframes opening-in {
  from { opacity: 0; transform: translateY(26px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes float-orb {
  to { transform: translate(7vw, 4vh) scale(1.12); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes float {
  50% { transform: translateY(-9px) rotate(8deg); }
}

@keyframes pulse {
  50% { transform: scale(1.12); }
}

@keyframes petal-fall {
  0% { transform: translate3d(0, -10vh, 0) rotate(0); }
  100% { transform: translate3d(var(--drift), 115vh, 0) rotate(600deg); }
}

@keyframes scroll-line {
  0% { top: -100%; }
  55%, 100% { top: 100%; }
}

@keyframes paper-change {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes message-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes burst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3) rotate(0); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.2) rotate(var(--rotate)); }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 45px;
    padding-top: 140px;
  }

  .hero__copy {
    max-width: 720px;
  }

  .hero__visual {
    width: min(100%, 640px);
    margin-inline: auto;
  }

  .scroll-cue {
    display: none;
  }

  .letter-layout {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .chapter-panel {
    position: static;
    padding: 18px;
  }

  .chapter-nav {
    display: flex;
    gap: 7px;
    padding-bottom: 5px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .chapter-nav button {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    width: auto;
    white-space: nowrap;
  }

  .chapter-panel__quote {
    display: none;
  }

  .promises,
  .last-word {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .promises__intro {
    position: static;
  }

  .last-word__photos {
    width: min(100%, 560px);
    margin-inline: auto;
  }

  .last-word__copy {
    max-width: 720px;
  }

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

@media (max-width: 700px) {
  .section-shell {
    width: min(calc(100% - 32px), var(--max));
  }

  .site-header {
    padding-right: 16px;
    padding-left: 16px;
  }

  .brand__text,
  .site-nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 125px;
    padding-bottom: 80px;
  }

  .hero h2 {
    font-size: clamp(45px, 13vw, 64px);
  }

  .mobile-break {
    display: inline;
  }

  .hero__lead {
    margin-top: 21px;
    font-size: 15px;
    line-height: 1.9;
  }

  .hero__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .hero__visual {
    min-height: 480px;
  }

  .photo-card--main {
    left: 52%;
    width: 66%;
    height: 390px;
  }

  .photo-card--left {
    top: 120px;
    width: 38%;
    height: 215px;
  }

  .photo-card--right {
    right: 1%;
    bottom: 40px;
    width: 115px;
    height: 115px;
  }

  .hero__doodle--heart {
    right: 0;
    top: 18px;
  }

  .hero__scribble {
    display: none;
  }

  .before-reading,
  .letter-section,
  .promises,
  .memories,
  .last-word {
    padding-top: 90px;
    padding-bottom: 95px;
  }

  .intent-grid {
    grid-template-columns: 1fr;
  }

  .intent-card {
    min-height: auto;
  }

  .quote-break {
    min-height: 500px;
  }

  .quote-break blockquote {
    font-size: 34px;
  }

  .letter-paper {
    min-height: 0;
    padding: 32px 24px 34px;
    border-radius: 4px 20px 20px 4px;
  }

  .letter-paper::before {
    left: 13px;
  }

  .letter-paper__top {
    margin-bottom: 35px;
  }

  .letter-paper__heading {
    margin-bottom: 28px;
  }

  .letter-paper__body {
    font-size: 18px;
    line-height: 2;
  }

  .hero__lead,
  .section-heading > p:last-child,
  .letter-paper__body p,
  .continuous-chapter p,
  .intent-card p,
  .promise-item p,
  .last-word__copy > p {
    line-break: anywhere;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .letter-paper__footer {
    grid-template-columns: 1fr 1fr;
  }

  .chapter-dots {
    display: none;
  }

  .continuous-letter {
    padding: 32px 22px;
  }

  .continuous-chapter h3 {
    font-size: 29px;
  }

  .continuous-chapter p {
    font-size: 17px;
  }

  .memory-grid {
    grid-auto-rows: 160px;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .memory--wide {
    grid-column: span 2;
  }

  .memory--rotate:nth-child(8) .rotated-photo img {
    width: 160px;
  }

  .memory--rotate:nth-child(9) .rotated-photo img {
    width: 305px;
  }

  .last-word {
    min-height: auto;
  }

  .last-word__photos {
    min-height: 460px;
  }

  .response-box__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer button {
    justify-self: center;
  }

  .lightbox {
    padding: 70px 15px 75px;
  }

  .lightbox img {
    max-height: calc(100vh - 160px);
  }

  .lightbox__nav {
    top: auto;
    bottom: 16px;
    transform: none;
  }

  .lightbox__nav--prev {
    left: calc(50% - 54px);
  }

  .lightbox__nav--next {
    right: calc(50% - 54px);
  }

  .toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .opening h1 {
    font-size: 43px;
  }

  .hero__visual {
    min-height: 435px;
  }

  .photo-card--main {
    height: 350px;
  }

  .photo-card--left {
    height: 185px;
  }

  .memory-grid {
    grid-auto-rows: 145px;
  }

  .letter-paper__time {
    display: none;
  }
}

@media (hover: none), (pointer: coarse) {
  .cursor-glow {
    display: none;
  }
}

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

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

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