/* ================= 1. MAINTENANCE SETTINGS ================= */
:root {
  /* Dimensions */
  --s2-circle-size: 242px;
  --s2-gap: 120px;
  --studio-img-scale: 100%;
  
  /* Colors */
  --bg-charcoal: #121212; 
  --bg-card: #1e1e1e;
  --accent: #C06135; 
  --white: #ffffff;
  
  /* Glow Palette */
  --spotlight-center: #C06135;
  --glow-burst: rgba(192, 97, 53, 0.6);
  --glow-rim: rgba(192, 97, 53, 0.8);

  /* Animation */
  --fade-speed: 0.8s;
}

/* ================= 2. RESET & SCROLL ================= */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; font-family: 'Inter', sans-serif; }
html { scroll-behavior: smooth; }

/* Custom Scrollbar for Desktop, auto for mobile */
@media (min-width: 901px) {
  body::-webkit-scrollbar { display: none; }
  body { -ms-overflow-style: none; scrollbar-width: none; }
}

/* ================= 3. LAYOUT ================= */
.section {
  position: relative; 
  min-height: 100vh; 
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: 90px 0;
}

#section-1 { background: var(--bg-charcoal); padding: 0; }
#section-2 { 
  background: var(--bg-charcoal); 
  min-height: auto !important; 
  height: auto !important;     
  padding-top: 50px;  
  padding-bottom: 0px;  
} 
#section-3, #section-4, #section-5 { background: var(--bg-charcoal); }

#section-3 { padding-bottom: 40px; }
#section-4 { padding-top: 40px; }
#section-5 { color: #fff; }

.content { width: 100%; max-width: 1200px; padding: 40px; position: relative; z-index: 2; }
.centered { text-align: center; display: flex; flex-direction: column; align-items: center; }

.parallax-layer { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.reveal-on-scroll {
  opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out;
}
.reveal-on-scroll.revealed {
  opacity: 1; transform: translateY(0);
}

/* ================= 4. NAVIGATION ================= */
.brand-badge { position: fixed; top: 20px; left: 20px; font-weight: 800; font-size: 24px; z-index: 100; mix-blend-mode: difference; color: #fff; }

.side-nav { position: fixed; right: 20px; top: 50%; transform: translateY(-50%); z-index: 100; display: flex; flex-direction: column; gap: 15px; }
.nav-link { width: 10px; height: 10px; background: rgba(255,255,255,0.3); border-radius: 50%; transition: 0.3s; position: relative; }
.nav-link.active { background: var(--accent); transform: scale(1.4); }
.tooltip { display: none; } 

/* ================= 5. SECTION 1: HERO ================= */
#section-1 .slide-container {
  position: relative; width: 100%; height: 100vh; margin: 0;
  background-color: var(--bg-charcoal); overflow: hidden;
  display: flex; align-items: center;
}

#section-1 .bg-image {
  position: absolute; top: 0; height: 100%; width: 72%;
  background-size: cover; background-position: center; z-index: 1;
  transition: transform 0.7s ease, left 0.6s ease, right 0.6s ease;
}

#section-1 .bg-image.bg-right { right: 0; left: auto; }
#section-1 .bg-image.bg-left { left: 0; right: auto; }

#section-1 .gradient-overlay {
  position: absolute; top: 0; height: 100%; z-index: 2; width: 72%;
  background: linear-gradient(to right, var(--bg-charcoal) 0%, var(--bg-charcoal) 15%, transparent 100%);
  transition: left 0.6s ease, right 0.6s ease;
}

#section-1.bg-image-left .gradient-overlay { left: 0; right: auto; background: linear-gradient(to left, var(--bg-charcoal) 0%, var(--bg-charcoal) 15%, transparent 100%); }
#section-1.bg-image-right .gradient-overlay { right: 0; left: auto; background: linear-gradient(to right, var(--bg-charcoal) 0%, var(--bg-charcoal) 15%, transparent 100%); }

