/* ============================================
   ANTIGRAVITY – Design System
   Colors: #0511F2, #000000, #FFFFFF
   Font: Jost (Light 300, Bold 700)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&family=Junge&display=swap');

/* ---------- Variables & Design System ---------- */
:root {
  /* Colors */
  --blue: #0511F2;
  --black: #000000;
  --white: #FFFFFF;
  --accent: var(--blue);

  /* Fonts */
  --font: 'Jost', sans-serif;
  --font-serif: 'Junge', serif;

  /* Layout */
  --container-max-width: 1440px;
  --container-padding: clamp(1.5rem, 5vw, 4rem);
  --section-spacing: clamp(5rem, 12vh, 12rem);

  /* Z-index Scale */
  --z-base: 1;
  --z-section: 10;
  --z-header: 1000;
  --z-overlay: 2000;
  --z-modal: 3000;

  --nav-border: rgba(255, 255, 255, 0.12);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  overflow-x: hidden;
  /* Prevention of Scroll Horizontal */
}

/* Container Master */
.container {
  max-width: var(--container-max-width);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  pointer-events: none;
  /* so it doesn't block clicks */
}

/* allow clicks to pass to the nav */
.hero>* {
  pointer-events: auto;
}

/* ---------- Navigation ---------- */
@media (min-width: 769px) {
  .nav {
    position: fixed;
    z-index: 1000;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    height: 80px;
    background: rgba(0, 0, 0, 0.50);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0 10px;
    border: 1px solid var(--nav-border);
    border-radius: 100px;
    box-shadow: none;
    transition: all 1.15s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: height, padding, box-shadow;
  }

  /* ── Compact Pill State (scroll down) ── */
  .nav.is-compact {
    height: 60px;
    padding: 0 6px;
    background: rgba(0, 0, 0, 0.65);
    border-color: rgba(255, 255, 255, 0.20);
    box-shadow:
      0 4px 30px rgba(0, 0, 0, 0.35),
      0 0 0 0.5px rgba(255, 255, 255, 0.08);
  }

  /* Hide inactive links in compact mode */
  .nav.is-compact a:not(.active) {
    max-width: 0;
    padding-left: 0;
    padding-right: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
  }

  /* Active link stays visible and centered */
  .nav.is-compact a.active {
    opacity: 1;
  }

  /* ── Hover Expansion when compact ── */
  .nav.is-compact:hover {
    height: 80px !important;
    padding: 0 10px !important;
    background: rgba(0, 0, 0, 0.50) !important;
    border-color: var(--nav-border) !important;
    box-shadow: none !important;
  }

  .nav.is-compact:hover a:not(.active) {
    max-width: 200px !important;
    padding-left: 42px !important;
    padding-right: 42px !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    overflow: visible !important;
  }

  /* Restore language switcher position on hover if header is compact */
  .nav.is-compact:hover+.lang-switcher,
  .nav.is-compact:hover~.lang-switcher {
    margin-top: 24px !important;
  }

  .nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 42px;
    max-width: 200px;
    font-family: var(--font);
    font-weight: 300;
    font-size: 19.5px;
    letter-spacing: 0.01em;
    color: var(--white);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    transition:
      color 0.25s ease,
      opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
      max-width 1.15s cubic-bezier(0.16, 1, 0.3, 1),
      padding 1.15s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, max-width, padding;
  }

  .nav a:hover {
    color: rgba(255, 255, 255, 0.7);
  }

  /* Active state – blue text + underline */
  .nav a.active {
    color: var(--blue);
    font-weight: 700;
  }

  .nav a.active::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--blue);
    border-radius: 2px;
  }

}

/* ---------- Logo ---------- */
.hero-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-logo img {
  width: 160px;
  height: auto;
  /* Entrance animation */
  opacity: 0;
  animation: logoReveal 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

/* Animated Words */
.hero-words {
  position: absolute;
  top: calc(50% + 130px);
  left: calc(50% + 8px);
  transform: translateX(-50%);
  height: 24px;
  width: 180px;
  overflow: hidden;
  text-align: left;
  opacity: 0;
  animation: navReveal 0.7s ease 0.6s forwards;
}

/* Subpage Header (shorter height) */
.hero.hero-subpage {
  height: 240px;
  min-height: auto;
}

#typewriter-text {
  font-family: var(--font);
  font-weight: 300;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  margin-right: 4px;
}

