/* ============================================================
   STORM STUDIO — handoff design × v2 motor cinematográfico
   dark storm-tech · storm global reativo · GSAP + ScrollTrigger + Lenis
   ============================================================ */

:root {
  --bg: #05060a;
  --bg-soft: #0a0c14;
  --surface: #0d1019;
  --line: rgba(140, 160, 220, .12);
  --line-strong: rgba(140, 160, 220, .22);
  --text: #e8eaf2;
  --text-dim: #9aa0b4;
  --text-faint: #868ea3;
  --err: #ff9b9b;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --flash: #e0f2ff;
  --grad: linear-gradient(100deg, #e0f2ff 0%, #22d3ee 35%, #8b5cf6 80%);
  --fd: 'Space Grotesk', system-ui, sans-serif;
  --fm: 'JetBrains Mono', ui-monospace, monospace;
  --pad: clamp(1.25rem, 5vw, 6rem);
  --ease: cubic-bezier(.22, 1, .36, 1);
  /* intensidade da tempestade — atualizada pelo JS conforme a velocidade do scroll */
  --storm-charge: 0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Lenis controla o scroll; com smooth ativo desligamos o smooth nativo */
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--fd);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(34, 211, 238, .35); color: var(--flash); }
.mono { font-family: var(--fm); }
h1, h2, h3 { font-weight: 600; line-height: 1.05; letter-spacing: -.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ============================================================
   STORM CANVAS — layer fixo atrás de toda a página
   ============================================================ */

#storm { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.storm-vignette {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, transparent 40%, rgba(5, 6, 10, .55) 100%),
    radial-gradient(ellipse 100% 100% at 50% 120%, rgba(139, 92, 246, calc(.05 + var(--storm-charge) * .08)), transparent 60%);
}
main { position: relative; z-index: 2; }

/* ---------- atmosfera global ---------- */

.noise {
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 80; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cursor-glow {
  position: fixed; top: 0; left: 0;
  width: 520px; height: 520px; margin: -260px 0 0 -260px;
  pointer-events: none; z-index: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, .07) 0%, rgba(139, 92, 246, .05) 35%, transparent 70%);
  opacity: 0; transition: opacity .6s ease;
}
body.has-pointer .cursor-glow { opacity: 1; }
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 200;
  height: 2px; width: 100%;
  background: var(--grad);
  transform-origin: 0 50%; transform: scaleX(0);
  box-shadow: 0 0 calc(6px + var(--storm-charge) * 22px) rgba(34, 211, 238, calc(.3 + var(--storm-charge) * .5));
}

/* ---------- nav ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 1.1rem var(--pad);
  transition: background .4s ease, border-color .4s ease, padding .4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: .7rem var(--pad);
  background: rgba(5, 6, 10, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .55rem; }
.brand-bolt { width: 20px; height: 20px; fill: var(--cyan); filter: drop-shadow(0 0 8px rgba(34, 211, 238, .7)); }
.brand-name { font-family: var(--fm); font-weight: 600; font-size: .85rem; letter-spacing: .14em; }
.brand-name em { color: var(--cyan); font-style: normal; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-family: var(--fm); font-size: .78rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-dim);
  position: relative; transition: color .25s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 1px; background: var(--grad);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

/* mobile menu toggle — hidden até o breakpoint (especificidade acima de .btn) */
.nav-links .nav-menu-cta { display: none; }
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0; position: relative; z-index: 101;
  background: rgba(13, 16, 25, .5); border: 1px solid var(--line-strong); border-radius: 6px; cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 0 auto; background: var(--text); transition: transform .3s var(--ease), opacity .2s ease; }
.nav-toggle:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-links a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 2px; }

/* ---------- botões ---------- */

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--fm); font-size: .85rem; font-weight: 500; letter-spacing: .04em;
  padding: .85rem 1.6rem; border-radius: 6px; border: 1px solid var(--line-strong);
  position: relative; overflow: hidden; cursor: pointer;
  transition: transform .25s var(--ease), border-color .25s ease, box-shadow .25s ease, color .25s ease;
}
.btn svg { width: 15px; height: 15px; fill: currentColor; }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.btn-primary {
  color: #03131a; background: var(--grad); border: none;
  box-shadow: 0 0 24px rgba(34, 211, 238, .25); font-weight: 600;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 44px rgba(34, 211, 238, .5), 0 0 80px rgba(139, 92, 246, .25);
}
/* brilho que cruza o botão primário */
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { color: var(--text-dim); background: rgba(13, 16, 25, .5); }
.btn-ghost:hover {
  color: var(--text); border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(34, 211, 238, .18), inset 0 0 20px rgba(34, 211, 238, .05);
}
.btn-small { padding: .55rem 1.1rem; font-size: .75rem; }
.btn-big { padding: 1.1rem 2rem; font-size: clamp(.8rem, 2.4vw, 1rem); }

