/* Modern Reset and Design Tokens */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg-color: #050508;
  --text-color: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.5);
  --accent-color: #3b82f6; /* Modern Blue */
  --font-primary: 'Outfit', sans-serif;
  --loader-size: 180px;
}

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

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  border: 2px solid var(--bg-color);
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Canvas Container */
.canvas-container {
  position: fixed;
  top: 80px; /* Shifted down for header space */
  left: 0;
  width: 100vw;
  height: calc(100vh - 80px);
  z-index: 1;
  pointer-events: none; /* Let pointer events pass to document scroll */
}

canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Scroll Spacer (creates the scroll depth) */
.scroll-spacer {
  position: relative;
  height: 800vh; /* Adjust for scroll sensitivity/duration */
  width: 100%;
  z-index: 2;
  pointer-events: none;
}

/* Interactive Overlay (for premium indicators) */
.ui-layer {
  position: fixed;
  top: 80px; /* Shifted down for header space */
  left: 0;
  width: 100vw;
  height: calc(100vh - 80px);
  z-index: 3;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 5vh;
}

@media (min-width: 769px) {
  .ui-layer {
    padding-bottom: 2vh;
  }
}

/* Subtle Scroll Indicator */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-indicator.hidden {
  opacity: 0;
  transform: translateY(15px);
}

.scroll-indicator p {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 400;
  user-select: none;
}

.mouse-icon {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  position: relative;
}

.mouse-wheel {
  width: 4px;
  height: 8px;
  background-color: var(--text-color);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheelAnim 1.6s infinite ease-in-out;
}

@keyframes scrollWheelAnim {
  0% {
    top: 6px;
    opacity: 1;
  }
  50% {
    top: 14px;
    opacity: 0.3;
  }
  100% {
    top: 6px;
    opacity: 1;
  }
}

/* Premium Preloader Overlay */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-color);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.loader-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  width: var(--loader-size);
  height: var(--loader-size);
}

/* Circular Progress ring */
.progress-ring {
  transform: rotate(-90deg);
  width: var(--loader-size);
  height: var(--loader-size);
}

.progress-ring-circle-bg {
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 3;
  fill: none;
}

.progress-ring-circle {
  stroke: var(--text-color);
  stroke-width: 3;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 502; /* 2 * PI * r = 2 * 3.14159 * 80 ≈ 502.6 */
  stroke-dashoffset: 502;
  transition: stroke-dashoffset 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.loader-text-container {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loader-percentage {
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--text-color);
  line-height: 1;
}

.loader-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* Main Header Navigation */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4%;
  background: rgba(5, 5, 8, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-color);
  user-select: none;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-color);
}

/* Hamburger Menu Icon */
.menu-hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.menu-hamburger svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-color);
  stroke-width: 2;
  stroke-linecap: round;
}

/* Responsive navigation */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* Hide on mobile */
  }
  
  .menu-hamburger {
    display: block; /* Show on mobile */
  }
}

/* Hero Section overlay styles */
.hero-section {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Align content to the right side on desktop */
  padding: 0 10%;
  pointer-events: auto;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
}

.hero-content {
  max-width: 650px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.7); /* Increase readability */
}

.hero-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #ff2a7f; /* Neon pink matching original image glow */
  text-shadow: 0 0 10px rgba(255, 42, 127, 0.2);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  color: var(--text-color);
}

.hero-title span {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title span:nth-child(1) { animation-delay: 0.15s; }
.hero-title span:nth-child(2) { animation-delay: 0.3s; }
.hero-title span:nth-child(3) { animation-delay: 0.45s; }

.hero-title .highlight {
  background: linear-gradient(135deg, #ff2a7f 0%, #b32bf9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 20px rgba(255, 42, 127, 0.3));
}

.hero-desc {
  font-size: clamp(0.95rem, 1.1vw, 1.15rem);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 520px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.hero-cta {
  display: flex;
  gap: 20px;
  margin-top: 12px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.85s forwards;
}

/* Elegant Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #ff2a7f 0%, #b32bf9 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(255, 42, 127, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 42, 127, 0.45);
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .hero-section {
    padding: 0 6%;
    align-items: flex-end;
    justify-content: center; /* Center horizontally on mobile */
    padding-bottom: 12vh;
  }
  
  .hero-content {
    gap: 16px;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }

  .hero-cta .btn-primary {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 14px 24px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    -webkit-appearance: none;
    appearance: none;
  }
}

/* ==========================================
   Premium Glassmorphic Floating Bubbles
   ========================================== */

/* Font setting for bubbles */
.bubble-text {
  font-family: 'Inter', sans-serif !important;
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.05em;
  user-select: none;
  transition: color 0.3s ease;
}

/* Container spanning the whole hero area */
.bubbles-nav-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

@media (min-width: 1025px) {
  .bubbles-nav-container {
    width: 50vw;
  }
}

/* Individual bubble items */
.bubble-menu-item {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  pointer-events: auto;
  cursor: pointer;
  outline: none;
  will-change: transform;
}

/* Set different organic sizes for bubbles */
.bubble-menu-item.b-about { width: 110px; height: 110px; }
.bubble-menu-item.b-projects { width: 125px; height: 125px; }
.bubble-menu-item.b-services { width: 120px; height: 120px; }
.bubble-menu-item.b-contact { width: 115px; height: 115px; }
.bubble-menu-item.b-blog { width: 105px; height: 105px; }
.bubble-menu-item.b-select { width: 112px; height: 112px; }

/* Inner wrapper for animations */
.bubble-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Glass background with backdrop blur */
.bubble-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    inset 0 4px 12px rgba(255, 255, 255, 0.12),
    inset 0 -4px 12px rgba(0, 0, 0, 0.25);
  transition: backdrop-filter 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  will-change: transform;
}