.typewriter-cursor {
  font-family: var(--font);
  font-weight: 300;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  animation: blink 1s step-end infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ---------- Animations ---------- */
@keyframes logoReveal {
  from {
    opacity: 0;
    transform: scale(0.85);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Nav fade-in */
.nav {
  opacity: 0;
  animation: navReveal 0.7s ease 0.1s forwards;
}

@keyframes navReveal {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 24px;
  background-color: var(--black);
}

/* ---------- Video Section ---------- */
.video-section {
  width: 100%;
  height: 200vh;
  padding: 0;
  display: block;
  position: relative;
  z-index: 1;
  background: transparent;
}

.video-sticky-container {
  width: 100%;
  height: 100vh;
  /* Fallback */
  height: 100dvh;
  /* Imersão no Vídeo: Dynamic Viewport Height */
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* The element that receives the scroll-scale transform */
.video-wrapper {
  width: 100vw;
  height: 100vh;
  max-width: none;
  transform-origin: center center;
  transform: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

/* Responsive container - fills parent */
.video-frame {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: none;
}

.video-frame video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  cursor: none;
}

.video-wrapper.is-fullscreen .video-frame,
.video-wrapper.is-fullscreen .video-frame video {
  cursor: auto;
}

/* Centered Play Button */
.play-btn-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  /* clicks pass through to the video frame */
  z-index: 10003;
  opacity: 0;
  /* default hidden, shown via JS */
  transform: translate(-50%, -50%) scale(0.5);
  /* initial scale for reveal */
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.play-btn-center svg {
  width: 26px;
  height: 26px;
  margin-left: 4px;
  /* optical center for triangle */
}

/* overlay-close is now styled at the bottom along with .vid-close-btn */

.close-x {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#overlay-close:hover .close-x {
  transform: scale(1.3) rotate(180deg);
}


/* ---------- Metodo Biehl Studio Section ---------- */
.metodo-section {
  position: relative;
  z-index: 2;
  margin-top: calc(-100vh - 2px);
  /* Faz a cortina deslizar corretamente por cima enquanto video-section termina */
  /* Slides over the video section */
  width: 100%;
  background: var(--black);
  padding: 220px 0 220px;
  /* spacing between video and this section */
  display: flex;
  justify-content: center;
}

.metodo-container {
  max-width: var(--container-max-width);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  display: flex;
  justify-content: center;
  gap: 60px;
  align-items: center;
}

.metodo-text-col {
  flex: 0 0 38%;
  /* Fixed width proportion for text (the red box area) */
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Legacy — kept for backward compat but no longer used in index */
.metodo-purpose-title {
  font-family: 'Junge', serif;
  font-weight: 400;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--white);
  margin: 0 0 8px;
  display: block;
}

/* ── Logo Block replacing "Propósito/Purpose" title ─────────── */
.metodo-logo-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 8px;
}

.metodo-logo-img {
  width: 110px;
  height: auto;
  display: block;
  /* logo.webp is already white on black, but force white just in case */
  filter: brightness(0) invert(1);
}

.metodo-logo-letters {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: clamp(0.85rem, 1.6vw, 1.2rem);
  letter-spacing: 0.42em;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  display: inline-block;
  /* padding-left nudges the text to align with the logo mark */
  padding-left: 2px;
}

.metodo-text-col p {
  font-family: var(--font);
  font-weight: 300;
  font-size: 1.5rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  letter-spacing: 0.02em;
}

.metodo-video-col {
  flex: 0 0 32%;
  /* Fixed width proportion for video */
  max-width: 600px;
  /* Sensible max width */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.metodo-video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.metodo-video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  cursor: pointer;
}

.metodo-video-wrapper:hover .play-btn-center {
  opacity: 0.6;
  transform: translate(-50%, -50%) scale(1.08);
}

/* Responsive adjustment for Metodo section */

/* Global hidden state for mobile-only elements */
.mobile-cases-big-btn {
  display: none;
}

/* ---------- Cases Section ---------- */
.cases-section {
  position: relative;
  z-index: 2;
  width: 100%;
  background: var(--black);
  padding: 80px 0 40px;
  overflow: hidden;
}

.cases-title,
.cases-title-static {
  font-family: var(--font);
  font-weight: 700;
  /* fluid size: fills 100vw regardless of screen width */
  font-size: clamp(80px, 22vw, 320px);
  line-height: 0.9;
  letter-spacing: 0.05em;
  color: var(--white);
  white-space: nowrap;
  /* stretch text to exactly fill the viewport width */
  width: 100%;
  text-align: center;
  /* scale trick to guarantee 100% width fill */
  display: block;
  will-change: auto;
}

/* ---------- Cases Grid ---------- */
.cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: var(--container-max-width);
  width: 100%;
  margin: 56px auto 0;
  padding: 0 var(--container-padding);
}

.case-block {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  background: var(--nav-border);
}

.case-block-full {
  grid-column: 1 / -1;
  aspect-ratio: 2 / 1;
}

/* ---------- Cases Page List (Isolated for cases.html) ---------- */
.cases-page-list {
  display: flex;
  flex-direction: column;
  gap: 60px;
  width: min(94%, 1308px);
  /* Exact max-width requested */
  margin: 56px auto 120px;
}

.case-page-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  color: var(--white);
  cursor: pointer;
}

.case-page-media-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1308 / 639;
  /* Exact requested ratio */
  border-radius: 20px;
  overflow: hidden;
  background: var(--nav-border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.case-page-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.4s ease;
}

.case-page-item.is-hovered .case-page-thumb {
  filter: blur(8px) brightness(0.5);
  /* 30% blur + darken */
}

.case-page-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 60px 60px 35px 60px;
  /* Pushed the text down by 25px */
  pointer-events: none;
  z-index: 2;
}

