/* Empresa Agêntica: a página que os agentes escrevem enquanto você lê.
   Cores, fontes e regras: marca/agentica-v2/final/linha-de-produto/manual-de-marca.pdf */

@font-face { font-family: 'Anybody Titulo'; src: url(../fonts/anybody-titulo.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Anybody Texto'; src: url(../fonts/anybody-texto.woff2) format('woff2'); font-weight: 400 760; font-display: swap; }
@font-face { font-family: 'Anybody VF'; src: url(../fonts/anybody-vf-mim.woff2) format('woff2'); font-weight: 100 900; font-stretch: 50% 150%; font-display: swap; }
@font-face { font-family: 'JetBrains Mono EA'; src: url(../fonts/jetbrains-mono-light.woff2) format('woff2'); font-weight: 300; font-display: swap; }

:root {
  --papel: #F2F0EA;
  --tinta: #121316;
  --rosa: #FF3B6B;
  --rosa-papel: #C81646;    /* rosa como texto pequeno sobre papel (5,04:1) */
  --cinza: #96928A;
  --canal: #706D67;
  --tinta-2: #1B1C20;      /* superfície sobre tinta */
  --tinta-3: #26272C;
  --papel-2: #E6E3DB;      /* superfície sobre papel */
  --sobre-papel-2: #55524C;/* texto secundário sobre papel (7,1:1) */
  --titulo: 'Anybody Titulo', 'Arial Narrow', sans-serif;
  --texto: 'Anybody Texto', 'Arial', sans-serif;
  --mono: 'JetBrains Mono EA', ui-monospace, monospace;
  --trilho: 0px;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0; background: var(--tinta); color: var(--papel);
  font-family: var(--texto); font-weight: 440; font-size: 18px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 .9em; }
h1, h2, h3 { margin: 0; font-weight: normal; }
button { font: inherit; color: inherit; }
::selection { background: var(--papel); color: var(--tinta); }

[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.pular { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--papel); color: var(--tinta); padding: 10px 14px; font-weight: 600; }
.pular:focus { top: 12px; }
.so-estreito { display: none; }

/* ---------------------------------------------------------------- tipografia */
.titulo {
  font-family: var(--titulo); text-transform: uppercase; line-height: .96; letter-spacing: 0;
  font-size: clamp(46px, 7.2vw, 116px); font-kerning: normal;
}
.titulo--m { font-size: clamp(40px, 5.6vw, 88px); }
.titulo--xl { font-size: clamp(52px, 9vw, 150px); }
.rosa { color: var(--rosa); }
.mono { font-family: var(--mono); font-weight: 300; font-size: 14px; letter-spacing: 0; }
.apoio { font-size: 19px; max-width: 34em; }
.destaque { font-weight: 640; }
.cinza { color: var(--cinza); }
.palavra { white-space: nowrap; }

/* Ê com o circunflexo da marca (geometria: design-system/marcas/ea/geometria.json).
   O texto no DOM é "Ê" de verdade (copiar, traduzir e ler funcionam); o acento da fonte fica recortado
   e o circunflexo da marca é desenhado por cima. Anybody Titulo: versal 0,675 em, topo da caixa 0,795 em. */
.chapeu { position: relative; display: inline; }
.chapeu__l { clip-path: inset(.1em -.3em -.4em -.3em); }
.chapeu svg { position: absolute; left: 0; top: -.045em; width: .4em; height: .14em; overflow: visible; fill: currentColor; }

/* ---------------------------------------------------------------- botões */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em; text-align: center; text-wrap: balance;
  min-height: 56px; padding: 0 28px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--texto); font-weight: 680; font-size: 18px; line-height: 1.1; text-decoration: none;
  transition: transform .25s var(--ease), background-color .25s;
}
.botao--rosa { background: var(--rosa); color: var(--tinta); }
.botao--rosa:hover { background: #FF5A82; }
.botao--rosa:active { transform: scale(.98); }
.botao:focus-visible, .aprovar:focus-visible, .agente__abrir:focus-visible, .decisao button:focus-visible, .pausa:focus-visible, .aba:focus-visible, .git__texto:focus-visible, .objecao-quem button:focus-visible { outline: 3px solid var(--papel); outline-offset: 3px; }
.secao--papel .botao:focus-visible, .secao--papel button:focus-visible { outline-color: var(--tinta); }
.botao--p { min-height: 46px; padding: 0 20px; font-size: 16px; }
.botao .seta { font-family: var(--texto); font-weight: 500; }

/* pausar o movimento (WCAG 2.2.2): no trilho do registro e no canto do topo */
.pausa {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--cinza); font-family: var(--mono); font-weight: 300; font-size: 13px; text-align: left;
}
.pausa:hover { color: var(--papel); }
.pausa__icone { flex: none; width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.pausa.ligar .pausa__icone { width: 0; height: 0; border-right: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.pausa--heroi { position: absolute; right: var(--pad); bottom: 10px; z-index: 3; }

/* ---------------------------------------------------------------- trilho do registro (lateral no computador, faixa no celular) */
.registro {
  position: fixed; z-index: 40; left: 0; top: 0; bottom: 0; width: 256px;
  display: flex; flex-direction: column; gap: 12px; padding: 24px 22px 22px;
  background: var(--tinta); color: var(--cinza);
  box-shadow: inset -1px 0 0 #2A2B30;
  opacity: 0; transform: translateX(-16px); pointer-events: none;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.registro.ligado { opacity: 1; transform: none; pointer-events: auto; }
.registro__marca img { width: 190px; height: auto; }
.registro__rotulo { margin: 8px 0 0; font-size: 14px; font-weight: 600; color: var(--papel); }
/* as linhas sobem por rolagem do próprio trilho (rolagem não conta como deslocamento de layout) */
.registro__linhas {
  list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 38%); mask-image: linear-gradient(to bottom, transparent, #000 38%);
}
.registro__linhas::before { content: ''; flex: 0 0 100%; }
.registro__linhas li { flex: none; font-family: var(--mono); font-weight: 300; font-size: 13px; line-height: 1.38; padding: 3px 0; color: var(--cinza); overflow-wrap: anywhere; }
.registro__linhas li:last-child { color: var(--papel); }
.registro__linhas time { color: var(--cinza); margin-right: .5em; }
.registro__linhas .rosa { color: var(--rosa); }
.registro__linhas .pede { color: var(--papel); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.registro__conta { margin: 0; font-family: var(--mono); font-weight: 300; font-size: 13px; color: var(--cinza); }
.registro__conta b { font-weight: 300; color: var(--papel); }
.registro__conta .rosa b, .registro__conta b.rosa { color: var(--rosa); }
.registro .pausa { margin: -4px 0 -6px; }
.registro .botao { width: 100%; padding: 0 12px; font-size: 15px; white-space: nowrap; }

@media (min-width: 1100px) {
  :root { --trilho: 256px; }
  main, .rodape { margin-left: var(--trilho); }
}
@media (max-width: 1099px) {
  html { scroll-padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .registro {
    top: auto; width: auto; right: 0; height: 60px; flex-direction: row; align-items: center; gap: 6px;
    padding: 8px 10px 8px 14px; box-shadow: inset 0 1px 0 #2A2B30; transform: translateY(14px);
    padding-bottom: calc(8px + env(safe-area-inset-bottom)); height: calc(60px + env(safe-area-inset-bottom));
  }
  .registro__marca, .registro__rotulo, .registro__conta { display: none; }
  .registro__linhas { -webkit-mask-image: none; mask-image: none; justify-content: center; min-width: 0; height: 100%; }
  .registro__linhas::before { display: none; }
  .registro__linhas li { display: none; padding: 0; }
  .registro__linhas li:last-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; animation: linha-entra .35s var(--ease) both; }
  .registro__linhas li:last-child time { display: none; }
  .registro .pausa { order: -1; width: 36px; justify-content: flex-start; flex: none; margin: 0; }   /* à esquerda: não anda quando o botão sai no fecho */
  .registro .pausa__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .registro .botao { width: auto; flex: none; min-height: 44px; padding: 0 16px; font-size: 15px; }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .time__fotos { margin-left: calc(-1 * var(--pad)); }
  /* faixa do celular: "sua aprovação" vira "você" para caber em duas linhas */
  .registro__linhas li:last-child .pede { font-size: 0; }
  .registro__linhas li:last-child .pede::after { content: attr(data-curto); font-size: 13px; }
}
@media (max-width: 400px) {
  .registro .botao { padding: 0 12px; }
  .registro .so-largo { display: none; }
}
@keyframes linha-entra { from { opacity: 0; } to { opacity: 1; } }
/* no fecho, a decisão é uma só: o botão da faixa sai e a linha do registro usa a largura toda */
.no-fecho .registro .botao { display: none; }

/* ---------------------------------------------------------------- cursor de agente */
.cursor-agente {
  position: absolute; left: 0; top: 0; z-index: 30; pointer-events: none;
  display: flex; align-items: flex-start; gap: 2px; opacity: 0; will-change: transform;
  transition: opacity .3s;
}
.cursor-agente.visivel { opacity: 1; }
.cursor-agente svg { width: 22px; height: 27px; flex: none; filter: none; }
.cursor-agente__nome {
  margin-top: 17px; display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px 3px 3px; border-radius: 999px;
  background: var(--papel); color: var(--tinta); font-family: var(--mono); font-weight: 300; font-size: 16px; line-height: 1; white-space: nowrap;
}
.cursor-agente__nome img, .cursor-agente__nome i { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.cursor-agente__nome i { display: grid; place-items: center; background: var(--tinta-3); color: var(--papel); font-style: normal; font-size: 13px; }
.secao--papel .cursor-agente__nome { background: var(--tinta); color: var(--papel); }
@media (max-width: 600px) {
  .cursor-agente__nome { font-size: 14px; gap: 6px; padding-right: 10px; }
  .cursor-agente__nome img, .cursor-agente__nome i { width: 24px; height: 24px; }
}
.caret { display: inline-block; width: 0; height: .74em; position: relative; vertical-align: baseline; }
.caret::after { content: ''; position: absolute; left: .02em; bottom: -.04em; height: .82em; width: .055em; background: currentColor; animation: pisca 1s steps(1) infinite; }
@keyframes pisca { 50% { opacity: 0; } }
.js .digitando .ch { visibility: hidden; }
.js .digitando .ch.on { visibility: visible; }

/* ---------------------------------------------------------------- herói */
.heroi { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.heroi__campo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.heroi__bloco { position: relative; width: min(100%, 1240px); margin: 0 auto; padding: 72px var(--pad) 64px; }
.heroi__nome { display: block; width: min(64vw, 940px); margin: 0 auto; }
.heroi__espaco { position: relative; display: block; width: 100%; aspect-ratio: 1124.65 / 463.11; }
.heroi__espaco img { position: absolute; inset: 0; width: 100%; height: 100%; }
.campo-pronto .heroi__espaco img { visibility: hidden; }
.heroi__texto { width: min(64vw, 940px); margin: clamp(28px, 4vh, 44px) auto 0; display: grid; grid-template-columns: minmax(18em, 1fr) auto; align-items: end; gap: 18px 40px; }
.heroi__frase { font-size: clamp(34px, 3.9vw, 60px); grid-column: 1 / -1; }
.heroi__apoio { margin: 0; font-size: 19px; color: var(--papel); max-width: 30em; }
.heroi__apoio span, .heroi__apoio-cel span { color: var(--cinza); }
.heroi__apoio-cel { display: none; }

/* entre o celular e o computador largo (iPad em pé, janela pela metade, notebook pequeno): apoio e botão empilhados.
   Lado a lado só a partir de 1340 px, quando o apoio tem 22em e o botão cabe em uma linha. */
@media (min-width: 761px) and (max-width: 1339px) {
  .heroi__texto { grid-template-columns: minmax(0, 1fr); }
  .heroi__texto .botao { justify-self: start; }
}
@media (max-width: 760px) {
  .heroi { align-items: start; }
  .heroi__bloco { padding: 0 12px; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-bottom: 6svh; }
  .heroi__nome { width: 100%; }
  .heroi__texto { width: 100%; display: block; margin-top: 30px; padding: 0 6px; }
  .heroi__frase { font-size: 40px; margin-bottom: 14px; }
  .heroi__apoio { display: none; }
  .heroi__apoio-cel { display: block; font-size: 18px; line-height: 1.35; margin: 0 0 22px; color: var(--papel); }
  .heroi .botao { width: 100%; padding: 0 14px; font-size: 17px; }
  .pausa--heroi { right: 14px; bottom: 6px; }
}
@media (max-width: 380px) {
  .heroi .so-largo { display: none; }
  .heroi .so-estreito { display: inline; }
}

/* ---------------------------------------------------------------- seções */
.secao { position: relative; padding: clamp(96px, 13vh, 150px) var(--pad); overflow: clip; }
.secao--papel { background: var(--papel); color: var(--tinta); }
.secao--papel ::selection { background: var(--tinta); color: var(--papel); }
.secao__cabeca { max-width: 1100px; }
.secao__cabeca .titulo { margin-bottom: 28px; }
.secao__cabeca p { font-size: 19px; max-width: 36em; }
.secao--papel .cinza, .secao--papel .mono.cinza { color: var(--sobre-papel-2); }

/* assinatura da seção: só onde um agente construiu algo na frente de quem lê */
.assinatura-secao {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  margin-top: clamp(56px, 8vh, 96px); padding-top: 18px; border-top: 1px solid #2A2B30;
}
.secao--papel .assinatura-secao { border-top-color: #D6D2C8; }
.assinatura-secao .mono { color: var(--cinza); margin: 0; display: inline-flex; align-items: center; }
.secao--papel .assinatura-secao .mono { color: var(--sobre-papel-2); }
.aprovar {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 999px; background: var(--rosa); color: var(--tinta); cursor: pointer;
  font-weight: 680; font-size: 17px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation;
}
.aprovar::before { content: ''; position: absolute; inset: 0; background: var(--tinta); opacity: .22; transform: scaleX(var(--p, 0)); transform-origin: left; }
.aprovar span, .aprovar small { position: relative; }
.aprovar small { font-weight: 500; font-size: 15px; }
.aprovar.feito { background: transparent; color: var(--rosa); padding-left: 0; padding-right: 0; cursor: default; }
.aprovar.feito::before { display: none; }
.secao--papel .aprovar.feito, .folha .aprovar.feito { color: var(--rosa-papel); }

/* revelação ligada à rolagem (com IntersectionObserver de reserva) */
.surge { opacity: 1; }
.js .surge { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .surge.visto { opacity: 1; transform: none; }
@supports (animation-timeline: view()) {
  .js .surge, .js .surge.visto { opacity: 1; transform: none; transition: none;
    animation: surgir linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
}
@keyframes surgir { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- 2. gargalo */
.gargalo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 72px); align-items: center; }
.gargalo { margin-top: clamp(40px, 6vh, 72px); }
.gargalo .depois { font-weight: 640; }
.js .gargalo .depois { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .gargalo.resolvido .depois { opacity: 1; transform: none; }
.palco { position: relative; height: clamp(560px, 70vh, 660px); }
.palco__canais { position: absolute; inset: 0; }
.palco__canal { position: absolute; left: 0; right: 0; height: 1px; }
/* a linha começa depois do rótulo mais largo ("infraestrutura", 109 px); o ea.js usa o mesmo valor (xLinha) */
.palco__canal i { position: absolute; left: 118px; right: 0; top: 0; height: 1px; background: #BDB8AD; transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.palco__canal span { position: absolute; left: 0; top: -17px; font-family: var(--mono); font-weight: 300; font-size: 13px; color: var(--sobre-papel-2); opacity: 0; transition: opacity .4s; }
.palco.canais .palco__canal i { transform: scaleX(1); }
.palco.canais .palco__canal span { opacity: 1; }
.tarefa {
  position: absolute; left: 0; top: 0; padding: 7px 11px; background: var(--tinta); color: var(--papel); white-space: nowrap;
  font-family: var(--mono); font-weight: 300; font-size: 13px; line-height: 1.1; will-change: transform;
  transition: background-color .5s, color .5s, box-shadow .5s;
}
.tarefa.no-canal { background: transparent; color: var(--tinta); padding: 0 2px; }
.voce { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--rosa); transform: translate(-50%, -50%); }
.voce span { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-weight: 300; font-size: 13px; color: var(--tinta); }
/* as 3 decisões: contorno rosa, sem preenchimento (são suas, mas não são botões) */
.tarefa.decisao-final { background: var(--papel); color: var(--tinta); box-shadow: inset 0 0 0 2px var(--rosa); font-family: var(--texto); font-weight: 640; font-size: 17px; padding: 12px 16px; }
@media (max-width: 960px) {
  .gargalo { grid-template-columns: 1fr; }
  .palco { height: 600px; }
}
@media (max-width: 520px) {
  .palco { height: 700px; }
  .tarefa { font-size: 13px; padding: 6px 9px; }
}

/* ---------------------------------------------------------------- 3. tripulação: uma linha fina por agente */
.tripulacao { margin-top: clamp(40px, 6vh, 64px); }
.tripulacao__dica { font-size: 17px; color: var(--cinza); margin: -8px 0 18px; }
.setor { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: start; border-top: 1px solid #2A2B30; }
.setor > h3 { font-family: var(--texto); font-weight: 640; font-size: 15px; color: var(--cinza); margin: 0; padding-top: 20px; }
.agente { position: relative; }
.agente__abrir {
  width: 100%; display: grid; grid-template-columns: 44px minmax(150px, 230px) minmax(0, 1fr); align-items: center; gap: 16px;
  padding: 7px 0; border: 0; background: none; cursor: pointer; text-align: left;
}
.agente__foto { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--tinta-3); display: grid; place-items: center; }
.agente__foto img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .5s; }
.agente__foto i { font-style: normal; font-family: var(--titulo); font-size: 22px; color: var(--cinza); }
.agente__nome { font-family: var(--titulo); text-transform: uppercase; font-size: 26px; line-height: .95; }
.agente__funcao { display: block; font-family: var(--texto); font-size: 15px; text-transform: none; color: var(--cinza); margin-top: 3px; font-weight: 500; }
.agente__trilha { position: relative; height: 30px; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 6%, #000 92%, transparent); }
.agente__trilha::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--canal); transform-origin: left; }
.agente__fita { position: absolute; top: 50%; left: 0; display: flex; gap: 48px; white-space: nowrap; transform: translateY(-50%); animation: fita var(--dur, 40s) linear infinite; transition: opacity .5s; }
.agente__fita span { font-family: var(--mono); font-weight: 300; font-size: 14px; color: var(--cinza); background: var(--tinta); padding: 0 10px; }
.agente__fita .pede, .agente__fita .rosa { color: var(--papel); }
@keyframes fita { to { transform: translate(-50%, -50%); } }
/* a fita para quando você para em cima para ler */
.agente:hover .agente__fita, .agente__abrir:focus-visible .agente__fita { animation-play-state: paused; }
.agente__mais { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.agente__mais > div { overflow: hidden; }
.agente:not(.aberto) .agente__mais > div { visibility: hidden; transition: visibility 0s .45s; }
.agente.aberto .agente__mais > div, .no-js .agente__mais > div { visibility: visible; transition: none; }
.agente__mais p { margin: 0; padding: 0 0 16px 60px; font-size: 18px; max-width: 40em; }
.agente.aberto .agente__mais, .no-js .agente__mais { grid-template-rows: 1fr; }
.agente.trabalhando .agente__fita span:first-child { color: var(--papel); }
/* o agente de design desenha: cada canal entra quando o cursor dele passa */
.js .tripulacao .agente { transition: opacity .35s var(--ease), transform .35s var(--ease); }
.js .tripulacao:not(.desenhada) .agente:not(.tracado) { opacity: 0; transform: translateX(-10px); }
.js .agente__trilha::before { transform: scaleX(0); transition: transform .7s var(--ease) .05s; }
.js .agente.tracado .agente__trilha::before, .js .tripulacao.desenhada .agente__trilha::before { transform: scaleX(1); }
.js .tripulacao:not(.desenhada) .agente:not(.tracado) .agente__fita { opacity: 0; }
@media (max-width: 760px) {
  .setor { grid-template-columns: 1fr; }
  .setor > h3 { padding: 14px 0 2px; }
  .agente__abrir { grid-template-columns: 40px minmax(0, 1fr); gap: 2px 14px; padding: 6px 0; }
  .agente__foto { width: 40px; height: 40px; grid-row: span 2; }
  .agente__nome { font-size: 24px; }
  .agente__trilha { grid-column: 2; height: 26px; }
  .agente__mais p { padding-left: 54px; }
}

/* ---------------------------------------------------------------- 4. relógio: o mostrador na frente, o título ao lado */
.relogio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.relogio__mostrador { position: sticky; top: 10vh; width: min(100%, 560px); aspect-ratio: 1; justify-self: center; }
.relogio__mostrador svg { width: 100%; height: 100%; overflow: visible; }
.relogio__centro { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.relogio__centro small { font-size: 15px; color: var(--cinza); font-weight: 500; }
.relogio__hora { font-family: var(--titulo); font-size: clamp(56px, 6.2vw, 92px); line-height: .9; font-variant-numeric: tabular-nums; }
.relogio__seg { font-family: var(--mono); font-weight: 300; font-size: 14px; color: var(--cinza); }
.relogio__lado .titulo { margin-bottom: 24px; }
.relogio__intro { font-size: 19px; max-width: 34em; }
.relogio__agora { font-size: 19px; margin: 26px 0 22px; min-height: 3.2em; }
.relogio__agora b { font-weight: 640; }
.rotinas { list-style: none; margin: 0; padding: 0; }
.rotinas li { display: grid; grid-template-columns: 86px 40px minmax(0, 1fr); align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid #2A2B30; transition: background-color .4s, opacity .4s; }
.js .rotinas li { opacity: 0; }
.js .rotinas li.on, .js .rotinas.todas li { opacity: 1; }
.rotinas li:last-child { border-bottom: 1px solid #2A2B30; }
.rotinas time { font-family: var(--mono); font-weight: 300; font-size: 15px; color: var(--papel); }
.rotinas time small { display: block; font-size: 13px; color: var(--cinza); }
.rotinas img, .rotinas .sem-foto { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; filter: grayscale(1); transition: filter .4s; }
.rotinas .sem-foto { display: grid; place-items: center; background: var(--tinta-3); color: var(--cinza); font-family: var(--mono); font-size: 13px; }
.rotinas p { margin: 0; font-size: 17px; }
.rotinas p b { font-weight: 640; }
.rotinas li.proxima { background: var(--tinta-2); }
.rotinas .marca-estado { display: inline-block; margin-left: 6px; font-family: var(--mono); font-weight: 300; font-size: 13px; color: var(--cinza); }
.rotinas li.proxima .marca-estado { color: var(--papel); }
@media (max-width: 960px) {
  .relogio { grid-template-columns: 1fr; row-gap: 0; }
  .relogio__lado { display: contents; }
  .relogio__lado .titulo { order: 1; }
  .relogio__intro { order: 2; }
  .relogio__mostrador { order: 3; position: relative; top: auto; width: min(100%, 420px); margin-top: 18px; }
  .relogio__agora { order: 4; }
  .rotinas { order: 5; }
}
@media (max-width: 520px) { .rotinas li { grid-template-columns: 70px 36px minmax(0, 1fr); gap: 10px; } .rotinas img, .rotinas .sem-foto { width: 36px; height: 36px; } }

/* ---------------------------------------------------------------- 5. pilha de decisões */
.pilha-area { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.placar { margin-top: 36px; display: grid; gap: 14px; }
.placar__linha { display: flex; align-items: baseline; gap: 14px; padding-top: 14px; border-top: 1px solid #D6D2C8; }
.placar__num { font-family: var(--titulo); font-size: 64px; line-height: .9; font-variant-numeric: tabular-nums; min-width: 1.15em; }
.placar__num.rosa { color: var(--rosa-papel); }
.placar__linha p { margin: 0; font-size: 17px; color: var(--sobre-papel-2); }
.pilha { position: relative; height: 420px; max-width: 560px; width: 100%; justify-self: center; }
.decisao[data-camada="1"] { background: #2A2B30; }
.decisao[data-camada="1"] > *, .decisao[data-camada="2"] > *, .decisao[data-camada="3"] > * { visibility: hidden; }
.decisao[data-camada="2"] { background: #45464B; }
.decisao {
  position: absolute; left: 0; right: 0; top: 0; padding: 24px 26px 22px; background: var(--tinta); color: var(--papel);
  transform-origin: 50% 0; transition: transform .5s var(--ease), opacity .5s var(--ease);
  min-height: 300px; display: flex; flex-direction: column;
}
.decisao__quem { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 300; font-size: 14px; color: var(--cinza); }
.decisao__quem img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.decisao__quem b { font-weight: 300; color: var(--papel); }
.decisao h3 { font-family: var(--texto); font-weight: 680; font-size: 26px; line-height: 1.15; margin: 18px 0 8px; }
.decisao p { font-size: 17px; color: #C9C5BC; margin: 0 0 22px; }
.decisao__acoes { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.decisao__acoes button { min-height: 50px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 680; font-size: 17px; }
.decisao__acoes .sim { background: var(--rosa); color: var(--tinta); }
.decisao__acoes .ajuste { background: none; color: var(--rosa); padding: 0 6px; text-decoration: underline; text-underline-offset: 4px; }
.decisao__carimbo { position: absolute; right: 22px; top: 22px; font-family: var(--mono); font-weight: 300; font-size: 13px; color: var(--rosa); opacity: 0; }
.decisao.decidida .decisao__carimbo { opacity: 1; }
.decisao.ajustando .decisao__acoes { opacity: .3; pointer-events: none; }
.pilha__fim { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 16px; opacity: 0; pointer-events: none; transition: opacity .5s; }
.pilha__fim.visivel { opacity: 1; pointer-events: auto; }
.pilha__fim p { font-family: var(--titulo); text-transform: uppercase; font-size: clamp(36px, 4.4vw, 60px); line-height: .92; margin: 0; }
.pilha__fim button { justify-self: center; background: var(--tinta); color: var(--papel); }
@media (max-width: 960px) { .pilha-area { grid-template-columns: 1fr; } .pilha { height: 440px; } }

/* ---------------------------------------------------------------- 6. código: o texto parado ao lado, os commits entram um a um */
.codigo-area { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.codigo-area__lado { position: sticky; top: 12vh; }
.codigo-area__lado .titulo { margin-bottom: 28px; font-size: clamp(40px, 4.4vw, 72px); }
.codigo-area .lema { margin-top: 22px; }
.lema { font-family: var(--titulo); text-transform: uppercase; font-size: clamp(30px, 3vw, 44px); line-height: .95; margin-top: 30px; }
.historico { list-style: none; margin: 0; padding: 8px 0 0 34px; position: relative; }
.historico::before { content: ''; position: absolute; left: 7px; top: 18px; bottom: 10px; width: 1px; background: var(--canal); transform-origin: top; }
@supports (animation-timeline: view()) {
  .js .historico::before { animation: traco-v linear both; animation-timeline: view(); animation-range: entry 0% cover 55%; }
}
@keyframes traco-v { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.commit { position: relative; padding: 0 0 34px; }
.js .commit { opacity: 0; transform: translateY(12px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.js .commit.on { opacity: 1; transform: none; }
.commit::before { content: ''; position: absolute; left: -32px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--tinta); box-shadow: inset 0 0 0 2px var(--cinza); }
.commit.humano::before { background: var(--rosa); box-shadow: none; }
.commit.ao-vivo::before { background: var(--papel); box-shadow: none; }
.commit__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-family: var(--mono); font-weight: 300; font-size: 14px; color: var(--cinza); }
.commit__meta .hash { color: var(--cinza); }
.commit__meta .autor { display: inline-flex; align-items: center; gap: 7px; color: var(--papel); }
.commit__meta img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.commit.humano .autor { color: var(--rosa); }
.commit__msg { font-weight: 640; font-size: 21px; line-height: 1.25; margin: 6px 0 4px; }
.commit__porque { font-size: 17px; color: #C9C5BC; margin: 0; }
.commit__porque span { color: var(--cinza); }
.diff { margin: 14px 0 0; padding: 14px 16px; background: var(--tinta-2); font-family: var(--mono); font-weight: 300; font-size: 14px; line-height: 1.6; overflow-x: auto; }
.diff div { white-space: pre; }
.diff .arq { color: var(--cinza); }
.diff .mais { color: var(--papel); }
.diff .mais b { font-weight: 300; color: var(--rosa); }
@media (max-width: 960px) { .codigo-area { grid-template-columns: 1fr; } .codigo-area__lado { position: static; } }
@media (max-width: 520px) { .diff { font-size: 13px; } .diff div { white-space: pre-wrap; } }

/* ---------------------------------------------------------------- 7. método: um documento só, que cresce a cada movimento */
.metodo { margin-top: clamp(40px, 6vh, 72px); }
.metodo__abas { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid #CFCAC0; }
.aba {
  position: relative; display: flex; align-items: baseline; gap: 10px; min-height: 56px; padding: 16px 12px 12px 0;
  border: 0; background: none; cursor: pointer; text-align: left; color: var(--sobre-papel-2); transition: color .3s;
}
.aba:hover { color: var(--tinta); }
.aba__n { font-family: var(--titulo); font-size: 30px; line-height: 1; }
.aba__v { font-weight: 640; font-size: 17px; }
.aba[aria-selected="true"] { color: var(--tinta); }
.aba__barra { position: absolute; left: 0; right: 12px; top: -2px; height: 3px; background: var(--tinta); transform: scaleX(0); transform-origin: left; }
.aba[aria-selected="true"] .aba__barra { transform: scaleX(1); }
.metodo.anda .aba[aria-selected="true"] .aba__barra { animation: barra var(--ciclo, 5s) linear both; }
.metodo.parado .aba__barra { animation-play-state: paused !important; }
@keyframes barra { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.metodo__painel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); margin-top: 36px; align-items: start; }
.metodo__verbo { font-family: var(--titulo); text-transform: uppercase; font-size: clamp(44px, 5vw, 76px); line-height: .92; margin-bottom: 18px; }
.metodo__texto p { font-size: 19px; max-width: 26em; }
.metodo__texto .metodo__sai { font-size: 17px; color: var(--sobre-papel-2); }
.metodo__sai b { font-weight: 640; color: var(--tinta); }
.documento { background: var(--tinta); color: var(--papel); padding: 18px 26px 24px; }
.documento__topo { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid #2E2F35; font-family: var(--mono); font-weight: 300; font-size: 14px; color: var(--cinza); }
.documento__topo span:first-child { color: var(--papel); }
.documento__linhas { font-family: var(--mono); font-weight: 300; font-size: 15px; line-height: 1.7; min-height: calc(16 * 1.7em); }
.documento__linhas div { white-space: pre; color: var(--cinza); min-height: 1.7em; }
.documento__linhas .nova { color: var(--papel); }
.documento__linhas .vem { color: #85817A; }
.documento__linhas .caret { color: var(--papel); }
@media (max-width: 760px) {
  .aba { justify-content: center; padding: 14px 0 10px; }
  .aba__v { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .aba__barra { left: 6px; right: 6px; }
  .metodo__painel { grid-template-columns: 1fr; margin-top: 24px; }
  .documento { padding: 16px 18px 20px; }
  .documento__linhas { font-size: 14px; }
}

/* ---------------------------------------------------------------- 8. prova da casa: os números dentro da cena */
.numeros { margin-top: clamp(40px, 6vh, 72px); }
.numero--grande { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 28px; border-top: 1px solid #2A2B30; padding-top: 18px; }
.numero--grande b { position: relative; display: block; font-family: var(--titulo); font-weight: normal; font-size: clamp(150px, 27vw, 400px); line-height: .8; color: var(--papel); }
.numero--grande span { display: block; max-width: 11em; font-size: 19px; color: #C9C5BC; margin-bottom: .6em; }
.numero--grande b::after { content: attr(data-vivo); position: absolute; left: 0; top: 0; color: transparent; pointer-events: none;
  background-image: var(--textura, none); background-size: var(--tw, 1200px) var(--th, 300px); background-repeat: repeat;
  -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: .05em var(--papel); }
.numero--grande.vivo b::after { animation: registro-sobe var(--ciclo-reg, 17.6s) steps(22) infinite; }
@keyframes registro-sobe { to { background-position: 0 calc(-1 * var(--th, 300px)); } }
/* o agente de tráfego cola o número: entra da esquerda para a direita, atrás do cursor dele */
.js .numero--grande b { clip-path: inset(-6% 100% -6% 0); transition: clip-path .9s var(--ease); }
.js .numero--grande span { opacity: 0; transition: opacity .5s var(--ease) .7s; }
.js .numero--grande.colado b { clip-path: inset(-6% -6% -6% 0); }
.js .numero--grande.colado span { opacity: 1; }
.casa { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 88px); margin-top: clamp(64px, 9vh, 110px); align-items: start; }
.cadeia h3, .time h3 { font-family: var(--texto); font-weight: 640; font-size: 19px; margin: 0 0 18px; }
.regra .apoio { margin-top: 22px; }
.canal-demo { background: var(--tinta-2); padding: 8px 22px 14px; display: flex; flex-direction: column; }
.canal-demo__topo { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 12px 0 14px; border-bottom: 1px solid #2E2F35; font-family: var(--mono); font-weight: 300; font-size: 14px; color: var(--cinza); }
.canal-demo__topo b { font-weight: 300; color: var(--papel); white-space: nowrap; }
/* altura fixa na maior cadeia: mensagem nova entra embaixo e nada na página se mexe */
.canal-demo__msgs { list-style: none; margin: 0; padding: 6px 0 0; display: flex; flex-direction: column; justify-content: flex-start; gap: 4px; overflow: hidden; height: var(--h-msgs, 470px); transition: opacity .35s var(--ease); }
.canal-demo__msgs.limpando { opacity: 0; }
.msg { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 9px 0; animation: msg .45s var(--ease) both; }
.msg img, .msg .sem-foto { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.msg__quem { font-weight: 640; font-size: 16px; }
.msg__quem time { font-family: var(--mono); font-weight: 300; font-size: 13px; color: var(--cinza); margin-left: 8px; }
.msg p { margin: 2px 0 0; font-size: 17px; color: #D9D5CC; }
.msg p b { font-weight: 640; color: var(--papel); }
.msg .aprovar { margin-top: 10px; }
.msg--sistema { display: block; font-family: var(--mono); font-weight: 300; font-size: 14px; color: var(--cinza); padding: 4px 0 4px 48px; }
.msg--sistema .rosa { color: var(--rosa); }
.escrevendo { font-family: var(--mono); font-weight: 300; font-size: 13px; line-height: 20px; color: var(--cinza); height: 26px; padding: 6px 0 0 48px; overflow: hidden; }
@keyframes msg { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.time { margin-top: clamp(56px, 8vh, 96px); }
.time__n { font-family: var(--titulo); font-weight: normal; font-size: 1.7em; line-height: 0; vertical-align: -.1em; }
.time__fotos figure { margin: 0; }
.time__fotos img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1); background: var(--tinta-3); }
.time__fotos figcaption { font-size: 15px; margin-top: 7px; line-height: 1.25; }
/* credenciais numa faixa só, em texto */
.credenciais { margin: clamp(56px, 8vh, 96px) 0 0; padding-top: 22px; border-top: 1px solid #2A2B30; font-family: var(--titulo); text-transform: uppercase; font-size: clamp(28px, 2.8vw, 44px); line-height: 1.06; max-width: 30em; }
.credencial { display: inline; }
@media (max-width: 760px) { .credencial { display: block; } .credencial + .credencial { margin-top: .3em; } }
.credencial--claude img { display: inline-block; width: auto; height: .66em; vertical-align: -.02em; margin-right: .12em; }
.js .credencial { opacity: 0; transition: opacity .5s var(--ease); }
.js .credencial.on, .js .credenciais.todas .credencial { opacity: 1; }
@media (max-width: 960px) {
  .casa { grid-template-columns: 1fr; }
  .numero--grande { grid-template-columns: 1fr; gap: 10px; }
  .numero--grande b { font-size: 36vw; }
  .canal-demo { padding: 8px 16px 14px; }
}
.fita-time { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.fita-time [aria-hidden="true"] { display: none; }
@media (max-width: 960px) and (min-width: 761px) { .fita-time { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .time__fotos { overflow: hidden; margin-right: calc(-1 * var(--pad)); }
  .fita-time { display: flex; width: max-content; gap: 10px; animation: fita-time 36s linear infinite; }
  .fita-time figure { width: 148px; flex: none; }
  .fita-time [aria-hidden="true"] { display: block; }
  .time__fotos:hover .fita-time, .time__fotos:active .fita-time, .time__fotos.parada .fita-time { animation-play-state: paused; }
}
@keyframes fita-time { to { transform: translateX(calc(-50% - 5px)); } }
/* prova de cliente (20/11): fora da Ahoy. A fala com o print ao lado; o número com a ressalva do próprio relatório.
   Sem rosa: aqui ninguém decide nada por você. O print fica em preto e branco, como as fotos do time.
   Cada caso abre com uma linha de registro (quando e quem), na mesma letra do trilho.
   Uma coluna quando a coluna do print ficaria abaixo de ~350 px (a letra do print some): celular, tablet e de 1100 a ~1260 px com o trilho. */
.clientes { margin-top: clamp(64px, 9vh, 110px); container: clientes / inline-size; }
.clientes h3 { font-family: var(--texto); font-weight: 640; font-size: 19px; margin: 0 0 26px; }
.cliente { margin: 0; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 4.5vw, 72px); align-items: start; }
.cliente__hora { grid-area: hora; margin: 0 0 16px; color: var(--papel); line-height: 1.4; }
.cliente__hora time, .cliente__hora span { color: var(--cinza); margin-right: .9em; }
.cliente--matheus { grid-template-areas: "hora hora" "fala print" "nota print"; grid-template-rows: auto auto 1fr; }
.cliente__fala { grid-area: fala; margin: 0; }
.cliente__fala p { max-width: 24em; margin: 0; font-size: clamp(26px, 2.45vw, 36px); line-height: 1.2; color: #C9C5BC; text-wrap: pretty; }
.cliente__fala b { font-weight: 640; color: var(--papel); }
.cliente__print { grid-area: print; align-self: center; width: 100%; height: auto; filter: grayscale(1); background: #0A0C0D; }
.cliente__nota { grid-area: nota; margin-top: 18px; font-size: 18px; color: var(--cinza); }
.cliente--9ne { grid-template-areas: "hora hora" "num texto"; align-items: end; margin-top: clamp(56px, 8vh, 96px); padding-top: 18px; border-top: 1px solid #2A2B30; }
.cliente__num { grid-area: num; margin: 0; }
.cliente__num b { display: block; font-family: var(--titulo); font-weight: normal; font-size: clamp(76px, 9vw, 132px); line-height: .82; color: var(--papel); }
.cliente__num span { display: block; max-width: 22em; margin-top: 14px; font-size: 19px; color: #C9C5BC; }
.cliente__texto { grid-area: texto; }
.cliente__texto p { margin: 0 0 .7em; font-size: 18px; color: #C9C5BC; }
.cliente__texto .cliente__ressalva { margin: 0; color: var(--cinza); }
@container clientes (max-width: 879px) {
  .cliente { grid-template-columns: minmax(0, 1fr); }
  .cliente--matheus { grid-template-areas: "hora" "fala" "print" "nota"; grid-template-rows: none; }
  .cliente__print { max-width: 560px; margin-top: 22px; }
  .cliente__nota { margin-top: 12px; }
  .cliente--9ne { grid-template-areas: "hora" "num" "texto"; }
  .cliente__texto { max-width: 36em; margin-top: 20px; }
}

/* ---------------------------------------------------------------- 9. objeções: o medo entre aspas, a resposta em tinta */
.objecao-palco { position: relative; margin-top: clamp(44px, 6vh, 72px); min-height: var(--h-obj, 3.4em); font-family: var(--titulo); text-transform: uppercase; font-size: clamp(42px, 6.2vw, 104px); line-height: .95; transition: color .4s; }
.objecao-palco.citacao { color: var(--sobre-papel-2); }
.objecao-palco [data-a]::before { content: '“'; position: absolute; transform: translateX(-100%); color: var(--sobre-papel-2); }
.objecao-palco:not(.citacao) [data-a]::before { content: none; }
.objecao-palco.citacao [data-b]::after { content: '”'; }
.objecao-palco .antes { text-decoration: line-through; text-decoration-thickness: .07em; text-decoration-color: var(--tinta); }
.objecao-palco .sel { background: var(--tinta); color: var(--papel); }
.objecao-quem { display: flex; align-items: center; gap: 0; margin-top: 30px; font-family: var(--mono); font-weight: 300; font-size: 14px; color: var(--sobre-papel-2); }
.objecao-quem button { width: 44px; min-width: 44px; height: 44px; border: 0; padding: 0; background: none; cursor: pointer; position: relative; }
.objecao-quem button::after { content: ''; position: absolute; left: 6px; right: 6px; top: 20px; height: 3px; background: #8A867E; }
.objecao-quem button[aria-current="true"]::after { background: var(--tinta); }
.objecao-quem span { margin-left: 10px; }
.objecoes-lista { list-style: none; margin: clamp(48px, 7vh, 80px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.objecoes-lista li { padding: 16px 0; border-top: 1px solid #D6D2C8; font-size: 18px; }
.objecoes-lista s { color: var(--sobre-papel-2); }
.objecoes-lista b { display: block; font-weight: 640; margin-top: 4px; }
/* com o movimento ligado, a lista fica só para o leitor de tela; parado, ela vira a seção */
.js:not(.pausado):not(.quieto) .objecoes-lista { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.js.pausado .objecao-palco, .js.pausado .objecao-quem, .js.quieto .objecao-palco, .js.quieto .objecao-quem { display: none; }
@media (max-width: 760px) { .objecoes-lista { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- 12. fecho */
.fecho { padding-bottom: clamp(72px, 10vh, 120px); }
.fecho__frase { font-size: clamp(48px, 7.6vw, 132px); max-width: 14ch; }
@supports (animation-timeline: view()) {
  .js .fecho__frase .pinta { background: linear-gradient(90deg, var(--papel) 50%, var(--canal) 50%) 100% 0 / 200% 100% no-repeat; -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: pintar linear both; animation-timeline: view(); animation-range: entry 20% cover 50%; }
}
@keyframes pintar { to { background-position: 0 0; } }
.fecho__conta { margin-top: 34px; font-family: var(--mono); font-weight: 300; font-size: 15px; color: var(--cinza); }
.fecho__conta b { font-weight: 300; color: var(--papel); }
.fecho__conta .rosa b { color: var(--rosa); }
.fecho__decisao { margin-top: clamp(48px, 7vh, 88px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px 48px; align-items: end; }
.fecho__decisao h3 { font-family: var(--texto); font-weight: 640; font-size: 19px; color: var(--cinza); margin-bottom: 14px; }
.botao--grande { min-height: 76px; padding: 0 38px; font-size: clamp(19px, 1.6vw, 23px); white-space: nowrap; }
.fecho__decisao p { font-size: 19px; margin: 0; max-width: 30em; }
@media (max-width: 760px) { .fecho__decisao { grid-template-columns: 1fr; } .botao--grande { width: 100%; padding: 0 20px; min-height: 68px; white-space: normal; } }

.rodape { padding: 48px var(--pad) 40px; border-top: 1px solid #2A2B30; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.rodape__marca img { width: clamp(220px, 26vw, 340px); height: auto; }
.rodape__info { font-size: 15px; color: var(--cinza); text-align: right; margin: 0; }
.rodape__info a { color: var(--papel); display: inline-block; padding: 12px 0; }
@media (max-width: 760px) { .rodape { padding-bottom: 32px; } .rodape__info { text-align: left; } }

/* ---------------------------------------------------------------- economia: laço dorme fora da tela, aba escondida, pausa e menos movimento */
.dorme *, .dorme *::before, .dorme *::after, .aba-oculta *, .aba-oculta *::before, .aba-oculta *::after { animation-play-state: paused !important; }
.pausado .agente__fita, .pausado .fita-time, .pausado .aba__barra, .pausado .caret::after, .pausado .fila__voce::after,
.pausado .numero--grande b::after, .pausado .linha-assinar__dica { animation-play-state: paused !important; }
.pausado .cursor-agente { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .surge { opacity: 1; transform: none; animation: none !important; }
  .agente__fita { animation: none !important; transform: translateY(-50%); }
  .cursor-agente { display: none; }
  .caret::after { display: none; }
}

/* imagem de compartilhamento (index.html?og) */
.og .registro, .og .heroi__apoio, .og .heroi__apoio-cel, .og .heroi .botao, .og .pausa, .og main, .og .rodape, .og .pular { display: none !important; }
.og .heroi { min-height: 630px; height: 630px; }
.og .heroi__bloco { padding: 0 0 0 0; }
.og .heroi__nome, .og .heroi__texto { width: 760px; }
.og .heroi__texto { margin-top: 30px; }
.og .heroi__frase { font-size: 52px; }

/* ---------------------------------------------------------------- 2. gargalo de letra (c27) */
@property --wd { syntax: '<number>'; inherits: true; initial-value: 150; }
@property --wg { syntax: '<number>'; inherits: true; initial-value: 900; }
@property --esc { syntax: '<number>'; inherits: true; initial-value: 1; }
@property --fr { syntax: '<percentage>'; inherits: true; initial-value: 0%; }
#gargalo { timeline-scope: --fresta; }
.gargalo__titulo { font-size: clamp(56px, 9.4vw, 150px); line-height: .9; position: relative; z-index: 2; --wd: 72; --wg: 860; --esc: 1; --fr: 0%; }
.gargalo__titulo .quebra { display: block; }
.mim { display: inline-block; font-family: 'Anybody VF', var(--titulo); font-variation-settings: 'wdth' var(--wd), 'wght' var(--wg); transform: scale(var(--esc)); transform-origin: 0 6%; white-space: nowrap; }
/* a altura acompanha a largura em tela larga (9:2): sem isso, de 1940 px para cima a fresta passa de 6:1 e o
   recorte do vídeo (4:1) perde o cabeçalho e o Aprovar. Até ~1840 px a altura mínima manda e nada muda.
   width 100%: sem ela, a altura mínima passa pela proporção para a largura e a fresta sai da coluna */
.fresta { position: relative; margin-top: clamp(64px, 9vw, 130px); width: 100%; max-width: 100%; min-width: 0; height: auto; aspect-ratio: 9 / 2; min-height: clamp(190px, 22vw, 320px); background: var(--tinta); overflow: hidden; clip-path: inset(0 var(--fr)); view-timeline: --fresta block; }
.fresta video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
/* o rótulo fica fora do recorte: aparece inteiro desde o começo */
.fresta__rotulo { margin: 12px 0 0; text-align: center; font-family: var(--mono); font-weight: 300; font-size: 13px; color: var(--sobre-papel-2); }
/* de 1100 a ~1460 px o trilho de 256 px estreita a fresta (3,03:1 em 1100) e o recorte cortaria as bordas do vídeo:
   a altura mínima não passa da largura da fresta / 3,28 (em 1440 dá 317 px, e a fresta continua com 316,8) */
@media (min-width: 1100px) {
  .fresta { min-height: clamp(190px, min(22vw, (100vw - var(--trilho) - 2 * var(--pad)) / 3.28), 320px); }
}
@supports (animation-timeline: view()) {
  .js .gargalo__titulo { animation: desincha linear both; animation-timeline: --fresta; animation-range: entry 40% cover 58%; }
  .js .fresta { animation: abre linear both; animation-timeline: --fresta; animation-range: entry 40% cover 58%; }
}
/* --esc0: o maior MIM que cabe na linha (medido no JS); 2,3 no computador e 1,3 no celular sem JS */
@keyframes desincha { from { --wd: 150; --wg: 900; --esc: var(--esc0, 2.3); } to { --wd: 72; --wg: 860; --esc: 1; } }
@keyframes desincha-m { from { --wd: 150; --wg: 900; --esc: var(--esc0, 1.3); } to { --wd: 72; --wg: 860; --esc: 1; } }
@keyframes abre { from { --fr: 41%; } to { --fr: 0%; } }
.js .gargalo:not(.resolvido) .gargalo__virada { opacity: 0; transform: translateY(14px); }
.gargalo__virada { font-size: clamp(40px, 4.6vw, 72px); margin: 26px 0 22px; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .gargalo:not(.resolvido) .gargalo__virada .chapeu { visibility: hidden; }
.gargalo.resolvido .gargalo__virada .chapeu { visibility: visible; transition: visibility 0s 1.1s; }
@media (max-width: 760px) {
  .gargalo__titulo { font-size: 64px; }
  .gargalo__titulo .mim { display: block; transform-origin: 0 0; }
  .js .gargalo__titulo { animation-name: desincha-m; }
  /* celular: a fresta tem a proporção do corte do celular (5:3); 210 px de altura em 390, mais alta entre 433 e 760 */
  .fresta { aspect-ratio: 5 / 3; min-height: 210px; margin-top: 80px; }
}
@media (prefers-reduced-motion: reduce) { .mim { --wd: 72; --wg: 860; --esc: 1; } .fresta { clip-path: none; } }

/* ---------------------------------------------------------------- rostos de quem fez a seção */
.sem-foto { font-style: normal; }
.commit__meta .sem-foto, .rostos .sem-foto { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--tinta-3); color: var(--papel); font-family: var(--mono); font-size: 13px; }
.decisao__quem .sem-foto { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--tinta-3); color: var(--papel); font-family: var(--mono); font-size: 14px; }
.msg .sem-foto { display: grid; place-items: center; background: var(--tinta-3); color: var(--papel); font-family: var(--mono); font-size: 14px; }
.rostos { display: inline-flex; vertical-align: middle; margin-right: 12px; }
.rostos img, .rostos .sem-foto { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--tinta); }
.secao--papel .rostos img, .secao--papel .rostos .sem-foto { box-shadow: 0 0 0 2px var(--papel); }
.rostos > * + * { margin-left: -7px; }

/* papel saindo da impressora: a tinta recolhe quando a seção de papel entra */
@supports (animation-timeline: view()) {
  .js .secao--papel::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 60vh; background: var(--tinta); z-index: 5; pointer-events: none; transform-origin: top;
    animation: imprimir linear both; animation-timeline: view(); animation-range: entry 0% entry 50%; }
}
@keyframes imprimir { from { transform: scaleY(1); } to { transform: scaleY(0); } }

/* ---------------------------------------------------------------- 6. cada letra é um commit (c23) */
.git { margin-top: clamp(72px, 10vh, 120px); padding-top: 28px; border-top: 1px solid #2A2B30; }
.git__titulo { font-family: var(--texto); font-weight: 640; font-size: 19px; margin-bottom: 22px; }
.git__nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.git__nums p { margin: 0; }
.git__nums b { display: block; font-family: var(--titulo); font-weight: normal; font-size: clamp(72px, 9vw, 150px); line-height: .85; font-variant-numeric: tabular-nums; }
.git__nums b + span { display: block; margin-top: 12px; font-size: 18px; color: #C9C5BC; }
.git__legenda { margin: 30px 0 18px; font-size: 17px; color: #C9C5BC; max-width: 44em; }
.git__texto { width: 100%; height: auto; cursor: default; touch-action: pan-y; }
.git__dia { min-height: 1.4em; margin: 14px 0 0; color: var(--papel); }
.git__recentes { list-style: none; margin: 12px 0 0; padding: 0; font-size: 17px; color: #C9C5BC; }
.git__recentes li { padding: 8px 0; border-top: 1px solid #2A2B30; }
.git__recentes b { font-weight: 640; color: var(--papel); }
.git__repetir, .botao-texto { margin-top: 8px; padding: 6px 0; min-height: 44px; white-space: nowrap; border: 0; background: none; color: var(--cinza); font-size: 15px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.secao--papel .botao-texto { color: var(--sobre-papel-2); }
@media (max-width: 760px) { .git__nums { grid-template-columns: 1fr; } .git__dia { min-height: 2.9em; } }

/* ---------------------------------------------------------------- 10. aperte ⌘Z (c19) */
.desfazer { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.folha-area { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 26px; align-items: end; }
.folha { background: var(--papel); color: var(--tinta); padding: clamp(24px, 3vw, 40px); min-height: 330px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 6px 0 #2A2B30; }
.folha__copy { font-family: var(--titulo); text-transform: uppercase; font-size: clamp(30px, 3.1vw, 46px); line-height: .98; margin: 0; }
.folha__copy.trocando .w { display: inline-block; white-space: pre; vertical-align: bottom; overflow: hidden; padding-top: .24em; margin-top: -.24em; }
/* o erro marcado como erro: riscado, apagado, com o rótulo colado nele */
.folha__copy .erro { color: var(--sobre-papel-2); text-decoration: line-through; text-decoration-thickness: .08em; text-decoration-color: var(--tinta); }
.folha__copy .erro-rotulo { display: block; margin-top: .35em; font-family: var(--texto); text-transform: none; font-weight: 680; font-size: max(17px, .42em); line-height: 1.3; color: var(--tinta); }
.folha__pe { margin-top: 26px; display: grid; gap: 10px; justify-items: start; }
.folha__versao { margin: 0; font-family: var(--mono); font-weight: 300; font-size: 14px; color: var(--sobre-papel-2); }
.folha__versao .rosa { color: var(--rosa-papel); }
.aprovar--folha.oculto { visibility: hidden; }
.teclas { display: grid; gap: 12px; justify-items: center; }
.tecla { width: 120px; height: 120px; border: 0; padding: 0; background: var(--papel); color: var(--tinta); font-family: var(--texto); font-weight: 680; font-size: 30px; cursor: pointer;
  box-shadow: 0 6px 0 #6E6B65; transform: translateY(0); transition: transform .08s, box-shadow .08s; }
.tecla:active, .tecla.afunda { transform: translateY(4px); box-shadow: 0 2px 0 #6E6B65; }
.tecla--p { width: 120px; height: 56px; font-size: 17px; }
.tecla[disabled] { opacity: .35; cursor: default; }
@media (max-width: 960px) { .desfazer { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .folha-area { grid-template-columns: 1fr; } .teclas { grid-template-columns: auto auto; justify-content: center; align-items: end; } .tecla { width: 96px; height: 96px; font-size: 22px; } .tecla--p { width: 96px; height: 52px; font-size: 15px; } }

/* ---------------------------------------------------------------- 11. assine embaixo (c31) */
.assine { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.ficha-assinar { background: var(--tinta); color: var(--papel); padding: clamp(22px, 3vw, 36px); }
.ficha-assinar__registro { list-style: none; margin: 0 0 18px; padding: 0; font-family: var(--mono); font-weight: 300; font-size: 15px; line-height: 1.75; color: #C9C5BC; }
.ficha-assinar__registro time { color: var(--cinza); margin-right: .6em; }
.ficha-assinar__registro [data-assinou] { color: var(--papel); }
.ficha-assinar__registro .rosa { color: var(--rosa); }
.linha-assinar { position: relative; height: 170px; border-bottom: 1px solid var(--cinza); touch-action: none; cursor: crosshair; }
.linha-assinar canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.linha-assinar__dica { position: absolute; left: 4%; top: 6%; width: 64%; height: 88%; pointer-events: none; fill: none; stroke: #5E5D5A; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; opacity: 0; }
.linha-assinar__dica.desenha { animation: dica 2.6s var(--ease) forwards; }
@keyframes dica { 0% { opacity: 1; stroke-dashoffset: 1400; } 70% { opacity: 1; stroke-dashoffset: 0; } 100% { opacity: 0; stroke-dashoffset: 0; } }
.linha-assinar__rotulo { position: absolute; left: 0; bottom: -30px; font-size: 15px; color: var(--cinza); }
.ficha-assinar__pe { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; }
.ficha-assinar__pe p { margin: 0; font-size: 17px; color: var(--cinza); }
.ficha-assinar .botao-texto { color: var(--cinza); margin: 0; white-space: nowrap; }
@media (max-width: 960px) { .assine { grid-template-columns: 1fr; } .linha-assinar { height: 150px; } }

/* a assinatura que vai com você */
.decidido { display: flex; align-items: flex-end; gap: 12px; margin-top: 14px; color: var(--cinza); font-size: 15px; }
.decidido svg { width: 180px; height: 54px; overflow: visible; }
.decidido path, .registro__assinatura path, .voo path { fill: none; stroke: var(--rosa); stroke-linecap: round; stroke-linejoin: round; stroke-width: 4; vector-effect: non-scaling-stroke; }
.decidido path { stroke-width: 2.4; }
.registro__assinatura { height: 40px; }
.registro__assinatura svg { height: 40px; width: auto; max-width: 100%; overflow: visible; }
.registro__assinatura path { stroke-width: 2; }
.voo { position: fixed; z-index: 90; pointer-events: none; overflow: visible; }
.voo path { stroke-width: 3; }
@media (max-width: 1099px) { .registro__assinatura { display: none !important; } }

.nw { white-space: nowrap; }

/* todos os avatares em preto e branco; cor só no agente aberto da tripulação */
.rostos img, .commit__meta img, .msg img, .decisao__quem img, .fila img, .rotinas img { filter: grayscale(1); }
.rotinas li.proxima img { box-shadow: 0 0 0 2px var(--papel); }
.agente:hover .agente__foto img, .agente.aberto .agente__foto img { filter: none; }
.relogio .rot image { filter: grayscale(1); }
.relogio .rot.proxima > g > circle { stroke: #F2F0EA; stroke-width: 2.5; }

/* aprovar tem consequência: o ponto final do título vira o seu carimbo */
.aprovada .ponto { color: var(--rosa); }
.aprovada .assinatura-secao { border-top-color: var(--rosa); }

/* foco visível nos cartões escuros dentro de seção de papel */
.decisao button:focus-visible, .ficha-assinar button:focus-visible, .ficha-assinar canvas:focus-visible { outline: 3px solid var(--papel); outline-offset: 3px; }

/* a tripulação em fila, esperando a sua decisão */
.fila { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }
.fila__rostos { display: flex; }
.fila__ag img, .fila__ag .sem-foto { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--tinta); display: grid; place-items: center; background: var(--tinta-3); color: var(--papel); font-family: var(--mono); font-size: 14px; }
.fila__ag + .fila__ag { margin-left: -8px; }
.js .fecho .fila__ag { opacity: 0; transform: translateY(10px); transition: opacity .35s var(--ease), transform .35s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .fecho.fila-entra .fila__ag { opacity: 1; transform: none; }
.fila__texto { margin: 0; font-family: var(--mono); font-weight: 300; font-size: 15px; color: var(--cinza); }
.fila__voce { color: var(--rosa); }
.fila__voce::after { content: ''; display: inline-block; width: .55em; height: 1.05em; margin-left: 3px; vertical-align: -.18em; background: var(--rosa); animation: pisca 1s steps(1) infinite; }

/* menos movimento: nada ligado à rolagem, nada escondido esperando atraso */
.quieto .chapeu, .quieto .chapeu * { visibility: visible !important; transition: none !important; }
.quieto .gargalo__virada { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  .js .secao--papel::before { display: none !important; }
  .js .gargalo__titulo, .js .fresta, .js .historico::before, .js .agente__trilha::before, .js .fecho__frase .pinta, .js .surge { animation: none !important; }
  .js .fecho__frase .pinta { color: var(--papel); background: none; }
  .js .fecho .fila__ag { opacity: 1; transform: none; }
  .gargalo.resolvido .gargalo__virada .chapeu, .gargalo__virada .chapeu { visibility: visible; transition: none; }
}
@media (max-width: 520px) { .relogio [data-servidor] { display: none; } }

/* folga entre a cedilha de TRIPULAÇÃO e o til de FUNÇÃO */
#tripulacao .titulo { line-height: 1.04; }
