/*
Theme Name: Bali Villa Photography
Author: BC Solutions
Description: Custom WordPress theme for Bali Villa Photography.
Version: 1.0.0
*/

/* ================================================================
   BALI VILLA PHOTOGRAPHY — About Us Page
   Design inspired by normalisboring.es — Horizontal Scroll Edition
   ================================================================ */

/* ---- Google Fonts fallback + reset ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-light: #f5f5f7;
  --bg-blue: #b8c8dc;
  --bg-black: #111110;
  --bg-red: #d94f3a;
  --bg-cream: #ede8df;
  --text-dark: #1a1a18;
  --text-brown: #2c2416;
  --text-light: #f5f5f2;
  --accent-teal: #4a9b8e;
  --accent-red: #d94f3a;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}

html {
  /* No smooth scroll behavior, GSAP handles it */
  overflow-x: hidden;
}

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

.elementor img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }

/* ================================================================
   CUSTOM CURSOR
   ================================================================ */
.cursor {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(239, 57, 33, 0.945);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out),
              height 0.3s var(--ease-out),
              background 0.3s,
              border-color 0.3s,
              opacity 0.3s;
  mix-blend-mode: multiply;
}

.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: #eb1c26;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.1s;
}

body.cursor-hover .cursor {
  width: 64px;
  height: 64px;
  background: rgba(55, 181, 160, 0.936);
  border-color: var(--accent-teal);
}

body.cursor-hover-red .cursor {
  width: 64px;
  height: 64px;
  background: rgba(217, 79, 58, 0.15);
  border-color: var(--accent-red);
}


/* ================================================================
   SCROLL REVEAL UTILITIES
   ================================================================ */
.reveal-fade {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal-fade.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   FILTER VISIBILITY (toggled by JS category filter buttons)
   ================================================================ */
.filter-item {
  transition: opacity 0.35s ease;
}
.filter-item.is-hidden {
  display: none;
}

.reveal-overflow {
  overflow: hidden;
  display: block;
}

.reveal-overflow .inner,
.giant-word .inner {
  display: block;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease-out);
}

.reveal-overflow.in-view .inner,
.giant-word.in-view .inner {
  transform: translateY(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.reveal-scale.in-view {
  opacity: 1;
  transform: scale(1);
}

.reveal-fade:nth-child(2) { transition-delay: 0.1s; }
.reveal-fade:nth-child(3) { transition-delay: 0.2s; }

/* ================================================================
   HORIZONTAL SCROLL STRUCTURE
   ================================================================ */
.horizontal-scroll-wrapper {
  width: 100vw;
  height: 100vh;
  overflow: hidden; /* Hide horizontal scrollbar, GSAP does the work */
}

.horizontal-scroll-container {
  display: flex;
  flex-wrap: nowrap;
  height: 100vh;
  width: max-content; /* Container will stretch to fit all children side by side */
  will-change: transform;
}

.h-section {
  height: 100vh;
  flex-shrink: 0;
  position: relative;
}

/* ================================================================
   HERO SECTION (FLEX + STICKY TRACK)
   ================================================================ */
.hero-section {
  display: flex;
  position: relative;
  height: 100vh;
}

.hero-text-container {
  width: 85vw; /* Leaves 15vw for the image to peek in */
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 100px; /* Offset for left sidebar */
  padding-right: 60px;
  z-index: 10;
}

.hero-headline {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 40px;
  color: var(--text-dark);
}

.hero-headline .line {
  display: block;
  font-size: clamp(40px, 6vw, 80px);
  overflow: hidden;
}

.hero-headline .line .inner {
  display: block;
  transform: translateY(105%);
  transition: transform 1s var(--ease-out);
}

.hero-headline .line:nth-child(1) .inner { transition-delay: 0.05s; }
.hero-headline .line:nth-child(2) .inner { transition-delay: 0.12s; }
.hero-headline .line:nth-child(3) .inner { transition-delay: 0.19s; }

.hero-headline.in-view .line .inner { transform: translateY(0); }
.hero-headline .italic { font-style: italic; font-weight: 300; }

.hero-sub-block { max-width: 320px; }
.hero-sub-block p { font-size: 13px; line-height: 1.8; opacity: 0.7; color: var(--text-dark); }

/* Brand stamp */
.brand-stamp {
  position: absolute;
  bottom: 40px;
  right: 120px;
  transform: rotate(180deg);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1;
  z-index: 5;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.2;
}

.stamp-is { font-family: var(--font-serif); font-style: italic; font-size: 22px; font-weight: 300; letter-spacing: -0.02em; }
.stamp-art { font-family: var(--font-serif); font-size: 26px; font-weight: 500; letter-spacing: -0.04em; line-height: 0.88; text-align: right; }


/* Image Track (scrolls left) */
.hero-image-track {
  width: 120vw; /* Massive 100vw full width track */
  height: 100vh;
  position: relative;
}

.hero-image-sticky {
  position: relative;
  left: 0; 
  width: 100vw; /* Fills the track */
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-right: 0;
}

/* Dual Image Structure */
.dual-image-wrapper {
  position: relative;
  width: 100%; /* Take up the full 65vw of the sticky container (minus padding) */
  height: 100vh;
  z-index: 2;
}

.image-set {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  isolation: isolate; /* Ensures proper stacking context so set-1 doesn't bleed into set-2 */
}

/* Set 2 is animated dynamically by JS, no hardcoded clip-path here */
.set-2 {
  z-index: 2;
}

.bg-img {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 85%; /* Background image takes up left 65% of the wrapper */
  height: 100%; /* Background full height */
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  overflow: hidden;
}

.bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1; /* full opacity as requested */
}

.fg-img {
  position: absolute;
  top: 50%;
  right: 0%; /* Aligned to the right edge of wrapper */
  transform: translateY(-40%);
  width: 45%; /* Smaller than bg-img */
  height: 55%;
  z-index: 3;
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
  overflow: hidden;
}

.fg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================================================================
   VERTICAL TEXT SEPARATOR
   ================================================================ */
.vertical-text-section {
  width: 25vw;
  min-width: 300px;
  background: var(--bg-cream);
  border-left: 1px solid rgba(0,0,0,0.1);
  border-right: 1px solid rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vertical-text-track {
  height: 200vh; /* double height to allow it to scroll down */
  display: flex;
  align-items: center;
  justify-content: center;
}

.vertical-giant-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-serif);
  font-size: clamp(50px, 6vw, 130px); /* Reduced size by ~15px-20px */
  line-height: 1;
  color: var(--text-dark);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
}

.vertical-giant-text .asterisk {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.8em;
}

/* ================================================================
   ABOUT INTRO SECTION
   ================================================================ */
