/* Workclarify home — full-screen parallax hero slider. See ROADMAP.md §12 */
.hs {
  --hs-ink: #fff;
  --mx: 0; --my: 0;
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 540px;
  overflow: hidden;
  background: #0B1B3F;
  color: var(--hs-ink);
  font-family: "Inter", var(--font);
  isolation: isolate;
}
.hs-slides { position: absolute; inset: 0; }

/* Slides: no z-index/transform on the slide itself, so layers of two slides can interleave */
.hs-slide { position: absolute; inset: 0; visibility: hidden; }
.hs-slide.is-active, .hs-slide.is-entering { visibility: visible; }

/* Layer stack: outgoing/idle = 1,3,4 · incoming = 2,5,6 */
.hs-bg, .hs-fg, .hs-text { position: absolute; inset: 0; will-change: transform; }
.hs-bg { z-index: 1; overflow: hidden; }
.hs-fg { z-index: 3; pointer-events: none; }
.hs-text { z-index: 4; }
.hs-slide.is-entering .hs-bg { z-index: 2; }
.hs-slide.is-entering .hs-fg { z-index: 5; }
.hs-slide.is-entering .hs-text { z-index: 6; }

/* Mouse parallax wrappers (depth in px) */
.hs-par {
  position: absolute; inset: 0;
  transform: translate3d(calc(var(--mx) * var(--depth, 0) * 1px), calc(var(--my) * var(--depth, 0) * 1px), 0);
  transition: transform .9s cubic-bezier(.16, 1, .3, 1);
}
.hs-bg .hs-par { inset: -3%; --depth: -14; }
.hs-fg .hs-par { --depth: 34; }
.hs-text .hs-par { --depth: 12; }

/* Background photo: cover crop with a per-slide focal point, slow Ken Burns while shown */
.hs-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%);
}
.hs-slide.is-active .hs-bg img, .hs-slide.is-entering .hs-bg img { animation: hs-kenburns 9s cubic-bezier(.2, .6, .2, 1) both; }
@keyframes hs-kenburns { from { transform: scale(1.14); } to { transform: scale(1.02); } }
.hs-veil { position: absolute; inset: 0; background: var(--veil, linear-gradient(90deg, rgba(11, 27, 63, .45), rgba(11, 27, 63, 0) 60%)); }
.hs-grain {
  position: absolute; inset: 0; opacity: .14; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Text block ---------- */
.hs-text .hs-par { display: grid; place-items: center; }
.hs-copy {
  position: relative;
  width: min(1180px, 80vw);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  align-items: end; gap: 24px 48px;
  margin-top: 4vh;
}
.hs-eyebrow { grid-column: 1 / -1; margin: 0 0 -6px; font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; opacity: .85; }
.hs-title {
  margin: 0; color: inherit; font-family: inherit; font-weight: 800;
  font-size: clamp(3.1rem, 8.6vw, 9.4rem); line-height: .86; letter-spacing: -.05em; max-width: none;
  text-shadow: 0 10px 40px rgba(11, 27, 63, .18);
}
.hs-title span { display: block; }
.hs-side { text-align: right; padding-bottom: .6em; }
.hs-side p { margin: 0 0 18px; font-size: .92rem; line-height: 1.55; font-weight: 400; opacity: .92; }
.hs-more {
  display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none;
  font-size: .74rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
}
.hs-more::after { content: ""; width: 28px; height: 1.5px; background: currentColor; transition: width .3s ease; }
.hs-more:hover::after { width: 44px; }

/* ---------- Foreground objects ---------- */
/* --x/--y = design position. The slider script may set --fx/--fy/--fs (fitted position + scale) so the
   object never covers text on any screen size (fitObjects in js/hero-slider.js). */
.hs-obj { position: absolute; left: var(--fx, var(--x)); top: var(--fy, var(--y)); transform: scale(var(--fs, 1)); transform-origin: 0 0; }
/* measuring pass: every layer at rest (added and removed within one frame, never painted) */
.hs-fitting .hs-fg, .hs-fitting .hs-text, .hs-fitting .hs-par, .hs-fitting .hs-float, .hs-fitting .hs-anim { transform: none !important; }
.hs-float { animation: hs-float 7s ease-in-out infinite; }
@keyframes hs-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(.6deg); } }

