/* RESET & BASE */
:root {
  --bg-color: #0c0c0c;
  --text-main: #f0f0f0;
  --text-secondary: #999999;
  --accent: #d1d1d1;
  --font-main: 'Manrope', sans-serif;
  --transition-slow: 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-medium: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
  /* Hide scrollbar for luxury / clean feel */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body {
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Subtle brick texture overlay */
.bg-texture {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  opacity: 0.03;
  background-image: 
    linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 100px 50px, 100px 50px, 50px 25px, 50px 25px;
  background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
}

/* Typography Utility */
.d-block { display: block; }
.text-accent { color: var(--text-secondary); }



/* BACK NAVIGATION */
.back-nav {
  position: fixed;
  top: 2rem;
  left: 2rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
  mix-blend-mode: difference;
}

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

/* HERO SECTION */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 5vw;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1 !important;
  transform: scale(1.02);
  filter: brightness(0.88);
  z-index: 0;
}
.hero-img.active {
  opacity: 1 !important;
  transform: scale(1.02);
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.6) 100%),
              linear-gradient(to top, rgba(10,10,10,0.85) 0%, transparent 50%);
  z-index: 1;
}

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

.hero-brand {
  font-size: 1rem;
  letter-spacing: 4px;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.line-mask {
  overflow: hidden;
  padding-bottom: 5px;
}

.reveal-up {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.hero.loaded .reveal-up {
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 2px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
  transition-delay: 0.8s;
}

.hero.loaded .reveal-fade {
  opacity: 1;
  transform: translateY(0);
}

.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 5vw;
  font-size: 0.7rem;
  letter-spacing: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  transition-delay: 1.2s;
}

.scroll-arrow {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(5px); }
  60% { transform: translateY(3px); }
}

/* 1.5 TRANSITION BRICKS */
.transition-bricks {
  width: 100%;
  height: 100vh;
  position: relative;
  background: var(--bg-color);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sticky-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bricks-bg {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 800px;
  height: 80vh;
  display: flex;
  flex-wrap: wrap-reverse;
  align-content: flex-start;
  justify-content: center;
  gap: 6px;
  padding: 0 20px;
  z-index: 1;
}

.brick {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  width: calc(20% - 6px);
  height: 7vh;
  opacity: 0;
  transform: translateY(30px);
}

.bricks-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  mix-blend-mode: difference;
  text-align: center;
  width: 100%;
}

.huge-text {
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -1px;
}

.b-text-1, .b-text-2 {
  opacity: 0;
  transform: translateY(20px);
}

.intermediate-animation {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
}

.line-grow {
  width: 1px;
  height: 0px;
  background: rgba(255,255,255,0.4);
}
/* TRANSFORMATION INTRO */
.transformation-intro {
  padding: 15vh 5vw;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.huge-text {
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.2;
}


/* BEFORE/AFTER SLIDER */
.before-after-section {
  padding: 5vh 5vw 5vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slider-container {
  width: 100%;
  max-width: 1400px;
  margin-bottom: 2rem;
}

.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
}

.ba-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

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

.ba-before {
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
  z-index: 2;
}

.ba-label {
  position: absolute;
  top: 2rem;
  padding: 0.5rem 1rem;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 2px;
}

.label-after { right: 2rem; }
.label-before { left: 2rem; }

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 48px;
  transform: translateX(-50%);
  z-index: 3;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none !important;
}

.handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.handle-circle {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}
.handle-circle svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
  pointer-events: none;
}
.ba-handle:hover .handle-circle, .ba-handle:active .handle-circle {
  transform: scale(1.1);
}

.ba-info {
  margin-top: 2rem;
  max-width: 600px;
}
.ba-info h3 {
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}
.ba-info p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.secondary-projects {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  width: 100%;
  max-width: 1400px;
}

.project-trigger {
  width: 150px;
  aspect-ratio: 16/9;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--transition-fast);
  opacity: 0.5;
}
.project-trigger.active {
  opacity: 1;
  border-color: #fff;
}
.project-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}
.project-trigger:hover img {
  transform: scale(1.05);
}
.project-trigger[data-id="3"] img {
  object-position: center 10%;
}


/* 2.5 BLUEPRINT TRANSITION */
.transition-blueprint {
  min-height: 120vh;
  position: relative;
  background: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10vh 5vw;
}

.blueprint-line-track {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(-50%);
  z-index: 1;
}

.blueprint-line-fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.4), #ffffff);
  transform-origin: top;
}

