@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600&family=Playfair+Display:ital,wght@0,400;1,500&display=swap");


:root {

  --bg: #f8f1ea;
  --paper: #fffaf6;

  --ink: #403934;
  --muted: #776d67;

  --rose: #b85c74;
  --rose-dark: #8d4056;

  --green: #718d78;

  --shadow:
    0 24px 70px
    rgba(74, 53, 47, 0.11);

  --soft-shadow:
    0 14px 40px
    rgba(74, 53, 47, 0.08);

  --serif:
    "Playfair Display",
    Georgia,
    "Times New Roman",
    serif;

  --hand:
    "Caveat",
    "Bradley Hand",
    "Segoe Print",
    cursive;

  --mono:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;
}



* {
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}


body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;

  color: var(--ink);

  background:
    radial-gradient(
      circle at 10% 0%,
      rgba(218, 154, 174, 0.13),
      transparent 31rem
    ),

    radial-gradient(
      circle at 95% 25%,
      rgba(126, 158, 133, 0.12),
      transparent 33rem
    ),

    var(--bg);

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  line-height: 1.7;
}


body.locked {
  overflow: hidden;
}


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


button {
  font: inherit;
}


a {
  color: inherit;
}


::selection {
  background: rgba(184, 92, 116, 0.18);
}



/* =====================================================
   LOCK SCREEN
===================================================== */

.lock-screen {
  position: fixed;
  inset: 0;
  z-index: 20000;

  display: grid;
  place-items: center;

  min-height: 100svh;
  overflow: hidden;

  padding: 30px 22px;

  background:
    radial-gradient(
      circle at 50% 38%,
      #465249 0%,
      #333e37 34%,
      #252e29 67%,
      #1c2420 100%
    );

  color: #f1f4f1;

  transition:
    opacity 1s ease,
    visibility 1s ease,
    transform 1s ease;
}


.lock-screen::before {
  content: "";

  position: absolute;
  inset: 17px;

  border:
    1px solid
    rgba(240, 246, 241, 0.2);

  pointer-events: none;
}


.lock-screen.is-gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: scale(1.035);
}


.lock-noise {
  position: absolute;
  inset: 0;

  opacity: 0.1;

  pointer-events: none;

  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.022) 0,
      rgba(255,255,255,0.022) 1px,
      transparent 1px,
      transparent 4px
    );
}


.lock-inner {
  position: relative;
  z-index: 6;

  width: min(620px, 100%);

  text-align: center;
}


.lock-small {
  margin: 0 0 14px;

  color: #c3cec6;

  font-family: var(--mono);

  font-size: 0.72rem;
  font-weight: 700;

  letter-spacing: 0.24em;
}


.lock-inner h1 {
  margin: 0 0 43px;

  color: #f4f7f5;

  font-family: var(--mono);

  font-size:
    clamp(
      2.6rem,
      11vw,
      5.5rem
    );

  font-weight: 500;

  letter-spacing: 0.06em;

  line-height: 1;
}


.password-clue {
  display: grid;
  gap: 13px;

  margin: 0 auto 31px;
}


.password-label {
  color: #d3dbd5;

  font-family: var(--mono);

  font-size: 0.7rem;
  font-weight: 700;

  letter-spacing: 0.17em;
}


.morse-box {
  display: grid;

  gap: 4px;

  width: fit-content;

  margin: 0 auto;

  padding: 15px 20px;

  border:
    1px solid
    rgba(240, 245, 241, 0.24);

  border-radius: 4px;

  background:
    rgba(255,255,255,0.055);
}


.morse-box code {
  display: block;

  color: #f2f5f3;

  font-family: var(--mono);

  font-size:
    clamp(
      0.82rem,
      2.8vw,
      1.02rem
    );

  line-height: 1.75;

  letter-spacing: 0.08em;
}


.password-clue small {
  color: #b7c3bb;

  font-family: var(--mono);

  font-size: 0.67rem;

  letter-spacing: 0.07em;
}


.pin-inputs {
  display: flex;
  justify-content: center;

  gap:
    clamp(
      7px,
      2vw,
      13px
    );

  margin: 0 auto 30px;
}


.pin {
  width:
    clamp(
      41px,
      11vw,
      58px
    );

  aspect-ratio: 0.83 / 1;

  border:
    2px solid
    rgba(246, 250, 247, 0.48);

  border-radius: 5px;

  outline: none;

  background:
    rgba(255,255,255,0.1);

  box-shadow:
    inset 0 0 0 1px
    rgba(0,0,0,0.08);

  color: #ffffff;

  font-family: var(--mono);

  font-size:
    clamp(
      1.25rem,
      5vw,
      1.75rem
    );

  text-align: center;

  caret-color: #d9eadc;

  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}


.pin:focus {
  border-color: #dceade;

  background:
    rgba(255,255,255,0.16);

  box-shadow:
    0 0 0 4px
    rgba(219, 235, 222, 0.08);
}


.pin.correct {
  border-color: #a8caaf;

  color: #d2ead7;

  background:
    rgba(116, 166, 127, 0.18);
}


.pin-inputs.wrong {
  animation: wrongShake 0.38s ease;
}


@keyframes wrongShake {

  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-9px);
  }

  40% {
    transform: translateX(8px);
  }

  60% {
    transform: translateX(-6px);
  }

  80% {
    transform: translateX(4px);
  }

}


.lock-actions {
  display: flex;

  justify-content: center;

  gap: 10px;

  flex-wrap: wrap;
}


.lock-button {
  min-width: 125px;

  padding: 12px 16px;

  border-radius: 4px;

  font-family: var(--mono);

  font-size: 0.7rem;
  font-weight: 700;

  letter-spacing: 0.12em;

  cursor: pointer;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}


.lock-button.primary {
  border:
    1px solid
    rgba(239, 247, 241, 0.46);

  background:
    rgba(243, 248, 244, 0.12);

  color: #f6f8f7;
}


.lock-button.secondary {
  border:
    1px solid
    rgba(239, 247, 241, 0.25);

  background:
    rgba(255,255,255,0.035);

  color: #d1d9d3;
}


.lock-button:hover {
  background:
    rgba(255,255,255,0.16);
}


.lock-button:active {
  transform: scale(0.97);
}


.hint-text {
  height: 0;

  margin-top: 0;

  overflow: hidden;

  color: #e2e9e4;

  font-family: var(--mono);

  font-size: 0.78rem;

  letter-spacing: 0.1em;

  opacity: 0;

  transition:
    height 0.35s ease,
    margin 0.35s ease,
    opacity 0.35s ease;
}


.hint-text.visible {
  height: 27px;
  margin-top: 18px;
  opacity: 1;
}


.lock-message {
  min-height: 27px;

  margin-top: 13px;

  color: #e3c9cd;

  font-family: var(--mono);

  font-size: 0.7rem;

  letter-spacing: 0.08em;
}


.access-granted {
  position: absolute;
  inset: 0;
  z-index: 20;

  display: grid;
  place-content: center;

  gap: 9px;

  padding: 30px;

  background:
    rgba(34, 47, 39, 0.96);

  text-align: center;

  opacity: 0;
  visibility: hidden;

  transition: opacity 0.45s ease;
}


.access-granted.visible {
  opacity: 1;
  visibility: visible;
}


.access-granted strong {
  color: #bfe0c6;

  font-family: var(--mono);

  font-size:
    clamp(
      1.5rem,
      6vw,
      2.6rem
    );

  letter-spacing: 0.08em;
}


.access-granted span {
  color: #e1e9e3;

  font-family: var(--mono);

  font-size: 0.8rem;

  letter-spacing: 0.07em;
}



/* SWANS */

.lock-swans {
  position: absolute;
  inset: 0;
  z-index: 2;

  pointer-events: none;
}


.lock-swan {
  position: absolute;

  width:
    clamp(
      120px,
      22vw,
      270px
    );

  opacity: 0.28;

  filter:
    invert(1)
    grayscale(1)
    brightness(1.15)
    contrast(0.85)
    drop-shadow(
      0 6px 16px
      rgba(0,0,0,0.15)
    );

  animation:
    swanFloat
    9s
    ease-in-out
    infinite;

  transition:
    opacity 0.9s ease,
    transform 1.1s ease;
}


.swan-1 {
  top: 4%;
  left: -2%;

  transform: rotate(-13deg);

  animation-delay: -1s;
}


.swan-2 {
  top: 12%;
  right: -4%;

  width:
    clamp(
      100px,
      18vw,
      220px
    );

  opacity: 0.23;

  transform:
    rotate(16deg)
    scaleX(-1);

  animation-delay: -5s;
}


.swan-3 {
  bottom: 3%;
  left: 5%;

  width:
    clamp(
      95px,
      17vw,
      195px
    );

  opacity: 0.2;

  transform: rotate(8deg);

  animation-delay: -3s;
}


.swan-4 {
  bottom: 5%;
  right: 2%;

  opacity: 0.26;

  transform:
    rotate(-7deg)
    scaleX(-1);

  animation-delay: -7s;
}


.swan-5 {
  top: 48%;
  right: 11%;

  width:
    clamp(
      65px,
      10vw,
      125px
    );

  opacity: 0.14;

  transform: rotate(21deg);

  animation-delay: -2.5s;
}


@keyframes swanFloat {

  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -18px;
  }

}


.lock-screen.unlocking .lock-swan {
  opacity: 0;
  scale: 1.08;
}



/* =====================================================
   SITE SHELL
===================================================== */

.site-shell {
  opacity: 0.3;

  filter: blur(10px);

  transform: scale(1.01);

  transition:
    opacity 1.1s ease,
    filter 1.1s ease,
    transform 1.1s ease;
}


body.unlocked .site-shell {
  opacity: 1;
  filter: none;
  transform: none;
}



/* =====================================================
   SCROLL PROGRESS
===================================================== */

