/*
  Portfólio Mateus Mendes, no estilo limpo da Apple:
  fundo cinza-pérola, cartões brancos de canto arredondado, um azul só para ações,
  títulos em duas cores e uma sombra só, a das peças "pousadas" na página.

  Em Mac e iPhone o texto sai na SF Pro, a fonte do sistema da Apple. Nos outros
  aparelhos, na Inter, que vem com o tema (licença livre, OFL).
*/

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --tinta: #1d1d1f;
  --cinza: #6e6e73;
  --cinza-claro: #86868b;
  --papel: #f5f5f7;
  --branco: #ffffff;
  --fio: #d2d2d7;
  --azul: #0066cc;
  --azul-botao: #0071e3;
  --azul-no-escuro: #2997ff;
  --chip: rgb(210 210 215 / .64);
  --raio: 18px;
  --sombra-peca: 3px 5px 30px rgb(0 0 0 / .22);
  --margem: max(22px, calc((100vw - 1200px) / 2));
  --texto: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --curva: cubic-bezier(.28, .11, .32, 1);
  --virar: cubic-bezier(.645, .045, .355, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font: 400 17px/1.47 var(--texto);
  letter-spacing: -.022em;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
img, video { max-width: 100%; }
a { color: var(--azul); }
button { font: inherit; color: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--azul-botao); outline-offset: 3px; }
::selection { background: rgb(0 113 227 / .2); }

.cinza { color: var(--cinza); }

.pular {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 980px;
  background: var(--tinta);
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}
.pular:focus { top: 12px; }

/* ---------- Botões e links ---------- */

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 980px;
  background: var(--azul-botao);
  color: #fff;
  font: 400 17px/1.18 var(--texto);
  letter-spacing: -.022em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s, transform .2s;
}
.botao:hover { background: #0077ed; color: #fff; }
.botao:active { transform: scale(.98); }
.botao--pequeno { min-height: 28px; padding: 4px 13px; font-size: 12px; letter-spacing: -.01em; }
.botao--contorno { border-color: var(--azul-botao); background: transparent; color: var(--azul); }
.botao--contorno:hover { background: var(--azul-botao); color: #fff; }

.link-seta {
  color: var(--azul);
  font-size: 17px;
  text-decoration: none;
}
.link-seta::after { content: "\00a0\203A"; }
.link-seta:hover { text-decoration: underline; }
.link-seta--fora::after { content: "\00a0\2197"; }

.link-utilidade {
  min-height: 36px;
  padding: 0 4px;
  color: var(--azul);
  font-size: 14px;
}
.link-utilidade:hover { text-decoration: underline; }

/* Botão redondo com a seta, como os da loja da Apple */
.seta {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--chip);
  color: rgb(0 0 0 / .56);
  transition: background-color .2s, color .2s, opacity .2s;
}
.seta::before {
  content: "";
  width: 9px;
  height: 9px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateX(-2px) rotate(-45deg);
}
.seta--anterior::before { transform: translateX(2px) rotate(135deg); }
.seta:hover { background: rgb(223 223 227 / .7); color: rgb(0 0 0 / .64); }
.seta:active { transform: scale(.94); }
.seta:disabled { opacity: .42; cursor: default; transform: none; }

/* Pílulas de escolha (tipo de trabalho, computador ou celular) */
.segmentado {
  display: inline-flex;
  gap: 2px;
  max-width: 100%;
  padding: 4px;
  overflow-x: auto;
  border-radius: 980px;
  background: #e8e8ed;
  scrollbar-width: none;
}
.segmentado::-webkit-scrollbar { display: none; }
.segmentado button {
  flex: none;
  min-height: 36px;
  padding: 0 18px;
  border-radius: 980px;
  color: var(--tinta);
  font-size: 14px;
  white-space: nowrap;
  transition: background-color .25s, box-shadow .25s;
}
.segmentado button:hover { background: rgb(255 255 255 / .5); }
.segmentado button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .14); }