.about-intro {
  width: 110vw; /* Slightly wider to give room to read horizontally */
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  position: relative;
  overflow: hidden;
}

.about-left {
  position: relative;
  padding: 100px 40px 100px 80px;
  display: flex;
  align-items: center;
}

.about-img-wrap {
  width: 100%;
  height: 70vh;
  overflow: hidden;
  border-radius: 4px;
}

.about-right {
  padding: 100px 80px 100px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-big-text { margin-bottom: 50px; overflow: hidden; }
.giant-word { display: block; overflow: hidden; }
.giant-word .inner {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(64px, 8vw, 140px);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.03em;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
}

.giant-word:nth-child(1) .inner { transition-delay: 0.0s; }
.giant-word:nth-child(2) .inner { transition-delay: 0.07s; }
.giant-word:nth-child(3) .inner { transition-delay: 0.14s; }
.giant-word.in-view .inner { transform: translateY(0); }

.about-body p {
  font-size: 13px;
  line-height: 1.9;
  opacity: 0.7;
  max-width: 380px;
  margin-bottom: 20px;
}
.about-body p em {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  opacity: 1;
  color: var(--text-dark);
}

/* ================================================================
   PULL QUOTE SECTION
   ================================================================ */
.pull-quote-section {
  width: 140vw; /* Widened to 140vw as requested */
  background: var(--bg-light);
  padding: 0 80px; /* Removed vertical padding so images can touch top and bottom */
  position: relative;
  display: flex;
  align-items: center;
}

.pq-inner {
  position: static;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.pull-quote {
  font-family: var(--font-serif);
  font-size: clamp(44px, 8vw, 90px);
  font-weight: 400;
  line-height: 0.92;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
  position: relative;
  z-index: 3;
  width: 35%; /* Reduced to give more space to the images */
}

.pq-line { display: block; overflow: hidden; }
.pq-line .inner {
  display: block;
  transform: translateY(105%);
  transition: transform 0.9s var(--ease-out);
}

.pq-line:nth-child(1) .inner { transition-delay: 0.0s; }
.pq-line:nth-child(2) .inner { transition-delay: 0.08s; }
.pq-line:nth-child(3) .inner { transition-delay: 0.16s; }
.pq-line:nth-child(4) .inner { transition-delay: 0.24s; }
.pull-quote.in-view .pq-line .inner { transform: translateY(0); }
.pq-line.italic { font-style: italic; font-weight: 300; }

.pq-dual-images {
  position: absolute;
  right: 0;
  top: 0;
  width: 85vw; /* Increased from 60vw to stretch further left towards the text */
  height: 100vh;
}

.pq-img-large, .pq-img-small {
  overflow: hidden;
  border-radius: 0;
}

.pq-img-large {
  position: absolute;
  top: 0;
  left: 0;
  width: 65%; /* Much wider, brings the left edge very close to the text */
  height: 70%;
  z-index: 1;
}

.pq-img-small {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 31%; /* Keeps the small image relatively compact, maintaining a 4% gap */
  height: 50%;
  z-index: 2;
}

.pq-base, .pq-wipe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.pq-wipe {
  z-index: 2; /* Sits above the base image to wipe over it */
}

.pq-base img, .pq-wipe img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================================================================
   VALUES SECTION (BLUE BG)
   ================================================================ */
.values-section {
  width: 300vw; /* 3 items, 100vw each */
  background: var(--bg-blue);
  display: flex;
  position: relative;
}

/* Stacking effect horizontally using GSAP translate (CSS sticky won't work in GSAP horizontal scroll) */
.value-item {
  width: 100vw;
  height: 100vh;
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-direction: row; 
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 0; /* Remove container padding so image can bleed to the edge */
  background: var(--bg-blue); 
  border-left: 1px solid rgba(44, 36, 22, 0.15);
  box-shadow: -20px 0 40px rgba(0,0,0,0.08); 
  z-index: 1; 
}
.value-1 { border-left: none; box-shadow: none; z-index: 1; }
.value-2 { z-index: 2; }
.value-3 { z-index: 3; }

.value-num {
  position: absolute;
  top: 100px;
  left: 120px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 300;
  opacity: 0.5;
  margin-bottom: 40px;
  letter-spacing: 0.1em;
}

.value-content {
  width: 50vw; /* Take up left half */
  padding: 0 80px 0 120px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.value-title {
  font-family: var(--font-serif);
  font-size: clamp(48px, 6vw, 60px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--text-brown);
  overflow: hidden;
}

.value-title .inner {
  display: block;
  transform: translateY(105%);
  transition: transform 1s var(--ease-out);
}
.value-title.in-view .inner { transform: translateY(0); }

.value-desc {
  font-size: 13px;
  line-height: 1.9;
  max-width: 320px;
  opacity: 0.75;
  color: var(--text-brown);
}

.value-img-wrap {
  position: absolute;
  right: 0;
  top: 0;
  width: 50vw; /* Fully cover the right side */
  height: 100vh; /* Full height */
  max-width: none;
  overflow: hidden;
  border-radius: 0; /* No rounded corners */
}

/* ================================================================
   CTA SECTION (RED / CORAL)
   ================================================================ */
.cta-section {
  width: 100vw;
  background: var(--bg-red);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.cta-left {
  padding: 0 60px 0 100px; /* Removed vertical padding to prevent overflow */
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.cta-headline {
  font-family: var(--font-serif);
  font-size: clamp(60px, 9vw, 90px);
  font-weight: 400;
  line-height: 0.85;
  color: var(--text-light);
  overflow: hidden;
}

.cta-headline .inner {
  display: block;
  transform: translateY(105%);
  transition: transform 0.9s var(--ease-out);
}
.cta-headline.in-view .inner { transform: translateY(0); }
.cta-subhead { opacity: 0.5; margin-top: 8px; }
.cta-subhead .inner { transition-delay: 0.1s; }

.cta-body { margin-top: 40px; } /* Reduced from 60px to help prevent cutoff */
.cta-body p {
  font-size: 13px;
  line-height: 1.9;
  color: rgba(245,245,242,0.75);
  max-width: 340px;
  margin-bottom: 16px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  padding: 16px 36px;
  background: var(--text-light);
  color: var(--bg-red);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: background 0.3s, color 0.3s, transform 0.2s;
  cursor: none;
}
.cta-btn:hover {
  background: var(--bg-black);
  color: var(--text-light);
  transform: translateX(4px);
}

.cta-right {
  padding: 0 60px; /* Removed vertical padding */
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-img-wrap {
  width: 100%;
  height: 75vh;
  overflow: hidden;
  border-radius: 8px;
}



/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  width: 100vw;
  min-height: 100vh;
  background: var(--bg-black);
  color: var(--text-light);
  padding: 80px 120px;
  display: flex;
  align-items: center; /* Center content vertically */
}

.footer-wrapper {
  width: 100%;
  display: flex;
  justify-content: space-between; /* Huge text on left, links on right */
  align-items: center;
  gap: 60px;
}

.footer-huge-text {
  font-family: var(--font-serif);
  font-size: clamp(60px, 10vw, 160px);
  line-height: 0.9;
  display: flex;
  flex-direction: column;
  flex: 1; /* Take up remaining space */
}

.footer-huge-text .italic {
  font-style: italic;
  font-weight: 300;
  color: var(--accent-teal);
  padding-left: 5%;
}

.footer-bottom-bar {
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding-left: 60px;
  border-left: 1px solid rgba(255,255,255,0.1);
  min-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  opacity: 0.4;
  margin-bottom: 20px;
}

.footer-col p, .footer-col a {
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.8;
  display: block;
  margin-bottom: 8px;
}

.footer-col a:hover {
  color: var(--accent-teal);
  opacity: 1;
}

/* ================================================================
   FLOAT IMAGES
   ================================================================ */
.float-image img { transition: transform 0.6s var(--ease-out); }
.float-image:hover img { transform: scale(1.04); }

/* ================================================================
   RESPONSIVE (Disable horizontal scroll on mobile)
   ================================================================ */
@media (max-width: 768px) {
  /* On smaller screens, revert to normal vertical scrolling */
  body { overflow-x: hidden; overflow-y: auto; }
  
  .horizontal-scroll-wrapper {
    width: 100%;
    height: auto;
    overflow: visible;
  }
  
  .horizontal-scroll-container {
    display: block;
    width: 100%;
    height: auto;
    transform: none !important; /* Override GSAP inline styles */
  }

  .h-section {
    width: 100% !important;
    height: auto;
    min-height: 30vh;
  }

  .hero-section {
    flex-direction: column;
    height: auto;
  }
  .hero-text-container {
    width: 100%;
    height: auto;
    padding: 100px 40px 40px 40px;
  }
  .hero-image-track {
    width: 100%;
    height: 70vw;
    min-height: 400px;
  }
  .hero-image-sticky {
    position: static;
    width: 100%;
    height: 100%;
    padding: 0;
  }
  .dual-image-wrapper { width: 100%; height: 100%; }
  .bg-img { width: 100%; }
  .fg-img { width: 50%; height: 60%; transform: translateY(-50%); right: 5%; }

  .vertical-text-section {
    width: 100%;
    min-width: 0;
    padding: 60px 40px;
    border-left: none;
    border-right: none;
    border-top: 1px solid rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(0,0,0,0.1);
  }
  .vertical-text-track { height: auto; }
  .vertical-giant-text {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    transform: none;
    font-size: clamp(32px, 8vw, 60px);
    white-space: normal;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    text-align: center;
  }

  .about-intro, .cta-section { grid-template-columns: 1fr; }
  .about-left, .about-right, .cta-left { padding: 60px 40px; }
  .about-img-wrap, .cta-img-wrap { height: 50vw; }
  
  .pq-image-wrap {
    position: static; transform: none; width: 100%; height: 280px; margin-top: 60px;
  }
  
  .values-section { width: 100% !important; padding: 30px 0;
    border-left: none;
    border-right: none;
    border-top: 1px solid rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    overflow: hidden;
  }
  .vertical-text-track { 
    height: auto; 
    display: flex;
    white-space: nowrap;
    width: 100%;
  }
  .vertical-giant-text {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    transform: none;
    font-size: clamp(24px, 8vw, 48px);
    white-space: nowrap;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 20px;
    justify-content: flex-start;
    text-align: left;
    display: flex;
    animation: marqueeMobile 12s linear infinite;
    padding-left: 100vw;
  }
  @keyframes marqueeMobile {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
  }

  .about-intro, .cta-section { grid-template-columns: 1fr; }
  .about-left, .about-right, .cta-left { padding: 60px 40px; }
  .about-img-wrap, .cta-img-wrap { height: 50vw; }
  
  .pull-quote-section {
    padding: 60px 40px;
    height: auto;
  }
  .pq-inner {
    flex-direction: column;
  }
  .pull-quote {
    font-size: clamp(35px, 8vw, 90px);
    width: 100%;
    margin-bottom: 40px;
  }
  .pq-dual-images {
    position: static;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .pq-img-large, .pq-img-small {
    position: relative;
    width: 100%;
    height: 60vw;
    top: auto; left: auto; bottom: auto; right: auto;
  }
  .pq-wipe { display: none; }
  .set-2 { display: none; }
  
  .values-section { width: 100% !important; flex-direction: column; align-items: stretch; padding: 60px 40px; }
  .value-item { width: 100%; border-left: none; border-bottom: 1px solid rgba(0,0,0,0.1); height: auto; padding: 40px 0; flex-direction: column; gap: 30px; box-shadow: none; position: relative; justify-content: flex-start; align-items: flex-start; }
  .value-num { position: relative; top: 0; left: 0; margin-bottom: 10px; }
  .value-content { width: 100%; }
  .value-img-wrap { position: relative; width: 100%; height: 260px; margin-top: 20px; max-width: none; }
  
  .cta-right { padding: 40px; }
  
  .team-section { width: 100% !important; padding: 80px 40px; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 28px; width: 100%; }
  
  .footer-wrapper { flex-direction: column; gap: 60px; align-items: flex-start; }
  .footer-bottom-bar { padding-left: 0; border-left: none; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 40px; width: 100%; }
}

@media (max-width: 680px) {
  .site-header { padding: 20px 24px; }
  .vertical-nav { display: none; }
  .page-label { left: 24px; bottom: 24px; }
  .menu-pill { right: 24px; top: 16px; padding: 10px 22px; font-size: 11px; }

  .hero-content, .about-left, .about-right, .cta-left { padding: 40px 24px; }
  .pull-quote-section { padding: 80px 24px; }
  .values-section { padding: 40px 24px; }
  .team-section { padding: 80px 24px; }
  .site-footer { padding: 48px 24px 36px; }
  
  .team-grid { grid-template-columns: 1fr; }
  .cta-right { padding: 24px; }

  .cursor, .cursor-dot { display: none; }
  body { cursor: auto; }
  .menu-pill, .cta-btn, .overlay-close { cursor: pointer; }
}

/* ================================================================
   TOOLS PAGE — PANEL-STACK EDITORIAL DESIGN
   ================================================================ */

.tools-page-vertical {
  background-color: #07080a;
  color: #fff;
  overflow-x: hidden;
  cursor: none;
}

.cursor-hover-light .cursor  { border-color: rgba(255,255,255,0.5); }
.cursor-hover-light .cursor-dot { background-color: #fff; }

.vertical-wrapper { width: 100%; position: relative; }

/* Film Grain */
.film-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── HERO ─────────────────────────────────────────── */
.tp-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.tp-hero__bg { position: absolute; inset: 0; z-index: 0; }
.tp-hero__img { width: 100%; height: 130%; object-fit: cover; object-position: center; }
.tp-hero__vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 20%, rgba(7,8,10,0.95) 100%),
    linear-gradient(to top, #07080a 0%, transparent 50%);
}

/* Corner metadata */
.tp-corner {
  position: absolute;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  z-index: 5;
}
.tp-corner--tl { top: 36px; left: 40px; }
.tp-corner--tr { top: 36px; right: 40px; }
.tp-corner--bl { bottom: 40px; left: 40px; }
.tp-corner--br { bottom: 40px; right: 40px; }

/* Hero center */
.tp-hero__center {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: 0 24px;
}

.tp-hero__headline {
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: clamp(80px, 12vw, 240px);
  font-weight: 300;
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: #fff;
  white-space: nowrap;
}

.tp-hero__sub {
  margin-top: 40px;
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.6;
  max-width: 460px;
  margin-inline: auto;
}

/* Character mask for hero animation */
.tp-char-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.tp-char {
  display: inline-block;
  transform: translateY(110%);
}
.tp-word-sep { display: inline-block; width: 0.3em; }

/* ─── MARQUEE ──────────────────────────────────────── */
.tp-marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.tp-marquee--dark  { background: #07080a; color: rgba(255,255,255,0.35); }
.tp-marquee--light { background: #0e0f12; color: rgba(255,255,255,0.25); }

.tp-marquee__track {
  display: inline-flex;
  gap: 0;
  animation: marqueeRoll 22s linear infinite;
}
.tp-marquee__track--reverse { animation-direction: reverse; }

.tp-marquee__track span {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 0 32px;
}
.tp-marquee__dot { opacity: 0.4; padding: 0 8px !important; }

@keyframes marqueeRoll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── PANEL BASE ───────────────────────────────────── */
.tp-panel {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.tp-panel__bg { position: absolute; inset: 0; z-index: 0; }
.tp-panel__img {
  width: 100%;
  height: 130%;
  object-fit: cover;
  transform: translateY(-10%);
}

/* Crossfade image layers */
.tp-spec-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.tp-spec-layer.active { opacity: 1; }
.tp-spec-layer img {
  width: 100%;
  height: 130%;
  object-fit: cover;
  transform: translateY(-10%);
}

.tp-panel__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(7,8,10,0.88) 0%, rgba(7,8,10,0.45) 60%, rgba(7,8,10,0.70) 100%);
  z-index: 1;
}
.tp-panel__overlay--light {
  background: linear-gradient(to bottom, rgba(7,8,10,0.72) 0%, rgba(7,8,10,0.6) 100%);
  z-index: 1;
}

/* Left column: title + description stacked */
.tp-panel__left-col {
  position: absolute;
  left: 60px;
  bottom: 50px;
  top: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 60px;
  max-width: 55%;
}

.tp-panel__desc {
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
  max-width: 460px;
}


/* Giant corner index */
.tp-panel__index {
  position: absolute;
  bottom: 40px;
  right: 0.02em;
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: clamp(160px, 28vw, 400px);
  font-weight: 300;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.06);
  z-index: 1;
  pointer-events: none;
  user-select: none;
}
.tp-panel__index--outline {
  -webkit-text-stroke: 1px rgba(255,255,255,0.12);
}
.tp-panel__index--light {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.08);
}

/* Text block bottom-left */
.tp-panel__text {
  position: absolute;
  z-index: 3;
}
.tp-panel__text--bl {
  bottom: 80px;
  left: 60px;
}
.tp-panel__text--center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: left;
}

.tp-panel__title {
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: clamp(64px, 8vw, 160px);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.tp-panel__title--dark { color: #fff; }

/* Mask for reveal */
.tp-mask {
  display: block;
  overflow: hidden;
}
.tp-mask > * { display: block; }

/* Specs strip right side */
.tp-panel__specs-strip {
  position: absolute;
  right: 56px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.tp-specs__label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
}
.tp-specs__item {
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: color 0.4s ease, transform 0.4s ease;
  transform-origin: right center;
  padding: 6px 0 6px 20px;
  position: relative;
}
.tp-specs__item::after {
  content: '';
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 0;
  background: #fff;
  transition: height 0.4s ease;
}
.tp-specs__item:hover,
.tp-specs__item.spec-active {
  color: rgba(255,255,255,1);
  transform: translateX(-6px);
}
.tp-specs__item.spec-active::after {
  height: 100%;
}
.tp-specs__item small {
  display: block;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  transition: color 0.4s ease;
}
.tp-specs__item:hover small,
.tp-specs__item.spec-active small {
  color: rgba(255,255,255,0.7);
}


/* Tagline strip bottom */
.tp-panel__tagline {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  z-index: 3;
  padding: 24px 60px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
  border-top: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(4px);
  background: rgba(7,8,10,0.4);
  max-width: 600px;
}

/* ─── PANEL 02 SPLIT ────────────────────────────────── */
.tp-panel--02 { height: 100vh; }

.tp-panel__split {
  display: flex;
  height: 100%;
}

.tp-split__dark {
  flex: 0 0 42%;
  background: #0a0b0d;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  border-right: 1px solid rgba(255,255,255,0.05);
}

.tp-split__content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 400px;
}

.tp-split__photo {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.tp-split__photo img {
  width: 100%;
  height: 130%;
  object-fit: cover;
  transform: translateY(-10%);
}

.tp-split__desc {
  margin-top: 32px;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
  max-width: 320px;
}

.tp-split__specs {
  list-style: none;
  padding: 0; margin: 24px 0 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
}
.tp-split__specs li {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.tp-split__specs--center { text-align: left; }

/* ─── PANEL 03 GIANT CENTER TEXT ───────────────────── */
.tp-panel__center-text {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;
}

.tp-panel__giant-title {
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: clamp(80px, 16vw, 200px);
  font-weight: 300;
  line-height: 0.85;
  letter-spacing: -0.03em;
}

.tp-panel__center-desc {
  margin-top: 40px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 80px;
}
.tp-panel__center-desc p {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255,255,255,0.65);
  max-width: 300px;
  text-align: left;
}

/* ─── INTERLUDE ─────────────────────────────────────── */
.tp-interlude {
  padding: 140px 60px;
  background: #07080a;
  position: relative;
  overflow: hidden;
}
.tp-interlude--01::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,0.05);
  transform: translateY(-50%);
}

.tp-interlude__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
}
.tp-interlude__num {
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: 100px;
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.15);
  line-height: 1;
  flex-shrink: 0;
}
.tp-interlude__quote {
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: clamp(24px, 3.5vw, 48px);
  font-weight: 300;
  font-style: normal;
  line-height: 1.35;
  color: rgba(255,255,255,0.85);
}
.tp-interlude__quote em { font-style: italic; }
.tp-interlude__line {
  flex-shrink: 0;
  width: 1px;
  height: 120px;
  background: rgba(255,255,255,0.12);
}

/* ─── CTA ───────────────────────────────────────────── */
.tp-cta {
  padding: 200px 60px;
  background: #07080a;
  text-align: center;
}
.tp-cta__label {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 48px;
}
.tp-cta__headline {
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: clamp(60px, 12vw, 160px);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: 60px;
}
.tp-cta__btn { margin-top: 16px; }

/* ─── FOOTER DARK ────────────────────────────────────── */
.vert-footer {
  background-color: #07080a;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.mt-4 { margin-top: 40px; display: inline-block; }

/* ─── VERTICAL REVEAL ANIMATIONS ───────────────────── */
.reveal-up {
  overflow: hidden;
  display: inline-block;
  vertical-align: bottom;
}
.reveal-up .inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.in-view .inner { transform: translateY(0); }

.reveal-fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1.1s ease-out, transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-fade-up.in-view { opacity: 1; transform: translateY(0); }

.reveal-slide-left {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 1.2s ease-out, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-slide-left.in-view { opacity: 1; transform: translateX(0); }

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 900px) {
  .tp-corner { display: none; }
  .tp-hero__headline { font-size: clamp(64px, 20vw, 120px); white-space: normal; }
  .tp-panel__specs-strip { display: none; }
  .tp-panel__tagline { display: none; }
  .tp-panel__left-col { left: 24px; bottom: 40px; padding-bottom: 0; max-width: calc(100% - 48px); }
  .tp-panel__title { font-size: clamp(48px, 12vw, 80px); }
  .tp-panel__split { flex-direction: column; }
  .tp-split__dark { flex: 0 0 55%; padding: 40px 24px; }
  .tp-interlude__inner { flex-direction: column; gap: 24px; }
  .tp-interlude__num { font-size: 60px; }
  .tp-interlude__line { width: 80px; height: 1px; }
  .tp-cta { padding: 120px 24px; }
  .tp-panel__center-desc { flex-direction: column; gap: 24px; align-items: center; }
}

/* =====================================================================
   VILLA PHOTOGRAPHY — Style landing page 
   Warna Aksen: BC Solutions Red (#8A151B)
   ===================================================================== */

:root {
  --vp-bg: #FFFFFF;
  --vp-fg: #000000;
  --vp-accent: #8A151B; /* Merah BC Solutions */
  --vp-gray: #f5f5f5;
  --vp-dark: #111111;
  --font-sans: "Inter", -apple-system, sans-serif;
  --font-head: "Anton", Impact, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body.vp-page {
  background-color: var(--vp-bg);
  color: var(--vp-fg);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- LOADING SCREEN ---------- */
.vp-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.vp-loader-bg {
  position: absolute;
  inset: 0;
  background-color: var(--vp-accent);
}
.vp-loader-text {
  position: relative;
  z-index: 2;
  font-family: var(--font-head);
  font-size: clamp(40px, 8vw, 120px);
  color: #fff;
  text-align: center;
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.vp-line {
  overflow: hidden;
}
.vp-line span {
  display: inline-block;
  transform: translateY(100%);
}

/* ---------- MAIN LAYOUT ---------- */
.vp-main {
  position: relative;
}

/* ---------- OVERLAYS ---------- */
.vp-overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  width: clamp(250px, 25vw, 400px); /* Smaller overlay as requested */
  background-color: var(--vp-dark);
  color: #fff;
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}
.vp-menu-overlay {
  left: 0;
  transform: translateX(-100%);
}
.vp-contact-overlay {
  right: 0;
  transform: translateX(100%);
}
.vp-overlay.active {
  transform: translateX(0);
}
.vp-overlay-title {
  font-family: var(--font-head);
  font-size: 2rem;
  text-transform: uppercase;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}
.vp-overlay-links {
  list-style: none;
  font-size: 1.2rem;
  line-height: 2;
}
.vp-overlay-links a {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}
.vp-overlay-links a:hover { color: var(--vp-accent); }
.vp-overlay-close {
  margin-top: 4rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  text-align: left;
}
.vp-overlay-close:hover { color: var(--vp-accent); }

/* ---------- SIDEBARS ---------- */
.vp-sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 40px; /* Thinner sidebar */
  background-color: var(--vp-dark);
  z-index: 9999;
  display: flex;
  align-items: flex-start; /* Moved to top */
  justify-content: center;
  padding-top: 3rem; /* Space from top */
  cursor: pointer;
  transition: background-color 0.3s, transform 0.5s ease;
}
.vp-sidebar:hover {
  background-color: #000;
}
.vp-sidebar-left { left: 0; }
.vp-sidebar-right { 
  right: 0; 
  transform: translateX(100%); /* Hidden initially */
}
.vp-sidebar-right.show {
  transform: translateX(0); /* Slides in after intro */
}

.vp-sidebar-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-sans);
  font-size: 11px; /* Smaller text */
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  pointer-events: none;
  transition: color 0.3s ease;
}

/* Invert colors when overlapping white/bright backgrounds (like the footer) */
.vp-sidebar.invert {
  background-color: #fff !important;
}
.vp-sidebar.invert .vp-sidebar-text {
  color: var(--vp-dark) !important;
}

/* ---------- HORIZONTAL PORTFOLIO ---------- */
.vp-portfolio {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: relative;
  background-color: var(--vp-bg);
}

.vp-track {
  display: flex;
  height: 100vh;
  will-change: transform;
  padding-left: 40px;
}

/* ---------- CARDS ---------- */
.vp-card {
  height: 100vh;
  flex-shrink: 0;
  position: relative;
  display: flex;
}

/* 1. One-Time Splash Intro */
.vp-splash-intro {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 85vw; /* Leaves 15vw on the right as a sneak peek */
  background-color: rgba(72, 10, 13, 0.85); /* Semi-transparent: 85% opacity */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  padding: 4rem; /* Inside sidebar safe area */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  will-change: transform;
}
.vp-splash-bg {
  position: absolute;
  inset: 0;
  background-color: transparent; /* Background now handled by parent rgba */
  z-index: -1;
}
.vp-splash-content {
  width: 100%;
  max-width: 1200px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.vp-wordmark-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-head);
  font-size: clamp(24px, 3.5vw, 60px);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 2vh;
}

.vp-splash-middle {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.vp-splash-photo {
  width: clamp(250px, 25vw, 300px);
  aspect-ratio: 1;
  background: #000;
  pointer-events: auto;
}
.vp-splash-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vp-splash-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 3vh;
}
.vp-desc {
  max-width: 900px;
  text-align: center;
  font-size: clamp(16px, 1.8vw, 26px);
  line-height: 1.4;
  font-weight: 500;
  margin-bottom: 20px;
}
.vp-splash-scroll {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  align-self: flex-end;
  position: absolute;
  bottom: 0;
  right: 0;
}

/* 2. Project Cards */
.vp-project-card {
  width: max-content; /* Card width depends on content */
  background-color: var(--vp-bg);
  padding-right: 80px; 
  align-items: center;
  display: flex;
  position: relative;
}

/* Inner Layout of Card 1 */
.vp-card-intro-text {
  width: 650px;
  max-width: 85vw;
  height: 100%;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Pushes title to top, desc to bottom */
  flex-shrink: 0;
  color: var(--vp-fg); /* Explicitly set color */
}
.vp-cit-title {
  font-family: var(--font-head);
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  word-wrap: break-word;
  overflow-wrap: break-word;
  color: var(--vp-fg); /* Ensure title uses the dark foreground color */
  margin: 0;
}
.vp-cit-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--vp-fg); /* Ensure description uses the dark foreground color */
  margin: 0;
}

