/* ==========================================================================
   IMPACT BBDO (GSK CLONE) - CORE DESIGN SYSTEM & PRELOADER STYLES
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN SYSTEM VARIABLES & TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Brand Color Palette */
  --color-red: #cf2e2e;
  --color-red-rgb: 207, 46, 46;
  --color-black: #0f0f0e;
  --color-black-rgb: 15, 15, 14;
  --color-white: #fafafa;
  --color-white-rgb: 250, 250, 250;
  --color-gray-dark: #222221;
  --color-gray-light: #e5e5e5;

  /* Typography Design Tokens */
  --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Spacing Tokens */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  --spacing-xxl: 8rem;

  /* Transition Durations & Easings */
  --transition-fast: 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-medium: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  --transition-slow: 0.8s cubic-bezier(0.85, 0, 0.15, 1);
  --transition-preloader: 1.2s cubic-bezier(0.86, 0, 0.07, 1);
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESET & FOUNDATIONS
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-primary);
  font-size: 16px;
  background-color: var(--color-black);
  color: var(--color-white);
  scroll-behavior: auto; /* Prevent conflicts with Lenis smooth scroll */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--color-black);
  min-height: 100vh;
}

#app-shell {
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

/* Premium Scrollbars */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-black);
}
::-webkit-scrollbar-thumb {
  background: var(--color-red);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ff2b2b;
}

/* --------------------------------------------------------------------------
   3. ULTRA-PREMIUM "GSK" PRELOADER STYLE (INHERITED FROM IMPACT BBDO)
   -------------------------------------------------------------------------- */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(15, 15, 14, 0.8);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: transform var(--transition-preloader), opacity var(--transition-preloader);
}

/* Subtle background vignette for preloader */
.preloader::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
  pointer-events: none;
  z-index: 1;
}

.preloader-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* Custom dynamic GSK logo styling in pure BBDO-style */
.preloader-logo-bbdo {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: clamp(5rem, 20vw, 15rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.06em; /* Tight, overlapping style */
  line-height: 0.8;
  user-select: none;
  position: relative;
  perspective: 1000px;
}

.letter-gsk {
  display: inline-block;
  opacity: 0;
  transform: rotateY(-90deg) translateZ(100px) scale(0.8);
  filter: blur(8px);
  animation: letter-reveal 1.1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

/* Stagger animations for G-S-K */
.letter-gsk:nth-child(1) {
  animation-delay: 0.1s;
  z-index: 3;
}
.letter-gsk:nth-child(2) {
  animation-delay: 0.25s;
  z-index: 2;
  margin-left: -0.05em; /* Tight overlap */
}
.letter-gsk:nth-child(3) {
  animation-delay: 0.4s;
  z-index: 1;
  margin-left: -0.05em; /* Tight overlap */
}

/* Red letter colors (G-S in GSK, B-B equivalent in BBDO) */
.letter-gsk.red {
  color: var(--color-red);
  text-shadow: 0 0 40px rgba(207, 46, 46, 0.5), 0 0 80px rgba(207, 46, 46, 0.2);
}

/* Bright charcoal silver grey letter color (K in GSK, D-O equivalent) */
.letter-gsk.grey {
  color: #b8b8b8;
  text-shadow: 0 0 40px rgba(250, 250, 250, 0.35), 0 0 80px rgba(250, 250, 250, 0.15);
}

/* Tracing subtext indicator */
.preloader-subtext {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.6em;
  color: rgba(250, 250, 250, 0.35);
  font-weight: 300;
  opacity: 0;
  transform: translateY(15px);
  animation: fade-up-text 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

/* Bottom progress indicator line */
.preloader-bar-container {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background-color: rgba(250, 250, 250, 0.1);
  border-radius: 2px;
  overflow: hidden;
  z-index: 2;
}

.preloader-bar {
  width: 0%;
  height: 100%;
  background-color: var(--color-red);
  box-shadow: 0 0 10px rgba(207, 46, 46, 0.8);
  animation: loading-progress 2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

/* --------------------------------------------------------------------------
   4. ANIMATIONS & KEYFRAMES
   -------------------------------------------------------------------------- */
@keyframes letter-reveal {
  0% {
    opacity: 0;
    transform: rotateY(-90deg) translateZ(100px) scale(0.8);
    filter: blur(8px);
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
    transform: rotateY(0deg) translateZ(0) scale(1);
    filter: blur(0);
  }
}

@keyframes fade-up-text {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loading-progress {
  0% {
    width: 0%;
  }
  30% {
    width: 35%;
  }
  60% {
    width: 70%;
  }
  85% {
    width: 88%;
  }
  100% {
    width: 100%;
  }
}

/* Exit transition classes applied by JavaScript */
.preloader.fade-out {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

/* ==========================================================================
   5. HEADER nav STYLING
   ========================================================================== */
#masthead {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999999;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.5rem, 6vw, 4rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none; /* Let clicks pass through except on active interactive buttons */
}

#masthead * {
  pointer-events: auto; /* Re-enable pointer events for active nav links and logo */
}

.logo-container {
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.logo-container:hover {
  opacity: 0.8;
}

.logo-text-duo {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  text-transform: uppercase;
  user-select: none;
}

.logo-light {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-white);
  line-height: 1;
}

.logo-bold-bbdo {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  font-weight: 900;
  letter-spacing: -0.07em; /* Overlapping SK typography style */
  color: var(--color-white);
  line-height: 1;
  display: inline-block;
}

button.menu-icon-container {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  transition: transform var(--transition-fast);
}

button.menu-icon-container:hover {
  transform: scale(1.08);
}

button.menu-icon-container:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 4px;
}

/* --------------------------------------------------------------------------
   6. FULLSCREEN NAVIGATION DRAWER OVERLAY
   -------------------------------------------------------------------------- */
.menu-container {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(15, 15, 14, 0.85); /* Deep charcoal overlay with high transparency */
  -webkit-backdrop-filter: blur(40px); /* Premium glassmorphism blur */
  backdrop-filter: blur(40px);
  z-index: 10000000;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.5rem, 6vw, 4rem);
  transform: translateX(100%);
  transition: transform var(--transition-medium);
  overflow-y: auto;
}

.menu-container.open {
  transform: translateX(0);
}

.menu-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(2rem, 8vw, 4rem);
}

button.menu-close-icon {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  transition: transform var(--transition-fast);
}

button.menu-close-icon:hover {
  transform: scale(1.08) rotate(90deg);
}

button.menu-close-icon:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 4px;
}

.nav-info-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--spacing-xl);
  flex-grow: 1;
  align-items: center;
}

.nav-container {
  display: flex;
  flex-direction: column;
}

.main_menu {
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.menu-item {
  position: relative;
  width: fit-content;
}

.menu-item a {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-white);
  letter-spacing: 0.02em;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
  line-height: 1.1;
  display: block;
}

/* Elegant line sliding under links */
.menu-item a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2.5px;
  background-color: var(--color-red);
  transition: width var(--transition-fast);
}

.menu-item a:hover {
  color: var(--color-red);
  padding-left: 10px;
}

.menu-item a:hover::after {
  width: 100%;
}

.menu-item.active a {
  color: var(--color-red);
}
.menu-item.active a::after {
  width: 100%;
}

/* Right-side Contact/Location info block */
.info-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  border-left: 1px solid rgba(250, 250, 250, 0.1);
  padding-left: var(--spacing-xl);
}

.address-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-weight: 300;
  color: rgba(250, 250, 250, 0.6);
  line-height: 1.6;
}

.address-heading {
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.tel-link {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
  margin-top: 0.5rem;
  display: inline-block;
}

.tel-link:hover {
  color: var(--color-red);
}

.social-media-container {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-sm);
}

.social-link {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(250, 250, 250, 0.4);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.social-link:hover {
  color: var(--color-red);
}

/* --------------------------------------------------------------------------
   7. HERO PAGE SECTION & SVG MASK LAYOUT
   -------------------------------------------------------------------------- */
.video-banner-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: var(--color-black);
}

.video-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.video-banner {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  display: block;
}

/* SVG Mask Overlays */
.masks-svgs-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.mask-svg,
.mask-svg-mobile {
  width: 100%;
  height: 100%;
  object-fit: fill; /* Allows the SVG to stretch precisely to the viewport edges without any cropping */
}

.mask-svg {
  display: block;
}

.mask-svg-mobile {
  display: none;
}

.mask-overlay {
  transition: fill var(--transition-medium);
}

/* Entrance animation for the SVG mask letters "ART" */
@keyframes mask-text-reveal {
  0% {
    transform: translate3d(0, 80px, 0);
    opacity: 0;
  }
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

#mask text,
#mask-mobile text {
  transform-origin: center;
}

/* Premium character-by-character entrance animations with motion blur for "A R T" */
.mask-letter {
  transform-origin: center;
  opacity: 1; /* Progressive enhancement: visible by default so no blank mask if JS fails */
  will-change: transform, opacity;
}

.preloader-complete .letter-a {
  animation: mask-letter-a 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.preloader-complete .letter-r {
  animation: mask-letter-r 2.0s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.preloader-complete .letter-t {
  animation: mask-letter-t 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

@keyframes mask-letter-a {
  0% {
    transform: translate(-350px, 0);
    opacity: 0;
  }
  30% {
    opacity: 0.3;
  }
  100% {
    transform: translate(0, 0);
    opacity: 1;
  }
}

@keyframes mask-letter-r {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes mask-letter-t {
  0% {
    transform: translate(350px, 0);
    opacity: 0;
  }
  30% {
    opacity: 0.3;
  }
  100% {
    transform: translate(0, 0);
    opacity: 1;
  }
}

/* Corner Text Elements ("CREATE" and "DIFFERENT") with entrance reveal animations */
@keyframes hero-corner-reveal-left {
  0% {
    opacity: 0;
    transform: translate3d(-40px, 0, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes hero-corner-reveal-right {
  0% {
    opacity: 0;
    transform: translate3d(40px, 0, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.bottom-left-text,
.bottom-right-text {
  font-size: clamp(1rem, 3.5vw, 4rem); /* Proportional 24px smaller than original (40px->16px, 88px->64px) */
  font-weight: 300; /* Thinner elegant typography */
  color: var(--color-white);
  position: absolute;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.02em; /* Slightly adjusted tracking for thinner weights */
  user-select: none;
  line-height: 1;
}

.bottom-left-text {
  bottom: clamp(1.5rem, 5vw, 3rem);
  left: clamp(1.5rem, 5vw, 3rem);
  opacity: 1; /* Progressive enhancement: visible by default so no blank state if JS fails */
}

.bottom-right-text {
  bottom: clamp(1.5rem, 5vw, 3rem);
  right: clamp(1.5rem, 5vw, 3rem);
  opacity: 1; /* Progressive enhancement: visible by default so no blank state if JS fails */
}

.preloader-complete .bottom-left-text {
  animation: hero-corner-reveal-left 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.preloader-complete .bottom-right-text {
  animation: hero-corner-reveal-right 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

/* --------------------------------------------------------------------------
   8. SPA ROUTER LAYOUTS & TRANSITIONS
   -------------------------------------------------------------------------- */
.sub-page-section {
  display: none;
  width: 100%;
  min-height: 100vh;
  background-color: var(--color-black);
  padding: 8rem 4% 4rem 4%;
}

.sub-page-section.active-section {
  display: flex;
  justify-content: center;
  align-items: center;
}

.section-content {
  max-width: var(--wp-style-global--content-size);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.section-content h2 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-white);
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-sm);
}

.section-content p {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 300;
  color: rgba(250, 250, 250, 0.6);
  line-height: 1.7;
}

/* SPA Screen-Wipe Transition Screen */
.transition-wipe {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--color-red);
  z-index: 99999999;
  transform: translateX(-100%);
  transition: transform var(--transition-medium);
  pointer-events: none;
}

.transition-wipe.animating {
  transform: translateX(0);
}

.transition-wipe.slide-out {
  transform: translateX(100%);
}

/* Responsive Grid Adaptation for Mobile Viewports */
@media screen and (max-width: 900px) {
  .nav-info-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    align-items: start;
    justify-content: center;
    margin-top: var(--spacing-sm);
  }
  
  .info-container {
    border-left: none;
    border-top: 1px solid rgba(250, 250, 250, 0.1);
    padding-left: 0;
    padding-top: var(--spacing-lg);
  }
}

@media screen and (max-width: 768px) {
  /* Switch to mobile SVG mask layout */
  .mask-svg {
    display: none;
  }
  .mask-svg-mobile {
    display: block;
  }
  
  /* Force exact 100% dynamic viewport height on mobile for perfect fullscreen presentation */
  .video-banner-section,
  .video-wrapper,
  .video-banner {
    height: 100vh !important;
    height: 100dvh !important;
  }

  /* Center the masks-svgs-container so ART is in the middle of the viewport */
  .masks-svgs-container {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Position bottom corner texts (CREATE and DIFFERENT) at screen edges with thin weight on mobile */
  .bottom-left-text,
  .bottom-right-text {
    font-size: clamp(1.2rem, 5vw, 1.8rem) !important;
    font-weight: 300 !important; /* Thinner elegant typography */
    letter-spacing: 0.05em !important;
    bottom: clamp(1.5rem, 6vw, 3rem) !important;
  }
  
  .bottom-left-text {
    left: clamp(1.5rem, 6vw, 3rem) !important;
    transform: none !important;
  }
  .bottom-right-text {
    right: clamp(1.5rem, 6vw, 3rem) !important;
    transform: none !important;
  }

  .preloader-complete .bottom-left-text {
    animation: hero-corner-reveal-left 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards !important;
  }
  .preloader-complete .bottom-right-text {
    animation: hero-corner-reveal-right 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards !important;
  }
}

/* ==========================================================================
   9. HOME PAGE CONTAINER & SUB-SECTIONS (STAGE 4: WE ARE GOKUL SK & MODAL)
   ========================================================================== */
.home-page-container {
  display: none;
  width: 100%;
  background-color: var(--color-black);
}

.home-page-container.active-section {
  display: block;
}

/* We Are Section Fold */
.we-are-section {
  background-color: var(--color-red);
  padding: clamp(3rem, 5vw, 6rem) clamp(1.5rem, 4vw, 5rem);
  color: var(--color-white);
  overflow: hidden;
  position: relative;
  z-index: 10;
}

/* Two-column container */
.we-are-container {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: flex-start;
  transform: translate3d(100%, 0, 0);
  will-change: transform;
}

@media (min-width: 1024px) {
  .we-are-container {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(2rem, 4vw, 5rem);
  }
}

/* Left block — constrained so right has room */
.we-are-left {
  width: 100%;
}

@media (min-width: 1024px) {
  .we-are-left {
    flex: 0 0 55%;
    max-width: 55%;
  }
}

/* ---- Editorial Title — Smaller for balanced two-col layout ---- */
.we-are-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  line-height: 0.92;
  user-select: none;
  font-size: clamp(48px, 6.5vw, 96px);
  margin: 0;
}

/* Each row */
.title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2em;
  line-height: 1;
  padding: 0.12em 0;
}

/* Individual word spans */
.title-word {
  display: inline-block;
  line-height: 0.92;
}

/* Outline variant for last row */
.title-word--outline {
  -webkit-text-stroke: 2px var(--color-white);
  color: transparent;
}

@media (min-width: 768px) {
  .title-word--outline {
    -webkit-text-stroke: 3px var(--color-white);
  }
}

/* Wrapper to stack label above pill */
.pill-label-wrapper {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.06em;
  vertical-align: middle;
}

/* Label text sitting above the pill */
.pill-above-label {
  font-size: 0.16em;
  font-weight: 500;
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.04em;
  text-transform: none;
  line-height: 1;
  padding-left: 0.4em;
  white-space: nowrap;
}

/* ---- Looping Video Badges ---- */
.video-badge-pill {
  display: inline-flex;
  align-items: center;
  position: relative;
  height: 0.72em;
  width: 1.55em;
  border-radius: 9999px;
  overflow: hidden;
  background-color: rgba(0,0,0,0.55);
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.2);
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.25s cubic-bezier(0.4,0,0.2,1),
              border-color 0.25s ease;
  vertical-align: middle;
  flex-shrink: 0;
}

.video-badge-pill:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  border-color: rgba(255,255,255,0.55);
}

.video-badge-pill::after {
  content: '▶';
  position: absolute;
  top: 50%;
  right: 0.45em;
  transform: translateY(-50%);
  font-size: 0.12em;
  color: white;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 3;
}

.video-badge-pill:hover::after {
  opacity: 1;
}

.video-badge-pill video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

/* Wide badge variant */
.video-badge-pill.wide {
  width: 2.6em;
  padding-left: 0.35em;
  padding-right: 0.35em;
  justify-content: flex-start;
}

.video-badge-pill.wide.mi-badge {
  width: 2.1em;
}

/* Gradient overlay for text readability on wide pills */
.video-badge-pill.wide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.2) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Badge overlay text */
.badge-text {
  font-size: 0.145em;
  font-weight: 800;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: left;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.9);
}

.badge-text-sub {
  font-size: 0.65em;
  font-weight: 500;
  opacity: 0.8;
  letter-spacing: 0.08em;
}

.badge-text-main {
  font-size: 1.1em;
  font-weight: 900;
  letter-spacing: 0.02em;
}

/* ---- Divider line ---- */
.we-are-inline-footer {
  margin-top: clamp(2rem, 4vw, 4rem);
}

.we-are-divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.25);
  margin-bottom: clamp(1.5rem, 3vw, 3rem);
}

/* Inline row: description left, button right */
.we-are-inline-row {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .we-are-inline-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3rem;
  }
}

.we-are-description {
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  font-size: clamp(15px, 1.6vw, 22px);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255,255,255,0.85);
  max-width: 520px;
}

