/* ==========================================================================
   Abhishek Gandhi Studio — Marvell Co Architectural DNA Redesign
   Aesthetic: Ultra-refined Australian/Nordic Architectural Minimalism
   Palette: Obsidian Charcoal (#0C0D10), Warm Travertine (#E8E4DC), Pure White (#FFFFFF)
   Typography: Neue Grotesk / Inter + Classical Architectural Display
   ========================================================================== */

:root {
  --bg-dark: #0a0b0d;
  --bg-card: #121418;
  --bg-stone: #ebe7df;
  --bg-stone-dark: #16181d;
  
  --text-light: #ffffff;
  --text-muted: #8a8d98;
  --text-dim: #545763;
  --text-stone: #242528;
  
  --accent-gold: #c8a97e;
  --accent-gold-light: #e5cfb0;
  
  --grid-line-dark: rgba(255, 255, 255, 0.05);
  --grid-line-stone: rgba(0, 0, 0, 0.05);
  --border-hairline: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.15);

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Mono', 'JetBrains Mono', monospace;
  --font-display: 'Syne', sans-serif;
  --font-serif: 'Cinzel', serif;

  --ease-marvell: cubic-bezier(0.85, 0.09, 0.15, 0.91);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  background: var(--bg-dark);
  color: var(--text-light);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: #08090b;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

::selection {
  background: #ffffff;
  color: #000000;
}

/* ==========================================================================
   Custom Fluid Follower Cursor (From Screen Recording)
   ========================================================================== */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-smooth), height 0.3s var(--ease-smooth), background 0.3s ease, transform 0.08s linear;
  mix-blend-mode: difference;
}

.custom-cursor.hover {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.95);
}

@media (pointer: coarse) {
  .custom-cursor {
    display: none;
  }
}

/* ==========================================================================
   Floating Island Navigation Pill (Pinned Top-Center, Exact Marvell DNA)
   ========================================================================== */
.nav-island-container {
  position: fixed;
  top: 24px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 1000;
  pointer-events: none;
}

.nav-island-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 15, 18, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 12px;
  border-radius: 12px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: all 0.35s var(--ease-smooth);
}

.nav-island-pill:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
}

.nav-pill-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  margin-right: 4px;
}

.nav-pill-logo img {
  height: 18px;
  width: auto;
  display: block;
}

.nav-pill-link {
  font-family: var(--font-main);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cfd2dc;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.25s ease;
  position: relative;
}

.nav-pill-link:hover, .nav-pill-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Hero Section: Scroll to Orbit & Ascend (Satgurus Blooming Heights -> The Rosa)
   Preserved with Marvell Co's Editorial Hierarchy & Bottom 4-Column Metadata
   ========================================================================== */
.hero-scroll-container {
  position: relative;
  height: 460vh;
  width: 100%;
}

.hero-sticky-viewport {
  position: sticky;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

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

.hero-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 35%, rgba(10, 11, 13, 0.35) 75%, rgba(10, 11, 13, 0.82) 100%),
              linear-gradient(to bottom, rgba(10, 11, 13, 0.5) 0%, transparent 20%, transparent 75%, rgba(10, 11, 13, 0.6) 100%);
  pointer-events: none;
  z-index: 2;
}


/* Floating Scroll Indicator (Centered with respect to Top Navigation Pill) */
.hero-scroll-cue-container {
  position: absolute;
  bottom: 32px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 5;
}

.hero-scroll-cue {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: auto;
  cursor: pointer;
  text-align: center;
}

.hero-scroll-cue span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  margin-right: -0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  display: block;
  white-space: nowrap;
}

