/* ============================================
   CSS RESET & BASE STYLES
   ============================================ */

:root {
  /* Spotify Widget Base Dimensions - Change these to resize entire widget across all breakpoints */
  --spotify-desktop-width: 450px;
  --spotify-desktop-height: 180px;

  /* Navigation Height - Dynamic calculation for desktop */
  --nav-height: calc(1.2rem + 48px + 1.2rem);

  /* Gold Accent Colors - Design System */
  --gold-accent: #d4af37;
  --gold-10: rgba(212, 175, 55, 0.1);
  --gold-15: rgba(212, 175, 55, 0.15);
  --gold-20: rgba(212, 175, 55, 0.2);
  --gold-30: rgba(212, 175, 55, 0.3);
  --gold-40: rgba(212, 175, 55, 0.4);
  --gold-60: rgba(212, 175, 55, 0.6);

  /* Border Radius Scale */
  --radius-sm: 2px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --radius-pill: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto; /* Lenis will handle smooth scroll */
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #1a1a1a;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================
   UTILITY CLASSES - Reusable Components
   ============================================ */

/* Vintage Paper Texture - Used across statement, portfolio, and contact pages */
.vintage-paper-texture {
  background-color: #ede2c8;
  background-image:
    /* Vignette effect */ radial-gradient(
      ellipse at center,
      transparent 50%,
      rgba(130, 110, 80, 0.12) 85%,
      rgba(130, 110, 80, 0.25) 100%
    ),
    /* Simulated stains/creases */
      radial-gradient(
        ellipse 700px 350px at 15% 25%,
        rgba(180, 150, 100, 0.08) 0%,
        rgba(180, 150, 100, 0.03) 30%,
        transparent 60%
      ),
    radial-gradient(
      ellipse 550px 280px at 85% 75%,
      rgba(160, 130, 90, 0.09) 0%,
      rgba(160, 130, 90, 0.04) 30%,
      transparent 60%
    ),
    /* Visible fiber texture */
      repeating-linear-gradient(
        0deg,
        transparent,
        transparent 1.5px,
        rgba(130, 110, 80, 0.12) 3px
      ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 1.5px,
      rgba(130, 110, 80, 0.12) 3px
    ),
    /* Additional crosshatch for texture depth */
      repeating-linear-gradient(
        45deg,
        transparent,
        transparent 3px,
        rgba(110, 90, 60, 0.06) 4px
      );
}

/* Photo Frame Effect - White mat border for vintage photo look */
.photo-frame {
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 8px 20px rgba(0, 0, 0, 0.15),
    inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-sm);
  position: relative; /* Added for image credits */
}

.photo-frame--mobile {
  padding: 8px;
}

/* Typewriter Text Effect - Special Elite monospace with animation setup */
.typewriter-text {
  font-family: "Special Elite", monospace;
  color: #000000;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid #000000;
  width: 0;
}

.typewriter-text--no-margin {
  margin-bottom: 0;
}

.typewriter-text--spaced {
  margin-bottom: 3rem;
}

/* ============================================
   NAVIGATION (MENU) - PHOTOGRAPHIC EDITORIAL LUXURY
   ============================================ */

.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(
    to bottom,
    rgba(14, 10, 32, 0.92),
    rgba(1, 5, 3, 0.88)
  );
  color: #f5f1e8;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1.2rem 0;
  box-shadow: 0 4px 12px rgba(5, 0, 48, 0.4), 0 8px 24px rgba(2, 2, 49, 0.3),
    0 16px 48px rgba(18, 17, 56, 0.2), 0 0 0 1px rgba(8, 3, 83, 0.1);
}

/* Olive green subtle tint overlay with noise texture */
.main-nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
      135deg,
      rgba(76, 80, 74, 0.05) 0%,
      rgba(112, 91, 72, 0.03) 100%
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(196, 192, 182, 0.02) 2px,
      rgba(196, 192, 182, 0.02) 4px
    );
  pointer-events: none;
  z-index: -1;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* ===== LEFT SECTION: LOGO ===== */
.nav-left {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.nav-logo a {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 3.5px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 2px 4px rgba(26, 26, 26, 0.8), 0 0 1px rgba(0, 0, 0, 0.5);
}

.nav-logo a:hover {
  color: #e2e2e0;
  letter-spacing: 4px;
  text-shadow: 0 0 20px rgba(136, 117, 99, 0.6), 0 2px 8px rgba(26, 26, 26, 0.8),
    0 0 2px rgba(212, 165, 116, 0.4);
}

/* ===== RIGHT SECTION: NAVIGATION LINKS ===== */
.nav-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  display: block;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  transition: all 0.1s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  min-height: 48px;
  display: flex;
  align-items: center;
  font-weight: 400;
}

/* Premium warm editorial hover effect */
.nav-menu a:hover {
  background: linear-gradient(
    135deg,
    rgba(117, 120, 170, 0.12),
    rgba(184, 201, 109, 0.08)
  );
  backdrop-filter: blur(10px);
  border: 1px solid rgba(221, 231, 216, 0.4);
  color: #f0f0f0;
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 16px rgba(196, 186, 186, 0.25);
  letter-spacing: 2.2px;
}

