:root {
  --vermelho: #C7302D;
  --laranja: #E45933;
  --azul: #1E3386;
  --preto: #191A1C;
  --cinza: #e2e3e4;
}
html {
  scroll-behavior: smooth;
}
::-webkit-scrollbar {
  display: none;
}
html {
  scrollbar-width: none;
}
html {
  -ms-overflow-style: none;
}
body.preload {
  opacity: 0;
}
body.page-loaded {
  opacity: 1;
}
body.page-fadeout {
  opacity: 0;
}
@font-face {
  font-family: 'Pepi Regular';
  src: url('../fonts/PEPI_REGULAR.OTF') format('opentype');
  font-display: swap;
}
@font-face {
  font-family: 'Pepi Medium';
  src: url('../fonts/PEPI_MEDIUM.OTF') format('opentype');
  font-display: swap;
}
@font-face {
  font-family: 'Pepi Bold';
  src: url(../fonts/PEPI_BOLD.OTF) format('opentype');
  font-display: swap;
}
@font-face {
  font-family: 'Pepi Black';
  src: url(../fonts/PEPI_HEAVY.OTF) format('opentype');
  font-display: swap;
}
.pepi-regular {
  font-family: 'Pepi Regular';
}
.pepi-medium {
  font-family: 'Pepi Medium';
}
.pepi-bold {
  font-family: 'Pepi Bold';
}
.pepi-black {
  font-family: 'Pepi Black';
}
a, a h1, a h2, a h3, a h4, a h5, a h6, a p, a small, a:active, a:visited, a:hover {
  color: var(--preto);
  text-decoration: none;
  cursor: pointer;
}
body {
  background-color: var(--cinza);
  transition: opacity 0.5s ease;
  max-width: 100vw;
  overflow-x: hidden;
  font-family: 'Pepi Regular';
  color: var(--preto);
  font-feature-settings: "liga" 0, "clig" 0, "calt" 0;
  -webkit-font-feature-settings: "liga" 0, "clig" 0, "calt" 0;
  font-variant-ligatures: no-common-ligatures no-contextual;
  /* prevent browser extensions (vp-center etc) from breaking layout */
  display: block !important;
  align-items: unset !important;
  justify-content: unset !important;
}
.page {
  margin-bottom: 0px;
}
.dn {
  display: none;
}
.mh-auto {
  margin: 0 auto;
}
.desk-none {
  display: none;
}
.btn {
  background-color: rgba(255,255,255,1);
  border-radius: 50px;
  padding: 12px 17px 11px 17px;
  margin-right: 16px;
  line-height: 1;
  width: fit-content;
  cursor: pointer;
  font-size: 14px;
  transition: ease 0.5s;
}
.btn:hover, .btn.blur {
  background-color: rgba(255,255,255,0.5);
  filter: blur(4px);
  transform: translateY(-2px);
  transition: ease 0.5s;
}
.black {
  color: var(--preto);
}

/* legacy header (keep for pages not yet migrated) */

  header {
    position: fixed;
    width: 100%;
    height: 72px;
    top: 0;
    left: 0;
    z-index: 999999;
    padding: 0px 32px;
    font-size: 16px;
    pointer-events: none;
  }
  header .logo img {
    height: 40px;
  }
  header a {
    pointer-events: all;
  }
  .true-glass-btn {
    display: none; /* hidden — replaced by bottom nav */
  }

/* ===== LIQUID GLASS — iOS 26 base ===== */

/* --- clear variant: notification-style, very transparent --- */
.liquid-glass {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(180%) brightness(1.08);
  -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(1.08);
  box-shadow:
    0 2px 16px rgba(0, 0, 0, 0.06),
    inset 0 0.5px 0 rgba(255, 255, 255, 0.2);
}

/* --- liquid variant: more distortion, less blur, rgb edge diffusion --- */
.liquid-glass-liquid {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px) saturate(220%) brightness(1.06) contrast(1.04);
  -webkit-backdrop-filter: blur(12px) saturate(220%) brightness(1.06) contrast(1.04);
  box-shadow:
    0 2px 20px rgba(0, 0, 0, 0.08),
    inset 0 0.5px 0 rgba(255, 255, 255, 0.15);
}
/* chromatic aberration edge glow */
.liquid-glass-liquid::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 80, 80, 0.08) 0%,
    rgba(80, 120, 255, 0.06) 30%,
    transparent 50%,
    rgba(80, 255, 160, 0.06) 70%,
    rgba(255, 80, 80, 0.08) 100%
  );
  z-index: 0;
  pointer-events: none;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  padding: 2px;
}
.liquid-glass-noise {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 83px 83px;
}
.liquid-glass > *:not(.liquid-glass-noise),
.liquid-glass-liquid > *:not(.liquid-glass-noise) {
  position: relative;
  z-index: 1;
}

