/* ==========================================================================
   THE KEEPSAKE DRAWER — JORVENIO & RASKAL
   Style System: Editorial, Handcrafted, Romantic, Soft Masculine
   Palette: Off-white, Soft-white, Cool-grey, Dusty-blue, Muted-navy, Silver
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Requested Color Palette */
  --off-white: #F7F7F4;
  --soft-white: #E8EBEE;
  --cool-grey: #C4CDD5;
  --dusty-blue: #8094A5;
  --muted-navy: #536879;
  --navy-deep: #263845;
  --navy-darkest: #18252f;
  --navy-translucent: rgba(38, 56, 69, 0.85);

  /* Silver Metallic Accents */
  --silver-light: #F0F3F6;
  --silver-mid: #C4CDD5;
  --silver-deep: #9AAAB8;
  --silver-border: rgba(196, 205, 213, 0.6);
  --silver-foil: linear-gradient(135deg, #ffffff 0%, #c4cdd5 45%, #9aaab8 70%, #ffffff 100%);
  --silver-shine: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.7) 50%, transparent 100%);
  --silver-glow: 0 0 15px rgba(196, 205, 213, 0.35);

  /* Typography */
  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-hand: 'Caveat', cursive, sans-serif;

  /* Elevation Shadows */
  --shadow-subtle: 0 2px 8px rgba(24, 37, 47, 0.06);
  --shadow-soft: 0 8px 24px rgba(24, 37, 47, 0.12);
  --shadow-deep: 0 16px 40px rgba(24, 37, 47, 0.22);
  --shadow-drawer: inset 0 6px 16px rgba(0, 0, 0, 0.3), 0 20px 50px rgba(10, 18, 25, 0.35);

  /* Transitions */
  --ease-tactile: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-normal: 450ms;
}

/* --------------------------------------------------------------------------
   2. Base Reset & Typography
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background-color: var(--off-white);
  color: var(--navy-deep);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  position: relative;
}

/* Tactile Fine Paper Texture Overlay */
.paper-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* Utility Hidden */
.hidden {
  display: none !important;
}

/* --------------------------------------------------------------------------
   3. Top Persistent Header Navigation Bar
   -------------------------------------------------------------------------- */
.top-nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100vw;
  height: 60px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(247, 247, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196, 205, 213, 0.4);
  z-index: 100;
  box-sizing: border-box;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.nav-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: var(--soft-white);
  border: 1px solid var(--cool-grey);
  border-radius: 18px;
  color: var(--navy-deep);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.25s var(--ease-tactile);
}

.nav-btn-back:hover {
  background: var(--navy-deep);
  color: var(--off-white);
  border-color: var(--navy-deep);
  transform: translateX(-2px);
}

.nav-title-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nav-brand-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--navy-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-subtitle {
  font-size: 11px;
  color: var(--dusty-blue);
  letter-spacing: 0.04em;
  text-transform: lowercase;
  white-space: nowrap;
}

.nav-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.slide-indicator {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-navy);
  letter-spacing: 0.08em;
}

.slide-sep {
  color: var(--cool-grey);
  margin: 0 2px;
}

.slide-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot-item {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cool-grey);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s var(--ease-tactile);
}

.dot-item.active {
  width: 16px;
  border-radius: 6px;
  background: var(--navy-deep);
}

.nav-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Audio Control Pill */
.control-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--soft-white);
  border: 1px solid var(--cool-grey);
  border-radius: 20px;
  color: var(--navy-deep);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: all 0.25s var(--ease-tactile);
}

.control-pill:hover {
  border-color: var(--dusty-blue);
  background: #ffffff;
  box-shadow: var(--shadow-subtle);
}

