/* Morae — the site (shared pieces + the home). Tokens in sistema.css; the kit (frames, corner markers, rails, nodes,
   ports, wires, the page bands) in kit.css; the project pages add projeto.css and the projects' identities
   projetos.css. v4 "Sistema": the page reads like one long instrument panel, hairline frames on navy and on a cool
   light surface, one amber accent with meaning. Motion lives behind html.movimento (set before the first paint unless
   reduced motion); without it every section is static, complete and in its final state. */

/* ====================================================================== base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--topo-h) + 12px); }
body {
  margin: 0;
  background: var(--meianoite);
  color: var(--gelo);
  font-family: var(--fonte);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01" on;
}
img, svg, canvas, video { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
p, figure, h1, h2, h3, h4, dl, dd, ol, ul { margin: 0; }
h1, h2, h3, h4 { font-weight: 600; }
ol, ul { padding: 0; }
::selection { background: var(--ambar); color: var(--meianoite); }
:focus-visible { outline: 2px solid var(--ambar); outline-offset: 3px; }
.folha :focus-visible, .claro :focus-visible { outline-color: var(--ambar-texto); }
.folha [data-tema="escuro"] :focus-visible { outline-color: var(--ambar); }

.so-leitor {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.pular {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 10px 16px; border-radius: var(--raio-botao);
  background: var(--claro); color: var(--meianoite); font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform 0.2s var(--ease-saida);
}
.pular:focus { transform: none; }

.moldura { width: 100%; max-width: calc(var(--largura) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.num { font-family: var(--fonte-marca); font-weight: 300; letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
.ic { width: 18px; height: 18px; flex: none; }
main { position: relative; z-index: 1; }

/* ====================================================================== type */
.titulo-secao {
  font-size: clamp(2.125rem, 1.05rem + 3.1vw, 4.25rem);
  line-height: 1.03;
  letter-spacing: -0.042em;
  max-width: 15ch;
  text-wrap: balance;
}
.texto-secao {
  margin-top: clamp(18px, 2vw, 26px);
  font-size: clamp(1.0625rem, 0.95rem + 0.38vw, 1.3125rem);
  line-height: 1.55;
  color: var(--ardosia);
  max-width: 48ch;
  text-wrap: pretty;
}
[data-tema="escuro"] .texto-secao { color: var(--nevoa); }
/* headings that come in word by word (base.js splits them; each word rises inside its own mask, once) */
.palavra { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.palavra > span { display: inline-block; }
.movimento [data-palavras].dividido .palavra > span { transform: translateY(108%); transition: transform 0.9s var(--ease-saida); transition-delay: calc(var(--i, 0) * 60ms); }
.movimento [data-palavras].dividido.entrou .palavra > span { transform: none; }

/* ====================================================================== buttons and links */
.botao {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border-radius: var(--raio-botao);
  font-weight: 600; font-size: 0.9375rem; letter-spacing: -0.005em; line-height: 1.2;
  text-decoration: none; white-space: nowrap; border: 1px solid transparent;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.botao--grande { min-height: 54px; padding: 0 24px; font-size: 1rem; }
.botao--claro { background: var(--gelo); color: var(--meianoite); }
.botao--escuro { background: var(--tinta); color: var(--claro); }
.botao--fantasma { border-color: color-mix(in srgb, currentColor 32%, transparent); }
.botao .ic-zap, .tem-zap .botao .ic-insta, .tem-zap [data-contato] .ic-insta { display: none; }
.tem-zap [data-contato] .ic-zap { display: block; }
.botao .ic { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) {
  .botao--claro:hover { background: var(--branco); }
  .botao--escuro:hover { background: var(--marinho); }
  .botao--fantasma:hover { border-color: currentColor; }
}
.botao:active { transform: translateY(1px); }
.link-fora {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-weight: 600; font-size: 0.9375rem; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 0 1px no-repeat;
  transition: background-size 0.35s var(--ease-saida);
}
.link-fora .ic { width: 15px; height: 15px; }
.link-fora:hover { background-size: calc(100% - 21px) 1px; }
/* the quiet way in, next to the one button that matters */
.link-quieto {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 500; font-size: 0.9375rem; text-decoration: none; color: var(--nevoa); transition: color 0.2s;
}
.link-quieto span { padding-bottom: 2px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.link-quieto .ic { width: 15px; height: 15px; }
.link-quieto:hover { color: var(--gelo); }
.folha .link-quieto { color: var(--ardosia); }
.folha .link-quieto:hover { color: var(--tinta); }

/* status: a small circle, filled = no ar, half = em uso, a quarter = em construção, hollow = na geladeira */
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 500; white-space: nowrap; }
.status i { flex: none; width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1px currentColor; }
.status--no-ar i { background: currentColor; }
.status--em-uso i { background: linear-gradient(to top, currentColor 50%, transparent 50%); }
.status--construcao i { background: linear-gradient(to top, currentColor 25%, transparent 25%); }
.status--geladeira i { background: transparent; }
/* inside a rail it speaks the rail's mono */
.trilho .status { font: inherit; gap: 6px; }
.trilho .status i { width: 7px; height: 7px; }

/* ====================================================================== top bar */
.topo {
  --faixa-folga: clamp(14px, 1.7vw, 26px);
  --faixa-x: calc(max(var(--gutter), (100% - var(--largura)) / 2) - var(--faixa-folga));
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--gelo);
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.topo-barra {
  height: var(--topo-h);
  max-width: calc(var(--largura) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 20px;
}
.topo-marca { display: flex; align-items: center; height: 44px; padding: 4px; margin-left: -4px; border-radius: 10px; }
.topo-logo { height: 18px; width: auto; }
.topo-logo--escuro { display: none; }
.topo[data-tema-topo="claro"] .topo-logo--claro { display: none; }
.topo[data-tema-topo="claro"] .topo-logo--escuro { display: block; }
.topo-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.topo-link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  text-decoration: none; font-weight: 500; font-size: 0.9375rem; color: var(--nevoa); transition: color 0.2s;
}
.topo-link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 9px; height: 1px;
  background: var(--ambar); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease-saida);
}
.topo-link:hover, .topo-link[aria-current="true"] { color: var(--gelo); }
.topo-link[aria-current="true"]::after { transform: scaleX(1); }
.botao--topo { min-height: 38px; padding: 0 14px 0 12px; font-size: 0.875rem; gap: 8px; background: var(--gelo); color: var(--meianoite); }
.botao--topo .ic { width: 16px; height: 16px; }
.topo.rolou, html:not(.js) .topo { background: rgba(7, 12, 34, 0.95); box-shadow: inset 0 -1px 0 var(--linha-escura); }
.topo[data-tema-topo="claro"] { color: var(--tinta); }
.topo[data-tema-topo="claro"] .topo-link { color: var(--ardosia); }
.topo[data-tema-topo="claro"] .topo-link:hover, .topo[data-tema-topo="claro"] .topo-link[aria-current="true"] { color: var(--tinta); }
.topo[data-tema-topo="claro"] .topo-link::after { background: var(--ambar-texto); }
.topo.rolou[data-tema-topo="claro"] { background: rgba(242, 244, 248, 0.96); box-shadow: inset 0 -1px 0 var(--linha); }
.topo[data-tema-topo="claro"] .botao--topo { background: var(--tinta); color: var(--claro); }
/* on a wide screen the page's two frame lines run through the bar, with a small dot where they meet its edge */
@media (min-width: 1024px) {
  .topo.rolou::before, .topo.rolou::after { content: ""; position: absolute; pointer-events: none; }
  .topo.rolou::before { top: 0; bottom: 0; left: var(--faixa-x); right: var(--faixa-x); box-shadow: inset 1px 0 0 var(--linha-escura), inset -1px 0 0 var(--linha-escura); }
  .topo.rolou::after {
    left: calc(var(--faixa-x) - var(--canto) / 2 + 0.5px); right: calc(var(--faixa-x) - var(--canto) / 2 + 0.5px);
    bottom: calc(var(--canto) / -2 + 0.5px); height: var(--canto);
    background: radial-gradient(circle, var(--marca-canto) 0 45%, transparent 55%) left / var(--canto) var(--canto) no-repeat, radial-gradient(circle, var(--marca-canto) 0 45%, transparent 55%) right / var(--canto) var(--canto) no-repeat;
  }
  .topo.rolou[data-tema-topo="claro"]::before { box-shadow: inset 1px 0 0 var(--linha), inset -1px 0 0 var(--linha); }
  .topo.rolou[data-tema-topo="claro"]::after {
    background: radial-gradient(circle, var(--marca-canto-claro) 0 45%, transparent 55%) left / var(--canto) var(--canto) no-repeat, radial-gradient(circle, var(--marca-canto-claro) 0 45%, transparent 55%) right / var(--canto) var(--canto) no-repeat;
  }
}
@media (max-width: 719px) {
  .topo-barra { gap: 8px; }
  .topo-link--largo { display: none; }
  .topo-link { padding: 0 10px; }
  .topo-logo { height: 16px; }
}

