/* 
  Studio Kaplun - Core Styles
  Aesthetic: Dark, Cinematic, Premium, Brutalist-lite
*/

:root {
  /* Colors */
  --bg-color: #050505;
  --text-main: #F2F2F2;
  --text-muted: #888888;
  --accent-kaplun: #F48C21;
  --surface-color: #111111;

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing & Sizes */
  --container-width: 1400px;
  --section-padding: 8rem 2rem;

  /* Utilities */
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --border-radius-sm: 4px;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  /* Hide default cursor for custom one */
}

::selection {
  background-color: var(--accent-kaplun);
  color: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

a {
  color: var(--text-main);
  text-decoration: none;
  cursor: none;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.container-fluid {
  width: 100%;
  padding: 0 2rem;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background-color: var(--accent-kaplun);
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--text-main);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.15s ease-out, height 0.15s ease-out, background-color 0.15s ease-out;
  will-change: transform;
}

.custom-cursor.hover {
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.custom-cursor.cursor--dark {
  background-color: #1A1A1A !important;
}

.custom-cursor.cursor--dark.hover {
  background-color: rgba(0, 0, 0, 0.1) !important;
  border-color: rgba(0, 0, 0, 0.2) !important;
}

.custom-cursor.cursor--dark.hover::after {
  color: #1A1A1A !important;
}

.custom-cursor.hover::after {
  content: 'Ver';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.75rem;
  font-family: var(--font-body);
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px),
(pointer: coarse) {
  .custom-cursor {
    display: none !important;
  }

  * {
    cursor: auto !important;
  }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0.8) 0%, rgba(5, 5, 5, 0) 100%);
  backdrop-filter: blur(10px);
}

.brand-logo {
  display: block;
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.brand-logo:hover {
  opacity: 0.8;
}

.footer-logo {
  height: 64px;
  margin-bottom: 0.5rem;
}

@media (max-width: 900px) {
  .brand-logo {
    height: 38px;
  }
}

.nav-links {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}

.nav-links a:not(.btn-outline)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-kaplun);
  transition: var(--transition-smooth);
}

.nav-links a:hover::after {
  width: 100%;
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.8rem 1.5rem;
  border-radius: 40px;
  transition: var(--transition-smooth);
}

.btn-outline:hover {
  background-color: var(--text-main);
  color: var(--bg-color);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 8px;
  cursor: none;
  z-index: 101;
  background: transparent;
  border: none;
  padding: 10px;
  margin-right: -10px;
  /* Offset padding */
}

.menu-toggle .bar {
  width: 30px;
  height: 2px;
  background-color: var(--text-main);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
  transform: translateY(-5px) rotate(-45deg);
}

/* Mobile Navigation Panel */
.mobile-nav {
  position: fixed;
  inset: 0;
  background-color: var(--bg-color);
  z-index: 99;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
}

.mobile-nav.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  transform: translateY(20px);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  padding: 0 2rem;
}

.mobile-nav.active .mobile-nav-links {
  transform: translateY(0);
}

.mobile-nav-item {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
  text-align: center;
}

.mobile-nav-item:hover,
.mobile-nav-item:active {
  color: var(--accent-kaplun);
}

.mobile-nav-cta {
  margin-top: 1rem;
  font-size: 1.2rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1rem 2.5rem;
  border-radius: 40px;
}

.mobile-nav-cta:hover,
.mobile-nav-cta:active {
  background-color: var(--text-main);
  color: var(--bg-color);
  border-color: var(--text-main);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0 4rem;
  overflow: hidden;
}

/* Hero media layer: video + overlay */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(135deg,
      rgba(5, 5, 5, 0.78) 0%,
      rgba(5, 5, 5, 0.52) 50%,
      rgba(5, 5, 5, 0.70) 100%);
  /* Extra shadow at the bottom to keep scroll-indicator legible */
  box-shadow: inset 0 -120px 80px -20px rgba(5, 5, 5, 0.85);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
}

.hero-title {
  font-size: clamp(4rem, 10vw, 9rem);
  text-transform: uppercase;
  font-weight: 800;
}

.hero-title .line {
  display: block;
  line-height: 0.85;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 550px;
  margin-top: 2.5rem;
  font-weight: 300;
  line-height: 1.6;
}

.scroll-indicator {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 4rem;
}

.arrow-down {
  width: 1px;
  height: 50px;
  background-color: var(--text-muted);
  position: relative;
  overflow: hidden;
}

.arrow-down::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--text-main);
  animation: drop 2s infinite cubic-bezier(0.77, 0, 0.175, 1);
}

@keyframes drop {
  0% {
    transform: translateY(-100%);
  }

  50% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(100%);
  }
}