.scroll-progress {
  position: fixed;

  top: 0;
  left: 0;
  right: 0;

  z-index: 9999;

  height: 4px;

  pointer-events: none;
}


.scroll-progress span {
  display: block;

  width: 0;
  height: 100%;

  background:
    linear-gradient(
      90deg,
      #9c4861,
      #df91a4,
      #7c9b83
    );

  border-radius:
    0 999px 999px 0;
}



/* =====================================================
   FLOATING DECOR
===================================================== */

.floating-decor {
  position: fixed;

  inset: 0;

  z-index: -1;

  overflow: hidden;

  pointer-events: none;
}


.float {
  position: absolute;

  color:
    rgba(148, 76, 96, 0.15);

  font-size:
    clamp(
      1.15rem,
      2vw,
      1.9rem
    );

  animation:
    floatingThing
    7s
    ease-in-out
    infinite;
}


.float-1 {
  top: 10%;
  left: 6%;
}


.float-2 {
  top: 31%;
  right: 7%;
  animation-delay: -2s;
}


.float-3 {
  top: 54%;
  left: 4%;
  opacity: 0.55;
  animation-delay: -3.3s;
}


.float-4 {
  top: 70%;
  right: 5%;
  animation-delay: -1s;
}


.float-5 {
  top: 86%;
  left: 10%;
  animation-delay: -5s;
}


.float-6 {
  top: 44%;
  right: 14%;
  animation-delay: -4s;
}


@keyframes floatingThing {

  0%,
  100% {
    transform:
      translateY(0)
      rotate(-3deg);
  }

  50% {
    transform:
      translateY(-12px)
      rotate(4deg);
  }

}



/* =====================================================
   HERO
===================================================== */

.hero {
  position: relative;

  min-height: 100svh;

  display: grid;
  place-items: center;

  overflow: hidden;

  padding: 80px 22px;
}


.hero::before {
  content: "";

  position: absolute;
  inset: 25px;

  border:
    1px solid
    rgba(107, 80, 71, 0.1);

  border-radius: 40px;

  pointer-events: none;
}


.hero-glow {
  position: absolute;
  border-radius: 50%;

  filter: blur(12px);

  pointer-events: none;
}


.hero-glow-one {
  width: 340px;
  height: 340px;

  top: 7%;
  left: -120px;

  background:
    rgba(219, 157, 176, 0.17);
}


.hero-glow-two {
  width: 420px;
  height: 420px;

  right: -160px;
  bottom: 1%;

  background:
    rgba(119, 153, 127, 0.14);
}


.hero-inner {
  position: relative;
  z-index: 2;

  width: min(850px, 100%);

  text-align: center;

  transition:
    opacity 0.1s linear,
    transform 0.1s linear;
}


.eyebrow,
.section-kicker {
  margin: 0 0 14px;

  color: var(--rose-dark);

  font-size: 0.73rem;
  font-weight: 850;

  letter-spacing: 0.18em;

  text-transform: uppercase;
}


.hero h1,
.timeline-intro h2,
.distance-section h2,
.playlist-section h2,
.messages-section h2,
.finale h2,
.open-when-section h2,
.memory-machine h2 {
  font-family: var(--serif);

  letter-spacing: -0.045em;
}


.hero h1 {
  margin: 0;

  font-size:
    clamp(
      4rem,
      12vw,
      8.6rem
    );

  font-weight: 500;

  line-height: 0.87;
}


.hero h1 span {
  display: block;

  color: var(--rose);

  font-style: italic;
}


.hero-copy {
  width: min(650px, 100%);

  margin: 34px auto 0;

  color: #665c56;

  font-size:
    clamp(
      1rem,
      2.4vw,
      1.22rem
    );
}


.story-button {
  display: inline-flex;

  align-items: center;

  gap: 12px;

  margin-top: 34px;

  padding: 14px 20px;

  border:
    1px solid
    rgba(107, 81, 73, 0.14);

  border-radius: 999px;

  background:
    rgba(255, 250, 246, 0.75);

  box-shadow:
    0 12px 30px
    rgba(81, 58, 51, 0.07);

  text-decoration: none;

  font-weight: 760;

  backdrop-filter: blur(12px);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}


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

  box-shadow:
    0 16px 34px
    rgba(81, 58, 51, 0.12);
}



/* =====================================================
   TIME
===================================================== */

.time-intro {
  width:
    min(
      1000px,
      calc(100% - 36px)
    );

  margin: 0 auto 140px;
}


.time-stat {
  min-height: 63svh;

  display: grid;
  place-content: center;

  text-align: center;

  opacity: 0.18;

  transform:
    scale(0.88)
    translateY(26px);

  transition:
    opacity 0.7s ease,
    transform 0.7s
    cubic-bezier(
      0.2,
      0.7,
      0.2,
      1
    );
}


.time-stat.is-visible {
  opacity: 1;

  transform:
    scale(1)
    translateY(0);
}


.time-stat strong {
  display: block;

  color: var(--rose-dark);

  font-family: var(--serif);

  font-size:
    clamp(
      5rem,
      18vw,
      12rem
    );

  font-weight: 500;

  line-height: 0.82;

  letter-spacing: -0.07em;
}


.time-stat span {
  display: block;

  margin-top: 15px;

  color: #4f4742;

  font-size:
    clamp(
      1.4rem,
      4vw,
      2.2rem
    );

  font-weight: 800;
}


.time-final {
  padding: 17vh 20px 4vh;

  color: #5a514d;

  text-align: center;

  font-family: var(--serif);

  font-size:
    clamp(
      1.5rem,
      4vw,
      2.5rem
    );

  font-style: italic;
}



/* =====================================================
   SECTION HEADINGS
===================================================== */

.timeline-intro {
  width:
    min(
      760px,
      calc(100% - 38px)
    );

  margin: 0 auto 76px;

  text-align: center;
}


.timeline-intro h2,
.distance-section h2,
.playlist-section h2,
.messages-section h2,
.open-when-section h2,
.memory-machine h2 {
  margin: 0;

  font-size:
    clamp(
      2.4rem,
      7vw,
      4.8rem
    );

  line-height: 1;

  font-weight: 500;
}


.timeline-intro > p:last-child,
.section-heading > p:last-child {
  max-width: 620px;

  margin: 22px auto 0;

  color: var(--muted);
}



/* =====================================================
   TIMELINE
===================================================== */

.timeline {
  position: relative;

  width:
    min(
      900px,
      calc(100% - 30px)
    );

  margin: 0 auto;

  padding: 8px 0 40px;
}


.timeline::before {
  content: "";

  position: absolute;

  top: 0;
  bottom: 0;

  left: 50px;

  width: 1px;

  background:
    linear-gradient(
      to bottom,
      transparent,
      rgba(111, 86, 78, 0.18) 3%,
      rgba(111, 86, 78, 0.18) 97%,
      transparent
    );
}


.timeline-item {
  --accent: #b75e75;
  --accent-soft: rgba(183, 94, 117, 0.12);
  --card: #fffaf6;

  position: relative;

  display: grid;

  grid-template-columns:
    102px
    minmax(0, 1fr);

  gap: 20px;

  margin: 0 0 56px;
}


.timeline-dot {
  position: absolute;

  top: 20px;
  left: 43px;

  z-index: 3;

  width: 15px;
  height: 15px;

  border:
    4px solid
    var(--bg);

  border-radius: 50%;

  background: var(--accent);

  box-shadow:
    0 0 0 1px
    rgba(99, 76, 69, 0.08);
}


.date-badge {
  position: relative;
  z-index: 4;

  align-self: start;

  width: 74px;

  margin-top: 1px;

  padding: 10px 8px;

  border:
    1px solid
    rgba(101, 77, 69, 0.1);

  border-radius: 18px;

  background:
    rgba(255, 250, 246, 0.84);

  box-shadow:
    0 9px 25px
    rgba(77, 57, 50, 0.05);

  text-align: center;

  backdrop-filter: blur(12px);
}


.date-badge span {
  display: block;

  color: var(--accent);

  font-family: var(--serif);

  font-size: 2rem;

  line-height: 1;
}


.date-badge small {
  display: block;

  margin-top: 5px;

  color: var(--muted);

  font-size: 0.68rem;
  font-weight: 850;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}


.timeline-card {
  position: relative;

  overflow: hidden;

  padding:
    clamp(
      24px,
      5vw,
      42px
    );

  border:
    1px solid
    rgba(105, 80, 72, 0.09);

  border-radius: 34px;

  background:
    radial-gradient(
      circle at 100% 0%,
      var(--accent-soft),
      transparent 19rem
    ),
    var(--card);

  box-shadow: var(--soft-shadow);
}


.timeline-card::after {
  content: "♡";

  position: absolute;

  top: 15px;
  right: 20px;

  color: var(--accent);

  opacity: 0.17;

  font-size: 2rem;
}


.mini-label {
  margin: 0 0 8px !important;

  color: var(--accent) !important;

  font-size: 0.72rem !important;
  font-weight: 850;

  letter-spacing: 0.13em;

  text-transform: uppercase;
}


.timeline-card h3 {
  max-width: 690px;

  margin: 0 0 24px;

  padding-right: 10px;

  color: #443c38;

  font-family: var(--serif);

  font-size:
    clamp(
      1.7rem,
      4.5vw,
      2.7rem
    );

  font-weight: 500;

  line-height: 1.08;

  letter-spacing: -0.035em;
}


.timeline-card p {
  margin: 0 0 19px;

  color: #5e5550;

  font-size: 1rem;
}



/* MOODS */

.mood-rose {
  --accent: #bd657c;
  --accent-soft: rgba(189, 101, 124, 0.12);
  --card: #fff7f8;
}

.mood-peach {
  --accent: #b97058;
  --accent-soft: rgba(201, 132, 102, 0.11);
  --card: #fff8f3;
}