.case-page-info h3 {
  font-family: var(--font);
  font-weight: 300;
  font-size: 36px;
  letter-spacing: 0.02em;
  color: var(--white);
  margin: 0;
}

.case-page-hover-video-container {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 720px;
  /* Floating preview size (50% larger than 480px) */
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 15;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.case-page-item.is-hovered .case-page-hover-video-container {
  opacity: 1;
}

.case-page-hover-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-page-info h2 {
  font-family: var(--font);
  font-weight: 500;
  font-size: 2rem;
  margin: 0;
}

/* Rive Animation Container */
.cases-rive-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 90px;
  margin-bottom: 90px;
}

#rive-canvas,
#logos-canvas,
#thanks-canvas,
#case-rive-canvas {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

#rive-canvas {
  width: min(1800px, 90%);
  height: 1000px;
  cursor: pointer;
  display: block;
  background: transparent;
}

/* ── Section 5 – Empresas impactadas ─────────────────────────── */
.logos-section {
  position: relative;
  z-index: 2;
  padding: 0 0 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  background-color: var(--black);
}

.logos-title {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: clamp(0.9rem, 1.5vw, 1.4rem);
  color: #ffffff;
  text-align: center;
  letter-spacing: 0.02em;
  margin-bottom: 0;
}

.logos-rive-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#logos-canvas {
  width: min(2100px, 95%);
  height: 750px;
  display: block;
  background: transparent;
}

/* ── Section 6 – About the Owner ─────────────────────────────── */
.owner-quote-section {
  position: relative;
  z-index: 2;
  padding: 100px 5%;
  background-color: #000;
  color: #fff;
  display: flex;
  justify-content: center;
}

.owner-container {
  max-width: var(--container-max-width);
  width: 100%;
  margin: 0 auto;
  padding: 40px var(--container-padding);
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}

.owner-photo-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.owner-photo {
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: cover;
  margin-bottom: 15px;
  filter: grayscale(100%) contrast(1.1);
}

.owner-name {
  font-family: 'Junge', serif;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  opacity: 0.8;
  margin: 0;
}

.owner-text-col {
  display: flex;
  flex-direction: column;
  padding-top: 10px;
}

.quote-text-container {
  display: flex;
  gap: 20px;
}

.quote-mark {
  font-family: 'Junge', serif;
  font-size: 4.5rem;
  line-height: 0.8;
  color: #444;
  margin-top: 0;
}

.quote-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.quote-paragraphs p {
  font-family: 'Junge', serif;
  font-size: 1.4rem;
  line-height: 1.6;
  font-weight: 400;
  margin: 0;
  color: #cccccc;
  letter-spacing: 0.03em;
}



.case-block video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 40px;
  pointer-events: none;
}

.case-info h3 {
  font-family: var(--font);
  font-weight: 300;
  font-size: 32px;
  letter-spacing: 0.02em;
  color: var(--white);
  margin: 0;
}

/* ---------- Responsive ---------- */

/* ── Section 7 – Footer ──────────────────────────────────────── */
.footer {
  padding: 100px 5% 60px;
  background-color: var(--black);
  color: var(--white);
  display: flex;
  justify-content: center;
}

.footer-container {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.footer-top-row {
  position: relative;
}

.footer-top-row,
.footer-content-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr;
  gap: 40px;
  align-items: start;
}

.footer-col-header h3 {
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 20px 0;
  letter-spacing: 0.02em;
}

.back-to-top {
  position: absolute;
  right: 0;
  top: 0;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.back-to-top:hover {
  opacity: 1;
}

.footer-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.4);
  margin: 0 0 40px 0;
  width: 100%;
}

.footer-col-body.logo-col {
  display: flex;
  align-items: flex-start;
}

.footer-logo {
  max-width: 80px;
  height: auto;
}

.footer-col-body.links-col,
.footer-col-body.contact-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-col-body a {
  font-family: var(--font);
  color: #b0b0b0;
  text-decoration: none;
  font-weight: 300;
  font-size: 1.05rem;
  transition: color 0.3s ease;
}