.hero-scroll-line {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: #ffffff;
  animation: scrollDrop 1.8s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

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

/* ==========================================================================
   MARVELL CO FULL-SCREEN STACKED PROJECT SHOWCASE (Exact Project slid.mov DNA)
   Curtain Slide-Up Stack: Each project fills 100vw × 100vh with sticky layering.
   Subsequent slides slide up over previous slides with GPU-accelerated smoothness.
   ========================================================================== */
.projects-stack-section {
  position: relative;
  width: 100%;
  background: #000000;
}

/* Individual Slide Card (Deck) */
.project-slide-deck {
  position: sticky;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  z-index: var(--slide-index, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 100px 5vw 36px;
  box-sizing: border-box;
  background: #08090b;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

/* Full-bleed Background Image with Zoom & Vignette */
.project-slide-bg-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.project-slide-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
  will-change: transform;
}

.project-slide-deck:hover .project-slide-bg {
  transform: scale(1.06);
}

.project-slide-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at center, rgba(8, 9, 11, 0.15) 20%, rgba(8, 9, 11, 0.6) 80%, rgba(8, 9, 11, 0.85) 100%),
    linear-gradient(to bottom, rgba(8, 9, 11, 0.65) 0%, rgba(8, 9, 11, 0.1) 25%, rgba(8, 9, 11, 0.1) 60%, rgba(8, 9, 11, 0.92) 100%);
}

/* Top bar: Quick Inspect (Right-aligned) */
.project-slide-top-bar {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-16px);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.22s, opacity 0.8s ease 0.22s;
  will-change: transform, opacity;
}