.mood-lilac {
  --accent: #896999;
  --accent-soft: rgba(137, 105, 153, 0.11);
  --card: #fbf8ff;
}

.mood-green {
  --accent: #718c76;
  --accent-soft: rgba(113, 140, 118, 0.12);
  --card: #f8fbf7;
}

.mood-blue {
  --accent: #687f91;
  --accent-soft: rgba(104, 127, 145, 0.12);
  --card: #f7fafc;
}

.mood-cream {
  --accent: #a17c5f;
  --accent-soft: rgba(161, 124, 95, 0.11);
  --card: #fffaf3;
}

.mood-rose-deep {
  --accent: #a84d69;
  --accent-soft: rgba(168, 77, 105, 0.13);
  --card: #fff5f7;
}

.mood-night {
  --accent: #9e6885;
  --accent-soft: rgba(157, 98, 134, 0.16);
  --card: #f8f2f7;
}

.mood-pink {
  --accent: #c15f82;
  --accent-soft: rgba(193, 95, 130, 0.11);
  --card: #fff7fa;
}

.mood-lake {
  --accent: #6d8f91;
  --accent-soft: rgba(109, 143, 145, 0.12);
  --card: #f6fbfa;
}

.mood-sunset {
  --accent: #b66c6b;
  --accent-soft: rgba(182, 108, 107, 0.12);
  --card: #fff7f5;
}

.mood-earth {
  --accent: #7f795d;
  --accent-soft: rgba(127, 121, 93, 0.12);
  --card: #fbfaf3;
}

.mood-home {
  --accent: #9a6875;
  --accent-soft: rgba(154, 104, 117, 0.12);
  --card: #fff8f7;
}

.mood-distance {
  --accent: #747598;
  --accent-soft: rgba(116, 117, 152, 0.12);
  --card: #f8f8fc;
}



/* =====================================================
   IMPACT TEXT
===================================================== */

.impact {
  color: var(--accent) !important;
}


.impact-loud {
  margin: 31px 0 5px !important;

  font-size:
    clamp(
      1.25rem,
      4vw,
      2rem
    ) !important;

  font-weight: 950;

  line-height: 1.15;

  letter-spacing: -0.035em;
}


.impact-marker {
  display: inline;

  padding: 0 0.12em;

  background:
    linear-gradient(
      transparent 57%,
      var(--accent-soft) 57%,
      var(--accent-soft) 92%,
      transparent 92%
    );

  font-weight: 820;
}


.impact-soft {
  margin: 28px 0 !important;

  padding-left: 18px;

  border-left:
    3px solid
    var(--accent);

  font-family: var(--serif);

  font-size: 1.35rem !important;

  font-style: italic;
}


.impact-quote {
  margin: 31px 0;

  padding: 27px 18px;

  border-top:
    1px solid
    var(--accent-soft);

  border-bottom:
    1px solid
    var(--accent-soft);

  color: var(--accent);

  font-family: var(--serif);

  font-size:
    clamp(
      1.5rem,
      4.5vw,
      2.4rem
    );

  font-weight: 700;

  line-height: 1.12;

  text-align: center;
}


.impact-stamp {
  display: block;

  width: fit-content;
  max-width: 100%;

  margin: 32px auto !important;

  padding: 11px 17px;

  border:
    2px solid
    var(--accent);

  border-radius: 12px;

  box-shadow:
    4px 4px 0
    var(--accent-soft);

  font-size:
    clamp(
      1.15rem,
      4vw,
      1.65rem
    ) !important;

  font-weight: 950;

  line-height: 1.1;

  text-align: center;

  transform: rotate(-1.4deg);
}


.impact-handwritten {
  width: fit-content;
  max-width: 100%;

  margin: 27px auto !important;

  padding: 9px 18px;

  border-radius: 18px;

  background: var(--accent-soft);

  font-family: var(--hand);

  font-size:
    clamp(
      1.5rem,
      5vw,
      2rem
    ) !important;

  text-align: center;

  transform: rotate(-1deg);
}


.impact-underlined {
  width: fit-content;

  margin: 28px 0 8px !important;

  padding-bottom: 5px;

  border-bottom:
    3px solid
    var(--accent);

  font-weight: 820;
}


.impact-pill {
  display: block;

  width: fit-content;

  margin: 4px auto 25px !important;

  padding: 8px 14px;

  border-radius: 999px;

  background: var(--accent-soft);

  font-size: 0.86rem !important;
  font-weight: 900;

  text-align: center;
}


.impact-center {
  margin: 31px auto !important;

  color: var(--accent) !important;

  font-family: var(--serif);

  font-size:
    clamp(
      1.65rem,
      5vw,
      2.65rem
    ) !important;

  font-weight: 700;

  line-height: 1.1;

  text-align: center;
}


.impact-glow {
  margin: 35px 0 5px !important;

  padding: 25px;

  border-radius: 24px;

  background:
    radial-gradient(
      circle at center,
      var(--accent-soft),
      transparent 72%
    );

  font-family: var(--serif);

  font-size:
    clamp(
      1.4rem,
      4vw,
      2rem
    ) !important;

  font-style: italic;

  text-align: center;
}


.impact-heart {
  margin: 30px 0 !important;

  font-family: var(--serif);

  font-size:
    clamp(
      1.45rem,
      4vw,
      2.15rem
    ) !important;

  font-style: italic;

  text-align: center;
}


.word-pop {
  display: inline-block;

  margin: 0 0.18em;

  padding: 2px 7px;

  border-radius: 7px;

  background: var(--accent);

  color: white;

  font-size: 0.88em;
  font-weight: 950;

  letter-spacing: 0.08em;

  transform: rotate(-1deg);
}


.thought-stack {
  display: grid;

  gap: 10px;

  width: min(440px, 100%);

  margin: 28px 0 30px auto;
}


.thought-stack p {
  width: fit-content;

  margin: 0 !important;

  padding: 11px 15px;

  border-radius: 16px 16px 4px 16px;

  background: var(--accent-soft);

  color: var(--accent) !important;

  font-family: var(--serif);

  font-size: 1.12rem !important;

  font-style: italic;
}


.thought-stack p:nth-child(2) {
  margin-left: 27px !important;
}



/* =====================================================
   IMAGES
===================================================== */

.memory-shot {
  width: min(470px, 96%);

  margin: 35px auto 5px;

  padding: 10px;

  border:
    1px solid
    rgba(100, 76, 68, 0.11);

  border-radius: 24px;

  background:
    rgba(255, 255, 255, 0.79);

  box-shadow:
    0 18px 40px
    rgba(86, 62, 54, 0.11);
}


.memory-shot img {
  border-radius: 17px;

  background: #eee7e1;
}


.memory-shot figcaption {
  padding: 12px 8px 4px;

  color: #776b66;

  font-size: 0.78rem;

  line-height: 1.48;

  text-align: center;
}


.hero-shot {
  width: min(560px, 100%);
}


.tilt-left {
  transform: rotate(-0.7deg);
}


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



/* =====================================================
   STORY BREAK
===================================================== */

.story-break {
  position: relative;

  width:
    min(
      650px,
      calc(100% - 34px)
    );

  margin: 18px auto 68px;

  padding: 72px 28px;

  text-align: center;
}


.story-break::before,
.story-break::after {
  content: "";

  position: absolute;

  left: 50%;

  width: 1px;
  height: 33px;

  background:
    rgba(101, 77, 69, 0.18);
}


.story-break::before {
  top: 12px;
}


.story-break::after {
  bottom: 12px;
}


.story-break span {
  display: block;

  margin-bottom: 13px;

  color: var(--muted);

  font-size: 0.72rem;
  font-weight: 850;

  letter-spacing: 0.14em;

  text-transform: uppercase;
}


.story-break strong {
  display: block;

  color: #75485a;

  font-family: var(--serif);

  font-size:
    clamp(
      1.7rem,
      5vw,
      3rem
    );

  font-weight: 500;

  font-style: italic;

  line-height: 1.08;
}



/* =====================================================
   MEMORY LIST + SIDE MEMORY
===================================================== */

.memory-list {
  display: flex;

  flex-wrap: wrap;

  gap: 9px;

  margin: 26px 0;
}


.memory-list span {
  padding: 8px 12px;

  border:
    1px solid
    rgba(103, 78, 69, 0.09);

  border-radius: 999px;

  background:
    rgba(255, 255, 255, 0.68);

  color: #655b55;

  font-size: 0.82rem;

  box-shadow:
    0 5px 14px
    rgba(87, 62, 54, 0.04);
}


.side-memory {
  margin: 30px 0 20px;

  padding: 20px 21px;

  border-left:
    3px solid
    var(--accent);

  border-radius:
    0 16px 16px 0;

  background:
    rgba(255, 255, 255, 0.5);

  color: #665d57;

  font-size: 0.91rem;

  line-height: 1.65;
}


.side-memory span {
  display: block;

  margin-bottom: 7px;

  color: var(--accent);

  font-size: 0.68rem;
  font-weight: 900;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}


.tiny-joke {
  color: var(--muted) !important;

  font-size: 0.84rem !important;

  font-style: italic;

  text-align: right;
}



/* =====================================================
   NOT EVERYTHING
===================================================== */

.not-everything {
  width:
    min(
      690px,
      calc(100% - 38px)
    );

  margin: 65px auto 20px;

  padding: 35px 12px;

  text-align: center;
}


.not-everything > span {
  display: block;

  margin-bottom: 18px;

  color: #ae6578;

  font-size: 2rem;
}


.not-everything p {
  margin: 0 auto 20px;

  color: #6c615b;

  font-family: var(--serif);

  font-size:
    clamp(
      1.1rem,
      3vw,
      1.34rem
    );

  line-height: 1.8;
}


.not-everything strong {
  color: #915066;

  font-weight: 700;
}



/* =====================================================
   LOWER SECTIONS
===================================================== */

