/* The Curation Corner · motion and interaction layer
   Calm, slow movement in the sage and greige palette.
   Everything here switches off for visitors who ask for reduced motion.
   Created by Kiara @ The Curation Corner */

/* ── 1. Scroll reveals ──────────────────────── */
/* Content is only hidden once motion.js has confirmed it can reveal it,
   so the page is fully readable if the script never runs. */
.motion-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.motion-ready .reveal.is-visible { opacity: 1; transform: none; }

/* ── 2. Hero glow (slow sage and greige drift) ── */
.hero-glow {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background:
    radial-gradient(38% 46% at 22% 30%, rgba(95, 115, 92, 0.20), transparent 70%),
    radial-gradient(34% 40% at 78% 64%, rgba(183, 174, 164, 0.42), transparent 72%),
    radial-gradient(30% 36% at 60% 18%, rgba(214, 208, 199, 0.55), transparent 70%);
  animation: hero-drift 26s ease-in-out infinite alternate;
}
@keyframes hero-drift {
  0%   { transform: translate3d(-3%, -2%, 0) scale(1); }
  50%  { transform: translate3d(3%, 2%, 0) scale(1.06); }
  100% { transform: translate3d(-1%, 3%, 0) scale(1.02); }
}

/* ── 3. Hero supporting copy ───────────────── */
/* The headline itself stays still and visible from the first moment.
   Only the line beneath it and the buttons settle in, quickly. */
.motion-ready .hero-fade {
  opacity: 0;
  animation: soft-in 0.6s ease forwards;
  animation-delay: 0.1s;
}
.motion-ready .hero-ctas.hero-fade { animation-delay: 0.25s; }
@keyframes soft-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── 4. Card lift and sage glow ─────────────── */
.post-card,
.offer-block,
.bento-card {
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
              box-shadow 0.45s ease, border-color 0.45s ease;
}
.post-card img { transition: opacity 0.3s, box-shadow 0.45s ease; }
.post-card:hover,
.post-card:focus-visible { transform: translateY(-4px); }
.post-card:hover img,
.post-card:focus-visible img { box-shadow: 0 0 0 1px rgba(95, 115, 92, 0.35), 0 18px 34px -18px rgba(79, 98, 80, 0.55); }
.offer-block:hover,
.bento-card:hover,
.bento-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(95, 115, 92, 0.55);
  box-shadow: 0 0 0 1px rgba(95, 115, 92, 0.22), 0 20px 40px -22px rgba(79, 98, 80, 0.5);
}

/* ── 5. Bento grid (Work With Me overview) ──── */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(210px, auto);
  gap: 1.25rem;
  margin-top: 2.6rem;
}
.bento-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.25rem 2.25rem 2rem;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  background: var(--ivory);
  color: var(--ink);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.bento-card h3 { font-size: clamp(25px, 2.6vw, 31px); margin-bottom: 0.7rem; }
.bento-card p { font-size: 15.5px; line-height: 1.75; color: var(--olive-grey); }
.bento-card .section-label { margin-bottom: 1.1rem; }
.bento-card .bento-go {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
}
.bento-card .bento-go span { display: inline-block; transition: transform 0.35s ease; }
.bento-card:hover .bento-go span { transform: translateX(4px); }
.bento-card--wide { grid-column: span 2; }
.bento-card--tall { grid-row: span 2; }
.bento-card--sage {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
}
.bento-card--sage::after {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  right: -110px; bottom: -110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 208, 199, 0.18), transparent 70%);
  pointer-events: none;
}
.bento-card--sage h3 { color: var(--ivory); }
.bento-card--sage p { color: rgba(244, 241, 235, 0.86); }
.bento-card--sage .section-label,
.bento-card--sage .bento-go { color: var(--greige); }
.bento-card--sage:hover { border-color: var(--sage); }
@media (max-width: 760px) {
  .bento { grid-template-columns: 1fr; }
  .bento-card--wide, .bento-card--tall { grid-column: auto; grid-row: auto; }
  .bento-card { padding: 1.9rem 1.6rem; }
}

/* ── 6. Testimonial strip ───────────────────── */
.testimonials { padding: 74px 0; overflow: hidden; }
.testimonials .section-inner { padding: 0 1.75rem; }
.t-marquee {
  margin-top: 2.4rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.t-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: t-scroll 70s linear infinite;
}
.t-marquee:hover .t-track,
.t-marquee:focus-within .t-track { animation-play-state: paused; }
@keyframes t-scroll { to { transform: translateX(calc(-50% - 0.75rem)); } }
.t-card {
  width: min(78vw, 430px);
  flex: 0 0 auto;
  padding: 2.25rem 2.25rem 2rem;
  background: var(--ivory);
  border: 1px solid var(--hairline);
  border-left: 2px solid var(--sage);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.4rem;
}
.t-card blockquote {
  font-family: var(--display);
  font-style: italic;
  font-size: 23px;
  line-height: 1.42;
  color: var(--ink);
}
.t-card cite {
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 500;
  line-height: 1.7;
}

/* ── Reduced motion: everything still, nothing hidden ── */
@media (prefers-reduced-motion: reduce) {
  .motion-ready .reveal,
  .motion-ready .hero-fade { opacity: 1; transform: none; filter: none; animation: none; transition: none; }
  .hero-glow { animation: none; }
  .post-card, .offer-block, .bento-card, .post-card img { transition: none; }
  .post-card:hover, .offer-block:hover, .bento-card:hover { transform: none; }
  .t-marquee { -webkit-mask-image: none; mask-image: none; }
  .t-track { animation: none; width: auto; flex-wrap: wrap; padding: 0 1.75rem; justify-content: center; }
  .t-track [aria-hidden="true"] { display: none; }
}
