/* =====================================================================
   MOHAMED HABASHI — PREMIUM SCROLL-DRIVEN CREATIVE PORTFOLIO
   Senior Graphic Designer & Visual Creative • Abu Dhabi, UAE
   Dark Charcoal Editorial & Motion Design System
   ===================================================================== */

:root {
  /* Dark Charcoal & Obsidian Palette */
  --bg-primary: #09090b;
  --bg-surface: #121215;
  --bg-surface-elevated: #18181c;
  --bg-surface-card: #141418;
  --bg-glass: rgba(14, 14, 18, 0.78);
  --bg-glass-heavy: rgba(9, 9, 11, 0.92);

  /* Editorial Typography Colors */
  --text-primary: #f4f4f5;
  --text-heading: #ffffff;
  --text-muted: #a1a1aa;
  --text-subtle: #71717a;
  --text-faint: #52525b;

  /* Silver & Metallic Trims */
  --silver-bright: #ffffff;
  --silver-light: #e4e4e7;
  --silver-base: #d4d4d8;
  --silver-dark: #71717a;
  --silver-gradient: linear-gradient(135deg, #ffffff 0%, #d4d4d8 45%, #71717a 100%);
  --silver-border-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.15) 100%);

  /* Hairline Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-strong: rgba(255, 255, 255, 0.28);
  --border-focus: #60a5fa;

  /* Restrained Blue / Accent */
  --accent-blue: #3b82f6;
  --accent-blue-hover: #60a5fa;
  --accent-glow: rgba(59, 130, 246, 0.22);
  --status-emerald: #10b981;

  /* Editorial Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, SFMono-Regular, monospace;

  /* Radii */
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: 180ms var(--ease-out-expo);
  --transition-smooth: 350ms var(--ease-out-expo);
  --transition-slow: 600ms var(--ease-out-expo);

  --container-max: 1320px;
  --header-height: 84px;
}

/* =====================================================================
   RESET & BASE CONFIGURATION
   ===================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.04), transparent 55%),
    radial-gradient(circle at 100% 30%, rgba(255, 255, 255, 0.015), transparent 40%);
  background-attachment: fixed;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1.5rem;
  background: var(--accent-blue);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 10000;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: 1rem;
}

/* Typography Standards */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

@media (max-width: 768px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* =====================================================================
   CUSTOM CURSOR (DESKTOP ONLY)
   ===================================================================== */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  display: none;
  mix-blend-mode: normal;
}

@media (hover: hover) and (pointer: fine) {
  .custom-cursor {
    display: block;
  }
  
  /* Precision Silver Center Dot */
  .cursor-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--silver-bright);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: transform 0.15s ease-out, opacity 0.15s ease-out;
  }

  /* Fluid Trailing Outer Ring */
  .cursor-ring {
    position: absolute;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(1px);
    transition: width 0.3s var(--ease-out-expo),
                height 0.3s var(--ease-out-expo),
                background-color 0.3s var(--ease-out-expo),
                border-color 0.3s var(--ease-out-expo),
                border-radius 0.3s var(--ease-out-expo);
  }

  .cursor-label {
    opacity: 0;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #fff;
    text-transform: uppercase;
    white-space: nowrap;
    transition: opacity 0.2s ease;
  }

  /* Hover States on Interactive Elements */
  body.cursor-hover-view .cursor-ring {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.8);
  }
  body.cursor-hover-view .cursor-dot {
    opacity: 0;
  }
  body.cursor-hover-view .cursor-label {
    opacity: 1;
  }

  body.cursor-hover-drag .cursor-ring {
    width: 80px;
    height: 38px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
  }
  body.cursor-hover-drag .cursor-dot {
    opacity: 0;
  }
  body.cursor-hover-drag .cursor-label {
    opacity: 1;
  }

  body.cursor-hover-zoom .cursor-ring {
    width: 64px;
    height: 64px;
    background: rgba(59, 130, 246, 0.25);
    border-color: var(--accent-blue-hover);
  }
  body.cursor-hover-zoom .cursor-dot {
    opacity: 0;
  }
  body.cursor-hover-zoom .cursor-label {
    opacity: 1;
  }

  body.cursor-hover-play .cursor-ring {
    width: 68px;
    height: 68px;
    background: rgba(255, 255, 255, 0.22);
    border-color: #fff;
  }
  body.cursor-hover-play .cursor-dot {
    opacity: 0;
  }
  body.cursor-hover-play .cursor-label {
    opacity: 1;
  }
}

