:root {
  font-family: "Inter", Arial, sans-serif;
  color: #f7f7f4;
  background: #050505;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  overflow-x: hidden;
  background: #050505;
}

body.carregando {
  overflow: hidden;
}

main {
  min-height: 160vh;
}

.carregador {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  margin: 0;
  overflow: hidden;
  background: #050505;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 700ms ease,
    visibility 700ms ease;
}

.carregador--oculto {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.carregador__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.navegacao-superior {
  position: fixed;
  top: calc(1rem + env(safe-area-inset-top));
  right: 1rem;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.42rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 1rem 2.5rem rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(16px) saturate(150%);
}

.botao-navegacao {
  position: relative;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.08);
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 0.75rem 1.7rem rgba(0, 0, 0, 0.22);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.botao-navegacao::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto;
  height: 44%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.36), transparent);
  pointer-events: none;
}

.botao-navegacao:hover {
  transform: translateY(-0.12rem) scale(1.04);
  border-color: rgba(255, 255, 255, 0.54);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.12);
}

.botao-navegacao:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.86);
  outline-offset: 0.25rem;
}

.botao-navegacao i {
  position: relative;
  z-index: 1;
  color: #ffffff;
  font-size: 1.18rem;
  line-height: 1;
}

.navegacao-inferior {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 80;
  display: flex;
  justify-content: center;
  padding: 0 1rem calc(1rem + env(safe-area-inset-bottom));
  pointer-events: none;
}

.botao-chamada {
  position: relative;
  display: inline-flex;
  min-width: 10.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.92rem 1.35rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1rem 1.8rem rgba(5, 5, 5, 0.24);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 180ms ease;
  backdrop-filter: blur(18px) saturate(145%);
}

.botao-chamada::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto;
  height: 46%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), transparent);
  pointer-events: none;
}

.botao-chamada::after {
  content: "";
  position: absolute;
  inset: 0.42rem 0.4rem -0.42rem;
  z-index: -1;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.38);
  filter: blur(1rem);
  transform: translateY(0.22rem);
  pointer-events: none;
}

.botao-chamada:hover {
  transform: translateY(-0.12rem);
}

.botao-chamada:focus-visible {
  outline: 2px solid rgba(255, 189, 0, 0.86);
  outline-offset: 0.35rem;
}

.botao-chamada span {
  position: relative;
  z-index: 1;
}

.destaque {
  position: relative;
  min-height: 160vh;
  overflow: clip;
  background: #050505;
}

.destaque__camadas {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.1), transparent 25rem),
    linear-gradient(180deg, #075d9d 0%, #2495cf 58%, #8bc7e5 100%);
  isolation: isolate;
}

.destaque__camadas::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background: radial-gradient(circle at center, transparent 45%, rgba(0, 0, 0, 0.32) 100%);
  pointer-events: none;
}

.destaque__imagem {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  will-change: transform;
}

.secao-projetos {
  position: relative;
  z-index: 6;
  margin-top: -60vh;
  overflow: hidden;
  padding: 7rem max(1rem, calc((100% - 1120px) / 2)) 8rem;
  background: transparent;
  isolation: isolate;
}

.secao-projetos::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #4a9dcc;
  background-image:
    linear-gradient(
      180deg,
      rgba(44, 137, 190, 0.04) 0%,
      rgba(19, 87, 127, 0.14) 52%,
      rgba(6, 24, 35, 0.46) 100%
    ),
    url("../assets/images/Brito (2).svg");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.45) 8vh, #000 24vh);
  mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.45) 8vh, #000 24vh);
  pointer-events: none;
}

.secao-projetos__cabecalho,
.vitrine {
  position: relative;
  z-index: 1;
}

.secao-projetos__cabecalho {
  margin-bottom: 1.5rem;
  text-align: center;
}

.secao-projetos__titulo {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  color: #ffffff;
  font-size: clamp(1.65rem, 7vw, 5.8rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow:
    0 0.2rem 0.8rem rgba(0, 0, 0, 0.78),
    0 0.8rem 2rem rgba(0, 0, 0, 0.45);
  text-transform: uppercase;
  white-space: nowrap;
}

.vitrine {
  --tamanho-card: clamp(11rem, 24vw, 18rem);
  min-height: calc(var(--tamanho-card) + 9rem);
  margin: 0;
  padding: 1.5rem 0 0;
}

.vitrine__janela {
  overflow: hidden;
  padding: 3rem 0;
  outline: none;
  perspective: calc(var(--tamanho-card) * 3);
  touch-action: pan-y;
  cursor: grab;
}

.vitrine__janela:active {
  cursor: grabbing;
}

.vitrine__janela:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 189, 0, 0.7);
}

.vitrine__trilha {
  position: relative;
  height: var(--tamanho-card);
  margin: 0;
  padding: 0;
  list-style: none;
  transform-style: preserve-3d;
  user-select: none;
}

.vitrine__item {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--tamanho-card);
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.55rem;
  background: #1a1a1a;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.45);
  will-change: transform, opacity;
}

.vitrine__item img {
  position: absolute;
  display: block;
  pointer-events: none;
  user-select: none;
}

.vitrine__foto {
  width: 200%;
  height: 200%;
  max-width: none;
}

.vitrine__foto--superior-esquerda {
  top: 0;
  left: 0;
}

.vitrine__foto--superior-direita {
  top: 0;
  left: -100%;
}

.vitrine__foto--inferior-esquerda {
  top: -100%;
  left: 0;
}

.vitrine__foto--inferior-direita {
  top: -100%;
  left: -100%;
}

.vitrine__legenda {
  min-height: 3.5rem;
  margin-top: -0.5rem;
  text-align: center;
}

.vitrine__legenda-titulo {
  margin: 0;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
}

.vitrine__legenda-texto {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
  font-weight: 500;
}

@media (max-width: 720px) {
  .destaque {
    min-height: 145vh;
  }

  .destaque__camadas {
    height: 100svh;
    background:
      radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.08), transparent 16rem),
      linear-gradient(180deg, #075d9d 0%, #2495cf 58%, #8bc7e5 100%);
  }

  .destaque__imagem[data-camada="1"] {
    object-fit: cover;
    object-position: center;
  }

  .destaque__imagem[data-camada="2"] {
    inset: 11svh auto auto 50%;
    width: 180vw;
    height: auto;
    translate: -50% 0;
    scale: 1;
    object-fit: contain;
  }

  .destaque__imagem[data-camada="3"] {
    inset: auto auto 0 50%;
    width: 225vw;
    height: auto;
    translate: -50% 0;
    scale: 1;
    object-fit: contain;
  }

  .secao-projetos {
    margin-top: -45vh;
    padding: 5rem 1rem 6rem;
  }

  .navegacao-superior {
    top: calc(0.75rem + env(safe-area-inset-top));
    right: 0.75rem;
    gap: 0.55rem;
    padding: 0.35rem;
  }

  .botao-navegacao {
    width: 2.7rem;
    height: 2.7rem;
  }

  .botao-navegacao i {
    font-size: 1.08rem;
  }

  .navegacao-inferior {
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
  }

  .botao-chamada {
    min-width: 9.6rem;
    padding: 0.82rem 1.15rem;
    font-size: 0.88rem;
  }

  .vitrine {
    --tamanho-card: clamp(9rem, 56vw, 14rem);
  }
}