/* Content layer */
.bubble-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 15px;
  border-radius: 50%;
  overflow: hidden;
}

/* Glowing dot representing state/menu bullet */
.bubble-dot {
  width: 6px;
  height: 6px;
  background-color: #ff2a7f; /* Neon Magenta */
  border-radius: 50%;
  box-shadow: 0 0 8px #ff2a7f, 0 0 15px #ff2a7f;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease, box-shadow 0.4s ease;
}

/* Sliding light/reflection across the crystal surface */
.bubble-shine {
  position: absolute;
  top: -50%;
  left: -150%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.15) 30%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0.15) 70%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  transition: left 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Inner ripple overlay on active state */
.bubble-content::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 42, 127, 0.25) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: width 0.3s ease-out, height 0.3s ease-out, opacity 0.3s ease-out;
  pointer-events: none;
  z-index: 1;
}

/* Proximity Hover state (applied by JS) */
.bubble-menu-item.hovered .bubble-wrapper {
  transform: scale(1.06); /* Aumenta 6% */
  box-shadow: 
    0 16px 48px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(255, 42, 127, 0.28),
    0 0 30px rgba(179, 43, 249, 0.18);
}

.bubble-menu-item.hovered .bubble-bg {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 
    inset 0 6px 16px rgba(255, 255, 255, 0.22),
    inset 0 -6px 16px rgba(0, 0, 0, 0.35);
}

.bubble-menu-item.hovered .bubble-shine {
  left: 150%;
}

.bubble-menu-item.hovered .bubble-dot {
  background-color: #ffffff;
  box-shadow: 0 0 12px #ffffff, 0 0 20px #ffffff;
  transform: scale(1.35);
}

.bubble-menu-item.hovered .bubble-text {
  color: #ffffff;
}

/* Click Compression state */
.bubble-menu-item:active .bubble-wrapper {
  transform: scale(0.93) !important;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.bubble-menu-item:active .bubble-content::after {
  width: 140%;
  height: 140%;
  opacity: 1;
  transition: 0s;
}

/* Hide desktop navigation links since we have bubbles */
@media (min-width: 769px) {
  .nav-links {
    display: none !important;
  }
}

/* Tablet adjustments: draw bubbles closer together to fit screen */
@media (max-width: 1024px) and (min-width: 769px) {
  .bubble-menu-item.b-about { transform: translate3d(22vw, 28vh, 0) !important; }
  .bubble-menu-item.b-projects { transform: translate3d(45vw, 24vh, 0) !important; }
  .bubble-menu-item.b-services { transform: translate3d(20vw, 65vh, 0) !important; }
  .bubble-menu-item.b-contact { transform: translate3d(40vw, 70vh, 0) !important; }
  .bubble-menu-item.b-blog { transform: translate3d(70vw, 32vh, 0) !important; }
  .bubble-menu-item.b-select { transform: translate3d(66vw, 66vh, 0) !important; }
}

/* Mobile responsive menu: simples stack vertically */
@media (max-width: 768px) {
  .bubbles-nav-container {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    height: auto !important;
    margin-top: 30px !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    pointer-events: auto !important;
    z-index: 5 !important;
  }

  .bubble-menu-item {
    position: relative !important;
    width: 100% !important;
    max-width: 290px !important;
    height: 52px !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 0 auto !important;
  }

  .bubble-wrapper {
    border-radius: 26px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
  }

  .bubble-bg {
    border-radius: 26px !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
  }

  .bubble-content {
    border-radius: 26px !important;
    justify-content: flex-start !important;
    padding: 0 24px !important;
  }

  .bubble-text {
    font-size: 0.9rem !important;
  }
}

/* ==========================================
   Mobile Glassmorphic Drawer Menu
   ========================================== */
.mobile-menu-drawer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  background: rgba(5, 5, 8, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: max(12px, env(safe-area-inset-top)) 14px max(12px, env(safe-area-inset-bottom));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.42s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-drawer.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-panel {
  width: calc(100% - 28px);
  max-width: 420px;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  border-radius: 28px;
  padding: 20px;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 42, 127, 0.12), transparent 34%),
    radial-gradient(circle at 86% 14%, rgba(179, 43, 249, 0.12), transparent 36%),
    linear-gradient(145deg, rgba(22, 22, 28, 0.78), rgba(7, 7, 11, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 44px rgba(255, 42, 127, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  filter: blur(8px);
  transition: opacity 0.46s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.46s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.46s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-drawer.active .mobile-menu-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.mobile-menu-brand,
.mobile-menu-eyebrow {
  display: block;
  font-family: 'Inter', sans-serif;
}

.mobile-menu-brand {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #ffffff;
}

.mobile-menu-eyebrow {
  margin-top: 6px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.52);
}

/* Drawer Close button */
.drawer-close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

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

.drawer-close:hover,
.drawer-close:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 42, 127, 0.4);
  box-shadow: 0 0 18px rgba(255, 42, 127, 0.16);
  transform: translateY(-1px);
}

/* Drawer links stack */
.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
  width: 100%;
}

