/* ---------- hero com o nome gigante (04/12/2026) ----------
   "mr" enorme + "integrações com IA", aparelhos do mr Comanda na frente das letras,
   cursor-holofote que deixa as letras vazadas, setores que giram e carta de diagnóstico.
   Ficha: padrao/animacoes/hero/nome-gigante-com-retrato-recortado/ficha.md */

.hero--gigante { overflow-x: clip; display: block; min-height: 100svh; padding-block: 104px 72px; }
.hg {
  container-type: inline-size; position: relative;
  display: grid; grid-template-columns: 1.1fr 1fr 1fr; grid-template-rows: auto auto 1fr;
  column-gap: clamp(20px, 2.5vw, 40px);
}
.hg__rotulo { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--texto-3); }
.hg__rotulo b { color: var(--ouro); font-weight: 500; }
.hg__status { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.hg__ponto { width: 7px; height: 7px; border-radius: 50%; background: var(--ouro); animation: hg-pulsa 2.2s infinite; }
@keyframes hg-pulsa { 0% { box-shadow: 0 0 0 0 rgba(223,169,104,.55); } 70% { box-shadow: 0 0 0 9px rgba(223,169,104,0); } 100% { box-shadow: 0 0 0 0 rgba(223,169,104,0); } }

/* nome gigante: duas camadas iguais; a de cima é vazada e só aparece dentro do holofote */
.hg__gigante { grid-column: 1 / -1; grid-row: 2; position: relative; pointer-events: none; user-select: none; --x: -400px; --y: -400px; --raio: 0px; }
.hg__camada { position: relative; }
.hg--holofote .hg__camada--cheia {
  -webkit-mask-image: radial-gradient(circle var(--raio) at var(--x) var(--y), transparent 98%, #000 100%);
  mask-image: radial-gradient(circle var(--raio) at var(--x) var(--y), transparent 98%, #000 100%);
}
.hg__camada--vazada { display: none; }
.hg--holofote .hg__camada--vazada { display: block; position: absolute; inset: 0; clip-path: circle(var(--raio) at var(--x) var(--y)); }
.hg__camada--vazada::before { content: ""; position: absolute; inset: -40px; background: repeating-linear-gradient(115deg, rgba(223,169,104,.24) 0 1px, transparent 1px 14px); }

.hg .hero__mr { position: relative; justify-self: auto; width: 50%; max-width: none; margin: 0; order: 0; }
.hg__oco { display: block; width: 50%; height: auto; overflow: visible; }
.hg__oco use { fill: none; stroke: var(--ouro); stroke-width: 1.6; }

/* brilho dourado da logo: halo que respira, segundo reflexo largo e faíscas */
.hg__halo {
  position: absolute; left: 50%; top: 55%; width: 120%; aspect-ratio: 2.2; translate: -50% -50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(223,169,104,.30), rgba(223,169,104,.10) 55%, transparent 75%);
  animation: hg-respira 5.5s ease-in-out infinite; pointer-events: none;
}
@keyframes hg-respira { 0%, 100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.04); } }
.mr-grande__reflexo2 { fill: url(#mr-reflexo-2); pointer-events: none; mix-blend-mode: screen; }
.hg__faisca { position: absolute; width: 14px; height: 14px; color: #FFE7BF; opacity: 0; transform: scale(.2); animation: hg-faisca 3.6s ease-in-out infinite; pointer-events: none; }
.hg__faisca svg { width: 100%; height: 100%; fill: currentColor; filter: drop-shadow(0 0 4px rgba(255, 220, 160, .9)); }
@keyframes hg-faisca { 0%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); } 12% { opacity: 1; transform: scale(1) rotate(45deg); } 28% { opacity: 0; transform: scale(.3) rotate(90deg); } }

/* segunda linha: letras que sobem e uma luz que passa devagar */
.hg__linha2 {
  display: block; font-family: var(--f-display); font-weight: 800; font-size: 11.4cqi; line-height: .9;
  letter-spacing: -0.025em; color: var(--marfim); text-align: right; white-space: nowrap; margin-top: -.06em;
  padding-bottom: .14em; margin-bottom: -.14em; overflow: hidden; font-optical-sizing: auto;
}
.hg__palavra { display: inline-block; white-space: nowrap; }
.hg__l { display: inline-block; transform: translateY(110%); transition: transform 1.1s cubic-bezier(.2,.8,.15,1); transition-delay: calc(var(--i) * 34ms); }
.hg-vivo .hg__l { transform: none; }
.hg__frase { position: relative; }
.hg__luz {
  position: absolute; inset: 0; margin: 0; pointer-events: none; color: transparent; -webkit-text-fill-color: transparent;
  background: linear-gradient(100deg, transparent 42%, rgba(255, 214, 150, .95) 50%, transparent 58%) no-repeat 100% 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text; opacity: 0; transition: opacity .6s;
}
.hg-luz .hg__luz { opacity: 1; animation: hg-luz 6.5s cubic-bezier(.45,0,.25,1) infinite; }
@keyframes hg-luz { 0% { background-position: 100% 0; } 55%, 100% { background-position: 0% 0; } }
.hg__camada--vazada .hg__linha2 { color: transparent; -webkit-text-stroke: 1.4px var(--marfim); }

/* aparelhos do mr Comanda */
.hg__aparelhos { position: absolute; z-index: 3; top: 18px; right: 0; width: 40cqi; aspect-ratio: 2.25; }
.hg__flutua { position: absolute; inset: 0; opacity: 0; transform: translateY(60px) rotate(-3deg); transition: opacity 1s, transform 1.4s cubic-bezier(.2,.8,.2,1); }
.hg-vivo .hg__flutua { opacity: 1; transform: none; animation: hg-flutua 7s ease-in-out 1.6s infinite; }
@keyframes hg-flutua { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.hg__notebook { position: absolute; right: 0; bottom: 0; width: 76%; }
.hg__tela { background: #0B0907; border: 10px solid #2A231C; border-bottom-width: 14px; border-radius: 14px 14px 4px 4px; aspect-ratio: 16 / 10; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.55); position: relative; }
.hg__tela::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.16) 48%, transparent 56%); transform: translateX(-120%); animation: hg-vidro 8s ease-in-out 3s infinite; pointer-events: none; }
@keyframes hg-vidro { 0%, 70% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.hg__base { height: 14px; margin: 0 -7%; background: linear-gradient(#3A3128, #1E1914); border-radius: 0 0 18px 18px; }
.hg__painel { height: 100%; display: grid; grid-template-columns: 22% 1fr; background: var(--marfim); color: #1C1917; }
.hg__painel-lado { background: #16120F; padding: 10%; display: flex; flex-direction: column; gap: 9px; }
.hg__painel-lado svg { width: 70%; height: auto; aspect-ratio: 668 / 234; fill: var(--ouro); }
.hg__painel-lado span { height: 5px; border-radius: 3px; background: #3A3128; }
.hg__painel-lado span.on { background: var(--ouro); }
.hg__painel-corpo { padding: 5% 6%; display: flex; flex-direction: column; gap: 5%; position: relative; }
.hg__painel-titulo { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-family: var(--f-display); font-weight: 700; font-size: clamp(.7rem, 1.6cqi, 1.05rem); }
.hg__nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6%; }
.hg__nums div { background: #fff; border: 1px solid #E4D9C6; border-radius: 6px; padding: 7% 8%; }
.hg__nums small { display: block; font-family: var(--f-mono); font-size: clamp(.38rem, .7cqi, .5rem); letter-spacing: .12em; text-transform: uppercase; color: #6B635C; }
.hg__nums b { font-family: var(--f-display); font-size: clamp(.75rem, 1.7cqi, 1.15rem); }
.hg__barras { flex: 1; display: flex; align-items: flex-end; gap: 4%; padding: 4% 4% 0; background: #fff; border: 1px solid #E4D9C6; border-radius: 6px; }
.hg__barras i { flex: 1; background: #E4D2B4; border-radius: 3px 3px 0 0; height: var(--h); transform-origin: bottom; transform: scaleY(0); transition: transform .9s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--n) * 60ms + .8s); }
.hg__barras i.pico { background: var(--bronze); }
.hg-vivo .hg__barras i { transform: scaleY(1); }
.hg__painel-titulo span:first-child { white-space: nowrap; }
.hg__ilustrativa { flex: none; font-family: var(--f-mono); font-size: .5rem; letter-spacing: .14em; text-transform: uppercase; color: #8A7C68; }

.hg__celular { position: absolute; left: 4%; bottom: -14%; width: 24%; aspect-ratio: 9 / 18.5; background: #0B0907; border: 7px solid #2A231C; border-radius: 30px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.6); }
.hg__celular::before { content: ""; position: absolute; top: 6px; left: 50%; translate: -50% 0; width: 34%; height: 12px; border-radius: 9px; background: #2A231C; z-index: 2; }
.hg__app { position: absolute; inset: 0; background: #F6F0E4; padding: 26% 9% 8%; display: flex; flex-direction: column; gap: 5%; color: #1C1917; }
.hg__app-topo { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.hg__app-topo svg { flex: none; height: 11px; width: 32px; fill: var(--bronze); }
.hg__app-topo em { font-family: var(--f-display); font-style: normal; font-weight: 700; font-size: .7rem; }
.hg__sino { width: 18px; height: 18px; border-radius: 50%; background: var(--ouro); display: grid; place-items: center; }
.hg__sino svg { width: 10px; height: 10px; fill: none; stroke: #16120F; stroke-width: 2; stroke-linecap: round; }
.hg__sino.toca { animation: hg-sino .7s; }
@keyframes hg-sino { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(18deg); } 40% { transform: rotate(-14deg); } 60% { transform: rotate(9deg); } 80% { transform: rotate(-5deg); } }
.hg__comandas { position: relative; flex: 1; }
.hg__comanda {
  position: absolute; left: 0; right: 0; background: #fff; padding: 9% 9% 12%; font-family: var(--f-mono);
  font-size: clamp(.42rem, .8cqi, .56rem); line-height: 1.7; color: #3A332C;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 6px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 9px 6px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 6px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 9px 6px repeat-x;
  transition: transform .6s cubic-bezier(.2,.9,.25,1.15), opacity .5s;
}
.hg__comanda b { display: block; font-family: var(--f-display); font-size: clamp(.6rem, 1.15cqi, .78rem); color: #1C1917; margin-bottom: 4px; }
.hg__comanda span { display: flex; gap: 4px; white-space: nowrap; justify-content: space-between; border-top: 1px dashed #CDBFA8; margin-top: 5px; padding-top: 4px; }
.hg__comanda[data-pos="0"] { transform: translateY(0) scale(1); opacity: 1; z-index: 3; }
.hg__comanda[data-pos="1"] { transform: translateY(16%) scale(.92); opacity: 0; z-index: 2; }
.hg__comanda[data-pos="2"] { transform: translateY(-120%) scale(1); opacity: 0; z-index: 4; }

/* texto (o título usa a abertura do site: palavras em máscara, com brilho) */
.hg .hero__texto { grid-column: 1; grid-row: 3; align-self: start; position: relative; z-index: 4; padding-top: 30px; max-width: 480px; }
.hg .hero__titulo { font-size: clamp(1.7rem, 1rem + 1.6vw, 2.5rem); line-height: 1.12; max-width: none; margin-top: 16px; }
.hg__fio { width: 52px; height: 2px; background: var(--ouro); margin-top: 22px; transform-origin: left; }
.hg .hero__sub { margin-top: 18px; font-size: 1rem; }
.hg .hero__acoes { margin-top: 26px; }
.hg .hero__nota { margin-top: 18px; }

/* lado direito: setores que giram e carta de diagnóstico */
.hg__lado { grid-column: 2 / 4; grid-row: 3; position: relative; z-index: 4; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.5vw, 40px); align-items: start; padding-top: 36px; }
.hg__entra { opacity: 0; transform: translateY(26px); transition: opacity .9s, transform .9s cubic-bezier(.2,.8,.2,1); }
.hg-vivo .hg__entra { opacity: 1; transform: none; }
.hg-vivo .hg__entra + .hg__entra { transition-delay: .15s; }
.hg__cartao { display: block; color: inherit; text-decoration: none; background: var(--preto-2); border: 1px solid var(--linha); border-radius: 14px; padding: 18px; perspective: 900px; position: relative; overflow: hidden; transition: border-color .4s; }
.hg__cartao::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(223,169,104,.14) 50%, transparent 65%); transform: translateX(-120%); transition: transform .9s; pointer-events: none; }
.hg__cartao:hover { border-color: var(--linha-forte); }
.hg__cartao:hover::after { transform: translateX(120%); }
.hg__setor { position: relative; height: 112px; }
.hg__face { position: absolute; inset: 0; display: grid; place-items: center; backface-visibility: hidden; transition: transform .9s cubic-bezier(.6,0,.2,1), opacity .9s; }
.hg__face svg { height: 92px; width: auto; stroke: var(--ouro); stroke-width: 1.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hg__face[data-e="sai"] { transform: rotateY(-100deg); opacity: 0; }
.hg__face[data-e="espera"] { transform: rotateY(100deg); opacity: 0; }
.hg__cartao-pe { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 10px; }
.hg__cartao-pe strong { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; color: var(--marfim); }
.hg__cartao-pe small { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .1em; color: var(--texto-3); text-transform: uppercase; }
.hg__seta { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--ouro); color: var(--preto); display: grid; place-items: center; transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.hg__seta svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2; fill: none; }
.hg__cartao:hover .hg__seta { transform: rotate(45deg); }
.hg__legenda { margin-top: 10px; }

.hg__carta-palco { position: relative; height: 188px; perspective: 900px; margin-top: 12px; }
.hg__papel { position: absolute; inset: 0; background: #F4ECDD; color: #2A231C; border-radius: 4px; padding: 18px 20px; font-family: var(--f-mono); font-size: .78rem; line-height: 1.75; transform-origin: 50% 100%; transition: transform .8s cubic-bezier(.6,0,.2,1), opacity .6s; box-shadow: 0 20px 40px rgba(0,0,0,.45); }
.hg__papel-cab { display: flex; justify-content: space-between; font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: #8A7C68; margin-bottom: 10px; }
.hg__carimbo { position: absolute; right: 16px; top: 30px; width: 56px; height: 56px; border: 1.5px solid var(--bronze); border-radius: 50%; display: grid; place-items: center; font-size: .48rem; letter-spacing: .14em; color: var(--bronze); text-align: center; rotate: -14deg; opacity: .8; text-transform: uppercase; line-height: 1.3; }
.hg__cursor { display: inline-block; width: 7px; height: 1.05em; background: var(--bronze); vertical-align: -2px; animation: hg-pisca 1s steps(1) infinite; }
@keyframes hg-pisca { 50% { opacity: 0; } }
.hg__envelope { position: absolute; inset: 8px 6px; opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s cubic-bezier(.2,.9,.3,1.2); }
.hg__envelope > svg { width: 100%; height: 100%; display: block; }
.hg__lacre { position: absolute; left: 50%; top: 56%; width: 62px; height: 62px; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #F0C489, var(--bronze) 60%, #8C5F20); display: grid; place-items: center; transform: scale(2.4); opacity: 0; transition: transform .45s cubic-bezier(.3,1.7,.5,1), opacity .2s; overflow: hidden; }
.hg__lacre svg { width: 64%; height: auto; aspect-ratio: 668 / 234; fill: #5A3B12; opacity: .75; }
.hg__lacre::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,240,210,.7) 50%, transparent 65%); transform: translateX(-120%); }
.hg__fechada .hg__lacre::after { animation: hg-vidro 2.4s ease-in-out .9s; }
.hg__fechada .hg__papel { transform: rotateX(78deg) translateY(30px) scaleY(.4); opacity: 0; }
.hg__fechada .hg__envelope { opacity: 1; transform: none; }
.hg__fechada .hg__lacre { transform: scale(1); opacity: 1; transition-delay: .55s; }

.hero--gigante.is-fora * { animation-play-state: paused !important; }

/* ---------- celular e tablet ---------- */
@media (max-width: 1000px) {
  .hero--gigante { padding-block: 96px 64px; }
  .hg { grid-template-columns: 1fr; }
  .hg .hero__mr, .hg__oco { width: 88%; }
  .hg__status { margin-bottom: 4px; font-size: .64rem; letter-spacing: .18em; }
  .hg__halo { width: 130%; aspect-ratio: 1.7; background: radial-gradient(closest-side, rgba(223,169,104,.42), rgba(223,169,104,.14) 55%, transparent 76%); }
  .hg__faisca { width: 12px; height: 12px; }
  .hg__linha2 { margin-top: .02em; }
  .hg__app-topo svg { width: 20px; height: 8px; }
  .hg__app-topo em { font-size: .5rem; }
  .hg__sino { width: 14px; height: 14px; }
  .hg__ilustrativa { font-size: .36rem; letter-spacing: .08em; }
  .hg__painel-titulo { font-size: .62rem; }
  .hg__comanda { font-size: .5rem; }
  .hg__linha2 { font-size: 14.6cqi; text-align: left; white-space: normal; line-height: .9; }
  .hg__luz { display: none; }
  .hg__aparelhos { position: relative; top: auto; right: auto; grid-row: 3; width: 94%; aspect-ratio: 1.5; margin-top: 18px; }
  .hg__celular { bottom: -6%; width: 30%; }
  .hg__notebook { width: 80%; }
  .hg .hero__texto { grid-row: 4; padding-top: 44px; max-width: none; }
  .hg__lado { grid-column: 1; grid-row: 5; grid-template-columns: 1fr; gap: 40px; padding-top: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .hg__l, .hg__flutua, .hg__entra, .hg__barras i { transform: none !important; opacity: 1 !important; transition: none !important; animation: none !important; }
  .hg__halo, .hg__faisca, .hg__tela::after, .hg__ponto, .mr-grande__reflexo2 { animation: none !important; }
  .hg__faisca, .mr-grande__reflexo2 { display: none; }
  .hg__luz { display: none; }
}