/* =====================================================================
   HEADER & NAVIGATION
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.monogram-badge {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--silver-bright);
  letter-spacing: -0.02em;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.brand-link:hover .monogram-badge {
  border-color: var(--silver-bright);
  transform: translateY(-1px);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-subtle);
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  position: relative;
  padding: 0.4rem 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--silver-bright);
  transition: width var(--transition-smooth);
}

.nav-link:hover {
  color: var(--text-heading);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--text-heading);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.btn-cv {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--silver-light);
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  background: rgba(255, 255, 255, 0.03);
  transition: all var(--transition-fast);
}

.btn-cv:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--silver-bright);
  color: #fff;
  transform: translateY(-1px);
}

.menu-toggle-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-heading);
  cursor: pointer;
  padding: 0.4rem;
}

@media (max-width: 860px) {
  .site-nav {
    display: none;
  }
  .menu-toggle-btn {
    display: block;
  }
}

/* =====================================================================
   PRIMARY & SECONDARY BUTTONS
   ===================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000;
  background: var(--silver-bright);
  border-radius: var(--radius-sm);
  border: 1px solid var(--silver-bright);
  cursor: pointer;
  transition: all var(--transition-fast);
  will-change: transform;
}

.btn-primary:hover {
  background: #ffffff;
  color: #000;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver-light);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--silver-bright);
  color: #fff;
  transform: translateY(-2px);
}

/* =====================================================================
   1. INTERACTIVE HERO SECTION
   ===================================================================== */
.hero-section {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0 5rem;
  overflow: hidden;
}

/* 3D WebGL Canvas Layer */
.hero-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.hero-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-ambient-glow {
  position: absolute;
  top: 25%;
  right: 15%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.035) 0%, rgba(59, 130, 246, 0.03) 45%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  border-radius: 50%;
}

.hero-inner-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100vh - var(--header-height) - 7rem);
}

/* Hero Top Bar */
.hero-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.status-indicator-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-emerald);
  box-shadow: 0 0 10px var(--status-emerald);
  animation: pulse-dot 2.2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.status-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--silver-light);
}

.hero-coordinates {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
  display: flex;
  gap: 0.6rem;
}

.hero-coordinates .separator {
  color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 640px) {
  .hero-coordinates {
    display: none;
  }
}

/* Oversized Editorial Typography */
.hero-headline-wrap {
  margin: auto 0;
  padding: 2rem 0;
  user-select: none;
}

.hero-oversized-name {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9.5vw, 9.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.88;
  color: var(--text-heading);
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
}

.hero-oversized-name .name-part {
  display: block;
}

.hero-oversized-name .last-name {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.85);
  transition: color var(--transition-smooth);
}

.hero-oversized-name .last-name:hover {
  color: #fff;
}

/* Hero Bottom Editorial Grid */
.hero-bottom-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3.5rem;
  align-items: flex-end;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.hero-standfirst-headline {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 500;
  line-height: 1.2;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.hero-role-badge {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-blue-hover);
}

.hero-bio-snippet {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.hero-actions-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Scroll Prompt */
.hero-scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 3rem;
  color: var(--text-subtle);
  transition: color var(--transition-fast);
}

.hero-scroll-cue:hover {
  color: var(--silver-bright);
}

.scroll-mouse-track {
  width: 20px;
  height: 32px;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-pill);
  position: relative;
  display: flex;
  justify-content: center;
}

.scroll-mouse-pip {
  width: 3px;
  height: 6px;
  background: var(--silver-bright);
  border-radius: var(--radius-pill);
  position: absolute;
  top: 6px;
  animation: mouse-wheel 1.8s infinite ease-in-out;
}

@keyframes mouse-wheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

.scroll-cue-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  font-weight: 700;
}

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

/* =====================================================================
   2. SCROLL-DRIVEN PINNED PROJECT SHOWCASE
   ===================================================================== */
