/* Deedalis marketing site — motion layer. Everything here is progressive:
   the hidden "before" states only apply once landing.js has added
   html.motion, and prefers-reduced-motion switches all of it off. */

/* ---- nav floating over the hero video ---- */
.has-hero-full .hero-full { margin-top: -67px; min-height: 100svh; padding-top: 67px; box-shadow: 0 -4px 0 var(--band-bg); }
.nav { transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease; }
.nav.on-dark { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; }
.nav.on-dark .nav-links a { color: #fff; }
.nav.on-dark .brand-logo--primary { display: none; }
.nav.on-dark .brand-logo--reverse { display: block; }
.nav.on-dark .nav-links a:hover { color: var(--accent); }
.nav.on-dark .btn-ghost { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.35); }
.nav.on-dark .btn-ghost:hover { border-color: #fff; color: #fff; }
.nav.on-dark .btn-primary { background: #fff; color: var(--brand-ink); }

/* ---- hero entrance + scroll drift ---- */
.hero-copy > * { animation: heroIn 0.9s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.12s; }
.hero-copy > :nth-child(3) { animation-delay: 0.24s; }
.hero-copy > :nth-child(4) { animation-delay: 0.36s; }
.hero-copy > :nth-child(5) { animation-delay: 0.48s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero-bgvideo { transform: scale(calc(1.04 + var(--hp, 0) * 0.12)) translateY(calc(var(--hp, 0) * 40px)); will-change: transform; }
.hero-full-inner { opacity: calc(1 - var(--hp, 0) * 1.4); transform: translateY(calc(var(--hp, 0) * -60px)); }

/* ---- scroll reveal ---- */
.motion .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.motion .reveal.from-left { transform: translateX(-36px); }
.motion .reveal.from-right { transform: translateX(36px); }
.motion .reveal.zoom { transform: scale(0.96) translateY(20px); }
.motion .reveal.in { opacity: 1; transform: none; }
.motion .spot .panel .ev, .motion .spot .cp-card { opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s ease; }
.motion .spot.in .panel .ev, .motion .spot.in .cp-card { opacity: 1; transform: none; }
.motion .spot.in :is(.ev, .cp-card):nth-child(2) { transition-delay: 0.35s; }
.motion .spot.in :is(.ev, .cp-card):nth-child(3) { transition-delay: 0.5s; }
.motion .spot.in :is(.ev, .cp-card):nth-child(4) { transition-delay: 0.65s; }
.motion .spot.in .float-card { animation: floatIn 0.7s 0.5s cubic-bezier(.2,.7,.2,1) both; }
@keyframes floatIn { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: none; } }

/* ---- small living details ---- */
.fcard .ficon { transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease; }
.fcard:hover .ficon { transform: rotate(-6deg) scale(1.08); background: var(--brand); color: #fff; }
.proof-card .pic { transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease; }
.proof-card:hover .pic { background: var(--brand); color: #fff; transform: scale(1.08); }
.free { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.free:hover { transform: translateY(-4px); }
.cta-box::before { animation: drift 14s ease-in-out infinite alternate; }
.cta-box::after { content: ""; position: absolute; width: 22rem; height: 22rem; border-radius: 50%; background: rgba(227, 201, 160, 0.18); filter: blur(30px); left: -6rem; top: -10rem; pointer-events: none; animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(-6rem, -3rem); } }
.eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; }
.sec-head .eyebrow::before { content: ""; width: 0; height: 2px; border-radius: 2px; background: var(--brand); transition: width 0.7s 0.2s ease; }
.motion .sec-head.in .eyebrow::before, .sec-head:not(.reveal) .eyebrow::before { width: 22px; }
.sec-head.center .eyebrow::before { display: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .motion .spot.in .float-card, .cta-box::before, .cta-box::after { animation: none; }
  .hero-bgvideo, .hero-full-inner { transform: none; opacity: 1; }
  .motion .reveal, .motion .spot .panel .ev, .motion .spot .cp-card { opacity: 1; transform: none; transition: none; }
  .fcard:hover .ficon, .proof-card:hover .pic, .free:hover { transform: none; }
}