.footer-col-body a:hover {
  color: var(--white);
}

/* Center middle 3 columns (Menu, Social, Contato) */
/* Align all columns (Menu, Social, Contato) to the left for consistent spacing */
.footer-top-row .footer-col-header:nth-child(2),
.footer-top-row .footer-col-header:nth-child(3),
.footer-top-row .footer-col-header:nth-child(4),
.footer-content-row .links-col,
.footer-content-row .contact-col {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Footer Column Placements */
.footer-content-row .logo-col {
  grid-column: 1;
}

.footer-content-row .links-col:nth-of-type(2) {
  grid-column: 2;
}

.footer-content-row .links-col:nth-of-type(3) {
  grid-column: 3;
}

.footer-content-row .contact-col {
  grid-column: 4;
}

.footer-bottom-row {
  grid-column: 5;
  grid-row: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  margin-top: 0;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  padding: 16px 24px 16px 36px;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.1rem;
  transition: border-color 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.footer-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--blue);
  transform: translateX(-101%);
  transition: transform 0.66s cubic-bezier(0.8, 0, 0.4, 1);
  z-index: -1;
  border-radius: 100px;
}

@media (min-width: 1025px) {
  .footer-cta:hover::before {
    transform: translateX(0);
  }
}

.footer-cta:hover {
  border-color: rgba(255, 255, 255, 0.7);
}

.cta-arrow-box {
  background-color: var(--blue);
  width: 48px;
  height: 48px;
  border-radius: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: width 0.66s cubic-bezier(0.8, 0, 0.4, 1), transform 0.3s ease;
}

.footer-cta:hover .cta-arrow-box {
  transform: translateX(4px);
  width: 80px;
}

.cta-arrow-box svg {
  transition: transform 0.66s cubic-bezier(0.8, 0, 0.4, 1);
}

.footer-cta:hover .cta-arrow-box svg {
  transform: rotate(360deg);
}

.footer-cta-whatsapp:hover .cta-whatsapp-box svg {
  transform: none;
  /* Do not rotate the WhatsApp icon */
}

.cta-whatsapp-box {
  background-color: transparent;
  /* Just the white icon */
  width: 24px;
  height: 24px;
}

.footer-cta:hover .cta-whatsapp-box {
  width: 24px;
  transform: translateX(4px) scale(1.1);
}



/* ---------- Case Detail Pages ---------- */
.case-detail-hero {
  padding: 80px 5% 40px;
  text-align: center;
}

.case-detail-hero h1 {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 10px;
}

.case-detail-hero h2 {
  font-family: var(--font);
  font-weight: 300;
  font-size: clamp(1.2rem, 3vw, 2rem);
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

/* --- Case Ticto Spacing --- */
.hero.hero-ticto {
  height: auto;
  padding-top: 120px;
  padding-bottom: 40px;
}

.ticto-rive-section {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 5% 100px;
}

#ticto-canvas {
  width: min(100%, 1400px);
  height: 750px;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  outline: none;
}

@media (max-width: 768px) {
  .hero.hero-ticto {
    padding-top: 30px;
    padding-bottom: 10px;
  }

  .ticto-rive-section {
    padding: 0 5% 20px;
  }

  #ticto-canvas {
    height: 350px;
  }
}

.case-detail-text {
  display: flex;
  justify-content: center;
  padding: 40px 5% 80px;
}

.case-text-container {
  max-width: 800px;
  text-align: center;
}

.case-text-container p {
  font-family: 'Junge', serif;
  font-size: 1.4rem;
  line-height: 1.6;
  color: #cccccc;
  margin: 0 0 16px 0;
}

.case-detail-rive {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 40px 0;
}

.case-rive-wrapper {
  width: min(94%, 1800px);
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

#case-rive-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.case-detail-video {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 60px 0 120px;
}

.yt-shorts-wrapper {
  position: relative;
  width: min(90%, 400px);
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.yt-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: opacity 0.3s ease;
}

.yt-iframe-container {
  width: 100%;
  height: 100%;
}

.yt-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}


/* ---------- Custom Native Video Controls ---------- */
/* Hide Chrome/Edge native video controls except the timeline/progress bar  */
.custom-video::-webkit-media-controls-play-button,
.custom-video::-webkit-media-controls-current-time-display,
.custom-video::-webkit-media-controls-time-remaining-display,
.custom-video::-webkit-media-controls-mute-button,
.custom-video::-webkit-media-controls-toggle-closed-captions-button,
.custom-video::-webkit-media-controls-volume-slider,
.custom-video::-webkit-media-controls-fullscreen-button,
.custom-video::-internal-media-controls-overflow-button {
  display: none !important;
}