.soundwave-icon {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.soundwave-icon .bar {
  width: 2.5px;
  height: 5px;
  background-color: var(--muted-navy);
  border-radius: 2px;
  transition: height 0.2s ease;
}

.control-pill.playing .soundwave-icon .bar-1 {
  animation: soundwave 1.1s ease-in-out infinite alternate;
}
.control-pill.playing .soundwave-icon .bar-2 {
  animation: soundwave 0.8s ease-in-out 0.2s infinite alternate;
}
.control-pill.playing .soundwave-icon .bar-3 {
  animation: soundwave 1.3s ease-in-out 0.4s infinite alternate;
}

@keyframes soundwave {
  0% { height: 3px; }
  100% { height: 12px; }
}

/* --------------------------------------------------------------------------
   4. Main Viewport & Slide Presentation
   -------------------------------------------------------------------------- */
.drawer-viewport {
  position: relative;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  padding-top: 60px;
  overflow-x: hidden;
  box-sizing: border-box;
}

.scene-slide {
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  max-width: 100vw;
  min-height: calc(100vh - 60px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease-tactile), transform 0.55s var(--ease-tactile), visibility 0.55s;
  padding: 36px 20px 80px 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  box-sizing: border-box;
  overflow-x: hidden;
}

.scene-slide.active {
  position: relative;
  top: 0;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.slide-inner {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   5. SLIDE 1 — THE DRAWER (Opening Scene)
   -------------------------------------------------------------------------- */
.scene-drawer-desk {
  position: relative;
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.desk-surface {
  position: relative;
  width: 100%;
  max-width: 820px;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

/* Ambient Objects on Desk */
.desk-object {
  position: absolute;
  pointer-events: none;
  transition: transform 0.4s var(--ease-tactile);
}

.desk-photo {
  top: 10px;
  left: 10px;
  transform: rotate(-8deg);
  z-index: 2;
}

.mini-polaroid-frame {
  width: 84px;
  padding: 6px 6px 14px 6px;
  background: #ffffff;
  border-radius: 2px;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.mini-photo-inner {
  width: 100%;
  height: 72px;
  background: var(--navy-deep);
  display: flex;
  align-items: flex-end;
  padding: 4px;
  border-radius: 1px;
}

.mini-tag {
  font-family: var(--font-sans);
  font-size: 8px;
  color: var(--cool-grey);
  letter-spacing: 0.05em;
}

.washi-tape {
  position: absolute;
  background: rgba(196, 205, 213, 0.45);
  backdrop-filter: blur(2px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.tape-top-right {
  top: -6px;
  right: 10px;
  width: 34px;
  height: 12px;
  transform: rotate(12deg);
}

.desk-folded-paper {
  bottom: 20px;
  left: 20px;
  width: 60px;
  height: 52px;
  background: var(--soft-white);
  border: 1px solid var(--cool-grey);
  box-shadow: var(--shadow-subtle);
  transform: rotate(6deg);
  z-index: 2;
  position: absolute;
  clip-path: polygon(0% 0%, 75% 0%, 100% 30%, 100% 100%, 0% 100%);
}

.paper-crease-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 16px;
  height: 16px;
  background: var(--cool-grey);
  opacity: 0.6;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.desk-pressed-flower {
  top: 20px;
  right: 20px;
  width: 55px;
  transform: rotate(15deg);
  opacity: 0.85;
  z-index: 2;
}

.flower-sprig {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(38, 56, 69, 0.15));
}

.desk-key {
  bottom: 20px;
  right: 25px;
  width: 80px;
  transform: rotate(-10deg);
  z-index: 2;
}

.vintage-key-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(38, 56, 69, 0.2));
}

/* The Keepsake Drawer Front */
.drawer-cabinet-wrapper {
  width: 100%;
  max-width: 660px;
  position: relative;
  z-index: 5;
  box-sizing: border-box;
  min-width: 0;
}

.drawer-casing-frame {
  background: var(--navy-darkest);
  padding: 14px;
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(24, 37, 47, 0.35), 0 0 0 1px rgba(196, 205, 213, 0.2);
  box-sizing: border-box;
  min-width: 0;
}

.drawer-front {
  position: relative;
  background: linear-gradient(180deg, #2b3e4d 0%, var(--navy-deep) 60%, #1e2d37 100%);
  border: 1px solid rgba(196, 205, 213, 0.25);
  border-radius: 6px;
  padding: 48px 36px 42px 36px;
  color: var(--off-white);
  text-align: center;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), inset 0 -3px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.5s var(--ease-tactile), box-shadow 0.5s ease;
  user-select: none;
  box-sizing: border-box;
  min-width: 0;
}

.drawer-silver-filigree {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(196, 205, 213, 0.18);
  border-radius: 4px;
  pointer-events: none;
}

.drawer-meta-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(196, 205, 213, 0.08);
  border: 1px solid rgba(196, 205, 213, 0.25);
  border-radius: 30px;
  margin-bottom: 24px;
  max-width: 100%;
  box-sizing: border-box;
}

.silver-pip {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cool-grey);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
}

.drawer-badge-text {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cool-grey);
  text-align: center;
  line-height: 1.4;
}

.drawer-nameplate {
  margin-bottom: 30px;
}

.drawer-names {
  font-family: var(--font-serif);
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--off-white);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.name-sender, .name-recipient {
  display: inline-block;
  font-weight: 500;
}

.name-connector {
  display: inline-block;
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 300;
  color: var(--dusty-blue);
  margin: 0 6px;
}

.drawer-plate-line {
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--cool-grey) 50%, transparent 100%);
  margin: 18px auto 16px auto;
}

.drawer-statement {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--soft-white);
  opacity: 0.9;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.5;
}

/* The Drawer Pull Handle Interaction */
.drawer-pull-mechanism {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  cursor: grab;
  padding: 8px 20px;
  outline: none;
  touch-action: none;
  transition: transform 0.2s ease;
}

.drawer-pull-mechanism:active {
  cursor: grabbing;
}

.drawer-cup-handle {
  position: relative;
  width: 130px;
  height: 36px;
  background: var(--silver-foil);
  border-radius: 4px 4px 18px 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35), inset 0 1px 1px #ffffff, inset 0 -2px 3px rgba(0,0,0,0.25);
  border: 1px solid rgba(154, 170, 184, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--ease-tactile), box-shadow 0.25s ease;
}

.handle-silver-highlight {
  position: absolute;
  top: 2px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
}

.handle-cup-recess {
  width: 70px;
  height: 13px;
  background: #2b3943;
  border-radius: 2px 2px 10px 10px;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.6);
  border: 1px solid rgba(196, 205, 213, 0.3);
}

.handle-screws {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9aaab8;
  border: 1px solid #6b7d8d;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.6);
}

.screw-left { left: 10px; }
.screw-right { right: 10px; }

.handle-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  color: var(--cool-grey);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.drawer-pull-mechanism:hover .drawer-cup-handle {
  transform: translateY(2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4), var(--silver-glow);
}