/* ===== BOTTOM NAV ===== */

.bottom-nav {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999999;
  border-radius: 28px;
  padding: 4px;
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-mobile-toggle {
  display: none;
}

.nav-items {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item {
  padding: 9px 20px;
  border: none;
  border-radius: 50px;
  background: transparent;
  color: var(--preto);
  font-family: 'Pepi Medium';
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.1, 1);
  white-space: nowrap;
  line-height: 1;
  position: relative;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.18);
}

.nav-item.is-active {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.2);
}

/* solutions sub-menu */
.nav-item-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* solutions label hides when sub-open on desktop */
.nav-item-wrapper > .nav-item[data-id="solutions"] {
  transition: opacity 0.3s ease, max-width 0.35s cubic-bezier(0.4, 0, 0.1, 1),
              padding 0.35s cubic-bezier(0.4, 0, 0.1, 1);
  max-width: 120px;
  overflow: hidden;
}
.nav-item-wrapper.sub-open > .nav-item[data-id="solutions"] {
  max-width: 0;
  padding-left: 0;
  padding-right: 0;
  opacity: 0;
}

.nav-sub {
  display: flex;
  align-items: center;
  gap: 2px;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width 0.35s cubic-bezier(0.4, 0, 0.1, 1),
              opacity 0.25s ease;
}

.nav-item-wrapper.sub-open .nav-sub {
  max-width: 500px;
  opacity: 1;
}

.nav-sub-item {
  padding: 7px 14px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--preto);
  font-family: 'Pepi Regular';
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s ease;
  line-height: 1;
}

.nav-sub-item:hover {
  background: rgba(255, 255, 255, 0.25);
}
.nav-sub-item.disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

/* mobile nav — glassy, same aesthetic as desktop, vertical expand */
@media (max-width: 760px) {
  .bottom-nav {
    bottom: 32px;
    padding: 4px;
    border-radius: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    flex-direction: column;
    align-items: center;
    overflow: visible;
    padding-bottom: calc(env(safe-area-inset-bottom, 8px) + 4px);
    /* keep glassy from desktop — don't override */
  }

  .nav-mobile-toggle {
    display: block;
    padding: 12px 36px;
    border: none;
    border-radius: 50px;
    background: transparent;
    color: var(--preto);
    font-family: 'Pepi Medium';
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
    text-transform: lowercase;
    letter-spacing: 0;
  }

  /* when open: toggle + items become one glassy block */
  .bottom-nav .nav-items {
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.1, 1), opacity 0.2s ease;
    width: 100%;
  }

  .bottom-nav.is-open .nav-items {
    max-height: 400px;
    opacity: 1;
    padding: 4px 0;
  }

  .bottom-nav.is-open .nav-mobile-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    pointer-events: none;
  }

  .bottom-nav.is-open .nav-item.is-active {
    background: rgba(255, 255, 255, 0.2);
  }

  .nav-item {
    width: 100%;
    text-align: center;
    padding: 12px 24px;
    font-size: 16px;
    text-transform: lowercase;
    letter-spacing: 0;
  }

  /* solutions label stays visible on mobile */
  .nav-item-wrapper.sub-open > .nav-item[data-id="solutions"] {
    max-width: none;
    padding: 10px 24px;
    opacity: 1;
    overflow: visible;
  }

  .nav-sub {
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: none;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
  }

  .nav-item-wrapper {
    flex-direction: column;
    width: 100%;
  }

  .nav-item-wrapper .nav-item {
    width: 100%;
  }

  .nav-sub-item {
    width: 100%;
    text-align: center;
    padding: 8px 24px;
    font-size: 12px;
    text-transform: lowercase;
    letter-spacing: 0;
    background: none;
  }

  .nav-item-wrapper.sub-open .nav-sub {
    max-width: none;
    max-height: 300px;
    opacity: 1;
  }

  /* topbar adjustments */
  .topbar {
    padding: 12px 16px;
    max-width: 100vw;
    overflow: hidden;
  }

  /* prevent nav from going off-screen */
  .bottom-nav {
    max-width: calc(100vw - 32px);
  }
}

/* ===== PROJETOS HERO HEADER (palette style) ===== */