/* Static Bookmark that gets animated by JS */
.vp-bookmark {
  width: 50px; 
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 0;
  background-color: var(--vp-bg);
  border-right: 1px solid rgba(0,0,0,0.1);
  font-size: 12px;
  font-weight: 500;
  color: var(--vp-fg);
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}
.vp-bm-num {
  font-family: var(--font-head);
  font-size: 16px;
  letter-spacing: 0.05em;
  transform: rotate(270deg);
  margin-top: 10px;
}
.vp-bm-title {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin-bottom: 10px;
}

.vp-card-img-wrap {
  width: calc(85vw - 50px);
  height: 100vh; /* Full atas dan bawah */
  position: relative;
  overflow: hidden;
  margin-left: 0; /* Full kiri (nempel dengan bookmark) */
  flex-shrink: 0;
}

/* Slider Track */
.vp-card-img-slider {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
}
.vp-card-img-slider::-webkit-scrollbar {
  display: none; /* Safari/Chrome */
}

/* Slider Items */
.vp-slide-item {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: center;
  position: relative;
}

.vp-slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.vp-project-card:hover .vp-slide-item img {
  transform: scale(1.03);
}

/* Navigation Buttons */
.vp-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s, background 0.3s;
}
.vp-card-img-wrap:hover .vp-slider-btn {
  opacity: 1;
}
.vp-slider-btn:hover {
  background: rgba(0,0,0,0.8);
}
.vp-slider-btn.prev { left: 10px; }
.vp-slider-btn.next { right: 10px; }