.drawer-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 64px;
  padding: 12px 14px;
  border-radius: 26px;
  font-family: 'Inter', sans-serif;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.032));
  border: 1px solid rgba(255, 255, 255, 0.105);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 20px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.34s ease, transform 0.34s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.mobile-menu-drawer.active .drawer-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-drawer.active .drawer-link:nth-child(1) { transition-delay: 0.04s; }
.mobile-menu-drawer.active .drawer-link:nth-child(2) { transition-delay: 0.09s; }
.mobile-menu-drawer.active .drawer-link:nth-child(3) { transition-delay: 0.14s; }
.mobile-menu-drawer.active .drawer-link:nth-child(4) { transition-delay: 0.19s; }
.mobile-menu-drawer.active .drawer-link:nth-child(5) { transition-delay: 0.24s; }
.mobile-menu-drawer.active .drawer-link:nth-child(6) { transition-delay: 0.29s; }

.drawer-link:hover,
.drawer-link:active,
.drawer-link:focus-visible {
  outline: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045));
  border-color: rgba(255, 42, 127, 0.32);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.11), 0 12px 26px rgba(0, 0, 0, 0.24), 0 0 20px rgba(255, 42, 127, 0.11);
  transform: translateX(4px);
}

.drawer-link-index {
  flex: 0 0 auto;
  width: 28px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 42, 127, 0.9);
}

.drawer-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  background-color: #ff2a7f;
  border-radius: 50%;
  box-shadow: 0 0 8px #ff2a7f;
}

.drawer-link:hover .drawer-dot,
.drawer-link:focus-visible .drawer-dot {
  box-shadow: 0 0 12px #ff2a7f, 0 0 20px rgba(255, 42, 127, 0.55);
}

.drawer-link-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-link-title {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.1;
}

.drawer-link-description {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.15;
}

.drawer-link-arrow {
  flex: 0 0 auto;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.42);
}

@media (max-width: 360px) {
  .mobile-menu-panel {
    width: 100%;
    padding: 16px;
    border-radius: 24px;
  }

  .drawer-link {
    min-height: 58px;
    padding: 10px 12px;
  }

  .mobile-menu-header {
    margin-bottom: 14px;
  }
}

@media (max-height: 640px) and (max-width: 768px) {
  .mobile-menu-drawer {
    align-items: center;
  }

  .mobile-menu-panel {
    padding: 14px;
  }

  .drawer-nav {
    gap: 8px;
  }

  .drawer-link {
    min-height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu-drawer,
  .mobile-menu-panel,
  .drawer-link,
  .drawer-close {
    transition: none !important;
    transform: none !important;
    filter: none !important;
  }

  .drawer-link {
    opacity: 1;
  }
}

/* ==========================================
   About Section Editorial Glass Panel
   ========================================== */

/* Freeze background scroll when About panel is open */
body.about-open {
  overflow: hidden !important;
}

/* Overlay Background Tint */
.about-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.55s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: auto;
}

.about-panel-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Editorial Glass Panel Container */
.about-panel {
  position: relative;
  width: 72vw; /* Width between 68vw and 76vw */
  height: 78vh; /* Height between 72vh and 82vh */
  max-height: 80vh;
  border-radius: 20px;
  background: radial-gradient(circle at 85% 15%, rgba(255, 42, 127, 0.05) 0%, transparent 45%), 
              linear-gradient(135deg, rgba(20, 20, 25, 0.8) 0%, rgba(10, 10, 15, 0.9) 100%);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 
    0 30px 70px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 0 45px rgba(255, 42, 127, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: scale(0.95) translateY(20px);
  filter: blur(12px);
  transition: opacity 0.55s cubic-bezier(0.25, 1, 0.5, 1), 
              transform 0.55s cubic-bezier(0.25, 1, 0.5, 1), 
              filter 0.55s cubic-bezier(0.25, 1, 0.5, 1);
}

.about-panel-overlay.active .about-panel {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: blur(0px);
}

/* Circular Close Button */
.about-panel-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  outline: none;
}

