/* ==========================================================================
   C. WIJE PORTFOLIO — PREMIUM GLOBAL STYLESHEET
   ========================================================================== */

/* --- CUSTOM FONTS --- */
@font-face {
  font-family: 'Havock';
  src: url('assets/fonts/Havock.otf') format('opentype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* --- CSS VARIABLES & TOKENS --- */
:root {
  --font-display: 'Gotham Pro', 'Syne', sans-serif;
  --font-heading: 'Gotham Pro', 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --bg-color: #060606;
  --bg-card: #0e0e0e;
  --bg-card-hover: #141414;
  --text-primary: #f5f5f5;
  --text-secondary: #8e8e93;
  --text-muted: #555558;

  --accent-cyan: #dfa674;
  /* Cinematic Amber/Gold */
  --accent-purple: #b86f43;
  /* Burnt Copper/Sienna */
  --accent-pink: #d97d5b;
  /* Terracotta/Peach */
  --accent-green: #9aa88a;
  /* Sage Green/Olive */
  --accent-orange: #e0ac3c;
  /* Warm Metallic Gold */
  --accent-gradient: linear-gradient(90deg, var(--accent-purple) 0%, var(--accent-cyan) 100%);

  --border-glass: rgba(255, 255, 255, 0.06);
  --border-glass-hover: rgba(255, 255, 255, 0.12);
  --bg-glass: rgba(8, 8, 8, 0.7);
  --bg-drawer: rgba(10, 10, 10, 0.95);

  --ease-cinematic: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: 0.2s var(--ease-smooth);
  --transition-medium: 0.4s var(--ease-cinematic);
  --transition-slow: 0.8s var(--ease-cinematic);
}

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

html {
  scroll-behavior: auto;
  /* Handled by Lenis for smooth scroll */
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-color);
}

/* Custom Scrollbar for non-Lenis browsers */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* Lenis Specific Configuration */
html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overflow: clip;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* --- FILM GRAIN OVERLAY --- */
#film-grain-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
}

/* --- AMBIENT GLOWS --- */
.ambient-glows {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.18;
  mix-blend-mode: screen;
  pointer-events: none;
}

.glow-1 {
  top: -10%;
  right: 10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
  animation: floatOrb1 20s infinite alternate ease-in-out;
}

.glow-2 {
  bottom: -15%;
  left: 5%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
  animation: floatOrb2 25s infinite alternate ease-in-out;
}

@keyframes floatOrb1 {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(-10%, 15%) scale(1.1);
  }
}

@keyframes floatOrb2 {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(15%, -10%) scale(0.9);
  }
}

/* --- CUSTOM DUAL-RING CURSOR --- */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease-out;
}

.cursor-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: opacity var(--transition-fast), transform var(--transition-fast), width var(--transition-fast), height var(--transition-fast);
  box-shadow: 0 0 6px var(--accent-cyan);
}

.cursor-ring {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(223, 166, 116, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease-smooth), height 0.25s var(--ease-smooth), border-color 0.25s var(--ease-smooth), background-color 0.25s var(--ease-smooth);
}

.cursor-text {
  position: absolute;
  color: #000;
  font-family: var(--font-heading);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.2s var(--ease-smooth);
}

/* Cursor States */
.custom-cursor.hovering .cursor-ring {
  width: 44px;
  height: 44px;
  border-color: var(--accent-cyan);
  background-color: rgba(223, 166, 116, 0.08);
}

.custom-cursor.hovering .cursor-dot {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
}

.custom-cursor.interactive .cursor-ring {
  width: 64px;
  height: 64px;
  background-color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.custom-cursor.interactive .cursor-dot {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
}

.custom-cursor.interactive .cursor-text {
  opacity: 1;
}

/* --- HEADER & NAVIGATION --- */
.header {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  z-index: 100;
  border-radius: 1.5rem;
  overflow: hidden;
  background: transparent;
  transition: width 0.4s var(--ease-smooth), top 0.4s var(--ease-smooth), border-radius 0.4s var(--ease-smooth);
}

.header.header-scrolled {
  top: 1rem;
  width: 92%;
}

.glass-filter {
  position: absolute;
  inset: 0;
  z-index: 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  filter: url(#lg-dist);
  isolation: isolate;
  opacity: 0;
  transition: opacity 0.4s var(--ease-smooth);
}

.glass-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10, 10, 10, 0.45);
  opacity: 0;
  transition: opacity 0.4s var(--ease-smooth);
}

.glass-specular {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  overflow: hidden;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.1),
    inset -1px -1px 0 rgba(0, 0, 0, 0.2),
    0 10px 30px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease-smooth);
}

.header.header-scrolled .glass-filter,
.header.header-scrolled .glass-overlay,
.header.header-scrolled .glass-specular {
  opacity: 1;
}

.header-container {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 0.4rem 2.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 85px;
  width: auto;
  display: block;
  transition: transform 0.3s var(--ease-smooth);
}

.logo-img:hover {
  transform: scale(1.05);
}

.nav {
  display: flex;
  gap: 2.25rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
  position: relative;
  padding: 0.35rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent-gradient);
  transition: width 0.3s var(--ease-smooth);
}

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

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

.availability {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  position: relative;
}

.pulse-indicator::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--accent-green);
  border-radius: 50%;
  animation: pulse 1.8s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

.availability-text {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
}

/* --- REUSABLE BUTTONS & COMPONENTS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 2.25rem;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: var(--transition-medium);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--text-primary);
  color: #000;
  border: 1px solid var(--text-primary);
}

.btn-primary svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--text-primary);
  border-color: rgba(245, 245, 245, 0.3);
}

.btn-primary:hover svg {
  transform: translateY(3px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  border-color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.03);
}

/* --- IMMERSIVE HERO SECTION --- */
.hero-pin-container {
  width: 100vw;
  /* Parent track for GSAP pinning, height is handled by ScrollTrigger */
}

.hero-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  overflow: hidden;
  background-color: var(--bg-color);
}

.hero-bg-text {
  position: absolute;
  font-family: 'Havock', var(--font-display);
  font-weight: 700;
  font-size: 23vw;
  color: rgba(255, 255, 255, 0.006);
  line-height: 1;
  letter-spacing: 0.08em;
  user-select: none;
  pointer-events: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

/* Global 3D WebGL Canvas fixed background container */
.webgl-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}

#webgl-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Cinematic visuals stack */
.hero-visuals-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-visuals-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: center center;
}

.hero-img-state {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
}

.hero-img-state.state-1 {
  opacity: 1;
  /* State A initially visible */
}

/* Vignette to blend cinematic states naturally into matte black space */
.hero-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, transparent 25%, rgba(6, 6, 6, 0.75) 85%),
    linear-gradient(to top, rgba(6, 6, 6, 1) 0%, transparent 12%),
    linear-gradient(to bottom, rgba(6, 6, 6, 0.6) 0%, transparent 10%);
  pointer-events: none;
  z-index: 3;
}

/* Floating Spheres */
.hero-spheres {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.sphere-wrapper {
  position: absolute;
  width: fit-content;
  height: fit-content;
  transform-origin: center center;
}

.sphere-1-wrap {
  top: 25%;
  left: 15%;
}

.sphere-2-wrap {
  bottom: 20%;
  right: 18%;
}

.hero-sphere {
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  will-change: transform;
}

.hero-sphere.sphere-1 {
  width: clamp(120px, 15vw, 220px);
  height: clamp(120px, 15vw, 220px);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, rgba(223, 166, 116, 0.04) 60%, transparent 100%);
  box-shadow: inset 0 8px 20px rgba(255, 255, 255, 0.08),
    0 15px 30px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(223, 166, 116, 0.02);
}

.hero-sphere.sphere-2 {
  width: clamp(80px, 10vw, 150px);
  height: clamp(80px, 10vw, 150px);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.08) 0%, rgba(184, 111, 67, 0.04) 60%, transparent 100%);
  box-shadow: inset 0 6px 15px rgba(255, 255, 255, 0.06),
    0 12px 25px rgba(0, 0, 0, 0.6),
    0 0 25px rgba(184, 111, 67, 0.02);
}

/* Hero Content & Text blocks positioning */
.hero-content-left {
  position: absolute;
  top: 45%;
  left: 8%;
  transform: translateY(-50%);
  width: 90%;
  max-width: 550px;
  z-index: 4;
  pointer-events: none;
}

.hero-text-block {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero-text-block.block-a {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero-top-meta {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'Havock', var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 5.2rem);
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: #F5F5F5;
  margin-bottom: 1.5rem;
  white-space: nowrap;
}

.hero-title-secondary {
  font-family: 'Havock', var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.3;
  letter-spacing: 0.03em;
  color: #F5F5F5;
  margin-bottom: 1.5rem;
}

.hero-divider {
  width: 30px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
  margin-bottom: 2rem;
}

.hero-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: #A5A5A5;
  margin-bottom: 2.5rem;
  font-weight: 400;
  max-width: 380px;
}

.hero-desc-marquee-wrapper {
  overflow: hidden;
  width: calc(100% + 8vw);
  margin-bottom: 2.5rem;
  pointer-events: auto;
  position: relative;
}

.hero-desc-marquee-track {
  display: flex;
  white-space: nowrap;
  gap: 1.5rem;
  width: max-content;
  animation: marquee-scroll 24s linear infinite;
  align-items: center;
}

.hero-desc-marquee-track span {
  font-family: var(--font-heading);
  font-size: clamp(0.8rem, 1.1vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  color: #A5A5A5;
  text-transform: uppercase;
}

.hero-desc-marquee-track .marquee-dot {
  color: var(--accent-cyan);
  opacity: 0.7;
  font-size: 1.25rem;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 2rem;
  pointer-events: auto;
}

/* Premium links */
.btn-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--text-primary);
  transition: opacity 0.3s ease;
}

