﻿* {
      box-sizing: border-box;
    }

    /* Font Utilities */
    .font-poppins {
      font-family: Poppins, sans-serif;
    }

    .font-quicksand {
      font-family: Quicksand, sans-serif;
    }

    .font-dancing {
      font-family: "Dancing Script", cursive;
    }

    .font-kalam {
      font-family: Kalam, cursive;
    }

    .shadow-soft {
      box-shadow: 0 24px 70px rgba(244, 114, 182, .25);
    }

    .shadow-glow {
      box-shadow: 0 0 55px rgba(244, 114, 182, .42);
    }

    /* Page Layout */
    html {
      scroll-behavior: smooth;
      max-width: 100%;
      overflow-x: clip;
    }

    body {
      width: 100%;
      max-width: 100%;
      min-height: 100vh;
      overflow-x: clip;
      position: relative;
      background:
        radial-gradient(circle at 10% 10%, rgba(255, 182, 193, .82), transparent 28rem),
        radial-gradient(circle at 90% 20%, rgba(251, 207, 232, .8), transparent 26rem),
        radial-gradient(circle at 30% 90%, rgba(254, 215, 170, .55), transparent 26rem),
        linear-gradient(135deg, #fff7ed 0%, #fff1f2 38%, #fdf2f8 72%, #ffffff 100%);
    }

    body.overlay-lock {
      height: 100vh;
      overflow: hidden;
      touch-action: none;
    }

    header,
    main,
    section,
    footer {
      max-width: 100%;
      overflow-x: clip;
    }

    .glass {
      background: rgba(255, 255, 255, .58);
      border: 1px solid rgba(255, 255, 255, .78);
      backdrop-filter: blur(3px);
      -webkit-backdrop-filter: blur(3px);
    }

    /* Hero Section */
    .hero-polaroid {
      border-radius: 7px;
      box-shadow: 0 28px 70px rgba(190, 18, 60, .18);
      transform: rotate(-2.5deg);
    }

    .hero-polaroid img {
      display: block;
      border-radius: 4px;
    }

    .glow-border {
      position: relative;
    }

    .glow-border::before {
      content: "";
      position: absolute;
      inset: -1px;
      border-radius: inherit;
      padding: 1px;
      background: linear-gradient(135deg, rgba(244, 114, 182, .9), rgba(251, 191, 36, .5), rgba(251, 113, 133, .85));
      mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      mask-composite: exclude;
      pointer-events: none;
    }

    .floating-heart {
      position: fixed;
      width: 18px;
      height: 18px;
      pointer-events: none;
      z-index: 2;
      opacity: .45;
      transform: rotate(-45deg);
      background: rgba(244, 114, 182, .75);
    }

    .floating-heart::before,
    .floating-heart::after {
      content: "";
      position: absolute;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: inherit;
    }

    .floating-heart::before {
      top: -9px;
      left: 0;
    }

    .floating-heart::after {
      left: 9px;
      top: 0;
    }

    .sparkle {
      position: fixed;
      width: 7px;
      height: 7px;
      border-radius: 999px;
      background: rgba(255, 255, 255, .95);
      box-shadow: 0 0 18px rgba(244, 114, 182, .85);
      pointer-events: none;
      z-index: 2;
    }

    /* Gallery Section */
    .photo-card {
      transform-style: preserve-3d;
      transition: transform .45s ease, box-shadow .45s ease, filter .45s ease;
      flex: 0 0 19rem;
    }

    .photo-card:hover {
      box-shadow: none;
      animation-play-state: paused;
      z-index: 4;
    }

    .gallery-viewport {
      position: relative;
      width: 100%;
      max-width: 100vw;
      overflow-y: visible;
      padding: 148px 0 178px;
    }

    .gallery-viewport::before,
    .gallery-viewport::after {
      content: "";
      position: absolute;
      top: 0;
      bottom: 0;
      z-index: 3;
      width: min(9vw, 120px);
      pointer-events: none;
    }

    .gallery-viewport::before {
      left: 0;
      background: linear-gradient(90deg, rgba(255, 241, 242, .96), rgba(255, 241, 242, 0));
    }

    .gallery-viewport::after {
      right: 0;
      background: linear-gradient(270deg, rgba(255, 241, 242, .96), rgba(255, 241, 242, 0));
    }

    .gallery-marquee {
      overflow-x: clip;
      overflow-y: visible;
      min-height: 540px;
      padding: 0;
    }

    .gallery-track {
      display: flex;
      width: max-content;
      gap: 2.4rem;
      padding: 120px 0 132px;
      will-change: transform;
    }

    .polaroid-card {
      position: relative;
      overflow: visible;
      border-radius: 4px;
      background: #fff;
      padding: 14px 14px 16px;
      box-shadow: none;
      transition: transform .45s ease, filter .45s ease;
      transform: rotate(var(--tilt, -1.5deg));
    }

    .photo-card:nth-child(10n + 1) .polaroid-card { --tilt: -3deg; }
    .photo-card:nth-child(10n + 2) .polaroid-card { --tilt: 4deg; }
    .photo-card:nth-child(10n + 3) .polaroid-card { --tilt: -5deg; }
    .photo-card:nth-child(10n + 4) .polaroid-card { --tilt: 6deg; }
    .photo-card:nth-child(10n + 5) .polaroid-card { --tilt: -7deg; }
    .photo-card:nth-child(10n + 6) .polaroid-card { --tilt: 8deg; }
    .photo-card:nth-child(10n + 7) .polaroid-card { --tilt: -9deg; }
    .photo-card:nth-child(10n + 8) .polaroid-card { --tilt: 10deg; }
    .photo-card:nth-child(10n + 9) .polaroid-card { --tilt: -6deg; }
    .photo-card:nth-child(10n + 10) .polaroid-card { --tilt: 5deg; }

    .polaroid-card:hover {
      transform: translateY(-10px) rotate(var(--tilt, -1.5deg)) scale(1.07);
    }

    .photo-card:hover .polaroid-card {
      transform: translateY(-10px) rotate(var(--tilt, -1.5deg)) scale(1.07);
    }

    .polaroid-photo {
      height: 238px;
      overflow: hidden;
      border-radius: 3px;
      background: #ffe4ef;
    }

    .polaroid-figure {
      display: flex;
      min-height: 330px;
      flex-direction: column;
      gap: 12px;
      margin: 0;
    }

    .polaroid-card img,
    .polaroid-card video {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform .5s ease, filter .5s ease;
    }

    .polaroid-card:hover img,
    .polaroid-card:hover video {
      transform: none;
      filter: saturate(1.08);
    }

    .polaroid-card figcaption {
      display: flex;
      min-height: 64px;
      flex-direction: column;
      justify-content: center;
      overflow: hidden;
      color: #be123c;
      font-family: Quicksand, sans-serif;
      font-size: 11px;
      font-weight: 800;
      line-height: 1.45;
      text-align: center;
    }

    .polaroid-card figcaption strong,
    .polaroid-card figcaption em {
      display: block;
      font-style: normal;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .polaroid-card figcaption strong {
      white-space: nowrap;
      color: #9f1239;
    }

    .polaroid-card figcaption em {
      margin-top: 2px;
      color: #e11d48;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
    }

    .surprise-particle {
      position: fixed;
      z-index: 1100;
      pointer-events: none;
      font-size: 18px;
      opacity: .98;
      filter: drop-shadow(0 8px 14px rgba(244, 63, 94, .28));
    }

    /* Timeline Section */
    #timelineGrid {
      position: relative;
      display: flex;
      flex-direction: column;
      gap: 4.8rem;
      max-width: 980px;
      margin-left: auto;
      margin-right: auto;
    }

    #timelineGrid::before {
      content: "";
      position: absolute;
      left: 50%;
      top: 0;
      bottom: 0;
      width: 2px;
      transform: translateX(-50%);
      background: linear-gradient(#f9a8d4, #f43f5e, #f9a8d4);
      opacity: .45;
    }

    .timeline-item {
      position: relative;
      display: grid;
      grid-template-columns: 1fr 48px 1fr;
      align-items: start;
      gap: 1.4rem;
    }

    .timeline-item.is-left .timeline-year {
      grid-column: 3;
    }

    .timeline-item.is-left .timeline-card {
      grid-column: 1;
      grid-row: 2;
      text-align: right;
    }

    .timeline-item.is-right .timeline-year {
      grid-column: 1;
      justify-self: end;
    }

    .timeline-item.is-right .timeline-card {
      grid-column: 3;
      grid-row: 2;
    }

    .timeline-year {
      position: relative;
      z-index: 2;
      width: max-content;
      min-width: 140px;
      border-radius: 999px;
      background: linear-gradient(135deg, #e879f9, #fb7185);
      padding: 12px 24px;
      color: #fff;
      font-family: Quicksand, sans-serif;
      font-size: 13px;
      font-weight: 800;
      text-align: center;
      box-shadow: 0 16px 35px rgba(244, 63, 94, .24);
    }

    .timeline-dot {
      position: relative;
      z-index: 3;
      grid-column: 2;
      grid-row: 1 / span 2;
      justify-self: center;
      width: 22px;
      height: 22px;
      margin-top: 12px;
      border-radius: 999px;
      background: #fb7185;
      border: 5px solid #fff;
      box-shadow: 0 0 0 2px rgba(244, 114, 182, .32), 0 12px 28px rgba(244, 63, 94, .24);
    }

    .timeline-card {
      position: relative;
      z-index: 2;
      border-radius: 1.4rem;
      padding: 1.5rem;
    }

    .gift-panel {
      max-height: calc(100vh - 48px);
      overflow-y: auto;
    }

    .gift-coupon {
      border: 1px solid rgba(244, 114, 182, .18);
    }

    /* Footer */
    .site-footer {
      text-align: left;
    }

    .footer-inner {
      display: grid;
      grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
      gap: 2rem;
      align-items: end;
      border-top: 1px solid rgba(244, 114, 182, .22);
      padding: 2rem 0 0;
    }

    .footer-copy {
      max-width: 540px;
      justify-self: end;
    }

    .footer-links {
      grid-column: 1 / -1;
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
      border-top: 1px solid rgba(244, 114, 182, .14);
      padding-top: 1.1rem;
    }

    .footer-links a {
      transition: color .2s ease, transform .2s ease;
    }

    .footer-links a:hover {
      color: #be123c;
      transform: translateY(-1px);
    }

    /* Navbar */
    .nav-link {
      position: relative;
      display: inline-flex;
      align-items: center;
      min-height: 32px;
      color: #f43f5e;
      transition: color .22s ease, transform .22s ease;
    }

    .nav-link::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: 1px;
      height: 2px;
      border-radius: 999px;
      background: linear-gradient(90deg, #fb7185, #f472b6);
      transform: scaleX(0);
      transform-origin: center;
      transition: transform .22s ease;
    }

    .nav-link:hover,
    .nav-link.active {
      color: #be123c;
      transform: translateY(-1px);
    }

    .nav-link:hover::after,
    .nav-link.active::after {
      transform: scaleX(1);
    }

    /* Start Overlay and Modals */
    .start-overlay,
    .gift-modal,
    .message-modal,
    .letter-modal {
      opacity: 0;
      pointer-events: none;
      transition: opacity .3s ease;
    }

    .start-overlay {
      backdrop-filter: blur(22px);
      -webkit-backdrop-filter: blur(22px);
    }

    .gift-modal,
    .message-modal,
    .letter-modal {
      backdrop-filter: blur(3px);
      -webkit-backdrop-filter: blur(3px);
    }

    .start-overlay.active,
    .gift-modal.active,
    .message-modal.active,
    .letter-modal.active {
      opacity: 1;
      pointer-events: auto;
    }

    .letter-modal-panel {
      max-height: calc(100vh - 48px);
      overflow-y: auto;
    }

    .letter-writing {
      min-height: 350px;
      background:
        linear-gradient(rgba(251, 113, 133, .16) 1px, transparent 1px) 0 1.78rem / 100% 2.15rem,
        linear-gradient(90deg, rgba(251, 113, 133, .22) 1px, transparent 1px) 2.15rem 0 / 100% 100%,
        rgba(255, 255, 255, .88);
    }

    .typed-letter {
      white-space: pre-wrap;
      color: #9f1239;
      font-family: Kalam, cursive;
      font-size: clamp(1.05rem, 1.55vw, 1.32rem);
      font-weight: 700;
      line-height: 2.15rem;
      padding-left: 1.45rem;
    }

    .hero-title,
    .hero-subtitle,
    .footer-copy,
    .typed-letter {
      overflow-wrap: anywhere;
    }

    .letter-caret {
      display: none;
      width: 2px;
      height: 2rem;
      margin-left: 4px;
      vertical-align: -6px;
      background: #fb7185;
      animation: caretBlink .72s steps(1) infinite;
    }

    .letter-caret.active {
      display: inline-block;
    }

    /* Doll Character */
    .doll-wrap {
      position: fixed;
      left: 0;
      top: 0;
      width: 112px;
      height: 154px;
      z-index: 80;
      pointer-events: none;
      will-change: transform;
      filter: drop-shadow(0 24px 30px rgba(244, 114, 182, .24));
    }

    .doll {
      position: relative;
      width: 112px;
      height: 154px;
      transform-origin: center bottom;
      animation: dollJump .72s cubic-bezier(.2,.9,.2,1) infinite;
    }

    .doll-wrap.laugh .doll {
      animation: dollLaugh .34s cubic-bezier(.2,.95,.25,1) infinite;
    }

    .doll-wrap.angry .doll {
      animation: dollSitAngry .44s ease-in-out infinite;
    }

    .doll-wrap.cry .doll {
      animation: dollCry .6s ease-in-out infinite;
    }

    .doll-wrap.roll .doll {
      animation: dollGroundRoll .9s ease-in-out infinite;
      transform-origin: center center;
    }

    .doll-ear {
      position: absolute;
      top: -8px;
      width: 27px;
      height: 42px;
      border-radius: 999px 999px 60% 60%;
      background: linear-gradient(160deg, #fff, #ffe4ef);
      border: 2px solid rgba(244, 114, 182, .42);
      z-index: 1;
    }

    .doll-ear.left {
      left: 23px;
      transform: rotate(-26deg);
    }

    .doll-ear.right {
      right: 23px;
      transform: rotate(26deg);
    }

    .doll-head {
      position: absolute;
      left: 19px;
      top: 9px;
      width: 74px;
      height: 67px;
      border-radius: 50%;
      background: linear-gradient(150deg, #fff, #fff1f2);
      border: 2px solid rgba(244, 114, 182, .45);
      box-shadow: 0 14px 35px rgba(244, 114, 182, .25);
      z-index: 3;
    }

    .brow {
      position: absolute;
      top: 24px;
      width: 15px;
      height: 5px;
      border-top: 3px solid #814256;
      opacity: 0;
      z-index: 4;
    }

    .brow.left {
      left: 19px;
      transform: rotate(18deg);
    }

    .brow.right {
      right: 19px;
      transform: rotate(-18deg);
    }

    .eye {
      position: absolute;
      top: 31px;
      width: 9px;
      height: 12px;
      border-radius: 999px;
      background: #814256;
      animation: blink 4s infinite;
      z-index: 4;
    }

    .eye.left {
      left: 23px;
    }

    .eye.right {
      right: 23px;
    }

    .doll-wrap.laugh .eye {
      height: 7px;
      top: 35px;
      border-radius: 999px;
      background: transparent;
      border-top: 3px solid #814256;
    }

    .doll-wrap.angry .brow,
    .doll-wrap.cry .brow,
    .doll-wrap.roll .brow {
      opacity: 1;
    }

    .doll-wrap.angry .eye {
      width: 12px;
      height: 6px;
      top: 33px;
      background: transparent;
      border-top: 4px solid #7f1d1d;
      border-radius: 0;
    }

    .doll-wrap.cry .eye {
      height: 7px;
      top: 35px;
      background: transparent;
      border-top: 3px solid #814256;
    }

    .doll-wrap.roll .eye {
      height: 7px;
      top: 35px;
      background: transparent;
      border: 0;
      border-top: 3px solid #814256;
      border-radius: 999px;
    }

    .cheek {
      position: absolute;
      top: 44px;
      width: 14px;
      height: 8px;
      border-radius: 999px;
      background: rgba(251, 113, 133, .32);
      z-index: 4;
    }

    .cheek.left {
      left: 10px;
    }

    .cheek.right {
      right: 10px;
    }

    .mouth {
      position: absolute;
      left: 29px;
      top: 49px;
      width: 17px;
      height: 8px;
      border-bottom: 3px solid #be5674;
      border-radius: 0 0 999px 999px;
      z-index: 4;
    }

    .doll-wrap.laugh .mouth {
      left: 28px;
      top: 45px;
      width: 19px;
      height: 15px;
      border: 0;
      border-radius: 0 0 999px 999px;
      background: #be5674;
    }

    .doll-wrap.cry .mouth {
      top: 53px;
      border-bottom: 0;
      border-top: 3px solid #814256;
      border-radius: 999px 999px 0 0;
      background: transparent;
    }

    .doll-wrap.angry .mouth {
      left: 28px;
      top: 53px;
      width: 19px;
      height: 4px;
      border: 0;
      border-radius: 999px;
      background: #7f1d1d;
    }

    .doll-wrap.roll .mouth {
      top: 53px;
      border-bottom: 0;
      border-top: 3px solid #814256;
      border-radius: 999px 999px 0 0;
      background: transparent;
    }

    .tear {
      position: absolute;
      top: 46px;
      width: 7px;
      height: 16px;
      border-radius: 999px;
      background: rgba(56, 189, 248, .88);
      opacity: 0;
      z-index: 5;
    }

    .tear.left {
      left: 20px;
    }

    .tear.right {
      right: 20px;
    }

    .doll-wrap.cry .tear,
    .doll-wrap.angry .tear,
    .doll-wrap.roll .tear {
      animation: tearDrop .75s infinite;
    }

    .doll-body {
      position: absolute;
      left: 25px;
      top: 61px;
      width: 62px;
      height: 78px;
      border-radius: 31px 31px 25px 25px;
      background: linear-gradient(160deg, #fff, #ffe4ef);
      border: 2px solid rgba(244, 114, 182, .42);
      box-shadow: 0 18px 45px rgba(244, 114, 182, .22);
      z-index: 2;
    }

    .arm {
      position: absolute;
      top: 75px;
      width: 15px;
      height: 52px;
      border-radius: 999px;
      background: linear-gradient(#fff, #ffe4ef);
      border: 2px solid rgba(244, 114, 182, .38);
      z-index: 4;
    }

    .arm.left {
      left: 14px;
      transform-origin: top center;
      animation: pullLeft .38s ease-in-out infinite;
    }

    .arm.right {
      right: 14px;
      transform-origin: top center;
      animation: pullRight .38s ease-in-out infinite;
    }

    .doll-wrap.angry .arm.left,
    .doll-wrap.cry .arm.left,
    .doll-wrap.roll .arm.left {
      animation: protestLeft .34s ease-in-out infinite;
    }

    .doll-wrap.angry .arm.right,
    .doll-wrap.cry .arm.right,
    .doll-wrap.roll .arm.right {
      animation: protestRight .34s ease-in-out infinite;
    }

    .leg {
      position: absolute;
      bottom: 0;
      width: 18px;
      height: 31px;
      border-radius: 999px;
      background: #fff;
      border: 2px solid rgba(244, 114, 182, .36);
      z-index: 1;
    }

    .leg.left {
      left: 35px;
      animation: walkLeft .32s infinite alternate ease-in-out;
    }

    .leg.right {
      right: 35px;
      animation: walkRight .32s infinite alternate ease-in-out;
    }

    .doll-wrap.angry .leg.left {
      height: 18px;
      bottom: 8px;
      animation: angryFootLeft .24s infinite alternate ease-in-out;
    }

    .doll-wrap.angry .leg.right {
      height: 18px;
      bottom: 8px;
      animation: angryFootRight .24s infinite alternate ease-in-out;
    }

    .doll-wrap.roll .leg.left,
    .doll-wrap.roll .leg.right {
      height: 22px;
      animation: rollKick .26s infinite alternate ease-in-out;
    }

    .bubble {
      position: fixed;
      left: 0;
      top: 0;
      max-width: 235px;
      z-index: 82;
      border-radius: 22px 22px 22px 7px;
      background: rgba(255, 255, 255, .92);
      border: 1px solid rgba(244, 114, 182, .25);
      box-shadow: 0 20px 55px rgba(244, 114, 182, .23);
      backdrop-filter: blur(3px);
      -webkit-backdrop-filter: blur(3px);
      padding: 12px 15px;
      color: #9f1239;
      font-family: Quicksand, sans-serif;
      font-size: 12px;
      font-weight: 800;
      line-height: 1.45;
      pointer-events: none;
      transform-origin: 10px 90%;
    }

    .fake-cursor {
      position: fixed;
      left: 0;
      top: 0;
      z-index: 77;
      width: 34px;
      height: 34px;
      pointer-events: none;
      opacity: 0;
      filter: drop-shadow(0 10px 18px rgba(244, 63, 94, .28));
      will-change: transform;
      transform-origin: 0 0;
    }

    .fake-cursor::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0;
      width: 31px;
      height: 31px;
      background: #fb7185;
      clip-path: polygon(0 0, 29px 13px, 16px 17px, 11px 30px);
    }

    .fake-cursor::after {
      content: "";
      position: absolute;
      left: -10px;
      top: -10px;
      width: 22px;
      height: 22px;
      border-radius: 999px;
      border: 2px solid rgba(244, 114, 182, .22);
      animation: cursorPulse .78s ease-in-out infinite;
    }

    .pull-line {
      position: fixed;
      left: 0;
      top: 0;
      z-index: 76;
      width: 4px;
      height: 120px;
      pointer-events: none;
      opacity: 0;
      border-radius: 999px;
      background: repeating-linear-gradient(
        to bottom,
        rgba(244, 63, 94, .92) 0px,
        rgba(244, 63, 94, .92) 9px,
        rgba(255, 255, 255, .9) 9px,
        rgba(255, 255, 255, .9) 15px
      );
      transform-origin: top center;
      box-shadow: 0 0 16px rgba(244, 114, 182, .42);
    }

    .pull-line::before,
    .pull-line::after {
      content: "";
      position: absolute;
      left: 50%;
      width: 13px;
      height: 13px;
      border-radius: 999px;
      background: #fb7185;
      border: 3px solid #fff;
      transform: translateX(-50%);
      box-shadow: 0 0 18px rgba(244, 63, 94, .38);
    }

    .pull-line::before {
      top: -5px;
    }

    .pull-line::after {
      bottom: -5px;
    }

    .tug-word {
      position: fixed;
      z-index: 83;
      pointer-events: none;
      font-family: Quicksand, sans-serif;
      font-weight: 800;
      font-size: 11px;
      color: #e11d48;
      opacity: 0;
      text-shadow: 0 2px 12px rgba(255,255,255,.9);
    }

    @keyframes blink {
      0%, 92%, 100% { transform: scaleY(1); }
      95% { transform: scaleY(.1); }
    }

    @keyframes tearDrop {
      0% { opacity: 0; transform: translateY(0) scale(.8); }
      20% { opacity: 1; }
      100% { opacity: 0; transform: translateY(28px) scale(1.15); }
    }

    @keyframes dollJump {
      0%, 100% { transform: translateY(0) rotate(-3deg) scale(1); }
      28% { transform: translateY(-24px) rotate(5deg) scale(1.04); }
      55% { transform: translateY(0) rotate(-5deg) scale(.98); }
      72% { transform: translateY(-11px) rotate(3deg) scale(1.02); }
    }

    @keyframes dollLaugh {
      0%, 100% { transform: translateY(0) rotate(-10deg) scale(1.04); }
      50% { transform: translateY(-25px) rotate(10deg) scale(1.1); }
    }

    @keyframes dollSitAngry {
      0%, 100% { transform: translateY(18px) rotate(-5deg) scaleY(.86) scaleX(1.08); }
      50% { transform: translateY(21px) rotate(5deg) scaleY(.84) scaleX(1.1); }
    }

    @keyframes dollCry {
      0%, 100% { transform: translateY(10px) rotate(-5deg) scale(.98); }
      50% { transform: translateY(16px) rotate(5deg) scale(.96); }
    }

    @keyframes dollGroundRoll {
      0% { transform: translateX(-18px) translateY(42px) rotate(-84deg) scale(.95); }
      20% { transform: translateX(-6px) translateY(48px) rotate(-98deg) scale(.96); }
      40% { transform: translateX(12px) translateY(42px) rotate(-74deg) scale(.95); }
      60% { transform: translateX(24px) translateY(49px) rotate(-101deg) scale(.96); }
      80% { transform: translateX(5px) translateY(43px) rotate(-78deg) scale(.95); }
      100% { transform: translateX(-18px) translateY(42px) rotate(-84deg) scale(.95); }
    }

    @keyframes pullLeft {
      0%, 100% { transform: rotate(62deg); }
      50% { transform: rotate(104deg); }
    }

    @keyframes pullRight {
      0%, 100% { transform: rotate(-62deg); }
      50% { transform: rotate(-104deg); }
    }

    @keyframes protestLeft {
      0%, 100% { transform: rotate(98deg); }
      50% { transform: rotate(128deg); }
    }

    @keyframes protestRight {
      0%, 100% { transform: rotate(-98deg); }
      50% { transform: rotate(-128deg); }
    }

    @keyframes walkLeft {
      from { transform: translateY(0) rotate(12deg); }
      to { transform: translateY(9px) rotate(-17deg); }
    }

    @keyframes walkRight {
      from { transform: translateY(9px) rotate(-12deg); }
      to { transform: translateY(0) rotate(17deg); }
    }

    @keyframes angryFootLeft {
      from { transform: translateY(0) rotate(74deg); }
      to { transform: translateY(6px) rotate(95deg); }
    }

    @keyframes angryFootRight {
      from { transform: translateY(6px) rotate(-74deg); }
      to { transform: translateY(0) rotate(-95deg); }
    }

    @keyframes rollKick {
      from { transform: rotate(50deg) translateY(0); }
      to { transform: rotate(-50deg) translateY(7px); }
    }

    @keyframes cursorPulse {
      0%, 100% { transform: scale(.78); opacity: .36; }
      50% { transform: scale(1.1); opacity: .1; }
    }

    @keyframes caretBlink {
      0%, 49% { opacity: 1; }
      50%, 100% { opacity: 0; }
    }

    /* Responsive Styles */
    @media (max-width: 640px) {
      .doll-wrap {
        width: 92px;
        height: 126px;
      }

      .doll {
        transform: scale(.78);
        transform-origin: left top;
      }

      .bubble {
        max-width: 185px;
        font-size: 11px;
        padding: 10px 12px;
      }

      .pull-line {
        width: 3px;
      }

      .photo-card {
        flex-basis: 16rem;
      }

      .gallery-viewport {
        padding: 118px 0 150px;
      }

      .gallery-marquee {
        min-height: 440px;
      }

      .gallery-track {
        gap: 1.7rem;
        padding: 92px 0 108px;
      }

      .photo-card:nth-child(10n + 1) .polaroid-card { --tilt: -3deg; }
      .photo-card:nth-child(10n + 2) .polaroid-card { --tilt: 4deg; }
      .photo-card:nth-child(10n + 3) .polaroid-card { --tilt: -5deg; }
      .photo-card:nth-child(10n + 4) .polaroid-card { --tilt: 6deg; }
      .photo-card:nth-child(10n + 5) .polaroid-card { --tilt: -7deg; }
      .photo-card:nth-child(10n + 6) .polaroid-card { --tilt: 8deg; }
      .photo-card:nth-child(10n + 7) .polaroid-card { --tilt: -9deg; }
      .photo-card:nth-child(10n + 8) .polaroid-card { --tilt: 10deg; }
      .photo-card:nth-child(10n + 9) .polaroid-card { --tilt: -6deg; }
      .photo-card:nth-child(10n + 10) .polaroid-card { --tilt: 5deg; }

      .polaroid-card {
        padding: 12px 12px 14px;
      }

      .polaroid-photo {
        height: 206px;
      }

      .polaroid-figure {
        min-height: 292px;
      }

      .letter-writing {
        min-height: 330px;
      }

      #timelineGrid {
        gap: 3rem;
        padding-left: 1.65rem;
      }

      #timelineGrid::before {
        left: .65rem;
        transform: none;
      }

      .timeline-item,
      .timeline-item.is-left,
      .timeline-item.is-right {
        display: grid;
        grid-template-columns: 1.8rem minmax(0, 1fr);
        gap: .8rem;
      }

      .timeline-item.is-left .timeline-year,
      .timeline-item.is-right .timeline-year,
      .timeline-year {
        grid-column: 2;
        grid-row: 1;
        justify-self: start;
        min-width: 112px;
        padding: 10px 18px;
      }

      .timeline-item.is-left .timeline-card,
      .timeline-item.is-right .timeline-card,
      .timeline-card {
        grid-column: 2;
        grid-row: 2;
        text-align: left;
        padding: 1.15rem;
      }

      .timeline-dot {
        grid-column: 1;
        grid-row: 1 / span 2;
        width: 18px;
        height: 18px;
        margin-top: 10px;
      }

      .footer-inner {
        grid-template-columns: 1fr;
        gap: 1.4rem;
      }

      .footer-copy {
        justify-self: start;
      }
    }