/* Active page indicator with light beige accent */
.nav-menu a.active {
  color: #ede9e4;
  background: linear-gradient(
    135deg,
    rgba(237, 233, 228, 0.12),
    rgba(245, 241, 232, 0.08)
  );
  border: 1px solid rgba(237, 233, 228, 0.6);
  box-shadow: 10 0 10px rgba(189, 186, 184, 0.3);
}

/* ===== MOBILE TOGGLE BUTTON ===== */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 28px;
  height: 2px;
  background: #c4c0b6;
  position: relative;
  transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(26, 26, 26, 0.3);
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 28px;
  height: 2px;
  background: #c4c0b6;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(26, 26, 26, 0.3);
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

/* Hamburger active state (X transformation) with warm brown */
.nav-toggle.active .hamburger {
  background: transparent;
}

.nav-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
  background: #beb8b2;
  box-shadow: 0 0 12px rgba(59, 57, 54, 0.5);
}

.nav-toggle.active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
  background: #cec8c2;
  box-shadow: 0 0 12px rgba(136, 117, 99, 0.5);
}

/* ============================================
   MOBILE MENU - FULL-SCREEN GLASSMORPHIC OVERLAY
   ============================================ */
@media (max-width: 1024px) {
  .nav-container::after {
    display: none; /* Hide divider on mobile */
  }

  .nav-toggle {
    display: block;
  }

  .nav-left {
    flex: 1;
  }

  .nav-right {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(
      135deg,
      rgba(26, 26, 26, 0.98),
      rgba(61, 66, 61, 1)
    );
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }

  /* Photographic warm overlay with vignette for mobile menu */
  .nav-right::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        transparent 0%,
        rgba(26, 26, 26, 0.3) 100%
      ),
      linear-gradient(
        135deg,
        rgba(136, 117, 99, 0.08) 0%,
        rgba(82, 90, 99, 0.05) 50%,
        rgba(76, 80, 74, 0.06) 100%
      );
    pointer-events: none;
  }

  .nav-right.active {
    opacity: 1;
    pointer-events: all;
  }

  .nav-menu {
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
  }

  .nav-menu li {
    width: 100%;
    opacity: 0;
    transform: translateX(50px);
  }

  .nav-menu.active li {
    opacity: 1;
    transform: translateX(0);
  }

  .nav-menu a {
    width: 100%;
    font-size: 1.5rem;
    padding: 1.2rem 2rem;
    text-align: center;
    background: linear-gradient(
      135deg,
      rgba(82, 90, 99, 0.4),
      rgba(61, 66, 61, 0.35)
    );
    border: 1px solid rgba(177, 172, 168, 0.2);
    letter-spacing: 2.5px;
    font-weight: 400;
  }

  .nav-menu a:hover,
  .nav-menu a:active {
    background: linear-gradient(
      135deg,
      rgba(223, 219, 215, 0.2),
      rgba(214, 217, 219, 0.15)
    );
    border-color: rgba(255, 253, 250);
    color: #ebe5e1;
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(224, 221, 217, 0.3);
  }

  .nav-menu a.active {
    background: linear-gradient(
      135deg,
      rgba(237, 233, 228, 0.18),
      rgba(245, 241, 232, 0.12)
    );
    border: 2px solid rgba(237, 233, 228, 0.6);
    color: #ede9e4;
    box-shadow: 0 0 20px rgba(237, 233, 228, 0.4);
  }
}

/* ============================================
   SECTION COMMON STYLES
   ============================================ */

.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  position: relative;
}

.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* ============================================
   SCROLL INDICATOR COMPONENT
   ============================================ */

.scroll-indicator-container {
  position: absolute;
  bottom: 15rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  z-index: 10;
}

.scroll-text {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #010503;
  opacity: 1; /* Changed from 0.6 for WCAG AA contrast compliance */
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.scroll-indicator {
  width: 50px;
  height: 50px;
}

.scroll-indicator circle {
  fill: none;
  stroke: #010503;
  stroke-width: 2;
  opacity: 1; /* Changed from 0.5 for WCAG AA contrast compliance */
}

.scroll-indicator path {
  fill: none;
  stroke: #010503;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 1; /* Changed from 0.6 for WCAG AA contrast compliance */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .scroll-indicator-container {
    top: calc(50% + 8rem);
    bottom: auto;
  }

  .scroll-indicator {
    width: 40px;
    height: 40px;
  }

  .scroll-text {
    font-size: 0.6rem;
  }
}

/* ============================================
   HERO: ISOLATED STRUCTURE
   ============================================ */

/* 1. Container defining total scroll animation height (GSAP trigger) */
.hero-wrapper {
  height: 200vh; /* Double viewport height for scroll space */
  position: relative;
}

/* 2. Element that stays fixed during scroll (GSAP "pin") */
.hero-sticky {
  height: 100vh;
  width: 100%;
  position: sticky;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* Essential to contain text when it scales */
}

/* 3. Background layer, now a separate element */

.sr-only {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../assets/leandro_leo_hero.jpg");
  background-image: image-set(
    url("../assets/leandro_leo_hero.webp") type("image/webp")
  );
  background-size: cover;
  background-position: center;
  z-index: 1; /* Behind text */
  opacity: 0.4; /* Initial opacity for better text contrast */
}