.btn-text-link:hover {
  opacity: 0.8;
}

.btn-text-link .arrow {
  font-size: 0.85rem;
  transition: transform 0.3s var(--ease-smooth);
}

.btn-text-link:hover .arrow {
  transform: translate(2px, -2px);
}

.btn-play-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  transition: color 0.4s var(--ease-smooth);
  position: relative;
}

.btn-play-link:hover {
  color: var(--text-primary);
}

.play-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: all 0.4s var(--ease-smooth);
}

/* Luxury rotating outer ring */
.play-icon-wrap::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  transition: all 0.4s var(--ease-smooth);
  animation: playRingRotate 15s linear infinite;
  opacity: 0.7;
}

/* Pulsing accent ring on hover */
.play-icon-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 1px solid var(--accent, #00D2FF);
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.4s var(--ease-smooth);
  pointer-events: none;
}

@keyframes playRingRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.btn-play-link:hover .play-icon-wrap {
  border-color: rgba(255, 255, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.08);
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.btn-play-link:hover .play-icon-wrap::before {
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.btn-play-link:hover .play-icon-wrap::after {
  opacity: 0.3;
  transform: scale(1.3);
}

.play-arrow {
  width: 10px;
  height: 10px;
  margin-left: 2px;
  fill: currentColor;
  transition: transform 0.4s var(--ease-smooth);
}

.btn-play-link:hover .play-arrow {
  transform: scale(1.15);
}

/* Bottom Left Info */
.hero-bottom-info {
  position: absolute;
  bottom: 2.2rem;
  left: 8%;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0.65;
  transition: opacity 0.3s ease;
}

.globe-icon {
  width: 13px;
  height: 13px;
  opacity: 0.5;
}

/* Hero Scroll Indicator (Right-aligned) */
.hero-scroll-explore {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.25rem;
  pointer-events: none;
}

.scroll-explore-text {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.4;
  text-align: right;
}

.scroll-explore-line {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  position: relative;
  margin-right: 8px;
}

.scroll-explore-dot {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 4px;
  background-color: var(--text-primary);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: animateScrollDot 2.2s infinite ease-in-out;
}

@keyframes animateScrollDot {
  0% {
    top: 0%;
    opacity: 0;
  }

  25% {
    opacity: 1;
  }

  85% {
    top: 80%;
    opacity: 0;
  }

  100% {
    top: 80%;
    opacity: 0;
  }
}

/* --- SECTION GENERAL STYLING --- */
.section-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 7.5rem 4%;
}

.section-header {
  max-width: 700px;
  margin-bottom: 5rem;
}

.section-meta {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-cyan);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  margin-bottom: 1.75rem;
}

.section-desc {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.7;
  color: var(--text-secondary);
}

/* --- SELECTED WORK (CINEMATIC CARD STYLING) --- */
.work-section {
  position: relative;
  z-index: 2;
  background-color: var(--bg-color) !important;
  border-top: 1px solid var(--border-glass);
}
.work-section .section-container {
  position: relative;
  z-index: 5;
  background-color: var(--bg-color) !important;
  padding-top: 5rem;
  padding-bottom: 0.5rem;
}
.work-section .section-header {
  margin-bottom: 0;
}
.exhibition-corridor {
  position: relative;
  width: 100%;
  height: 100vh; /* Exactly 100vh to fit screen and prevent any bottom overflow */
  background-color: var(--bg-color) !important;
  margin-top: 1rem;
}

.corridor-viewport {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  perspective: 1200px;
  perspective-origin: center center;
}

/* Centered Walking Man Video Container */
.corridor-video-wrap {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.corridor-video {
  width: auto;
  height: 100%;
  min-width: 100%;
  object-fit: cover;
  opacity: 0.6;
  filter: contrast(105%) brightness(65%);
}
.corridor-video-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 15%, var(--bg-color) 70%),
              linear-gradient(to top, var(--bg-color) 3%, transparent 15%, transparent 85%, var(--bg-color) 97%);
  z-index: 2;
}

/* Gallery Walls */
.gallery-wall {
  position: absolute;
  top: 0;
  width: 46vw;
  height: 100%;
  z-index: 3;
  transform-style: preserve-3d;
}

.left-wall {
  left: 0;
}

.right-wall {
  right: 0;
}
/* Project Painting Card */
.project-card {
  position: relative;
  width: 21vw;
  aspect-ratio: 3.2 / 4;
  border-radius: 20px;
  background: rgba(14, 14, 18, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1.75rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
              border-color 0.4s ease, 
              box-shadow 0.4s ease, 
              background 0.4s ease;
  transform-origin: center center;
}

.project-card-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-media-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  margin-bottom: 1.25rem;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  filter: contrast(103%) brightness(95%);
}

.project-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: flex-end;
}

.project-cat {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.project-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  transition: color 0.3s ease;
}

.project-teaser {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.9rem;
}

.project-tags {
  display: flex;
  gap: 0.45rem;
  overflow: hidden;
}

.project-tags span {
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.22rem 0.55rem;
  border-radius: 12px;
  white-space: nowrap;
}

.project-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  transition: color 0.3s ease;
}

.project-btn svg {
  width: 12px;
  height: 12px;
  transition: transform 0.3s ease;
}

/* Hover Stacking Painting card effects */
.project-card:hover .project-card-inner {
  background: rgba(22, 22, 28, 0.85);
  border-color: rgba(255, 255, 255, 0.2);
}

.left-wall .project-card:hover .project-card-inner {
  transform: rotateY(-18deg) scale(1.03);
}

.right-wall .project-card:hover .project-card-inner {
  transform: rotateY(18deg) scale(1.03);
}

.project-card:hover .project-img {
  transform: scale(1.06);
}

.project-card[data-category="uiux"]:hover .project-card-inner {
  box-shadow: 0 30px 60px rgba(0, 242, 254, 0.25);
}
.project-card[data-category="uiux"]:hover .project-title {
  color: var(--accent-cyan);
}

.project-card[data-category="cinema"]:hover .project-card-inner {
  box-shadow: 0 30px 60px rgba(157, 78, 221, 0.25);
}
.project-card[data-category="cinema"]:hover .project-title {
  color: var(--accent-purple);
}

.project-card[data-category="motion"]:hover .project-card-inner {
  box-shadow: 0 30px 60px rgba(247, 37, 133, 0.25);
}
.project-card[data-category="motion"]:hover .project-title {
  color: var(--accent-pink);
}

.project-card[data-category="3d"]:hover .project-card-inner {
  box-shadow: 0 30px 60px rgba(4, 217, 141, 0.22);
}
.project-card[data-category="3d"]:hover .project-title {
  color: var(--accent-green);
}

.project-card[data-category="branding"]:hover .project-card-inner {
  box-shadow: 0 30px 60px rgba(255, 122, 0, 0.22);
}
.project-card[data-category="branding"]:hover .project-title {
  color: var(--accent-orange);
}

.project-card[data-category="webdev"]:hover .project-card-inner {
  box-shadow: 0 30px 60px rgba(0, 242, 254, 0.25);
}
.project-card[data-category="webdev"]:hover .project-title {
  color: var(--accent-cyan);
}

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

.see-more-works-wrap {
  display: none;
}

/* --- PLAYGROUND SECTION (BENTO GRID) --- */
.playground-section {
  position: relative;
  z-index: 2;
  background-color: #090909;
  border-top: 1px solid var(--border-glass);
}

.playground-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 24rem;
  gap: 1.5rem;
}

.playground-item {
  grid-column: span 2;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background-color: var(--bg-card);
  transition: var(--transition-medium);
}

.playground-item.large {
  grid-column: span 3;
}

.playground-media {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.playground-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(90%) brightness(85%);
  transition: transform var(--transition-slow);
}

.playground-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(6, 6, 6, 0.95) 0%, rgba(6, 6, 6, 0.2) 70%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  transition: background var(--transition-medium);
  pointer-events: none;
  /* Let pointer clicks pass through */
  z-index: 1;
}

.play-tag {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

.playground-overlay h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.playground-overlay p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  opacity: 0.8;
  max-width: 320px;
}

/* Interactive Canvas and Synth states */
.live-interactive {
  background-color: #030303;
}

#playground-canvas-interactive {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

.live-interactive .playground-overlay {
  z-index: 2;
  pointer-events: none;
  /* Let clicks pass to canvas */
}

