/* ==========================================================================
   PLUGADO — HOME
   ========================================================================== */

/* Token local: compacta a home sem mudar as landings dos produtos. */
body { --section: clamp(68px, 9vw, 120px); }
.ch { position: relative; padding-block: var(--section); overflow: clip; }

/* ================================================================ HERO */
.hero {
  position: relative; min-height: 100svh; overflow: clip;
  display: flex; flex-direction: column;
  background: var(--ink); color: var(--white);
  view-timeline: --hero block;
}
.hero__glow {
  position: absolute; inset: auto -10% -30% 30%; height: 90%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--blue) 38%, transparent), transparent);
  pointer-events: none;
}
.hero__mark {
  position: absolute; right: -16vw; top: 52%;
  width: min(118vh, 92vw); aspect-ratio: 1;
  /* Centro estrutural separado dos transforms animados pelo GSAP. */
  margin-top: calc(-1 * min(59vh, 46vw));
  pointer-events: none;
}
.hero__mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hero__mark-fill { opacity: 0; transform: scale(.94); transition: opacity 1.8s var(--ease) .9s, transform 2.4s var(--ease) .6s; }
.is-loaded .hero__mark-fill { opacity: .92; transform: none; }

.hero__inner {
  position: relative; z-index: 2; flex: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 140px; padding-bottom: clamp(32px, 5vw, 64px);
}
.hero__eyebrow { margin-bottom: clamp(20px, 3vw, 40px); opacity: 0; transition: opacity 1s .2s; }
.is-loaded .hero__eyebrow { opacity: 1; }

.hero__title { font-size: var(--fs-mega); max-width: 12ch; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }
.hero__title .line > span { display: inline-block; transform: translateY(108%); transition: transform 1.3s var(--ease); }
.hero__title .line:nth-child(2) > span { transition-delay: .08s; }
.hero__title .line:nth-child(3) > span { transition-delay: .16s; }
.hero__title .line:nth-child(4) > span { transition-delay: .24s; }
.is-loaded .hero__title .line > span { transform: none; }
.no-js .hero__title .line > span { transform: none; }

.hero__foot {
  display: grid; grid-template-columns: 1fr 1.2fr auto; gap: var(--gap); align-items: end;
  margin-top: clamp(40px, 6vw, 88px); padding-top: 24px;
  border-top: 1px solid var(--white-16);
  opacity: 0; transform: translateY(20px); transition: opacity 1s .7s, transform 1.2s var(--ease) .7s;
}
.is-loaded .hero__foot { opacity: 1; transform: none; }
.hero__index { display: grid; gap: 4px; font-family: var(--f-display); font-size: .95rem; }
.hero__index .mono { color: var(--cyan); margin-right: 10px; }
.hero__copy { color: var(--white-60); max-width: 42ch; }
.hero__ctas { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; z-index: 2; right: var(--pad); top: 50%;
  display: none; flex-direction: column; align-items: center; gap: 14px;
  writing-mode: vertical-rl; color: var(--white-60);
}
/* Haste do P como indicador de scroll */
.hero__stem { position: relative; width: 1px; height: 72px; background: var(--white-16); overflow: hidden; border-radius: 2px; }
.hero__stem::after {
  content: ""; position: absolute; left: 0; top: -30%; width: 1px; height: 30%;
  background: var(--grad-v); animation: stem 2.2s var(--ease-io) infinite;
}
/* Mesmo percurso (-30% a 100% da haste), sem animar layout a cada frame. */
@keyframes stem { to { transform: translateY(433.333%); } }

.ticker { position: relative; z-index: 2; border-top: 1px solid var(--white-10); overflow: hidden; padding-block: 18px; }
.ticker__row {
  display: flex; align-items: center; gap: 28px; width: max-content;
  font-family: var(--f-display); font-size: .95rem; color: var(--white-60);
  animation: ticker 48s linear infinite;
}
.ticker .cut { width: 10px; height: 7px; }
.ticker:hover .ticker__row { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

@media (min-width: 1100px) { .hero__scroll { display: flex; } }
@media (min-width: 861px) {
  /* Reserva espaço para descrição, CTAs e ticker na primeira tela desktop. */
  .hero__inner {
    padding-top: clamp(96px, 12svh, 128px);
    padding-bottom: clamp(20px, 3svh, 32px);
  }
  .hero__title { font-size: clamp(3.1rem, min(10vw, calc(25svh - 95px)), 10.5rem); }
  .hero__eyebrow { margin-bottom: clamp(16px, 2.5svh, 28px); }
  .hero__foot { margin-top: clamp(20px, 3svh, 32px); padding-top: 16px; }
}
@media (max-width: 860px) {
  .hero__foot { grid-template-columns: 1fr; }
  .hero__mark { right: -40vw; top: 36%; width: 120vw; margin-top: -60vw; }
  .hero__mark-fill { --o: .5; }
  .is-loaded .hero__mark-fill { opacity: .45; }
}

/* Saída do hero: título sobe e símbolo gira levemente (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: exit)) {
    @keyframes hero-out-title { to { transform: translateY(-14vh); opacity: .15; } }
    @keyframes hero-out-mark { to { rotate: -10deg; scale: 1.18; } }
    .hero__title { animation: hero-out-title linear both; animation-timeline: --hero; animation-range: exit 0% exit 100%; }
    .hero__mark { animation: hero-out-mark linear both; animation-timeline: --hero; animation-range: exit 0% exit 100%; }
  }
}

/* ================================================================ MANIFESTO */
.manifesto { position: relative; height: 190svh; background: var(--white); }
.manifesto__sticky {
  position: sticky; top: 0; height: 100svh;
  display: grid; grid-template-columns: minmax(180px, .8fr) 2.4fr; gap: clamp(32px, 6vw, 120px); align-items: center;
}
.manifesto__text {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1.7rem, 3.5vw, 3.5rem); line-height: 1.12; letter-spacing: -.035em;
  max-width: 24ch;
}
.js .manifesto__text .w { opacity: .14; transition: opacity .35s linear, color .35s; }
.js .manifesto__text .w.on { opacity: 1; }
.manifesto__text .k .w.on { background: var(--text-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* manifesto words are not split by [data-split], reset reveal transform */
.manifesto__text .wi { transform: none !important; }

.assemble { display: grid; gap: 20px; justify-items: start; }
.assemble__svg {
  width: min(100%, 260px); height: auto; object-fit: contain;
  /* O mesmo progresso existente revela o símbolo inteiro, sem reconstruir peças. */
  opacity: calc(.5 + min(1, var(--p, 0) * 2.2) * .5);
  transform: translateY(calc(max(0, 1 - var(--p, 0) * 2.2) * 26px));
}
.assemble.is-plugged .assemble__svg { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .assemble__svg { opacity: 1; transform: none; }
}
html.reduced-motion .assemble__svg { opacity: 1; transform: none; }
.assemble__status { display: inline-flex; align-items: center; gap: 10px; color: var(--slate); }
.assemble__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--slate); transition: background .4s, box-shadow .4s; }
.assemble.is-plugged .assemble__dot { background: var(--cyan); box-shadow: 0 0 0 6px color-mix(in srgb, var(--cyan) 22%, transparent); }

