/*
 * Markital homepage motion layer (Nov 2026). Pairs with home-motion.js.
 * Every rule is scoped to .mk-motion (added by the script), so if the script
 * never runs, nothing here applies. The script itself does not run under
 * prefers-reduced-motion.
 */

/* ---------- utility ---------- */
.mk-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ============================================================
   1a. Word-lit headings
   ============================================================ */
.mk-motion .mw-on .mw {
	opacity: clamp(.2, calc(var(--p, 0) * (var(--n, 1) + 1.5) - var(--i, 0)), 1);
	transition: opacity .3s linear;
}

/* ============================================================
   2a. Custom cursor
   ============================================================ */
.mk-cur {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 130; /* above .mk-grain (100), the chat (90) and the progress bar (120) */
	pointer-events: none;
	opacity: 0;
	transition: opacity .25s linear;
	will-change: transform;
}
.mk-cur-on .mk-cur { opacity: 1; }
.mk-cur-on.mk-cur-native .mk-cur { opacity: 0; }

.mk-cur--dot {
	width: 6px;
	height: 6px;
	margin: -3px 0 0 -3px;
	border-radius: 50%;
	background: #7CE02A;
	box-shadow: 0 0 0 1px rgba(10, 15, 11, .35);
}
.mk-cur--ring {
	width: 38px;
	height: 38px;
	margin: -19px 0 0 -19px;
}
.mk-cur--ring::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 1.5px solid rgba(124, 224, 42, .75);
	box-shadow: 0 0 0 1px rgba(10, 15, 11, .18);
	transition: transform .4s cubic-bezier(.22, .8, .24, 1), background-color .3s, border-color .3s;
}
.mk-cur--ring[data-s="link"]::before {
	transform: scale(1.55);
	background: rgba(124, 224, 42, .12);
	border-color: #7CE02A;
}
.mk-cur--ring[data-s="view"]::before {
	transform: scale(2.3);
	background: #7CE02A;
	border-color: #7CE02A;
	box-shadow: 0 10px 30px rgba(124, 224, 42, .35);
}
.mk-cur--ring.is-down::before { transform: scale(.82); }
.mk-cur--ring[data-s="view"].is-down::before { transform: scale(2.05); }
.mk-cur__t {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font: 800 10px/1 Manrope, system-ui, sans-serif;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #0A0F0B;
	opacity: 0;
	transition: opacity .2s linear;
}
.mk-cur--ring[data-s="view"] .mk-cur__t { opacity: 1; }
.mk-cur--ring[data-s="view"] + .mk-cur--dot { opacity: 0; }

/* hide the system cursor only where the custom one is shown */
.mk-cur-on body,
.mk-cur-on body a,
.mk-cur-on body button,
.mk-cur-on body summary,
.mk-cur-on body label,
.mk-cur-on body [role="button"] { cursor: none; }
.mk-cur-on .mkc,
.mk-cur-on .mkc *,
.mk-cur-on input,
.mk-cur-on textarea,
.mk-cur-on select { cursor: auto; }
.mk-cur-on .mkc a,
.mk-cur-on .mkc button { cursor: pointer; }
.mk-cur-on input[type="text"],
.mk-cur-on input[type="tel"],
.mk-cur-on input[type="email"],
.mk-cur-on textarea { cursor: text; }

/* ============================================================
   2b. 3D tilt + glare
   ============================================================ */
.mk-motion .mk-3d { perspective: 1400px; }
.mk-motion .svc,
.mk-motion .tile { will-change: rotate; }
.mk-motion .tile .mk-glare {
	position: absolute;
	inset: 0;
	z-index: 2;
	border-radius: inherit;
	pointer-events: none;
	opacity: 0;
	transition: opacity .4s linear;
	background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 46%);
}
.mk-motion .tile:hover .mk-glare { opacity: 1; }

/* ============================================================
   2c. "Ready to grow?" letter wave
   ============================================================ */
