/* ===== Home hero slider (4 animated slides) ===== */
.hs { --navy: #14261d; --blue: #2f7a55; --mint: #4fd1b0; --lav: #eef3ee; position: relative; overflow: hidden;
  background: radial-gradient(1200px 500px at 85% 10%, #e1f3e8 0%, transparent 60%), linear-gradient(135deg, #f2f6f1 0%, #e6eee7 55%, #eef5ef 100%); }
.hs-track { position: relative; height: clamp(600px, 52vw, 700px); max-width: 1440px; margin: 0 auto; perspective: 1400px; }
.hs-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s .6s; }
.hs-slide.on { opacity: 1; visibility: visible; transition: opacity .6s ease; z-index: 2; }
.hs-slide.out { z-index: 1; }

/* people / faces */
.hs-person { position: absolute; top: 0; left: 0; height: 100%; width: auto; max-width: 38%; object-fit: cover; object-position: left top;
  -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent); mask-image: linear-gradient(90deg, #000 70%, transparent); }
.hs-person.r { left: auto; right: 0; object-position: right top; -webkit-mask-image: linear-gradient(270deg, #000 70%, transparent); mask-image: linear-gradient(270deg, #000 70%, transparent); }
.hs-face { position: absolute; top: 0; height: 100%; width: 30%; object-fit: cover; object-position: center top; }
.hs-face.l { left: 0; -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent); mask-image: linear-gradient(90deg, #000 60%, transparent); }
.hs-face.r { right: 0; -webkit-mask-image: linear-gradient(270deg, #000 60%, transparent); mask-image: linear-gradient(270deg, #000 60%, transparent); }
.hs-tag { position: absolute; bottom: 92px; z-index: 3; display: grid; text-align: center; padding: 10px 22px; border-radius: 22px; background: rgba(255,255,255,.88); backdrop-filter: blur(6px); font-size: .95rem; color: var(--navy); box-shadow: 0 10px 30px rgba(20,38,29,.12); }
.hs-tag b { font-size: 1.2rem; } .hs-tag.l { left: 6%; } .hs-tag.r { right: 5%; background: rgba(226,250,240,.92); }

/* copy */
.hs-copy { position: absolute; top: 46px; bottom: 96px; left: 36%; right: 4%; display: flex; flex-direction: column; z-index: 3; }
.hs-s4 .hs-copy { left: 5%; right: 38%; }
.hs-copy.center { left: 27%; right: 27%; align-items: center; text-align: center; }
.hs-badge { display: inline-flex; align-items: center; gap: 10px; width: fit-content; padding: 9px 20px; border-radius: 99px; background: linear-gradient(90deg, #b5f0de, #d6f7ee); color: var(--navy); font-weight: 800; font-size: 1.05rem; box-shadow: 0 6px 16px rgba(79,209,176,.18); }
.hs-badge svg { width: 22px; height: 22px; }
.hs-h { font-family: var(--sans, 'Segoe UI', system-ui, sans-serif); font-weight: 900; letter-spacing: -.02em; line-height: 1.02; color: var(--navy); font-size: clamp(2.1rem, 3.6vw, 3.4rem); margin: 16px 0 12px; }
.hw { display: inline-block; }
.hw.hi { color: var(--blue); }
.hw.ul { position: relative; }
.hw.ul::after { content: ""; position: absolute; left: 2%; right: 2%; bottom: -.06em; height: .12em; border-radius: 99px; background: linear-gradient(90deg, #6fe0c3, #9ff0d9); transform: scaleX(0); transform-origin: left; }
.hs-p { font-size: clamp(1rem, 1.3vw, 1.2rem); color: #24352c; max-width: 640px; margin: 0 0 18px; line-height: 1.5; }
.hs-row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; align-items: start; margin-top: auto; }

/* cards & lists */
.glass, .hs-list, .hs-chip, .hs-call { background: rgba(255,255,255,.8); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 14px 34px rgba(20,38,29,.10); }
.hs-list { border-radius: 22px; padding: 16px 16px 12px; }
.hs-list h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 1.15rem; font-weight: 900; color: var(--navy); font-family: inherit; }
.hs-list h3 svg { width: 24px; height: 24px; color: var(--blue); }
.hs-li { display: flex; align-items: center; gap: 12px; padding: 9px 12px; margin-bottom: 7px; border-radius: 14px; background: #fff; font-weight: 700; color: var(--navy); font-size: .98rem; box-shadow: 0 2px 8px rgba(20,38,29,.05); }
.hs-li svg { width: 24px; height: 24px; flex: none; color: var(--navy); }
.hs-li svg.tick { color: #3fcf98; }
.hs-list.note { background: rgba(246,250,246,.92); }
.hs-diagram { position: relative; padding: 18px 40px; }
.hs-diagram > img { width: 100%; display: block; border-radius: 10px; filter: drop-shadow(0 20px 26px rgba(20,38,29,.16)); }
.hs-call { position: absolute; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; padding: 8px 14px; border-radius: 16px; font-size: .92rem; color: var(--navy); }
.hs-call svg { grid-row: span 2; width: 26px; height: 26px; color: var(--navy); }
.hs-call small { color: #4d5f55; font-weight: 600; }
.hs-call.l1 { left: -6px; top: 0; } .hs-call.r1 { right: -6px; top: -10px; } .hs-call.l2 { left: -14px; bottom: 30px; } .hs-call.r2 { right: -14px; bottom: 54px; }
.hs-call.r2 svg { color: #f05a28; }
.hs-desk img { width: 100%; max-height: 250px; object-fit: cover; object-position: center top; display: block; border-radius: 20px; box-shadow: 0 24px 50px rgba(20,38,29,.18); }
.hs-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; margin-top: 6px; }
.hs-chip { display: grid; justify-items: center; gap: 6px; padding: 14px 10px; border-radius: 20px; font-weight: 800; color: var(--navy); font-size: .98rem; line-height: 1.2; }
.hs-chip svg { width: 34px; height: 34px; }
.hs-arrow { width: 70%; height: 40px; margin: -6px 0 6px; overflow: visible; }
.hs-arrow path { fill: none; stroke: url(#none); stroke: #45d483; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 700; stroke-dashoffset: 700; }
.hs-skins { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 16px; }
.hs-skins figure { flex: 1; margin: 0; text-align: center; }
.hs-skins img { width: 100%; max-height: 150px; object-fit: contain; display: block; filter: drop-shadow(0 16px 20px rgba(20,38,29,.18)); }
.hs-skins figcaption { display: inline-block; margin-top: 8px; padding: 6px 14px; border-radius: 99px; background: rgba(255,255,255,.85); font-weight: 800; font-size: .88rem; color: var(--navy); box-shadow: 0 6px 14px rgba(20,38,29,.08); }
.hs-gt { color: var(--blue); font-size: 2rem; font-weight: 900; }
.hs-ba { display: flex; align-items: center; gap: 0; }
.hs-ba figure { position: relative; margin: 0; flex: 1; border-radius: 22px; overflow: hidden; border: 4px solid #cfe0d4; box-shadow: 0 20px 40px rgba(20,38,29,.16); }
.hs-ba figure.after { border-color: #9fe9cf; }
.hs-ba img { width: 100%; display: block; aspect-ratio: 1.03; object-fit: cover; }
.hs-ba figcaption { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: grid; text-align: center; white-space: nowrap; padding: 6px 16px; border-radius: 16px; background: rgba(255,255,255,.92); font-size: .82rem; color: var(--navy); }
.hs-ba figcaption b { font-size: 1.05rem; }
.hs-ba .after figcaption { background: rgba(226,250,240,.95); }
.hs-go { z-index: 2; width: 52px; height: 52px; margin: 0 -18px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 900; font-size: 1.4rem; border: 4px solid #fff; box-shadow: 0 10px 22px rgba(47,122,85,.3); }
.hs-growth { width: 100%; height: 46px; margin-top: 4px; overflow: visible; }
.hs-growth path { fill: none; stroke: #45d483; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; }
.hs-growth circle { fill: var(--blue); stroke: #fff; stroke-width: 3; opacity: 0; }
.hs-note { margin-top: 10px; color: #5d6f64; font-size: .78rem; }

/* controls */
.hs-ui { position: absolute; right: 24px; bottom: 20px; z-index: 5; display: flex; align-items: center; gap: 14px; padding: 8px 12px; border-radius: 99px; background: rgba(255,255,255,.75); backdrop-filter: blur(8px); box-shadow: 0 8px 24px rgba(20,38,29,.12); }
.hs-nav { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); font-size: 1.4rem; font-weight: 800; cursor: pointer; line-height: 1; }
.hs-nav:hover { background: var(--navy); color: #fff; }
.hs-dots { display: flex; gap: 8px; }
.hs-dots button { width: 34px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: #d3e0d6; cursor: pointer; overflow: hidden; }
.hs-dots button i { display: block; height: 100%; width: 0; background: var(--blue); }
.hs-dots button.on i { animation: hsBar var(--slide-ms, 5000ms) linear forwards; }
.hs.paused .hs-dots button.on i, .hs-slider.paused .hs-dots button.on i { animation-play-state: paused; }
@keyframes hsBar { to { width: 100%; } }

/* ===== entrance animations (play each time a slide becomes active) ===== */
.hs-slide [class*="a-"], .hs-slide .hw { opacity: 0; }
.hs-slide.on .a-fade { animation: hsFade 1s ease var(--d) both; }
.hs-slide.on .a-rise { animation: hsRise .8s cubic-bezier(.22,1,.36,1) var(--d) both; }
.hs-slide.on .a-pop { animation: hsPop .7s cubic-bezier(.34,1.56,.64,1) var(--d) both; }
.hs-slide.on .a-slide { animation: hsSlide .6s cubic-bezier(.22,1,.36,1) var(--d) both; }
.hs-slide.on .a-flip { animation: hsFlip 1s cubic-bezier(.22,1,.36,1) var(--d) both; }
.hs-slide.on .a-3d { animation: hs3d 1.1s cubic-bezier(.22,1,.36,1) var(--d) both, hsFloat 5s ease-in-out calc(var(--d) + 1.2s) infinite; }
.hs-slide.on .hw { animation: hsWord .75s cubic-bezier(.22,1,.36,1) var(--d) both; }
.hs-slide.on .hw.ul::after { animation: hsLine .7s cubic-bezier(.22,1,.36,1) 1s both; }
.hs-slide.on .hs-arrow path { animation: hsDraw 1.2s ease .8s forwards; }
.hs-slide.on .hs-growth path { animation: hsDraw 1.4s ease 1.6s forwards; }
.hs-slide.on .hs-growth circle { animation: hsPop .5s cubic-bezier(.34,1.56,.64,1) both; }
.hs-slide.on .hs-growth circle:nth-of-type(1) { animation-delay: 1.9s; } .hs-slide.on .hs-growth circle:nth-of-type(2) { animation-delay: 2.2s; } .hs-slide.on .hs-growth circle:nth-of-type(3) { animation-delay: 2.5s; }
.hs-slide.on .hs-person, .hs-slide.on .hs-face { animation: hsFade 1s ease var(--d) both, hsZoom 7s ease-out both; }
/* mouse-follow 3D tilt on image cards (after they land) */
.hs-diagram > img, .hs-desk img, .hs-ba { transition: transform .4s ease; transform: rotateY(var(--tx, 0)) rotateX(var(--ty, 0)); transform-style: preserve-3d; }

@keyframes hsFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hsZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes hsRise { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes hsWord { from { opacity: 0; transform: translateY(.6em) rotateX(-60deg); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes hsPop { 0% { opacity: 0; transform: scale(.4); } 100% { opacity: 1; transform: scale(1); } }
@keyframes hsSlide { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes hsFlip { from { opacity: 0; transform: perspective(900px) rotateY(-75deg) translateZ(-60px); } to { opacity: 1; transform: none; } }
@keyframes hs3d { from { opacity: 0; transform: perspective(1000px) rotateX(35deg) rotateY(-25deg) translateY(60px) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes hsFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes hsLine { to { transform: scaleX(1); } }
@keyframes hsDraw { to { stroke-dashoffset: 0; } }

/* ===== tablet & phone ===== */
@media (max-width: 1100px) {
  .hs-row { grid-template-columns: 1fr; } .hs-list:not(.res) { display: none; }
  .hs-copy { left: 40%; } .hs-s4 .hs-copy { right: 36%; }
}
@media (max-width: 780px) {
  .hs-ui { right: 50%; transform: translateX(50%); }
  .hs-track { height: 960px; }
  .hs-slide { position: absolute; }
  .hs-person, .hs-person.r { position: relative; display: block; width: 100%; max-width: none; height: 300px; object-position: center 20%; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
  .hs-face { height: 300px; width: 50%; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent) !important; mask-image: linear-gradient(180deg, #000 70%, transparent) !important; }
  .hs-tag { bottom: auto; top: 240px; padding: 6px 14px; font-size: .78rem; } .hs-tag b { font-size: .95rem; }
  .hs-copy, .hs-s4 .hs-copy, .hs-copy.center { position: relative; inset: auto; padding: 0 16px 90px; margin-top: -30px; left: 0; right: 0; }
  .hs-s3 .hs-copy { margin-top: 300px; }
  .hs-h { font-size: 2.1rem; margin: 12px 0 10px; }
  .hs-row { gap: 14px; } .hs-list.res .hs-li:nth-child(n+4) { display: none; }
  .hs-diagram { padding: 12px 20px; } .hs-call { font-size: .78rem; padding: 6px 10px; } .hs-call small { display: none; }
  .hs-chips { grid-template-columns: 1fr 1fr 1fr; gap: 8px; } .hs-chip { font-size: .8rem; padding: 10px 6px; } .hs-chip svg { width: 26px; height: 26px; }
  .hs-skins figcaption { font-size: .7rem; padding: 4px 8px; }
  .hs-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-slide [class*="a-"], .hs-slide .hw { opacity: 1 !important; animation: none !important; transform: none !important; filter: none !important; }
  .hs-arrow path, .hs-growth path { stroke-dashoffset: 0; } .hs-growth circle { opacity: 1; } .hw.ul::after { transform: none; }
  .hs-dots button.on i { animation: none; width: 100%; }
}

.hs-p .io { color: var(--blue); font-weight: 800; }