/* Mobile: keep video but adjust framing */
@media (max-width: 768px) {
  .hero {
    padding: 0 1.5rem;
  }

  .hero-title {
    font-size: clamp(2.2rem, 11vw, 3rem);
    letter-spacing: -0.04em;
  }

  .hero-title .line {
    line-height: 0.88;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-top: 1.5rem;
    max-width: 100%;
    line-height: 1.55;
  }

  .scroll-indicator {
    margin-top: 2.5rem;
  }

  .hero-video {
    object-position: 60% center;
  }

  .hero-overlay {
    background: linear-gradient(160deg,
        rgba(5, 5, 5, 0.82) 0%,
        rgba(5, 5, 5, 0.60) 55%,
        rgba(5, 5, 5, 0.75) 100%);
  }
}

/* Video Hover Container (Global Utility) */
.hover-video-container {
  position: fixed;
  pointer-events: none;
  z-index: 99;
  width: 300px;
  aspect-ratio: 16/9;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  border-radius: 8px;
}

.hover-video-container.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.hover-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Manifesto Section */
.manifesto {
  padding: var(--section-padding);
  background-color: var(--surface-color);
}

.manifesto .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.manifesto-text {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--text-main);
  position: sticky;
  top: 8rem;
}

.manifesto-text .line {
  display: block;
}

.manifesto-details {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  max-width: 600px;
}

.manifesto-details p {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
}

.manifesto-details p strong {
  color: var(--text-main);
  font-weight: 500;
}

/* Expertise / Services list */
.expertise {
  padding: var(--section-padding);
}

.expertise-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.expertise-item {
  padding: 4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
  position: relative;
}

.expertise-item h3 {
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.expertise-item p {
  max-width: 340px;
  font-size: 1rem;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(20px);
  transition: var(--transition-smooth);
  line-height: 1.6;
}

.expertise-item:hover h3 {
  color: var(--text-main);
  padding-left: 2rem;
}

.expertise-item:hover p {
  opacity: 1;
  transform: translateX(0);
}

/* Portfolio Masonry */
.portfolio {
  padding: var(--section-padding);
}

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
}

.portfolio-filters {
  display: flex;
  gap: 1.5rem;
}

.filter-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-smooth);
  padding-bottom: 4px;
  position: relative;
}

.filter-btn.active,
.filter-btn:hover {
  color: var(--text-main);
}

.filter-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--text-main);
  transition: var(--transition-smooth);
}

.filter-btn.active::after {
  width: 100%;
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-auto-rows: 250px;
  gap: 1.25rem;
}

.portfolio-item {
  position: relative;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  background-color: var(--surface-color);
}

.portfolio-item.tall {
  grid-row: span 2;
}

.portfolio-item.wide {
  grid-column: span 2;
}

.portfolio-item.large {
  grid-row: span 2;
  grid-column: span 2;
}

.portfolio-item img,
.portfolio-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Thumb: grayscale idle, colorise + scale on hover */
.portfolio-item .item-thumb {
  position: absolute;
  inset: 0;
  filter: grayscale(80%) brightness(0.6);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease, opacity 0.5s ease;
  z-index: 1;
}

.portfolio-item:hover .item-thumb,
.portfolio-item.touch-active .item-thumb {
  transform: scale(1.05);
  filter: grayscale(0%) brightness(1);
}

/* When video preview is active, fade thumb out */
.portfolio-item.preview-active .item-thumb {
  opacity: 0;
}

/* Video preview: hidden by default, fades in on preview-active */
.item-video-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 2;
  transition: opacity 0.5s ease;
  filter: brightness(0.85);
}

.portfolio-item.preview-active .item-video-preview {
  opacity: 1;
}

/* Overlay sits above both thumb and video */
.item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 50%);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-smooth);
  z-index: 3;
}

.portfolio-item:hover .item-overlay,
.portfolio-item.touch-active .item-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Stronger gradient when video is playing â€” keeps text readable over motion */
.portfolio-item.preview-active .item-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.1) 55%);
}

.item-overlay h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.item-overlay span {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-kaplun);
}

/* Footer CTA */
.footer {
  padding: 8rem 0 0 0;
  background-color: var(--surface-color);
  position: relative;
  overflow: hidden;
}