/* Mobile hero background - using desktop image temporarily */
@media (max-width: 1024px) {
  .hero-background {
    background-image: url("../assets/leandro_leo_hero.jpg");
    background-image: image-set(
      url("../assets/leandro_leo_hero.webp") type("image/webp")
    );
    background-position: right center;
  }
}

/* 4. Text with mask. Isolates mix-blend-mode inside */
.masked-text {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  /* Vintage paper background - optimized for performance */
  background-color: #cdc0aa;
  background-image:
    /* Vinheta sutil nas bordas */ radial-gradient(
      ellipse at center,
      transparent 70%,
      rgba(130, 110, 80, 0.1) 100%
    ),
    /* Textura de fibra de papel */
      linear-gradient(0deg, rgba(220, 210, 190, 0.12) 50%, transparent 50%);
  background-size: 100% 100%, 3px 3px;
  color: #000000;
  mix-blend-mode: screen; /* Now only affects .hero-background */
  position: relative;
  z-index: 2; /* In front of background */
}

.masked-text h1 {
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
}

.hero-subtitle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 130%);
  z-index: 3; /* In front of everything in hero */
  font-size: clamp(1.2rem, 4vw, 3rem);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgb(24, 20, 1);
  white-space: normal;
  max-width: 90vw;
  text-align: center;
  opacity: 0; /* Initial state for GSAP animation */
}

/* Ensure hero scroll indicator never overlaps subtitle */
.hero-sticky > .scroll-indicator-container {
  /* Anchor near bottom; avoid mid-screen overlap */
  bottom: clamp(2rem, 8vh, 5rem);
  top: auto;
  /* Keep it below the subtitle but above background */
  z-index: 2;
}

@media (max-width: 1024px) {
  /* Override mobile rule that previously positioned via top */
  .hero-sticky > .scroll-indicator-container {
    bottom: clamp(1.5rem, 8vh, 4rem);
    top: auto;
  }
}

/* ============================================
   MAIN CONTENT
   ============================================ */
/* Main needs z-index to ensure it stays "above" hero wrapper in page flow */
main {
  position: relative;
  z-index: 5;
}

/* ============================================
   SECTION 2: STATEMENT (ENCAPSULATED)
   ============================================ */

/* Wrapper for isolation */
.statement-wrapper {
  position: relative;
  z-index: 5;
}

.statement-section {
  position: relative;
}

/* Shared background for all subsections - vintage paper with visible fibers */
.canto-subsection,
.atuacao-subsection,
.trilha-subsection {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 3rem;
  position: relative;
}

/* Hide scroll indicators in statement subsections on desktop */
.canto-subsection .scroll-indicator-container,
.atuacao-subsection .scroll-indicator-container,
.trilha-subsection .scroll-indicator-container {
  display: none;
}

/* Show on mobile if needed */
@media (max-width: 1024px) {
  .canto-subsection .scroll-indicator-container,
  .atuacao-subsection .scroll-indicator-container,
  .trilha-subsection .scroll-indicator-container {
    display: flex;
  }
}

/* SUB-SECTION 1: CANTO */