.slide-inspect-btn {
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(14, 15, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 18px;
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slide-inspect-btn:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
}

/* Center Editorial Typography & Masked Easy-Ease Reveal (Exact Project slid.mov DNA) */
.project-slide-center {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  pointer-events: none;
  transform: translateY(-8px);
  transition: transform 0.6s var(--ease-smooth);
}

.project-slide-deck:hover .project-slide-center {
  transform: translateY(-14px);
}

/* Easy Ease Overflow Mask Wrappers */
.reveal-mask {
  overflow: hidden;
  display: block;
}

.reveal-mask-inline {
  overflow: hidden;
  display: inline-block;
  vertical-align: top;
}

.reveal-mask.title-mask {
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.reveal-mask.subtitle-mask {
  padding-bottom: 4px;
}

/* ==========================================================================
   Editorial Scroll Text Settlement Animation Physics
   Recommended Combination:
   - Style 02: Masked Baseline Rise (Major Headings, Titles, Landmarks)
     Physics: Overflow hidden mask baseline, translateY(115%), cubic-bezier(0.22, 1, 0.36, 1)
   - Style 01: Luxury Float & Settle (Pretitles, Paragraphs, Cards, Specs, Stats)
     Physics: translateY(28px), scale(0.985), blur(5px) -> 0, cubic-bezier(0.16, 1, 0.3, 1)
   ========================================================================== */

/* Style 02: Masked Baseline Rise */
.reveal-mask-inner {
  display: block;
  transform: translateY(115%);
  opacity: 0.001;
  transition: 
    transform 1.05s cubic-bezier(0.22, 1, 0.36, 1), 
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.is-revealed .reveal-mask-inner,
.reveal-mask-inner.is-revealed {
  transform: translateY(0%);
  opacity: 1;
}

/* Style 01: Luxury Float & Settle */
.reveal-settle {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  filter: blur(5px);
  transition: 
    opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1), 
    transform 1.05s cubic-bezier(0.16, 1, 0.3, 1), 
    filter 0.95s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.is-revealed .reveal-settle,
.reveal-settle.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Specific component integration transitions */
.service-row.reveal-settle {
  transition: 
    opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1), 
    transform 1.05s cubic-bezier(0.16, 1, 0.3, 1), 
    filter 0.95s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.3s ease, 
    padding 0.3s ease;
}

.initiate-card.reveal-settle {
  transition: 
    opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1), 
    transform 1.05s cubic-bezier(0.16, 1, 0.3, 1), 
    filter 0.95s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}
.initiate-card.reveal-settle.is-revealed:hover,
.reveal-group.is-revealed .initiate-card.reveal-settle:hover {
  transform: translateY(-3px) scale(1);
}

/* Stagger Orchestrations for Grouped Elements */
.reveal-group.is-revealed .reveal-settle:nth-child(1),
.reveal-group.is-revealed .reveal-mask:nth-child(1) .reveal-mask-inner {
  transition-delay: 0.05s;
}
.reveal-group.is-revealed .reveal-settle:nth-child(2),
.reveal-group.is-revealed .reveal-mask:nth-child(2) .reveal-mask-inner {
  transition-delay: 0.16s;
}
.reveal-group.is-revealed .reveal-settle:nth-child(3),
.reveal-group.is-revealed .reveal-mask:nth-child(3) .reveal-mask-inner {
  transition-delay: 0.28s;
}
.reveal-group.is-revealed .reveal-settle:nth-child(4),
.reveal-group.is-revealed .reveal-mask:nth-child(4) .reveal-mask-inner {
  transition-delay: 0.40s;
}
.reveal-group.is-revealed .reveal-settle:nth-child(5),
.reveal-group.is-revealed .reveal-mask:nth-child(5) .reveal-mask-inner {
  transition-delay: 0.52s;
}
.reveal-group.is-revealed .reveal-settle:nth-child(6),
.reveal-group.is-revealed .reveal-mask:nth-child(6) .reveal-mask-inner {
  transition-delay: 0.64s;
}

/* Explicit data-stagger overrides */
.is-revealed [data-stagger="1"], [data-stagger="1"].is-revealed { transition-delay: 0.06s !important; }
.is-revealed [data-stagger="2"], [data-stagger="2"].is-revealed { transition-delay: 0.18s !important; }
.is-revealed [data-stagger="3"], [data-stagger="3"].is-revealed { transition-delay: 0.30s !important; }
.is-revealed [data-stagger="4"], [data-stagger="4"].is-revealed { transition-delay: 0.42s !important; }
.is-revealed [data-stagger="5"], [data-stagger="5"].is-revealed { transition-delay: 0.54s !important; }
.is-revealed [data-stagger="6"], [data-stagger="6"].is-revealed { transition-delay: 0.66s !important; }

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .reveal-settle,
  .reveal-mask-inner,
  .project-slide-title,
  .project-slide-subtitle {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}


.project-slide-title {
  font-family: var(--font-main);
  font-size: clamp(3.2rem, 7.8vw, 7.2rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.04;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 4px 35px rgba(0, 0, 0, 0.85);
  transform: translateY(118%);
  opacity: 0;
  transition: transform 1.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.project-slide-subtitle {
  font-family: var(--font-main);
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: -0.01em;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.5;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.9);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 1.15s cubic-bezier(0.16, 1, 0.3, 1) 0.14s, opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.14s;
  will-change: transform, opacity;
}

/* Bottom 4-Column Architectural Metadata Strip (Easy Ease Entrance) */
.project-slide-meta-bar {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 20px;
  pointer-events: auto;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
  opacity: 0;
  transform: translateY(22px);
  transition: transform 1.05s cubic-bezier(0.16, 1, 0.3, 1) 0.26s, opacity 0.85s ease 0.26s;
  will-change: transform, opacity;
}

/* Easy Ease Revealed Trigger States */
.project-slide-deck.is-revealed .project-slide-title,
.project-slide-deck.is-revealed .project-slide-subtitle {
  transform: translateY(0);
  opacity: 1;
}

.project-slide-deck.is-revealed .project-slide-top-bar,
.project-slide-deck.is-revealed .project-slide-meta-bar {
  transform: translateY(0);
  opacity: 1;
}

.meta-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-col-label {
  font-family: var(--font-main);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}

.meta-col-value {
  font-family: var(--font-main);
  font-size: 0.98rem;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Marvell Co Signature "Next Project / Next Chapter" Transition Block (frame_07.jpg) */
.next-chapter-transition {
  position: relative;
  z-index: 10;
  width: 100vw;
  min-height: 70vh;
  background: var(--bg-dark);
  background-image: 
    linear-gradient(to right, var(--grid-line-dark) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line-dark) 1px, transparent 1px);
  background-size: 70px 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 5vw;
  box-sizing: border-box;
  border-top: 1px solid var(--border-hairline);
}

.next-chapter-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  transition: transform 0.5s var(--ease-smooth);
}

.next-chapter-cue {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-gold);
  background: rgba(212, 163, 89, 0.08);
  border: 1px solid rgba(212, 163, 89, 0.25);
  padding: 8px 20px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.next-chapter-link:hover .next-chapter-cue {
  background: var(--accent-gold);
  color: #000000;
}

.next-chapter-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-family: var(--font-main);
  font-size: clamp(3rem, 8vw, 7.5rem);
  font-weight: 400;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1;
}

.next-chapter-thumb-wrap {
  width: clamp(80px, 12vw, 150px);
  height: clamp(55px, 8vw, 100px);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-block;
  vertical-align: middle;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: transform 0.5s var(--ease-smooth), box-shadow 0.5s ease;
}

