:root {
  --paper: #fffaf6;
  --surface: #fffefd;
  --ink: #2b2024;
  --muted: #8a7b80;
  --rose: #b96f86;
  --rose-soft: #f8dfe7;
  --rose-pale: #fff0f5;
  --green: #7c9671;
  --green-soft: #e9f3e4;
  --sage-pale: #f4faf1;
  --butter: #fff4c8;
  --thread: rgba(185, 111, 134, 0.34);
  --thread-green: rgba(124, 150, 113, 0.32);
  --line: rgba(35, 27, 31, 0.12);
  --shadow: 0 28px 90px rgba(94, 61, 73, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Nunito", "Avenir Next", Arial, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 16px 16px, rgba(255, 255, 255, 0.92) 0 2px, transparent 2.6px),
    radial-gradient(ellipse 15px 8px at 10px 12px, transparent 47%, var(--thread) 51% 58%, transparent 62%),
    radial-gradient(ellipse 15px 8px at 34px 12px, transparent 47%, var(--thread-green) 51% 58%, transparent 62%),
    linear-gradient(45deg, transparent 0 47%, rgba(185, 111, 134, 0.08) 48% 52%, transparent 53% 100%),
    linear-gradient(-45deg, transparent 0 47%, rgba(124, 150, 113, 0.07) 48% 52%, transparent 53% 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.62), rgba(255, 250, 246, 0.78)),
    var(--paper);
  background-size: 32px 32px, 48px 36px, 48px 36px, 24px 24px, 24px 24px, auto, auto;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    repeating-linear-gradient(0deg, rgba(116, 91, 98, 0.04) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(116, 91, 98, 0.035) 0 1px, transparent 1px 6px);
  mix-blend-mode: multiply;
  opacity: 0.78;
  pointer-events: none;
}

button {
  font: inherit;
}

img {
  display: block;
}

.desktop-message {
  display: none;
}

.card-app,
.scene {
  width: 100vw;
  height: 100vh;
}

.card-app {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.scene {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  pointer-events: none;
  transition:
    opacity 420ms ease,
    transform 560ms cubic-bezier(0.2, 0.8, 0.2, 1),
    clip-path 560ms cubic-bezier(0.2, 0.8, 0.2, 1);
  clip-path: inset(100% 0 0 0 round 28px);
}

.scene::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    radial-gradient(circle at 10px 10px, rgba(255, 255, 255, 0.86) 0 1.8px, transparent 2.2px),
    radial-gradient(ellipse 14px 7px at 8px 12px, transparent 48%, rgba(185, 111, 134, 0.12) 52% 59%, transparent 63%),
    radial-gradient(ellipse 14px 7px at 30px 12px, transparent 48%, rgba(124, 150, 113, 0.1) 52% 59%, transparent 63%);
  background-size: 28px 28px, 44px 34px, 44px 34px;
  opacity: 0.66;
  pointer-events: none;
}

.scene > * {
  position: relative;
  z-index: 1;
}

.scene.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  clip-path: inset(0 0 0 0 round 0);
}

.scene-intro.is-active {
  clip-path: inset(0);
}

.scene.is-active .bouquet-panel,
.scene.is-active .note-card,
.scene.is-active .photo-shell {
  animation: card-lands 760ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes card-lands {
  from {
    opacity: 0;
    transform: translateY(28px) rotate(-0.8deg) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0) scale(1);
  }
}

.thread-sweep {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
}

.thread-sweep span {
  position: absolute;
  top: 50%;
  left: -18vw;
  width: 136vw;
  height: 2px;
  background:
    repeating-linear-gradient(90deg, var(--rose) 0 12px, transparent 12px 21px);
  box-shadow: 0 0 0 8px rgba(255, 250, 246, 0.86);
  transform: rotate(-8deg) translateX(-110%);
}

.thread-sweep span:nth-child(2) {
  top: 54%;
  background:
    repeating-linear-gradient(90deg, var(--green) 0 10px, transparent 10px 19px);
  transform: rotate(6deg) translateX(-110%);
}

.card-app.is-threading .thread-sweep {
  opacity: 1;
}

.card-app.is-threading .thread-sweep span {
  animation: thread-cross 680ms cubic-bezier(0.48, 0, 0.16, 1) both;
}

.card-app.is-threading .thread-sweep span:nth-child(2) {
  animation-delay: 80ms;
}

@keyframes thread-cross {
  0% { transform: rotate(-8deg) translateX(-110%); }
  46% { transform: rotate(-8deg) translateX(0); }
  100% { transform: rotate(-8deg) translateX(110%); }
}

