/* ==========================================================================
   Bilsan Business Solutions — slider.css
   Home hero slider (partials.hero-slider) + sectors ticker (pages.home).
   Loaded after site.css on the home page only. Colours come from the site
   tokens (light/dark); platform colours from --pc / --pc-ink / --pc-tint.
   Motion: transform/opacity (+ a clip-path title reveal); everything is
   switched off under prefers-reduced-motion.

    1. Slider shell & background     5. Platform visual (console + flow)
    2. Track, slides & transitions   6. Tabs & controls bar
    3. Company slide                 7. Responsive
    4. Platform slide text           8. Sectors ticker
                                     9. Reduced motion & print
   ========================================================================== */

/* ------------------------------------------- 1. Slider shell & background */
.hs {
  --hs-ease: cubic-bezier(.2, .7, .2, 1);
  --hs-ease-io: cubic-bezier(.65, 0, .35, 1);
  --hs-dirx: 1;                    /* 1 = LTR, -1 = RTL (physical x of "inline-end") */
  --hs-x: var(--hs-dirx);          /* travel direction of the current change */
  --hs-gx: 84%;                    /* glow anchor (mirrored in RTL) */
  --hs-mesh: 11%;
  --hs-mesh-2: 7%;
  --hs-blob: 15%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: clamp(560px, 86vh, 820px);
  border-bottom: 1px solid var(--c-line);
  background: var(--c-bg);
}
@supports (height: 1svh) {
  .hs { min-height: clamp(560px, 86svh, 820px); }
}
:root[dir="rtl"] .hs { --hs-dirx: -1; --hs-gx: 16%; }
.hs[data-dir="prev"] { --hs-x: calc(var(--hs-dirx) * -1); }
:root[data-theme="dark"] .hs { --hs-mesh: 17%; --hs-mesh-2: 10%; --hs-blob: 19%; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .hs { --hs-mesh: 17%; --hs-mesh-2: 10%; --hs-blob: 19%; }
}

.hs__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hs__mesh {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity .9s var(--hs-ease-io);
  background:
    radial-gradient(58rem 36rem at var(--hs-gx) 8%, color-mix(in srgb, var(--pc) var(--hs-mesh), transparent), transparent 68%),
    radial-gradient(46rem 30rem at calc(100% - var(--hs-gx)) 108%, color-mix(in srgb, var(--pc) var(--hs-mesh-2), transparent), transparent 70%);
}
.hs__mesh.is-active { opacity: 1; }
.hs__blob {
  position: absolute;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--pc) var(--hs-blob), transparent), transparent);
}
.hs__blob--a { top: -15rem; inset-inline-end: -9rem; animation: hs-drift-a 30s var(--hs-ease-io) infinite alternate; }
.hs__blob--b { bottom: -19rem; inset-inline-start: 18%; width: 28rem; height: 28rem; animation: hs-drift-b 36s var(--hs-ease-io) infinite alternate; }
.hs__mesh:not(.is-active) .hs__blob,
.hs.is-offscreen .hs__blob { animation-play-state: paused; }
@keyframes hs-drift-a { to { transform: translate3d(calc(var(--hs-dirx) * -7rem), 5rem, 0) scale(1.1); } }
@keyframes hs-drift-b { to { transform: translate3d(calc(var(--hs-dirx) * 6rem), -4rem, 0) scale(.92); } }
.hs__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(60rem 34rem at var(--hs-gx) 18%, #000 0%, transparent 72%);
  mask-image: radial-gradient(60rem 34rem at var(--hs-gx) 18%, #000 0%, transparent 72%);
}

/* ---------------------------------------- 2. Track, slides & transitions */
.hs__stage {
  position: relative;
  order: 1;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(2rem, 4.5vw, 4rem) clamp(2rem, 4vw, 3.25rem);
  touch-action: pan-y;
}
.hs__track { display: grid; align-items: center; }
.hs-slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  min-width: 0;
}
.hs-slide--solo { grid-template-columns: minmax(0, 1fr); }
/* Undo the no-slider.css fallback in site.css (every slide keeps its grid box). */
.hs .hs-slide { display: grid; }
.hs .hs-console,
.hs .hs__bg { display: block; }
.hs-slide.is-active { z-index: 1; }
/* Inactive slides keep their box (the track is as tall as the tallest slide → no layout shift). */
.hs-slide:not(.is-active):not(.is-leaving) { visibility: hidden; opacity: 0; pointer-events: none; }
.hs-slide.is-leaving { pointer-events: none; animation: hs-leave .48s var(--hs-ease-io) forwards; }
.hs-slide.is-settling { transition: transform .4s var(--hs-ease), opacity .4s var(--hs-ease); }
.hs.is-dragging { cursor: grabbing; -webkit-user-select: none; user-select: none; }
/* Ambient loops only run on the visible slide and while the slider is on screen. */
.hs-slide:not(.is-active) *,
.hs.is-offscreen .hs-slide * { animation-play-state: paused; }