.we-are-description p {
  margin: 0;
  padding-bottom: clamp(0.5rem, 1vw, 0.75rem);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.we-are-description p:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Right-side column — bigger, more presence */
.we-are-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  gap: clamp(1.5rem, 2.5vw, 2.5rem);
}

@media (min-width: 1024px) {
  .we-are-right {
    flex: 1 1 auto;
    min-width: 360px;
    padding-left: clamp(2rem, 3vw, 4rem);
    padding-top: 0.5rem;
    border-left: 1px solid rgba(255,255,255,0.2);
  }
}

.we-are-right .button-container {
  width: 100%;
}

@media (min-width: 768px) {
  .we-are-right .button-container {
    width: auto;
  }
}

.btn-we-are-contact {
  display: inline-block;
  width: fit-content;
  border: 2px solid var(--color-white);
  color: var(--color-white);
  background: transparent;
  padding: clamp(14px, 1.3vw, 20px) clamp(28px, 3vw, 48px);
  border-radius: 9999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  font-size: clamp(13px, 1.1vw, 18px);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease,
              box-shadow 0.25s ease;
  white-space: nowrap;
}

.btn-we-are-contact:hover {
  background-color: var(--color-white);
  color: var(--color-red);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}

/* ---- We-Are Identity Row (avatar + name inline) ---- */
.we-are-identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: clamp(0.75rem, 1.5vw, 1.25rem);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.we-are-identity-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.we-are-name {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.we-are-role {
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---- Avatar circle ---- */
.we-are-avatar-wrapper {
  position: relative;
  width: clamp(44px, 5vw, 60px);
  height: clamp(44px, 5vw, 60px);
  flex-shrink: 0;
}

.we-are-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  filter: grayscale(0.3) contrast(1.05);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), filter 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 2px rgba(207,46,46,0.7), 0 4px 16px rgba(0,0,0,0.4);
}

.we-are-avatar-wrapper:hover .we-are-avatar {
  transform: scale(1.08);
  filter: grayscale(0) contrast(1.05);
  box-shadow: 0 0 0 2px #cf2e2e, 0 8px 24px rgba(207,46,46,0.4);
}

/* Spinning ring around avatar */
.we-are-avatar-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px dashed rgba(207,46,46,0.5);
  animation: spin-ring 8s linear infinite;
  pointer-events: none;
}

@keyframes spin-ring {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Pulse glow behind avatar */
.we-are-avatar-wrapper::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(207,46,46,0.18) 0%, transparent 70%);
  animation: pulse-glow 3s ease-in-out infinite;
  pointer-events: none;
}

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


/* --------------------------------------------------------------------------
   10. FULLSCREEN VIDEO PLAYER MODAL OVERLAY
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1000000000;
  display: none;
  justify-content: center;
  align-items: center;
  transition: opacity var(--transition-medium);
}

.modal.open {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 15, 14, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 1;
}

.modal-wrapper {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 960px;
  aspect-ratio: 16/9;
}

.modal-content {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(250, 250, 250, 0.1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  position: relative;
}

.modal-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.modal-close-btn {
  position: absolute;
  top: -45px;
  right: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-white);
  display: flex;
  align-items: center;
  transition: transform var(--transition-fast);
}

.modal-close-btn:hover {
  transform: scale(1.1);
}

/* Adaptability constraints for sub sections */
@media screen and (max-width: 1023px) {
  .we-are-container {
    flex-direction: column;
    gap: var(--spacing-xl);
  }
  
  .we-are-right {
    padding-top: 0;
    max-width: 650px;
  }
}

@media screen and (max-width: 767px) {
  .we-are-section {
    padding: 3.5rem 1.25rem !important;
  }
  .we-are-title {
    font-size: clamp(32px, 8.5vw, 60px) !important;
    gap: 0.1em;
  }
  .video-badge-pill {
    border-width: 1px !important;
  }
  .video-badge-pill .badge-text {
    font-size: 0.22em !important; /* Highly readable on mobile */
    letter-spacing: 0.02em !important;
  }
  .we-are-right {
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding-top: 2rem !important;
    margin-top: 0.5rem !important;
  }
}

/* ==========================================================================
   11. CREATIVE PORTFOLIO GRID STYLING (STAGE 5: exactly like BBDO website)
   ========================================================================== */
.work-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #161616;
  padding-left: 16px;
  padding-right: 16px;
  padding-top: 86px;
  z-index: 10;
}

@media (min-width: 1024px) {
  .work-section {
    padding-left: 40px;
    padding-right: 40px;
    padding-top: 76px;
  }
}

.work-section .work-section-container {
  display: flex;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  align-items: flex-start;
  justify-content: center;
}

.work-section .work-section-container .text-work-container-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .work-section .work-section-container .text-work-container-desktop {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 24px;
    width: 20%;
  }
}

.work-section .work-section-container .text-work-container-desktop h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 160px;
  line-height: 166px;
  letter-spacing: 0px;
  font-weight: 600;
  text-transform: uppercase;
  color: rgb(255, 0, 0);
  writing-mode: vertical-lr;
  transform: rotate(180deg);
}

.work-section .work-section-container .text-work-container-desktop h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: 0.05em;
  font-weight: 500;
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.45);
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .work-section .work-section-container .text-work-container-desktop h2 {
    font-size: 200px;
    line-height: 250px;
    letter-spacing: 0px;
  }
  .work-section .work-section-container .text-work-container-desktop h3 {
    font-size: 24px;
    line-height: 28px;
  }
}

@media (min-width: 2100px) {
  .work-section .work-section-container .text-work-container-desktop h2 {
    font-size: 240px;
  }
  .work-section .work-section-container .text-work-container-desktop h3 {
    font-size: 30px;
    line-height: 36px;
  }
}

.work-section .work-section-container .works {
  display: flex;
  width: 100%;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .work-section .work-section-container .works {
    width: 80%;
  }
}

.work-section .work-section-container .works .works-inside-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

@media (min-width: 1024px) {
  .work-section .work-section-container .works .works-inside-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: auto auto;
    column-gap: 20px;
    row-gap: 48px;
  }
}

.work-section .work-section-container .works .works-inside-grid .mobile-special-container {
  display: flex;
  width: max-content;
  transform: translate(116px, 0);
  align-items: center;
  justify-content: center;
  gap: 60px;
}

@media (min-width: 1024px) {
  .work-section .work-section-container .works .works-inside-grid .mobile-special-container {
    grid-column: span 3 / span 3;
    grid-row: span 2 / span 2;
    height: 100%;
    width: 100%;
    transform: translate(0px, 0);
  }
}

.work-section .work-section-container .works .works-inside-grid .mobile-special-container .mobile-image {
  margin-top: -39px;
  display: flex;
  height: 517px;
  width: 200px;
}

@media (min-width: 1024px) {
  .work-section .work-section-container .works .works-inside-grid .mobile-special-container .mobile-image {
    display: none;
  }
}

.work-section .work-section-container .works .works-inside-grid .mobile-special-container .mobile-image svg {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.work-section .work-section-container .works .works-inside-grid .mobile-special-container .card-work {
  height: 100%;
  width: 100%;
  min-width: 90vw;
  max-width: 90vw;
}

@media (min-width: 1024px) {
  .work-section .work-section-container .works .works-inside-grid .mobile-special-container .card-work {
    min-width: 100%;
    max-width: 100%;
  }
}

.work-section .work-section-container .works .works-inside-grid .card-work:nth-child(2) {
  grid-column-end: 7;
  grid-row-start: 1;
}

@media (min-width: 1024px) {
  .work-section .work-section-container .works .works-inside-grid .card-work:nth-child(2) {
    grid-column-start: 4;
  }
}

.work-section .work-section-container .works .works-inside-grid .card-work:nth-child(3) {
  grid-column-end: 7;
  grid-row-start: 2;
}

@media (min-width: 1024px) {
  .work-section .work-section-container .works .works-inside-grid .card-work:nth-child(3) {
    grid-column-start: 4;
  }
}

.work-section .flex-works {
  margin-top: 48px;
  display: flex;
  width: 100%;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

@media (min-width: 1024px) {
  .work-section .flex-works {
    margin-top: 48px;
    flex-direction: row;
    gap: 20px;
  }
}

.work-section .flex-works a {
  width: 100% !important;
}

/* Card work standard styling */
.card-work {
  display: flex;
  height: 100%;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  color: rgb(250, 250, 250);
  text-decoration: none;
  /* Premium 3D Transitions */
  transition: 
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
    color 0.4s ease;
  position: relative;
  transform-style: preserve-3d;
  perspective: 1200px;
}

@media (min-width: 1024px) {
  .card-work:hover {
    color: rgb(255, 0, 0) !important;
    transform: translateY(-8px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  }
}

@media (min-width: 1024px) {
  .card-work:hover .image-container img {
    transform: scale(1.12) translate(var(--px-x, 0px), var(--px-y, 0px));
  }

  .card-work:hover .card-work-text-content h2 {
    font-weight: 600;
  }

  .card-work:hover .card-work-text-content .subtitle-line .line {
    width: 60px !important; /* Premium growing width animation */
    height: 1px;
    background-color: rgb(255, 0, 0);
  }
}

.card-work .card-work-container {
  display: flex;
  height: 100%;
  width: 100%;
  flex-direction: column;
  gap: 8px;
  transform-style: preserve-3d;
}

@media (min-width: 768px) {
  .card-work .card-work-container {
    gap: 12px;
  }
}

@media (min-width: 1920px) {
  .card-work .card-work-container {
    gap: 8px;
  }
}

.card-work .image-container {
  aspect-ratio: 343/304;
  height: 100%;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background-color: #1a1a19;
  position: relative;
  transform-style: preserve-3d;
  transform: translateZ(10px);
  /* Added dynamic shadow */
  transition: box-shadow 0.6s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.card-work:hover .image-container {
  box-shadow: 0 25px 55px rgba(0,0,0,0.7), 0 0 35px rgba(255, 0, 0, 0.15);
}

@media (min-width: 1024px) {
  .card-work .image-container {
    aspect-ratio: 555/357;
  }
}

/* Specular Glare over image */
.card-work-glare {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(circle 200px at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.12) 0%, rgba(255,0,0,0.04) 40%, transparent 80%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 5;
}
.card-work:hover .card-work-glare {
  opacity: 1;
}

/* Dynamic scanning laser line */
.card-work-scanline {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, 
    transparent 49%, 
    rgba(255, 0, 0, 0.3) 50%, 
    rgba(255, 0, 0, 0.3) 52%, 
    transparent 53%
  );
  background-size: 100% 24px;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}
.card-work:hover .card-work-scanline {
  opacity: 0.15;
  animation: scanline-anim 8s linear infinite;
}

.card-work .image-container img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(1.01) translate(var(--px-x, 0px), var(--px-y, 0px));
}

.card-work.main-card .image-container {
  aspect-ratio: 343/494;
  height: 100%;
  width: 100%;
}

@media (min-width: 1024px) {
  .card-work.main-card .image-container {
    aspect-ratio: 555/800;
  }
}

.card-work .card-work-text-content,
.video-work-card .card-work-text-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  transform: translateZ(20px);
  transform-style: preserve-3d;
}

@media (min-width: 1024px) {
  .card-work .card-work-text-content,
  .video-work-card .card-work-text-content {
    flex-direction: row;
    align-items: flex-end;
    gap: 16px;
  }
}

.card-work .card-work-text-content h2,
.video-work-card .card-work-text-content h2 {
  margin-bottom: 8px;
  font-size: 32px;
  line-height: 40px;
  letter-spacing: 0px;
  font-weight: 400;
  text-transform: uppercase;
}

@media (min-width: 1024px) {
  .card-work .card-work-text-content h2,
  .video-work-card .card-work-text-content h2 {
    margin-bottom: 0px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-height: 35px;
  }
}

@media (min-width: 1920px) {
  .card-work .card-work-text-content h2,
  .video-work-card .card-work-text-content h2 {
    font-size: 40px;
    line-height: 46px;
  }
}

.card-work .card-work-text-content .subtitle-line,
.video-work-card .card-work-text-content .subtitle-line {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.card-work .card-work-text-content .subtitle-line .line,
.video-work-card .card-work-text-content .subtitle-line .line {
  margin-bottom: 5px;
  height: 1px;
  width: 32px;
  background-color: rgb(250, 250, 250);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 1024px) {
  .card-work .card-work-text-content .subtitle-line .line,
  .video-work-card .card-work-text-content .subtitle-line .line {
    width: 42px;
  }
}

.card-work .card-work-text-content .subtitle-line h3,
.video-work-card .card-work-text-content .subtitle-line h3 {
  font-size: 20px;
  font-weight: 400;
  line-height: 24px;
  margin: 0;
}

@media (min-width: 1024px) {
  .card-work .card-work-text-content .subtitle-line h3,
  .video-work-card .card-work-text-content .subtitle-line h3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }
}

.work-section .button-container {
  margin-top: 48px;
  margin-bottom: 96px;
  width: 100%;
  padding-left: 0px;
  padding-right: 0px;
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) {
  .work-section .button-container {
    width: auto;
  }
}

@media (min-width: 1024px) {
  .work-section .button-container {
    margin-top: 56px;
    margin-bottom: 80px;
  }
}

.work-section .primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-white);
  color: var(--color-white);
  background: transparent;
  padding: 20px 44px;
  border-radius: 51px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  font-size: 24px;
  line-height: 28px;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  width: fit-content;
  text-wrap: nowrap;
}

.work-section .primary-button:hover {
  background-color: var(--color-white);
  color: #161616 !important;
  transform: translateY(-2px);
}

/* Outlined text animation bottom of work section */
.work-section .animation-text-container {
  margin-bottom: 94px;
  width: 100%;
}

@media (min-width: 1024px) {
  .work-section .animation-text-container {
    margin-bottom: 104px;
  }
}

.work-section .animation-text-container .animation-text {
  display: flex;
  width: 100%;
  flex-direction: column;
}

.work-section .animation-text-container .animation-text h2 {
  width: fit-content;
  text-wrap: nowrap;
  font-family: 'Outfit', sans-serif;
  font-size: 86px;
  line-height: 110px;
  letter-spacing: 0px;
  font-weight: 600;
  text-transform: uppercase;
  will-change: transform;
}

@media (min-width: 1024px) {
  .work-section .animation-text-container .animation-text h2 {
    font-size: 160px;
    line-height: 166px;
    letter-spacing: 0px;
  }
}

@media (min-width: 1536px) {
  .work-section .animation-text-container .animation-text h2 {
    font-size: 237px;
  }
}

.work-section .animation-text-container .animation-text .right {
  align-self: flex-end;
  color: rgb(250, 250, 250);
}

.work-section .animation-text-container .animation-text .left-outline {
  align-self: flex-start;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(250, 250, 250, 0.85);
}

/* ==========================================================================
   12. INFINITE TICKER MARQUEE STYLING (STAGE 6)
   ========================================================================== */
.ticker-section {
  background-color: var(--color-red);
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
  overflow: hidden;
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(250, 250, 250, 0.12);
  border-bottom: 1px solid rgba(250, 250, 250, 0.12);
}

.ticker-wrapper {
  width: 100%;
  overflow: hidden;
}

.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker-loop 24s linear infinite;
  align-items: center;
}

