/* QuickS - visual effects. Loaded only when the "Animations" template option is on.
   Layout and colours come first; everything that moves sits inside
   the "no-preference" block so visitors who ask for reduced motion get a still page. */

/* ---- scroll progress + back to top ---- */
.fx-progress {
	position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 90; pointer-events: none;
	background: linear-gradient(90deg, var(--q-gold), #f1dc9c);
	transform: scaleX(0); transform-origin: left;
}
.fx-top {
	position: fixed; right: 22px; bottom: 22px; z-index: 80; width: 48px; height: 48px; border-radius: 50%;
	display: grid; place-items: center; cursor: pointer; border: 2px solid var(--q-gold); background: var(--q-navy); color: var(--q-gold);
	box-shadow: 0 8px 22px rgba(0, 0, 0, .25); opacity: 0; visibility: hidden; translate: 0 16px;
}
.fx-top.is-visible { opacity: 1; visibility: visible; translate: 0 0; }
.fx-top:hover { background: var(--q-gold); color: var(--q-navy); }

/* ---- header ---- */
.has-anim .header.fx-compact .header__inner { min-height: 64px; }
.has-anim .nav a:not(.btn-cta) {
	background-image: linear-gradient(var(--q-gold), var(--q-gold));
	background-repeat: no-repeat; background-position: 50% 100%; background-size: 0 2px;
}
.has-anim .nav a:not(.btn-cta):hover,
.has-anim .nav li.active > a:not(.btn-cta),
.has-anim .nav li.current > a:not(.btn-cta) { background-color: var(--q-cream); background-size: 100% 2px; box-shadow: none; }

/* ---- buttons: light sweep ---- */
.has-anim .btn-cta { position: relative; overflow: hidden; isolation: isolate; }
.has-anim .btn-cta::after {
	content: ""; position: absolute; top: 0; bottom: 0; left: -75%; width: 45%; z-index: -1; transform: skewX(-20deg);
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
}

/* ---- hero ---- */
.has-anim .hero::after { display: none; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero__bg i { position: absolute; display: block; border-radius: 50%; }
.hero__bg i:nth-child(1) { width: 520px; height: 520px; right: -120px; top: -200px; background: radial-gradient(closest-side, color-mix(in srgb, var(--q-gold) 38%, transparent), transparent); }
.hero__bg i:nth-child(2) { width: 460px; height: 460px; left: -180px; bottom: -220px; background: radial-gradient(closest-side, rgba(94, 160, 230, .28), transparent); }
.hero__bg i:nth-child(3) { width: 400px; height: 400px; right: -130px; bottom: -150px; border: 52px solid rgba(255, 255, 255, .05); border-top-color: color-mix(in srgb, var(--q-gold) 30%, transparent); }
.hero__bg::before {
	content: ""; position: absolute; inset: -48px;
	background-image: linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
	background-size: 48px 48px;
	-webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000, transparent 70%);
	mask-image: radial-gradient(ellipse at 70% 40%, #000, transparent 70%);
}
.hero__word { display: inline-block; }
.hero__word--accent {
	color: color-mix(in srgb, var(--q-gold) 70%, #fff);
	background: linear-gradient(var(--q-gold), var(--q-gold)) no-repeat 0 96% / 100% 3px;
}

/* hero illustration */
.hero__art { display: none; }
@media (min-width: 1000px) {
	.has-anim .hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 3.5rem; align-items: center; }
	.has-anim .hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.25rem); }
	.hero__art { display: block; position: relative; translate: var(--fx-px, 0) var(--fx-py, 0); }
}
.art__panel {
	background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05));
	border: 1px solid rgba(255, 255, 255, .2); border-radius: 18px; padding: 1.4rem 1.4rem 1.2rem;
	box-shadow: 0 30px 60px rgba(0, 0, 0, .28); backdrop-filter: blur(8px);
}
.art__title { display: flex; justify-content: space-between; align-items: center; margin: 0 0 .8rem; font-weight: 600; font-size: .95rem; color: #fff; }
.art__title span { width: 9px; height: 9px; border-radius: 50%; background: #5fd08a; box-shadow: 0 0 0 4px rgba(95, 208, 138, .2); }
.art__chart { display: block; width: 100%; height: auto; overflow: visible; }
.art__bar { fill: rgba(255, 255, 255, .2); transform-box: fill-box; transform-origin: bottom; }
.art__bar:nth-of-type(even) { fill: color-mix(in srgb, var(--q-gold) 55%, transparent); }
.art__line { fill: none; stroke: var(--q-gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.art__dot { fill: #fff; stroke: var(--q-gold); stroke-width: 3; }
.art__list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .55rem; }
.art__list li { display: flex; align-items: center; gap: .65rem; font-size: .9rem; color: #e4ebf3; background: rgba(255, 255, 255, .07); border-radius: 10px; padding: .5rem .75rem; }
.art__list svg { width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--q-gold); fill: none; stroke: var(--q-navy); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.art__list path { stroke-dasharray: 24; stroke-dashoffset: 0; }
.art__chip {
	position: absolute; display: flex; align-items: center; gap: .5rem; padding: .55rem .9rem; border-radius: 999px;
	background: #fff; color: var(--q-navy); font-size: .83rem; font-weight: 700; box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}
.art__chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--q-gold); }
.art__chip--1 { top: -18px; left: -34px; }
.art__chip--2 { bottom: -18px; right: -14px; }

/* ---- scrolling strip of services ---- */
.ticker { overflow: hidden; background: var(--q-gold); color: var(--q-navy); padding: .85rem 0; }
.ticker__track { display: flex; width: max-content; }
.ticker ul { display: flex; list-style: none; margin: 0; padding: 0; flex: none; }
.ticker li { display: flex; align-items: center; white-space: nowrap; font-family: var(--q-serif); font-weight: 700; font-size: 1.05rem; }
.ticker li::after { content: ""; width: 7px; height: 7px; margin: 0 1.8rem; background: currentColor; transform: rotate(45deg); opacity: .6; }

/* ---- home intro statement ---- */
.has-anim.is-home .item-page { position: relative; padding-top: 2.6rem; }
.has-anim.is-home .item-page::before {
	content: ""; position: absolute; top: 0; left: 50%; width: 90px; height: 4px; margin-left: -45px; border-radius: 4px;
	background: linear-gradient(90deg, transparent, var(--q-gold), transparent);
}
.has-anim.is-home .item-page p { text-align: center !important; font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.9; }

/* ---- section heading underline ---- */
.has-anim .section-head h2::after {
	content: ""; display: block; width: 70px; height: 4px; margin: .7rem auto 0; border-radius: 4px; background: var(--q-gold);
}

/* ---- service cards ---- */
.has-anim .services .card { position: relative; overflow: hidden; isolation: isolate; }
.has-anim .services .card::before {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; pointer-events: none;
	background: radial-gradient(320px circle at var(--fx-mx, 50%) var(--fx-my, 0%), color-mix(in srgb, var(--q-gold) 20%, transparent), transparent 70%);
}
.has-anim .services .card::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--q-navy); transform: scaleX(0); transform-origin: left;
}
.has-anim .services .card:hover, .has-anim .services .card:focus-visible { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(14, 42, 71, .16); }
.has-anim .services .card:hover::before, .has-anim .services .card:focus-visible::before { opacity: 1; }
.has-anim .services .card:hover::after, .has-anim .services .card:focus-visible::after { transform: scaleX(1); }
.has-anim .services .card:hover .card__icon { background: var(--q-navy); color: var(--q-gold); transform: rotate(-6deg) scale(1.12); }
.has-anim .card__more { display: inline-block; }
.has-anim .services .card:hover .card__more { translate: 6px 0; }

/* ---- call-to-action band ---- */
.has-anim .band {
	background: linear-gradient(110deg, var(--q-navy) 0%, var(--q-navy) 30%, color-mix(in srgb, var(--q-navy) 68%, var(--q-gold)) 55%, var(--q-navy) 80%);
	background-size: 220% 100%;
}

/* ---- inner pages ---- */
.has-anim.is-inner .page-header h1::after { content: ""; display: block; width: 64px; height: 4px; margin-top: .6rem; border-radius: 4px; background: var(--q-gold); }

/* =====================================================================
   Motion
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {

	.fx-top { transition: opacity .3s, visibility .3s, translate .3s, background .2s, color .2s; }
	.has-anim .header__inner { transition: min-height .25s; }
	.has-anim .nav a:not(.btn-cta) { transition: background-size .28s, background-color .2s, color .2s; }
	.has-anim .btn-cta:hover, .has-anim .btn-ghost:hover { transform: translateY(-2px); }
	.has-anim .btn-cta:hover::after { left: 130%; transition: left .7s ease; }

	/* dropdown menu (desktop) */
	@media (min-width: 901px) {
		.has-anim .nav ul ul { display: flex; visibility: hidden; opacity: 0; translate: 0 10px; transition: opacity .22s, translate .22s, visibility .22s; }
		.has-anim .nav li:hover > ul, .has-anim .nav li:focus-within > ul { visibility: visible; opacity: 1; translate: 0 0; }
	}
	@media (max-width: 900px) {
		.has-anim .nav.is-open { animation: fx-drop .3s ease both; }
	}

	/* hero entrance */
	.has-anim .hero__eyebrow { animation: fx-rise .6s ease both; }
	.has-anim .hero__word { animation: fx-word .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.12s + var(--i) * 55ms); }
	.has-anim .hero__word--accent { animation: fx-word .7s cubic-bezier(.2, .7, .2, 1) both, fx-underline .6s ease both; animation-delay: calc(.12s + var(--i) * 55ms), 1.25s; }
	.has-anim .hero__lead { animation: fx-rise .7s .7s ease both; }
	.has-anim .hero__actions { animation: fx-rise .7s .85s ease both; }
	.has-anim .hero__stats li { animation: fx-rise .6s ease both; }
	.has-anim .hero__stats li:nth-child(1) { animation-delay: 1s; }
	.has-anim .hero__stats li:nth-child(2) { animation-delay: 1.12s; }
	.has-anim .hero__stats li:nth-child(3) { animation-delay: 1.24s; }
	.has-anim .hero__actions .btn-cta { animation: fx-pulse 2.8s 2s ease-out infinite; }

	/* hero background */
	.hero__bg i:nth-child(1) { animation: fx-drift 14s ease-in-out infinite alternate; }
	.hero__bg i:nth-child(2) { animation: fx-drift 18s -6s ease-in-out infinite alternate-reverse; }
	.hero__bg i:nth-child(3) { animation: fx-spin 28s linear infinite; }
	.hero__bg::before { animation: fx-grid 12s linear infinite; }

	/* hero illustration */
	.hero__art { animation: fx-art .9s .35s cubic-bezier(.2, .7, .2, 1) both; transition: translate .35s ease-out; }
	.art__panel { animation: fx-float 7s 1.4s ease-in-out infinite; }
	.art__chip--1 { animation: fx-float 5s .4s ease-in-out infinite; }
	.art__chip--2 { animation: fx-float 6s 1.8s ease-in-out infinite reverse; }
	.art__title span { animation: fx-blink 2s ease-in-out infinite; }
	.art__bar { animation: fx-grow .8s cubic-bezier(.2, .8, .3, 1) both; animation-delay: calc(.7s + var(--i) * 90ms); }
	.art__line { animation: fx-draw 1.6s 1.1s ease both; }
	.art__dot { animation: fx-fade .4s 2.6s ease both; }
	.art__list li { animation: fx-rise .5s ease both; animation-delay: calc(1.5s + var(--i) * .35s); }
	.art__list path { animation: fx-tick .45s ease both; animation-delay: calc(1.85s + var(--i) * .35s); }

	/* strip */
	.ticker__track { animation: fx-ticker 38s linear infinite; }
	.ticker:hover .ticker__track { animation-play-state: paused; }

	/* cards */
	.has-anim .services .card { transition: transform .3s ease, box-shadow .3s ease; }
	.has-anim .services .card::before { transition: opacity .3s; }
	.has-anim .services .card::after { transition: transform .4s ease; }
	.has-anim .card__icon { transition: transform .3s, background .3s, color .3s; }
	.has-anim .card__more { transition: translate .25s; }

	.has-anim .band { animation: fx-sheen 11s ease-in-out infinite alternate; }

	/* inner pages */
	.has-anim.is-inner .page-header h1 { animation: fx-rise .6s ease both; }
	.has-anim .gkBullet2 li { transition: translate .2s, box-shadow .2s; }
	.has-anim .gkBullet2 li:hover { translate: 6px 0; box-shadow: var(--q-shadow); }

	/* scroll reveal: classes are added and removed again by effects.js */
	.has-anim .fx-reveal { opacity: 0; translate: 0 34px; transition: none; }
	.has-anim .fx-reveal.fx-in {
		opacity: 1; translate: 0 0;
		transition: opacity .7s ease var(--fx-delay, 0s), translate .7s cubic-bezier(.2, .7, .2, 1) var(--fx-delay, 0s);
	}
}

