/* =========================================================
   RealizeTek · estilos
   Cores e fontes ficam nas variáveis abaixo (:root)
   ========================================================= */
:root {
  /* identidade RealizeTek: Noite, Névoa, Azul Realize, Azul profundo, Ciano */
  --bg: #070b14;
  --bg2: #0d1322;
  --fg: #f3f5fa;
  --mute: #8c95aa;
  --paper: #f4f6fa;
  --paper2: #e6eaf1;
  --ink: #0b1020;
  --mute-l: #5a6275;
  --accent: #2f7bff;
  --accent-l: #1446d6; /* azul sobre fundo claro */
  --ciano: #22d3ee;
  --line: rgba(255, 255, 255, .12);
  --line-l: rgba(0, 0, 0, .12);
  --f-d: "Cabinet Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-b: "Satoshi", "Segoe UI", system-ui, sans-serif;
  --gut: clamp(18px, 3vw, 44px);
  --nav-h: 88px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scrollbar-width: none; } /* esconde a barra de rolagem (a rolagem continua funcionando) */
html::-webkit-scrollbar { display: none; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-b);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
em { font-style: normal; color: var(--accent); }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1600px; margin-inline: auto; padding-inline: var(--gut); }
.light { background: var(--paper); color: var(--ink); }

.sec-head {
  display: flex; gap: .8em;
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--mute);
  margin-bottom: clamp(24px, 3.5vw, 48px);
}
.light .sec-head { color: var(--mute-l); }
.light em, .light .sec-head span:first-child { color: var(--accent-l); }
.sec-head span:first-child { color: var(--accent); }

.h2 {
  font-family: var(--f-d); font-weight: 800;
  font-size: clamp(40px, 6vw, 96px);
  line-height: .95; letter-spacing: -.03em;
}

.line { display: block; overflow: hidden; padding-bottom: .2em; margin-bottom: -.2em; }
.line > span { display: inline-block; will-change: transform; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  height: 54px; padding: 0 26px; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: background .35s, color .35s, border-color .35s;
}
.btn:hover { background: var(--fg); color: var(--bg); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: inherit; }
.btn-ghost:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 14px; left: var(--gut); right: var(--gut); z-index: 50;
  height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 9px 0 22px; border-radius: 999px;
  background: rgba(13, 19, 34, .6);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--line);
  color: var(--fg);
  transition: transform .6s var(--ease);
}
.nav.is-hidden { transform: translateY(-140%); }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--f-d); font-weight: 800; font-size: 19px; letter-spacing: -.02em; white-space: nowrap; }
.logo-mark { width: 30px; height: 30px; flex: none; }

/* ---------- splash (abertura com a marca) ---------- */
.splash { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--bg); overflow: hidden; }
.splash-glow { position: absolute; left: 50%; top: 50%; width: min(90vw, 900px); aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(47, 123, 255, .22) 0%, rgba(34, 211, 238, .06) 38%, rgba(7, 11, 20, 0) 68%); opacity: 0; pointer-events: none; }
.splash-logo { position: relative; display: flex; align-items: center; gap: clamp(14px, 1.6vw, 22px); }
.splash-mark { width: clamp(56px, 6vw, 84px); height: auto; flex: none; overflow: visible; }
.splash-mark rect { transform-box: fill-box; transform-origin: 50% 50%; }
.splash-word { overflow: hidden; font-family: var(--f-d); font-weight: 800; font-size: clamp(40px, 4.6vw, 66px); letter-spacing: -.03em; line-height: 1.1; color: var(--fg); white-space: nowrap; }
.splash-word span { display: inline-block; }
.splash-word b { font-weight: 800; color: var(--accent); }
.splash-tag { position: relative; margin-top: clamp(14px, 2vh, 22px); font-size: 13px; letter-spacing: .32em; text-transform: uppercase; color: var(--mute, rgba(243, 245, 250, .55)); opacity: 0; }
.splash-bar { position: absolute; left: 50%; bottom: clamp(40px, 8vh, 72px); width: 120px; height: 2px; transform: translateX(-50%); background: rgba(255, 255, 255, .1); border-radius: 2px; overflow: hidden; }
.splash-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-l), var(--ciano)); transform: scaleX(0); transform-origin: left; }
html.is-splash, html.is-splash body { overflow: hidden; }
.logo b { font-weight: 800; color: var(--accent); }
.nav-links { display: flex; gap: 30px; font-size: 14px; }
.nav-links a { position: relative; opacity: .78; transition: opacity .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; transition: background .3s; }
.menu-btn:hover { background: rgba(255, 255, 255, .08); }
.menu-icon { display: grid; gap: 4px; }
.menu-icon i { display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease); }
.menu-btn.menu-open .menu-icon i:first-child { transform: translateY(2.75px) rotate(45deg); }
.menu-btn.menu-open .menu-icon i:last-child { transform: translateY(-2.75px) rotate(-45deg); }