.ticker-item {
  font-size: clamp(2.5rem, 6.5vw, 6rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(250, 250, 250, 0.8);
  margin-right: clamp(1.5rem, 4vw, 3.5rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  display: inline-block;
  user-select: none;
}

@keyframes ticker-loop {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ==========================================================================
   13. coordinates GLOBAL FOOTER STYLING (STAGE 6)
   ========================================================================== */
.footer-section {
  background-color: var(--color-black);
  padding: clamp(4.5rem, 8vw, 8.5rem) clamp(1.5rem, 6vw, 4rem) clamp(2rem, 4vw, 3rem) clamp(1.5rem, 6vw, 4rem);
  color: var(--color-white);
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(250, 250, 250, 0.06);
}

.footer-container {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
}

.footer-branding {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-motto {
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 300;
  color: rgba(250, 250, 250, 0.55);
  max-width: 600px;
  line-height: 1.5;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 5vw, 6.5rem);
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.footer-column-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-red);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
  width: fit-content;
}

.footer-column-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 1.5rem;
  height: 2px;
  background-color: var(--color-red);
}

.footer-address {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(250, 250, 250, 0.65);
  line-height: 1.6;
}

.address-city {
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.25rem;
}

.map-link {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-block;
  margin-top: 0.5rem;
  transition: color var(--transition-fast);
}

.map-link:hover {
  color: var(--color-red);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-link {
  font-size: 1.1rem;
  color: var(--color-white);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.contact-link:hover {
  color: var(--color-red);
}

.footer-socials {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: 0.5rem;
}

.social-icon {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(250, 250, 250, 0.4);
  text-decoration: none;
  transition: color var(--transition-fast);
  border: 1px solid rgba(250, 250, 250, 0.1);
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon:hover {
  color: var(--color-red);
  border-color: var(--color-red);
}

.newsletter-text {
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(250, 250, 250, 0.6);
  line-height: 1.5;
}

/* Glassmorphic input field */
.newsletter-form {
  display: flex;
  border-bottom: 2px solid rgba(250, 250, 250, 0.15);
  padding: 0.25rem 0;
  position: relative;
  transition: border-color var(--transition-fast);
}

.newsletter-form:focus-within {
  border-color: var(--color-red);
}

.newsletter-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--color-white);
  font-size: 1rem;
  padding: 0.5rem 0;
  flex-grow: 1;
}

.newsletter-input::placeholder {
  color: rgba(250, 250, 250, 0.3);
}

.newsletter-submit {
  background: transparent;
  border: none;
  outline: none;
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.newsletter-submit:hover {
  color: var(--color-red);
  transform: translateX(3px);
}

/* Bottom elements details */
.footer-bottom {
  border-top: 1px solid rgba(250, 250, 250, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(250, 250, 250, 0.4);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: rgba(250, 250, 250, 0.4);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--color-red);
}

/* ==========================================================================
   14. RESPONSIVE GRID OVERRIDES (STAGE 5 & 6)
   ========================================================================== */
@media screen and (max-width: 1024px) {
  .works-inside-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .flex-works {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .work-section .work-section-container .works .works-inside-grid .mobile-special-container {
    transform: translate(0px, 0px) !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .work-section .work-section-container .works .works-inside-grid .mobile-special-container .card-work {
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .mobile-image {
    display: none; /* Hide vertical wordmark on smaller viewports */
  }
  
  /* Footer tablet optimization */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 3rem !important;
  }
  .footer-column:nth-child(3) {
    grid-column: span 2 !important;
    max-width: 550px !important;
  }

  /* Responsive Hero Text spacing for Tablets */
  .g-mask-a {
    transform: translate(130px, 0) !important;
  }
  .g-mask-t {
    transform: translate(-130px, 0) !important;
  }
}

@media screen and (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
  }
  
  /* Mobile Header & Nav Drawer Optimization */
  #masthead {
    padding: 1rem 1.25rem !important;
  }
  .menu-container {
    padding: 1rem 1.25rem !important;
  }
  .menu-header {
    margin-bottom: 2rem !important;
  }
  .menu-item a {
    font-size: clamp(1.6rem, 7.5vw, 2.4rem) !important;
  }
  .main_menu {
    gap: 0.75rem !important;
  }
  .info-container {
    padding-top: 1.5rem !important;
    gap: 1.5rem !important;
  }
}

@media screen and (max-width: 375px) {
  /* Spacing is handled natively and symmetrically by textLength attributes */
}

/* ==========================================================================
   15. SCROLL ENTRANCE ANIMATIONS (FADE-UP)
   ========================================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.2s cubic-bezier(0.19, 1, 0.22, 1), transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Scroll-Reveal Delays for Portfolio Cards grid reveal */
.works-inside-grid .mobile-special-container .card-work.main-card {
  transition-delay: 0.15s !important;
}
.works-inside-grid > a.card-work:nth-of-type(1) {
  transition-delay: 0.3s !important;
}
.works-inside-grid > a.card-work:nth-of-type(2) {
  transition-delay: 0.45s !important;
}
.flex-works > a.card-work:nth-of-type(1) {
  transition-delay: 0.15s !important;
}
.flex-works > a.card-work:nth-of-type(2) {
  transition-delay: 0.35s !important;
}

/* ==========================================================================
   UX CASE STUDIES SECTION
   ========================================================================== */
.ux-studies-section {
  background: #0d0d0d;
  padding: clamp(4rem, 8vw, 9rem) clamp(1.5rem, 5vw, 6rem);
  position: relative;
  overflow: hidden;
}
.ux-studies-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(207,46,46,0.5), transparent);
}
.ux-studies-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 6vw, 6rem);
}
.ux-studies-header {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 768px) {
  .ux-studies-header { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 4rem; }
}
.ux-header-left { display: flex; flex-direction: column; gap: 0.75rem; }
.ux-section-tag {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(10px, 1vw, 12px);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #cf2e2e;
  text-transform: uppercase;
}
.ux-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 900;
  color: #fafafa;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0;
}
.ux-header-right { max-width: 460px; display: flex; flex-direction: column; gap: 1.5rem; padding-bottom: 0.5rem; }
.ux-section-desc { font-size: clamp(14px, 1.4vw, 18px); font-weight: 300; line-height: 1.65; color: rgba(255,255,255,0.55); margin: 0; }
.ux-view-all-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: #fafafa;
  text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 4px; width: fit-content; transition: color 0.2s, border-color 0.2s;
}
.ux-view-all-btn:hover { color: #cf2e2e; border-color: #cf2e2e; }

/* Grid */
.ux-cards-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .ux-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ux-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .ux-cards-grid { grid-template-columns: repeat(4, 1fr); } }

/* Card */
.ux-card {
  display: block; text-decoration: none; color: inherit;
  border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  background: #141414;
  /* Premium 3D & Spotlight transitions */
  transition: 
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
    box-shadow 0.6s ease, 
    border-color 0.4s ease;
  cursor: pointer;
  position: relative;
  transform-style: preserve-3d;
  perspective: 1200px;
  --accent: #cf2e2e;
  --accent-rgb: 207,46,46;
}
.ux-card:hover {
  transform: translateY(-10px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  box-shadow: 
    0 30px 70px rgba(0, 0, 0, 0.85), 
    0 0 50px rgba(var(--accent-rgb), 0.15);
  border-color: rgba(var(--accent-rgb), 0.45);
}
.ux-card--soon { opacity: 0.65; cursor: default; }
.ux-card--soon:hover { transform: none; box-shadow: none; border-color: rgba(255,255,255,0.06); }

/* Glare & Scanline Injection points */
.ux-card-glare {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(circle 250px at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.08) 0%, rgba(var(--accent-rgb), 0.05) 40%, transparent 80%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 5;
}
.ux-card:hover .ux-card-glare {
  opacity: 1;
}

/* Border spotlight using masked pseudo-element */
.ux-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  padding: 1px;
  background: radial-gradient(circle 200px at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-rgb), 0.7) 0%, rgba(255,255,255,0.08) 50%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 6;
}
.ux-card:hover::after {
  opacity: 1;
}

.ux-card-inner { 
  display: flex; 
  flex-direction: column; 
  height: 100%;
  transform-style: preserve-3d;
}

/* Visual */
.ux-card-visual { 
  position: relative; 
  height: 200px; 
  overflow: hidden; 
  border-radius: 20px 20px 0 0;
  transform-style: preserve-3d;
  transform: translateZ(10px);
}

.ux-card-scanline {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, 
    transparent 49%, 
    rgba(var(--accent-rgb), 0.25) 50%, 
    rgba(var(--accent-rgb), 0.25) 52%, 
    transparent 53%
  );
  background-size: 100% 24px;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}
@keyframes scanline-anim {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}
.ux-card:hover .ux-card-scanline {
  opacity: 0.15;
  animation: scanline-anim 8s linear infinite;
}

.ux-card-gradient {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 60%, var(--g2) 0%, var(--g1) 70%);
  transition: opacity 0.4s ease;
}
.ux-card:hover .ux-card-gradient { opacity: 0.8; }
.ux-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  opacity: 0.85;
}
.ux-card:hover .ux-card-img {
  transform: scale(1.06);
  opacity: 1;
}
.ux-card-mockup {
  position: absolute; bottom: -10px; left: 50%;
  transform: translateX(-50%) perspective(600px) rotateX(10deg);
  width: 75%; transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.ux-card:hover .ux-card-mockup {
  transform: translateX(-50%) perspective(600px) rotateX(4deg) translateY(-8px);
}
.mockup-screen {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px 10px 0 0; padding: 10px; backdrop-filter: blur(4px);
}
.mockup-bar { height: 6px; width: 40%; background: rgba(255,255,255,0.15); border-radius: 3px; margin-bottom: 10px; }
.mockup-content { display: flex; flex-direction: column; gap: 7px; }
.mockup-line { height: 5px; border-radius: 3px; background: rgba(255,255,255,0.1); }
.mockup-line.w80 { width: 80%; } .mockup-line.w70 { width: 70%; }
.mockup-line.w60 { width: 60%; } .mockup-line.w50 { width: 50%; } .mockup-line.w40 { width: 40%; }
.mockup-block { height: 32px; border-radius: 5px; background: rgba(255,255,255,0.08); }
.mockup-chart { height: 40px; border-radius: 5px; background: linear-gradient(180deg, rgba(34,197,94,0.2) 0%, transparent 100%); border: 1px solid rgba(34,197,94,0.2); }
.mockup-cards-row { display: flex; gap: 6px; }
.mockup-mini-card { flex: 1; height: 28px; border-radius: 5px; background: rgba(255,255,255,0.08); }

.ux-card-number {
  position: absolute; top: 1rem; left: 1.25rem;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(44px, 4.5vw, 60px); font-weight: 900;
  color: rgba(255,255,255,0.07); line-height: 1;
  letter-spacing: -0.04em; user-select: none; transition: color 0.3s;
}
.ux-card:hover .ux-card-number { color: rgba(255,255,255,0.11); }

.ux-card-hover-cta {
  position: absolute; bottom: 1rem; right: 1.25rem;
  font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: #fafafa;
  background: rgba(207,46,46,0.9); backdrop-filter: blur(8px);
  padding: 0.4em 0.9em; border-radius: 9999px;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.ux-card:hover .ux-card-hover-cta { opacity: 1; transform: translateY(0); }

.ux-soon-badge {
  position: absolute; bottom: 1rem; right: 1.25rem;
  font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1); padding: 0.35em 0.8em; border-radius: 9999px;
}

/* Body */
.ux-card-body { 
  padding: 1.5rem; 
  display: flex; 
  flex-direction: column; 
  gap: 0.85rem; 
  flex: 1;
  transform: translateZ(15px);
  transform-style: preserve-3d;
}
.ux-card-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ux-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08); padding: 0.25em 0.7em; border-radius: 9999px;
}
.ux-card-title {
  font-family: 'Outfit', sans-serif; font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 800; color: #fafafa; letter-spacing: -0.02em; line-height: 1.15; margin: 0; transition: color 0.2s;
}
.ux-card:hover .ux-card-title { color: #fff; }
.ux-card-desc { font-size: clamp(12px, 1.1vw, 14px); font-weight: 300; line-height: 1.65; color: rgba(255,255,255,0.45); margin: 0; }
.ux-card-tools { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; padding-top: 0.75rem; border-top: 1px solid rgba(255,255,255,0.06); }
.ux-tool { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: rgba(255,255,255,0.35); }
.ux-tool::before { content: '# '; color: #cf2e2e; opacity: 0.7; }

/* ==========================================================================
   16. TRAILER EDIT SHOWCASE - STICKY HORIZONTAL SCROLL STYLES
   ========================================================================== */
.video-works-section {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 100vh;
  background-color: #000000; /* Pure Black luxury background */
  z-index: 10;
  border-top: 1px solid rgba(250, 250, 250, 0.04);
  overflow: visible; /* CRITICAL: Must be visible for position: sticky to work */
}

/* Luxury Cinematic Film Grain Noise Overlay */
.video-works-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.035; /* Subtle organic texture */
  pointer-events: none;
  z-index: 5;
}

.video-works-section .sticky-wrapper {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.video-works-section .horizontal-track {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 100%;
  width: max-content;
  will-change: transform;
}

/* Horizontal Title Block (vertical on desktop, horizontal on mobile) */
.horizontal-title-block {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding-right: clamp(40px, 6vw, 100px);
  padding-left: clamp(20px, 6vw, 80px);
}

@media (min-width: 1024px) {
  .horizontal-title-block {
    height: 100%;
  }
}

.horizontal-title-block .text-work-container-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .horizontal-title-block .text-work-container-desktop {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    gap: 24px;
  }
}

.horizontal-title-block .text-work-container-desktop h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(90px, 12vh, 130px);
  line-height: 1.1;
  letter-spacing: 0px;
  font-weight: 600;
  text-transform: uppercase;
  color: rgb(255, 0, 0);
  writing-mode: vertical-lr;
  transform: rotate(180deg);
}

.horizontal-title-block .text-work-container-desktop h3 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(14px, 2.5vh, 20px);
  line-height: 1.2;
  letter-spacing: 0.05em;
  font-weight: 500;
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.45);
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  white-space: nowrap;
}

@media (min-width: 1440px) {
  .horizontal-title-block .text-work-container-desktop h2 {
    font-size: clamp(120px, 14vh, 150px);
  }
  .horizontal-title-block .text-work-container-desktop h3 {
    font-size: clamp(18px, 3vh, 24px);
  }
}

@media (min-width: 1920px) {
  .horizontal-title-block .text-work-container-desktop h2 {
    font-size: clamp(140px, 16vh, 180px);
  }
  .horizontal-title-block .text-work-container-desktop h3 {
    font-size: clamp(20px, 3.5vh, 28px);
  }
}

/* Mobile responsive horizontal titles */
.horizontal-title-block .text-work-container-mobile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 0 16px;
}

.horizontal-title-block .text-work-container-mobile h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 38px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-red);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.horizontal-title-block .text-work-container-mobile h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.45);
  letter-spacing: 0.1em;
}

@media (min-width: 1024px) {
  .horizontal-title-block .text-work-container-mobile {
    display: none;
  }
}

/* Widescreen Video Row Track */
.horizontal-video-grid {
  display: flex;
  flex-direction: row;
  gap: clamp(40px, 6vw, 80px); /* Strong editorial spacing between cards */
  align-items: center;
  height: 100%;
  padding-right: clamp(100px, 15vw, 300px);
}

/* Video Card Sizing & Layout */
.video-works-section .video-work-card {
  width: clamp(280px, 45vw, 640px);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  opacity: 0.6; /* Default dim state for non-active cards */
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.video-works-section .video-work-card .video-card-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.video-works-section .video-work-card .video-preview-container {
  position: relative;
  aspect-ratio: 16/9;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background-color: #0c0c0c;
  border: 1px solid rgba(250, 250, 250, 0.05);
}

.video-works-section .video-work-card .video-preview-container .video-preview {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.08); /* Sized to permit clean parallax translations inside container */
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.video-works-section .video-work-card .play-badge-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  z-index: 2;
  transition: all 400ms cubic-bezier(0.19, 1, 0.22, 1);
  pointer-events: none;
}

.video-works-section .video-work-card:hover .play-badge-overlay {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* Video Card Subtitle Typography line grow animation on hover */
.video-works-section .video-work-card .card-work-text-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.video-works-section .video-work-card .card-work-text-content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(20px, 2.2vw, 32px);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.video-works-section .video-work-card .card-work-text-content .subtitle-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.video-works-section .video-work-card .card-work-text-content .subtitle-line .line {
  width: 42px;
  height: 2px;
  background-color: rgba(250, 250, 250, 0.2);
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.video-works-section .video-work-card .card-work-text-content .subtitle-line h3 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(12px, 1.2vw, 16px);
  font-weight: 500;
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.4);
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.video-works-section .video-work-card:hover .card-work-text-content .subtitle-line .line {
  width: 60px !important;
  background-color: rgb(255, 0, 0);
}

/* ==========================================================================
   18. ABOUT ME SUB-PAGE STYLES (STAGE 17 INTEGRATION)
   ========================================================================== */
.sub-page-section#section-about {
  background-color: #000000 !important;
  padding: 8rem 6% 0 6% !important;
  display: none;
  overflow-x: hidden;
}

.sub-page-section#section-work {
  background-color: #000000 !important;
  padding: 8rem 0 0 0 !important;
  display: none;
  overflow-x: hidden;
}

.sub-page-section#section-about.active-section,
.sub-page-section#section-work.active-section,
.sub-page-section#section-contact.active-section,
.sub-page-section#section-blogs.active-section {
  display: block !important;
}

.about-hero-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: clamp(3rem, 7vh, 6rem);
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.about-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(250, 250, 250, 0.5);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: color var(--transition-fast), transform var(--transition-fast);
  cursor: pointer;
  width: fit-content;
}

.about-back-btn svg {
  transition: transform var(--transition-fast);
}

.about-back-btn:hover {
  color: var(--color-red);
}

.about-back-btn:hover svg {
  transform: translateX(-4px); /* Interactive slide back */
}

.about-hero-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.about-hero-title h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(48px, 6.5vw, 110px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--color-white);
  text-transform: uppercase;
  line-height: 0.95;
}

.about-hero-title h3 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(13px, 1.4vw, 18px);
  font-weight: 600;
  color: var(--color-red);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-container {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(6rem, 10vh, 12rem);
}

/* Fold 1: Narrative & Portrait */
.about-intro-fold {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
  width: 100%;
}

@media (min-width: 1024px) {
  .about-intro-fold {
    grid-template-columns: 1fr 1.35fr;
  }
}

.about-portrait-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(250, 250, 250, 0.06);
  box-shadow: 0 30px 80px rgba(0,0,0,0.85), 0 0 0 1px rgba(207,46,46,0.15);
  background-color: #0c0c0c;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.about-portrait-wrapper:hover {
  box-shadow: 0 40px 100px rgba(0,0,0,0.9), 0 0 0 2px rgba(207,46,46,0.5), 0 0 60px rgba(207,46,46,0.2);
}

@media (max-width: 1023px) {
  .about-portrait-wrapper {
    max-width: 480px !important;
    margin: 0 auto !important;
  }
}

.about-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(0.6) contrast(1.08) brightness(0.95);
  transition: transform 1.2s cubic-bezier(0.16,1,0.3,1), filter 0.6s ease;
  will-change: transform;
}

.about-portrait-wrapper:hover .about-portrait {
  transform: scale(1.06);
  filter: grayscale(0) contrast(1.05) brightness(1);
}

.portrait-color-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(207,46,46,0.18) 0%,
    transparent 50%,
    rgba(0,0,0,0.45) 100%
  );
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.about-portrait-wrapper:hover .portrait-color-overlay {
  opacity: 0.6;
}

/* Film grain overlay */
.portrait-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.55;
  mix-blend-mode: overlay;
  pointer-events: none;
  border-radius: inherit;
}

/* Role badge floating at bottom of portrait */
.portrait-role-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  background: rgba(207,46,46,0.92);
  backdrop-filter: blur(10px);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(10px, 1vw, 13px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45em 1em;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.2);
  pointer-events: none;
  transform: translateY(8px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), opacity 0.4s ease;
}

.about-portrait-wrapper:hover .portrait-role-badge {
  transform: translateY(0);
  opacity: 1;
}

.about-narrative-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5rem;
}