@keyframes fx-rise { from { opacity: 0; translate: 0 22px; } }
@keyframes fx-word { from { opacity: 0; translate: 0 .55em; filter: blur(6px); } }
@keyframes fx-underline { from { background-size: 0 3px; } }
@keyframes fx-drop { from { opacity: 0; translate: 0 -10px; } }
@keyframes fx-pulse {
	0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--q-gold) 65%, transparent); }
	60%, 100% { box-shadow: 0 0 0 14px transparent; }
}
@keyframes fx-drift { to { transform: translate(-60px, 50px) scale(1.15); } }
@keyframes fx-spin { to { transform: rotate(1turn); } }
@keyframes fx-grid { to { transform: translate(48px, 48px); } }
@keyframes fx-art { from { opacity: 0; transform: translateX(50px) scale(.95); } }
@keyframes fx-float { 50% { transform: translateY(-10px); } }
@keyframes fx-blink { 50% { box-shadow: 0 0 0 8px rgba(95, 208, 138, 0); } }
@keyframes fx-grow { from { transform: scaleY(0); } }
@keyframes fx-draw { from { stroke-dashoffset: 100; } }
@keyframes fx-fade { from { opacity: 0; } }
@keyframes fx-tick { from { stroke-dashoffset: 24; } }
@keyframes fx-ticker { to { transform: translateX(-50%); } }
@keyframes fx-sheen { from { background-position: 0 0; } to { background-position: 100% 0; } }

@media print {
	.fx-progress, .fx-top, .ticker { display: none; }
}