/* ---------- hero ---------- */

.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 7rem var(--pad) 5rem; overflow: hidden;
}
/* scrim lateral: legibilidade do texto sobre o storm global */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(102deg, rgba(5, 6, 10, .8) 0%, rgba(5, 6, 10, .48) 44%, transparent 74%);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image:
    linear-gradient(rgba(140, 160, 220, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 160, 220, .05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 30%, transparent 75%);
}
.hero-inner {
  position: relative; z-index: 2; width: 100%; max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 4vw, 4.5rem); align-items: center; pointer-events: none;
  will-change: transform, opacity, filter;
}
.hero-inner a, .hero-inner .hero-terminal { pointer-events: auto; }
@media (max-width: 920px) { .hero-inner { grid-template-columns: 1fr; max-width: 640px; } }
@media (max-width: 620px) { .hero-terminal { display: none; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .78rem; letter-spacing: .16em; text-transform: lowercase; color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, .25); background: rgba(34, 211, 238, .05);
  padding: .45rem 1rem; border-radius: 100px; margin-bottom: 2rem;
}
.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan); animation: pulse 2.2s ease-in-out infinite;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 700;
  letter-spacing: -.035em; margin-bottom: 1.6rem; text-wrap: balance;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .word { display: inline-block; }
/* estados de entrada só sob motion */
html.motion .hero-title .word { transform: translateY(120%); opacity: 0; }
html.motion body.loaded .hero-title .word {
  animation: word-rise .9s var(--ease) forwards;
  animation-delay: calc(.15s + var(--wi, 0) * 70ms);
}
@keyframes word-rise { to { transform: translateY(0); opacity: 1; } }

.electric, .electric-inline {
  background: var(--grad); background-size: 220% 220%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: grad-shift 6s ease-in-out infinite;
}
.electric { filter: drop-shadow(0 0 26px rgba(34, 211, 238, .45)); }
@keyframes grad-shift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.hero-sub { max-width: 480px; font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--text-dim); margin-bottom: 2.2rem; }
html.motion .hero-sub { opacity: 0; }
html.motion body.loaded .hero-sub { animation: fade-up .9s var(--ease) .8s forwards; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }
html.motion .hero-cta { opacity: 0; }
html.motion body.loaded .hero-cta { animation: fade-up .9s var(--ease) 1s forwards; }
@keyframes fade-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.hero-trust { margin-top: 1.9rem; font-family: var(--fm); font-size: .74rem; letter-spacing: .06em; color: var(--text-faint); }
html.motion .hero-trust { opacity: 0; }
html.motion body.loaded .hero-trust { animation: fade-up .9s var(--ease) 1.2s forwards; }

.hero-foot {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 1.6rem;
  display: flex; justify-content: space-between; gap: 1rem;
  font-family: var(--fm); font-size: .7rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-faint); z-index: 2; pointer-events: none;
}
.scroll-cue { display: inline-flex; align-items: center; gap: .6rem; }
.scroll-cue-line { display: inline-block; width: 1px; height: 24px; background: linear-gradient(180deg, var(--cyan), transparent); position: relative; overflow: hidden; }
.scroll-cue-line::after { content: ""; position: absolute; inset: 0; background: var(--flash); animation: scroll-cue 1.8s var(--ease) infinite; }
@keyframes scroll-cue { 0% { transform: translateY(-100%); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(100%); opacity: 0; } }

/* ---------- hero terminal ---------- */