.narrative-tag {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-red);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.narrative-heading {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(28px, 3.8vw, 56px);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.narrative-paragraph {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(16px, 1.35vw, 21px);
  font-weight: 300;
  color: rgba(250, 250, 250, 0.65);
  line-height: 1.7;
  margin-bottom: 0;
}

.narrative-cta {
  margin-top: 1rem;
}

/* Fold 2: Core Expertise Skill Grid */
.skills-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: clamp(3rem, 5vh, 4.5rem);
  text-align: left;
}

.skills-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-white);
  text-transform: uppercase;
  line-height: 1.1;
}

.skills-header .line-separator {
  width: 50px;
  height: 3px;
  background-color: var(--color-red);
  margin-top: 4px;
  margin-bottom: 4px;
}

.skills-header p {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 600;
  color: rgba(250, 250, 250, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  width: 100%;
}

@media (min-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.skill-card {
  background-color: #0b0b0b;
  padding: clamp(30px, 4vw, 45px);
  border-radius: 24px;
  border: 1px solid rgba(250, 250, 250, 0.03);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, border-color;
}

.skill-card:hover {
  transform: translateY(-6px); /* Floating translate */
  border-color: rgba(207, 46, 46, 0.25);
}

.skill-icon-container {
  color: var(--color-red);
  display: flex;
  align-items: center;
}

.skill-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.skill-card p {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 300;
  color: rgba(250, 250, 250, 0.5);
  line-height: 1.6;
}

/* Fold 3: Background Journey Timeline */
.timeline-track-wrapper {
  position: relative;
  padding-left: 35px;
  display: flex;
  flex-direction: column;
  gap: 50px;
  width: 100%;
  margin-top: 1rem;
}

.timeline-line {
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background-color: rgba(250, 250, 250, 0.08);
}

.timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.timeline-marker {
  position: absolute;
  left: -35px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #000000;
  border: 2px solid var(--color-red);
  z-index: 2;
  transition: background-color 0.4s ease, transform 0.4s ease;
}

.timeline-item:hover .timeline-marker {
  background-color: var(--color-red); /* Glowing markers */
  transform: scale(1.2);
}

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 10px;
  transition: transform 0.4s ease;
  will-change: transform;
}

.timeline-item:hover .timeline-content {
  transform: translateX(6px);
}

.timeline-date {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-red);
  letter-spacing: 0.1em;
}

.timeline-content h3 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.2;
}

.timeline-org {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(250, 250, 250, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: -2px;
}

.timeline-content p {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 300;
  color: rgba(250, 250, 250, 0.55);
  line-height: 1.65;
  max-width: 800px;
}

@media (max-width: 767px) {
  .sub-page-section#section-about {
    padding: 6rem 16px 0 16px !important;
  }
  .about-hero-title h2 {
    font-size: 40px;
  }
  .timeline-track-wrapper {
    padding-left: 24px;
  }
  .timeline-marker {
    left: -24px;
  }
}

/* Luxury Minimal Progress Indicator */
.video-scroll-progress-container {
  position: absolute;
  bottom: clamp(30px, 5vh, 60px);
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background-color: rgba(250, 250, 250, 0.1);
  border-radius: 2px;
  overflow: hidden;
  z-index: 10;
}

.video-scroll-progress-bar {
  width: 0%;
  height: 100%;
  background-color: var(--color-red);
  box-shadow: 0 0 10px rgba(207, 46, 46, 0.8);
  transition: width 0.1s ease-out;
}

/* ==========================================================================
   17. TRAILER EDIT SHOWCASE - MOBILE STACK FALLBACK MEDIA QUERY
   ========================================================================== */
@media (max-width: 767px) {
  .video-works-section {
    height: auto !important;
    overflow: visible !important;
    padding: 4rem 16px !important;
  }
  .video-works-section .sticky-wrapper {
    position: relative !important;
    height: auto !important;
    overflow: visible !important;
    display: block !important;
  }
  .video-works-section .horizontal-track {
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
  }
  .horizontal-title-block {
    padding: 0 0 2rem 0 !important;
    width: 100% !important;
    justify-content: flex-start !important;
  }
  .horizontal-video-grid {
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    gap: 40px !important;
    padding-right: 0 !important;
  }
  .video-works-section .video-work-card {
    width: 100% !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .video-works-section .video-work-card .video-preview-container .video-preview {
    transform: none !important; /* Disable parallax transitions on mobile */
  }
  .video-scroll-progress-container {
    display: none !important;
  }
}

/* ==========================================================================
   18. PREMIUM CASE STUDY PAGES STYLING (UX PORTFOLIO INJECT)
   ========================================================================== */
.case-study-section {
  display: none;
  width: 100%;
  min-height: 100vh;
  background-color: var(--color-black);
  padding: 8rem 0 4rem 0 !important; /* Standard spacing for header */
}

.case-study-section.active-section {
  display: block !important;
}

.case-study-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 4vw;
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 8vw, 6rem);
}

/* 4-Column Metadata Block */
.case-metadata-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  border-top: 1px solid rgba(250, 250, 250, 0.1);
  border-bottom: 1px solid rgba(250, 250, 250, 0.1);
  padding: 2.5rem 0;
  margin-top: 2rem;
}

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

.meta-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-red);
}

.meta-value {
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  font-weight: 300;
  line-height: 1.5;
  color: rgba(250, 250, 250, 0.85);
}

/* Mockup Banner */
.case-banner-wrapper {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(250, 250, 250, 0.08);
}

.case-banner-image {
  width: 100%;
  height: clamp(300px, 45vh, 600px);
  object-fit: cover;
  display: block;
}

/* NDA locked secure banner */
.secure-banner {
  background: linear-gradient(135deg, #181818 0%, #0d0d0d 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  height: clamp(300px, 45vh, 500px);
  color: var(--color-white);
  border: 1px dashed rgba(250, 250, 250, 0.15);
}

.secure-icon {
  font-size: 4rem;
  animation: padlock-float 3s ease-in-out infinite;
}

.secure-banner span {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.55);
}

@keyframes padlock-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.case-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
}

/* Editorial Layout split-row */
.case-content-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 6vw, 5rem);
}

.case-section-row {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.case-col-left h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--color-white);
  position: sticky;
  top: 100px;
}

.case-col-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.case-col-right p {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(250, 250, 250, 0.7);
}

.case-col-right p.lead-text {
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-white);
}

/* Highlight quotes */
.highlight-quote {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 300;
  line-height: 1.4;
  color: var(--color-white);
  border-left: 3.5px solid var(--color-red);
  padding-left: 2rem;
  margin: 2.5rem 0;
  letter-spacing: -0.01em;
}

/* 2x2 Features Grid */
.features-block-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

.feature-card {
  background-color: var(--color-gray-dark);
  border: 1px solid rgba(250, 250, 250, 0.05);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(207, 46, 46, 0.3);
}

.feature-card h4 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-white);
  letter-spacing: 0.02em;
}

.feature-card p {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem) !important;
  line-height: 1.6 !important;
  color: rgba(250, 250, 250, 0.55) !important;
  margin: 0 !important;
}

/* Media Queries for case study layouts */
@media screen and (max-width: 900px) {
  .case-metadata-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .case-section-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .case-col-left h2 {
    position: static;
  }
}

@media screen and (max-width: 600px) {
  .case-metadata-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .features-block-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Inline case study mockup image styling */
.case-inline-image-wrapper {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(250, 250, 250, 0.08);
  margin-top: 1.5rem;
}

.case-inline-image {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   19. INTERACTIVE NETFLIX CASE STUDY WIDGETS
   ========================================================================== */

/* Dynamic Mode Switcher (Pill Switch) */
.case-mode-switcher {
  display: inline-flex;
  position: relative;
  background-color: #161615;
  border: 1px solid rgba(250, 250, 250, 0.08);
  border-radius: 50px;
  padding: 6px;
  margin: 2rem auto 0 auto;
  align-self: center;
  z-index: 10;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 2px 5px rgba(0, 0, 0, 0.8);
}

.switcher-bg-slider {
  position: absolute;
  top: 6px;
  left: 6px;
  height: calc(100% - 12px);
  background-color: var(--color-red);
  border-radius: 50px;
  z-index: 1;
  box-shadow: 0 0 15px rgba(207, 46, 46, 0.6);
  transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.case-mode-btn {
  background: none;
  border: none;
  padding: 12px 36px;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(0.75rem, 1.2vw, 0.88rem);
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.45);
  cursor: pointer;
  z-index: 2;
  position: relative;
  transition: color 0.4s ease;
  outline: none;
}

.case-mode-btn.active {
  color: var(--color-white);
}

/* Panes layout and transition */
.case-panes-wrapper {
  position: relative;
  width: 100%;
  margin-top: 1rem;
}

.case-pane {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-pane.active {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
}

/* Tour Intro Block */
.tour-intro-block {
  text-align: center;
  max-width: 800px;
  margin: 0 auto clamp(3rem, 6vw, 4.5rem) auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tour-intro-block p.lead-text {
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  color: rgba(250, 250, 250, 0.75);
  line-height: 1.7;
}

/* Widget General Section */
.widget-section {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  border-top: 1px solid rgba(250, 250, 250, 0.08);
  padding-top: 4rem;
  margin-bottom: 4rem;
}

.widget-header {
  text-align: left;
  max-width: 600px;
}

.widget-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-white);
  text-transform: uppercase;
}

.widget-header p {
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  color: rgba(250, 250, 250, 0.5);
  margin-top: 0.5rem;
}

/* Widget 1: Hotspot Explorer Layout */
.hotspot-explorer-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
}

.explorer-device-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Premium CSS Smart Phone Shell Mock */
.device-phone-shell {
  width: 290px;
  height: 580px;
  border-radius: 40px;
  background-color: #000000;
  border: 11px solid #1c1c1e;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.9), 0 0 35px rgba(207, 46, 46, 0.15);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.device-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 18px;
  background-color: #000000;
  border-radius: 0 0 16px 16px;
  z-index: 100;
}

.device-screen-screen {
  position: absolute;
  inset: 0;
  border-radius: 29px;
  overflow: hidden;
  background-color: #090909;
  display: flex;
  flex-direction: column;
}

/* Mock Netflix App Screens */
.mock-netflix-player {
  position: relative;
  width: 100%;
  height: 195px;
  background-color: #000000;
  overflow: hidden;
}

.mock-player-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.mock-player-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  box-sizing: border-box;
}

.mock-badge-live {
  font-family: 'Outfit', sans-serif;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-white);
  background-color: rgba(207, 46, 46, 0.9);
  padding: 2.5px 6px;
  border-radius: 3px;
  width: fit-content;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.mock-play-controls {
  width: 100%;
}

.play-bar-track {
  width: 100%;
  height: 3px;
  background-color: rgba(250, 250, 250, 0.25);
  border-radius: 2px;
}

.play-bar-progress {
  width: 42%;
  height: 100%;
  background-color: var(--color-red);
  border-radius: 2px;
  box-shadow: 0 0 5px var(--color-red);
}

/* Mock Shoppable Drawer sliding */
.mock-netflix-drawer {
  position: absolute;
  left: 0;
  bottom: 34px;
  width: 100%;
  background-color: rgba(14, 14, 14, 0.95);
  border-top: 1px solid rgba(250, 250, 250, 0.08);
  padding: 12px 14px 14px 14px;
  box-sizing: border-box;
  z-index: 15;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.mock-netflix-drawer.open {
  transform: translateY(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.drawer-header span {
  font-family: 'Outfit', sans-serif;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: rgba(250, 250, 250, 0.45);
}

.drawer-close {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(250, 250, 250, 0.2);
}

.drawer-product {
  display: flex;
  gap: 10px;
  align-items: center;
}

.product-thumb {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(250,250,250,0.08);
}

.product-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.product-details h5 {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: var(--color-white);
}

.product-details p {
  font-size: 8px;
  color: rgba(250, 250, 250, 0.5);
  margin: 0 !important;
}

.product-details p .stock {
  color: #4ade80;
  font-weight: 800;
  margin-left: 4px;
}

/* Mock Navigation bar bottom screen */
.mock-netflix-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 35px;
  background-color: #080808;
  border-top: 1px solid rgba(250, 250, 250, 0.05);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 20;
  padding: 0 10px;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
  font-size: 7.5px;
  font-weight: 500;
  color: rgba(250, 250, 250, 0.35);
}

.mock-netflix-nav span.active {
  color: var(--color-red);
  font-weight: 800;
}

/* Pulsating interactive Hotspots */
.hotspot-dot {
  position: absolute;
  width: 22px;
  height: 22px;
  background-color: rgba(207, 46, 46, 0.85);
  border: 2px solid var(--color-white);
  border-radius: 50%;
  cursor: pointer;
  z-index: 30;
  box-shadow: 0 0 15px rgba(207, 46, 46, 0.8);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s;
}

.hotspot-dot:hover, .hotspot-dot.active {
  transform: scale(1.3);
  background-color: var(--color-white);
  border-color: var(--color-red);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.9);
}

.hotspot-pulse {
  position: absolute;
  inset: -6px;
  border: 2px solid var(--color-red);
  border-radius: 50%;
  opacity: 0;
  animation: hotspot-pulse-anim 2.0s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
  pointer-events: none;
}

@keyframes hotspot-pulse-anim {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  40% {
    opacity: 0.8;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* Detail cards container (right column) */
.explorer-details-col {
  position: relative;
  width: 100%;
  min-height: 380px;
  display: flex;
  align-items: center;
}

.hotspot-details-card {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  width: 100%;
  background-color: var(--color-gray-dark);
  border: 1px solid rgba(250, 250, 250, 0.05);
  border-radius: 16px;
  padding: 2.5rem;
  box-sizing: border-box;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.hotspot-details-card.active {
  display: flex !important;
  flex-direction: column;
  gap: 1.2rem;
  opacity: 1;
  transform: translateY(0);
}

.hotspot-details-card h4 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-white);
  text-transform: uppercase;
}

.hotspot-details-card p.highlight-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--color-red);
  text-transform: uppercase;
  margin: 0 !important;
}

.hotspot-details-card p {
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  color: rgba(250, 250, 250, 0.7);
  line-height: 1.6;
  margin: 0 !important;
}

.spec-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(250, 250, 250, 0.08);
  padding-top: 1.2rem;
}

.spec-list li {
  font-size: 0.95rem;
  color: rgba(250, 250, 250, 0.5);
  display: flex;
  justify-content: space-between;
}

.spec-list li span {
  font-weight: 700;
  color: var(--color-white);
}

.metric-mini-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(250, 250, 250, 0.08);
  padding-top: 1.2rem;
}

