/* ============================================================
   CELSIK Suelo · «Cómo trabajamos» (/suelo/como-trabajamos/)
   Una historia por tipo de cliente, contada al hacer scroll.
   Tokens del sistema de diseño CELSIK; el verde claro #B4DC96
   es el acento del hero de /suelo.
   Dos modos:
   · .motion  → escenario fijo (sticky), el canvas dibuja los chevrons
                y cada frase entra y sale según el scroll (site/historia.js).
   · sin .motion (sin JS o con movimiento reducido) → página normal,
                todo el texto visible, un bloque detrás de otro.
   ============================================================ */

[data-theme="dark"] {
  --fg: #ffffff;
  --fg2: #cdd8c6;
  --fg3: rgba(255, 255, 255, 0.6);
  --acc: #B4DC96;
  --line: rgba(255, 255, 255, 0.16);
  --card: rgba(16, 28, 15, 0.46);
  --card-hi: rgba(29, 46, 28, 0.72);
  --halo: 0 0 28px rgba(16, 28, 15, 0.75), 0 0 2px rgba(16, 28, 15, 0.4);
  --bg: #1d2e1c;
}
[data-theme="light"] {
  --fg: #101c0f;
  --fg2: #3a3e35;
  --fg3: #71766a;
  --acc: #3a2657;
  --line: #dcdfd6;
  --card: rgba(255, 255, 255, 0.72);
  --card-hi: rgba(255, 255, 255, 0.94);
  --halo: 0 0 24px rgba(250, 251, 247, 0.95), 0 0 2px rgba(250, 251, 247, 0.8);
  --bg: #fafbf7;
}

html { background: #1d2e1c; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #1d2e1c;
  color: #fff;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: #B4DC96; color: #101c0f; }
[hidden] { display: none !important; }
.js .hs-story:not(.on) { display: none; }

.hs-skip {
  position: fixed; left: 16px; top: -60px; z-index: 120;
  background: #fff; color: #16240f;
  font: 600 13px/1 var(--font-ui);
  padding: 12px 18px; border-radius: 999px; text-decoration: none;
  transition: top 160ms ease;
}
.hs-skip:focus { top: 14px; }

.hs-canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: none; z-index: 0; pointer-events: none; }
.motion .hs-canvas { display: block; }
main { position: relative; z-index: 1; }