/* ====================================================================== 1. hero: the promise on the left, the work on a stage of devices */
.abertura {
  position: relative; color: var(--gelo); background: var(--meianoite); overflow-x: clip;
  min-height: min(100svh, 1040px); display: grid; align-items: center;
  padding: calc(var(--topo-h) + clamp(24px, 5vh, 64px)) 0 clamp(48px, 8vh, 104px);
}
.abertura-grade { display: grid; grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr); gap: clamp(28px, 4vw, 72px); align-items: center; }
.abertura-cartela { position: relative; z-index: 2; display: grid; justify-items: start; align-content: center; min-width: 0; }
/* the mark, free (abertura.js wipes it in and closes the Æ) */
.marca-caixa { display: inline-block; line-height: 0; }
.marca-abertura { width: clamp(184px, 17vw, 272px); height: auto; overflow: visible; color: var(--gelo); }
.marca-abertura .mk { fill: currentColor; }
.marca-abertura .mk-a, .marca-abertura .mk-e { opacity: 0; }
.abertura-titulo { margin-top: clamp(30px, 4.8vh, 56px); }
.abertura-frase {
  display: block;
  font-size: clamp(2.625rem, 1.15rem + 3.8vw, 5.25rem);
  line-height: 0.98; letter-spacing: -0.048em; font-weight: 600;
  text-wrap: balance;
}
.abertura-texto { margin-top: clamp(18px, 2.6vh, 26px); max-width: 31ch; color: var(--nevoa); font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem); font-weight: 300; line-height: 1.5; }
.abertura-acoes { margin-top: clamp(28px, 4.2vh, 42px); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
/* with motion the hero waits for its own entrance (abertura.js) from the first paint, so nothing flashes; without the
   script after a few seconds (.sem-script) it simply shows */
.movimento .marca-caixa, .movimento .abertura-titulo, .movimento .abertura-texto, .movimento .abertura-acoes { opacity: 0; }

/* ---------- the stage: a window and a phone in depth, each one playing a real product (mostra.js). They overlap in one
   perspective; every few seconds they glide into another arrangement and the next product takes the front */
.mostra { position: relative; z-index: 1; margin: 0; min-width: 0; }
.mostra-palco {
  position: relative; aspect-ratio: 5 / 4; container-type: size;
  perspective: 1900px; perspective-origin: 48% 34%;
  touch-action: pan-y; -webkit-user-select: none; user-select: none;
}
.mostra-giro { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--giro-x, 0deg)) rotateY(var(--giro-y, 0deg)); }
.aparelho { position: absolute; left: 0; top: 0; transform-origin: 50% 50%; transition: transform 1.35s var(--ease-saida); }
.aparelho--pc { width: 80cqw; }
.aparelho--celular { width: 26cqw; }
/* the arrangements (always translate, turn, tilt, size, in this order, so one glides into the next) */
.pose-celular .aparelho--pc { transform: translate3d(0cqw, 12cqh, -170px) rotateY(17deg) rotateX(4deg) scale(0.92); }
.pose-celular .aparelho--celular { transform: translate3d(66cqw, 11cqh, 90px) rotateY(-14deg) rotateX(3deg) scale(1); }
.pose-celular-2 .aparelho--pc { transform: translate3d(20cqw, 6cqh, -200px) rotateY(-16deg) rotateX(4deg) scale(0.9); }
.pose-celular-2 .aparelho--celular { transform: translate3d(6cqw, 14cqh, 90px) rotateY(13deg) rotateX(3deg) scale(1); }
.pose-pc .aparelho--pc { transform: translate3d(3cqw, 17cqh, 30px) rotateY(-11deg) rotateX(4deg) scale(1); }
.pose-pc .aparelho--celular { transform: translate3d(73cqw, 3cqh, -230px) rotateY(-20deg) rotateX(3deg) scale(0.88); }
.pose-pc-2 .aparelho--pc { transform: translate3d(16cqw, 13cqh, 40px) rotateY(10deg) rotateX(4deg) scale(1); }
.pose-pc-2 .aparelho--celular { transform: translate3d(-3cqw, 6cqh, -250px) rotateY(20deg) rotateX(3deg) scale(0.86); }