/* ---------- Barra do topo ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 48px;
  background: rgb(245 245 247 / .8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.single-trabalho .nav { position: relative; }
.nav__dentro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1024px;
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
}
.nav__nome {
  color: var(--tinta);
  font: 600 15px/1 var(--display);
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
}
.nav__menu { display: flex; align-items: center; gap: clamp(18px, 3vw, 36px); }
.nav__menu a {
  color: rgb(0 0 0 / .8);
  font-size: 12px;
  letter-spacing: -.01em;
  text-decoration: none;
  transition: color .2s;
}
.nav__menu a:hover { color: var(--tinta); }
.nav__abrir { display: none; }

/* ---------- Página inicial ---------- */

.abertura {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 64px;
  padding: clamp(40px, 7vw, 76px) var(--margem) 36px;
}
.duas-cores {
  max-width: 15.5em;
  font: 600 clamp(32px, 4.2vw, 48px)/1.08 var(--display);
  letter-spacing: -.02em;
}
.abertura--lista .duas-cores { max-width: 20em; }
.abertura__ajuda { flex: none; padding-bottom: 6px; font-size: 14px; line-height: 1.43; }
.abertura__ajuda .link-seta { font-size: 14px; }
.abertura__texto { max-width: 40em; margin-top: 16px; color: var(--cinza); font-size: 19px; }

/* Atalhos por tipo, como a fileira de produtos da loja */
.atalhos { padding: 4px 0 12px; }
.atalhos__lista {
  display: flex;
  gap: clamp(18px, 2.4vw, 36px);
  padding: 8px var(--margem) 12px;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}
.atalhos__lista::-webkit-scrollbar { display: none; }
.atalho {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 108px;
  color: var(--tinta);
  text-align: center;
  text-decoration: none;
}
.atalho__imagem {
  display: grid;
  place-items: end center;
  width: 100%;
  height: 78px;
  margin-bottom: 12px;
}
.atalho__imagem img {
  max-width: 96px;
  max-height: 78px;
  width: auto;
  height: auto;
  border-radius: 4px;
  box-shadow: 1px 3px 10px rgb(0 0 0 / .18);
  transition: transform .4s var(--curva);
}
.atalho:hover .atalho__imagem img { transform: translateY(-3px); }
.atalho__nome { font-size: 14px; font-weight: 600; line-height: 1.29; }
.atalho__total { color: var(--cinza); font-size: 12px; }

/* Prateleiras */
.prateleira { padding-top: clamp(36px, 5vw, 56px); }
.titulo-secao {
  padding: 0 var(--margem);
  font: 600 clamp(22px, 2.3vw, 28px)/1.14 var(--display);
  letter-spacing: -.012em;
}
.prateleira__trilho {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--margem);
  scrollbar-width: none;
}
.prateleira__trilho::-webkit-scrollbar { display: none; }
.prateleira__lista {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 24px var(--margem) 36px;
  list-style: none;
}
.prateleira__item { scroll-snap-align: start; }
.prateleira__setas {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: -12px;
  padding: 0 var(--margem);
}
.prateleira__setas[hidden] { display: none !important; }

.ver-todos { padding: clamp(36px, 5vw, 56px) var(--margem) clamp(56px, 7vw, 88px); }

.vazio { padding: 24px var(--margem) 96px; }
.vazio .titulo-secao { padding: 0; }
.vazio p { max-width: 36em; margin: 12px 0 28px; color: var(--cinza); }

/* ---------- Cartões ---------- */

.cartao {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 400px;
  height: 500px;
  overflow: hidden;
  border-radius: var(--raio);
  background: var(--branco);
  color: var(--tinta);
  text-decoration: none;
  box-shadow: 2px 4px 12px rgb(0 0 0 / .08);
  transition: transform .4s cubic-bezier(0, 0, .5, 1), box-shadow .4s cubic-bezier(0, 0, .5, 1);
}
.cartao:hover { transform: scale(1.01); box-shadow: 2px 4px 16px rgb(0 0 0 / .16); }
.cartao:active { transform: scale(.995); }

