/* ================= motion & sparkle ================= */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
@keyframes shimmer { to { background-position: 200% center; } }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); } 50% { opacity: .9; transform: scale(1) rotate(90deg); } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(201,102,122,.5); } 50% { box-shadow: 0 0 0 14px rgba(201,102,122,0); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes zoomIn { from { transform: scale(1.18); } to { transform: scale(1); } }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sparkUp { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.4); } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.3) rotate(120deg); } }

body { animation: pageIn .5s ease; }

/* hero entrance */
.hero .eyebrow, .hero h1, .hero .lede, .hero-cta, .hero .trust,
.page-hero .eyebrow, .page-hero h1, .page-hero .lede, .page-hero .crumbs, .page-hero .byline { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero .eyebrow, .page-hero .crumbs { animation-delay: .05s; }
.page-hero .eyebrow { animation-delay: .12s; }
.hero h1, .page-hero h1 { animation-delay: .2s; }
.hero .lede, .page-hero .lede { animation-delay: .38s; }
.hero-cta, .page-hero .byline { animation-delay: .5s; }
.hero .trust { animation-delay: .62s; }
.hero-art { animation: rise 1.1s cubic-bezier(.2,.7,.2,1) .25s both; }
.hero-art > .art, .article-art .art { animation: zoomIn 1.8s cubic-bezier(.2,.7,.2,1) both; }
.article-art { animation: rise 1s cubic-bezier(.2,.7,.2,1) .3s both; }

/* shimmering gradient on the italic headline words */
.hero h1 em, .page-hero h1 em {
  background: linear-gradient(90deg, #c9667a, #b88a44, #5b2a4e, #c9667a);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; animation: shimmer 6s linear infinite;
}

/* floating hero cards */
.hero-art .card-float { animation: floaty 5s ease-in-out infinite; backdrop-filter: blur(6px); background: rgba(255,255,255,.92); }
.hero-art .c2 { animation-delay: -1.6s; animation-duration: 6s; }
.hero-art .c3 { animation-delay: -3.2s; animation-duration: 5.5s; }
.hero-art > .art { will-change: transform; }

/* sparkles */
.hero, .page-hero { position: relative; overflow: hidden; }
.sparkle { position: absolute; pointer-events: none; color: var(--rose); animation: twinkle var(--d, 4s) ease-in-out var(--delay, 0s) infinite; z-index: 0; }
.hero .wrap, .page-hero .wrap { position: relative; z-index: 1; }
.spark-click { position: fixed; z-index: 200; pointer-events: none; color: var(--rose); font-size: 16px; animation: sparkUp .9s ease-out forwards; }

/* buttons */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); transition: left .6s; }
.btn:hover::after { left: 130%; }
.btn:active { transform: scale(.97); }
.hero-cta .btn:not(.ghost) { animation: glow 2.6s ease-out infinite; }

/* nav + progress */
.site-header { transition: box-shadow .3s, background .3s; }
.site-header.scrolled { box-shadow: 0 8px 24px rgba(63,27,54,.1); }
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--rose), var(--gold), var(--plum)); transform-origin: 0 50%; transform: scaleX(0); z-index: 90; }
.nav a:not(.btn):not(.logo) { background: linear-gradient(var(--rose), var(--rose)) left bottom / 0 2px no-repeat; border-bottom: 0 !important; transition: background-size .3s, color .2s; }
.nav a:not(.btn):not(.logo):hover, .nav a[aria-current="page"]:not(.btn) { background-size: 100% 2px; }
.logo-mark { transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
.logo:hover .logo-mark { transform: rotate(-12deg) scale(1.12); }

/* marquee ticker */
.ticker { background: var(--blush); overflow: hidden; border-block: 1px solid var(--line); padding: 14px 0; }
.ticker-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { font: italic 600 1.35rem var(--serif); color: var(--plum); padding: 0 22px; white-space: nowrap; }
.ticker span.dot { color: var(--rose); font-style: normal; padding: 0; }

/* cards: 3D tilt */
.tilt { transform-style: preserve-3d; transition: transform .25s ease-out, box-shadow .25s; will-change: transform; }
.hub-card .hub-body h3 { transition: color .3s; }
.hub-card:hover .hub-body h3 { color: var(--rose); }
.more { display: inline-block; transition: transform .3s; }
a:hover .more { transform: translateX(6px); }
.pillar .num { display: inline-block; transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.pillar:hover .num { transform: translateY(-6px) rotate(-4deg) scale(1.08); }
.topic.linked:hover h3 { color: var(--rose); }
.article .tag { transition: background .3s, color .3s; }
.article:hover .tag { background: var(--rose); color: #fff; }

/* richer scroll reveal with stagger */
.reveal { transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--stagger, 0s); transform: translateY(34px) scale(.97); }
.reveal.in { transform: none; }
.reveal.tilt.in { transition: transform .25s ease-out, box-shadow .25s, opacity .8s; transition-delay: 0s; }

.sticky-bar { transition: transform .6s cubic-bezier(.3,1.4,.5,1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero h1 em, .page-hero h1 em { -webkit-text-fill-color: var(--rose); color: var(--rose); background: none; }
}