.canto-text {
  /* Positioning and z-index specific to canto section */
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

/* Typewriter animation keyframes */
@keyframes typing {
  to {
    width: 100%;
  }
}

@keyframes cursor {
  50% {
    border-color: transparent;
  }
}

.canto-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8rem;
  max-width: 1000px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.canto-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* Styles for image content and credit */
.canto-image-content {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Compact layout for shorter desktop viewports so photo borders stay visible */
@media (min-width: 1025px) and (max-height: 800px) {
  .canto-subsection {
    padding: 5rem 3rem;
  }

  .canto-images {
    gap: 4rem;
  }

  .canto-image {
    height: 220px;
  }
}

.image-credit {
  position: absolute;
  bottom: 20px; /* Move inside the image area */
  right: 20px; /* Move inside the image area */
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 500;
  color: #ffffff;
  background-color: black;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  z-index: 2;
}

/* SUB-SECTION 2: ATUAÇÃO */

.atuacao-text {
  /* atuacao section has bottom margin */
}

.atuacao-images {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  max-width: 1200px;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

.atuacao-image {
  width: calc(25% - 1.5rem);
  min-width: 220px;
  height: 300px;
  object-fit: cover;
}

/* SUB-SECTION 3: TRILHA SONORA */

.trilha-text {
  /* trilha section has bottom margin */
}

.trilha-images {
  display: flex;
  gap: 2rem;
  max-width: 1200px;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

.trilha-image {
  width: calc(25% - 1.5rem);
  min-width: 220px;
  height: 300px;
  object-fit: cover;
}

/* SUB-SECTION 4: ARTE - Removed (now using .arte-section below) */

/* RESPONSIVE: STATEMENT SECTION */
@media (max-width: 1024px) {
  .canto-images {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .canto-image {
    height: 250px;
  }

  .trilha-images {
    flex-direction: column;
    align-items: center;
  }

  .trilha-image {
    width: 100%;
    max-width: 400px;
    height: 300px;
  }

  .canto-text,
  .trilha-text,
  .atuacao-text {
    margin-bottom: 3rem;
  }

  .atuacao-images {
    flex-direction: column;
    align-items: center;
  }

  .atuacao-image {
    width: 100%;
    max-width: 400px;
    height: 300px;
  }
}

/* ============================================
   MOBILE LETTER LAYOUT - Statement Alternative
   ============================================ */

/* Hidden on desktop, shown on mobile */
.statement-letter-mobile {
  display: none;
}

@media (max-width: 1024px) {
  /* Hide desktop statement subsections on mobile */
  .canto-subsection,
  .atuacao-subsection,
  .trilha-subsection {
    display: none !important;
  }

  /* Show mobile letter layout */
  .statement-letter-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: visible;
    padding: clamp(3rem, 6vh, 4rem) 1rem clamp(1rem, 2vh, 1.5rem) 1rem;
  }

  .letter-container {
    max-width: 500px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-bottom: 0;
  }

  .letter-text {
    font-family: "Special Elite", monospace;
    font-size: clamp(1rem, 4.5vw, 1.8rem);
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.3;
    margin-top: clamp(0.5rem, 2vh, 1rem);
    margin-bottom: clamp(0.5rem, 2vh, 1rem);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    /* Typewriter effect */
    overflow: hidden;
    white-space: nowrap;
    width: 0;
  }

  /* Photo grids - each section gets its own */
  .letter-photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(0.8rem, 2.5vw, 1.2rem);
    max-width: clamp(160px, 45vw, 220px);
    margin-left: auto;
    margin-right: auto;
  }

  /* Last photo grid in each section gets bottom margin */
  .letter-photos:last-of-type {
    margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
  }

  /* Trilha section: 1 photo centered (when after text) */
  .trilha-photos .letter-photo:only-child {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .letter-photo {
    width: clamp(60px, 18vw, 75px);
    height: clamp(60px, 18vw, 75px);
    object-fit: cover;
    opacity: 0.9;
    transition: transform 0.3s ease;
  }

  /* Subtle hover effect */
  .letter-photo:hover {
    transform: scale(1.1);
    z-index: 10;
  }

  /* Mobile scroll indicator */
  .mobile-scroll {
    position: relative;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: clamp(0.8rem, 2vh, 1.2rem);
    opacity: 1;
  }

  .mobile-scroll .scroll-text {
    font-family: "Special Elite", monospace;
    font-size: clamp(0.75rem, 3vw, 0.9rem);
    color: #1a1a1a;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .mobile-scroll .scroll-indicator {
    width: clamp(35px, 10vw, 45px);
    height: clamp(35px, 10vw, 45px);
  }

  /* Mobile scroll uses same SVG styling as general with color override */
  .mobile-scroll .scroll-indicator circle,
  .mobile-scroll .scroll-indicator path {
    stroke: #1a1a1a;
  }

  .mobile-scroll .scroll-indicator circle {
    stroke-width: 1.5;
  }
}

/* ============================================
   SECTION 3: CALL TO ACTION
   ============================================ */

.cta-section {
  position: relative;
  /* Image background - covers entire section */
  background-image: url("../assets/leandro_leo.jpg");
  background-image: image-set(
    url("../assets/leandro_leo.webp") type("image/webp"),
    url("../assets/leandro_leo.jpg") type("image/jpeg")
  );
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: 10;
  /* Dark overlay for better text readability */
  isolation: isolate;
}

/* Vintage paper color overlay for unified aesthetic */
.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* Aged paper color (#f5eeda) */
  mix-blend-mode: darken;
  z-index: -1;
}

.cta-text {
  position: relative;
  z-index: 2;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 3rem;
  text-align: center;
  color: #ffffff;
  /* Simplified shadow for subtle depth */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6), 0 4px 8px rgba(0, 0, 0, 0.3);
}

.cta-buttons {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-block;
  padding: 1.2rem 3rem;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 600;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid #ffffff;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

/* ============================================
   IMAGE MODAL - Statement Section Gallery
   ============================================ */

.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.modal-content-wrapper {
  position: relative;
  z-index: 10001;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 100%;
  max-height: 100%;
}

.modal-image {
  max-width: min(85vw, 1200px);
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.modal-credits {
  color: #ffffff;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  line-height: 1.6;
  text-align: center;
  max-width: 80vw;
  padding: 0 1rem;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  opacity: 0.95;
}

/* Close Button */
.modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-close:hover {
  background: var(--gold-accent);
  border-color: var(--gold-accent);
  transform: rotate(90deg) scale(1.1);
}

/* Navigation Arrows */
.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10002;
}

.modal-nav svg {
  width: 24px;
  height: 24px;
}

/* Navigation button positioning is now dynamic - set via JavaScript */
.modal-nav-prev {
  /* left: set dynamically */
}

.modal-nav-next {
  /* right: set dynamically */
}

.modal-nav:hover {
  background: var(--gold-accent);
  border-color: var(--gold-accent);
  transform: translateY(-50%) scale(1.15);
}

/* Responsive Modal */
@media (max-width: 1024px) {
  .modal-image {
    max-width: 90vw;
    max-height: 60vh;
  }

  .modal-credits {
    font-size: 0.9rem;
    max-width: 90vw;
  }

  .modal-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 24px;
  }

  .modal-nav {
    width: 44px;
    height: 44px;
  }

  .modal-nav svg {
    width: 20px;
    height: 20px;
  }

  /* Navigation button positioning is dynamic - set via JavaScript */
  .modal-nav-prev {
    /* left: set dynamically */
  }

  .modal-nav-next {
    /* right: set dynamically */
  }
}

@media (max-width: 768px) {
  .modal-image {
    max-width: 95vw;
    max-height: 55vh;
  }

  .modal-credits {
    font-size: 0.85rem;
    padding: 0 0.5rem;
  }

  .modal-close {
    position: absolute;
    top: -42px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .modal-nav {
    width: 40px;
    height: 40px;
  }

  .modal-nav svg {
    width: 18px;
    height: 18px;
  }

  /* Navigation button positioning is dynamic - set via JavaScript */
  .modal-nav-prev {
    /* left: set dynamically */
  }

  .modal-nav-next {
    /* right: set dynamically */
  }
}

/* ============================================
   FOOTER - PHOTOGRAPHIC EDITORIAL LUXURY
   ============================================ */

.main-footer {
  position: relative;

  background: linear-gradient(
    to bottom,
    rgba(7, 5, 17, 0.92),
    rgba(1, 5, 3, 0.88)
  );
  color: #f5f5f5;
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(136, 117, 99, 0.3);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 -4px 16px rgba(26, 26, 26, 0.3),
    0 -1px 0 rgba(136, 117, 99, 0.15);
}

/* Natural warm overlay with subtle texture */
.main-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(76, 80, 74, 0.04) 0%,
    rgba(136, 117, 99, 0.03) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.footer-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  z-index: 1;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
}

.footer-copyright {
  color: #b0b0b0;
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  margin: 0;
}

.footer-credit {
  color: #b0b0b0;
  font-size: clamp(0.7rem, 1.3vw, 0.8rem);
  margin: 0;
}

.footer-credit a {
  color: #b0b0b0;
  text-decoration: none;
  border-bottom: 1px solid rgba(176, 176, 176, 0.3);
  transition: all 0.3s ease;
  font-weight: 400;
}

.footer-credit a:hover {
  color: #887563;
  border-bottom-color: rgba(136, 117, 99, 0.7);
  text-shadow: 0 0 10px rgba(136, 117, 99, 0.4);
}

/* ============================================
   PORTFOLIO PAGE STYLES
   ============================================ */

.portfolio-header {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 3rem;
}

.portfolio-header-content {
  text-align: center;
  max-width: 1200px;
  width: 100%;
}

.portfolio-title {
  /* Tamanho da Fonte e Espaçamento */
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: 0;

  /* Dark text color matching filters section background */
  color: #000000;

  /* Gold shadow effects with very dark tones for depth */
  text-shadow:
    /* Camada 1: Very dark gold accent */ 1px 1px 0
      rgba(122, 119, 111, 0.829),
    /* Camada 2: Deeper dark gold */ 2px 2px 0 rgba(110, 85, 12, 0.85),
    /* Camada 3: Almost black gold depth */ 3px 3px 0 rgba(87, 84, 77, 0.8),
    /* Camada 4: Very dark gold shadow glow */ 4px 4px 12px
      rgba(70, 55, 8, 0.75);
}

.portfolio-subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: #1a1a1a;
}

/* Client Carousel (Inside Portfolio Header) */
.carousel-container {
  overflow: hidden;
  position: relative;
  margin-top: 0.5rem;
  padding: 1rem 0;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}

.carousel-track {
  display: flex;
  --carousel-gap: clamp(2rem, 4vw, 4rem);
  gap: var(--carousel-gap);
  width: fit-content;
  align-items: center;
  will-change: transform;
}

.carousel-track.no-flex-gap {
  gap: 0;
}

.carousel-track.no-flex-gap .carousel-logo {
  margin-right: var(--carousel-gap);
}

.carousel-track.no-flex-gap .carousel-logo:last-child {
  margin-right: 0;
}

.carousel-logo {
  height: 118px;
  width: auto;
  object-fit: contain;
  filter: brightness(0.9);
  transition: all 0.4s ease;
  flex-shrink: 0;
}

.carousel-logo:hover {
  filter: brightness(1);
  transform: scale(1.1);
}

/* Portfolio Filters */
.portfolio-filters-section {
  background: linear-gradient(
    135deg,
    rgba(26, 26, 26, 0.98),
    rgba(61, 66, 61, 1)
  );
  padding: 1.5rem 1rem;
  position: sticky;
  top: var(--nav-height);
  z-index: 100;
  border-bottom: 1px solid rgba(26, 26, 26, 0.15);
}

.portfolio-filters {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.8rem 2rem;
  font-size: clamp(0.8rem, 1.8vw, 0.95rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  color: #f5f1e8;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0; /* Initial state for GSAP animation */
}

.filter-btn:hover {
  background: var(--gold-20);
  border-color: var(--gold-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--gold-30);
}

.filter-btn.active {
  background: var(--gold-accent);
  color: #1a1a1a;
  border-color: var(--gold-accent);
  font-weight: 700;
}

/* Portfolio Grid - uses vintage-paper-texture utility class */
.portfolio-header,
.portfolio-timeline-section {
  /* Texture applied via utility class in HTML */
}

.portfolio-timeline-section {
  padding: 4rem 2rem;
  min-height: 100vh;
}

.timeline-container {
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  align-items: start;
}

/* Portfolio Cards */
.timeline-item {
  align-self: start; /* Força alinhamento no topo do grid */
  will-change: opacity, transform;
}

.timeline-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border: 2px solid #1a1a1a;
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.4s ease;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.timeline-card:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--gold-accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--gold-30);
}

.timeline-logo-container {
  height: 120px; /* Fixed height for the logo area */
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 1.5rem;
}

.timeline-client-logo {
  height: 118px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: brightness(0.95);
  transition: filter 0.3s ease;
}

.timeline-client-logo[src$="sesc.webp"],
.timeline-client-logo[src$="sesi.webp"],
.timeline-client-logo[src$="amadoria.webp"],
.timeline-client-logo[src$="multishow.webp"],
.timeline-client-logo[src$="netflix.webp"],
.carousel-logo[src$="sesc.webp"],
.carousel-logo[src$="sesi.webp"],
.carousel-logo[src$="amadoria.webp"],
.carousel-logo[src$="multishow.webp"],
.carousel-logo[src$="netflix.webp"] {
  height: 80px;
}

.timeline-card:hover .timeline-client-logo {
  filter: brightness(1);
}

.timeline-category {
  display: block;
  width: fit-content;
  font-size: clamp(0.65rem, 1.4vw, 0.8rem);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #1a1a1a;
  background: var(--gold-30);
  border: 1px solid var(--gold-60);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
  font-weight: 600;
}

.timeline-title {
  font-size: clamp(1.2rem, 2.8vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.timeline-year {
  font-size: clamp(0.85rem, 1.8vw, 1rem);
  color: #666666;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.timeline-credits {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  line-height: 1.8;
  color: #4a4a4a;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(26, 26, 26, 0.1);
}

.timeline-credits::first-line {
  font-weight: 700;
  font-size: 1.05em;
}

.timeline-item.hidden {
  display: none;
}

/* Responsive: Portfolio Grid */
@media (max-width: 1024px) {
  :root {
    --nav-height: 70px;
  }

  .portfolio-header {
    padding: 4rem 1.5rem 2rem;
    min-height: 40vh;
    margin-top: 2rem;
  }

  .carousel-logo {
    height: 50px;
  }

  .carousel-track {
    gap: 3rem;
  }

  .timeline-container {
    padding: 0 1rem;
  }

  .portfolio-timeline {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .timeline-card {
    padding: 1.5rem;
  }

  .timeline-credits {
    font-size: clamp(0.85rem, 3.5vw, 1rem);
    margin-top: 0.8rem;
    padding-top: 0.8rem;
  }

  .portfolio-filters {
    gap: 1rem;
  }

  .filter-btn {
    padding: 0.7rem 1.5rem;
  }
}

/* ============================================
   CONTACT PAGE STYLES
   ============================================ */

.contact-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: clamp(6rem, 10vh, 8rem);
  padding-bottom: 2rem;
}

/* ============================================
   PALCO PAGE
   ============================================ */

.palco-hero {
  min-height: 70vh;
  padding: clamp(5rem, 10vh, 8rem) clamp(1.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
  text-align: center;
}

.palco-hero {
  padding-top: calc(var(--nav-height) + clamp(2rem, 6vh, 4rem));
}

.palco-hero__content {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.palco-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.6);
}

.palco-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-family: "Special Elite", monospace;
  letter-spacing: 0.05em;
  color: #000;
}

.palco-lede {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 600;
}

.palco-description {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.9;
  color: rgba(0, 0, 0, 0.85);
}

.palco-hero__highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  width: 100%;
  gap: 1rem;
  max-width: 1100px;
}

.palco-highlight-card {
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  text-align: left;
}

.palco-highlight-card h3 {
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.palco-highlight-card p {
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.75);
}

.palco-formats {
  position: relative;
  padding: clamp(4rem, 10vh, 6rem) clamp(1.5rem, 5vw, 5rem);
  background: linear-gradient(180deg, #f3e5c7 0%, #d8c3a1 55%, #f0e1c8 100%);
  border-top: 1px solid rgba(120, 95, 55, 0.08);
  border-bottom: 1px solid rgba(120, 95, 55, 0.08);
  overflow: hidden;
}

.palco-formats::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 20% 0%,
      rgba(154, 132, 96, 0.25),
      transparent 60%
    ),
    radial-gradient(
      circle at 85% 15%,
      rgba(226, 194, 141, 0.3),
      transparent 50%
    );
  opacity: 0.6;
  pointer-events: none;
}