.next-chapter-link:hover .next-chapter-thumb-wrap {
  transform: scale(1.1) rotate(-1deg);
  box-shadow: 0 15px 40px rgba(212, 163, 89, 0.3);
}

.next-chapter-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .project-slide-deck {
    padding: 90px 6vw 24px;
  }
  .project-slide-meta-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .next-chapter-title-row {
    flex-direction: column;
    gap: 12px;
  }
  .next-chapter-thumb-wrap {
    width: 140px;
    height: 90px;
  }
}

@media (max-width: 600px) {
  .project-slide-meta-bar {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ==========================================================================
   Editorial Case Study Detail Strip (Swar3D / Marvell Co Hybrid)
   ========================================================================== */
.editorial-case-study {
  padding: 120px 6vw;
  position: relative;
  background: #090a0c;
  border-bottom: 1px solid var(--border-hairline);
}

/* Editorial Case Study Header & Navigation */
.clay-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 28px;
}

.clay-header-text {
  max-width: 840px;
}

.clay-category-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-gold);
  display: block;
  margin-bottom: 12px;
}

.clay-study-heading {
  font-family: var(--font-main);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.clay-study-summary {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-top: 14px;
  max-width: 760px;
  line-height: 1.5;
  transition: opacity 0.25s ease;
}

.clay-nav-ctrls {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 8px;
  flex-shrink: 0;
}

.clay-counter {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.clay-arrows {
  display: flex;
  gap: 8px;
}

.clay-arrow-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.clay-arrow-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.clay-arrow-btn:active {
  transform: scale(0.95);
}

/* Horizontal Project Pills */
.clay-selector-wrap {
  width: 100%;
  margin-bottom: 32px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.clay-selector-wrap::-webkit-scrollbar {
  display: none;
}

.clay-project-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0 10px 0;
  width: max-content;
}

.clay-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-hairline);
  border-radius: 20px;
  padding: 8px 18px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.clay-pill .pill-num {
  color: var(--accent-gold);
  opacity: 0.8;
  font-size: 0.68rem;
}

.clay-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.clay-pill.active {
  color: #000000;
  background: #ffffff;
  border-color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
}

.clay-pill.active .pill-num {
  color: #8b6819;
  opacity: 1;
}

.clay-fading {
  opacity: 0.15;
  transition: opacity 0.15s ease;
}

@media (max-width: 800px) {
  .clay-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

.case-study-hero-wrap {
  width: 100%;
  height: 75vh;
  min-height: 520px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-hairline);
  margin-bottom: 36px;
  position: relative;
}

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

.case-study-info-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 6vw;
  align-items: start;
  margin-top: 48px;
}

.case-study-narrative {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text-light);
  font-weight: 300;
  letter-spacing: -0.01em;
}

.case-study-narrative p {
  margin-bottom: 24px;
}

.case-study-specs {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  padding: 32px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.spec-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 14px;
}

.spec-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-key {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.spec-value {
  font-size: 0.95rem;
  font-weight: 400;
  color: #fff;
}

/* ==========================================================================
   Interactive Clay vs. Photoreal Laboratory (Retained & Elevated)
   ========================================================================== */
.clay-lab-wrap {
  margin-top: 60px;
  position: relative;
}

.clay-container {
  position: relative;
  width: 100%;
  height: 65vh;
  min-height: 480px;
  max-height: 760px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-hairline);
  cursor: ew-resize;
  background: #000;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  touch-action: pan-y;
}

.clay-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-drag: none;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.clay-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  will-change: clip-path;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.clay-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #ffffff;
  transform: translateX(-50%) translateZ(0);
  z-index: 5;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.8);
  will-change: left;
}

.clay-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0a0b0d;
  border: 1px solid #ffffff;
  transform: translate(-50%, -50%) translateZ(0);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  cursor: grab;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.8);
  user-select: none;
  -webkit-user-select: none;
  will-change: left;
}

.clay-handle:active,
body.is-dragging-slider .clay-handle {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.08) translateZ(0);
}