.distance-section,
.playlist-section,
.messages-section,
.finale,
.open-when-section,
.memory-machine {
  width:
    min(
      1000px,
      calc(100% - 34px)
    );

  margin: 120px auto 0;
}



/* =====================================================
   DISTANCE
===================================================== */

.distance-card {
  position: relative;

  overflow: hidden;

  padding:
    clamp(
      30px,
      7vw,
      68px
    );

  border:
    1px solid
    rgba(99, 79, 72, 0.09);

  border-radius: 42px;

  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(122, 124, 163, 0.16),
      transparent 25rem
    ),

    radial-gradient(
      circle at 5% 100%,
      rgba(209, 142, 158, 0.14),
      transparent 22rem
    ),

    #fffaf7;

  box-shadow: var(--shadow);
}


.distance-card h2 {
  max-width: 760px;
}


.distance-card > p:not(.section-kicker) {
  max-width: 730px;

  color: #645a55;
}


.distance-joke {
  margin: 31px 0 !important;

  padding: 17px 20px;

  border:
    1px dashed
    rgba(116, 117, 152, 0.26);

  border-radius: 17px;

  background:
    rgba(116, 117, 152, 0.065);

  font-style: italic;
}


.distance-joke span {
  display: inline-block;

  margin-left: 5px;

  color: #83708c;

  font-size: 0.84rem;

  font-weight: 800;
}



/* =====================================================
   DATE INVITATION
===================================================== */

.date-invitation {
  position: relative;

  max-width: 650px;

  margin: 50px auto 4px;

  padding:
    37px
    clamp(
      22px,
      5vw,
      44px
    );

  overflow: hidden;

  border:
    1px solid
    rgba(167, 73, 99, 0.2);

  border-radius: 27px;

  background:
    linear-gradient(
      145deg,
      #fff8f7,
      #fffdf9
    );

  box-shadow:
    0 18px 45px
    rgba(91, 61, 60, 0.09);

  text-align: center;
}


.date-invitation::before {
  content: "♡";

  position: absolute;

  top: -31px;
  right: 20px;

  color:
    rgba(184, 92, 116, 0.12);

  font-family: var(--serif);

  font-size: 8rem;

  transform: rotate(11deg);
}


.date-prelude {
  font-family: var(--serif);

  font-style: italic;
}


.invitation-small {
  display: block;

  margin: 19px 0 10px;

  color: var(--rose-dark);

  font-size: 0.66rem;
  font-weight: 900;

  letter-spacing: 0.16em;

  text-transform: uppercase;
}


.date-invitation h3 {
  position: relative;
  z-index: 2;

  margin: 0 auto 31px;

  max-width: 520px;

  color: #754359;

  font-family: var(--serif);

  font-size:
    clamp(
      1.7rem,
      4.5vw,
      2.5rem
    );

  font-weight: 500;

  line-height: 1.1;
}


.invitation-details {
  display: grid;

  gap: 22px;

  max-width: 470px;

  margin: 0 auto 34px;
}


.invitation-detail {
  display: grid;

  gap: 4px;
}


.invitation-label {
  color: #9c5b70;

  font-size: 0.65rem;

  font-weight: 900;

  letter-spacing: 0.16em;

  text-transform: uppercase;
}


.invitation-detail p {
  margin: 0 !important;

  color: #635753 !important;

  font-family: var(--serif);

  font-size: 1.05rem;

  line-height: 1.5;
}


.date-actions {
  position: relative;

  width: min(360px, 100%);

  min-height: 70px;

  margin: 0 auto;
}


.date-button {
  position: absolute;

  top: 6px;

  min-width: 118px;

  padding: 12px 18px;

  border: 0;

  border-radius: 999px;

  font-weight: 900;

  cursor: pointer;

  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    left 0.18s ease,
    top 0.18s ease;
}


.date-button.yes {
  left:
    calc(50% - 126px);

  background: #9f5469;

  color: white;

  box-shadow:
    0 11px 25px
    rgba(145, 70, 91, 0.19);
}


.date-button.yes:hover {
  transform:
    translateY(-2px)
    scale(1.03);
}


.date-button.no {
  left:
    calc(50% + 8px);

  background: #eee5e0;

  color: #6e625d;
}


.date-button.no.wrong {
  animation: noShake 0.35s ease;
}


@keyframes noShake {

  0%,
  100% {
    rotate: 0deg;
  }

  30% {
    rotate: -6deg;
  }

  70% {
    rotate: 6deg;
  }

}


.date-result {
  min-height: 67px;

  margin-top: 14px;

  color: #875065;

  font-family: var(--serif);

  font-size: 1.05rem;

  font-style: italic;

  line-height: 1.6;
}


.date-result.accepted {
  font-size: 1.25rem;
  font-weight: 600;
}


.date-result small {
  font-size: 0.82rem;
}


.heart-burst-container {
  position: absolute;
  inset: 0;

  overflow: hidden;

  pointer-events: none;
}


.burst-heart {
  position: absolute;

  left: 50%;
  top: 73%;

  color: #c25f7c;

  font-size: 1.15rem;

  opacity: 0;

  animation:
    burstHeart
    1.35s
    ease-out
    forwards;
}


@keyframes burstHeart {

  0% {
    opacity: 1;

    transform:
      translate(-50%, -50%)
      scale(0.5);
  }

  100% {
    opacity: 0;

    transform:
      translate(
        calc(-50% + var(--x)),
        calc(-50% + var(--y))
      )
      rotate(var(--r))
      scale(1.35);
  }

}



/* =====================================================
   SPOTIFY
===================================================== */

.playlist-section {
  display: grid;

  grid-template-columns:
    minmax(0, 0.92fr)
    minmax(320px, 1.08fr);

  gap: 36px;

  align-items: center;

  padding:
    clamp(
      28px,
      6vw,
      58px
    );

  border:
    1px solid
    rgba(99, 79, 72, 0.09);

  border-radius: 42px;

  background:
    radial-gradient(
      circle at 0% 100%,
      rgba(207, 113, 139, 0.14),
      transparent 23rem
    ),

    #fffaf7;

  box-shadow: var(--shadow);
}


.playlist-copy h2 {
  margin-bottom: 22px;
}


.playlist-copy > p:not(.section-kicker) {
  color: var(--muted);
}


.spotify-link {
  display: inline-flex;

  margin-top: 13px;

  padding: 11px 16px;

  border-radius: 999px;

  background: #262322;

  color: white;

  text-decoration: none;

  font-size: 0.85rem;

  font-weight: 800;
}


.spotify-shell {
  overflow: hidden;

  padding: 8px;

  border:
    1px solid
    rgba(80, 61, 55, 0.1);

  border-radius: 24px;

  background:
    rgba(255, 255, 255, 0.78);

  box-shadow:
    0 20px 50px
    rgba(68, 50, 44, 0.12);
}


.spotify-shell iframe {
  display: block;

  border-radius: 17px;
}



/* =====================================================
   MESSAGES
===================================================== */

.messages-section {
  padding-top: 38px;
}


.section-heading {
  max-width: 760px;

  margin: 0 auto 46px;

  text-align: center;
}


.message-grid {
  display: grid;
  place-items: center;
}


.message-shot {
  width: min(570px, 100%);
}



/* =====================================================
   FINALE
===================================================== */

.finale-intro {
  margin-bottom: 39px;
}


.finale h2 {
  margin: 0;

  font-size:
    clamp(
      4rem,
      11vw,
      7.5rem
    );

  font-weight: 500;

  line-height: 0.9;
}


.finale h2 span {
  display: block;

  color: var(--rose);

  font-style: italic;
}



/* =====================================================
   VINTAGE LETTER
===================================================== */

.vintage-letter {
  position: relative;

  max-width: 800px;

  margin: 0 auto;

  padding:
    clamp(
      38px,
      7vw,
      72px
    );

  overflow: hidden;

  border:
    1px solid
    rgba(118, 88, 65, 0.18);

  border-radius: 3px;

  background:
    linear-gradient(
      100deg,
      #f6e9c9 0%,
      #fff6df 42%,
      #f4e6c7 100%
    );

  box-shadow:
    0 27px 65px
    rgba(73, 52, 39, 0.16);

  transform: rotate(-0.18deg);
}


.vintage-letter::before {
  content: "";

  position: absolute;
  inset: 0;

  opacity: 0.34;

  pointer-events: none;

  background:
    radial-gradient(
      circle at 8% 13%,
      rgba(112, 70, 46, 0.14),
      transparent 18%
    ),

    radial-gradient(
      circle at 91% 90%,
      rgba(112, 70, 46, 0.12),
      transparent 17%
    ),

    repeating-linear-gradient(
      0deg,
      rgba(95, 71, 53, 0.027) 0,
      rgba(95, 71, 53, 0.027) 1px,
      transparent 1px,
      transparent 5px
    );
}


.letter-fold {
  position: absolute;

  pointer-events: none;

  opacity: 0.25;
}


.fold-one {
  top: 0;
  bottom: 0;

  left: 49%;

  width: 1px;

  background:
    linear-gradient(
      transparent,
      rgba(114, 83, 61, 0.22),
      transparent
    );
}


.fold-two {
  left: 0;
  right: 0;

  top: 52%;

  height: 1px;

  background:
    linear-gradient(
      to right,
      transparent,
      rgba(114, 83, 61, 0.17),
      transparent
    );
}


.letter-top {
  position: relative;
  z-index: 2;

  display: flex;

  justify-content: space-between;

  gap: 20px;

  margin-bottom: 40px;

  padding-bottom: 13px;

  border-bottom:
    1px solid
    rgba(109, 77, 55, 0.18);

  color: #806c5d;

  font-family: var(--serif);

  font-size: 0.8rem;

  font-style: italic;
}


.love-letter {
  position: relative;
  z-index: 2;

  max-width: 675px;

  margin: 0 auto;
}