.palco-formats__intro {
  position: relative;
  max-width: 820px;
  margin: 0 auto 3rem;
  text-align: center;
  color: #2c2013;
}

.palco-formats__intro h2 {
  font-family: "Special Elite", monospace;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0.5rem 0 1rem;
}

.palco-formats__intro p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(32, 22, 12, 0.85);
}

.palco-format-row {
  position: relative;
  display: flex;
  gap: 2rem;
  align-items: stretch;
  padding: 2.5rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(138, 115, 80, 0.16);
  box-shadow: 0 20px 40px rgba(53, 41, 22, 0.15);
  margin-bottom: 2.5rem;
}

.palco-format-row:last-of-type {
  margin-bottom: 0;
}

.palco-format-row--reverse {
  flex-direction: row-reverse;
}

.palco-format-row--stacked {
  flex-direction: column;
}

.palco-format-media,
.palco-format-info {
  flex: 1 1 50%;
  min-width: 0;
}

.palco-format-media figure {
  margin: 0;
  background: #fffdfa;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.04);
}

.palco-format-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  aspect-ratio: 4 / 3;
}

.palco-format-media figcaption {
  padding: 0.9rem 1.2rem;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(32, 22, 12, 0.7);
  background: rgba(255, 255, 255, 0.92);
}