.metric-mini {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.metric-mini span:first-child {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1;
}

.metric-mini span:last-child {
  font-size: 0.78rem;
  color: rgba(250, 250, 250, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Widget 2: A/B Testing Comparison Widget */
.ab-comparison-widget {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.ab-toggle-bar {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.ab-toggle-btn {
  background-color: #161615;
  border: 1px solid rgba(250, 250, 250, 0.08);
  padding: 14px 28px;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(0.72rem, 1.2vw, 0.85rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.5);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.ab-toggle-btn:hover {
  border-color: rgba(250, 250, 250, 0.2);
  color: var(--color-white);
}

.ab-toggle-btn.active {
  background-color: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
  box-shadow: 0 10px 25px rgba(207, 46, 46, 0.45);
}

.ab-cards-container {
  position: relative;
  width: 100%;
  min-height: 380px;
}

.ab-comparison-card {
  display: none;
  opacity: 0;
  transform: scale(0.98) translateY(10px);
  width: 100%;
  background-color: var(--color-gray-dark);
  border: 1px solid rgba(250, 250, 250, 0.05);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 16px;
  box-sizing: border-box;
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.ab-comparison-card.active {
  display: block !important;
  opacity: 1;
  transform: scale(1) translateY(0);
}

.ab-badge {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.ab-badge.control {
  background-color: rgba(250, 250, 250, 0.08);
  color: rgba(250, 250, 250, 0.7);
  border: 1px solid rgba(250, 250, 250, 0.15);
}

.ab-badge.variant {
  background-color: rgba(207, 46, 46, 0.15);
  color: var(--color-red);
  border: 1px solid rgba(207, 46, 46, 0.35);
  box-shadow: 0 0 15px rgba(207, 46, 46, 0.15);
}

.ab-comparison-card h4 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.ab-desc {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: rgba(250, 250, 250, 0.7);
  line-height: 1.6;
  margin-bottom: 2rem !important;
}

.friction-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.friction-step {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(250, 250, 250, 0.05);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  color: rgba(250, 250, 250, 0.6);
  font-weight: 500;
}

.friction-step span:first-child {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(250, 250, 250, 0.15);
  color: var(--color-white);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 800;
  font-size: 0.8rem;
}

.friction-step.positive {
  border-color: rgba(74, 222, 128, 0.2);
  background-color: rgba(74, 222, 128, 0.04);
  color: rgba(250, 250, 250, 0.85);
}

.friction-step.positive span:first-child {
  background-color: #4ade80;
  color: #080808;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.4);
}

.ab-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  border-top: 1px solid rgba(250, 250, 250, 0.08);
  padding-top: 2rem;
  margin-top: 1.5rem;
}

.ab-metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ab-metric-num {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
}

.ab-metric-num.negative {
  color: #f87171;
}

.ab-metric-num.positive {
  color: #4ade80;
  text-shadow: 0 0 25px rgba(74, 222, 128, 0.25);
}

.ab-metric-lbl {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(250, 250, 250, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Widget 3: Stepper Widget */
.stepper-widget {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 4rem);
  background-color: var(--color-gray-dark);
  border: 1px solid rgba(250, 250, 250, 0.05);
  padding: clamp(2rem, 4vw, 3.5rem);
  border-radius: 16px;
  box-sizing: border-box;
}

.stepper-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 0 2rem;
}

.stepper-timeline::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: rgba(250, 250, 250, 0.08);
  border-radius: 2px;
  z-index: 1;
}

.stepper-line-progress {
  position: absolute;
  top: 15px;
  left: 0;
  width: 0%;
  height: 4px;
  background-color: var(--color-red);
  border-radius: 2px;
  z-index: 2;
  box-shadow: 0 0 10px rgba(207, 46, 46, 0.6);
  transition: width 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 3;
  cursor: pointer;
  position: relative;
  user-select: none;
}

.node-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--color-gray-dark);
  border: 3.5px solid rgba(250, 250, 250, 0.15);
  color: rgba(250, 250, 250, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.node-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: rgba(250, 250, 250, 0.4);
  text-transform: uppercase;
  transition: all 0.4s ease;
}

.step-node:hover .node-num {
  border-color: rgba(250, 250, 250, 0.35);
  color: rgba(250, 250, 250, 0.7);
}

.step-node.active .node-num {
  background-color: var(--color-white);
  border-color: var(--color-red);
  color: var(--color-red);
  transform: scale(1.15);
  box-shadow: 0 0 20px rgba(207, 46, 46, 0.5);
}

.step-node.active .node-title {
  color: var(--color-white);
}

.step-node.completed .node-num {
  background-color: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
}

.step-node.completed .node-title {
  color: rgba(250, 250, 250, 0.65);
}

.stepper-display-wrapper {
  position: relative;
  width: 100%;
  min-height: 180px;
  overflow: hidden;
}

.step-display-card {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.step-display-card.active {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
}

.step-card-num {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--color-red);
  margin-bottom: 0.5rem;
}

.step-display-card h4 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-white);
  margin-bottom: 0.8rem;
}

.step-display-card p {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: rgba(250, 250, 250, 0.7);
  line-height: 1.6;
  margin: 0 !important;
}

/* ==========================================
   PANE 2: DEEP DIVE (ACCORDIONS)
   ========================================== */
.accordions-container {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.case-accordion {
  background-color: var(--color-gray-dark);
  border: 1px solid rgba(250, 250, 250, 0.05);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}

.case-accordion:hover {
  border-color: rgba(207, 46, 46, 0.2);
}

.case-accordion.open {
  border-color: rgba(207, 46, 46, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.accordion-trigger {
  display: flex;
  align-items: center;
  padding: 1.8rem 2.2rem;
  cursor: pointer;
  user-select: none;
  gap: 1.5rem;
}

.accordion-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--color-red);
}

.accordion-trigger h4 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-white);
  flex-grow: 1;
}

.accordion-icon {
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  background-color: rgba(250, 250, 250, 0.5);
  transition: background-color 0.3s;
}

.accordion-icon::before {
  top: 9px;
  left: 2px;
  width: 16px;
  height: 2px;
}

.accordion-icon::after {
  top: 2px;
  left: 9px;
  width: 2px;
  height: 16px;
}

.case-accordion.open .accordion-icon {
  transform: rotate(135deg);
}

.case-accordion.open .accordion-icon::before,
.case-accordion.open .accordion-icon::after {
  background-color: var(--color-red);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.accordion-inner {
  padding: 0 2.2rem 2.2rem clamp(2.5rem, 5vw, 4.8rem);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.accordion-inner p {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: rgba(250, 250, 250, 0.65);
  line-height: 1.7;
  margin: 0 !important;
}

.accordion-inner p.lead-text {
  font-size: clamp(1.2rem, 1.8vw, 1.35rem);
  color: var(--color-white);
  font-weight: 400;
}

.stats-bullet-list {
  transition: all 0.4s ease;
}

.step-node:hover .node-num {
  border-color: rgba(250, 250, 250, 0.35);
  color: rgba(250, 250, 250, 0.7);
}

.step-node.active .node-num {
  background-color: var(--color-white);
  border-color: var(--color-red);
  color: var(--color-red);
  transform: scale(1.15);
  box-shadow: 0 0 20px rgba(207, 46, 46, 0.5);
}

.step-node.active .node-title {
  color: var(--color-white);
}

.step-node.completed .node-num {
  background-color: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
}

.step-node.completed .node-title {
  color: rgba(250, 250, 250, 0.65);
}

.stepper-display-wrapper {
  position: relative;
  width: 100%;
  min-height: 180px;
  overflow: hidden;
}

.step-display-card {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.step-display-card.active {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
}

.step-card-num {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--color-red);
  margin-bottom: 0.5rem;
}

.step-display-card h4 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-white);
  margin-bottom: 0.8rem;
}

.step-display-card p {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: rgba(250, 250, 250, 0.7);
  line-height: 1.6;
  margin: 0 !important;
}

/* ==========================================
   PANE 2: DEEP DIVE (ACCORDIONS)
   ========================================== */
.accordions-container {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.case-accordion {
  background-color: var(--color-gray-dark);
  border: 1px solid rgba(250, 250, 250, 0.05);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}

.case-accordion:hover {
  border-color: rgba(207, 46, 46, 0.2);
}

.case-accordion.open {
  border-color: rgba(207, 46, 46, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.accordion-trigger {
  display: flex;
  align-items: center;
  padding: 1.8rem 2.2rem;
  cursor: pointer;
  user-select: none;
  gap: 1.5rem;
}

.accordion-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--color-red);
}

.accordion-trigger h4 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-white);
  flex-grow: 1;
}

.accordion-icon {
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  background-color: rgba(250, 250, 250, 0.5);
  transition: background-color 0.3s;
}

.accordion-icon::before {
  top: 9px;
  left: 2px;
  width: 16px;
  height: 2px;
}

.accordion-icon::after {
  top: 2px;
  left: 9px;
  width: 2px;
  height: 16px;
}

.case-accordion.open .accordion-icon {
  transform: rotate(135deg);
}

.case-accordion.open .accordion-icon::before,
.case-accordion.open .accordion-icon::after {
  background-color: var(--color-red);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.accordion-inner {
  padding: 0 2.2rem 2.2rem clamp(2.5rem, 5vw, 4.8rem);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.accordion-inner p {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: rgba(250, 250, 250, 0.65);
  line-height: 1.7;
  margin: 0 !important;
}

.accordion-inner p.lead-text {
  font-size: clamp(1.2rem, 1.8vw, 1.35rem);
  color: var(--color-white);
  font-weight: 400;
}

.stats-bullet-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 1rem 0;
}

.stats-bullet-list li {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(250, 250, 250, 0.65);
  padding-left: 24px;
  position: relative;
  line-height: 1.6;
}

.stats-bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-red);
  box-shadow: 0 0 6px var(--color-red);
}

.stats-bullet-list li strong {
  color: var(--color-white);
}

/* Live Figma Prototype Embed Features */
.device-control-tabs {
  display: flex;
  gap: clamp(8px, 1.5vw, 12px);
  justify-content: center;
  margin-bottom: 18px;
}

.device-tab-btn {
  background-color: #161615;
  border: 1px solid rgba(250, 250, 250, 0.08);
  padding: 8px 18px;
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.45);
  border-radius: 20px;
  cursor: pointer;
  outline: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.device-tab-btn:hover {
  border-color: rgba(250, 250, 250, 0.2);
  color: var(--color-white);
}

.device-tab-btn.active {
  background-color: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
  box-shadow: 0 5px 15px rgba(207, 46, 46, 0.35);
}

.device-explorer-content {
  display: none;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.device-explorer-content.active {
  display: block !important;
}

.explorer-phone-screen-img,
.crm-screen-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.device-phone-shell {
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1), height 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-radius 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.device-phone-shell.figma-active {
  width: 330px !important;
  height: 660px !important;
  border-radius: 46px !important;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.95), 0 0 50px rgba(207, 46, 46, 0.3) !important;
}

.device-phone-shell.figma-active .device-screen-screen {
  border-radius: 35px !important;
}

.device-phone-shell.figma-active .device-notch {
  width: 130px !important;
  height: 20px !important;
  border-radius: 0 0 18px 18px !important;
}

.device-figma-pane {
  display: none;
  width: 100%;
  height: 100%;
  position: relative;
  background-color: #090909;
  overflow: hidden;
}

.device-figma-pane.active {
  display: block !important;
}

.device-figma-iframe {
  position: absolute;
  width: 232%;
  height: 122%;
  top: -9%;
  left: -66%;
  border: none;
  background-color: #090909;
}

.figma-loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #090909;
  gap: 15px;
  color: rgba(250, 250, 250, 0.6);
  font-size: 10px;
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: 5;
  transition: opacity 0.5s ease;
}

.figma-loading-overlay.loaded {
  opacity: 0;
  pointer-events: none;
}

.figma-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(250, 250, 250, 0.1);
  border-top: 2px solid var(--color-red);
  border-radius: 50%;
  animation: figma-spin 0.8s linear infinite;
  box-shadow: 0 0 10px rgba(207, 46, 46, 0.2);
}

@keyframes figma-spin {
  100% { transform: rotate(360deg); }
}

/* Responsive Overrides for Case study explorer */
@media screen and (max-width: 990px) {
  .hotspot-explorer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .explorer-details-col {
    min-height: auto;
  }
}

@media screen and (max-width: 767px) {
  .ab-toggle-bar {
    flex-direction: column;
    width: 100%;
  }
  .ab-toggle-btn {
    width: 100%;
  }
  .ab-cards-container {
    min-height: auto;
  }
  .ab-metrics-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .stepper-timeline {
    padding: 0;
  }
  .node-title {
    display: none; /* Hide titles on small screen for nodes */
  }
  .stepper-display-wrapper {
    min-height: auto;
  }
  .accordion-trigger {
    padding: 1.5rem 1.5rem;
    gap: 1rem;
  }
  .accordion-inner {
    padding: 0 1.5rem 1.5rem 1.5rem;
  }
}

/* ==========================================================================
   CENDROL CUSTOM EDITORIAL SPLIT-SCREEN DASHBOARD REDESIGN
   ========================================================================== */
.cendrol-dashboard-container {
  display: grid;
  grid-template-columns: 410px 1fr;
  gap: 3.5rem;
  margin-top: 3.5rem;
  align-items: start;
}

.cendrol-dashboard-left {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: rgba(13, 13, 12, 0.7);
  border: 1px solid rgba(250, 250, 250, 0.04);
  border-radius: 24px;
  padding: 1.8rem;
  backdrop-filter: blur(30px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(250, 250, 250, 0.05);
}

.cendrol-chapter-tab {
  background: rgba(250, 250, 250, 0.01);
  border: 1px solid rgba(250, 250, 250, 0.02);
  text-align: left;
  padding: 1.5rem;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.cendrol-chapter-tab::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 0;
  background-color: var(--color-red);
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 12px var(--color-red);
}

.cendrol-chapter-tab:hover {
  background-color: rgba(250, 250, 250, 0.03);
  border-color: rgba(250, 250, 250, 0.06);
  transform: translateX(5px);
}

.cendrol-chapter-tab.active {
  background-color: rgba(207, 46, 46, 0.05);
  border-color: rgba(207, 46, 46, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.cendrol-chapter-tab.active::before {
  height: 100%;
}

.cendrol-chapter-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.cendrol-chapter-num {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: rgba(250, 250, 250, 0.35);
  text-transform: uppercase;
}

.cendrol-chapter-tab.active .cendrol-chapter-num {
  color: var(--color-red);
}

.cendrol-chapter-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(250, 250, 250, 0.1);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cendrol-chapter-tab.active .cendrol-chapter-indicator {
  background-color: var(--color-red);
  box-shadow: 0 0 10px var(--color-red);
  animation: tabPulse 1.5s infinite alternate;
}

@keyframes tabPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 1; }
}

.cendrol-chapter-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: rgba(250, 250, 250, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: color 0.4s ease;
}

.cendrol-chapter-tab.active .cendrol-chapter-title {
  color: var(--color-white);
}

.cendrol-chapter-desc {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(250, 250, 250, 0.4);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), margin-top 0.4s;
}

.cendrol-chapter-tab.active .cendrol-chapter-desc {
  max-height: 120px;
  margin-top: 0.4rem;
  color: rgba(250, 250, 250, 0.55);
}

/* Right side showcase */
.cendrol-dashboard-right {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.cendrol-device-frame {
  background-color: #060606;
  border: 1px solid rgba(250, 250, 250, 0.08);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.95), 0 0 50px rgba(207, 46, 46, 0.05);
  width: 100%;
  display: flex;
  flex-direction: column;
  border-top-color: rgba(250, 250, 250, 0.15);
}

/* Redesigned HUD Overlay */
.cendrol-hud-header {
  background: rgba(13, 13, 12, 0.95);
  border-bottom: 1px solid rgba(250, 250, 250, 0.05);
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.cendrol-hud-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  color: var(--color-white);
}

.cendrol-hud-logo span {
  color: var(--color-red);
}

.cendrol-hud-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cendrol-hud-signal {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseGreen 1.5s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); opacity: 0.6; }
}

.cendrol-hud-status-text {
  font-family: monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(250, 250, 250, 0.55);
  text-transform: uppercase;
}

.cendrol-hud-meta {
  font-family: monospace;
  font-size: 0.65rem;
  color: rgba(250, 250, 250, 0.35);
  letter-spacing: 0.05em;
}

.cendrol-video-container {
  position: relative;
  aspect-ratio: 16/9;
  width: 100%;
  overflow: hidden;
}

/* Glossy screen glare effect overlay */
.cendrol-video-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(250, 250, 250, 0.03) 0%, rgba(250, 250, 250, 0) 100%);
  pointer-events: none;
  z-index: 5;
}

.cendrol-device-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Live Analytics HUD Overlay */
.cendrol-hud-stats-overlay {
  position: absolute;
  bottom: 1.2rem;
  right: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 8;
  pointer-events: none;
}

.cendrol-hud-badge {
  background: rgba(13, 13, 12, 0.85);
  border: 1px solid rgba(250, 250, 250, 0.08);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: monospace;
  font-size: 0.62rem;
  color: rgba(250, 250, 250, 0.7);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.cendrol-hud-badge span {
  font-weight: 700;
}

.cendrol-hud-badge.red-glow span {
  color: var(--color-red);
}

.cendrol-hud-badge.green-glow span {
  color: #10b981;
}

.cendrol-hud-footer {
  background: rgba(13, 13, 12, 0.95);
  border-top: 1px solid rgba(250, 250, 250, 0.05);
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.cendrol-hud-progress-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-grow: 1;
  margin-right: 2rem;
}

.cendrol-hud-time {
  font-family: monospace;
  font-size: 0.65rem;
  color: rgba(250, 250, 250, 0.45);
}

.cendrol-hud-progress-bar {
  height: 3px;
  background-color: rgba(250, 250, 250, 0.1);
  border-radius: 2px;
  flex-grow: 1;
  position: relative;
  overflow: hidden;
}

.cendrol-hud-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 65%;
  background-color: var(--color-red);
  box-shadow: 0 0 6px var(--color-red);
  animation: syncProgress 12s infinite linear;
}

@keyframes syncProgress {
  0% { width: 0%; }
  100% { width: 100%; }
}

.cendrol-hud-action-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--color-red);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cendrol-hud-action-tag::before {
  content: '';
  width: 4px;
  height: 4px;
  background-color: var(--color-red);
  border-radius: 50%;
}

/* Redesigned Context Cards Section */
.cendrol-context-card {
  background: linear-gradient(135deg, rgba(22, 22, 21, 0.5) 0%, rgba(13, 13, 12, 0.8) 100%);
  border: 1px solid rgba(250, 250, 250, 0.05);
  border-radius: 24px;
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  backdrop-filter: blur(25px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(250, 250, 250, 0.05);
  position: relative;
  overflow: hidden;
}

/* Futuristic grid texture background overlay */
.cendrol-context-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(250, 250, 250, 0.015) 1px, transparent 0);
  background-size: 16px 16px;
  pointer-events: none;
  opacity: 0.8;
}

.cendrol-context-quote {
  font-size: 1.45rem;
  font-weight: 300;
  font-style: italic;
  color: var(--color-white);
  line-height: 1.6;
  border-left: 3px solid var(--color-red);
  padding-left: 1.8rem;
  position: relative;
  z-index: 2;
}

.cendrol-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  position: relative;
  z-index: 2;
}

.cendrol-info-card {
  background: rgba(13, 13, 12, 0.6);
  border: 1px solid rgba(250, 250, 250, 0.04);
  border-radius: 18px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s;
  overflow: hidden;
}

.cendrol-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, transparent 49%, rgba(207, 46, 46, 0.08) 50%);
  pointer-events: none;
}

.cendrol-info-card:hover {
  border-color: rgba(207, 46, 46, 0.15);
  transform: translateY(-4px);
}

.cendrol-info-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(250, 250, 250, 0.04);
  padding-bottom: 0.6rem;
}

.cendrol-info-card h5 {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--color-red);
  text-transform: uppercase;
}

