:root {
  --bg-page: var(--bg, #121212);
  --bg-pane: var(--bg, #121212);
  --bg-pill: rgba(47, 47, 47, 0.4);
  --bg-pill-active: var(--bg, #121212);
  --border-line: var(--paper-line, #2f2f2f);
  --border-pill: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.05);
  --text-primary: var(--fg, #ffffff);
  --text-secondary: var(--mute, #ababab);
  --text-muted: var(--mute, #757575);
  --status-green: #00ff40;
  --status-glow: rgba(0, 255, 64, 0.45);
  --font-sans: var(--font-body, 'Switzer', sans-serif);
  --tracking-h1: -0.05em;
  --tracking-text: -0.03em;
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   NAVIGATION HEADER (Floating Pill Bar)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  pointer-events: auto;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 3px;
  background-color: var(--bg-pill);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-pill);
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: var(--tracking-text);
  color: rgba(255, 255, 255, 0.65);
  border-radius: 30px;
  transition: all 0.2s var(--ease-smooth);
  user-select: none;
}

.nav-link:hover {
  color: var(--text-primary);
  opacity: 1;
}

.nav-link.active {
  background-color: var(--bg-pill-active);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   PAGE CANVAS (Max 1200px Centered Frame)
   ========================================================================== */
.page-canvas {
  width: 100%;
  
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-pane);
}

/* Main Split Container */
.split-layout {
  display: flex;
  flex-direction: column;
  width: 100%;
  
}

/* ==========================================================================
   LEFT COLUMN (Hero Profile, Manifesto & Clients)
   ========================================================================== */
.left-pane {
  width: 100%;
  background-color: var(--bg-pane);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 76px 20px 48px;
}

.left-inner {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* 1. Title Block (Avatar + Name & Role) */
.title-block {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.avatar-box { overflow: hidden;
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 10px;
  
  background-color: #1a1a1a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-smooth);
}

.avatar-box:hover img {
  transform: scale(1.05);
}

.name-role {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.name-title {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: var(--tracking-h1);
  color: var(--text-primary);
  line-height: 1.1;
}

.role-subtitle {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: var(--tracking-text);
  color: var(--text-muted);
  line-height: 1.4;
}

/* 2. Hero Statement (Editorial description with dual tone) */
.hero-desc {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: var(--tracking-text);
  color: var(--text-primary);
}

.hero-desc .text-muted-part {
  color: var(--text-muted);
}

/* 3. Availability Badge (Pulsing green dot) */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: var(--tracking-text);
  color: var(--text-muted);
  user-select: none;
}

.dot-green {
  position: relative;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--status-green);
  box-shadow: 0 0 8px var(--status-glow);
}

.dot-green::after {
  content: '';
  position: absolute;
  top: -3.5px;
  left: -3.5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--status-green);
  opacity: 0.5;
  animation: radar-pulse 2.2s infinite ease-out;
}

@keyframes radar-pulse {
  0% {
    transform: scale(0.5);
    opacity: 0.7;
  }
  65% {
    transform: scale(1.9);
    opacity: 0;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

/* 4. CTA Action Button */
.cta-wrapper {
  display: flex;
  align-items: center;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background-color: var(--ink);
  border: none;
  border-radius: 25px;
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: var(--tracking-text);
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
}

.cta-btn:hover {
  background-color: var(--pill-hover);
  transform: translateY(-1px);
}

.cta-btn:active {
  transform: translateY(0);
}

/* 5. Clients Divider & Logos Strip */
.clients-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 8px;
}

.divider-line {
  width: 100%;
  height: 1px;
  background-color: var(--border-line);
  border: none;
}

.logos-row { overflow: hidden;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 46px;
  
  padding: 4px 0;
  /* Horizontal fade mask matching Framer's exact mask */
  -webkit-mask: linear-gradient(270deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
  mask: linear-gradient(270deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.logo-cell {
  flex: 0 0 auto;
  opacity: 0.55;
  filter: grayscale(1) brightness(2);
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.logo-cell:hover {
  opacity: 1;
  filter: grayscale(0) brightness(1);
}

.logo-cell img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* 6. About Me Block */
.about-me-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 24px;
}

.about-heading {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: var(--tracking-text);
}

.about-desc {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-secondary);
  letter-spacing: var(--tracking-text);
}

/* ==========================================================================
   RIGHT COLUMN (2-Column Project Grid in 1st Fold)
   ========================================================================== */
.right-pane {
  width: 100%;
  background-color: var(--bg-pane);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px 60px;
}

.right-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* 2-Column Grid matching Cavern's original Framer layout */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  width: 100%;
}

.grid-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

/* Project Card */
.work-card {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 12px;
  
  background-color: #000000;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease-spring);
}

.work-card:hover {
  transform: translateY(-2px);
}

.card-visual { overflow: hidden;
  position: relative;
  width: 100%;
  aspect-ratio: 0.753; /* ~3:4 portrait ratio */
  background-color: #121212;
  border-radius: 12px;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  transform: translateZ(0);
}

.card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0);
  transition: filter 0.5s ease, transform 0.6s var(--ease-spring);
}

.work-card:hover .card-visual img {
  filter: grayscale(1);
  transform: scale(1.03);
}

/* Bottom overlay info bar — HIDDEN by default, shown on hover */
.card-bottom-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 24px 16px 14px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.work-card:hover .card-bottom-info {
  opacity: 1;
  transform: translateY(0);
}

.card-name {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: var(--tracking-text);
  color: var(--text-primary);
}

.card-category {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: var(--tracking-text);
  color: var(--text-primary);
  opacity: 0.85;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Tablet & Desktop Split Screen)
   ========================================================================== */

/* Mobile adjustment */
@media (max-width: 600px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Tablet (810px to 1199px) */
@media (min-width: 810px) and (max-width: 1199px) {
  .page-canvas {
    max-width: 810px;
  }

  .left-pane {
    padding: 80px 32px 48px;
  }

  .right-pane {
    padding: 20px 32px 60px;
  }

  .name-title {
    font-size: 25px;
  }
}

/* Desktop Split Screen (min-width: 1200px) - The Exact Framer 1200px Experience */
@media (min-width: 1200px) {
  .page-canvas {
    width: 100%;
    
    
  }

  .split-layout {
    flex-direction: row;
    
    
  }

  /* Left Pane: flex 1 (1/3 of space) */
  .left-pane {
    flex: 1 0 0;
    width: 1px;
    
    padding: 20px 40px 20px 20px;
    
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-bottom: none;
    align-items: flex-start;
  }

  .left-pane::-webkit-scrollbar {
    display: none;
  }

  .left-inner {
    max-width: 100%;
    margin-top: 10px;
    gap: 32px;
  }

  /* Right Pane: flex 2 (2/3 of space) */
  .right-pane {
    flex: 2 0 0;
    width: 1px;
    
    padding: 17px 20px 20px 0;
    
    scrollbar-width: none;
    -ms-overflow-style: none;
    align-items: flex-start;
  }

  .right-pane::-webkit-scrollbar {
    display: none;
  }

  .right-inner {
    width: 100%;
  }

  .name-title {
    font-size: 24px;
  }

  .hero-desc {
    font-size: 20px;
    line-height: 1.3;
  }
}

/* Masonry Interlocking Ratios */
.card-ratio-4-5 { aspect-ratio: 4/5 !important; }
.card-ratio-4-3 { aspect-ratio: 4/3 !important; }
.card-ratio-3-2 { aspect-ratio: 3/2 !important; }
.card-ratio-3-4 { aspect-ratio: 3/4 !important; }

.card-ratio-4-5 img {
  object-position: center 85%;
}

/* Masonry Interlocking Ratios V2 (Ember half of Pulse) */
.card-ratio-8-5 { aspect-ratio: 8/5 !important; }
.card-ratio-8-11 { aspect-ratio: 8/11 !important; }

/* ═══════════ DEPOIMENTOS (TESTIMONIALS) ═══════════ */
.cc-testimonials {
  position: relative;
  margin-top: 4rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.cc-testim-content {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1rem;
}

/* Marquee Simples Acima das Caixas */
.cc-marquee-simple {
  display: flex;
  width: 100%;
  overflow: hidden;
  margin-bottom: 3rem;
  padding: 1rem 0;
}

.marquee-track {
  display: flex;
  flex-shrink: 0;
  white-space: nowrap;
  animation: marqueeSimple 60s linear infinite;
}

.marquee-track span {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 2rem;
}

@keyframes marqueeSimple {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Efeito Dust (Poeira / Fade) */
.dust-out {
  animation: dustAway 0.8s forwards ease-in;
}

.dust-in {
  animation: dustIn 0.8s forwards ease-out;
}

@keyframes dustAway {
  0% { opacity: 1; filter: blur(0); transform: scale(1) translateY(0); }
  100% { opacity: 0; filter: blur(8px); transform: scale(0.95) translateY(-10px); }
}

@keyframes dustIn {
  0% { opacity: 0; filter: blur(8px); transform: scale(0.95) translateY(10px); }
  100% { opacity: 1; filter: blur(0); transform: scale(1) translateY(0); }
}