body.is-dragging-slider,
body.is-dragging-slider * {
  cursor: grabbing !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

/* Suppress the lagging custom follower bubble over the slider */
.clay-container:hover ~ .custom-cursor,
body.is-dragging-slider .custom-cursor {
  opacity: 0 !important;
  transform: translate(-50%, -50%) scale(0.2) !important;
}

.clay-handle svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.clay-badge {
  position: absolute;
  top: 20px;
  padding: 6px 14px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 4;
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.clay-badge-left {
  left: 20px;
  background: rgba(10, 11, 13, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}

.clay-badge-right {
  right: 20px;
  background: rgba(200, 169, 126, 0.25);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold-light);
}

/* ==========================================================================
   Studio Profile & Philosophy (Swiss Architectural Editorial Style)
   ========================================================================== */
.profile-section {
  padding: 140px 6vw;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-hairline);
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 8vw;
}

.profile-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 20px;
}

.profile-heading {
  font-family: var(--font-main);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #ffffff;
}

.profile-lead {
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1.6;
  color: #ffffff;
  margin-bottom: 32px;
}

.profile-body-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.profile-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--border-hairline);
}

.stat-num {
  font-family: var(--font-main);
  font-size: 2.8rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ==========================================================================
   Services & Capabilities
   ========================================================================== */
.services-section {
  padding: 120px 6vw;
  background: #08090a;
  border-bottom: 1px solid var(--border-hairline);
}

.services-list {
  display: flex;
  flex-direction: column;
  margin-top: 60px;
}

.service-row {
  display: grid;
  grid-template-columns: 80px 1.4fr 2fr 100px;
  align-items: center;
  padding: 36px 0;
  border-top: 1px solid var(--border-hairline);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.service-row:hover {
  background: rgba(255, 255, 255, 0.02);
  padding-left: 16px;
  padding-right: 16px;
}

.service-row-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.service-row-title {
  font-family: var(--font-main);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.service-row-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.service-row-arrow {
  text-align: right;
  font-size: 1.2rem;
  color: var(--text-dim);
  transition: transform 0.3s ease, color 0.3s ease;
}

.service-row:hover .service-row-arrow {
  transform: translateX(6px);
  color: #ffffff;
}

/* ==========================================================================
   Initiate a Project / Contact Section (Atmospheric Redesign)
   ========================================================================== */
.initiate-project-section {
  position: relative;
  min-height: 85vh;
  padding: 140px 6vw 120px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #08090b;
}

.initiate-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.initiate-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
  filter: brightness(0.85) contrast(1.06);
}

.initiate-bg-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to right, rgba(8, 9, 12, 0.94) 0%, rgba(8, 9, 12, 0.82) 42%, rgba(8, 9, 12, 0.48) 100%),
    linear-gradient(to bottom, rgba(8, 9, 12, 0.75) 0%, transparent 22%, transparent 75%, rgba(8, 9, 12, 0.96) 100%);
}

.initiate-brand-badge {
  position: absolute;
  top: 36px;
  right: 6vw;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  pointer-events: auto;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.initiate-brand-badge:hover {
  transform: translateY(-2px);
}

.initiate-brand-icon {
  width: 42px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.65));
}

.initiate-brand-text {
  font-family: var(--font-main);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
}

.initiate-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.initiate-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 7vw;
  align-items: center;
}

/* Left Column */
.initiate-info-col {
  display: flex;
  flex-direction: column;
}

.initiate-pretitle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 22px;
}

.initiate-pretitle-line {
  width: 32px;
  height: 1px;
  background: var(--accent-gold);
}

.initiate-heading {
  font-family: var(--font-main);
  font-size: clamp(3rem, 5.2vw, 5.2rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0 0 24px 0;
}

.initiate-heading-gold {
  color: var(--accent-gold);
}

.initiate-desc {
  font-family: var(--font-main);
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  max-width: 500px;
  margin: 0 0 40px 0;
}

/* Contact List */
.initiate-contact-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.initiate-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-family: var(--font-main);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

.initiate-contact-icon {
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  flex-shrink: 0;
}

.initiate-contact-text {
  flex: 1;
}

.initiate-contact-text a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.initiate-contact-text a:hover {
  color: var(--accent-gold-light);
}

.contact-sep {
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.35);
}