/* No "from" frame: a swipe hands over its current offset, the leave continues from there. */
@keyframes hs-leave { to { opacity: 0; transform: translate3d(calc(var(--hs-x) * -44px), 0, 0); } }

/* Incoming content (after the first change only, so the initial paint is never delayed). */
.hs.is-moved .hs-slide.is-active [data-hs-a] {
  animation: hs-rise .75s var(--hs-ease) backwards;
  animation-delay: calc(150ms + var(--o, 0) * 75ms);
}
.hs.is-moved .hs-slide.is-active .hs-title { animation-name: hs-title; animation-duration: .9s; }
@keyframes hs-rise { from { opacity: 0; transform: translate3d(calc(var(--hs-x) * 30px), 0, 0); } }
@keyframes hs-title {
  from { opacity: 0; clip-path: inset(-20% -8% 120% -8%); transform: translate3d(0, .35em, 0); }
  to { opacity: 1; clip-path: inset(-20% -8% -20% -8%); transform: none; }
}
/* The visual scales in on every activation (including the first paint). */
.hs-slide.is-active [data-hs-visual] { animation: hs-visual 1s var(--hs-ease) .2s backwards; }
@keyframes hs-visual { from { opacity: 0; transform: translate3d(calc(var(--hs-x) * 24px), 0, 0) scale(.96); } }

.hs-slide__text { position: relative; min-width: 0; max-width: 41rem; }
.hs-slide__visual { position: relative; min-width: 0; }
.hs-slide__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ------------------------------------------------------- 3. Company slide */
.hs .hero-title { font-size: clamp(2.25rem, 1.15rem + 3.5vw, 4rem); margin-bottom: 1.25rem; }
:root[dir="rtl"] .hs .hero-title { font-size: clamp(2.05rem, 1.15rem + 2.9vw, 3.5rem); }
.hs .hero-actions { margin-top: 1.85rem; }
.hs .hero-statement { margin-top: 2.1rem; }
.hs-eco { width: 100%; max-width: 500px; margin-inline: auto; }
.hs-slide.is-active .hs-eco .eco__node {
  transform-box: fill-box;
  transform-origin: center;
  animation: hs-pop .7s var(--hs-ease) backwards;
  animation-delay: calc(480ms + var(--i, 0) * 90ms);
}
.hs-slide.is-active .hs-eco .eco__link-group { animation: hs-fade .8s var(--hs-ease) backwards; animation-delay: calc(380ms + var(--i, 0) * 90ms); }
@keyframes hs-pop { from { opacity: 0; transform: scale(.6); } }
@keyframes hs-fade { from { opacity: 0; } }

/* ----------------------------------------------- 4. Platform slide text */
.hs-slide__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.1rem; margin-bottom: 1.1rem; }
.hs-slide__meta .kicker { margin: 0; color: var(--pc-ink); }
.hs-slide__stage { display: inline-flex; margin: 0; }
.hs-slide__name {
  font-size: clamp(2.4rem, 1.3rem + 3.6vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  margin-bottom: .85rem;
}
:root[dir="rtl"] .hs-slide__name { font-size: clamp(2.2rem, 1.3rem + 3vw, 3.7rem); line-height: 1.3; letter-spacing: 0; }
.hs-slide__tagline {
  max-width: 36rem;
  margin-bottom: .85rem;
  font-size: clamp(1.08rem, 1rem + .45vw, 1.3rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--c-ink-2);
  text-wrap: balance;
}
.hs-slide__short { max-width: 38rem; margin-bottom: 1.4rem; font-size: 1rem; line-height: 1.75; color: var(--c-text); }
.hs-chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0 0 1.85rem; padding: 0; }
.hs-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  max-width: 100%;
  padding-block: .34rem;
  padding-inline: .38rem .85rem;
  border: 1px solid color-mix(in srgb, var(--pc) 24%, var(--c-line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--c-surface) 82%, transparent);
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--c-ink-2);
}
.hs-chip__check {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--pc);
  color: #FFFFFF;
}