/* Also eliminate any extra padding left over by the timestamp in some Chromium browsers */
.custom-video::-webkit-media-controls-panel {
  padding-bottom: 0px !important;
}

/* Video Expand & Close Buttons */
.vid-expand-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  padding: 8px 14px;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  z-index: 50;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.custom-vid-wrapper:hover .vid-expand-btn,
.metodo-video-wrapper:hover .vid-expand-btn {
  opacity: 1;
  transform: translateY(0);
}

.vid-expand-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.vid-expand-btn svg {
  width: 14px;
  height: 14px;
}

.vid-close-btn,
#overlay-close {
  position: fixed;
  top: 40px;
  right: 40px;
  width: 54px;
  height: 54px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: none;
  /* Handled by JS or :fullscreen */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100000;
  /* Super high to ensure it's on top of everything */
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  padding: 0;
  color: white;
}

.vid-close-btn:hover,
#overlay-close:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1) rotate(90deg);
}

.vid-close-btn svg,
#overlay-close svg {
  width: 24px;
  height: 24px;
  pointer-events: none;
}

/* Fullscreen Behavior */
.custom-vid-wrapper:fullscreen,
.metodo-video-wrapper:fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #000 !important;
  overflow: hidden !important;
}

.custom-vid-wrapper:fullscreen .custom-video,
.metodo-video-wrapper:fullscreen #metodo-video-player {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  max-width: none !important;
  max-height: none !important;
  background: #000 !important;
}

.custom-vid-wrapper:fullscreen .vid-close-btn,
.metodo-video-wrapper:fullscreen .vid-close-btn,
.video-wrapper.is-fullscreen #overlay-close {
  display: flex !important;
}

.custom-vid-wrapper:fullscreen .vid-expand-btn,
.metodo-video-wrapper:fullscreen .vid-expand-btn,
.video-wrapper.is-fullscreen .vid-expand-btn {
  display: none !important;
}

/* Mobile: hide expand button on hero reel, show static centered play icon */
@media (max-width: 768px) {
  .vid-expand-btn {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    /* 40% smaller on mobile */
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    font-size: 8px;
    gap: 5px;
  }

  .vid-expand-btn svg {
    width: 9px;
    height: 9px;
  }

  /* Hide the expand button specifically on the hero reel video */
  .video-frame>.vid-expand-btn {
    display: none !important;
  }

  /* Show static centered play icon on hero reel video */
  .video-frame>.play-btn-center {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 64px !important;
    height: 64px !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    pointer-events: none;
  }
}

/* Hide title and other outside elements when parent is in fullscreen */
:not(:fullscreen) .vid-close-btn {
  display: none !important;
}

/* ---------- Veja Mais Projetos ---------- */
.more-projects-section {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 5% 120px;
  background: transparent;
}

.more-projects-container {
  width: min(100%, 1400px);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.more-projects-title {
  font-family: var(--font, 'Jost', sans-serif);
  font-weight: 300;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--white, #ffffff);
  margin: 0;
  text-align: left;
  letter-spacing: 0.02em;
}

.more-projects-carousel-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.mp-arrow {
  flex: 0 0 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: var(--white, #fff);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  outline: none;
}

.mp-arrow:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

.mp-arrow:active {
  transform: scale(0.95);
}

.mp-arrow svg {
  width: 24px;
  height: 24px;
}

.more-projects-list {
  flex: 1;
  min-width: 0;
  /* Important for flex children scrolling */
  display: flex;
  gap: 24px;
  overflow-x: hidden;
  /* JS perfectly manages drag so we disable conflicting native scroll */
  position: relative;
  /* Fixes JS offsetLeft calculations for child cards */
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
  padding: 12px 4px;
  /* padding for hover box-shadow bleeding */
  cursor: grab;
  scroll-behavior: auto !important;
  /* CRITICAL: prevents vibration when script manipulates scrollLeft */
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: pan-y;
  /* Allow vertical native scroll. JS will control horizontal drag */
}

.more-projects-list:active {
  cursor: grabbing;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.more-projects-list::-webkit-scrollbar {
  display: none;
}

.more-project-item {
  flex: 0 0 calc(33.333% - 16px);
  /* 3 items layout */
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  background: #111;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.06);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .more-project-item:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.2);
  }
}

.more-project-media-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
}

.more-project-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  transition: filter 0.5s ease, transform 0.5s ease;
}

@media (min-width: 769px) {
  .more-project-card.is-hovered .more-project-thumb {
    filter: blur(12px) brightness(0.4);
    transform: scale(1.1);
  }
}