.pinned-showcase-section {
  position: relative;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
}

.showcase-pin-stage {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 0;
  overflow: hidden;
}

.showcase-header-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
}

.showcase-section-kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.showcase-section-kicker .kicker-text {
  color: var(--silver-bright);
  font-weight: 700;
}

.showcase-section-kicker .kicker-divider {
  color: var(--text-faint);
  margin: 0 0.3rem;
}

.showcase-ticker {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
}

.showcase-ticker .ticker-active {
  color: var(--silver-bright);
  font-size: 1.25rem;
}

/* Showcase Slides Wrapper */
.showcase-slides-wrapper {
  position: relative;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.showcase-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out-expo), visibility 0.5s ease;
}

.showcase-slide.active-slide {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.showcase-slide-inner {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

/* Showcase Media Frame */
.showcase-media-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85);
  display: block;
}

.media-aspect-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000;
}

.showcase-slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.showcase-media-frame:hover .showcase-slide-image {
  transform: scale(1.04);
}

.showcase-media-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 40%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}

.showcase-media-badges {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.pill-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(14, 14, 18, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--silver-light);
}

.pill-badge.pill-accent {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(96, 165, 250, 0.4);
  color: #93c5fd;
}

/* Showcase Details Column */
.showcase-details-column {
  display: flex;
  flex-direction: column;
}

.showcase-meta-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-blue-hover);
  margin-bottom: 0.75rem;
}

.showcase-project-title {
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.showcase-project-title a:hover {
  color: var(--silver-light);
}

.showcase-summary-copy {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.showcase-specs-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
}

.spec-entry {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
}

.spec-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--silver-bright);
}

.showcase-action-wrap {
  display: flex;
}

/* Dots Progress */
.showcase-progress-bar-wrap {
  margin-top: 2rem;
}

.showcase-progress-dots {
  display: flex;
  gap: 0.75rem;
}

.showcase-dot-btn {
  width: 32px;
  height: 4px;
  background: rgba(255, 255, 255, 0.18);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.showcase-dot-btn.active {
  width: 60px;
  background: var(--silver-bright);
}

/* Responsive Showcase for Mobile (Disable Pinning, Stacking Layout) */
@media (max-width: 960px) {
  .showcase-pin-stage {
    min-height: auto;
    padding: 3rem 0;
  }
  .showcase-slides-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4rem;
  }
  .showcase-slide {
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    height: auto !important;
  }
  .showcase-slide-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .showcase-progress-bar-wrap {
    display: none;
  }
}

/* =====================================================================
   3. DYNAMIC PORTFOLIO GRID & CATEGORY FILTERING
   ===================================================================== */
.portfolio-archive-section {
  padding: 6rem 0 7rem;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.archive-section-header {
  margin-bottom: 3rem;
}

.section-kicker-line {
  margin-bottom: 0.75rem;
}

.kicker-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-blue-hover);
  text-transform: uppercase;
}

.archive-heading-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: flex-end;
}

.archive-title {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1.15;
}

.archive-subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
}

@media (max-width: 860px) {
  .archive-heading-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Category Filter Bar */
.filter-controls-strip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
  padding: 0.4rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  width: fit-content;
}

.category-filter-btn {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.55rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.category-filter-btn .filter-count {
  font-size: 0.7rem;
  color: var(--text-subtle);
  padding: 0.1rem 0.35rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xs);
}

.category-filter-btn:hover {
  color: var(--silver-bright);
  background: rgba(255, 255, 255, 0.05);
}

.category-filter-btn.active {
  color: #000;
  background: var(--silver-bright);
  border-color: var(--silver-bright);
}

.category-filter-btn.active .filter-count {
  background: rgba(0, 0, 0, 0.15);
  color: #000;
}

/* Portfolio Cards Grid */
.interactive-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2.2rem;
}

.interactive-project-card {
  grid-column: span 6;
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.interactive-project-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.75);
}

.card-image-link {
  display: block;
  position: relative;
  overflow: hidden;
}

.card-media-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000;
}

.card-base-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease-out-expo);
}

.interactive-project-card:hover .card-base-img {
  transform: scale(1.04);
}