.love-letter p {
  margin: 0 0 23px;

  color: #59463b;

  font-family: var(--hand);

  font-size:
    clamp(
      1.42rem,
      4vw,
      1.75rem
    );

  line-height: 1.5;
}


.letter-greeting {
  font-size:
    clamp(
      1.75rem,
      5vw,
      2.15rem
    ) !important;
}


.letter-transition {
  margin-top: 36px !important;

  color: #7f5860 !important;

  font-size:
    1.65rem !important;

  font-style: italic;
}


.letter-ending {
  margin-top: 35px !important;

  color: #81465a !important;

  font-size:
    clamp(
      1.7rem,
      5vw,
      2.1rem
    ) !important;
}


.letter-signature {
  margin-top: 45px !important;

  color: #734458 !important;

  font-size: 2rem !important;

  text-align: right;

  transform: rotate(-1deg);
}



/* =====================================================
   OPEN WHEN
===================================================== */

.open-when-section {
  margin-bottom: 90px;

  padding-top: 30px;
}


.open-when-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  gap: 58px 28px;

  align-items: start;

  margin-top: 58px;
}


.open-when-card {
  min-width: 0;

  text-align: center;
}


.envelope {
  position: relative;

  display: block;

  width:
    min(
      300px,
      82vw
    );

  aspect-ratio: 1.55 / 1;

  margin: 0 auto;

  padding: 0;

  border: 0;

  background: transparent;

  cursor: pointer;

  perspective: 1000px;
}


.envelope-back {
  position: absolute;
  inset: 0;

  border:
    1px solid
    rgba(123, 83, 70, 0.16);

  border-radius: 8px;

  background: #ead3c5;

  box-shadow:
    0 20px 40px
    rgba(90, 60, 49, 0.14);
}


.envelope-letter-preview {
  position: absolute;

  left: 9%;
  right: 9%;

  top: 14%;
  bottom: 8%;

  z-index: 2;

  display: grid;

  place-items: center;

  border:
    1px solid
    rgba(108, 83, 66, 0.12);

  background: #fff8e7;

  color: #8c4a5e;

  font-family: var(--hand);

  font-size: 1.45rem;

  transition:
    transform 0.75s
    cubic-bezier(
      0.23,
      0.82,
      0.22,
      1
    );

  transform: translateY(22%);
}


.envelope-front {
  position: absolute;
  inset: 0;

  z-index: 4;

  overflow: hidden;

  border-radius: 8px;

  pointer-events: none;
}


.envelope-front::before,
.envelope-front::after {
  content: "";

  position: absolute;

  bottom: -1px;

  width: 72%;
  height: 94%;

  background: #e2c1b1;
}


.envelope-front::before {
  left: -22%;

  clip-path:
    polygon(
      0 20%,
      100% 100%,
      0 100%
    );
}


.envelope-front::after {
  right: -22%;

  clip-path:
    polygon(
      100% 20%,
      0 100%,
      100% 100%
    );
}


.envelope-flap {
  position: absolute;

  top: 0;
  left: 0;

  z-index: 5;

  width: 100%;
  height: 57%;

  background: #edcfc0;

  clip-path:
    polygon(
      0 0,
      100% 0,
      50% 100%
    );

  transform-origin: top center;

  transform: rotateX(0deg);

  transition:
    transform 0.65s
    cubic-bezier(
      0.3,
      0,
      0.15,
      1
    );
}


.envelope-heart {
  position: absolute;

  top: 46%;
  left: 50%;

  z-index: 8;

  display: grid;

  place-items: center;

  width: 42px;
  height: 42px;

  border-radius: 50%;

  background: #a74d65;

  color: #fff4ef;

  box-shadow:
    0 7px 16px
    rgba(110, 50, 69, 0.2);

  transform:
    translate(-50%, -50%);

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}


.envelope.open .envelope-flap {
  z-index: 1;

  transform: rotateX(180deg);
}


.envelope.open .envelope-letter-preview {
  transform: translateY(-47%);
}


.envelope.open .envelope-heart {
  opacity: 0;

  transform:
    translate(-50%, -40%)
    scale(0.75);
}


.envelope-title {
  margin: 26px auto 0;

  max-width: 360px;

  color: #744b59;

  font-family: var(--serif);

  font-size:
    clamp(
      1.15rem,
      3.5vw,
      1.55rem
    );

  font-style: italic;

  line-height: 1.35;
}


.open-letter-content {
  display: grid;

  grid-template-rows: 0fr;

  margin-top: 0;

  opacity: 0;

  transition:
    grid-template-rows 0.65s ease,
    opacity 0.55s ease,
    margin 0.55s ease;
}


.open-letter-content > * {
  overflow: hidden;
}


.open-letter-content.visible {
  grid-template-rows: 1fr;

  opacity: 1;

  margin-top: 38px;
}


.mini-letter {
  position: relative;

  padding:
    clamp(
      27px,
      5vw,
      43px
    );

  border:
    1px solid
    rgba(119, 86, 67, 0.15);

  border-radius: 4px;

  background:
    linear-gradient(
      #fff9e9,
      #f8efda
    );

  box-shadow:
    0 22px 50px
    rgba(84, 60, 45, 0.12);

  text-align: left;
}


.mini-letter p {
  margin: 0 0 20px;

  color: #594b42;

  font-family: var(--hand);

  font-size:
    clamp(
      1.3rem,
      3.6vw,
      1.55rem
    );

  line-height: 1.5;
}


.mini-letter-date {
  color: #8c5665 !important;

  font-size: 1.35rem !important;
}


.mini-letter-highlight {
  margin: 29px 0 !important;

  color: #8c465c !important;

  font-size:
    clamp(
      1.5rem,
      4vw,
      1.85rem
    ) !important;

  text-align: center;
}


.mini-letter-signature {
  margin-top: 34px !important;

  color: #7e4759 !important;

  text-align: right;
}



/* =====================================================
   RANDOM MEMORY MACHINE
===================================================== */

.memory-machine {
  max-width: 720px;

  padding:
    55px
    clamp(
      20px,
      6vw,
      55px
    );

  border:
    1px solid
    rgba(104, 78, 71, 0.09);

  border-radius: 42px;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(218, 128, 151, 0.12),
      transparent 22rem
    ),
    rgba(255,250,246,0.85);

  box-shadow: var(--shadow);

  text-align: center;
}


.memory-machine h2 {
  font-size:
    clamp(
      2.6rem,
      7vw,
      4.6rem
    );
}


.memory-machine-intro {
  margin: 18px 0 30px;

  color: var(--muted);

  font-family: var(--serif);

  font-style: italic;
}


.memory-button {
  position: relative;

  display: block;

  width:
    clamp(
      150px,
      34vw,
      220px
    );

  margin: 0 auto;

  padding: 0;

  border: 0;

  background: transparent;

  cursor: pointer;

  filter:
    drop-shadow(
      0 18px 20px
      rgba(113, 48, 62, 0.17)
    );

  transition:
    transform 0.22s ease,
    filter 0.22s ease;
}


.memory-button::after {
  content: "";

  position: absolute;

  inset: 8%;

  border-radius: 50%;

  box-shadow:
    0 0 0 0
    rgba(201, 89, 121, 0.25);

  animation:
    memoryPulse
    2.3s
    ease-out
    infinite;

  pointer-events: none;
}


@keyframes memoryPulse {

  0% {
    box-shadow:
      0 0 0 0
      rgba(201, 89, 121, 0.25);
  }

  70% {
    box-shadow:
      0 0 0 20px
      rgba(201, 89, 121, 0);
  }

  100% {
    box-shadow:
      0 0 0 20px
      rgba(201, 89, 121, 0);
  }

}


.memory-button:hover {
  transform:
    scale(1.04)
    translateY(-3px);
}


.memory-button:active {
  transform:
    scale(0.94);
}


.memory-button.clicked {
  animation:
    memoryButtonPop
    0.38s ease;
}


@keyframes memoryButtonPop {

  0%,
  100% {
    transform: scale(1);
  }

  45% {
    transform: scale(0.9);
  }

  75% {
    transform: scale(1.06);
  }

}


.random-memory-output {
  min-height: 145px;

  display: grid;

  place-content: center;

  gap: 8px;

  margin: 34px auto 0;

  padding: 27px;

  border:
    1px dashed
    rgba(169, 79, 104, 0.24);

  border-radius: 23px;

  background:
    rgba(255,255,255,0.6);

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}


.random-memory-output.changing {
  opacity: 0;

  transform:
    translateY(8px)
    scale(0.98);
}


.random-memory-output > span {
  color: #bc6079;

  font-size: 1.5rem;
}


.random-memory-output p {
  margin: 0;

  color: #774b59;

  font-family: var(--serif);

  font-size:
    clamp(
      1.25rem,
      4vw,
      1.8rem
    );

  font-style: italic;

  line-height: 1.4;
}



/* =====================================================
   TRUE ENDING
===================================================== */

.true-ending {
  min-height: 55svh;

  display: grid;

  place-items: center;

  width:
    min(
      700px,
      calc(100% - 40px)
    );

  margin: 0 auto;

  padding: 80px 20px;
}


.true-ending p {
  color: #8f5366;

  font-family: var(--serif);

  font-size:
    clamp(
      1.7rem,
      5vw,
      2.8rem
    );

  font-style: italic;

  text-align: center;
}



/* =====================================================
   FOOTER
===================================================== */

footer {
  padding: 26px 20px 46px;

  color: #958983;

  font-size: 0.75rem;

  text-align: center;
}



/* =====================================================
   REVEAL
===================================================== */

.reveal {
  opacity: 0;

  transform: translateY(34px);

  transition:
    opacity 0.8s
    cubic-bezier(
      0.2,
      0.65,
      0.25,
      1
    ),

    transform 0.8s
    cubic-bezier(
      0.2,
      0.65,
      0.25,
      1
    );
}