.scene.is-leaving {
  opacity: 0;
  transform: translateY(-24px) scale(1.015);
  clip-path: inset(0 0 100% 0 round 28px);
}

.scene-cover {
  background: #fffaf6;
}

.stationery-start {
  position: relative;
  display: grid;
  width: min(720px, calc(100vw - 160px));
  height: min(520px, 64vh);
  place-items: center;
}

.stationery-start::before {
  position: absolute;
  inset: 24px 0 0 26px;
  content: "";
  border: 1px solid rgba(185, 111, 134, 0.13);
  background:
    linear-gradient(180deg, rgba(255, 254, 253, 0.78), rgba(255, 250, 246, 0.66)),
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(124, 150, 113, 0.06) 35px, transparent 36px);
  box-shadow: 0 24px 80px rgba(94, 61, 73, 0.08);
  transform: rotate(-2.4deg);
}

.stationery-start::after {
  position: absolute;
  inset: 0 22px 28px 0;
  content: "";
  border: 1px solid rgba(124, 150, 113, 0.13);
  background:
    radial-gradient(circle at 20px 20px, rgba(185, 111, 134, 0.08) 0 2px, transparent 2.5px),
    rgba(255, 255, 253, 0.62);
  background-size: 34px 34px, auto;
  transform: rotate(1.7deg);
}

.thread-card {
  position: relative;
  z-index: 1;
  width: 430px;
  height: 220px;
  opacity: 0.96;
}

.loose-thread {
  position: absolute;
  top: 96px;
  left: 20px;
  width: 390px;
  height: 54px;
  border-top: 3px solid rgba(185, 111, 134, 0.7);
  border-radius: 50%;
  transform: rotate(-3deg);
  filter: drop-shadow(0 5px 0 rgba(255, 255, 255, 0.65));
  animation: thread-breathe 3.8s ease-in-out infinite;
}

.thread-loop {
  position: absolute;
  width: 86px;
  height: 42px;
  border: 3px solid rgba(185, 111, 134, 0.58);
  border-bottom-color: transparent;
  border-radius: 50% 50% 0 0;
}

.loop-one {
  top: 74px;
  left: 84px;
  transform: rotate(-12deg);
}

.loop-two {
  top: 66px;
  left: 173px;
  border-color: rgba(124, 150, 113, 0.58);
  border-bottom-color: transparent;
  transform: rotate(8deg);
}

.loop-three {
  top: 80px;
  left: 260px;
  transform: rotate(-5deg);
}

.pull-thread {
  position: relative;
  z-index: 2;
  align-self: end;
  margin-bottom: 92px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px dashed rgba(185, 111, 134, 0.52);
  background: transparent;
  color: var(--rose);
  cursor: pointer;
  font-family: "Caveat", "Bradley Hand", cursive;
  font-size: 1.72rem;
}

.pull-thread span {
  display: inline-block;
  animation: thread-label-in 1.1s ease both;
}

.pull-thread:hover span {
  transform: translateX(8px);
}

@keyframes thread-breathe {
  50% { transform: rotate(-3deg) translateY(-5px); }
}

@keyframes thread-label-in {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    clip-path: inset(0);
    transform: translateY(0);
  }
}

.sealed-card {
  position: relative;
  display: grid;
  width: min(540px, 54vw);
  min-width: 420px;
  aspect-ratio: 4 / 5;
  align-content: center;
  justify-items: center;
  gap: 16px;
  padding: 56px;
  border: 1px solid rgba(185, 111, 134, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 253, 250, 0.98), rgba(255, 240, 245, 0.94) 52%, rgba(244, 250, 241, 0.96)),
    repeating-linear-gradient(90deg, rgba(185, 111, 134, 0.08) 0 1px, transparent 1px 16px);
  box-shadow: 0 28px 90px rgba(185, 111, 134, 0.16);
  color: var(--ink);
  cursor: pointer;
  transform-style: preserve-3d;
  opacity: 0;
  transform: translateY(34px) rotateX(8deg) rotate(-1.8deg) scale(0.96);
  transition:
    transform 560ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 560ms ease;
}

.scene-cover.is-active .sealed-card {
  animation: card-folds-in 820ms cubic-bezier(0.2, 0.8, 0.2, 1) 130ms both;
}

.sealed-card:hover {
  transform: translateY(-8px) rotate(-0.7deg);
  box-shadow: 0 34px 100px rgba(185, 111, 134, 0.2);
}