/* ------------------------------------- 5. Platform visual (console + flow) */
.hs-vis {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin-inline: auto;
  padding-block: 2.25rem 0;
}
.hs-vis__glow {
  position: absolute;
  inset: 4% -6% -4%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--pc) 16%, transparent), transparent);
}

/* Console window */
.hs-console {
  position: relative;
  margin-inline-start: 2rem;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  background: var(--c-surface);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
.hs-console__bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  height: 40px;
  padding-inline: .9rem;
  border-bottom: 1px solid var(--c-line);
  background: var(--c-surface-2);
}
.hs-console__dots { display: inline-flex; gap: 6px; flex-shrink: 0; }
.hs-console__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--c-line-strong); }
.hs-console__dots i:first-child { background: color-mix(in srgb, var(--pc) 70%, var(--c-line-strong)); }
.hs-console__title {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-width: 0;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1;
  color: var(--c-ink-2);
  white-space: nowrap;
}
.hs-console__title .icon { color: var(--pc-ink); }
.hs-console__search { flex: 1 1 auto; max-width: 9rem; height: 20px; margin-inline-start: auto; border: 1px solid var(--c-line); border-radius: 999px; background: var(--c-surface); }
.hs-console__avatar { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; background: var(--pc-tint); border: 1px solid color-mix(in srgb, var(--pc) 30%, transparent); }
.hs-console__body { display: grid; grid-template-columns: 30% minmax(0, 1fr); min-height: 232px; }
.hs-console__side { display: flex; flex-direction: column; gap: .45rem; padding: 1rem .75rem; border-inline-end: 1px solid var(--c-line); background: var(--c-surface-2); }
.hs-console__nav { display: flex; align-items: center; gap: .5rem; height: 24px; padding-inline: .45rem; border-radius: var(--radius-sm); }
.hs-console__nav::before { content: ""; width: 9px; height: 9px; flex-shrink: 0; border-radius: 3px; background: var(--c-line-strong); }
.hs-console__nav i { display: block; width: var(--w, 60%); height: 6px; border-radius: 3px; background: var(--c-line); }
.hs-console__nav.is-on { background: var(--pc-tint); }
.hs-console__nav.is-on::before { background: var(--pc); }
.hs-console__nav.is-on i { background: color-mix(in srgb, var(--pc) 38%, transparent); }
.hs-console__main { display: flex; flex-direction: column; gap: .9rem; min-width: 0; padding: 1rem; }
.hs-console__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.hs-kpi { display: flex; flex-direction: column; gap: .45rem; min-width: 0; padding: .65rem .7rem .55rem; border: 1px solid var(--c-line); border-radius: var(--radius-md); background: var(--c-surface); }
.hs-kpi__label { width: 62%; height: 5px; border-radius: 3px; background: var(--c-line); }
.hs-kpi__value { width: 46%; height: 10px; border-radius: 3px; background: color-mix(in srgb, var(--pc) 30%, transparent); }
.hs-kpi__spark { display: block; width: 100%; height: 20px; overflow: visible; }
.hs-kpi__spark polyline { fill: none; stroke: var(--pc); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: .85; }
.hs-console__chart {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  flex: 1 1 auto;
  min-height: 84px;
  padding-top: .6rem;
  border-top: 1px dashed var(--c-line);
}
.hs-console__chart i {
  flex: 1 1 0;
  height: var(--h, 50%);
  border-radius: 3px 3px 0 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--pc) 55%, transparent), color-mix(in srgb, var(--pc) 16%, transparent));
  transform-origin: bottom;
}
.hs-slide.is-active .hs-console__chart i { animation: hs-bar .7s var(--hs-ease) backwards; animation-delay: calc(420ms + var(--b, 0) * 55ms); }
.hs-slide.is-active .hs-kpi { animation: hs-fade .6s var(--hs-ease) backwards; animation-delay: calc(360ms + var(--k, 0) * 90ms); }
@keyframes hs-bar { from { transform: scaleY(.08); opacity: .4; } }