.overlay {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--gut) var(--gut);
  background: var(--bg2);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .85s var(--ease);
}
.overlay.open { clip-path: inset(0 0 0 0); }
.overlay-nav { display: flex; flex-direction: column; }
.overlay-nav a {
  display: flex; align-items: baseline; gap: 20px;
  padding: 4px 0; border-bottom: 1px solid var(--line);
  /* o tamanho respeita a largura e também a altura: os 6 itens sempre cabem entre o cabeçalho e o rodapé do menu */
  font-family: var(--f-d); font-weight: 800; font-size: clamp(30px, min(max(7.4vw, 40px), (100vh - 300px) / 6.5), 104px); line-height: 1.04; letter-spacing: -.03em;
  opacity: 0; transform: translateY(40px);
  transition: transform .8s var(--ease), opacity .6s, color .3s, padding-left .5s var(--ease);
  transition-delay: 0s;
}
.overlay.open .overlay-nav a { opacity: 1; transform: none; transition-delay: calc(.2s + var(--i) * .06s), calc(.2s + var(--i) * .06s), 0s, 0s; }
.overlay-nav a span { font-family: var(--f-b); font-size: 14px; font-weight: 500; color: var(--accent); letter-spacing: 0; }
.overlay-nav a:hover { color: var(--accent); padding-left: 16px; }
.overlay-foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 40px; color: var(--mute); font-size: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(55% 60% at 72% 40%, rgba(47, 123, 255, .16), transparent 70%); }
#particles { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* pixels do fundo: quadradinhos da marca subindo devagar atrás dos cubos */
#pixels { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.hero-inner { position: relative; z-index: 2; padding-bottom: clamp(96px, 13vh, 150px); pointer-events: none; }
.hero-inner a { pointer-events: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ciano); animation: pulse 2s infinite; }
.hero-title { font-family: var(--f-d); font-weight: 800; font-size: clamp(52px, 9.6vw, 176px); line-height: .9; letter-spacing: -.045em; }
.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; margin-top: 34px; }
.hero-copy { max-width: 450px; color: var(--mute); font-size: 17px; text-wrap: balance; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-foot { position: absolute; left: 0; right: 0; bottom: 24px; z-index: 2; }
.hero-meta { display: flex; justify-content: flex-end; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--mute); }
.hero-meta b { color: var(--fg); font-weight: 500; }
/* computador: textos da esquerda centralizados na altura livre abaixo do menu, subtítulo em uma linha;
   botões presos embaixo, no canto direito (mesma altura do layout original) */
@media (min-width: 901px) {
  .hero-inner { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: var(--nav-h); padding-bottom: 0; }
  .hero-copy { max-width: none; }
  .hero-ctas { position: absolute; right: var(--gut); bottom: clamp(96px, 13vh, 150px); }
}
.scroll-cue { display: flex; align-items: center; gap: 10px; }
.scroll-cue i { position: relative; width: 1px; height: 28px; background: var(--line); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 50%; background: var(--fg); animation: cue 1.8s var(--ease) infinite; }

