:root {
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Baskerville, Georgia, serif;
  --sans: "Avenir Next", Avenir, Montserrat, "Segoe UI", Helvetica, Arial, sans-serif;
  --script: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --travel-duration: 760ms;
  --scene-padding-x: clamp(1.5rem, 7vw, 7rem);
  --scene-padding-y: clamp(5rem, 10vh, 8rem);
  --ink: #3a2346;
  --ink-soft: rgba(58, 35, 70, 0.75);
  --line: rgba(58, 35, 70, 0.25);
  --control-bg: rgba(255, 247, 240, 0.32);
  --control-line: rgba(76, 43, 77, 0.24);
  --shadow: rgba(255, 244, 234, 0.75);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  background: #c88784;
}

body {
  width: 100%;
  height: 100%;
  min-height: 100svh;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background: #c88784;
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: color 900ms ease, background-color 900ms ease;
}

body[data-theme="night"] {
  --ink: #f7f1ff;
  --ink-soft: rgba(242, 235, 255, 0.8);
  --line: rgba(224, 255, 237, 0.34);
  --control-bg: rgba(10, 17, 44, 0.32);
  --control-line: rgba(222, 255, 236, 0.3);
  --shadow: rgba(3, 7, 25, 0.72);
  color-scheme: dark;
  background: #101638;
}

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

button {
  color: inherit;
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  color: #281333;
  background: #fff8f2;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

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

.sky,
.sky-scene,
.sky-image,
.atmosphere,
.film-grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sky {
  z-index: -4;
  overflow: hidden;
  background: #c88784;
}

.sky-scene {
  overflow: hidden;
  opacity: 0;
  transition: opacity 1400ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity;
}

body[data-theme="day"] .sky-scene-day,
body[data-theme="night"] .sky-scene-night {
  opacity: 1;
}

.sky-image {
  inset: -6%;
  width: 112%;
  height: 112%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  user-select: none;
  pointer-events: none;
  will-change: transform;
}

.sky-image-far {
  transform: scale(1.04);
  animation: sky-breathe 24s ease-in-out infinite alternate;
}

.sky-image-near {
  opacity: 0.26;
  filter: blur(10px) saturate(1.08);
  clip-path: inset(53% 0 0 0);
  transform: scale(1.22) translate3d(-1%, 4%, 0);
  animation: near-cloud-drift 30s ease-in-out infinite alternate;
}

.sun-glow,
.moon-glow {
  position: absolute;
  display: block;
  border-radius: 50%;
  pointer-events: none;
}

.sun-glow {
  top: 6%;
  right: 8%;
  width: min(35vw, 34rem);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 235, 187, 0.7), rgba(255, 197, 137, 0.12) 48%, transparent 72%);
  filter: blur(12px);
  mix-blend-mode: screen;
  animation: glow-pulse 9s ease-in-out infinite alternate;
}

.moon-glow {
  top: 3%;
  right: 10%;
  width: min(28vw, 26rem);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(223, 238, 255, 0.32), rgba(156, 184, 231, 0.06) 48%, transparent 72%);
  filter: blur(18px);
  mix-blend-mode: screen;
}

.aurora {
  position: absolute;
  top: -16%;
  width: 72vw;
  height: 66vh;
  border-radius: 50%;
  opacity: 0.24;
  filter: blur(46px);
  mix-blend-mode: screen;
  transform-origin: center top;
  pointer-events: none;
}

.aurora-one {
  left: -12%;
  background: conic-gradient(from 120deg, transparent 0 25%, rgba(95, 255, 178, 0.8) 34%, rgba(116, 218, 192, 0.18) 43%, transparent 57%);
  animation: aurora-drift 16s ease-in-out infinite alternate;
}

.aurora-two {
  right: -24%;
  background: conic-gradient(from 205deg, transparent 0 28%, rgba(131, 255, 188, 0.55) 37%, rgba(103, 195, 187, 0.1) 48%, transparent 59%);
  animation: aurora-drift 21s ease-in-out -4s infinite alternate-reverse;
}

.atmosphere {
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 36%, rgba(91, 39, 72, 0.05)),
    radial-gradient(circle at 50% 40%, transparent 0 24%, rgba(86, 40, 70, 0.06) 88%);
  transition: background 900ms ease;
}

body[data-theme="night"] .atmosphere {
  background:
    linear-gradient(180deg, rgba(8, 11, 37, 0.05), transparent 38%, rgba(2, 6, 24, 0.28)),
    radial-gradient(circle at 50% 40%, transparent 0 27%, rgba(1, 4, 20, 0.16) 90%);
}

.film-grain {
  z-index: 3;
  opacity: 0.13;
  pointer-events: none;
  mix-blend-mode: soft-light;
  background-image:
    repeating-radial-gradient(circle at 20% 30%, transparent 0 1px, rgba(255, 255, 255, 0.26) 1px 2px, transparent 2px 4px),
    repeating-linear-gradient(87deg, rgba(42, 22, 53, 0.08) 0 1px, transparent 1px 5px);
  background-size: 9px 11px, 13px 17px;
}

.letter-stage,
.scene {
  width: 100%;
  height: 100%;
  min-height: 100svh;
}

.letter-stage {
  position: relative;
  isolation: isolate;
}

.scene {
  position: absolute;
  inset: 0;
  display: grid;
  visibility: hidden;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 0, 0) scale(0.985);
}

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

.scene.is-entering {
  animation: scene-arrive var(--travel-duration) cubic-bezier(0.16, 1, 0.3, 1) both;
}

.scene.is-exiting {
  visibility: visible;
  opacity: 1;
  animation: scene-leave var(--travel-duration) cubic-bezier(0.7, 0, 0.84, 0) both;
}

body.is-moving-back .scene.is-entering {
  animation-name: scene-arrive-back;
}

body.is-moving-back .scene.is-exiting {
  animation-name: scene-leave-back;
}

.scene-inner {
  align-self: center;
  width: 100%;
  max-width: 104rem;
  margin: 0 auto;
  padding: var(--scene-padding-y) var(--scene-padding-x) clamp(7.5rem, 14vh, 10rem);
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: clamp(0.67rem, 0.72vw, 0.82rem);
  font-weight: 650;
  letter-spacing: 0.24em;
  line-height: 1.4;
  text-transform: uppercase;
  text-shadow: 0 1px 14px var(--shadow);
}

h1,
h2,
p {
  text-wrap: balance;
}

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.93;
  text-shadow: 0 2px 28px var(--shadow);
}

.beat {
  opacity: 0;
  filter: blur(8px);
  transform: translate3d(0, 1.6rem, 0);
  transition:
    opacity 820ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 920ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 920ms cubic-bezier(0.22, 1, 0.36, 1);
}

.beat.is-revealed {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0);
}

.opening-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(17rem, 0.88fr);
  grid-template-rows: auto auto auto;
  align-items: end;
  column-gap: clamp(2rem, 7vw, 8rem);
}

.opening-layout > .eyebrow {
  grid-column: 1 / -1;
}

.opening-title {
  grid-column: 1;
  grid-row: 2 / span 2;
  align-self: center;
  color: #fff6ed;
  font-size: clamp(5rem, 12.5vw, 12.5rem);
  line-height: 0.72;
  text-shadow: 0 2px 2px rgba(66, 30, 60, 0.3), 0 4px 34px rgba(66, 30, 60, 0.62);
}