.hero-terminal {
  position: relative; background: rgba(9, 11, 18, .92);
  border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 60px rgba(34, 211, 238, .06);
}
html.motion .hero-terminal { opacity: 0; }
html.motion body.loaded .hero-terminal { animation: fade-up 1s var(--ease) .5s forwards; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: rgba(140, 160, 220, .04); }
.term-dot { width: 11px; height: 11px; border-radius: 50%; }
.term-title { margin-left: 8px; font-family: var(--fm); font-size: .7rem; color: var(--text-faint); letter-spacing: .06em; }
.term-body { padding: 22px 22px 24px; font-family: var(--fm); font-size: .84rem; line-height: 2.05; color: #c7cbd9; }
.term-line { display: flex; justify-content: space-between; gap: 16px; }
.term-cur { display: inline-block; width: 9px; height: 16px; background: var(--cyan); vertical-align: -2px; animation: blink 1.1s step-end infinite; }

/* ---------- seções ---------- */

.section { padding: clamp(5rem, 12vh, 9rem) var(--pad); position: relative; isolation: isolate; }
.orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); pointer-events: none; will-change: transform; }
.section-head { margin-bottom: clamp(3rem, 7vh, 5rem); max-width: 800px; }
.section-label { font-family: var(--fm); font-size: .78rem; letter-spacing: .18em; color: var(--cyan); margin-bottom: 1.2rem; }
.section-head h2 { font-size: clamp(2.1rem, 5.4vw, 4rem); font-weight: 700; }
html.motion .section-head h2 { clip-path: inset(0 -5% 105% -5%); transition: clip-path 1.1s var(--ease) .1s; }
html.motion .section-head.in h2 { clip-path: inset(-15% -5% -20% -5%); }
.section-sub { margin-top: 1.4rem; color: var(--text-dim); max-width: 540px; }
.electric-inline { filter: none; }

/* ---------- reveals (estado inicial só sob motion) ---------- */

html.motion .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.motion .reveal[data-reveal="left"] { transform: translateX(-52px); }
html.motion .reveal[data-reveal="zoom"] { transform: translateY(28px) scale(.94); }
.reveal.in { opacity: 1 !important; transform: none !important; }

/* ---------- serviços ---------- */

.services { background: linear-gradient(180deg, rgba(5, 6, 10, .3) 0%, rgba(7, 9, 16, .82) 14%, rgba(7, 9, 16, .84) 86%, rgba(5, 6, 10, .3) 100%); }
.service-list { list-style: none; border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 5rem 1fr auto; align-items: center; gap: 2rem;
  padding: 2.4rem .5rem; border-bottom: 1px solid var(--line); position: relative;
  transition: padding-left .35s var(--ease), background .35s ease;
}
html.motion .service { opacity: 0; transform: translateX(-52px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.service.in { opacity: 1 !important; transform: none !important; }
.service::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--grad); transform: scaleY(0); transform-origin: 50% 0; transition: transform .4s var(--ease);
}
.service:hover { padding-left: 1.6rem; background: linear-gradient(90deg, rgba(34, 211, 238, .045), transparent 55%); }
.service:hover::before { transform: scaleY(1); }
.service-num { font-family: var(--fm); font-size: .85rem; color: var(--text-faint); transition: color .3s ease, text-shadow .3s ease; }
.service:hover .service-num { color: var(--cyan); text-shadow: 0 0 14px rgba(34, 211, 238, .8); }
.service-body h3 { font-size: clamp(1.25rem, 2.6vw, 1.7rem); margin-bottom: .5rem; }
.service-body p { color: var(--text-dim); max-width: 560px; font-size: .96rem; }
.service-tags { font-family: var(--fm); font-size: .72rem; letter-spacing: .06em; color: var(--text-faint); text-align: right; }
@media (max-width: 860px) { .service { grid-template-columns: 3rem 1fr; } .service-tags { grid-column: 2; text-align: left; } }

/* ---------- lab / provas em campo ---------- */