.projetos-hero-header {
  position: relative;
  width: 100%;
  height: 100svh;
  max-height: 100dvh;
  overflow: hidden;
  padding: 0;
  background: var(--preto);
}
.projetos-hero-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  display: block;
}
.projetos-hero-header video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  opacity: 0;
  transition: opacity 0.05s linear;
  z-index: 0;
}
.projetos-hero-header video.show {
  opacity: 1;
}
/* dark overlay on image + video */
.projetos-hero-header::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 0;
  background: rgba(0,0,0,0.3);
  pointer-events: none;
  z-index: 1;
}
.projetos-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  z-index: 2;
  gap: 16px;
}
/* typing text: 1-2 lines, white */
.projetos-hero-overlay h1 {
  color: white;
  font-size: clamp(18px, 2.5vw, 32px);
  font-family: 'Pepi Regular';
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

/* mosaic items: square corners */
.img-container {
  border-radius: 0;
  overflow: hidden;
}

@media (max-width: 760px) {
  .projetos-hero-header {
    height: 100svh;
    padding: 0;
  }
  .projetos-hero-header::after {
    inset: 0;
  }
  .projetos-hero-header video {
    top: 0; left: 0;
    width: 100%;
    height: 100%;
  }
}

/* prevent blue selection highlight on mobile tap */
section.home, section.home * {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* home */

  .unflat {
    position: fixed;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    width: 200px;
  }
  section.home {
    position: fixed;
    top: 0;
    left: 0;
    height: auto;
    display: grid;
    width: 300vw;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(8, 1fr);
    gap: 80px;
    padding: 80px;
    touch-action: none;
  }
  .img-container {
    position: relative;
    width: 75%;
    transition: all 0.5s ease;
    will-change: transform;
    align-self: start;
  }
  .img-container img {
    display: block;
    width: 100%;
    height: auto;
  }
  .img-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--cor-overlay);
    opacity: 1;
    transition: opacity 1s ease;
    pointer-events: none;
  }
  .img-container.reveal::after {
    opacity: 0;
  }
  .img-container:hover {
    transform: scale(1.1);
    transition: ease 0.5s;
    z-index: 10;
    position: relative;
  }


/* projetos */