.reveal.is-visible {
  opacity: 1;

  transform: translateY(0);
}



/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 780px) {

  .lock-screen {
    padding: 30px 17px;
  }


  .lock-inner h1 {
    margin-bottom: 36px;
  }


  .lock-swan {
    opacity: 0.2;
  }


  .swan-1,
  .swan-4 {
    opacity: 0.25;
  }


  .swan-5 {
    display: none;
  }


  .hero {
    padding-inline: 20px;
  }


  .hero::before {
    inset: 14px;

    border-radius: 30px;
  }


  .hero h1 {
    font-size:
      clamp(
        4rem,
        20vw,
        6.35rem
      );
  }


  .time-intro {
    margin-bottom: 90px;
  }


  .time-stat {
    min-height: 57svh;
  }


  .timeline {
    width:
      min(
        100% - 22px,
        720px
      );
  }


  .timeline::before {
    left: 20px;
  }


  .timeline-item {
    grid-template-columns: 1fr;

    gap: 10px;

    padding-left: 40px;

    margin-bottom: 44px;
  }


  .timeline-dot {
    top: 13px;
    left: 13px;
  }


  .date-badge {
    display: flex;

    align-items: baseline;

    gap: 7px;

    width: fit-content;
    min-width: 72px;

    margin: 0 0 2px;

    padding: 8px 12px;

    border-radius: 999px;
  }


  .date-badge span {
    font-size: 1.4rem;
  }


  .date-badge small {
    margin: 0;
  }


  .timeline-card {
    padding: 24px 19px 26px;

    border-radius: 25px;
  }


  .timeline-card::after {
    top: 10px;
    right: 14px;

    font-size: 1.55rem;
  }


  .timeline-card h3 {
    padding-right: 17px;
  }


  .story-break {
    width: calc(100% - 42px);

    margin-left: 31px;

    padding-inline: 12px;
  }


  .thought-stack {
    margin-left: 0;
  }


  .distance-section,
  .playlist-section,
  .messages-section,
  .finale,
  .open-when-section,
  .memory-machine {
    width: calc(100% - 24px);

    margin-top: 88px;
  }


  .distance-card {
    border-radius: 30px;
  }


  .playlist-section {
    grid-template-columns: 1fr;

    padding: 27px 18px 20px;

    border-radius: 30px;
  }


  .spotify-shell {
    padding: 6px;
  }


  .spotify-shell iframe {
    height: 420px;
  }


  .memory-shot {
    width: 100%;

    padding: 7px;
  }


  .tilt-left,
  .tilt-right {
    transform: none;
  }


  .vintage-letter {
    padding: 36px 24px;

    transform: none;
  }


  .letter-top {
    margin-bottom: 30px;
  }


  .open-when-grid {
    grid-template-columns: 1fr;

    gap: 67px;
  }


  .date-invitation {
    padding: 31px 18px;
  }


  .memory-machine {
    border-radius: 30px;
  }

}



/* =====================================================
   SMALL PHONE
===================================================== */

@media (max-width: 430px) {

  body {
    line-height: 1.66;
  }


  .hero-copy {
    font-size: 0.98rem;
  }


  .timeline-card p {
    font-size: 0.96rem;
  }


  .timeline-item {
    padding-left: 34px;
  }


  .timeline::before {
    left: 17px;
  }


  .timeline-dot {
    left: 10px;
  }


  .memory-list {
    gap: 7px;
  }


  .memory-list span {
    font-size: 0.76rem;
  }


  .spotify-shell iframe {
    height: 390px;
  }


  .pin {
    width: 39px;
  }


  .pin-inputs {
    gap: 6px;
  }


  .morse-box {
    padding:
      13px 12px;
  }


  .morse-box code {
    font-size: 0.74rem;

    letter-spacing: 0.045em;
  }


  .date-actions {
    width: 295px;
  }


  .date-button {
    min-width: 103px;
  }


  .date-button.yes {
    left: 32px;
  }


  .date-button.no {
    left: 159px;
  }


  .envelope {
    width:
      min(
        295px,
        86vw
      );
  }

}




/* =====================================================
   SURGICAL FINAL ADDITIONS
   These extend the recovered design without replacing it.
===================================================== */


/* FIRST MESSAGE ARTIFACT */

.first-artifact {
  width:
    min(
      760px,
      calc(100% - 38px)
    );

  margin: 0 auto 78px;

  text-align: center;
}


.first-artifact > .section-kicker {
  margin-bottom: 24px;
}


.first-message-shot {
  width: min(610px, 100%);

  margin-top: 0;

  transform: rotate(-0.45deg);
}


.first-artifact-copy {
  max-width: 620px;

  margin: 31px auto 0;

  color: #675c56;

  font-family: var(--serif);

  font-size:
    clamp(
      1.05rem,
      3vw,
      1.28rem
    );

  line-height: 1.75;
}


.first-artifact-copy p {
  margin: 0 0 17px;
}


.first-artifact-highlight {
  width: fit-content;

  margin:
    25px auto 0 !important;

  padding:
    7px 15px;

  border-radius: 999px;

  background:
    rgba(184, 92, 116, 0.09);

  color: #955067;

  font-family: var(--hand);

  font-size:
    clamp(
      1.45rem,
      4vw,
      1.8rem
    );
}




.first-artifact-impact {
  margin: 24px auto 0 !important;
  color: #8d4056;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 4vw, 2.1rem);
  font-style: italic;
  line-height: 1.25;
}


/* PLAYLIST */

.playlist-day-line {
  margin:
    0 0 15px !important;

  color: #9b5368 !important;

  font-family: var(--serif);

  font-style: italic;

  font-weight: 600;
}


/* MESSAGE EXPANSION */

.message-grid {
  gap: 38px;
}


.messages-afterword {
  max-width: 680px;

  margin: 48px auto 0;

  padding:
    clamp(
      27px,
      5vw,
      40px
    );

  border:
    1px solid
    rgba(184, 92, 116, 0.12);

  border-radius: 26px;

  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(184, 92, 116, 0.09),
      transparent 20rem
    ),
    rgba(255, 250, 246, 0.74);

  box-shadow: var(--soft-shadow);

  text-align: center;
}


.messages-afterword p {
  margin: 0 0 18px;

  color: #675c56;

  font-family: var(--serif);

  font-size:
    clamp(
      1.03rem,
      3vw,
      1.22rem
    );

  line-height: 1.7;
}


.messages-afterword p:last-child {
  margin-bottom: 0;
}


.messages-afterword-title {
  color: #8e4d62 !important;

  font-size:
    clamp(
      1.35rem,
      4vw,
      1.85rem
    ) !important;

  font-style: italic;
}


/* FINAL LETTER EXTRA EMPHASIS */

.letter-focus {
  width: fit-content;

  margin:
    32px auto !important;

  padding:
    5px 15px;

  border-radius: 18px;

  background:
    rgba(170, 84, 107, 0.09);

  color: #84475a !important;

  font-size:
    clamp(
      1.8rem,
      5vw,
      2.25rem
    ) !important;

  text-align: center;

  transform: rotate(-0.7deg);
}


/* MONTH SUMMARY */

.month-summary {
  position: relative;

  width:
    min(
      930px,
      calc(100% - 34px)
    );

  margin: 115px auto 0;

  padding:
    clamp(
      30px,
      6vw,
      54px
    );

  border:
    1px solid
    rgba(99, 79, 72, 0.09);

  border-radius: 42px;

  background:
    radial-gradient(
      circle at 0% 0%,
      rgba(185, 101, 124, 0.10),
      transparent 20rem
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(113, 140, 118, 0.10),
      transparent 22rem
    ),
    rgba(255, 250, 247, 0.92);

  box-shadow: var(--shadow);
}


.month-summary .section-heading {
  margin-bottom: 42px;
}


.month-summary .section-heading h2 {
  margin: 0;

  color: #5a424a;

  font-family: var(--serif);

  font-size:
    clamp(
      2.5rem,
      7vw,
      4.6rem
    );

  font-weight: 500;

  line-height: 1;

  letter-spacing: -0.045em;
}


.summary-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  gap: 18px;
}


.summary-card {
  position: relative;

  min-height: 215px;

  padding:
    28px 25px;

  border:
    1px solid
    rgba(106, 80, 71, 0.09);

  border-radius:
    23px 28px 22px 27px;

  background:
    #fffaf6;

  box-shadow:
    0 13px 33px
    rgba(75, 55, 48, 0.065);
}


.summary-card:nth-child(2),
.summary-card:nth-child(5) {
  background: #f8fbf7;
}


.summary-card:nth-child(3),
.summary-card:nth-child(6) {
  background: #fff7f8;
}


.summary-card::before {
  content: "";

  position: absolute;

  top: -6px;
  left: 50%;

  width: 66px;
  height: 17px;

  transform:
    translateX(-50%)
    rotate(-2deg);

  background:
    rgba(244, 229, 211, 0.75);

  border:
    1px solid
    rgba(104, 78, 69, 0.06);
}


.summary-card > span {
  display: block;

  margin-bottom: 13px;

  font-size: 1.8rem;
}


.summary-card h3 {
  margin: 0 0 10px;

  color: #735061;

  font-family: var(--serif);

  font-size:
    clamp(
      1.25rem,
      3.6vw,
      1.65rem
    );

  font-weight: 500;

  font-style: italic;
}


.summary-card p {
  margin: 0;

  color: #695e58;

  font-size: 0.95rem;

  line-height: 1.65;
}


.summary-final {
  max-width: 670px;

  margin: 42px auto 0;

  padding:
    27px 24px;

  border-top:
    1px solid
    rgba(118, 85, 77, 0.12);

  text-align: center;
}


.summary-final p {
  margin: 0 0 8px;

  color: #746863;

  font-family: var(--serif);

  font-style: italic;
}


