:root {
  --bg: #0e0a0f;
  --fg: #f2edf3;
  --accent: #f46bff;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --muted: #8f8a93;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 1.6vw, 24px);
  --sq: min(30vh, 64vw); /* lado do quadrado da abertura */
  --cy: 47%; /* centro do quadrado, um pouco acima do meio */
  --shot-ratio: 16 / 10; /* proporção dos prints dos sites (SHOT_RATIO em js/work.js) */
  --tail: 90vh; /* fim da seção de projetos coberto pelas faixas da seção de serviços (TAIL em js/projects.js) */
  --hold: 30vh; /* a trilha de projetos parada antes das faixas de serviços (HOLD em js/projects.js) */
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--bg);
  font-family: var(--font-mono);
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Lenis ---------- */

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* ---------- Barra de rolagem ---------- */

/* A nativa ocupa espaço: some enquanto a abertura trava a página e, quando volta, empurra o
   site para a esquerda. No lugar dela, uma barra por cima do conteúdo (js/scrollbar.js). */
html {
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

/* "difference": o polegar claro escurece sozinho sobre seções claras */
.scrollbar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  width: 14px;
  mix-blend-mode: difference;
  opacity: 0;
  visibility: hidden;
}

/* entra junto com a hero subindo e fica */
.is-revealed .scrollbar,
.intro-done .scrollbar {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease;
}

.scrollbar.is-off {
  display: none;
}

/* no toque ela só mostra onde a página está: a faixa fica na borda direita, por cima do que
   aparece no canto (o próximo projeto), e um toque ali pularia a página para outra altura */
@media (hover: none) {
  .scrollbar {
    pointer-events: none;
  }
}

.scrollbar__thumb {
  position: absolute;
  top: 0;
  right: 4px;
  width: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.4);
  transition:
    width 0.25s var(--ease-out),
    background-color 0.25s ease;
}

.scrollbar:hover .scrollbar__thumb,
.scrollbar.is-dragging .scrollbar__thumb {
  width: 6px;
  background: rgba(255, 255, 255, 0.7);
}

/* ---------- Cabeçalho ---------- */

/* barra escura flutuando no topo, por cima de todas as seções (o card que voa da seção "Sobre"
   passa por cima dela); entra junto com a hero subindo, como a barra de rolagem */
.header {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 30;
  width: min(100% - 2 * var(--gutter), 1100px);
  font-family: var(--font-sans);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -16px);
}

.is-revealed .header,
.intro-done .header {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition:
    opacity 0.6s ease,
    transform 0.9s var(--ease-out);
}

/* três colunas: as das pontas dividem a sobra, então os links ficam no meio da barra */
.header__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  height: 58px;
  padding: 0 9px 0 22px;
  border: 1px solid rgba(242, 237, 243, 0.1);
  border-radius: 14px;
  background: rgba(14, 10, 15, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--fg);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  color: inherit;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-decoration: none;
}

/* a logo é rosa no arquivo: aqui fica branca */
.header__logo img {
  display: block;
  width: 22px;
  height: auto;
  filter: brightness(0) invert(1);
}

.header__nav {
  display: flex;
  gap: 30px;
}

.header__nav a {
  color: rgba(242, 237, 243, 0.55);
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: color 0.25s ease;
}

.header__nav a:hover,
.header__nav a:focus-visible,
.header__nav a[aria-current] {
  color: var(--fg);
}

.header__cta {
  justify-self: end;
  padding: 11px 20px;
  border-radius: 99px;
  background: var(--fg);
  color: var(--bg);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background-color 0.25s ease;
}

.header__cta:hover,
.header__cta:focus-visible {
  background: var(--accent);
}

/* só no celular */
.header__menu {
  display: none;
}

@media (max-width: 900px) {
  .header__bar {
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    padding-left: 16px;
  }

  .header__cta {
    padding: 10px 16px;
    font-size: 13px;
  }

  /* dois traços que viram um X */
  .header__menu {
    position: relative;
    display: block;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 99px;
    background: rgba(242, 237, 243, 0.08);
  }

  .header__menu i {
    position: absolute;
    right: 13px;
    left: 13px;
    height: 1.5px;
    background: var(--fg);
    transition: transform 0.35s var(--ease-out);
  }

  .header__menu i:first-child {
    top: 15.5px;
  }

  .header__menu i:last-child {
    top: 22.5px;
  }

  .is-open .header__menu i:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .is-open .header__menu i:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  /* os links abrem numa caixa por baixo da barra (sem desfoque: dentro da barra, que já
     desfoca, ele não enxergaria a página) */
  .header__nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    border: 1px solid rgba(242, 237, 243, 0.1);
    border-radius: 14px;
    background: rgba(14, 10, 15, 0.96);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 0.25s ease,
      transform 0.35s var(--ease-out),
      visibility 0s 0.35s;
  }

  .is-open .header__nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      opacity 0.25s ease,
      transform 0.35s var(--ease-out);
  }

  .header__nav a {
    padding: 14px 12px;
    font-size: 17px;
  }
}

@media (max-width: 380px) {
  .header__bar {
    grid-template-columns: 1fr auto;
  }

  .header__cta {
    display: none;
  }
}

/* ---------- WhatsApp ---------- */

/* aparece depois da hero e, no fim da página, o JS sobe ele (translate) acima da última linha
   do rodapé */
.whats {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 10px 30px rgba(14, 10, 15, 0.3);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.6);
  transition:
    opacity 0.3s ease,
    transform 0.45s var(--ease-out),
    visibility 0s 0.45s;
}

