/* Empresa Capixaba — cinematic experience layer
   Progressive enhancement: the institutional site remains readable without JS. */

html { background: var(--ink); }
body { overflow-x: clip; }

.hero { isolation: isolate; }
.hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(105deg, rgba(10, 10, 10, .97) 0%, rgba(10, 10, 10, .78) 44%, rgba(10, 10, 10, .08) 76%);
  pointer-events: none;
}

.hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(440px, .95fr); }
.hero-copy { z-index: 8; }
.hero-visual { z-index: 4; max-width: 650px; }
.hero-image-frame { opacity: .66; border-radius: 48% 48% 18px 18px; }
.hero-image-frame img { object-position: 57% center; filter: saturate(.78) contrast(1.04); }
.hero-note, .hero-mark { z-index: 9; }

.hero-person {
  position: absolute;
  z-index: 7;
  right: -8%;
  bottom: -9%;
  width: 80%;
  pointer-events: none;
  filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .46));
  transform-origin: 50% 90%;
  will-change: transform;
}

.hero-person img { width: 100%; }

.kinetic-line {
  position: absolute;
  z-index: 3;
  inset: auto 0 0;
  width: 100%;
  height: 56%;
  overflow: visible;
  pointer-events: none;
}

.kinetic-line path,
.service-architecture path {
  fill: none;
  stroke: rgba(242, 45, 53, .5);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

/* Contêiner só do bloco de introdução dos serviços — não do <section>
   inteiro, que também tem o teatro de serviços com position:sticky lá
   embaixo. overflow:hidden num ancestral de um elemento sticky quebra o
   "grudar", então o corte fica isolado aqui. */
.services-intro-stage { position: relative; overflow: hidden; }

.mop-flyby {
  position: absolute;
  z-index: 10;
  left: 4vw;
  bottom: -6%;
  width: min(19vw, 300px);
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 15px 14px rgba(0, 0, 0, .2));
  transform: rotate(-33deg);
  transform-origin: 50% 80%;
  will-change: transform;
}

/* The image is revealed by a light band that behaves like a clean pass. */
.clean-reveal { position: relative; isolation: isolate; }
.clean-reveal::before {
  content: "";
  position: absolute;
  z-index: 4;
  inset: -8% -30%;
  background: linear-gradient(90deg, transparent 18%, rgba(255,255,255,.75) 46%, rgba(255,255,255,.16) 58%, transparent 78%);
  opacity: 0;
  transform: translate3d(-65%, 0, 0) skewX(-12deg);
  pointer-events: none;
}
.clean-reveal::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  background: rgba(17, 17, 17, .22);
  pointer-events: none;
  transition: opacity 1.1s var(--ease);
}
.clean-reveal.is-clean::before { animation: cleanPass 1.15s var(--ease) both; }
.clean-reveal.is-clean::after { opacity: 0; }
@keyframes cleanPass {
  0% { opacity: 0; transform: translate3d(-65%,0,0) skewX(-12deg); }
  20% { opacity: .9; }
  75% { opacity: .5; }
  100% { opacity: 0; transform: translate3d(75%,0,0) skewX(-12deg); }
}