.opening-title span {
  display: block;
  padding-left: 0.15em;
  color: transparent;
  background: linear-gradient(95deg, #fff6ed 0%, #bd8094 48%, #5a2b64 100%);
  background-clip: text;
  -webkit-background-clip: text;
  font-style: normal;
}

body[data-theme="night"] .opening-title span {
  background-image: linear-gradient(95deg, #f8f2ff 0%, #d7ffdf 48%, #8edbb0 100%);
}

body[data-theme="night"] .opening-title {
  color: #f8f2ff;
  text-shadow: 0 2px 2px rgba(0, 5, 26, 0.4), 0 4px 36px rgba(0, 5, 26, 0.9);
}

.opening-wish {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  max-width: 36rem;
  padding-bottom: 1.6rem;
}

.opening-wish > p:first-child {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.4vw, 2.75rem);
  line-height: 1.08;
  text-shadow: 0 2px 20px var(--shadow);
}

.opening-note {
  grid-column: 2;
  grid-row: 3;
  max-width: 38rem;
  margin: 1.5rem 0 0;
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  font-weight: 470;
  line-height: 1.62;
  text-shadow: 0 1px 18px var(--shadow);
}

.wish-button,
.lilac-heart,
.read-again {
  border: 1px solid var(--control-line);
  color: inherit;
  background: var(--control-bg);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  cursor: pointer;
}

.wish-button {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.5rem;
  padding: 0.72rem 1.05rem 0.72rem 0.8rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 220ms ease, background 220ms ease, opacity 220ms ease;
}

.wish-star {
  display: grid;
  width: 1.85rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  color: #fff6d6;
  background: rgba(126, 68, 123, 0.58);
  box-shadow: 0 0 22px rgba(255, 227, 184, 0.8);
  font-size: 0.82rem;
}

body[data-theme="night"] .wish-star {
  color: #d9ffe4;
  background: rgba(42, 112, 96, 0.58);
  box-shadow: 0 0 24px rgba(103, 255, 176, 0.58);
}

.wish-button.is-sent {
  opacity: 0.76;
}

.wish-button.is-sent .wish-star {
  animation: wish-star-sent 850ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.wish-response {
  min-height: 1.2em;
  margin: 0.6rem 0 0;
  font-family: var(--script);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.spark {
  position: fixed;
  z-index: 20;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #fff6dc;
  box-shadow: 0 0 14px rgba(255, 237, 188, 0.95);
  pointer-events: none;
  animation: spark-fly 1050ms cubic-bezier(0.12, 0.78, 0.24, 1) forwards;
}

body[data-theme="night"] .spark {
  background: #c8ffdc;
  box-shadow: 0 0 15px rgba(102, 255, 169, 0.9);
}

.appreciation-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 0.72fr) minmax(30rem, 1.28fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 8rem);
}

.section-heading h2 {
  font-size: clamp(3.8rem, 6.6vw, 7.4rem);
}

.appreciation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2.8rem);
}

.appreciation-note {
  position: relative;
  min-height: 10.5rem;
  padding: 0.2rem 0 0 1.3rem;
  border-left: 1px solid var(--line);
}

.appreciation-note p {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.16rem, 1.42vw, 1.55rem);
  line-height: 1.38;
  text-shadow: 0 1px 18px var(--shadow);
}

.note-number {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.19em;
}