.whats.is-shown {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition:
    opacity 0.3s ease,
    transform 0.45s var(--ease-out);
}

.whats.is-shown:hover,
.whats.is-shown:focus-visible {
  transform: scale(1.08);
}

.whats svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

@media (max-width: 720px) {
  .whats {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }

  .whats svg {
    width: 26px;
    height: 26px;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--bg);
  color: #fff;
  font-family: var(--font-sans);
}

/* painel de sites em perspectiva: inclinado para trás e girado no próprio plano */
.hero__bg {
  position: absolute;
  inset: 0;
  perspective: 1100px;
  perspective-origin: 50% 10%;
}

.hero__plane {
  /* cards grandes: com poucos projetos, cabem menos na tela e cada site repete menos */
  --card: 46vw;
  --gap: 3vw;
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(6, var(--card));
  gap: var(--gap);
  transform: translate(-50%, -50%) rotateX(46deg) rotateZ(-12deg);
}

.hero__plane img {
  display: block;
  width: 100%;
  aspect-ratio: var(--shot-ratio);
  border-radius: 0.5vw;
  object-fit: cover;
  object-position: 50% 0;
  user-select: none;
}

/* escurece a hero enquanto a próxima seção sobe por cima (opacidade vem do JS) */
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
}

/* profundidade de campo: nítido numa faixa perto do centro, desfocado nas bordas */
.hero__blur {
  position: absolute;
  inset: 0;
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  -webkit-mask-image: radial-gradient(ellipse 42% 34% at 56% 30%, transparent 35%, #000 100%);
  mask-image: radial-gradient(ellipse 42% 34% at 56% 30%, transparent 35%, #000 100%);
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 10, 15, 0.6) 0%, rgba(14, 10, 15, 0.38) 28%, rgba(14, 10, 15, 0.64) 58%, var(--bg) 84%),
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(14, 10, 15, 0.2), rgba(14, 10, 15, 0.55));
}

.hero__content {
  position: absolute;
  top: 48.5%;
  left: 50%;
  transform: translate(-50%, calc(-50% + var(--lift, 0px)));
}