.more-project-hover-video-container {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 85%;
  /* Scaled for the smaller carousel card */
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

@media (min-width: 769px) {
  .more-project-card.is-hovered .more-project-hover-video-container {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.more-project-hover-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.more-project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  z-index: 5;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

@media (min-width: 769px) {
  .more-project-card.is-hovered .more-project-info {
    opacity: 0.5;
    /* Fade text slightly to favor the video */
  }
}

.more-project-info h3 {
  font-family: var(--font);
  font-weight: 300;
  font-size: 20px;
  color: #fff;
  margin: 0;
}

@media (max-width: 1024px) {
  .more-project-item {
    flex: 0 0 calc(50% - 12px);
  }
}

@media (max-width: 768px) {
  .more-projects-list {
    gap: 16px;
    padding: 12px 16px;
  }

  .more-project-item {
    flex: 0 0 75%;
    /* On mobile, cards should be larger for easier visibility */
  }
}



/* ---------- Language Switcher ---------- */
@media (min-width: 769px) {
  .lang-switcher {
    position: fixed;
    top: 32px;
    right: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    background: rgba(0, 0, 0, 0.50);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--nav-border);
    border-radius: 100px;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: none;
  }

  .lang-switcher:hover {
    background: rgba(0, 0, 0, 0.65);
    border-color: rgba(255, 255, 255, 0.20);
    box-shadow:
      0 4px 30px rgba(0, 0, 0, 0.35),
      0 0 0 0.5px rgba(255, 255, 255, 0.08);
  }

  .lang-switcher a {
    font-family: -apple-system, BlinkMacSystemFont, "San Francisco", "Helvetica Neue", sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.3s ease;
  }

  .lang-switcher a:hover {
    color: rgba(255, 255, 255, 0.85);
  }

  .lang-switcher a.active {
    color: #fff;
    font-weight: 600;
    /* Little dot below or just contrast */
  }

  /* Subtle separator */
  .lang-switcher .lang-sep {
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 6px;
  }


}

/* ---------- Contact Page Hero ---------- */
.contact-page-hero {
  width: 100%;
  min-height: 48vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 20px 40px;
  background: var(--black);
}

.contact-page-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* Aligns everything to the left of the block */
  text-align: left;
}

.contact-page-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 2.22rem;
  color: var(--white);
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: -0.02em;
}

.title-line {
  display: block;
}

/* pt sizes - matching visual widths from reference */
.title-pt .line-top {
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  font-weight: 300;
}

.title-pt .line-bottom {
  font-size: clamp(3rem, 5.5vw, 5.2rem);
  font-weight: 400;
}

/* en sizes */
.title-en .line-top {
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
  font-weight: 300;
}

.title-en .line-bottom {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  font-weight: 400;
}





.contact-page-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-page-email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: opacity 0.3s ease;
}

.contact-page-email span {
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.8);
  padding-bottom: 1px;
}


.contact-page-email svg {
  color: var(--white);
  text-decoration: none;
  /* Icon shouldn't be underlined */
}

.contact-page-email:hover {
  opacity: 0.7;
}

.contact-page-ou {
  font-family: var(--font);
  font-weight: 300;
  font-size: 1rem;
  color: var(--white);
  margin: 0 5px;
  opacity: 0.7;
}


.contact-page-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font);
  font-weight: 400;
  font-size: 0.85rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
}


.contact-page-whatsapp .wa-icon {
  width: 18px;
  height: 18px;
  transition: fill 0.4s ease;
}

.contact-page-whatsapp:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.contact-page-whatsapp:hover .wa-icon path {
  fill: var(--black);
}


/* ---------- Philosophy Section (Scroll Reveal) ---------- */
.philosophy-section {
  padding: 180px 20px;
  /* Increased padding */
  margin-top: 10vh;
  /* Adds breathing room from hero */
  background: var(--black);
  display: flex;
  justify-content: center;
}

.philosophy-inner p {
  font-family: var(--font);
  font-weight: 300;
  font-size: clamp(1.8rem, 3.8vw, 2.7rem);
  line-height: 1.15;
  margin-bottom: 4rem;
  color: var(--white);
}

.reveal-word {
  opacity: 0.15;
  display: inline-block;
  margin-right: 0.28em;
  will-change: opacity;
}


/* ============================================================
   DEFINITIVO MOBILE OVERRIDES (Correct Centering & Vertical Lang)
   ============================================================ */