@media (max-width: 860px) {
  .manifesto { height: 170svh; }
  .manifesto__sticky { grid-template-columns: 1fr; align-content: center; gap: 32px; }
  .assemble__svg { width: 110px; }
}

/* ================================================================ 01 INFRA */
.ch--infra { background: var(--white); }
.infra__bleed { color: var(--ink); width: 70vw; left: -38vw; top: 12%; opacity: .07; }
.infra__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 140px); align-items: start; }
.infra__text { display: grid; gap: clamp(24px, 3vw, 40px); }
.infra__text h2 { max-width: 11ch; }

.caps { border-top: 1px solid var(--ink-14); }
.caps li {
  display: grid; grid-template-columns: 48px 180px 1fr; gap: 16px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--ink-14);
  transition: padding .5s var(--ease);
}
.caps li:hover { padding-left: 10px; }
.caps__n { color: var(--blue); }
.caps h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -.02em; }
.caps p { color: var(--slate); font-size: .95rem; }

.infra__media { position: sticky; top: max(96px, 12svh); min-width: 0; }
.infra-flow__head { display: flex; justify-content: space-between; gap: 12px; color: var(--slate); font-size: .7rem; }
.infra-flow__hint { color: var(--blue); }
.infra-flow { display: block; width: 100%; height: auto; max-height: 70svh; margin-block: 16px; }
.infra-flow__links { stroke: #d8e5f4; stroke-width: 1.5; }
.infra-flow__signals { stroke: var(--blue); stroke-width: 1.5; }
.infra-flow__signals path { opacity: .25; transition: opacity .45s var(--ease); }
.infra-flow__signals path.is-done { opacity: .8; }
.infra-flow__node { transform-box: fill-box; transform-origin: center; transition: opacity .45s var(--ease), transform .6s var(--ease); }
.js .infra-flow__node { opacity: .65; transform: translateY(5px); }
.js .infra-flow__node.is-active, .js .infra-flow__node.is-done { opacity: 1; transform: none; }
.infra-flow__card { fill: var(--white); stroke: #d8e5f4; stroke-width: 1; }
.infra-flow__node.is-active .infra-flow__card { stroke: var(--blue); fill: #f5faff; }
.infra-flow__node.is-done .infra-flow__card { stroke: #99caff; }
.infra-flow__icon { fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.infra-flow__icon circle { fill: var(--white); }
.infra-flow__label { fill: var(--ink); font: 500 19px var(--f-display); letter-spacing: -.5px; }
.infra-flow__detail { fill: var(--slate); font: 12px var(--f-body); }
.infra-flow__number { fill: var(--blue); font: 10px var(--f-mono); text-anchor: end; }
.infra-flow__packet { opacity: 0; will-change: transform; }
.infra__media figcaption { color: var(--slate); font-size: .64rem; line-height: 1.7; }

@media (max-width: 960px) {
  .infra__grid { grid-template-columns: 1fr; }
  .infra__media { position: static; }
  .infra-flow { max-height: none; max-width: 520px; margin-inline: auto; }
  .caps li { grid-template-columns: 40px 1fr; }
  .caps li p { grid-column: 2; }
}

/* ================================================================ 02 SEGURANÇA */
.ch--sec { background: var(--ink); color: var(--white); padding-bottom: calc(var(--section) * .8); }
.ch--sec .grid-lines { color: var(--white); }

.sec__band { overflow: hidden; margin-bottom: clamp(32px, 5vw, 72px); }
.sec__word {
  display: flex; align-items: center; gap: .3em; width: max-content;
  font-family: var(--f-display); font-weight: 600; letter-spacing: -.05em; line-height: 1;
  font-size: clamp(4rem, 13vw, 13rem);
  color: transparent; -webkit-text-stroke: 1px var(--white-16);
  transform: translateX(calc(10vw - var(--p, 0) * 60%));
  will-change: transform;
}
.sec__word .cut { width: .3em; height: .22em; opacity: .9; }

.sec__layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.sec__aside { position: sticky; top: 14vh; display: grid; gap: 28px; }
.sec__img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--p-corner); }
.sec__img img { width: 100%; height: 100%; object-fit: cover; }

.layers { display: grid; gap: 24px; padding-bottom: 32px; }
.layer {
  position: sticky; top: calc(14vh + var(--i) * 26px);
  min-height: clamp(300px, 38svh, 380px);
  display: grid; align-content: space-between; gap: 24px;
  padding: clamp(24px, 3vw, 44px);
  background: var(--ink-soft);
  border: 1px solid var(--white-10);
  border-radius: var(--p-corner);
  box-shadow: 0 -30px 60px -40px var(--black);
  overflow: hidden;
}
.layer::before { /* filete superior com gradiente — a "conexão" */
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: var(--grad); transform-origin: left; transform: scaleX(calc(.25 + var(--i) * .25));
}
.layer:nth-child(2) { background: var(--ink-raise); }
.layer:nth-child(3) { background: color-mix(in srgb, var(--ink) 82%, var(--white)); }
.layer:nth-child(4) { background: color-mix(in srgb, var(--ink) 76%, var(--blue)); }
.layer__n { color: var(--cyan); }
.layer p { color: var(--white-60); max-width: 44ch; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .5em .9em; border-radius: 3px 999px 999px 999px;
  border: 1px solid currentColor; opacity: .75;
}
.tags--light li { color: var(--slate); }

@media (max-width: 960px) {
  .sec__layout { grid-template-columns: 1fr; }
  .sec__aside { position: static; }
  .layer { min-height: auto; position: relative; top: auto; }
}

/* ================================================================ 03 OPERAÇÃO */
.ch--ops { background: var(--mist); padding-bottom: var(--section); }
.ops__head { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--gap); align-items: end; margin-bottom: clamp(40px, 6vw, 80px); }
.ops__head h2 { max-width: 12ch; }

.hscroll { position: relative; }
.hscroll__sticky { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hscroll__track {
  display: flex; gap: clamp(16px, 2vw, 28px); width: max-content;
  padding-inline: var(--pad);
  transform: translate3d(calc(var(--p, 0) * var(--dist, 0px) * -1), 0, 0);
  will-change: transform;
}
.hscroll__bar { margin: 32px var(--pad) 0; height: 2px; background: var(--ink-14); border-radius: 2px; overflow: hidden; }
  .hscroll__bar span { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(var(--p, 0)); }

.op-card {
  position: relative; flex: none;
  width: min(80vw, 460px); height: min(66svh, 560px);
  display: grid; grid-template-rows: auto 1fr auto auto; gap: 20px;
  padding: clamp(24px, 2.6vw, 40px);
  border-radius: var(--p-corner);
  overflow: hidden;
  transition: transform .6s var(--ease);
}
.op-card:hover { transform: translateY(-8px); }
.op-card__n { font-family: var(--f-display); font-weight: 600; font-size: clamp(3rem, 6vw, 5.5rem); letter-spacing: -.06em; line-height: .8; }
.op-card__icon { width: 56px; height: 56px; align-self: end; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.op-card p { opacity: .75; margin-top: 10px; max-width: 34ch; }
.op-card--white { background: var(--white); }
.op-card--white .op-card__n { color: transparent; -webkit-text-stroke: 1px var(--ink); }
.op-card--ink { background: var(--ink); color: var(--white); }
.op-card--ink .op-card__n { color: var(--cyan); }
.op-card--grad { background: var(--grad-readable); color: var(--white); }
.op-card--mist { background: transparent; box-shadow: inset 0 0 0 1px var(--ink-14); }
.op-card--mist .op-card__n { color: var(--blue); }
.op-card--bridge { width: min(86vw, 640px); background: transparent; align-content: center; grid-template-rows: auto auto; }
.op-card--bridge .h-l { max-width: 14ch; }

.index { margin-top: var(--section); display: grid; grid-template-columns: 1fr 2fr; gap: var(--gap); }
.index__head { position: sticky; top: 14vh; align-self: start; display: grid; gap: 16px; }
.index__muted { color: var(--slate); }
.index__list { border-top: 1px solid var(--ink-14); }
.index__list a {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 56px 1fr 1.2fr 24px; gap: 16px; align-items: center;
  padding: 20px 12px; border-bottom: 1px solid var(--ink-14);
  transition: color .4s, padding .5s var(--ease);
}
.index__list a::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  clip-path: inset(0 100% 0 0 round 3px 18px 18px 18px);
  transition: clip-path .6s var(--ease);
}
.index__list a:hover, .index__list a:focus-visible { color: var(--white); padding-left: 24px; }
.index__list a:hover::before, .index__list a:focus-visible::before { clip-path: inset(0 0 0 0 round 3px 18px 18px 18px); }
.index__list .mono { color: var(--blue); }
.index__list a:hover .mono { color: var(--cyan); }
.index__list strong { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.3rem, 2.2vw, 2rem); letter-spacing: -.03em; }
.index__list em { font-style: normal; color: var(--slate); font-size: .95rem; }
.index__list a:hover em { color: var(--white-60); }
.index__list svg { width: 20px; height: 20px; opacity: 0; transform: translate(-6px, 6px); transition: opacity .4s, transform .5s var(--ease); }
.index__list a:hover svg { opacity: 1; transform: none; color: var(--cyan); }

@media (max-width: 960px) {
  .ops__head, .index { grid-template-columns: 1fr; }
  .index__head { position: static; }
  .index__list a { grid-template-columns: 40px 1fr 20px; }
  .index__list em { display: none; }
}

/* ================================================================ PORTAL — zoom pelo símbolo */
.portal { position: relative; height: 190svh; background: var(--mist); }
.portal__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.portal__words {
  position: absolute; inset: max(100px, 14svh) 0 auto; display: flex; justify-content: center; align-items: center; gap: .25em;
  padding-inline: var(--pad); pointer-events: none;
  font-size: clamp(2rem, 4.5vw, 5rem); opacity: calc(1 - var(--title, 0));
}
.portal__l, .portal__r { display: block; will-change: transform; }
.portal__l { transform: translateX(calc(var(--split, 0) * -4vw)); }
.portal__r { transform: translateX(calc(var(--split, 0) * 4vw)); }
.portal__r { background: var(--text-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.portal__mark {
  position: absolute; top: 63%; left: 50%; translate: -50% -50%;
  width: min(30svh, 30vw); height: auto; aspect-ratio: 1; object-fit: contain;
  transform: scale(var(--s, 1)); transform-origin: center;
  opacity: calc(1 - var(--title, 0) * .25); z-index: 1;
  will-change: transform;
}
.portal__veil { position: absolute; inset: 0; background: var(--ink); opacity: var(--veil, 0); pointer-events: none; }
.portal__title {
  position: absolute; inset: max(100px, 14svh) var(--pad) auto; display: grid; place-content: center; text-align: center; gap: 16px; z-index: 2;
  color: var(--white); opacity: var(--title, 0);
  transform: translateY(calc((1 - var(--title, 0)) * 40px));
}
.portal__title .display { font-size: clamp(2.4rem, 5.5vw, 5.5rem); }
.portal__title .eyebrow { justify-self: center; color: var(--white-60); }
@media (max-width: 860px) {
  .portal { height: 175svh; }
  .portal__mark { width: min(30svh, 46vw); top: 62%; }
  .portal__words { font-size: clamp(1.4rem, 6.3vw, 3rem); }
}
/* O PNG completo não herda a altura intrínseca como uma dimensão fixa. */
.menu__mark, .mark-bleed, .contact__mark, .footer__mark { height: auto; object-fit: contain; }
@media (prefers-reduced-motion: reduce) {
  .portal { height: 100svh; background: var(--ink); }
  .portal__sticky { position: relative; }
  .portal__words { display: none; }
  .portal__mark { transform: none; opacity: 1; }
  .portal__veil { opacity: 1; }
  .portal__title { opacity: 1; transform: none; }
}

/* ================================================================ PRODUTOS */
.products { position: relative; background: var(--ink); color: var(--white); padding: clamp(40px, 6vw, 80px) 0 var(--section); }
.products__intro { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--gap); align-items: end; margin-bottom: clamp(32px, 4vw, 64px); }
.products__intro h2 { max-width: 11ch; }
.products__list { border-top: 1px solid var(--white-16); }
.products__list a {
  display: grid; grid-template-columns: 90px 1fr 1fr 40px; gap: 16px; align-items: center;
  padding: clamp(24px, 3vw, 40px) 0; border-bottom: 1px solid var(--white-16);
  transition: padding .5s var(--ease);
}
.products__list a:hover { padding-left: 16px; }
.products__list .mono { color: var(--cyan); }
.products__list strong { line-height: 0; min-width: 0; }
.products__list .brand-logo { width: clamp(160px, 22vw, 300px); }
.products__list em { font-style: normal; color: var(--white-60); }
.products__list svg { width: 32px; height: 32px; transition: transform .5s var(--ease); }
.products__list a:hover svg { transform: translateX(8px); color: var(--cyan); }
@media (max-width: 860px) {
  .products__intro { grid-template-columns: 1fr; }
  .products__list a { grid-template-columns: 1fr 32px; }
  .products__list .mono, .products__list em { grid-column: 1; }
  .products__list strong { grid-row: 2; }
  .products__list svg { grid-row: 2; grid-column: 2; }
}

/* ================================================================ LIGGO — personalidade conversacional, escura, ciano */

.byline { display: inline-flex; align-items: center; gap: 8px; color: var(--white-60); }
.byline .inline-mark { width: 18px; height: 18px; }
.onb .byline { color: var(--slate); }

.liggo { position: relative; height: 200svh; background: var(--black); color: var(--white); }
.liggo__sticky {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center;
  padding: 90px var(--pad) 40px;
  background:
    radial-gradient(circle at 75% 55%, color-mix(in srgb, var(--cyan) 16%, transparent), transparent 45%),
    radial-gradient(color-mix(in srgb, var(--white) 9%, transparent) 1px, transparent 1.5px) 0 0 / 22px 22px,
    var(--black);
}
.liggo__bg {
  position: absolute; left: -2vw; bottom: -6vw; pointer-events: none;
  width: 88vw; opacity: .08;
  transform: translateX(calc(var(--p, 0) * -12vw));
}
.liggo__bg img { width: 100%; height: auto; }
.liggo__info { position: relative; z-index: 2; display: grid; gap: clamp(18px, 2.4vw, 32px); max-width: 560px; }
.liggo__logo { line-height: 0; }
.liggo__logo .brand-logo { width: clamp(210px, 31vw, 420px); }
.liggo__lead { font-size: clamp(1.05rem, 1.3vw, 1.25rem); color: var(--white-60); max-width: 40ch; }
.liggo__lead strong { color: var(--white); font-weight: 600; }

.liggo__steps { display: grid; gap: 2px; border-left: 1px solid var(--white-16); }
.liggo__steps li {
  position: relative; display: flex; gap: 14px; align-items: baseline;
  padding: 8px 0 8px 20px;
  font-family: var(--f-display); font-size: clamp(1rem, 1.4vw, 1.3rem); letter-spacing: -.02em;
  color: color-mix(in srgb, var(--white) 32%, transparent);
  transition: color .4s, padding .5s var(--ease);
}
.liggo__steps li .mono { color: inherit; }
.liggo__steps li::before {
  content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px;
  background: var(--cyan); transform: scaleY(0); transition: transform .5s var(--ease);
}
.liggo__steps li.is-active { color: var(--white); padding-left: 28px; }
.liggo__steps li.is-active::before { transform: scaleY(1); }
.liggo__steps li.is-done { color: var(--white-60); }
.liggo__ctas { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

.liggo__device { position: relative; z-index: 2; justify-self: center; }
/* O mockup acompanha o scroll da página; não é uma superfície de scroll. */
.liggo__device { touch-action: pan-y pinch-zoom; }
.phone {
  width: min(360px, 78vw); height: min(640px, 72svh);
  display: flex; flex-direction: column;
  background: var(--ink); border-radius: 44px; padding: 10px;
  box-shadow: 0 0 0 1px var(--white-16), 0 60px 120px -40px color-mix(in srgb, var(--cyan) 35%, transparent);
}
.phone__bar {
  display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px;
  border-bottom: 1px solid var(--white-10);
}
.phone__bar strong { display: block; font-size: .95rem; font-family: var(--f-display); }
.phone__bar small { display: inline-flex; align-items: center; gap: 6px; color: var(--white-60); font-size: .75rem; }
.phone__avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--grad); font-family: var(--f-display); font-weight: 700; }
.verified { width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); display: inline-block; mask: radial-gradient(circle, transparent 0 2px, black 2.5px); }

.chat {
  flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px;
  padding: 16px 12px; overflow: hidden; overscroll-behavior: auto;
  touch-action: pan-y pinch-zoom;
  background: radial-gradient(color-mix(in srgb, var(--white) 5%, transparent) 1px, transparent 1.5px) 0 0 / 16px 16px;
  border-radius: 0 0 34px 34px;
}
.chat__day { align-self: center; color: var(--white-60); background: var(--white-10); padding: 4px 10px; border-radius: 99px; }
.chat > * { flex-shrink: 0; }
.chat:focus-visible { outline: 2px solid var(--cyan); outline-offset: -3px; }
/* Somente a composição demonstrativa: CTAs reais são irmãos, fora do device. */
@media (any-pointer: coarse) {
  .liggo__device .phone, .liggo__device .float { pointer-events: none; }
}
.msg {
  position: relative; max-width: 84%; padding: 10px 14px 18px; font-size: .88rem; line-height: 1.4;
  border-radius: 18px;
}
.msg time { position: absolute; right: 12px; bottom: 4px; font-size: .62rem; opacity: .6; }
.msg--in { align-self: flex-start; background: var(--ink-raise); border-top-left-radius: 4px; }
.msg--out { align-self: flex-end; background: color-mix(in srgb, var(--blue) 70%, var(--ink)); border-top-right-radius: 4px; }
.msg--human { background: color-mix(in srgb, var(--cyan) 22%, var(--ink)); }
.msg--human b { display: block; font-size: .72rem; color: var(--cyan); margin-bottom: 2px; }
.msg--file .file {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 8px 10px;
  background: color-mix(in srgb, var(--ink) 40%, transparent); border-radius: 10px; font-size: .78rem;
}
.msg--file .file b { font-size: .6rem; background: var(--white); color: var(--blue); padding: 3px 5px; border-radius: 4px; }
.msg--file .file small { opacity: .6; margin-left: auto; }
.msg--typing { align-self: flex-end; display: flex; gap: 4px; padding: 12px 14px; background: color-mix(in srgb, var(--blue) 70%, var(--ink)); }
.msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--white); animation: typing 1s infinite; }
.msg--typing i:nth-child(2) { animation-delay: .15s; }
.msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 50% { opacity: .3; transform: translateY(-2px); } }
.chip {
  align-self: center; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: .64rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 3px 99px 99px 99px;
  color: var(--cyan); border: 1px solid color-mix(in srgb, var(--cyan) 40%, transparent);
}
.chip .cut { width: 9px; height: 6px; }

