/* Nexo One Digital - efeitos editoriais (Sobre, Portfolio e projetos da home)
   Mesma identidade da home: Plus Jakarta Sans, Unbounded nos letreiros, navy e azul,
   secao clara #f3f6fb. Daqui vem so a encenacao: tela cheia, letreiro gigante,
   palavras que acendem, janela que abre, rota desenhada, sanfona e faixa horizontal. */

.ed-marca, .ed-codigos { font-family: 'Unbounded', 'Plus Jakarta Sans', system-ui, sans-serif; font-weight: 900; letter-spacing: -0.04em; text-transform: uppercase; }

/* palavras que acendem com a rolagem */

/* ---------- abertura em tela cheia ---------- */
.ed-hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--fundo); color: #fff; isolation: isolate; }
.ed-hero-midia { position: absolute; inset: 0; z-index: -2; }
.ed-hero-midia img, .ed-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ed-video { opacity: 0; transition: opacity 1.2s ease; }
.ed-video.tocando { opacity: 1; }
.ed-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 8, 16, .55) 0%, transparent 26%, transparent 50%, rgba(5, 8, 16, .5) 76%, var(--fundo) 100%); }
.ed-frase { position: absolute; top: 44%; margin: 0; color: #fff; font-weight: 600; }
.ed-frase { left: var(--margem); font-size: clamp(1.05rem, 1.35vw, 1.3rem); line-height: 1.35; }
.ed-marca { position: absolute; left: 0; right: 0; bottom: calc(.16em + clamp(8px, 1.6vw, 26px)); margin: 0; text-align: center; white-space: nowrap; font-size: 13vw; line-height: .9; color: #fff; }
.ed-marca span { display: inline-block; }

/* ---------- sobre: introducao ---------- */
.ed-intro-grade { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 110px); align-items: end; margin-top: clamp(56px, 8vw, 120px); }
.ed-intro-grade .lead { font-size: clamp(1.05rem, 1.35vw, 1.25rem); }
.ed-janela { overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--raio-g); background: var(--painel); }
.ed-janela picture, .ed-janela img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- sobre: socios (cards brancos como os servicos da home) ---------- */
.ed-socios-grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.ed-socio { display: flex; flex-direction: column; gap: 16px; padding: clamp(26px, 3vw, 42px); border-radius: var(--raio-g); background: #fff; }
.ed-socio-topo { display: flex; align-items: center; gap: 16px; }
.avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: linear-gradient(150deg, var(--azul), #00308a); color: #fff; font-weight: 700; }
.ed-socio .avatar { width: 72px; height: 72px; font-size: 1.5rem; box-shadow: 0 0 0 1px rgba(10, 20, 51, .12); }
.ed-socio h3 { color: #0a1433; font-size: clamp(1.3rem, 2vw, 1.7rem); letter-spacing: -0.03em; }
.ed-socio small { display: block; margin-top: 2px; color: var(--azul); font-weight: 600; font-size: .9rem; }
.ed-socio p { color: #4b5870; font-size: 1rem; line-height: 1.6; max-width: 46ch; }
.ed-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.ed-tags span { padding: 7px 12px; border-radius: 999px; background: #eaf2ff; color: var(--azul); font-size: .8rem; font-weight: 600; }
.ed-citacao { margin: clamp(64px, 9vw, 120px) auto 0; text-align: center; }
.ed-citacao p { max-width: 24ch; margin-inline: auto; }
.ed-citacao p { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.8rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; }
.ed-citacao p::before { content: "\201C"; display: block; height: .55em; font-size: 1.8em; line-height: 1; color: var(--azul-claro); }
.ed-citacao footer { margin-top: 22px; color: var(--cinza); font-size: .95rem; font-weight: 600; }

/* ---------- letreiro partido em dois (GRU / YYZ e projetos da home) ---------- */
.ed-codigos { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; gap: .3em; font-size: 12vw; line-height: 1; color: rgba(255, 255, 255, .86); pointer-events: none; }
.ed-codigos span { display: inline-block; }
.ed-codigos i { display: block; flex: none; width: .5em; height: .07em; background: currentColor; }

/* ---------- sobre: rota Sao Paulo - Toronto ---------- */
.ed-rota { background: var(--fundo); color: #fff; }
.ed-rota-cena { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; }
.ed-rota-foto, .ed-rota-foto picture, .ed-rota-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ed-rota-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 8, 16, .15) 0%, transparent 40%, var(--fundo) 100%); }
.ed-rota-cena .ed-codigos { text-shadow: 0 10px 60px rgba(5, 8, 16, .2); }
.ed-rota-cantos { position: absolute; left: var(--margem); right: var(--margem); top: calc(var(--topo) + 24px); display: flex; justify-content: space-between; color: #0a1433; font-size: .8rem; font-weight: 600; line-height: 1.5; }
.ed-rota-cantos span:last-child { text-align: right; }
.ed-rota-mapa { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); grid-template-areas: "texto svg" "numeros svg"; gap: 48px clamp(32px, 6vw, 100px); align-items: start; padding-block: clamp(40px, 6vw, 90px) var(--secao); }
.ed-rota-texto { grid-area: texto; }
.ed-rota-texto .lead { margin-top: 18px; }
.ed-rota-texto .link-seta { margin-top: 8px; }
.ed-rota-svg { grid-area: svg; width: 100%; max-width: 440px; justify-self: center; overflow: visible; }
.ed-rota-base { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 1.5; stroke-dasharray: 3 7; }
.ed-rota-linha { fill: none; stroke: var(--azul-claro); stroke-width: 2.2; stroke-linecap: round; }
.ed-rota-svg circle { fill: #fff; }
.ed-rota-svg .ed-pulso { fill: none; stroke: var(--azul-claro); stroke-width: 1.5; animation: ed-pulso 2.4s ease-out infinite; }
.ed-rota-svg text { fill: var(--texto); font-size: 15px; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-weight: 600; }
@keyframes ed-pulso { from { r: 6px; opacity: 1; } to { r: 28px; opacity: 0; } }
.ed-numeros { grid-area: numeros; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--linha); border: 1px solid var(--linha); border-radius: var(--raio); overflow: hidden; }
.ed-numeros div { padding: 22px 24px; background: var(--painel); }
.ed-numeros dt { color: var(--cinza); font-size: .85rem; font-weight: 600; }
.ed-numeros dd { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; color: #fff; font-size: clamp(1.3rem, 2vw, 1.9rem); font-weight: 700; letter-spacing: -0.02em; }
.ed-numeros dd img { width: 32px; height: 22px; border-radius: 4px; object-fit: cover; }

/* ---------- sobre: comparacao na secao clara ---------- */
.ed-comparar .cabeca-secao { justify-content: center; text-align: center; }
.ed-comparar .cabeca-secao .lead { margin-inline: auto; }
.ed-comp { max-width: 1120px; margin-inline: auto; }
.ed-comp-topo, .ed-comp-linha { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1.15fr); }
.ed-comp-topo span { padding: 0 clamp(18px, 2.4vw, 30px) 16px; color: #6b778c; font-size: .95rem; font-weight: 600; }
.ed-comp-topo span:last-child { color: #0a1433; }
.ed-comp-linha > span { display: flex; align-items: center; gap: 12px; padding: clamp(18px, 2vw, 26px) clamp(18px, 2.4vw, 30px); border-top: 1px solid rgba(10, 20, 51, .1); font-size: clamp(1rem, 1.3vw, 1.15rem); }
.ed-comp .c-item { color: #0a1433; font-weight: 600; }
.ed-comp .c-eles { color: #8a94a8; }
.ed-comp-linha > .c-nos { background: #0a1433; color: #fff; font-weight: 600; border-top-color: rgba(255, 255, 255, .08); }
.ed-comp .c-nos svg { flex: none; color: var(--azul-claro); }
.ed-comp-linha:first-child > .c-nos { border-radius: var(--raio) var(--raio) 0 0; border-top-color: transparent; }
.ed-comp-linha:last-child > .c-nos { border-radius: 0 0 var(--raio) var(--raio); }
.ed-comp-linha:last-child > span { border-bottom: 1px solid rgba(10, 20, 51, .1); }
.ed-comp-linha:last-child > .c-nos { border-bottom-color: transparent; }

/* ---------- portfolio: sanfona de destaques ---------- */
.ed-sanfona { display: flex; gap: 8px; height: min(74vh, 740px); }
.ed-painel { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; background: #0a1433; transition: flex-grow .9s cubic-bezier(.7, 0, .2, 1); }
.ed-painel.ativo { flex-grow: 6; }
.ed-painel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1), filter .8s ease; }
.ed-painel:not(.ativo) img { filter: saturate(.55) brightness(.6); transform: scale(1.1); }
.ed-painel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 35%, rgba(5, 8, 16, .88) 100%); }
.ed-painel-botao { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: center; padding: 0 0 28px; border: 0; background: none; color: #fff; cursor: pointer; }
.ed-painel-botao span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.ed-painel.ativo .ed-painel-botao { visibility: hidden; }
.ed-painel-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; max-width: 680px; padding: clamp(24px, 3vw, 44px); color: #fff; opacity: 0; transform: translateY(18px); pointer-events: none; transition: opacity .35s ease, transform .5s ease; }
.ed-painel.ativo .ed-painel-info { opacity: 1; transform: none; pointer-events: auto; transition-delay: .45s; }
.ed-painel-info small { color: var(--azul-claro); font-size: .85rem; font-weight: 600; }
.ed-painel-info h3 { margin: 8px 0 12px; color: #fff; font-size: clamp(1.8rem, 3.4vw, 3rem); letter-spacing: -0.03em; line-height: 1.05; }
.ed-painel-info p { max-width: 46ch; color: rgba(255, 255, 255, .86); }
.ed-painel-info .link-seta, .secao-clara .ed-painel-info .link-seta { margin-top: 10px; color: #fff; }

/* home: a mesma sanfona, mais baixa, so como vitrine */

/* ---------- servicos: foto fixa que troca conforme o servico lido ---------- */
.ed-servicos { padding-block: clamp(20px, 3vw, 40px) var(--secao); }
.ed-serv-grade { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.ed-serv-fixo { position: sticky; top: calc(var(--topo) + 20px); height: calc(100vh - var(--topo) - 40px); height: calc(100svh - var(--topo) - 40px); display: flex; flex-direction: column; gap: 18px; }
.ed-serv-fotos { position: relative; flex: 1; overflow: hidden; border-radius: var(--raio-g); background: var(--painel); }
.ed-serv-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .9s ease, transform 1.6s cubic-bezier(.2, .7, .2, 1); }
.ed-serv-foto.ativa { opacity: 1; transform: none; }
.ed-serv-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.ed-serv-nav a { padding: 8px 14px; border: 1px solid var(--linha); border-radius: 999px; color: var(--cinza); font-size: .82rem; font-weight: 600; transition: color .3s ease, border-color .3s ease, background .3s ease; }
.ed-serv-nav a:hover { color: #fff; }
.ed-serv-nav a.ativo { color: #fff; border-color: var(--azul); background: var(--azul-sutil); }
.ed-serv { min-height: 88vh; min-height: 88svh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; padding-block: 48px; scroll-margin-top: var(--topo); border-top: 1px solid var(--linha); }
.ed-serv:first-child { border-top: 0; }
.ed-serv h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
.ed-serv-itens { list-style: none; width: 100%; margin: 6px 0 0; padding: 0; }
.ed-serv-itens li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--linha); color: var(--texto); }
.ed-serv-itens li svg { flex: none; color: var(--azul-claro); }
.ed-serv-foto-cel { display: none; }

/* ---------- portfolio: cartoes deslizando sobre fundo fixo ---------- */
.ed-trilho { position: relative; margin-top: clamp(64px, 9vw, 140px); background: var(--fundo); color: #fff; }
.ed-trilho-palco { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.ed-trilho-fundo, .ed-trilho-fundo picture, .ed-trilho-fundo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ed-trilho-fundo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--fundo) 0%, rgba(5, 8, 16, .55) 18%, rgba(5, 8, 16, .2) 45%, rgba(5, 8, 16, .35) 80%, var(--fundo) 100%); }
.ed-trilho-cabeca { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; padding: 0 var(--margem); margin-bottom: clamp(24px, 4vh, 44px); }
.ed-trilho-cabeca .lead { margin: 0; }
.ed-trilho-janela { position: relative; z-index: 1; }
.ed-trilho-faixa { display: flex; gap: clamp(16px, 2vw, 24px); width: max-content; padding-inline: var(--margem); will-change: transform; }
.ed-cartao { flex: none; display: flex; flex-direction: column; width: clamp(290px, 28vw, 420px); overflow: hidden; border-radius: var(--raio-g); background: #fff; color: #0a1433; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.ed-cartao:hover { transform: translateY(-8px); }
.ed-cartao-img { aspect-ratio: 16 / 10; overflow: hidden; background: #e6ecf5; }
.ed-cartao-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.ed-cartao:hover .ed-cartao-img img { transform: scale(1.05); }
.ed-cartao-info { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 22px; }
.ed-cartao small { color: var(--azul); font-size: .8rem; font-weight: 600; }
.ed-cartao h3 { color: #0a1433; font-size: clamp(1.15rem, 1.5vw, 1.35rem); letter-spacing: -0.02em; }
.ed-cartao p { color: #4b5870; font-size: .93rem; line-height: 1.55; }
.ed-cartao-rodape { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; color: #6b778c; font-size: .8rem; font-weight: 600; }
.ed-cartao-rodape img { width: 20px; height: 14px; border-radius: 3px; }
.ed-cartao-rodape span { margin-left: 4px; }

/* ---------- celular ---------- */
@media (max-width: 820px) {
  /* celular: letreiro um pouco acima do meio e a frase logo abaixo; o fundo escurece ate a secao seguinte */
  .ed-hero::after { background: linear-gradient(180deg, rgba(5, 8, 16, .5) 0%, transparent 22%, transparent 36%, rgba(5, 8, 16, .55) 62%, var(--fundo) 94%); }
  .ed-hero { height: 84svh; min-height: 520px; }
  .ed-marca { top: 52%; bottom: auto; }
  .ed-frase { display: none; top: calc(52% + var(--marca-h, 20vw) + 14px); left: 0; right: 0; text-align: center; font-size: 1.05rem; }

  .ed-intro-grade { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 44px; }
  .ed-janela { aspect-ratio: 3 / 4; }

  .ed-socios-grade { grid-template-columns: minmax(0, 1fr); gap: 16px; }

  .ed-codigos { flex-direction: column; gap: .12em; }
  .ed-codigos i { width: .07em; height: .4em; }
  .ed-rota-mapa { grid-template-columns: minmax(0, 1fr); grid-template-areas: "texto" "svg" "numeros"; gap: 36px; padding-top: 24px; }
  .ed-rota-svg { max-width: 300px; }
  .ed-numeros div { padding: 18px; }

  .ed-comp-topo { display: none; }
  .ed-comp-linhas { display: grid; gap: 12px; }
  .ed-comp-linha { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: var(--raio); overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(10, 20, 51, .08); }
  .ed-comp-linha > span, .ed-comp-linha:last-child > span { border: 0; padding: 12px 14px; font-size: .92rem; }
  .ed-comp-linha > .c-item { grid-column: 1 / -1; padding: 16px 14px 4px; font-size: 1rem; }
  .ed-comp-linha > .c-eles, .ed-comp-linha > .c-nos { flex-direction: column; align-items: flex-start; gap: 6px; }
  .ed-comp-linha > .c-eles::before, .ed-comp-linha > .c-nos::before { display: block; color: #8a94a8; font-size: .72rem; font-weight: 600; }
  .ed-comp-linha > .c-eles::before { content: "Agência comum"; }
  .ed-comp-linha > .c-nos::before { content: "Nexo One"; color: var(--azul-claro); }
  .ed-comp-linha > .c-nos, .ed-comp-linha:first-child > .c-nos, .ed-comp-linha:last-child > .c-nos { margin: 0 8px 8px 0; border-radius: 10px; }
  .ed-comp-linha > .c-eles { margin: 0 0 8px 8px; }
  .ed-comp .c-nos svg { display: none; }

  .ed-serv-grade { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ed-serv-fixo { display: none; }
  .ed-serv { min-height: 0; padding-block: 44px; }
  .ed-serv-foto-cel { display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--raio-g); margin-bottom: 8px; }
  .ed-serv-foto-cel img { width: 100%; height: 100%; object-fit: cover; }

  .ed-sanfona { flex-direction: column; height: auto; gap: 6px; }
  .ed-painel, .ed-painel.ativo { flex: none; }
  .ed-painel { height: 84px; transition: height .8s cubic-bezier(.7, 0, .2, 1); }
  .ed-painel.ativo { height: 72svh; }
  
  .ed-painel-botao { align-items: center; justify-content: flex-start; padding: 0 20px; }
  .ed-painel-botao span { writing-mode: horizontal-tb; transform: none; font-size: 1.05rem; }

  .ed-trilho-palco { position: relative; height: auto; padding-block: 90px; }
  .ed-trilho-janela { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .ed-trilho-janela::-webkit-scrollbar { display: none; }
  .ed-trilho-faixa { transform: none !important; }
  .ed-cartao { width: 80vw; scroll-snap-align: center; }
  .ed-cartao:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ed-painel, .ed-painel img, .ed-painel-info { transition: none; }
  .ed-rota-svg .ed-pulso { animation: none; }
}

/* ---------- texto em duas camadas: linhas grandes sobem da mascara, paragrafo acende linha a linha ---------- */
.ed-texto-duplo { text-align: center; }
.ed-linhas-grandes { max-width: 1240px; margin-inline: auto; color: #fff; font-size: clamp(1.9rem, 4.4vw, 4.3rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.035em; }
.ed-linhas-acende { max-width: 46ch; margin: clamp(48px, 7vw, 110px) auto 0; color: #fff; font-size: clamp(1.05rem, 1.55vw, 1.45rem); font-weight: 600; line-height: 1.45; letter-spacing: -0.01em; }
.ed-linhas-grandes em { font-style: normal; color: var(--azul-claro); }
.ed-linha { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.ed-linha-in { display: block; will-change: transform; }
.js .ed-linhas-grandes .ed-linha-in { transform: translateY(108%); transition: transform .95s cubic-bezier(.16, 1, .3, 1); }
.js .ed-linhas-acende .ed-linha-in { opacity: .26; transition: opacity .9s ease; }
.js .ed-linhas-grandes .ed-linha-in.visivel { transform: none; }
.js .ed-linhas-acende .ed-linha-in.visivel { opacity: 1; }
.sem-transicao .ed-linha-in { transition: none !important; }
.ed-intro .ed-intro-grade { text-align: left; }

/* ---------- home: portfolio simples ---------- */
.port-simples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2vw, 28px); }
.port-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--raio-g); background: #fff; color: #0a1433; box-shadow: 0 1px 0 rgba(10, 20, 51, .06); transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s ease; }
.port-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(10, 20, 51, .12); }
.port-card-img { aspect-ratio: 16 / 10; overflow: hidden; background: #e6ecf5; }
.port-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.port-card:hover .port-card-img img { transform: scale(1.04); }
.port-card-info { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 24px; }
.port-card-info span { color: var(--azul); font-size: .8rem; font-weight: 600; }
.port-card-info h3 { color: #0a1433; font-size: 1.2rem; letter-spacing: -0.02em; }
.port-card-info p { color: #4b5870; font-size: .93rem; line-height: 1.55; }

/* ---------- fim de pagina: escultura da logo no lago ---------- */
/* a escultura fica livre no alto; a chamada fica embaixo, sobre o reflexo na agua */
.fim { position: relative; margin-top: clamp(40px, 7vw, 110px); height: 100vh; height: 100svh; min-height: 640px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; background: var(--fundo); color: #fff; text-align: center; }
.fim-cena { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.fim-cena picture, .fim-cena img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.fim-cena img { animation: fim-respira 22s ease-in-out infinite alternate; }
@keyframes fim-respira { from { transform: scale(1); } to { transform: scale(1.06) translateY(-1%); } }
.fim-cena::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--fundo) 0%, var(--fundo) 6%, rgba(5, 8, 16, .82) 14%, rgba(5, 8, 16, .4) 24%, transparent 36%, rgba(5, 8, 16, .5) 58%, rgba(5, 8, 16, .88) 80%, var(--fundo) 100%); }
.fim-conteudo { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 0 var(--margem) clamp(56px, 9vh, 110px); }
.fim-titulo { max-width: 20ch; color: #fff; font-size: clamp(2.2rem, 4.6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.04em; }
.fim-titulo em { color: var(--azul-claro); }
.fim .lead { max-width: 46ch; color: rgba(255, 255, 255, .86); }
.fim .botoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }

/* ---------- rodape: poucos links e a marca gigante com gradiente e textura ---------- */
.rodape { position: relative; overflow: hidden; padding: clamp(24px, 3vw, 40px) var(--margem) 22px; background: var(--fundo); }
.rodape-linha { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.rodape-marca { overflow: visible; }

.rodape-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.rodape-links a, .rodape-fim a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--texto); font-size: .9rem; font-weight: 600; transition: color .25s ease; }
.rodape-links a:hover, .rodape-fim a:hover { color: #fff; }
.rodape-marca {
  margin: clamp(20px, 4vw, 56px) 0 0; text-align: center; white-space: nowrap; line-height: .82; font-size: 18vw;
  font-family: 'Unbounded', 'Plus Jakarta Sans', system-ui, sans-serif; font-weight: 900; letter-spacing: -0.04em;
}
/* o gradiente fica no proprio texto (o span), para funcionar mesmo com o span em movimento */
.rodape-marca span {
  padding-bottom: .06em;
  background-image:
    radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .95) 0, rgba(158, 195, 255, .55) 14%, transparent 34%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #e9f1ff 0%, #6fa6ff 38%, #0066ff 68%, #0b1a4a 100%);
  background-blend-mode: normal, overlay, normal;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rodape-marca span { display: inline-block; }
.rodape-marca { --mx: 50%; --my: 30%; }
.rodape-fim { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; margin-top: clamp(14px, 2vw, 24px); padding-top: 14px; border-top: 1px solid var(--linha); color: var(--cinza); font-size: .82rem; }
.rodape-fim a { font-size: .82rem; }
.rodape-topo svg { transform: rotate(-90deg); }

@media (max-width: 820px) {
  .ed-linhas-grandes { font-size: clamp(1.7rem, 7.4vw, 2.4rem); text-align: left; }
  .ed-linhas-acende { text-align: left; margin-top: 44px; }

  .port-simples { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .port-card:nth-child(n+4) { display: none; }

  .fim { min-height: 600px; margin-top: 64px; }
  .fim-cena::after { background: linear-gradient(180deg, var(--fundo) 0%, var(--fundo) 5%, rgba(5, 8, 16, .8) 11%, rgba(5, 8, 16, .35) 19%, transparent 27%, rgba(5, 8, 16, .6) 50%, rgba(5, 8, 16, .92) 68%, var(--fundo) 88%); }
  .ed-trilho + .fim { margin-top: 90px; }
  .fim-cena picture, .fim-cena img { object-position: 50% 20%; }
  .fim-conteudo { padding-bottom: 48px; }
  .fim-titulo { font-size: clamp(2rem, 9vw, 2.8rem); }
  .fim .botoes { width: 100%; flex-direction: column; }
  .fim .botoes .btn { width: 100%; }

  .rodape-linha { justify-content: flex-start; }
  .rodape-links { gap: 0 18px; }
}

/* celular: a primeira secao depois da abertura sobe e comeca dentro do escuro da abertura, sem vazio entre elas */
@media (max-width: 820px) {
  .ed-hero + section { position: relative; z-index: 1; margin-top: -26svh; padding-top: 0; }
}

/* textos medidos pelo JS ficam escondidos ate estarem no tamanho e nas linhas certas (evita pulo ao carregar a fonte) */
html.js:not(.sem-anim) :is([data-ajusta]:not(.ajustado), .ed-linhas-grandes:not(.montado), .ed-linhas-acende:not(.montado)) { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  html.js:not(.sem-anim) .ed-frase > span { display: inline-block; opacity: 0; }
  html.js:not(.sem-anim) .ed-marca span { opacity: 0; }
  html.js:not(.sem-anim) .ed-entra { opacity: 0; }
}