/* ---------- PROGRESS BAR ---------- */
.vp-progress-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 4px;
  background-color: var(--vp-accent);
  width: 0%;
  z-index: 100;
  transform-origin: left;
}

/* ---------- FIXED MENUS / MOBILE TOGGLES ---------- */
.vp-menu-toggle, .vp-contact-toggle {
  position: fixed;
  bottom: 2rem;
  z-index: 90;
  background: var(--vp-dark);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-decoration: none;
}
.vp-menu-toggle { left: 2rem; display: none; /* Hide for now as we don't have menu overlay yet */ }
.vp-contact-toggle { right: 2rem; display: none; }

/* Helpers */
.gs-fade {
  opacity: 0;
  transform: translateY(20px);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  /* Sidebar rail kiri/kanan diganti bottom bar Menu | Contacts */
  .vp-sidebar {
    display: none;
  }

  /* Splash intro: tetap fixed full-screen di mobile juga, cuma lebar dibuat 100% (bukan 85vw) dan konten dipadatkan */
  .vp-splash-intro {
    width: 100%;
    padding: 2.5rem 1.5rem;
  }
  .vp-wordmark-top {
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-top: 0;
    font-size: 22px;
  }
  .vp-splash-middle {
    margin: 2rem 0;
  }
  .vp-splash-photo {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
  .vp-splash-footer {
    margin-bottom: 0;
  }
  .vp-desc {
    text-align: left;
    font-size: 15px;
  }
  .vp-splash-scroll {
    position: static;
    align-self: center;
    margin-top: 1.5rem;
    text-align: center;
  }

  /* Mobile Portfolio Magic Scroll (Vertical Snap Slider) */
  .vp-portfolio {
    /* height: 70dvh; */
    overflow: hidden; /* Wrap tightly */
    padding-bottom: 70px; /* space for mobile bar */
    padding-top: 30px; /* space for header */
  }
  .vp-track {
    flex-direction: column;
    width: 100%;
    height: 100%; /* Mengambil sisa ruang di dalam portfolio */
    overflow-y: auto; /* Ini yang menjadi scroll container */
    overflow-x: hidden;
    scroll-snap-type: y mandatory; /* Snapping on direct parent */
    scroll-behavior: smooth;
    transform: none !important; /* WAJIB !important untuk menimpa style inline dari GSAP */
    display: flex;
    padding-left: 0;
  }
  .vp-track-spacer {
    display: none;
  }
  .vp-project-card {
    flex-direction: column;
    align-items: stretch;
    padding-right: 0;
  }
  .vp-bookmark {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
  }
  
  /* Supaya footer tidak memantul ke atas akibat scroll-snap */
  .vp-track > footer {
    scroll-snap-align: end;
  }
  
  .vp-bm-num {
    transform: none;
    margin-top: 0;
  }
  .vp-bm-title {
    writing-mode: horizontal-tb;
    transform: none;
    white-space: normal;
    margin-bottom: 0;
  }
  .vp-card-intro-text {
    max-width: 100%;
    width: 100%;
    height: auto;
    padding: 2rem 1rem;
  }
  .vp-cit-title {
    font-size: 32px;
    padding-bottom: 30px;
  }
  .vp-card {
    width: 100%;
    height: auto; /* KEMBALI KE AUTO agar tidak hancur */
    scroll-snap-align: start;
    scroll-snap-stop: always; 
    flex-shrink: 0;
    margin-bottom: 2rem; /* Jarak antar kartu */
    display: flex;
    flex-direction: column;
    overflow: hidden; 
  }
  .vp-card-img-wrap {
    width: 100%;
    height: 60vh; /* KEMBALIKAN KE 60vh agar gambar muncul sempurna */
    position: relative;
    padding: 1rem; 
    margin-left: 0;
  }
  .vp-card-img-wrap .vp-slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Photo stays natural, no stretching/cropping */
  }
  .vp-slider-btn {
    display: none; /* Let users swipe on mobile natively */
  }

  .vp-intro {
    height: auto;
    padding: 6rem 2rem 4rem;
  }
  .vp-intro-scroll {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 3rem;
  }

  /* Bottom bar Menu | Contacts (gaya 9to5studio.it) */
  .vp-menu-toggle,
  .vp-contact-toggle {
    display: flex;
    align-items: center;
    position: fixed;
    bottom: 0;
    top: auto;
    left: 0;
    width: 50%;
    height: 60px;
    padding: 0 1.5rem;
    border-radius: 0;
    font-size: 14px;
  }
  .vp-menu-toggle {
    justify-content: flex-start;
  }
  .vp-contact-toggle {
    left: 50%;
    justify-content: flex-end;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
  }
}