.drawer-pull-mechanism:hover .handle-hint {
  opacity: 1;
  transform: translateY(2px);
}

.hint-arrow {
  animation: bounceHint 1.8s ease-in-out infinite;
}

@keyframes bounceHint {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* --------------------------------------------------------------------------
   6. SLIDE 2 — THINGS I KEPT (Inside the Drawer Bed)
   -------------------------------------------------------------------------- */
.scene-drawer-interior {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tray-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  border-bottom: 1px solid var(--cool-grey);
  padding-bottom: 16px;
}

.tray-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dusty-blue);
  display: block;
  margin-bottom: 4px;
}

.tray-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 400;
  color: var(--navy-deep);
  letter-spacing: 0.01em;
}

.tray-subtitle {
  font-size: 13px;
  color: var(--muted-navy);
  margin-top: 2px;
}

.tray-counter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--soft-white);
  border: 1px solid var(--cool-grey);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy-deep);
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.counter-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dusty-blue);
  transition: background-color 0.3s ease;
}

.counter-dot.completed {
  background: #3c8266;
  box-shadow: 0 0 8px rgba(60, 130, 102, 0.4);
}

/* Drawer Felt Bed: 4 Clean Compartments on Desktop */
.drawer-felt-bed {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 24px;
  background: linear-gradient(135deg, #2b3d4a 0%, #354b5b 100%);
  border-radius: 8px;
  border: 1px solid rgba(196, 205, 213, 0.25);
  box-shadow: var(--shadow-drawer);
  position: relative;
  box-sizing: border-box;
}

/* Keepsake Cards Generic Container */
.keepsake-card {
  position: relative;
  background: rgba(247, 247, 244, 0.96);
  border-radius: 6px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 330px;
  box-shadow: 0 6px 16px rgba(10, 20, 28, 0.25);
  border: 1px solid rgba(196, 205, 213, 0.4);
  cursor: pointer;
  outline: none;
  transition: transform 0.3s var(--ease-tactile), box-shadow 0.3s ease;
  box-sizing: border-box;
}

.keepsake-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(10, 20, 28, 0.35);
}

.keepsake-card:focus-visible {
  box-shadow: 0 0 0 3px var(--cool-grey), 0 12px 24px rgba(10, 20, 28, 0.35);
}

.keepsake-status-tag {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted-navy);
  text-align: center;
  padding-top: 10px;
  border-top: 1px dashed var(--cool-grey);
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

/* Keepsake 1: Photograph Card (3D Flip) */
.keepsake-photo {
  perspective: 1000px;
}

.flipper-container {
  position: relative;
  width: 100%;
  height: 245px;
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease-tactile);
}

.keepsake-photo.flipped .flipper-container {
  transform: rotateY(180deg);
}

.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 4px;
}

.flip-front {
  background: #ffffff;
}

.photo-matte-frame {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 8px;
  background: #ffffff;
  border: 1px solid var(--cool-grey);
  border-radius: 3px;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.05);
  box-sizing: border-box;
}

.photo-slot {
  position: relative;
  width: 100%;
  height: 185px;
  overflow: hidden;
  background: var(--navy-deep);
  border-radius: 2px;
}

.keepsake-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-bottom-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding: 0 2px;
}

.photo-date {
  font-size: 10px;
  color: var(--muted-navy);
  font-family: var(--font-sans);
}

.photo-hint-flip {
  font-size: 10px;
  color: var(--dusty-blue);
  font-style: italic;
}

.flip-back {
  transform: rotateY(180deg);
  background: var(--off-white);
}

.card-paper-back {
  width: 100%;
  height: 100%;
  padding: 16px 14px;
  background: var(--off-white);
  border: 1px solid var(--cool-grey);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.03);
  box-sizing: border-box;
}

.back-script-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dusty-blue);
  font-weight: 600;
}

.back-handwritten-text {
  font-family: var(--font-hand);
  font-size: 17px;
  line-height: 1.35;
  color: var(--navy-deep);
}

.back-seal-stamp {
  align-self: flex-end;
  font-family: var(--font-sans);
  font-size: 9px;
  color: var(--cool-grey);
  border: 1px solid var(--cool-grey);
  padding: 2px 6px;
  border-radius: 2px;
}

/* Keepsake 2: Key & Compartment Box */
.compartment-box {
  position: relative;
  width: 100%;
  height: 195px;
  background: #263845;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--cool-grey);
  box-shadow: inset 0 4px 10px rgba(0,0,0,0.5);
}

.compartment-lid {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #374d5d 0%, #253744 100%);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 2;
  transition: transform 0.6s var(--ease-tactile), opacity 0.4s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.keepsake-keybox.unlocked .compartment-lid {
  transform: translateY(-85%);
  opacity: 0.15;
  pointer-events: none;
}

.lid-silver-plate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--silver-foil);
  border-radius: 4px;
  border: 1px solid var(--silver-mid);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.lid-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-deep);
}

.silver-keyhole {
  width: 20px;
  height: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.keyhole-circle {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #18252f;
}

.keyhole-stem {
  width: 4px;
  height: 8px;
  background: #18252f;
  margin-top: -1px;
}

.compartment-recess {
  position: absolute;
  inset: 0;
  padding: 12px;
  background: #1f2e3a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.engraved-silver-plaque {
  background: var(--off-white);
  border: 1px solid var(--cool-grey);
  border-radius: 3px;
  padding: 14px 12px;
  width: 100%;
}

.plaque-tag {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dusty-blue);
  display: block;
  margin-bottom: 4px;
}