/* Synth Box aesthetics */
.synth-media {
  background: radial-gradient(circle at center, #18003c 0%, #060606 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.synth-visual-container {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 70px;
  z-index: 1;
}

.synth-visual-container .bar {
  width: 8px;
  height: 10px;
  background-color: var(--accent-cyan);
  border-radius: 4px;
  transition: height 0.1s ease;
}

.playground-item:hover {
  border-color: var(--border-glass-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.playground-item:hover img {
  transform: scale(1.05);
}

.playground-item:hover .playground-overlay {
  background: linear-gradient(to top, rgba(6, 6, 6, 0.95) 0%, rgba(6, 6, 6, 0.5) 60%, transparent 100%);
}

/* --- ABOUT SECTION --- */
.about-section {
  position: relative;
  z-index: 2;
  background-color: var(--bg-color);
  border-top: 1px solid var(--border-glass);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

.about-visual {
  width: 100%;
  display: flex;
  justify-content: center;
}

.portrait-wrapper {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  perspective: 1000px;
}

.about-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.15s ease-out;
  /* Controlled by JS mousemove tilt */
}

.portrait-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
  opacity: 0.2;
  filter: blur(50px);
  z-index: -1;
  pointer-events: none;
}

.about-info {
  display: flex;
  flex-direction: column;
}

.about-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

.about-bio {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.capabilities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  border-top: 1px solid var(--border-glass);
  padding-top: 2rem;
}

.cap-col h4 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.cap-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cap-col li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cap-col li::before {
  content: '→';
  color: var(--accent-cyan);
  font-weight: 600;
}

/* --- CONTACT SECTION (FOOTER) --- */
.contact-section {
  position: relative;
  z-index: 2;
  background-color: #050505;
  border-top: 1px solid var(--border-glass);
  overflow: hidden;
  padding-bottom: 0;
}

.contact-bg-text {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20vw;
  color: rgba(255, 255, 255, 0.008);
  line-height: 1;
  letter-spacing: 0.03em;
  user-select: none;
  pointer-events: none;
  bottom: 0;
  left: 5%;
  z-index: 0;
}

.contact-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  margin-bottom: 1.75rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  margin-bottom: 7.5rem;
  position: relative;
  z-index: 1;
}

.contact-left {
  display: flex;
  flex-direction: column;
}

.contact-intro {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 3.5rem;
}

.contact-actions {
  margin-bottom: 3.5rem;
}

.action-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.75rem;
}

.copy-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: var(--transition-fast);
}

.copy-email-btn .email-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.copy-email-btn .copy-status {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-cyan);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background-color: rgba(223, 166, 116, 0.08);
  border: 1px solid rgba(223, 166, 116, 0.15);
  transition: var(--transition-fast);
}

.copy-email-btn:hover {
  border-color: var(--accent-cyan);
  background-color: rgba(255, 255, 255, 0.02);
}

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

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  border: 1px solid var(--border-glass);
  transition: var(--transition-fast);
}

.social-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease-smooth), color 0.3s var(--ease-smooth);
}

.social-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.02);
}

.social-btn:hover .social-icon {
  transform: scale(1.15);
  color: var(--text-primary);
}

/* Minimalist Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  background-color: var(--bg-card);
  padding: 3rem;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background-color: #050505;
  border: 1px solid var(--border-glass);
  padding: 0.9rem 1.2rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: 6px;
  outline: none;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(223, 166, 116, 0.1);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%238e8e93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 1.1rem;
}

.submit-btn {
  align-self: flex-start;
  background-color: var(--text-primary);
  color: #000;
  border: 1px solid var(--text-primary);
  padding: 0.9rem 2rem;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: var(--transition-medium);
}

.submit-btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.submit-btn:hover {
  background-color: transparent;
  color: var(--text-primary);
  border-color: rgba(245, 245, 245, 0.3);
}

.submit-btn:hover svg {
  transform: translateX(4px);
}

/* Footer Bottom Layout */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-glass);
  padding: 2.5rem 0;
  position: relative;
  z-index: 1;
}

.copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.footer-meta .separator {
  color: var(--accent-cyan);
}

/* --- CASE STUDY SLIDING DRAWER --- */
.project-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  visibility: hidden;
  pointer-events: none;
}

.project-drawer.open {
  visibility: visible;
  pointer-events: auto;
}

.drawer-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(3, 3, 3, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  opacity: 0;
  transition: opacity 0.5s var(--ease-cinematic);
}

.project-drawer.open .drawer-backdrop {
  opacity: 1;
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 68vw;
  height: 100%;
  background-color: var(--bg-drawer);
  border-left: 1px solid var(--border-glass);
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.7);
  transform: translateX(100%);
  transition: transform 0.65s cubic-bezier(0.19, 1, 0.22, 1);
  display: flex;
  flex-direction: column;
}

.project-drawer.open .drawer-panel {
  transform: translateX(0);
}

.drawer-close {
  position: absolute;
  top: 2rem;
  left: -4.5rem;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background-color: var(--text-primary);
  border: none;
  color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  transition: var(--transition-medium);
  z-index: 10;
}

.drawer-close svg {
  width: 18px;
  height: 18px;
}

.drawer-close:hover {
  transform: scale(1.1);
  background-color: var(--accent-cyan);
}

.drawer-scroll {
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto !important;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.drawer-hero {
  position: relative;
  width: 100%;
  height: 55vh;
  overflow: hidden;
}

.drawer-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(70%);
}

.drawer-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, var(--bg-drawer) 0%, transparent 100%);
}

.drawer-hero-content {
  position: absolute;
  bottom: 3rem;
  left: 4.5rem;
  right: 4.5rem;
  z-index: 2;
}

.drawer-cat {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  display: block;
}

.drawer-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.drawer-subtitle {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text-secondary);
}

.drawer-body {
  padding: 4rem 4.5rem;
}

.drawer-layout-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 4.5rem;
}

.drawer-main-content {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.drawer-section h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.drawer-section p {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.drawer-section p.lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-primary);
}

/* Sidebar detail items */
.drawer-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  position: sticky;
  top: 2rem;
  height: fit-content;
}

.specs-block h4 {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.specs-block p {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

.spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.spec-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  background-color: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
}

.flex-grow-spacer {
  flex-grow: 1;
  min-height: 2.5rem;
}

.drawer-footer-cta {
  border-top: 1px solid var(--border-glass);
  padding-top: 2rem;
}

.drawer-footer-cta p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.drawer-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  background: var(--accent-gradient);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition-medium);
}

.drawer-cta-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(184, 111, 67, 0.25);
}


/* ==========================================================================
   MEDIA QUERIES — PERFECT RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* --- TABLET (LANDSCAPE) --- */
@media (max-width: 1199px) {
  .drawer-panel {
    width: 80vw;
  }

  .playground-grid {
    grid-auto-rows: 20rem;
  }
}

/* --- TABLET (PORTRAIT) --- */
@media (max-width: 991px) {
  .header-container {
    padding: 1rem 5%;
  }

  .nav {
    display: none;
    /* Can build clean toggle or just overlay on mobile */
  }
  /* --- Exhibition Corridor Mobile Overrides --- */
  .exhibition-corridor {
    height: auto !important;
    margin-top: 2rem;
    padding-bottom: 2rem;
  }

  .corridor-viewport {
    position: relative !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
    perspective: none !important;
    overflow: visible !important;
  }

  .corridor-video-wrap {
    display: none !important; /* Hide walking video on mobile */
  }

  .gallery-wall {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    gap: 2rem !important;
    transform: none !important;
    transform-style: flat !important;
  }

  .project-card {
    width: 100% !important;
    aspect-ratio: auto !important;
    margin-bottom: 1.5rem !important;
    transform: none !important;
    background: rgba(14, 14, 18, 0.8) !important;
    padding: 1.5rem !important;
    border-radius: 16px !important;
  }

  .project-card:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  .project-card-inner {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .project-media-wrapper {
    aspect-ratio: 16 / 9 !important;
    margin-bottom: 0.75rem !important;
  }
  .project-info {
    padding: 0;
  }

  .playground-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 18rem;
  }

  .playground-item {
    grid-column: span 2 !important;
  }

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

  .about-visual {
    order: 2;
  }

  .about-info {
    order: 1;
  }

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

  .drawer-panel {
    width: 100vw;
  }

  .drawer-close {
    left: 2rem;
    top: 2rem;
    background-color: var(--bg-drawer);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
  }

  .drawer-hero-content {
    left: 2.5rem;
    right: 2.5rem;
  }

  .drawer-body {
    padding: 3rem 2.5rem;
  }

  .drawer-layout-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .drawer-sidebar {
    position: static;
    border-top: 1px solid var(--border-glass);
    padding-top: 3rem;
  }
}

