/* ==========================================================================
   CAFM IMS — homepage

   Own stylesheet. The theme CSS on the live server is a trimmed build, so the
   homepage does not rely on it. Every class starts with "hm-".

   Look: navy, white and light grey blocks with orange as the only accent, large
   titles, small labels with an orange square, square corners, and the "bars"
   of the logo as a motif.

   Contents
     1. Tokens and base         8. Success partners (gallery)
     2. Shared parts            9. Client quotes
     3. Hero                   10. FAQ
     4. Client logos           11. Articles
     5. Intro + module tabs    12. Demo band
     6. All modules            13. Motion
     7. About and community    14. Small screens
   ========================================================================== */

/* 1. Tokens and base ------------------------------------------------------- */
.hm {
    --hm-orange: #ffa800;
    --hm-navy: #19687f;
    --hm-navy-2: #124f61;                 /* a deeper logo blue, for hover */
    --hm-ink: var(--c-text);
    --hm-muted: var(--c-muted);
    --hm-line: rgba(25, 104, 127, .14);
    --hm-line-light: rgba(25, 104, 127, .18);
    --hm-soft: #f1f7f8;
    --hm-ease: cubic-bezier(.2, .7, .2, 1);
    --hm-gutter: max(24px, calc((100vw - 1320px) / 2));

    color: var(--hm-ink);
    font-size: 17px;
    line-height: 1.8;
    overflow-x: clip;
}

/* Base reset. :where() keeps these rules weak, so any "hm-" class further down wins without tricks
   (they still win over the theme's plain tag rules such as "p { margin-bottom: 15px }"). */
.hm *, .hm *::before, .hm *::after { box-sizing: border-box; }
.hm :where(h1, h2, h3) { margin: 0; text-transform: none; line-height: 1.35; color: var(--c-ink); font-weight: 700; }
.hm :where(p) { margin: 0; }
.hm :where(ul, ol) { margin: 0; padding: 0; list-style: none; }
.hm :where(a) { text-decoration: none; }
.hm :where(img) { display: block; max-width: 100%; }
.hm :where(button) { font: inherit; cursor: pointer; }

.hm-wrap { width: min(1320px, calc(100% - 48px)); margin-inline: auto; }
.hm-section { position: relative; padding-block: clamp(72px, 9vw, 128px); }
/* "on-dark" was the navy area; in the light theme it is the very light blue area (homepage top) */
.hm-on-dark { background: var(--c-brand-tint); color: var(--c-text); }

/* thin line at the top of the screen: how far down the page you are */
.hm-progress { position: fixed; z-index: 9990; top: 0; inset-inline: 0; height: 3px; pointer-events: none; }
.hm-progress i { display: block; height: 100%; background: var(--hm-orange); transform: scaleX(var(--p, 0)); transform-origin: left; }
[dir="rtl"] .hm-progress i { transform-origin: right; }

/* 2. Shared parts ---------------------------------------------------------- */
/* small label above a title, with the orange square */
.hm-label { display: inline-flex; align-items: center; gap: 12px; color: var(--c-ink); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.5; }
.hm-label::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--hm-orange); }
[dir="rtl"] .hm-label { font-size: 15px; letter-spacing: 0; }
.hm-on-dark .hm-label { color: var(--c-brand); }

/* big section title (a <span> inside it is orange, as in the admin texts) */
.hm-h2 { margin-top: 18px; font-size: clamp(29px, 3.6vw, 52px); line-height: 1.14; letter-spacing: -.015em; text-wrap: balance; }
[dir="rtl"] .hm-h2 { line-height: 1.4; letter-spacing: 0; }
.hm-h2 span { color: var(--hm-orange); }
.hm-on-dark .hm-h2 { color: var(--c-ink); }
.hm-lead { color: var(--hm-muted); font-size: clamp(17px, 1.45vw, 21px); line-height: 1.75; }
.hm-on-dark .hm-lead { color: var(--c-text); }

/* section heads: title on one side, text or a link on the other */
/* section heading: label, title, then the text under it in one column */
.hm-head { display: block; max-width: 920px; }
.hm-head > .hm-lead, .hm-head > div > .hm-lead { margin-top: 22px; max-width: 66ch; }
.hm-head--row { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 24px 40px; }

/* arrow used in buttons and links (points forward in both languages) */
.hm-arrow { flex: none; width: 22px; height: 10px; transition: transform .35s var(--hm-ease); }
[dir="rtl"] .hm-arrow { transform: scaleX(-1); }
a:hover > .hm-arrow, .hm-mod:hover .hm-arrow { transform: translateX(6px); }
[dir="rtl"] a:hover > .hm-arrow, [dir="rtl"] .hm-mod:hover .hm-arrow { transform: scaleX(-1) translateX(6px); }