.card-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(9, 9, 11, 0.65) 100%);
  pointer-events: none;
}

.card-corner-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.4rem;
  z-index: 2;
}

.card-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-xs);
  background: rgba(14, 14, 18, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--silver-light);
}

.card-badge.badge-featured {
  background: rgba(59, 130, 246, 0.3);
  border-color: rgba(96, 165, 250, 0.5);
  color: #93c5fd;
}

.card-type-icon {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(14, 14, 18, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--silver-bright);
  z-index: 2;
}

/* Card Text Panel */
.card-text-panel {
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-blue-hover);
  margin-bottom: 0.65rem;
}

.card-title-text {
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.card-title-text a:hover {
  color: var(--silver-light);
}

.card-summary-snippet {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer-action {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.card-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver-light);
  transition: all var(--transition-fast);
}

.card-link-arrow svg {
  transition: transform var(--transition-fast);
}

.interactive-project-card:hover .card-link-arrow {
  color: #fff;
}

.interactive-project-card:hover .card-link-arrow svg {
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .interactive-project-card {
    grid-column: span 12;
  }
}

.archive-footer-bar {
  text-align: center;
  margin-top: 4rem;
}

/* =====================================================================
   4. ABOUT & PRACTICE OVERVIEW SECTION
   ===================================================================== */
.about-overview-section {
  padding: 7rem 0;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
}

.about-editorial-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 5rem;
}

.about-editorial-headline {
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.15;
  margin: 1rem 0 1.75rem;
  letter-spacing: -0.02em;
}

.about-editorial-body {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.about-actions-row {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.about-portrait-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  margin-bottom: 2rem;
  background: var(--bg-surface);
}

.about-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.about-portrait-frame:hover img {
  transform: scale(1.03);
}

.about-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-metrics-card,
.disciplines-card,
.tools-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.sidebar-heading {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--text-subtle);
  margin-bottom: 1.25rem;
}

.metrics-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.metric-block {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.metric-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--silver-bright);
}

.metric-caption {
  font-size: 0.8rem;
  color: var(--text-subtle);
  line-height: 1.4;
}

.discipline-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.discipline-chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--silver-light);
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.discipline-chip:hover {
  border-color: var(--silver-bright);
  color: #fff;
  transform: translateY(-1px);
}

.tools-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
}

@media (max-width: 960px) {
  .about-editorial-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* =====================================================================
   5. BOLD CONTACT STATEMENT SECTION
   ===================================================================== */
.contact-callout-section {
  padding: 8rem 0 9rem;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.contact-card-box {
  max-width: 820px;
  margin: 0 auto;
}

.contact-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-blue-hover);
  margin-bottom: 1.25rem;
}

.contact-giant-headline {
  font-size: clamp(2.4rem, 4.8vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.contact-lead-desc {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.contact-actions-cluster {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.contact-main-btn {
  padding: 1.1rem 2.4rem;
  font-size: 0.9rem;
}

.contact-form-btn {
  padding: 1.1rem 2.4rem;
  font-size: 0.9rem;
}

.contact-social-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.social-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
}

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

.social-link-item {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--silver-light);
  transition: color var(--transition-fast);
}

.social-link-item:hover {
  color: #fff;
  text-decoration: underline;
}

/* =====================================================================
   6. CASE STUDY DETAIL VIEW & MODULAR BLOCKS
   ===================================================================== */
.draft-preview-banner {
  background: rgba(245, 158, 11, 0.15);
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.75rem 0;
  font-size: 0.85rem;
  color: #fbbf24;
}

.draft-banner-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.draft-edit-link {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
}

.case-study-hero {
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.case-study-crumbs {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  margin-bottom: 1.75rem;
}

.crumb-sep {
  color: var(--text-faint);
}

.crumb-current {
  color: var(--silver-light);
}

.case-study-main-title {
  font-size: clamp(2.4rem, 4.8vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.case-study-lead-summary {
  font-size: 1.25rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 900px;
  margin-bottom: 2.5rem;
}

.case-study-meta-strip {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
}

.meta-strip-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.meta-strip-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
}

.meta-strip-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--silver-bright);
}

/* Cover Media Banner */
.case-study-cover-section {
  padding: 3.5rem 0;
}

.case-study-cover-reveal-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  background: var(--bg-surface-elevated);
  cursor: zoom-in;
}

.case-study-hero-img {
  width: 100%;
  max-height: 750px;
  object-fit: cover;
  transition: transform 0.65s var(--ease-out-expo);
}

.case-study-cover-reveal-frame:hover .case-study-hero-img {
  transform: scale(1.02);
}

.cover-zoom-hint {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  padding: 0.4rem 0.85rem;
  background: rgba(14, 14, 18, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
}

/* Two-Column Editorial Layout (Sticky Metadata Sidebar + Narrative Body) */
.case-study-editorial-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  margin: 4rem 0 6rem;
  padding-bottom: 5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.case-study-sidebar {
  position: relative;
}

.sticky-sidebar-inner {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.25rem;
}

.sidebar-kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-blue-hover);
  margin-bottom: 0.5rem;
}