.projetos-hero {
  height: 70dvh;
}
.animated-text-pr {
  height: 480px;
}
h1 {
  font-size: 12vw;
  margin: 0px;
  line-height: 0.9;
  font-family: 'Pepi Bold';

}
.animated-container {
  font-size: 10vw;
  margin: 0px;
  line-height: 0.9;
  height: 30vw;
  font-family: 'Pepi Bold';
}
.bold {
  font-family: 'Pepi Bold';
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid3 div {
  width: 100%;
  max-width: 100%;
}
.grid-projetos .grid3 div.relative img:nth-child(2), .grid3 div.relative *:nth-child(2){
  opacity: 0;
  transform: scale(0.7) rotate(1deg);
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.grid-projetos .grid3 div.relative:hover img:nth-child(2), .grid3 div.relative:hover *:nth-child(2) {
  opacity: 1;
  transition: ease 0.5s;
  z-index: 9;
  transform: scale(1) rotate(-2deg);
}
.grid-projetos .grid3 div.relative *:nth-child(2) {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
}

/* ocupa coluna 1 e 2 / ocupa coluna 2 e 3 */
.grid-projetos .grid3:nth-of-type(3n+1) > div:first-child,
.grid-projetos .grid3:nth-of-type(3n) > div:first-child {
  grid-column: 1;
}
.grid-projetos .grid3:nth-of-type(3n+1) > div:last-child,
.grid-projetos .grid3:nth-of-type(3n) > div:last-child {
  grid-column: 2;
}
.grid-projetos .grid3:nth-of-type(3n+2) > div:first-child {
  grid-column: 2;
}
.grid-projetos .grid3:nth-of-type(3n+2) > div:last-child {
  grid-column: 3;
}

.grid-projetos .grid3:nth-child(3n+1) div.relative:nth-child(1):hover img:nth-child(2) {
  opacity: 1;
  transition: ease 0.5s;
  z-index: 9;
  transform: scale(1) rotate(-1deg);
}

.grid-projetos .grid3:nth-child(3n+1) div.relative:nth-child(2):hover img:nth-child(2) {
  opacity: 1;
  transition: ease 0.5s;
  z-index: 9;
  transform: scale(1) rotate(2deg);
}

/* PADRÃO 2 - grid3 nas posições 2, 5, 8, 11, etc. */
.grid-projetos .grid3:nth-child(3n+2) div.relative:nth-child(-2):hover img:nth-child(2) {
  opacity: 1;
  transition: ease 0.5s;
  z-index: 9;
  transform: scale(1) rotate(-1deg);
}

.grid-projetos .grid3:nth-child(3n+2) div.relative:nth-child(1):hover img:nth-child(2) {
  opacity: 1;
  transition: ease 0.5s;
  z-index: 9;
  transform: scale(1) rotate(2deg);
}

/* PADRÃO 3 - grid3 nas posições 3, 6, 9, 12, etc. */
.grid-projetos .grid3:nth-child(3n) div.relative:nth-child(-1):hover img:nth-child(2) {
  opacity: 1;
  transition: ease 0.5s;
  z-index: 9;
  transform: scale(1) rotate(-2deg);
}

.grid-projetos .grid3:nth-child(3n) div.relative:nth-child(2):hover img:nth-child(2) {
  opacity: 1;
  transition: ease 0.5s;
  z-index: 9;
  transform: scale(1) rotate(3deg);
}
h2 {
  font-size: 64px;
  line-height: 1;
  margin: 0px;
  font-family: 'Pepi Black';
}
.linha-cliente {
  margin-top: -20px;
  background-color: #e2e3e4;
  position: relative;
  transition: ease 0.5s;
}
.linha-cliente:hover ~ .linha-cliente {
  margin-top: 0px;
  transition: ease 0.5s;
}
.linha-cliente div.absolute {
  position: absolute;
  opacity: 0;
  top: 0;
  left: 60%;
  width: 100px;
  z-index: 9;
  transform: rotate(0deg) scale(0.8);
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.linha-cliente:nth-child(2n + 1):hover div.absolute {
  opacity: 1;
  transform: rotate(3deg) scale(1);
}
.linha-cliente:nth-child(2n + 2):hover div.absolute {
  opacity: 1;
  transform: rotate(-3deg) scale(1);
}


/* something */

.grid6.something {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.grid6.something .card {
  width: 100%;
  transition: ease-out 0.5s;
  aspect-ratio: 3/4;
  position: relative;
  cursor: pointer;
  background-color: var(--laranja);
  --bs-card-border-width: 0px;
  --bs-card-border-color: transparent;
  --bs-card-border-radius: 0px;
  --bs-card-box-shadow: none ;
  --bs-card-inner-border-radius: 0px;
}
.grid6.something img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.grid6.something .card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--laranja);
  opacity: 1;
  z-index: 1;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.grid6.something .card:hover::after {
  opacity: 0;
}
.grid6.something .card:nth-child(1), .grid6.something .card:nth-child(4),
.grid6.something .card:nth-child(8), .grid6.something .card:nth-child(11),
.grid6.something .card:nth-child(15), .grid6.something .card:nth-child(16) {
  transform:rotate(-4deg)
}
.grid6.something .card:hover {
  transform: rotate(6deg);
  transition: ease-out 0.5s;
}

.grid6.something .card::before {
  content: attr(data-number);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  font-size: 24px;
  font-weight: bold;
  color: var(--preto);
  z-index: 2;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.5s ease;
  padding-right: 12px;
  padding-top: 12px;
}

.grid6.something .card:hover::before {
  opacity: 0;
}


.modal {
  --bs-modal-width: 50vw;
  --bs-modal-padding: 0;
  transform: rotate(0deg);
  --bs-modal-border-color: transparent;
  --bs-modal-border-width: 0px;
  --bs-modal-color: white;
  background-color: transparent;
}
.modal-dialog {
  max-height: calc(100vh - 60px);
  margin: 30px auto;
}
.modal-content {
  border: 1px solid rgba(255,255,255,0.12) !important;
  background-color: rgba(30,30,32,0.92);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  color: white;
  overflow: hidden;
  max-height: calc(100vh - 60px);
}
.modal, .modal-dialog, .modal-content {
  border-radius: 12px;
}
.modal-body {
  border-radius: 0;
  padding: 0;
  overflow-y: auto;
}
/* QuickTime-style title bar */
.modal-titlebar {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(40,40,42,0.6);
  position: relative;
  z-index: 2;
}
.modal-titlebar .win-dots { display: flex; gap: 6px; flex-shrink: 0; }
.modal-titlebar .win-dot { width: 12px; height: 12px; border-radius: 50%; cursor: pointer; }
.modal-titlebar .wd-r { background: #ff5f57; }
.modal-titlebar .wd-y { background: #febc2e; }
.modal-titlebar .wd-g { background: #28c840; }
.modal-titlebar .modal-filename {
  flex: 1;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 44px; /* offset for traffic lights balance */
}
/* video area */
.modal-video-area {
  position: relative;
  width: 100%;
  background: #000;
}
.modal-video-area video {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 180px);
  object-fit: contain;
}
.smth-sound-btn {
  position: absolute;
  z-index: 10;
  top: 12px;
  left: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Pepi Regular';
  font-size: 22px;
  color: white;
  mix-blend-mode: difference;
  opacity: 0.7;
  transition: opacity 0.2s;
  padding: 0;
  line-height: 1;
}
.smth-sound-btn:hover {
  opacity: 1;
}
/* adaptive modal width based on video aspect ratio */
.modal-dialog.modal-fitted {
  --bs-modal-width: var(--modal-fit-width, 50vw);
}
/* info below video */
.modal-info {
  padding: 20px 24px;
}
.modal-info h4 {
  display: none;
}
.modal-info p {
  color: rgba(255,255,255,0.5);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}
/* hide default Bootstrap close button */
.modal button.btn-close {
  display: none;
}

.popup-inner {
  height: 100%;
  width: 100%;
}

#popup.is-open {
  opacity: 1;
  transform: translate(-50%,-50%) rotate(1deg);
  pointer-events: auto;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}


#popup-image,
#popup-video {
  position: absolute;
  top:50%;
  transform: translateY(-50%);
  right: 0;
  width: auto;
  opacity: 0;
  transition: opacity 0.5s ease;
  max-height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
}

#popup-image.show,
#popup-video.show {
  opacity: 1;
}

#popup-media-container {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  width: 50%;
  height: 100%;
}
#popup-media-container > div {
  width: 100%;
  max-width: 100%;
  max-height: 100%;
}