.mk-motion .mk-lw__w { display: inline-block; white-space: nowrap; }
.mk-motion .mk-lw__l {
	display: inline-block;
	transform: translate3d(0, calc(var(--l, 0) * -.17em), 0) scale(calc(1 + var(--l, 0) * .06));
	color: color-mix(in srgb, #7CE02A calc(var(--l, 0) * 100%), currentColor);
	text-shadow: 0 0 calc(var(--l, 0) * 30px) rgba(124, 224, 42, calc(var(--l, 0) * .5));
}

/* ============================================================
   3a. "growth." shine + underline
   ============================================================ */
@keyframes mk-shine {
	0%, 58% { background-position: 100% 0, 0 0; }
	100%    { background-position: 0% 0, 0 0; }
}
.mk-motion .mk-shine { animation: mk-shine 5.5s cubic-bezier(.6, 0, .3, 1) 1.4s infinite; }

.mk-motion .mk-ul { position: relative; }
.mk-motion .mk-ul__svg {
	position: absolute;
	left: -1%;
	width: 102%;
	bottom: -.17em;
	height: .26em;
	overflow: visible;
	pointer-events: none;
}
.mk-motion .mk-ul__svg path {
	fill: none;
	stroke: #7CE02A;
	stroke-width: 4;
	stroke-linecap: round;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	filter: drop-shadow(0 0 6px rgba(124, 224, 42, .55));
	animation: mk-draw 1.15s cubic-bezier(.65, 0, .35, 1) .55s forwards;
}
.mk-motion[data-theme="light"] .mk-ul__svg path { stroke: #4CB82A; filter: none; }
@keyframes mk-draw { to { stroke-dashoffset: 0; } }

/* ============================================================
   3b. Odometer
   ============================================================ */
.mk-motion .odo-wrap .odo {
	position: relative;
	display: inline-block;
	clip-path: inset(0 -.12em);
}
.mk-motion .odo-wrap .odo > i { font-style: normal; visibility: hidden; }
.mk-motion .odo-wrap .odo::before {
	content: "0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9\A 0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9";
	position: absolute;
	left: -.2em;
	right: -.2em;
	top: 0;
	white-space: pre;
	text-align: center;
	line-height: var(--lh);
	transform: translate3d(0, calc(var(--d) * var(--lh) * -1), 0);
}
.mk-motion .odo-go .odo::before {
	transform: translate3d(0, calc((var(--d) + 10) * var(--lh) * -1), 0);
	transition: transform 1.7s cubic-bezier(.16, .84, .24, 1) calc(var(--k) * .1s);
}

/* ============================================================
   3c. Steps rail pulse
   ============================================================ */
.mk-motion .mk-pulse {
	position: absolute;
	top: 0;
	left: -120px;
	z-index: 2;
	width: 120px;
	height: 2px;
	pointer-events: none;
	opacity: 0;
	background: linear-gradient(90deg, rgba(124, 224, 42, 0), #7CE02A);
	will-change: transform, opacity;
}
.mk-motion .mk-pulse::after {
	content: "";
	position: absolute;
	right: -4px;
	top: -4px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #EAFFD6;
	box-shadow: 0 0 14px 4px rgba(124, 224, 42, .75);
}
@keyframes mk-flare {
	0%   { box-shadow: 0 0 0 0 rgba(124, 224, 42, .7); transform: scale(1); }
	35%  { transform: scale(1.7); }
	100% { box-shadow: 0 0 0 14px rgba(124, 224, 42, 0); transform: scale(1); }
}
.mk-motion .step.mk-flare .step__n::before { animation: mk-flare .8s cubic-bezier(.22, .8, .24, 1); }
.mk-motion .step.mk-flare .step__n { animation: mk-flash .8s linear; }
@keyframes mk-flash { 0%, 100% { color: inherit; } 25% { color: #7CE02A; } }

/* ============================================================
   4. Founder orbit, spotlight, float
   ============================================================ */
.mk-motion .mk-orbit {
	position: absolute;
	inset: 0;
	pointer-events: none;
}
.mk-motion .mk-orbit__beam {
	position: absolute;
	left: 50%;
	top: -14%;
	width: 340px;
	height: 112%;
	margin-left: -170px;
	background: radial-gradient(48% 62% at 50% 0%, rgba(124, 224, 42, .17), rgba(124, 224, 42, 0) 72%);
	animation: mk-beam 7s ease-in-out infinite alternate;
}
.mk-motion .mk-orbit__ring {
	position: absolute;
	left: 50%;
	border-radius: 50%;
}
.mk-motion .mk-orbit__ring--a {
	top: 6%;
	width: 250px;
	height: 250px;
	margin-left: -125px;
	border: 1px dashed rgba(124, 224, 42, .3);
	animation: mk-spin 40s linear infinite;
}
.mk-motion .mk-orbit__ring--a i {
	position: absolute;
	top: -4px;
	left: 50%;
	width: 8px;
	height: 8px;
	margin-left: -4px;
	border-radius: 50%;
	background: #7CE02A;
	box-shadow: 0 0 12px 3px rgba(124, 224, 42, .65);
}
.mk-motion .mk-orbit__ring--b {
	bottom: -6px;
	width: 230px;
	height: 46px;
	margin-left: -115px;
	border: 1px solid rgba(124, 224, 42, .38);
	box-shadow: inset 0 0 22px rgba(124, 224, 42, .2), 0 0 26px rgba(124, 224, 42, .12);
}
.mk-motion .mk-orbit__ring--b i {
	position: absolute;
	left: 0;
	top: 0;
	width: 7px;
	height: 7px;
	margin: -3.5px 0 0 -3.5px;
	border-radius: 50%;
	background: #EAFFD6;
	box-shadow: 0 0 10px 3px rgba(124, 224, 42, .7);
	offset-path: path("M0,23 a115,23 0 1,0 230,0 a115,23 0 1,0 -230,0");
	offset-rotate: 0deg;
	animation: mk-orb 7s linear infinite;
}
.mk-motion .mk-float img { animation: mk-float 6s ease-in-out infinite; }

@keyframes mk-spin { to { transform: rotate(360deg); } }
@keyframes mk-orb { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes mk-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes mk-beam { from { opacity: .65; } to { opacity: 1; } }

.mk-motion[data-theme="light"] .mk-orbit__ring--a { border-color: rgba(60, 150, 30, .35); }
.mk-motion[data-theme="light"] .mk-orbit__ring--b { border-color: rgba(60, 150, 30, .4); }

@media (max-width: 680px) {
	.mk-motion .mk-orbit__ring--a { width: 210px; height: 210px; margin-left: -105px; }
	.mk-motion .mk-orbit__beam { width: 260px; margin-left: -130px; }
}

/* belt and braces: the script already exits under reduced motion */
@media (prefers-reduced-motion: reduce) {
	.mk-cur, .mk-pulse, .mk-orbit { display: none !important; }
	.mk-shine, .mk-ul__svg path, .mk-float img { animation: none !important; }
	.mk-ul__svg path { stroke-dashoffset: 0 !important; }
}