#section-1 .text-content {
  position: relative; z-index: 3; width: 40%; padding-left: 80px; color: var(--white);
  max-width: 620px;
}

#section-1 .text-content h1 { font-size: 3rem; margin: 0 0 20px 0; line-height: 1.05; font-weight: 700; }
#section-1 .text-content p { color: #aaa; font-size: 1.05rem; max-width: 340px; margin: 0 0 18px 0; }
#section-1 .btn { display: inline-block; margin-top: 12px; padding: 12px 22px; background: var(--accent); color: #fff; text-decoration: none; border-radius: 6px; font-weight: 600; }

/* ================= 6. SECTION 2: SELECTION ================= */
.partners-grid { display: flex; justify-content: center; gap: var(--s2-gap); align-items: flex-start; flex-wrap: wrap; }
.partner { display: flex; flex-direction: column; align-items: center; cursor: pointer; width: var(--s2-circle-size); position: relative; margin-bottom: 20px; }

.partner::before {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -60%);
  width: 360px; height: 280px; border-radius: 50%; 
  background: radial-gradient(circle, var(--glow-burst) 0%, transparent 70%);
  filter: blur(55px); opacity: 0.75; z-index: 0; pointer-events: none;
}

.partner-circle {
  width: 200px; height: 200px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, var(--spotlight-center) 20%, transparent 85%);
  transition: transform 0.3s cubic-bezier(.2,.9,.2,1), box-shadow 0.3s ease; 
  position: relative; z-index: 1;
}
.partner-circle img { width: 100%; height: 100%; object-fit: cover; }