/* single */
.single-img {
  aspect-ratio: 16/9;
}
.scroll-image {
  position: absolute;
  top: 0;
  left: 50%;
  transform:  translateX(-50%);
  width: 25%;
  transition: width 0.3s;
}
.scroll-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.video-wrapper-16-9 {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.video-wrapper-16-9 iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
h3 {
  font-size: 96px;
  font-family: 'Pepi Bold';
  line-height: 1;
  margin: 0px;
  letter-spacing: -3px;
}
h4, h4 p {
  font-size: 32px;
  line-height: 1.2;
  margin: 0px;
}
h5, h5 p {
  font-size: 20px;
  margin: 0px;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.aspect-3x4 {
  aspect-ratio: 3/4;
  object-fit: cover;
}
.bloco-txtimg .grid2 img {
  width: 100%;
  height: auto;
  /* aspect-ratio: 3/4;
  object-fit: cover; */
}




.grid1 img {
  aspect-ratio: 16/9;
  object-fit: cover;
}
.bloco-txtimg .grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.bloco-txt {
  position: fixed;
  width: 100vw;
  height: 100dvh;
  z-index: 999;
  top: 0;
  right: 0;
  padding: 5rem 2rem;
  transform: translateX(100%);
  transition: transform 0.5s ease-in-out;
  cursor: e-resize;
}
.bloco-txt.abre {
  transform: translateX(0);
}
.bloco-txt p {
  margin-top: 0px;
}
.two-col {
  column-count: 2;
  column-gap: 40px;
}
#contato {
  min-height: 50svh;
  height: auto;
  background: rgba(25,26,28,0.95);
  backdrop-filter: blur(20px) saturate(180%) contrast(120%) brightness(110%);
  -webkit-backdrop-filter: blur(20px) saturate(180%) contrast(120%) brightness(110%);
  padding: 40px 20px calc(40px + env(safe-area-inset-bottom, 0px)) !important;
  margin: 0 !important;
}
#contato > .h-100 {
  height: auto !important;
  min-height: calc(50svh - 80px - env(safe-area-inset-bottom, 0px));
}
#contato > div {
  gap: 40px;
}
#contato h3 {
  font-size: 24px;
  letter-spacing: -0.3px;
  font-family: 'Pepi Regular';
  color: #E2E3E4;
}
#contato.footer-home {
  position: fixed;
  z-index: 999999;
  bottom: 0;
  left: 0;
  transform: translateY(100%);
  transition: transform 0.5s ease;
  cursor: s-resize;
}
#contato.footer-home.abre {
  transform: translateY(0);
}
#contato.footer-home a,
#contato.footer-home .email-link,
#contato.footer-home .email-link * {
  cursor: pointer;
  color: #E2E3E4;
}

.copy-success-tag {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translate(0) rotate(0);
    background: var(--azul);
    color: white;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 14px;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    white-space: nowrap;
    z-index: 9;
    opacity: 0;
    pointer-events: none;
}
.copy-success-tag.show {
    opacity: 1;
    transform: translate(-30%, -30%) rotate(-3deg);
}

a:focus {
  outline: none;
}


/* video */
#video-prewarm {
  position: fixed;
  left: -9999px; top: -9999px;
  width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
  /* Importante: NÃO usar display:none; queremos que o navegador carregue/execute */
}
#popup-media-container { position: relative; }
.video-overlay {
  position: absolute; inset: 0;
  background: #000;        /* ou um blur/gradient/imagem */
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px;
  opacity: 1; transition: opacity .25s ease;
  pointer-events: none;
}
.video-overlay.is-hidden { opacity: 0; }


.video-frame {
  position: relative;
}
.video-container {
  position: relative;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-color: transparent;
  cursor: pointer;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
}
#popup-media-container .video-container, #popup-media-container.video-container {
  background-color: rgba(1,1,1,0);
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
button.video-sound-btn {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 10;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Pepi Regular';
  font-size: 26px;
  color: white;
  mix-blend-mode: difference;
  opacity: 0.7;
  transition: opacity 0.2s;
  padding: 0;
  line-height: 1;
}
button.video-sound-btn:hover {
  opacity: 1;
}