.footer-cta {
  text-align: center;
  padding-bottom: 6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.huge-text {
  font-size: clamp(2rem, 5vw, 4.5rem);
  margin-bottom: 4rem;
  line-height: 1.1;
  text-wrap: balance;
}

.huge-text .line {
  display: block;
}

.btn-primary {
  display: inline-block;
  background-color: var(--text-main);
  color: var(--bg-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 1.5rem 3rem;
  border-radius: 50px;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  background-color: var(--accent-kaplun);
  color: #fff;
  transform: translateY(-5px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 3rem 2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--text-main);
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--accent-kaplun);
}

/* Responsive Adjustments */
@media (max-width: 900px) {

  .container,
  .container-fluid {
    padding: 0 1.5rem;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .manifesto {
    padding: 6rem 0;
  }

  .manifesto .container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .manifesto-text {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    position: relative;
    top: 0;
  }

  .manifesto-details {
    max-width: 100%;
  }

  .manifesto-details p {
    font-size: 1.05rem;
  }

  .huge-text {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .expertise {
    padding: 6rem 0;
  }

  .expertise-item {
    padding: 3rem 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .expertise-item h3 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .expertise-item p {
    opacity: 1;
    transform: translateX(0);
    max-width: 100%;
  }

  .portfolio {
    padding: 6rem 0;
  }

  .portfolio-header {
    padding: 0 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .portfolio-filters {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .masonry-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
    grid-auto-flow: dense;
    gap: 0.75rem;
    padding: 0 1rem;
  }

  /* Tall items span 2 rows on mobile â€” preserves vertical proportions */
  .portfolio-item.tall {
    grid-row: span 2;
    grid-column: span 1;
  }

  /* Wide/horizontal items span full width on mobile â€” preserves landscape proportions */
  .portfolio-item.wide {
    grid-column: span 2;
    grid-row: span 1;
  }

  .portfolio-item.large {
    grid-row: span 2;
    grid-column: span 2;
  }

  /* Mobile overlay: always visible with minimal title for context */
  .item-overlay {
    opacity: 1;
    transform: translateY(0);
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 60%);
  }

  /* Reduce grayscale on mobile â€” still desaturated but readable */
  .portfolio-item .item-thumb {
    filter: grayscale(40%) brightness(0.7);
  }

  .item-overlay h4 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
  }

  .item-overlay span {
    font-size: 0.65rem;
  }

  /* Touch-active: full color reveal + stronger overlay */
  .portfolio-item.touch-active .item-thumb {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.03);
  }

  .portfolio-item.touch-active .item-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 55%);
  }

  /* Preview active on mobile: video plays, thumb fades */
  .portfolio-item.preview-active .item-thumb {
    opacity: 0;
  }

  .portfolio-item.preview-active .item-video-preview {
    opacity: 1;
  }

  .footer {
    padding-top: 6rem;
  }

  .footer-cta {
    padding-bottom: 4rem;
  }

  .btn-primary {
    padding: 1.2rem 2.5rem;
    font-size: 1rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   CASE STUDY: EDITORIAL PAGE (CLEAN LAYOUT)
------------------------------------------------------------------------- */
.case-hero {
  width: 100%;
  height: 70vh;
  background-color: var(--surface-color);
  overflow: hidden;
  position: relative;
}

.case-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.back-nav {
  position: fixed;
  top: 2.5rem;
  left: 2.5rem;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  mix-blend-mode: difference;
  transition: opacity 0.3s ease;
}

.back-nav:hover {
  opacity: 0.5;
}

.case-header {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 6rem;
}

.case-header-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.case-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--text-main);
  line-height: 1.15;
  max-width: 900px;
}

.case-subtitle {
  font-size: 1.35rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.6;
}

.case-summary {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.8;
  font-weight: 300;
  margin-top: 1rem;
  max-width: 800px;
}

.case-sidebar {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 4rem;
}

.case-scope-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-main);
  margin-bottom: 2rem;
  font-family: var(--font-body);
}

.case-scope-list {
  list-style: none;
}

.case-scope-list li {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1.5rem;
}

.case-scope-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--accent-kaplun);
}

.case-concept {
  max-width: 800px;
  margin: 0 auto 6rem;
  padding: 0 2rem;
  text-align: center;
}

.case-concept h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-kaplun);
  margin-bottom: 1.5rem;
}

.case-concept p {
  font-size: 1.5rem;
  color: var(--text-main);
  font-weight: 400;
  line-height: 1.6;
}