.blueprint-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  max-width: 900px;
  width: 100%;
}

.blueprint-svg-wrap {
  width: 100%;
  max-width: 480px;
  opacity: 0.85;
}

.blueprint-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.bp-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

.blueprint-text-wrap {
  text-align: center;
}

.blueprint-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 5px;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(15px);
}

.bp-title-1, .bp-title-2 {
  opacity: 0;
  transform: translateY(20px);
}

/* SERVICES SECTION */
.services-section {
  padding: 5vh 5vw 15vh;
  position: relative;
}

.section-header {
  margin-bottom: 4rem;
}
.section-title {
  font-size: 0.8rem;
  letter-spacing: 3px;
  color: var(--text-secondary);
}

.services-list {
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.service-row {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 3rem 0;
  cursor: pointer;
  position: relative;
}

.service-row-header {
  display: flex;
  align-items: center;
  transition: transform var(--transition-fast);
}
.service-row:hover .service-row-header {
  transform: translateX(20px);
}

.service-num {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-right: 2rem;
  width: 30px;
}

.service-name {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  flex: 1;
}

.service-icon {
  font-size: 2rem;
  font-weight: 300;
  transition: transform var(--transition-medium);
}

.service-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-medium);
  margin-left: calc(30px + 2rem);
  max-width: 600px;
  color: var(--text-secondary);
  font-size: 1.2rem;
  line-height: 1.5;
}
.service-content p {
  padding-top: 1.5rem;
}

.service-row.active .service-content {
  max-height: 500px;
}
.service-row.active .service-icon {
  transform: rotate(45deg);
}

@media (max-width: 1024px) {
  .service-row:hover .service-row-header { transform: none; }
}


/* 3.5 WHY BEST TRANSITION */
.transition-why-best {
  width: 100%;
  height: 100vh;
  position: relative;
  background-color: #050505;
  overflow: visible !important;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999 !important;
}

.why-best-sticky {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5vw;
  z-index: 9999 !important;
  overflow: visible !important;
}

.why-best-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 1100px;
  width: 100%;
  position: relative;
  z-index: 9999 !important;
}

.why-best-and-wrap {
  overflow: hidden;
}

.why-best-and {
  display: inline-block;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 2px;
  opacity: 0;
  transform: translateY(30px);
}

.why-best-q-wrap {
  overflow: hidden;
}

.why-best-question {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 400;
  letter-spacing: 4px;
  color: var(--accent);
  opacity: 0;
  transform: translateY(30px);
}

.why-best-answer-wrap {
  margin-top: 1.5rem;
  will-change: transform;
  position: relative;
  z-index: 99999 !important;
  pointer-events: none;
}

.why-best-answer {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  font-size: clamp(2.2rem, 5.5vw, 5rem);
  line-height: 1.15;
  position: relative;
  z-index: 99999 !important;
  text-shadow: 
    0 2px 8px rgba(0, 0, 0, 1),
    0 5px 25px rgba(0, 0, 0, 0.98),
    0 12px 50px rgba(0, 0, 0, 0.95),
    0 20px 80px rgba(0, 0, 0, 0.9);
}

.wba-1 {
  display: block;
  color: #ffffff;
  letter-spacing: 2px;
  line-height: 1.15;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.95), 0 0 50px rgba(0, 0, 0, 0.85);
}

.wba-2 {
  display: block;
  color: var(--accent);
  letter-spacing: 3px;
  line-height: 1.15;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.95), 0 0 50px rgba(0, 0, 0, 0.85);
}

@media (max-height: 850px) {
  .why-best-content {
    gap: 1.2rem;
  }
  .why-best-answer {
    font-size: clamp(1.8rem, 4.4vw, 3.4rem);
    line-height: 1.12;
  }
  .why-best-and {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
  }
  .why-best-question {
    font-size: clamp(1rem, 2vw, 1.4rem);
  }
}

@media (max-width: 768px) {
  .why-best-content {
    gap: 1rem;
    padding: 0 4vw;
  }
  .why-best-answer {
    font-size: clamp(1.8rem, 7.5vw, 3.2rem);
    line-height: 1.18;
  }
}

