/* NOVA Facade — finishing touches: letter-by-letter headings, partners ribbon, messenger button (see js/extra.js) */

/* headings rise letter by letter */
.nf-split .ch { display: inline-block; opacity: 0; transform: translateY(.55em) rotate(5deg); transition: opacity .55s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 18ms); }
.nf-split.in .ch { opacity: 1; transform: none; }
.nf-split .w { white-space: nowrap; }

/* partners: an endless ribbon, logos come alive on hover */
.nf-marquee { position: relative; overflow: hidden; padding: 6px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.nf-marquee + .nf-marquee { margin-top: 14px; }
.nf-track { display: flex; gap: 16px; width: max-content; animation: nf-marquee 45s linear infinite; }
.nf-marquee.rev .nf-track { animation-direction: reverse; }
.nf-marquee:hover .nf-track { animation-play-state: paused; }
.nf-track > * { display: grid; place-items: center; flex: none; width: 190px; height: 100px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: transform .3s ease, box-shadow .3s ease; }
.nf-track > *:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, .1); }
.nf-track img { max-height: 64px; max-width: 150px; width: auto; object-fit: contain; filter: grayscale(1) opacity(.7); transition: filter .3s ease, transform .3s ease; }
.nf-track > *:hover img { filter: none; transform: scale(1.06); }
.nf-track span { font-weight: 700; text-align: center; }
@keyframes nf-marquee { to { transform: translateX(-50%); } }
.partners.nf-hidden { display: none; }

/* messenger button */
.nf-fab { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.nf-fab a { display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 999px; color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); opacity: 0; transform: translateY(10px) scale(.96); pointer-events: none; transition: opacity .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1); }
.nf-fab.open a { opacity: 1; transform: none; pointer-events: auto; }
.nf-fab.open a:nth-child(2) { transition-delay: .05s; }
.nf-fab.open a:nth-child(3) { transition-delay: .1s; }
.nf-fab .tg { background: #2aabee; }
.nf-fab .wa { background: #25d366; }
.nf-fab .call { background: var(--ink); border: 1px solid rgba(200, 164, 106, .5); }
.nf-fab button { position: relative; width: 58px; height: 58px; border: 0; border-radius: 50%; background: var(--gold); color: var(--ink); font-size: 22px; cursor: pointer; box-shadow: 0 10px 26px rgba(200, 164, 106, .35); transition: transform .3s ease; }
.nf-fab button::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(200, 164, 106, .55); animation: nf-pulse 2.4s infinite; }
.nf-fab.open button { transform: rotate(90deg); }
.nf-fab button .fa-xmark { display: none; }
.nf-fab.open button .fa-comment-dots { display: none; }
.nf-fab.open button .fa-xmark { display: inline; }
@keyframes nf-pulse { to { box-shadow: 0 0 0 16px rgba(200, 164, 106, 0); } }
.lightbox:not([hidden]) ~ .nf-fab, .nav-open .nf-fab { display: none; }

@media (max-width: 640px) {
  .nf-track > * { width: 150px; height: 84px; }
  .nf-fab { right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .nf-split .ch { opacity: 1; transform: none; transition: none; }
  .nf-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .nf-fab button::before { animation: none; }
}