.summary-final strong {
  color: #8f5064;

  font-family: var(--serif);

  font-size:
    clamp(
      1.3rem,
      4vw,
      1.75rem
    );

  font-weight: 500;

  line-height: 1.4;
}


/* TRUE ENDING UPDATE */

.true-ending {
  min-height: 62svh;

  align-content: center;

  gap: 12px;
}


.true-ending p {
  margin: 0;
}


.true-ending-small {
  color: #756a65 !important;

  font-size:
    clamp(
      1.15rem,
      3.5vw,
      1.55rem
    ) !important;
}


.true-ending-main {
  max-width: 650px;

  color: #8f5366 !important;

  font-size:
    clamp(
      1.9rem,
      5.5vw,
      3rem
    ) !important;
}


/* MOBILE ADDITIONS */

@media (max-width: 780px) {

  .first-artifact {
    width: calc(100% - 30px);

    margin-bottom: 60px;
  }


  .first-artifact-copy {
    text-align: left;
  }


  .first-artifact-highlight {
    text-align: center;
  }


  .message-grid {
    gap: 28px;
  }


  .messages-afterword {
    padding: 25px 20px;

    border-radius: 22px;
  }


  .month-summary {
    width: calc(100% - 24px);

    margin-top: 88px;

    padding: 28px 18px;

    border-radius: 30px;
  }


  .summary-grid {
    grid-template-columns: 1fr;

    gap: 15px;
  }


  .summary-card {
    min-height: 0;

    padding: 24px 21px;
  }


  .summary-final {
    margin-top: 32px;

    padding:
      25px 10px
      4px;
  }

}


@media (max-width: 430px) {

  .first-artifact {
    width: calc(100% - 24px);
  }


  .first-message-shot {
    width: 100%;
  }


  .month-summary {
    padding:
      26px 15px;
  }

}



/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }


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


  .reveal,
  .time-stat {
    opacity: 1;

    transform: none;
  }

}
/* AUG 11 REMAKE — final polish */
.timeline-start-signal{width:min(760px,100%);margin:0 auto 38px;text-align:center;padding:28px 18px 8px}.timeline-start-signal>span:first-child{display:block;font-size:2rem;color:var(--rose);margin-bottom:8px}.timeline-start-signal p{margin:0 0 8px!important;text-transform:uppercase;letter-spacing:.16em;font-size:.7rem;font-weight:900;color:var(--rose-dark)!important}.timeline-start-signal h2{margin:0;font-family:var(--serif);font-size:clamp(2.2rem,7vw,4.7rem);line-height:1.02;font-weight:500}.start-line{display:block;width:1px;height:58px;background:linear-gradient(var(--rose),transparent);margin:24px auto 0}.timeline-bridge,.big-story-transition{margin:42px auto;padding:34px 22px;text-align:center;border-top:1px solid rgba(141,64,86,.2);border-bottom:1px solid rgba(141,64,86,.2);background:linear-gradient(90deg,transparent,rgba(184,92,116,.07),transparent)}.timeline-bridge span,.big-story-transition span{display:block;font-size:.68rem;letter-spacing:.18em;text-transform:uppercase;color:var(--rose-dark);font-weight:900}.timeline-bridge strong,.big-story-transition strong{display:block;margin:7px 0;font-family:var(--serif);font-size:clamp(1.5rem,4vw,2.5rem);font-weight:500}.timeline-bridge small,.big-story-transition small{color:var(--muted)}.chemie-note{display:grid;gap:4px;margin:18px 0 28px;padding:18px 20px;border-radius:18px;background:var(--accent-soft);border:1px dashed color-mix(in srgb,var(--accent) 38%,transparent)}.chemie-note strong{font-size:1rem;letter-spacing:.08em;color:var(--accent)}.chemie-note span{font-size:.9rem;color:var(--muted)}.timeline-mini-transition{grid-column:1/-1;text-align:center;margin:-12px 0 44px;padding:22px}.timeline-mini-transition span{display:block;font-family:var(--hand);font-size:2rem;color:var(--rose-dark)}.timeline-mini-transition small{color:var(--muted)}.memory-list-big{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px!important}.memory-list-big span{padding:16px 18px!important;font-size:.92rem!important;font-weight:900;text-transform:uppercase;letter-spacing:.045em;box-shadow:0 10px 24px rgba(74,53,47,.07)}.love-bubbles{display:flex;flex-wrap:wrap;gap:10px;margin:28px 0}.love-bubbles span{padding:10px 14px;border-radius:999px;background:rgba(184,92,116,.09);border:1px solid rgba(184,92,116,.15);font-family:var(--hand);font-size:1.2rem;color:#7f4356}.text-memory-button{display:grid!important;place-items:center;gap:2px;width:min(330px,86vw)!important;min-height:150px!important;margin:28px auto!important;border:1px solid rgba(141,64,86,.18)!important;border-radius:30px!important;background:linear-gradient(145deg,#fffaf7,#f7e9e8)!important;color:var(--rose-dark)!important;box-shadow:var(--soft-shadow)!important}.text-memory-button>span{font-size:2rem}.text-memory-button strong{font-size:.82rem;letter-spacing:.14em}.text-memory-button small{font-family:var(--hand);font-size:1.2rem}.css-swans{display:block}.css-swan{position:absolute;font-family:var(--serif);font-size:clamp(6rem,20vw,15rem);color:rgba(255,255,255,.08);animation:swanFloat 9s ease-in-out infinite}.css-swan.swan-1{top:-4%;left:-2%;transform:rotate(-14deg)}.css-swan.swan-2{top:4%;right:-2%;transform:rotate(14deg)}.css-swan.swan-3{bottom:-8%;left:3%;transform:rotate(9deg)}.css-swan.swan-4{bottom:-5%;right:2%;transform:rotate(-9deg)}
/* different letter colors, same envelope style */
.open-when-card:nth-child(6n+1) .envelope-letter-preview{background:#fff1f2;color:#8d4056}.open-when-card:nth-child(6n+2) .envelope-letter-preview{background:#f2f5ff;color:#59627f}.open-when-card:nth-child(6n+3) .envelope-letter-preview{background:#f1f7ef;color:#58705e}.open-when-card:nth-child(6n+4) .envelope-letter-preview{background:#fff7e9;color:#8a6842}.open-when-card:nth-child(6n+5) .envelope-letter-preview{background:#f8effb;color:#76547d}.open-when-card:nth-child(6n) .envelope-letter-preview{background:#eef7f7;color:#4f7474}
.no-explode{animation:noExplode .65s ease forwards!important;pointer-events:none!important}@keyframes noExplode{0%{opacity:1;transform:scale(1) rotate(0)}35%{transform:scale(1.25) rotate(-10deg)}65%{transform:scale(.8) rotate(14deg)}100%{opacity:0;transform:scale(0) rotate(35deg);filter:blur(8px)}}
@media(max-width:650px){.memory-list-big{grid-template-columns:1fr 1fr}.timeline-start-signal{padding-inline:10px}.big-story-transition{margin-inline:-6px}.love-bubbles span{font-size:1.05rem}}

/* =====================================================
   FINAL AUGUST 12 POLISH
   keeps the original site architecture, only targeted fixes
===================================================== */

/* subtle section separators */
.section-divider {
  width: min(820px, calc(100% - 46px));
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 92px auto 0;
  color: rgba(141, 64, 86, 0.55);
  font-family: var(--serif);
  font-size: 1.1rem;
}

.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(141, 64, 86, 0.2),
    transparent
  );
}

.section-divider span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
}

/* controlled png decorations */
.page-decor {
  position: absolute;
  z-index: 1;
  width: auto;
  pointer-events: none;
  user-select: none;
  object-fit: contain;
  opacity: 0.72;
  filter: drop-shadow(0 12px 24px rgba(80, 55, 47, 0.08));
}

.hero-decor-stars {
  width: clamp(58px, 8vw, 104px);
  top: 12%;
  right: 8%;
  opacity: 0.45;
  transform: rotate(7deg);
}

.hero-decor-heart {
  width: clamp(50px, 7vw, 88px);
  bottom: 13%;
  left: 7%;
  opacity: 0.34;
  transform: rotate(-10deg);
}

.first-artifact,
.finale,
.open-when-section,
.month-summary {
  position: relative;
}

.first-artifact-decor {
  z-index: -1;
}

.first-artifact-stars {
  width: clamp(62px, 8vw, 100px);
  top: 4%;
  right: 2%;
  opacity: 0.42;
}

.first-artifact-letter {
  width: clamp(70px, 10vw, 118px);
  left: -3%;
  top: 41%;
  opacity: 0.28;
  transform: rotate(-8deg);
}

.finale-flower {
  width: clamp(82px, 11vw, 130px);
  right: -2%;
  top: 7%;
  opacity: 0.4;
  transform: rotate(8deg);
}

.open-when-decor {
  width: clamp(72px, 10vw, 120px);
  top: 4%;
  left: 0;
  opacity: 0.26;
  transform: rotate(-7deg);
}

.summary-pizza {
  width: clamp(74px, 10vw, 120px);
  right: 1%;
  top: 5%;
  opacity: 0.42;
  transform: rotate(9deg);
}

/* timeline beginning */
.timeline-start-signal {
  position: relative;
  width: min(760px, 100%);
  margin: 0 auto 34px;
  padding: 36px 18px 8px;
  text-align: center;
}