.cendrol-info-card-badge {
  font-family: monospace;
  font-size: 0.58rem;
  background: rgba(250, 250, 250, 0.03);
  border: 1px solid rgba(250, 250, 250, 0.08);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  color: rgba(250, 250, 250, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cendrol-info-card p {
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(250, 250, 250, 0.55);
  line-height: 1.6;
}

@media screen and (max-width: 1024px) {
  .cendrol-dashboard-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ==========================================================================
   UPSC COMPANION APP CUSTOM DESIGN SYSTEM
   ========================================================================== */
:root {
  --color-upsc-amber: #f59e0b;
  --color-upsc-amber-glow: rgba(245, 158, 11, 0.4);
  --color-upsc-teal: #0d9488;
  --color-upsc-teal-glow: rgba(13, 148, 136, 0.3);
}

.upsc-case-container {
  position: relative;
}

/* UPSC Mode Switcher Custom Slider */
.upsc-mode-switcher {
  position: relative;
  background-color: rgba(22, 22, 21, 0.4);
  border: 1px solid rgba(250, 250, 250, 0.05);
  border-radius: 30px;
  padding: 4px;
  display: inline-flex;
  gap: 4px;
  backdrop-filter: blur(20px);
  margin: 2rem auto;
}

.upsc-slider {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  background-color: var(--color-upsc-amber) !important;
  box-shadow: 0 4px 15px var(--color-upsc-amber-glow);
  border-radius: 26px;
  transition: all 0.5s cubic-bezier(0.76, 0, 0.24, 1);
  z-index: 1;
}

.upsc-mode-btn {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(250, 250, 250, 0.55);
  background: none;
  border: none;
  padding: 0.8rem 1.6rem;
  border-radius: 26px;
  cursor: pointer;
  transition: color 0.4s ease;
  position: relative;
  z-index: 2;
  text-transform: uppercase;
}

.upsc-mode-btn:hover {
  color: var(--color-white);
}

.upsc-mode-btn.active {
  color: var(--color-white) !important;
}

/* Screen Explorer Grid */
.upsc-explorer-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 3.5rem;
  margin-top: 3rem;
  align-items: center;
}

/* Device Mockup Shell */
.upsc-phone-shell {
  background-color: #060606;
  border: 10px solid #222221;
  border-radius: 40px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.95), 0 0 40px rgba(245, 158, 11, 0.05);
  aspect-ratio: 9/19.5;
  width: 100%;
  border-top-color: #2c2c2a;
}

.upsc-phone-shell::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to bottom, rgba(250, 250, 250, 0.02) 0%, rgba(250, 250, 250, 0) 100%);
  pointer-events: none;
  z-index: 15;
}

/* Live Video Container inside Phone Frame */
.upsc-video-pane {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 8;
  display: none;
  background-color: #000;
  overflow: hidden;
}

.upsc-video-pane.active {
  display: block;
}

.upsc-device-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Pulse Hotspots */
.upsc-hotspot {
  background-color: var(--color-upsc-amber) !important;
  box-shadow: 0 0 10px var(--color-upsc-amber);
}

.upsc-hotspot.active {
  background-color: var(--color-white) !important;
  box-shadow: 0 0 20px var(--color-upsc-amber);
  transform: scale(1.2);
}

.upsc-pulse {
  border: 2px solid var(--color-upsc-amber) !important;
  box-shadow: 0 0 8px var(--color-upsc-amber);
}

/* Device Mode Selector Tabs */
.upsc-control-tabs {
  display: flex;
  background-color: rgba(22, 22, 21, 0.6);
  border: 1px solid rgba(250, 250, 250, 0.04);
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 1.5rem;
  width: 100%;
}

.upsc-tab-btn {
  flex: 1;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(250, 250, 250, 0.45);
  background: none;
  border: none;
  padding: 0.7rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-transform: uppercase;
}

.upsc-tab-btn:hover {
  color: var(--color-white);
  background-color: rgba(250, 250, 250, 0.02);
}

.upsc-tab-btn.active {
  background-color: var(--color-upsc-amber);
  color: var(--color-white);
  box-shadow: 0 5px 15px var(--color-upsc-amber-glow);
}

/* Details Cards Column styling */
.upsc-details-card {
  background: rgba(13, 13, 12, 0.5);
  border: 1px solid rgba(250, 250, 250, 0.04);
  border-radius: 20px;
  padding: 2.2rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(250, 250, 250, 0.05);
}

.upsc-details-card h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.upsc-tag {
  color: var(--color-upsc-amber) !important;
  font-family: monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 1.2rem;
  display: block;
}

.upsc-metric {
  background-color: rgba(245, 158, 11, 0.04) !important;
  border: 1px solid rgba(245, 158, 11, 0.15) !important;
}

.upsc-metric span:first-child {
  color: var(--color-upsc-amber) !important;
}

/* Stepper Component Redesign */
.upsc-stepper {
  background: rgba(13, 13, 12, 0.5) !important;
  border: 1px solid rgba(250, 250, 250, 0.04) !important;
  border-radius: 24px !important;
  padding: 3rem !important;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6) !important;
}

.upsc-progress-line {
  background-color: var(--color-upsc-amber) !important;
  box-shadow: 0 0 10px var(--color-upsc-amber);
}

.upsc-step-node .step-node-inner {
  background-color: #121211 !important;
  border: 3px solid rgba(250, 250, 250, 0.12) !important;
  color: rgba(250, 250, 250, 0.4) !important;
}

.upsc-step-node.active .step-node-inner {
  background-color: var(--color-white) !important;
  border-color: var(--color-upsc-amber) !important;
  color: var(--color-upsc-amber) !important;
  box-shadow: 0 0 20px var(--color-upsc-amber-glow);
}

.upsc-step-node.completed .step-node-inner {
  background-color: var(--color-upsc-amber) !important;
  border-color: var(--color-upsc-amber) !important;
  color: var(--color-white) !important;
}

.upsc-step-tag {
  background-color: rgba(245, 158, 11, 0.05) !important;
  border: 1px solid rgba(245, 158, 11, 0.15) !important;
  color: var(--color-upsc-amber) !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
}

/* UPSC Key Results Grid Custom Card styling */
.upsc-results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.5rem !important;
}

.upsc-result-stat {
  background: rgba(13, 13, 12, 0.6);
  border: 1px solid rgba(250, 250, 250, 0.04);
  border-radius: 18px;
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.upsc-result-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: transparent;
  transition: background-color 0.4s ease;
}

.upsc-result-stat:hover {
  border-color: rgba(245, 158, 11, 0.18);
  transform: translateY(-4px);
}

.upsc-result-stat:hover::before {
  background-color: var(--color-upsc-amber);
}

.upsc-stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-upsc-amber);
  letter-spacing: -0.02em;
}

.upsc-stat-label {
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(250, 250, 250, 0.5);
  line-height: 1.4;
}

/* Deep Dive Custom Styling */
.upsc-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.upsc-feature-card {
  border: 1px solid rgba(250, 250, 250, 0.03);
  background: rgba(13, 13, 12, 0.5);
  transition: all 0.4s ease;
}

.upsc-feature-card:hover {
  border-color: rgba(245, 158, 11, 0.15);
  transform: translateY(-2px);
}

.upsc-feature-card h4 {
  color: var(--color-upsc-amber) !important;
}

.upsc-acc-highlight {
  background-color: rgba(245, 158, 11, 0.03) !important;
  border: 1px solid rgba(245, 158, 11, 0.12) !important;
}

.upsc-acc-highlight span:first-child {
  color: var(--color-upsc-amber) !important;
}

.upsc-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background-color: var(--color-upsc-amber);
  color: var(--color-white);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 1.1rem 2.2rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px var(--color-upsc-amber-glow);
  text-decoration: none;
  border: 1px solid transparent;
  margin-top: 1.5rem;
}

.upsc-cta-btn:hover {
  background-color: #d97706;
  box-shadow: 0 15px 35px rgba(217, 119, 6, 0.45);
  transform: translateY(-2px);
}

@media screen and (max-width: 1024px) {
  .upsc-explorer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .upsc-results-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media screen and (max-width: 600px) {
  .upsc-results-grid {
    grid-template-columns: 1fr !important;
  }
  .upsc-stepper {
    padding: 1.5rem !important;
  }
}

/* ==========================================================================
   YOOKI UPSC AI CONVERSATIONAL SYLLABUS SIMULATOR STYLING
   ========================================================================== */
.yooki-simulator-container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  margin-top: 3.5rem;
  align-items: start;
}

/* Left Side Mind-Map grid */
.yooki-mindmap-workspace {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: rgba(13, 13, 12, 0.7);
  border: 1px solid rgba(250, 250, 250, 0.04);
  border-radius: 24px;
  padding: 2.2rem;
  backdrop-filter: blur(30px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(250, 250, 250, 0.05);
}

.yooki-subject-node {
  background: rgba(250, 250, 250, 0.01);
  border: 1px solid rgba(250, 250, 250, 0.03);
  text-align: left;
  padding: 1.5rem;
  border-radius: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.yooki-subject-node::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 0;
  background-color: var(--color-upsc-amber);
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 12px var(--color-upsc-amber);
}

.yooki-subject-node:hover {
  background-color: rgba(250, 250, 250, 0.02);
  border-color: rgba(250, 250, 250, 0.06);
  transform: translateX(6px);
}

.yooki-subject-node.active {
  background-color: rgba(245, 158, 11, 0.03);
  border-color: rgba(245, 158, 11, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.yooki-subject-node.active::before {
  height: 100%;
}

.yooki-node-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.yooki-node-tag {
  font-family: monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(250, 250, 250, 0.35);
  text-transform: uppercase;
}

.yooki-subject-node.active .yooki-node-tag {
  color: var(--color-upsc-amber);
}

.yooki-node-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: rgba(250, 250, 250, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: color 0.4s ease;
}

.yooki-subject-node.active .yooki-node-name {
  color: var(--color-white);
}

/* Monospace progress circles */
.yooki-node-progress {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}

.yooki-progress-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--color-upsc-amber);
}

.yooki-progress-label {
  font-family: monospace;
  font-size: 0.58rem;
  color: rgba(250, 250, 250, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Right Side: Chat HUD Simulator */
.yooki-chat-terminal {
  background: linear-gradient(135deg, rgba(22, 22, 21, 0.5) 0%, rgba(13, 13, 12, 0.8) 100%);
  border: 1px solid rgba(250, 250, 250, 0.05);
  border-radius: 28px;
  padding: 2.2rem;
  backdrop-filter: blur(25px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(250, 250, 250, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  height: 480px;
  box-sizing: border-box;
}

.yooki-chat-header {
  border-bottom: 1px solid rgba(250, 250, 250, 0.04);
  padding-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.yooki-chat-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--color-white);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.yooki-chat-title::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--color-upsc-amber);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-upsc-amber);
  animation: tabPulse 1.5s infinite alternate;
}

.yooki-chat-status {
  font-family: monospace;
  font-size: 0.65rem;
  color: rgba(250, 250, 250, 0.4);
}

/* Chat bubble body stream */
.yooki-chat-body {
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-right: 0.5rem;
}

/* Styles for scrollbar inside chat stream */
.yooki-chat-body::-webkit-scrollbar {
  width: 4px;
}
.yooki-chat-body::-webkit-scrollbar-thumb {
  background-color: rgba(250, 250, 250, 0.05);
  border-radius: 2px;
}

.yooki-chat-bubble {
  max-width: 85%;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  animation: bubbleReveal 0.4s ease forwards;
}

@keyframes bubbleReveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.yooki-chat-bubble.aspirant {
  align-self: flex-end;
}

.yooki-chat-bubble.ai {
  align-self: flex-start;
}

.yooki-bubble-sender {
  font-family: monospace;
  font-size: 0.58rem;
  font-weight: 700;
  color: rgba(250, 250, 250, 0.35);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.yooki-chat-bubble.aspirant .yooki-bubble-sender {
  text-align: right;
}

.yooki-bubble-text {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.5;
  padding: 1.1rem 1.4rem;
  border-radius: 18px;
}

.yooki-chat-bubble.aspirant .yooki-bubble-text {
  background-color: rgba(250, 250, 250, 0.04);
  border: 1px solid rgba(250, 250, 250, 0.05);
  color: rgba(250, 250, 250, 0.85);
  border-bottom-right-radius: 2px;
}

.yooki-chat-bubble.ai .yooki-bubble-text {
  background-color: rgba(245, 158, 11, 0.03);
  border: 1px solid rgba(245, 158, 11, 0.15);
  color: var(--color-white);
  border-bottom-left-radius: 2px;
  position: relative;
}

/* Monospace Blinking Typewriter Cursor */
.yooki-typewriter-cursor::after {
  content: '|';
  color: var(--color-upsc-amber);
  animation: blinkCursor 0.8s infinite;
  font-weight: 900;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* Insight Summary Stats Panel */
.yooki-insight-panel {
  background: rgba(13, 13, 12, 0.7);
  border: 1px solid rgba(250, 250, 250, 0.04);
  border-radius: 24px;
  padding: 2.2rem;
  backdrop-filter: blur(30px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(250, 250, 250, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}

.yooki-insight-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(250, 250, 250, 0.01) 1px, transparent 0);
  background-size: 16px 16px;
  pointer-events: none;
}

.yooki-insight-header {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: var(--color-upsc-amber);
  text-transform: uppercase;
  border-bottom: 1px solid rgba(250, 250, 250, 0.04);
  padding-bottom: 0.6rem;
}

.yooki-insight-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.8rem;
}

.yooki-insight-box {
  background: rgba(13, 13, 12, 0.5);
  border: 1px solid rgba(250, 250, 250, 0.03);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.yooki-insight-box h5 {
  font-family: monospace;
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(250, 250, 250, 0.35);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.yooki-insight-box p {
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(250, 250, 250, 0.7);
  line-height: 1.5;
}

.yooki-insight-box.recommendation p {
  color: var(--color-white);
  font-weight: 500;
}

.yooki-insight-box.recommendation p span {
  color: var(--color-upsc-amber);
}

.yooki-insight-box.alert p span {
  color: #ef4444;
  font-weight: 600;
}

@media screen and (max-width: 1024px) {
  .yooki-simulator-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media screen and (max-width: 768px) {
  .yooki-insight-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .yooki-chat-terminal {
    height: 420px;
    padding: 1.5rem;
  }
}

/* ==========================================================================
   CENDROL CRM MOBILE SIMULATOR STYLING
   ========================================================================== */
.crm-control-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: rgba(250, 250, 250, 0.03);
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid rgba(250, 250, 250, 0.04);
}

.crm-tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: rgba(250, 250, 250, 0.4);
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.crm-tab-btn:hover {
  color: rgba(250, 250, 250, 0.7);
}

.crm-tab-btn.active {
  background-color: var(--color-white);
  color: var(--color-black);
}

/* CRM Phone Shell overrides */
.device-phone-shell.crm-phone-shell {
  border-color: rgba(250, 250, 250, 0.08);
  background-color: #0b0b0e;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(250, 250, 250, 0.05);
}

.crm-mobile-interface {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background-color: #0f0f13;
  color: var(--color-white);
  font-family: 'Inter', sans-serif;
  position: relative;
  overflow: hidden;
}

.crm-app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1rem 0.8rem;
  border-bottom: 1px solid rgba(250, 250, 250, 0.04);
  background-color: #121217;
}

.crm-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: #3b82f6; /* Premium CRM theme blue */
}

.crm-network-dot {
  width: 6px;
  height: 6px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

.crm-app-content {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1.2rem 1rem;
  overflow-y: auto;
  flex-grow: 1;
}

.crm-app-content.active {
  display: flex;
}

.crm-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: rgba(250, 250, 250, 0.85);
  margin-bottom: 0.2rem;
  letter-spacing: 0.02em;
}

/* CRM Card styles */
.crm-item-card {
  background-color: #16161f;
  border: 1px solid rgba(250, 250, 250, 0.04);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: all 0.3s ease;
  text-align: left;
}

.crm-item-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
}

.crm-card-time {
  font-family: monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: #3b82f6;
}

.crm-card-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.3;
}

.crm-card-meta {
  font-size: 0.72rem;
  color: rgba(250, 250, 250, 0.45);
}

.crm-btn-primary {
  background-color: #3b82f6;
  border: none;
  color: var(--color-white);
  padding: 0.5rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 0.4rem;
  width: 100%;
}

.crm-btn-primary:hover {
  background-color: #2563eb;
}

/* Tasks elements */
.crm-task-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background-color: #16161f;
  border: 1px solid rgba(250, 250, 250, 0.04);
  padding: 0.9rem 1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  text-align: left;
}

.crm-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #3b82f6;
  cursor: pointer;
  flex-shrink: 0;
}

.crm-task-label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  cursor: pointer;
  flex-grow: 1;
}

.crm-task-label .task-title {
  font-size: 0.82rem;
  color: rgba(250, 250, 250, 0.85);
  transition: color 0.3s ease;
  line-height: 1.3;
}

.crm-checkbox:checked + .crm-task-label .task-title {
  text-decoration: line-through;
  color: rgba(250, 250, 250, 0.35);
}

.crm-task-label .task-tag {
  font-family: monospace;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  width: fit-content;
}