.hero__title {
  display: flex;
  flex-direction: column;
  font-size: clamp(34px, 5.5vw, 84px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero__line {
  display: flex;
  gap: 0.26em;
  white-space: nowrap;
}

/* rodapé: contato à esquerda, texto no centro, "role para ver mais" à direita */
.hero__foot {
  position: absolute;
  right: 40px;
  bottom: 36px;
  left: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.hero__contact {
  position: absolute;
  bottom: 0;
  left: 0;
}

.hero__contact span {
  display: block;
}

.hero__contact a {
  color: #fff;
  text-decoration: none;
}

.hero__about {
  text-align: center;
}

.hero__about b,
.hero__scroll b {
  color: #fff;
  font-weight: 500;
}

.hero__scroll {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  color: var(--muted);
  text-decoration: none;
}

.hero__scroll span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* trilho com um traço descendo */
.hero__scroll i {
  position: relative;
  width: 1px;
  height: 92px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
}

.hero__scroll i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  animation: hero-scroll 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes hero-scroll {
  0% {
    transform: translateY(-100%);
  }
  50% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(100%);
  }
}

@media (max-width: 720px) {
  .hero__plane {
    --card: 80vw;
    --gap: 5vw;
  }

  .hero__title {
    font-size: 8.4vw;
  }

  .hero__foot {
    right: 20px;
    bottom: 24px;
    left: 20px;
  }

  /* sem espaço para os três: fica o contato e o "role para ver mais" */
  .hero__about {
    display: none;
  }
}

/* ---------- Projetos ---------- */

/* Presa na tela enquanto a trilha anda para o lado. A altura vem do JS (js/projects.js): a
   rolagem anda o mesmo tanto que a trilha, depois a trilha fica parada (--hold) e o fim (--tail)
   fica por baixo das faixas da seção de serviços, que começa sobreposta a ela. */
.projects {
  position: relative;
  z-index: 2;
  height: calc(300vh + var(--hold) + var(--tail));
  margin-top: -28px;
  overflow: clip;
  border-radius: 28px 28px 0 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
}

/* o título parado no topo (abaixo do menu) e a trilha no resto da tela */
.projects__sticky {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100svh;
  /* clip, não hidden: hidden ainda rola por código, e o foco num card (ao fechar o modal) podia
     deslocar a faixa para o lado no celular */
  overflow: hidden;
  overflow: clip;
  background: radial-gradient(ellipse 80% 70% at 50% 18%, #1b1520 0%, var(--bg) 72%);
}

.projects__title {
  flex: none;
  padding: clamp(92px, 12.5vh, 132px) var(--gutter) 0;
  font-size: clamp(48px, min(8.4vw, 15vh), 156px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.055em;
  text-align: center;
  white-space: nowrap;
}

/* a posição vem do JS */
.projects__track {
  display: flex;
  flex: 1;
  min-height: 0;
  width: max-content;
  will-change: transform;
}

/* as colunas da trilha */
.projects__panel,
.projects__more {
  position: relative;
  display: flex;
  flex: none;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

/* link em letra de máquina, sublinhado, com a seta que anda no hover */
.pcard__link {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-bottom: 8px;
  border-bottom: 1px solid currentColor;
  color: inherit;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.pcard__link i,
.projects__more-link i {
  font-style: normal;
  transition: transform 0.4s var(--ease-out);
}

.pcard:hover .pcard__link i,
.projects__more-link:hover i {
  transform: translateX(6px);
}

/* metade da tela: no começo aparecem os dois primeiros projetos, um de cada lado do meio */
.projects__panel {
  container-type: size;
  width: 50vw;
  padding: 0 clamp(28px, 4vw, 80px);
}

/* card de projeto: o print, o nome e a linha sobre ele (a altura vem do JS: sobe ao chegar no
   meio). Fica com a largura da coluna, ou menor quando a tela é baixa e o print mais o texto
   (uns 220px com o respiro) não cabem na altura que sobra abaixo do título. */
.pcard {
  display: block;
  width: min(100%, (100cqh - 220px) * 1.6);
  color: inherit;
  text-decoration: none;
  will-change: transform;
}

.pcard__shot {
  aspect-ratio: var(--shot-ratio);
  overflow: hidden;
  border-radius: 12px;
  background: #1b1520;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.pcard__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 1.2s var(--ease-out);
}

.pcard:hover .pcard__shot img {
  transform: scale(1.04);
}

.pcard__info {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
}

.pcard__name {
  font-size: clamp(22px, 1.7vw, 32px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.pcard__about {
  max-width: 26em;
  margin-top: 10px;
  color: rgba(242, 237, 243, 0.6);
  font-size: 15px;
  line-height: 1.4;
}

.pcard__link {
  flex: none;
}

/* depois dos projetos: o convite para ver mais */
.projects__more {
  align-items: center;
  gap: 20px;
  width: 40vw;
  text-align: center;
}

.projects__more p {
  color: rgba(242, 237, 243, 0.6);
  font-size: 15px;
}

.projects__more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  color: inherit;
  font-size: clamp(32px, 3.2vw, 60px);
  font-weight: 500;
  letter-spacing: -0.045em;
  text-decoration: none;
}

/* ---------- Modal de projeto ---------- */

/* Por cima da página (abaixo só do cursor). Fechado ele fica com hidden; aberto, o fundo escurece
   e o painel sobe (js/project-modal.js). O painel tem o X fixo e o conteúdo rola por dentro
   (.pmodal__scroll). No celular vira uma gaveta presa embaixo. */
.pmodal {
  --line: rgba(242, 237, 243, 0.1);
  --card: #1b1520;
  --soft: rgba(242, 237, 243, 0.62);
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 40px);
  color: var(--fg);
  font-family: var(--font-sans);
  pointer-events: none;
}

.pmodal[hidden] {
  display: none;
}

.pmodal.is-open {
  pointer-events: auto;
}

.pmodal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 10, 15, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.45s ease;
  /* no toque a página por trás não fica travada (js/project-modal.js): arrastar o dedo no fundo
     ou no X não pode rolar a página */
  touch-action: none;
}

.pmodal__close {
  touch-action: none;
}

.pmodal.is-open .pmodal__backdrop {
  opacity: 1;
}

/* sem case: largura até onde o print (16:10) mais o texto cabem na altura da tela.
   com case: largo e alto, o conteúdo rola por dentro */
.pmodal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 1080px, (100svh - 280px) * 1.6);
  min-width: min(100%, 560px);
  max-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #151017;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(48px) scale(0.97);
  transition:
    opacity 0.35s ease,
    transform 0.7s var(--ease-out);
}

.pmodal.has-case .pmodal__panel {
  width: min(100%, 1120px);
  height: 100%;
}

.pmodal.is-open .pmodal__panel {
  opacity: 1;
  transform: none;
}

.pmodal__scroll {
  position: relative; /* as seções medem a posição (offsetTop) a partir daqui */
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(242, 237, 243, 0.2) transparent;
}

.pmodal__shot {
  aspect-ratio: var(--shot-ratio);
  overflow: hidden;
  background: var(--card);
}

.pmodal__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.pmodal__body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(22px, 2.6vw, 36px);
}

.pmodal__count {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.pmodal__name {
  margin-top: 12px;
  font-size: clamp(28px, 2.8vw, 44px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.pmodal__about {
  max-width: 34em;
  margin-top: 12px;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.45;
}

.pmodal__actions {
  display: flex;
  flex: none;
  gap: 10px;
}

.pmodal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(242, 237, 243, 0.18);
  border-radius: 99px;
  color: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.3s,
    border-color 0.3s;
}

.pmodal__btn:hover {
  border-color: rgba(242, 237, 243, 0.45);
}

.pmodal__btn--primary {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}

.pmodal__btn--primary:hover {
  border-color: var(--accent);
  background: var(--accent);
}

.pmodal__btn i {
  font-style: normal;
  transition: transform 0.4s var(--ease-out);
}

.pmodal__btn:hover i {
  transform: translateX(4px);
}

/* X redondo, preso no canto do painel (fora da rolagem) */
/* dentro da área que rola (js/project-modal.js): fica no canto de cima e sobe com o conteúdo */
.pmodal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(14, 10, 15, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background-color 0.3s;
}

.pmodal__close::before,
.pmodal__close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--fg);
  transform: translate(-50%, -50%) rotate(45deg);
}

.pmodal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.pmodal__close:hover {
  background: rgba(14, 10, 15, 0.9);
}

.pmodal__close:focus-visible,
.pmodal__btn:focus-visible,
.pmodal button:focus-visible,
.case__nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Case (processo do projeto, dentro do modal) ---------- */

/* tags em texto mono, separadas por um fio vertical (sem cápsula) */
.case__tags {
  display: flex;
  flex-wrap: wrap;
  row-gap: 8px;
  margin-top: 20px;
}

.case__tags span {
  padding: 0 14px;
  border-left: 1px solid rgba(242, 237, 243, 0.2);
  color: var(--soft);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case__tags span:first-child {
  padding-left: 0;
  border-left: 0;
}

/* menu das seções, preso no topo da rolagem; o link da seção na tela fica aceso */
.case__nav {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  gap: 4px;
  padding: 10px clamp(22px, 2.6vw, 36px);
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(21, 16, 23, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  scrollbar-width: none;
}

.case__nav::-webkit-scrollbar {
  display: none;
}

.case__nav a {
  flex: none;
  padding: 8px 14px;
  border-radius: 99px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.case__nav a:hover,
.case__nav a.is-active {
  background: rgba(242, 237, 243, 0.08);
  color: var(--fg);
}

.case__sec {
  padding: clamp(40px, 5vw, 64px) clamp(22px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.case__head {
  margin-bottom: 32px;
}

.case__label,
.case__spec,
.case__out,
.case__swatch code,
.case__comps code,
.case__ratio-legend {
  font-family: var(--font-mono);
}

.case__title {
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.case__lead {
  max-width: 40em;
  margin-top: 10px;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.6;
}

.case__label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case__card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.case__card h4 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.case__card p {
  color: var(--soft);
  font-size: 15px;
  line-height: 1.6;
}

.case__card .case__label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
}

.case__card .case__label + p {
  margin-top: 10px;
}

/* visão geral */
.case__facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
}

.case__facts div {
  padding: 20px;
  background: var(--card);
}

.case__facts dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case__facts dd {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.case__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.case__sec[data-case-sec='tipografia'] .case__pair {
  margin-top: 0;
}

/* processo */
.case__steps {
  list-style: none;
}

.case__step {
  display: grid;
  grid-template-columns: 48px 200px 1fr;
  gap: 20px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.case__step:last-child {
  border-bottom: 1px solid var(--line);
}

.case__step-n {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 12px;
}

.case__step-t {
  padding-top: 7px;
  font-size: 16px;
  font-weight: 500;
}

.case__step-d {
  padding-top: 7px;
  color: var(--soft);
  font-size: 14.5px;
  line-height: 1.6;
}

.case__out {
  display: table;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(242, 237, 243, 0.06);
  color: var(--muted);
  font-size: 11px;
}

/* paleta */
.case__palette {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.case__swatch {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out);
}

.case__swatch:hover {
  transform: translateY(-3px);
}

.case__swatch-c {
  position: relative;
  display: block;
  height: 120px;
}

.case__swatch-c i {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  font-family: var(--font-mono);
  font-size: 10px;
  font-style: normal;
  opacity: 0;
  transition: opacity 0.2s;
}

.case__swatch.is-copied .case__swatch-c i {
  opacity: 1;
}

.case__swatch-i {
  display: block;
  padding: 12px;
}

.case__swatch b {
  display: block;
  font-size: 13px;
  font-weight: 500;
}

.case__swatch code {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11.5px;
}

.case__swatch small {
  display: block;
  margin-top: 8px;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.4;
}

.case__ratio {
  display: flex;
  height: 14px;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 99px;
}

.case__ratio-legend {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.case__note {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--fg);
  border-radius: 10px;
  background: var(--card);
  color: var(--soft);
  font-size: 14px;
  line-height: 1.6;
}

/* tipografia: as amostras usam as fontes do próprio projeto */
.case__font {
  overflow: hidden;
}

.case__font .case__aa {
  margin: 18px 0 10px;
  color: var(--fg);
  font-size: 110px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.case__font h4 {
  font-size: 20px;
}

.case__font p:not(.case__label):not(.case__aa) {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
}

.case__font .case__chars {
  margin-top: 16px;
  color: var(--soft);
  font-size: 18px !important;
  letter-spacing: 0.02em;
  word-break: break-all;
}

.case__scale {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.case__scale-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
}

.case__scale-row:first-child {
  border-top: 0;
}

.case__spec {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.case__sample {
  overflow-wrap: anywhere;
}

/* componentes */
.case__stage {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 44px 32px;
  border-radius: 14px;
}

.case__comps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.case__comps .case__card {
  padding: 16px;
}

.case__comps h4 {
  margin-bottom: 6px;
  font-size: 13.5px;
}

.case__comps code {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

/* anatomia: pontos numerados sobre o print, ligados à lista */
.case__anat {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.case__anat img {
  display: block;
  width: 100%;
}

.case__hs {
  position: absolute;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transform: translate(-50%, -50%);
  animation: case-pulse 2.4s infinite;
}

.case__hs.is-on {
  background: var(--accent);
  animation: none;
}

@keyframes case-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(242, 237, 243, 0.3);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(242, 237, 243, 0);
  }
}

.case__hs-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.case__hs-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  transition: border-color 0.2s;
}

.case__hs-item.is-on {
  border-color: var(--accent);
}

.case__hs-item i {
  display: grid;
  flex: none;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(242, 237, 243, 0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  font-style: normal;
}

.case__hs-item h4 {
  font-size: 13.5px;
  font-weight: 500;
}

.case__hs-item p {
  margin-top: 3px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.5;
}

/* entrega */
.case__deliver {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.case__deliver strong {
  display: block;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.case__deliver p {
  margin-top: 6px;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

.case__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(22px, 4vw, 48px);
}

.case__foot p {
  color: var(--soft);
  font-size: 15px;
}

@media (max-width: 900px) {
  .case__facts {
    grid-template-columns: 1fr 1fr;
  }

  .case__pair {
    grid-template-columns: 1fr;
  }

  .case__palette {
    grid-template-columns: repeat(3, 1fr);
  }

  .case__step {
    grid-template-columns: 40px 1fr;
  }

  .case__step-d {
    grid-column: 2;
    padding-top: 0;
  }

  .case__comps,
  .case__deliver {
    grid-template-columns: 1fr 1fr;
  }

  .case__scale-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 720px) {
  .pmodal {
    align-items: end;
    padding: 0;
  }

  /* tela cheia: sobe de baixo e ocupa a tela toda */
  .pmodal__panel,
  .pmodal.has-case .pmodal__panel {
    width: 100%;
    min-width: 0;
    height: 100%;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .pmodal__panel {
    opacity: 1;
    transform: translateY(100%);
    transition: transform 0.55s var(--ease-out);
  }

  .pmodal__body {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 22px 20px 24px;
  }

  .pmodal__actions {
    flex-direction: column-reverse;
  }

  /* preso na tela: não sai do canto enquanto o case rola (na entrada ele sobe junto com o painel,
     que está com transform; aberto, o painel fica sem transform e o X fica preso na tela) */
  .pmodal__close {
    top: calc(10px + env(safe-area-inset-top));
    right: 10px;
    width: 40px;
    height: 40px;
  }

  .case__nav {
    padding: 10px 14px;
  }

  .case__sec {
    padding: 40px 20px;
  }

  .case__palette {
    grid-template-columns: 1fr 1fr;
  }

  .case__font .case__aa {
    font-size: 80px;
  }

  .case__comps,
  .case__deliver {
    grid-template-columns: 1fr 1fr;
  }

  .case__stage {
    padding: 32px 16px;
  }

  .case__hs {
    width: 22px;
    height: 22px;
    font-size: 10px;
  }

  .case__foot {
    padding: 24px 20px calc(28px + env(safe-area-inset-bottom));
  }

  .case__foot .pmodal__btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pmodal__backdrop,
  .pmodal__panel {
    transition: none;
  }

  .case__hs {
    animation: none;
  }
}

/* ---------- Serviços ---------- */

/* Começa sobreposta ao fim da seção de projetos (uma tela mais o trecho --tail, que ela tem a
   mais no fim): as duas ficam presas na tela ao mesmo tempo e as faixas enchem por cima da
   trilha de projetos. Transparente, para os projetos aparecerem por baixo até as faixas cobrirem tudo. */
.facts {
  --ink: 42, 35, 46;
  position: relative;
  z-index: 3;
  height: 295vh;
  margin-top: calc(-100vh - var(--tail));
  font-family: var(--font-sans);
  pointer-events: none;
}

/* no celular a tela cresce quando a barra do navegador some: as faixas cobrem a altura maior
   (lvh), senão sobra uma tira embaixo mostrando a seção escura de projetos rolando por trás.
   O conteúdo (.facts__light) fica na altura que está sempre visível (svh). */
.facts__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
}

.facts__cards {
  pointer-events: auto;
}

/* faixas que enchem de claro (a altura de cada uma vem do JS) */
.facts__blinds {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.facts__blinds i {
  position: absolute;
  right: 0;
  left: 0;
  height: calc(10% + 1px);
  background: var(--fg);
  transform: scaleY(0);
  transform-origin: 50% 100%;
}

.facts__light {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vh, 56px);
  padding: 56px 40px 32px;
  color: rgb(var(--ink));
  visibility: hidden;
}

.facts__head {
  text-align: center;
  will-change: transform, opacity;
}

.facts__title {
  font-size: clamp(56px, 7.2vw, 116px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.055em;
}

.facts__sub {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: rgba(var(--ink), 0.75);
}

/* altura total da tela menos título, respiro e margens: a grade fica larga até onde as duas
   fileiras de blocos quase quadrados ainda cabem na altura */
.facts__cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  width: min(100%, 1340px, (100vh - 320px) * 2.4);
  width: min(100%, 1340px, (100svh - 320px) * 2.4);
  list-style: none;
}

/* bloco de serviço: ícone e nome no meio, só com o contorno */
.fcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  aspect-ratio: 1 / 0.98;
  padding: 16px;
  border: 1px solid rgba(var(--ink), 0.14);
  border-radius: 12px;
  text-align: center;
  transform-origin: 50% 100%;
  transition:
    border-color 0.3s,
    background-color 0.3s;
  will-change: transform, opacity;
}

.fcard:hover {
  border-color: rgba(var(--ink), 0.3);
  background: #fbfafc;
}

.fcard__icon {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: rgb(var(--ink));
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s;
}

.fcard:hover .fcard__icon {
  stroke: #b84dff;
}

.fcard__label {
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: rgba(var(--ink), 0.62);
}

@media (max-width: 720px) {
  .facts {
    height: 280vh;
  }

  .facts__light {
    gap: 24px;
    padding: 64px 20px 20px;
  }

  .facts__title {
    font-size: 15vw;
  }

  .facts__sub {
    margin-top: 10px;
    font-size: 14px;
  }

  .facts__cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
  }

  /* duas colunas de cinco blocos baixos, que dividem a altura da tela */
  .fcard {
    gap: 8px;
    aspect-ratio: auto;
    height: clamp(72px, 11svh, 120px);
    padding: 8px;
    border-radius: 10px;
  }

  .fcard__icon {
    width: 22px;
    height: 22px;
  }

  .fcard__label {
    font-size: 12.5px;
    line-height: 1.25;
  }
}

/* ---------- Perguntas frequentes ---------- */

/* mesma largura dos cards de serviços (até 1340px, centralizado) */
.faq {
  --ink: 20, 16, 22;
  position: relative;
  z-index: 2;
  padding: clamp(120px, 18vh, 200px) max(40px, calc((100% - 1340px) / 2)) clamp(130px, 20vh, 220px);
  background: var(--fg);
  color: rgb(var(--ink));
  font-family: var(--font-sans);
}

.faq__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(56px, 10vh, 96px);
  padding: 0 8px;
}

.faq__title {
  font-size: clamp(44px, 5.4vw, 86px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.faq__ask {
  flex: none;
  padding: 12px 22px;
  border: 1px solid rgba(var(--ink), 0.14);
  border-radius: 99px;
  color: inherit;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.faq__ask:hover,
.faq__ask:focus-visible {
  background: rgb(var(--ink));
  color: var(--fg);
}

/* duas colunas independentes: abrir uma pergunta não empurra a outra coluna */
.faq__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.faq__col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
}

.faq__item {
  border-radius: 22px;
  background: #fff;
}

.faq__item button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 32px;
  border: 0;
  border-radius: 22px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
}

.faq__item button:focus-visible {
  outline: 2px solid rgb(var(--ink));
  outline-offset: -2px;
}

/* "+" que gira até virar "×" quando a resposta abre */
.faq__icon {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  transition: transform 0.5s var(--ease-out);
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  background: currentColor;
}

.faq__icon::before {
  top: 7.25px;
  left: 0;
  width: 100%;
  height: 1.5px;
}

.faq__icon::after {
  top: 0;
  left: 7.25px;
  width: 1.5px;
  height: 100%;
}

.faq__item.is-open .faq__icon {
  transform: rotate(45deg);
}

/* a resposta abre deslizando: a linha da grade vai de 0 à altura do texto */
.faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease-out);
}

.faq__answer > div {
  overflow: hidden;
}

.faq__answer p {
  max-width: 40em;
  padding: 0 32px 32px;
  color: rgba(var(--ink), 0.6);
  font-size: 16px;
  line-height: 1.55;
}

.faq__item.is-open .faq__answer {
  grid-template-rows: 1fr;
}

/* entrada em sequência (o atraso --d vem do JS) */
[data-faq-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.9s var(--ease-out) var(--d, 0s),
    transform 1.1s var(--ease-out) var(--d, 0s);
}

[data-faq-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* o botão também troca de cor no hover */
.faq__ask[data-faq-reveal] {
  transition:
    background-color 0.35s ease,
    color 0.35s ease,
    opacity 0.9s var(--ease-out) var(--d, 0s),
    transform 1.1s var(--ease-out) var(--d, 0s);
}

@media (max-width: 720px) {
  .faq {
    padding: 80px 16px 96px;
  }

  .faq__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 0 4px;
  }

  .faq__title {
    font-size: 11vw;
  }

  .faq__grid,
  .faq__col {
    gap: 12px;
  }

  .faq__grid {
    grid-template-columns: 1fr;
  }

  .faq__item,
  .faq__item button {
    border-radius: 18px;
  }

  .faq__item button {
    padding: 24px 22px;
    font-size: 16px;
  }

  .faq__answer p {
    padding: 0 22px 24px;
    font-size: 15px;
  }
}

@media (max-width: 720px) {
  .projects {
    margin-top: -20px;
    border-radius: 20px 20px 0 0;
  }

  .projects__title {
    font-size: 11vw;
  }

  /* arrastar para o lado move a trilha (js/projects.js); na vertical o navegador rola a página */
  .projects__track {
    touch-action: pan-y;
  }

  /* tela em pé: sobra muita altura, o card fica logo abaixo do título em vez de no meio */
  .projects__panel {
    justify-content: flex-start;
    width: 88vw;
    padding: clamp(36px, 7vh, 64px) 20px 0;
  }

  .pcard__info {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .projects__more {
    width: 80vw;
  }

  .projects__more-link {
    font-size: 9vw;
  }
}

/* ---------- Footer ---------- */

.footer {
  --ink: 20, 16, 22;
  position: relative;
  z-index: 2;
  background: var(--bg);
  color: #f2edf3;
  font-family: var(--font-sans);
}

/* a chamada fica presa no topo enquanto o rodapé sobe por cima dela */
.cta {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vh, 52px);
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background:
    linear-gradient(180deg, var(--fg) 0%, rgba(242, 237, 243, 0) 22%),
    radial-gradient(ellipse 75% 65% at 50% 42%, #fdfcfd 0%, #eeeaef 55%, #d9d4dc 100%);
  color: rgb(var(--ink));
}

/* notebook com a animação do processo na tela; a posição vem do JS */
.cta__laptop {
  /* o maior que cabe: a altura da tela menos o título, o botão e o menu (o notebook tem uns
     2/3 da largura em altura) */
  width: min(76vw, (100vh - 330px) * 1.5, 1240px);
  width: min(76vw, (100svh - 330px) * 1.5, 1240px);
  will-change: transform;
}

.cta__lid {
  padding: 1.5% 1.5% 1.8%;
  border-radius: 22px 22px 6px 6px;
  background: #121014;
  box-shadow:
    inset 0 0 0 2px #2b2830,
    0 40px 80px -24px rgba(20, 16, 22, 0.5);
}

.cta__screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 6px;
  background: radial-gradient(ellipse 80% 70% at 50% 30%, #211b26, #09080b);
}

.cta__base {
  position: relative;
  height: clamp(10px, 1.6vw, 16px);
  margin: 0 -6.5%;
  border-radius: 2px 2px 18px 18px / 2px 2px 14px 14px;
  background: linear-gradient(180deg, #77727d 0%, #3a3740 45%, #1b1a1e 100%);
  box-shadow: 0 24px 40px -14px rgba(20, 16, 22, 0.55);
}

/* o recorte do meio, onde a tampa abre */
.cta__base::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 16%;
  height: 45%;
  border-radius: 0 0 8px 8px;
  background: #4a4650;
  transform: translateX(-50%);
}

/* a animação do processo (embeds/): desenhada em 1280 × 800 e reduzida pelo JS */
.cta__frame {
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
  transform-origin: 0 0;
  pointer-events: none;
  background: #0a0908;
}

.cta__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  will-change: transform, opacity;
}

.cta__title {
  font-size: clamp(44px, 5.2vw, 84px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
}

.cta__button {
  padding: 14px 28px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(var(--ink), 0.12),
    0 10px 30px rgba(20, 16, 22, 0.08);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: inherit;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition:
    background-color 0.35s ease,
    color 0.35s ease;
}

.cta__button:hover,
.cta__button:focus-visible {
  background: rgb(var(--ink));
  color: #f2edf3;
}

/* o rodapé que sobe por cima da chamada: o topo é transparente e vai escurecendo */
.footer__panel {
  position: relative;
  isolation: isolate;
  padding: 34vh 40px 28px;
  background: linear-gradient(
    180deg,
    rgba(14, 10, 15, 0) 0,
    rgba(14, 10, 15, 0.55) 20vh,
    rgba(14, 10, 15, 0.92) 40vh,
    var(--bg) 56vh
  );
}

/* desfoca a chamada por baixo do rodapé; o desfoque começa suave na borda de cima */
.footer__panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22vh);
  mask-image: linear-gradient(180deg, transparent 0, #000 22vh);
}

.footer__info {
  display: grid;
  grid-template-columns: 1fr 16% 16%;
  gap: 40px;
  align-items: start;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.footer__contact span {
  display: block;
  margin-bottom: 4px;
  color: rgba(242, 237, 243, 0.6);
}

.footer__contact a {
  color: #f2edf3;
  font-weight: 500;
  text-decoration: none;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__col p {
  margin-bottom: 14px;
  color: rgba(242, 237, 243, 0.7);
  font-size: 12px;
  font-weight: 500;
}

.footer__col a {
  color: #f2edf3;
  font-size: clamp(20px, 1.6vw, 26px);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer__col a:hover,
.footer__contact a:hover {
  opacity: 0.6;
}

/* o nome da marca ocupando a largura toda (o tamanho da fonte vem do JS) */
.footer__brand {
  margin-top: clamp(48px, 8vh, 80px);
  padding-top: clamp(4px, 1vh, 12px);
  border-top: 1px solid rgba(242, 237, 243, 0.14);
}

.footer__word {
  display: inline-block;
  margin-left: -0.07em; /* o respiro natural do "N" à esquerda: a haste alinha com a margem */
  color: #e9e4ea;
  font-size: 30vw;
  font-weight: 500;
  line-height: 1.08; /* espaço para a perna do "y" não encostar na linha de baixo */
  letter-spacing: -0.06em;
  white-space: nowrap;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  color: rgba(242, 237, 243, 0.7);
  font-size: 13px;
}

.footer__top {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(242, 237, 243, 0.25);
  transition: background-color 0.3s ease;
}

/* seta para cima */
.footer__top::before {
  content: '';
  position: absolute;
  top: 17px;
  left: 15px;
  width: 9px;
  height: 9px;
  border-top: 1.5px solid #f2edf3;
  border-left: 1.5px solid #f2edf3;
  transform: rotate(45deg);
}

.footer__top:hover {
  background: rgba(242, 237, 243, 0.12);
}

@media (max-width: 720px) {
  .cta__laptop {
    width: 92vw;
  }

  /* a base sai menos para os lados, para o notebook maior caber na largura */
  .cta__base {
    margin: 0 -4%;
  }

  .footer__panel {
    padding: 30vh 20px 20px;
  }

  .footer__info {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
  }

  .footer__contact {
    grid-column: span 2;
  }

  .footer__bottom p {
    font-size: 12px;
  }
}

/* ---------- Abertura ---------- */

.intro {
  --intro-bg: #eeebef;
  --intro-ink: 14, 10, 15;
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow: hidden;
  background: var(--intro-bg);
  color: rgb(var(--intro-ink));
}

.intro-done .intro {
  display: none;
}

/* o interior do quadrado: da cor do fundo (invisível) até se expandir, escurecendo, e cobrir a tela */
.intro__panel {
  position: absolute;
  inset: 0;
  background: var(--intro-bg);
}

.intro__stage {
  position: absolute;
  left: calc(50% - var(--sq) / 2);
  top: calc(var(--cy) - var(--sq) / 2);
  width: var(--sq);
  height: var(--sq);
}

.intro__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: 0;
}

.intro__guide,
.intro__trace {
  fill: none;
}

.intro__guide {
  stroke: rgba(var(--intro-ink), 0.14);
  stroke-width: 1;
}

/* tracejado do "desenho" definido no JS pelo comprimento real do caminho */
.intro__trace {
  stroke: rgba(var(--intro-ink), 0.85);
  stroke-width: 1.5;
}

.intro__logo {
  position: absolute;
  inset: 0;
  width: 62%;
  height: auto;
  aspect-ratio: 496.13 / 443.99;
  margin: auto;
}

/* canvas do preenchimento embaixo, SVG (contorno e N final) por cima */
.intro__logo > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* o N preto do final; some junto com o fundo na expansão */
.intro__solid {
  fill: rgb(var(--intro-ink));
  opacity: 0;
}

/* espessura e tracejado definidos no JS (~1 px na tela) */
.intro__outline {
  fill: none;
  stroke: rgba(var(--intro-ink), 0.38);
}

.intro__plus {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 13px;
  margin: -6.5px 0 0 -6.5px;
  opacity: 0;
}

.intro__plus::before,
.intro__plus::after {
  content: '';
  position: absolute;
  background: rgba(var(--intro-ink), 0.6);
}

.intro__plus::before {
  top: 6px;
  left: 0;
  width: 100%;
  height: 1px;
}

.intro__plus::after {
  top: 0;
  left: 6px;
  width: 1px;
  height: 100%;
}

.intro__tagline {
  position: absolute;
  top: calc(var(--cy) + var(--sq) / 2 + 36px);
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.9em;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.intro__tagline span {
  opacity: 0;
}

.intro__tagline i {
  font-style: normal;
  opacity: 0.35;
}

.intro__counter {
  position: absolute;
  bottom: calc(var(--gutter) + 8px);
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.08em;
  opacity: 0;
}

.intro__digit {
  display: inline-block;
  height: 1em;
  overflow: hidden;
}

.intro__reel {
  display: block;
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}

.intro__reel span {
  display: block;
  height: 1em;
}

/* ---------- Cursor ---------- */

html.has-cursor,
html.has-cursor * {
  cursor: none !important;
}

.cursor {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cursor.is-visible {
  opacity: 1;
}

.cursor__ring,
.cursor__dot {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
}

.cursor__ring span {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(242, 237, 243, 0.5);
  border-radius: 50%;
  transition:
    transform 0.5s var(--ease-out),
    border-color 0.3s ease;
}

.cursor.is-hover .cursor__ring span {
  transform: scale(1.5);
  border-color: rgba(242, 237, 243, 0.9);
}

.cursor__dot span {
  position: absolute;
  top: -2px;
  left: -2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--fg);
}

/* ---------- Sobre ---------- */

/* sobe por cima da hero (que fica presa no lugar), como uma folha clara; mesma largura dos
   cards de serviços e do FAQ (até 1340px, centralizado) */
.about {
  --ink: 14, 10, 15;
  position: relative;
  z-index: 1;
  padding: clamp(110px, 16vh, 170px) max(40px, calc((100% - 1340px) / 2)) clamp(150px, 24vh, 260px);
  border-radius: 28px 28px 0 0;
  background: var(--fg);
  color: rgb(var(--ink));
  font-family: var(--font-sans);
}

.about__label {
  margin-bottom: 22px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* cada palavra sai do cinza para a cor cheia conforme --p (0 a 1) avança; a transição de
   uma palavra leva o tempo de umas 6 palavras, o que vira um degradê correndo pelo texto */
.about__text {
  max-width: 21em;
  font-size: clamp(30px, 3.6vw, 62px);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.about__text span {
  opacity: clamp(0.16, calc((var(--p, 0) * (var(--n) + 6) - var(--i)) / 6), 1);
}

.about__stats {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-top: clamp(110px, 18vh, 200px);
}

.about__stat .about__label {
  margin-bottom: 0;
  color: rgba(var(--ink), 0.6);
  font-weight: 400;
}

.about__count {
  font-size: clamp(110px, 14vw, 230px);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.about__note {
  max-width: 21em;
  padding-bottom: 0.8em;
  font-size: clamp(15px, 1.15vw, 19px);
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.about__services {
  margin-top: clamp(110px, 18vh, 200px);
}

.about__list {
  list-style: none;
}

/* linha de cima de cada item se desenha da esquerda para a direita ao entrar na tela */
.about__row {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr 1.2fr;
  align-items: baseline;
  gap: 24px;
  padding: 44px 0 48px;
}

.about__row::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(var(--ink), 0.16);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.3s var(--ease-out);
}

.about__row:last-child {
  border-bottom: 1px solid rgba(var(--ink), 0.16);
}

.about__row.is-in::before {
  transform: none;
}

.about__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(var(--ink), 0.5);
}

.about__row h3 {
  font-size: clamp(28px, 2.6vw, 44px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.about__row p {
  max-width: 26em;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(var(--ink), 0.65);
}

/* blocos que sobem ao entrar na tela */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1s var(--ease-out),
    transform 1.2s var(--ease-out);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* a linha do item não pode sumir junto com o texto */
.about__row[data-reveal] {
  opacity: 1;
  transform: none;
}

.about__row > * {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 1s var(--ease-out) 0.15s,
    transform 1.2s var(--ease-out) 0.15s;
}

.about__row.is-in > * {
  opacity: 1;
  transform: none;
}

@media (max-width: 720px) {
  .about {
    padding: 80px 20px 96px;
    border-radius: 20px 20px 0 0;
  }

  .about__text {
    font-size: 7.2vw;
  }

  .about__stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-top: 96px;
  }

  .about__count {
    font-size: 34vw;
  }

  .about__services {
    margin-top: 96px;
  }

  .about__row {
    grid-template-columns: 40px 1fr;
    row-gap: 12px;
    padding: 24px 0 26px;
  }

  .about__row p {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-faq-reveal],
  .faq__answer,
  .faq__icon {
    transition: none;
  }

  .hero__scroll i::after {
    animation: none;
  }
}