.plaque-message {
  font-family: var(--font-serif);
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--navy-deep);
}

.plaque-signature {
  display: block;
  text-align: right;
  font-family: var(--font-hand);
  font-size: 15px;
  color: var(--muted-navy);
  margin-top: 4px;
}

.standalone-key {
  margin: 10px auto 0 auto;
  width: 80px;
  transition: transform 0.5s var(--ease-tactile);
}

.keepsake-keybox:hover .standalone-key {
  transform: translateY(-2px) rotate(5deg);
}

.keepsake-keybox.unlocked .standalone-key {
  opacity: 0.4;
  transform: scale(0.9);
}

/* Keepsake 3: Pressed Flower Card (With Opaque Backing Layer for True Mystery) */
.botanical-mounting-sheet {
  position: relative;
  width: 100%;
  height: 245px;
  background: var(--off-white);
  border: 1px solid var(--cool-grey);
  border-radius: 4px;
  padding: 16px 14px;
  overflow: hidden;
  box-sizing: border-box;
}

.hidden-botanical-writing {
  position: absolute;
  inset: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
}

.botanical-script-tag {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dusty-blue);
  margin-bottom: 4px;
}

.botanical-text {
  font-family: var(--font-hand);
  font-size: 17px;
  line-height: 1.35;
  color: var(--navy-deep);
}

.botanical-bot-label {
  font-size: 9px;
  color: var(--cool-grey);
  margin-top: 6px;
  font-style: italic;
}

/* The Opaque Mounting Sheet that physically lifts */
.liftable-stem-layer {
  position: absolute;
  inset: 0;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: transform 0.65s var(--ease-tactile), opacity 0.5s ease, box-shadow 0.65s ease;
  transform-origin: top left;
}

.pressed-flower-svg {
  width: 90px;
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(38, 56, 69, 0.2));
}

.keepsake-flower.lifted .liftable-stem-layer {
  transform: translate(65%, -70%) rotate(22deg) scale(0.85);
  opacity: 0.35;
  box-shadow: 0 16px 28px rgba(0,0,0,0.3);
}

/* Keepsake 4: Folded Note (Origami Quad Fold) */
.origami-note-wrapper {
  position: relative;
  width: 100%;
  height: 245px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.origami-closed-flap {
  position: absolute;
  inset: 10px;
  background: var(--soft-white);
  border: 1px solid var(--cool-grey);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  transition: all 0.5s var(--ease-tactile);
  z-index: 2;
}

.silver-wax-seal {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--silver-foil);
  border: 1px solid var(--silver-deep);
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.monogram-letter {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--navy-deep);
}

.folded-label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--muted-navy);
}

.origami-unfolded-sheet {
  position: absolute;
  inset: 0;
  background: var(--off-white);
  border: 1px solid var(--cool-grey);
  border-radius: 4px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  transition: all 0.5s var(--ease-tactile);
  z-index: 1;
  box-sizing: border-box;
}

.keepsake-note.unfolded .origami-closed-flap {
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
}

.keepsake-note.unfolded .origami-unfolded-sheet {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.note-heading-small {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dusty-blue);
}

.note-body-text {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.45;
  color: var(--navy-deep);
  margin: 6px 0;
}

.note-foot-signature {
  font-family: var(--font-hand);
  font-size: 16px;
  color: var(--muted-navy);
  text-align: right;
}

/* Tray Advance Button (Slide 2 -> Slide 3) */
.tray-advance-bar {
  display: flex;
  justify-content: center;
  margin-top: 6px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.5s var(--ease-tactile), transform 0.5s var(--ease-tactile);
}

.tray-advance-bar.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.btn-editorial-advance {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 28px;
  background: var(--navy-deep);
  border: 1px solid var(--silver-mid);
  border-radius: 30px;
  color: var(--off-white);
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(38, 56, 69, 0.25);
  transition: all 0.3s var(--ease-tactile);
}

.btn-editorial-advance:hover {
  background: #1d2c37;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(38, 56, 69, 0.35), var(--silver-glow);
}

.advance-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--silver-shine);
  animation: sweepShine 3.5s infinite;
}

@keyframes sweepShine {
  0% { left: -100%; }
  30%, 100% { left: 150%; }
}

/* --------------------------------------------------------------------------
   7. SLIDE 3 — PIECES OF US (Memory Board / Scrapbook)
   -------------------------------------------------------------------------- */
.scene-scrapbook {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.scrapbook-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.scrapbook-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dusty-blue);
  display: block;
  margin-bottom: 4px;
}

.scrapbook-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 400;
  color: var(--navy-deep);
}

.scrapbook-subtitle {
  font-size: 13px;
  color: var(--muted-navy);
  margin-top: 4px;
}

/* Scattered Scrapbook Canvas */
.memory-board-canvas {
  position: relative;
  width: 100%;
  background: var(--soft-white);
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, var(--soft-white) 100%);
  border: 1px solid var(--cool-grey);
  border-radius: 8px;
  padding: 30px 20px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  box-shadow: var(--shadow-soft);
  box-sizing: border-box;
}