.sealed-card::before {
  position: absolute;
  inset: 22px;
  content: "";
  border: 1px solid rgba(184, 90, 117, 0.28);
  pointer-events: none;
}

.sealed-card::after,
.card-flap {
  position: absolute;
  inset: 22px;
  content: "";
  pointer-events: none;
}

.sealed-card::after {
  border-top: 1px solid rgba(185, 111, 134, 0.2);
  background:
    linear-gradient(150deg, transparent 49.6%, rgba(185, 111, 134, 0.2) 50%, transparent 50.5%),
    linear-gradient(210deg, transparent 49.6%, rgba(124, 150, 113, 0.16) 50%, transparent 50.5%);
  opacity: 0.58;
}

.card-flap {
  top: 22px;
  bottom: auto;
  height: 42%;
  background:
    linear-gradient(160deg, rgba(255, 244, 248, 0.86), rgba(255, 253, 249, 0.3));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top;
}

.sealed-card.is-opening {
  transform: translateY(-12px) rotateX(9deg) scale(1.02);
}

.sealed-card.is-opening .card-flap {
  animation: open-flap 620ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes open-flap {
  to {
    opacity: 0.25;
    transform: rotateX(72deg) translateY(-10px);
  }
}

@keyframes card-folds-in {
  0% {
    opacity: 0;
    transform: translateY(34px) rotateX(8deg) rotate(-1.8deg) scale(0.96);
    clip-path: inset(50% 0 50% 0);
  }
  62% {
    opacity: 1;
    transform: translateY(-6px) rotateX(-3deg) rotate(0.4deg) scale(1.01);
    clip-path: inset(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0) rotate(0) scale(1);
    clip-path: inset(0);
  }
}

.corner-stitch {
  position: absolute;
  width: 112px;
  height: 112px;
  border: 1px dashed rgba(185, 111, 134, 0.42);
  opacity: 0.72;
}

.corner-stitch-a {
  top: 34px;
  left: 34px;
  border-right: 0;
  border-bottom: 0;
}

.corner-stitch-b {
  right: 34px;
  bottom: 34px;
  border-top: 0;
  border-left: 0;
}

.heart-stitch {
  z-index: 1;
  color: var(--rose);
  font-family: "Caveat", "Bradley Hand", cursive;
  font-size: 2.7rem;
}

.cover-small,
.cover-title,
.cover-action {
  z-index: 1;
}

.cover-small {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cover-title {
  max-width: 9ch;
  color: var(--rose);
  font-family: "Nunito", "Avenir Next", Arial, sans-serif;
  font-size: clamp(2.8rem, 4vw, 4.1rem);
  font-weight: 500;
  line-height: 0.98;
  text-align: center;
  text-transform: lowercase;
}

.cover-title span {
  display: block;
}

.cover-action {
  margin-top: 10px;
  color: var(--muted);
  font-family: "Caveat", "Bradley Hand", cursive;
  font-size: 1.35rem;
}

.scene-bouquet,
.scene-note,
.scene-photos {
  background: var(--paper);
}

.bouquet-panel,
.note-card,
.photo-shell {
  width: min(1180px, calc(100vw - 96px));
  height: min(720px, calc(100vh - 96px));
  border: 1px solid var(--line);
  background: rgba(255, 254, 253, 0.88);
  box-shadow: var(--shadow);
}

.bouquet-panel {
  position: relative;
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  align-items: center;
  padding: 64px;
  overflow: hidden;
}

.bouquet-panel::before {
  position: absolute;
  inset: 22px;
  content: "";
  border: 1px solid rgba(124, 150, 113, 0.14);
  pointer-events: none;
}

.crochet-bouquet {
  position: relative;
  width: 430px;
  height: 530px;
  justify-self: center;
  filter: drop-shadow(0 24px 32px rgba(87, 71, 62, 0.1));
}

.stem {
  position: absolute;
  bottom: 78px;
  left: 50%;
  width: 8px;
  height: 310px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0 5px, transparent 5px 11px),
    var(--green);
  transform-origin: bottom;
}

.scene.is-active .stem {
  animation: stem-grow 780ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.scene.is-active .lily i {
  animation: petal-open 720ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.scene.is-active .lily-two i { animation-delay: 120ms; }
.scene.is-active .lily-three i { animation-delay: 210ms; }

@keyframes stem-grow {
  from { clip-path: inset(100% 0 0 0); }
  to { clip-path: inset(0); }
}

@keyframes petal-open {
  from {
    opacity: 0;
    scale: 0.38;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

.stem-one { transform: rotate(-16deg); }
.stem-two { transform: rotate(2deg); }
.stem-three { transform: rotate(18deg); }

.lily {
  position: absolute;
  width: 146px;
  height: 146px;
}

.lily-one { top: 78px; left: 54px; }
.lily-two { top: 36px; left: 178px; }
.lily-three { top: 118px; right: 34px; }

.lily i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 88px;
  border: 1px solid rgba(185, 111, 134, 0.16);
  border-radius: 50% 50% 46% 46%;
  background: var(--butter);
  transform-origin: 50% 86%;
}

.lily i:nth-child(1) { transform: translate(-50%, -88%) rotate(-54deg); }
.lily i:nth-child(2) { transform: translate(-50%, -88%) rotate(-24deg); }
.lily i:nth-child(3) { transform: translate(-50%, -88%) rotate(8deg); }
.lily i:nth-child(4) { transform: translate(-50%, -88%) rotate(40deg); }
.lily i:nth-child(5) { transform: translate(-50%, -88%) rotate(72deg); }

.wrap {
  position: absolute;
  bottom: 28px;
  left: 166px;
  width: 132px;
  height: 132px;
  background:
    repeating-linear-gradient(45deg, rgba(185, 111, 134, 0.12) 0 8px, transparent 8px 16px),
    linear-gradient(135deg, var(--rose-soft), #fff8f0);
  transform: rotate(45deg);
}

.yarn-ball {
  position: absolute;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(184, 90, 117, 0.18);
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 44% 44%, transparent 0 8px, rgba(185, 111, 134, 0.16) 8px 10px),
    var(--rose-soft);
}

.yarn-left {
  left: 42px;
  bottom: 42px;
}

.yarn-right {
  top: 42px;
  right: 42px;
  background:
    repeating-radial-gradient(circle at 44% 44%, transparent 0 8px, rgba(124, 150, 113, 0.18) 8px 10px),
    var(--green-soft);
}

.bouquet-copy {
  position: relative;
  z-index: 1;
}

.bouquet-copy p,
.note-kicker {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
}

.bouquet-copy h1 {
  max-width: 13ch;
  margin: 0;
  color: var(--ink);
  font-family: "Caveat", "Bradley Hand", cursive;
  font-size: clamp(4rem, 6vw, 6.6rem);
  font-weight: 600;
  line-height: 0.88;
}

.scene.is-active .bouquet-copy h1,
.scene.is-active .bouquet-copy .soft-button {
  animation: soft-write-in 780ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.scene.is-active .bouquet-copy .soft-button {
  animation-delay: 260ms;
}

@keyframes soft-write-in {
  from {
    opacity: 0;
    transform: translateY(14px);
    clip-path: inset(0 100% 0 0);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0);
  }
}

.soft-button,
.text-button,
.round-button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.soft-button {
  margin-top: 34px;
  padding: 13px 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.note-card {
  display: grid;
  align-content: start;
  gap: 22px;
  padding: 46px 58px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(185, 111, 134, 0.08) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, transparent 0 36px, rgba(124, 150, 113, 0.08) 37px, transparent 38px),
    rgba(255, 254, 253, 0.92);
  background-size: 100% 100%, 100% 38px, auto;
}

.letter-note {
  max-width: 1000px;
  min-height: 540px;
}

.letter-note p {
  margin: 0 0 13px;
  color: var(--ink);
  font-size: clamp(0.86rem, 1vw, 1rem);
  line-height: 1.52;
}

.letter-note.is-writing p::after {
  display: inline-block;
  width: 0.48em;
  color: var(--rose);
  content: "|";
  animation: cursor-blink 860ms steps(1) infinite;
}

.letter-note.is-writing p:not(.is-current)::after {
  content: "";
}

.letter-note.is-complete p {
  animation: ink-settle 420ms ease both;
}

.letter-note .note-kicker {
  margin-bottom: 18px;
  color: var(--rose);
  font-family: "Caveat", "Bradley Hand", cursive;
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  font-weight: 600;
  line-height: 1;
  text-transform: none;
}

.signoff {
  color: var(--rose) !important;
  font-family: "Caveat", "Bradley Hand", cursive;
  font-size: clamp(1.55rem, 2.2vw, 2.2rem) !important;
  line-height: 1.08 !important;
  white-space: pre-line;
}

.postscript {
  margin-top: 16px !important;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted) !important;
  font-size: clamp(0.78rem, 0.92vw, 0.9rem) !important;
}

@keyframes cursor-blink {
  50% { opacity: 0; }
}

@keyframes ink-settle {
  from { filter: blur(0.5px); }
  to { filter: blur(0); }
}

.photo-shell {
  display: grid;
  width: min(1540px, calc(100vw - 36px));
  height: min(960px, calc(100vh - 28px));
  grid-template-rows: 34px minmax(0, 1fr) 42px;
  gap: 10px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 247, 250, 0.9)),
    var(--surface);
}

.photo-topline,
.photo-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.year-readout {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 2;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  background: rgba(255, 253, 249, 0.72);
  backdrop-filter: blur(12px);
  color: var(--rose);
  font-family: "Nunito", "Avenir Next", Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1;
}

.year-readout.is-changing {
  animation: year-pop 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes year-pop {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.text-button {
  padding: 7px 11px;
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.photo-frame {
  position: relative;
  width: auto;
  height: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  justify-self: center;
  align-self: center;
  padding: 0;
  overflow: hidden;
  border: 0;
  background:
    radial-gradient(circle at 8px 8px, rgba(185, 111, 134, 0.05) 0 2px, transparent 2.4px),
    radial-gradient(circle at 24px 24px, rgba(124, 150, 113, 0.06) 0 2px, transparent 2.4px),
    #fffdf9;
  background-size: 32px 32px, 32px 32px, auto;
  box-shadow: 0 18px 48px rgba(67, 45, 54, 0.1);
}

.photo-frame::before,
.photo-frame::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  content: "";
  opacity: 0;
}

.photo-frame::before {
  background:
    repeating-linear-gradient(90deg, transparent 0 16px, rgba(255, 255, 255, 0.72) 16px 18px),
    linear-gradient(90deg, transparent, rgba(255, 240, 245, 0.78), transparent);
  transform: translateX(-100%);
}

.photo-frame::after {
  inset: auto 0 0 0;
  height: 3px;
  background:
    repeating-linear-gradient(90deg, var(--rose) 0 10px, transparent 10px 18px);
  transform: translateX(-100%);
}

.photo-frame.is-loading::before,
.photo-frame.is-changing::before {
  opacity: 1;
  animation: photo-wipe 620ms cubic-bezier(0.48, 0, 0.16, 1) both;
}

.photo-frame.is-loading::after,
.photo-frame.is-changing::after {
  opacity: 1;
  animation: stitch-run 620ms cubic-bezier(0.48, 0, 0.16, 1) both;
}

.photo-frame.is-loading::after {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  content: "loading";
  color: var(--muted);
  font-family: "Caveat", "Bradley Hand", cursive;
  font-size: 1.35rem;
}

.photo-frame.is-loading::after {
  height: auto;
  background: transparent;
  transform: none;
  animation: none;
}

@keyframes photo-wipe {
  0% { transform: translateX(-100%); }
  52% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

@keyframes stitch-run {
  to { transform: translateX(100%); }
}

.photo-click {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.photo-click img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  animation: none;
  background: #fffdf9;
}

.photo-click img.is-swapping {
  animation: photo-thread-in 640ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes photo-thread-in {
  from {
    opacity: 0;
    transform: translateX(32px) scale(1.015);
    clip-path: inset(0 0 0 100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
    clip-path: inset(0);
  }
}

.photo-controls {
  gap: 16px;
}

.round-button {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  font-size: 1.1rem;
  border-radius: 50%;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.round-button:hover,
.text-button:hover,
.soft-button:hover {
  background: var(--rose-soft);
  color: var(--ink);
  transform: translateY(-1px);
}

.year-slider {
  width: min(880px, 70vw);
  accent-color: var(--rose);
}

.year-slider::-webkit-slider-runnable-track {
  height: 2px;
  background: rgba(35, 27, 31, 0.16);
}

.year-slider::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -8px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 4px 16px rgba(185, 111, 134, 0.22);
  appearance: none;
}

@media (max-width: 900px) {
  body {
    overflow: hidden;
    background: var(--paper);
  }

  .card-app {
    display: none;
  }

  .desktop-message {
    display: grid;
    height: 100vh;
    place-items: center;
    align-content: center;
    padding: 28px;
    text-align: center;
  }

  .desktop-message h1 {
    max-width: 12ch;
    margin: 0;
    color: var(--rose);
    font-family: "Nunito", "Avenir Next", Arial, sans-serif;
    font-size: 3rem;
    font-weight: 500;
    line-height: 1;
  }

  .desktop-message p {
    max-width: 320px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.5;
  }
}

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