.about-panel-close svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

.about-panel-close:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: scale(1.05);
}

.about-panel-close:focus-visible {
  border-color: #ff2a7f;
  box-shadow: 0 0 10px rgba(255, 42, 127, 0.5);
}

.about-panel-close:active {
  transform: scale(0.95);
}

/* Panel Content Layout */
.about-panel-content {
  padding: 50px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 50px;
  height: 100%;
}

.about-top-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: stretch;
}

.about-panel-content::-webkit-scrollbar {
  width: 6px;
}

.about-panel-content::-webkit-scrollbar-track {
  background: transparent;
}

.about-panel-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  transition: background 0.3s ease;
}

.about-panel-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Columns */
.about-column-left {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.about-column-right {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* LEFT COLUMN ELEMENTS */
.about-micro-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: #ff2a7f;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
  text-shadow: 0 0 10px rgba(255, 42, 127, 0.2);
}

.about-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.about-main-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-main-text strong {
  color: #ffffff;
  font-weight: 600;
}

.about-highlight-phrase {
  font-family: 'Inter', sans-serif;
  margin: 32px 0;
  padding-left: 20px;
  border-left: 3px solid #ff2a7f;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.about-cta-container {
  margin-top: 24px;
  padding-top: 0;
  width: min(82%, 480px);
  display: flex;
  justify-content: center;
}

.about-desktop-visual {
  position: relative;
  display: none;
  flex: 1 1 auto;
  width: min(82%, 480px);
  min-height: 280px;
  max-height: 520px;
  aspect-ratio: 4 / 5;
  margin-top: 24px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.45),
    0 0 34px rgba(255, 42, 127, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.about-desktop-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 8, 0.05) 0%,
    rgba(5, 5, 8, 0.12) 58%,
    rgba(5, 5, 8, 0.82) 100%
  );
  pointer-events: none;
}

.about-desktop-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 769px) {
  .about-desktop-visual {
    display: block;
  }
}

@media (min-width: 769px) and (max-height: 850px) {
  .about-highlight-phrase {
    margin: 24px 0;
  }

  .about-desktop-visual {
    min-height: 220px;
    max-height: 360px;
    margin-top: 20px;
  }

  .about-cta-container {
    margin-top: 20px;
  }
}

/* RIGHT COLUMN ELEMENTS */
.about-section h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ff2a7f;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.about-section-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

/* Chips Container & Individual Chips */
.about-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.about-chip {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  user-select: none;
}

.about-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Mission & Vision Grid */
.about-grid-mv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-mv-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.about-mv-box:hover {
  border-color: rgba(255, 42, 127, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

.about-mv-box p {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

.about-section p {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
}

/* Technology List categories */
.about-tech-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.about-tech-category {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 16px;
  transition: border-color 0.3s ease;
}

.about-tech-category:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.about-tech-category h5 {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.about-tech-category h5::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #ff2a7f;
  box-shadow: 0 0 5px #ff2a7f;
}

.about-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.about-tech-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.about-tech-tag:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}

/* RESPONSIVE LAYOUTS */

@media (max-width: 1024px) {
  .about-panel {
    width: 82vw;
    height: 80vh;
  }
  
  .about-panel-content {
    padding: 36px;
    gap: 36px;
  }

  .about-top-grid {
    gap: 36px;
  }

  .about-tech-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .about-panel {
    width: 90vw;
    height: 85vh;
    height: 85dvh;
    max-height: 85dvh;
    border-radius: 16px;
  }
  
  .about-panel-close {
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
  }
  
  .about-panel-content {
    padding: 40px 24px 24px 24px;
    gap: 32px;
  }

  .about-top-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .about-column-right {
    gap: 24px;
  }

  .about-tech-list {
    grid-template-columns: 1fr;
  }
  
  .about-highlight-phrase {
    margin: 24px 0;
  }
  
  .about-cta-container {
    margin-top: 16px;
    padding-top: 0;
  }
}

@media (max-width: 480px) {
  .about-panel {
    width: 92vw;
    height: 88vh;
    height: 88dvh;
    max-height: 88dvh;
  }
  
  .about-panel-content {
    padding: 32px 18px 18px 18px;
    gap: 28px;
  }
  
  .about-title {
    font-size: 1.6rem;
    margin-bottom: 16px;
  }
  
  .about-grid-mv {
    grid-template-columns: 1fr;
  }
}

/* Accessibility: prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .about-panel-overlay,
  .about-panel,
  .about-panel-close,
  .about-chip,
  .about-tech-tag {
    transition: none !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }
}

/* ==========================================
   Services Editorial Glass Panel
   ========================================== */

body.services-open {
  overflow: hidden !important;
}

.services-panel-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.48);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.55s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: auto;
}