/* Slide 1: the logo's stacked bars as a floating 3D object */
.hs-stack { width: clamp(220px, 27vw, 460px); display: grid; justify-items: center; gap: clamp(12px, 1.4vw, 22px); transform: rotate(-14deg); filter: drop-shadow(0 40px 50px rgba(60, 20, 60, .35)); }
.hs-stack i {
  position: relative; display: block; height: clamp(38px, 4.6vw, 76px); border-radius: 999px;
  background: linear-gradient(120deg, #2563EB 0%, #14A89B 100%);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .35), inset 0 -6px 14px rgba(11, 27, 63, .25);
}
.hs-stack i::before { content: ""; position: absolute; left: 9%; top: 50%; width: 22%; max-width: 20px; aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; background: #fff; box-shadow: 0 0 18px rgba(255, 255, 255, .8); }
.hs-stack i::after { content: ""; position: absolute; left: 6%; right: 6%; top: 14%; height: 22%; border-radius: 999px; background: linear-gradient(90deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0)); }
.hs-stack i:nth-child(1) { width: 58%; opacity: .92; }
.hs-stack i:nth-child(2) { width: 78%; opacity: .96; }
.hs-stack i:nth-child(3) { width: 100%; }

/* Slides 2–4: frosted glass panels */
.hs-glass {
  width: clamp(230px, 21vw, 330px); padding: 18px 18px 16px; border-radius: 20px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .36);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 30px 60px -20px rgba(5, 10, 30, .5), inset 0 1px 0 rgba(255, 255, 255, .35);
  color: #fff; font-size: .8rem; transform: rotate(var(--rot, 0deg));
}
.hs-glass header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-weight: 700; font-size: .78rem; letter-spacing: .02em; }
.hs-glass header b { width: 8px; height: 8px; border-radius: 50%; background: #5EEAD4; box-shadow: 0 0 10px #5EEAD4; }
.hs-glass ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hs-glass li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 12px; background: rgba(255, 255, 255, .12); }
.hs-glass li > span:first-child { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: .66rem; font-weight: 800; background: linear-gradient(120deg, #2563EB, #14A89B); }
.hs-glass small { display: block; opacity: .75; font-size: .68rem; }
.hs-glass footer { margin-top: 12px; font-size: .7rem; opacity: .85; }
.hs-flow { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: .7rem; font-weight: 700; }
.hs-flow span { padding: 6px 9px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); }
.hs-flow em { font-style: normal; opacity: .7; }

/* ---------- Fixed UI overlay ---------- */
.hs-ui { position: absolute; inset: 0; z-index: 10; pointer-events: none; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hs-ui a, .hs-ui button { pointer-events: auto; color: inherit; }
.hs-top, .hs-bottom { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 24px; padding: 0 clamp(16px, 2.4vw, 36px); }
.hs-top { top: clamp(14px, 2.2vw, 28px); }
.hs-bottom { bottom: clamp(14px, 2.4vw, 30px); }
.hs-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; letter-spacing: .02em; text-transform: none; font-size: .95rem; font-weight: 800; }
.hs-logo span:first-child { width: 40px; height: 40px; display: grid; place-items: center; border: 1.5px solid currentColor; border-radius: 4px; }
.hs-logo svg { width: 20px; height: 20px; }
.hs-tag { margin-left: clamp(16px, 8vw, 140px); font-weight: 500; letter-spacing: .04em; text-transform: none; font-size: .78rem; opacity: .85; }
.hs-links { margin-left: auto; display: flex; gap: clamp(14px, 2vw, 28px); }
.hs-links a, .hs-contact { text-decoration: none; position: relative; }
.hs-links a::after, .hs-contact::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .3s ease; }
.hs-links a:hover::after, .hs-contact:hover::after { transform: scaleX(1); transform-origin: left; }
.hs-count { display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.hs-progress { position: relative; width: 44px; height: 1.5px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.hs-progress span { position: absolute; inset: 0; background: currentColor; transform: scaleX(0); transform-origin: left; }
.hs-social { display: flex; gap: 16px; margin-left: clamp(16px, 9vw, 160px); }
.hs-social a { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; transition: background .2s; }
.hs-social a:hover { background: rgba(255, 255, 255, .16); }
.hs-social svg { width: 14px; height: 14px; }
.hs-arrows { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.hs-arrows button { width: 34px; height: 34px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; border-radius: 50%; transition: background .2s; }
.hs-arrows button:hover { background: rgba(255, 255, 255, .16); }
.hs-arrows svg { width: 14px; height: 14px; }
.hs-arrows i { width: 1px; height: 18px; background: currentColor; opacity: .45; }
.hs-contact { margin-left: clamp(16px, 4vw, 64px); }
.hs :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }


/* ---------- Responsive ---------- */
@media (max-width: 819px) {
  .hs-tag, .hs-social { display: none; }
  .hs-copy { width: calc(100vw - 40px); grid-template-columns: 1fr; gap: 18px; margin-top: 22vh; align-self: start; }
  .hs-text .hs-par { place-items: start center; }
  .hs-side { text-align: left; max-width: 34ch; padding: 0; }
  .hs-side p { font-size: .88rem; margin-bottom: 14px; }
  .hs-title { font-size: clamp(3rem, 15vw, 5.6rem); }
  .hs-obj { left: var(--fx, var(--xm, var(--x))); top: var(--fy, var(--ym, var(--y))); }
  .hs-bg img { object-position: var(--pos-m, var(--pos, 50% 50%)); }
  .hs-glass { width: min(250px, 66vw); font-size: .74rem; padding: 14px; }
  .hs-stack { width: min(250px, 62vw); }
}
@media (max-width: 819px) and (max-height: 700px) { .hs-fg { display: none; } .hs-copy { margin-top: 16vh; } }
/* phones: keep every page link (Services · How it works · Contact) on one line; under 441px the logo shows its mark only */
.hs-links a { white-space: nowrap; }
@media (max-width: 540px) {
  .hs-links { gap: 14px; font-size: .62rem; letter-spacing: .12em; }
}
@media (max-width: 440px) {
  .hs-logo span:last-child { display: none; }
  .hs-contact { margin-left: 12px; }
}
@media (max-height: 560px) and (min-width: 820px) { .hs-title { font-size: clamp(2.6rem, 7vw, 5rem); } .hs-fg { display: none; } }

/* =====================================================================
   Full-page slide pages (services.html …) — ROADMAP.md §13
   ===================================================================== */
.hs-page { background: #0B1B3F; }
.hs-bg picture { display: block; width: 100%; height: 100%; }
.hs-veil--m { display: none; }

/* Dark-text slides for bright photos (like the video's "believe its true") */
.hs-slide[data-tone="dark"] { color: #0B1B3F; }
.hs[data-tone="dark"] .hs-ui { color: #0B1B3F; }
.hs[data-tone="dark"] .hs-progress { background: rgba(11, 27, 63, .22); }
.hs[data-tone="dark"] :focus-visible { outline-color: #0B1B3F; }
.hs-slide[data-tone="dark"] .hs-title { text-shadow: none; }
.hs-slide[data-tone="dark"] .hs-glass { background: rgba(255, 255, 255, .32); border-color: rgba(255, 255, 255, .6); color: #0B1B3F; box-shadow: 0 30px 60px -24px rgba(90, 40, 20, .35), inset 0 1px 0 rgba(255, 255, 255, .6); }
.hs-ui a[aria-current="page"]::after { transform: scaleX(1); }

.hs-copy--stack { grid-template-columns: minmax(0, 1fr); gap: 22px; }
.hs-copy--stack .hs-side { text-align: left; max-width: 44ch; padding: 0; }
.hs-title--long { font-size: clamp(2.4rem, 5.3vw, 6rem); line-height: .94; letter-spacing: -.045em; }
.hs-title--md { font-size: clamp(2.6rem, 5.8vw, 6.4rem); line-height: .9; }

/* Glass chip row (tags) */
.hs-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.hs-chips li {
  padding: 7px 13px; border-radius: 999px; font-size: .74rem; font-weight: 600; letter-spacing: .01em;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

/* Featured layout: headline + text + tags left, the four points as glass cards right */
.hs-copy--feature { grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); align-items: center; gap: 28px 64px; margin-top: 2vh; }
.hs-main { display: grid; gap: 22px; justify-items: start; }
.hs-badge {
  margin: 0; padding: 5px 12px; border-radius: 999px; background: linear-gradient(120deg, #2563EB, #14A89B);
  font-size: .68rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: #fff;
}
.hs-lead { margin: 0; max-width: 46ch; font-size: 1rem; line-height: 1.6; opacity: .92; }
.hs-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hs-points li {
  display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; padding: 16px 18px; border-radius: 18px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .26);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 10, .6), inset 0 1px 0 rgba(255, 255, 255, .22);
  font-size: .9rem; line-height: 1.5;
}
.hs-points li > span { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(120deg, #2563EB, #14A89B); }
.hs-points svg { width: 15px; height: 15px; }

/* Small floating glass badge (decorative) */
.hs-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 24px 40px -20px rgba(5, 10, 30, .5); font-size: .78rem; font-weight: 700; white-space: nowrap;
  transform: rotate(var(--rot, 0deg));
}
.hs-pill svg { width: 16px; height: 16px; }
.hs-slide[data-tone="dark"] .hs-pill { background: rgba(255, 255, 255, .38); border-color: rgba(255, 255, 255, .7); }

/* Phones and short screens: slides become stacked full-height sections (no slide hijacking) */
@media (max-width: 819px), (max-height: 600px) {
  .hs-page .hs { height: auto; min-height: 0; overflow: visible; }
  .hs-page .hs-slides { position: relative; }
  .hs-page .hs-slide { position: relative; visibility: visible; min-height: 100vh; min-height: 100svh; overflow: hidden; display: flex; align-items: center; }
  .hs-page .hs-text { position: relative; inset: auto; width: 100%; }
  .hs-page .hs-text .hs-par { position: relative; inset: auto; transform: none; padding: 104px 0 56px; place-items: center; }
  .hs-page .hs-copy { margin-top: 0; align-self: auto; }
  .hs-page .hs-copy--feature { grid-template-columns: 1fr; }
  .hs-page .hs-fg { display: none; }
  .hs-page .hs-veil--m { display: block; }
  .hs-page .hs-slide[data-tone="dark"] { color: #fff; }                 /* phones crop differently: text goes light */
  .hs-page .hs-slide[data-tone="dark"] .hs-title { text-shadow: 0 10px 40px rgba(11, 27, 63, .25); }
  .hs-page .hs-slide--end { align-items: flex-end; }
  .hs-page .hs-ui { position: fixed; height: 0; }
  .hs-page .hs-top { top: 0; padding-top: 12px; padding-bottom: 12px; color: #fff; background: rgba(11, 27, 63, .55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .hs-page .hs-logo span:first-child { width: 34px; height: 34px; }
  .hs-page .hs-bottom { display: none; }
  .hs-page .hs-slide .hs-bg img { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hs-par { transition: none; transform: none; }
  .hs-float, .hs-slide.is-active .hs-bg img, .hs-slide.is-entering .hs-bg img { animation: none; }
}