/* Mensagens surgem conforme o scroll (JS adiciona .show) */
.js .liggo [data-at] { display: none; }
.js .liggo [data-at].show { display: flex; animation: pop .55s var(--ease) both; }
.js .liggo .msg[data-at].show { display: block; }
.js .liggo .msg--typing[data-at].show { display: flex; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.96); } }

.float {
  position: absolute; z-index: 3; display: grid; gap: 8px;
  padding: 16px 18px; min-width: 210px;
  background: color-mix(in srgb, var(--ink) 80%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--white-16); border-radius: var(--p-corner);
  font-size: .85rem;
}
.float .mono { color: var(--cyan); }
.float--erp { left: 50%; top: -64px; translate: -50% 0; padding: 10px 14px; }
.float--panel { right: calc(100% + 20px); bottom: 0; min-width: 230px; }
.js .liggo .float[data-at].show { display: grid; }
.ok { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--cyan); color: var(--ink); vertical-align: -4px; margin-right: 6px; }
.ok svg { width: 12px; height: 12px; }
.panel__row { display: flex; justify-content: space-between; gap: 16px; color: var(--white-60); }
.panel__row b { color: var(--white); font-family: var(--f-display); }
.panel__bar { height: 4px; background: var(--white-10); border-radius: 4px; overflow: hidden; }
.panel__bar i { display: block; height: 100%; width: calc(var(--w) * 100%); background: var(--grad); }
.panel__note { font-size: .65rem; color: var(--white-60); opacity: .7; }