@media screen and (max-width: 768px) {

  /* Prevent horizontal scroll */
  html,
  body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  /* 0. Global Reset for mobile consistency */
  * {
    box-sizing: border-box !important;
  }

  /* 1. Navigation Pill - Centered & Premium */
  .nav,
  body nav.nav,
  nav.nav,
  .hero .nav {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    position: fixed !important;
    top: 15px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    min-width: 250px !important;
    max-width: 80% !important;
    height: 52px !important;
    padding: 0 15px !important;
    background: rgba(0, 0, 0, 0.95) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 100px !important;
    z-index: 10000 !important;
    gap: 8px !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .nav a {
    font-size: 13px !important;
    padding: 0 8px !important;
    height: 100% !important;
    /* Make links full height of nav pill */
    opacity: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    text-decoration: none !important;
    position: relative !important;
  }

  .nav a.active {
    color: var(--blue) !important;
    font-weight: 700 !important;
  }

  /* Restore the blue indicator like desktop - Fixed positioning */
  .nav a.active::after {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    bottom: 6px !important;
    /* Adjusted to sit at bottom of nav pill */
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 14px !important;
    height: 2px !important;
    background: var(--blue) !important;
    border-radius: 2px !important;
  }

  /* 2. Language Switcher - VERTICAL STACK on Right */
  .lang-switcher,
  body .lang-switcher,
  .hero .lang-switcher {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    position: fixed !important;
    top: 41px !important;
    /* center of nav: top(15) + height(52)/2 = 41px */
    transform: translateY(-50%) !important;
    right: 12px !important;
    left: auto !important;
    width: 38px !important;
    height: 52px !important;
    padding: 0 !important;
    background: rgba(0, 0, 0, 0.85) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    z-index: 10001 !important;
    gap: 2px !important;
  }

  .lang-switcher a {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-align: center !important;
    width: 100% !important;
    padding: 2px 0 !important;
    opacity: 0.5 !important;
    color: #fff !important;
  }

  .lang-switcher a.active {
    opacity: 1 !important;
    color: #fff !important;
  }

  .lang-switcher .lang-sep {
    display: none !important;
  }

  /* 3. Metodo Section - Video 9x16 Top, Text Left Bottom */
  .metodo-section {
    padding: 60px 0 !important;
    overflow: hidden !important;
  }

  .metodo-container {
    flex-direction: column !important;
    gap: 32px !important;
    align-items: flex-start !important;
    /* Text alignment below */
    padding: 0 24px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .metodo-video-col {
    width: 100% !important;
    max-width: 300px !important;
    /* Portrait width */
    margin: 0 auto !important;
    /* Center the vertical video block */
    flex: none !important;
    aspect-ratio: 9 / 16 !important;
    height: auto !important;
  }

  .metodo-video-wrapper {
    width: 100% !important;
    height: 100% !important;
    left: 0 !important;
    /* Reset any left positioning */
    transform: none !important;
    margin: 0 !important;
  }

  .metodo-video-wrapper video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 12px !important;
  }

  .metodo-text-col {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .metodo-text-col p {
    font-size: 1.1rem !important;
    line-height: 1.5 !important;
    text-align: left !important;
  }

  .metodo-logo-block {
    align-items: flex-start !important;
    margin-bottom: 5px !important;
  }

  .metodo-video-wrapper .play-btn-center {
    display: flex !important;
    opacity: 0.9 !important;
    visibility: visible !important;
    width: 60px !important;
    height: 60px !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
  }

  /* 4. Cases Grid - 1 Col Square Mobile */
  .cases-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 0 16px !important;
    margin-top: 30px !important;
  }

  .case-block,
  .case-block-full {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    /* Square blocks */
    grid-column: 1 / -1 !important;
    /* Force to take full width */
  }

  .case-info {
    padding: 24px !important;
    /* Move more to the corner */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%) !important;
  }

  .case-info h3 {
    font-size: 20px !important;
    /* Significant reduction for cleaner look */
    font-weight: 300 !important;
  }

  .case-page-info {
    padding: 24px !important;
    /* Move more to the corner */
  }

  .case-page-info h3 {
    font-size: 25px !important;
    /* ~30% smaller than 36px */
  }

  /* 5. Rive Container Fixes for Mobile */
  .cases-rive-container {
    margin-top: 10px !important;
    margin-bottom: 20px !important;
  }

  .logos-section {
    padding: 0 0 30px !important;
  }

  #rive-canvas,
  #logos-canvas,
  #thanks-canvas {
    touch-action: pan-y !important;
    /* Fixes scroll lock on mobile while allowing clicks */
    pointer-events: auto !important;
    /* Restored to handle hover logically */
  }

  #rive-canvas {
    height: 400px !important;
    /* Reduce huge height on mobile */
  }

  #logos-canvas {
    height: 250px !important;
    /* Reduce huge height on mobile */
  }

  #thanks-canvas {
    height: 300px !important;
    width: 100% !important;
    margin-top: 0 !important;
  }

  /* 6. About Section Fixes */
  .owner-container {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }

  .owner-photo-col {
    align-items: flex-start !important;
    text-align: left !important;
  }

  .owner-photo {
    width: 220px !important;
    margin-bottom: 20px !important;
  }

  .quote-text-container {
    flex-direction: column !important;
    gap: 0 !important;
    /* Remove gap to make quotes closer */
    align-items: flex-start !important;
    text-align: left !important;
  }

  .quote-mark {
    margin-bottom: -35px !important;
    /* Pull paragraph much closer to the quotes */
    font-size: 8rem !important;
    /* Larger quotes */
    line-height: 0.8 !important;
  }

  .quote-paragraphs p {
    text-align: left !important;
    font-size: 1.25rem !important;
  }

  /* 7. Footer Fixes */
  .footer-content-row,
  body .footer .footer-content-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 0 !important;
    padding: 20px 24px 60px !important;
  }

  .footer-col-body {
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    margin: 0 !important;
    padding: 25px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    gap: 15px !important;
  }

  /* Adjust first and last generic text columns to avoid excessive/missing lines */
  .footer-col-body.logo-col {
    padding-top: 10px !important;
    padding-bottom: 25px !important;
    border-bottom: none !important;
  }

  .footer-col-body.contact-col {
    border-bottom: none !important;
  }

  .footer-logo {
    max-width: 65px !important;
    /* BEM menor */
    margin-bottom: 0 !important;
  }

  /* Make links touch-friendly */
  .footer-col-body a {
    font-size: 1.1rem !important;
    color: var(--white) !important;
    opacity: 0.8;
  }

  .footer-bottom-row {
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    margin: 0 !important;
    padding-top: 25px !important;
  }

  .footer-cta {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 10px 10px 24px !important;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px !important;
  }

  .footer-cta span {
    font-size: 1rem !important;
    white-space: nowrap !important;
  }

  .cta-arrow-box {
    flex-shrink: 0 !important;
  }

  .footer-top-row,
  .footer-divider {
    display: none !important;
  }
}

