/* ==========================================================================
   CAFM IMS — motion and colour effects (every page). The script is public/js/motion.js.
   Every rule starts with ".mo" (the script adds it to <html>), so without the script,
   or when the device asks for less motion, the page is shown still and complete.
   ========================================================================== */

/* 1. Colour clouds: three soft lights (logo blue, cyan, orange) that drift slowly behind big areas */
.mo .mo-host { isolation: isolate; }
.mo .ab-join { position: relative; }
.mo .mo-clouds { position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
.mo .mo-clouds i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.mo .mo-clouds i:nth-child(1) { top: -22vmax; inset-inline-start: -12vmax; background: radial-gradient(circle, rgba(25, 104, 127, .55), transparent 65%); animation: mo-drift-a 22s ease-in-out infinite alternate; }
.mo .mo-clouds i:nth-child(2) { bottom: -26vmax; inset-inline-end: -10vmax; background: radial-gradient(circle, rgba(64, 196, 214, .5), transparent 65%); animation: mo-drift-b 26s ease-in-out infinite alternate; }
.mo .mo-clouds i:nth-child(3) { top: 10%; left: 38%; width: 30vmax; height: 30vmax; background: radial-gradient(circle, rgba(255, 168, 0, .42), transparent 65%); animation: mo-drift-c 18s ease-in-out infinite alternate; }
/* on the blue cards the lights are brighter */
.mo .ch-band-card .mo-clouds i, .mo .hm-faq-side .mo-clouds i, .mo .ab-join .mo-clouds i { opacity: .8; mix-blend-mode: screen; }
.mo .ch-band-card .mo-clouds i:nth-child(1), .mo .hm-faq-side .mo-clouds i:nth-child(1), .mo .ab-join .mo-clouds i:nth-child(1) { background: radial-gradient(circle, rgba(64, 196, 214, .55), transparent 65%); }
/* content of these areas stays above the lights */
.mo .hm-modules > .hm-wrap, .mo .sv-quote > .sv-wrap, .mo .hm-faq-side > *:not(.mo-clouds), .mo .ab-join > .sv-wrap { position: relative; z-index: 1; }
.mo .hm-hero > .mo-clouds { z-index: -3; }
@keyframes mo-drift-a { to { transform: translate(14vmax, 8vmax) scale(1.15); } }
@keyframes mo-drift-b { to { transform: translate(-12vmax, -10vmax) scale(1.2); } }
@keyframes mo-drift-c { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-10vmax, 6vmax) scale(1.25); } 100% { transform: translate(8vmax, -4vmax) scale(.9); } }