@media (max-width: 860px) {
  .liggo { height: 180svh; }
  .liggo__sticky { grid-template-columns: 1fr; align-content: start; padding-top: 84px; gap: 16px; }
  .liggo__logo .brand-logo { width: 210px; }
  .liggo__lead, .liggo__ctas .byline, .liggo .eyebrow { display: none; }
  .liggo__steps { display: none; }
  .phone { height: 58svh; width: min(340px, 86vw); }
  .float { display: none !important; }
}

/* Em paisagem, duas colunas preservam o mockup inteiro sem aumentar o
   percurso da narrativa. Em telefones baixos, a janela acompanha o espaço
   disponível; o renderer existente continua trazendo a mensagem atual. */
@media (min-width: 600px) and (max-width: 860px) and (max-height: 650px) {
  .liggo__sticky { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-content: center; gap: 20px; padding-bottom: 24px; }
  .phone { width: min(340px, 42vw); height: min(58svh, calc(100svh - 120px)); }
}
@media (max-width: 599px) and (max-height: 650px) {
  .phone { height: min(58svh, calc(100svh - 280px)); }
}

/* Fallbacks completos: leitura natural, sem sticky longo nem mensagens ocultas. */
html:is(:not(.js), .reduced-motion) .liggo { height: auto; }
html:is(:not(.js), .reduced-motion) .liggo__sticky { position: relative; height: auto; min-height: 100svh; overflow: visible; }
html:is(:not(.js), .reduced-motion) .phone { height: auto; }
html:is(:not(.js), .reduced-motion) .chat { overflow: visible; }
html:is(:not(.js), .reduced-motion) .liggo .msg[data-at] { display: block; animation: none; }
html:is(:not(.js), .reduced-motion) .liggo .chip[data-at] { display: inline-flex; animation: none; }
html:is(:not(.js), .reduced-motion) .liggo .float[data-at] { display: grid; animation: none; }
html:is(:not(.js), .reduced-motion) .liggo .msg--typing[data-at] { display: none; }
html.reduced-motion .infra-flow__node { opacity: 1; transform: none; transition: none; }
html.reduced-motion .infra-flow__signals path { opacity: .8; transition: none; }
html.reduced-motion .infra-flow__packet { display: none; }
html.reduced-motion .infra__media { position: static; }
html.reduced-motion .liggo__bg { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .liggo { height: auto; }
  .liggo__sticky { position: relative; height: auto; min-height: 100svh; overflow: visible; }
  .phone { height: auto; }
  .chat { overflow: visible; }
  .js .liggo .msg[data-at] { display: block; animation: none; }
  .js .liggo .chip[data-at] { display: inline-flex; animation: none; }
  .js .liggo .float[data-at] { display: grid; animation: none; }
  .js .liggo .msg--typing[data-at] { display: none; }
  .infra__media { position: static; }
  .js .infra-flow__node { opacity: 1; transform: none; transition: none; }
  .infra-flow__signals path { opacity: .8; transition: none; }
  .infra-flow__packet { display: none; }
  .liggo__bg { transform: none; }
}