.palco-format-media--video {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.palco-format-media--full {
  flex: none;
  width: 100%;
  height: auto;
}

.palco-format-info--stacked .palco-format-media--full {
  max-width: 70%;
  margin: 0 auto;
}

.palco-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #000;
}

.palco-video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.palco-media-hint {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: rgba(32, 22, 12, 0.75);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.palco-format-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.palco-format-header h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  line-height: 1.2;
  color: #1c1309;
}

.palco-format-tag {
  font-size: 0.92rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #000000;
  margin-bottom: 0.2rem;
  font-family: "Special Elite", monospace;
}

.palco-format-body p {
  line-height: 1.8;
  color: rgba(27, 19, 13, 0.9);
}

.palco-format-points {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: rgba(32, 25, 20, 0.85);
}

.palco-format-points li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.5rem;
}

.palco-format-points li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #c18d2c;
  margin-bottom: 0.5rem;
}

.palco-format-meta h3 {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: rgba(92, 70, 40, 0.95);
}

.palco-format-meta ul {
  list-style: none;
  display: flex;
  gap: 0.45rem 1.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.palco-format-meta li {
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.5;
  color: rgba(32, 25, 20, 0.85);
}

.palco-format-meta li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #8d5c17;
  font-size: 1rem;
  line-height: 1;
  top: 0.2rem;
}