/* Board Elements Positioning on Desktop */
.scrap-photo-1 {
  grid-column: 1 / 5;
  transform: rotate(-2deg);
}

.scrap-photobooth-strip {
  grid-column: 5 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scrap-photo-2 {
  grid-column: 9 / 13;
  transform: rotate(2deg);
}

.scrap-secret-container {
  grid-column: 1 / 5;
  position: relative;
}

.scrap-photo-6 {
  grid-column: 9 / 13;
  transform: rotate(-2deg);
}

.label-stamp-1 {
  grid-column: 1 / 5;
  align-self: center;
}

.label-stamp-2 {
  grid-column: 9 / 13;
  align-self: center;
}

/* Polaroid Card Styling */
.polaroid-card {
  background: #ffffff;
  padding: 8px 8px 12px 8px;
  border-radius: 3px;
  border: 1px solid var(--cool-grey);
  box-shadow: var(--shadow-subtle);
  cursor: pointer;
  transition: transform 0.3s var(--ease-tactile), box-shadow 0.3s ease;
  position: relative;
  box-sizing: border-box;
}

.polaroid-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-soft);
  z-index: 10;
}

.photo-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.5;
  overflow: hidden;
  background: var(--navy-deep);
  border-radius: 2px;
}

.board-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.polaroid-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 0 2px;
}

.label-date {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted-navy);
}

.label-title {
  font-family: var(--font-hand);
  font-size: 15px;
  color: var(--navy-deep);
}

/* Flippable Card Mechanics inside Scrapbook */
.flippable-photo {
  perspective: 800px;
}

.card-inner-flip {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-tactile);
}

.board-element.is-flipped .card-inner-flip {
  transform: rotateY(180deg);
}

.photo-face {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.face-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  background: var(--off-white);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 2px;
  border: 1px solid var(--cool-grey);
  box-sizing: border-box;
}

.polaroid-back-note {
  font-family: var(--font-hand);
  font-size: 16px;
  line-height: 1.35;
  color: var(--navy-deep);
}

.polaroid-back-tag {
  font-size: 9px;
  color: var(--dusty-blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mini-btn-flip {
  margin-top: 5px;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--muted-navy);
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.mini-btn-flip:hover {
  color: var(--navy-deep);
}

/* Vertical Photobooth Strip */
.scrap-photobooth-strip {
  position: relative;
}

.silver-binder-clip {
  width: 26px;
  height: 14px;
  background: var(--silver-foil);
  border: 1px solid var(--silver-mid);
  border-radius: 3px;
  margin-bottom: -7px;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.photobooth-strip-container {
  width: 180px;
  max-height: 480px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #ffffff;
  border: 1px solid var(--cool-grey);
  border-radius: 4px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-soft);
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: var(--cool-grey) transparent;
  box-sizing: border-box;
}

.photobooth-strip-container:active {
  cursor: grabbing;
}

.strip-header, .strip-footer {
  text-align: center;
  padding: 2px 0;
  border-bottom: 1px solid var(--cool-grey);
}

.strip-footer {
  border-bottom: none;
  border-top: 1px solid var(--cool-grey);
  margin-top: 2px;
}

.strip-brand {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted-navy);
  display: block;
}

.strip-mensiv {
  font-size: 8px;
  color: var(--dusty-blue);
  letter-spacing: 0.08em;
}

.booth-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--navy-deep);
  border: 1px solid var(--cool-grey);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
}

.booth-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.booth-frame:hover .booth-img {
  transform: scale(1.05);
}

.frame-num {
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-size: 8px;
  background: rgba(38, 56, 69, 0.7);
  color: #ffffff;
  padding: 1px 4px;
  border-radius: 2px;
}

.strip-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 11px;
  color: var(--muted-navy);
}

.booth-swipe-hint {
  font-size: 10px;
  color: var(--dusty-blue);
  margin-top: 6px;
  letter-spacing: 0.04em;
}

/* Draggable Secret Note Paper */
.scrap-secret-container {
  min-height: 130px;
}

.secret-revealed-note {
  position: absolute;
  inset: 0;
  background: #ffffff;
  border: 1px dashed var(--cool-grey);
  border-radius: 4px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.secret-heading {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dusty-blue);
}

.secret-body {
  font-family: var(--font-hand);
  font-size: 16px;
  line-height: 1.35;
  color: var(--navy-deep);
}

.secret-tag {
  font-size: 9px;
  color: #3c8266;
  font-weight: 600;
}

.draggable-paper-scrap {
  position: absolute;
  inset: 0;
  background: var(--off-white);
  border: 1px solid var(--cool-grey);
  border-radius: 3px;
  padding: 14px;
  box-shadow: var(--shadow-subtle);
  cursor: grab;
  touch-action: none;
  z-index: 5;
  transition: transform 0.4s var(--ease-tactile);
  box-sizing: border-box;
}

.draggable-paper-scrap:active {
  cursor: grabbing;
}

.draggable-paper-scrap.slid-away {
  transform: translate(90px, -15px) rotate(10deg) !important;
  opacity: 0.85;
}

.paper-scrap-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.scrap-typewriter-text {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted-navy);
}

.scrap-instruction {
  font-size: 10px;
  color: var(--dusty-blue);
  font-style: italic;
}

/* Washi Tape Variants */
.tape-top-center {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 12px;
  z-index: 10;
}