/* ---------- marquee ---------- */
.marquee { position: relative; z-index: 2; overflow: hidden; padding: 14px 0; background: #fff; color: var(--ink); white-space: nowrap; }
.marquee-track { display: inline-flex; will-change: transform; }
.marquee-track span { display: inline-flex; align-items: center; gap: .9em; padding-right: .9em; font-family: var(--f-d); font-weight: 700; font-size: clamp(18px, 1.8vw, 28px); letter-spacing: -.01em; line-height: 1; }
.marquee-track i { font-style: normal; font-size: .55em; color: var(--accent-l); }

/* ---------- sobre ---------- */
.about { padding: clamp(100px, 16vh, 200px) 0; }
.about-lede { max-width: 1250px; font-family: var(--f-d); font-weight: 700; font-size: clamp(30px, 4.3vw, 68px); line-height: 1.08; letter-spacing: -.025em; }
.about-lede .w { opacity: .14; }
.about-lede strong { font-weight: 800; color: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(64px, 10vh, 120px); border-top: 1px solid var(--line-l); }
.stat { padding: 28px 24px 0 0; display: flex; flex-direction: column; gap: 6px; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line-l); }
.stat b { font-family: var(--f-d); font-weight: 800; font-size: clamp(52px, 6.6vw, 112px); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat b small { font-size: .5em; letter-spacing: -.02em; margin: 0 .04em; }
.stat sup { font-size: .45em; color: var(--accent); vertical-align: top; }
.stat > span { color: var(--mute-l); font-size: 15px; }

/* ---------- o que fazemos (a escada do símbolo: um serviço por degrau) ---------- */
.process { position: relative; overflow: hidden; }
.process .pin-wrap {
  position: relative; z-index: 0;
  height: 100vh; height: 100svh; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 96px); align-items: center;
  padding-top: calc(var(--nav-h) + 8px); padding-bottom: clamp(24px, 4vh, 48px);
}
/* fundo: luz azul atrás da escada e uma grade fina de projeto (fica presa à tela enquanto a seção está parada) */
.process .pin-wrap::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); pointer-events: none;
  background:
    radial-gradient(42% 58% at 76% 56%, rgba(47, 123, 255, .17), transparent 72%),
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(60% 75% at 74% 55%, #000 25%, transparent 78%);
          mask-image: radial-gradient(60% 75% at 74% 55%, #000 25%, transparent 78%);
}
.process .sec-head { margin-bottom: clamp(14px, 3vh, 40px); }
.process .h2 { font-size: clamp(40px, min(5.4vw, 9vh), 92px); }
/* "resultado." acende em ciano quando a sua empresa chega ao topo */
.process .h2 em {
  background: linear-gradient(90deg, var(--ciano) 0%, #a5f3fc 17%, var(--ciano) 33%, var(--accent) 66%, var(--accent) 100%) 100% 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: background-position 1.4s var(--ease);
}
.process.is-top .h2 em { background-position: 0 0; }
.climb-intro { max-width: 440px; margin-top: clamp(14px, 2.4vh, 24px); color: var(--mute); font-size: 18px; line-height: 1.5; }

/* etapa atual: as cinco ficam empilhadas; a nova entra por baixo e a anterior sai por cima */
/* as etapas ficam sobrepostas na mesma célula: a caixa cresce com o texto mais longo e a barra fica sempre abaixo */
.climb-steps { display: grid; list-style: none; margin-top: clamp(24px, 5vh, 56px); margin-bottom: clamp(20px, 3vh, 28px); }
.climb-step { grid-area: 1 / 1; position: relative; pointer-events: none; }
.climb-step > * { display: block; opacity: 0; transform: translateY(24px); transition: opacity .4s, transform .7s var(--ease); }
.climb-step.is-past > * { transform: translateY(-24px); }
.climb-step.is-on > * { opacity: 1; transform: none; }
.climb-step.is-on > :nth-child(2) { transition-delay: .06s; }
.climb-step.is-on > :nth-child(3) { transition-delay: .12s; }
.climb-step.is-on > :nth-child(4) { transition-delay: .18s; }
.climb-step > span { font-size: 13px; letter-spacing: .08em; color: var(--ciano); font-variant-numeric: tabular-nums; }
.climb-step h3 { margin-top: 6px; font-family: var(--f-d); font-weight: 800; font-size: clamp(28px, 2.8vw, 44px); line-height: 1.05; letter-spacing: -.025em; }
.climb-step p { max-width: 440px; margin-top: 8px; color: var(--mute); }
.climb-tags { margin-top: 12px; font-size: 13px; color: #7fb0ff; letter-spacing: .02em; }
.climb-progress { position: relative; width: min(100%, 260px); height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.climb-progress i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent), var(--ciano)); transform-origin: left; transform: scaleX(0); }

/* a escada: mesma posição dos blocos do símbolo, numa grade 3 × 3, com um leve 3D que segue o mouse */
.climb-right { display: flex; justify-content: flex-end; perspective: 1400px; }
.stair {
  position: relative; width: min(100%, 60vh); margin-top: 7vh; container-type: inline-size;
  /* mais espaço vertical entre os degraus: a etiqueta "Sua empresa" cabe sem cobrir o nome do bloco de cima */
  display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 6%; row-gap: clamp(58px, 9vh, 80px);
}
/* o chão onde a escada se apoia */
.stair::after { content: ""; position: absolute; left: -30%; right: -6%; bottom: -1px; height: 1px; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2) 40%, rgba(255, 255, 255, .2) 85%, transparent); }
/* luz que acompanha a sua empresa (fica ciano no topo) */
.stair-glow { position: absolute; left: 0; top: 0; z-index: 0; width: 80%; aspect-ratio: 1; margin: -40% 0 0 -40%; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(47, 123, 255, .4), rgba(47, 123, 255, .1) 42%, transparent 68%); }
.stair-glow::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(34, 211, 238, .5), rgba(34, 211, 238, .12) 42%, transparent 68%); opacity: 0; transition: opacity .9s; }
.process.is-top .stair-glow::after { opacity: 1; }
/* número gigante da etapa atual, vazado, no canto livre da escada */
.stair-big { position: absolute; left: -1%; top: -3%; z-index: 0; height: .9em; overflow: hidden; pointer-events: none; font-family: var(--f-d); font-weight: 800; font-size: 36cqi; line-height: .9; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .18); transition: -webkit-text-stroke-color .8s; }
.stair-big-strip { display: block; }
.stair-big i { display: block; height: .9em; font-style: normal; }
.process.is-top .stair-big { -webkit-text-stroke-color: rgba(34, 211, 238, .55); }

