/* Motion layer (MotionSites recipes) in The Thinking Edge brand. Everything rests under reduced motion. */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* hero: word-by-word blur-in, rotating word, drifting aura, pointer parallax */
.hero h1 .w { display: inline-block; opacity: 0; filter: blur(12px); transform: translateY(24px); animation: blurRise .9s var(--ease-out) forwards; animation-delay: calc(var(--i) * 70ms + 150ms); }
.hero__lead, .hero .btn-row, .hero .follow, .hero__kicker { opacity: 0; filter: blur(8px); transform: translateY(16px); animation: blurRise .9s var(--ease-out) forwards; }
.hero__kicker { animation-delay: .05s; } .hero__lead { animation-delay: .55s; } .hero .btn-row { animation-delay: .7s; } .hero .follow { animation-delay: .85s; }
@keyframes blurRise { to { opacity: 1; filter: blur(0); transform: none; } }
.rotator { display: inline-grid; vertical-align: bottom; font-weight: 500; font-style: italic; color: #1D4ED8; }
.rotator > span { grid-area: 1 / 1; opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }
.rotator > span.is-active { opacity: 1; transform: none; }
.rotator > span.is-leaving { opacity: 0; transform: translateY(-10px); }

.hero__media { position: relative; isolation: isolate; overflow: visible !important; }
.hero__media > img { transition: transform .6s var(--ease-out); will-change: transform; animation: settleZoom 1.6s var(--ease-out) both; }
@keyframes settleZoom { from { transform: scale(1.08); filter: saturate(.6); } to { transform: scale(1); filter: none; } }
.aura { position: absolute; inset: -60px; z-index: -1; pointer-events: none; }
.aura i { position: absolute; width: 360px; height: 360px; border-radius: 50%; filter: blur(70px); opacity: .45; }
.aura i:first-child { background: #2563EB; top: 0; right: -20px; animation: drift 14s ease-in-out infinite; }
.aura i:last-child { background: #7C3AED; bottom: 0; left: -20px; animation: drift 18s ease-in-out infinite reverse; }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-40px, 30px) scale(1.12); } }
.ly-float { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* proof band: count-up stats + ticker */
.proof { padding: 56px 0 0; }
.proof__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__num { font-size: clamp(40px, 4.4vw, 64px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { font-size: var(--t-small); color: var(--muted); }
.ticker { overflow: hidden; padding: 22px 0; border-bottom: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker__track { display: flex; gap: 48px; width: max-content; animation: tick 50s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker span { display: inline-flex; align-items: center; gap: 48px; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; white-space: nowrap; }
.ticker span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2563EB; }
@keyframes tick { to { transform: translateX(-50%); } }

/* scroll reveals (set by alive.js only when motion is allowed) */
.js-motion .rv { opacity: 0; transform: translateY(32px); filter: blur(6px); }
.js-motion .rv.in { opacity: 1; transform: none; filter: none; transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out); transition-delay: var(--d, 0s); }

/* career lane draws itself */
.lane::after { content: ""; position: absolute; left: 0; top: 112px; height: 2px; width: calc(var(--lane, 1) * 100%); background: linear-gradient(90deg, #8A8A94, #2563EB); transition: width .2s linear; }
.js-motion .lane::after { width: calc(var(--lane, 0) * 100%); }
.stop__logo img { transition: transform .35s var(--ease-out), filter .35s; }
.stop:hover .stop__logo img { transform: scale(1.08); }
.stop--now .stop__years::before { animation: nowPulse 2.2s ease-out infinite; }
@keyframes nowPulse { 0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, .45); } 100% { box-shadow: 0 0 0 14px rgba(37, 99, 235, 0); } }

/* awards and cards: lift and glow */
.develop, .awards__more-pic { transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.develop:hover, .awards__more-pic:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(0, 192, 139, .22); }
.awards__list > li { transition: background .25s, padding-left .25s var(--ease-out); }
.awards__list > li:hover { background: #DDF8EF; padding-left: 12px; }
.layers2 > li { transition: padding-left .3s var(--ease-out); }
.layers2 > li:hover { padding-left: 10px; }
.short { transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.short:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 20px 40px rgba(29, 29, 31, .25); }
.post:hover .post__img { box-shadow: 0 18px 40px rgba(37, 99, 235, .18); }
.post__img { transition: box-shadow .35s var(--ease-out); }

/* buttons: sheen sweep on the primary */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease-out); }
.btn--primary:hover::after { transform: translateX(120%); }

/* blueprint: inline animated SVG */
.bp { display: block; width: 100%; height: auto; }

@media (max-width: 1023px) { .proof__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .aura { inset: -20px; } .aura i { width: 220px; height: 220px; } .ticker span { font-size: 15px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero h1 .w, .hero__lead, .hero .btn-row, .hero .follow, .hero__kicker { opacity: 1 !important; filter: none !important; transform: none !important; }
  .js-motion .rv { opacity: 1; transform: none; filter: none; }
  .lane::after { width: 100% !important; }
}
.proof .wrap.proof__stats { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) { .proof .wrap.proof__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hero { overflow: hidden; }
main > section.proof { min-height: 0 !important; height: auto !important; padding: 64px 0 0 !important; display: block !important; }