/* Big platform icon tile */
.hs-vis__icon {
  position: absolute;
  top: 0;
  inset-inline-end: -.25rem;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 20px;
  background: var(--pc);
  color: #FFFFFF;
  box-shadow: 0 18px 38px -16px color-mix(in srgb, var(--pc) 75%, transparent), 0 2px 6px rgba(0, 0, 0, .08);
}
.hs-vis__icon-ring {
  position: absolute;
  inset: -9px;
  border: 1px solid color-mix(in srgb, var(--pc) 40%, transparent);
  border-radius: 26px;
  animation: hs-breathe 5s ease-in-out infinite;
}
@keyframes hs-breathe { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.08); opacity: .35; } }

/* Flow card */
.hs-flowcard {
  position: relative;
  z-index: 2;
  margin-top: -3.25rem;
  margin-inline-end: 2.25rem;
  padding: .9rem 1rem 1.05rem;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--c-surface) 96%, transparent);
  box-shadow: var(--shadow-2);
}
.hs-flowcard__title {
  margin: 0 0 .8rem;
  font-size: .7rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-muted);
}
:root[dir="rtl"] .hs-flowcard__title { letter-spacing: 0; text-transform: none; font-size: .8rem; }
.hs-flow { --node: 34px; position: relative; }
.hs-flow__list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}
.hs-flow__step { display: flex; flex-direction: column; align-items: center; gap: .5rem; min-width: 0; padding-inline: 2px; text-align: center; }
.hs-flow__node {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: var(--node);
  height: var(--node);
  border: 1px solid color-mix(in srgb, var(--pc) 35%, var(--c-line));
  border-radius: 50%;
  background: var(--c-surface);
  color: var(--pc-ink);
  font-size: .7rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
/* "Lit" state: accent disc drawn on top (default state; animated in sequence on activation). */
.hs-flow__node::after {
  content: attr(data-n);
  position: absolute;
  inset: -1px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pc);
  color: #FFFFFF;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--pc) 16%, transparent);
}
.hs-slide.is-active .hs-flow__node::after {
  animation: hs-light .5s var(--hs-ease) backwards;
  animation-delay: calc(700ms + var(--i, 0) * 160ms);
}
@keyframes hs-light { from { opacity: 0; transform: scale(.55); } }
.hs-flow__label {
  max-width: 100%;
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--c-ink-2);
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.hs-flow__rail {
  position: absolute;
  z-index: 0;
  top: calc(var(--node) / 2 - 1px);
  inset-inline: calc(50% / var(--n, 4));
  height: 2px;
  border-radius: 2px;
  background: var(--c-line);
}
.hs-flow__fill { position: absolute; inset: 0; border-radius: inherit; background: color-mix(in srgb, var(--pc) 60%, transparent); transform-origin: left; }
:root[dir="rtl"] .hs-flow__fill { transform-origin: right; }
.hs-slide.is-active .hs-flow__fill { animation: hs-fill-x .9s var(--hs-ease-io) .6s backwards; }
@keyframes hs-fill-x { from { transform: scaleX(0); } }
.hs-flow__runner { position: absolute; inset: 0; opacity: 0; }
.hs-slide.is-active .hs-flow__runner { animation: hs-run-x 4.4s var(--hs-ease-io) 1.6s infinite; }
@keyframes hs-run-x {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  8%, 60% { opacity: 1; }
  68%, 100% { transform: translate3d(calc(var(--hs-dirx) * 100%), 0, 0); opacity: 0; }
}
.hs-flow__dot {
  position: absolute;
  top: 50%;
  inset-inline-start: 0;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  margin-inline-start: -5px;
  border-radius: 50%;
  background: var(--pc);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--pc) 22%, transparent), 0 0 14px 2px color-mix(in srgb, var(--pc) 45%, transparent);
}