@media (max-width: 1024px) {
  .modal {
    --bs-modal-width: 80vw;
  }
  #contato {
    height: auto;
  }
}

@media (max-width: 760px) {
  h5, h5 p {
    font-size: 15px;
  }
  .grid-projetos .grid3 {
    margin-bottom: 2rem;
    margin-top: 8px;
  }
  .grid-projetos .grid3 > div {
    grid-column: auto !important;
  }
  .listas.pv6 {
    padding-top: 3rem;
    padding-bottom: 5rem;
  }
  .linha-cliente .flex {
    flex-wrap: nowrap;
    overflow: hidden;
  }
  .linha-cliente .tit {
    position: relative;
    z-index: 1;
    white-space: nowrap;
  }
  .linha-cliente h2 {
    font-size: 20px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0px;
    font-family: 'Pepi Black';
    width: auto;
  }
  .linha-cliente {
    margin-top: 0px;
  }
  .linha-cliente p.mr4 {
    margin-right: 1rem;
  }
  .linha-cliente p {
    margin-top: 0px;
    margin-bottom: 0px;
  }
  .linha-cliente .cats {
    display: none;
  }
  .linha-cliente .tit {
    margin-left: auto;
    text-align: right;
  }
  .linha-cliente img {
    display: none;
  }
  .linha-cliente h2.w-50 {
    width: auto!important;
  }
  .grid6.something {
    padding: 20px;
    grid-template-columns: repeat(2, 1fr);
  }
  section.home {
    width: 400vw;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(12, 1fr);
    gap: 40px;
    padding: 20px;
  }
  #contato {
    padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px)) !important;
  }
  #contato > .h-100 {
    min-height: calc(50svh - 40px - env(safe-area-inset-bottom, 0px));
  }
  #contato h3 {
    font-size: 14px;
  }
  #contato h3.mh4 {
    margin: 0px 16px;
  }
  .true-glass-btn {
    padding: 4px 10px;
    font-size: 12px;
  }
  .btn {
    padding: 7px 12px 6px 12px;
    margin-right: 8px;
    font-size: 12px;
  }
  header.pr4 {
    padding-right: 16px;
  }
  header img.tiu {
    width: 32px!important;
  }
  header {
    padding: 0px 20px;
  }
  .grid3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .animated-text-pr {
    flex-direction: column;
    padding-left: 20px;
    padding-right: 20px;
  }
  .animated-text-pr .w-30, .animated-text-pr .w-70 {
    width: 100%;
    padding-left: 0px;
  }
  .animated-text-pr h5.pt5 {
    padding-top: 0px;
  }
  .categories {
    padding-top: 40px;
  }

  #popup {
    width: 90vw;
    height: 50dvh;
  }
  .popup-inner {
    flex-direction: column;
    padding: 32px;
  }
  #popup div.w-40, #popup img.w-50 {
    width: 100%!important;
  }

  #popup-content {
    font-size: 12px;
  }

  #popup-media-container {
    width: 100%;
    height: auto;
  }
  #popup-media-container > div {
    height: 100%;
    max-width: 100%;
    max-height: 100%;
  }

  .scroll-image {
    position: static;
    transform:  translateX(0);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-top: 40px;

  }
  .scroll-image img, .single-img {
    aspect-ratio: 3/4;
  }
  .scroll-image.mobi {
    display: block;
  }
  .scroll-image.desk {
    display: none;
  }

  h3 {
    font-size: 32px;
    letter-spacing: 0px;
  }
  h4, h4 p {
    font-size: 18px;
  }
  /* .single-img div.w-30 {
    display: none;
  }
  .single-img p.w-30 {
    width: 100%;
  } */
  .single-img div.w-25 {
    width: 100%!important;
  }
  .single-header div.flex{
    flex-direction: column;
  }
  .single-header h4.mh5 {
    margin: 0px;
  }

  #popup {
    width: 85vw;
    height: 85dvh;
  }

  .bloco-txtimg h4.w-50 {
    width: 100%!important;
    padding-left: 0px;
    padding: auto 2rem!important;
  }
  .mobi-none {
    display: none;
  }
  .desk-none {
    display: flex;
  }
  .bloco-txt div.flex.justify-between {
    flex-direction: column;
  }
  .bloco-txt .w-40.pr4, .bloco-txt .w-60.pl4 {
    padding-right: 0px;
    padding-left: 0px;
    width: 100%;
  }
  #contato h3.ano {
    display: none;
  }
  #contato .sociais {
    display: grid;
    grid-template-columns: auto auto 1fr auto auto;
    gap: 0 12px;
    width: 100%;
    align-items: end;
  }
  #contato .sociais a,
  #contato .sociais .email-link-container {
    margin: 0 !important;
  }
  #contato .sociais a h3,
  #contato .sociais div h3 {
    margin: 0;
    font-size: 14px;
  }
  /* email=1, newsletter=2, spacer=3(empty), instagram=4, linkedin=5 */
  #contato .sociais .email-link-container { grid-column: 1; }
  #contato .sociais a:nth-child(2) { grid-column: 2; }
  #contato .sociais a:nth-child(3) { grid-column: 4; text-align: right; }
  #contato .sociais a:nth-child(4) { grid-column: 5; text-align: right; }
  .bloco-txt .two-col {
    font-size: 12px;
  }

  .modal {
  --bs-modal-width: calc(100vw - 40px);
  }
}

