/* Nuform Group – fillers, decoration, motion and the scroll-stack companies section. */

body { position: relative; overflow-x: clip; }
main, .site-footer { position: relative; z-index: 1; }

/* Side decoration: sits in the page margins, behind content */
.side-deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; will-change: transform; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .22; animation: drift 18s ease-in-out infinite alternate; }
.orb--orange { width: 360px; height: 360px; background: var(--orange); left: -140px; top: 14%; }
.orb--green  { width: 420px; height: 420px; background: var(--green); right: -170px; top: 34%; animation-delay: -6s; }
.orb--blue   { width: 340px; height: 340px; background: var(--blue); left: -130px; top: 62%; animation-delay: -10s; opacity: .16; }
.orb--yellow { width: 380px; height: 380px; background: var(--yellow); right: -150px; top: 80%; animation-delay: -3s; opacity: .28; }
.dots { position: absolute; width: 150px; height: 340px; background-image: radial-gradient(var(--green) 1.6px, transparent 1.8px); background-size: 20px 20px; opacity: .22; }
.dots--l { left: 14px; top: 52%; } .dots--r { right: 14px; top: 22%; }
.ring { position: absolute; width: 190px; height: 190px; border-radius: 50%; border: 2px dashed var(--orange); opacity: .3; animation: spin 40s linear infinite; }
.ring--l { left: -70px; top: 38%; } .ring--r { right: -60px; top: 66%; border-color: var(--blue); animation-direction: reverse; }
.mark { position: absolute; width: 180px; height: 180px; background: url("/assets/images/favicon.png") center/contain no-repeat; opacity: .08; animation: floaty 9s ease-in-out infinite; }
.mark--l { left: 2%; top: 26%; } .mark--r { right: 2%; top: 48%; animation-delay: -4s; }
@media (max-width: 767.98px) { .dots, .mark { display: none; } .orb { opacity: .14; } }

@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(40px, 60px, 0) scale(1.15); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-22px) rotate(4deg); } }
@keyframes floaty-y { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes grow-line { from { width: 0; } }

/* Section fillers so the sides of every block carry some design */
.section, .page-hero, .hero { position: relative; overflow: hidden; }
.section > .container, .page-hero > .container, .hero > .container { position: relative; z-index: 1; }
.section--tint::before, .section--dark::before, .page-hero::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -200px; top: -160px; background: radial-gradient(circle, rgba(255, 188, 38, .28), transparent 68%); animation: drift 16s ease-in-out infinite alternate; pointer-events: none; }
.page-hero::before { background: radial-gradient(circle, rgba(229, 103, 30, .2), transparent 68%); }
.section--tint::after { content: ""; position: absolute; left: -90px; bottom: 40px; width: 220px; height: 220px; background-image: radial-gradient(var(--green) 1.6px, transparent 1.8px); background-size: 20px 20px; opacity: .2; pointer-events: none; }
.section--dark { background: var(--green-deep) radial-gradient(circle at 12% 90%, rgba(0, 100, 200, .28), transparent 40%); }
.section--dark::after { content: ""; position: absolute; left: -120px; top: 20%; width: 300px; height: 300px; border-radius: 50%; border: 2px dashed rgba(255, 188, 38, .35); animation: spin 50s linear infinite; pointer-events: none; }
.hero::before { content: ""; position: absolute; left: -110px; top: 12%; width: 240px; height: 240px; border-radius: 50%; border: 2px dashed rgba(229, 103, 30, .35); animation: spin 45s linear infinite; }
.hero::after { content: ""; position: absolute; right: 3%; bottom: 24px; width: 180px; height: 120px; background-image: radial-gradient(var(--orange) 1.6px, transparent 1.8px); background-size: 20px 20px; opacity: .3; }

/* Motion */
.hero__panel { animation: floaty-y 7s ease-in-out infinite; }
.hero__panel--2 { animation-delay: -2s; } .hero__panel--3 { animation-delay: -4s; } .hero__panel--4 { animation-delay: -1s; }
.eyebrow::before { animation: grow-line 1.2s ease both; }
.btn-nuform, .btn-light-solid { position: relative; overflow: hidden; }
.btn-nuform::after, .btn-light-solid::after { content: ""; position: absolute; inset: 0 auto 0 -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); transition: left .6s; }
.btn-nuform:hover::after, .btn-light-solid:hover::after { left: 130%; }
.brand-strip span { transition: flex .4s; }
.brand-strip:hover span:hover { flex: 3; }
.company-detail__image img { transition: transform .6s ease; }
.company-detail__image:hover img { transform: scale(1.04); }

/* Logo marquee (home page) */
.ecosystem { padding-bottom: 1.6rem; overflow: hidden; }
.marquee { 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); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee .ecosystem__logos { flex-wrap: nowrap; justify-content: flex-start; gap: 0 4rem; padding-right: 4rem; }
.marquee .ecosystem__logos li { flex: none; }

/* Scroll-stack company cards */
.stack-section { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(4rem, 7vw, 6rem); position: relative; }
.stack-wrap { display: grid; gap: 2.5rem; }
.stack-card { position: relative; background: color-mix(in srgb, var(--accent) 9%, #fff); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line)); border-radius: 32px; padding: clamp(1.8rem, 4vw, 3.2rem); box-shadow: 0 -10px 40px -18px rgba(11, 61, 43, .28); overflow: hidden; transform-origin: 50% 0; will-change: transform; }
.stack-card::before { content: ""; position: absolute; right: -90px; top: -90px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%); pointer-events: none; }
.stack-card > .row { position: relative; z-index: 1; }
.stack-card__num { position: absolute; right: 2rem; bottom: .6rem; font-family: var(--font-display); font-size: clamp(4rem, 9vw, 7rem); line-height: 1; color: color-mix(in srgb, var(--accent) 16%, transparent); font-weight: 600; pointer-events: none; }
.stack-card__num small { font-size: .35em; }
.stack-card .company-detail__image { max-width: 300px; }
.stack-card .company-detail__image img { max-height: 420px; object-fit: cover; object-position: top; }
.stack-card .section-title { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.stack-card .lead-text { font-size: 1.05rem; }
.stack-card .company-card__sector { color: var(--accent); }
.stack-card .btn-nuform { background: var(--accent); border-color: var(--accent); }
.stack-card .btn-nuform:hover { background: var(--ink); border-color: var(--ink); }
@media (min-width: 1200px) { .stack-card .check-list { grid-template-columns: 1fr 1fr; gap: .6rem 1.6rem; } }
@media (min-width: 992px) and (min-height: 680px) {
  .stack-wrap { gap: 4rem; padding-bottom: 8vh; }
  .stack-card { position: sticky; top: calc(96px + var(--i) * 22px); min-height: min(540px, calc(100vh - 170px)); display: flex; align-items: center; }
  .stack-card > .row { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .stack-card { transform: none !important; filter: none !important; }
}

/* 404 page */
.error-page { padding-block: clamp(4rem, 9vw, 7rem); }
.error-page__code { font-family: var(--font-display); font-size: clamp(6rem, 20vw, 12rem); line-height: 1; margin: 0; background: linear-gradient(90deg, var(--orange), var(--yellow), var(--green), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; animation: floaty-y 6s ease-in-out infinite; }
.error-page__companies { list-style: none; padding: 0; margin: 3rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 2.5rem; }
.error-page__companies img { height: 36px; width: auto; opacity: .85; transition: opacity .2s, transform .2s; }
.error-page__companies a:hover img { opacity: 1; transform: scale(1.06); }
