@media (prefers-reduced-motion: reduce) {
  .sl-fx-ready .letter-content p,
  .sl-fx-ready .letter-highlight {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    background-size: 100% 100% !important;
  }
  .sl-leaves-container,
  .sl-progress,
  .sl-phone-icon,
  .sl-squirrel,
  .sl-cta-overlay {
    display: none !important;
  }
}

.sl-fx-ready .letter-content p {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.sl-fx-ready .letter-content p.sl-visible {
  opacity: 1;
  transform: translateY(0);
}

.sl-fx-ready .letter-content p.letter-updated,
.sl-fx-ready .letter-content p.letter-greeting {
  opacity: 1;
  transform: none;
}

.sl-fx-ready .sl-cascade {
  transition-delay: var(--sl-delay, 0s) !important;
}

.sl-leaves-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.sl-leaf {
  position: absolute;
  opacity: 0;
  will-change: transform;
}

.sl-leaf img {
  pointer-events: none;
  user-select: none;
}

.sl-leaf-1 { left: 4%; top: 10%; animation: sl-drift-a 28s ease-in-out infinite 3s; width: 90px; height: 90px; }
.sl-leaf-2 { left: 86%; top: 20%; animation: sl-drift-b 32s ease-in-out infinite 7s; width: 72px; height: 72px; }
.sl-leaf-3 { left: 12%; top: 45%; animation: sl-drift-c 26s ease-in-out infinite 1s; width: 80px; height: 80px; }
.sl-leaf-4 { left: 80%; top: 55%; animation: sl-drift-a 30s ease-in-out infinite 10s; width: 60px; height: 60px; }
.sl-leaf-5 { left: 42%; top: 76%; animation: sl-drift-b 34s ease-in-out infinite 5s; width: 68px; height: 68px; }

@keyframes sl-drift-a {
  0%, 100% { opacity: 0; transform: translate(0, 0) rotate(0deg); }
  15% { opacity: 0.7; }
  50% { opacity: 0.8; transform: translate(35px, 50px) rotate(40deg); }
  85% { opacity: 0.7; }
}

@keyframes sl-drift-b {
  0%, 100% { opacity: 0; transform: translate(0, 0) rotate(0deg); }
  15% { opacity: 0.65; }
  50% { opacity: 0.8; transform: translate(-25px, 45px) rotate(-35deg); }
  85% { opacity: 0.65; }
}

@keyframes sl-drift-c {
  0%, 100% { opacity: 0; transform: translate(0, 0) rotate(0deg); }
  15% { opacity: 0.6; }
  50% { opacity: 0.8; transform: translate(20px, -35px) rotate(55deg); }
  85% { opacity: 0.6; }
}

.sl-progress {
  position: absolute;
  left: calc(50% - 396px);
  top: 140px;
  bottom: 140px;
  width: 2px;
  z-index: 1;
  pointer-events: none;
}

.sl-progress-track {
  width: 100%;
  height: 100%;
  background: rgba(163, 230, 53, 0.1);
  border-radius: 1px;
  position: relative;
}

.sl-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, #a3e635, #65a30d);
  border-radius: 1px;
  will-change: height;
}

.sl-progress-dot {
  position: absolute;
  left: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a3e635;
  box-shadow: 0 0 6px rgba(163, 230, 53, 0.4);
  will-change: top;
  top: 0%;
}

.sl-progress-leaf {
  position: absolute;
  left: -7px;
  width: 16px;
  height: 16px;
  color: #a3e635;
  opacity: 0.2;
  transition: opacity 0.5s ease;
}

.sl-progress-leaf.sl-passed {
  opacity: 0.7;
}

.sl-progress-leaf svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

@media (max-width: 920px) {
  .sl-progress { display: none; }
}

.sl-fx-ready .letter-highlight {
  background: linear-gradient(to right, rgba(163, 230, 53, 0.3) 100%, transparent 0%);
  background-size: 0% 40%;
  background-position: left bottom;
  background-repeat: no-repeat;
  transition: background-size 0.7s ease 0.2s;
  padding: 0 4px;
  margin: 0 -4px;
}

.sl-fx-ready p.sl-visible .letter-highlight {
  background-size: 100% 40%;
}

.sl-phone-wrap {
  position: relative;
  display: inline;
}

.sl-phone-icon {
  position: absolute;
  right: -38px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  opacity: 0;
  transition: opacity 0.5s ease 0.4s;
  color: #a3a3a3;
}

.sl-phone-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sl-phone-icon.sl-phone-show {
  opacity: 0.45;
  animation: sl-buzz 0.25s ease-in-out 0.6s 3;
}

@keyframes sl-buzz {
  0%, 100% { transform: translateY(-50%) rotate(0deg); }
  25% { transform: translateY(-50%) rotate(3deg) translateX(1px); }
  75% { transform: translateY(-50%) rotate(-3deg) translateX(-1px); }
}

@media (max-width: 800px) {
  .sl-phone-icon { display: none; }
}

.sl-squirrel {
  position: fixed;
  right: -50px;
  width: 36px;
  height: 36px;
  z-index: 800;
  cursor: pointer;
  transition: right 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: auto;
}

.sl-squirrel svg {
  width: 100%;
  height: 100%;
}

.sl-squirrel.sl-peek {
  right: -2px;
}

.sl-squirrel:hover {
  transform: scale(1.08);
}

.sl-squirrel.sl-exit {
  right: -50px;
  transition: right 0.35s ease-in;
}

.sl-squirrel.sl-flip {
  animation: sl-flip 0.45s ease;
}

@keyframes sl-flip {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(360deg) scale(1.15); }
  100% { transform: rotate(360deg); }
}

.sl-cta-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 350px;
  background: linear-gradient(to bottom, transparent 0%, rgba(10, 10, 10, 0.04) 40%, rgba(10, 10, 10, 0.12) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.5s ease;
  z-index: 0;
}

.sl-cta-overlay.sl-active {
  opacity: 1;
}

.sl-fx-ready .sl-here-it-is {
  transition: opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.sl-fx-ready .sl-here-it-is.sl-visible strong {
  color: #0a0a0a;
  font-size: 34px;
  display: inline-block;
  transition: font-size 0.6s ease;
}

.letter-content {
  position: relative;
  z-index: 2;
}