/* SCATTERED GALLERY */
.gallery-section {
  padding: 8vh 0 15vh;
  overflow: hidden;
  position: relative;
  background-color: #0b0b0b;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(35, 35, 35, 0.45) 0%, rgba(8, 8, 8, 0.95) 75%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='80' viewBox='0 0 160 80'%3E%3Crect width='160' height='80' fill='%230b0b0b'/%3E%3Cpath d='M0 40h160M0 79.5h160M80 0v40M0 40v40M160 40v40' stroke='%23262626' stroke-width='1.5' stroke-opacity='0.4'/%3E%3Cpath d='M40 0v40M120 0v40M40 40v40M120 40v40' stroke='%231a1a1a' stroke-width='1' stroke-opacity='0.25'/%3E%3C/svg%3E");
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 0 5vw;
}

.gallery-title {
  font-size: clamp(1.4rem, 3.5vw, 2.5rem);
  font-weight: 300;
  letter-spacing: 3px;
  color: var(--text-main);
  text-transform: uppercase;
}

.gallery-container {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scatter-photo {
  position: absolute;
  background: #fff;
  padding: 10px;
  padding-bottom: 40px; /* Polaroid feel */
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), z-index 0s, box-shadow 0.4s;
}

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

/* Positioning chaos - 12 photos */
.p1 { width: 320px; height: 420px; top: 5%; left: 8%; transform: rotate(-8deg); z-index: 2; }
.p2 { width: 280px; height: 380px; top: 25%; left: 3%; transform: rotate(12deg); z-index: 3; }
.p3 { width: 350px; height: 250px; bottom: 8%; left: 10%; transform: rotate(-15deg); z-index: 4; }
.p4 { width: 300px; height: 300px; top: 12%; left: 32%; transform: rotate(6deg); z-index: 5; }
.p5 { width: 260px; height: 350px; top: 46%; left: 16%; transform: rotate(-5deg); z-index: 6; }
/* P6 (Piscina) prioritario con z-index alto y despejado */
.p6 { width: 380px; height: 280px; bottom: 8%; left: 36%; transform: rotate(8deg); z-index: 15; }
.p7 { width: 260px; height: 340px; top: 14%; right: 34%; transform: rotate(-10deg); z-index: 3; }
.p8 { width: 320px; height: 240px; top: 46%; right: 38%; transform: rotate(-4deg); z-index: 4; }
.p9 { width: 300px; height: 390px; bottom: 8%; right: 18%; transform: rotate(-6deg); z-index: 5; }
.p10 { width: 290px; height: 290px; top: 8%; right: 10%; transform: rotate(15deg); z-index: 7; }
.p11 { width: 330px; height: 450px; top: 38%; right: 4%; transform: rotate(-10deg); z-index: 8; }
.p12 { width: 360px; height: 240px; bottom: 5%; right: 10%; transform: rotate(4deg); z-index: 9; }

.scatter-photo:hover {
  z-index: 100 !important;
  box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}

@media (max-width: 1200px) and (min-width: 769px) {
  .p6 { 
    width: 320px; 
    height: 240px; 
    bottom: 6%; 
    left: 33%; 
    z-index: 15; 
  }
  .p8 { 
    width: 270px; 
    height: 210px; 
    top: 48%; 
    right: 40%; 
    z-index: 4; 
  }
  .p9 { 
    width: 260px; 
    height: 330px; 
    bottom: 6%; 
    right: 12%; 
    z-index: 5; 
  }
}

@media (max-width: 768px) {
  .gallery-container { 
    height: 220vh; 
    display: block; 
    padding: 0;
  }
  .scatter-photo { 
    position: absolute; 
    bottom: auto !important; 
  }
  .p1 { width: 50vw; height: 65vw; top: 2%; left: 8%; transform: rotate(-6deg); }
  .p2 { width: 45vw; height: 60vw; top: 10%; right: 5%; left: auto; transform: rotate(8deg); }
  .p3 { width: 55vw; height: 40vw; top: 17%; left: 2%; transform: rotate(-10deg); }
  .p4 { width: 45vw; height: 45vw; top: 25%; right: 8%; left: auto; transform: rotate(5deg); }
  .p5 { width: 50vw; height: 65vw; top: 33%; left: 5%; transform: rotate(-7deg); }
  .p6 { width: 62vw; height: 46vw; top: 41%; right: 3%; left: auto; transform: rotate(8deg); z-index: 15 !important; }
  .p7 { width: 50vw; height: 68vw; top: 52%; left: 6%; transform: rotate(-4deg); z-index: 4 !important; }
  .p8 { width: 55vw; height: 45vw; top: 60%; right: 5%; left: auto; transform: rotate(7deg); z-index: 3 !important; }
  .p9 { width: 45vw; height: 60vw; top: 68%; left: 2%; transform: rotate(-11deg); }
  .p10 { width: 55vw; height: 55vw; top: 76%; right: 8%; left: auto; transform: rotate(6deg); }
  .p11 { width: 50vw; height: 65vw; top: 84%; left: 5%; transform: rotate(-8deg); }
  .p12 { width: 60vw; height: 45vw; top: 92%; right: 2%; left: auto; transform: rotate(4deg); }
  
  .scatter-photo:hover { z-index: 100 !important; }
}