.tape-corner-left {
  position: absolute;
  top: -5px;
  left: -5px;
  width: 32px;
  height: 11px;
  transform: rotate(-30deg);
  z-index: 10;
}

.tape-angle-right {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 34px;
  height: 11px;
  transform: rotate(35deg);
  z-index: 10;
}

/* Date Stamps */
.scrap-label-tag {
  padding: 6px 10px;
  background: rgba(196, 205, 213, 0.25);
  border-left: 2px solid var(--dusty-blue);
  border-radius: 2px;
}

.stamp-num {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-deep);
  display: block;
}

.stamp-desc {
  font-size: 10px;
  color: var(--muted-navy);
}

/* Scrapbook Advance */
.scrapbook-advance-bar {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   8. SLIDE 4 — THE FOLDED LETTER (Stationery & 3-Step Unfold)
   -------------------------------------------------------------------------- */
.scene-letter-room {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.letter-intro-header {
  text-align: center;
  max-width: 540px;
}

.letter-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dusty-blue);
  display: block;
  margin-bottom: 4px;
}

.letter-main-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 400;
  color: var(--navy-deep);
}

.letter-step-hint {
  font-size: 13px;
  color: var(--muted-navy);
  margin-top: 2px;
}

/* Letter Canvas */
.letter-folding-canvas {
  width: 100%;
  max-width: 660px;
  min-height: 380px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.letter-parchment-sheet {
  position: relative;
  width: 100%;
  background: var(--off-white);
  border: 1px solid var(--cool-grey);
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(24, 37, 47, 0.12);
  transition: all 0.6s var(--ease-tactile);
  overflow: hidden;
  box-sizing: border-box;
}

/* State 0: Closed / Sealed Envelope Style */
.letter-parchment-sheet.state-fold-0 {
  max-width: 420px;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #fdfdfc;
  box-shadow: 0 15px 35px rgba(24, 37, 47, 0.15);
}

.letter-seal-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s ease;
}

.letter-parchment-sheet.state-fold-0:hover .letter-seal-badge {
  transform: scale(1.05);
}

.wax-seal-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--silver-foil);
  border: 1px solid var(--silver-mid);
  box-shadow: 0 4px 12px rgba(38, 56, 69, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.seal-initials {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--navy-deep);
}

.seal-prompt {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted-navy);
  font-weight: 500;
}

/* Fold Sections Common */
.fold-section {
  display: none;
  animation: fadeInFold 0.5s var(--ease-tactile);
}

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

.letter-parchment-sheet.state-fold-1 .fold-part-1,
.letter-parchment-sheet.state-fold-2 .fold-part-2,
.letter-parchment-sheet.state-fold-3 .fold-part-3 {
  display: block;
}

.letter-parchment-sheet.state-fold-1 .letter-seal-badge,
.letter-parchment-sheet.state-fold-2 .letter-seal-badge,
.letter-parchment-sheet.state-fold-3 .letter-seal-badge {
  display: none;
}

.fold-teaser-line {
  padding: 44px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.fold-num-mark {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dusty-blue);
}

.fold-line-text {
  font-family: var(--font-serif);
  font-size: clamp(19px, 3vw, 23px);
  font-style: italic;
  color: var(--navy-deep);
  line-height: 1.45;
  max-width: 500px;
}

.btn-unfold-step {
  padding: 9px 22px;
  background: var(--soft-white);
  border: 1px solid var(--cool-grey);
  border-radius: 20px;
  color: var(--navy-deep);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-unfold-step:hover {
  background: var(--navy-deep);
  color: var(--off-white);
  border-color: var(--navy-deep);
}

/* Fold 3: Complete Expanded Letter Document */
.complete-letter-document {
  padding: 44px 38px;
  background: #fcfcfb;
  box-sizing: border-box;
}

.document-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--cool-grey);
  padding-bottom: 18px;
  margin-bottom: 24px;
}

.letterhead-monogram {
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: 0.1em;
  color: var(--dusty-blue);
  font-weight: 500;
}

.letterhead-meta {
  text-align: right;
}

.letter-date {
  font-size: 11px;
  color: var(--muted-navy);
  letter-spacing: 0.05em;
  display: block;
}

.letter-recipient-salutation {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--navy-deep);
  margin-top: 3px;
  display: block;
}

.document-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.letter-p {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.7;
  color: #1f2e3a;
  text-align: justify;
}

.document-footer {
  margin-top: 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-top: 1px solid rgba(196, 205, 213, 0.4);
  padding-top: 18px;
}

.signature-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sig-closing {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--muted-navy);
}

.sig-handwritten {
  font-family: var(--font-hand);
  font-size: 25px;
  font-weight: 600;
  color: var(--navy-deep);
}

.seal-watermark {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--cool-grey);
  font-weight: 600;
}

.letter-advance-bar {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   9. SLIDE 5 — SOMETHING BACK (Final Response & Drawer Closing)
   -------------------------------------------------------------------------- */
.scene-reply-drawer {
  display: flex;
  justify-content: center;
}

.final-drawer-bed {
  width: 100%;
  max-width: 700px;
  background: var(--navy-deep);
  background: linear-gradient(135deg, #20313e 0%, #293d4c 100%);
  border: 1px solid rgba(196, 205, 213, 0.3);
  border-radius: 8px;
  padding: 40px 32px;
  color: var(--off-white);
  box-shadow: var(--shadow-drawer);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.reply-header-block {
  text-align: center;
  margin-bottom: 28px;
}

.reply-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cool-grey);
  display: block;
  margin-bottom: 6px;
}

.reply-headline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(20px, 3vw, 28px);
  color: var(--off-white);
  line-height: 1.35;
  margin-bottom: 6px;
}

