/* Motion layer for the homepage: staggered word reveals, glass panel, drifting light, floating phones,
   tool tabs that follow the scroll. Only animation and layout polish; copy, colours and images are unchanged.
   Everything is gated by html.mo (set by motion.js) and prefers-reduced-motion. */

/* --- hero headline: words rise out of a mask --- */
.mo .mwo { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .14em; margin: 0 -.06em -.14em; }
.mo .mwi { display: inline-block; transform: translateY(112%); animation: moUp 1s cubic-bezier(.2, .8, .15, 1) forwards; animation-delay: calc(.12s + var(--i) * .09s); }
@keyframes moUp { to { transform: none; } }
@keyframes moFade { from { opacity: 0; transform: translateY(18px); } }

/* --- hero: drifting light behind the copy --- */
@keyframes moBlobA { to { transform: translate(14vw, 10vh) scale(1.18); } }
@keyframes moBlobB { to { transform: translate(-12vw, -8vh) scale(1.15); } }

/* --- hero quotes: frosted glass panel that floats --- */
@keyframes moFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

/* --- hero button: arrow chip --- */

/* --- section headings: words fill in as you scroll --- */
.mo .sw { opacity: .16; transition: opacity .25s linear; }
.mo .sw-done .sw { opacity: 1; }

/* --- widget entrance and idle float --- */
.mo .tw { opacity: 0; transform: translateY(56px) scale(.965); transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1); }
.mo .tw.in { opacity: 1; transform: none; }
.mo .tw-ph { animation: moFloatR 8s ease-in-out infinite; }
@keyframes moFloatR { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* --- three tools: phones float, pill tabs follow the scroll --- */
.mo .f-ph { animation: moFloatP 7s ease-in-out infinite; }
.mo .f-hc.b .f-ph { animation-delay: -2.4s; } .mo .f-hc.c .f-ph { animation-delay: -4.6s; }
@keyframes moFloatP { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.mt-tabs { display: none; }
html.f-pinon .mt-tabs { display: inline-flex; gap: 4px; margin-left: auto; padding: 5px; border-radius: 99px; background: rgba(59, 34, 24, .06); box-shadow: inset 0 0 0 1px rgba(59, 34, 24, .08); }
.mt-tabs button { font: 600 13px/1 "DM Sans", Inter, sans-serif; letter-spacing: .01em; color: #6b5246; background: transparent; border: 0; border-radius: 99px; padding: 10px 18px; cursor: pointer; transition: background .3s, color .3s, box-shadow .3s; }
.mt-tabs button:hover { color: #3b2218; }
.mt-tabs button[aria-selected="true"] { background: #fff; color: #3b2218; box-shadow: 0 6px 16px -8px rgba(59, 34, 24, .5); }

@media (prefers-reduced-motion: reduce) {
  .mo .mwi { transform: none; animation: none; }
  .mo .sw { opacity: 1; } .mo .tw { opacity: 1; transform: none; transition: none; }
  .mo .tw-ph, .mo .f-ph { animation: none; }
}

@media (max-width: 880px) {
}