/* BTN PRUEBAS & GALLERY MODAL */
.btn-pruebas:hover {
  color: var(--bg-color) !important;
}
.btn-pruebas:hover .btn-pruebas-bg {
  transform: scaleY(1) !important;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 8, 0.98);
  backdrop-filter: blur(20px);
  z-index: 9990;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: auto;
  scrollbar-color: rgba(255, 255, 255, 0.7) rgba(255, 255, 255, 0.08);
}

.gallery-modal::-webkit-scrollbar {
  display: block !important;
  width: 14px;
}

.gallery-modal::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-modal::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  border: 3px solid rgba(8, 8, 8, 0.95);
}

.gallery-modal::-webkit-scrollbar-thumb:hover {
  background: #ffffff;
}

@media (max-width: 768px) {
  .gallery-modal {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    overscroll-behavior-y: contain;
  }
  .gallery-modal::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
}

.gallery-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gallery-modal-header {
  position: sticky;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 5vw;
  background: rgba(8, 8, 8, 0.9);
  backdrop-filter: blur(15px);
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-modal-count {
  font-size: 0.8rem;
  letter-spacing: 4px;
  color: var(--text-secondary);
  font-family: monospace;
}

.gallery-modal-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  padding: 0.8rem 1.6rem;
  font-family: inherit;
  font-size: 0.8rem;
  letter-spacing: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.3s ease;
}

.gallery-modal-close:hover {
  background: var(--text-main);
  color: #000;
  border-color: var(--text-main);
}

.gallery-modal-content {
  padding: 3rem 5vw 8rem;
  max-width: 1800px;
  margin: 0 auto;
  width: 100%;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

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

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

.gal-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #111;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.gal-thumb:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.gal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.05);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.gal-thumb:hover img {
  transform: scale(1.06);
  filter: grayscale(0%) contrast(1);
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.lightbox.active {
  pointer-events: auto;
  opacity: 1;
}

.lightbox-bg {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(10px);
}

.lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
  /* FLIP animation hook */
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  z-index: 3;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: transform var(--transition-fast);
}
.lightbox-close:hover { transform: scale(1.2); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 3;
  padding: 1rem;
  transition: transform var(--transition-fast);
}
.nav-prev { left: 2rem; }
.nav-next { right: 2rem; }
.lightbox-nav:hover { transform: translateY(-50%) scale(1.2); }

@media (max-width: 768px) {
  .lightbox-nav {
    font-size: 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    backdrop-filter: blur(4px);
  }
  .nav-prev { left: 0.8rem; }
  .nav-next { right: 0.8rem; }
  
  .lightbox-close {
    font-size: 1.5rem;
    top: 1.2rem;
    right: 1.2rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    backdrop-filter: blur(4px);
    padding: 0;
  }
}


/* WHY US */
.why-us-section {
  padding: 15vh 5vw;
  position: relative;
  background: #090909;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.why-us-header {
  margin-bottom: 4rem;
}

.why-section-tag {
  font-size: 0.75rem;
  letter-spacing: 4px;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 0.5rem;
}

.why-main-heading {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  letter-spacing: 2px;
}

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

@media (max-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.why-item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem 1.8rem;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
  transform-style: preserve-3d;
  transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

.why-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.06), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.why-item:hover::before {
  opacity: 1;
}

.why-item:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.why-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3.5rem;
}

.why-num {
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.4s ease;
}

.why-item:hover .why-num {
  color: #ffffff;
}

.why-line {
  flex-grow: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin-left: 1.5rem;
  transform-origin: left center;
  transition: background 0.4s ease;
}

.why-item:hover .why-line {
  background: rgba(255, 255, 255, 0.5);
}

.why-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.why-title {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 3px;
  color: var(--text-main);
}

.why-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}


/* 4.5 DREAM TRANSITION */
.transition-dream {
  width: 100%;
  height: 100vh;
  position: relative;
  background-color: #000000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.dream-sticky {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5vw;
}

.dream-content {
  text-align: center;
  max-width: 1100px;
  width: 100%;
}