/* Stable Editorial Gallery */
.case-gallery {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem 8rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.gallery-row-50 {
  display: flex;
  gap: 2rem;
  width: 100%;
}

.gallery-row-100 {
  display: flex;
  width: 100%;
}

.gallery-block {
  flex: 1;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  background-color: var(--surface-color);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.gallery-block.in-view {
  opacity: 1;
  transform: translateY(0);
}

.gallery-block img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Case Footer Override */
.case-footer {
  padding: 4rem 2rem 8rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  max-width: var(--container-width);
  margin: 0 auto;
}

.case-footer h2 {
  margin-bottom: 3rem;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--text-main);
}

@media (max-width: 1024px) {
  .case-header {
    gap: 3rem;
  }

  .case-sidebar {
    padding-left: 2rem;
  }

  .case-concept p {
    font-size: 1.25rem;
  }
}

@media (max-width: 768px) {
  .case-header {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 5rem 1.5rem 3rem;
  }

  .case-title {
    font-size: clamp(2rem, 7vw, 2.8rem);
  }

  .case-subtitle {
    font-size: 1.15rem;
  }

  .case-summary {
    font-size: 1.05rem;
  }

  .case-sidebar {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 3rem;
  }

  .gallery-row-50 {
    flex-direction: column;
  }

  .case-concept {
    margin-bottom: 4rem;
    padding: 0 1.5rem;
  }

  .case-concept p {
    font-size: 1.2rem;
  }

  .case-hero {
    height: 50vh;
    width: 100%;
  }

  .case-gallery {
    padding: 0 1.5rem 6rem;
  }

  .case-footer {
    padding: 6rem 1.5rem;
  }

  .case-footer h2 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
}

/* --------------------------------------------------------------------------
   RELATED PROJECTS COMPONENT
------------------------------------------------------------------------- */
.related-projects {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 4rem 2rem 8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.related-projects h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--text-main);
  margin-bottom: 3rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-decoration: none;
  cursor: none !important;
}

.related-card * {
  cursor: none !important;
}

.related-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--border-radius-sm);
  background-color: var(--surface-color);
}

.related-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 1.2s ease;
  filter: brightness(0.9);
}

.related-card:hover .related-img-wrap img {
  transform: scale(1.04);
  filter: brightness(1.1);
}

.related-meta h4 {
  font-size: 1.25rem;
  color: var(--text-main);
  font-weight: 500;
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
}

.related-meta span {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-body);
}

@media (max-width: 900px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   LIGHT THEME SECTION (EDITORIAL CONTRAST)
------------------------------------------------------------------------- */
.light-section {
  background-color: #F2F2F0;
  color: #1A1A1A;
  position: relative;
  z-index: 10;
}

.light-section p,
.light-section .growth-section-intro {
  color: #333333 !important;
}

.light-section .growth-section-title {
  color: #111111 !important;
}

.light-section .stagger-child strong {
  color: #000000 !important;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   BRIEFING / CONTACT SECTION (HOME)
------------------------------------------------------------------------- */
.briefing-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8rem;
  align-items: start;
}

.briefing-left {
  position: sticky;
  top: 6rem;
}

.briefing-eyebrow {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-kaplun);
  margin-bottom: 1.5rem;
  display: block;
  font-weight: 500;
}

.briefing-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--text-main);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 2rem;
}

.briefing-desc {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 3.5rem;
}

.briefing-next-steps {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2.5rem;
}

.briefing-next-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-main);
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: block;
}

.briefing-step {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  margin-bottom: 1.2rem;
}

.briefing-step-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-kaplun);
  padding-top: 0.1rem;
  flex-shrink: 0;
}

.briefing-step-text {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.5;
}

.briefing-form {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.form-field label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
}

.opcional-label {
  opacity: 0.5;
  font-size: 0.85em;
  text-transform: none;
  letter-spacing: 0;
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  padding: 1.05rem 1.1rem;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
  width: 100%;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23555555' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  padding-right: 2.8rem;
  cursor: pointer;
}

.form-field select option {
  background-color: var(--surface-color);
  color: var(--text-main);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.form-field textarea {
  resize: vertical;
  min-height: 110px;
}

.form-submit-area {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding-top: 0.5rem;
}

.btn-form-submit {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bg-color);
  background-color: var(--text-main);
  border: none;
  border-radius: 6px;
  padding: 1.15rem 2rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 100%;
  text-align: center;
}

.btn-form-submit:hover {
  background-color: var(--accent-kaplun);
  color: #fff;
  transform: translateY(-2px);
}

.form-wpp-secondary {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-muted);
  text-align: center;
}

.form-wpp-secondary a {
  color: var(--text-main);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  transition: var(--transition-smooth);
}

.form-wpp-secondary a:hover {
  color: var(--accent-kaplun);
  text-decoration-color: var(--accent-kaplun);
}

.form-success-msg,
.form-error-msg {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.6;
  font-weight: 300;
  border-radius: var(--border-radius-sm);
  padding: 1rem 1.2rem;
  margin-top: 0.5rem;
  text-align: center;
}

.form-success-msg {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-error-msg {
  color: #ffb4b4;
  background: rgba(255, 60, 60, 0.05);
  border: 1px solid rgba(255, 60, 60, 0.2);
}

.req-star {
  color: var(--accent-kaplun);
  font-weight: 700;
  margin-left: 0.2rem;
}

/* Responsivo */
@media (max-width: 1024px) {
  .briefing-layout {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .briefing-left {
    position: static;
  }
}

@media (max-width: 768px) {
  .briefing-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    letter-spacing: -0.04em;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}