.partner-label { margin-top: 16px; text-align: center; opacity: 1; z-index: 1; }
.partner-label h3 { margin: 0; font-size: 16px; color: #fff; font-weight: 700; }
.partner-label span { font-size: 14px; color: #ccc; }

.partner.active .partner-circle {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 0 0 4px #ffffff, 0 0 60px 15px var(--glow-rim);
}

/* ================= 7. SECTION 3: STUDIO ================= */
.studio-layout { height: 100%; display: flex; align-items: center; justify-content: center; }

.studio-inner {
  display: flex; width: 100%; min-height: 75vh;
  align-items: center; justify-content: center; gap: 5%;
  opacity: 1; transform: translateY(0); filter: blur(0);
  transition: all var(--fade-speed) cubic-bezier(0.25, 1, 0.5, 1);
}
.studio-inner.switching { opacity: 0; transform: translateY(40px) scale(0.98); filter: blur(15px); }

.studio-stage { 
  width: 45%; 
  /* Increased height for a larger image display */
  height: 550px; 
  position: relative; display: flex; align-items: flex-end; justify-content: center; 
}

.studio-orb {
  position: absolute; top: 60%; left: 50%; transform: translate(-50%, -50%);
  /* Increased size to match the larger image */
  width: 450px; 
  height: 450px; 
  border-radius: 50%;
  background: rgba(150, 120, 100, 0.35); filter: blur(120px); z-index: 0;
}

.studio-avatar {
  width: 100%; 
  /* Use 100% of the increased stage height */
  height: 100%; 
  position: relative; z-index: 1;
  background-size: contain; background-position: center bottom; background-repeat: no-repeat;
  filter: drop-shadow(0 0 20px rgba(0,0,0,0.5));
  min-height: 300px; /* Ensure visibility if image fails */
}

.studio-info { width: 45%; color: var(--white); }
.studio-title {
  font-size: 3rem; font-weight: 800; margin-bottom: 0.5rem; text-transform: uppercase;
  background: linear-gradient(to right, #fff, #888);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.studio-role { color: var(--accent); font-size: 1.2rem; margin-bottom: 2rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; }

.studio-bio-scroll {
  max-height: 400px; overflow-y: auto; padding-right: 15px;
  scrollbar-width: thin; scrollbar-color: #444 transparent;
}
.studio-desc p { font-size: 1rem; line-height: 1.7; color: #ccc; margin-bottom: 1.5rem; font-weight: 300; text-align: justify; }

/* ================= 8. SECTION 4: PRACTICE & CONTACT ================= */
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 2.5rem; color: #fff; margin-bottom: 10px; }
.section-header p { color: #888; font-size: 1.1rem; }

.practice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }

.practice-card {
  background: var(--bg-card); padding: 30px; border-radius: 12px;
  text-align: left; transition: transform 0.3s ease, background 0.3s ease;
  border: 1px solid rgba(255,255,255,0.05); display: flex; flex-direction: column; align-items: flex-start; 
}
.icon-wrap { font-size: 32px; color: var(--accent); margin-bottom: 15px; }
.practice-card h3 { color: #fff; margin: 0 0 10px 0; font-size: 1.2rem; font-weight: 600; }
.practice-card p { color: #aaa; font-size: 0.95rem; line-height: 1.5; margin: 0; font-weight: 300; }
.practice-card:hover { transform: translateY(-5px); background: #252525; border-color: var(--accent); }

.contact-split { display: flex; width: 100%; height: 100%; gap: 60px; align-items: center; }
.contact-left { flex: 1; color: #fff; }
.contact-right { flex: 1; height: 500px; }
.map-box {
  width: 100%; height: 100%; background: #222; border-radius: 20px;
  display: flex; align-items: center; justify-content: center; border: 1px solid #333; overflow: hidden; 
}

/* ================= MOBILE RESPONSIVE OVERRIDES ================= */
@media (max-width: 900px) {
  /* 1. Reset Global Structure */
  .section { padding: 60px 0; min-height: auto; }
  .content { padding: 20px; width: 100%; }
  
  /* 2. Side Nav - Move to bottom or hide */
  .side-nav { 
    top: auto; bottom: 20px; right: 50%; transform: translateX(50%);
    flex-direction: row; background: rgba(0,0,0,0.8);
    padding: 10px 20px; border-radius: 30px;
    backdrop-filter: blur(5px);
  }
  
  /* 3. Section 1: Hero Stack */
  #section-1 .slide-container { height: 100vh; flex-direction: column; justify-content: center; }
  
  #section-1 .bg-image { 
    width: 100%; height: 100%; opacity: 0.4; 
    left: 0 !important; right: 0 !important;
  }
  
  #section-1 .gradient-overlay { 
    width: 100%; 
    background: linear-gradient(to bottom, transparent 0%, var(--bg-charcoal) 90%);
    left: 0 !important;
  }
  
  #section-1 .text-content { 
    width: 100%; padding: 0 20px; text-align: center; margin-top: 20px; 
  }
  
  #section-1 .text-content h1 { font-size: 2.5rem; }
  #section-1 .text-content p { margin: 0 auto 20px auto; }

  /* 4. Section 2: Partner Selection */
  .partners-grid { gap: 40px; }
  .partner { width: 160px; margin-bottom: 0; }
  .partner-circle { width: 140px; height: 140px; }
  .partner::before { width: 200px; height: 200px; }

  /* 5. Section 3: Studio Profile */
  .studio-inner { flex-direction: column; text-align: center; height: auto; gap: 30px; }
  
  /* Increased mobile height for the image stage */
  .studio-stage { width: 100%; height: 500px; order: 1; } 
  .studio-avatar { height: 100%; }
  
  /* Increased mobile orb size */
  .studio-orb { width: 300px; height: 300px; top: 50%; } 
  
  .studio-info { width: 100%; order: 2; padding-bottom: 40px; }
  .studio-title { font-size: 2.2rem; }
  .studio-bio-scroll { max-height: none; overflow: visible; }

  /* 6. Section 4 & 5 */
  .practice-grid { grid-template-columns: 1fr; }
  .contact-split { flex-direction: column; gap: 40px; }
  .contact-right { width: 100%; height: 350px; }
  .contact-title { font-size: 2rem; }
}