/* blocos: começam tracejados (a construir) e enchem de cor como líquido, de baixo para cima */
.stair-b {
  --c1: #1446d6; --c2: #2563ff; --glow: rgba(37, 99, 255, .55); --fill: 0;
  grid-column: var(--col); grid-row: var(--row); position: relative; z-index: 1; overflow: hidden; container-type: inline-size;
  display: flex; flex-direction: column; justify-content: space-between; padding: 11% 12%;
  aspect-ratio: 1; border-radius: 22%; background: rgba(255, 255, 255, .03); border: 1px dashed rgba(255, 255, 255, .26); color: rgba(243, 245, 250, .42);
  transform-origin: 50% 100%;
  transition: box-shadow .7s var(--ease), border-color .5s;
}
.stair-b:nth-of-type(2) { --c1: #2563ff; --c2: #3b7dff; --glow: rgba(37, 99, 255, .55); }
.stair-b:nth-of-type(3) { --c1: #2f7bff; --c2: #4b8fff; --glow: rgba(47, 123, 255, .55); }
.stair-b:nth-of-type(4) { --c1: #3b8bff; --c2: #5fa4ff; --glow: rgba(59, 139, 255, .55); }
.stair-b:nth-of-type(5) { --c1: #22d3ee; --c2: #67e8f9; --glow: rgba(34, 211, 238, .6); }
.stair-n { position: relative; font-size: clamp(11px, .9vw, 14px); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
/* o nome acompanha a largura do bloco (14% dela), então cabe em qualquer tela */
.stair-b b { position: relative; font-family: var(--f-d); font-weight: 800; font-size: clamp(12px, 14cqi, 26px); line-height: 1; letter-spacing: -.02em; }
/* a cor: uma cópia do bloco com texto branco, recortada na altura do "líquido" */
.stair-fill {
  position: absolute; inset: 0; z-index: 1; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; padding: inherit;
  border-radius: inherit; background: linear-gradient(160deg, var(--c2), var(--c1)); color: #fff; font-style: normal;
  clip-path: inset(calc((1 - var(--fill)) * 100%) 0 0 0);
}
.stair-b:nth-of-type(5) .stair-fill { color: var(--ink); }
/* brilho que atravessa os blocos prontos, subindo a escada de tempos em tempos */
.stair-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .32) 50%, transparent 70%); transform: translateX(-130%); animation: stair-shine 5s var(--ease) infinite; animation-delay: calc(var(--k) * .22s); }
/* a superfície do líquido enquanto o bloco enche */
.stair-b::after { content: ""; position: absolute; left: 0; right: 0; top: calc((1 - var(--fill)) * 100%); z-index: 2; height: 2px; margin-top: -1px; background: #fff; box-shadow: 0 0 14px 3px rgba(120, 190, 255, .9); opacity: 0; transition: opacity .3s; }
.stair-b.is-filling::after { opacity: 1; }
.stair-b.is-done { border-style: solid; border-color: transparent; box-shadow: 0 26px 50px -24px var(--glow); }
/* o degrau onde a sua empresa está brilha mais */
.stair-b.is-on { box-shadow: 0 34px 80px -18px var(--glow), 0 0 0 1px rgba(255, 255, 255, .45), 0 0 0 8px rgba(47, 123, 255, .14); }
.stair-b:nth-of-type(5).is-on { box-shadow: 0 34px 90px -14px var(--glow), 0 0 0 1px rgba(255, 255, 255, .6), 0 0 0 8px rgba(34, 211, 238, .2); }
/* anel que pulsa em volta do Resultado quando a sua empresa chega lá */
.stair-ring { grid-column: 3; grid-row: 1; position: relative; z-index: 0; border-radius: 22%; border: 2px solid var(--ciano); opacity: 0; pointer-events: none; }
.process.is-top .stair-ring { animation: stair-ring 2.2s var(--ease) infinite; }

/* "Sua empresa": a etiqueta que salta de degrau em degrau */
.stair-you {
  position: absolute; left: 0; top: 0; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 99px; background: #fff; color: var(--ink);
  font-size: 13px; font-weight: 700; white-space: nowrap; transform-origin: 50% 100%;
  box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .7), 0 0 0 5px rgba(255, 255, 255, .08);
}
.stair-you i { display: inline-block; font-style: normal; color: var(--accent); animation: stair-bob 1.6s ease-in-out infinite; }
/* faíscas soltas quando ela pousa num degrau */
.stair-spark { position: absolute; left: 0; top: 0; z-index: 4; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 2px; pointer-events: none; }
@keyframes stair-shine { 0%, 55% { transform: translateX(-130%); } 85%, 100% { transform: translateX(130%); } }
@keyframes stair-ring { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes stair-bob { 50% { transform: translateY(-3px); } }

/* ---------- portfólio ---------- */
.work { position: relative; background: var(--bg); }
.work .pin-wrap { height: 100vh; height: 100svh; display: flex; flex-direction: column; padding-top: var(--nav-h); }
.work-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.drag-hint { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); padding-bottom: 10px; }
#gallery { flex: 1; min-height: 0; width: 100%; display: block; margin: clamp(12px, 2.5vh, 28px) 0; cursor: grab; touch-action: pan-y; }
#gallery.hovering { cursor: pointer; }
#gallery.dragging { cursor: grabbing; }
.work-info { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; padding-bottom: 32px; }
.work-idx { font-family: var(--f-d); font-weight: 800; font-size: 26px; font-variant-numeric: tabular-nums; }
.work-meta h3 { font-family: var(--f-d); font-weight: 800; font-size: clamp(26px, 2.6vw, 40px); line-height: 1; letter-spacing: -.02em; }
.work-meta p { color: var(--mute); margin-top: 4px; }
.work-list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.work.no-webgl #gallery, .work.no-webgl .work-info, .work.no-webgl .drag-hint { display: none; }
.work.no-webgl .pin-wrap { height: auto; }
.work.no-webgl .work-list { position: static; width: auto; height: auto; clip: auto; white-space: normal; list-style: none; padding: 40px var(--gut) 100px; display: grid; gap: 1px; }
.work.no-webgl .work-list a { display: block; padding: 22px 0; border-bottom: 1px solid var(--line); font-family: var(--f-d); font-weight: 800; font-size: 34px; }

/* ---------- quem realiza (dentro de Sobre nós, sem fotos): cada pessoa é um degrau da escada ---------- */
.team[hidden] { display: none; } /* oculto por enquanto (atributo hidden no HTML) */
.team { display: grid; grid-template-columns: minmax(200px, .8fr) 3fr; gap: 40px; align-items: start; margin-top: clamp(80px, 12vh, 140px); padding-top: 40px; border-top: 1px solid var(--line-l); }
.team-title { font-family: var(--f-d); font-weight: 800; font-size: clamp(40px, 5.6vw, 96px); line-height: .95; letter-spacing: -.035em; }
/* os cartões sobem um degrau por pessoa, da esquerda para a direita */
.team-list { --step: clamp(28px, 4vw, 64px); list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.2vw, 18px); align-items: end; perspective: 1400px; }
.member { --k: 0; --fill: 0; margin-bottom: calc(var(--k) * var(--step)); transform-origin: 50% 100%; }
.member:nth-child(2) { --k: 1; }
.member:nth-child(3) { --k: 2; }
.member:nth-child(4) { --k: 3; }
.member-card {
  --mx: 50%; --my: 30%;
  position: relative; overflow: hidden; isolation: isolate; container-type: inline-size;
  display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 3 / 4; padding: 10% 10% 11%;
  border-radius: clamp(20px, 2vw, 30px); color: #fff;
  background:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--ink);
  box-shadow: 0 40px 60px -40px var(--c1), 0 24px 40px -30px rgba(11, 16, 32, .55);
  transition: box-shadow .6s var(--ease);
}
/* luz na cor da pessoa, no pé do cartão: respira devagar e fica mais forte quando as iniciais enchem */
.member-card::before {
  content: ""; position: absolute; left: -25%; right: -25%; bottom: -50%; height: 95%; z-index: -1; pointer-events: none;
  border-radius: 50%; background: radial-gradient(closest-side, var(--c2), transparent);
  opacity: calc(.22 + var(--fill) * .5);
  animation: member-breathe 5s ease-in-out infinite alternate; animation-delay: calc(var(--k) * -1.3s);
}
/* holofote que segue o mouse */
.member-card::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(240px circle at var(--mx) var(--my), rgba(255, 255, 255, .14), transparent 65%); opacity: 0; transition: opacity .4s; }
.member-n { position: absolute; top: 10cqi; right: 10cqi; font-size: 13px; letter-spacing: .08em; color: rgba(243, 245, 250, .45); font-variant-numeric: tabular-nums; }
/* iniciais gigantes: começam vazadas e a cor sobe por dentro delas */
.member-mark {
  align-self: flex-start; margin: -.1em 0 0 -.03em; padding-right: .06em;
  font-family: var(--f-d); font-weight: 800; font-size: 44cqi; line-height: 1; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, calc(.3 - var(--fill) * .18));
  background: linear-gradient(to bottom, transparent 50%, var(--c2) 50%, var(--c1) 100%) 0 calc(var(--fill) * 100%) / 100% 200% no-repeat;
  -webkit-background-clip: text; background-clip: text;
}
.member-info b { display: block; font-family: var(--f-d); font-weight: 800; font-size: clamp(17px, 10cqi, 26px); line-height: 1.05; letter-spacing: -.02em; }
.member-info span { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: clamp(12px, 5.4cqi, 14px); line-height: 1.3; color: rgba(243, 245, 250, .62); }
.member-info span::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 2px; background: var(--c2); box-shadow: 0 0 10px var(--c2); }
@media (hover: hover) {
  .member-card:hover { box-shadow: 0 54px 80px -38px var(--c1), 0 24px 40px -30px rgba(11, 16, 32, .55); }
  .member-card:hover::after { opacity: 1; }
}
@keyframes member-breathe { 0% { transform: translateY(0) scale(1); } 100% { transform: translateY(-8%) scale(1.15); } }

