/* Small Space Home — tasteful motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes softIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes heroDrift {
  0% { transform: scale(1.05) translate3d(0,0,0); }
  100% { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

.hero {
  overflow: hidden;
}
.hero img {
  animation: heroDrift 18s ease-in-out infinite alternate;
  transform-origin: center center;
}
.hero .copy {
  animation: fadeUp .9s cubic-bezier(.22,1,.36,1) both;
  animation-delay: .15s;
}

a.card, .card {
  transition: transform .28s cubic-bezier(.22,1,.36,1), box-shadow .28s ease, border-color .28s ease;
}
a.card:hover, .card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 18px 40px rgba(28,25,23,.12);
  border-color: #cbbfb0;
}
a.card .pic img, .card .pic img {
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
a.card:hover .pic img, .card:hover .pic img {
  transform: scale(1.06);
}
a.card .cta, .card .cta {
  transition: letter-spacing .25s ease, color .25s ease;
}
a.card:hover .cta, .card:hover .cta {
  letter-spacing: .02em;
}

.nav a, .nav-links a {
  transition: color .2s ease, transform .2s ease;
}
.nav a:hover, .nav-links a:hover {
  color: var(--accent, #0f766e);
}

.why, .why-copy, h2, .lede, .hint, .note, .disclosure {
  /* reveal applied via JS class */
}

.accent-line {
  height: 3px;
  width: 72px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f766e, #5eead4, #0f766e);
  background-size: 200% 100%;
  animation: shimmer 3.5s linear infinite;
  margin: 10px 0 0;
}