.services-panel-overlay.active {
  opacity: 1;
  visibility: visible;
}

.services-panel {
  position: relative;
  width: 88vw;
  height: 86vh;
  max-height: 88vh;
  border-radius: 20px;
  background:
    radial-gradient(circle at 12% 8%, rgba(179, 43, 249, 0.08) 0%, transparent 34%),
    radial-gradient(circle at 88% 16%, rgba(255, 42, 127, 0.06) 0%, transparent 38%),
    linear-gradient(135deg, rgba(20, 20, 25, 0.82) 0%, rgba(8, 8, 12, 0.94) 100%);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.82),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 48px rgba(255, 42, 127, 0.05);
  overflow: hidden;
  opacity: 0;
  transform: scale(0.95) translateY(20px);
  filter: blur(12px);
  transition: opacity 0.55s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.55s cubic-bezier(0.25, 1, 0.5, 1),
              filter 0.55s cubic-bezier(0.25, 1, 0.5, 1);
}

.services-panel-overlay.active .services-panel {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: blur(0);
}

.services-panel-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.services-panel-close:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: scale(1.05);
}

.services-panel-close:focus-visible,
.services-filter-btn:focus-visible,
.service-card-action:focus-visible {
  outline: none;
  border-color: #ff2a7f;
  box-shadow: 0 0 0 3px rgba(255, 42, 127, 0.22);
}

.services-panel-content {
  height: 100%;
  overflow-y: auto;
  padding: 52px;
}

.services-panel-content::-webkit-scrollbar {
  width: 6px;
}

.services-panel-content::-webkit-scrollbar-track {
  background: transparent;
}

.services-panel-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.13);
  border-radius: 3px;
}

.services-panel-header {
  max-width: 980px;
  margin-bottom: 34px;
}

.services-micro-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: #ff2a7f;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 12px;
  text-shadow: 0 0 10px rgba(255, 42, 127, 0.2);
}

.services-panel-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 3.3vw, 3.1rem);
  font-weight: 600;
  line-height: 1.12;
  color: #ffffff;
  max-width: 900px;
  margin-bottom: 18px;
}

.services-panel-intro {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.95rem, 1.1vw, 1.08rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
  max-width: 780px;
}

.services-filter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.services-filter-btn {
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.74);
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.services-filter-btn:hover,
.services-filter-btn.active {
  background: rgba(255, 42, 127, 0.13);
  border-color: rgba(255, 42, 127, 0.32);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(255, 42, 127, 0.1);
}

.services-group {
  margin-top: 34px;
}

.services-group.is-hidden {
  display: none;
}

.services-group-title {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.025) 100%);
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.service-card.is-hidden {
  display: none;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 42, 127, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075) 0%, rgba(255, 255, 255, 0.035) 100%);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34), 0 0 26px rgba(255, 42, 127, 0.11);
}

.service-card-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 42, 127, 0.18), transparent 44%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
}

.service-card-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 8, 0.02) 0%, rgba(5, 5, 8, 0.72) 100%);
  pointer-events: none;
}

.service-card-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.service-card:hover .service-card-visual img {
  transform: scale(1.025);
}

.service-card-number {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 0 16px rgba(255, 42, 127, 0.38);
}

.service-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px;
}

.service-card-category {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #ff2a7f;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.service-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 10px;
}

.service-card p {
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.66);
  margin-bottom: 14px;
}

.service-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.service-card-tags span {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4px 9px;
  border-radius: 999px;
}

.service-card-action {
  margin-top: auto;
  align-self: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.86);
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.service-card-action:hover {
  background: rgba(255, 42, 127, 0.12);
  border-color: rgba(255, 42, 127, 0.28);
  color: #ffffff;
  transform: translateY(-1px);
}

.services-final-cta {
  margin-top: 42px;
  padding: 28px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 42, 127, 0.11), transparent 38%),
    rgba(255, 255, 255, 0.04);
}

.services-final-cta h3 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  color: #ffffff;
  margin-bottom: 10px;
}

.services-final-cta p {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
  max-width: 780px;
}

.services-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