/* --- MOBILE LANDSCAPE --- */
@media (max-width: 767px) {
  .section-container {
    padding: 5rem 6%;
  }

  .availability {
    display: none;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    gap: 1rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .playground-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 21rem;
    gap: 1rem;
  }

  .playground-item {
    grid-column: span 1 !important;
  }

  .playground-media {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    height: 100% !important;
  }

  .playground-overlay {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    background: transparent !important;
    padding: 1.25rem 1.25rem 0.5rem 1.25rem !important;
    order: -1 !important;
    pointer-events: auto !important;
    z-index: 5 !important;
  }

  .playground-overlay p {
    display: none !important;
  }

  .playground-overlay h4 {
    font-size: 1rem !important;
    margin-bottom: 0 !important;
    color: var(--text-primary) !important;
  }

  /* Reposition sandbox controllers below the headers */
  .color-sandbox-wrap,
  .aspect-sandbox-wrap,
  .timeline-sandbox-wrap {
    top: 58% !important;
    transform: translateY(-50%) !important;
  }

  .shader-controls {
    top: 62% !important;
  }

  .capabilities {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-form {
    padding: 2rem 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .drawer-hero-content {
    left: 1.5rem;
    right: 1.5rem;
    bottom: 2rem;
  }

  .drawer-body {
    padding: 2.5rem 1.5rem;
  }

  .custom-cursor {
    display: none;
    /* Hide custom cursor on mobile */
  }

  body {
    cursor: auto !important;
    /* Restore native cursor */
  }
}

/* --- SMALL MOBILE --- */
@media (max-width: 479px) {
  .hero-title {
    font-size: clamp(3rem, 11vw, 4.5rem);
  }

  .hero-subtitle {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-subtitle .bullet {
    display: none;
  }

  .project-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .project-btn {
    padding: 0.5rem 0;
  }

  .copy-email-btn {
    width: 100%;
    justify-content: space-between;
  }
}

/* ==========================================================================
   PREMIUM PRELOADER & INTRO LOGO ANIMATION
   ========================================================================== */
#preloader {
  position: fixed;
  inset: 0;
  background-color: #0A0A0A;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Modern minimal grid background */
.preloader-grid-bg {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-around;
  pointer-events: none;
  opacity: 0.04;
}

.p-grid-line {
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, #fff 50%, transparent 100%);
}

/* Giant background typography for cinematic weight */
.preloader-giant-number {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading), monospace;
  font-size: 28vw;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.015);
  letter-spacing: -0.05em;
  pointer-events: none;
  z-index: 0;
  user-select: none;
  font-feature-settings: "tnum";
}

/* Dynamic ambient aura */
.preloader-glow-ambient {
  display: none !important; /* Disabled blue ambient glow completely */
}

.preloader-logo-wrap {
  position: relative;
  margin-bottom: 2.2rem;
  opacity: 0;
  transform: scale(0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  mix-blend-mode: lighten; /* Uses mathematical lighten mode (max values) to mask video borders */
}

.preloader-logo-video {
  height: clamp(180px, 22vw, 260px);
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  mix-blend-mode: lighten; /* Uses lighten blending at video level */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  filter: contrast(12) brightness(0.7); /* Crushes any grey backplate to absolute black while keeping the logo crisp */
}

.preloader-meta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.8rem;
}

.preloader-subtitle {
  font-family: var(--font-heading);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  color: var(--accent-cyan);
  text-transform: uppercase;
  opacity: 0;
  /* Animated by GSAP */
}

.preloader-status {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  text-transform: uppercase;
  opacity: 0;
  /* Animated by GSAP */
}

.preloader-loader-bar {
  width: 180px;
  height: 1px;
  /* Ultra-thin minimalist bar */
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 1px;
  overflow: hidden;
  margin-bottom: 0.6rem;
  position: relative;
  opacity: 0;
}

.preloader-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--accent-cyan);
  box-shadow: 0 0 6px var(--accent-cyan);
}

.preloader-percent {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--text-secondary);
  text-transform: uppercase;
  opacity: 0;
}

/* --- WORK FILTERS --- */
.work-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 4rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 0.6rem 1.2rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  border-radius: 2rem;
  cursor: pointer;
  transition: all var(--transition-medium);
  text-transform: uppercase;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--text-primary);
  border-color: var(--accent-cyan);
  background: rgba(223, 166, 116, 0.03);
  box-shadow: 0 0 10px rgba(223, 166, 116, 0.15);
}

/* --- GRAPHIC ARCHIVE SECTION --- */
.graphic-archive-section {
  position: relative;
  z-index: 2;
  padding: 8rem 0;
  border-top: 1px solid var(--border-glass);
}

.post-feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.post-card {
  position: relative;
  background: rgba(15, 15, 15, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-medium);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  border-color: rgba(223, 166, 116, 0.4);
}

.post-media {
  position: relative;
  width: 100%;
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transition: transform var(--transition-medium);
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card:hover .post-media {
  transform: translateY(-4px);
}

.post-media img,
.post-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.post-card:hover .post-media img {
  transform: scale(1.05);
}

.post-card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(223, 166, 116, 0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.post-card:hover .post-card-glow {
  opacity: 1;
}

.post-info {
  padding: 1.2rem;
  border-top: 1px solid var(--border-glass);
}

.post-info span {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
}

.post-info h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 0.4rem;
  color: var(--text-primary);
}

/* --- BENTO CREATIVE LIBRARY --- */
.library-section {
  position: relative;
  z-index: 2;
  padding: 8rem 0;
  border-top: 1px solid var(--border-glass);
}

.bento-library-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.bento-box {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  transition: border-color var(--transition-medium);
}

.bento-box:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.bento-wide {
  grid-column: span 2;
}

.bento-vertical {
  grid-row: span 2;
}

.bento-tag {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  display: inline-block;
}

.bento-card-header h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.bento-card-header p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* Composition Overlays Demo */
.theory-demo-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.video-overlay-grid {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.theory-demo-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grid-line-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.grid-line-overlay.hidden {
  display: none !important;
}

/* Rules of Thirds lines */
.thirds-h {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  border-bottom: 0.5px dashed rgba(223, 166, 116, 0.4);
}

.thirds-h-1 {
  top: 37.6%;
}

.thirds-h-2 {
  top: 62.4%;
}

.thirds-v {
  position: absolute;
  top: 12.8%;
  height: 74.4%;
  width: 1px;
  background: rgba(255, 255, 255, 0.25);
  border-right: 0.5px dashed rgba(223, 166, 116, 0.4);
}

.thirds-v-1 {
  left: 33.33%;
}

.thirds-v-2 {
  left: 66.66%;
}

/* Center symmetry lines */
.center-h {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  border-bottom: 0.5px dashed rgba(184, 111, 67, 0.4);
}

.center-v {
  position: absolute;
  left: 50%;
  top: 12.8%;
  height: 74.4%;
  width: 1px;
  background: rgba(255, 255, 255, 0.25);
  border-right: 0.5px dashed rgba(184, 111, 67, 0.4);
}

/* Spiral Wrap */
.golden-spiral-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.spiral-svg {
  width: 100%;
  height: 100%;
  color: var(--accent-cyan);
  transform-origin: center center;
  transition: transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

.theory-toggles {
  display: flex;
  gap: 0.5rem;
}

.theory-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  border-radius: 4px;
  transition: all var(--transition-medium);
}

.theory-btn:hover,
.theory-btn.active {
  background: rgba(223, 166, 116, 0.05);
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

/* Color Grader Bento */
.grader-demo-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.grader-frame-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.grading-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.15s ease-out;
}

.grader-controls {
  padding: 0.5rem 0;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.slider-val-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
}

.color-val {
  color: var(--accent-cyan) !important;
}

.glow-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
}

.glow-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.glow-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  opacity: 0.7;
}

/* Manifesto Axioms */
.manifesto-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.manifesto-list li {
  display: flex;
  gap: 1rem;
}

.manifesto-list .num {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--accent-purple);
  font-weight: 500;
}

.manifesto-list h5 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.manifesto-list p {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Ticker Auto-scroll */
.ticker-container {
  position: relative;
  height: 120px;
  overflow: hidden;
  margin-top: 1.5rem;
}

.ticker-scroll {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  animation: ticker-vert 20s linear infinite;
}

.ticker-row {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 0.4rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

@keyframes ticker-vert {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-50%);
  }
}

/* --- CREDENTIALS SECTION --- */
.credentials-section {
  position: relative;
  z-index: 2;
  padding: 8rem 0;
  border-top: 1px solid var(--border-glass);
}

.credentials-manifesto {
  margin-bottom: 6rem;
}

.credentials-tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}

.bold-manifesto-text {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5.5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.credentials-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
}

.credentials-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  color: var(--text-primary);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 1px solid var(--border-glass);
}

.timeline-item {
  position: relative;
  margin-bottom: 3.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 0.25rem;
  width: 9px;
  height: 9px;
  background: var(--bg-color);
  border: 2px solid var(--accent-cyan);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 6px var(--accent-cyan);
}

.timeline-date {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.timeline-role {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.timeline-company {
  font-size: 0.8rem;
  color: var(--accent-purple);
  margin-bottom: 0.8rem;
}

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

/* Skills progress list */
.skills-list {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-bottom: 4rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
}

.skill-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.6rem;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-purple) 0%, var(--accent-cyan) 100%);
  box-shadow: 0 0 6px rgba(223, 166, 116, 0.5);
  border-radius: 2px;
}

/* Stats board */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* Responsive adjustments for new sections */
@media (max-width: 992px) {
  .bento-library-grid {
    grid-template-columns: 1fr;
  }

  .bento-wide {
    grid-column: span 1;
  }

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

  .post-feed-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .post-feed-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* --- POSTER LIGHTBOX MODAL --- */
.poster-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-smooth);
}

.poster-lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 8, 8, 0.95);
  backdrop-filter: blur(20px);
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 85vh;
  aspect-ratio: 1 / 1.25;
  z-index: 2;
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.5s var(--ease-smooth);
}

.poster-lightbox.open .lightbox-content {
  transform: scale(1);
}

.lightbox-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #080808;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-size: 1.5rem;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-medium);
  z-index: 3;
}

.lightbox-close:hover {
  background: var(--text-primary);
  color: var(--bg-color);
  transform: rotate(90deg);
}

.lightbox-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #080808;
  display: none;
}

.lightbox-video.active {
  display: block;
}

.lightbox-img.hidden {
  display: none;
}

/* Play indicator for video card overlay */
.post-play-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 50px;
  height: 50px;
  background: rgba(8, 8, 8, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  opacity: 0.8;
  transition: all var(--transition-medium);
  pointer-events: none;
  z-index: 2;
}

.post-media:hover .post-play-indicator {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--accent-cyan);
  color: var(--bg-color);
  opacity: 1;
  box-shadow: 0 0 15px var(--accent-cyan);
}

.post-play-indicator svg {
  width: 20px;
  height: 20px;
  margin-left: 3px;
  /* visual alignment offset */
}

/* --- 3D IMMERSIVE CAROUSEL STAGE --- */
.gallery-3d-stage {
  position: relative;
  width: 100%;
  height: 440px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
  margin-top: 3.5rem;
  perspective: 1200px;
}

.gallery-3d-stage.grabbing {
  cursor: grabbing;
}

.pedestal-glow {
  position: absolute;
  bottom: -10px;
  width: 380px;
  height: 25px;
  background: radial-gradient(ellipse at center, rgba(223, 166, 116, 0.35) 0%, transparent 70%);
  filter: blur(8px);
  border-radius: 50%;
  transform: rotateX(85deg);
  pointer-events: none;
}