/* Solutions */
.services-cinematic { padding-bottom: 0; background: #f5f2ec; }
.services-intro { padding-bottom: clamp(72px, 9vw, 136px); }
.service-panels { display: grid; gap: 24px; }
.service-panel {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  color: var(--white);
  background: #171819;
}
.service-backdrop { position: absolute; inset: 0; }
.service-backdrop::after { background: linear-gradient(90deg, rgba(10,10,10,.92), rgba(10,10,10,.5) 50%, rgba(10,10,10,.12)); }

/* Esta imagem ocupa a tela inteira (~1 megapixel) e o JS aplica scale nela
   a cada frame do scroll. Sem uma camada própria o navegador repinta esse
   megapixel inteiro em todo frame — era a maior causa de travamento.
   Com a promoção, o scale vira trabalho de composição (GPU). */
.service-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  backface-visibility: hidden;
}
.service-panel-copy {
  position: relative;
  z-index: 6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 720px;
  padding-block: 100px;
}
.service-panel-copy > * { max-width: 520px; }
.service-index { margin-bottom: 30px; color: rgba(255,255,255,.52); font-size: 11px; font-weight: 800; letter-spacing: .2em; }
.service-panel-copy .service-kicker { margin: 0 0 15px; color: rgba(255,255,255,.58); font-size: 10px; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.service-panel-copy h3 { margin: 0; font-size: clamp(62px, 8vw, 124px); font-weight: 590; letter-spacing: -.075em; line-height: .84; }
.service-panel-copy > p:not(.service-kicker) { margin: 30px 0 0; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.8; }
.service-panel-copy ul { display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 28px 0 0; list-style: none; }
.service-panel-copy li { padding: 9px 13px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; font-size: 10px; font-weight: 700; }
.service-object { position: absolute; z-index: 5; pointer-events: none; will-change: transform; }
/* Também recebe transform por frame (xPercent) — promovida pelo mesmo motivo.
   Contorno em vez de preenchimento cheio: no preenchimento fraco de antes
   (8% de opacidade) a palavra ficava ilegível sobre a foto. O traço fino
   e mais opaco lê como tipografia editorial de fundo — visível, mas sem
   competir com o título em primeiro plano. */
.service-word {
  position: absolute;
  z-index: 2;
  right: -2vw;
  bottom: -7vh;
  color: rgba(255,255,255,.05);
  -webkit-text-stroke: 1.5px rgba(255,255,255,.55);
  text-stroke: 1.5px rgba(255,255,255,.55);
  font-size: clamp(120px, 20vw, 340px);
  font-weight: 800;
  letter-spacing: -.1em;
  line-height: .75;
  white-space: nowrap;
  will-change: transform;
}
.service-architecture { position: absolute; z-index: 4; right: 3vw; bottom: 0; width: min(46vw, 660px); opacity: .62; }
.service-stage-head, .service-nav { display: none; }

@media (min-width: 901px) {
  .motion-ready .service-theatre { height: 300vh; }
  .motion-ready .service-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #171819; }
  .motion-ready .service-panels { display: block; height: 100%; }
  .motion-ready .service-panel { position: absolute; inset: 0; min-height: 100%; visibility: hidden; opacity: 0; }
  .motion-ready .service-panel.is-active { visibility: visible; opacity: 1; }
  .motion-ready .service-panel-copy { min-height: 100vh; min-height: 100svh; padding-top: 140px; padding-bottom: 120px; }
  .motion-ready .service-stage-head {
    position: absolute;
    z-index: 15;
    top: 112px;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255,255,255,.5);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .16em;
    text-transform: uppercase;
    transform: translateX(-50%);
  }
  .service-progress { width: 160px; height: 1px; overflow: hidden; background: rgba(255,255,255,.24); }
  .service-progress i { display: block; width: 100%; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; will-change: transform; }
  .motion-ready .service-nav {
    position: absolute;
    z-index: 15;
    right: 0;
    bottom: 33px;
    left: 0;
    display: flex;
    gap: 8px;
  }
  .service-nav button { padding: 11px 15px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: rgba(255,255,255,.5); background: rgba(17,17,17,.22); font-size: 10px; font-weight: 700; cursor: pointer; backdrop-filter: blur(10px); transition: .3s var(--ease); }
  .service-nav button span { margin-right: 6px; color: rgba(255,255,255,.35); }
  .service-nav button.is-active { color: var(--white); border-color: rgba(255,255,255,.52); background: rgba(255,255,255,.1); }
}