/* Hide Default Theme Footer removed to allow UAE Footer to wrap correctly */
/* footer:not(.site-footer):not(.vert-footer) {
  display: none !important;
} */

/* ================================================================
   WORKS TIMELINE — Eladio Dieste Style
   ================================================================ */
.ed-works-section {
  background-color: #000;
  color: #fff;
  width: 100%;
  padding: 0 0 0 0;
  position: relative;
  overflow: hidden;
}

/* --- Section Heading --- */
.ed-works-heading {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(80px, 14vw, 220px);
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.04em;
  margin: 0;
  padding: 10vh 5vw 8vh;
  color: #fff;
}

/* --- Timeline Container --- */
.ed-timeline {
  position: relative;
  width: 100%;
}

/* Vertical center line */
.ed-timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
}

/* --- Each Timeline Item --- */
.ed-timeline-item {
  position: relative;
  width: 100%;
  transition: opacity 0.5s ease;
}

/* HOVER DIM EFFECT: when any item in the group is hovered, dim all items */
.ed-timeline:hover .ed-timeline-item {
  opacity: 0.3;
}
/* The hovered item stays at full opacity */
.ed-timeline:hover .ed-timeline-item:hover {
  opacity: 1;
}

/* Link wrapper */
.ed-item-link {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* --- Marker (Diamond + Year) --- */
.ed-item-marker {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
  pointer-events: none;
}

.ed-diamond {
  width: 8px;
  height: 8px;
  background: #fff;
  transform: rotate(45deg);
}

.ed-year {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* --- Image Containers --- */
.ed-item-image {
  position: relative;
  overflow: hidden;
  z-index: 5;
}

.ed-item-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.ed-item-link:hover .ed-item-image img {
  transform: scale(1.12);
}

/* ============================================
   IMAGE POSITION VARIANTS
   Matching Eladio Dieste layout exactly
   ============================================ */

/* LEFT SMALL — occupies left ~25% of screen, portrait or landscape */
.ed-pos-left-small {
  width: 22vw;
  height: 28vh;
  margin-left: 5vw;
  margin-top: 6vh;
  margin-bottom: 6vh;
}

/* CENTER WIDE — spans across the center line, ~48vw wide */
.ed-pos-center-wide {
  width: 48vw;
  height: 50vh;
  margin: 4vh auto;
  margin-left: 26vw; /* center it: (100 - 48) / 2 = 26 */
}

/* RIGHT SMALL — sits on the right side */
.ed-pos-right-small {
  width: 22vw;
  height: 28vh;
  margin-left: auto;
  margin-right: 5vw;
  margin-top: 6vh;
  margin-bottom: 6vh;
}

/* --- Bottom Terminal (T-junction) --- */
.ed-timeline-end {
  position: relative;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ed-end-square {
  width: 6px;
  height: 6px;
  background: #fff;
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 3;
}

.ed-end-line {
  position: absolute;
  top: 3px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
}

/* FIX: Ensure all text inside inverted elements are dark and readable */
.invert, .invert *, .vp-sidebar.invert, .vp-sidebar.invert *, .elementor-sticky--effects, .elementor-sticky--effects * { color: #fff !important; }
.invert.elementor-section { background-color: #fff !important; }


/* Mobile Hero Fixes to match normalisboring.es */
@media (max-width: 768px) {
  .hero-section { min-height: 100vh; }
  .hero-text-container { height: 80vh; padding: 40px 24px !important; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
  .hero-headline { font-size: 9vw !important; line-height: 1.15 !important; margin-bottom: 30px !important; }
  .hero-headline .line { font-size: clamp(28px, 9vw, 52px) !important; overflow: hidden; }
  .hero-sub-block { max-width: 90%; }
  .hero-sub-block p { font-size: 15px !important; line-height: 1.6 !important; }
  .brand-stamp { display: none !important; }
  .hero-image-track { display: none !important; }
}


/* Mobile Fixes for Overflowing Texts & UAE Footer */
@media (max-width: 768px) {
  .giant-word .inner { font-size: clamp(32px, 12vw, 64px) !important; word-break: break-word; }
  .value-title { font-size: clamp(32px, 8vw, 48px) !important; word-break: break-word; }
  .value-content { padding: 0 24px !important; }
  /* .vertical-giant-text removed to allow horizontal marquee */
  
  .vp-overlay { width: 100vw; padding: 2rem; }
  .vp-overlay-links { font-size: 1rem; }
  .vp-overlay-links a { word-break: break-word; white-space: normal; }
  
  /* Prevent footer content from hiding behind the fixed bottom bar */
  footer, .site-footer, .elementor-location-footer {
    padding-bottom: 50px !important; 
  }
}


/* ================================================================
   THE SIMS CATEGORY MENU & MOBILE HEADER
   ================================================================ */

.hidden-mobile { display: block; }
@media (max-width: 767px) { .hidden-mobile { display: none !important; } }

.hidden-desktop { display: none !important; }
@media (max-width: 767px) { .hidden-desktop { display: flex !important; } }

/* ---------- DESKTOP SIMS RADIAL BUBBLES (BOTTOM RIGHT) ---------- */
.sims-menu-wrap {
  position: fixed;
  bottom: 0; right: 40px;
  z-index: 100;
  width: 100px; height: 100px;
  /* Tambahkan transition untuk width supaya halus */
  transition: width 0.1s;
}

/* Lebarkan area penangkap hover saat terbuka supaya kursor tidak keluar batas */
.sims-menu-wrap:hover,
.sims-menu-wrap.is-open {
  width: 450px;
}

/* Base button */
.sims-btn-main {
  position: absolute;
  bottom: 30px; right: 30px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background-color: #111110; color: #f5f5f2;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, background-color 0.3s;
  z-index: 10;
}
.sims-btn-main .icon-close { display: none; }
.sims-menu-wrap:hover .sims-btn-main,
.sims-menu-wrap.is-open .sims-btn-main {
  background-color: #d94f3a;
  transform: rotate(90deg); /* Rotate for effect */
}
.sims-menu-wrap:hover .sims-btn-main .icon-plus,
.sims-menu-wrap.is-open .sims-btn-main .icon-plus { display: none; }
.sims-menu-wrap:hover .sims-btn-main .icon-close,
.sims-menu-wrap.is-open .sims-btn-main .icon-close { display: block; }

/* The Bubbles Container */
.sims-bubbles {
  position: absolute;
  right: 100px;  /* Position to the left of the main button */
  bottom: 38px;  /* Centered vertically with the button */
  display: flex;
  flex-direction: row-reverse; /* Orders bubble-1 on the right, bubble-4 on the left */
  align-items: center;
  gap: 16px;
  pointer-events: none; /* Let clicks pass through when closed */
}

/* Individual Expandable Pill Bubbles */
.sims-bubble {
  display: flex;
  flex-direction: row-reverse; /* Icon on right, text on left */
  align-items: center;
  justify-content: flex-start;
  height: 44px;
  max-width: 44px; /* Collapsed state */
  border-radius: 22px;
  color: #fff;
  opacity: 0;
  transform: translateX(40px) scale(0.8);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), max-width 0.3s ease;
  pointer-events: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  overflow: hidden; /* Hides text when collapsed */
}

.sims-menu-wrap:hover .sims-bubble,
.sims-menu-wrap.is-open .sims-bubble {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.sims-menu-wrap:hover .sims-bubble:hover,
.sims-menu-wrap.is-open .sims-bubble:hover {
  max-width: 140px; /* Expand into pill shape */
  filter: brightness(1.15);
}

.sims-bubble.is-active {
  box-shadow: 0 0 0 2px #fff, 0 4px 15px rgba(0,0,0,0.3);
  filter: brightness(1.15);
}

/* Bubble Colors */
.bubble-1 { background-color: #111110; transition-delay: 0.0s; } /* All */
.bubble-2 { background-color: #d94f3a; transition-delay: 0.05s; } /* Interior */
.bubble-3 { background-color: #2b5c54; transition-delay: 0.1s; } /* Kitchen */
.bubble-4 { background-color: #e5b25d; transition-delay: 0.15s; } /* Living */

/* Icon Container */
.bubble-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; /* Prevents icon from squishing */
}
.bubble-icon svg {
  width: 18px;
  height: 18px;
}

/* Label Inside the Pill */
.bubble-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  margin-left: 16px; /* Left padding for the pill */
  margin-right: 4px; /* Spacing between text and icon */
  transition: opacity 0.2s ease;
  transition-delay: 0s;
}
.sims-bubble:hover .bubble-label {
  opacity: 1;
  transition-delay: 0.15s; /* Fade in after expansion starts */
}

/* ---------- SVG SLICES STYLING (Mobile) ---------- */
.sims-item {
  cursor: pointer;
}
.sims-slice {
  transition: opacity 0.3s, filter 0.3s;
}
.sims-item:hover .sims-slice {
  filter: brightness(1.1);
}
.sims-text {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  fill: #fff;
  pointer-events: none;
}
.slice-1 { color: #111110; } /* All */
.slice-2 { color: #d94f3a; } /* Interior */
.slice-3 { color: #2b5c54; } /* Kitchen */
.slice-4 { color: #e5b25d; } /* Living */
.sims-item[data-filter="living-room"] .sims-text, 
.sims-item[data-filter="all"] .sims-text {
  fill: #fff;
}
.sims-item[data-filter="living-room"] .sims-text {
  fill: #111;
}

/* ---------- MOBILE BOTTOM CATEGORY MENU ---------- */
.vp-mobile-bottom-bar {
  position: fixed; bottom: 0; left: 0;
  width: 100%; height: 70px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 30px;
  box-shadow: 0 -1px 10px rgba(0,0,0,0.05);
}
.vp-mobile-cat-toggle {
  position: absolute;
  left: 50%; bottom: 45px; /* Shifted up so it doesn't cover Menu/Contact text */
  margin-left: -25px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background-color: #111110; color: #f5f5f2;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, background-color 0.3s;
  z-index: 2;
}
.vp-mobile-bottom-bar.is-open .vp-mobile-cat-toggle {
  background-color: #d94f3a;
  transform: rotate(45deg);
}
.sims-pie-mobile-svg {
  position: absolute;
  bottom: 50px; /* Shifted up to match the toggle button */
  left: 50%;
  margin-left: -150px;
  width: 300px; height: 150px;
  transform: scale(0);
  transform-origin: bottom center;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(0 -5px 15px rgba(0,0,0,0.1));
  pointer-events: none;
  z-index: 0;
}
.vp-mobile-bottom-bar.is-open .sims-pie-mobile-svg {
  transform: scale(1);
  pointer-events: auto;
}

.sims-item.is-active .sims-slice {
  filter: brightness(1.2);
}
.vp-mobile-bottom-menu {
  background: none; border: none;
  font-family: 'Inter', sans-serif;
  font-size: 16px; font-weight: 600;
  color: #1a1a18; cursor: pointer;
  z-index: 10;
  padding: 0;
}
.vp-mobile-bottom-contact {
  background: none; border: none;
  font-family: 'Inter', sans-serif;
  font-size: 16px; font-weight: 600;
  color: #1a1a18; cursor: pointer;
  z-index: 10;
  padding: 0;
}

/* ================================================================
   FIX: White gap at top of About Us page (Elementor element aeec8ef)
   ================================================================ */
.elementor-81 .elementor-element.elementor-element-aeec8ef {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ================================================================
   PORTFOLIO CARD BUTTON (.vp-cit-btn)
   ================================================================ */
.vp-cit-btn {
  display: inline-block;
  margin-top: 1.25rem;
  width: 200px;
  text-align: center;
  padding: 0.65rem 1.5rem;
  background: #0e0f12;
  color: #f0ece6;
  border: 1.5px solid rgba(240, 236, 230, 0.5);
  border-radius: 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
}
.vp-cit-btn:hover {
  background: rgba(240, 236, 230, 0.12);
  border-color: rgba(240, 236, 230, 0.9);
  color: #fff;
}