/* ================================================================ ONBOARDY — papel, precisão, tinta azul */
.onb { position: relative; background: var(--mist); padding-block: var(--section); overflow: clip; }
.onb__head { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--gap); align-items: end; margin-bottom: clamp(36px, 5vw, 72px); }
.onb__logo {
  position: relative; display: inline-block; margin-top: 18px;
  line-height: 0;
}
.onb__logo .brand-logo { width: clamp(240px, 34vw, 460px); }
.onb__intro { display: grid; gap: 20px; }
.onb__intro > p:not(.h-m) { color: var(--slate); max-width: 52ch; }
.onb__muted { color: var(--slate); }

.onb__stage {
  display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: clamp(20px, 3vw, 48px); align-items: center;
}
.onb__check, .onb__flow {
  background: var(--white); border-radius: var(--p-corner); padding: clamp(20px, 2.4vw, 32px);
  box-shadow: 0 1px 0 var(--ink-08);
}
.onb__check-head { display: grid; gap: 6px; margin-bottom: 18px; }
.onb__check-head .mono { color: var(--slate); }
.onb__count { font-family: var(--f-display); font-size: 1.15rem; letter-spacing: -.02em; }
.onb__count b { font-weight: 600; color: var(--blue); }
.onb__progress { height: 3px; background: var(--mist); border-radius: 3px; overflow: hidden; }
.onb__progress i { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(var(--docs, 0)); transition: transform .5s var(--ease); }
.onb__check li {
  display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--ink-08);
  font-size: .95rem; color: var(--slate); transition: color .3s;
}
.onb__check .box {
  flex: none; width: 22px; height: 22px; display: grid; place-items: center;
  border: 1.5px solid var(--ink-14); border-radius: 3px 8px 8px 8px;
  transition: background .35s, border-color .35s;
}
.onb__check .box svg { width: 14px; height: 14px; color: var(--white); opacity: 0; transform: scale(.4); transition: opacity .3s, transform .4s var(--ease); }
.onb__check li.on { color: var(--ink); }
.onb__check li.on .box { background: var(--blue); border-color: var(--blue); }
.onb__check li.on .box svg { opacity: 1; transform: none; }

.doc {
  position: relative; aspect-ratio: 1 / 1.3;
  background: var(--white); border-radius: 3px 14px 14px 14px;
  padding: clamp(22px, 3vw, 44px);
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 50px 100px -50px color-mix(in srgb, var(--ink) 45%, transparent), 0 0 0 1px var(--ink-08);
  transform: rotate(calc(-2deg + var(--p, 0) * 3deg));
}
.doc__head { display: flex; justify-content: space-between; gap: 8px; color: var(--slate); }
.doc__status { display: inline-flex; align-items: center; gap: 6px; }
.doc__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--slate); transition: background .4s; }
.doc.is-signed .doc__status { color: var(--blue); }
.doc.is-signed .doc__status i { background: var(--cyan); }
.doc__title { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.2rem, 1.8vw, 1.6rem); letter-spacing: -.03em; line-height: 1.15; }
.doc__lines { display: grid; gap: 9px; }
.doc__lines i { display: block; height: 6px; width: calc(var(--w, 1) * 100%); background: var(--mist); border-radius: 3px; }
.doc__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.doc__fields .mono { color: var(--slate); font-size: .62rem; }
.doc__fields p { font-family: var(--f-display); font-weight: 500; font-size: .95rem; border-bottom: 1px solid var(--ink-14); padding-bottom: 6px; }
.doc__sign { margin-top: auto; }
.doc__sig { width: 72%; height: auto; overflow: visible; }
.doc__sig path { fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: var(--sig, 1); }
.doc__sign-line { height: 1px; background: var(--ink); opacity: .4; margin-top: -6px; }
.doc__sign .mono { color: var(--slate); margin-top: 6px; font-size: .6rem; }