/* Spray interlude */
.hygiene-transition { position: relative; height: 135vh; overflow: hidden; color: var(--white); background: #151617; }
.hygiene-stage { position: sticky; top: 0; display: grid; grid-template-columns: 1fr .8fr; align-items: center; height: 100vh; height: 100svh; }
.hygiene-copy { position: relative; z-index: 4; }
.hygiene-line { margin: 34px 0 0; font-size: clamp(58px, 8vw, 130px); font-weight: 580; letter-spacing: -.078em; line-height: .86; }
.hygiene-line span, .hygiene-line strong { display: block; font-weight: inherit; }
.hygiene-line strong { color: var(--red); font-family: "DM Serif Display", Georgia, serif; font-weight: 400; }

/* O texto "sai borrifado" do bico do produto: --spray (0%→115%) é
   publicada por experience.js, presa ao mesmo scroll que move o frasco —
   o texto se materializa da direita (lado do bico) para a esquerda. A
   faixa vermelha fina no limite é o "respingo" do jato; some quando o
   texto termina de se formar. Reversível: sobe de novo, o texto recolhe. */
.hygiene-line {
  will-change: transform;
  -webkit-mask-image: linear-gradient(to left,
    #000 0%, #000 var(--spray, 100%),
    rgba(242,45,53,.55) calc(var(--spray, 100%) + 2%),
    transparent calc(var(--spray, 100%) + 9%));
  mask-image: linear-gradient(to left,
    #000 0%, #000 var(--spray, 100%),
    rgba(242,45,53,.55) calc(var(--spray, 100%) + 2%),
    transparent calc(var(--spray, 100%) + 9%));
}
.spray-scene { position: relative; z-index: 3; width: min(46vw, 650px); justify-self: end; }
.spray-scene::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(242,45,53,.18), transparent 68%); filter: blur(18px); }
.spray-scene img { position: relative; z-index: 2; width: 100%; filter: drop-shadow(0 24px 29px rgba(0,0,0,.46)); will-change: transform; }
.spray-particles { position: absolute; z-index: 1; top: 25%; left: -12%; width: 45%; height: 30%; transform: rotate(-18deg); }
.spray-particles i { position: absolute; width: var(--s, 7px); height: var(--s, 7px); border-radius: 50%; background: rgba(255,255,255,.8); opacity: 0; }
.spray-particles i:nth-child(1) { --s: 4px; left: 4%; top: 44%; }
.spray-particles i:nth-child(2) { --s: 7px; left: 17%; top: 26%; }
.spray-particles i:nth-child(3) { --s: 3px; left: 33%; top: 58%; }
.spray-particles i:nth-child(4) { --s: 6px; left: 45%; top: 16%; }
.spray-particles i:nth-child(5) { --s: 4px; left: 63%; top: 48%; }
.spray-particles i:nth-child(6) { --s: 8px; left: 76%; top: 24%; }
.spray-particles i:nth-child(7) { --s: 3px; left: 91%; top: 61%; }