.cartao__texto { display: block; padding: 28px 30px 0; }
.cartao__tipo {
  display: block;
  margin-bottom: 6px;
  color: var(--cinza);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.cartao__titulo {
  display: block;
  font: 600 24px/1.17 var(--display);
  letter-spacing: -.015em;
}
.cartao__linha {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.43;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.cartao__midia {
  position: relative;
  display: flex;
  flex: 1;
  align-items: flex-end;
  justify-content: center;
  min-height: 0;
  padding: 20px 30px 0;
}
.cartao__vazio {
  align-self: center;
  margin-bottom: 40px;
  color: var(--cinza-claro);
  font-size: 14px;
}

/* Book: a capa em pé, com a sombra e a borda das páginas */
.livro {
  position: relative;
  align-self: center;
  margin-bottom: 18px;
  line-height: 0;
}
.livro__capa {
  width: auto;
  height: auto;
  max-width: 300px;
  max-height: 290px;
  border-radius: 2px 5px 5px 2px;
  box-shadow: var(--sombra-peca);
  transition: transform .5s var(--curva);
}
.livro::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 12px;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(90deg, rgb(255 255 255 / .22), rgb(0 0 0 / .14) 30%, rgb(255 255 255 / 0));
  pointer-events: none;
}
.livro::after {
  content: "";
  position: absolute;
  top: 3px;
  right: -5px;
  bottom: 3px;
  z-index: -1;
  width: 6px;
  border-radius: 0 3px 3px 0;
  background: repeating-linear-gradient(90deg, #fff 0 1px, #dcdce1 1px 2px);
  box-shadow: 2px 2px 6px rgb(0 0 0 / .12);
}
.cartao:hover .livro__capa { transform: translateY(-4px); }

/* Página: o começo do site numa janela; com o mouse em cima, a página rola */
.janela {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  background: #fff;
}
.cartao .janela {
  height: 290px;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 -4px 24px rgb(0 0 0 / .08);
}
.janela__barra {
  display: flex;
  flex: none;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  background: #f2f2f4;
  border-bottom: 1px solid #e5e5ea;
}
.janela__barra i { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; }
.janela__barra i:nth-child(2) { background: #febc2e; }
.janela__barra i:nth-child(3) { background: #28c840; }
.janela__endereco {
  min-width: 34%;
  margin: 0 auto;
  padding: 1px 12px;
  overflow: hidden;
  border-radius: 5px;
  background: #e5e5ea;
  color: var(--cinza);
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  transform: translateX(-12px);
}
.janela__tela {
  position: relative;
  flex: 1;
  overflow: hidden;
  container-type: size;
}
.janela__tela img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: auto;
}
.janela__alta {
  opacity: 0;
  transition: transform 1s var(--curva), opacity .3s;
}
.janela.pronta .janela__alta { opacity: 1; }
.cartao:hover .janela.pronta .janela__alta,
.cartao:focus-visible .janela.pronta .janela__alta {
  transform: translateY(calc(-100% + 100cqh));
  transition: transform var(--tempo, 8s) cubic-bezier(.45, 0, .55, 1) .25s, opacity .3s;
}

/* Vídeo: em pé fica como um celular; deitado, como uma tela */
.tela {
  position: relative;
  overflow: hidden;
  background: #000;
  box-shadow: var(--sombra-peca);
  line-height: 0;
}
.tela video, .tela img { width: 100%; height: 100%; object-fit: cover; }
.tela--em-pe {
  align-self: center;
  height: 300px;
  aspect-ratio: var(--r, .5625);
  margin-bottom: 14px;
  border-radius: 18px;
}
.tela--deitada {
  align-self: center;
  width: 100%;
  aspect-ratio: var(--r, 1.7778);
  margin-bottom: 36px;
  border-radius: 10px;
}
.tela--link::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
  transform: translate(-40%, -50%);
  filter: drop-shadow(0 1px 6px rgb(0 0 0 / .4));
}

/* Criativos: até três peças em leque */
.leque {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 300px;
}
.leque__peca {
  position: absolute;
  bottom: 22px;
  left: 50%;
  width: auto;
  height: 250px;
  max-width: 220px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: var(--sombra-peca);
  transform: translateX(-50%);
  transition: transform .5s var(--curva);
}
.leque--2 .leque__peca:nth-child(1) { z-index: 2; transform: translateX(-80%); }
.leque--2 .leque__peca:nth-child(2) { z-index: 1; transform: translateX(-18%) scale(.9); transform-origin: 50% 100%; }
.leque--3 .leque__peca:nth-child(1) { z-index: 3; }
.leque--3 .leque__peca:nth-child(2) { z-index: 2; transform: translateX(-112%) scale(.84); transform-origin: 100% 100%; }
.leque--3 .leque__peca:nth-child(3) { z-index: 1; transform: translateX(12%) scale(.84); transform-origin: 0 100%; }
.cartao:hover .leque--3 .leque__peca:nth-child(2) { transform: translateX(-118%) scale(.84); }
.cartao:hover .leque--3 .leque__peca:nth-child(3) { transform: translateX(18%) scale(.84); }

/* Marca: a prancha ocupa o cartão até a borda */
.cartao--marca .cartao__midia { padding: 20px 0 0; }
.cartao__cheia { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Lista de todos os trabalhos e página do cliente ---------- */

.filtro { padding: 0 var(--margem) 8px; }
.grade {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 28px var(--margem) clamp(56px, 7vw, 96px);
  list-style: none;
}
.grade .cartao { width: 100%; }
.grade__vazia { padding: 0 var(--margem) 96px; color: var(--cinza); }

/* ---------- Página do trabalho ---------- */

.local {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 52px;
  border-bottom: 1px solid rgb(0 0 0 / .14);
  background: rgb(245 245 247 / .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.local__dentro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1024px;
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
}
.local__titulo {
  overflow: hidden;
  color: var(--tinta);
  font: 600 21px/1.19 var(--display);
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.local__acoes { display: flex; flex: none; align-items: center; gap: 22px; }
.local__link { color: var(--tinta); font-size: 12px; text-decoration: none; opacity: .88; }
.local__link:hover { color: var(--azul); opacity: 1; }

.trabalho__topo {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) 22px clamp(24px, 3vw, 36px);
  text-align: center;
}
.trabalho__tipo { margin-bottom: 8px; color: var(--cinza); font-size: 17px; font-weight: 600; }
.trabalho__topo h1 {
  font: 600 clamp(40px, 5.2vw, 64px)/1.05 var(--display);
  letter-spacing: -.025em;
}
.trabalho__subtitulo {
  margin-top: 10px;
  font: 600 clamp(22px, 2.4vw, 28px)/1.2 var(--display);
  letter-spacing: -.012em;
}
.trabalho__descricao {
  max-width: 36em;
  margin: 16px auto 0;
  color: var(--cinza);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.4;
}
.trabalho__acoes { margin-top: 18px; }

.palco { padding: 28px 0 clamp(48px, 6vw, 80px); }
.palco__dica {
  margin-top: 18px;
  padding: 0 22px;
  color: var(--cinza);
  font-size: 14px;
  text-align: center;
}
.visor-vazio {
  max-width: 560px;
  margin: 0 auto;
  padding: 72px 22px;
  border-radius: var(--raio);
  background: #fff;
  color: var(--cinza);
  text-align: center;
}
.visor-vazio .link-seta { display: inline-block; margin-top: 10px; }

/* Book virtual */
.book {
  display: grid;
  justify-items: center;
  gap: 26px;
  padding: 0 var(--margem);
}
.book__palco { display: grid; place-items: center; width: 100%; }
.book__paginas { display: grid; gap: 16px; max-width: 760px; list-style: none; }
.book__paginas img { display: block; width: 100%; height: auto; box-shadow: var(--sombra-peca); }

.book__livro {
  position: relative;
  width: calc(var(--pl) * 2);
  height: var(--pa);
  perspective: 3800px;
  cursor: pointer;
  touch-action: pan-y;
  transition: transform .9s var(--virar);
  -webkit-user-select: none;
  user-select: none;
}
.book--simples .book__livro { width: var(--pl); }
.book__livro:focus-visible { outline-offset: 8px; }

/* A sombra do livro na mesa, só embaixo das páginas que estão à mostra */
.book__livro::before,
.book__livro::after {
  content: "";
  position: absolute;
  top: 1%;
  bottom: 0;
  width: 50%;
  opacity: 0;
  box-shadow: 0 26px 50px rgb(0 0 0 / .22), 0 2px 6px rgb(0 0 0 / .08);
  transition: opacity .35s;
  pointer-events: none;
}
.book__livro::before { left: 0; }
.book__livro::after { right: 0; }
.book__livro.tem-esquerda::before, .book__livro.tem-direita::after { opacity: 1; }
.book--simples .book__livro::after { width: 100%; }

.folha {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--pl);
  height: 100%;
  transform-origin: 0 50%;
  transform-style: preserve-3d;
  transition: transform .9s var(--virar);
}
.book--simples .folha { left: 0; }
.folha.virada { transform: rotateY(-180deg); }
.folha__face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #fff;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.folha__face img { display: block; width: 100%; height: 100%; object-fit: cover; box-shadow: none; }
.folha__verso { transform: rotateY(180deg); }
.book--simples .folha__verso { background: #f2f2f4; }

/* Dobra perto da lombada e sombra que passa pela página enquanto ela vira */
.folha__face::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(0 0 0 / .16), rgb(0 0 0 / .04) 4%, rgb(0 0 0 / 0) 9%);
  pointer-events: none;
}
.folha__verso::after { background: linear-gradient(270deg, rgb(0 0 0 / .16), rgb(0 0 0 / .04) 4%, rgb(0 0 0 / 0) 9%); }
.book--simples .folha__face::after { background: linear-gradient(90deg, rgb(0 0 0 / .08), rgb(0 0 0 / 0) 4%); }
.folha__face::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  background: linear-gradient(90deg, rgb(0 0 0 / 0), rgb(0 0 0 / .22));
  pointer-events: none;
}
.folha.girando .folha__face::before { animation: sombra-da-folha .9s var(--virar); }
@keyframes sombra-da-folha {
  50% { opacity: 1; }
}

.book__controles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.book__contador {
  min-width: 9em;
  color: var(--cinza);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.book:fullscreen { align-content: center; background: var(--papel); }
.book:fullscreen .book__livro { cursor: pointer; }

/* Página inteira numa janela com rolagem */
.pagina {
  display: grid;
  justify-items: center;
  gap: 26px;
  padding: 0 var(--margem);
}
.janela--grande {
  width: min(100%, 1100px);
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 30px 80px rgb(0 0 0 / .18);
}
.janela--grande .janela__barra { height: 40px; gap: 8px; padding: 0 16px; }
.janela--grande .janela__barra i { width: 12px; height: 12px; }
.janela--grande .janela__endereco { min-width: 30%; padding: 3px 16px; font-size: 12px; transform: translateX(-24px); }
.janela__rolagem, .celular__rolagem {
  height: min(72vh, 820px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgb(0 0 0 / .28) transparent;
}
.janela__imagem, .celular__imagem { display: block; width: 100%; height: auto; }

.celular {
  position: relative;
  width: 300px;
  padding: 11px;
  border-radius: 52px;
  background: #1d1d1f;
  box-shadow: 0 0 0 2px #3a3a3c, 0 30px 70px rgb(0 0 0 / .26);
}
.celular::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  z-index: 2;
  width: 86px;
  height: 26px;
  border-radius: 20px;
  background: #000;
  transform: translateX(-50%);
}
.celular__rolagem { height: min(70vh, 600px); border-radius: 41px; background: #fff; scrollbar-width: none; }
.celular__rolagem::-webkit-scrollbar { display: none; }

.botao-rolar {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgb(210 210 215 / .72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: rgb(0 0 0 / .72);
  transition: background-color .2s, transform .2s;
}
.botao-rolar:hover { background: rgb(223 223 227 / .82); }
.botao-rolar:active { transform: scale(.94); }
.celular .botao-rolar { right: 24px; bottom: 26px; }
/* triângulo de play; com a página rolando, vira pausa */
.botao-rolar::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent currentColor;
}
.botao-rolar[aria-pressed="true"]::before {
  width: 12px;
  height: 15px;
  margin-left: 0;
  border: solid currentColor;
  border-width: 0 4px;
}

/* Galeria de criativos e pranchas de marca */
.galeria { display: grid; gap: 20px; }
.galeria__trilho {
  position: relative;
  display: flex;
  gap: 24px;
  padding: 10px var(--margem) 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--margem);
  list-style: none;
  scrollbar-width: none;
}
.galeria__trilho::-webkit-scrollbar { display: none; }
.galeria__item { flex: none; scroll-snap-align: start; }
.galeria__imagem {
  display: block;
  width: auto;
  height: min(70vh, 720px);
  max-width: calc(100vw - 2 * var(--margem));
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--sombra-peca);
}
.galeria--uma .galeria__trilho { justify-content: center; }
.galeria--marca .galeria__item { width: min(calc(100vw - 2 * var(--margem)), 1200px); }
.galeria--marca .galeria__imagem { width: 100%; height: auto; max-height: none; border-radius: var(--raio); box-shadow: none; }
.galeria__controles { display: flex; align-items: center; justify-content: center; gap: 20px; }
.galeria__pontos { display: flex; gap: 6px; }
.galeria__pontos button { display: grid; place-items: center; width: 20px; height: 24px; }
.galeria__pontos button::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgb(0 0 0 / .24);
  transition: background-color .3s, transform .3s;
}
.galeria__pontos button[aria-current="true"]::before { background: var(--tinta); transform: scale(1.1); }