/* ---- Navegación mínima --------------------------------------- */
html[data-theme="dark"] { --nav: #ffffff; --nav-bg: rgba(16, 28, 15, 0.42); --nav-line: rgba(255, 255, 255, 0.18); --nav-inv: #16240f; }
html[data-theme="light"] { --nav: #1d2e1c; --nav-bg: rgba(250, 251, 247, 0.7); --nav-line: rgba(29, 46, 28, 0.16); --nav-inv: #ffffff; }
.hs-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: max(16px, env(safe-area-inset-top)) clamp(16px, 3.4vw, 40px) 0;
  pointer-events: none;
  color: var(--nav);
  transition: color 600ms ease;
}
.hs-nav > * { pointer-events: auto; }
.hs-logo { display: block; color: inherit; padding: 6px 0; }
.hs-logo-mark {
  display: block; width: 99px; height: 36px;
  background: currentColor;
  -webkit-mask: url(/assets/celsik-suelo-wordmark-white.png) left center / contain no-repeat;
          mask: url(/assets/celsik-suelo-wordmark-white.png) left center / contain no-repeat;
}
.hs-langs { display: flex; gap: 2px; padding: 4px; border-radius: 999px; border: 1px solid var(--nav-line); background: var(--nav-bg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: background 600ms ease, border-color 600ms ease; }
.hs-langs a {
  font: 600 11px/1 var(--font-ui); letter-spacing: 0.08em;
  color: inherit; opacity: 0.66; text-decoration: none;
  padding: 7px 12px; border-radius: 999px;
  transition: opacity 200ms ease, background 300ms ease, color 300ms ease;
}
.hs-langs a:hover { opacity: 1; }
.hs-langs a.on { opacity: 1; background: var(--nav); color: var(--nav-inv); }

.hs-pill {
  position: absolute; left: 50%; top: max(18px, calc(env(safe-area-inset-top) + 2px)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  padding: 6px 6px 6px 16px; border-radius: 999px;
  border: 1px solid var(--nav-line); background: var(--nav-bg);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: inherit; cursor: pointer;
  font: 500 12px/1 var(--font-ui);
  transition: background 600ms ease, border-color 600ms ease, opacity 300ms ease, transform 300ms ease;
  animation: hs-pill-in 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes hs-pill-in { from { opacity: 0; transform: translate(-50%, -10px); } }
.hs-pill-k { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.62; }
.hs-pill-v { font-weight: 600; letter-spacing: 0.01em; }
.hs-pill-c {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  padding: 7px 12px; border-radius: 999px;
  background: var(--nav); color: var(--nav-inv);
  transition: background 300ms ease;
}
.hs-pill:hover .hs-pill-c { background: #B4DC96; color: #101c0f; }

/* Carril de capítulos (escritorio) */
.hs-rail {
  position: fixed; right: clamp(14px, 1.8vw, 26px); top: 50%; transform: translateY(-50%);
  z-index: 35; display: none; flex-direction: column; gap: 9px;
  color: var(--nav); transition: color 600ms ease;
}
.hs-rail.on { display: flex; }
.hs-rail button {
  position: relative; width: 14px; height: 14px; padding: 0; border: 0; background: none; cursor: pointer; color: inherit;
}
.hs-rail button::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px;
  border-radius: 50%; background: currentColor; opacity: 0.32;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), opacity 300ms ease, background 300ms ease;
}
.hs-rail button.done::before { opacity: 0.62; }
.hs-rail button.on::before { opacity: 1; transform: scale(1.7); background: var(--acc-nav, currentColor); }
html[data-theme="dark"] .hs-rail { --acc-nav: #B4DC96; }
html[data-theme="light"] .hs-rail { --acc-nav: #3a2657; }
.hs-rail button span {
  position: absolute; right: 22px; top: 50%; transform: translate(6px, -50%);
  white-space: nowrap; font: 600 10.5px/1 var(--font-ui); letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0; pointer-events: none; transition: opacity 200ms ease, transform 200ms ease;
}
.hs-rail button:hover span { opacity: 0.9; transform: translate(0, -50%); }

/* ---- Tipografía ------------------------------------------------ */
.hs-block { color: var(--fg); }
.hs-copy { position: relative; }
.hs-eyebrow {
  margin: 0 0 18px;
  font: 600 11.5px/1.5 var(--font-ui); letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--acc);
}
.hs-title {
  margin: 0;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(36px, 4.3vw, 66px); line-height: 1.04; letter-spacing: -0.015em;
  color: var(--fg); text-wrap: balance;
}
.hs-title em, .hs-line--big em { font-style: italic; font-weight: 400; color: var(--acc); }
.hs-title--xl { font-size: clamp(44px, 6.6vw, 104px); line-height: 1.0; letter-spacing: -0.02em; }
.hs-title--num { font-size: clamp(72px, 10vw, 150px); line-height: 0.95; letter-spacing: -0.03em; font-variant-numeric: lining-nums tabular-nums; }
.hs-swap { margin-top: clamp(18px, 3vh, 30px); }
.hs-line {
  margin: 0;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(21px, 1.8vw, 29px); line-height: 1.34;
  color: var(--fg2); text-wrap: pretty;
}
.hs-line--big { font-weight: 500; font-size: clamp(30px, 3.3vw, 52px); line-height: 1.08; letter-spacing: -0.012em; color: var(--fg); text-wrap: balance; }
.hs-line--quote { font-style: italic; font-weight: 400; }
.hs-line--lead strong {
  display: block; margin-bottom: 0.32em;
  font-weight: 500; font-size: clamp(27px, 2.6vw, 40px); line-height: 1.1; letter-spacing: -0.01em; color: var(--fg);
}

.hs-stack { list-style: none; margin: clamp(22px, 3.4vh, 34px) 0 0; padding: 0; display: grid; gap: clamp(10px, 1.6vh, 16px); }
.hs-item {
  display: grid; grid-template-columns: 34px 1fr; gap: 0 4px;
  padding-top: clamp(10px, 1.5vh, 14px); border-top: 1px solid var(--line);
}
.hs-item-n { font: 600 11px/2.1 var(--font-ui); letter-spacing: 0.14em; color: var(--acc); }
.hs-item strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 1.55vw, 25px); line-height: 1.18; color: var(--fg); }
.hs-item span { display: block; margin-top: 4px; font: 400 clamp(14px, 1vw, 15.5px)/1.5 var(--font-body); color: var(--fg2); text-wrap: pretty; }
.hs-stack--rules .hs-item strong { font-size: clamp(21px, 1.65vw, 27px); }
.hs-foot-line { margin: clamp(16px, 2.6vh, 24px) 0 0; font: italic 400 clamp(18px, 1.5vw, 22px)/1.4 var(--font-display); color: var(--fg2); text-wrap: pretty; }

.hs-cue { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; margin: clamp(22px, 4vh, 38px) 0 0; font: 600 10.5px/1 var(--font-ui); letter-spacing: 0.26em; text-transform: uppercase; color: var(--fg3); }
.hs-cue svg { width: 20px; height: 20px; animation: hs-cue 2.2s ease-in-out infinite; }
@keyframes hs-cue { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(6px); opacity: 1; } }

/* Botones de cierre: los mismos que el hero de /suelo */
.hs-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 4.5vh, 40px); }
.hs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 13px/1 var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase;
  padding: 18px 30px; border-radius: 999px; text-decoration: none;
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 220ms ease;
}
.hs-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.hs-btn--solid { background: #fff; color: #16240f; border: 1px solid #fff; box-shadow: 0 10px 40px rgba(16, 28, 15, 0.35); }
.hs-btn--solid:hover { background: #B4DC96; border-color: #B4DC96; color: #101c0f; transform: translateY(-2px); }
.hs-btn--ghost { background: rgba(16, 28, 15, 0.35); color: #fff; border: 1px solid rgba(255, 255, 255, 0.42); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hs-btn--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; transform: translateY(-2px); }
.hs-btn:active { transform: translateY(1px); }
.hs-btn:focus-visible, .hs-answer:focus-visible, .hs-pill:focus-visible, .hs-langs a:focus-visible { outline: 2px solid #B4DC96; outline-offset: 3px; }
.hs-others { margin: clamp(22px, 3.6vh, 34px) 0 0; font: 400 13px/1.6 var(--font-ui); color: var(--fg3); display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 10px; }
.hs-others a { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.hs-others a:hover { text-decoration-color: currentColor; }

/* ---- La pregunta ------------------------------------------------ */
.hs-answers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(28px, 5vh, 46px); text-align: left; }
.hs-answer {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  min-height: 170px; padding: 26px 24px 22px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--fg); font: inherit; text-align: left; cursor: pointer;
  transition: border-color 260ms ease, background 260ms ease, transform 360ms cubic-bezier(0.16, 1, 0.3, 1), opacity 360ms ease;
}
.hs-answer-t { font: 400 clamp(21px, 1.7vw, 25px)/1.24 var(--font-display); color: var(--fg); text-wrap: balance; padding-right: 18px; }
.hs-answer-h { font: 600 10.5px/1 var(--font-ui); letter-spacing: 0.2em; text-transform: uppercase; color: var(--acc); opacity: 0.55; transition: opacity 260ms ease; }
.hs-answer-a { position: absolute; right: 18px; bottom: 18px; width: 20px; height: 20px; color: var(--acc); opacity: 0.6; transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), opacity 260ms ease; }
.hs-answer:hover, .hs-answer:focus-visible, .hs-answer.is-hot { border-color: var(--acc); background: var(--card-hi); transform: translateY(-4px); }
.hs-answer:hover .hs-answer-h, .hs-answer:focus-visible .hs-answer-h, .hs-answer.is-hot .hs-answer-h { opacity: 1; }
.hs-answer:hover .hs-answer-a, .hs-answer:focus-visible .hs-answer-a { transform: translateX(4px); opacity: 1; }
.hs-answer.is-chosen { border-color: var(--acc); background: rgba(180, 220, 150, 0.14); }
.hs-answers.has-choice .hs-answer:not(.is-chosen) { opacity: 0.62; }
.hs-qfoot { margin: 22px 0 0; font: 400 12.5px/1.5 var(--font-ui); letter-spacing: 0.02em; color: var(--fg3); }

/* ---- Pie ---------------------------------------------------------- */
.hs-footer {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px;
  padding: 26px clamp(16px, 3.4vw, 40px) calc(26px + env(safe-area-inset-bottom));
  background: #16240f; color: rgba(255, 255, 255, 0.55);
  font: 400 12px/1.5 var(--font-ui); letter-spacing: 0.04em;
}
.hs-footer nav { display: flex; gap: 20px; }
.hs-footer a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.hs-footer a:hover { color: #fff; }

/* =================================================================
   Modo sin animación (sin JS o con movimiento reducido)
   ================================================================= */
html:not(.motion) .hs-block { background: var(--bg); padding: clamp(84px, 14vh, 150px) 20px; }
html:not(.motion) .hs-copy { max-width: 760px; margin: 0 auto; }
html:not(.motion) .hs-lay--center .hs-copy, html:not(.motion) .hs-lay--bottom .hs-copy,
html:not(.motion) .hs-lay--trio .hs-copy, html:not(.motion) .hs-lay--q .hs-copy { text-align: center; max-width: 1040px; }
html:not(.motion) .hs-swap > * + * { margin-top: 18px; }
html:not(.motion) .hs-lay--trio .hs-line + .hs-line { margin-top: 22px; }
html:not(.motion) .hs-cue { display: none; }
html:not(.motion) .hs-landing .hs-block:first-child { padding-top: 26vh; }

/* =================================================================
   Modo animado: escenario fijo y frases coreografiadas por el scroll
   ================================================================= */
.motion .hs-scene { position: relative; }
.motion .hs-stage { position: sticky; top: 0; height: var(--hs-vh, 100vh); overflow: hidden; }
.motion .hs-block { position: absolute; inset: 0; pointer-events: none; }
.motion .hs-block.live { pointer-events: auto; }
.motion .hs-copy { position: absolute; text-shadow: var(--halo); }
.motion .hs-answers, .motion .hs-cta { text-shadow: none; }

.motion .hs-lay--left .hs-copy { left: clamp(24px, 7.2vw, 132px); top: 50%; transform: translateY(-50%); width: min(560px, 41vw); }
.motion .hs-lay--center .hs-copy { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(860px, 86vw); text-align: center; }
.motion .hs-lay--bottom .hs-copy { left: 50%; bottom: clamp(30px, 7.5vh, 80px); transform: translateX(-50%); width: min(1040px, 90vw); text-align: center; }
.motion .hs-lay--trio .hs-copy { left: 50%; bottom: clamp(40px, 13vh, 130px); transform: translateX(-50%); width: min(900px, 88vw); text-align: center; display: grid; }
.motion .hs-lay--trio .hs-copy > * { grid-area: 1 / 1; align-self: end; }
.motion .hs-lay--q .hs-copy { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(1120px, 92vw); text-align: center; }
.motion .hs-swap { display: grid; }
.motion .hs-swap > * { grid-area: 1 / 1; align-self: start; }
.motion .hs-block--cta .hs-swap > * { position: relative; }

.motion .hs-t { --in: 0; --out: 1; }
.motion .hs-t.off { visibility: hidden; }
.motion .hs-t:not([data-split]) {
  opacity: calc(var(--in) * var(--out));
  transform: translate3d(0, calc((1 - var(--in)) * 36px + (var(--out) - 1) * 28px), 0);
  filter: blur(calc((2 - var(--in) - var(--out)) * 7px));
}
.motion .hs-t[data-split] .w {
  display: inline-block;
  --wi: clamp(0, calc((var(--in) * (var(--n) + 5) - var(--i)) / 5), 1);
  --wo: clamp(0, calc((var(--out) * (var(--n) + 5) - var(--n) + 1 + var(--i)) / 5), 1);
  opacity: calc(var(--wi) * var(--wo));
  transform: translate3d(0, calc((1 - var(--wi)) * 0.66em + (var(--wo) - 1) * 0.5em), 0) rotate(calc((1 - var(--wi)) * 4deg));
  transform-origin: 0 100%;
}
/* Las respuestas entran una detrás de otra */
.motion .hs-answers.hs-t { opacity: 1; transform: none; filter: none; }
.motion .hs-answers .hs-answer {
  --a: clamp(0, calc(var(--in) * 1.9 - var(--k) * 0.32), 1);
  opacity: calc(var(--a) * var(--out));
  translate: 0 calc((1 - var(--a)) * 34px);
}
.motion .hs-answers.has-choice .hs-answer:not(.is-chosen) { opacity: calc(var(--a) * 0.62); }

/* Teléfono y tableta en vertical: el dibujo arriba, el texto abajo */
@media (max-width: 819px), (max-aspect-ratio: 17/20) {
  .hs-logo-mark { width: 86px; height: 31px; }
  .hs-pill { padding: 5px; gap: 0; }
  .hs-pill-k, .hs-pill-v { display: none; }
  .hs-pill-c { padding: 8px 14px; }
  .hs-title { font-size: clamp(31px, 8.6vw, 46px); line-height: 1.06; }
  .hs-title--xl { font-size: clamp(40px, 11.5vw, 64px); }
  .hs-title--num { font-size: clamp(66px, 19vw, 110px); }
  .hs-line { font-size: clamp(18.5px, 4.9vw, 22px); line-height: 1.38; }
  .hs-line--big { font-size: clamp(27px, 7.4vw, 36px); line-height: 1.1; }
  .hs-line--lead strong { font-size: clamp(24px, 6.6vw, 30px); }
  .hs-eyebrow { font-size: 10.5px; margin-bottom: 12px; letter-spacing: 0.2em; }
  .hs-stack { gap: 8px; margin-top: 16px; }
  .hs-item { grid-template-columns: 28px 1fr; padding-top: 8px; }
  .hs-item strong { font-size: 18.5px; }
  .hs-item span { font-size: 13.5px; line-height: 1.42; margin-top: 2px; }
  .hs-stack--rules .hs-item strong { font-size: 19px; }
  .hs-foot-line { font-size: 17px; }
  .hs-answers { grid-template-columns: 1fr; gap: 10px; margin-top: 22px; }
  .hs-answer { min-height: 0; padding: 18px 46px 16px 18px; gap: 10px; border-radius: 10px; }
  .hs-answer-t { font-size: 19.5px; padding-right: 0; }
  .hs-answer-a { right: 16px; top: 50%; bottom: auto; margin-top: -10px; }
  .hs-qfoot { margin-top: 14px; }
  .hs-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .hs-btn { padding: 17px 22px; }

  .motion .hs-lay--left .hs-copy {
    left: 20px; right: 20px; width: auto; top: auto; transform: none;
    bottom: calc(clamp(22px, 5vh, 44px) + env(safe-area-inset-bottom));
  }
  .motion .hs-lay--center .hs-copy { width: auto; left: 20px; right: 20px; transform: translateY(-50%); }
  .motion .hs-lay--bottom .hs-copy { width: auto; left: 20px; right: 20px; transform: none; bottom: calc(clamp(26px, 6vh, 50px) + env(safe-area-inset-bottom)); }
  .motion .hs-lay--trio .hs-copy { width: auto; left: 20px; right: 20px; transform: none; bottom: calc(clamp(30px, 9vh, 80px) + env(safe-area-inset-bottom)); }
  .motion .hs-lay--q .hs-copy { width: auto; left: 16px; right: 16px; transform: translateY(-50%); }
  .hs-rail { display: none !important; }
}
@media (max-height: 640px) and (min-width: 820px) {
  .hs-title { font-size: clamp(32px, 3.6vw, 48px); }
  .hs-line { font-size: 20px; }
  .hs-item span { font-size: 13.5px; }
  .hs-answer { min-height: 130px; padding: 18px; }
}

/* =================================================================
   Modo historias (móvil, páginas con data-stories): una frase por toque,
   barra de progreso arriba y botones grandes abajo. Sin scroll.
   ================================================================= */
html.stories, html.stories body { height: 100%; overflow: hidden; overscroll-behavior: none; }
html.stories body { position: fixed; inset: 0; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
html.stories .hs-scene { position: absolute; inset: 0; height: auto !important; }
html.stories .hs-stage { position: fixed; top: 0; left: 0; right: 0; height: 100%; }
html.stories .hs-footer, html.stories .hs-skip, html.stories .hs-rail, html.stories .hs-cue { display: none !important; }
html.stories .hs-block, html.stories .hs-block.live { pointer-events: none; }
html.stories .hs-block.live a, html.stories .hs-block.live button { pointer-events: auto; }
html.stories .hs-nav { padding-top: calc(max(16px, env(safe-area-inset-top)) + 12px); }
html.stories.motion .hs-lay--left .hs-copy,
html.stories.motion .hs-lay--bottom .hs-copy,
html.stories.motion .hs-lay--trio .hs-copy { bottom: calc(92px + env(safe-area-inset-bottom)); }
html.stories.motion .hs-lay--center .hs-copy { top: 45%; }

html[data-theme="dark"] { --sbar-track: rgba(255, 255, 255, 0.24); --sbar-fill: #ffffff; --sbar-on: #B4DC96; }
html[data-theme="light"] { --sbar-track: rgba(29, 46, 28, 0.16); --sbar-fill: #1d2e1c; --sbar-on: #3a2657; }
.hs-sbar {
  position: fixed; z-index: 46; left: 10px; right: 10px; top: max(6px, env(safe-area-inset-top));
  display: flex; gap: 4px;
}
.hs-sbar button { flex: 1; min-width: 0; height: 16px; padding: 6px 0; border: 0; background: none; cursor: pointer; }
.hs-sbar i { display: block; height: 3px; border-radius: 3px; background: var(--sbar-track); overflow: hidden; transition: background 600ms ease; }
.hs-sbar b { display: block; height: 100%; background: var(--sbar-fill); transform: scaleX(0); transform-origin: left center; transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1), background 600ms ease; }
.hs-sbar button.on b { background: var(--sbar-on); }

.hs-snav {
  position: fixed; z-index: 46; left: 16px; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom));
  height: 54px; display: flex; align-items: center; justify-content: space-between; pointer-events: none;
}
.hs-snav button {
  pointer-events: auto; height: 54px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--font-ui); letter-spacing: 0.02em;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), opacity 300ms ease, background 600ms ease, color 600ms ease, border-color 600ms ease;
}
.hs-snav button svg { width: 20px; height: 20px; flex-shrink: 0; }
.hs-snav button:active { transform: scale(0.94); }
.hs-snav button.gone { opacity: 0; pointer-events: none; transform: scale(0.85); }
.hs-sprev {
  width: 54px; padding: 0; color: var(--nav); background: var(--nav-bg); border: 1px solid var(--nav-line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.hs-snext {
  margin-left: auto; padding: 0 22px 0 28px; border: 0; color: var(--nav-inv); background: var(--nav);
  box-shadow: 0 10px 34px rgba(16, 28, 15, 0.35);
}
.hs-snext.nudge { animation: hs-nudge 1.5s ease-in-out infinite; }
@keyframes hs-nudge { 0%, 100% { transform: translateX(0); } 45% { transform: translateX(7px); } 60% { transform: translateX(0); } }
.hs-shint {
  position: absolute; left: 0; top: 50%; transform: translate(-6px, -50%); margin: 0;
  display: flex; align-items: center; gap: 12px; color: var(--nav);
  font: 500 14px/1.2 var(--font-ui); letter-spacing: 0.01em; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 180ms ease, transform 180ms ease;
}
.hs-shint.on { opacity: 1; transform: translate(0, -50%); }
.hs-shint i { position: relative; width: 12px; height: 12px; margin-left: 8px; border-radius: 50%; background: #B4DC96; flex-shrink: 0; }
.hs-shint i::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 1.5px solid #B4DC96; animation: hs-tap 1.6s ease-out infinite; }
@keyframes hs-tap { from { transform: scale(0.35); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