/* Large object as punctuation between solutions and history. */
.cart-bridge { position: relative; height: 125vh; overflow: hidden; color: var(--ink); background: var(--paper); }
.cart-bridge-inner { position: sticky; top: 0; height: 100vh; height: 100svh; }
.cart-bridge p { position: absolute; z-index: 3; top: 16%; left: 0; max-width: 390px; margin: 0; font-size: clamp(24px, 2.6vw, 42px); font-weight: 620; letter-spacing: -.045em; line-height: 1.08; }
.cart-bridge p span { display: block; margin-bottom: 18px; color: var(--red); font-size: 10px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.cart-bridge img { position: absolute; z-index: 4; left: 50%; bottom: -13%; width: min(50vw, 680px); filter: drop-shadow(0 26px 25px rgba(20,20,20,.23)); transform: translateX(-50%); will-change: transform; }
.cart-bridge strong { position: absolute; z-index: 1; right: -3vw; bottom: 8%; color: rgba(17,17,17,.055); font-size: clamp(140px, 24vw, 390px); font-weight: 800; letter-spacing: -.1em; line-height: .7; }

/* History: true sticky alignment, fewer repeated dates and a calmer grid. */
.legacy { overflow: clip; padding-top: clamp(104px, 9vw, 148px); }
.legacy-grid {
  grid-template-columns: minmax(0, 1.04fr) minmax(470px, .96fr);
  gap: clamp(48px, 6vw, 92px);
}
.legacy-aside { top: calc(var(--header-height) + clamp(24px, 4vh, 44px)); }
.legacy-copy { max-width: 660px; }
.legacy-copy h2 { max-width: 660px; font-size: clamp(52px, 5vw, 76px); line-height: .91; }
.legacy-copy p:not(.eyebrow) { max-width: 590px; margin-top: 28px; margin-bottom: 30px; }
.story-figure-main { aspect-ratio: .96; }
.story-figure-small { width: min(82%, 500px); margin-left: 0; }
.story-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fact-origin strong { color: var(--red); font-family: "Manrope", sans-serif; font-weight: 760; letter-spacing: -.07em; }

/* Pointer enhancement; the native cursor remains available. */
.motion-cursor { position: fixed; z-index: 3000; top: 0; left: 0; width: 10px; height: 10px; border: 0; border-radius: 50%; pointer-events: none; opacity: 0; background: var(--red); transform: translate3d(-50%,-50%,0); transition: width .25s var(--ease), height .25s var(--ease), opacity .2s ease, background-color .2s ease; }
.motion-cursor::after { display: none; }
.motion-cursor span { position: absolute; inset: 50% auto auto 50%; color: #fff; font-size: 8px; font-weight: 800; letter-spacing: .1em; transform: translate(-50%,-50%); opacity: 0; }
.motion-cursor.is-visible { opacity: 1; }
.motion-cursor.is-label { width: 66px; height: 66px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.motion-cursor.is-label::after { opacity: 0; }
.motion-cursor.is-label span { color: #000; opacity: 1; }

@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(370px, .8fr); }
  .hero-person { right: -2%; width: 78%; }
  .legacy-grid { grid-template-columns: minmax(0, 1fr) minmax(430px, .94fr); gap: 56px; }
}

@media (max-width: 900px) {
  .hero::before { background: linear-gradient(180deg, rgba(10,10,10,.96) 0%, rgba(10,10,10,.62) 58%, rgba(10,10,10,.25)); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-person { right: -4%; width: 74%; }
  .hero-image-frame { opacity: .52; }
  .mop-flyby, .kinetic-line-hero { display: none; }

  .services-cinematic { padding-top: 96px; }
  .services-intro { padding-bottom: 64px; }
  .service-panels { gap: 18px; }
  .service-panel { min-height: 680px; border-radius: 0; }
  .service-panel-copy { min-height: 680px; padding-block: 72px; }
  .service-panel-copy h3 { font-size: clamp(54px, 14vw, 84px); }
  .service-word { bottom: 2%; font-size: 29vw; }
  .service-architecture { right: -18%; width: 76vw; }

  .hygiene-transition { height: auto; min-height: 760px; }
  .hygiene-stage { position: relative; grid-template-columns: 1fr; align-content: center; min-height: 760px; height: auto; padding-block: 90px; }
  .hygiene-line { font-size: clamp(50px, 14vw, 84px); }
  .spray-scene { position: absolute; right: -21%; bottom: -12%; width: min(76vw, 520px); opacity: .78; }
  .spray-particles { display: none; }

  .cart-bridge { height: auto; min-height: 760px; }
  .cart-bridge-inner { position: relative; min-height: 760px; height: auto; }
  .cart-bridge p { top: 84px; max-width: 320px; }
  .cart-bridge img { bottom: -10%; width: min(84vw, 570px); }
  .cart-bridge strong { right: -5%; bottom: 9%; font-size: 35vw; }
  .motion-cursor { display: none; }
  .legacy { overflow: hidden; }
  .legacy-grid { grid-template-columns: 1fr; gap: 54px; }
  .story-figure-small { width: min(100%, 520px); }
}

@media (max-width: 680px) {
  .hero-person { right: -24%; bottom: -6%; width: 95%; opacity: .88; }
  .hero-visual { margin-top: 8px; }
  .hero-note-top { display: none; }
  .service-panel { min-height: 610px; }
  .service-panel-copy { min-height: 610px; padding-block: 54px; }
  .service-panel-copy > * { max-width: 84%; }
  .service-panel-copy h3 { font-size: 15vw; }
  .service-panel-copy > p:not(.service-kicker) { margin-top: 20px; font-size: 12px; }
  .service-panel-copy ul { margin-top: 20px; }
  .service-panel-copy li { padding: 7px 10px; font-size: 8px; }
  .hygiene-stage, .hygiene-transition, .cart-bridge, .cart-bridge-inner { min-height: 660px; }
  .cart-bridge p { top: 62px; max-width: 74vw; }
  .cart-bridge img { width: 96vw; bottom: -13%; }
}

@media (prefers-reduced-motion: reduce) {
  .mop-flyby, .kinetic-line-hero, .spray-particles, .motion-cursor { display: none !important; }
  .hero-person, .service-object, .spray-scene img, .cart-bridge img { transform: none !important; }
  .clean-reveal::before { display: none; }
  .clean-reveal::after { opacity: 0; transition: none; }
  .hygiene-transition, .cart-bridge { height: auto; min-height: 720px; }
  .hygiene-stage, .cart-bridge-inner { position: relative; min-height: 720px; height: auto; }
}