@media (max-width: 1024px) {
  .services-panel {
    width: 90vw;
    height: 86vh;
  }

  .services-panel-content {
    padding: 42px 36px;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .services-panel {
    width: 92vw;
    height: 90dvh;
    max-height: 90dvh;
    border-radius: 16px;
  }

  .services-panel-close {
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
  }

  .services-panel-content {
    padding: 42px 20px 22px 20px;
  }

  .services-panel-header {
    margin-bottom: 26px;
  }

  .services-panel-title {
    font-size: clamp(1.55rem, 7vw, 2.15rem);
  }

  .services-filter-nav {
    gap: 8px;
  }

  .services-filter-btn {
    font-size: 0.76rem;
    padding: 8px 12px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-final-cta {
    padding: 22px 18px;
  }

  .services-final-actions {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-panel-overlay,
  .services-panel,
  .services-panel-close,
  .service-card,
  .service-card-visual img,
  .service-card-action,
  .services-filter-btn {
    transition: none !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }
}

/* ==========================================
   ESY TECH Select Affiliate Panel
   ========================================== */

body.select-open {
  overflow: hidden !important;
}

.select-panel-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.55s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: auto;
}

.select-panel-overlay.active {
  opacity: 1;
  visibility: visible;
}

.select-panel {
  position: relative;
  width: 90vw;
  height: 88vh;
  max-height: 90vh;
  border-radius: 20px;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 42, 127, 0.08) 0%, transparent 36%),
    radial-gradient(circle at 90% 18%, rgba(179, 43, 249, 0.08) 0%, transparent 38%),
    linear-gradient(135deg, rgba(20, 20, 25, 0.84) 0%, rgba(8, 8, 12, 0.94) 100%);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.82),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 48px rgba(255, 42, 127, 0.05);
  overflow: hidden;
  opacity: 0;
  transform: scale(0.95) translateY(20px);
  filter: blur(12px);
  transition: opacity 0.55s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.55s cubic-bezier(0.25, 1, 0.5, 1),
              filter 0.55s cubic-bezier(0.25, 1, 0.5, 1);
}

.select-panel-overlay.active .select-panel {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: blur(0);
}

.select-panel-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.select-panel-close:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: scale(1.05);
}

.select-panel-close:focus-visible,
.select-filter-btn:focus-visible,
.select-product-link:focus-visible,
.select-suggest-action:focus-visible {
  outline: none;
  border-color: #ff2a7f;
  box-shadow: 0 0 0 3px rgba(255, 42, 127, 0.22);
}

.select-panel-content {
  height: 100%;
  overflow-y: auto;
  padding: 52px;
}

.select-panel-content::-webkit-scrollbar {
  width: 6px;
}

.select-panel-content::-webkit-scrollbar-track {
  background: transparent;
}

.select-panel-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.13);
  border-radius: 3px;
}

.select-panel-header {
  max-width: 1000px;
  margin-bottom: 34px;
}

.select-micro-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: #ff2a7f;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 12px;
  text-shadow: 0 0 10px rgba(255, 42, 127, 0.2);
}

.select-panel-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.08;
  color: #ffffff;
  margin-bottom: 16px;
}

.select-panel-intro,
.select-panel-support {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.94rem, 1.05vw, 1.05rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
  max-width: 850px;
}

.select-panel-support {
  margin-top: 8px;
}

.select-affiliate-notice {
  margin-top: 22px;
  padding: 16px 18px;
  max-width: 900px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
}

.select-affiliate-notice span {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #ff2a7f;
}

.select-affiliate-notice p {
  font-family: 'Inter', sans-serif;
  font-size: 0.84rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.68);
  margin-top: 6px;
}

.select-filter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.select-filter-btn {
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.74);
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.select-filter-btn:hover,
.select-filter-btn.active {
  background: rgba(255, 42, 127, 0.13);
  border-color: rgba(255, 42, 127, 0.32);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(255, 42, 127, 0.1);
}

.select-products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.select-product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.025) 100%);
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.select-product-card.is-hidden {
  display: none;
}

.select-product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 42, 127, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075) 0%, rgba(255, 255, 255, 0.035) 100%);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34), 0 0 26px rgba(255, 42, 127, 0.11);
}

.select-product-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 42, 127, 0.18), transparent 44%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
}

.select-product-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 8, 0.02) 0%, rgba(5, 5, 8, 0.72) 100%);
  pointer-events: none;
}

.select-product-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.select-product-card:hover .select-product-visual img {
  transform: scale(1.02);
}

.select-product-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #ffffff;
  background: rgba(255, 42, 127, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 6px 9px;
  text-shadow: 0 0 12px rgba(255, 42, 127, 0.4);
}

.select-product-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px;
}

.select-product-category {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #ff2a7f;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.select-product-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 10px;
}

.select-product-card p {
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.66);
}

.select-product-use {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.select-product-use span,
.select-product-retailer {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.46);
}

.select-product-use strong {
  display: block;
  margin-top: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
}

.select-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.select-product-link,
.select-suggest-action {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.86);
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

.select-product-link[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.72;
}

.select-product-link[aria-disabled="true"]::after {
  content: ' · Link coming soon';
  color: rgba(255, 255, 255, 0.45);
}

.select-final-block {
  margin-top: 42px;
  padding: 28px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 42, 127, 0.11), transparent 38%),
    rgba(255, 255, 255, 0.04);
}