.lab { background: rgba(10, 12, 20, .88); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-sequence { display: grid; gap: 1.5rem; margin-top: 3.4rem; }
.field-proof {
  position: relative; display: grid; grid-template-columns: 4rem minmax(0, .86fr) minmax(380px, 1.14fr); gap: clamp(1.5rem, 3vw, 4rem);
  padding: clamp(1.5rem, 3vw, 3rem); overflow: hidden;
  border: 1px solid var(--line); background: rgba(7, 9, 16, .82);
}
.field-proof::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--grad); opacity: .82; }
.proof-index { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; font-family: var(--fm); color: var(--text-faint); }
.proof-index span:first-child { color: var(--cyan); font-size: 1rem; }
.proof-index span:last-child { font-size: .62rem; line-height: 1.45; letter-spacing: .11em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); }
.proof-kicker { margin-bottom: .8rem; color: var(--cyan); font-family: var(--fm); font-size: .68rem; letter-spacing: .11em; text-transform: uppercase; }
.field-proof h3 { max-width: 530px; font-size: clamp(1.7rem, 3.2vw, 3rem); }
.field-proof p:not(.proof-kicker) { max-width: 520px; margin-top: 1.15rem; color: var(--text-dim); }
.proof-link { display: inline-flex; align-items: center; gap: .7rem; margin-top: 1.6rem; color: var(--flash); font-family: var(--fm); font-size: .72rem; letter-spacing: .05em; }
.proof-link span { color: var(--cyan); font-size: 1rem; transition: transform .3s var(--ease); }
.proof-link:hover span, .proof-link:focus-visible span { transform: translate(3px, -3px); }
.proof-link:focus-visible { outline: 2px solid var(--cyan); outline-offset: 6px; }
.client-proof-copy blockquote { max-width: 490px; margin-top: 2rem; padding: 0 0 0 1rem; border-left: 1px solid rgba(34, 211, 238, .45); color: var(--flash); font-size: .95rem; line-height: 1.55; }
.client-proof-copy cite { display: block; margin-top: .65rem; color: var(--text-faint); font-family: var(--fm); font-size: .66rem; font-style: normal; letter-spacing: .05em; }
.client-live-frame,
.horine-live-frame {
  align-self: stretch;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #080a10;
}
.client-live-frame { align-self: start; border-color: rgba(245, 200, 76, .48); }
.horine-live-frame { border-color: rgba(201, 168, 104, .64); }
.client-live-frame > a { display: block; }
.client-live-frame img,
.horine-live-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1920 / 990;
  object-fit: cover;
  object-position: top center;
  transition: transform .65s var(--ease), filter .45s ease;
}
.client-live-frame img { filter: saturate(.88) contrast(1.04); }
.client-live-frame:hover img,
.client-live-frame:focus-within img { filter: saturate(1) contrast(1); transform: scale(1.025); }
.client-live-frame figcaption,
.horine-live-frame figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .78rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-family: var(--fm);
  font-size: .61rem;
  letter-spacing: .05em;
}
.client-live-frame figcaption { border-color: rgba(245, 200, 76, .22); color: #d8c78f; }
.client-live-frame figcaption span { color: #f1cf61; font-size: .9rem; }

.product-proof { grid-template-columns: 4rem minmax(0, .88fr) minmax(410px, 1.12fr); background: rgba(8, 10, 18, .9); }
.product-proof .proof-kicker { color: #d9b87a; }
.horine-live-frame { position: relative; padding: .55rem .55rem 0; overflow: visible; }
.horine-desktop-shot { overflow: hidden; }
.horine-desktop-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 47% 50%;
  filter: saturate(.9) brightness(.94);
}
.horine-mobile-shot {
  position: absolute;
  right: clamp(.45rem, 1.6vw, 1.15rem);
  bottom: .45rem;
  width: clamp(96px, 12vw, 150px);
  overflow: hidden;
  border: 1px solid rgba(224, 242, 255, .42);
  border-radius: clamp(18px, 2vw, 28px);
  background: #05060a;
  box-shadow: 0 18px 34px rgba(0, 0, 0, .42);
  z-index: 2;
}
.horine-mobile-shot img { display: block; width: 100%; aspect-ratio: 864 / 1770; object-fit: cover; }
.horine-live-frame figcaption { margin-top: .55rem; }
.horine-live-frame figcaption span { color: var(--text-faint); }
.horine-live-frame figcaption b { color: #d9b87a; font-weight: 400; }

.lab-systems { padding-top: clamp(2rem, 5vw, 5rem); }
.lab-systems-head { display: grid; grid-template-columns: minmax(0, .9fr) minmax(230px, .55fr); column-gap: 2rem; align-items: end; padding-bottom: 1.8rem; border-bottom: 1px solid var(--line); }
.lab-systems-head .section-label { grid-column: 1 / -1; margin-bottom: 1.2rem; }
.lab-systems h3 { font-size: clamp(1.6rem, 3vw, 2.7rem); }
.lab-systems-head p:last-child { max-width: 430px; color: var(--text-dim); font-size: .94rem; }
.lab-signals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; perspective: 1200px; }
.lab-signal { --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg; --media-scale: 1; --media-position: 50% 50%; --media-origin: 50% 50%; position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line); background: rgba(8, 10, 16, .96); transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: border-color .35s ease, box-shadow .35s ease, transform .2s var(--ease); will-change: transform; }
.lab-signal::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(350px circle at var(--mx) var(--my), rgba(34, 211, 238, .12), transparent 62%); transition: opacity .3s ease; }
.lab-signal:hover::after, .lab-signal:focus-visible::after { opacity: 1; }
.lab-signal:focus-visible { z-index: 1; outline: 2px solid var(--cyan); outline-offset: -2px; }
.lab-signal img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: var(--media-position); transform-origin: var(--media-origin); filter: saturate(.85) brightness(.8); transform: scale(var(--media-scale)); transition: filter .45s ease, transform .6s var(--ease); }
.lab-signal:hover img { filter: saturate(1) brightness(1); transform: scale(calc(var(--media-scale) + .035)); }
.wimm-signal { --media-scale: 1.18; --media-position: 53% 28%; --media-origin: 53% 28%; }
.hermes-signal { --media-scale: 1.42; --media-position: 60% 49%; --media-origin: 60% 51%; }
.gymflow-signal { --media-scale: 1.15; --media-position: 55% 28%; --media-origin: 55% 28%; }
.lab-signal-copy { position: relative; z-index: 1; margin-top: .7rem; border-top: 1px solid var(--line); padding: 1.45rem 1.35rem 1.35rem; transform: translateZ(26px); }
.lab-signal-copy > span, .lab-signal footer { display: block; color: var(--cyan); font-family: var(--fm); font-size: .61rem; letter-spacing: .09em; text-transform: uppercase; }
.lab-signal h4 { margin-top: .8rem; font-size: 1.25rem; line-height: 1.15; }
.lab-signal p { margin-top: .65rem; color: var(--text-dim); font-size: .88rem; }
.lab-signal footer { margin-top: 1.35rem; color: var(--text-faint); text-transform: none; }
html.motion .field-proof, html.motion .lab-signal { opacity: 0; }
.field-proof.in, .lab-signal.in { opacity: 1 !important; }