/* ---------- frase (cine) ---------- */
.cine { position: relative; height: 100vh; min-height: 560px; display: grid; place-items: center; overflow: hidden; background: #05080f; text-align: center; padding: var(--gut); }
.cine-bg { position: absolute; inset: -15%; will-change: transform; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .7; animation: drift 14s ease-in-out infinite alternate; }
.b1 { width: 48vmax; height: 48vmax; left: 8%; top: 12%; background: var(--accent); }
.b2 { width: 40vmax; height: 40vmax; right: 8%; top: 30%; background: #1446d6; animation-duration: 18s; animation-delay: -4s; }
.b3 { width: 34vmax; height: 34vmax; left: 34%; bottom: 6%; background: var(--ciano); opacity: .4; animation-duration: 22s; animation-delay: -9s; }
.grain { position: absolute; inset: -50%; opacity: .14; pointer-events: none; animation: grain 1.2s steps(6) infinite; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.cine-text { position: relative; z-index: 2; font-family: var(--f-d); font-weight: 800; font-size: clamp(46px, 8.6vw, 156px); line-height: .95; letter-spacing: -.045em; color: #fff; }
.cine-text .cw { display: inline-block; }
.cine-l1, .cine-l2 { display: block; }
.cine-text .ch { display: inline-block; }
.cine-text em { position: relative; color: #fff; -webkit-text-stroke: 0; text-shadow: 0 0 60px rgba(255, 255, 255, .35); }
/* traço que se desenha embaixo de "realiza." */
.cine-u { position: absolute; left: .02em; right: .14em; bottom: -.04em; height: .07em; border-radius: .04em; background: linear-gradient(90deg, var(--accent), var(--ciano)); box-shadow: 0 0 24px rgba(34, 211, 238, .6); transform-origin: left center; }

/* ---------- contato ---------- */
.contact { padding: clamp(110px, 18vh, 220px) 0 clamp(70px, 10vh, 120px); }
.contact-title { font-family: var(--f-d); font-weight: 800; font-size: clamp(50px, 9.4vw, 168px); line-height: .9; letter-spacing: -.045em; }
.contact-sub { margin-top: 28px; color: var(--mute); font-size: 18px; }
.contact-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 64px; }
.c-card { position: relative; display: flex; flex-direction: column; gap: 44px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: border-color .4s; }
.c-card::before { content: ""; position: absolute; inset: 0; z-index: 0; background: var(--accent); transform: translateY(101%); transition: transform .6s var(--ease); }
.c-card:hover { border-color: var(--accent); }
.c-card:hover::before { transform: none; }
.c-card > * { position: relative; z-index: 1; }
.c-card span { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); transition: color .4s; }
.c-card:hover span { color: rgba(255, 255, 255, .85); }
.c-card b { font-weight: 500; font-size: 17px; overflow-wrap: anywhere; }
.c-card i { position: absolute; top: 20px; right: 22px; font-style: normal; font-size: 20px; transition: transform .5s var(--ease); }
.c-card:hover i { transform: rotate(45deg); }

/* ---------- rodapé ---------- */
.footer { border-top: 1px solid var(--line); padding-top: 40px; overflow: hidden; }
.wordmark { padding: 0 var(--gut); text-align: center; white-space: nowrap; font-family: var(--f-d); font-weight: 800; line-height: 1.05; letter-spacing: -.05em; overflow: hidden; }
.wm-inner { display: inline-block; padding: .16em 0 .1em; }
.wordmark .ch { display: inline-block; will-change: transform; }
.wordmark .ch:nth-last-child(-n+3) { color: var(--accent); } /* "Tek" em azul, como na logo */
.foot-bar { display: flex; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; padding-block: 28px; font-size: 13px; color: var(--mute); }
.foot-bar b { color: var(--fg); font-weight: 500; }
.foot-bar a:hover { color: var(--fg); }

/* ---------- keyframes ---------- */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, .55); } 100% { box-shadow: 0 0 0 12px rgba(34, 211, 238, 0); } }
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(200%); } }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(8vw, -6vh) scale(1.2); } }
@keyframes grain { 0% { transform: translate(0, 0); } 17% { transform: translate(-5%, 3%); } 33% { transform: translate(3%, -6%); } 50% { transform: translate(-2%, 6%); } 67% { transform: translate(6%, 2%); } 83% { transform: translate(-6%, -3%); } 100% { transform: translate(0, 0); } }