.note-four {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.note-four p {
  font-size: clamp(1.6rem, 2.3vw, 2.65rem);
  font-style: normal;
  line-height: 1.05;
}

.lilac-heart {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.05rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  transition: transform 220ms ease, box-shadow 300ms ease;
}

.lilac-heart > span:first-child {
  color: #a36ab6;
  font-size: 1rem;
  text-shadow: 0 0 12px rgba(176, 108, 204, 0.76);
}

.lilac-heart.is-loved {
  transform: scale(1.04) rotate(-1deg);
  box-shadow: 0 0 32px rgba(172, 105, 197, 0.22);
}

.lilac-heart.is-loved > span:first-child {
  animation: heart-pop 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.obviously {
  display: inline-block;
  margin-left: 0.5rem;
  color: #774586;
  font-family: var(--script);
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(0.45rem) rotate(-4deg);
  transition: opacity 500ms ease, transform 650ms cubic-bezier(0.16, 1, 0.3, 1);
}

body[data-theme="night"] .obviously {
  color: #b5f2cc;
}

.obviously.is-visible {
  opacity: 1;
  transform: translateY(0) rotate(-4deg);
}

.direction-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(20rem, 0.9fr) minmax(28rem, 1.1fr);
  align-items: start;
  gap: clamp(3rem, 9vw, 11rem);
}

.direction-layout > .eyebrow {
  grid-column: 1 / -1;
}

.direction-layout h2 {
  font-size: clamp(4rem, 7.8vw, 8.6rem);
}

.direction-copy {
  align-self: end;
  padding-top: clamp(1rem, 5vh, 5rem);
}

.direction-copy p {
  margin: 0 0 1.5rem;
  font-family: var(--display);
  font-size: clamp(1.2rem, 1.65vw, 1.75rem);
  line-height: 1.48;
  text-shadow: 0 1px 20px var(--shadow);
}

.direction-copy p:last-child {
  margin-bottom: 0;
}

.direction-line {
  position: absolute;
  right: 0;
  bottom: -2.2rem;
  width: min(45vw, 38rem);
  height: 1px;
  overflow: hidden;
  background: var(--line);
}

.direction-line::after {
  position: absolute;
  inset: 0;
  content: "";
  background: currentColor;
  transform: translateX(-100%);
  animation: line-draw 6s ease-in-out infinite;
}

.heart-layout {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
}

.heart-layout .eyebrow {
  margin-bottom: 2rem;
}

.heart-statement {
  position: relative;
  z-index: 2;
  max-width: 78rem;
  color: transparent;
  background: linear-gradient(100deg, #4f2359 2%, #8e456e 48%, #c06a75 98%);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: clamp(4.2rem, 8.5vw, 10rem);
  font-style: normal;
  line-height: 0.89;
  filter: blur(8px) drop-shadow(0 2px 22px rgba(255, 240, 226, 0.72));
}

.heart-statement.is-revealed {
  filter: blur(0) drop-shadow(0 2px 22px rgba(255, 240, 226, 0.72));
}

body[data-theme="night"] .heart-statement {
  background-image: linear-gradient(100deg, #faf4ff 2%, #d8fce5 48%, #8de5b2 98%);
  filter: blur(8px) drop-shadow(0 3px 28px rgba(0, 5, 24, 0.92));
}

body[data-theme="night"] .heart-statement.is-revealed {
  filter: blur(0) drop-shadow(0 3px 28px rgba(0, 5, 24, 0.92));
}

.keep-going {
  z-index: 2;
  margin: clamp(1.5rem, 4vh, 3.2rem) 0 0;
  font-size: clamp(0.78rem, 1vw, 0.98rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow: 0 1px 15px var(--shadow);
}

.plane-note {
  z-index: 2;
  margin: clamp(2rem, 5vh, 4rem) 0 0;
  font-family: var(--script);
  font-size: clamp(0.82rem, 1vw, 1rem);
  transform: translate3d(0, 1.6rem, 0) rotate(-2deg);
}

.plane-note.is-revealed {
  transform: translate3d(0, 0, 0) rotate(-2deg);
}

.heart-orbit {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: min(78vw, 76rem);
  aspect-ratio: 2 / 1;
  transform: translate(-50%, -48%);
  pointer-events: none;
}

.orbit {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  opacity: 0.45;
}

.orbit-one {
  transform: rotate(7deg);
  animation: orbit-turn 28s linear infinite;
}

.orbit-two {
  inset: 10% 8%;
  transform: rotate(-10deg);
  animation: orbit-turn 36s linear infinite reverse;
}

.orbit-star {
  position: absolute;
  color: var(--ink-soft);
  text-shadow: 0 0 18px currentColor;
  animation: star-twinkle 3.4s ease-in-out infinite alternate;
}

.star-one {
  top: 12%;
  left: 9%;
  font-size: 1.2rem;
}

.star-two {
  right: 6%;
  bottom: 18%;
  font-size: 1.7rem;
  animation-delay: -1.4s;
}

.star-three {
  right: 28%;
  top: 2%;
  font-size: 0.8rem;
  animation-delay: -2.3s;
}

.closing-layout {
  display: grid;
  place-items: center;
  text-align: center;
}

.closing-layout h2 {
  max-width: 78rem;
  font-size: clamp(4rem, 8.1vw, 9.4rem);
  font-style: normal;
}

.closing-layout .aside {
  margin: clamp(1.2rem, 3vh, 2.4rem) 0 0;
  color: var(--ink-soft);
  font-size: clamp(0.72rem, 0.8vw, 0.84rem);
  font-weight: 570;
  letter-spacing: 0.08em;
}

.signature {
  margin: clamp(2rem, 5vh, 4.5rem) 0 0;
  font-family: var(--script);
  font-size: clamp(2.1rem, 4vw, 4.3rem);
  line-height: 1;
  transform: rotate(-4deg);
  text-shadow: 0 2px 18px var(--shadow);
}

.signature span {
  display: block;
  margin: 0 0 0.35rem -1.8rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.continue-hint {
  position: absolute;
  right: var(--scene-padding-x);
  bottom: clamp(7rem, 14vh, 9rem);
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: hint-breathe 2.5s ease-in-out infinite alternate;
}

.scene-letter {
  overflow: hidden;
}

.letter-scroll {
  width: 100%;
  height: 100svh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(5rem, 10vh, 8rem) 1rem clamp(9rem, 15vh, 12rem);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.paper-letter {
  position: relative;
  width: min(92vw, 53rem);
  margin: 0 auto;
  padding: clamp(2.2rem, 6vw, 5.6rem) clamp(1.5rem, 7vw, 6.2rem);
  border: 1px solid rgba(83, 48, 72, 0.16);
  border-radius: 0.2rem 3rem 0.2rem 3rem;
  color: #39243f;
  background:
    linear-gradient(135deg, rgba(255, 251, 246, 0.92), rgba(250, 235, 235, 0.86)),
    rgba(255, 248, 241, 0.9);
  box-shadow: 0 2.2rem 7rem rgba(59, 24, 65, 0.24);
  backdrop-filter: blur(26px) saturate(0.9);
  -webkit-backdrop-filter: blur(26px) saturate(0.9);
}

body[data-theme="night"] .paper-letter {
  border-color: rgba(183, 249, 205, 0.2);
  color: #ecf9f1;
  background:
    linear-gradient(135deg, rgba(19, 25, 58, 0.92), rgba(12, 43, 47, 0.85)),
    rgba(13, 20, 48, 0.9);
  box-shadow: 0 2.2rem 8rem rgba(0, 0, 18, 0.6);
}

.paper-header {
  margin-bottom: clamp(2rem, 5vw, 4rem);
  padding-bottom: 1.8rem;
  border-bottom: 1px solid rgba(72, 41, 69, 0.17);
}

body[data-theme="night"] .paper-header {
  border-color: rgba(206, 255, 222, 0.18);
}

.paper-kicker {
  margin: 0 0 1rem;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.paper-header h2 {
  font-size: clamp(4rem, 9vw, 7.2rem);
  font-style: normal;
  text-shadow: none;
}

.paper-body p {
  margin: 0 0 1.35em;
  font-family: var(--display);
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  line-height: 1.72;
  text-wrap: pretty;
}

.paper-body p:first-child::first-letter {
  float: left;
  margin: 0.04em 0.1em 0 0;
  font-size: 3.8em;
  font-style: normal;
  line-height: 0.74;
}

.paper-body .paper-signature {
  margin-top: 2.8rem;
  font-family: var(--script);
  font-size: 1.2rem;
  line-height: 1.5;
  transform: rotate(-2deg);
  transform-origin: left;
}

.paper-signature strong {
  font-size: 2rem;
  font-weight: 500;
}

.letter-additions {
  margin-top: clamp(2rem, 6vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid rgba(72, 41, 69, 0.17);
}

body[data-theme="night"] .letter-additions {
  border-color: rgba(206, 255, 222, 0.18);
}

.letter-additions > p {
  margin: 0 0 1rem;
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.letter-additions ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.letter-additions li {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.55rem 0;
  font-family: var(--display);
  font-size: 1rem;
  opacity: 0;
  transform: translateY(0.8rem);
}

.scene-letter.is-active .letter-additions li {
  animation: list-arrive 650ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.scene-letter.is-active .letter-additions li:nth-child(2) {
  animation-delay: 130ms;
}

.scene-letter.is-active .letter-additions li:nth-child(3) {
  animation-delay: 260ms;
}

.scene-letter.is-active .letter-additions li:nth-child(4) {
  animation-delay: 390ms;
}

.letter-additions li span {
  color: #8c587f;
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.1em;
}

body[data-theme="night"] .letter-additions li span {
  color: #9ee7ba;
}

.read-again {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.4rem;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.read-again span {
  font-size: 1rem;
}

.letter-navigation {
  position: fixed;
  z-index: 30;
  bottom: max(1.65rem, env(safe-area-inset-bottom));
  left: 50%;
  display: flex;
  align-items: center;
  gap: 1rem;
  transform: translateX(-50%);
}

.nav-button {
  display: grid;
  width: 3rem;
  height: 3rem;
  padding: 0;
  place-items: center;
  border: 1px solid var(--control-line);
  border-radius: 50%;
  color: inherit;
  background: var(--control-bg);
  box-shadow: 0 0.7rem 2.3rem rgba(57, 31, 61, 0.1);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  cursor: pointer;
  transition: transform 220ms ease, opacity 220ms ease, background 220ms ease;
}

.nav-button:disabled {
  opacity: 0.26;
  cursor: default;
}

.nav-button svg {
  width: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.progress-wrap {
  display: grid;
  min-width: 7.4rem;
  justify-items: center;
  gap: 0.5rem;
}

.progress-label {
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.17em;
  text-shadow: 0 1px 10px var(--shadow);
}

.progress-dots {
  display: flex;
  gap: 0.4rem;
}

.progress-dot {
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.28;
  transition: width 500ms cubic-bezier(0.16, 1, 0.3, 1), opacity 300ms ease;
}

.progress-dot.is-current {
  width: 1.35rem;
  opacity: 0.92;
}

.keyboard-hint {
  position: fixed;
  z-index: 15;
  right: var(--scene-padding-x);
  bottom: max(2.7rem, calc(env(safe-area-inset-bottom) + 1rem));
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.6rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px var(--shadow);
  transition: opacity 500ms ease, transform 500ms ease;
}

.keyboard-hint span {
  margin: 0 0.35rem;
  font-size: 0.8rem;
}

.keyboard-hint.is-hidden {
  opacity: 0;
  transform: translateY(0.6rem);
}

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

.travel-veil {
  position: fixed;
  z-index: 25;
  inset: -12%;
  visibility: hidden;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.travel-image,
.travel-light {
  position: absolute;
  inset: 0;
}

.travel-image {
  background-image: url("/assets/day-clouds.png");
  background-position: center 68%;
  background-size: cover;
  filter: blur(16px) saturate(1.12);
  transform: scale(1.18);
}

body[data-theme="night"] .travel-image {
  background-image: url("/assets/night-clouds.png");
}

.travel-light {
  background: rgba(255, 239, 226, 0.16);
  mix-blend-mode: screen;
}

body[data-theme="night"] .travel-light {
  background: rgba(113, 211, 161, 0.06);
}

body.is-traveling .travel-veil {
  visibility: visible;
  animation: cloud-travel var(--travel-duration) cubic-bezier(0.65, 0, 0.35, 1) both;
}

body.is-traveling .travel-image {
  animation: cloud-rush var(--travel-duration) cubic-bezier(0.55, 0.05, 0.3, 1) both;
}

body.is-moving-back.is-traveling .travel-image {
  animation-name: cloud-rush-back;
}

body.is-letter-view .keyboard-hint,
body.is-letter-view .top-mark {
  opacity: 0;
  pointer-events: none;
}

@media (hover: hover) {
  .wish-button:hover,
  .lilac-heart:hover,
  .read-again:hover,
  .nav-button:not(:disabled):hover {
    transform: translateY(-2px);
    background: color-mix(in srgb, var(--control-bg), white 13%);
  }

  .nav-button:not(:disabled):active,
  .wish-button:active,
  .lilac-heart:active,
  .read-again:active {
    transform: translateY(0) scale(0.96);
  }
}

@keyframes sky-breathe {
  from { transform: scale(1.04) translate3d(-0.4%, -0.2%, 0); }
  to { transform: scale(1.085) translate3d(0.65%, 0.45%, 0); }
}

@keyframes near-cloud-drift {
  from { transform: scale(1.22) translate3d(-2%, 4%, 0); }
  to { transform: scale(1.29) translate3d(2%, 1%, 0); }
}

@keyframes glow-pulse {
  from { opacity: 0.68; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1.08); }
}

@keyframes aurora-drift {
  from { transform: translate3d(-3%, -2%, 0) skewX(-8deg) rotate(-4deg); opacity: 0.12; }
  to { transform: translate3d(8%, 3%, 0) skewX(7deg) rotate(5deg); opacity: 0.3; }
}

@keyframes scene-arrive {
  from { opacity: 0; filter: blur(12px); transform: translate3d(7%, 0, 0) scale(1.025); }
  to { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes scene-leave {
  from { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0) scale(1); }
  to { opacity: 0; filter: blur(9px); transform: translate3d(-5%, 0, 0) scale(0.98); }
}

@keyframes scene-arrive-back {
  from { opacity: 0; filter: blur(12px); transform: translate3d(-7%, 0, 0) scale(1.025); }
  to { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes scene-leave-back {
  from { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0) scale(1); }
  to { opacity: 0; filter: blur(9px); transform: translate3d(5%, 0, 0) scale(0.98); }
}

@keyframes cloud-travel {
  0% { opacity: 0; }
  34%, 58% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes cloud-rush {
  0% { transform: scale(1.18) translate3d(5%, 0, 0); filter: blur(19px) saturate(1.06); }
  52% { transform: scale(1.55) translate3d(-2%, 0, 0); filter: blur(10px) saturate(1.15); }
  100% { transform: scale(1.92) translate3d(-7%, 0, 0); filter: blur(24px) saturate(1.04); }
}

@keyframes cloud-rush-back {
  0% { transform: scale(1.18) translate3d(-5%, 0, 0); filter: blur(19px) saturate(1.06); }
  52% { transform: scale(1.55) translate3d(2%, 0, 0); filter: blur(10px) saturate(1.15); }
  100% { transform: scale(1.92) translate3d(7%, 0, 0); filter: blur(24px) saturate(1.04); }
}

@keyframes wish-star-sent {
  0% { transform: scale(1) rotate(0); }
  45% { transform: scale(1.35) rotate(65deg); }
  100% { transform: scale(1) rotate(140deg); }
}

@keyframes spark-fly {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.35); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--spark-x), var(--spark-y), 0) scale(1.15); }
}

@keyframes heart-pop {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.55) rotate(-8deg); }
  58% { transform: scale(0.88) rotate(4deg); }
  78% { transform: scale(1.18); }
}

@keyframes line-draw {
  0%, 12% { transform: translateX(-100%); }
  42%, 74% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

@keyframes orbit-turn {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes star-twinkle {
  from { opacity: 0.25; transform: scale(0.75) rotate(-8deg); }
  to { opacity: 0.9; transform: scale(1.18) rotate(8deg); }
}

@keyframes hint-breathe {
  from { opacity: 0.45; transform: translateX(-0.35rem); }
  to { opacity: 0.9; transform: translateX(0.35rem); }
}

@keyframes list-arrive {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  :root {
    --scene-padding-x: clamp(1.25rem, 6vw, 3rem);
    --scene-padding-y: clamp(4.6rem, 9vh, 6rem);
  }

  .scene-inner {
    align-self: stretch;
    max-height: 100svh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 9rem;
    scrollbar-width: none;
  }

  .scene-inner::-webkit-scrollbar {
    display: none;
  }

  .opening-layout,
  .appreciation-layout,
  .direction-layout {
    display: block;
  }

  .opening-title {
    margin-top: clamp(4vh, 6vh, 6rem);
    font-size: clamp(5.2rem, 24vw, 10rem);
  }

  .opening-wish {
    margin-top: clamp(2.5rem, 7vh, 5rem);
    padding: 0;
  }

  .opening-note {
    margin-top: 2.2rem;
  }

  .appreciation-layout .section-heading {
    margin-bottom: 2.5rem;
  }

  .section-heading h2 {
    font-size: clamp(3.4rem, 14vw, 6rem);
  }

  .appreciation-grid {
    gap: 1.6rem;
  }

  .direction-layout h2 {
    font-size: clamp(3.6rem, 15vw, 7rem);
  }

  .direction-copy {
    padding-top: 2.5rem;
  }

  .direction-line {
    display: none;
  }

  .heart-statement {
    font-size: clamp(3.7rem, 14vw, 7rem);
  }

  .heart-orbit {
    width: 105vw;
  }

  .closing-layout h2 {
    font-size: clamp(3.5rem, 14vw, 7rem);
  }

  .continue-hint {
    right: 50%;
    bottom: 7.3rem;
    width: max-content;
    max-width: 70vw;
    transform: translateX(50%);
    text-align: center;
  }

  .keyboard-hint {
    display: none;
  }
}

@media (max-width: 620px) {
  .top-mark {
    top: max(1.2rem, env(safe-area-inset-top));
  }

  .opening-title {
    font-size: clamp(4.6rem, 25vw, 7.8rem);
  }

  .opening-wish > p:first-child {
    max-width: 20rem;
    font-size: 1.55rem;
  }

  .opening-note {
    font-size: 0.98rem;
  }

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

  .appreciation-note {
    min-height: auto;
  }

  .note-four p {
    font-size: 1.7rem;
  }

  .direction-copy p {
    font-size: 1.13rem;
  }

  .heart-layout {
    align-content: center;
  }

  .heart-statement {
    font-size: clamp(3.15rem, 15vw, 5.6rem);
  }

  .plane-note {
    max-width: 75vw;
  }

  .closing-layout h2 {
    font-size: clamp(3rem, 14.5vw, 5.5rem);
  }

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

  .paper-letter {
    width: min(94vw, 53rem);
    border-radius: 0.2rem 2rem 0.2rem 2rem;
  }

  .paper-body p {
    font-size: 1.03rem;
    line-height: 1.67;
  }

  .letter-navigation {
    gap: 0.65rem;
  }

  .progress-wrap {
    min-width: 5.7rem;
  }

  .nav-button {
    width: 2.8rem;
    height: 2.8rem;
  }

  .sky-image {
    inset: -4% -28%;
    width: 156%;
    height: 108%;
  }
}

@media (max-height: 700px) and (min-width: 901px) {
  :root {
    --scene-padding-y: 4.3rem;
  }

  .scene-inner {
    padding-bottom: 6.3rem;
  }

  .opening-title {
    font-size: clamp(4.5rem, 10.5vw, 9rem);
  }

  .appreciation-note {
    min-height: 8rem;
  }

  .heart-statement {
    font-size: clamp(4rem, 7.4vw, 7.6rem);
  }

  .closing-layout h2 {
    font-size: clamp(4rem, 7vw, 7rem);
  }
}

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

  .beat {
    filter: none;
  }

  .sky-image,
  .aurora {
    transform: none !important;
  }
}

/* Revised continuous cloud experience */

:root {
  --display: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --script: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --cloud-core: rgba(255, 249, 244, 0.78);
  --cloud-mid: rgba(238, 206, 222, 0.52);
  --cloud-shadow: rgba(121, 91, 132, 0.3);
  --enter-x: 5vw;
  --enter-y: -7vh;
  --leave-x: -3vw;
  --leave-y: 6vh;
  --travel-x: -7vw;
  --travel-y: -5vh;
  --travel-rotate: 0.7deg;
}

html,
body,
.sky {
  background: linear-gradient(145deg, #8fa9bd 0%, #ebc1c8 44%, #f4b076 100%);
}

body[data-theme="night"] {
  --cloud-core: rgba(194, 222, 235, 0.36);
  --cloud-mid: rgba(85, 139, 161, 0.27);
  --cloud-shadow: rgba(7, 15, 49, 0.48);
  background: linear-gradient(145deg, #0c1435 0%, #183960 48%, #176052 100%);
}

body[data-theme="night"] .sky {
  background: linear-gradient(145deg, #0c1435 0%, #183960 48%, #176052 100%);
}

body,
button,
h1,
h2,
p,
.paper-body p,
.appreciation-note p,
.direction-copy,
.signature,
.paper-body .paper-signature,
.plane-note {
  font-family: var(--sans);
}

h1,
h2 {
  font-weight: 560;
  letter-spacing: -0.06em;
}

.sky-image-far {
  filter: blur(0.8px) saturate(1.03);
}

.sky-image-near {
  clip-path: inset(38% 0 0 0);
  opacity: 0.34;
  filter: blur(14px) saturate(1.04);
}

.sky {
  z-index: 0;
}

.letter-stage {
  z-index: 2;
}

.cloud-field {
  position: fixed;
  z-index: 1;
  inset: -18%;
  overflow: hidden;
  perspective: 950px;
  pointer-events: none;
  transform-style: preserve-3d;
}

.cloud-field::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(ellipse at 18% 78%, var(--cloud-core), transparent 32%),
    radial-gradient(ellipse at 84% 20%, var(--cloud-mid), transparent 28%);
  filter: blur(28px);
  opacity: 0.42;
  animation: cloud-mist-breathe 15s ease-in-out infinite alternate;
}

.css-cloud {
  position: absolute;
  display: block;
  width: clamp(21rem, 42vw, 48rem);
  aspect-ratio: 2 / 0.88;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 14% 64%, var(--cloud-core) 0 16%, transparent 38%),
    radial-gradient(ellipse at 31% 42%, var(--cloud-core) 0 22%, transparent 46%),
    radial-gradient(ellipse at 53% 55%, var(--cloud-mid) 0 26%, transparent 50%),
    radial-gradient(ellipse at 72% 36%, var(--cloud-core) 0 19%, transparent 43%),
    radial-gradient(ellipse at 88% 64%, var(--cloud-mid) 0 18%, transparent 41%),
    radial-gradient(ellipse at 52% 78%, var(--cloud-shadow) 0 22%, transparent 56%);
  filter: blur(17px);
  opacity: 0.5;
  mix-blend-mode: screen;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

body[data-theme="night"] .css-cloud {
  opacity: 0.58;
  mix-blend-mode: screen;
}

.cloud-one {
  top: 4%;
  left: -10%;
  animation: cloud-float-one 27s ease-in-out infinite alternate;
}

.cloud-two {
  top: 15%;
  right: -13%;
  width: clamp(24rem, 49vw, 55rem);
  animation: cloud-float-two 33s ease-in-out -8s infinite alternate;
}

.cloud-three {
  bottom: -4%;
  left: 5%;
  width: clamp(27rem, 55vw, 62rem);
  animation: cloud-float-three 24s ease-in-out -5s infinite alternate;
}

.cloud-four {
  top: -13%;
  left: 38%;
  opacity: 0.3;
  animation: cloud-float-four 37s ease-in-out -17s infinite alternate;
}

.cloud-five {
  right: 2%;
  bottom: 8%;
  opacity: 0.32;
  animation: cloud-float-five 29s ease-in-out -12s infinite alternate;
}

.cloud-six {
  bottom: -18%;
  left: 16%;
  width: clamp(38rem, 72vw, 82rem);
  opacity: 0.44;
  animation: cloud-float-six 19s ease-in-out -4s infinite alternate;
}

.opening-layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
  grid-template-rows: auto auto;
  align-items: center;
}

.opening-title {
  grid-column: 1;
  grid-row: 1 / span 2;
  font-weight: 570;
  font-style: normal;
  line-height: 0.78;
}

.opening-title span {
  font-style: normal;
}

.opening-wish {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  padding-bottom: 0.8rem;
}

.opening-note {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  margin-top: 1.1rem;
}

.opening-wish > p:first-child {
  font-family: var(--sans);
  font-weight: 560;
  line-height: 1.2;
}

.wish-button {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  margin: 0 0 0 0.45rem;
  padding: 0;
  place-items: center;
  vertical-align: 0.12em;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.wish-star {
  width: 2rem;
  height: 2rem;
  font-size: 0.9rem;
}

.appreciation-layout {
  display: block;
}

.appreciation-grid {
  position: relative;
  width: min(100%, 76rem);
  margin: 0 auto;
  gap: clamp(1.8rem, 4vw, 4.4rem) clamp(2rem, 7vw, 7rem);
}

.appreciation-grid::before {
  position: absolute;
  z-index: -1;
  inset: 8% 5% 4%;
  border-radius: 50%;
  content: "";
  background: radial-gradient(ellipse, rgba(255, 248, 242, 0.2), transparent 68%);
  filter: blur(24px);
}

.appreciation-note {
  min-height: 8.8rem;
  padding: 0;
  border: 0;
}

.appreciation-note p,
.note-four p {
  font-family: var(--sans);
  font-size: clamp(1.22rem, 1.7vw, 1.75rem);
  font-style: normal;
  font-weight: 520;
  line-height: 1.45;
}

.note-two {
  transform: translateY(1.6rem);
}

.note-four p {
  font-size: clamp(1.55rem, 2.35vw, 2.5rem);
  font-weight: 590;
  line-height: 1.18;
}

.lilac-heart {
  display: inline;
  margin: 0;
  padding: 0 0.08em;
  border: 0;
  border-radius: 0;
  color: #79488b;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font: inherit;
  font-weight: 700;
  letter-spacing: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(142, 83, 160, 0.45);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.12em;
}

body[data-theme="night"] .lilac-heart {
  color: #c9efdb;
  text-decoration-color: rgba(154, 232, 190, 0.54);
}

.lilac-heart.is-loved {
  transform: none;
  text-shadow: 0 0 22px rgba(176, 108, 204, 0.82);
}

.scene-direction .scene-inner {
  display: flex;
  width: 100%;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.direction-layout {
  display: flex;
  grid-template-columns: none;
}

.direction-copy {
  max-width: 74rem;
  margin: 0 auto;
  padding: 0;
  font-family: var(--sans);
  font-size: clamp(1.34rem, 2.15vw, 2.25rem);
  font-weight: 510;
  line-height: 1.46;
  text-align: left;
  text-shadow: 0 2px 20px var(--shadow);
}

.conclusion-label {
  z-index: 2;
  margin: 0 0 clamp(1.5rem, 4vh, 3rem);
  color: var(--ink-soft);
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  font-weight: 680;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 1px 14px var(--shadow);
}

.heart-statement,
.closing-layout h2,
.paper-header h2 {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 580;
}

.plane-note {
  font-style: normal;
  font-weight: 560;
  letter-spacing: 0.02em;
  transform: translate3d(0, 1.6rem, 0);
}

.plane-note.is-revealed {
  transform: translate3d(0, 0, 0);
}

.closing-layout .aside {
  font-weight: 520;
}

.signature {
  font-family: var(--sans);
  font-weight: 610;
  letter-spacing: -0.035em;
  transform: none;
}

.signature span {
  margin-left: 0;
  font-family: var(--sans);
}

.paper-body p {
  font-family: var(--sans);
  font-weight: 440;
  line-height: 1.72;
}

.paper-body p:first-child::first-letter {
  font-style: normal;
  font-weight: 650;
}

.paper-body .paper-signature {
  font-family: var(--sans);
  font-style: normal;
  transform: none;
}

.paper-signature strong {
  font-weight: 640;
}

.letter-additions ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 2rem;
}

.letter-additions li {
  padding: 0.55rem 0 0.55rem 1.1rem;
  font-family: var(--sans);
  font-size: 0.94rem;
  font-weight: 570;
}

.letter-additions li::before {
  margin-left: -1.1rem;
  content: "•";
  color: #8c587f;
}

body[data-theme="night"] .letter-additions li::before {
  color: #9ee7ba;
}

.scene-letter.is-active .letter-additions li:nth-child(5) {
  animation: list-arrive 650ms 520ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.scene-letter.is-active .letter-additions li:nth-child(6) {
  animation: list-arrive 650ms 650ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.scene-letter.is-active .letter-additions li:nth-child(7) {
  animation: list-arrive 650ms 780ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.scene-letter.is-active .letter-additions li:nth-child(8) {
  animation: list-arrive 650ms 910ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.letter-navigation {
  gap: clamp(1.5rem, 7vw, 4.5rem);
}

.nav-button {
  width: 3.15rem;
  height: 3.15rem;
}

@keyframes sky-breathe {
  from { transform: scale(1.055) translate3d(-1.6%, -2%, 0); }
  to { transform: scale(1.13) translate3d(1.8%, 2.5%, 0); }
}

@keyframes near-cloud-drift {
  from { transform: scale(1.2) translate3d(-4%, 7%, 0); }
  to { transform: scale(1.34) translate3d(4%, -4%, 0); }
}

@keyframes scene-arrive {
  from { opacity: 0; filter: blur(14px); transform: translate3d(var(--enter-x), var(--enter-y), 0) scale(1.055) rotate(var(--travel-rotate)); }
  to { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0) scale(1) rotate(0); }
}

@keyframes scene-leave {
  from { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0) scale(1) rotate(0); }
  to { opacity: 0; filter: blur(11px); transform: translate3d(var(--leave-x), var(--leave-y), 0) scale(0.965) rotate(var(--travel-rotate)); }
}

@keyframes scene-arrive-back {
  from { opacity: 0; filter: blur(14px); transform: translate3d(var(--enter-x), var(--enter-y), 0) scale(1.055) rotate(var(--travel-rotate)); }
  to { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0) scale(1) rotate(0); }
}

@keyframes scene-leave-back {
  from { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0) scale(1) rotate(0); }
  to { opacity: 0; filter: blur(11px); transform: translate3d(var(--leave-x), var(--leave-y), 0) scale(0.965) rotate(var(--travel-rotate)); }
}

@keyframes cloud-rush {
  0% { transform: scale(1.12) translate3d(0, 0, 0) rotate(0deg); filter: blur(21px) saturate(1.04); }
  52% { transform: scale(1.58) translate3d(2vw, -2vh, 0) rotate(var(--travel-rotate)); filter: blur(11px) saturate(1.14); }
  100% { transform: scale(2.02) translate3d(var(--travel-x), var(--travel-y), 0) rotate(var(--travel-rotate)); filter: blur(26px) saturate(1.02); }
}

@keyframes cloud-rush-back {
  0% { transform: scale(1.12) translate3d(0, 0, 0) rotate(0deg); filter: blur(21px) saturate(1.04); }
  52% { transform: scale(1.58) translate3d(-2vw, 2vh, 0) rotate(var(--travel-rotate)); filter: blur(11px) saturate(1.14); }
  100% { transform: scale(2.02) translate3d(var(--travel-x), var(--travel-y), 0) rotate(var(--travel-rotate)); filter: blur(26px) saturate(1.02); }
}

@keyframes cloud-mist-breathe {
  from { opacity: 0.28; transform: translate3d(-2vw, 3vh, -40px) scale(0.94); }
  to { opacity: 0.52; transform: translate3d(3vw, -4vh, 90px) scale(1.08); }
}

@keyframes cloud-float-one {
  from { transform: translate3d(-5vw, -2vh, -80px) scale(0.88) rotate(-4deg); }
  to { transform: translate3d(13vw, 16vh, 120px) scale(1.14) rotate(4deg); }
}

@keyframes cloud-float-two {
  from { transform: translate3d(8vw, -9vh, -100px) scale(0.92) rotate(5deg); }
  to { transform: translate3d(-13vw, 10vh, 95px) scale(1.18) rotate(-3deg); }
}

@keyframes cloud-float-three {
  from { transform: translate3d(-6vw, 12vh, -45px) scale(0.9) rotate(-2deg); }
  to { transform: translate3d(9vw, -13vh, 135px) scale(1.2) rotate(4deg); }
}

@keyframes cloud-float-four {
  from { transform: translate3d(11vw, -6vh, -120px) scale(0.76) rotate(7deg); }
  to { transform: translate3d(-12vw, 17vh, 50px) scale(1.12) rotate(-5deg); }
}

@keyframes cloud-float-five {
  from { transform: translate3d(5vw, 10vh, -65px) scale(0.84) rotate(-6deg); }
  to { transform: translate3d(-16vw, -10vh, 110px) scale(1.16) rotate(3deg); }
}

@keyframes cloud-float-six {
  from { opacity: 0.24; transform: translate3d(-5vw, 14vh, -110px) scale(0.8) rotate(-2deg); }
  to { opacity: 0.57; transform: translate3d(6vw, -8vh, 170px) scale(1.3) rotate(2deg); }
}

@media (max-width: 900px) {
  .opening-layout {
    display: block;
  }

  .opening-title {
    margin-top: clamp(2.5rem, 7vh, 5rem);
  }

  .opening-wish {
    margin-top: clamp(2rem, 6vh, 4rem);
  }

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

  .note-two {
    transform: none;
  }

  .scene-direction .scene-inner {
    min-height: 100svh;
    padding-top: clamp(4.8rem, 9vh, 6.5rem);
    padding-bottom: 7.5rem;
    align-items: flex-start;
  }

  .direction-copy {
    margin: auto 0;
    font-size: clamp(1.08rem, 4.2vw, 1.46rem);
    line-height: 1.5;
  }
}

@media (max-width: 620px) {
  .css-cloud {
    width: 34rem;
    filter: blur(20px);
  }

  .cloud-three,
  .cloud-six {
    width: 48rem;
  }

  .appreciation-note p,
  .note-four p {
    font-size: clamp(1.08rem, 4.7vw, 1.35rem);
    line-height: 1.46;
  }

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

  .letter-navigation {
    gap: 2.4rem;
  }
}

@media (max-height: 720px) {
  .scene-direction .scene-inner {
    padding-top: 4rem;
    padding-bottom: 5.2rem;
  }

  .direction-copy {
    font-size: clamp(0.98rem, 3.7vw, 1.16rem);
    line-height: 1.42;
  }
}

/* Focus-led staging and richer motion */

.beat {
  transform-origin: center;
  will-change: opacity, filter, transform, clip-path;
}

.scene.has-focus .beat.is-past {
  z-index: 0;
  opacity: 0.11;
  filter: blur(3px) saturate(0.45);
  pointer-events: none;
}

.scene.has-focus .beat.is-current {
  z-index: 4;
  opacity: 1;
  filter: blur(0) saturate(1);
  animation: focus-settle 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.scene.has-focus .beat.is-future {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

body.is-beat-shifting .cloud-field {
  animation: focus-cloud-sweep var(--travel-duration) cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.is-beat-shifting-back .cloud-field {
  animation-name: focus-cloud-sweep-back;
}

body.is-beat-shifting .atmosphere {
  animation: focus-light-pulse var(--travel-duration) ease-out both;
}

.opening-layout {
  display: grid;
  min-height: 100svh;
  padding-top: clamp(5rem, 11vh, 8rem);
  grid-template: 1fr / 1fr;
  place-items: center;
}

.opening-title,
.opening-note {
  grid-area: 1 / 1;
}

.opening-title {
  width: 100%;
  text-align: center;
}

.opening-title span {
  padding-left: 0;
  border: 0;
  text-decoration: none;
}

.opening-title.is-current {
  animation-name: name-unfold !important;
}

.opening-title.is-past {
  opacity: 0.09 !important;
  transform: translate3d(-29vw, -27vh, -180px) scale(0.47) rotate(-4deg);
}

.opening-note {
  width: min(88vw, 58rem);
  max-width: none;
  margin: 0;
  font-size: clamp(1.65rem, 3.05vw, 3.3rem);
  font-weight: 580;
  line-height: 1.32;
  text-align: center;
}

.opening-note.is-current {
  animation-name: opening-note-sweep !important;
}

.scene-appreciation::before,
.scene-appreciation::after,
.scene-heart::before,
.scene-closing::before {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.scene-appreciation::before {
  top: 16%;
  left: 18%;
  width: 64vw;
  height: 66vh;
  background: radial-gradient(ellipse, rgba(255, 249, 239, 0.34), transparent 68%);
  filter: blur(24px);
  animation: focus-halo-drift 9s ease-in-out infinite alternate;
}

.scene-appreciation::after {
  right: -8rem;
  bottom: 4%;
  width: 25rem;
  height: 25rem;
  border: 1px solid rgba(255, 247, 237, 0.26);
  box-shadow: 0 0 5rem rgba(168, 106, 150, 0.13) inset;
  animation: focus-ring-turn 17s linear infinite;
}

.appreciation-layout {
  display: grid;
  min-height: 100svh;
  place-items: center;
}

.appreciation-grid {
  display: grid;
  width: min(88vw, 62rem);
  min-height: min(64vh, 39rem);
  margin: 0 auto;
  place-items: center;
  perspective: 1200px;
}

.appreciation-grid::before {
  inset: 10%;
  background: radial-gradient(ellipse, rgba(255, 248, 242, 0.28), transparent 70%);
  animation: focus-halo-breathe 5.5s ease-in-out infinite alternate;
}

.appreciation-note {
  grid-area: 1 / 1;
  width: min(100%, 55rem);
  min-height: 0;
  padding: clamp(1.2rem, 3vw, 2.5rem);
  border: 0;
  border-radius: 2.5rem;
  background: radial-gradient(ellipse at center, rgba(255, 248, 242, 0.2), transparent 72%);
  text-align: center;
}

.appreciation-note p,
.note-four p {
  font-size: clamp(1.55rem, 2.45vw, 2.65rem);
  line-height: 1.35;
}

.note-four p {
  font-size: clamp(2.35rem, 4.7vw, 5rem);
  line-height: 1.08;
}

.appreciation-note.is-current::after {
  position: absolute;
  inset: -12%;
  z-index: -1;
  border-radius: 50%;
  content: "";
  background: radial-gradient(ellipse, rgba(255, 253, 247, 0.42), transparent 68%);
  filter: blur(18px);
  animation: current-aura 2.8s ease-in-out infinite alternate;
}

.note-one.is-current {
  animation-name: note-rise-and-open !important;
}

.note-two.is-current {
  animation-name: note-swing-in !important;
}

.note-three.is-current {
  animation-name: note-unfold !important;
}

.note-four.is-current {
  animation-name: note-zoom-through !important;
}

.note-one.is-past {
  transform: translate3d(-27vw, -21vh, -220px) rotate(-8deg) scale(0.72);
}

.note-two.is-past {
  transform: translate3d(26vw, -17vh, -250px) rotate(7deg) scale(0.68);
}

.note-three.is-past {
  transform: translate3d(-25vw, 21vh, -270px) rotate(5deg) scale(0.66);
}

.note-four.is-past {
  transform: translate3d(24vw, 20vh, -300px) rotate(-6deg) scale(0.62);
}

.scene-direction::before {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: min(90vw, 76rem);
  height: min(68vh, 40rem);
  border: 1px solid rgba(255, 248, 240, 0.24);
  border-radius: 50%;
  content: "";
  filter: blur(0.2px);
  transform: translate(-50%, -50%) rotate(-5deg);
  animation: direction-orbit-breathe 8s ease-in-out infinite alternate;
}

.direction-copy.is-current {
  animation-name: direction-map-arrive !important;
}

.heart-layout {
  display: grid;
  min-height: 100svh;
  grid-template: auto minmax(0, 1fr) / 1fr;
  place-items: center;
  padding-top: clamp(5rem, 9vh, 7rem);
}

.conclusion-label {
  grid-area: 1 / 1;
  align-self: end;
  margin: 0;
  transition: opacity 700ms ease, transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.heart-statement,
.keep-going,
.plane-note {
  grid-area: 2 / 1;
  align-self: center;
  margin: 0;
}

.heart-statement.is-current {
  animation-name: heart-bloom !important;
}

.heart-statement.is-past {
  opacity: 0.09 !important;
  transform: translate3d(-26vw, -17vh, -240px) scale(0.58) rotate(-6deg);
}

.keep-going {
  max-width: 78rem;
  text-transform: none;
}

.keep-going.is-current {
  font-size: clamp(3.7rem, 9.5vw, 10.5rem);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.9;
  animation-name: rally-pop !important;
}

.keep-going.is-past {
  opacity: 0.08 !important;
  transform: translate3d(25vw, -19vh, -260px) scale(0.53) rotate(7deg);
}

.plane-note.is-current {
  max-width: 68rem;
  font-size: clamp(2.7rem, 6vw, 6.4rem);
  font-weight: 620;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-align: center;
  animation-name: plane-swoop !important;
}

.scene-heart[data-current-beat="2"] .conclusion-label,
.scene-heart[data-current-beat="3"] .conclusion-label {
  opacity: 0.16;
  transform: translateY(-1.2rem) scale(0.86);
}

.scene-heart[data-current-beat="2"] .heart-orbit {
  opacity: 0.37;
  transform: translate(-50%, -48%) scale(1.15) rotate(8deg);
}

.scene-heart[data-current-beat="3"] .heart-orbit {
  opacity: 0.22;
  transform: translate(-50%, -48%) scale(1.3, 0.72) rotate(-11deg);
}

.heart-orbit {
  transition: opacity 800ms ease, transform 1100ms cubic-bezier(0.16, 1, 0.3, 1);
}

.scene-heart::before {
  top: 50%;
  left: 50%;
  width: min(92vw, 76rem);
  height: min(76vh, 48rem);
  background: radial-gradient(ellipse, rgba(255, 248, 238, 0.35), transparent 69%);
  filter: blur(30px);
  transform: translate(-50%, -50%);
  animation: focus-halo-breathe 5s ease-in-out infinite alternate;
}

.closing-layout {
  min-height: 100svh;
  padding-top: clamp(5rem, 9vh, 7rem);
}

.closing-layout > .beat {
  position: relative;
  width: min(76vw, 78rem);
}

.closing-layout h2 {
  position: relative;
  z-index: 2;
}

.scene-closing.is-active .closing-layout h2 {
  animation: closing-title-arrive 1150ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.closing-aside {
  position: absolute;
  z-index: 4;
  top: -3.4rem;
  right: -5.8rem;
  width: clamp(12rem, 18vw, 17rem);
  transform: rotate(7deg);
  transform-origin: center;
}

.closing-layout .aside {
  margin: 0;
  font-size: clamp(0.78rem, 1vw, 0.98rem);
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.25;
  text-align: left;
}

.aside-arrow {
  display: block;
  width: 100%;
  height: auto;
  margin: -0.15rem 0 0 -1.6rem;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  filter: drop-shadow(0 2px 8px var(--shadow));
  animation: aside-arrow-draw 1200ms 500ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.signature {
  position: relative;
  z-index: 3;
  transform: rotate(-5deg);
  transform-origin: center;
  animation: signature-drop 900ms 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.scene-closing::before {
  right: 6%;
  bottom: 5%;
  width: 26rem;
  height: 26rem;
  border: 1px solid rgba(255, 248, 239, 0.22);
  animation: focus-ring-turn 19s linear infinite reverse;
}

.paper-header {
  padding-bottom: 0;
  border-bottom: 0;
}

body[data-theme="night"] .paper-header {
  border-bottom: 0;
}

@keyframes focus-settle {
  0% { opacity: 0; transform: translate3d(0, 3.8rem, -80px) scale(0.88); }
  58% { opacity: 1; transform: translate3d(0, -0.5rem, 12px) scale(1.025); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes name-unfold {
  0% { opacity: 0; clip-path: inset(0 52% 0 48%); transform: perspective(800px) rotateX(18deg) scale(1.12); letter-spacing: -0.12em; }
  58% { opacity: 1; clip-path: inset(0); transform: perspective(800px) rotateX(-2deg) scale(0.985); }
  100% { opacity: 1; clip-path: inset(0); transform: perspective(800px) rotateX(0) scale(1); letter-spacing: -0.06em; }
}

@keyframes opening-note-sweep {
  0% { opacity: 0; clip-path: inset(0 100% 0 0 round 2rem); transform: translate3d(10vw, -6vh, 0) rotate(3deg); }
  65% { opacity: 1; clip-path: inset(0 round 2rem); transform: translate3d(-0.7rem, 0.25rem, 0) rotate(-0.4deg); }
  100% { opacity: 1; clip-path: inset(0 round 2rem); transform: translate3d(0, 0, 0) rotate(0); }
}

@keyframes focus-cloud-sweep {
  0% { transform: translate3d(0, 0, 0) scale(1); filter: blur(0); }
  48% { transform: translate3d(-4vw, 3vh, 70px) scale(1.09) rotate(-1deg); filter: blur(5px); }
  100% { transform: translate3d(0, 0, 0) scale(1); filter: blur(0); }
}

@keyframes focus-cloud-sweep-back {
  0% { transform: translate3d(0, 0, 0) scale(1); filter: blur(0); }
  48% { transform: translate3d(4vw, -3vh, 70px) scale(1.09) rotate(1deg); filter: blur(5px); }
  100% { transform: translate3d(0, 0, 0) scale(1); filter: blur(0); }
}

@keyframes focus-light-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.52; }
}

@keyframes note-rise-and-open {
  0% { opacity: 0; clip-path: inset(92% 0 0 0 round 3rem); transform: translate3d(-7vw, 12vh, -60px) rotate(-6deg); }
  70% { opacity: 1; clip-path: inset(0 round 3rem); transform: translate3d(0.4rem, -0.4rem, 0) rotate(0.5deg); }
  100% { opacity: 1; clip-path: inset(0 round 3rem); transform: translate3d(0, 0, 0) rotate(0); }
}

@keyframes note-swing-in {
  0% { opacity: 0; transform: perspective(900px) translate3d(22vw, -7vh, -120px) rotateY(-34deg) rotateZ(8deg); }
  62% { opacity: 1; transform: perspective(900px) translate3d(-0.8rem, 0, 0) rotateY(3deg) rotateZ(-1deg); }
  100% { opacity: 1; transform: perspective(900px) translate3d(0, 0, 0) rotateY(0) rotateZ(0); }
}

@keyframes note-unfold {
  0% { opacity: 0; clip-path: polygon(0 48%, 100% 48%, 100% 52%, 0 52%); transform: scale(1.08) rotate(-2deg); }
  68% { opacity: 1; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transform: scale(0.99) rotate(0.3deg); }
  100% { opacity: 1; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transform: scale(1) rotate(0); }
}

@keyframes note-zoom-through {
  0% { opacity: 0; transform: translate3d(0, 0, -500px) scale(0.44) rotate(7deg); filter: blur(13px); }
  64% { opacity: 1; transform: translate3d(0, 0, 25px) scale(1.05) rotate(-0.5deg); filter: blur(0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1) rotate(0); filter: blur(0); }
}

@keyframes current-aura {
  from { opacity: 0.35; transform: scale(0.88) rotate(-2deg); }
  to { opacity: 0.7; transform: scale(1.08) rotate(2deg); }
}

@keyframes focus-halo-drift {
  from { opacity: 0.55; transform: translate3d(-4vw, 3vh, 0) scale(0.92); }
  to { opacity: 0.9; transform: translate3d(4vw, -3vh, 0) scale(1.08); }
}

@keyframes focus-halo-breathe {
  from { opacity: 0.4; transform: scale(0.88); }
  to { opacity: 0.85; transform: scale(1.12); }
}

@keyframes focus-ring-turn {
  to { transform: rotate(360deg); }
}

@keyframes direction-orbit-breathe {
  from { opacity: 0.35; transform: translate(-50%, -50%) rotate(-5deg) scale(0.92); }
  to { opacity: 0.75; transform: translate(-50%, -50%) rotate(5deg) scale(1.05); }
}

@keyframes direction-map-arrive {
  0% { opacity: 0; clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); transform: translate3d(-9vw, 7vh, 0) rotate(-2deg); }
  72% { opacity: 1; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transform: translate3d(0.4rem, -0.3rem, 0) rotate(0.3deg); }
  100% { opacity: 1; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transform: translate3d(0, 0, 0) rotate(0); }
}

@keyframes heart-bloom {
  0% { opacity: 0; clip-path: circle(0 at 50% 50%); transform: scale(0.64) rotate(-4deg); }
  64% { opacity: 1; clip-path: circle(78% at 50% 50%); transform: scale(1.04) rotate(0.5deg); }
  100% { opacity: 1; clip-path: circle(78% at 50% 50%); transform: scale(1) rotate(0); }
}

@keyframes rally-pop {
  0% { opacity: 0; transform: scale(0.35) rotate(8deg); letter-spacing: 0.12em; }
  58% { opacity: 1; transform: scale(1.08) rotate(-1.5deg); letter-spacing: -0.075em; }
  100% { opacity: 1; transform: scale(1) rotate(0); letter-spacing: -0.065em; }
}

@keyframes plane-swoop {
  0% { opacity: 0; clip-path: inset(0 100% 0 0); transform: translate3d(-34vw, 18vh, 0) rotate(-12deg) scale(0.7); }
  66% { opacity: 1; clip-path: inset(0); transform: translate3d(1rem, -0.5rem, 0) rotate(1deg) scale(1.02); }
  100% { opacity: 1; clip-path: inset(0); transform: translate3d(0, 0, 0) rotate(0) scale(1); }
}

@keyframes closing-title-arrive {
  0% { opacity: 0; clip-path: inset(0 0 100% 0); transform: translate3d(0, -12vh, 0) rotate(-3deg) scale(0.92); }
  66% { opacity: 1; clip-path: inset(0); transform: translate3d(0, 0.5rem, 0) rotate(0.4deg) scale(1.015); }
  100% { opacity: 1; clip-path: inset(0); transform: translate3d(0, 0, 0) rotate(0) scale(1); }
}

@keyframes aside-arrow-draw {
  0% { opacity: 0; stroke-dasharray: 210; stroke-dashoffset: 210; }
  100% { opacity: 1; stroke-dasharray: 210; stroke-dashoffset: 0; }
}

@keyframes signature-drop {
  0% { opacity: 0; transform: translate3d(8vw, 8vh, 0) rotate(11deg) scale(0.7); }
  68% { opacity: 1; transform: translate3d(-0.4rem, 0, 0) rotate(-6deg) scale(1.04); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) rotate(-5deg) scale(1); }
}

@media (max-width: 900px) {
  .opening-title.is-past {
    transform: translate3d(-25vw, -29vh, -150px) scale(0.45) rotate(-4deg);
  }

  .appreciation-layout,
  .heart-layout,
  .closing-layout {
    min-height: 100svh;
    padding-top: 4.8rem;
    padding-bottom: 6.8rem;
  }

  .appreciation-grid {
    min-height: 68vh;
  }

  .appreciation-note p,
  .note-four p {
    font-size: clamp(1.2rem, 5vw, 1.75rem);
  }

  .note-four p {
    font-size: clamp(2rem, 8.4vw, 3.7rem);
  }

  .closing-layout > .beat {
    width: min(82vw, 44rem);
  }

  .closing-aside {
    top: -5rem;
    right: -1rem;
    width: 12rem;
  }
}

@media (max-width: 620px) {
  .opening-title {
    font-size: clamp(4.3rem, 24vw, 7rem);
  }

  .opening-note {
    font-size: clamp(1.4rem, 7vw, 2rem);
  }

  .note-one.is-past,
  .note-three.is-past {
    transform: translate3d(-30vw, -22vh, -180px) rotate(-7deg) scale(0.58);
  }

  .note-two.is-past,
  .note-four.is-past {
    transform: translate3d(30vw, 21vh, -180px) rotate(7deg) scale(0.58);
  }

  .keep-going.is-current {
    font-size: clamp(3.1rem, 17vw, 6rem);
  }

  .plane-note.is-current {
    font-size: clamp(2.35rem, 11.5vw, 4.2rem);
  }

  .closing-layout h2 {
    font-size: clamp(3rem, 14.5vw, 5.2rem);
  }

  .closing-aside {
    top: -5.8rem;
    right: -0.8rem;
    width: 10.5rem;
  }

  .closing-layout .aside {
    font-size: 0.72rem;
  }

  .aside-arrow {
    margin-left: -1rem;
  }
}

@media (max-height: 720px) and (min-width: 621px) {
  .closing-aside {
    top: -2.6rem;
  }

  .closing-layout h2 {
    font-size: clamp(3.2rem, 7vw, 6rem);
  }

  .signature {
    margin-top: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene.has-focus .beat,
  .cloud-field,
  .atmosphere,
  .scene::before,
  .scene::after,
  .appreciation-note::after,
  .aside-arrow,
  .signature,
  .closing-layout h2 {
    animation: none !important;
  }
}