/* Right Column: Cards */
.initiate-cards-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.initiate-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  background: rgba(26, 25, 28, 0.78);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.initiate-card:hover {
  background: rgba(32, 31, 35, 0.88);
  border-color: rgba(200, 169, 126, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}

.initiate-card-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.initiate-card:hover .initiate-card-icon-wrap {
  transform: scale(1.06);
}

.whatsapp-badge {
  background: #25D366;
  box-shadow: 0 4px 22px rgba(37, 211, 102, 0.45);
}

.email-badge {
  background: linear-gradient(135deg, #c8a97e 0%, #8f6e43 100%);
  box-shadow: 0 4px 22px rgba(200, 169, 126, 0.42);
}

.instagram-badge {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  box-shadow: 0 4px 22px rgba(214, 36, 159, 0.42);
}

.youtube-badge {
  background: #FF0000;
  box-shadow: 0 4px 22px rgba(255, 0, 0, 0.45);
}

.initiate-card-body {
  flex: 1;
  min-width: 0;
}

.initiate-card-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.initiate-card-title {
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 500;
  color: #ffffff;
  margin: 0 0 3px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.initiate-card-desc {
  font-family: var(--font-main);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

.initiate-card-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.initiate-card:hover .initiate-card-arrow {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #08090b;
  transform: translateX(4px);
}

@media (max-width: 992px) {
  .initiate-project-section {
    padding: 110px 6vw 90px;
  }
  .initiate-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .initiate-brand-badge {
    top: 24px;
    right: 6vw;
  }
  .initiate-brand-icon {
    width: 32px;
  }
  .initiate-brand-text {
    font-size: 0.6rem;
    letter-spacing: 0.14em;
  }
  .initiate-desc {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .initiate-card {
    padding: 16px 18px;
    gap: 14px;
    border-radius: 16px;
  }
  .initiate-card-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .initiate-card-arrow {
    width: 32px;
    height: 32px;
  }
  .initiate-heading {
    font-size: 2.8rem;
  }
}

/* ==========================================================================
   Project Lightbox Modal (Marvell Co Aesthetic)
   ========================================================================== */
.project-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(5, 6, 8, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  z-index: 10000;
  display: none;
  overflow-y: auto;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 5vw;
  box-sizing: border-box;
}

.project-modal.active {
  display: flex;
}

.modal-close-btn {
  position: fixed;
  top: 28px;
  right: 36px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 10001;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-close-btn:hover {
  background: #ffffff;
  color: #000000;
  transform: scale(1.08);
}

.modal-content-wrap {
  width: 100%;
  max-width: 1140px;
  margin: auto;
  padding: 20px 0 60px;
}

.modal-hero-view {
  width: 100%;
  max-height: 65vh;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000000;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-hero-img {
  width: 100%;
  height: auto;
  max-height: 65vh;
  object-fit: contain;
  display: block;
}

.modal-meta-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.card-category-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-gold-light);
  display: inline-block;
  margin-bottom: 8px;
}

.modal-title {
  font-family: var(--font-main);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 400;
  color: #ffffff;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.modal-gallery-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 14px 0 10px;
  scrollbar-width: thin;
}

.modal-gallery-thumb {
  flex: 0 0 150px;
  height: 94px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.modal-gallery-thumb.active,
.modal-gallery-thumb:hover {
  opacity: 1;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.modal-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.marvell-footer {
  padding: 60px 6vw 40px;
  background: #060708;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.marvell-footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

.marvell-footer a:hover {
  color: #ffffff;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .spatial-cards-board {
    grid-template-columns: repeat(6, 1fr);
  }
  .spatial-card.col-span-5,
  .spatial-card.col-span-4,
  .spatial-card.col-span-3,
  .spatial-card.col-span-6,
  .spatial-card.col-span-7 {
    grid-column: span 6;
  }
  .profile-grid, .contact-layout, .case-study-info-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .service-row {
    grid-template-columns: 40px 1fr 40px;
  }
  .service-row-desc {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-island-container {
    top: 14px;
  }
  .nav-pill-link {
    font-size: 0.68rem;
    padding: 6px 10px;
  }
  .spatial-cards-board {
    grid-template-columns: 1fr;
  }
  .spatial-card.col-span-5,
  .spatial-card.col-span-4,
  .spatial-card.col-span-3,
  .spatial-card.col-span-6,
  .spatial-card.col-span-7 {
    grid-column: span 1;
    aspect-ratio: 16 / 10;
  }
  .profile-stats-row {
    grid-template-columns: 1fr;
  }
  .marvell-footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}