/* ---------- responsivo ---------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .contact-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --nav-h: 80px; }
  .nav { height: 56px; padding-left: 18px; }
  .nav-cta { display: none; }
  /* topo no celular: textos no centro da tela, título ocupando a largura e botões grandes embaixo,
     no alcance do polegar; os cubos ficam grandes atrás do título (posição calculada no JS) */
  .hero-inner { flex: 1; display: flex; flex-direction: column; padding-top: calc(var(--nav-h) + 12px); padding-bottom: 28px; }
  .hero .eyebrow { margin-top: auto; margin-bottom: clamp(16px, 3vh, 30px); font-size: 14px; }
  .hero-title { font-size: min(calc((100vw - 2 * var(--gut)) / 4.7), 130px); line-height: .92; }
  .hero-bottom { display: contents; }
  .hero-copy { margin-top: clamp(18px, 3.4vh, 34px); font-size: 20px; line-height: 1.45; max-width: 30ch; }
  .hero-ctas { margin-top: clamp(28px, 7vh, 72px); margin-bottom: auto; } /* bloco inteiro (textos + botões) centralizado na altura da tela */
  .hero-ctas .btn { height: 56px; padding: 0 26px; font-size: 16px; }
  /* sombra escura suave em volta das letras para manter o contraste com os cubos */
  .hero-title, .hero-copy, .hero .eyebrow { text-shadow: 0 2px 18px rgba(7, 11, 20, .85), 0 0 4px rgba(7, 11, 20, .6); }
  .hero-meta .scroll-cue { display: none; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-l); margin-top: 28px; }
  .stat b { font-size: clamp(44px, 12vw, 64px); }
  .stat > span { font-size: 13px; }
  .team { grid-template-columns: 1fr; gap: 28px; }
  .team-list { grid-template-columns: repeat(2, 1fr); gap: 10px; --step: 32px; }
  .member:nth-child(odd) { --k: 0; }
  .member:nth-child(even) { --k: 1; }


  /* o que fazemos no celular: título, escada (que se monta sozinha ao aparecer) e a lista das cinco etapas */
  .process .pin-wrap { height: auto; grid-template-columns: 1fr; gap: 0; padding-block: 100px; }
  .process .pin-wrap::before {
    background:
      radial-gradient(60% 30% at 50% 58%, rgba(47, 123, 255, .18), transparent 72%),
      linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 44px 44px,
      linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 44px 44px;
    -webkit-mask-image: radial-gradient(80% 32% at 50% 56%, #000 20%, transparent 80%);
            mask-image: radial-gradient(80% 32% at 50% 56%, #000 20%, transparent 80%);
  }
  .climb-left { display: contents; }
  .process .sec-head { order: 1; }
  .process .h2 { order: 2; }
  .climb-intro { order: 3; }
  .climb-right { order: 4; justify-content: center; perspective: none; }
  .stair { width: min(100%, 420px); margin: 84px auto 0; row-gap: 54px; }
  .stair::after { left: -4%; right: -4%; }
  .stair-b b { font-size: clamp(13px, 4vw, 20px); }
  .climb-steps { order: 5; display: block; margin-bottom: 0; margin-top: 48px; border-top: 1px solid var(--line); }
  .climb-step { position: static; padding: 20px 0; border-bottom: 1px solid var(--line); }
  .process .climb-step > * { opacity: 1; transform: none; }
  .climb-step h3 { font-size: 26px; }
  .climb-progress { display: none; }

  /* portfólio no celular: título, galeria e informações agrupados no centro da tela */
  .work .pin-wrap { justify-content: center; gap: 28px; padding-bottom: 24px; }
  #gallery { flex: none; height: clamp(230px, 66vw, 480px); }
  .work-info { grid-template-columns: auto 1fr; padding-bottom: 0; gap: 20px; }
  .work-info .btn { display: none; }
  .drag-hint { display: none; }

}
@media (max-width: 560px) {
  .contact-row { grid-template-columns: 1fr; }
  /* celular: os dois botões do topo empilhados, na largura toda */
  .hero-ctas { flex-direction: column; gap: 10px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .about-lede .w { opacity: 1; }
}