.reply-subheadline {
  font-size: 12.5px;
  color: var(--cool-grey);
}

/* 3 Reply Cards Grid */
.reply-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.choice-card {
  background: rgba(247, 247, 244, 0.06);
  border: 1px solid rgba(196, 205, 213, 0.25);
  border-radius: 6px;
  padding: 18px 14px;
  text-align: left;
  color: var(--off-white);
  cursor: pointer;
  transition: all 0.3s var(--ease-tactile);
  outline: none;
  box-sizing: border-box;
}

.choice-card:hover {
  background: rgba(247, 247, 244, 0.12);
  border-color: var(--cool-grey);
  transform: translateY(-2px);
}

.choice-card.selected {
  background: rgba(247, 247, 244, 0.18);
  border-color: #ffffff;
  box-shadow: 0 0 16px rgba(196, 205, 213, 0.35);
}

.choice-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.choice-tone-tag {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cool-grey);
}

.choice-radio-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--cool-grey);
  position: relative;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.choice-card.selected .choice-radio-circle {
  border-color: #ffffff;
  background: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

.choice-quote {
  font-family: var(--font-serif);
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 6px;
  color: var(--off-white);
}

.choice-desc {
  font-size: 11px;
  color: var(--cool-grey);
  line-height: 1.35;
}

/* Output Panel */
.reply-output-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(10, 20, 28, 0.4);
  border: 1px solid rgba(196, 205, 213, 0.2);
  border-radius: 6px;
  padding: 20px;
  animation: fadeInPanel 0.4s var(--ease-tactile);
  box-sizing: border-box;
}

@keyframes fadeInPanel {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.preview-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cool-grey);
}

.copy-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #7ce4b5;
}

.response-text-card {
  background: rgba(247, 247, 244, 0.95);
  border-radius: 4px;
  padding: 16px;
  color: var(--navy-deep);
  box-sizing: border-box;
}

.response-preview-text {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.5;
}

.reply-action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-primary-reply {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--silver-foil);
  color: var(--navy-deep);
  border: 1px solid var(--silver-mid);
  border-radius: 24px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: all 0.25s var(--ease-tactile);
}

.btn-primary-reply:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.35), var(--silver-glow);
}

.btn-secondary-close {
  padding: 11px 18px;
  background: transparent;
  color: var(--cool-grey);
  border: 1px solid rgba(196, 205, 213, 0.35);
  border-radius: 24px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-secondary-close:hover {
  color: #ffffff;
  border-color: #ffffff;
  background: rgba(255,255,255,0.06);
}

.reply-helper-note {
  font-size: 10.5px;
  color: var(--cool-grey);
  font-style: italic;
  opacity: 0.8;
}

/* Final Closing Curtain Animation */
.final-closing-curtain {
  position: absolute;
  inset: 0;
  background: var(--navy-darkest);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  animation: closeDrawerSlide 1.2s var(--ease-tactile) forwards;
}

@keyframes closeDrawerSlide {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(0); }
}

.closing-quote-box {
  text-align: center;
  padding: 30px;
  max-width: 460px;
}

.final-silver-monogram {
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 0.15em;
  color: var(--dusty-blue);
  margin-bottom: 16px;
}

.closing-final-sentence {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(22px, 3.5vw, 30px);
  color: var(--off-white);
  line-height: 1.4;
  margin-bottom: 10px;
}

.closing-date-sub {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cool-grey);
  display: block;
  margin-bottom: 24px;
}

.btn-reopen-drawer {
  padding: 9px 20px;
  background: transparent;
  border: 1px solid var(--cool-grey);
  border-radius: 20px;
  color: var(--off-white);
  font-size: 11.5px;
  font-family: var(--font-sans);
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-reopen-drawer:hover {
  background: rgba(255,255,255,0.1);
  border-color: #ffffff;
}

/* --------------------------------------------------------------------------
   10. Lightbox Overlay (Modal)
   -------------------------------------------------------------------------- */
.photo-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 37, 47, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-content-card {
  position: relative;
  background: #ffffff;
  padding: 14px;
  border-radius: 4px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  z-index: 1;
  animation: zoomLightbox 0.35s var(--ease-tactile);
  box-sizing: border-box;
}

@keyframes zoomLightbox {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 26px;
  color: var(--navy-deep);
  cursor: pointer;
  line-height: 1;
}

.lightbox-matte-frame {
  width: 100%;
  aspect-ratio: 4 / 4.8;
  background: var(--navy-deep);
  border-radius: 2px;
  overflow: hidden;
}

.lightbox-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox-caption-area {
  padding: 14px 4px 4px 4px;
}

.lightbox-tag {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dusty-blue);
  display: block;
  margin-bottom: 4px;
}

.lightbox-caption {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.45;
  color: var(--navy-deep);
}

/* --------------------------------------------------------------------------
   11. Toast Notification Pill
   -------------------------------------------------------------------------- */