.dream-phrase {
  font-size: clamp(2.2rem, 5.5vw, 5.5rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -1px;
}

.dream-1, .dream-2 {
  opacity: 0;
  transform: translateY(35px);
}

/* CONTACT */
.contact-section {
  padding: 15vh 5vw;
  background: #080808;
}

.contact-huge-title {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

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

.info-block {
  margin-bottom: 3rem;
}
.info-label {
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.info-data {
  display: block;
  font-size: 1.5rem;
  color: var(--text-main);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color var(--transition-fast);
}
.info-data:hover { color: var(--text-secondary); }

.contact-ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 300px;
}

.btn-solid, .btn-outline, .btn-submit {
  display: inline-block;
  padding: 1rem 2rem;
  text-align: center;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border-radius: 0;
}

.btn-solid {
  background: #fff;
  color: #000;
  border: 1px solid #fff;
}
.btn-solid:hover {
  background: transparent;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
  border-color: #fff;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.form-title {
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.input-group input, .input-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding: 1rem 0;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition-fast);
  resize: none;
}
.input-group input:focus, .input-group textarea:focus {
  border-color: #fff;
}

.btn-submit {
  background: #fff;
  color: #000;
  border: none;
  margin-top: 1rem;
}
.btn-submit:hover {
  background: #d1d1d1;
}


/* FOOTER */
.footer-section {
  padding: 5vh 5vw 6vh;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  width: 100%;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.social-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #fff;
  transform: translateX(-100%);
  transition: transform var(--transition-fast);
}

.social-link:hover .social-line {
  transform: translateX(0);
}

.social-dot {
  color: var(--text-secondary);
}

.back-to-top {
  background: none;
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.back-to-top:hover .btt-arrow {
  transform: translateY(-5px);
}

.btt-arrow {
  transition: transform var(--transition-fast);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.legal-link {
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 1px;
  transition: color var(--transition-fast);
}

.legal-link:hover {
  color: #ffffff;
}

.legal-dot {
  opacity: 0.3;
}

.footer-copy {
  letter-spacing: 1px;
  opacity: 0.6;
}

/* SCROLL ANIMATIONS UTILS */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}
.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal-stagger {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.scroll-reveal-stagger.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ====================================================
   LUXURY FEATURES
==================================================== */

/* 1. Lenis Smooth Scroll Setup */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-scroll-container] {
  will-change: transform;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

/* 4. Luxury Marquee */
.marquee-section {
  width: 100%;
  overflow: hidden;
  background: #000;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: relative;
  z-index: 5;
}
.marquee-inner {
  display: flex;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 35s linear infinite;
}
.marquee-text {
  font-size: clamp(1.1rem, 3.5vw, 3rem);
  font-weight: 300;
  letter-spacing: 3px;
  color: var(--text-secondary);
  padding-right: 2rem;
}

@media (max-width: 768px) {
  .marquee-section {
    padding: 1.5rem 0;
  }
  .marquee-text {
    font-size: 0.95rem;
    letter-spacing: 2px;
    padding-right: 1.5rem;
  }
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.33%); }
}

/* 5. Magnetic & 3D Items */
.magnetic {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1);
  will-change: transform;
}
.why-item {
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1);
  will-change: transform;
}

/* ====================================================
   UNIFIED BUTTONS, CONTACT & FOOTER
==================================================== */
.btn-solid, .btn-outline, .btn-submit {
  display: inline-block;
  padding: 1rem 2.5rem !important;
  text-align: center;
  text-decoration: none;
  font-size: 0.8rem !important;
  letter-spacing: 2px !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: all 0.3s ease !important;
  border-radius: 2px !important;
}

.btn-solid {
  background: #fff !important;
  color: #000 !important;
  border: 1px solid #fff !important;
}
.btn-solid:hover {
  background: transparent !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
}

.btn-outline {
  background: transparent !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
}
.btn-outline:hover {
  border-color: #fff !important;
  background: rgba(255,255,255,0.05) !important;
}

/* CONTACT */
.contact-section {
  padding: 15vh 5vw !important;
  background: #050505 !important;
}

.contact-huge-title {
  font-size: clamp(2.5rem, 6vw, 6rem) !important;
  font-weight: 300 !important;
  line-height: 1.1 !important;
  margin-bottom: 5rem !important;
}

.contact-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 4rem !important;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr !important; }
}