/* --------------------------------------------- 6. Tabs & controls bar */
.hs__bar {
  position: relative;
  order: 2;                        /* first in the DOM (rotation control before slides), shown last */
  border-top: 1px solid var(--c-line);
  background: color-mix(in srgb, var(--c-bg) 70%, transparent);
}
.hs__bar-inner { display: flex; align-items: stretch; gap: clamp(1rem, 3vw, 2.5rem); }
.hs__tabs {
  order: 1;
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: clamp(.75rem, 2vw, 1.75rem);
}
.hs__tab {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  min-width: 0;
  padding: 1.05rem 0 1.15rem;
  border: 0;
  background: none;
  font: inherit;
  text-align: start;
  text-decoration: none;
  color: var(--c-muted);
  cursor: pointer;
  transition: color .3s var(--hs-ease);
}
.hs__tab:hover { color: var(--c-ink-2); }
.hs__tab.is-active,
.hs__tab.is-active:hover { color: var(--c-ink); }
.hs__tab:focus-visible { outline: 2px solid var(--c-focus); outline-offset: -2px; border-radius: var(--radius-xs); }
.hs__tab-progress { position: absolute; top: -1px; inset-inline: 0; height: 2px; overflow: hidden; border-radius: 2px; background: var(--c-line); }
.hs__tab-fill { position: absolute; inset: 0; background: var(--pc); transform: scaleX(0); transform-origin: left; }
:root[dir="rtl"] .hs__tab-fill { transform-origin: right; }
/* Selected slide without autoplay: full bar (slider.js drives the fill while autoplaying). */
.hs__tab.is-active .hs__tab-fill { transform: scaleX(1); }
.hs__tab-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  margin-top: .55em;
  border-radius: 2px;
  background: var(--pc);
  opacity: .5;
  transition: opacity .3s var(--hs-ease), transform .3s var(--hs-ease);
}
.hs__tab.is-active .hs__tab-dot { opacity: 1; transform: scale(1.2); }
.hs__tab-text { display: flex; flex-direction: column; min-width: 0; }
.hs__tab-name { overflow: hidden; font-size: .95rem; font-weight: 800; line-height: 1.4; white-space: nowrap; text-overflow: ellipsis; }
.hs__tab-sub { overflow: hidden; font-size: .76rem; font-weight: 600; line-height: 1.45; color: var(--c-muted); white-space: nowrap; text-overflow: ellipsis; }

.hs__controls { order: 2; display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
/* DOM order: play, prev, next (rotation control first); visual order: counter, prev, play, next. */
.hs__count { order: 0; }
.hs__btn--prev { order: 1; }
.hs__btn--play { order: 2; }
.hs__btn--next { order: 3; }
.hs:not(.is-ready) .hs__controls { visibility: hidden; }
.hs__count { margin: 0; margin-inline-end: .6rem; font-size: .85rem; font-weight: 800; line-height: 1; color: var(--c-muted); font-variant-numeric: tabular-nums; letter-spacing: .04em; white-space: nowrap; }
.hs__count-now { color: var(--c-ink); }
.hs__count-sep { margin-inline: .35rem; color: var(--c-line-strong); }
.hs__btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--c-line-strong);
  border-radius: 50%;
  background: var(--c-surface);
  color: var(--c-ink);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s var(--hs-ease);
}
.hs__btn:hover { border-color: var(--c-ink); background: var(--c-ink); color: var(--c-bg); }
.hs__btn:active { transform: scale(.94); }
.hs__btn:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.hs__btn .icon { width: 20px; height: 20px; }
.hs__icon-play { display: none; }
.hs.is-stopped .hs__btn--play .hs__icon-pause { display: none; }
.hs.is-stopped .hs__btn--play .hs__icon-play { display: block; }