.mobile-cases-big-btn {
  display: none;
}

@media screen and (max-width: 768px) {
  .mobile-cases-big-btn {
    display: block !important;
    font-family: 'Jost', sans-serif;
    font-size: 4.5rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    text-decoration: none !important;
    letter-spacing: -0.01em !important;
    line-height: 0.9 !important;
    padding: 10px 24px 7px 0 !important;
    margin: 60px 24px 40px !important;
    border-bottom: 2px solid #fff !important;
    width: fit-content !important;
    max-width: calc(100% - 48px) !important;
    text-transform: uppercase !important;
    box-sizing: border-box !important;
  }

  /* 7. Gallery Refinement for Mobile (Cases) */
  .case-gallery-section {
    padding-bottom: 60px !important;
  }

  .case-gallery-section>div {
    gap: 12px !important;
    /* Reduced from 40px to 12px */
    margin-bottom: 12px !important;
    /* Reduced from 40px to 12px */
    width: 94% !important;
    /* More space on mobile screens */
  }

  /* Reduce border-radius by 50% (from 20px to 10px) */
  .case-gallery-section div[style*="border-radius"],
  .case-gallery-section .custom-vid-wrapper,
  .case-hero-media .custom-vid-wrapper,
  .case-gallery-section video,
  .case-gallery-section img {
    border-radius: 10px !important;
  }

  /* 8. Case Text Refinements */
  .case-detail-hero h1 {
    font-size: 2.2rem !important;
  }

  .case-text-section {
    padding: 0 6% 80px !important;
  }

  .case-text-section h2.js-reveal-title,
  .case-text-section h2 {
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
    margin-bottom: 24px !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
  }

  .case-text-section p.js-reveal-words,
  .case-text-section p {
    font-size: 1.15rem !important;
    line-height: 1.6 !important;
    margin-bottom: 40px !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
  }

  .rv-word-wrapper {
    display: inline-block !important;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
  }

  /* 9. Padding & Spacing Reductions */
  .cases-section {
    padding: 40px 0 20px !important;
  }

  .metodo-section {
    padding: 20px 0 !important;
  }

  .hero.hero-subpage {
    padding-top: 80px !important;
    padding-bottom: 20px !important;
    height: auto !important;
  }

  .case-hero-media {
    padding-bottom: 40px !important;
  }

  .thanks-section {
    padding-top: 10px !important;
    padding-bottom: 20px !important;
  }

  /* Adjust "Outros Cases" text for mobile */
  .more-project-info {
    padding: 14px !important;
  }

  .more-project-info h3 {
    font-size: 20px !important;
    /* ~30% reduction + 40% increase = back to ~20px desktop size, but left-aligned lower */
  }
}

/* Global Fix for Reveal Text */
.js-reveal-title,
.js-reveal-words {
  word-break: break-word !important;
  /* Allow breaking between words but not within them */
  overflow-wrap: break-word !important;
  hyphens: none !important;
}

.rv-word-wrapper {
  display: inline-block !important;
  white-space: nowrap !important;
}