.timeline-start-signal h2 {
  max-width: 680px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(2.35rem, 7vw, 4.9rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.timeline-start-signal > span:first-child {
  display: block;
  margin-bottom: 10px;
  color: var(--rose);
  font-size: 2rem;
}

.timeline-bridge-simple {
  margin: 48px auto 12px;
  padding: 39px 18px;
  border-top: 1px solid rgba(141, 64, 86, 0.18);
  border-bottom: 1px solid rgba(141, 64, 86, 0.18);
  background: linear-gradient(90deg, transparent, rgba(184, 92, 116, 0.08), transparent);
}

.timeline-bridge-simple strong {
  display: block;
  color: #7b4658;
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 3.65rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1;
}

.chemistry-trigger-shot {
  margin-top: 24px;
  margin-bottom: 31px;
}

/* 17 july thought chaos */
.thought-stack-chaos {
  width: min(500px, 100%);
  margin: 30px auto 34px;
}

.thought-stack-chaos p {
  display: block;
  width: fit-content;
  max-width: 94%;
}

.thought-stack-chaos p:nth-child(1) { margin-left: 0 !important; }
.thought-stack-chaos p:nth-child(2) { margin-left: 44px !important; }
.thought-stack-chaos p:nth-child(3) { margin-left: 12px !important; }
.thought-stack-chaos p:nth-child(4) { margin-left: 67px !important; }
.thought-stack-chaos p:nth-child(5) { margin-left: 28px !important; }

.story-break-big {
  width: min(760px, calc(100% - 34px));
  margin: 22px auto 24px;
  padding: 92px 25px;
}

.story-break-big span {
  margin-bottom: 30px;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
}

.story-break-big strong {
  display: block;
  padding: 19px 16px;
  border-radius: 22px;
  background: linear-gradient(90deg, transparent, rgba(184, 92, 116, 0.1), transparent);
  color: #7c4258;
  font-size: clamp(2rem, 6vw, 3.7rem);
  line-height: 1.05;
}

.story-break-space {
  height: clamp(44px, 8vw, 82px);
}

.evening-transition {
  width: min(620px, calc(100% - 42px));
  margin: 0 auto 58px;
  text-align: center;
}

.evening-transition span {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid rgba(141, 64, 86, 0.14);
  border-radius: 999px;
  background: rgba(255, 250, 246, 0.78);
  color: var(--rose-dark);
  font-family: var(--hand);
  font-size: 1.45rem;
  box-shadow: 0 10px 26px rgba(74, 53, 47, 0.06);
}

.relationship-question {
  margin-bottom: 13px !important;
}

.relationship-time {
  width: fit-content;
  margin: 0 auto 30px !important;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(158, 104, 133, 0.11);
  color: #85526d !important;
  font-family: var(--mono);
  font-size: 0.76rem !important;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.big-wir {
  display: inline-block;
  margin-left: 0.12em;
  color: var(--accent);
  font-size: 1.35em;
  font-weight: 900;
  letter-spacing: 0.03em;
}

/* the date/day memory bubbles should read like a list, not a cluster */
.memory-list-vertical {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  width: min(540px, 100%);
  margin: 28px auto 31px;
}

.memory-list-vertical span {
  display: block;
  width: 100%;
  padding: 14px 17px !important;
  border-radius: 17px !important;
  font-size: 0.87rem !important;
  font-weight: 850;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  text-align: left;
}

/* top five messages */
.message-grid {
  gap: 28px;
}

.messages-afterword {
  max-width: 720px;
}

/* final letter love list */
.love-bubbles-stacked {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(560px, 100%);
  margin: 34px auto 42px;
}

.love-bubbles-stacked .love-pop {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 11px 19px;
  border-radius: 999px;
  background: rgba(184, 92, 116, 0.085);
  border: 1px solid rgba(184, 92, 116, 0.15);
  color: #7f4356;
  font-family: var(--hand);
  font-size: clamp(1.25rem, 4vw, 1.55rem);
  text-align: center;
  opacity: 0;
  transform: translateY(18px) scale(0.94);
  transition:
    opacity 0.55s ease,
    transform 0.65s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.love-bubbles-stacked .love-pop.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.love-bubbles-stacked .love-pop-last {
  margin-top: 7px;
  background: rgba(184, 92, 116, 0.14);
  color: var(--rose-dark);
  font-size: clamp(1.45rem, 4.4vw, 1.8rem);
}

.before-love-line {
  max-width: 590px;
  margin: 39px auto 17px !important;
  color: #73505a !important;
  text-align: center;
}

.letter-focus {
  margin: 16px auto 37px !important;
  padding: 18px 12px;
  color: #87465b !important;
  font-size: clamp(1.8rem, 5vw, 2.35rem) !important;
  text-align: center;
}

/* same envelope style, slightly different letter papers */
.open-when-card:nth-child(10n+1) .mini-letter { background: linear-gradient(#fff7ee, #f7eadb); }
.open-when-card:nth-child(10n+2) .mini-letter { background: linear-gradient(#fff3f5, #f6e5e9); }
.open-when-card:nth-child(10n+3) .mini-letter { background: linear-gradient(#f5f8ee, #eaf0df); }
.open-when-card:nth-child(10n+4) .mini-letter { background: linear-gradient(#f5f3fb, #e9e5f3); }
.open-when-card:nth-child(10n+5) .mini-letter { background: linear-gradient(#fff8e9, #f3ead5); }
.open-when-card:nth-child(10n+6) .mini-letter { background: linear-gradient(#f5f8f8, #e7efed); }
.open-when-card:nth-child(10n+7) .mini-letter { background: linear-gradient(#fff4ef, #f5e5dc); }
.open-when-card:nth-child(10n+8) .mini-letter { background: linear-gradient(#f6f2fa, #ebe3f1); }
.open-when-card:nth-child(10n+9) .mini-letter { background: linear-gradient(#f1f7f2, #e3eee5); }
.open-when-card:nth-child(10n) .mini-letter { background: linear-gradient(#fff6f0, #f4e8df); }

/* real image memory button is back */
.memory-machine .memory-button {
  width: clamp(150px, 34vw, 220px);
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.memory-machine .memory-button img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* mobile keeps decorations tasteful */
@media (max-width: 780px) {
  .section-divider {
    margin-top: 72px;
  }

  .page-decor {
    opacity: 0.28;
  }

  .hero-decor-stars {
    top: 8%;
    right: 6%;
    width: 58px;
  }

  .hero-decor-heart {
    left: 5%;
    bottom: 10%;
    width: 48px;
  }

  .first-artifact-letter,
  .open-when-decor,
  .finale-flower {
    display: none;
  }

  .first-artifact-stars,
  .summary-pizza {
    width: 62px;
    opacity: 0.24;
  }

  .story-break-big {
    padding: 76px 18px;
  }

  .story-break-big strong {
    padding-inline: 6px;
  }

  .thought-stack-chaos p:nth-child(2) { margin-left: 23px !important; }
  .thought-stack-chaos p:nth-child(3) { margin-left: 4px !important; }
  .thought-stack-chaos p:nth-child(4) { margin-left: 29px !important; }
  .thought-stack-chaos p:nth-child(5) { margin-left: 12px !important; }

  .memory-list-vertical {
    width: 100%;
  }

  .memory-list-vertical span {
    font-size: 0.8rem !important;
  }
}

@media (max-width: 430px) {
  .lock-swan {
    width: clamp(82px, 29vw, 126px);
    opacity: 0.18;
  }

  .swan-1 { top: 1%; left: -7%; }
  .swan-2 { top: 8%; right: -8%; }
  .swan-3 { bottom: 1%; left: -4%; }
  .swan-4 { bottom: 2%; right: -6%; }
  .swan-5 { display: none; }

  .timeline-start-signal {
    padding-top: 25px;
  }

  .timeline-bridge-simple strong {
    font-size: 2.25rem;
  }

  .love-bubbles-stacked .love-pop {
    width: 94%;
  }
}

.true-ending-forever {
  max-width: 620px;
  margin: 26px auto 0;
  color: #75475a;
  font-family: var(--hand);
  font-size: clamp(1.45rem, 4.5vw, 2rem);
  line-height: 1.35;
  text-align: center;
}


/* =====================================================
   AUG 13 TEXT PASS + MOBILE LETTER FIX
===================================================== */

/* 17 july gets its own tiny heart without changing the badge layout */
.special-date {
  position: relative;
  border-color: rgba(168, 77, 105, 0.25);
  box-shadow:
    0 9px 25px rgba(77, 57, 50, 0.05),
    0 0 0 3px rgba(168, 77, 105, 0.045);
}

.special-date::after {
  content: "♥";
  position: absolute;
  top: -10px;
  right: -8px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff8f8;
  color: #a84d69;
  border: 1px solid rgba(168, 77, 105, 0.18);
  box-shadow: 0 6px 16px rgba(95, 55, 68, 0.09);
  font-size: 0.72rem;
}

.sleep-insider {
  margin: -10px 0 4px !important;
  color: #7f475a !important;
  font-family: var(--mono) !important;
  font-size: clamp(1.1rem, 3.8vw, 1.35rem) !important;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
}

.true-ending-combined {
  max-width: 680px;
  margin: 0 auto !important;
  color: #7b5d68 !important;
  font-family: var(--serif) !important;
  font-size: clamp(1.55rem, 4.7vw, 2.45rem) !important;
  font-style: italic;
  line-height: 1.55;
  text-align: center;
}

.true-ending-signature {
  margin: 30px auto 0 !important;
  color: #a84d69 !important;
  font-family: var(--hand) !important;
  font-size: clamp(2.5rem, 8vw, 4.2rem) !important;
  font-style: normal !important;
  line-height: 1;
  text-align: center;
  transform: rotate(-1.2deg);
  text-shadow: 0 9px 24px rgba(168, 77, 105, 0.1);
}

/* Extra safety for very tall reveal sections on phones.
   JS now reveals at 1% intersection, but this also prevents an oversized
   section from staying hidden if a mobile browser calculates ratios oddly. */
@media (max-width: 780px) {
  .finale.reveal.is-visible,
  .open-when-section.reveal.is-visible,
  .month-summary.reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .special-date::after {
    top: -8px;
    right: -8px;
  }
}