.gallery-3d-spinner {
  position: relative;
  width: 220px;
  height: 295px;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.1s ease-out;
}

/* 3D Placement and positioning in the cylinder */
.gallery-3d-spinner .post-card {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  backface-visibility: visible !important;
  transform-style: preserve-3d;
  transition: transform 0.8s var(--ease-smooth), opacity 0.5s ease, filter 0.5s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Responsive adjustments for 3D stage on mobile screens */
@media (max-width: 576px) {
  .gallery-3d-stage {
    height: 380px;
    margin-top: 2.5rem;
  }

  .gallery-3d-spinner {
    width: 160px;
    height: 215px;
  }
}

/* --- PLAYGROUND: COLOR THEME PALETTE SANDBOX --- */
.color-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #15222e 0%, #080c10 100%);
  height: 100%;
}

.color-sandbox-wrap {
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
  width: 85%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  z-index: 3;
  pointer-events: auto;
}

.palette-preview-card {
  width: 100%;
  background-color: #0d121d;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.4s ease;
}

.mock-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mock-logo-symbol {
  font-family: var(--font-heading);
  font-weight: 800;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--accent-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--accent-cyan);
  transition: all 0.4s ease;
}

.mock-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--text-primary);
  transition: color 0.4s ease;
}

.mock-card-tag {
  font-family: monospace;
  font-size: 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: var(--text-secondary);
  transition: all 0.4s ease;
}

.palette-display {
  display: flex;
  width: 100%;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.color-block {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.3rem;
  transition: background-color 0.4s ease;
}

.hex-lbl {
  font-family: monospace;
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.4);
  padding: 0.1rem 0.25rem;
  border-radius: 3px;
}

.color-sandbox-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.color-sandbox-btn:hover {
  background: var(--accent-cyan);
  color: var(--bg-color);
  border-color: var(--accent-cyan);
}

/* --- PLAYGROUND: ASPECT RATIO MOTION --- */
.aspect-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #262118 0%, #0d0b08 100%);
  height: 100%;
}

.aspect-sandbox-wrap {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  width: 80%;
  height: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  z-index: 3;
  pointer-events: auto;
}

.camera-monitor {
  width: 100%;
  height: 110px;
  background-image: url('assets/images/project-bladerunner.png');
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.camera-monitor::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  pointer-events: none;
  z-index: 4;
  /* Layered cleanly on top of letterbox bars */
}

.letterbox-bar {
  position: absolute;
  background: #050608;
  z-index: 2;
  transition: all 0.35s var(--ease-smooth);
}

.bar-top {
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
}

.bar-bottom {
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
}

.bar-left {
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
}

.bar-right {
  top: 0;
  right: 0;
  width: 0%;
  height: 100%;
}

.aspect-crop-box {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.grid-line {
  position: absolute;
  background: rgba(223, 166, 116, 0.2);
}

.grid-v1 {
  left: 33.33%;
  top: 0;
  width: 1px;
  height: 100%;
}

.grid-v2 {
  left: 66.66%;
  top: 0;
  width: 1px;
  height: 100%;
}

.grid-h1 {
  top: 33.33%;
  left: 0;
  height: 1px;
  width: 100%;
}

.grid-h2 {
  top: 66.66%;
  left: 0;
  height: 1px;
  width: 100%;
}

.aspect-controls {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.aspect-value {
  font-family: monospace;
  font-size: 0.7rem;
  color: var(--accent-cyan);
}

/* --- PLAYGROUND: MOTION SCRUBBER --- */
.timeline-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #261b12 0%, #0c0806 100%);
  height: 100%;
}

.timeline-sandbox-wrap {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  width: 80%;
  height: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  z-index: 3;
  pointer-events: auto;
}

.motion-viewer {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.motion-svg {
  width: 100%;
  height: 100%;
}

#aperture-blades {
  transition: transform 0.1s linear;
}

.timeline-scrubber {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.frame-counter {
  font-family: monospace;
  font-size: 0.65rem;
  color: var(--text-secondary);
}

/* --- PLAYGROUND: 3D SPECULAR SHADER --- */
.shader-media {
  background: radial-gradient(circle at center, #241c18 0%, #0a0806 100%);
  height: 100%;
  position: relative;
}

#shader-sandbox-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.shader-controls {
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
  right: 1rem;
  width: 110px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 3;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.shader-slider-row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.shader-slider-row label {
  font-family: monospace;
  font-size: 0.55rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   CREATIVE PRODUCTION & RESOURCES VAULT
   ========================================================================== */

.graphic-archive-section,
.video-archive-section {
  position: relative;
  background-color: var(--bg-color);
  padding: 10rem 0;
  border-bottom: 1px solid var(--border-glass);
  overflow: hidden;
  z-index: 5;
}

.vault-filters {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.vault-tab-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 0.9rem 2rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.4s var(--ease-smooth);
}

.vault-tab-btn:hover {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.vault-tab-btn.active {
  background: var(--accent-gradient);
  color: var(--bg-color);
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(223, 166, 116, 0.25);
}

.vault-panels-container {
  position: relative;
  min-height: 400px;
}

.vault-panel {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.vault-panel.active {
  display: block;
  opacity: 1;
}

/* VIDEOS PANEL */
.youtube-showcase-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  margin-bottom: 5rem;
}

.yt-video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s var(--ease-cinematic);
}

.yt-video-card:hover {
  border-color: var(--border-glass-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.yt-embed-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  /* 16:9 */
  background: #000;
}

.yt-embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.yt-video-info {
  padding: 2rem;
}

.yt-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  display: inline-block;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.yt-video-info h4 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.yt-video-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.yt-channel-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: all 0.4s var(--ease-cinematic);
}

.yt-channel-card:hover {
  border-color: var(--border-glass-hover);
}

.channel-accent-glow {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(223, 166, 116, 0.12) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.channel-header-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.channel-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.avatar-letter {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--bg-color);
}

.channel-meta-text h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.channel-handle a {
  font-size: 0.9rem;
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 500;
}

.channel-handle a:hover {
  text-decoration: underline;
}

.sub-counter {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.channel-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2.2rem;
}

.channel-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.2rem 0;
}

.highlight-item h5 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.highlight-item span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.yt-embed-wrapper.mini {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* LOCAL GALLERY */
.local-videos-header {
  margin-bottom: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 4rem;
}

.local-videos-header h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.local-videos-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.local-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.local-video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s var(--ease-cinematic);
}

.local-video-card:hover {
  border-color: var(--border-glass-hover);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.video-preview-box {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  /* 16:9 */
  background: #080808;
  overflow: hidden;
}

.video-preview-box video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  transition: transform 0.8s var(--ease-cinematic), opacity 0.5s ease;
}

.local-video-card:hover .video-preview-box video {
  transform: scale(1.06);
  opacity: 0.9;
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.play-arrow {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(6, 6, 6, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s var(--ease-cinematic);
}

.play-arrow::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent var(--text-primary);
  margin-left: 4px;
  transition: border-color 0.3s;
}

.local-video-card:hover .play-arrow {
  background: var(--accent-cyan);
  border-color: transparent;
  transform: scale(1.15);
  box-shadow: 0 0 25px rgba(223, 166, 116, 0.6);
}

.local-video-card:hover .play-arrow::after {
  border-color: transparent transparent transparent var(--bg-color);
}

.video-card-info {
  padding: 1.5rem;
}

.vid-cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-purple);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  display: inline-block;
}

.video-card-info h5 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.video-card-info p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* CAROUSELS PANEL */
.carousel-showcase-container {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 3rem;
}

.carousel-decks-list h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.8rem;
}

.deck-selectors-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.deck-btn {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-glass);
  padding: 1.1rem;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
}

.deck-btn:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.15);
}

.deck-btn.active {
  background: rgba(223, 166, 116, 0.04);
  border-color: var(--accent-cyan);
}

.deck-icon {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.deck-icon::before {
  content: '';
  width: 16px;
  height: 12px;
  border: 2px solid var(--text-muted);
  border-radius: 2px;
  transition: border-color 0.3s;
}

.deck-btn.active .deck-icon::before {
  border-color: var(--accent-cyan);
}

.deck-info-text h5 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.deck-info-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.carousel-slider-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.carousel-viewport {
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 1 / 1;
  background: #080808;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.carousel-loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.05);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spinner-rotate 1s linear infinite;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 5;
}

@keyframes spinner-rotate {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.carousel-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(8, 8, 8, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-arrow:hover {
  background: var(--accent-cyan);
  color: var(--bg-color);
  border-color: transparent;
  scale: 1.08;
  box-shadow: 0 0 15px rgba(223, 166, 116, 0.4);
}

.carousel-arrow svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.carousel-arrow.prev {
  left: 15px;
}

.carousel-arrow.next {
  right: 15px;
}

.slide-indicator-label {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 10;
}

.slide-dots-container {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slide-dot:hover {
  background: rgba(255, 255, 255, 0.35);
}

.slide-dot.active {
  background: var(--accent-cyan);
  width: 22px;
  border-radius: 4px;
}

/* GRAPHICS & UI PANEL */
.graphics-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

.graphic-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s var(--ease-cinematic);
}

.graphic-card:hover {
  border-color: var(--border-glass-hover);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.graphic-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 100%;
  /* Square card ratio */
  background: #080808;
  overflow: hidden;
}

.graphic-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: transform 0.8s var(--ease-cinematic), opacity 0.5s ease;
}

.graphic-card:hover .graphic-img-wrap img {
  transform: scale(1.06);
  opacity: 1;
}

.graphic-info {
  padding: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.graph-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  display: inline-block;
}

.graphic-info h5 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

/* LIGHTBOX MODALS */
.video-lightbox,
.image-lightbox,
.carousel-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.video-lightbox.active,
.image-lightbox.active,
.carousel-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 4, 4, 0.9);
  backdrop-filter: blur(15px);
}