/* ===== TOP BAR (logo only — blend mode) ===== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.4s ease;
  mix-blend-mode: difference;
}
.topbar > * {
  pointer-events: all;
}
.topbar-hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none !important;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.topbar-hidden > * {
  pointer-events: none !important;
}
.topbar-logo img {
  display: block;
}
.topbar-wordmark {
  font-family: 'Pepi Bold';
  font-size: 18px;
  letter-spacing: -0.3px;
  color: white;
  font-feature-settings: "liga" 0, "clig" 0, "calt" 0;
  -webkit-font-feature-settings: "liga" 0, "clig" 0, "calt" 0;
  font-variant-ligatures: no-common-ligatures no-contextual;
  text-decoration: none;
  line-height: 1;
}
.topbar-logo {
}

/* ===== i18n TOGGLE CONTAINER (separate from topbar to avoid blend) ===== */
.i18n-floating {
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 99999999;
  pointer-events: all;
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.i18n-floating.topbar-hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none !important;
}

/* ===== i18n TOGGLE — liquid glass ===== */
.i18n-toggle {
  position: relative;
  display: flex;
  border-radius: 20px;
  padding: 3px;
}
.i18n-btn {
  position: relative;
  z-index: 2;
  border: none;
  background: none;
  padding: 6px 14px;
  font-family: 'Pepi Regular';
  font-size: 12px;
  color: var(--preto);
  cursor: pointer;
  transition: color 0.3s ease, opacity 0.3s ease;
  text-transform: lowercase;
  letter-spacing: 0.5px;
  line-height: 1;
  opacity: 0.5;
}
.i18n-btn.active {
  opacity: 1;
}
.i18n-indicator {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.1, 1);
  z-index: 1;
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.15);
}

@media (max-width: 760px) {
  .i18n-btn {
    padding: 5px 11px;
    font-size: 11px;
  }
}

/* split text section below hero */
.split-text-section .flex {
  gap: 40px;
}
.split-text-section h5 {
  font-size: 18px;
  line-height: 1.5;
}
.split-text-section u {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
#brands-g1, #brands-g2 {
  display: inline;
}
.split-text-section .w-50:last-child h5 {
  min-height: 8em;
}

@media (max-width: 760px) {
  .split-text-section .flex {
    flex-direction: column;
    gap: 24px;
  }
  .split-text-section .w-50 {
    width: 100% !important;
  }
  .split-text-section .w-50:last-child h5 {
    min-height: 14em;
  }
}