/* ---------------------------------------------------------- 7. Responsive */
/* Short desktop viewports: tighten so the tabs stay above the fold. */
@media (min-width: 992px) and (max-height: 820px) {
  .hs__stage { padding-block: 1.75rem 1.5rem; }
  .hs .hero-title { font-size: clamp(2.2rem, 1rem + 3vw, 3.4rem); margin-bottom: 1rem; }
  .hs .hero-actions { margin-top: 1.4rem; }
  .hs .hero-statement { margin-top: 1.5rem; }
  .hs-eco { max-width: 440px; }
  .hs-console__body { min-height: 200px; }
}
@media (max-width: 1199.98px) {
  .hs__tab-sub { display: none; }
  .hs__tab { align-items: center; }
  .hs__tab-dot { margin-top: 0; }
}
/* Tablets: six tabs (incl. Mishwar) need the room of the prev/next arrows and the
   counter, otherwise every name is cut ("Byte …", "Mish…"); the tabs and the
   play/pause button stay (same controls as on phones). */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hs__btn--prev,
  .hs__btn--next,
  .hs__count { display: none; }
}
@media (max-width: 991.98px) {
  .hs__track { align-items: start; }
  .hs-slide { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 2.25rem; }
  .hs-slide__text { max-width: 44rem; }
  .hs-slide__visual { width: 100%; max-width: 520px; margin-inline: auto; }
  .hs-eco { max-width: 400px; }
}
@media (max-width: 767.98px) {
  .hs-slide__short {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
  }
  .hs__bar-inner { align-items: center; gap: .6rem; padding-block: .7rem; }
  .hs__tabs {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: .25rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .hs__tabs::-webkit-scrollbar { display: none; }
  .hs__tab {
    flex: 0 0 auto;
    align-items: center;
    gap: .5rem;
    padding: .5rem .95rem;
    overflow: hidden;
    border: 1px solid var(--c-line);
    border-radius: 999px;
    background: var(--c-surface);
    scroll-snap-align: start;
  }
  .hs__tab.is-active { border-color: color-mix(in srgb, var(--pc) 45%, var(--c-line)); background: var(--pc-tint); }
  .hs__tab:focus-visible { outline-offset: -3px; border-radius: 999px; }
  .hs__tab-progress { top: auto; bottom: 0; inset-inline: 0; height: 2px; background: transparent; border-radius: 0; }
  .hs__tab-name { font-size: .86rem; }
  .hs__btn--prev,
  .hs__btn--next,
  .hs__count { display: none; }
  .hs__btn { width: 40px; height: 40px; }
}
@media (max-width: 575.98px) {
  .hs__stage { padding-block: 1.75rem 1.5rem; }
  .hs-slide { gap: 1.75rem; }
  .hs .hero-actions { margin-top: 1.5rem; }
  .hs .hero-statement { margin-top: 1.6rem; }
  .hs-slide__actions .btn { flex: 1 1 auto; }
  .hs-chips { margin-bottom: 1.5rem; }
  .hs-chip { font-size: .8rem; }
  .hs-eco { max-width: 300px; }

  /* Compact visual: slim console + vertical flow timeline. */
  .hs-vis { padding-top: 1.5rem; }
  .hs-console { margin-inline-start: 0; margin-inline-end: 1.5rem; }
  .hs-console__side,
  .hs-console__chart { display: none; }
  .hs-console__body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hs-console__main { padding: .75rem .75rem 3.5rem; }
  .hs-console__search { max-width: 4.5rem; }
  .hs-vis__icon { width: 60px; height: 60px; border-radius: 16px; }
  .hs-vis__icon .icon { width: 32px; height: 32px; }
  .hs-vis__icon-ring { inset: -7px; border-radius: 21px; }
  .hs-flowcard { margin-top: -2.5rem; margin-inline: 1.25rem 0; }
  .hs-flow { --node: 30px; }
  .hs-flow__list { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr); row-gap: .6rem; }
  .hs-flow__step { flex-direction: row; gap: .75rem; text-align: start; }
  .hs-flow__label { font-size: .84rem; }
  .hs-flow__rail { top: calc(var(--node) / 2); bottom: calc(var(--node) / 2); inset-inline: auto; left: auto; right: auto; inset-inline-start: calc(var(--node) / 2 - 1px); width: 2px; height: auto; }
  .hs-flow__fill { transform-origin: top; }
  :root[dir="rtl"] .hs-flow__fill { transform-origin: top; }
  .hs-slide.is-active .hs-flow__fill { animation-name: hs-fill-y; }
  .hs-slide.is-active .hs-flow__runner { animation-name: hs-run-y; }
  .hs-flow__dot { top: 0; left: 50%; right: auto; margin: -5px 0 0 -5px; }
}
@keyframes hs-fill-y { from { transform: scaleY(0); } }
@keyframes hs-run-y {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  8%, 60% { opacity: 1; }
  68%, 100% { transform: translate3d(0, 100%, 0); opacity: 0; }
}

