:root {
  --branco-puro: #ffffff;
  --branco-nuvem: #fbfaf8;
  --branco-osso: #f5f3ef;
  --branco-areia: #edeae3;
  --branco-cinza: #e4e0d8;
  --linha: #ded9d0;
  --tinta: #16150f;
  --tinta-suave: #9c978c;
  --erro: #9c5548;
  --sombra: 22, 21, 15;
  --largura: 1120px;
  --respiro: 32px;
  --coluna: clamp(150px, 11.5vw, 210px);
  --fita: #e4e0d8;
  --fita-trilho: clamp(9px, 0.8vw, 13px);
  --fita-entre: 10px;
}

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

html {
  height: 100%;
}

body {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--branco-osso);
  background-image:
    radial-gradient(120% 70% at 50% -10%, var(--branco-puro) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, var(--branco-nuvem) 0%, var(--branco-osso) 45%, var(--branco-areia) 100%);
  background-attachment: fixed;
  color: var(--tinta);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.14'/%3E%3C/svg%3E");
}

.portao {
  position: relative;
  z-index: 2;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 5vw, 48px);
  padding: clamp(40px, 8vw, 80px) var(--respiro);
}

.portao-logo {
  display: block;
  width: clamp(120px, 18vw, 190px);
  height: auto;
  animation: surgir-topo 900ms ease both;
}

.portao-forma {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  width: 100%;
  max-width: 340px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--branco-cinza);
  border-radius: 18px;
  background-color: var(--branco-puro);
  background-image: linear-gradient(180deg, var(--branco-puro) 0%, var(--branco-nuvem) 100%);
  box-shadow:
    0 1px 1px rgba(var(--sombra), 0.04),
    0 10px 24px rgba(var(--sombra), 0.05),
    0 34px 70px rgba(var(--sombra), 0.07);
  animation: surgir-base 900ms ease 160ms both;
}

.portao-pergunta {
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--tinta);
}

.portao-campo {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--branco-cinza);
  border-radius: 10px;
  background-color: var(--branco-puro);
  color: var(--tinta);
  font-family: inherit;
  font-size: 15px;
  text-align: center;
  letter-spacing: 0.18em;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.portao-campo:focus {
  outline: none;
  border-color: var(--tinta-suave);
  box-shadow: 0 0 0 3px rgba(var(--sombra), 0.06);
}

.portao-botao {
  padding: 12px 14px;
  border: 0;
  border-radius: 10px;
  background-color: var(--tinta);
  color: var(--branco-nuvem);
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 220ms ease, transform 220ms ease;
}

.portao-botao:hover {
  background-color: #2f2d24;
  transform: translateY(-1px);
}

.portao-botao:focus-visible {
  outline: 2px solid var(--tinta-suave);
  outline-offset: 3px;
}

.portao-aviso {
  min-height: 16px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--erro);
}

.portao-esperando {
  pointer-events: none;
  opacity: 0.6;
}

.portao-errou {
  animation: tremer 420ms ease;
}

.header,
.main,
.footer {
  position: relative;
  z-index: 2;
}

.laterais {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.coluna {
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--coluna);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 16%, rgba(0, 0, 0, 1) 84%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 16%, rgba(0, 0, 0, 1) 84%, rgba(0, 0, 0, 0) 100%);
}

.coluna-esq {
  left: 0;
}

.coluna-dir {
  right: 0;
}

.tira {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.coluna-esq .tira {
  animation: descer var(--duracao, 180s) linear infinite;
}

.coluna-dir .tira {
  animation: subir var(--duracao, 180s) linear infinite;
}

.quadro {
  position: relative;
  padding: var(--fita-entre) var(--fita-trilho);
  background-color: var(--fita);
}

.quadro::before,
.quadro::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--fita-trilho);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 36' preserveAspectRatio='xMidYMid meet'%3E%3Crect x='4' y='10' width='12' height='16' rx='3.5' fill='%23fbfaf8'/%3E%3C/svg%3E");
  background-repeat: repeat-y;
  background-size: 100% 10%;
}

.quadro::before {
  left: 0;
}

.quadro::after {
  right: 0;
}

.tira img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 2px;
  opacity: 0.6;
  filter: saturate(0.85);
  background-color: var(--branco-areia);
}

.header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(44px, 8vw, 92px) var(--respiro) clamp(34px, 6vw, 64px);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 100%);
}

.header::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(var(--largura), calc(100% - var(--respiro) * 2));
  height: 1px;
  background-image: linear-gradient(90deg, rgba(222, 217, 208, 0) 0%, var(--linha) 30%, var(--linha) 70%, rgba(222, 217, 208, 0) 100%);
}

.logo {
  display: block;
  width: clamp(150px, 24vw, 268px);
  height: auto;
  animation: surgir-topo 900ms ease both;
}

.main {
  flex: 1 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(34px, 6vw, 64px) var(--respiro) clamp(20px, 4vw, 40px);
}

.video {
  width: 100%;
  max-width: var(--largura);
  animation: surgir-base 900ms ease 160ms both;
}

.video-card {
  padding: clamp(8px, 1.4vw, 16px);
  border: 1px solid var(--branco-cinza);
  border-radius: 20px;
  background-color: var(--branco-puro);
  background-image: linear-gradient(180deg, var(--branco-puro) 0%, var(--branco-nuvem) 100%);
  box-shadow:
    0 1px 1px rgba(var(--sombra), 0.04),
    0 10px 24px rgba(var(--sombra), 0.05),
    0 34px 70px rgba(var(--sombra), 0.07);
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background-color: var(--branco-areia);
  box-shadow: inset 0 0 0 1px rgba(var(--sombra), 0.07);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.footer {
  flex-shrink: 0;
  padding: clamp(40px, 6vw, 76px) var(--respiro) clamp(30px, 4vw, 52px);
  text-align: center;
}

.footer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: min(340px, calc(100% - var(--respiro) * 2));
  height: 1px;
  background-image: linear-gradient(90deg, rgba(222, 217, 208, 0) 0%, var(--linha) 50%, rgba(222, 217, 208, 0) 100%);
}

.footer p {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tinta-suave);
}

.redes {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.rede {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--branco-cinza);
  background-color: rgba(255, 255, 255, 0.55);
  color: var(--tinta-suave);
  box-shadow: 0 1px 2px rgba(var(--sombra), 0.03);
  transition: color 260ms ease, background-color 260ms ease, border-color 260ms ease, transform 260ms ease, box-shadow 260ms ease;
}

.rede svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.rede:hover,
.rede:focus-visible {
  color: var(--tinta);
  background-color: var(--branco-puro);
  border-color: var(--linha);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(var(--sombra), 0.09);
}

.rede:focus-visible {
  outline: 2px solid var(--linha);
  outline-offset: 3px;
}

@keyframes subir {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

@keyframes descer {
  from {
    transform: translateY(-50%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes tremer {
  0%, 100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-7px);
  }
  40% {
    transform: translateX(6px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(2px);
  }
}

@keyframes surgir-topo {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes surgir-base {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 1280px) {
  .laterais {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portao-logo,
  .portao-forma,
  .logo,
  .video,
  .coluna-esq .tira,
  .coluna-dir .tira {
    animation: none;
  }

  .portao-errou {
    animation: none;
  }

  .rede {
    transition: none;
  }

  .rede:hover,
  .rede:focus-visible {
    transform: none;
  }
}

@media (max-width: 640px) {
  :root {
    --respiro: 20px;
  }

  .video-card {
    border-radius: 16px;
  }

  .video-frame {
    border-radius: 10px;
  }

  .footer p {
    font-size: 11px;
  }
}