.info-block {
  margin-bottom: 3rem !important;
}
.info-label {
  font-size: 0.8rem !important;
  letter-spacing: 2px !important;
  color: rgba(255,255,255,0.6) !important;
  margin-bottom: 1rem !important;
}
.info-data {
  display: block !important;
  font-size: 1.5rem !important;
  color: #fff !important;
  text-decoration: none !important;
  margin-bottom: 0.5rem !important;
  transition: color 0.3s ease !important;
}
.info-data:hover { color: rgba(255,255,255,0.6) !important; }

.contact-ctas {
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  max-width: 300px !important;
}

.contact-form-container {
  background: rgba(255,255,255,0.03) !important;
  padding: 3rem !important;
  border: 1px solid rgba(255,255,255,0.05) !important;
}

.contact-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.5rem !important;
}
.form-title {
  font-size: 1rem !important;
  letter-spacing: 2px !important;
  margin-bottom: 1rem !important;
  font-weight: 400 !important;
}

.input-group input, .input-group textarea {
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(255,255,255,0.2) !important;
  padding: 1rem 0 !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 1rem !important;
  outline: none !important;
  transition: border-color 0.3s ease !important;
  resize: none !important;
}
.input-group input:focus, .input-group textarea:focus {
  border-color: #fff !important;
}

.btn-submit {
  background: #fff !important;
  color: #000 !important;
  border: none !important;
  margin-top: 1rem !important;
  width: 100% !important;
}
.btn-submit:hover {
  background: #d1d1d1 !important;
}

/* FOOTER */
.footer-section {
  padding: 5vh 5vw 6vh !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 3rem !important;
  background: #050505 !important;
  border-top: 1px solid rgba(255,255,255,0.1) !important;
}

.footer-top-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 2rem !important;
  width: 100% !important;
}

.social-links {
  display: flex !important;
  align-items: center !important;
  gap: 1.5rem !important;
  flex-wrap: wrap !important;
}

.social-link {
  color: #fff !important;
  text-decoration: none !important;
  font-size: 0.8rem !important;
  letter-spacing: 1px !important;
  position: relative !important;
  display: inline-block !important;
  overflow: hidden !important;
  padding-bottom: 2px !important;
}

.social-line {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 1px !important;
  background: #fff !important;
  transform: translateX(-101%) !important;
  transition: transform 0.3s ease !important;
}

.social-link:hover .social-line {
  transform: translateX(0) !important;
}

.social-dot {
  color: rgba(255,255,255,0.3) !important;
}

.back-to-top {
  background: none !important;
  border: none !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
  cursor: pointer !important;
  font-family: inherit !important;
  font-size: 0.9rem !important;
  letter-spacing: 2px !important;
}

.back-to-top:hover .btt-arrow {
  transform: translateY(-5px) !important;
}

.btt-arrow {
  transition: transform 0.3s ease !important;
}

.footer-bottom {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 1.5rem !important;
  padding-top: 2rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
  width: 100% !important;
  font-size: 0.75rem !important;
  color: rgba(255,255,255,0.6) !important;
}

.footer-legal-links {
  display: flex !important;
  align-items: center !important;
  gap: 0.8rem !important;
  flex-wrap: wrap !important;
}

.legal-link {
  color: rgba(255,255,255,0.6) !important;
  text-decoration: none !important;
  letter-spacing: 1px !important;
  transition: color 0.3s ease !important;
}

.legal-link:hover {
  color: #ffffff !important;
}

.legal-dot {
  opacity: 0.3 !important;
}

.footer-copy {
  letter-spacing: 1px !important;
  opacity: 0.6 !important;
}

.huge-text {
  font-size: clamp(2.5rem, 6vw, 6rem) !important;
  font-weight: 300 !important;
  line-height: 1.1 !important;
  letter-spacing: -1px !important;
}

:root {
  --bg-color: #0a0a0a !important;
  --bg-carbon: #121212 !important;
  --bg-graphite: #1a1a1a !important;
  --text-main: #f4f4f4 !important;
  --text-secondary: #8c8c8c !important;
  --text-dark: #333333 !important;
  --accent: #b3b3b3 !important;
}
body {
  background-color: var(--bg-color) !important;
  color: var(--text-main) !important;
}

/* UNIFIED BACK NAV */
.back-nav {
  position: fixed !important;
  top: 2rem !important;
  left: 2rem !important;
  z-index: 100 !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  color: var(--text-main) !important;
  text-decoration: none !important;
  font-size: 0.8rem !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  opacity: 0.7 !important;
  transition: opacity 0.3s ease, transform 0.3s ease !important;
  mix-blend-mode: difference !important;
}
.back-nav:hover {
  opacity: 1 !important;
  transform: translateX(-5px) !important;
}