.stamp {
  position: absolute; right: clamp(-40px, -3vw, -16px); bottom: 22%;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; max-width: 250px;
  background: var(--ink); color: var(--white);
  border-radius: 3px 16px 16px 16px;
  box-shadow: 0 24px 48px -20px color-mix(in srgb, var(--ink) 60%, transparent);
  opacity: 0; transform: translateY(16px) scale(.92) rotate(-3deg);
  transition: opacity .5s, transform .7s var(--ease);
}
.doc.is-signed .stamp { opacity: 1; transform: rotate(-3deg); }
.stamp > img { width: 34px; height: 34px; flex: none; object-fit: contain; }
.stamp p { font-size: .72rem; line-height: 1.35; }
.stamp .mono { color: var(--cyan); font-size: .6rem; }
.stamp__hash { color: var(--white-60) !important; }

.onb__flow { display: grid; gap: 0; position: relative; }
.onb__flow li {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 0;
  font-family: var(--f-display); font-size: 1rem; letter-spacing: -.01em; color: var(--slate);
  transition: color .4s;
}
.onb__flow li span {
  position: relative; flex: none; width: 12px; height: 12px; border-radius: 50%;
  border: 1.5px solid var(--ink-14); background: var(--white); transition: background .4s, border-color .4s, box-shadow .4s;
}
.onb__flow li:not(:last-child) span::after { /* haste conectando etapas */
  content: ""; position: absolute; left: 50%; top: 100%; width: 1.5px; height: 40px; translate: -50% 0;
  background: var(--ink-14);
}
.onb__flow li.on { color: var(--ink); }
.onb__flow li.on span { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 5px color-mix(in srgb, var(--blue) 14%, transparent); }
.onb__flow li.on:not(:last-child) span::after { background: var(--blue); }

.onb__foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: clamp(32px, 4vw, 56px); justify-content: center; }

@media (max-width: 1100px) {
  .onb__stage { grid-template-columns: 1fr 1fr; }
  .onb__flow { grid-column: 1 / -1; grid-template-columns: repeat(5, 1fr); }
  .onb__flow li { flex-direction: column; align-items: flex-start; font-size: .85rem; }
  .onb__flow li span::after { display: none; }
}
@media (max-width: 760px) {
  .onb__head, .onb__stage { grid-template-columns: 1fr; }
  .onb__flow { grid-template-columns: 1fr; }
  .onb__flow li { flex-direction: row; align-items: center; }
  .doc { order: -1; }
  .stamp { right: 8px; }
}

/* ================================================================ 05 EXPERIÊNCIA */
.trust { position: relative; background: var(--white); padding-block: var(--section); }
.trust__title { max-width: 14ch; margin-bottom: clamp(36px, 5vw, 72px); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink-14); margin: 0; }
.stat { display: flex; flex-direction: column-reverse; gap: 12px; padding: 28px 24px 28px 0; border-right: 1px solid var(--ink-14); }
.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: 0; }
.stat dt { color: var(--slate); font-size: .95rem; }
.stat dd { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(3.4rem, 8vw, 8rem); letter-spacing: -.06em; line-height: .9; }
.stat:nth-child(odd) dd { background: var(--text-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-top: clamp(40px, 5vw, 80px); }
.principle { display: grid; gap: 12px; align-content: start; padding-top: 20px; border-top: 2px solid var(--ink); }
.principle:nth-child(2) { margin-top: 48px; }
.principle:nth-child(4) { margin-top: 48px; }
.principle .mono { color: var(--blue); }
.principle h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -.03em; line-height: 1.15; }
.principle p { color: var(--slate); }

.process { margin-top: var(--section); display: grid; gap: 40px; }
.process__line { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.process__line::before {
  content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--grad);
  transform-origin: left; transform: scaleX(0); transition: transform 2s var(--ease-io);
}
.process__line.is-in::before { transform: scaleX(1); }
.process__line li { position: relative; display: grid; gap: 10px; padding-top: 36px; }
.process__node {
  position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--blue);
  transform: scale(0); transition: transform .6s var(--ease);
}
.process__line.is-in li:nth-child(1) .process__node { transform: scale(1); transition-delay: .2s; }
.process__line.is-in li:nth-child(2) .process__node { transform: scale(1); transition-delay: .7s; }
.process__line.is-in li:nth-child(3) .process__node { transform: scale(1); transition-delay: 1.2s; }
.process__line.is-in li:nth-child(4) .process__node { transform: scale(1); transition-delay: 1.7s; background: var(--blue); }
.process__line b { font-family: var(--f-display); font-size: 1.25rem; letter-spacing: -.02em; }
.process__line p { color: var(--slate); font-size: .95rem; max-width: 28ch; }

@media (max-width: 960px) {
  .stats, .principles { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--ink-14); }
  .principle:nth-child(n) { margin-top: 0; }
  .process__line { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .process__line::before { display: none; }
}

/* ================================================================ 06 CONTATO */
.contact { position: relative; overflow: clip; background: var(--ink); color: var(--white); padding: var(--section) 0; }
.contact__mark { position: absolute; right: -14vw; bottom: -20vw; width: min(70vw, 900px); opacity: .9; pointer-events: none;
  -webkit-mask-image: linear-gradient(to top left, black 20%, transparent 75%); mask-image: linear-gradient(to top left, black 20%, transparent 75%); }
.contact .wrap { position: relative; z-index: 1; }
.contact__title { font-size: var(--fs-mega); max-width: 10ch; margin: 24px 0 clamp(32px, 4vw, 64px); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 6vw, 120px); align-items: start; }
.contact__channels { display: grid; gap: 32px; }
.contact__channels ul { display: grid; gap: 18px; }
.contact__channels li { display: grid; gap: 4px; }
.contact__channels .mono { color: var(--white-60); }
.contact__channels a { font-size: clamp(1.1rem, 1.6vw, 1.5rem); justify-self: start; }