.palco-format-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  padding: 1.2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.palco-format-details span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(92, 70, 40, 0.8);
}

.palco-format-details p {
  margin-top: 0.4rem;
  line-height: 1.5;
  color: rgba(32, 25, 20, 0.85);
}

@media (max-width: 1024px) {
  .palco-format-row,
  .palco-format-row--reverse {
    flex-direction: column;
  }

  .palco-format-media,
  .palco-format-info {
    flex: 1 1 100%;
  }

  .palco-format-media--video {
    align-items: stretch;
  }

  .palco-video-wrapper {
    aspect-ratio: 16 / 9;
  }

  .palco-format-info--stacked .palco-format-media--full {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .palco-format-meta ul {
    flex-direction: column;
    gap: 0.45rem;
  }
}

.palco-tech {
  padding: clamp(4rem, 8vh, 6rem) clamp(1.5rem, 5vw, 4rem);
}

.palco-tech__content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.palco-tech__intro h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-family: "Special Elite", monospace;
  margin: 0.5rem 0 1rem;
}

.palco-tech__intro p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(0, 0, 0, 0.8);
}

.palco-tech__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.palco-tech-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}

.palco-tech-card h3 {
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.palco-tech-card ul {
  list-style: disc;
  margin-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  line-height: 1.6;
}

.palco-tech-card p {
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.75);
}

@media (max-width: 768px) {
  .palco-format-card {
    padding: 1.5rem;
  }

  .palco-format-details {
    grid-template-columns: 1fr;
  }
}

/* Content Container - Centered */
.contact-content-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 3rem;
  width: 100%;
  max-width: 1200px;
}

.contact-content {
  max-width: 600px;
  width: 100%;
}

.contact-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: clamp(1.5rem, 3vh, 2rem);
  line-height: 1;
  color: #000000;
  font-family: "Special Elite", monospace;
}

.contact-subtitle {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: #666666;
  margin-bottom: 2rem;
}

.contact-description {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  line-height: 1.8;
  color: black;
  margin-bottom: clamp(3rem, 6vh, 4.5rem);
}

.contact-section {
  margin-bottom: clamp(2.5rem, 5vh, 3.5rem);
}

.section-heading {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: clamp(1rem, 2vh, 1.5rem);
  color: black;
  font-family: "Special Elite", monospace;
  text-align: center;
}

/* Email Section */
.email-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.contact-email {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  color: black;
  padding: 0.8rem 1.5rem;
  background: rgba(26, 26, 26, 0.03);
  border: 1px solid rgba(26, 26, 26, 0.2);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  flex: 1;
}

.contact-email:hover {
  background: var(--gold-10);
  border-color: var(--gold-40);
  transform: translateY(-2px);
}

.copy-email-btn {
  padding: 0.8rem;
  background: rgba(26, 26, 26, 0.03);
  border: 1px solid rgba(26, 26, 26, 0.2);
  border-radius: var(--radius-md);
  color: #1a1a1a;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy-email-btn:hover {
  background: var(--gold-10);
  border-color: var(--gold-40);
  transform: translateY(-2px);
}