.sidebar-scope-title {
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
}

.sidebar-details-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.sidebar-entry {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sidebar-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
}

.sidebar-data {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--silver-bright);
}

.sidebar-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-blue-hover);
}

.sidebar-deliverables-box {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.deliverables-text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin-top: 0.4rem;
}

/* Narrative Sections */
.case-study-narrative-body {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.narrative-section {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.narrative-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.narrative-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--accent-blue-hover);
  margin-bottom: 0.5rem;
}

.narrative-heading {
  font-size: 1.85rem;
  margin-bottom: 1.25rem;
}

.narrative-rich-text {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text-muted);
}

.narrative-rich-text p {
  margin-bottom: 1.25rem;
}

@media (max-width: 960px) {
  .case-study-editorial-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .sticky-sidebar-inner {
    position: relative;
    top: 0;
  }
}

/* Presentation Suite Card */
.case-study-presentation-suite {
  margin: 4rem 0 6rem;
}

.presentation-suite-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 3rem;
}

.presentation-suite-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.suite-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-blue-hover);
  display: block;
  margin-bottom: 0.5rem;
}

.suite-title {
  font-size: 1.85rem;
  margin-bottom: 0.5rem;
}

.suite-desc {
  max-width: 650px;
  font-size: 1rem;
}

.presentation-suite-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.presentation-slides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.slide-preview-thumb {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #000;
  cursor: zoom-in;
}

.slide-preview-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform var(--transition-fast);
}

.slide-preview-thumb:hover img {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .presentation-slides-grid {
    grid-template-columns: 1fr;
  }
}

/* Content Blocks Flow */
.case-study-blocks-flow {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  margin: 4rem 0 6rem;
}

.content-block {
  width: 100%;
}

.block-heading-module {
  margin: 1.5rem 0;
}

.heading-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--accent-blue-hover);
  display: block;
  margin-bottom: 0.4rem;
}

.module-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 0.5rem;
}

.module-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
}

.block-rich-text-module {
  max-width: 900px;
}

.rich-module-title {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.rich-module-body {
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--text-muted);
}

.block-single-image-module,
.block-full-image-module {
  margin: 1rem 0;
}

.single-image-frame,
.full-image-reveal-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  background: var(--bg-surface-elevated);
}

.single-image-frame img,
.full-image-reveal-wrapper img {
  width: 100%;
  display: block;
}

.block-caption-line {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
  margin-top: 0.75rem;
}

.block-two-col-images-module {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.two-col-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  background: var(--bg-surface-elevated);
}

.two-col-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 768px) {
  .block-two-col-images-module {
    grid-template-columns: 1fr;
  }
}

