@font-face {
  font-family: Inter;
  src: url("assets/fonts/inter.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Inter Tight";
  src: url("assets/fonts/inter-tight.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  background: #0d0218;
  color: #fff;
  font-family: Inter, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
}

.campaign {
  min-height: 850px;
  display: grid;
  align-items: center;
  background: #0d0218 url("assets/mica-campanha.webp") center / cover no-repeat;
}

.layout {
  width: min(1280px, calc(100% - 88px));
  margin-inline: auto;
  padding-block: 60px;
}

.message {
  max-width: min(690px, 54%);
  container-type: inline-size;
}

.brand {
  display: block;
  width: 185px;
  height: auto;
  margin-bottom: 36px;
}

h1 {
  margin: 0;
  font: 800 clamp(56px, 6.35vw, 92px)/.94 "Inter Tight", Inter, Arial, sans-serif;
  letter-spacing: -.05em;
}

h1 em {
  display: block;
  color: #ff65a8;
  background: linear-gradient(100deg, #ff3d8f, #ffadd3 75%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: normal;
}

.message p {
  margin: 24px 0 0;
  max-width: 450px;
  color: #e0d4e8;
  font-size: 16px;
  line-height: 1.65;
}

/* Botões lado a lado, com a mesma largura, e o aviso do Instagram embaixo ocupando a mesma faixa */
.cta-group {
  display: grid;
  width: max-content;
  max-width: 100%;
  margin-top: 30px;
}

.actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 10px 30px;
  border: 1px solid transparent;
  border-radius: 50px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.primary {
  background: #ff4d9a;
  color: #220d1d;
  box-shadow: 0 8px 32px #ff3d8f32;
}

.primary:hover { background: #ff80b6; }

.secondary {
  background: #261035;
  border-color: #b27cc878;
}

.secondary:hover { background: #3c1b50; }

.button-icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: currentColor;
}

.message .updates {
  max-width: none;
  margin-top: 22px;
  font-size: 17px;
  text-align: left;
  white-space: nowrap;
}

/* Telas médias: um pouco menos de respiro nos botões pra caberem lado a lado */
@media (max-width: 1180px) {
  .button { padding-inline: 22px; }
}

/* Coluna estreita (tablet e celular): um botão embaixo do outro e o aviso pode quebrar linha */
@container (max-width: 539px) {
  .cta-group { width: auto; }

  .actions {
    grid-template-columns: 1fr;
    max-width: 310px;
  }

  .message .updates {
    white-space: normal;
    text-align: inherit;
  }
}

.updates a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ffadd3;
  font-weight: 600;
  text-underline-offset: 4px;
}

.updates-icon {
  width: 19px;
  height: 19px;
  flex: none;
  fill: currentColor;
}

a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.legal-footer {
  background: #100619;
  padding: 36px 20px;
  color: #bba8c9;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.legal-footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 28px;
  max-width: 1440px;
  margin-inline: auto;
}

.legal-footer p { margin: 0; }

.legal-footer a {
  color: #d9c3e8;
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  .campaign {
    min-height: 760px;
    background-position: 60% center;
  }

  .layout { width: calc(100% - 56px); }

  .brand { width: 175px; }
}

@media (max-width: 720px) {
  .campaign {
    min-height: 0;
    align-content: start;
    background: #0d0218;
  }

  .campaign::before {
    content: "";
    display: block;
    height: 410px;
    background: url("assets/mica-campanha.webp") 80% 0 / auto 470px no-repeat;
    mask-image: linear-gradient(to bottom, #000 68%, transparent);
  }

  .layout {
    width: min(460px, calc(100% - 36px));
    padding-block: 0 42px;
    text-align: center;
  }

  .message { max-width: none; }

  .brand {
    width: 128px;
    margin: 0 auto 25px;
  }

  h1 { font-size: clamp(34px, 10.8vw, 66px); }

  .message p { margin-top: 18px; }

  .cta-group { margin-top: 24px; }

  .actions { margin-inline: auto; }

  .message .updates {
    margin: 23px auto 0;
  }

  .updates a { display: inline-flex; }

  .legal-footer {
    padding-block: 28px;
    font-size: 12px;
  }

  .legal-footer-content { gap: 12px 20px; }
}

@media (max-width: 374px) {
  .campaign::before {
    height: 365px;
    background-size: auto 420px;
  }
}

.project-story {
  --story-bg: #100619;
  background: var(--story-bg);
}

.project-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(46px, 7vw, 96px) max(24px, calc((100% - 1220px) / 2));
  background: radial-gradient(ellipse at 42% 43%, #2c0d39 0%, var(--story-bg) 66%);
}

.project-motion { display: none; }

.project-intro h2 {
  max-width: 830px;
  margin: 0 auto;
  color: #fff;
  font: 800 clamp(42px, 7.1vw, 106px)/.95 "Inter Tight", Inter, Arial, sans-serif;
  letter-spacing: -.045em;
  text-align: center;
  text-wrap: balance;
}

.project-intro br { display: none; }

.project-intro em,
.project-final-title em {
  color: #ff80b7;
  font-style: normal;
}

.project-finale {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(26px, 6vw, 88px);
  margin-top: clamp(32px, 5vw, 65px);
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  gap: clamp(7px, 1.2vw, 16px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.project-gallery li,
.project-card {
  overflow: hidden;
  aspect-ratio: 1.15;
  border: 1px solid #f3b4e145;
  border-radius: clamp(7px, 1.1vw, 16px);
  background: #24122d;
  box-shadow: 0 12px 30px #07010a52;
}

.project-gallery img,
.project-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.project-final-title {
  display: none;
  margin-bottom: 22px;
  font: 800 clamp(34px, 5.2vw, 80px)/.96 "Inter Tight", Inter, Arial, sans-serif;
  letter-spacing: -.045em;
}

.is-animated .project-final-title { display: block; }

.project-copy p {
  max-width: 340px;
  margin: 0 0 22px;
  color: #e0d4e8;
  font-size: 16px;
  line-height: 1.6;
}

.project-story.is-animated { min-height: 385svh; }

.is-animated .project-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 500px;
  padding: 0;
  display: grid;
  align-items: center;
}

.is-animated .project-motion {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.project-card {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(105px, 16vw, 218px);
  aspect-ratio: .78;
  transform-origin: top left;
}

.is-animated .project-intro {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: clamp(44px, 12svh, 124px) clamp(22px, 4.5vw, 92px) 0;
  pointer-events: none;
}

.is-animated .project-intro h2 {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: none;
  text-align: left;
  font-size: clamp(42px, 6.7vw, 104px);
  text-shadow: 0 3px 28px #120118;
}

.is-animated .project-intro em { text-align: right; }

.is-animated .project-intro br { display: inline; }

.is-animated .project-finale {
  position: relative;
  z-index: 2;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 0;
  height: 100%;
  margin: 0;
}

.is-animated .project-wall {
  position: relative;
  align-self: stretch;
  overflow: hidden;
  background: #100619;
  box-shadow: inset -1px 0 #ffffff1a;
}

.is-animated .project-gallery {
  position: absolute;
  top: 50%;
  left: 50%;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  width: max(175%, 106svh);
  gap: clamp(6px, 1vw, 16px);
  transform: translate(-50%, -50%) perspective(1500px) rotateX(24deg) rotateZ(-23deg);
}

.is-animated .project-gallery li {
  aspect-ratio: .91;
  border-radius: clamp(4px, .6vw, 10px);
  box-shadow: none;
}

.is-animated .project-copy {
  padding-inline: clamp(30px, 6.5vw, 115px) clamp(22px, 4vw, 60px);
}

.is-animated .project-final-title {
  font-size: clamp(36px, 5.4vw, 80px);
  text-wrap: balance;
}

@media (max-width: 720px) {
  .project-stage { padding-inline: 21px; }

  .project-finale {
    grid-template-columns: 1fr;
    gap: 24px;
    width: min(100%, 470px);
    margin-inline: auto;
  }

  .project-copy { text-align: center; }

  .project-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .project-final-title { margin-bottom: 12px; }

  .project-copy p { margin: 0 auto 16px; }

  .is-animated .project-intro {
    padding: clamp(48px, 11svh, 100px) 18px 0;
  }

  .is-animated .project-intro h2 { font-size: clamp(24px, 7.5vw, 48px); }

  .is-animated .project-finale {
    grid-template-columns: 1fr;
    grid-template-rows: 54% 1fr;
    width: 100%;
  }

  .is-animated .project-gallery { width: max(155%, 69svh); }

  .is-animated .project-copy { padding: 12px 18px; }

  .is-animated .project-final-title { font-size: clamp(30px, 8vw, 48px); }
}

/* Cena 3D (túnel → cilindro → parede) desenhada pelo projetos.js */
.project-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.is-webgl .project-wall {
  background: transparent;
}

.is-webgl .project-gallery {
  opacity: 0;
}