.lightbox-content {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  width: 90%;
  max-width: 900px;
  overflow: hidden;
  z-index: 2;
  transform: scale(0.9);
  transition: transform 0.4s var(--ease-cinematic);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.video-lightbox.active .lightbox-content,
.image-lightbox.active .lightbox-content,
.carousel-lightbox.active .lightbox-content {
  transform: scale(1);
}

.carousel-lightbox .lightbox-content {
  max-width: 1100px;
  width: 95%;
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10;
}

.lightbox-close:hover {
  background: var(--text-primary);
  color: var(--bg-color);
  border-color: transparent;
}

.lightbox-video-container {
  width: 100%;
  background: #000;
  aspect-ratio: 16 / 9;
}

.lightbox-video-container video {
  width: 100%;
  height: 100%;
  display: block;
}

.image-lightbox .lightbox-content {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  border: none;
  box-shadow: none;
}

.image-lightbox img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-info {
  width: 100%;
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.image-lightbox .lightbox-info {
  margin-top: 1.5rem;
  border-radius: 10px;
  border: 1px solid var(--border-glass);
  max-width: 100%;
}

.lightbox-info h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.lightbox-info span {
  font-size: 0.8rem;
  color: var(--accent-cyan);
  font-weight: 600;
  text-transform: uppercase;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 992px) {
  .youtube-showcase-grid {
    grid-template-columns: 1fr;
  }

  .carousel-showcase-container {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  .deck-selectors-group {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 1rem;
  }

  .deck-btn {
    width: 250px;
    flex-shrink: 0;
  }
}

@media (max-width: 768px) {

  .graphic-archive-section,
  .video-archive-section {
    padding: 6rem 0;
  }

  .vault-tab-btn {
    padding: 0.7rem 1.4rem;
    font-size: 0.75rem;
  }

  .local-videos-grid {
    grid-template-columns: 1fr;
  }
}

/* Video Card Previews & Play Overlay in Spinner */
.post-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.post-card:hover .post-media video {
  transform: scale(1.05);
}

.post-play-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(223, 166, 116, 0.85);
  /* brand accent */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  opacity: 0.8;
  transition: all 0.3s ease;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 3;
}

.post-play-indicator svg {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}

.post-card:hover .post-play-indicator {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--color-accent, #dfa674);
  box-shadow: 0 0 15px rgba(223, 166, 116, 0.4);
}

/* Spinner Navigation Controls */
.spinner-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 15, 15, 0.75);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-medium);
}

.spinner-nav-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  transition: transform var(--transition-medium);
}

.spinner-nav-btn:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(223, 166, 116, 0.4);
}

.spinner-nav-btn.prev-btn {
  left: 3rem;
}

.spinner-nav-btn.next-btn {
  right: 3rem;
}

.spinner-nav-btn.prev-btn:hover svg {
  transform: translateX(-2px);
}

.spinner-nav-btn.next-btn:hover svg {
  transform: translateX(2px);
}

/* Collapsible Full Archive Showcase styling */
.archive-toggle-container {
  display: flex;
  justify-content: center;
  margin-top: 3.5rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 5;
}

.archive-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(223, 166, 116, 0.05);
  border: 1px solid rgba(223, 166, 116, 0.25);
  color: var(--accent-cyan);
  padding: 0.9rem 2.2rem;
  font-family: 'Gotham Pro', 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-medium);
}

.archive-toggle-btn:hover {
  background: var(--accent-cyan);
  color: #000;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(223, 166, 116, 0.35);
}

.archive-toggle-btn .chevron-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  transition: transform var(--transition-medium);
}

.archive-toggle-btn.active .chevron-icon {
  transform: rotate(180deg);
}

.archive-expandable {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease;
  opacity: 0;
  width: 100%;
}

.archive-expandable.active {
  max-height: 20000px;
  opacity: 1;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.8rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-glass);
  margin-top: 1rem;
}

.archive-grid .post-card {
  height: 270px;
}

/* Responsive arrows */
@media (max-width: 768px) {
  .spinner-nav-btn {
    width: 38px;
    height: 38px;
  }

  .spinner-nav-btn.prev-btn {
    left: 0.5rem;
  }

  .spinner-nav-btn.next-btn {
    right: 0.5rem;
  }

  .archive-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }

  .archive-grid .post-card {
    height: 220px;
  }
}

/* --- DRAWER DYNAMIC KEY OBSERVATIONS & LIST STYLES --- */
.observations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (max-width: 576px) {
  .observations-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.observation-category {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all var(--transition-medium);
}

.observation-category:hover {
  border-color: rgba(223, 166, 116, 0.2);
  background: rgba(255, 255, 255, 0.025);
  transform: translateY(-2px);
}

.observation-cat-title {
  font-family: 'Gotham Pro', 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 1rem;
  letter-spacing: 0.08em;
}

.observation-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.observation-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.6rem;
}

.observation-list li::before {
  content: "•";
  color: var(--accent-cyan);
  position: absolute;
  left: 0;
  top: -0.05rem;
  font-size: 1.1rem;
}

.skills-tags span {
  background: rgba(223, 166, 116, 0.08) !important;
  color: var(--accent-cyan) !important;
  border: 1px solid rgba(223, 166, 116, 0.2) !important;
}

.process-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0;
}

.process-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
}

.process-list li::before {
  content: "→";
  color: var(--accent-cyan);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.1rem;
}

/* --- GRAPHICS CATEGORY FILTER & PDF OVERLAYS --- */
.category-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 3.5rem;
}

.cat-filter-btn {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 0.6rem 1.2rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  border-radius: 2rem;
  cursor: pointer;
  transition: all var(--transition-medium);
  text-transform: uppercase;
}

.cat-filter-btn:hover,
.cat-filter-btn.active {
  color: var(--text-primary);
  border-color: var(--accent-cyan);
  background: rgba(223, 166, 116, 0.03);
  box-shadow: 0 0 10px rgba(223, 166, 116, 0.15);
}

.gallery-3d-spinner {
  transition: transform 0.1s ease-out, opacity 0.3s ease, filter 0.3s ease;
}

.gallery-3d-spinner.fade-out {
  opacity: 0 !important;
  filter: blur(8px);
  pointer-events: none;
}

.pdf-media {
  position: relative;
}

.pdf-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pdf-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(223, 166, 116, 0.1);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: 0 0 15px rgba(223, 166, 116, 0.2);
}

.pdf-icon-wrap svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.pdf-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.post-card:hover .pdf-overlay {
  opacity: 1;
  background: rgba(10, 10, 10, 0.6);
}

/* Details Lightbox (for 3D Models and rich description products) */
.details-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.details-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.details-lightbox.active .details-lightbox-content {
  transform: scale(1);
}

.details-lightbox-content {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  width: 90%;
  max-width: 980px;
  max-height: 85vh;
  overflow-y: auto;
  z-index: 2;
  transform: scale(0.9);
  transition: transform 0.4s var(--ease-cinematic);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
  padding: 2.5rem;
}

.details-lightbox-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .details-lightbox-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .details-lightbox-content {
    padding: 1.5rem;
    max-height: 90vh;
  }
}

.details-lightbox-media {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.details-lightbox-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-height: 60vh;
}

.details-lightbox-info {
  color: var(--text-primary);
}

.details-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.details-lightbox-info h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
}

.details-section {
  margin-bottom: 1.25rem;
}

.details-section h5 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.details-section p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}

.details-section ul {
  padding-left: 1.25rem;
  margin-top: 0.4rem;
  margin-bottom: 0;
}

.details-section li {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.25rem;
  list-style-type: square;
}

.software-badge {
  display: inline-block;
  background: rgba(223, 166, 116, 0.08);
  border: 1px solid rgba(223, 166, 116, 0.2);
  color: var(--accent);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: var(--font-heading);
  font-weight: 500;
}

/* --- BEHANCE CTA SECTION --- */
.behance-cta-section {
  padding: 5rem 0;
  background: var(--bg-color);
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.behance-glass {
  background: linear-gradient(135deg, rgba(8, 8, 8, 0.8) 0%, rgba(20, 20, 20, 0.4) 100%);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 4rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.5s var(--ease-cinematic), box-shadow 0.5s var(--ease-cinematic);
}

.behance-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 100% 50%, rgba(0, 87, 255, 0.15) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.behance-glass:hover {
  border-color: rgba(0, 87, 255, 0.3);
  box-shadow: 0 40px 80px rgba(0, 87, 255, 0.1), 0 30px 60px rgba(0, 0, 0, 0.7);
}

.behance-content {
  position: relative;
  z-index: 2;
}

.behance-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 87, 255, 0.1);
  border: 1px solid rgba(0, 87, 255, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #0057ff;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.behance-icon {
  width: 16px;
  height: 16px;
}

.behance-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: #fff;
}

.behance-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.behance-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #0057ff !important;
  border: none !important;
  color: #fff !important;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: transform 0.3s var(--ease-cinematic), box-shadow 0.3s var(--ease-cinematic);
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 87, 255, 0.2);
}

.behance-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 87, 255, 0.4);
}

.behance-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease-cinematic);
}

.behance-btn:hover svg {
  transform: translateX(4px);
}