/* how section — centered block like random.studio */
.how-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10vh 20px;
  min-height: 40vh;
}
.how-section h4 {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.5;
  font-family: 'Pepi Regular';
  max-width: 650px;
  margin: 0;
}
.how-trusted {
  margin-top: 20px;
  font-size: 18px;
  font-family: 'Pepi Regular';
  opacity: 0.4;
}
.how-rotate {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.trusted-brands {
}
@media (max-width: 760px) {
  .how-section {
    padding: 8vh 24px;
    min-height: 30vh;
  }
}

/* editorial grid — random.studio style */
.editorial-grid {
  position: relative;
  padding: 8vh 20px 5vh;
}
.eg-item {
  position: relative;
  margin-bottom: 15vh;
}
.eg-item:last-child {
  margin-bottom: 8vh;
}
.eg-item a {
  display: block;
  text-decoration: none;
}
.eg-item img,
.eg-item .vimeo-embed {
  display: block;
  max-width: 100%;
  max-height: 60vh;
  height: auto;
  width: auto;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.eg-item a:hover img,
.eg-item a:hover .vimeo-embed {
  transform: scale(1.04);
}
.eg-item a:hover .eg-caption {
  opacity: 1;
}
.eg-overlay-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'Pepi Regular';
  font-size: clamp(14px, 1.5vw, 18px);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  pointer-events: none;
  background: rgba(25,26,28,0.15);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.eg-caption {
  margin-top: 16px;
  font-family: 'Pepi Regular';
  line-height: 1.1;
  color: var(--preto);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}
.eg-caption strong,
.eg-caption a {
  font-family: 'Pepi Regular';
  font-size: 24px;
  display: block;
  letter-spacing: -0.3px;
}
.eg-item a:hover .eg-caption {
  opacity: 1;
}
.eg-caption span {
  font-size: 15px;
  opacity: 0.4;
  display: block;
  margin-top: 8px;
}

/* 3 scattered positions — asymmetric with generous negative space */
.eg-pos-1 {
  width: 48%;
  margin-left: 5%;
}
.eg-pos-2 {
  width: 42%;
  margin-left: 52%;
}
.eg-pos-3 {
  width: 50%;
  margin-left: 22%;
}

@media (max-width: 760px) {
  .editorial-grid {
    padding: 4vh 20px 3vh;
  }
  .eg-item {
    margin-bottom: 8vh;
  }
  .eg-pos-1, .eg-pos-2, .eg-pos-3 {
    width: 80%;
  }
  .eg-pos-1 {
    margin-left: 0;
  }
  .eg-pos-2 {
    margin-left: 20%;
  }
  .eg-pos-3 {
    margin-left: 10%;
  }
}

/* project filter — porto rocha style dropdown */
.project-filter {
  position: relative;
  padding-left: 20px !important;
  padding-right: 20px !important;
}
.proj-list {
  padding-left: 20px !important;
  padding-right: 20px !important;
}
.filter-wrapper {
  position: relative;
  max-width: 420px;
}
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 16px;
  padding: 16px 22px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.filter-bar:focus-within {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.35);
}
.filter-arrow {
  font-size: 18px;
  opacity: 0.4;
  transition: transform 0.3s ease;
}
.filter-wrapper.is-open .filter-arrow {
  transform: rotate(90deg);
}
#filter-input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-family: 'Pepi Regular';
  font-size: 18px;
  color: var(--preto);
}
#filter-input::placeholder {
  color: rgba(25,26,28,0.45);
}

/* dropdown list */
.filter-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(30,30,30,0.85);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 8px 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s cubic-bezier(0.4,0,0.1,1), opacity 0.2s ease;
  z-index: 100;
}
.filter-wrapper.is-open .filter-dropdown {
  max-height: 400px;
  opacity: 1;
}
.filter-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 24px;
  border: none;
  background: none;
  color: rgba(255,255,255,0.6);
  font-family: 'Pepi Regular';
  font-size: 17px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-option:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.filter-option.is-active {
  color: #fff;
  font-family: 'Pepi Medium';
}

/* project list — horizontal lines with floating hover image */
.proj-list {
  padding-bottom: 6rem;
}
.proj-row {
  display: flex;
  align-items: baseline;
  position: relative;
  padding: 14px 0;
  border-bottom: 1px solid rgba(25,26,28,0.06);
  text-decoration: none;
  color: var(--preto);
  transition: all 0.3s ease;
}
.proj-row:first-child {
  border-top: 1px solid rgba(25,26,28,0.06);
}
.proj-row:hover {
  padding-left: 8px;
}
.proj-year {
  font-size: 13px;
  opacity: 0.3;
  width: 50px;
  flex-shrink: 0;
}
.proj-name {
  font-family: 'Pepi Regular';
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1;
  margin: 0;
  flex: 1;
}
.proj-title {
  font-size: 14px;
  opacity: 0.4;
  margin-left: auto;
  padding-left: 20px;
  white-space: nowrap;
}
.proj-cat {
  font-size: 13px;
  opacity: 0.25;
  padding-left: 20px;
  white-space: nowrap;
}

/* floating hover image */
.proj-hover-img {
  position: absolute;
  right: 15%;
  top: 50%;
  transform: translateY(-50%) rotate(0deg) scale(0.85);
  width: 180px;
  height: auto;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.proj-hover-img img {
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.proj-row:nth-child(odd):hover .proj-hover-img {
  opacity: 1;
  transform: translateY(-50%) rotate(3deg) scale(1);
}
.proj-row:nth-child(even):hover .proj-hover-img {
  opacity: 1;
  transform: translateY(-50%) rotate(-3deg) scale(1);
}

/* hidden by filter */
.proj-row.is-hidden {
  display: none;
}

@media (max-width: 760px) {
  .filter-wrapper {
    max-width: 100%;
  }
  .proj-row {
    flex-wrap: nowrap;
    overflow: hidden;
  }
  .proj-name {
    font-size: clamp(15px, 4.5vw, 20px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }
  .proj-title {
    font-size: 13px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
  }
  .proj-cat {
    display: none;
  }
  .proj-hover-img {
    display: none;
  }
  .proj-year {
    width: 45px;
  }
}