/* a desktop window: rounded, a quiet title bar (three dots, the product's name), its screen 16 : 10 */
.janela-3d {
  position: relative; container-type: inline-size; overflow: hidden; border-radius: 14px; background: #0e1426;
  box-shadow: inset 0 0 0 1px rgba(238, 242, 250, 0.1), 0 80px 120px -60px rgba(0, 0, 0, 0.8), 0 34px 60px -34px rgba(0, 0, 0, 0.6);
}
.janela-3d-barra { position: relative; display: flex; align-items: center; gap: 1cqw; height: 4.2cqw; padding: 0 1.6cqw; background: #141b31; box-shadow: inset 0 -1px 0 rgba(238, 242, 250, 0.06); }
.janela-3d-barra i { flex: none; width: 1.15cqw; height: 1.15cqw; border-radius: 50%; background: rgba(238, 242, 250, 0.16); }
.janela-3d-titulo {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; max-width: 46%; padding: 0.35cqw 2.4cqw; border-radius: 999px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: rgba(238, 242, 250, 0.06);
  color: rgba(238, 242, 250, 0.62); font-size: 1.55cqw; font-weight: 500; line-height: 1.4;
}
.janela-3d-tela { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #070a14; }
/* a phone: the same body as the demos draw theirs (412 × 910, bezel 11, status bar 44), so a live demo lands on it */
.fone-3d {
  position: relative; container-type: inline-size; aspect-ratio: 412 / 910; padding: 2.67%; border-radius: 14.6% / 6.6%;
  background: linear-gradient(152deg, #2a3350 0%, #121a30 22%, #0a0f1f 55%, #151d36 100%);
  box-shadow: inset 0 0 0 1.5px rgba(238, 242, 250, 0.16), inset 0 2px 1px rgba(238, 242, 250, 0.1), inset 0 -2px 3px rgba(0, 0, 0, 0.5),
    0 80px 120px -56px rgba(0, 0, 0, 0.8), 0 30px 54px -30px rgba(0, 0, 0, 0.6);
  transition: opacity 0.5s;
}
.fone-3d-tela { position: relative; height: 100%; overflow: hidden; border-radius: 12.6cqw / 5.5%; background: #070707; isolation: isolate; }
.fone-3d-status {
  position: absolute; left: 0; right: 0; top: 0; z-index: 2; height: 11.3cqw; display: flex; align-items: center; justify-content: space-between;
  padding: 1cqw 7.7cqw 0 10.3cqw; color: #f4f4f4; font-size: 3.85cqw; font-weight: 600; letter-spacing: 0.01em; font-variant-numeric: tabular-nums;
}
.fone-3d-status b { position: absolute; left: 50%; top: 2.3cqw; width: 30.3cqw; height: 8.5cqw; translate: -50% 0; border-radius: 999px; background: #000; }
.fone-3d-status i { width: 11cqw; height: 2.8cqw; border-radius: 1cqw; background: linear-gradient(90deg, currentColor 0 40%, transparent 40% 52%, currentColor 52%); opacity: 0.85; }
.fone-3d-vista { position: absolute; left: 0; right: 0; top: 11.3cqw; bottom: 0; overflow: hidden; background: #060606; }
/* what plays on a device: one layer per product (its video; the first frame only until it plays) */
.palco-camada { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s var(--ease-saida); }
.palco-camada.ativa { opacity: 1; }
.palco-video, .palco-espera { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
/* a live demo: inside the window's screen; over the whole phone (a phone demo draws the same body) */
.palco-demo { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.palco-demo--fone { inset: 0 auto auto 0; width: 100%; height: calc(100% + 20px); }
.palco-demo-caixa { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s var(--ease-saida); }
.palco-demo-caixa.vivo { opacity: 1; }
.aparelho.com-demo .fone-3d { opacity: 0; }
.janela-3d-tela .dm { border-radius: 0 !important; box-shadow: none !important; }
/* the device behind: a veil, so the one in front reads first */
.aparelho-veu { position: absolute; inset: 0; z-index: 4; border-radius: inherit; background: rgba(4, 7, 20, 0.46); opacity: 0; pointer-events: none; transition: opacity 0.9s var(--ease-saida); }
.aparelho.atras .aparelho-veu { opacity: 1; }
.aparelho.atras { cursor: pointer; }
/* the way into the product in front (its page) */
.aparelho-abrir { position: absolute; inset: 0; z-index: 6; border-radius: 14px; }
.aparelho--celular .aparelho-abrir { border-radius: 14.6% / 6.6%; }
.aparelho.atras .aparelho-abrir { pointer-events: none; visibility: hidden; }
.aparelho-abrir:focus-visible { outline-offset: 6px; }

/* the rail of the product in front and the cycle */
.mostra-legenda { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px 20px; margin-top: clamp(4px, 1vw, 14px); padding: 0 2px; }
.mostra-trilhos { display: grid; flex: 1; min-width: 0; }
.mostra-trilho { grid-area: 1 / 1; flex-wrap: nowrap; overflow: hidden; transition: opacity 0.35s; }
.mostra-trilho[hidden] { display: none; }
.mostra-trilho:not(.ativo) { opacity: 0; visibility: hidden; }
.mostra-nome { color: var(--gelo); text-decoration: none; }
.mostra-nome:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.mostra-controles { display: flex; align-items: center; gap: 8px; flex: none; }
.mostra-controles[hidden] { display: none; }
.mostra-ciclo { display: flex; }
.mostra-passo { position: relative; width: 26px; height: 32px; padding: 0; border: 0; background: none; border-radius: 999px; }
.mostra-passo i { position: absolute; left: 3px; right: 3px; top: 50%; height: 3px; margin-top: -1.5px; overflow: hidden; border-radius: 999px; background: rgba(238, 242, 250, 0.16); }
.mostra-passo b { position: absolute; inset: 0; border-radius: inherit; background: var(--nevoa-2); transform: scaleX(0); transform-origin: left; }
.mostra-passo.visto b { transform: scaleX(1); }
.mostra-passo[aria-current="true"] b { background: var(--ambar); }
.mostra-pausa {
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(238, 242, 250, 0.06); color: var(--nevoa); box-shadow: inset 0 0 0 1px var(--linha-escura); transition: color 0.2s, background-color 0.2s;
}
.mostra-pausa:hover { color: var(--gelo); background: rgba(238, 242, 250, 0.1); }
.mostra-pausa .ic { width: 12px; height: 12px; grid-area: 1 / 1; }
.mostra-pausa .ic:last-child, .mostra-pausa[aria-pressed="true"] .ic:first-of-type { display: none; }
.mostra-pausa[aria-pressed="true"] .ic:last-child { display: block; }
@media (pointer: coarse) {
  .mostra-passo { width: 40px; height: 40px; }
  .mostra-passo i { left: 7px; right: 7px; }
  .mostra-pausa { width: 40px; height: 40px; }
}
/* with motion the stage comes in with the hero (abertura.js) */
.movimento .mostra:not(.ligada) .mostra-palco { opacity: 0; transform: translateY(18px); }
.movimento .mostra-palco { transition: opacity 0.9s var(--ease-saida), transform 1.1s var(--ease-saida); }
.movimento .mostra:not(.ligada) .mostra-legenda { opacity: 0; }
.movimento .mostra-legenda { transition: opacity 0.8s var(--ease-saida) 0.3s; }

@media (max-width: 899px) {
  .abertura { min-height: 0; padding: calc(var(--topo-h) + 26px) 0 40px; align-items: start; }
  .abertura-grade { grid-template-columns: 1fr; gap: 18px; }
  .marca-abertura { width: min(54vw, 224px); }
  .abertura-titulo { margin-top: 26px; }
  .abertura-acoes { display: grid; width: 100%; justify-items: start; gap: 4px; margin-top: 26px; }
  .abertura-acoes .botao { width: 100%; }
  .mostra-legenda { flex-wrap: wrap; margin-top: 6px; }
  .mostra-trilhos { flex-basis: 100%; }
  .mostra-controles { width: 100%; justify-content: space-between; }
}
/* phones: the stage under the copy, the width of the screen and taller than wide; the devices are sized by the
   width but never outgrow the stage (a tablet keeps the computer's 5 : 4 stage and its arrangements) */
@media (max-width: 599px) {
  .mostra-palco { aspect-ratio: auto; height: clamp(360px, 54svh, 520px); margin-inline: calc(-1 * var(--gutter)); perspective: 1300px; perspective-origin: 50% 32%; }
  .aparelho--pc { width: min(84cqw, 90cqh); }
  .aparelho--celular { width: min(37cqw, 38cqh); }
  .pose-celular .aparelho--pc { transform: translate3d(-5cqw, 9cqh, -150px) rotateY(18deg) rotateX(5deg) scale(0.9); }
  .pose-celular .aparelho--celular { transform: translate3d(56cqw, 9cqh, 70px) rotateY(-14deg) rotateX(3deg) scale(1); }
  .pose-celular-2 .aparelho--pc { transform: translate3d(22cqw, 7cqh, -170px) rotateY(-17deg) rotateX(5deg) scale(0.88); }
  .pose-celular-2 .aparelho--celular { transform: translate3d(6cqw, 9cqh, 70px) rotateY(13deg) rotateX(3deg) scale(1); }
  .pose-pc .aparelho--pc { transform: translate3d(7cqw, 34cqh, 40px) rotateY(-12deg) rotateX(5deg) scale(1); }
  .pose-pc .aparelho--celular { transform: translate3d(61cqw, 3cqh, -210px) rotateY(-20deg) rotateX(3deg) scale(0.88); }
  .pose-pc-2 .aparelho--pc { transform: translate3d(10cqw, 34cqh, 40px) rotateY(10deg) rotateX(5deg) scale(1); }
  .pose-pc-2 .aparelho--celular { transform: translate3d(3cqw, 3cqh, -220px) rotateY(20deg) rotateX(3deg) scale(0.86); }
}

/* ====================================================================== 2. the act: loose ends, wired into Morae */
.ato { position: relative; color: var(--gelo); background: var(--meianoite); }
.ato-palco { position: relative; padding: clamp(84px, 10vw, 140px) 0; }
.ato-grade { display: grid; gap: 44px; }
.ato-falas { display: grid; gap: 18px; align-content: start; }
.ato-fala { font-size: clamp(1.625rem, 0.95rem + 2.3vw, 3.125rem); line-height: 1.08; letter-spacing: -0.035em; font-weight: 600; max-width: 19ch; text-wrap: balance; }
.ato-grafo { position: relative; display: grid; row-gap: 56px; align-content: center; }
.ato-fios { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ato-fios .conexao--ativa { stroke-width: 1.25; }
.ato-entradas, .ato-saidas { list-style: none; position: relative; z-index: 1; }
.ato-entradas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.ato-entrada { display: flex; align-items: center; min-height: 50px; padding: 8px 11px; font-size: 0.8125rem; line-height: 1.3; color: rgba(238, 242, 250, 0.9); transition: color 0.4s, box-shadow 0.4s; }
.ato-rotulo { transition: opacity 0.4s; }
.ato-entrada .porta::before { left: 100%; top: 50%; }
.ato-entrada:nth-child(even) .porta::before { left: 0%; }
/* the loose end: out of the port, a short bend and an open connector */
.ato-solta { position: absolute; left: 100%; top: 50%; width: 30px; height: 26px; margin-top: -7px; overflow: visible; pointer-events: none; }
.ato-entrada:nth-child(even) .ato-solta { left: auto; right: 100%; transform: scaleX(-1); }
.ato-entrada:nth-child(3n) .ato-solta { margin-top: -19px; scale: 1 -1; }
.ato-ponta { fill: var(--meianoite); stroke: var(--porta-cor); stroke-width: 1; }
.ato-morae { z-index: 1; justify-self: center; display: grid; place-items: center; width: 150px; height: 56px; padding: 0; border-radius: var(--raio-2); --no-linha: var(--linha-forte-escura); }
.ato-morae .marca-no { width: 100px; height: auto; color: var(--gelo); }
.ato-morae-entra::before { left: 50%; top: 0%; }
.ato-morae-sai::before { left: 50%; top: 100%; }
.ato-saidas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ato-saida { display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; padding: 10px 8px; transition: box-shadow 0.4s; }
.ato-saida-porta::before { left: 50%; top: 0%; }
.ato-luz { flex: none; width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--porta-cor); transition: background-color 0.35s, box-shadow 0.35s; }
.ato-saida-nome { min-width: 0; font-size: 0.8125rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
/* lit: the output's square fills amber and its frame comes forward (the final state without motion) */
.ato-saida.acesa, html:not(.movimento) .ato-saida { --no-linha: var(--linha-forte-escura); }
.ato-saida.acesa .ato-luz, html:not(.movimento) .ato-luz { background: var(--ambar); box-shadow: inset 0 0 0 1px var(--ambar); }
.ato-morae .porta.ligada::before, .ato-saida.acesa .porta::before, .ato-entrada.ligada .porta::before { background: var(--porta-cor); }
.ato-grafo.citando .ato-entrada:not(.citada) { --no-linha: rgba(238, 242, 250, 0.08); }
.ato-grafo.citando .ato-entrada:not(.citada) .ato-rotulo { opacity: 0.36; }
.ato-grafo.citando .ato-entrada.citada { color: var(--gelo); --no-linha: var(--linha-forte-escura); }
.ato-saida:not(.acesa) .ato-saida-nome { color: var(--nevoa); }
html:not(.movimento) .ato-saida .ato-saida-nome { color: var(--gelo); }
html:not(.movimento) .ato-solta { display: none; }
/* the packets: out of Morae to the outputs (amber), once everything is connected */
.ato-pacote { opacity: 0; transition: opacity 0.5s; }
.ato-grafo.vivo .ato-pacote { opacity: 1; }
.ato-grafo:not(.vivo) .ato-pacote { animation-play-state: paused; }
@media (max-width: 899px) and (max-height: 760px) {
  .ato-grafo { row-gap: 38px; }
  .ato-entradas { row-gap: 8px; }
  .ato-entrada { min-height: 44px; padding: 6px 10px; font-size: 0.78125rem; }
  .ato-fala { font-size: clamp(1.375rem, 0.9rem + 2vw, 1.75rem); }
}
@media (min-width: 900px) {
  .ato-grade { grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); align-items: center; column-gap: clamp(40px, 5vw, 88px); }
  .ato-grafo { grid-template-columns: minmax(200px, 1fr) auto minmax(150px, 0.66fr); align-items: center; column-gap: clamp(64px, 6.5vw, 112px); }
  .ato-entradas { grid-template-columns: 1fr; gap: 12px; }
  .ato-entrada { min-height: 0; padding: 12px 16px; font-size: 0.9375rem; }
  .ato-entrada:nth-child(even) .porta::before { left: 100%; }
  .ato-entrada:nth-child(even) .ato-solta { right: auto; left: 100%; transform: none; }
  .ato-morae { width: 168px; height: 72px; }
  .ato-morae .marca-no { width: 116px; }
  .ato-morae-entra::before { left: 0%; top: 50%; }
  .ato-morae-sai::before { left: 100%; top: 50%; }
  .ato-saidas { grid-template-columns: 1fr; gap: 16px; }
  .ato-saida { justify-content: flex-start; gap: 9px; padding: 14px 16px; }
  .ato-saida-nome { font-size: 0.9375rem; }
  .ato-saida-porta::before { left: 0%; top: 50%; }
}
/* scrubbed: a sticky stage the graph plays in (ato.js); the three lines take turns in one place. What moves gets its
   own layer, so a frame of the scrub repaints only what changed (never the stage and its dot grid) */
.movimento .ato { height: 420vh; }
.movimento .ato-entrada, .movimento .ato-morae, .movimento .ato-saida, .movimento .ato-fala { will-change: transform, opacity; }
.movimento .ato-fios { will-change: transform; }
.movimento .ato-palco { position: sticky; top: 0; height: 100svh; padding: calc(var(--topo-h) + 18px) 0 22px; overflow: hidden; }
.movimento .ato-grade { height: 100%; grid-template-rows: auto minmax(0, 1fr); gap: 20px; }
.movimento .ato-falas { display: grid; }
.movimento .ato-fala { grid-area: 1 / 1; opacity: 0; }
.movimento .ato-grafo { min-height: 0; height: 100%; }
@media (min-width: 900px) {
  .movimento .ato-palco { padding-bottom: 32px; }
  .movimento .ato-grade { grid-template-rows: minmax(0, 1fr); }
  .movimento .ato-grafo { height: min(100%, 660px); }
}

/* ====================================================================== light surfaces: straight edges, a cool clean panel */
.folha { position: relative; z-index: 1; background: var(--claro); color: var(--tinta); }
.folha--trabalho { padding-bottom: clamp(88px, 10vw, 152px); }

/* ---------- the work: intro + index */
.trabalho-intro { padding: clamp(88px, 10vw, 148px) 0 clamp(48px, 6vw, 88px); }
.trabalho-grade { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.legenda { list-style: none; display: grid; gap: 8px; margin-top: clamp(28px, 3vw, 40px); font-size: 0.875rem; color: var(--ardosia); }
.legenda li { display: grid; grid-template-columns: 128px minmax(0, 1fr); align-items: baseline; }
.legenda .status { color: var(--tinta); }
@media (max-width: 899px) { .trabalho-grade { grid-template-columns: 1fr; } }
/* the index: a framed panel, a rail on top, one row per group; each row has a port on the panel's edge */
.indice { background: #fbfcfe; }
.indice-trilho { padding: 12px 18px 11px; box-shadow: inset 0 -1px 0 var(--quadro-cor); }
.indice ol { list-style: none; }
.indice li + li { box-shadow: inset 0 1px 0 var(--quadro-cor); }
.indice a {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "nome num" "linha num";
  column-gap: 24px; align-items: center; padding: 18px 18px 18px 22px; text-decoration: none;
}
.indice a::before {
  content: ""; position: absolute; left: -3.5px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%;
  background: #fbfcfe; box-shadow: inset 0 0 0 1px var(--porta-cor); transition: background-color 0.25s, box-shadow 0.25s;
}
.indice a:hover::before, .indice a:focus-visible::before { background: var(--conexao-ativa); box-shadow: inset 0 0 0 1px var(--conexao-ativa); }
.indice-nome { grid-area: nome; font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.02em; }
.indice-linha { grid-area: linha; font-size: 0.8125rem; color: var(--ardosia); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.indice .num { grid-area: num; font-size: clamp(1.625rem, 1.2rem + 1vw, 2.25rem); color: var(--tinta); line-height: 1; }

/* ---------- a group: its head on a hairline */
.grupo { padding-top: clamp(72px, 8vw, 128px); }
.grupo-cabeca {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 8px clamp(20px, 3vw, 44px);
  padding-bottom: 18px; margin-bottom: clamp(28px, 3.6vw, 52px); box-shadow: inset 0 -1px 0 var(--quadro-cor);
}
.grupo-titulo { font-size: clamp(1.875rem, 1.1rem + 2vw, 3rem); letter-spacing: -0.035em; line-height: 1; }
.grupo-linha { color: var(--ardosia); font-size: clamp(0.9375rem, 0.85rem + 0.3vw, 1.0625rem); max-width: 52ch; }
.grupo-conta .num { font-size: clamp(1.5rem, 1rem + 1vw, 2.25rem); color: var(--ardosia); line-height: 1; }
@media (max-width: 719px) {
  .grupo-cabeca { grid-template-columns: minmax(0, 1fr) auto; }
  .grupo-linha { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- a product (v4): a rounded inset frame (.quadro, kit.css) carrying the project's palette (--p-*), its
   rail on top (index, type, platform, status), its panel (.painel-projeto, projetos.css: its colours and pattern, its
   logotype, the preview) and its meta (name, line, numbers, fact, the ways in) */
.ficha { display: grid; align-content: start; min-width: 0; border-radius: var(--p-raio, 24px); }
.ficha > .trilho-projeto { padding: 12px clamp(14px, 1.4vw, 18px) 11px; box-shadow: inset 0 -1px 0 var(--quadro-cor); }
.ficha > .trilho-projeto .trilho-n { color: var(--trilho-forte); }
.ficha > .previa { margin: 8px 8px 0; border-radius: calc(var(--p-raio, 24px) - 8px); }
.ficha-meta { display: grid; gap: 12px; align-content: start; justify-items: start; min-width: 0; padding: clamp(18px, 2vw, 26px) clamp(14px, 1.5vw, 22px) clamp(20px, 2.2vw, 26px); }
.ficha-nome { font-size: clamp(1.625rem, 1.05rem + 1.3vw, 2.375rem); letter-spacing: -0.035em; line-height: 1.04; }
.ficha-linha { color: var(--ardosia); font-size: clamp(1rem, 0.94rem + 0.25vw, 1.125rem); max-width: 40ch; text-wrap: pretty; }
.ficha-fato { font-size: 0.875rem; color: var(--ardosia); }
.ficha-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 6px; }
.numeros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: 100%; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--quadro-cor, var(--linha)); }
.numeros > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; min-width: 0; }
.numeros dd { font-family: var(--fonte-marca); font-weight: 300; font-size: clamp(1.5rem, 1.05rem + 1vw, 2.125rem); line-height: 1; letter-spacing: -0.03em; color: var(--tinta); white-space: nowrap; }
.numeros dt { font-size: 0.8125rem; line-height: 1.35; color: var(--ardosia); }
[data-tema="escuro"] .numeros dd { color: var(--gelo); }
[data-tema="escuro"] .numeros dt, [data-tema="escuro"] .ficha-linha, [data-tema="escuro"] .ficha-fato { color: var(--nevoa); }

/* the panel behind the preview: a head row (logotype, a site's address), then the device */
.ficha .previa { display: grid; gap: clamp(16px, 2vw, 24px); padding: clamp(12px, 1.3vw, 16px) clamp(12px, 1.3vw, 16px) clamp(18px, 2.2vw, 28px); }
.ficha .painel-cabeca { --logo-h: clamp(18px, 1.1rem + 0.2vw, 22px); }
.ficha .painel-motivo { opacity: 0.7; }
.previa-url { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--fonte-mono); font-size: 0.6875rem; color: var(--p-texto-2); }
.previa-aparelho { position: relative; z-index: 1; min-width: 0; }

/* sites: three phones side by side, each in its frame */
.vitrine { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); }
.ficha--fone .previa-aparelho { width: min(72%, 282px); margin-inline: auto; }
@media (max-width: 899px) {
  .vitrine { grid-template-columns: 1fr; gap: 40px; }
  .ficha--fone .previa-aparelho { width: min(68%, 276px); }
}

/* systems and the featured app: the rail across, the panel with the window and the meta beside it */
.ficha--larga { grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); }
.ficha--larga > .trilho-projeto { grid-column: 1 / -1; }
.ficha--larga > .previa { grid-column: 1; grid-row: 2; margin: 8px 0 8px 8px; padding: clamp(14px, 1.8vw, 26px); }
.ficha--larga > .ficha-meta { grid-column: 2; grid-row: 2; align-self: center; padding: clamp(24px, 3vw, 48px) clamp(20px, 2.6vw, 44px); }
.ficha--invertida { grid-template-columns: minmax(0, 1fr) minmax(0, 1.62fr); }
.ficha--invertida > .previa { grid-column: 2; margin: 8px 8px 8px 0; }
.ficha--invertida > .ficha-meta { grid-column: 1; }
.ficha--larga + .ficha--larga { margin-top: clamp(32px, 4vw, 56px); }
@media (max-width: 899px) {
  .ficha--larga, .ficha--invertida { grid-template-columns: 1fr; }
  .ficha--larga > .previa, .ficha--invertida > .previa { grid-column: 1; grid-row: 2; margin: 8px 8px 0; padding: 12px 12px 18px; }
  .ficha--larga > .ficha-meta, .ficha--invertida > .ficha-meta { grid-column: 1; grid-row: 3; padding: 20px 14px 22px; }
}

/* the other apps: a grid of framed cards */
.grade-apps { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); margin-top: clamp(16px, 2vw, 32px); }
.ficha--cartao .ficha-nome { font-size: clamp(1.5rem, 1.1rem + 0.9vw, 2.125rem); }
@media (max-width: 899px) { .grade-apps { grid-template-columns: 1fr; gap: 40px; margin-top: 40px; } }

/* ====================================================================== device frames */
.previa { position: relative; margin: 0; }
.tela { position: relative; overflow: hidden; background: var(--tela-fundo); isolation: isolate; }
.tela-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: opacity 0.6s ease; }
.tela-viva { position: absolute; inset: 0; overflow: hidden; }
.previa.viva .tela-poster { opacity: 0; }

/* phone: a 9 : 19.5 screen (status bar + the page) in a dark bezel; sizes follow the phone (container units) */
.fone {
  position: relative; width: 100%; container-type: inline-size;
  border-radius: 15% / 6.9%;
  background: linear-gradient(160deg, #1d2742 0%, #0b1124 46%, #151d36 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.12), 0 0 0 1px rgba(7, 12, 34, 0.5), var(--sombra-objeto);
}
.fone::before { content: ""; position: absolute; right: -2px; top: 22%; width: 3px; height: 10%; border-radius: 0 2px 2px 0; background: #1d2742; }
.fone-tela { position: relative; margin: 3.1cqw; aspect-ratio: 9 / 19.5; border-radius: 11.5cqw; overflow: hidden; background: #07090f; isolation: isolate; display: flex; flex-direction: column; }
.fone-status {
  position: relative; flex: none; display: flex; align-items: center; justify-content: space-between;
  height: 11.3cqw; padding: 0 8.5cqw 0 10.5cqw; background: #07090f; color: #f2f4f8;
  font-size: 3.7cqw; font-weight: 600; letter-spacing: 0.01em; font-variant-numeric: tabular-nums;
}
.fone-ilha { position: absolute; left: 50%; top: 50%; width: 29cqw; height: 7.6cqw; translate: -50% -50%; border-radius: 999px; background: #000; }
.fone-status i { display: flex; gap: 1.2cqw; align-items: center; }
.fone-status i::before, .fone-status i::after { content: ""; display: block; height: 2.4cqw; border-radius: 0.6cqw; background: currentColor; }
.fone-status i::before { width: 4.2cqw; clip-path: polygon(0 75%, 25% 75%, 25% 50%, 50% 50%, 50% 25%, 75% 25%, 75% 0, 100% 0, 100% 100%, 0 100%); }
.fone-status i::after { width: 5.6cqw; border-radius: 0.8cqw; box-shadow: inset 0 0 0 0.4cqw currentColor; background: linear-gradient(90deg, currentColor 70%, transparent 70%); background-clip: content-box; padding: 0.5cqw; }
.fone .tela { flex: 1; min-height: 0; }
.fone-brilho { display: none; }

/* desktop window: a slim title bar in the project's surface colour, three hollow squares, the app's name */
.janela {
  position: relative; border-radius: var(--raio-2); overflow: hidden;
  background: var(--p-superficie, #121828); box-shadow: 0 0 0 1px var(--p-linha, rgba(238, 242, 250, 0.14)), var(--sombra-objeto);
}
.janela-barra {
  display: flex; align-items: center; gap: 14px;
  height: clamp(26px, 2.3vw, 32px); padding: 0 12px; background: var(--p-superficie, #171e31);
  border-bottom: 1px solid var(--p-linha, rgba(238, 242, 250, 0.08)); color: var(--p-barra-texto, rgba(238, 242, 250, 0.7));
  font-family: var(--fonte-mono); font-size: 0.6875rem; line-height: 1;
}
.janela-pontos { display: flex; gap: 5px; flex: none; }
.janela-pontos i { width: 7px; height: 7px; border-radius: 1px; box-shadow: inset 0 0 0 1px currentColor; opacity: 0.55; }
.janela-titulo { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.janela .tela { aspect-ratio: 16 / 10; }
@media (max-width: 599px) { .janela .tela, .monitor .tela { aspect-ratio: var(--aspecto-estreito, 16 / 10); } }

/* the game: a monitor */
.monitor { position: relative; padding: clamp(5px, 0.6vw, 9px); border-radius: var(--raio-2); background: #0c1226; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), var(--sombra-escura); }
.monitor .tela { aspect-ratio: 16 / 10; border-radius: 3px; }
.monitor-pe { position: relative; z-index: 1; display: block; width: 16%; height: 12px; margin: 0 auto; background: #0c1226; clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); }

/* the pause button of a preview: a small square on the device */
.previa-pausa {
  position: absolute; right: 10px; bottom: 10px; z-index: 6; width: 36px; height: 36px; border-radius: 50%; border: 0;
  display: grid; place-items: center; color: var(--gelo); background: rgba(7, 12, 34, 0.72);
  box-shadow: inset 0 0 0 1px rgba(238, 242, 250, 0.22); opacity: 0; transition: opacity 0.25s;
}
.previa-pausa .ic { width: 14px; height: 14px; grid-area: 1 / 1; }
.previa-pausa .ic:last-child { display: none; }
.previa-pausa.parado .ic:first-of-type { display: none; }
.previa-pausa.parado .ic:last-child { display: block; }
.previa:hover .previa-pausa, .previa-pausa:focus-visible, .previa-pausa.parado { opacity: 1; }
@media (hover: none) { .previa-pausa { opacity: 0.9; width: 44px; height: 44px; } }
.previa--celular .previa-pausa { right: 9%; bottom: 4.5%; }
html:not(.js) .previa-pausa { display: none; }

/* our own preview inside a screen (assets/pagina/previas.js) */
.propria-video, .propria-quadro { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.propria-quadro { will-change: transform, opacity; transform-origin: 50% 40%; }
.propria--vertical .propria-video { object-fit: contain; }
.propria-fundo { position: absolute; inset: -8%; width: 116%; height: 116%; max-width: none; object-fit: cover; filter: blur(26px) brightness(0.55) saturate(1.2); }
.janela .tela-poster[width="396"] { object-fit: contain; background: var(--tela-fundo); }

/* ---------- the game section (navy) */
.grupo--jogo { position: relative; z-index: 1; color: var(--gelo); background: var(--meianoite); padding: clamp(80px, 9vw, 148px) 0 clamp(80px, 9vw, 140px); }
.grupo--jogo .grupo-cabeca { border-color: var(--linha-escura); }
.grupo--jogo .grupo-linha, .grupo--jogo .grupo-conta .num { color: var(--nevoa); }
.ficha--jogo > .previa { padding: clamp(16px, 2.4vw, 36px) clamp(16px, 2.4vw, 36px) clamp(10px, 1.4vw, 20px); }
.ficha--jogo .previa-aparelho { width: min(100%, 1000px, calc((100svh - var(--topo-h) - 200px) * 1.6)); margin-inline: auto; }
.ficha--jogo .ficha-meta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 96px); align-items: start; padding: clamp(22px, 2.6vw, 36px) clamp(16px, 2vw, 28px); }
.ficha--jogo .ficha-meta > :not(.numeros) { grid-column: 1; }
.ficha--jogo .numeros { grid-column: 2; grid-row: 1 / span 4; align-self: center; margin-top: 0; }
.ficha--jogo .botao--escuro { background: var(--gelo); color: var(--meianoite); }
@media (max-width: 899px) {
  .ficha--jogo .ficha-meta { grid-template-columns: 1fr; }
  .ficha--jogo .numeros { grid-column: 1; grid-row: auto; }
}

/* ====================================================================== 4. reels */
.videos { position: relative; z-index: 1; color: var(--gelo); background: var(--meianoite); padding: clamp(88px, 10vw, 152px) 0; }
.grupo--jogo + .videos { padding-top: clamp(72px, 8vw, 128px); }
.videos-cabeca { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px clamp(40px, 6vw, 112px); align-items: end; margin-bottom: clamp(36px, 4.5vw, 64px); }
.videos-lado { display: grid; justify-items: start; gap: 8px; }
.videos-lado .texto-secao { margin-top: 0; }
.link-fora--claro { color: var(--gelo); }
.reels { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.reels, .reel-abrir { position: relative; } /* the screen-reader text stays inside the scrolling row */
.reel-abrir { display: grid; gap: 11px; width: 100%; padding: 0; border: 0; background: none; text-align: left; color: inherit; border-radius: var(--raio-2); }
.reel-tela {
  position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--raio-2); background: var(--painel);
  box-shadow: 0 0 0 1px var(--linha-escura); transition: box-shadow 0.3s;
}
.reel-tela img, .reel-tela video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-tela video { opacity: 0; transition: opacity 0.5s; }
.reel.tocando .reel-tela video { opacity: 1; }
.reel-dur {
  position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px 3px 6px;
  border-radius: 7px; background: rgba(7, 12, 34, 0.8); box-shadow: inset 0 0 0 1px var(--linha-escura);
  font-family: var(--fonte-mono); font-size: 0.6875rem; line-height: 1.4; font-variant-numeric: tabular-nums;
}
.reel-dur .ic { width: 9px; height: 9px; }
.reel-nome { font-size: 0.9375rem; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: hover) and (pointer: fine) {
  .reel-abrir:hover .reel-tela { box-shadow: 0 0 0 1px var(--linha-forte-escura); }
}
@media (max-width: 1099px) { .reels { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; } }
@media (max-width: 719px) {
  .videos-cabeca { grid-template-columns: 1fr; }
  .reels {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; scroll-padding-inline: var(--gutter);
  }
  .reels::-webkit-scrollbar { display: none; }
  .reel { flex: none; width: 60vw; max-width: 250px; scroll-snap-align: start; }
}

/* the reel's quick view (and the base of the gallery viewer of the project pages) */
.reel-dialogo, .visor {
  padding: 0; border: 0; color: var(--gelo); background: transparent; max-width: none; max-height: none;
}
.reel-dialogo::backdrop, .visor::backdrop { background: rgba(4, 7, 20, 0.88); }
.reel-dialogo[open] { animation: subir 0.45s var(--ease-saida); }
@keyframes subir { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.reel-dialogo-corpo {
  position: relative; display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 400px); gap: clamp(24px, 3vw, 48px); align-items: center;
  width: min(92vw, 860px); padding: clamp(16px, 2vw, 24px); border-radius: var(--raio-3); background: var(--painel); box-shadow: var(--sombra-escura);
}
.reel-dialogo-tela { aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--raio-2); background: var(--noite-2); }
.reel-dialogo-tela video { width: 100%; height: 100%; object-fit: cover; }
.reel-dialogo-tipo { color: var(--nevoa); font-family: var(--fonte-mono); font-size: 0.75rem; }
.reel-dialogo-texto { padding-right: 8px; }
.reel-dialogo-texto h2 { margin-top: 10px; font-size: clamp(1.5rem, 1.1rem + 1vw, 2.125rem); line-height: 1.1; letter-spacing: -0.03em; }
.reel-dialogo-linha { margin-top: 12px; color: var(--gelo); font-weight: 500; }
.reel-dialogo-resumo { margin-top: 10px; color: var(--nevoa); }
.reel-dialogo-nota { margin-top: 14px; color: var(--nevoa-2); font-size: 0.8125rem; }
.reel-dialogo-acoes { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.dialogo-fechar {
  position: absolute; right: 12px; top: 12px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0;
  display: grid; place-items: center; background: var(--painel); color: var(--gelo); box-shadow: inset 0 0 0 1px var(--linha-escura);
}
.dialogo-fechar:hover { box-shadow: inset 0 0 0 1px var(--linha-forte-escura); }
@media (max-width: 719px) {
  .reel-dialogo-corpo { grid-template-columns: 1fr; width: 100vw; max-height: 100svh; overflow: auto; padding: 64px 20px 28px; border-radius: 0; }
  .reel-dialogo-tela { width: min(68vw, 290px); margin-inline: auto; }
}

/* ====================================================================== 5. how it works: a pipeline of four nodes */
.folha--como { padding: clamp(88px, 10vw, 152px) 0 clamp(96px, 11vw, 160px); }
.como-cabeca { max-width: 760px; }
.etapas {
  --etapa-vao: clamp(28px, 3vw, 44px); --porta-pos: 40px;
  list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--etapa-vao);
  margin-top: clamp(48px, 6vw, 88px);
}
.etapa { position: relative; display: flex; min-width: 0; }
.etapa-no { flex: 1; display: grid; align-content: start; gap: 8px; padding: 22px 24px 28px; border-radius: var(--raio-3); }
.etapa-num { font-size: clamp(2rem, 1.5rem + 1vw, 2.75rem); line-height: 1; color: var(--tinta); margin-bottom: 14px; }
.etapa strong { font-size: 1.125rem; letter-spacing: -0.015em; line-height: 1.3; }
.etapa-no > span:not(.etapa-num) { color: var(--ardosia); font-size: 0.9375rem; line-height: 1.5; max-width: 32ch; }
.etapa-entra::before { left: 0%; top: var(--porta-pos); }
.etapa-sai::before { left: 100%; top: var(--porta-pos); }
.etapa-fio { position: absolute; left: 100%; top: var(--porta-pos); width: var(--etapa-vao); height: 1px; background: var(--conexao-cor); }
.etapa-pacote { position: absolute; left: 0; top: -1px; width: 9px; height: 3px; border-radius: 999px; background: var(--conexao-ativa); opacity: 0; }
/* once in view one packet runs the pipeline; each port lights as it passes and stays connected */
.movimento .etapas.em-vista .etapa-pacote { animation: etapa-pacote 0.6s var(--ease-meio) calc(0.3s + var(--i) * 0.72s) both; }
.movimento .etapas.em-vista .etapa-sai::before { animation: etapa-porta 1s ease calc(0.22s + var(--i) * 0.72s) both; }
.movimento .etapas.em-vista .etapa-entra::before { animation: etapa-porta 1s ease calc(0.86s + (var(--i) - 1) * 0.72s) both; }
html:not(.movimento) .etapa .porta::before { background: var(--porta-cor); }
@keyframes etapa-pacote {
  0% { opacity: 0; transform: translateX(0); }
  15%, 85% { opacity: 1; }
  100% { opacity: 0; transform: translateX(calc(var(--etapa-vao) - 9px)); }
}
@keyframes etapa-pacote-v {
  0% { opacity: 0; transform: translateY(0); }
  15%, 85% { opacity: 1; }
  100% { opacity: 0; transform: translateY(calc(var(--etapa-vao) - 9px)); }
}
@keyframes etapa-porta {
  0% { background: var(--no-fundo); }
  25% { background: var(--conexao-ativa); box-shadow: inset 0 0 0 1px var(--conexao-ativa); }
  100% { background: var(--porta-cor); }
}
.promessas { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(72px, 8vw, 120px); box-shadow: inset 0 1px 0 var(--quadro-cor); }
.promessas li { display: grid; gap: 6px; align-content: start; padding: 30px clamp(20px, 3vw, 40px) 0 0; }
.promessas li + li { padding-left: clamp(20px, 3vw, 40px); box-shadow: inset 1px 0 0 var(--quadro-cor); }
.promessas .ic { width: 24px; height: 24px; color: var(--tinta); margin-bottom: 10px; }
.promessas strong { font-size: 1.125rem; letter-spacing: -0.015em; }
.promessas span { color: var(--ardosia); font-size: 0.9375rem; max-width: 34ch; }
@media (max-width: 899px) {
  .etapas { grid-template-columns: 1fr; column-gap: 0; row-gap: var(--etapa-vao); --etapa-vao: 30px; --porta-pos: 34px; }
  .etapa-entra::before { left: var(--porta-pos); top: 0%; }
  .etapa-sai::before { left: var(--porta-pos); top: 100%; }
  .etapa-fio { left: var(--porta-pos); top: 100%; width: 1px; height: var(--etapa-vao); }
  .etapa-pacote { left: -1px; top: 0; width: 3px; height: 9px; }
  .movimento .etapas.em-vista .etapa-pacote { animation-name: etapa-pacote-v; }
  .promessas { grid-template-columns: 1fr; }
  .promessas li, .promessas li + li { padding: 26px 0; box-shadow: inset 0 -1px 0 var(--quadro-cor); }
}

/* ====================================================================== 6. close + footer */
.fechamento { position: relative; z-index: 1; color: var(--gelo); background-color: var(--meianoite); padding: clamp(104px, 12vw, 184px) 0; }
.fechamento-grade { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(40px, 5vw, 96px); align-items: center; }
.fechamento-titulo { font-size: clamp(2.75rem, 1rem + 5.2vw, 6.5rem); line-height: 0.96; letter-spacing: -0.052em; max-width: 11ch; text-wrap: balance; }
.fechamento-texto { margin-top: clamp(20px, 2.4vw, 28px); max-width: 42ch; color: var(--nevoa); font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.3125rem); }
.fechamento-acoes { margin-top: clamp(28px, 3.4vw, 40px); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
/* the diagram: the Morae node; a wire that reaches for an empty node, yours; the button connects them */
.fim-grafo { display: flex; align-items: center; min-width: 0; }
.fim-morae { flex: none; display: grid; place-items: center; width: 152px; height: 64px; padding: 0; border-radius: var(--raio-2); --no-linha: var(--linha-forte-escura); }
.fim-morae .marca-no { width: 104px; height: auto; }
.fim-projeto { flex: none; display: grid; place-items: center; min-width: 148px; height: 64px; padding: 0 20px; border-radius: var(--raio-2); color: var(--nevoa); font-size: 0.9375rem; transition: color 0.35s, outline-color 0.35s; }
.fim-projeto .porta::before { left: 0%; }
.fim-fio { position: relative; flex: 1; min-width: 64px; height: 1px; margin-inline: 4px; container-type: inline-size; }
.fim-linha { position: absolute; left: 0; top: 0; height: 1px; width: 82%; background: var(--conexao-cor); transition: width 0.7s var(--ease-saida), background-color 0.4s; }
.fim-ponta { position: absolute; top: -3px; left: calc(82% - 3px); width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--porta-cor); background: var(--meianoite); transition: left 0.7s var(--ease-saida), opacity 0.3s 0.4s; }
.fim-pacote { position: absolute; left: 0; top: -1px; width: 10px; height: 3px; border-radius: 999px; background: var(--ambar); opacity: 0; }
.fechamento.ligado .fim-linha, .fechamento:has(.fim-contato:hover, .fim-contato:focus-visible) .fim-linha { width: 100%; background: var(--ambar); }
.fechamento.ligado .fim-ponta, .fechamento:has(.fim-contato:hover, .fim-contato:focus-visible) .fim-ponta { left: calc(100% - 3px); opacity: 0; }
.fechamento.ligado .fim-projeto, .fechamento:has(.fim-contato:hover, .fim-contato:focus-visible) .fim-projeto { color: var(--gelo); outline-style: solid; outline-color: var(--ambar); }
.fechamento.ligado .fim-grafo .porta::before, .fechamento:has(.fim-contato:hover, .fim-contato:focus-visible) .fim-grafo .porta::before { background: var(--ambar); box-shadow: inset 0 0 0 1px var(--ambar); }
.movimento .fechamento.ligado .fim-pacote, .movimento .fechamento:has(.fim-contato:hover, .fim-contato:focus-visible) .fim-pacote { animation: fim-pacote 1.5s linear 0.45s infinite; }
@keyframes fim-pacote {
  0% { opacity: 0; transform: translateX(0); }
  12%, 88% { opacity: 1; }
  100% { opacity: 0; transform: translateX(calc(100cqw - 10px)); }
}
@media (prefers-reduced-motion: reduce) {
  .fechamento .fim-linha { width: 100%; background: var(--ambar); }
  .fechamento .fim-ponta { display: none; }
  .fechamento .fim-projeto { color: var(--gelo); outline-style: solid; outline-color: var(--ambar); }
  .fechamento .fim-grafo .porta::before { background: var(--ambar); box-shadow: inset 0 0 0 1px var(--ambar); }
}
@media (max-width: 899px) {
  .fechamento-grade { grid-template-columns: 1fr; gap: 48px; }
  .fim-grafo { order: -1; }
  .fim-morae { width: 118px; height: 54px; }
  .fim-morae .marca-no { width: 80px; }
  .fim-projeto { min-width: 120px; height: 54px; padding: 0 14px; font-size: 0.875rem; }
  .fechamento-acoes { display: grid; width: 100%; justify-items: start; gap: 4px; }
  .fechamento-acoes .botao { width: 100%; }
}

.rodape { position: relative; z-index: 1; background: #050918; color: var(--nevoa); padding: 52px 0 28px; }
.rodape-grade { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px 40px; }
.rodape-marca { display: inline-flex; border-radius: 8px; }
.rodape-marca img { height: 20px; width: auto; }
/* the mark on the left, the links on the right (the name line under the mark left on 29/10) */
.rodape-links { display: flex; flex-wrap: wrap; gap: 4px; grid-column: -2; justify-self: end; }
.rodape-links a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; font-weight: 500; text-decoration: none; color: var(--gelo); }
.rodape-links a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.rodape-base { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 32px; margin-top: 8px; padding-top: 18px; box-shadow: inset 0 1px 0 var(--linha-escura); }
.rodape-nota { font-size: 0.8125rem; color: var(--nevoa-2); }
@media (max-width: 719px) { .rodape-grade { grid-template-columns: 1fr; } .rodape-links { margin-left: -12px; grid-column: auto; justify-self: start; } .rodape-base { display: grid; } }

/* ====================================================================== entrances */
.movimento [data-entra] { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease-saida), transform 0.9s var(--ease-saida); transition-delay: calc(var(--i, 0) * 70ms); }
.movimento [data-entra].entrou { opacity: 1; transform: none; }

/* no script after a few seconds: every hidden thing shows */
.sem-script .marca-caixa, .sem-script .abertura-titulo, .sem-script .abertura-texto, .sem-script .abertura-acoes, .sem-script .mostra-palco, .sem-script .mostra-legenda { visibility: visible !important; opacity: 1 !important; }
.sem-script .mostra-palco { transform: none !important; }
.sem-script .marca-abertura .mk-a, .sem-script .marca-abertura .mk-e { opacity: 0 !important; }
.sem-script [data-entra] { opacity: 1 !important; transform: none !important; }
.sem-script [data-palavras] .palavra > span { transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* a demo that draws its own device (meta.moldura): it gets the whole frame, ours steps aside once it is live (the
   project's panel shows through) */
.palco-demo { position: absolute; inset: 0; z-index: 4; }
.previa.demo-moldura.viva .fone, .previa.demo-moldura.viva .monitor, .previa.demo-moldura.viva .janela { background: none; box-shadow: none; }
.previa.demo-moldura.viva .fone::before, .previa.demo-moldura.viva .monitor-pe { opacity: 0; }
.previa.demo-moldura.viva .fone-tela { visibility: hidden; }
.previa.demo-moldura.viva .janela-barra { visibility: hidden; }
.previa.demo-moldura.viva .tela { background: none; }

/* the whole preview of a product on the home opens its page (the button below is the accessible way in) */
.ficha .previa { cursor: pointer; }
.ficha .previa-pausa { cursor: pointer; }


/* ====================================================================== 404 (tools/build.mjs writes public/404.html) */
.erro-404 { min-height: 72svh; display: grid; align-content: center; padding-block: calc(var(--topo-h) + 48px) 72px; }
.erro-404 h1 { font-size: var(--t-5); line-height: 1.02; letter-spacing: -0.03em; margin: 16px 0 12px; }
.erro-404 .texto-secao { max-width: 46ch; }
.erro-404-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