.behance-graphics {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: visible;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.collage-container {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--rx, 0) * 1deg)) rotateY(calc(var(--ry, 0) * 1deg));
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.collage-card {
  position: absolute;
  width: 170px;
  height: 225px;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-cinematic);
}

.collage-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.collage-card.card-1 {
  top: 5%;
  left: 5%;
  transform: translateZ(30px) rotate(-10deg);
  z-index: 2;
}

.collage-card.card-2 {
  top: 12%;
  left: 48%;
  transform: translateZ(90px) rotate(8deg);
  z-index: 4;
}

.collage-card.card-3 {
  top: 32%;
  left: 12%;
  transform: translateZ(10px) rotate(-4deg);
  z-index: 3;
}

.behance-glass:hover .collage-card.card-1 {
  transform: translateZ(60px) rotate(-14deg) translateY(-8px);
}

.behance-glass:hover .collage-card.card-2 {
  transform: translateZ(120px) rotate(12deg) translateY(-12px) translateX(6px);
}

.behance-glass:hover .collage-card.card-3 {
  transform: translateZ(30px) rotate(-2deg) translateY(8px);
}

.behance-orb-1 {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 87, 255, 0.25) 0%, transparent 70%);
  filter: blur(40px);
}

.behance-orb-2 {
  position: absolute;
  bottom: -20%;
  right: 10%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 166, 116, 0.1) 0%, transparent 70%);
  filter: blur(40px);
}

@media (max-width: 992px) {
  .behance-glass {
    grid-template-columns: 1fr;
    padding: 3rem;
    margin: 0 1.5rem;
  }

  .behance-graphics {
    display: none;
  }
}

/* --- CINEMATIC SPOTLIGHT SYSTEM --- */
.spotlight-container {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
}

/* Fixed Projector Source at Top-Left */
.spotlight-projector {
  position: fixed;
  top: 30px;
  left: 30px;
  width: 38px;
  height: 38px;
  z-index: 9999;
  pointer-events: none;
  transform-origin: center center;
  will-change: transform;
}

.projector-body {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #181818 0%, #0a0a0a 100%);
  border: 1.5px solid #2d2d2d;
  border-radius: 8px;
  position: relative;
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.6),
    inset 0 1px 2px rgba(255, 255, 255, 0.05);
}

.projector-lens {
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 16px;
  background: var(--accent-orange);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 12px var(--accent-orange);
}

.projector-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 6px;
  background: radial-gradient(circle, rgba(223, 166, 116, 0.25) 0%, transparent 80%);
}

/* Volumetric Light Beam SVG */
.spotlight-beam-svg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: screen;
}

#beam-polygon {
  filter: blur(12px);
  animation: beam-flicker-anim 4s infinite alternate;
}

@keyframes beam-flicker-anim {
  0% {
    opacity: 0.85;
  }

  50% {
    opacity: 1.0;
  }

  100% {
    opacity: 0.90;
  }
}

/* Target Lens Ring (Moves over cursor/targets) */
.spotlight-target-lens {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  left: 0;
  top: 0;
  width: 80px;
  height: 80px;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lens-ring {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1.5px solid rgba(223, 166, 116, 0.4);
  background: rgba(10, 10, 10, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  position: relative;
  pointer-events: auto;
  cursor: pointer;
  box-shadow:
    0 0 15px rgba(223, 166, 116, 0.1),
    inset 0 0 8px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.lens-ring:hover {
  border-color: var(--accent-cyan);
  background: rgba(10, 10, 10, 0.5);
  box-shadow:
    0 0 20px rgba(0, 242, 254, 0.2),
    inset 0 0 10px rgba(0, 0, 0, 0.9);
}

.lens-progress-svg {
  position: absolute;
  top: -3px;
  left: -3px;
  width: 53px;
  height: 53px;
  transform: rotate(-90deg);
  pointer-events: none;
}

.lens-progress-circle {
  fill: none;
  stroke: var(--accent-orange);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 100.5;
  stroke-dashoffset: 100.5;
  transition: stroke-dashoffset 0.1s linear;
  filter: drop-shadow(0 0 3px var(--accent-orange));
}

.lens-center-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulse-dot 1.5s infinite ease-in-out;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.8);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }

  100% {
    transform: scale(0.8);
    opacity: 0.6;
  }
}

.lens-status {
  position: absolute;
  bottom: -20px;
  font-family: var(--font-heading);
  font-size: 0.55rem;
  color: var(--accent-cyan);
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
  pointer-events: none;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Hologram Positioned relative to Spotlight Target Lens */
#spotlight-hologram {
  position: absolute;
  bottom: 65px;
  left: 50%;
  transform: translate3d(-50%, 15px, 0) scale(0.85);
  transform-origin: bottom center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.spotlight-target-lens.holo-active #spotlight-hologram {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(-50%, 0, 0) scale(1);
}

.hologram-screen {
  width: 240px;
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(223, 166, 116, 0.3);
  border-radius: 12px;
  padding: 0.9rem;
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.8),
    0 0 25px rgba(223, 166, 116, 0.15),
    inset 0 0 15px rgba(223, 166, 116, 0.05);
  overflow: hidden;
  position: relative;
}

.hologram-screen::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.3) 50%);
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 5;
  opacity: 0.4;
}

.hologram-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(223, 166, 116, 0.15);
  padding-bottom: 0.4rem;
  margin-bottom: 0.6rem;
}

.hologram-title {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
}

.hologram-rec-status {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--accent-orange);
  animation: rec-blink-glow 1s infinite alternate;
}

@keyframes rec-blink-glow {
  0% {
    opacity: 0.4;
  }

  100% {
    opacity: 1;
  }
}

.hologram-stats {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  margin-bottom: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.stat-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  padding: 0.1rem 0;
}

.stat-row span:last-child {
  color: var(--text-primary);
  font-weight: 600;
}

.hologram-nav {
  margin-bottom: 0.6rem;
}

.nav-title {
  font-family: var(--font-heading);
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}

.nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
}

.holo-nav-link {
  display: flex;
  align-items: center;
  padding: 0.35rem 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.2s ease;
}

.holo-nav-link span {
  color: var(--accent-orange);
  margin-right: 0.25rem;
  opacity: 0.7;
}

.holo-nav-link:hover {
  background: rgba(223, 166, 116, 0.1);
  border-color: rgba(223, 166, 116, 0.3);
  color: var(--accent-cyan);
  transform: translateX(2px);
}

.hologram-actions {
  display: flex;
  gap: 0.4rem;
  border-top: 1px solid rgba(223, 166, 116, 0.1);
  padding-top: 0.6rem;
}

.holo-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.4rem;
  background: rgba(223, 166, 116, 0.08);
  border: 1px solid rgba(223, 166, 116, 0.2);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.holo-action-btn:hover {
  background: var(--accent-cyan);
  color: #000;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(223, 166, 116, 0.3);
}

.holo-action-btn#holo-btn-patrol.active {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #000;
}

.holo-action-btn#holo-btn-patrol .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff3b30;
  display: inline-block;
  margin-right: 2px;
}

.holo-action-btn#holo-btn-patrol.active .dot {
  background: #34c759;
  box-shadow: 0 0 4px #34c759;
}

.hologram-footer {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.45rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Spotlight Dark Veil Screen Overlay */
.spotlight-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9997;
  background: radial-gradient(circle 125px at var(--spot-x, 50%) var(--spot-y, 50%), transparent 85px, rgba(5, 5, 5, 0.2) 125px);
  will-change: background;
}

/* Spotlight Brightness/Color Highlight Glow Overlay */
.spotlight-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9996;
  background: radial-gradient(circle 160px at var(--spot-x, 50%) var(--spot-y, 50%), rgba(223, 166, 116, 0.12) 0%, transparent 100%);
  will-change: background;
}

/* Shutter camera flash overlay */
.camera-shutter-flash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 100000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease-smooth);
}

.camera-shutter-flash.flash-active {
  opacity: 1;
  transition: none;
}

/* Particle trail */
.cine-bot-particle {
  position: fixed;
  pointer-events: none;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent-orange);
  z-index: 9998;
  filter: blur(1px);
  will-change: transform, opacity;
  box-shadow: 0 0 6px var(--accent-orange);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .spotlight-projector {
    top: 20px;
    left: 20px;
    width: 30px;
    height: 30px;
  }

  .projector-lens {
    height: 12px;
    width: 5px;
    right: -3px;
  }

  .lens-ring {
    width: 42px;
    height: 42px;
  }

  .lens-progress-svg {
    top: -2.5px;
    left: -2.5px;
    width: 47px;
    height: 47px;
  }

  .lens-progress-circle {
    stroke-dasharray: 88;
    stroke-dashoffset: 88;
  }

  .hologram-screen {
    width: 220px;
    padding: 0.75rem;
  }

  .nav-links {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .spotlight-screen {
    background: radial-gradient(circle 95px at var(--spot-x, 50%) var(--spot-y, 50%), transparent 65px, rgba(5, 5, 5, 0.15) 95px);
  }

  .spotlight-glow {
    background: radial-gradient(circle 120px at var(--spot-x, 50%) var(--spot-y, 50%), rgba(223, 166, 116, 0.1) 0%, transparent 100%);
  }
}

/* --- PREMIUM PROFESSIONAL FOOTER SYSTEM --- */
.main-footer {
  margin-top: 6rem;
  border-top: 1px solid var(--border-glass);
  padding: 5rem 2rem 3rem 2rem;
  position: relative;
  z-index: 5;
  background: radial-gradient(circle at bottom center, rgba(223, 166, 116, 0.02) 0%, transparent 70%);
}