/* --------------------------------------------------------- 8. Sectors ticker */
.hs-ticker {
  --hs-dirx: 1;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--c-line);
  background: var(--c-bg-alt);
}
:root[dir="rtl"] .hs-ticker { --hs-dirx: -1; }
.hs-ticker__inner { display: flex; align-items: center; gap: 1.25rem; min-height: 3.6rem; }
.hs-ticker__label {
  flex-shrink: 0;
  margin: 0;
  padding-inline-end: 1.25rem;
  border-inline-end: 1px solid var(--c-line-strong);
  font-size: var(--fs-xs);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-muted);
  white-space: nowrap;
}
:root[dir="rtl"] .hs-ticker__label { font-size: .86rem; letter-spacing: 0; text-transform: none; }
.hs-ticker__viewport {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.hs-ticker__track { display: flex; width: max-content; animation: hs-marquee 56s linear infinite; }
.hs-ticker:hover .hs-ticker__track,
.hs-ticker.is-paused .hs-ticker__track,
.hs-ticker.is-offscreen .hs-ticker__track { animation-play-state: paused; }
@keyframes hs-marquee { to { transform: translate3d(calc(var(--hs-dirx) * -50%), 0, 0); } }
.hs-ticker__list { display: flex; flex-shrink: 0; align-items: center; list-style: none; margin: 0; padding: 0; }
.hs-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding-block: .95rem;
  font-size: .94rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--c-ink-2);
  white-space: nowrap;
}
.hs-ticker__item::after {
  content: "";
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  margin-inline: 1.6rem;
  border-radius: 50%;
  background: var(--c-brand);
  opacity: .45;
}
.hs-ticker__icon { color: var(--c-brand-text); }
.hs-ticker__toggle {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--c-line-strong);
  border-radius: 50%;
  background: var(--c-surface);
  color: var(--c-ink-2);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.hs-ticker__toggle:hover { border-color: var(--c-ink); background: var(--c-ink); color: var(--c-bg); }
.hs-ticker__toggle:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.hs-ticker:not(.is-ready) .hs-ticker__toggle { visibility: hidden; }
.hs-ticker__toggle .hs__icon-play { display: none; }
.hs-ticker.is-paused .hs-ticker__toggle .hs__icon-pause { display: none; }
.hs-ticker.is-paused .hs-ticker__toggle .hs__icon-play { display: block; }
/* Without JavaScript there is no pause control: show a static, wrapped list instead of the marquee. */
:root:not(.js) .hs-ticker__viewport { -webkit-mask-image: none; mask-image: none; }
:root:not(.js) .hs-ticker__track { width: auto; animation: none; }
:root:not(.js) .hs-ticker__list { flex-wrap: wrap; flex-shrink: 1; }
:root:not(.js) .hs-ticker__list[aria-hidden="true"],
:root:not(.js) .hs-ticker__toggle { display: none; }
@media (max-width: 767.98px) {
  .hs-ticker__label { display: none; }
  .hs-ticker__inner { gap: .75rem; min-height: 3.2rem; }
  .hs-ticker__item { font-size: .88rem; padding-block: .8rem; }
  .hs-ticker__item::after { margin-inline: 1.2rem; }
}

/* ------------------------------------------ 9. Reduced motion & print */
@media (prefers-reduced-motion: reduce) {
  .hs *,
  .hs *::before,
  .hs *::after,
  .hs-ticker * { animation: none !important; transition: none !important; }
  .hs-slide.is-leaving { visibility: hidden; opacity: 0; }
  .hs-flow__runner { display: none; }

  .hs-ticker__viewport { -webkit-mask-image: none; mask-image: none; }
  .hs-ticker__track { width: auto; }
  .hs-ticker__list { flex-wrap: wrap; flex-shrink: 1; justify-content: flex-start; }
  .hs-ticker__list[aria-hidden="true"],
  .hs-ticker__toggle { display: none; }
  .hs-ticker__item { padding-block: .6rem; }
}
/* slider.js mirrors the media query (also covers a later change of preference). */
.hs.is-reduced * { animation: none !important; }
.hs.is-reduced .hs-slide.is-leaving { visibility: hidden; opacity: 0; }

@media print {
  .hs__bg, .hs__bar, .hs-ticker, .hs-vis__icon, .hs-flow__rail { display: none !important; }
  .hs { min-height: 0; border: 0; }
  .hs .hs-slide { display: block; }
  .hs .hs-slide:not(.is-active) { display: none; }
  .hs .hs-console { display: none; }
}