/* buttons: square, flat; a band of light crosses the button when you point at it */
.hm-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 14px; padding: 16px 28px; border: 1px solid transparent; font-size: 15px; font-weight: 700; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; transition: background-color .25s, color .25s, border-color .25s; }
[dir="rtl"] .hm-btn { font-size: 16px; letter-spacing: 0; }
.hm-btn::after { content: ""; position: absolute; inset-block: 0; left: -60%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-18deg); transition: left .6s var(--hm-ease); pointer-events: none; }
.hm-btn:hover::after { left: 120%; }
.hm-btn--primary { background: var(--hm-orange); color: var(--c-ink); }
.hm-btn--primary:hover { background: #ffbb33; color: var(--c-ink); }
.hm-btn--dark { background: var(--hm-navy); color: #fff; }
.hm-btn--dark:hover { background: var(--hm-navy-2); color: #fff; }
.hm-btn--outline { border-color: var(--hm-navy); color: var(--c-ink); }
.hm-btn--outline:hover { background: var(--hm-navy); color: #fff; }
.hm-btn--outline-light { border-color: var(--c-brand); background: #fff; color: var(--c-brand); }
.hm-btn--outline-light:hover { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }

/* text link with an underline */
.hm-link { display: inline-flex; align-items: center; gap: 12px; padding-bottom: 5px; border-bottom: 2px solid var(--hm-orange); color: var(--c-ink); font-size: 16px; font-weight: 700; transition: color .25s, border-color .25s; }
.hm-link:hover { color: var(--c-ink); border-color: var(--hm-navy); }
.hm-on-dark .hm-link { color: var(--c-brand); }
.hm-on-dark .hm-link:hover { color: var(--c-ink); border-color: var(--c-ink); }

/* small square arrow buttons */
.hm-sqbtn { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid var(--c-brand); background: #fff; color: var(--c-brand); transition: background-color .25s, color .25s, border-color .25s; }
.hm-sqbtn:hover { background: var(--hm-orange); border-color: var(--hm-orange); color: var(--c-ink); }
.hm-sqbtn svg { width: 20px; height: 10px; }
.hm-sqbtn--prev svg { transform: scaleX(-1); }
[dir="rtl"] .hm-sqbtn--prev svg { transform: none; }
[dir="rtl"] .hm-sqbtn--next svg { transform: scaleX(-1); }
.hm-arrows { display: flex; gap: 10px; }

/* module icons (icon.blade.php) */
.hm-icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* the bars of the logo, standing on the top edge of a block */
.hm-bars { position: absolute; bottom: 100%; inset-inline-end: var(--hm-gutter); display: flex; align-items: flex-end; gap: 7px; height: 92px; color: var(--c-ink); pointer-events: none; }
.hm-bars i { width: 7px; height: calc(var(--h) * 1%); background: currentColor; transform-origin: bottom; }

/* 3. Hero ------------------------------------------------------------------ */
/* The product itself: the title and a line that changes word by word; the system on its devices, big and in 3D,
   turning with the mouse; module icons floating around; soft moving light and a floor grid behind. */
.hm-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: clamp(600px, calc(100vh - 110px), 860px); background: linear-gradient(180deg, #f7fbfc 0%, #eaf4f6 100%); }
/* soft lights that move slowly */
.hm-hero-sky { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hm-hero-sky i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; will-change: transform; animation: hm-sky 18s ease-in-out infinite alternate; }
.hm-hero-sky i:nth-child(1) { top: -18%; inset-inline-end: -8%; width: 52vw; height: 52vw; background: radial-gradient(circle, rgba(64, 196, 214, .55), transparent 65%); }
.hm-hero-sky i:nth-child(2) { bottom: -30%; inset-inline-end: 22%; width: 42vw; height: 42vw; background: radial-gradient(circle, rgba(255, 168, 0, .35), transparent 65%); animation-duration: 22s; }
.hm-hero-sky i:nth-child(3) { top: 10%; inset-inline-start: -14%; width: 40vw; height: 40vw; background: radial-gradient(circle, rgba(25, 104, 127, .22), transparent 65%); animation-duration: 26s; }
@keyframes hm-sky { to { transform: translate(6%, 8%) scale(1.12); } }
/* the floor: a grid in perspective that runs towards you */
.hm-hero-floor { position: absolute; z-index: -1; inset-inline: -20%; bottom: -8%; height: 58%; perspective: 520px; pointer-events: none; -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 90%); mask-image: linear-gradient(to top, #000 10%, transparent 90%); }
.hm-hero-floor::before { content: ""; position: absolute; inset: -70px 0 -60%; background-image: linear-gradient(rgba(25, 104, 127, .22) 1.5px, transparent 1.5px), linear-gradient(90deg, rgba(25, 104, 127, .22) 1.5px, transparent 1.5px); background-size: 70px 70px; transform: rotateX(62deg) translateY(0); transform-origin: top; will-change: transform; animation: hm-floor 6s linear infinite; }
@keyframes hm-floor { to { transform: rotateX(62deg) translateY(70px); } }

.hm-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(24px, 3vw, 48px); width: min(1380px, calc(100% - 48px)); margin-inline: auto; padding-block: clamp(48px, 6vw, 90px); }
.hm-hero-copy { position: relative; z-index: 2; }
.hm-hero .hm-label { color: var(--c-brand); animation: hm-rise .7s var(--hm-ease) .05s both; }
.hm-hero-title { margin-top: 18px; color: var(--c-ink); font-size: clamp(36px, 4.6vw, 68px); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; animation: hm-rise .8s var(--hm-ease) .15s both; }
[dir="rtl"] .hm-hero-title { font-size: clamp(34px, 4.2vw, 62px); line-height: 1.32; letter-spacing: 0; }
/* the changing word */
.hm-hero-line { margin-top: 20px; color: var(--c-text); font-size: clamp(18px, 1.6vw, 23px); font-weight: 700; line-height: 1.6; animation: hm-rise .8s var(--hm-ease) .3s both; }
.hm-hero-words { position: relative; display: inline-grid; vertical-align: bottom; overflow: hidden; padding: 0 .3em; background: var(--hm-orange); color: var(--c-ink); }
.hm-hero-words b { grid-area: 1 / 1; white-space: nowrap; transform: translateY(105%); opacity: 0; transition: transform .6s var(--hm-ease), opacity .4s; }
.hm-hero-words b.is-active { transform: none; opacity: 1; }
.hm-hero-words { box-sizing: border-box; justify-items: start; transition: width .5s var(--hm-ease); }
.hm-hero-words b.is-out { transform: translateY(-105%); opacity: 0; }
.hm-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 34px; animation: hm-rise .8s var(--hm-ease) .45s both; }
.hm-hero-play { display: inline-flex; align-items: center; gap: 12px; padding: 0; border: 0; background: none; color: var(--c-ink); font-size: 16px; font-weight: 700; }
.hm-hero-play i { position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #fff; box-shadow: 0 12px 30px rgba(18, 60, 72, .18); }
.hm-hero-play i::before { content: ""; margin-inline-start: 4px; border: 8px solid transparent; border-inline-start: 13px solid var(--c-brand); border-inline-end-width: 0; }
[dir="rtl"] .hm-hero-play i::before { transform: scaleX(-1); margin-inline-start: 0; margin-inline-end: 4px; }
.hm-hero-play i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--c-brand); animation: hm-ping 2s ease-out infinite; }
@keyframes hm-ping { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }
.hm-hero-proof { display: flex; align-items: center; gap: 12px; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--hm-line); color: var(--hm-muted); font-size: 15px; font-weight: 700; animation: hm-rise .8s var(--hm-ease) .6s both; }
.hm-hero-proof b { color: var(--c-brand); font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; direction: ltr; }

/* the stage: the devices in 3D; the script sets --px and --py (from -1 to 1) with the mouse */
.hm-hero-stage { position: relative; perspective: 1400px; animation: hm-hero-in 1.4s var(--hm-ease) .2s both; }
@keyframes hm-hero-in { from { opacity: 0; transform: translateY(40px) scale(.96); } }
.hm-hero-rig { position: relative; transform-style: preserve-3d; transform: rotateY(calc(-14deg + var(--px, 0) * 8deg)) rotateX(calc(7deg - var(--py, 0) * 6deg)); transition: transform 1s var(--hm-ease); }
[dir="rtl"] .hm-hero-rig { transform: rotateY(calc(14deg + var(--px, 0) * 8deg)) rotateX(calc(7deg - var(--py, 0) * 6deg)); }
/* the old floating shapes of the motion layer are not used in this hero */
.hm-hero .mo-shapes { display: none; }
.hm-hero-dv { transform-style: preserve-3d; }
.hm-hero-dv .dv-laptop { transform: translateZ(0); }
.hm-hero-dv .dv-phone--b { transform: translateZ(70px); }
.hm-hero-dv .dv-phone--a { transform: translateZ(120px); }
.hm-hero-dv .dv-chip { transform-style: flat; }
.hm-hero-dv .dv-chip--1 { translate: 0 0 160px; } .hm-hero-dv .dv-chip--2 { translate: 0 0 140px; } .hm-hero-dv .dv-chip--3 { translate: 0 0 180px; }
/* module icons floating around the devices, at their own depth */
.hm-hero-ico { position: absolute; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; background: #fff; color: var(--c-brand); box-shadow: 0 14px 30px rgba(18, 60, 72, .14), inset 0 0 0 1px rgba(25, 104, 127, .12); will-change: translate; animation: hm-ico 7s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.9s); }
.hm-hero-ico .hm-icon { width: 24px; height: 24px; }
.hm-hero-ico:nth-child(1) { top: -6%; left: 8%; transform: translateZ(40px); }
.hm-hero-ico:nth-child(2) { top: -10%; left: 46%; transform: translateZ(-60px); }
.hm-hero-ico:nth-child(3) { top: 0; right: 4%; transform: translateZ(90px); }
.hm-hero-ico:nth-child(4) { top: 40%; right: -4%; transform: translateZ(30px); }
.hm-hero-ico:nth-child(5) { bottom: 6%; left: -2%; transform: translateZ(100px); background: var(--c-brand); color: #fff; }
.hm-hero-ico:nth-child(6) { top: 30%; left: -6%; transform: translateZ(-30px); background: var(--hm-orange); color: var(--c-ink); }
.hm-hero-ico:nth-child(7) { bottom: -6%; left: 40%; transform: translateZ(60px); }
.hm-hero-ico:nth-child(8) { top: 64%; right: 30%; transform: translateZ(-80px); opacity: .7; }
@keyframes hm-ico { to { translate: 0 -16px; } }



@media (max-width: 991px) {
    .hm-hero-grid { grid-template-columns: 1fr; }
    .hm-hero-stage { max-width: 640px; margin-inline: auto; width: 100%; }
}
@media (max-width: 600px) {
    .hm-hero-grid { width: calc(100% - 32px); padding-top: 36px; }
    .hm-hero-ico { width: 38px; height: 38px; } .hm-hero-ico .hm-icon { width: 18px; height: 18px; }
    .hm-hero-ico:nth-child(n+6) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hm-hero-sky i, .hm-hero-floor::before, .hm-hero-ico, .hm-hero-play i::after { animation: none; } }

/* the hero slides: the product first, then the admin slides; all in the same place */
.hm-hero { flex-direction: column; justify-content: center; }
.hm-h3-slides { display: grid; width: 100%; }
.hm-h3-slide { grid-area: 1 / 1; align-self: center; visibility: hidden; opacity: 0; transition: opacity 1.1s cubic-bezier(.4, 0, .2, 1), visibility 1.1s; }
.hm-h3-slide.is-active { transition-delay: .1s; }
.hm-h3-slide.is-active { visibility: visible; opacity: 1; }
.hm-hero:has(.hm-h3-tabs) .hm-hero-grid { padding-bottom: clamp(160px, 13vw, 190px); }
/* the parts of a slide come in one after another when it opens */
.hm-h3-slide.is-active .hm-hero-copy > * { animation: hm-rise 1s var(--hm-ease) .25s both; }
.hm-h3-slide.is-active .hm-hero-copy > :nth-child(2) { animation-delay: .37s; } .hm-h3-slide.is-active .hm-hero-copy > :nth-child(3) { animation-delay: .49s; }
.hm-h3-slide.is-active .hm-hero-copy > :nth-child(4) { animation-delay: .61s; } .hm-h3-slide.is-active .hm-hero-copy > :nth-child(5) { animation-delay: .73s; }
.hm-h3-slide.is-active .hm-hero-stage { animation: hm-hero-in 1.2s var(--hm-ease) .1s both; }
.hm-hero-title--slide { font-size: clamp(30px, 3.6vw, 54px); }
[dir="rtl"] .hm-hero-title--slide { font-size: clamp(28px, 3.3vw, 50px); }
/* the picture or video of an admin slide: a large frame in 3D with an orange block behind */
.hm-h3-frame { position: relative; perspective: 1400px; padding: 26px 26px 0 0; }
[dir="rtl"] .hm-h3-frame { padding: 26px 0 0 26px; }
.hm-h3-block { position: absolute; top: 0; right: 0; width: 46%; height: 58%; background: var(--hm-orange); }
[dir="rtl"] .hm-h3-block { right: auto; left: 0; }
.hm-h3-pic { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--hm-navy-2); box-shadow: 0 40px 80px rgba(18, 60, 72, .3); transform: rotateY(calc(-8deg + var(--px, 0) * 6deg)) rotateX(calc(4deg - var(--py, 0) * 4deg)); transition: transform 1s var(--hm-ease); }
[dir="rtl"] .hm-h3-pic { transform: rotateY(calc(8deg + var(--px, 0) * 6deg)) rotateX(calc(4deg - var(--py, 0) * 4deg)); }
.hm-h3-pic img, .hm-h3-pic video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hm-h3-pic img { scale: 1.1; transition: scale 9s linear; }
.hm-h3-slide.is-active .hm-h3-pic img { scale: 1; }
.hm-h3-slide.is-active .hm-h3-pic { animation: hm-h3-pic 1.1s var(--hm-ease) both; }
@keyframes hm-h3-pic { from { opacity: 0; clip-path: inset(0 0 0 100%); } to { opacity: 1; clip-path: inset(0); } }
.hm-h3-sound { position: absolute; bottom: 14px; inset-inline-end: 14px; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); }
.hm-h3-sound i { width: 18px; height: 18px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23163a44' stroke-width='2'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4zM17 9l4 6M21 9l-4 6'/%3E%3C/svg%3E"); }
.hm-h3-sound.is-on i { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23163a44' stroke-width='2'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4zM16 9a4 4 0 0 1 0 6M19 6a8 8 0 0 1 0 12'/%3E%3C/svg%3E"); }
/* tabs along the bottom: number, title and a timer line */
.hm-h3-tabs { position: absolute; z-index: 3; inset-inline: 0; bottom: 58px; background: rgba(255, 255, 255, .78); border-top: 1px solid rgba(25, 104, 127, .1); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.hm-h3-tabs-in { display: flex; align-items: stretch; gap: clamp(14px, 2vw, 30px); width: min(1380px, calc(100% - 48px)); margin-inline: auto; }
.hm-h3-tab { position: relative; flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 12px; padding: 20px 0 18px; border: 0; background: none; color: var(--c-muted); font-size: 15px; font-weight: 700; line-height: 1.5; text-align: start; transition: color .3s; }
.hm-h3-tab b { color: var(--c-brand); font-size: 12.5px; letter-spacing: .1em; opacity: .7; }
.hm-h3-tab span { display: flex; align-items: center; gap: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hm-h3-tab:hover, .hm-h3-tab.is-active { color: var(--c-ink); }
.hm-h3-tab i { position: absolute; top: 0; inset-inline: 0; height: 3px; overflow: hidden; background: rgba(25, 104, 127, .12); }
.hm-hero.is-auto .hm-h3-tab.is-active i::after { content: ""; position: absolute; inset: 0; background: var(--hm-orange); transform-origin: left; animation: hm-progress var(--slide-time, 8s) linear forwards; }
[dir="rtl"] .hm-hero.is-auto .hm-h3-tab.is-active i::after { transform-origin: right; }
.hm-h3-tab.is-active i { background: rgba(255, 168, 0, .25); }
.hm-h3-vid { flex: none; width: 0; height: 0; border: 5px solid transparent; border-inline-start: 8px solid var(--hm-orange); border-inline-end: 0; }
.hm-h3-tabs .hm-arrows { flex: none; align-self: center; }
@media (max-width: 991px) { .hm-h3-frame { order: -1; max-width: 620px; } }
@media (max-width: 600px) { .hm-h3-tab span, .hm-h3-tabs .hm-arrows { display: none; } }

/* admin slides (picture or video): full width, full height of the hero, the text over it on a light veil */
.hm-h3-media .hm-hero-grid { position: static; grid-template-columns: minmax(0, 1fr); }
.hm-h3-media .hm-hero-copy { max-width: 620px; }
.hm-h3-media .hm-h3-frame { position: absolute; z-index: 0; inset: 0; padding: 0; perspective: none; max-width: none; }
.hm-h3-media .hm-h3-block { display: none; }
.hm-h3-media .hm-h3-pic { position: absolute; inset: 0; aspect-ratio: auto; box-shadow: none; transform: none; }
.hm-h3-media .hm-h3-pic::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(247, 251, 252, .96) 0%, rgba(247, 251, 252, .86) 32%, rgba(247, 251, 252, .3) 56%, rgba(247, 251, 252, 0) 74%), linear-gradient(0deg, rgba(9, 38, 47, .35) 0%, rgba(9, 38, 47, 0) 30%); }
[dir="rtl"] .hm-h3-media .hm-h3-pic::after { background: linear-gradient(270deg, rgba(247, 251, 252, .96) 0%, rgba(247, 251, 252, .86) 32%, rgba(247, 251, 252, .3) 56%, rgba(247, 251, 252, 0) 74%), linear-gradient(0deg, rgba(9, 38, 47, .35) 0%, rgba(9, 38, 47, 0) 30%); }
.hm-h3-slide.hm-h3-media.is-active .hm-h3-pic { animation: hm-fade 1.2s ease both; }
@keyframes hm-fade { from { opacity: 0; } }
.hm-h3-media .hm-h3-pic img { scale: 1.03; transition: scale 12s cubic-bezier(.25, .1, .25, 1); will-change: scale; }
.hm-h3-media .hm-h3-sound { z-index: 2; bottom: 96px; inset-inline-end: 24px; width: 46px; height: 46px; min-width: 0; padding: 0; border-radius: 0; border-inline-start: 3px solid #ffa800; background: #fff; box-shadow: 0 10px 24px rgba(9, 38, 47, .25); transition: transform .3s; }
.hm-h3-media .hm-h3-sound:hover { transform: translateY(-2px); }
.hm-h3-media .hm-hero-copy { z-index: 2; }
@media (max-width: 991px) {
    .hm-h3-media .hm-h3-pic::after, [dir="rtl"] .hm-h3-media .hm-h3-pic::after { background: linear-gradient(180deg, rgba(247, 251, 252, .94) 0%, rgba(247, 251, 252, .8) 50%, rgba(247, 251, 252, .15) 100%); }
}





/* the two cards on the scene */
.hm-float { position: absolute; z-index: 3; box-shadow: 0 22px 46px rgba(0, 0, 0, .36); }
/* card 1: the first modules, as a checked list */
.hm-float--list { top: 36px; inset-inline-start: -78px; width: 236px; padding: 16px 20px 8px; background: #fff; color: var(--c-ink); animation: hm-pop .7s var(--hm-ease) .6s both, hm-float 7s ease-in-out 1.5s infinite; }
.hm-float--list p { color: var(--hm-muted); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
[dir="rtl"] .hm-float--list p { font-size: 13px; letter-spacing: 0; }
.hm-float--list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--hm-line); font-size: 14.5px; font-weight: 700; line-height: 1.45; }
.hm-float--list li:first-child { margin-top: 10px; }
.hm-float--list li i { position: relative; flex: none; width: 18px; height: 18px; background: var(--hm-navy); animation: hm-pop .45s var(--hm-ease) both; animation-delay: calc(1s + var(--i) * .22s); }
.hm-float--list li i::after { content: ""; position: absolute; inset-inline-start: 6px; top: 3px; width: 5px; height: 9px; border: solid var(--hm-orange); border-width: 0 2px 2px 0; transform: rotate(45deg); }
/* card 2: the number card, dark like a small dashboard */
.hm-float--stat { bottom: -46px; inset-inline-end: -34px; min-width: 204px; padding: 18px 22px 20px; border: 0; background: var(--c-brand); color: #fff; animation: hm-pop .7s var(--hm-ease) .85s both, hm-float 8s ease-in-out 2s infinite reverse; }
.hm-float--stat b { display: block; color: var(--hm-orange); font-size: 46px; line-height: 1.05; font-variant-numeric: tabular-nums; direction: ltr; text-align: start; }
[dir="rtl"] .hm-float--stat b { text-align: end; }
.hm-float--stat span { display: block; margin-top: 4px; max-width: 22ch; color: rgba(255, 255, 255, .82); font-size: 14px; font-weight: 700; line-height: 1.5; }
.hm-float--stat em { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 3px 9px; background: rgba(255, 255, 255, .16); color: #fff; font-size: 13px; font-style: normal; font-weight: 700; direction: ltr; }
.hm-float--stat em svg { width: 9px; height: 8px; fill: var(--hm-orange); }
.hm-float--stat em.is-down svg { transform: scaleY(-1); }





/* the real system (Pages/home/showcase.blade.php): tabs, real web app screens in a browser frame, the phone app -- */
.hm .hm-show { background: var(--c-soft); overflow: hidden; }
.hm-show .hm-head--row .hm-lead { margin-top: 14px; max-width: 56ch; }
.hm-show-grid { display: grid; grid-template-columns: minmax(250px, .32fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 3.4vw, 52px); }
/* tabs */
.hm-show-tabs { display: grid; gap: 10px; }
.hm-show-tab { position: relative; display: flex; align-items: flex-start; gap: 14px; overflow: hidden; padding: 16px 18px; border: 1px solid transparent; background: transparent; color: var(--c-text); text-align: start; transition: background-color .3s, border-color .3s, box-shadow .3s; }
.hm-show-tab:hover { background: rgba(255, 255, 255, .6); }
.hm-show-tab.is-active { border-color: var(--hm-line); background: #fff; box-shadow: 0 16px 36px rgba(18, 60, 72, .1); }
.hm-show-tab-ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; background: var(--c-brand-tint); color: var(--c-brand); transition: background-color .3s, color .3s; }
.hm-show-tab.is-active .hm-show-tab-ico { background: var(--c-brand); color: #fff; }
.hm-show-tab-ico .hm-icon { width: 20px; height: 20px; }
.hm-show-tab b { display: block; color: var(--c-ink); font-size: 16.5px; line-height: 1.4; }
.hm-show-tab small { display: block; margin-top: 3px; color: var(--hm-muted); font-size: 13.5px; line-height: 1.6; }
.hm-show-tab:not(.is-active) small { display: none; }
.hm-show-tab > i { position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: var(--hm-orange); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .hm-show-tab > i { transform-origin: right; }
.hm-show.is-auto .hm-show-tab.is-active > i { animation: hm-progress 7s linear forwards; }
.hm-show.is-auto:hover .hm-show-tab.is-active > i { animation-play-state: paused; }
/* stage: the browser frame, the phone in front of its corner */
.hm-show-stage { position: relative; padding-bottom: 40px; padding-inline-end: 9%; }
.hm-show-browser { overflow: hidden; border: 1px solid rgba(25, 104, 127, .16); background: #fff; box-shadow: 0 40px 80px rgba(18, 60, 72, .18), 0 0 0 8px rgba(255, 255, 255, .7); }
.hm-show-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid rgba(25, 104, 127, .12); background: #f4f8f9; }
.hm-show-bar > i { width: 9px; height: 9px; border-radius: 50%; }
.hm-show-bar > i:nth-child(1) { background: #ff8a65; } .hm-show-bar > i:nth-child(2) { background: #ffc24d; } .hm-show-bar > i:nth-child(3) { background: #5fd39a; }
.hm-show-bar span { position: relative; display: grid; flex: 1; margin-inline-start: 10px; padding: 3px 10px; border: 1px solid rgba(25, 104, 127, .12); background: #fff; color: var(--hm-muted); font-size: 11.5px; direction: ltr; text-align: left; }
.hm-show-bar em { grid-area: 1 / 1; font-style: normal; opacity: 0; transition: opacity .4s; }
.hm-show-bar em.is-active { opacity: 1; }
/* the screens: the open one fades in and pans slowly down, like someone looking through it */
.hm-show-screens { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #f4f8f9; }
.hm-show-screens img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; opacity: 0; transform: scale(1.03); transition: opacity .8s ease, transform 1.2s var(--hm-ease); }
.hm-show-screens img.is-active { opacity: 1; transform: none; }
.hm-show.is-auto .hm-show-screens img.is-active { animation: hm-show-pan 7s ease-in-out forwards; }
@keyframes hm-show-pan { 0%, 15% { object-position: 50% 0; } 100% { object-position: 50% 100%; } }
/* the phone */
.hm-show-phone { position: absolute; z-index: 2; bottom: 0; inset-inline-end: 0; width: 27%; max-width: 230px; padding: 7px; border-radius: 30px; background: #163a44; box-shadow: 0 30px 60px rgba(18, 60, 72, .35); }
.hm-app { position: relative; overflow: hidden; aspect-ratio: 9 / 19; border-radius: 24px; background: #f2f6f7; color: #163a44; font-size: 10px; line-height: 1.35; }
.hm-app-s { position: absolute; inset: 0 0 46px; padding: 16px 10px 8px; opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .6s var(--hm-ease); }
.hm-app-s.is-active { opacity: 1; transform: none; }
.hm-app-hello { margin: 4px 2px 8px !important; font-weight: 700; font-size: 11.5px; }
.hm-app-toggle { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #cfe3e7; border-radius: 99px; overflow: hidden; font-size: 9.5px; text-align: center; }
.hm-app-toggle b, .hm-app-toggle span { padding: 5px 2px; }
.hm-app-toggle b { background: #1d8a99; color: #fff; }
.hm-app-h { margin: 10px 2px 6px !important; font-weight: 700; font-size: 11px; }
.hm-app-rings { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.hm-app-rings > div { position: relative; display: grid; place-items: center; padding: 8px 4px; border-radius: 12px; background: #fff; }
.hm-app-rings svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.hm-app-rings circle { fill: none; stroke-width: 5; }
.hm-app-rings .r-bg { stroke: #e3eef0; } .hm-app-rings .r-a { stroke: #ffc61a; } .hm-app-rings .r-b { stroke: #5cbcd0; } .hm-app-rings .r-c { stroke: #e5484d; }
.hm-app-rings b { position: absolute; top: 30px; font-size: 11px; }
.hm-app-rings small { color: #64787e; font-size: 8.5px; }
.hm-app-row { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; padding: 7px 8px; border-radius: 10px; background: #fff; }
.hm-app-row i { flex: none; width: 22px; height: 22px; border-radius: 50%; opacity: .35; }
.hm-app-row span { display: grid; font-weight: 700; font-size: 9.5px; } .hm-app-row b { font-weight: 600; color: #64787e; }
.c-blue { background: #4a6fd8; } .c-yellow { background: #f2c230; } .c-orange { background: #f59a23; } .c-green { background: #3cbf6e; }
.hm-app-title { margin: 4px 2px 8px !important; font-weight: 700; font-size: 12px; }
.hm-app-title--c { text-align: center; }
.hm-app-chips { display: flex; gap: 4px; margin-bottom: 8px; }
.hm-app-chips span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border: 1px solid #dce8ea; border-radius: 99px; background: #fff; font-size: 8.5px; white-space: nowrap; }
.hm-app-chips span.is-on { border-color: #1d8a99; }
.hm-app-chips i { width: 6px; height: 6px; border-radius: 50%; }
.hm-app-task { position: relative; display: grid; gap: 2px; margin-bottom: 6px; padding: 8px 10px; padding-inline-start: 13px; border-radius: 12px; background: #fff; }
.hm-app-task::before { content: ""; position: absolute; top: 8px; bottom: 8px; inset-inline-start: 4px; width: 3px; border-radius: 3px; background: #22d3ee; }
.hm-app-task.is-high::before { background: #a11d1d; }
.hm-app-task b { font-size: 10px; } .hm-app-task small { color: #1d8a99; } .hm-app-task span { margin-top: 3px; padding-top: 4px; border-top: 1px solid #edf3f4; color: #64787e; font-size: 8.5px; }
.hm-app em { justify-self: start; padding: 1px 7px; border-radius: 99px; font-style: normal; font-size: 8.5px; }
.t-cyan { background: #dcf7fb; color: #11a3b8; } .t-red { background: #fde4e4; color: #b4232a; } .t-green { background: #e2f6ec; color: #23935c; } .t-orange { background: #fff1de; color: #e08a00; } .t-yellow { background: #fff6d6; color: #d6a500; }
.hm-app-search { margin-bottom: 8px !important; padding: 7px 10px; border: 1px solid #d6e6e9; border-radius: 10px; background: #fff; color: #97a8ad; }
.hm-app-asset { display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 2px 8px; margin-bottom: 5px; padding: 7px 8px; border-radius: 12px; background: #fff; }
.hm-app-asset .a-ico { grid-row: span 2; width: 22px; height: 22px; border-radius: 6px; background: #8ad7e0; }
.hm-app-asset b { font-size: 9.5px; } .hm-app-asset em { grid-column: 2; }
.hm-app-sub { grid-column: 1 / -1; display: grid; gap: 2px; margin-top: 4px; padding-inline-start: 10px; border-inline-start: 2px solid #cfe3e7; }
.hm-app-sub b { font-size: 9px; }
.hm-app-dl { margin: 0; padding: 4px 10px; border-radius: 12px; background: #fff; }
.hm-app-dl div { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 5px 0; border-bottom: 1px solid #edf3f4; }
.hm-app-dl div:last-child { border: 0; }
.hm-app-dl dt { color: #163a44; font-weight: 700; font-size: 9px; } .hm-app-dl dd { margin: 0; font-size: 9px; }
.hm-app-av { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #e3eef0; color: #1d8a99; font-weight: 700; }
.hm-app-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.hm-app-btns span { padding: 7px 4px; border-radius: 10px; color: #fff; font-size: 9px; font-weight: 700; text-align: center; }
.b-teal { background: #1d8a99; } .b-orange { background: #f59a23; }
.hm-app-nav { position: absolute; inset-inline: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); height: 46px; padding: 6px 4px 4px; border-radius: 16px 16px 0 0; background: #fff; box-shadow: 0 -6px 14px rgba(18, 60, 72, .06); }
.hm-app-nav span { display: grid; justify-items: center; gap: 3px; color: #97a8ad; font-size: 7.5px; }
.hm-app-nav i { width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 4px; }
.hm-app-nav span.is-on { color: #1d8a99; font-weight: 700; }
.hm-app-nav span.is-on i { background: #1d8a99; border-color: #1d8a99; }
@media (max-width: 991px) {
    .hm-show-grid { grid-template-columns: 1fr; }
    .hm-show-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-show-tab small { display: none; }
}
@media (max-width: 600px) { .hm-show-stage { padding-inline-end: 0; padding-bottom: 120px; } .hm-show-phone { width: 40%; } }
@media (prefers-reduced-motion: reduce) { .hm-show-screens img { animation: none !important; transition: opacity .3s; } }

/* the digital twin in 3D (Pages/home/twin.blade.php, scene in public/js/twin3d.js) ------------------------- */
.hm-tw3 { background: linear-gradient(to bottom, #fff, var(--c-brand-tint)); }
.hm-tw3.hm-section { padding-block: clamp(56px, 6vw, 96px); }
.hm-tw3-grid { display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); align-items: center; gap: clamp(28px, 4vw, 64px); }
.hm-tw3-copy .hm-lead { margin-top: 18px; }
.hm-tw3-copy .hm-btn { margin-top: 28px; }
.tw3 { min-width: 0; }
@media (max-width: 991px) { .hm-tw3-grid { grid-template-columns: 1fr; } }
.tw3-stage { position: relative; overflow: hidden; height: clamp(380px, 34vw, 500px); border: 1px solid var(--hm-line); background: radial-gradient(ellipse at 50% 40%, #fff 0%, #eef6f8 55%, #dcecef 100%); cursor: grab; }
.tw3-stage.is-dragging { cursor: grabbing; }
.tw3-stage canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .9s ease; touch-action: pan-y; }
.tw3-stage.is-ready canvas { opacity: 1; }
.tw3-tags { position: absolute; inset: 0; pointer-events: none; }
/* a tag above each asset: its name, a status dot and the live sensor reading */
.tw3-tag { position: absolute; top: 0; left: 0; display: grid; gap: 2px; padding: 5px 9px 6px; border: 1px solid rgba(25, 104, 127, .2); background: rgba(255, 255, 255, .92); box-shadow: 0 8px 20px rgba(18, 60, 72, .12); color: var(--c-ink); font-size: 11.5px; line-height: 1.3; white-space: nowrap; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); will-change: transform; transition: border-color .3s, background-color .3s; }
.tw3-tag b { font-size: 12px; }
.tw3-tag span { display: flex; align-items: center; gap: 6px; }
.tw3-tag i { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.tw3-tag em { font-style: normal; font-weight: 700; direction: ltr; font-variant-numeric: tabular-nums; }
.tw3-tag.is-fault { border-color: #e5484d; background: #fff1f1; color: #b4232a; animation: tw3-shake .5s ease-in-out infinite alternate; }
.tw3-tag.is-ppm, .tw3-tag.is-fix { border-color: #f2a000; background: #fff8e8; }
.tw3-tag--tech { padding: 3px 8px; border-color: transparent; background: var(--hm-orange); color: var(--c-ink); font-weight: 700; }
@keyframes tw3-shake { from { margin-top: 0; } to { margin-top: -3px; } }
.tw3-tag.is-hidden { opacity: 0; }
.tw3-no-3d canvas { display: none; }
/* the story line over the scene: what is happening now; it slides in each time it changes */
.tw3-story { position: absolute; bottom: 22px; left: 50%; display: inline-flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); margin: 0; padding: 12px 20px; background: rgba(255, 255, 255, .94); color: var(--c-ink); font-size: clamp(15px, 1.4vw, 18px); font-weight: 700; white-space: nowrap; box-shadow: 0 18px 40px rgba(18, 60, 72, .16); translate: -50% 0; animation: tw3-story .6s var(--hm-ease) both; }
.tw3-story span { overflow: hidden; text-overflow: ellipsis; }
.tw3-story i { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #23b26d; box-shadow: 0 0 0 5px rgba(35, 178, 109, .2); }
.tw3-story.is-fault i { background: #e5484d; box-shadow: 0 0 0 5px rgba(229, 72, 77, .22); animation: hm-twin-blink .8s ease-in-out infinite; }
.tw3-story.is-ppm i, .tw3-story.is-fix i { background: #f2a000; box-shadow: 0 0 0 5px rgba(242, 160, 0, .22); }
@keyframes tw3-story { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes hm-twin-blink { 50% { opacity: .4; } }
@media (max-width: 600px) { .tw3-stage { height: 400px; } .tw3-tag { font-size: 10.5px; padding: 3px 6px; } .tw3-story { white-space: normal; font-size: 14px; } }

/* AI section (Pages/home/ai.blade.php, scene in public/js/ai3d.js): the one deep blue section of the page --- */
.hm-ai { position: relative; overflow: hidden; background: radial-gradient(ellipse at 75% 40%, #1d7d96 0%, #124f61 45%, #0b323e 100%); color: rgba(255, 255, 255, .86); }
.hm-ai::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse at 70% 50%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 50%, #000 10%, transparent 70%); pointer-events: none; }
.hm-ai-grid { position: relative; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(32px, 5vw, 80px); }
.hm-ai .hm-h2 { color: #fff; }
.hm-ai .hm-lead { margin-top: 20px; color: rgba(255, 255, 255, .82); }
.hm-ai-list { margin: 30px 0 34px !important; display: grid; gap: 18px; }
.hm-ai-list li { display: flex; align-items: flex-start; gap: 16px; }
.hm-ai-list li > span { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(64, 196, 214, .5); background: rgba(64, 196, 214, .12); color: #7fe3ef; }
.hm-ai-list .hm-icon { width: 22px; height: 22px; }
.hm-ai-list b { display: block; color: #fff; font-size: 17.5px; }
.hm-ai-list p { margin-top: 4px !important; color: rgba(255, 255, 255, .72); font-size: 15.5px; line-height: 1.7; }
/* the 3D stage */
.ai3 { position: relative; }
.ai3-stage { position: relative; height: clamp(420px, 42vw, 580px); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%), linear-gradient(0deg, transparent 0%, #000 10%, #000 90%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%), linear-gradient(0deg, transparent 0%, #000 10%, #000 90%, transparent 100%); mask-composite: intersect; }
.ai3-stage canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.ai3-stage.is-ready canvas { opacity: 1; }
.ai3-tags { position: absolute; inset: 0; pointer-events: none; }
.ai3-node { position: absolute; top: 0; left: 0; padding: 4px 10px; border: 1px solid rgba(127, 227, 239, .45); background: rgba(11, 50, 62, .7); color: #fff; font-size: 12.5px; font-weight: 700; white-space: nowrap; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: opacity .4s; will-change: transform; }
/* the question and the answer, top corner */
.ai3-no-3d .ai3-stage { height: 160px; }
@media (max-width: 991px) { .hm-ai-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .ai3-stage { height: 380px; } }

/* 4. Client logos ---------------------------------------------------------- */
/* a white box that sits half on the hero and half on the page */
.hm-logos { position: relative; z-index: 2; margin-top: -58px; }
.hm-logos-box { display: flex; align-items: center; gap: 34px; min-height: 116px; padding-inline: 34px; border: 1px solid var(--hm-line); background: #fff; box-shadow: 0 24px 54px rgba(25, 104, 127, .14); }
.hm-logos-title { flex: none; padding-inline-end: 34px; border-inline-end: 1px solid var(--hm-line); color: var(--c-ink); font-size: 18px; line-height: 1.5; }
.hm-logos-title span { color: var(--hm-orange); }
.hm-marquee { flex: 1; min-width: 0; overflow: hidden; direction: ltr; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.hm-marquee-track { display: flex; align-items: center; gap: 60px; width: max-content; animation: hm-marquee var(--hm-marquee-time, 80s) linear infinite; }
.hm-marquee:hover .hm-marquee-track { animation-play-state: paused; }
.hm-marquee-track img { height: 54px; width: auto; max-width: 140px; object-fit: contain; filter: grayscale(1); opacity: .6; transition: filter .4s, opacity .4s, transform .4s; }
.hm-marquee-track img:hover { filter: none; opacity: 1; transform: scale(1.08); }

/* 5. Intro + module tabs --------------------------------------------------- */
.hm-intro { padding-top: clamp(64px, 7vw, 104px); }
.hm-tabs { margin-top: clamp(40px, 5vw, 68px); }
.hm-tablist { display: flex; border-bottom: 2px solid var(--hm-line); }
.hm-tab { position: relative; flex: 1; padding: 20px 14px; border: 0; background: none; color: var(--hm-muted); font-size: 13.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1.5; text-align: center; transition: color .25s; }
[dir="rtl"] .hm-tab { font-size: 16px; letter-spacing: 0; }
/* line under the open tab. While the tabs play by themselves it fills up like a timer */
.hm-tab::after { content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 3px; background: var(--hm-orange); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .hm-tab::after { transform-origin: right; }
.hm-tab:hover, .hm-tab.is-active { color: var(--c-ink); }
.hm-tab.is-active::after { transform: none; }
.hm-tabs.is-auto .hm-tab.is-active::after { animation: hm-progress 6.5s linear forwards; }
.hm-tabs.is-auto:hover .hm-tab.is-active::after { animation-play-state: paused; }

/* the big panel of a tab: module text on one side, a picture on the other.
   Each tab has its own colour (orange, navy, deep navy, light grey, then again). */
.hm-tabpanels { display: grid; margin-top: 40px; }
.hm-tabpanel { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 5vw, 80px); padding: clamp(32px, 5.5vw, 84px); background: var(--hm-soft); color: var(--c-ink); }
.hm-tabpanel + .hm-tabpanel { margin-top: 24px; }
.hm-js .hm-tabpanel { grid-area: 1 / 1; margin-top: 0; }
.hm-js .hm-tabpanel:not(.is-active) { visibility: hidden; opacity: 0; }
.hm-js .hm-tabpanel.is-active .hm-tabcopy > * { animation: hm-rise .6s var(--hm-ease) both; }
.hm-js .hm-tabpanel.is-active .hm-tabcopy > :nth-child(2) { animation-delay: .07s; }
.hm-js .hm-tabpanel.is-active .hm-tabcopy > :nth-child(3) { animation-delay: .14s; }
.hm-js .hm-tabpanel.is-active .hm-tabcopy > :nth-child(4) { animation-delay: .21s; }
.hm-js .hm-tabpanel.is-active .hm-tabvisual { animation: hm-pop .7s var(--hm-ease) .1s both; }
.hm-tabicon { display: grid; place-items: center; width: 60px; height: 60px; background: var(--hm-navy); color: var(--hm-orange); }
.hm-tabicon .hm-icon { width: 28px; height: 28px; }
.hm-tabpanel h2 { margin-top: 26px; color: inherit; font-size: clamp(25px, 2.7vw, 40px); line-height: 1.22; }
[dir="rtl"] .hm-tabpanel h2 { line-height: 1.45; }
.hm-tabpanel p { margin-top: 14px; max-width: 46ch; color: inherit; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.7; opacity: .86; }
.hm-tabpanel .hm-link { margin-top: 26px; }
/* colours */
.hm-tabpanel--orange { background: var(--hm-orange); }
.hm-tabpanel--orange .hm-link { border-color: var(--hm-navy); }
.hm-tabpanel--navy, .hm-tabpanel--deep { background: var(--hm-navy); color: #fff; }
.hm-tabpanel--deep { background: #124f61; }
.hm-tabpanel--navy .hm-tabicon, .hm-tabpanel--deep .hm-tabicon { background: var(--hm-orange); color: var(--c-ink); }
.hm-tabpanel--navy .hm-link, .hm-tabpanel--deep .hm-link { color: var(--hm-orange); }
.hm-tabpanel--navy .hm-link:hover, .hm-tabpanel--deep .hm-link:hover { border-color: #fff; color: #fff; }
/* the picture is kept near its real size, so it stays sharp */
.hm-tabvisual { width: min(100%, 520px); margin-inline: auto; }
.hm-tabvisual img { display: block; width: 100%; height: auto; box-shadow: 0 30px 60px rgba(18, 60, 72, .2); }

/* 6. All modules ----------------------------------------------------------- */
.hm-mod-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 5vw, 68px); }
.hm-mod { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-height: 264px; padding: 24px 24px 26px; border: 1px solid var(--hm-line); background: #fff; color: var(--c-text); transition: border-color .35s, transform .45s var(--hm-ease), background-color .35s; }
/* a soft light that follows the mouse: the script sets --mx and --my on the card */
.hm-mod::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 168, 0, .14), transparent 65%); transition: opacity .4s; }
.hm-mod:hover, .hm-mod:focus-visible { border-color: rgba(255, 168, 0, .75); transform: translateY(-6px); color: var(--c-text); box-shadow: 0 22px 46px rgba(18, 60, 72, .1); }
.hm-mod:hover::before, .hm-mod:focus-visible::before { opacity: 1; }
.hm-mod-top { display: flex; align-items: flex-start; justify-content: space-between; }
.hm-mod-icon { display: grid; place-items: center; width: 50px; height: 50px; border: 0; background: var(--c-brand-tint); color: var(--c-brand); transition: background-color .35s, color .35s, border-color .35s, transform .45s var(--hm-ease); }
.hm-mod:hover .hm-mod-icon { background: var(--hm-orange); border-color: var(--hm-orange); color: var(--c-ink); transform: rotate(-6deg) scale(1.06); }
.hm-mod b { color: var(--c-muted); font-size: 13px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.hm-mod h3 { margin-top: 22px; color: var(--c-ink); font-size: 20px; line-height: 1.4; }
.hm-mod p { margin-top: 10px; margin-bottom: 20px; color: var(--c-text); font-size: 15px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hm-mod .hm-arrow { margin-top: auto; color: var(--c-brand); }
.hm-modules.hm-on-dark { background: var(--c-soft); }

/* 7. About and community ---------------------------------------------------- */
.hm-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(36px, 7vw, 110px); }
.hm-split-text .hm-lead { margin-top: 22px; font-size: 17.5px; }
.hm-split-text .hm-lead strong { color: var(--c-ink); }
.hm-split-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
/* photo with an orange block behind one corner and a thin frame that is a little off */
.hm-photo { position: relative; margin-block-end: 18px; margin-inline-start: 18px; }
.hm-photo::before { content: ""; position: absolute; width: 38%; height: 44%; bottom: -18px; inset-inline-start: -18px; background: var(--hm-orange); }
.hm-photo::after { content: ""; position: absolute; inset: -14px; inset-inline-start: 22%; inset-block-end: 30%; border: 1px solid var(--hm-line); z-index: -1; }
.hm-photo img { position: relative; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; box-shadow: 0 30px 60px rgba(25, 104, 127, .16); }
/* a small photo is not stretched beyond what stays sharp */
.hm-photo--small { max-width: 560px; }
.hm-community { background: var(--hm-soft); }
.hm-community .hm-h2 { font-size: clamp(27px, 3.1vw, 46px); }
.hm-community .hm-split-text .hm-lead { max-width: 54ch; }

/* 8. Success partners (gallery) --------------------------------------------- */
/* One photo is open and wide; the others are dark strips. The open one changes when you point at a strip. */
.hm-xp { display: flex; gap: 10px; height: clamp(380px, 37vw, 520px); margin-top: clamp(36px, 4.5vw, 60px); }
.hm-xp-item { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; padding: 0; border: 0; background: var(--hm-navy); color: #fff; text-align: start; transition: flex-grow .8s var(--hm-ease); }
.hm-xp-item.is-active { flex-grow: 5.4; cursor: default; }
.hm-xp-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.5); transform: scale(1.12); transition: filter .8s, transform 1.6s var(--hm-ease); }
.hm-xp-item:hover img { filter: grayscale(1) brightness(.7); }
.hm-xp-item.is-active img { filter: none; transform: none; }
.hm-xp-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(25, 104, 127, .92), rgba(25, 104, 127, .1) 55%, rgba(25, 104, 127, .4)); }
.hm-xp-num { position: absolute; z-index: 1; top: 20px; inset-inline-start: 20px; color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .1em; font-variant-numeric: tabular-nums; transition: color .4s; }
.hm-xp-item.is-active .hm-xp-num { color: var(--hm-orange); }
.hm-xp-name { position: absolute; z-index: 1; bottom: 30px; inset-inline: 30px; font-size: clamp(22px, 2.3vw, 34px); font-weight: 700; line-height: 1.3; white-space: nowrap; opacity: 0; transform: translateY(18px); transition: opacity .35s, transform .5s var(--hm-ease); }
.hm-xp-name::before { content: ""; display: block; width: 46px; height: 3px; margin-bottom: 14px; background: var(--hm-orange); }
.hm-xp-item.is-active .hm-xp-name { opacity: 1; transform: none; transition-delay: .35s; }
/* timer line of the open photo */
.hm-xp-item i { position: absolute; z-index: 1; inset-inline: 0; bottom: 0; height: 4px; background: var(--hm-orange); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .hm-xp-item i { transform-origin: right; }
.hm-xp.is-auto .hm-xp-item.is-active i { animation: hm-progress 5s linear forwards; }
.hm-xp.is-auto:hover .hm-xp-item.is-active i { animation-play-state: paused; }

/* 9. Client quotes ----------------------------------------------------------- */
/* a large title on one side; on the other one framed quote at a time (it changes by itself, or with the arrows) */
.hm-testimonials { background: var(--hm-soft); }
.hm-quote-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); align-items: start; gap: clamp(28px, 5vw, 84px); }
.hm-quote-side .hm-arrows { margin-top: 34px; }
.hm-quote-side .hm-sqbtn { border-color: var(--hm-navy); color: var(--c-ink); }
.hm-quote-side .hm-sqbtn:hover { background: var(--hm-navy); border-color: var(--hm-navy); color: #fff; }
.hm-quote-box { display: grid; border: 1px solid rgba(25, 104, 127, .3); background: #fff; }
.hm-quote { position: relative; grid-area: 1 / 1; margin: 0; padding: clamp(28px, 4.6vw, 76px); }
.hm-js .hm-quote:not(.is-active) { visibility: hidden; opacity: 0; }
.hm-js .hm-quote.is-active > * { animation: hm-rise .6s var(--hm-ease) both; }
.hm-js .hm-quote.is-active figcaption { animation-delay: .12s; }
.hm-quote blockquote { margin: 0; padding: 0; border: 0; color: var(--c-ink); font-size: clamp(21px, 2.3vw, 35px); line-height: 1.5; }
[dir="rtl"] .hm-quote blockquote { line-height: 1.75; }
.hm-quote blockquote::before { content: "\201C"; display: block; height: .5em; color: var(--hm-orange); font-size: 2.6em; line-height: 1; }
.hm-quote figcaption { display: flex; align-items: center; gap: 18px; margin-top: clamp(26px, 3.4vw, 48px); padding-top: clamp(22px, 3vw, 36px); border-top: 1px solid rgba(25, 104, 127, .3); color: var(--c-ink); font-size: 19px; font-weight: 700; line-height: 1.5; }
.hm-quote figcaption::before { content: ""; flex: none; width: 14px; height: 14px; background: var(--hm-orange); }
/* timer line along the bottom of the open quote */
.hm-quote > i { position: absolute; inset-inline: 0; bottom: 0; height: 4px; background: var(--hm-orange); transform: scaleX(0); transform-origin: left; animation: none !important; }
[dir="rtl"] .hm-quote > i { transform-origin: right; }
.is-auto .hm-quote.is-active > i { animation: hm-progress 8s linear forwards !important; }
.is-auto:hover .hm-quote.is-active > i { animation-play-state: paused !important; }

/* About the company (Pages/home/about.blade.php): text beside a photo scene, then the "about" items as cards */
.hm-ab { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(40px, 6vw, 100px); }
.hm-ab--text { grid-template-columns: 1fr; }
.hm-ab-copy .hm-lead { margin-top: 22px; display: -webkit-box; overflow: hidden; font-size: 17.5px; -webkit-line-clamp: 8; -webkit-box-orient: vertical; }
.hm-ab-copy .hm-split-actions { margin-top: 32px; }
/* the photo scene: a light blue frame behind it, an orange block on one top corner, blue bars on the side */
.hm-ab-visual { position: relative; padding: 34px; padding-inline-start: 0; }
.hm-ab-visual::before { content: ""; position: absolute; top: 0; bottom: 64px; inset-inline-start: 56px; inset-inline-end: 0; background: var(--c-brand-tint); }
.hm-ab-block { position: absolute; top: 0; inset-inline-end: 0; width: 34%; height: 40%; background: var(--hm-orange); }
.hm-ab-bars { position: absolute; bottom: 24px; inset-inline-end: 20%; width: 120px; height: 26px; background: repeating-linear-gradient(90deg, var(--c-brand) 0 5px, transparent 5px 11px); }
.hm-ab-visual > img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: 0 30px 60px rgba(18, 60, 72, .18); transition: transform .9s var(--hm-ease); }
.hm-ab-visual:hover > img { transform: translateY(-8px); }
/* the cards: icon on light blue, a large faint number, an orange line on top of the card you point at */
.hm-ab-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); margin-top: clamp(52px, 6vw, 88px); }
.hm-ab-card { position: relative; overflow: hidden; padding: 30px 26px 32px; border: 1px solid var(--hm-line); background: #fff; transition: transform .45s var(--hm-ease), box-shadow .3s, opacity .8s var(--hm-ease); }
.hm-ab-card::after { content: ""; position: absolute; top: 0; inset-inline: 0; height: 4px; background: var(--hm-orange); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--hm-ease); }
[dir="rtl"] .hm-ab-card::after { transform-origin: right; }
.hm-js .hm-ab-card.is-visible:hover, .hm-ab-card:hover { transform: translateY(-6px); box-shadow: 0 26px 54px rgba(18, 60, 72, .12); }
.hm-ab-card:hover::after { transform: none; }
.hm-ab-ico { display: grid; place-items: center; width: 56px; height: 56px; background: var(--c-brand-tint); color: var(--c-brand); transition: background-color .3s, color .3s; }
.hm-ab-ico .hm-icon { width: 26px; height: 26px; }
.hm-ab-card:hover .hm-ab-ico { background: var(--c-brand); color: #fff; }
.hm-ab-card b { position: absolute; top: 24px; inset-inline-end: 24px; color: rgba(25, 104, 127, .14); font-size: 40px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.hm-ab-card h3 { margin-top: 24px; font-size: 21px; }
.hm-ab-card p { margin-top: 10px; color: var(--hm-muted); font-size: 16px; line-height: 1.75; }
@media (max-width: 991px) { .hm-ab { grid-template-columns: 1fr; } .hm-ab-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hm-ab-cards { grid-template-columns: 1fr; } }

/* 10. FAQ ------------------------------------------------------------------ */
/* the title side is a blue card (a large faint question mark, bars in a corner); the questions are numbered */
.hm-faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(28px, 4vw, 64px); }
.hm-faq-side { position: sticky; top: 130px; overflow: hidden; padding: clamp(32px, 4vw, 56px); background: var(--c-brand); color: #fff; }
.hm-faq-side::before { content: "?"; position: absolute; bottom: -.2em; inset-inline-end: .06em; color: rgba(255, 255, 255, .08); font-size: 260px; font-weight: 700; line-height: 1; pointer-events: none; }
.hm-faq-side::after { content: ""; position: absolute; top: 0; inset-inline-end: 0; width: 110px; height: 40px; background: repeating-linear-gradient(to bottom, var(--hm-orange) 0 5px, transparent 5px 11px); }
.hm-faq-side .hm-label { color: #fff; }
.hm-faq-side .hm-h2 { color: #fff; }
.hm-faq-side .hm-lead { position: relative; margin-top: 20px; max-width: 32ch; color: rgba(255, 255, 255, .88); }
.hm-faq-side .hm-btn { position: relative; margin-top: 30px; border-color: #fff; background: #fff; color: var(--c-brand); }
.hm-faq-side .hm-btn:hover { border-color: var(--hm-orange); background: var(--hm-orange); color: var(--c-ink); }
.hm-faq-list { counter-reset: hm-q; }
.hm-faq-item { margin-bottom: 12px; border: 1px solid var(--hm-line); background: #fff; counter-increment: hm-q; transition: border-color .3s, box-shadow .3s; }
.hm-faq-item:hover, .hm-faq-item[open] { border-color: transparent; box-shadow: 0 18px 40px rgba(25, 104, 127, .1); }
.hm-faq-item[open] { box-shadow: inset 3px 0 0 var(--hm-orange), 0 18px 40px rgba(25, 104, 127, .1); }
[dir="rtl"] .hm-faq-item[open] { box-shadow: inset -3px 0 0 var(--hm-orange), 0 18px 40px rgba(25, 104, 127, .1); }
.hm-faq-item summary { display: flex; align-items: center; gap: 18px; padding: 22px 26px; list-style: none; cursor: pointer; color: var(--c-ink); font-size: 18.5px; font-weight: 700; line-height: 1.6; }
/* the number of the question */
.hm-faq-item summary::before { content: counter(hm-q, decimal-leading-zero); flex: none; display: grid; place-items: center; width: 40px; height: 40px; background: var(--c-brand-tint); color: var(--c-brand); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; transition: background-color .25s, color .25s; }
.hm-faq-item[open] summary::before { background: var(--c-brand); color: #fff; }
.hm-faq-item summary::-webkit-details-marker { display: none; }
/* plus that turns into a minus */
.hm-faq-item summary i { position: relative; flex: none; margin-inline-start: auto; width: 34px; height: 34px; background: var(--hm-soft); transition: background-color .25s, transform .4s var(--hm-ease); }
.hm-faq-item summary i::before, .hm-faq-item summary i::after { content: ""; position: absolute; inset: 50% 10px auto; height: 2px; margin-top: -1px; background: var(--hm-navy); transition: transform .35s var(--hm-ease); }
.hm-faq-item summary i::after { transform: rotate(90deg); }
.hm-faq-item summary:hover i, .hm-faq-item[open] summary i { background: var(--hm-orange); }
.hm-faq-item[open] summary i { transform: rotate(180deg); }
.hm-faq-item[open] summary i::after { transform: none; }
.hm-faq-answer { padding: 0 26px 24px; padding-inline-start: 84px; padding-inline-end: 80px; color: var(--hm-muted); animation: hm-rise .5s var(--hm-ease) both; }
.hm-faq-answer p { margin-bottom: 10px; }
.hm-faq-more { margin-top: 18px; padding: 0 0 5px; border: 0; border-bottom: 2px solid var(--hm-orange); background: none; }
.hm-faq-more::before { content: "+"; color: var(--hm-orange); font-size: 22px; line-height: 1; }

/* 11. Articles ------------------------------------------------------------- */
/* the newest article is large; the two others are rows beside it */
.hm-blog { background: var(--hm-soft); }
.hm-blog-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 24px clamp(24px, 3vw, 44px); margin-top: clamp(36px, 4.5vw, 60px); }
.hm-post { position: relative; background: #fff; border: 1px solid var(--hm-line); transition: border-color .3s, box-shadow .3s, transform .45s var(--hm-ease); }
.hm-post:hover { border-color: transparent; box-shadow: 0 26px 54px rgba(25, 104, 127, .13); transform: translateY(-5px); }
.hm-post:first-child { grid-row: span 2; }
.hm-post:not(:first-child) { display: grid; grid-template-columns: 38% minmax(0, 1fr); }
.hm-post-img { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--hm-soft); }
.hm-post:not(:first-child) .hm-post-img { aspect-ratio: auto; height: 100%; min-height: 190px; }
.hm-post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--hm-ease); }
.hm-post:hover .hm-post-img img { transform: scale(1.06); }
.hm-post-body { padding: 24px 28px 28px; }
.hm-post-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--hm-muted); font-size: 13.5px; font-weight: 700; }
.hm-post-meta time { color: var(--c-ink); }
.hm-post h3 { margin-top: 8px; font-size: 20px; line-height: 1.45; }
.hm-post:first-child h3 { font-size: clamp(22px, 2vw, 28px); }
.hm-post h3 a { color: var(--c-ink); }
/* the whole card is the link */
.hm-post h3 a::after { content: ""; position: absolute; inset: 0; }
.hm-post p { margin-top: 10px; color: var(--hm-muted); font-size: 15.5px; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-post:not(:first-child) p { display: none; }
.hm-post .hm-link { margin-top: 16px; font-size: 15px; }

/* 12. Demo band ------------------------------------------------------------ */
/* the one orange block of the page: text and button on one side, the demo photo on the other */
.hm-cta { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); background: var(--hm-orange); color: var(--c-ink); }
.hm-cta-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-height: 420px; padding: clamp(56px, 7vw, 96px) clamp(24px, 5vw, 80px); padding-inline-start: var(--hm-gutter); }
.hm-cta .hm-label::before { background: var(--hm-navy); }
.hm-cta-copy .hm-h2 { font-size: clamp(27px, 3.1vw, 46px); }
.hm-cta-copy .hm-lead { margin-top: 18px; max-width: 54ch; color: var(--c-ink); font-size: 18px; }
.hm-cta-copy .hm-btn { margin-top: 34px; }
.hm-cta-img { position: relative; overflow: hidden; min-height: 300px; background: var(--hm-navy); }
.hm-cta-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--hm-ease); }
.hm-cta:hover .hm-cta-img img { transform: scale(1.05); }
.hm-cta .hm-bars { inset-inline-end: auto; inset-inline-start: var(--hm-gutter); color: var(--hm-orange); }

/* 13. Motion --------------------------------------------------------------- */
/* things appear as you scroll to them (only when the script is running) */
.hm-js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--hm-ease), transform .8s var(--hm-ease); transition-delay: calc(var(--i, 0) * 70ms); }
.hm-js [data-reveal].is-in { opacity: 1; transform: none; }
/* a card that has appeared answers the mouse at once (no waiting for its turn) */
.hm-js .hm-mod[data-reveal].is-in, .hm-js .hm-post[data-reveal].is-in { transition-delay: 0s; }
/* the bars grow one after another */
.hm-js .hm-bars[data-reveal] { opacity: 1; transform: none; }
.hm-js .hm-bars[data-reveal] i { transform: scaleY(0); transition: transform .7s var(--hm-ease); transition-delay: calc(var(--n) * 28ms); }
.hm-js .hm-bars[data-reveal].is-in i { transform: none; }

@keyframes hm-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes hm-word { to { transform: none; } }
@keyframes hm-pop { from { opacity: 0; scale: .88; } to { opacity: 1; scale: 1; } }
@keyframes hm-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes hm-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hm-progress-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes hm-marquee { to { transform: translateX(-50%); } }
@keyframes hm-grid { to { background-position: 64px 64px; } }
@keyframes hm-drift { to { transform: translate3d(-3%, 2%, 0) scale(1.07); } }
@keyframes hm-level { to { transform: scaleY(.5); } }
@keyframes hm-block { from { opacity: 0; transform: translate(-28px, 28px); } to { opacity: 1; transform: none; } }

/* 14. Small screens -------------------------------------------------------- */
@media (max-width: 1100px) {
    .hm-mod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
    .hm { font-size: 16px; }
    .hm-head, .hm-split, .hm-faq-grid, .hm-tabpanel, .hm-cta, .hm-blog-grid, .hm-quote-grid, .hm-switch { grid-template-columns: 1fr; }
    /* no minimum height here: with a fixed shape it would also force a minimum width, wider than a phone */
    .hm-head { align-items: start; }
    .hm-faq-side { position: static; }
    .hm-mod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* tabs: one row that scrolls sideways */
    .hm-tablist { overflow-x: auto; scrollbar-width: none; }
    .hm-tablist::-webkit-scrollbar { display: none; }
    .hm-tab { flex: none; padding-inline: 20px; white-space: nowrap; }
    .hm-split--flip .hm-split-media { order: -1; }
    .hm-logos-box { flex-direction: column; align-items: stretch; gap: 0; padding: 18px 20px; }
    .hm-logos-title { padding: 0 0 12px; border: 0; text-align: center; }
    .hm-cta-copy { min-height: 0; padding-inline: 24px; }
    .hm-post:first-child { grid-row: auto; }
}

@media (max-width: 767px) {
    /* the gallery becomes a column: the open photo is tall, the others are short rows with their name */
    .hm-xp { flex-direction: column; height: auto; }
    .hm-xp-item { flex: none; height: 74px; transition: height .6s var(--hm-ease); }
    .hm-xp-item.is-active { height: 300px; }
    .hm-xp-name { bottom: 20px; inset-inline: 62px 20px; font-size: 19px; opacity: 1; transform: none; }
    .hm-xp-name::before { display: none; }
    .hm-xp-num { top: 24px; }
}

@media (max-width: 600px) {
    .hm-wrap { width: calc(100% - 36px); }
    .hm { --hm-gutter: 18px; }
    .hm-mod-grid { grid-template-columns: 1fr; }
    .hm-mod { min-height: 0; }
    .hm-btn { padding: 14px 22px; }
    /* phones: the tabs show only their number and timer line */
    .hm-float--list { display: none; }
    .hm-float--stat { inset-inline-end: -22px; min-width: 0; padding: 14px 18px; }
    .hm-float--stat b { font-size: 36px; }
    .hm-faq-item summary { padding: 18px; font-size: 17px; }
    .hm-faq-answer { padding: 0 18px 20px; }
    .hm-photo { margin-inline-start: 16px; }
    .hm-photo::before { bottom: -16px; inset-inline-start: -16px; }
    .hm-post:not(:first-child) { grid-template-columns: 1fr; }
    .hm-post:not(:first-child) .hm-post-img { aspect-ratio: 16 / 10; height: auto; min-height: 0; }
    .hm-marquee-track img { height: 44px; }
    .hm-bars { height: 60px; gap: 5px; }
    .hm-bars i { width: 5px; }
}

/* people who asked their device for less motion get a still page */
@media (prefers-reduced-motion: reduce) {
    .hm *, .hm *::before, .hm *::after { animation: none !important; transition: none !important; }
    .hm-js [data-reveal], .hm-js .hm-bars[data-reveal] i, .hm-w > span { opacity: 1 !important; transform: none !important; }
    .hm-compo { transform: none !important; }
    .hm-marquee { overflow-x: auto; }
}

/* ==========================================================================
   15. One page, one rhythm
   The same space above and below every section, and backgrounds that alternate in the order of the page
   (Pages/Home.blade.php): white and light grey-blue, one deep blue section (AI), the orange band at the end.
   ========================================================================== */
.hm .hm-section { padding-block: clamp(72px, 8vw, 112px); }
.hm .hm-intro, .hm .hm-modules, .hm .hm-partners, .hm .hm-about, .hm .hm-blog { background: #fff; }
.hm .hm-show, .hm .hm-testimonials, .hm .hm-faq { background: var(--c-soft); }
.hm .hm-tw3 { background: linear-gradient(to bottom, var(--c-soft), var(--c-brand-tint)); }
/* section headings: the same gap under every heading */
.hm .hm-head, .hm .hm-head--row { margin-bottom: clamp(32px, 4vw, 52px); }
.hm .hm-head--row .hm-h2 { max-width: 22ch; }

/* all modules: compact tiles (icon, name, arrow) in four columns */
.hm .hm-mod-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 0; }
.hm .hm-mod { flex-direction: row; align-items: center; gap: 14px; min-height: 0; padding: 16px 18px; }
.hm .hm-mod-icon { flex: none; width: 46px; height: 46px; }
.hm .hm-mod h3 { flex: 1; margin: 0; font-size: 16.5px; line-height: 1.45; }
.hm .hm-mod > svg { flex: none; margin: 0; width: 20px; height: 10px; color: var(--c-brand); fill: none; stroke: currentColor; stroke-width: 1.6; opacity: .5; transition: opacity .3s, transform .35s var(--hm-ease); }
[dir="rtl"] .hm .hm-mod > svg { transform: scaleX(-1); }
.hm .hm-mod:hover > svg { opacity: 1; transform: translateX(4px); }
[dir="rtl"] .hm .hm-mod:hover > svg { transform: scaleX(-1) translateX(4px); }
@media (max-width: 1100px) { .hm .hm-mod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .hm .hm-mod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .hm .hm-mod-grid { grid-template-columns: 1fr; } }

/* 16. Real screens of the system across the page --------------------------------------------------- */
/* module tabs: a real screen in a browser frame, panning slowly, with a cursor that clicks around */
.hm-tabscreen { position: relative; width: 100%; max-width: 640px; background: #fff; box-shadow: 0 36px 70px rgba(18, 60, 72, .28), 0 0 0 8px rgba(255, 255, 255, .14); transform: perspective(1200px) rotateY(-10deg) rotateX(4deg); transition: transform 1s var(--hm-ease); }
[dir="rtl"] .hm-tabscreen { transform: perspective(1200px) rotateY(10deg) rotateX(4deg); }
.hm-tabpanel:hover .hm-tabscreen { transform: none; }
.hm-tabpanel .hm-tabscreen-bar, .hm-ab-screen .hm-tabscreen-bar { display: flex; align-items: center; gap: 6px; margin: 0; padding: 8px 12px; max-width: none; background: #f4f8f9; opacity: 1; }
.hm-tabscreen-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff8a65; }
.hm-tabscreen-bar i:nth-child(2) { background: #ffc24d; } .hm-tabscreen-bar i:nth-child(3) { background: #5fd39a; }
.hm-tabscreen-bar span { flex: 1; margin-inline-start: 10px; padding: 2px 10px; background: #fff; color: #64787e; font-size: 11.5px; line-height: 1.6; direction: ltr; text-align: left; }
.hm-tabscreen-view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #f4f8f9; }
.hm-tabvisual .hm-tabscreen-view img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; box-shadow: none; opacity: 0; transition: opacity .45s ease; }
.hm-tabvisual .hm-tabscreen-view img.is-active { opacity: 1; }
/* the cursor: moved by home.js (part 14) to the real button, then it clicks */
.hm-tabscreen-cursor { position: absolute; z-index: 2; top: 72%; left: 62%; width: 22px; height: 22px; margin: -3px 0 0 -4px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l16 9-7 2-3 7z' fill='%23163a44' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E"); filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .3)); transition: top 1.1s cubic-bezier(.6, 0, .25, 1), left 1.1s cubic-bezier(.6, 0, .25, 1), transform .15s; }
.hm-tabscreen-cursor::after { content: ""; position: absolute; top: -8px; left: -8px; width: 20px; height: 20px; border: 2px solid var(--hm-orange); border-radius: 50%; opacity: 0; }
.hm-tabscreen-cursor.is-click { transform: scale(.85); }
.hm-tabscreen-cursor.is-click::after { animation: hm-click .6s ease-out; }
@keyframes hm-click { 0% { opacity: 1; transform: scale(.4); } 100% { opacity: 0; transform: scale(2); } }
.hm-tabpanel--soft .hm-tabscreen, .hm-tabpanel--orange .hm-tabscreen { box-shadow: 0 36px 70px rgba(18, 60, 72, .22); }
/* the panel itself: a soft light that moves behind the screen */
.hm-tabpanel::after { content: ""; position: absolute; z-index: 0; top: -30%; inset-inline-end: -10%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(64, 196, 214, .28), transparent 65%); pointer-events: none; animation: hm-glow-move 12s ease-in-out infinite alternate; }
.hm-tabpanel > * { position: relative; z-index: 1; }
@keyframes hm-glow-move { to { translate: -40% 50%; } }

/* about: a small window of the real dashboard and the work order counts float over the photo */
.hm-ab-screen { position: absolute; z-index: 2; bottom: 0; inset-inline-end: -4%; width: 52%; background: #fff; box-shadow: 0 30px 60px rgba(18, 60, 72, .3); animation: hm-ab-float 7s ease-in-out infinite alternate; }
.hm-ab-screen img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 0; }
.hm-ab-kpis { position: absolute; z-index: 3; top: 12%; inset-inline-start: -6%; width: 62%; box-shadow: 0 20px 40px rgba(18, 60, 72, .25); animation: hm-ab-float 6s ease-in-out 1s infinite alternate-reverse; }
.hm-ab-kpis img { display: block; width: 100%; height: auto; }
@keyframes hm-ab-float { from { translate: 0 0; } to { translate: 0 -14px; } }
@media (max-width: 600px) { .hm-ab-screen { width: 60%; inset-inline-end: 0; } .hm-ab-kpis { inset-inline-start: 0; width: 80%; } }

/* 3D twin: the same moment in the real system, one card in the top corner of the scene */
.tw3 { position: relative; }
.tw3-sys { position: absolute; z-index: 3; top: 16px; inset-inline-start: 16px; display: grid; width: min(46%, 330px); pointer-events: none; }
.tw3-sys-card { grid-area: 1 / 1; display: grid; gap: 8px; align-self: start; padding: 10px; background: rgba(255, 255, 255, .96); box-shadow: 0 20px 44px rgba(18, 60, 72, .18); opacity: 0; transform: translateY(-10px); transition: opacity .5s ease, transform .6s var(--hm-ease); }
.tw3-sys-card.is-active { opacity: 1; transform: none; }
.tw3-sys-card small { display: flex; align-items: center; gap: 8px; color: var(--c-ink); font-size: 13px; font-weight: 700; }
.tw3-sys-card small i { width: 9px; height: 9px; border-radius: 50%; }
.tw3-sys-card .is-red { background: #e5484d; box-shadow: 0 0 0 4px rgba(229, 72, 77, .2); }
.tw3-sys-card .is-amber { background: #f59a23; box-shadow: 0 0 0 4px rgba(245, 154, 35, .2); }
.tw3-sys-card .is-green { background: #23b26d; box-shadow: 0 0 0 4px rgba(35, 178, 109, .2); }
.tw3-sys-card img { display: block; width: 100%; height: auto; border: 1px solid #edf3f4; }
.tw3-sys-task { position: relative; display: grid; gap: 6px; padding: 10px 12px; padding-inline-start: 16px; border-radius: 12px; background: #f2f6f7; }
.tw3-sys-task::before { content: ""; position: absolute; top: 10px; bottom: 10px; inset-inline-start: 6px; width: 3px; border-radius: 3px; background: #a11d1d; }
.tw3-sys-task b { color: var(--c-ink); font-size: 13px; }
.tw3-sys-task span { display: flex; gap: 6px; }
.tw3-sys-task em { padding: 1px 8px; border-radius: 99px; font-style: normal; font-size: 11px; }
.hm .hm-tw3 { overflow: hidden; padding-bottom: clamp(90px, 9vw, 130px); }
@media (max-width: 600px) { .tw3-sys { width: 66%; } .hm-show-phone.hm-tech-phone { position: relative; bottom: auto; inset-inline-end: auto; width: 170px; margin: -40px auto 0; } .tw3-story { font-size: 13px; } }

/* the Space IMS app screens */
.hm-app--space { background: #f3f5f5; color: #1d3a38; }
.hm-app--space .hm-app-s { padding: 14px 10px 8px; }
.hm-app p { margin: 0; }
.sp-top { display: flex; align-items: center; gap: 6px; margin-bottom: 8px !important; color: #1f5f5b; font-weight: 700; font-size: 11px; }
.sp-top i { width: 16px; height: 16px; border-radius: 4px; background: #1f5f5b; }
.sp-hello { font-weight: 700; font-size: 12px; }
.sp-muted { margin-top: 2px !important; color: #7a8a8a; font-size: 8.5px; }
.sp-site { margin: 2px 0 8px !important; color: #2f9a4c; font-size: 8.5px; font-weight: 700; }
.sp-total { display: grid; padding: 9px 10px; border-radius: 10px; background: #fff; }
.sp-total small { color: #7a8a8a; font-size: 7.5px; letter-spacing: .06em; }
.sp-total b { font-size: 24px; line-height: 1.2; }
.sp-total span { color: #2f9a4c; font-size: 8px; }
.sp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.sp-stats div { display: grid; gap: 1px; padding: 7px 8px; border-radius: 10px; background: #fff; }
.sp-stats i { width: 14px; height: 14px; border-radius: 4px; background: #e4f3e7; }
.sp-stats i.o { background: #fdeedb; }
.sp-stats b { font-size: 14px; }
.sp-stats small { color: #7a8a8a; font-size: 7.5px; }
.sp-title { margin: 2px 2px 8px !important; font-weight: 700; font-size: 12px; }
.sp-ico { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 7px; background: #eef3f3; color: #1f5f5b; }
.sp-ico svg { width: 14px; height: 14px; }
.sp-req { position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 7px; margin-bottom: 6px; padding: 8px; border-radius: 10px; background: #fff; }
.sp-req > div { display: grid; flex: 1; gap: 1px; }
.sp-req b { font-size: 9.5px; }
.sp-req small { color: #7a8a8a; font-size: 7.5px; }
.sp-req em { position: absolute; top: 8px; inset-inline-end: 8px; }
.sp-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; width: 100%; margin-top: 2px !important; }
.sp-btns span { padding: 5px; border: 1px solid #dfe6e6; border-radius: 7px; font-size: 8px; font-weight: 700; text-align: center; }
.sp-btns span:first-child { border-color: #1f5f5b; background: #1f5f5b; color: #fff; }
.hm-app-s.is-active .sp-req--pick .sp-btns span:first-child { animation: sp-tap 3.8s ease 1.4s; }
@keyframes sp-tap { 0% { transform: none; } 6% { transform: scale(.9); box-shadow: 0 0 0 6px rgba(31, 95, 91, .2); } 14% { transform: none; box-shadow: none; } }
.sp-month { display: grid; margin: 0 2px 6px !important; }
.sp-month b { font-size: 12px; }
.sp-month small { color: #7a8a8a; font-size: 7.5px; }
.sp-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 6px; border-radius: 10px; background: #fff; text-align: center; font-size: 8px; }
.sp-cal small { color: #7a8a8a; font-size: 7px; }
.sp-cal span { position: relative; padding: 3px 0 4px; border-radius: 5px; }
.sp-cal span.has::after { content: ""; position: absolute; bottom: 1px; left: 50%; width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%; background: #1f5f5b; }
.sp-cal span.is-on { background: #1f5f5b; color: #fff; font-weight: 700; }
.sp-h { margin: 8px 2px 5px !important; font-weight: 700; font-size: 10px; }
.sp-slot { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; padding: 7px 8px; border-inline-start: 3px solid #1f5f5b; border-radius: 8px; background: #fff; font-size: 8.5px; }
.sp-slot b { color: #1f5f5b; }
.sp-bld { margin-bottom: 7px; padding: 8px; border-radius: 10px; background: #fff; }
.sp-bld-head { display: flex; align-items: center; gap: 7px; }
.sp-bld-head b { display: grid; font-size: 9.5px; }
.sp-bld-head small { color: #7a8a8a; font-weight: 400; font-size: 7.5px; }
.sp-bld-meta { margin: 6px -8px 4px !important; padding: 4px 8px; background: #f3f5f5; color: #7a8a8a; font-size: 7.5px; }
.sp-floor { display: flex; justify-content: space-between; margin-top: 3px !important; padding: 4px 7px; border: 1px solid #e6ecec; border-radius: 7px; font-size: 8px; }
.sp-floor small { color: #7a8a8a; font-size: 7px; }
.hm-app-nav--4 { grid-template-columns: repeat(4, 1fr); }
.hm-app--space .hm-app-nav span.is-on { color: #1f5f5b; }
.hm-app--space .hm-app-nav span.is-on i { background: #1f5f5b; border-color: #1f5f5b; }

/* AI: the real CAFM-IMS Assistant panel in front of the 3D core */
.ai-chat { position: absolute; z-index: 3; top: 50%; inset-inline-end: 0; display: flex; flex-direction: column; width: min(62%, 380px); height: min(96%, 510px); overflow: hidden; border-radius: 14px; background: #fff; color: #163a44; box-shadow: 0 40px 80px rgba(0, 20, 30, .45), 0 0 0 1px rgba(127, 227, 239, .3); translate: 0 -50%; }
.ai-chat p { margin: 0; }
.ai-chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #edf1f3; }
.ai-chat-head p { display: grid; flex: 1; }
.ai-chat-head b { font-size: 14px; }
.ai-chat-head small { color: #64787e; font-size: 12.5px; }
.ai-chat-logo { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #0d7bd0; color: #fff; }
.ai-chat-logo svg { width: 18px; height: 18px; }
.ai-chat-live { width: 9px; height: 9px; border-radius: 50%; background: #23b26d; box-shadow: 0 0 0 4px rgba(35, 178, 109, .2); animation: ai-live 1.6s ease-in-out infinite; }
@keyframes ai-live { 50% { box-shadow: 0 0 0 7px rgba(35, 178, 109, 0); } }
.ai-chat-body { position: relative; flex: 1; overflow: hidden; }
.ai-chat-hello { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 16px; transition: opacity .4s ease, transform .5s var(--hm-ease); }
.ai-chat.has-talk .ai-chat-hello { opacity: 0; transform: translateY(-20px); pointer-events: none; }
.ai-chat-hello > b { font-size: 15px; }
.ai-chat-hello > p { color: #64787e; font-size: 12.5px; line-height: 1.55; }
.ai-chat-hello > small { margin-top: 6px; color: #64787e; font-size: 10.5px; }
.ai-chat-sug { display: grid; gap: 6px; margin: 0 !important; padding: 0; list-style: none; }
.ai-chat-sug li { padding: 8px 10px; border: 1px solid #e3e9ec; border-radius: 8px; font-size: 12px; transition: border-color .3s, background-color .3s, transform .3s; }
.ai-chat-sug li.is-pick { border-color: #0d7bd0; background: #eef6fd; transform: translateX(4px); }
[dir="rtl"] .ai-chat-sug li.is-pick { transform: translateX(-4px); }
.ai-chat-thread { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 14px; }
.ai-chat-thread p { padding: 9px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.6; animation: hm-rise .45s var(--hm-ease) both; }
.ai-chat-thread .is-me { align-self: flex-end; max-width: 85%; background: #0d7bd0; color: #fff; border-end-end-radius: 3px; }
.ai-chat-thread .is-bot { align-self: flex-start; max-width: 96%; background: #f1f5f7; border-end-start-radius: 3px; }
.ai-chat-thread .is-bot b { color: #0d7bd0; }
.ai-chat-thread .is-bot img { display: block; width: 100%; height: auto; margin-top: 8px; border: 1px solid #e3e9ec; border-radius: 6px; background: #fff; }
.ai-chat-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; font-size: 10.5px; }
.ai-chat-thread .ai-chat-chips em { display: inline-flex; align-items: baseline; gap: 3px; padding: 2px 6px; border-radius: 6px; background: #fff; color: #64787e; font-style: normal; font-size: 11px; animation: hm-rise .4s var(--hm-ease) both; }
.ai-chat-thread .ai-chat-chips b { font-size: 12.5px; }
.ai-chat-chips .is-all b { color: #e0336d; } .ai-chat-chips .is-open b { color: #2a8be6; } .ai-chat-chips .is-inprocess b { color: #1fc3c9; } .ai-chat-chips .is-pending b { color: #f59a23; } .ai-chat-chips .is-tc b { color: #23b26d; }
.ai-chat-chips em:nth-child(2) { animation-delay: .08s; } .ai-chat-chips em:nth-child(3) { animation-delay: .16s; } .ai-chat-chips em:nth-child(4) { animation-delay: .24s; } .ai-chat-chips em:nth-child(5) { animation-delay: .32s; }
.ai-chat-dots i { display: inline-block; width: 6px; height: 6px; margin-inline-end: 4px; border-radius: 50%; background: #0d7bd0; animation: ai-bounce .5s ease-in-out infinite alternate; }
.ai-chat-dots i:nth-child(2) { animation-delay: .15s; }
.ai-chat-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ai-bounce { to { transform: translateY(-4px); opacity: .4; } }
.ai-chat-input { position: relative; display: flex; align-items: center; gap: 8px; margin: 10px 12px 12px; padding: 9px 10px 9px 12px; border: 1.5px solid #0d7bd0; border-radius: 10px; font-size: 12.5px; }
.ai-chat-input span { flex: 1; min-height: 1.4em; }
.ai-chat-input span:not(:empty) + em { display: none; }
.ai-chat-input span:not(:empty)::after { content: ""; display: inline-block; width: 1px; height: 1em; margin-inline-start: 1px; vertical-align: -2px; background: #163a44; animation: ai-caret .8s steps(1) infinite; }
@keyframes ai-caret { 50% { opacity: 0; } }
.ai-chat-input em { position: absolute; inset-inline-start: 12px; color: #97a8ad; font-style: normal; }
.ai-chat-input i { display: grid; place-items: center; width: 28px; height: 28px; margin-inline-start: auto; border-radius: 7px; background: #eef2f4; color: #64787e; transition: background-color .2s, color .2s; }
.ai-chat-input i svg { width: 14px; height: 14px; }
.ai-chat.is-sending .ai-chat-input i { background: #0d7bd0; color: #fff; }
@media (max-width: 600px) { .ai-chat { position: relative; top: auto; width: auto; height: 430px; margin-top: -120px; translate: none; } }
@media (prefers-reduced-motion: reduce) { .hm-ab-screen, .hm-ab-kpis, .hm-tabpanel::after { animation: none !important; } }

/* the technician's phone next to the twin: a push for the new task, the new task glows, the closed line */
.hm-tech-push { position: relative; z-index: 2; display: flex; align-items: center; gap: 7px; margin: -6px -4px 8px !important; padding: 7px 8px; border-radius: 12px; background: #163a44; color: #fff; font-size: 8.5px; box-shadow: 0 10px 20px rgba(18, 60, 72, .3); }
.hm-tech-push i { flex: none; width: 18px; height: 18px; border-radius: 5px; background: #1d8a99 no-repeat center / 11px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4'%3E%3Cpath d='M6 8a6 6 0 1 1 12 0c0 7 3 9 3 9H3s3-2 3-9M10 21h4'/%3E%3C/svg%3E"); }
.hm-tech-push span { display: grid; } .hm-tech-push b { font-size: 9px; }
.hm-app-s.is-active .hm-tech-push { animation: hm-tech-push .7s var(--hm-ease) .3s both; }
@keyframes hm-tech-push { from { opacity: 0; transform: translateY(-24px); } }
.hm-app-task.is-new { box-shadow: 0 0 0 2px rgba(229, 72, 77, .55); }
.hm-app-s.is-active .hm-app-task.is-new { animation: hm-tech-new 1.2s ease-in-out .9s 2; }
@keyframes hm-tech-new { 50% { box-shadow: 0 0 0 5px rgba(229, 72, 77, .25); } }
.hm-tech-done { display: flex; align-items: center; gap: 6px; margin-top: 8px !important; padding: 8px; border-radius: 10px; background: #e2f6ec; color: #23935c; font-size: 9px; font-weight: 700; }
.hm-tech-done i { flex: none; width: 14px; height: 14px; border-radius: 50%; background: #23b26d no-repeat center / 9px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }
.hm-show-phone.hm-tech-phone { bottom: -34px; inset-inline-end: -14px; width: 172px; }

/* the real system: the web app in the browser, and one mobile app in front of its corner, with the app name on it:
   the CAFM IMS app on the maintenance tabs; it turns into the Space IMS app on the space management tab */
.hm-show-phone.hm-space-side { z-index: 2; opacity: 0; transform: translateY(24px) rotateY(70deg); pointer-events: none; transition: opacity .45s ease, transform .7s var(--hm-ease); }
.hm-show-main { transition: opacity .45s ease, transform .7s var(--hm-ease); }
.hm-show-stage.is-spaces .hm-space-side { opacity: 1; transform: none; }
.hm-show-stage.is-spaces .hm-show-main { opacity: 0; transform: translateY(24px) rotateY(-70deg); }
.hm-show-phone[data-app]::before { content: attr(data-app); position: absolute; z-index: 3; bottom: 100%; left: 50%; margin-bottom: 10px; padding: 4px 12px; background: var(--c-ink); color: #fff; font-size: 12.5px; font-weight: 700; white-space: nowrap; direction: ltr; translate: -50% 0; }
.hm-show-phone[data-app]::after { content: ""; position: absolute; bottom: 100%; left: 50%; margin-bottom: 4px; border: 6px solid transparent; border-top-color: var(--c-ink); border-bottom: 0; translate: -50% 0; }
@media (max-width: 600px) { .hm-show-stage { padding-inline: 0; } }

/* intro: the main title and its text side by side and smaller, so the module tabs are seen without scrolling */
.hm .hm-intro { padding-block: clamp(44px, 5vw, 72px); }
.hm-intro .hm-head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: end; gap: 16px clamp(28px, 4vw, 64px); max-width: none; }
.hm-intro .hm-h2 { font-size: clamp(26px, 2.7vw, 40px); }
.hm-intro .hm-head > .hm-lead { margin-top: 0; max-width: none; font-size: clamp(16px, 1.25vw, 18px); }
.hm-intro .hm-tabs { margin-top: clamp(26px, 3vw, 40px); }
.hm-intro .hm-tabpanel { padding: clamp(26px, 3.6vw, 56px); }
@media (max-width: 991px) { .hm-intro .hm-head { grid-template-columns: 1fr; } }

/* 17. Modules with a live preview (Pages/home/modules.blade.php) ---------------------------------------- */
.hm-modx { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: start; gap: clamp(24px, 3vw, 48px); margin-top: clamp(32px, 4vw, 52px); }
.hm .hm-modx .hm-mod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 0; }
.hm .hm-modx .hm-mod { position: relative; overflow: hidden; padding: 12px 14px; transition: background-color .3s, border-color .3s, box-shadow .3s, color .3s; }
.hm .hm-modx .hm-mod h3 { font-size: 15px; }
.hm .hm-modx .hm-mod.is-active { border-color: var(--c-brand); background: var(--c-brand); color: #fff; box-shadow: 0 16px 34px rgba(18, 60, 72, .2); }
.hm .hm-modx .hm-mod.is-active h3, .hm .hm-modx .hm-mod.is-active .hm-arrow { color: #fff; }
.hm .hm-modx .hm-mod.is-active .hm-mod-icon { background: rgba(255, 255, 255, .16); color: #fff; }
.hm-mod-timer { position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: var(--hm-orange); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .hm-mod-timer { transform-origin: right; }
.hm-modx.is-auto .hm-mod.is-active .hm-mod-timer { animation: hm-progress 4.5s linear forwards; }
.hm-modx.is-hold .hm-mod.is-active .hm-mod-timer { animation-play-state: paused; }
/* the preview: a browser frame that stays in view while the list scrolls */
.hm-modx-view { position: sticky; top: 110px; background: #fff; box-shadow: 0 40px 80px rgba(18, 60, 72, .2), 0 0 0 1px rgba(25, 104, 127, .1); }
.hm-modx-view .hm-tabscreen-bar { display: flex; align-items: center; gap: 6px; margin: 0; padding: 8px 12px; background: #f4f8f9; }
.hm-modx-screens { position: relative; display: grid; }
.hm-modx-pane { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s; }
.hm-modx-pane.is-active { opacity: 1; visibility: visible; }
.hm-modx-pane img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 0; background: #f4f8f9; }
.hm-modx-pane.is-tall img { object-fit: contain; background: linear-gradient(135deg, #e8f2f4, #f8fbfc); }
.hm-modx-pane.is-active img { animation: hm-modx-in 1s var(--hm-ease) both; }
@keyframes hm-modx-in { from { opacity: .3; transform: scale(1.04); } }
.hm-modx-cap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px 18px; border-top: 1px solid var(--hm-line); }
.hm-modx-cap .hm-mod-icon { flex: none; }
.hm-modx-cap b { color: var(--c-ink); font-size: 17px; }
.hm-modx-cap p { margin-top: 2px; color: var(--hm-muted); font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-modx-cap a { display: inline-flex; align-items: center; gap: 8px; color: var(--c-brand); font-size: 14px; font-weight: 700; white-space: nowrap; }
.hm-modx-pane.is-active .hm-modx-cap > * { animation: hm-rise .5s var(--hm-ease) both; }
.hm-modx-pane.is-active .hm-modx-cap > :nth-child(2) { animation-delay: .08s; } .hm-modx-pane.is-active .hm-modx-cap > :nth-child(3) { animation-delay: .16s; }
@media (max-width: 991px) {
    .hm-modx { grid-template-columns: 1fr; }
    .hm-modx-view { position: relative; top: auto; order: -1; }
}
@media (max-width: 600px) { .hm .hm-modx .hm-mod-grid { grid-template-columns: 1fr; } .hm-modx-cap { grid-template-columns: 1fr; } .hm-modx-cap .hm-mod-icon { display: none; } }

/* 18. About as a grid of tiles (Pages/home/about.blade.php) --------------------------------------------- */
.hm-ab2 { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(32px, 5vw, 80px); }
.hm-ab2-text { margin-top: 20px; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.hm-ab2-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 28px 0 32px !important; padding: 0; list-style: none; }
.hm-ab2-facts li { padding: 14px 16px; border-inline-start: 3px solid var(--hm-orange); background: var(--c-soft); }
.hm-ab2-facts b { display: block; color: var(--c-ink); font-size: clamp(28px, 2.6vw, 38px); line-height: 1.1; font-variant-numeric: tabular-nums; direction: ltr; text-align: start; }
[dir="rtl"] .hm-ab2-facts b { text-align: end; }
.hm-ab2-facts span { display: block; margin-top: 4px; color: var(--hm-muted); font-size: 13.5px; font-weight: 700; line-height: 1.5; }
.hm-ab2-bento { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 12px; }
.hm-ab2-photo { grid-row: span 2; position: relative; margin: 0; overflow: hidden; min-height: 100%; }
.hm-ab2-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--hm-ease); }
.hm-ab2-photo:hover img { transform: scale(1.05); }
.hm-ab2-photo::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 38%; height: 6px; background: var(--hm-orange); }
.hm-ab2-screen { overflow: hidden; background: #fff; box-shadow: 0 24px 50px rgba(18, 60, 72, .16), 0 0 0 1px rgba(25, 104, 127, .1); }
.hm-ab2-screen .hm-tabscreen-bar { display: flex; align-items: center; gap: 5px; margin: 0; padding: 6px 10px; background: #f4f8f9; }
.hm-ab2-screen .hm-tabscreen-bar i { width: 7px; height: 7px; }
.hm-ab2-screen .hm-tabscreen-bar span { font-size: 10px; }
.hm-ab2-screen img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 0; animation: hm-show-pan 10s ease-in-out infinite alternate; }
.hm-ab2-tile { padding: 18px 20px; }
.hm-ab2-tile--apps { grid-column: 2; display: grid; gap: 8px; background: var(--c-brand); color: #fff; }
.hm-ab2-tile--apps b { font-size: 17px; line-height: 1.4; }
.hm-ab2-tile--apps p { display: flex; flex-wrap: wrap; gap: 6px; }
.hm-ab2-tile--apps em { padding: 3px 9px; background: rgba(255, 255, 255, .14); font-style: normal; font-size: 12.5px; font-weight: 700; direction: ltr; }
.hm-ab2-ico { display: grid; place-items: center; width: 40px; height: 40px; background: var(--hm-orange); color: var(--c-ink); }
.hm-ab2-ico svg { width: 22px; height: 22px; }
.hm-ab2-tile--support { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; background: var(--hm-orange); color: var(--c-ink); }
.hm-ab2-tile--support b { font-size: clamp(30px, 3vw, 42px); line-height: 1; direction: ltr; }
.hm-ab2-tile--support span { font-size: 15px; font-weight: 700; line-height: 1.5; }
.hm-ab2-bento:not(:has(.hm-ab2-photo)) { grid-template-columns: 1fr; }
@media (max-width: 991px) { .hm-ab2 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .hm-ab2-facts { grid-template-columns: 1fr; } .hm-ab2-bento { grid-template-columns: 1fr; } .hm-ab2-photo { grid-row: auto; min-height: 240px; } .hm-ab2-tile--apps { grid-column: auto; } }
@media (prefers-reduced-motion: reduce) { .hm-ab2-screen img { animation: none; } }

/* about: the photo at the back, the devices in front */
.hm-ab2-visual { position: relative; padding-top: 4%; }
.hm-ab2-block { position: absolute; top: 0; inset-inline-start: 0; width: 34%; height: 40%; background: var(--hm-orange); }
.hm-ab2-visual .hm-ab2-photo { position: relative; grid-row: auto; width: 66%; min-height: 0; margin: 0 0 0 auto; margin-inline: 4% auto; aspect-ratio: 4 / 3; box-shadow: 0 30px 60px rgba(18, 60, 72, .2); }
.hm-ab2-devices { width: 86%; margin: -26% 0 0 auto; margin-inline: auto 0; }
.hm-ab2-badge { position: absolute; z-index: 4; top: 2%; inset-inline-end: 0; display: flex; align-items: center; gap: 12px; max-width: 260px; margin: 0; padding: 12px 16px; background: var(--hm-orange); color: var(--c-ink); box-shadow: 0 20px 40px rgba(18, 60, 72, .2); animation: hm-ab-float 6s ease-in-out infinite alternate; }
.hm-ab2-badge b { font-size: 28px; line-height: 1; direction: ltr; }
.hm-ab2-badge span { font-size: 13px; font-weight: 700; line-height: 1.4; }
@media (max-width: 600px) { .hm-ab2-visual .hm-ab2-photo { width: 80%; } .hm-ab2-devices { width: 100%; margin-top: -14%; } .hm-ab2-badge { position: relative; margin-top: 12px; } }

/* 19. Client quotes as a stack of cards (Pages/home/testimonials.blade.php) ------------------------------ */
.hm-qs { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(32px, 5vw, 80px); }
.hm-qs-side .hm-lead { margin-top: 16px; max-width: 40ch; }
.hm-qs-side .hm-arrows { margin-top: 28px; }
.hm-qs-stack { position: relative; display: grid; padding: 26px 26px 0 0; }
[dir="rtl"] .hm-qs-stack { padding: 26px 0 0 26px; }
.hm-qs-card { grid-area: 1 / 1; position: relative; overflow: hidden; margin: 0; padding: clamp(28px, 3.4vw, 48px); background: #fff; box-shadow: 0 30px 60px rgba(18, 60, 72, .14), 0 0 0 1px rgba(25, 104, 127, .1);
    transform: translate(26px, -26px) scale(.94); opacity: .6; filter: saturate(.4); transition: transform .8s var(--hm-ease), opacity .6s ease, filter .6s ease; }
[dir="rtl"] .hm-qs-card { transform: translate(-26px, -26px) scale(.94); }
.hm-qs-card.is-active { z-index: 2; transform: none; opacity: 1; filter: none; }
[dir="rtl"] .hm-qs-card.is-active { transform: none; }
.hm-qs-card:not(.is-active) > * { visibility: hidden; }
.hm-qs-mark { display: block; width: 46px; height: 34px; fill: var(--hm-orange); }
.hm-qs-card blockquote { margin: 18px 0 0; padding: 0; border: 0; color: var(--c-ink); font-size: clamp(20px, 1.9vw, 27px); font-weight: 700; line-height: 1.6; }
.hm-qs-card.is-active blockquote { animation: hm-rise .7s var(--hm-ease) .15s both; }
.hm-qs-card figcaption { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--hm-line); color: var(--c-text); font-size: 15.5px; font-weight: 700; }
.hm-qs-avatar { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--c-brand); color: #fff; font-size: 18px; }
.hm-qs-card > i { position: absolute; inset-inline: 0; bottom: 0; height: 4px; background: var(--hm-orange); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .hm-qs-card > i { transform-origin: right; }
.hm-qs.is-auto .hm-qs-card.is-active > i { animation: hm-progress 8s linear forwards; }
.hm-qs.is-auto:hover .hm-qs-card.is-active > i { animation-play-state: paused; }
@media (max-width: 991px) { .hm-qs { grid-template-columns: 1fr; } }

/* 20. Questions as a chat with the support team (Pages/home/faq.blade.php) -------------------------------- */
.hm-fq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(28px, 4vw, 64px); }
.hm-fq-side .hm-lead { margin-top: 14px; }
.hm-fq-list { display: grid; gap: 6px; margin-top: 26px; }
.hm .hm-fq .hm-faq-item { display: flex; align-items: baseline; gap: 14px; width: 100%; padding: 13px 16px; border: 1px solid var(--hm-line); background: #fff; color: var(--c-ink); font-size: 15.5px; font-weight: 700; line-height: 1.5; text-align: start; transition: background-color .25s, border-color .25s, color .25s, transform .25s; }
.hm .hm-fq .hm-faq-item b { color: var(--c-brand); font-size: 12.5px; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.hm .hm-fq .hm-faq-item:hover { border-color: var(--c-brand); transform: translateX(4px); }
[dir="rtl"] .hm .hm-fq .hm-faq-item:hover { transform: translateX(-4px); }
.hm .hm-fq .hm-faq-item[aria-selected="true"] { border-color: var(--c-brand); background: var(--c-brand); color: #fff; }
.hm .hm-fq .hm-faq-item[aria-selected="true"] b { color: var(--hm-orange); }
.hm-fq .hm-faq-more { margin-top: 16px; }
.hm-fq-chat { position: sticky; top: 110px; display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 40px 80px rgba(18, 60, 72, .16), 0 0 0 1px rgba(25, 104, 127, .1); }
.hm-fq-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--c-brand); color: #fff; }
.hm-fq-head img { width: 44px; height: auto; filter: brightness(0) invert(1); }
.hm-fq-head p { display: grid; flex: 1; margin: 0; }
.hm-fq-head b { font-size: 15px; } .hm-fq-head small { opacity: .8; font-size: 12.5px; }
.hm-fq-head i { width: 9px; height: 9px; border-radius: 50%; background: #5fe3a1; box-shadow: 0 0 0 4px rgba(95, 227, 161, .25); animation: ai-live 1.6s ease-in-out infinite; }
.hm-fq-body { position: relative; display: grid; min-height: 340px; padding: 20px; background: linear-gradient(180deg, #f6fafb, #fff); }
.hm-fq-talk { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; visibility: hidden; opacity: 0; }
.hm-fq-talk.is-active { visibility: visible; opacity: 1; }
.hm-fq-me { align-self: flex-end; max-width: 82%; margin: 0; padding: 10px 14px; border-radius: 14px 14px 3px 14px; background: var(--c-brand); color: #fff; font-size: 15px; font-weight: 700; line-height: 1.55; }
[dir="rtl"] .hm-fq-me { border-radius: 14px 14px 14px 3px; }
.hm-fq-bot { align-self: flex-start; max-width: 92%; padding: 12px 16px; border-radius: 14px 14px 14px 3px; background: #eef4f6; color: var(--c-text); font-size: 15px; line-height: 1.75; }
[dir="rtl"] .hm-fq-bot { border-radius: 14px 14px 3px 14px; }
.hm-fq-bot .hm-faq-answer p:last-child { margin-bottom: 0; }
.hm-fq-dots { display: none; gap: 4px; padding: 4px 0; }
.hm-fq-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-brand); animation: ai-bounce .5s ease-in-out infinite alternate; }
.hm-fq-dots i:nth-child(2) { animation-delay: .15s; } .hm-fq-dots i:nth-child(3) { animation-delay: .3s; }
.hm-fq-talk.is-typing .hm-fq-dots { display: flex; }
.hm-fq-talk.is-typing .hm-faq-answer { display: none; }
.hm-fq-talk.is-active .hm-fq-me { animation: hm-rise .4s var(--hm-ease) both; }
.hm-fq-talk.is-active .hm-fq-bot { animation: hm-rise .45s var(--hm-ease) .25s both; }
.hm-fq-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 14px 14px; padding: 12px 14px; border: 1.5px solid var(--c-brand); border-radius: 10px; color: var(--hm-muted); font-size: 14px; text-decoration: none; transition: background-color .25s; }
.hm-fq-foot b { display: inline-flex; align-items: center; gap: 8px; color: var(--c-brand); white-space: nowrap; }
.hm-fq-foot:hover { background: var(--c-brand-tint); }
@media (max-width: 991px) { .hm-fq { grid-template-columns: 1fr; } .hm-fq-chat { position: relative; top: auto; } }

/* 21. Articles: three compact cards (Pages/home/blog.blade.php) ----------------------------------------- */
.hm-bl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(28px, 3.4vw, 44px); }
.hm .hm-bl .hm-post { position: relative; display: flex; flex-direction: column; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--hm-line); transition: box-shadow .3s, transform .3s; }
.hm .hm-bl .hm-post:hover { box-shadow: 0 26px 50px rgba(18, 60, 72, .14), 0 0 0 1px var(--c-brand); }
.hm .hm-bl .hm-post-img { aspect-ratio: 16 / 9; overflow: hidden; }
.hm .hm-bl .hm-post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--hm-ease); }
.hm .hm-bl .hm-post:hover .hm-post-img img { transform: scale(1.06); }
.hm .hm-bl .hm-post-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.hm .hm-bl .hm-post time { color: var(--hm-muted); font-size: 13px; font-weight: 700; }
.hm .hm-bl .hm-post h3 { margin: 0; font-size: 18px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm .hm-bl .hm-post h3 a { color: var(--c-ink); }
.hm .hm-bl .hm-post h3 a::after { content: ""; position: absolute; inset: 0; }
.hm-bl-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; color: var(--c-brand); font-size: 14px; font-weight: 700; }
@media (max-width: 991px) { .hm-bl { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .hm-bl { grid-template-columns: 1fr; } }

/* the hero has its own lights: the clouds and mouse glow of the motion layer are left out there */
.hm-hero > .mo-clouds, .hm-hero > .mo-glow { display: none; }

/* 22. Section titles: smaller and bolder, a big light outlined word behind (data-mark, in the page language), an
   orange bar that draws itself, and less space above. */
.hm .hm-section { padding-block: clamp(60px, 6.5vw, 96px); }
.hm .hm-h2 { position: relative; z-index: 0; font-size: clamp(28px, 3vw, 44px); font-weight: 800; line-height: 1.18; }
[dir="rtl"] .hm .hm-h2 { line-height: 1.42; }
.hm .hm-h2[data-mark]::before { content: attr(data-mark); position: absolute; z-index: -1; top: -.62em; inset-inline-start: -.05em; color: transparent; font-family: inherit; font-size: 2.3em; font-weight: 800; line-height: 1; letter-spacing: .02em; white-space: nowrap; -webkit-text-stroke: 1.5px rgba(25, 104, 127, .13); pointer-events: none; }
[dir="rtl"] .hm .hm-h2[data-mark]::before { letter-spacing: 0; top: -.55em; }
.hm .hm-ai .hm-h2[data-mark]::before { -webkit-text-stroke-color: rgba(255, 255, 255, .14); }
.hm .hm-h2[data-mark]::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 16px; background: var(--hm-orange); transform-origin: left; }
[dir="rtl"] .hm .hm-h2[data-mark]::after { transform-origin: right; }
.mo .hm .hm-h2.mo-split[data-mark]::after { transform: scaleX(0); transition: transform .9s var(--hm-ease) .4s; }
.mo .hm .hm-h2.mo-split.mo-in[data-mark]::after { transform: scaleX(1); }
.hm-head--row { align-items: flex-end; }
.hm-head--row > .hm-link { margin-bottom: 22px; }
@media (max-width: 600px) { .hm .hm-h2[data-mark]::before { font-size: 1.7em; top: -.5em; } }
.hm .hm-bl .hm-post-img { position: relative; height: auto; }
.hm .hm-bl .hm-post-img img { position: absolute; inset: 0; }

/* no large outlined words behind titles (removed on request); titles keep the orange bar under them */
[data-mark]::before { content: none !important; }

/* hero slide controls: only small timer lines in the middle, no bar, no titles, no big arrows */
.hm-h3-tabs { bottom: 82px; background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; pointer-events: none; }
.hm-h3-tabs-in { justify-content: center; gap: 10px; }
.hm-h3-tab { flex: 0 0 auto; width: 54px; padding: 14px 0; pointer-events: auto; }
.hm-h3-tab b, .hm-h3-tab span, .hm-h3-tabs .hm-arrows { display: none; }
.hm-h3-tab i { top: 50%; height: 4px; margin-top: -2px; background: rgba(25, 104, 127, .22); }
.hm-h3-tab.is-active { width: 86px; }
.hm-h3-tab { transition: width .4s cubic-bezier(.2, .7, .2, 1); }
.hm-hero:has(.hm-h3-tabs) .hm-hero-grid { padding-bottom: clamp(120px, 10vw, 150px); }

/* ---------- page rhythm: less empty space, and light and dark sections take turns ----------
   Before, eight sections in a row were white or almost white, each with about 94px of space above and below.
   Order now: intro (white), the system (DARK), modules (white), twin (light blue), AI (DARK), clients (light),
   partners (white), quotes (DARK), about (white), questions (light), articles (white), closing band (DARK). */
.hm .hm-section { padding-block: clamp(56px, 6vw, 88px); }
.hm .hm-tw3 { padding-bottom: clamp(64px, 6.5vw, 96px); }
.hm .hm-head, .hm .hm-head--row { margin-bottom: clamp(26px, 3vw, 42px); }

/* dark sections: same deep blue as the AI section, with the thin grid */
.hm .hm-show, .hm .hm-testimonials { position: relative; overflow: hidden; isolation: isolate; color: rgba(255, 255, 255, .82);
    background: radial-gradient(ellipse at 20% 30%, #1d7d96 0%, #124f61 45%, #0b323e 100%); }
.hm .hm-testimonials { background: radial-gradient(ellipse at 80% 50%, #1d7d96 0%, #124f61 50%, #0b323e 100%); }
.hm .hm-show::before, .hm .hm-testimonials::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 15%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 40%, #000 15%, transparent 75%); }
/* a soft orange light in a corner so the dark is not flat */
.hm .hm-show::after, .hm .hm-testimonials::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(255, 168, 0, .16), transparent 65%); inset-inline-end: -160px; bottom: -220px; }
.hm .hm-show .hm-h2, .hm .hm-testimonials .hm-h2 { color: #fff; }
.hm .hm-show .hm-lead, .hm .hm-testimonials .hm-lead { color: rgba(255, 255, 255, .78); }

/* the system section on dark: tabs light up, the browser frame floats */
.hm .hm-show .hm-show-tab { color: rgba(255, 255, 255, .8); }
.hm .hm-show .hm-show-tab b { color: #fff; }
.hm .hm-show .hm-show-tab:hover { background: rgba(255, 255, 255, .06); }
.hm .hm-show .hm-show-tab.is-active { border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .08); box-shadow: none; }
.hm .hm-show .hm-show-tab small { color: rgba(255, 255, 255, .72); }
.hm .hm-show .hm-show-tab-ico { background: rgba(255, 255, 255, .08); color: #7fe3ef; }
.hm .hm-show .hm-show-tab.is-active .hm-show-tab-ico { background: var(--hm-orange); color: var(--c-ink); }
.hm .hm-show .hm-show-browser { box-shadow: 0 40px 90px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 255, 255, .08); }

/* quotes on dark: the white card stands out; arrows turn light */
.hm .hm-testimonials .hm-qs-card { box-shadow: 0 30px 70px rgba(0, 0, 0, .35); }
.hm .hm-testimonials .hm-sqbtn { border-color: rgba(255, 255, 255, .35); background: transparent; color: #fff; }
.hm .hm-testimonials .hm-sqbtn:hover { border-color: var(--hm-orange); background: var(--hm-orange); color: var(--c-ink); }

/* questions chat: the talk starts at the top (before, a tall empty area sat above the first message) */
.hm .hm-fq-body { min-height: 250px; }
.hm .hm-fq-talk { justify-content: flex-start; }

/* about on the homepage: the company photo large, our offices on a dark card over its corner (no devices here) */
.hm .hm-ab2-visual { padding: 4% 0 10%; }
.hm .hm-ab2-visual .hm-ab2-photo { width: 84%; aspect-ratio: 5 / 4; margin-inline: 8% auto; }
.hm-ab2-offices { position: absolute; z-index: 3; bottom: 0; inset-inline-end: 0; width: min(330px, 62%); padding: 20px 22px; background: #124f61; color: #fff; box-shadow: 0 30px 60px rgba(9, 38, 47, .3); border-top: 4px solid var(--hm-orange); }
.hm-ab2-offices-title { margin: 0 0 10px; color: #fff; font-size: 16px; font-weight: 800; }
.hm-ab2-offices ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.hm-ab2-offices li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14.5px; }
.hm-ab2-offices li b { color: #fff; }
.hm-ab2-offices li a { color: rgba(255, 255, 255, .8); font-weight: 700; font-variant-numeric: tabular-nums; }
.hm-ab2-offices li a:hover { color: #ffb829; }
@media (max-width: 600px) { .hm .hm-ab2-visual .hm-ab2-photo { width: 100%; margin: 0; } .hm-ab2-offices { position: relative; width: 100%; margin-top: -20px; } }

/* homepage demo buttons: the same look as the header button (public/css/chrome.css, part 13) */
.hm-btn--primary { isolation: isolate; min-height: 56px; padding: 0 28px; background: #ffa800; color: #0b323e; font-weight: 800; letter-spacing: 0; text-transform: none; box-shadow: inset 0 -3px 0 rgba(11, 50, 62, .18); transition: color .35s ease, box-shadow .35s ease; }
[dir="rtl"] .hm-btn--primary { font-size: 17px; }
.hm-btn--primary::after { display: none; }
.hm-btn--primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #0b323e; transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.7, 0, .2, 1); }
[dir="rtl"] .hm-btn--primary::before { transform-origin: right; }
.hm-btn--primary:hover { background: #ffa800; color: #fff; box-shadow: inset 0 -3px 0 #ffa800; }
.hm-btn--primary:hover::before { transform: scaleX(1); }
.hm-btn--primary svg { transition: transform .35s ease; }
.hm-btn--primary:hover svg { transform: translateX(5px); }
[dir="rtl"] .hm-btn--primary:hover svg { transform: scaleX(-1) translateX(5px); }
/* the other buttons beside it: same height, normal letters */
.hm-btn--outline, .hm-btn--dark { min-height: 56px; padding-block: 0; letter-spacing: 0; text-transform: none; font-weight: 800; }

/* phones: the system tabs become one row of chips that scrolls sideways (before: two cramped columns);
   the 16 modules sit in two compact columns (before: one long column) */
@media (max-width: 767px) {
    .hm .hm-show-tabs { display: flex; gap: 8px; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .hm .hm-show-tabs::-webkit-scrollbar { display: none; }
    .hm .hm-show-tab { flex: none; align-items: center; gap: 10px; padding: 9px 14px 9px 10px; scroll-snap-align: start; border: 1px solid rgba(255, 255, 255, .16); }
    [dir="rtl"] .hm .hm-show-tab { padding: 9px 10px 9px 14px; }
    .hm .hm-show-tab b { font-size: 14.5px; white-space: nowrap; }
    .hm .hm-show-tab-ico { width: 32px; height: 32px; }
    .hm .hm-show-tab-ico .hm-icon { width: 17px; height: 17px; }
    .hm .hm-show-tab.is-active { border-color: var(--hm-orange); }
    .hm .hm-modx .hm-mod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 6px; }
    .hm .hm-modx .hm-mod { gap: 8px; padding: 10px; }
    .hm .hm-modx .hm-mod h3 { font-size: 13.5px; line-height: 1.4; }
    .hm .hm-modx .hm-mod .hm-arrow { display: none; }
    .hm .hm-modx .hm-mod-icon { width: 30px; height: 30px; }
}




/* wave separators (resources/views/Pages/home/sep.blade.php, movement: home.js part 18) ----------------------------
   Three thin waves on the border, in a box that hides anything below it: soft orange, light blue, and in front the
   colour of the section below. JS gives each one --p (0 to 1 while it crosses the screen); the layers slide sideways
   at different speeds with it, so they only move while you scroll. */
.hm-sky { --p: .5; position: relative; z-index: 3; height: 0; pointer-events: none; }
.hm-sky-in { position: absolute; inset-inline: 0; bottom: -2px; height: clamp(22px, 3.2vw, 46px); overflow: hidden; }
.hm-sky svg { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; will-change: transform; }
.hm-sky .hm-sky-a { fill: #ffd27a; transform: translate3d(calc(var(--p) * -30%), 0, 0); }
.hm-sky .hm-sky-b { height: 84%; fill: #8fd0de; transform: translate3d(calc(-40% + var(--p) * 25%), 0, 0); }
.hm-sky .hm-sky-c { bottom: -1px; height: calc(66% + 1px); fill: var(--sky); transform: translate3d(calc(-10% - var(--p) * 12%), 0, 0); }
/* the dark sections start with one flat colour at the top, so the front wave joins them without a seam */
.hm .hm-show { background: linear-gradient(180deg, #0f4655 0, rgba(15, 70, 85, 0) 220px), radial-gradient(ellipse at 20% 30%, #1d7d96 0%, #124f61 45%, #0b323e 100%); }
.hm .hm-ai { background: linear-gradient(180deg, #0f4655 0, rgba(15, 70, 85, 0) 220px), radial-gradient(ellipse at 75% 40%, #1d7d96 0%, #124f61 45%, #0b323e 100%); }
.hm .hm-testimonials { background: linear-gradient(180deg, #0f4655 0, rgba(15, 70, 85, 0) 220px), radial-gradient(ellipse at 80% 50%, #1d7d96 0%, #124f61 50%, #0b323e 100%); }
@media (prefers-reduced-motion: reduce) { .hm-sky svg { transform: none !important; } }

/* phones and tablets: an admin slide (picture or video) shows the picture clearly on top, with no white veil,
   and the title, text and button below it (before, the text sat on a washed-out picture) */
@media (max-width: 991px) {
    .hm .hm-h3-media .hm-hero-grid { display: flex; flex-direction: column; gap: 22px; }
    .hm .hm-h3-media .hm-h3-frame { position: relative; inset: auto; order: -1; width: auto; max-width: none; margin-inline: -16px; }
    .hm .hm-h3-media .hm-h3-pic { position: relative; inset: auto; aspect-ratio: 16 / 10; }
    .hm .hm-h3-media .hm-h3-pic::after, [dir="rtl"] .hm .hm-h3-media .hm-h3-pic::after { background: linear-gradient(0deg, rgba(9, 38, 47, .25) 0%, rgba(9, 38, 47, 0) 35%); }
    .hm .hm-h3-media .hm-h3-pic img { scale: 1; }
    .hm .hm-h3-media .hm-h3-sound { bottom: 12px; inset-inline-end: 12px; }
}
@media (max-width: 991px) {
    /* the slides start at the top (before, a shorter picture slide was centred and left a gap above it) */
    .hm .hm-h3-slides { align-items: start; }
    .hm .hm-h3-slide.hm-h3-media { align-self: start; }
    .hm .hm-h3-media .hm-hero-grid { padding-top: 0; }
}


/* homepage demo buttons, the same cleaner look as the header (chrome.css part 15) */
.hm-btn--primary { min-height: 54px; padding: 0 28px; background: #ffa800; color: #0b323e; font-weight: 700; box-shadow: 0 8px 20px rgba(255, 168, 0, .25); transition: background-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.hm-btn--primary::before { display: none !important; }
.hm-btn--primary:hover { background: #ffb52e; color: #0b323e; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255, 168, 0, .4); }


/* ---------- cinematic picture / video slides (computers) ----------
   The picture fills the hero, evenly darkened, with a deeper shade on the text side and white text. The header
   (top bar and menu) is not changed. Phones keep the picture on top and the text below. */
.hm-h3-blur { display: none; }
@media (min-width: 992px) {
    /* the picture: full colour, evenly darkened, deeper on the text side and at the bottom */
    .hm .hm-h3-media .hm-h3-pic::after { background:
        linear-gradient(90deg, rgba(6, 26, 33, .7) 0%, rgba(6, 26, 33, .35) 45%, rgba(6, 26, 33, .15) 100%),
        linear-gradient(0deg, rgba(6, 26, 33, .6) 0%, rgba(6, 26, 33, 0) 35%),
        rgba(6, 26, 33, .25); }
    [dir="rtl"] .hm .hm-h3-media .hm-h3-pic::after { background:
        linear-gradient(270deg, rgba(6, 26, 33, .7) 0%, rgba(6, 26, 33, .35) 45%, rgba(6, 26, 33, .15) 100%),
        linear-gradient(0deg, rgba(6, 26, 33, .6) 0%, rgba(6, 26, 33, 0) 35%),
        rgba(6, 26, 33, .25); }
    .hm .hm-h3-media .hm-h3-pic img { scale: 1.02; }
    .hm .hm-h3-media .hm-label { color: #ffc24d; }
    .hm .hm-h3-media .hm-hero-title { color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .3); }
    .hm .hm-h3-media .hm-hero-copy p:not(.hm-label) { color: rgba(255, 255, 255, .86); }
    .hero-media .hm-h3-tab i { background: rgba(255, 255, 255, .3); }
}