.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px;
  padding: clamp(24px, 3vw, 44px);
  background: color-mix(in srgb, var(--ink) 70%, transparent);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid var(--white-16); border-radius: var(--p-corner);
}
.form__interest { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.form__interest input { position: absolute; opacity: 0; pointer-events: none; }
.form__interest span {
  display: inline-block; padding: .65em 1.1em; border-radius: 3px 99px 99px 99px;
  border: 1px solid var(--white-16); font-family: var(--f-display); font-size: .9rem; cursor: pointer;
  transition: background .3s, border-color .3s, color .3s;
}
.form__interest input:checked + span { background: var(--white); color: var(--ink); border-color: var(--white); }
.form__interest input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }

.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--white-16);
  padding: 22px 0 10px; outline: none; resize: vertical; border-radius: 0;
  transition: border-color .3s;
}
.field label {
  position: absolute; left: 0; top: 22px; color: var(--white-60); pointer-events: none;
  transform-origin: left; transition: transform .35s var(--ease), color .3s;
}
.field input:focus, .field textarea:focus { border-color: var(--cyan); }
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-22px) scale(.78); color: var(--cyan);
}
.field input:user-invalid { border-color: var(--cyan); }
.form__submit { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form__status { color: var(--cyan); font-size: .95rem; }

@media (max-width: 960px) {
  .contact__grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
}

/* ================================================================ T014–T020 */
/* Só os alvos assumidos pelo GSAP perdem as transições CSS correspondentes. */
.js .section-reveal.rv { opacity: 1; transform: none; transition: none; }
.js .section-reveal[data-split] .wi { transform: none; transition: none; }
.js .section-reveal[data-split] .grad .wi {
  background: var(--text-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.js .section-reveal.mask-reveal { clip-path: none; transition: none; }
.js .section-reveal.mask-reveal img { transform: none; transition: none; }
.js .motion-rule { transform: none; transition: none; }
.process--motion::before { transition-duration: .65s; }
.process--motion.is-in .process__node { transition-duration: .45s; }
.process--motion.is-in li:nth-child(1) .process__node { transition-delay: 0s; }
.process--motion.is-in li:nth-child(2) .process__node { transition-delay: .08s; }
.process--motion.is-in li:nth-child(3) .process__node { transition-delay: .16s; }
.process--motion.is-in li:nth-child(4) .process__node { transition-delay: .24s; }
@media (hover: hover) {
  .js .section-reveal.principle:hover { transform: translateY(-3px); transition: transform .4s var(--motion-ease-out), border-color .35s; }
}
.manifesto--motion .manifesto__text .w { transition: none; }
.sec__band--motion .sec__word { transform: none; }
.hscroll--motion .hscroll__track { transform: none; }
.hscroll:not(.hscroll--motion) { height: auto !important; }
:where(.hscroll:not(.hscroll--motion)) .hscroll__sticky { position: relative; height: auto; }
:where(.hscroll:not(.hscroll--motion)) .hscroll__track { width: 100%; overflow-x: auto; transform: none !important; }
:where(.hscroll:not(.hscroll--motion)) .hscroll__bar { display: none; }
/* Fallback: uma máscara 100% fechada não entra no IntersectionObserver. */
.js .mask-reveal:not(.section-reveal) { clip-path: none; }
.js .mask-reveal:not(.section-reveal) img { transform: none; }

/* T020: gradientes sobre o fundo, sem margem, spacer ou altura extra. */
.manifesto { --boundary-from: var(--ink); }
.ch--sec { --boundary-from: var(--white); }
.ch--ops { --boundary-from: var(--ink); }
.onb { --boundary-from: var(--black); }
.contact { --boundary-from: var(--white); }
:is(.manifesto, .ch--sec, .ch--ops, .onb, .contact)::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: clamp(80px, 8vw, 128px); pointer-events: none;
  background: linear-gradient(to bottom, var(--boundary-from), transparent);
}

@media (max-width: 960px) {
  /* T019: os mesmos cards, em trilha touch nativa, sem pin nem scroll vertical extra. */
  .hscroll { height: auto !important; }
  .hscroll__sticky { position: relative; height: auto; display: block; padding-block: 16px; }
  .hscroll__track {
    width: 100%; overflow-x: auto; transform: none !important;
    scroll-snap-type: x proximity; overscroll-behavior-x: contain;
    overscroll-behavior-y: auto; touch-action: pan-x pan-y pinch-zoom;
    scrollbar-width: thin; scrollbar-color: var(--blue) transparent;
    padding-block: 12px 20px; scroll-padding-inline: var(--pad);
    will-change: auto;
  }
  .op-card { scroll-snap-align: start; height: auto; min-height: min(560px, 64svh); }
  .hscroll__bar { display: none; }
}

/* Estado estático completo, inclusive antes da inicialização das bibliotecas. */
html.reduced-motion .rv, html.reduced-motion [data-split] .wi { opacity: 1 !important; transform: none !important; }
html.reduced-motion .mask-reveal { clip-path: none !important; }
html.reduced-motion .mask-reveal img { transform: none !important; }
html:is(:not(.js), .reduced-motion) .stem-rule { transform: scaleX(1); }
html:is(:not(.js), .reduced-motion) .manifesto { height: auto; padding-block: var(--section); }
html:is(:not(.js), .reduced-motion) .manifesto__sticky { position: relative; height: auto; }
html:is(:not(.js), .reduced-motion) .manifesto__text .w { opacity: 1; }
html:is(:not(.js), .reduced-motion) .assemble__svg { opacity: 1; transform: none; }
html:is(:not(.js), .reduced-motion) .assemble__dot { background: var(--cyan); }
html:is(:not(.js), .reduced-motion) .hscroll { height: auto !important; }
html:is(:not(.js), .reduced-motion) .hscroll__sticky { position: relative; height: auto; }
html:is(:not(.js), .reduced-motion) .hscroll__track {
  width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  transform: none !important; overflow: visible; will-change: auto;
}
html:is(:not(.js), .reduced-motion) .op-card { width: auto; height: auto; min-height: 360px; }
html:is(:not(.js), .reduced-motion) .op-card--bridge { grid-column: 1 / -1; min-height: 220px; }
html:is(:not(.js), .reduced-motion) .hscroll__bar { display: none; }
html:is(:not(.js), .reduced-motion) :is(.layer, .sec__aside, .index__head) { position: relative; top: auto; }
html:is(:not(.js), .reduced-motion) .sec__word { transform: none; }
html:is(:not(.js), .reduced-motion) .doc { transform: none; }
html:is(:not(.js), .reduced-motion) .doc__sig path { stroke-dashoffset: 0; }
html:is(:not(.js), .reduced-motion) .stamp { opacity: 1; transform: none; }
html:is(:not(.js), .reduced-motion) .onb__progress i { transform: scaleX(1); }
html:is(:not(.js), .reduced-motion) .onb__check .box svg { opacity: 1; transform: none; }
html:is(:not(.js), .reduced-motion) .onb__check .box { background: var(--blue); border-color: var(--blue); }
html:is(:not(.js), .reduced-motion) .onb__check li { color: var(--ink); }
html:is(:not(.js), .reduced-motion) .onb__flow li { color: var(--ink); }
html:is(:not(.js), .reduced-motion) .onb__flow li span { background: var(--blue); border-color: var(--blue); }
html:is(:not(.js), .reduced-motion) .onb__flow li:not(:last-child) span::after { background: var(--blue); }
html:is(:not(.js), .reduced-motion) .doc__status { color: var(--blue); }
html:is(:not(.js), .reduced-motion) .doc__status i { background: var(--cyan); }
html:is(:not(.js), .reduced-motion) .process__line::before { transform: scaleX(1); }
html:is(:not(.js), .reduced-motion) .process__node { transform: scale(1); }
html:is(:not(.js), .reduced-motion) .portal { height: 100svh; background: var(--ink); }
html:is(:not(.js), .reduced-motion) .portal__sticky { position: relative; }
html:is(:not(.js), .reduced-motion) .portal__words { display: none; }
html:is(:not(.js), .reduced-motion) .portal__veil { opacity: 1; }
html:is(:not(.js), .reduced-motion) .portal__title { opacity: 1; transform: none; }
html:is(:not(.js), .reduced-motion) .portal__mark { transform: none; opacity: 1; }
@media (max-width: 960px) {
  html:is(:not(.js), .reduced-motion) .hscroll__track { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .manifesto { height: auto; padding-block: var(--section); }
  .manifesto__sticky { position: relative; height: auto; }
  .js .manifesto__text .w { opacity: 1; }
  .sec__word { transform: none; }
  .hscroll { height: auto !important; }
  .hscroll__sticky { position: relative; height: auto; }
  .hscroll__track { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); transform: none !important; overflow: visible; }
  .op-card { width: auto; height: auto; min-height: 360px; }
  .op-card--bridge { grid-column: 1 / -1; min-height: 220px; }
  .hscroll__bar { display: none; }
  .layer, .sec__aside, .index__head { position: relative; top: auto; }
  .doc { transform: none; }
  .doc__sig path { stroke-dashoffset: 0; }
  .stamp { opacity: 1; transform: none; }
  .onb__progress i { transform: scaleX(1); }
  .onb__check .box svg { opacity: 1; transform: none; }
  .onb__check .box { background: var(--blue); border-color: var(--blue); }
  .onb__flow li { color: var(--ink); }
  .onb__flow li span { background: var(--blue); border-color: var(--blue); }
  .process__line::before { transform: scaleX(1); }
  .process__node { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) and (max-width: 960px) {
  .hscroll__track { grid-template-columns: 1fr; }
}

/* T024–T029 — Prova social: marcas oficiais sobre branco, componente isolado. */
.ch--clients {
  background: #fff; color: var(--ink);
  padding-block: clamp(64px, 7vw, 112px) clamp(72px, 8vw, 128px);
  border-top: 1px solid var(--ink-08);
}
.ch--clients .chapter-head { margin-bottom: clamp(32px, 4vw, 56px); }
.ch--clients .chapter-head__num { font: 400 var(--fs-micro) var(--f-mono); color: var(--ink); -webkit-text-stroke: 0; letter-spacing: .1em; text-transform: uppercase; }
.clients__intro { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--gap); align-items: end; }
.clients__intro h2 { max-width: 20ch; }
.clients__intro .lead { max-width: 34ch; color: var(--slate); font-size: clamp(1rem, 1.5vw, 1.2rem); }
.clients__tools { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-block: 40px 24px; }
.clients__tools > .mono { color: var(--slate); font-size: var(--fs-micro); }
.clients__toggle {
  flex: none; color: var(--ink); padding: 6px 0; font: 500 .85rem var(--f-body);
  border-bottom: 1px solid var(--ink-14); cursor: pointer;
}
.clients__toggle[hidden] { display: none; }
.clients__stage { width: 100%; }
.clients__logos { margin: 0; padding: 0; list-style: none; }
.client-card {
  display: flex; align-items: center; justify-content: center; min-width: 0;
  min-height: 156px; padding: 16px 24px; background: #fff;
}
.client-card img { width: var(--logo-width); max-width: 100%; height: auto; object-fit: contain; }
.client-card:focus-visible { outline: 2px solid var(--blue); outline-offset: -4px; border-radius: 4px; }
.clients__stage--grid, .clients__stage[data-show-all="true"], .clients__stage:focus-within {
  max-width: var(--max); margin-inline: auto; padding-inline: var(--pad);
}
.clients__stage--grid > .clients__logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 24px; }
.clients__rail { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.clients__track { display: flex; width: max-content; animation: clients-drift var(--rail-duration, 106s) linear infinite; }
.clients__track .clients__logos { display: flex; gap: 24px; padding-right: 24px; flex: none; width: max-content; }
.clients__track .client-card { width: 320px; flex: none; }
.clients__track--reverse { animation-direction: reverse; }
.clients__stage--double .clients__rail + .clients__rail { margin-top: 8px; }
@keyframes clients-drift { to { transform: translate3d(calc(-1 * var(--rail-distance)), 0, 0); } }
.clients__track { animation-play-state: paused; }
.clients__stage[data-in-view="true"] .clients__track { animation-play-state: running; }
html.menu-open .clients__stage .clients__track,
.ch--clients:focus-within .clients__track,
.clients__stage[data-hidden="true"] .clients__track { animation-play-state: paused; }
@media (hover: hover) { .clients__stage:hover .clients__track { animation-play-state: paused; } }
/* Foco/controle exibe todos os originais. Nenhuma marca fica fora da máscara. */
.clients__stage:is([data-show-all="true"], :focus-within) .clients__rail { overflow: visible; mask-image: none; }
.clients__stage:is([data-show-all="true"], :focus-within) .clients__track { width: 100%; animation: none; transform: none; }
.clients__stage:is([data-show-all="true"], :focus-within) .clients__logos { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 24px; padding: 0; }
.clients__stage:is([data-show-all="true"], :focus-within) .client-card { width: auto; }
.clients__stage:is([data-show-all="true"], :focus-within) .clients__clone { display: none; }
@media (max-width: 960px) {
  .clients__intro { grid-template-columns: 1fr; gap: 24px; }
  .clients__tools { margin-top: 28px; }
  .clients__stage--grid > .clients__logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
  .client-card { min-height: 120px; padding: 12px 8px; }
  .client-card--wide { grid-column: 1 / -1; }
  .client-card--wide + .client-card { grid-column: 1 / -1; }
}
@media (max-width: 340px) { .clients__stage--grid > .clients__logos { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .clients__stage { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
  .clients__rail { overflow: visible; mask-image: none; }
  .clients__track { width: 100%; animation: none; transform: none; }
  .clients__track .clients__logos { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; }
  .clients__track .client-card { width: auto; }
  .clients__clone { display: none; }
}