/* Vídeo */
.video { display: grid; justify-items: center; padding: 0 var(--margem); }
.video video {
  display: block;
  width: auto;
  max-width: min(100%, 1200px);
  max-height: min(80vh, 860px);
  border-radius: var(--raio);
  background: #000;
}
.video--embutido { width: min(100%, calc(1100px + 2 * var(--margem))); }
.video--embutido iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--raio);
  background: #000;
}

/* ---------- Sobre e contato ---------- */

.sobre {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(72px, 10vw, 128px) var(--margem);
  background: #fff;
}
.sobre--sem-retrato { grid-template-columns: minmax(0, 1fr); }
.sobre__frase {
  max-width: 21em;
  font: 600 clamp(28px, 3.6vw, 44px)/1.12 var(--display);
  letter-spacing: -.02em;
}
.sobre__frase .cinza { color: var(--cinza-claro); }
.sobre__clientes { max-width: 40em; margin-top: 28px; color: var(--cinza); font-size: 15px; line-height: 1.55; }
.sobre__clientes strong { color: var(--tinta); font-weight: 600; }
.sobre__retrato img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--raio);
}

.contato {
  padding: clamp(88px, 12vw, 152px) 22px;
  background: #000;
  color: #f5f5f7;
  text-align: center;
}
.contato h2 {
  font: 600 clamp(40px, 6vw, 72px)/1.05 var(--display);
  letter-spacing: -.025em;
}
.contato__sub { margin-top: 14px; color: #a1a1a6; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.33; }
.contato .link-seta { color: var(--azul-no-escuro); }
.contato__direto {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin-top: 40px;
  font-size: 14px;
}
.contato__direto a { color: #a1a1a6; text-decoration: none; }
.contato__direto a:hover { color: #f5f5f7; text-decoration: underline; }

/* Formulário no escuro, com o rótulo que sobe quando o campo é preenchido */
.formulario {
  position: relative;
  width: min(100%, 560px);
  margin: 40px auto 0;
  text-align: left;
}
.formulario__campos { display: grid; gap: 14px; }
.formulario__isca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.campo { position: relative; }
.campo input,
.campo textarea {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 26px 16px 8px;
  border: 1px solid #424245;
  border-radius: 12px;
  background: #1d1d1f;
  color: #f5f5f7;
  font: 400 17px/1.29 var(--texto);
  letter-spacing: -.022em;
  transition: border-color .2s, box-shadow .2s;
}
.campo textarea { min-height: 136px; resize: vertical; }
.campo label {
  position: absolute;
  top: 17px;
  left: 17px;
  color: #86868b;
  font-size: 17px;
  line-height: 1.29;
  pointer-events: none;
  transform-origin: 0 0;
  transition: transform .2s var(--curva), color .2s;
}
.campo input:focus,
.campo textarea:focus { outline: none; border-color: var(--azul-botao); box-shadow: 0 0 0 3px rgb(0 113 227 / .4); }
.campo input:focus + label,
.campo input:not(:placeholder-shown) + label,
.campo textarea:focus + label,
.campo textarea:not(:placeholder-shown) + label { transform: translateY(-9px) scale(.71); }
.campo--erro input,
.campo--erro textarea { border-color: #ff6961; }
.campo__erro { margin-top: 6px; color: #ff8a84; font-size: 13px; }
.formulario__aviso { color: #ff8a84; font-size: 14px; }
.formulario__acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }
.formulario__acoes .botao[aria-busy="true"] { opacity: .6; pointer-events: none; }
.contato .botao--contorno { border-color: #f5f5f7; background: transparent; color: #f5f5f7; }
.contato .botao--contorno:hover { background: #f5f5f7; color: var(--tinta); }
.formulario__privacidade { color: #86868b; font-size: 12px; }
.formulario__ok {
  display: none;
  padding: 36px 0 8px;
  color: #f5f5f7;
  font: 600 clamp(24px, 2.6vw, 32px)/1.2 var(--display);
  letter-spacing: -.015em;
  text-align: center;
}
.cinza-escuro { color: #86868b; }
.formulario--enviado .formulario__campos { display: none; }
.formulario--enviado .formulario__ok { display: block; }

/* ---------- Rodapé ---------- */

.rodape { padding: 0 var(--margem); background: var(--papel); color: var(--cinza); font-size: 12px; line-height: 1.33; letter-spacing: -.01em; }
.rodape__dentro {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 18px 0 22px;
  border-top: 1px solid var(--fio);
}
.rodape__links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.rodape a { color: rgb(0 0 0 / .72); text-decoration: none; }
.rodape a:hover { color: var(--tinta); text-decoration: underline; }

/* ---------- Páginas de texto ---------- */

.texto { padding: clamp(48px, 7vw, 88px) var(--margem) 96px; }
.texto__artigo { max-width: 692px; margin: 0 auto; }
.texto--centro { text-align: center; }
.texto__titulo { margin-bottom: 24px; font: 600 clamp(32px, 4vw, 48px)/1.08 var(--display); letter-spacing: -.02em; }
.texto__titulo a { color: inherit; text-decoration: none; }
.texto__corpo > * + * { margin-top: 1em; }
.texto p + p { margin-top: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Tablet e celular ---------- */

@media (max-width: 1068px) {
  .grade { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 833px) {
  .nav__abrir {
    display: grid;
    gap: 6px;
    place-content: center;
    width: 44px;
    height: 44px;
    margin-right: -12px;
  }
  .nav__abrir span {
    display: block;
    width: 17px;
    height: 1.5px;
    border-radius: 1px;
    background: var(--tinta);
    transition: transform .3s var(--curva);
  }
  .nav__abrir[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav__abrir[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav__menu {
    position: fixed;
    inset: 48px 0 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 20px 48px 48px;
    overflow-y: auto;
    background: var(--papel);
  }
  .menu-aberto .nav__menu { display: flex; }
  .menu-aberto body { overflow: hidden; }
  .nav__menu a { color: var(--tinta); font: 600 28px/1.5 var(--display); letter-spacing: -.015em; }

  .abertura { flex-direction: column; align-items: flex-start; }
  .sobre { grid-template-columns: minmax(0, 1fr); }
  .sobre__retrato { max-width: 420px; }
  .local__link { display: none; }
}

@media (max-width: 734px) {
  body { font-size: 16px; }
  .cartao { width: min(82vw, 340px); height: 440px; }
  .cartao__texto { padding: 24px 24px 0; }
  .cartao__titulo { font-size: 21px; }
  .cartao__midia { padding: 16px 24px 0; }
  .livro__capa { max-height: 250px; max-width: 240px; }
  .cartao .janela { height: 250px; }
  .tela--em-pe { height: 260px; }
  .leque__peca { height: 210px; max-width: 180px; }
  .prateleira__lista { gap: 16px; }
  .prateleira__setas { display: none !important; }
  .grade { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .grade .cartao { width: 100%; max-width: 420px; }
  .local__titulo { font-size: 17px; }
  .janela--grande .janela__endereco { display: none; }
  .janela__rolagem { height: 66vh; }
  .celular { width: min(86vw, 300px); }
  .galeria__trilho { gap: 16px; }
  .galeria__imagem { height: auto; max-height: 64vh; width: calc(100vw - 2 * var(--margem) - 8px); }
  .galeria--marca .galeria__imagem { width: 100%; }
}