.copy-email-btn svg {
  width: 20px;
  height: 20px;
}

.copy-feedback {
  font-size: clamp(0.85rem, 1.6vw, 0.95rem);
  color: #1a1a1a;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.copy-feedback.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .contact-page {
    padding-top: clamp(4rem, 8vh, 6rem);
    padding-bottom: 2rem;
  }

  .contact-content-container {
    padding: 2rem 1.5rem;
  }

  .email-container {
    gap: 0.5rem;
  }

  .copy-email-btn {
    width: auto;
    padding: 0.6rem;
    flex-shrink: 0;
  }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 1024px) {
  .section {
    padding: 3rem 1.5rem;
  }

  .cta-section {
    background-position: center top;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-button {
    width: 100%;
    max-width: 300px;
  }

  /* Footer responsive */
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .footer-branding h3 {
    font-size: 1.2rem;
  }

  .footer-branding p {
    font-size: 0.9rem;
  }

  .footer-bottom p,
  .footer-credit {
    font-size: 0.85rem;
  }
}

/* ============================================
   MEDIUM BREAKPOINT (768px-1024px) - Optimized for Tablets
   ============================================ */
@media (min-width: 768px) and (max-width: 1024px) {
  /* Hero Section - Larger text and elements for tablets */
  .masked-text h1 {
    font-size: clamp(4.5rem, 12vw, 6.5rem);
  }

  .hero-subtitle {
    font-size: clamp(2rem, 5vw, 2.8rem);
  }

  /* Scroll Indicators - Medium size */
  .scroll-indicator {
    width: clamp(42px, 5.5vw, 48px);
    height: clamp(42px, 5.5vw, 48px);
  }

  .scroll-text {
    font-size: clamp(0.65rem, 1.5vw, 0.75rem);
  }

  /* Statement Letter Mobile - Optimized spacing and sizing for tablets */
  .statement-letter-mobile {
    padding: clamp(2.5rem, 4vh, 4rem) clamp(1.5rem, 3vw, 2.5rem);
  }

  .letter-text {
    font-size: clamp(1.8rem, 5.5vw, 2.5rem);
    margin-bottom: clamp(1.8rem, 3vh, 2.5rem);
  }

  .letter-photos {
    gap: clamp(1rem, 3vw, 1.8rem);
    max-width: clamp(240px, 58vw, 340px);
    margin-bottom: clamp(2rem, 4vh, 3rem);
  }

  .letter-photo {
    width: clamp(90px, 23vw, 140px);
    height: clamp(90px, 23vw, 140px);
    border-radius: clamp(3px, 1vw, 6px);
    /* Larger frame padding for medium screens */
    padding: 10px;
  }

  /* Mobile scroll indicator within letter layout */
  .mobile-scroll {
    margin-top: clamp(2rem, 5vh, 3.5rem);
  }

  .mobile-scroll .scroll-text {
    font-size: clamp(0.8rem, 2vw, 1rem);
  }

  .mobile-scroll .scroll-indicator {
    width: clamp(40px, 6vw, 50px);
    height: clamp(40px, 6vw, 50px);
  }

  /* CTA Section - Larger text and better spacing */
  .cta-text {
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    margin-bottom: clamp(2.5rem, 4vh, 3.5rem);
  }

  .cta-button {
    padding: clamp(0.9rem, 2.5vw, 1.2rem) clamp(2rem, 5vw, 3rem);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
  }
}

/* ============================================================================
   ACCESSIBILITY STYLES
   ============================================================================ */

/* TASK #086 - Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #1a1a1a;
  color: var(--gold-accent);
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
  z-index: 10000;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid var(--gold-accent);
  outline-offset: 2px;
}

/* TASK #087 - Enhanced focus indicators for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Remove focus for mouse users (handled by JS) */
body.using-mouse *:focus {
  outline: none;
}

/* Ensure focus is visible even with using-mouse class for keyboard */
body:not(.using-mouse) *:focus-visible {
  outline: 2px solid var(--gold-accent) !important;
  outline-offset: 3px !important;
}

/* TASK #088 - Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Disable GSAP animations */
  [data-gsap-animation] {
    animation: none !important;
    transition: none !important;
  }

  /* Static hero instead of zoom */
  .hero-title-mask {
    transform: none !important;
  }

  /* Disable carousel animation */
  .carousel-track {
    animation: none !important;
  }
}

/* TASK #089 - High Contrast Mode support (Windows) */
@media (prefers-contrast: high) {
  .menu-container,
  .footer-container,
  .detail-panel {
    background: #000;
    border: 2px solid #fff;
  }

  .menu-link,
  .footer-copy,
  .detail-content {
    color: #fff;
  }

  .cta-button {
    background: #000;
    color: #fff;
    border: 2px solid #fff;
  }

  .filter-btn.active {
    background: #fff;
    color: #000;
  }
}

/* TASK #090 - Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.sr-only-focusable:focus,
.sr-only-focusable:active {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* TASK #091 - ARIA live region for screen reader announcements */
#sr-announcer {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Copy feedback accessibility */
.copy-feedback[role="status"] {
  /* Existing styles preserved, role added for semantics */
}