.main-footer .footer-grid {
  max-width: 1200px;
  margin: 0 auto 4rem auto;
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1.2fr 1fr;
  gap: 3rem;
}

.footer-brand-col .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.footer-brand-col .logo-symbol {
  font-family: var(--font-heading);
  font-weight: 800;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--accent-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.35);
}

.footer-brand-col .logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 3px;
  color: var(--text-primary);
}

.footer-tagline {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1.8rem;
  max-width: 320px;
}

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(48, 209, 88, 0.06);
  border: 1px solid rgba(48, 209, 88, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #30d158;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 8px #30d158;
}

.footer-grid h4 {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1.8rem;
}

.footer-links-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--accent-cyan);
}

.footer-contact-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

.footer-email-link {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-email-link:hover {
  color: var(--text-primary);
  transform: translateX(4px);
}

.footer-phone {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-social-grid {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.social-icon-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.social-icon-link:hover {
  color: var(--accent-cyan);
  transform: translateX(4px);
}

.footer-bottom-row {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-glass);
  padding-top: 2rem;
}

.footer-tech-stack {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.footer-tech-stack .sep {
  color: var(--border-glass-hover);
}

.back-to-top-btn {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.back-to-top-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
  background: rgba(0, 242, 254, 0.05);
}

/* --- ASPECT RATIO OVERLAY BORDER RECTIFICATION --- */
.camera-monitor {
  background-color: #000 !important;
  position: relative;
  overflow: hidden;
}

.letterbox-bar {
  background-color: #000 !important;
  z-index: 2;
  box-sizing: border-box;
  border: none !important;
}

.bar-top {
  top: -1px !important;
  left: -1px !important;
  width: calc(100% + 2px) !important;
  border: none !important;
}

.bar-bottom {
  bottom: -1px !important;
  left: -1px !important;
  width: calc(100% + 2px) !important;
  border: none !important;
}

.bar-left {
  top: -1px !important;
  left: -1px !important;
  height: calc(100% + 2px) !important;
  border: none !important;
}

.bar-right {
  top: -1px !important;
  right: -1px !important;
  height: calc(100% + 2px) !important;
  border: none !important;
}

/* --- PLAYGROUND: APERTURE LENS SCRUBBER UPGRADES --- */
.motion-viewer {
  position: relative;
  width: 90px !important;
  height: 90px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  border: 2px solid rgba(255, 255, 255, 0.15) !important;
  background-color: #020203 !important;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.15), inset 0 0 10px rgba(0, 0, 0, 0.8) !important;
}

.aperture-bg-scene {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/images/project-cinema.png');
  background-size: cover;
  background-position: center;
  opacity: 0.65;
  transition: filter 0.15s ease-out, opacity 0.15s ease-out;
  z-index: 0;
}

.motion-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Adjustments to match exact media layouts */
@media (max-width: 992px) {
  .main-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 576px) {
  .main-footer {
    padding: 4rem 1.5rem 2.5rem 1.5rem;
  }

  .main-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-bottom-row {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
  }

  .footer-tech-stack {
    justify-content: center;
  }
}

/* ==========================================================================
   MOBILE INTERACTION & LAYOUT RESPONSIVENESS OVERRIDES
   ========================================================================== */

/* Hidden by default on desktop */
.mobile-nav-toggle {
  display: none;
}

@media (max-width: 991px) {

  /* Dynamic layout adjustments */
  .header {
    width: 94% !important;
    top: 0.75rem !important;
    border-radius: 1rem !important;
    border: 1px solid var(--border-glass);
  }

  /* Force active glass filter immediately on mobile so logo/menu are highly visible */
  .header .glass-filter,
  .header .glass-overlay,
  .header .glass-specular {
    opacity: 0.95 !important;
  }

  .header-container {
    padding: 0.6rem 1.5rem !important;
  }

  .logo-img {
    height: 52px !important;
    /* Scale logo on mobile to leave space */
  }

  /* Hamburger Icon */
  .mobile-nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 105;
  }

  .mobile-nav-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 1px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  }

  /* Animate to close 'X' */
  .mobile-nav-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .mobile-nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Overlay Navigation Menu */
  .nav {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 8, 8, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 99;
    gap: 1.2rem;
    padding: 2rem;
    margin: 0;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav.active {
    right: 0;
  }

  .nav-link {
    display: block !important;
    width: 78% !important;
    max-width: 290px !important;
    text-align: center !important;
    font-size: 1.05rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.2em !important;
    padding: 0.9rem 1.6rem !important;
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 50px !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important;
    position: relative;
  }

  .nav-link:hover, .nav-link:active {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--accent-cyan) !important;
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.15) !important;
    transform: scale(1.03) !important;
  }

  .nav-link::after {
    display: none !important;
  }

  /* Expand header when menu is open on mobile to break out of containing transform context */
  .header.menu-active {
    width: 100% !important;
    height: 100vh !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    border-radius: 0 !important;
    background: rgba(8, 8, 8, 0.98) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    border: none !important;
    z-index: 9999 !important;
  }
  
  .header.menu-active .header-container {
    height: auto !important;
    align-items: center !important;
    padding-top: 1.5rem !important;
  }
  
  .header.menu-active .nav {
    right: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Mobile Horizontal Scroll for Case Studies */
  .exhibition-corridor {
    height: auto !important;
    margin-top: 1.5rem !important;
    padding-bottom: 0.5rem !important;
    overflow: visible !important;
  }

  .corridor-viewport {
    position: relative !important;
    height: auto !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 1.25rem !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 1rem 1.5rem 2.5rem 1.5rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .corridor-viewport::-webkit-scrollbar {
    display: none !important;
  }

  .gallery-wall {
    display: flex !important;
    flex-direction: row !important;
    gap: 1.25rem !important;
    width: auto !important;
    height: auto !important;
    transform: none !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
  }

  .project-card {
    width: 290px !important;
    max-width: 82vw !important;
    flex-shrink: 0 !important;
    scroll-snap-align: center !important;
    margin-bottom: 0 !important;
    background: rgba(14, 14, 18, 0.8) !important;
    padding: 1.25rem !important;
    border-radius: 16px !important;
    border: 1px solid var(--border-glass) !important;
  }

  .see-more-works-wrap {
    display: none !important;
  }

  /* Hide decorative side indicators on mobile to prevent overlapping main titles */
  .hero-bottom-info,
  .hero-scroll-explore {
    display: none !important;
  }
}

/* Disable SVG filter completely on mobile to prevent rendering lags & bugs */
.header .glass-filter {
  filter: none !important;
}

/* Prevent overlapping text in spinner / archive grids */
.post-info {
  padding: 0.8rem 1rem !important;
  /* Reduce padding so it doesn't take too much vertical height */
}

.post-info h4 {
  font-size: 0.85rem !important;
  line-height: 1.25 !important;
  margin-top: 0.25rem !important;
}

.post-info span {
  font-size: 0.62rem !important;
}

/* Make archive grid cards taller on mobile so the media does not squash */
.archive-grid .post-card {
  height: 275px !important;
}
}

@media (max-width: 576px) {

  /* Prevent overly squashed headings */
  h1,
  h2,
  h3,
  .section-title {
    line-height: 1.35 !important;
    letter-spacing: 0.02em !important;
  }

  p,
  .section-desc,
  .project-card-inner p {
    line-height: 1.65 !important;
    font-size: 0.95rem !important;
  }

  /* 3D Spinner specific sizing tweaks */
  .gallery-3d-spinner .post-card {
    height: 100% !important;
  }

  .post-media video {
    object-fit: cover !important;
  }
}

/* ==========================================================================
   CINEMATIC THEATER MODAL (BRAND INTRO REEL)
   ========================================================================== */
.theater-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}

.theater-modal.active {
  opacity: 1;
  pointer-events: auto;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.theater-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(10, 10, 10, 0.8) 0%, rgba(3, 3, 3, 0.98) 100%);
  z-index: 1;
}

.theater-container {
  position: relative;
  width: 90%;
  max-width: 1000px;
  z-index: 2;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.theater-modal.active .theater-container {
  transform: scale(1) translateY(0);
}

.theater-close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
  line-height: 1;
}

.theater-close-btn:hover {
  color: #fff;
  transform: rotate(90deg);
}

/* Ambient backlight glow (projector glow) */
.theater-glow-bg {
  position: absolute;
  top: 5%;
  left: 5%;
  width: 90%;
  height: 90%;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
  filter: blur(60px);
  opacity: 0;
  transition: opacity 1s ease, transform 1s ease;
  z-index: -1;
  pointer-events: none;
}

.theater-modal.active .theater-glow-bg {
  opacity: 1;
  animation: ambientBreathe 6s ease-in-out infinite alternate;
}

@keyframes ambientBreathe {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 0.9; }
}

.theater-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9; /* Standard widescreen aspect ratio */
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.theater-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Prevent cropping from any side */
}

/* Custom minimal control bar */
.theater-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 3;
}

.theater-video-wrapper:hover .theater-controls {
  opacity: 1;
  transform: translateY(0);
}

.control-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.control-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.control-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.progress-bar-container {
  flex-grow: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  transition: height 0.2s ease;
}

.progress-bar-container:hover {
  height: 6px;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent, #00D2FF);
  border-radius: 2px;
  position: relative;
}

.theater-caption {
  margin-top: 1.5rem;
  text-align: center;
  color: #fff;
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.theater-caption h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.theater-caption p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .theater-video-wrapper {
    aspect-ratio: 16/9; /* Standard widescreen on mobile devices to prevent excessive letterboxing */
  }
  .theater-controls {
    opacity: 1;
    transform: translateY(0);
    padding: 1rem;
  }
}