.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  padding: 8px 18px;
  background: var(--navy-deep);
  color: var(--off-white);
  border: 1px solid var(--cool-grey);
  border-radius: 24px;
  font-size: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  pointer-events: none;
  opacity: 0;
  z-index: 3000;
  white-space: nowrap;
  transition: all 0.35s var(--ease-tactile);
}

.toast-notification.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   12. Responsive Breakpoints & Accessibility
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .drawer-felt-bed {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .memory-board-canvas {
    grid-template-columns: repeat(6, 1fr);
  }

  .scrap-photo-1 {
    grid-column: 1 / 4;
  }

  .scrap-photo-2 {
    grid-column: 4 / 7;
  }

  .scrap-photobooth-strip {
    grid-column: 1 / 7;
    margin: 10px 0;
  }

  .photobooth-strip-container {
    width: 100%;
    max-width: 380px;
  }

  .scrap-secret-container {
    grid-column: 1 / 4;
  }

  .scrap-photo-6 {
    grid-column: 4 / 7;
  }

  .label-stamp-1, .label-stamp-2 {
    grid-column: 1 / 7;
  }
}

@media (max-width: 640px) {
  .top-nav-bar {
    padding: 0 10px;
    height: 52px;
  }

  .drawer-viewport {
    padding-top: 52px;
  }

  .scene-slide {
    top: 52px;
    min-height: calc(100vh - 52px);
    padding: 16px 8px 60px 8px;
    width: 100%;
    max-width: 100%;
  }

  .slide-inner {
    width: 100%;
    max-width: 100%;
    padding: 0 4px;
  }

  .nav-btn-back {
    padding: 4px 8px;
    font-size: 11px;
  }

  .nav-brand-title {
    font-size: 13px;
  }

  .nav-subtitle {
    display: none;
  }

  .slide-dots {
    display: none;
  }

  .slide-indicator {
    font-size: 12px;
  }

  .control-pill {
    padding: 5px 8px;
    font-size: 11px;
    gap: 4px;
  }

  .pill-text {
    display: none; /* Icon-only on mobile for perfect spacing */
  }

  .desk-surface {
    padding: 8px 0;
    width: 100%;
    max-width: 100%;
  }

  .desk-photo, .desk-folded-paper, .desk-pressed-flower, .desk-key {
    display: none; /* Hide loose background decorations on small mobile */
  }

  .drawer-cabinet-wrapper {
    width: 100%;
    max-width: 100%;
  }

  .drawer-casing-frame {
    padding: 6px;
    width: 100%;
    max-width: 100%;
  }

  .drawer-front {
    padding: 24px 10px 20px 10px;
    width: 100%;
    max-width: 100%;
  }

  .drawer-silver-filigree {
    inset: 4px;
  }

  .drawer-meta-badge {
    padding: 4px 8px;
    margin-bottom: 16px;
    gap: 4px;
  }

  .drawer-badge-text {
    font-size: 9px;
    letter-spacing: 0.04em;
  }

  .drawer-names {
    font-size: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    line-height: 1.3;
  }

  .name-sender, .name-recipient {
    display: block;
    word-break: normal;
  }

  .name-connector {
    display: block;
    font-size: 14px;
    margin: 2px 0;
  }

  .drawer-statement {
    font-size: 13.5px;
    word-break: normal;
  }

  .drawer-cup-handle {
    width: 96px;
    height: 28px;
  }

  .drawer-felt-bed {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 14px;
  }

  .complete-letter-document {
    padding: 20px 12px;
  }

  .letter-p {
    font-size: 14.5px;
    text-align: left;
  }

  .final-drawer-bed {
    padding: 20px 12px;
  }

  .reply-cards-grid {
    grid-template-columns: 1fr;
  }

  .memory-board-canvas {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 14px 8px;
  }

  .scrap-photo-1, .scrap-photo-2, .scrap-photo-6, .scrap-secret-container {
    transform: none;
    width: 100%;
  }

  .photobooth-strip-container {
    width: 100%;
    max-width: 100%;
  }

  .draggable-paper-scrap.slid-away {
    transform: translate(40px, -10px) rotate(6deg) !important;
  }

  .btn-editorial-advance {
    padding: 10px 18px;
    font-size: 13.5px;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .top-nav-bar {
    padding: 0 8px;
    height: 48px;
  }

  .drawer-viewport {
    padding-top: 48px;
  }

  .scene-slide {
    top: 48px;
    min-height: calc(100vh - 48px);
    padding: 12px 6px 50px 6px;
  }

  .drawer-casing-frame {
    padding: 4px;
  }

  .drawer-front {
    padding: 20px 8px 16px 8px;
  }

  .drawer-meta-badge {
    padding: 3px 6px;
    margin-bottom: 12px;
  }

  .drawer-badge-text {
    font-size: 8px;
    letter-spacing: 0.03em;
  }

  .drawer-names {
    font-size: 17px;
  }

  .name-connector {
    font-size: 12px;
  }

  .drawer-statement {
    font-size: 12.5px;
    line-height: 1.4;
  }

  .drawer-cup-handle {
    width: 88px;
    height: 26px;
  }

  .handle-cup-recess {
    width: 50px;
    height: 10px;
  }

  .handle-screws {
    width: 5px;
    height: 5px;
  }

  .screw-left { left: 6px; }
  .screw-right { right: 6px; }

  .handle-hint {
    font-size: 10px;
    margin-top: 8px;
  }
}

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