/* 2. Titles rise in word by word */
.mo .mo-split .mo-w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .12em; margin-block: -.12em; }
.mo .mo-split .mo-w > span { display: inline-block; transform: translateY(110%) rotate(4deg); transform-origin: 0 100%; transition: transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--w, 0) * 55ms); }
.mo .mo-split.mo-in .mo-w > span { transform: none; }
/* highlighted words (the orange part of a title): a gradient that moves slowly */
.mo .mo-hl { background: linear-gradient(100deg, #ffa800 0%, #ff7b1c 30%, #19687f 55%, #40c4d6 75%, #ffa800 100%); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; animation: mo-shine 7s linear infinite; }
/* on blue backgrounds the gradient stays light */
.mo :is(.ch-band, .hm-faq-side, .ab-join) .mo-hl { background-image: linear-gradient(100deg, #ffd27a, #ffa800, #fff, #9be8f2, #ffd27a); }
@keyframes mo-shine { to { background-position: 300% 0; } }
/* the small orange square of a label turns into view */
.mo .is-in > .hm-label::before, .mo .is-in .hm-label::before, .mo .mo-in ~ .sv-label::before { animation: mo-square 1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes mo-square { from { transform: rotate(-180deg) scale(0); } to { transform: none; } }

/* 3. Pictures open with a wipe from the bottom, and settle from a little zoom */
.mo .mo-wipe { clip-path: inset(100% 0 0 0); scale: 1.12; transition: clip-path 1.2s cubic-bezier(.7, 0, .2, 1), scale 1.6s cubic-bezier(.2, .8, .2, 1); }
.mo .mo-wipe.mo-in { clip-path: inset(0 0 0 0); scale: 1; }

/* 4. Cards: lean towards the mouse, a light spot follows it, the edge glows */
.mo .mo-card { transform-style: preserve-3d; will-change: transform; transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s; }
.mo .mo-card:hover { background-image: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(64, 196, 214, .12), rgba(255, 168, 0, .06) 40%, transparent 70%); border-color: rgba(25, 104, 127, .35); box-shadow: 0 0 0 1px rgba(64, 196, 214, .25), 0 30px 60px rgba(18, 60, 72, .16); }
.mo .mo-card:hover :is(.hm-mod-icon, .hm-ab-ico, .sv-ico, .pr-q-icon) { box-shadow: 0 10px 24px rgba(25, 104, 127, .3); transform: translateZ(30px); }

/* 5. Buttons pulled towards the mouse: they come back softly */
.mo .mo-magnet { transition: translate .35s cubic-bezier(.2, .8, .2, 1), background-color .25s, color .25s, border-color .25s, box-shadow .3s; }
.mo .mo-magnet:hover { box-shadow: 0 14px 30px rgba(18, 60, 72, .18); }
.mo .ch-cta:not(.ch-cta--ghost):not(.ch-cta--line):hover, .mo .hm-btn--primary:hover { box-shadow: 0 14px 34px rgba(255, 168, 0, .45); }

/* 6. Depth: decorations move with the scroll (the script sets "translate") */
.mo :is(.hm-ab-block, .hm-ab-bars, .ph-bars, .ph-corner, .ab-collage-bars, .ab-collage-small, .sv-quote-mark, .ch-band-pic, .ct-pic, .hm-bars) { will-change: translate; }

/* 7. Homepage top: a glow under the mouse, and floating shapes that follow it a little */
.mo .mo-glow { position: absolute; z-index: -1; inset: 0; opacity: 0; background: radial-gradient(520px circle at var(--gx, 50%) var(--gy, 50%), rgba(64, 196, 214, .22), rgba(255, 168, 0, .1) 40%, transparent 70%); transition: opacity .5s; pointer-events: none; }
.mo .hm-hero.mo-hover .mo-glow { opacity: 1; }
.mo .mo-shapes { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.mo .mo-shapes i { position: absolute; display: block; translate: calc(var(--sx, 0) * var(--d) * 1px) calc(var(--sy, 0) * var(--d) * 1px); transition: translate .8s cubic-bezier(.2, .8, .2, 1); }
.mo .mo-s1 { --d: 60; top: 16%; inset-inline-start: 46%; width: 18px; height: 18px; background: #ffa800; animation: mo-float 7s ease-in-out infinite; }
.mo .mo-s2 { --d: -40; top: 68%; inset-inline-start: 52%; width: 34px; height: 34px; border: 2px solid rgba(25, 104, 127, .45); animation: mo-spin 18s linear infinite; }
.mo .mo-s3 { --d: 90; top: 10%; inset-inline-end: 6%; width: 64px; height: 64px; background-image: radial-gradient(rgba(25, 104, 127, .5) 1.6px, transparent 1.8px); background-size: 12px 12px; animation: mo-float 9s ease-in-out infinite reverse; }
.mo .mo-s4 { --d: -70; bottom: 26%; inset-inline-start: 4%; width: 12px; height: 12px; background: #19687f; animation: mo-float 6s ease-in-out infinite; }
.mo .mo-s5 { --d: 40; top: 38%; inset-inline-start: 2.5%; width: 46px; height: 6px; background: repeating-linear-gradient(90deg, #ffa800 0 6px, transparent 6px 10px); animation: mo-float 8s ease-in-out infinite reverse; }
.mo .mo-s6 { --d: -55; bottom: 18%; inset-inline-end: 44%; width: 22px; height: 22px; border: 2px solid #ffa800; transform: rotate(45deg); animation: mo-spin 14s linear infinite reverse; }
@keyframes mo-float { 50% { transform: translateY(-18px) rotate(8deg); } }
@keyframes mo-spin { to { transform: rotate(360deg); } }

/* small screens: fewer and lighter effects */
@media (max-width: 767px) {
    .mo .mo-clouds i { filter: blur(50px); opacity: .45; }
    .mo .mo-s3, .mo .mo-s5 { display: none; }
}

/* ==========================================================================
   Type and labels (every page, applies with or without the script)
   Small labels are written in normal case, not spaced-out capitals; one word of a title is not painted in
   another colour; numbers are only shown where the order means something (slides, dates, steps).
   ========================================================================== */
:is(.hm-label, .ph-label, .sv-label, .ch-band-label, .ab-join-label, .pr-label, .sv-side-title, .ch-foot-title, .mp-label,
    .ct-rows dt, .sv-quote-label, .bl-label, .ab-person small, .ab-boss-job, .ch-mega-head, .sv-menu a, .ph-path, .hm-float--list p,
    .sv-next a span, .hm-hero-dot b) { letter-spacing: 0 !important; text-transform: none !important; }
:is(.hm-label, .ph-label, .sv-label, .ch-band-label, .ab-join-label, .pr-label, .mp-label, .sv-quote-label, .bl-label) { font-size: 15px !important; }
:is(.hm-h2, .ab-h2, .ab-h2s, .ph-title, .ch-band h2, .sv-quote-label, .ab-lead h2, .fq h2, .mgmt-head h2, .scs-text h2, .section-title .title) span { color: inherit !important; }
:is(.hm-ab-card > b, .hm-mod b, .sv-mod-no) { display: none !important; }
.sv-benefit::after, .hm-faq-item summary::before { content: none !important; }
.hm-faq-answer { padding-inline-start: 26px !important; }