/* Two-Column Editorial Module */
.block-two-col-editorial-module {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.block-two-col-editorial-module.media-on-left .editorial-text-panel {
  order: 2;
}

.block-two-col-editorial-module.media-on-left .editorial-media-panel {
  order: 1;
}

.editorial-block-title {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

.editorial-block-narrative {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.editorial-media-panel {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-medium);
}

.editorial-media-panel img {
  width: 100%;
  object-fit: cover;
}

@media (max-width: 860px) {
  .block-two-col-editorial-module {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .block-two-col-editorial-module.media-on-left .editorial-text-panel {
    order: 1;
  }
  .block-two-col-editorial-module.media-on-left .editorial-media-panel {
    order: 2;
  }
}

/* Before and After Comparison Block */
.block-before-after-module {
  margin: 1.5rem 0;
}

.ba-stage-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  background: #000;
  user-select: none;
  cursor: ew-resize;
}

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

.ba-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-before-layer {
  width: 50%; /* controlled by slider */
  z-index: 2;
  border-right: 1.5px solid #fff;
}

.ba-after-layer {
  z-index: 1;
}

.ba-tag {
  position: absolute;
  bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-xs);
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--silver-bright);
}

.ba-before-tag {
  left: 1.25rem;
}

.ba-after-tag {
  right: 1.25rem;
}

.ba-slider-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 44px;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
}

.ba-slider-divider:active {
  cursor: grabbing;
}

.ba-divider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

.ba-handle-grip {
  position: relative;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  border: 2px solid #000;
}

/* Gallery Module */
.gallery-masonry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-tile {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #000;
}

.gallery-tile img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform var(--transition-fast);
}

.gallery-tile:hover img {
  transform: scale(1.04);
}

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

/* Quote Module */
.block-quote-module {
  padding: 3.5rem 3rem;
  background: var(--bg-surface);
  border-left: 3px solid var(--silver-bright);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0;
}

.editorial-blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--silver-bright);
  margin-bottom: 1.25rem;
}

.blockquote-citation {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-subtle);
}

.quote-author-name {
  color: var(--silver-light);
  font-weight: 700;
}

/* Video Modules */
.block-video-embed-module {
  margin: 1.5rem 0;
}

.responsive-video-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  background: #000;
}

.responsive-video-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.block-local-video-module {
  margin: 1.5rem 0;
}

.local-video-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  background: #000;
}

.custom-html5-video {
  width: 100%;
  display: block;
}

/* Download Module */
.block-download-file-module {
  padding: 2.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.download-info-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.download-file-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue-hover);
}

.download-title {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.download-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-subtle);
}

.download-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* Tags Bar */
.case-study-tags-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border-subtle);
  margin-top: 3rem;
  flex-wrap: wrap;
}

.tags-heading-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
}

.tags-list-cluster {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.case-tag-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--silver-light);
}

/* Adjacent Navigation */
.case-study-adjacent-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 4rem 0;
  border-top: 1px solid var(--border-subtle);
  margin-top: 3rem;
}

.adjacent-link {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.adjacent-link:hover {
  border-color: var(--border-medium);
  background: var(--bg-surface-elevated);
  transform: translateY(-2px);
}

.adjacent-nav-col.next-col .adjacent-link {
  text-align: right;
  align-items: flex-end;
}

.adjacent-nav-cue {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
}

.adjacent-nav-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--silver-bright);
}

@media (max-width: 640px) {
  .case-study-adjacent-nav {
    grid-template-columns: 1fr;
  }
}

/* Related Projects Section */
.related-projects-section {
  padding: 5rem 0 6rem;
  border-top: 1px solid var(--border-subtle);
}

.related-section-title {
  font-size: 2rem;
  margin-bottom: 2.5rem;
}

.related-grid .interactive-project-card {
  grid-column: span 4;
}

@media (max-width: 900px) {
  .related-grid .interactive-project-card {
    grid-column: span 12;
  }
}

/* =====================================================================
   7. FOOTER
   ===================================================================== */
.site-footer {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2.5rem;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand h4 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.footer-social-links a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.footer-social-links a:hover {
  color: var(--silver-bright);
}

/* =====================================================================
   8. LIGHTBOX MODAL
   ===================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

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

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
  border: 1px solid var(--border-medium);
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  transition: transform var(--transition-fast);
}

.lightbox-close:hover {
  transform: rotate(90deg);
}

/* Flash Alerts */
.flash-alert {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.flash-alert.success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.flash-alert.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* =====================================================================
   9. REDUCED MOTION PREFERENCES
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .custom-cursor {
    display: none !important;
  }
  .hero-canvas-container {
    opacity: 0.3;
  }
  .showcase-slide {
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}