.select-final-block h3 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  color: #ffffff;
  margin-bottom: 10px;
}

.select-final-block p {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
}

.select-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.select-principles div {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.select-principles h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: #ffffff;
  margin-bottom: 6px;
}

.select-final-notice {
  margin-top: 18px;
}

.select-suggest-action {
  margin-top: 20px;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .select-panel {
    width: 90vw;
    height: 88vh;
  }

  .select-panel-content {
    padding: 42px 36px;
  }

  .select-products-grid,
  .select-principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .select-panel {
    width: 92vw;
    height: 90dvh;
    max-height: 90dvh;
    border-radius: 16px;
  }

  .select-panel-close {
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
  }

  .select-panel-content {
    padding: 42px 20px 22px 20px;
  }

  .select-panel-title {
    font-size: clamp(1.8rem, 9vw, 2.45rem);
  }

  .select-filter-nav {
    gap: 8px;
  }

  .select-filter-btn {
    font-size: 0.76rem;
    padding: 8px 12px;
  }

  .select-products-grid,
  .select-principles {
    grid-template-columns: 1fr;
  }

  .select-product-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .select-final-block {
    padding: 22px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .select-panel-overlay,
  .select-panel,
  .select-panel-close,
  .select-product-card,
  .select-product-visual img,
  .select-filter-btn {
    transition: none !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }
}

/* ==========================================
   Scroll Narrative Story Layer
   ========================================== */

.scroll-story-layer {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100vw;
  height: calc(100vh - 80px);
  z-index: 4; /* above canvas and UIHUD, below Hero and About panel */
  pointer-events: none;
  overflow: hidden;
}

.story-chapter {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  --story-offset-y: 0px;
  --story-scale: 1;
  transform: translate3d(0, calc(-50% + var(--story-offset-y)), 0) scale(var(--story-scale));
  display: flex;
  padding: 0 8vw;
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity, filter;
  pointer-events: none;
  transition: visibility 0.4s ease;
}

/* Position modifiers */
.story-chapter--right {
  justify-content: flex-end;
}

.story-chapter--left {
  justify-content: flex-start;
}

.story-chapter--center {
  justify-content: center;
}

@media (min-width: 769px) {
  .story-chapter:nth-of-type(2),
  .story-chapter:nth-of-type(3),
  .story-chapter:nth-of-type(5),
  .story-chapter:nth-of-type(6) {
    top: 45%;
  }
}

@media (min-width: 769px) and (max-height: 850px) {
  .story-chapter:nth-of-type(2),
  .story-chapter:nth-of-type(3),
  .story-chapter:nth-of-type(5),
  .story-chapter:nth-of-type(6) {
    top: 42%;
  }

  .story-chapter-content {
    gap: 12px;
  }

  .story-title {
    font-size: clamp(1.65rem, 2.6vw, 2.25rem);
  }

  .story-text {
    font-size: clamp(0.86rem, 1vw, 0.98rem);
    line-height: 1.55;
  }

  .story-pillars {
    gap: 14px;
    margin-top: 10px;
  }

  .story-capsules-grid,
  .story-indicators,
  .story-bullets-grid {
    margin-top: 10px;
  }
}

/* Content layout wrapper */
.story-chapter-content {
  width: 100%;
  max-width: 580px; /* between 520px and 680px */
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
  pointer-events: none;
}

.story-chapter--center .story-chapter-content {
  text-align: center;
  align-items: center;
  max-width: 760px;
}

/* Editorial elements */
.story-micro-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: #ff2a7f;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 42, 127, 0.2);
}

.story-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.story-text {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.story-line {
  width: 50px;
  height: 2px;
  background: #ff2a7f;
  margin: 6px 0;
  box-shadow: 0 0 8px #ff2a7f;
}

/* CHAPTER 2: Pillars Grid */
.story-pillars {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 15px;
  text-align: left;
}

.story-pillar {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  opacity: 0.25;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.story-pillar-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1;
  margin-top: 2px;
  transition: color 0.4s ease;
}

.story-pillar.active .story-pillar-num {
  color: #ff2a7f;
}

.story-pillar-body h5 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}