.task-tag.whatsapp { background-color: rgba(16, 185, 129, 0.1); color: #10b981; }
.task-tag.call { background-color: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.task-tag.email { background-color: rgba(245, 158, 11, 0.1); color: var(--color-upsc-amber); }

/* Toasts elements */
.crm-content-desc {
  font-size: 0.78rem;
  color: rgba(250, 250, 250, 0.45);
  line-height: 1.4;
  text-align: left;
  margin-bottom: 0.5rem;
}

.crm-toast-triggers {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.toast-trigger-btn {
  background: rgba(250, 250, 250, 0.02);
  border: 1px solid rgba(250, 250, 250, 0.06);
  color: rgba(250, 250, 250, 0.7);
  padding: 0.7rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.toast-trigger-btn.success:hover { background-color: rgba(16, 185, 129, 0.05); border-color: rgba(16, 185, 129, 0.3); color: #10b981; }
.toast-trigger-btn.warning:hover { background-color: rgba(245, 158, 11, 0.05); border-color: rgba(245, 158, 11, 0.3); color: var(--color-upsc-amber); }
.toast-trigger-btn.error:hover { background-color: rgba(239, 68, 68, 0.05); border-color: rgba(239, 68, 68, 0.3); color: #ef4444; }

/* Toast alert box */
.crm-toast-overlay {
  position: absolute;
  bottom: -80px;
  left: 12px;
  right: 12px;
  background-color: #121217;
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
  transition: bottom 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 10;
  border: 1px solid rgba(250,250,250,0.06);
}

.crm-toast-overlay.visible {
  bottom: 12px;
}

.crm-toast-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.crm-toast-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.3;
}

/* Toast types states */
.crm-toast-overlay.success { border-color: rgba(16, 185, 129, 0.35); }
.crm-toast-overlay.success .crm-toast-icon { background-color: #10b981; box-shadow: 0 0 8px #10b981; }
.crm-toast-overlay.warning { border-color: rgba(245, 158, 11, 0.35); }
.crm-toast-overlay.warning .crm-toast-icon { background-color: var(--color-upsc-amber); box-shadow: 0 0 8px var(--color-upsc-amber); }
.crm-toast-overlay.error { border-color: rgba(239, 68, 68, 0.35); }
.crm-toast-overlay.error .crm-toast-icon { background-color: #ef4444; box-shadow: 0 0 8px #ef4444; }

/* ==========================================================================
   17. UNIFIED WORK PAGE MULTI-DOMAIN STYLING
   ========================================================================== */
.work-page-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 6rem) clamp(4rem, 8vw, 9rem) clamp(1.25rem, 5vw, 6rem);
  width: 100%;
}

.work-panes-wrapper {
  position: relative;
  width: 100%;
  margin-top: 1rem;
}

.work-pane {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.work-pane.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Grid for widescreen video card trailers */
.video-grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  width: 100%;
}

@media (min-width: 768px) {
  .video-grid-layout {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

/* Premium styling for standard static video cards */
.video-grid-layout .video-work-card {
  width: 100%;
  opacity: 0.95;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, opacity 0.3s ease;
}

.video-grid-layout .video-work-card:hover {
  transform: translateY(-6px);
  opacity: 1;
}

.video-grid-layout .video-preview-container {
  position: relative;
  aspect-ratio: 16/9;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
  background-color: #0c0c0c;
  border: 1px solid rgba(250, 250, 250, 0.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.video-grid-layout .video-work-card:hover .video-preview-container {
  border-color: rgba(207, 46, 46, 0.4);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 15px rgba(207, 46, 46, 0.15);
}

.video-grid-layout .video-preview {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-grid-layout .video-work-card:hover .video-preview {
  transform: scale(1.05);
}

.video-grid-layout .play-badge-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0.85;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.video-grid-layout .video-work-card:hover .play-badge-overlay {
  transform: translate(-50%, -50%) scale(1.05);
  opacity: 1;
}

.video-grid-layout .play-badge-overlay svg circle {
  transition: fill 0.3s ease;
}

.video-grid-layout .video-work-card:hover .play-badge-overlay svg circle {
  fill: #ff2b2b;
}

.video-grid-layout .card-work-text-content {
  margin-top: 1.2rem;
}

/* Custom Work switcher styles to keep it fully aligned with BBDO luxury aesthetics */
#work-page-switcher {
  position: relative;
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 5px;
  width: 100%;
  max-width: 500px;
  margin: 0 auto clamp(2.5rem, 4vw, 4rem) auto;
  z-index: 5;
}

#work-page-switcher .switcher-bg-slider {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  background-color: var(--color-red);
  border-radius: 9999px;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  box-shadow: 0 4px 15px rgba(207, 46, 46, 0.4);
}

#work-page-switcher .case-mode-btn {
  position: relative;
  z-index: 2;
  flex: 1;
  background: transparent;
  border: none;
  color: rgba(250, 250, 250, 0.55);
  font-family: var(--font-primary);
  font-size: clamp(12px, 1.2vw, 15px);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 20px;
  border-radius: 9999px;
  cursor: pointer;
  transition: color 0.3s ease;
}

#work-page-switcher .case-mode-btn.active {
  color: var(--color-white);
}

#work-page-switcher .case-mode-btn:hover:not(.active) {
  color: rgba(250, 250, 250, 0.85);
}

/* About Page Dual Timeline Switcher & Pane Styling */
.timeline-pane {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.timeline-pane.active {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   24. FEATURED TIMELINE MILESTONE STYLING (Ashes Short Film)
   ========================================================================== */
.timeline-item.milestone-featured {
  background: rgba(255, 0, 0, 0.03);
  border: 1px dashed rgba(255, 0, 0, 0.2);
  border-radius: 16px;
  padding: 24px;
  margin-left: -15px;
  padding-left: 24px;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.timeline-item.milestone-featured:hover {
  background: rgba(255, 0, 0, 0.06);
  border-color: rgba(255, 0, 0, 0.4);
  box-shadow: 0 10px 40px rgba(255, 0, 0, 0.05);
}

.timeline-marker.milestone-star {
  border-color: #ffd700;
  background-color: #000000;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  z-index: 3;
  transition: background-color 0.4s ease, transform 0.4s ease;
  left: -22px;
  top: 30px;
}

.timeline-item.milestone-featured:hover .timeline-marker.milestone-star {
  background-color: #ffd700;
  transform: scale(1.3) rotate(72deg);
}

.milestone-badge {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #ffd700;
  background-color: rgba(255, 215, 0, 0.1);
  padding: 4px 10px;
  border-radius: 50px;
  letter-spacing: 0.1em;
  width: fit-content;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.milestone-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  width: fit-content;
}

.milestone-btn:hover {
  background-color: var(--color-white);
  color: var(--color-black) !important;
  border-color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

.milestone-btn .btn-icon {
  font-size: 14px;
}

}

/* ==========================================================================
   25. HOME PAGE DYNAMIC MILESTONE SECTION (Ashes Short Film Showcase)
   ========================================================================== */
.home-milestone-section {
  position: relative;
  background-color: #000000 !important;
  background: #000000 !important;
  padding: 160px 0; /* Upgraded top/bottom padding for spacious breathing room */
  overflow: hidden;
  z-index: 99 !important; /* Forces this section on top of all fixed/fixed-parallax hero elements */
  isolation: isolate;
  /* Force distinct GPU compositing layer to prevent mobile bleed-through */
  transform: translate3d(0, 0, 0) !important;
  -webkit-transform: translate3d(0, 0, 0) !important;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Solid black background lock — blocks any underlying layers */
.home-milestone-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #000000;
  z-index: -1;
  pointer-events: none;
}

.home-milestone-section::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 5%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(207, 46, 46, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.home-milestone-section .milestone-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

.milestone-section-header {
  text-align: center;
  margin-bottom: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.milestone-eyebrow {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-red);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.milestone-main-title {
  font-family: var(--font-primary);
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.milestone-line-separator {
  width: 80px;
  height: 3px;
  background-color: var(--color-red);
  margin-bottom: 24px;
}

.milestone-subtitle {
  font-family: var(--font-primary);
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 300;
  color: rgba(250, 250, 250, 0.6);
  max-width: 700px;
  line-height: 1.6;
}

/* Grid Layout */
.milestone-grid-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: start;
}

/* Left Column: 3D Frame & Parallax container */
.milestone-showcase-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.milestone-3d-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1.414;
  transform-style: preserve-3d;
  perspective: 1500px;
  cursor: pointer;
  z-index: 10;
}

.card-glare {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.12) 0%, transparent 60%);
  border-radius: 12px;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  mix-blend-mode: overlay;
}

.milestone-3d-card-wrapper:hover .card-glare {
  opacity: 1;
}

/* Frame Mockup Styling */
.milestone-framed-certificate {
  width: 100%;
  height: 100%;
  background: #161616;
  border-radius: 12px;
  padding: 16px;
  border: 14px solid #222221;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.65), 
              inset 0 0 0 1px rgba(255, 215, 0, 0.25),
              0 0 30px rgba(207, 46, 46, 0.05);
  box-sizing: border-box;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}

.cert-frame-outer {
  width: 100%;
  height: 100%;
  border: 1.5px solid rgba(184, 144, 71, 0.6);
  padding: 5px;
  box-sizing: border-box;
  height: 100%;
  transform-style: preserve-3d;
}

.cert-frame-inner {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(184, 144, 71, 0.25);
  background: #fbfbf9; /* parchment cream */
  color: #1a1a19;
  padding: clamp(14px, 2.5vw, 32px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  height: 100%;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.04);
}

.cert-frame-inner::before {
  content: '';
  position: absolute;
  top: 10px; left: 10px; right: 10px; bottom: 10px;
  border: 1px solid rgba(184, 144, 71, 0.15);
  pointer-events: none;
}

/* Certificate Typography Details */
.cert-body {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  z-index: 2;
}

.cert-header {
  margin-top: 5px;
}

.cert-logo-text {
  font-family: var(--font-primary);
  font-size: clamp(10px, 1.1vw, 13px);
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #1a1a19;
}

.cert-motto {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(8px, 0.8vw, 10px);
  font-weight: 500;
  color: #b89047;
  margin: 3px 0;
  letter-spacing: 0.08em;
}

.cert-location {
  font-family: var(--font-primary);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #666;
}

.cert-title {
  font-family: var(--font-primary);
  font-size: clamp(13px, 1.6vw, 20px);
  font-weight: 800;
  color: #8e1f1f;
  letter-spacing: 0.05em;
  border-bottom: 1.5px solid rgba(184, 144, 71, 0.3);
  padding-bottom: 5px;
  width: 100%;
  margin-top: 8px;
}

.cert-recipient {
  margin: 10px 0;
}

.recipient-label {
  font-family: var(--font-primary);
  font-size: clamp(9px, 0.9vw, 11px);
  font-style: italic;
  color: #555;
  display: block;
}

.recipient-name {
  font-family: var(--font-primary);
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 700;
  color: #1a1a19;
  text-decoration: underline;
  text-decoration-color: rgba(184, 144, 71, 0.3);
  text-underline-offset: 4px;
  margin: 4px 0;
  letter-spacing: 0.02em;
}

.recipient-sub {
  font-family: var(--font-primary);
  font-size: clamp(8px, 0.8vw, 10px);
  color: #555;
  display: block;
}

.cert-project {
  margin: 5px 0;
}

.project-title {
  font-family: var(--font-primary);
  font-size: clamp(13px, 1.5vw, 18px);
  font-weight: 800;
  color: #8e1f1f;
  letter-spacing: 0.05em;
  margin: 0;
}

.project-roles {
  font-family: var(--font-primary);
  font-size: clamp(8px, 0.9vw, 11px);
  font-weight: 700;
  text-transform: uppercase;
  color: #b89047;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.cert-statement {
  font-family: var(--font-primary);
  font-size: clamp(8px, 0.95vw, 11.5px);
  line-height: 1.5;
  color: #333;
  font-style: italic;
  max-width: 95%;
  margin: 8px 0;
}

.cert-footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 10px;
  margin-top: 10px;
}

.cert-signature-block {
  text-align: left;
}

.signature-line {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(12px, 1.4vw, 16px);
  font-style: italic;
  color: #2b4570;
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  display: inline-block;
  padding-right: 20px;
}

.signer-name {
  font-family: var(--font-primary);
  font-size: clamp(8px, 0.8vw, 10px);
  font-weight: 700;
  color: #1a1a19;
}

.signer-title {
  font-family: var(--font-primary);
  font-size: clamp(6.5px, 0.7vw, 8.5px);
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cert-seal-block {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cert-seal {
  width: clamp(40px, 4.5vw, 54px);
  height: clamp(40px, 4.5vw, 54px);
  border-radius: 50%;
  border: 1.5px dashed #b89047;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  background-color: rgba(184, 144, 71, 0.04);
}

.seal-inner-text {
  font-size: clamp(5px, 0.6vw, 7px);
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #b89047;
  text-align: center;
  line-height: 1.1;
  max-width: 80%;
}

.seal-star {
  font-size: 6px;
  color: #b89047;
  margin-top: 1px;
}

.parallax-hint {
  font-family: var(--font-primary);
  font-size: 13px;
  color: rgba(250, 250, 250, 0.35);
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hint-icon {
  font-size: 14px;
}

/* Right Column: Skills Cards & Controls */
.milestone-showcase-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.milestone-skills-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 45px;
}

.milestone-skill-card {
  display: flex;
  gap: 20px;
  background: rgba(250, 250, 250, 0.015);
  border: 1px solid rgba(250, 250, 250, 0.05);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}

.milestone-skill-card:hover {
  background: rgba(255, 0, 0, 0.02);
  border-color: rgba(207, 46, 46, 0.15);
  transform: translateY(-2px);
}

.skill-card-icon {
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: flex-start;
  color: var(--color-red);
}

.skill-card-content h4 {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 6px;
}

.skill-card-content p {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 300;
  color: rgba(250, 250, 250, 0.55);
  line-height: 1.5;
}

.milestone-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.milestone-action-group .milestone-btn {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.milestone-action-group .milestone-btn.primary {
  background-color: var(--color-red);
  color: var(--color-white);
  border: 1px solid var(--color-red);
}

.milestone-action-group .milestone-btn.primary:hover {
  background-color: #ff2b2b;
  border-color: #ff2b2b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(207, 46, 46, 0.35);
}

.milestone-action-group .milestone-btn.secondary {
  background-color: transparent;
  color: var(--color-white);
  border: 1px solid rgba(250, 250, 250, 0.15);
}

.milestone-action-group .milestone-btn.secondary:hover {
  background-color: rgba(250, 250, 250, 0.05);
  border-color: rgba(250, 250, 250, 0.3);
  transform: translateY(-2px);
}

/* Expandable Process Drawer */
.milestone-process-drawer {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.77, 0, 0.175, 1);
  background: rgba(250, 250, 250, 0.01);
  border-top: 1px solid transparent;
  margin-top: 0;
}

.milestone-process-drawer.expanded {
  max-height: 800px;
  border-top: 1px solid rgba(250, 250, 250, 0.05);
  margin-top: 50px;
}

.drawer-inner-container {
  padding: 40px 0;
}

.drawer-title {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-red);
  letter-spacing: 0.15em;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.drawer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.drawer-col {
  display: flex;
  flex-direction: column;
  position: relative;
}

.col-num {
  font-family: var(--font-primary);
  font-size: 40px;
  font-weight: 900;
  color: rgba(207, 46, 46, 0.15);
  line-height: 1;
  margin-bottom: 12px;
}

.drawer-col h4 {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.03em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.drawer-col p {
  font-family: var(--font-primary);
  font-size: 13.5px;
  font-weight: 300;
  color: rgba(250, 250, 250, 0.5);
  line-height: 1.6;
}

/* Full responsiveness styles */
@media (max-width: 1199px) {
  .milestone-grid-layout {
    gap: 40px;
  }
}

@media (max-width: 991px) {
  .milestone-grid-layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .milestone-showcase-left {
    margin-bottom: 20px;
  }
  .milestone-3d-card-wrapper {
    max-width: 380px;
  }
  .drawer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 767px) {
  .home-milestone-section {
    padding: 110px 0 !important;
  }
  .home-milestone-section .milestone-container {
    padding: 0 20px;
  }
  .milestone-section-header {
    margin-bottom: 40px;
  }
  .milestone-3d-card-wrapper {
    max-width: 320px;
  }
  .cert-frame-inner {
    padding: 16px;
  }
  .milestone-skills-list {
    margin-bottom: 30px;
  }
  .milestone-skill-card {
    padding: 16px;
    gap: 14px;
  }
  .skill-card-content h4 {
    font-size: 16px;
  }
  .skill-card-content p {
    font-size: 13px;
  }
  .milestone-action-group {
    flex-direction: column;
    width: 100%;
  }
  .milestone-action-group .milestone-btn {
    width: 100%;
    justify-content: center;
  }
  .drawer-inner-container {
    padding: 30px 0;
  }
}

    left: -18px;
    top: 22px;
  }
}

/* ==========================================================================
   26. INTERACTIVE CONTACT & RESUME HUB SECTION STYLING
   ========================================================================== */
.contact-hub-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 4% 100px 4%;
  position: relative;
  z-index: 10;
}

.contact-hub-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: start;
}

/* LEFT COLUMN: digital CV Explorer Card */
.resume-explorer-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-sizing: border-box;
}

.resume-explorer-header {
  margin-bottom: 35px;
}

.explorer-badge {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 800;
  color: var(--color-red);
  background-color: rgba(207, 46, 46, 0.08);
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  border: 1px solid rgba(207, 46, 46, 0.15);
  text-transform: uppercase;
}

.resume-explorer-header h4 {
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.resume-explorer-header p {
  font-family: var(--font-primary);
  font-size: 14.5px;
  font-weight: 300;
  color: rgba(250, 250, 250, 0.55);
  line-height: 1.6;
}

/* Navigation tabs */
.resume-tabs-nav {
  position: relative;
  display: flex;
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 5px;
  border-radius: 12px;
  margin-bottom: 35px;
  overflow: hidden;
}

.resume-nav-btn {
  position: relative;
  flex: 1;
  font-family: var(--font-primary);
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(250, 250, 250, 0.5);
  background: transparent;
  border: none;
  padding: 12px 0;
  cursor: pointer;
  z-index: 2;
  transition: color 0.3s ease;
  border-radius: 8px;
}

.resume-nav-btn:hover {
  color: var(--color-white);
}

.resume-nav-btn.active {
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Panes layout */
.resume-pane {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  box-sizing: border-box;
}

.resume-pane.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Timeline specific CV rules */
.cv-timeline {
  position: relative;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.cv-timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background-color: rgba(255, 255, 255, 0.08);
}

.cv-timeline-item {
  position: relative;
}

.cv-timeline-marker {
  position: absolute;
  left: -24px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #000000;
  border: 2px solid var(--color-red);
  z-index: 2;
  transition: all 0.3s ease;
}

.cv-timeline-item:hover .cv-timeline-marker {
  background-color: var(--color-red);
  transform: scale(1.2);
}

.cv-timeline-content {
  padding-left: 12px;
  transition: transform 0.3s ease;
}

.cv-timeline-item:hover .cv-timeline-content {
  transform: translateX(4px);
}

.cv-date {
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-red);
  letter-spacing: 0.08em;
  display: inline-block;
  margin-bottom: 4px;
}

.cv-timeline-content h5 {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 2px;
}

.cv-company {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 500;
  color: rgba(250, 250, 250, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: block;
  margin-bottom: 10px;
}

.cv-timeline-content p {
  font-family: var(--font-primary);
  font-size: 13.5px;
  font-weight: 300;
  color: rgba(250, 250, 250, 0.5);
  line-height: 1.6;
}

/* Skills Vector Layout */
.cv-skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 35px;
}

.skills-category-card {
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 24px;
  box-sizing: border-box;
}

.skills-category-card h6,
.skills-meters-block h6,
.cv-certifications-block h6 {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-red);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.skills-tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag-badge {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 400;
  color: rgba(250, 250, 250, 0.7);
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px 12px;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.skill-tag-badge:hover {
  background-color: rgba(207, 46, 46, 0.1);
  border-color: rgba(207, 46, 46, 0.3);
  color: var(--color-white);
  transform: translateY(-1px);
}

.skills-meters-block {
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 24px;
}

.meter-item {
  margin-bottom: 18px;
}

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

.meter-info {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-primary);
  font-size: 13.5px;
  font-weight: 400;
  color: rgba(250, 250, 250, 0.75);
  margin-bottom: 6px;
}

.meter-track {
  width: 100%;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  overflow: hidden;
}

.meter-bar {
  height: 100%;
  background-color: var(--color-red);
  border-radius: 50px;
  transition: width 1s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Education List */
.cv-education-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 35px;
}

.edu-item {
  display: flex;
  gap: 16px;
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 20px;
  box-sizing: border-box;
}

.edu-icon {
  font-size: 24px;
}

.edu-details .edu-date {
  font-family: var(--font-primary);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--color-red);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}

.edu-details h5 {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 2px;
}

.edu-inst {
  font-family: var(--font-primary);
  font-size: 13px;
  color: rgba(250, 250, 250, 0.45);
  display: block;
}

/* Certifications */
.cv-certifications-block {
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 24px;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.cert-badge-card {
  display: flex;
  gap: 12px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 14px;
  border-radius: 10px;
  align-items: center;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.cert-badge-card:hover {
  background-color: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.cert-badge-icon {
  font-size: 16px;
}

.cert-badge-text {
  display: flex;
  flex-direction: column;
}

.cert-badge-text strong {
  font-family: var(--font-primary);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.3;
}

.cert-badge-text span {
  font-family: var(--font-primary);
  font-size: 11px;
  color: rgba(250, 250, 250, 0.4);
  margin-top: 2px;
}

/* Download CV Banner */
.resume-download-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(207, 46, 46, 0.03);
  border: 1px dashed rgba(207, 46, 46, 0.2);
  border-radius: 12px;
  padding: 24px 30px;
  margin-top: 40px;
  box-sizing: border-box;
  gap: 30px;
}

.banner-text h5 {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 4px;
}

.banner-text p {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 300;
  color: rgba(250, 250, 250, 0.5);
  line-height: 1.5;
  margin: 0;
}

.resume-pdf-download-btn {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-white);
  background-color: var(--color-red);
  border: 1px solid var(--color-red);
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.resume-pdf-download-btn:hover {
  background-color: #ff2b2b;
  border-color: #ff2b2b;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(207, 46, 46, 0.35);
}

/* Resume banner dual action row */
.resume-banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* "View Resume" ghost button */
.resume-pdf-view-btn {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-white);
  background-color: transparent;
  border: 1px solid rgba(250, 250, 250, 0.3);
  padding: 12px 24px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.resume-pdf-view-btn:hover {
  background-color: rgba(250, 250, 250, 0.08);
  border-color: rgba(250, 250, 250, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   RESUME PDF VIEWER MODAL
   ========================================================================== */

.resume-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.resume-modal.open {
  opacity: 1;
  pointer-events: all;
}

.resume-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.resume-modal-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  height: 92vh;
  background: #0e0e0e;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(60px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 -20px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255,255,255,0.06);
}
.resume-modal.open .resume-modal-wrapper {
  transform: translateY(0);
}

/* Modal header bar */
.resume-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.resume-modal-badge {
  font-family: var(--font-primary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-red);
  background: rgba(207, 46, 46, 0.1);
  border: 1px solid rgba(207, 46, 46, 0.2);
  padding: 4px 10px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 6px;
}

.resume-modal-title h3 {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-white);
  margin: 0 0 2px 0;
}
.resume-modal-title p {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 300;
  color: rgba(250, 250, 250, 0.45);
  margin: 0;
}

.resume-modal-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.resume-modal-download-btn {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-white);
  background: var(--color-red);
  border: 1px solid var(--color-red);
  padding: 9px 18px;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.resume-modal-download-btn:hover {
  background: #ff2b2b;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(207, 46, 46, 0.4);
}

.resume-modal-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  color: var(--color-white);
}
.resume-modal-close-btn:hover {
  background: rgba(207, 46, 46, 0.2);
  border-color: rgba(207, 46, 46, 0.5);
}

/* Modal body — PDF iframe area */
.resume-modal-body {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.resume-pdf-frame-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.resume-pdf-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #fff;
}

/* Fallback if PDF doesn't load */
.resume-pdf-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: rgba(250,250,250,0.5);
  padding: 40px;
}
.resume-pdf-fallback.show {
  display: flex;
}
.fallback-icon {
  font-size: 56px;
  margin-bottom: 20px;
  opacity: 0.5;
}
.resume-pdf-fallback h4 {
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 8px;
}
.resume-pdf-fallback p {
  font-family: var(--font-primary);
  font-size: 14px;
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .resume-modal-wrapper {
    height: 95vh;
    border-radius: 16px 16px 0 0;
  }
  .resume-modal-header {
    padding: 16px 18px;
  }
  .resume-modal-title h3 {
    font-size: 15px;
  }
  .resume-modal-download-btn span:first-of-type {
    display: none;
  }
  .resume-banner-actions {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }
  .resume-pdf-view-btn,
  .resume-pdf-download-btn {
    justify-content: center;
  }
}


.contact-hub-right {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.outreach-form-container {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 35px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-sizing: border-box;
}

.form-badge, .grid-badge {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 10px;
  font-weight: 800;
  color: var(--color-red);
  background-color: rgba(207, 46, 46, 0.08);
  padding: 3px 10px;
  border-radius: 50px;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  border: 1px solid rgba(207, 46, 46, 0.12);
}

.outreach-form-container h4,
.social-specular-block h4 {
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: 0.02em;
  margin-bottom: 25px;
  text-transform: uppercase;
}

/* Form layout inputs */
.contact-glass-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row-two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group {
  position: relative;
  width: 100%;
}

.form-input {
  width: 100%;
  font-family: var(--font-primary);
  font-size: 14.5px;
  color: var(--color-white);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 20px;
  border-radius: 8px;
  box-sizing: border-box;
  outline: none;
  transition: all 0.3s ease;
}

.form-input:focus {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(207, 46, 46, 0.5);
  box-shadow: 0 0 15px rgba(207, 46, 46, 0.1);
}

.form-label {
  position: absolute;
  left: 20px;
  top: 18px;
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 700;
  color: rgba(250, 250, 250, 0.4);
  letter-spacing: 0.08em;
  pointer-events: none;
  transition: all 0.3s ease;
}

/* Floating behavior using focus & value states */
.form-input:focus ~ .form-label,
.form-input:valid ~ .form-label,
.form-input.has-value ~ .form-label {
  top: -8px;
  left: 12px;
  font-size: 9px;
  color: var(--color-red);
  background-color: #111;
  padding: 0 6px;
  border-radius: 4px;
  border: 1px solid rgba(207, 46, 46, 0.15);
}

.form-input.textarea {
  resize: none;
}

.form-submit-btn {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--color-black);
  background-color: var(--color-white);
  border: none;
  padding: 16px 32px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.form-submit-btn:hover {
  background-color: var(--color-red);
  color: var(--color-white);
  box-shadow: 0 6px 20px rgba(207, 46, 46, 0.3);
  transform: translateY(-1px);
}

.btn-arrow {
  font-size: 16px;
  transition: transform 0.3s ease;
}

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

/* Social Tile System */
.social-specular-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.social-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  box-sizing: border-box;
  overflow: hidden;
  transition: all 0.3s ease;
}

.social-tile:hover {
  transform: translateY(-2px);
}

.tile-bg-glow {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at var(--tile-x, 50%) var(--tile-y, 50%), rgba(255, 255, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-tile:hover .tile-bg-glow {
  opacity: 1;
}

.tile-icon {
  font-size: 26px;
  z-index: 2;
}

.tile-info {
  display: flex;
  flex-direction: column;
  z-index: 2;
}

.tile-label {
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 700;
  color: rgba(250, 250, 250, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.tile-value {
  font-family: var(--font-primary);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-white);
  word-break: break-all;
}

.tile-badge-overlay {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 8px;
  font-weight: 800;
  color: #ffd700;
  background-color: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 2;
  transition: all 0.3s ease;
}

.tile-badge-overlay.dial {
  color: var(--color-red);
  background-color: rgba(207, 46, 46, 0.08);
  border-color: rgba(207, 46, 46, 0.15);
}

.social-tile:hover .tile-badge-overlay {
  transform: scale(1.05);
}

/* Copy Email widget tile spec */
.social-tile.email-tile {
  cursor: pointer;
}

.tile-copy-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.3s ease;
}

.tile-copy-btn:hover {
  background-color: var(--color-white);
  color: var(--color-black) !important;
  border-color: var(--color-white);
}

.copy-icon {
  font-size: 11px;
}

/* Custom glow borders per platform */
.social-tile.portfolio-tile:hover {
  border-color: rgba(255, 215, 0, 0.3);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.05);
}

.social-tile.email-tile:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.03);
}

.social-tile.phone-tile:hover {
  border-color: rgba(207, 46, 46, 0.3);
  box-shadow: 0 10px 30px rgba(207, 46, 46, 0.05);
}

.social-tile.linkedin-tile:hover {
  border-color: rgba(0, 119, 181, 0.4);
  box-shadow: 0 10px 30px rgba(0, 119, 181, 0.05);
}

.social-tile.behance-tile:hover {
  border-color: rgba(5, 62, 255, 0.4);
  box-shadow: 0 10px 30px rgba(5, 62, 255, 0.05);
}

.social-tile.medium-tile:hover {
  border-color: rgba(250, 250, 250, 0.2);
  box-shadow: 0 10px 30px rgba(250, 250, 250, 0.03);
}

/* Floating Toast Alert Banner */
.glass-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: rgba(20, 20, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  z-index: 9999999;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(100px) scale(0.9);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
  pointer-events: none;
}

.glass-toast.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.toast-icon {
  font-size: 18px;
  color: #ffd700;
}

.toast-message {
  font-family: var(--font-primary);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-white);
}

/* RESPONSIVE SCALING */
@media (max-width: 1199px) {
  .contact-hub-grid {
    gap: 40px;
  }
}

@media (max-width: 991px) {
  .contact-hub-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media (max-width: 767px) {
  .contact-hub-container {
    padding: 0 20px 60px 20px;
  }
  .resume-explorer-card {
    padding: 24px;
  }
  .resume-explorer-header {
    margin-bottom: 25px;
  }
  .resume-tabs-nav {
    margin-bottom: 25px;
  }
  .resume-nav-btn {
    font-size: 12.5px;
    padding: 10px 0;
  }
  .cv-skills-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .skills-category-card, .skills-meters-block, .cv-certifications-block, .edu-item {
    padding: 16px;
  }
  .cert-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .resume-download-banner {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }
  .resume-pdf-download-btn {
    width: 100%;
    justify-content: center;
  }
  .outreach-form-container {
    padding: 24px;
  }
  .form-row-two {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .social-specular-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ==========================================================================
   27. INSIGHTS BLOG PAGE SECTION STYLING
   ========================================================================== */
.blogs-grid-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 4% 100px 4%;
  position: relative;
  z-index: 10;
}

.blogs-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.blog-filter-btn {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(250, 250, 250, 0.45);
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 24px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.blog-filter-btn:hover {
  color: var(--color-white);
  border-color: rgba(250, 250, 250, 0.2);
}

.blog-filter-btn.active {
  color: var(--color-white);
  background-color: var(--color-red);
  border-color: var(--color-red);
  box-shadow: 0 4px 15px rgba(207, 46, 46, 0.25);
}

/* Articles grid */
.blogs-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: stretch;
}

.blog-post-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-sizing: border-box;
}

.blog-post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(207, 46, 46, 0.2);
  box-shadow: 0 30px 60px rgba(207, 46, 46, 0.04), 0 20px 40px rgba(0, 0, 0, 0.55);
}

/* Card Image Placeholder Art */
.blog-card-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-card-placeholder-art {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.blog-post-card:hover .blog-card-placeholder-art {
  transform: scale(1.05);
}

.blog-card-placeholder-art::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.maps-art {
  background: radial-gradient(circle at center, rgba(66, 133, 244, 0.25) 0%, #111 80%);
}

.swiggy-art {
  background: radial-gradient(circle at center, rgba(252, 128, 25, 0.2) 0%, #111 80%);
}

.art-badge {
  font-family: var(--font-primary);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--color-white);
  background-color: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 2;
}

.blog-card-glare {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at var(--bg-x, 50%) var(--bg-y, 50%), rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  mix-blend-mode: overlay;
}

.blog-post-card:hover .blog-card-glare {
  opacity: 1;
}

/* Card content */
.blog-card-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.blog-meta {
  font-family: var(--font-primary);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--color-red);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: block;
}

.blog-card-content h4 {
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.4;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.blog-post-card:hover h4 {
  color: var(--color-red);
}

.blog-card-content p {
  font-family: var(--font-primary);
  font-size: 13.5px;
  font-weight: 300;
  color: rgba(250, 250, 250, 0.5);
  line-height: 1.6;
  margin-bottom: 24px;
}

.blog-card-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
}

.blog-read-more-btn {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.blog-read-more-btn .btn-arrow {
  transition: transform 0.3s ease;
}

.blog-post-card:hover .blog-read-more-btn {
  color: var(--color-red);
}

.blog-post-card:hover .blog-read-more-btn .btn-arrow {
  transform: translateX(4px);
}

/* RESPONSIVE SCALING */
@media (max-width: 1024px) {
  .blogs-articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 767px) {
  .blogs-grid-container {
    padding: 0 20px 60px 20px;
  }
  .blogs-filters {
    margin-bottom: 30px;
  }
  .blog-filter-btn {
    font-size: 12px;
    padding: 8px 18px;
  }
  .blogs-articles-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .blog-card-content {
    padding: 20px;
  }
  .blog-card-content h4 {
    font-size: 18px;
  }
}

/* ==========================================================================
   26. RESPONSIVE UNIFIED SPACING SYSTEM (CONSISTENT MOBILE SPACINGS & PADDINGS)
   ========================================================================== */
@media screen and (max-width: 768px) {
  /* 1. Opaque and spacious homepage sections (100px top/bottom, 20px sides) */
  .we-are-section,
  .work-section,
  .ux-studies-section,
  .video-works-section {
    padding-top: 100px !important;
    padding-bottom: 100px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  /* Milestone container alignment */
  .home-milestone-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .home-milestone-section .milestone-container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .milestone-3d-card-wrapper {
    max-width: 440px !important;
    width: 100% !important;
    margin: 0 auto 30px auto !important;
  }
  .milestone-framed-certificate {
    border-width: 8px !important;
    padding: 8px !important;
  }
  .cert-frame-inner {
    padding: 14px !important;
  }

  /* 2. Sub-Pages Top-Offset Header Spacing - 120px to clear fixed navigation bar */
  .sub-page-section,
  .case-study-section {
    padding: 120px 20px 80px 20px !important;
  }

  .case-study-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    gap: 3.5rem !important; /* Unified mobile case section gap */
  }

  /* Blogs Page grid container override for consistency */
  .blogs-grid-container {
    padding: 0 0 60px 0 !important; /* Managed by .sub-page-section padding */
  }

  /* 3. Horizontal swipeable carousels on mobile to prevent endless vertical scroll fatigue */
  .ux-cards-grid {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 16px !important;
    padding: 10px 4px 24px 4px !important;
    margin-left: -20px !important; /* Bleed out to screen edges for true mobile feel */
    margin-right: -20px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important; /* Hide scrollbar for Firefox */
  }
  .ux-cards-grid::-webkit-scrollbar {
    display: none !important; /* Hide scrollbar for Chrome/Safari */
  }
  .ux-cards-grid .ux-card {
    flex: 0 0 85% !important; /* Card takes up 85% of screen width, exposing the next card partially to invite swiping */
    scroll-snap-align: center !important;
    height: auto !important;
  }

  .horizontal-video-grid {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 16px !important;
    padding: 10px 4px 24px 4px !important;
    margin-left: -20px !important; /* Bleed out to screen edges for true mobile feel */
    margin-right: -20px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }
  .horizontal-video-grid::-webkit-scrollbar {
    display: none !important;
  }
  .horizontal-video-grid .video-work-card {
    flex: 0 0 85% !important;
    scroll-snap-align: center !important;
    margin-bottom: 0 !important;
  }

  /* 4. Margin Resets for Grid Alignments on Small Screens */
  .works-inside-grid {
    gap: 2.5rem !important;
  }

  /* 5. Accessibility Touch Target Standardizations (Min 44x44px target) */
  .resume-nav-btn,
  .about-back-btn,
  .resume-pdf-view-btn,
  .resume-pdf-download-btn,
  .primary-button,
  .btn-we-are-contact,
  .form-submit-btn,
  .blog-filter-btn {
    min-height: 44px !important;
  }

  /* Focus visible outlines for keyboard control visibility */
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  textarea:focus-visible {
    outline: 2px solid var(--color-red) !important;
    outline-offset: 4px !important;
  }

  /* 6. Typography Readability Scaling */
  .ux-tag {
    font-size: 11px !important;
    padding: 0.35em 0.8em !important;
  }
  .ux-tool {
    font-size: 12px !important;
  }
}