@media (max-width: 980px) {
  .field-proof, .product-proof { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .client-proof-copy, .product-proof-copy { grid-column: 2; }
  .client-live-frame, .horine-live-frame { grid-column: 2; }
  .proof-index span:last-child { writing-mode: initial; transform: none; }
}
@media (max-width: 720px) {
  .proof-sequence { margin-top: 2.4rem; }
  .field-proof, .product-proof { grid-template-columns: 1fr; gap: 1.6rem; padding: 1.3rem; }
  .proof-index { flex-direction: row; align-items: center; }
  .proof-index span:last-child { font-size: .58rem; }
  .client-proof-copy, .product-proof-copy, .client-live-frame, .horine-live-frame { grid-column: auto; }
  .client-live-frame figcaption,
  .horine-live-frame figcaption { padding: .68rem .75rem; font-size: .57rem; }
  .horine-mobile-shot { right: .35rem; bottom: .35rem; width: clamp(82px, 22vw, 112px); }
  .lab-systems-head { grid-template-columns: 1fr; gap: 1rem; }
  .lab-signals { grid-template-columns: 1fr; }
  .lab-signal img { aspect-ratio: 16 / 8; }
}

/* ---------- marquee (velocidade modulada pelo scroll) ---------- */

.marquee {
  overflow: hidden; padding: 1.4rem 0; border-bottom: 1px solid var(--line); border-top: 1px solid var(--line);
  background: rgba(5, 6, 10, .72);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 2.6rem; width: max-content;
  animation: marquee 30s linear infinite;
  font-family: var(--fm); font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint);
  will-change: transform;
}
.marquee-track i { font-style: normal; font-size: .7rem; color: var(--cyan); opacity: .7; }
.marquee:hover .marquee-track { animation-play-state: paused; }
/* sob motion, o JS assume a esteira (velocidade reativa) e desligamos a animação CSS */
html.motion .marquee-track { animation: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- processo (timeline scrubada) ---------- */

.process { background: rgba(7, 9, 16, .84); min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.process-timeline { position: relative; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; position: relative; z-index: 1; }
.step { display: flex; flex-direction: column; align-items: center; text-align: center; opacity: .6; transition: opacity .55s var(--ease); }
.step.active { opacity: 1; }
.step-node {
  position: relative; z-index: 2; width: 2.8rem; height: 2.8rem;
  display: grid; place-items: center; border-radius: 13px;
  border: 1px solid var(--line-strong); background: var(--bg-soft); margin-bottom: 1.5rem;
  transition: border-color .45s ease, box-shadow .45s ease, transform .45s var(--ease);
}
.step.active .step-node { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 211, 238, .07), 0 0 26px rgba(34, 211, 238, .45); transform: translateY(-3px); }
.step-num { font-family: var(--fm); font-size: 1.05rem; color: var(--text-faint); transition: color .45s ease, text-shadow .45s ease; }
.step.active .step-num { color: var(--cyan); text-shadow: 0 0 12px rgba(34, 211, 238, .75); }
.step-card { width: 100%; background: rgba(13, 16, 25, .6); border: 1px solid var(--line); border-radius: 12px; padding: 1.4rem; transition: border-color .45s ease, transform .3s var(--ease); }
.step.active .step-card { border-color: rgba(139, 92, 246, .32); }
.step-card:hover { transform: translateY(-4px); }
.step h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.step p { color: var(--text-dim); font-size: .9rem; }
.rail { pointer-events: none; }
.rail-base { background: var(--line-strong); border-radius: 3px; }
.rail-fill { background: var(--grad); border-radius: 3px; box-shadow: 0 0 12px rgba(34, 211, 238, .5); }
.rail-spark { width: 13px; height: 13px; border-radius: 50%; background: #e6f6ff; box-shadow: 0 0 12px 3px rgba(34, 211, 238, .85), 0 0 30px 7px rgba(139, 92, 246, .5); }
.rail-h { position: absolute; top: 1.4rem; left: 0; right: 0; z-index: 0; }
.rail-h .rail-wrap { position: absolute; left: 12.5%; right: 12.5%; top: 0; height: 3px; transform: translateY(-50%); }
.rail-h .rail-base { position: absolute; inset: 0; }
.rail-h .rail-fill { position: absolute; left: 0; top: 0; height: 100%; width: calc(var(--p, 0) * 100%); }
.rail-h .rail-spark { position: absolute; top: 50%; left: calc(var(--p, 0) * 100%); transform: translate(-50%, -50%); }
.rail-v { display: none; }
@media (max-width: 900px) {
  .process { min-height: auto; }
  .rail-h { display: none; }
  .steps { grid-template-columns: 1fr; gap: 1.1rem; }
  .step { position: relative; flex-direction: row; align-items: flex-start; text-align: left; padding-left: 3.6rem; }
  .step-node { position: absolute; left: 1.4rem; top: 0; transform: translateX(-50%); margin: 0; }
  .step.active .step-node { transform: translateX(-50%); }
  .rail-v { display: block; position: absolute; left: 1.4rem; top: 1.4rem; bottom: 1.4rem; width: 3px; transform: translateX(-50%); z-index: 0; }
  .rail-v .rail-base { position: absolute; inset: 0; }
  .rail-v .rail-fill { position: absolute; left: 0; top: 0; width: 100%; height: calc(var(--p, 0) * 100%); }
  .rail-v .rail-spark { position: absolute; left: 50%; top: calc(var(--p, 0) * 100%); transform: translate(-50%, -50%); }
}

/* ---------- prova social ---------- */

.proof { background: rgba(10, 12, 20, .9); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(4rem, 9vh, 6.5rem) var(--pad); position: relative; z-index: 2; }
.proof-inner { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
@media (max-width: 800px) { .proof-inner { grid-template-columns: 1fr; } }
.quote { font-size: clamp(1.25rem, 2.4vw, 1.85rem); line-height: 1.35; font-weight: 500; text-wrap: pretty; }
.quote .mark { color: var(--cyan); }
.quote cite { display: block; margin-top: 1.3rem; font-family: var(--fm); font-size: .78rem; font-style: normal; color: var(--text-dim); letter-spacing: .04em; }
.proof-stats { display: grid; gap: 1rem; }
.stat { border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.3rem; background: var(--surface); }
.stat b { display: block; font-size: 1.9rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.02em; }
.stat span { font-family: var(--fm); font-size: .72rem; letter-spacing: .06em; color: var(--text-dim); }

/* ---------- contato ---------- */

.contact {
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 110%, rgba(139, 92, 246, calc(.14 + var(--storm-charge) * .12)), transparent 70%),
    radial-gradient(ellipse 50% 40% at 50% -10%, rgba(34, 211, 238, .07), transparent 70%);
}
.contact-inner { max-width: 760px; margin: 0 auto; }
.contact .section-label { margin-bottom: 1.4rem; }
.contact-title { font-size: clamp(2.4rem, 6.5vw, 4.6rem); font-weight: 700; margin-bottom: 1.4rem; }
.contact-sub { color: var(--text-dim); max-width: 480px; margin: 0 auto 2.4rem; }
.brief { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; max-width: 600px; margin: 0 auto 1.6rem; text-align: left; }
.brief .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .brief { grid-template-columns: 1fr; } }
.field label { display: block; font-family: var(--fm); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: .4rem; }
.brief input, .brief select, .brief textarea {
  width: 100%; background: rgba(13, 16, 25, .6); border: 1px solid var(--line-strong);
  border-radius: 7px; padding: .75rem .9rem; color: var(--text); font-family: var(--fm); font-size: .85rem;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.brief textarea { resize: vertical; min-height: 82px; line-height: 1.5; }
.brief input:focus, .brief select:focus, .brief textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .12); }
.brief select {
  appearance: none; cursor: pointer; padding-right: 2.3rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239aa0b4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center; background-size: 11px;
}
.brief input::placeholder, .brief textarea::placeholder { color: var(--text-faint); opacity: 1; }
.field-err:not([hidden]) { display: block; margin-top: .4rem; font-family: var(--fm); font-size: .68rem; letter-spacing: .02em; color: var(--err); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--err); box-shadow: 0 0 0 3px rgba(255, 155, 155, .12); }
.brief-success:not([hidden]) {
  grid-column: 1 / -1; display: flex; flex-direction: column; gap: .45rem;
  margin-top: .5rem; padding: 1rem 1.2rem; text-align: left;
  border: 1px solid rgba(34, 211, 238, .35); border-radius: 8px; background: rgba(34, 211, 238, .06);
}
.brief-success strong { color: var(--flash); font-weight: 600; }
.brief-success span { color: var(--text-dim); font-size: .9rem; }
.brief-success-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .3rem; }
.brief-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: .4rem; }
.contact-or { font-family: var(--fm); font-size: .72rem; letter-spacing: .1em; color: var(--text-faint); margin-top: 1.4rem; }
.contact-or a { color: var(--cyan); }