.story-pillar-body h5.highlight-magenta {
  background: linear-gradient(135deg, #ff2a7f 0%, #b32bf9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(255, 42, 127, 0.15));
}

.story-pillar-body p {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

/* CHAPTER 3: Connected Capabilities Capsules */
.story-capsules-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.story-capsule-row {
  display: flex;
  gap: 10px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.story-capsule {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  user-select: none;
  transition: all 0.3s ease;
}

.story-capsule:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* CHAPTER 4: Process Timeline */
.story-process-timeline {
  position: relative;
  width: 100%;
  max-width: 820px;
  margin-top: 35px;
  padding: 10px 0;
}

.story-process-line-bg {
  position: absolute;
  top: 15px;
  left: 10%;
  width: 80%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.story-process-line-progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ff2a7f 0%, #b32bf9 100%);
  box-shadow: 0 0 10px rgba(255, 42, 127, 0.6);
  transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.story-process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  z-index: 2;
}

.story-process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 8px;
  opacity: 0.25;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.story-process-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #050508;
  border: 2px solid rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.story-process-step.active {
  opacity: 1;
  transform: translateY(0);
}

.story-process-step.active .story-process-dot {
  background: #ff2a7f;
  border-color: #ffffff;
  box-shadow: 0 0 12px #ff2a7f, 0 0 20px #ff2a7f;
  transform: scale(1.25);
}

.story-process-num {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 6px;
}

.story-process-step h5 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.story-process-step p {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.45;
}

/* CHAPTER 5: Differential Indicators */
.story-indicators {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 15px;
  text-align: left;
}

.story-indicator-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.story-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff2a7f;
  box-shadow: 0 0 8px #ff2a7f, 0 0 15px #ff2a7f;
}

.story-indicator-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

/* CHAPTER 6: Presence Bullets */
.story-bullets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 15px;
  text-align: left;
}

.story-bullet-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-bullet-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff2a7f;
  box-shadow: 0 0 8px #ff2a7f;
}

.story-bullet-item span {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

/* CHAPTER 7: Final CTA button flow */
.story-cta-buttons {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  pointer-events: none; /* Inherited from overlay */
}

/* Allow click event on elements inside CTA */
.story-cta-buttons .btn {
  pointer-events: auto !important;
}

/* ==========================================
   Responsive Story Layer Styling
   ========================================== */

@media (max-width: 1024px) {
  .story-chapter {
    padding: 0 6vw;
  }
  .story-chapter-content {
    max-width: 500px;
  }
  .story-chapter--center .story-chapter-content {
    max-width: 700px;
  }
}

@media (max-width: 768px) {
  .scroll-story-layer {
    top: 80px;
    height: calc(100vh - 80px);
  }
  
  .story-chapter {
    top: auto;
    bottom: 8%; /* Safe bottom overlay area */
    transform: translate3d(0, var(--story-offset-y), 0) scale(var(--story-scale));
    align-items: flex-end;
    padding: 0 20px;
  }
  
  .story-chapter-content {
    max-width: 100% !important;
    text-align: center !important;
    align-items: center !important;
    background: rgba(5, 5, 8, 0.72); /* translucent backdrop overlay for contrast */
    padding: 24px 20px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }
  
  .story-title {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
  }
  
  /* CHAPTER 2: Mobile Stack */
  .story-pillars {
    gap: 14px;
  }
  .story-pillar {
    gap: 12px;
    transform: none !important;
    opacity: 1 !important;
  }
  .story-pillar-num {
    font-size: 1.2rem;
  }
  .story-pillar-body h5 {
    font-size: 0.95rem;
  }
  .story-pillar-body p {
    font-size: 0.8rem;
  }
  
  /* CHAPTER 3: Mobile Capsules flow */
  .story-capsules-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
  }
  .story-capsule-row {
    display: contents !important; /* Flatten row tags to allow inline wrapping */
  }
  .story-capsule {
    font-size: 0.78rem;
    padding: 5px 12px;
  }
  
  /* CHAPTER 4: Mobile Process stack */
  .story-process-timeline {
    margin-top: 15px;
  }
  .story-process-line-bg {
    display: none; /* Hide horizontal timeline bar on mobile */
  }
  .story-process-steps {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: left;
  }
  .story-process-step {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 12px;
    padding: 0;
    transform: none !important;
    opacity: 0.3;
  }
  .story-process-step.active {
    opacity: 1;
  }
  .story-process-dot {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .story-process-num {
    margin-bottom: 0;
    margin-right: 4px;
  }
  .story-process-step h5 {
    margin-bottom: 0;
    font-size: 0.9rem;
  }
  .story-process-step p {
    display: none; /* Hide description to prevent viewport overflow */
  }
  
  /* CHAPTER 5: Mobile Indicators */
  .story-indicators {
    gap: 10px;
  }
  .story-indicator-text {
    font-size: 0.88rem;
  }
  
  /* CHAPTER 6: Mobile Bullet list */
  .story-bullets-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .story-bullet-item span {
    font-size: 0.88rem;
  }
  
  /* CHAPTER 7: Mobile CTAs stack */
  .story-cta-buttons {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }
  .story-cta-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .story-chapter {
    bottom: 5%;
  }
  .story-chapter-content {
    padding: 20px 16px;
    gap: 12px;
  }
  .story-title {
    font-size: 1.35rem;
  }
  .story-text {
    font-size: 0.82rem;
    line-height: 1.5;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .story-chapter,
  .story-pillar,
  .story-capsule-row,
  .story-process-step {
    transition: none !important;
    transform: none !important;
    filter: none !important;
  }
}