/* ---------- footer ---------- */

.footer {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem;
  padding: 1.6rem var(--pad); border-top: 1px solid var(--line);
  background: rgba(5, 6, 10, .9);
  font-family: var(--fm); font-size: .72rem; letter-spacing: .1em; color: var(--text-faint);
}

/* ---------- keyframes ---------- */

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ---------- responsivo ---------- */

@media (max-width: 860px) {
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links .nav-menu-cta { display: inline-flex; margin-top: .6rem; }
  .nav-links {
    position: fixed; top: 0; right: 0;
    width: min(80vw, 320px); height: 100svh;
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 1.5rem; padding: 5rem 2rem 2rem;
    background: rgba(8, 10, 16, .97);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-left: 1px solid var(--line);
    transform: translateX(100%); transition: transform .4s var(--ease);
    z-index: 95;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.05rem; }
  .nav-links .btn { min-height: 44px; font-size: .82rem; }
  .hero-foot span:nth-child(2) { display: none; }
  .cursor-glow { display: none; }
}

/* ---------- acessibilidade: movimento reduzido ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  #storm, .storm-vignette { opacity: .5; }
  .hero-title .word, .hero-sub, .hero-cta, .hero-trust, .hero-terminal { opacity: 1; transform: none; }
  .reveal, .service, .field-proof, .lab-signal, .step { opacity: 1 !important; transform: none !important; }
  .section-head h2 { clip-path: none !important; }
  .scroll-cue-line::after { animation: none; }
  .step { opacity: 1 !important; }
}
