:root {
  --bg-dark: #070707;
  --yellow-accent: #ffb800;
  --text-light: #ffffff;
  --text-dark: #111111;
  --card-glass: rgba(18, 18, 18, 0.65);
  --card-border: rgba(255, 255, 255, 0.1);
  --gray-text: #9e9e9e;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

button, a, input, select, textarea {
  touch-action: manipulation;
}

html {
  width: 100%;
  min-height: 100%;
  min-height: 100dvh;
  overflow-x: clip;
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  width: 100%;
  min-height: 100%;
  min-height: 100dvh;
  background-color: var(--bg-dark);
  color: var(--text-light);
  position: relative;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Fixed Fullscreen Canvas Background */
#canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* Subtle Vignette Overlay for Canvas */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at center, rgba(5, 5, 5, 0.15) 0%, rgba(5, 5, 5, 0.65) 100%);
  pointer-events: none;
}

/* Main Content Layer */
.content-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Navigation Bar */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 50px;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
  z-index: 1000;
  transition: padding 0.25s ease, background 0.25s ease;
}

.nav-logo {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-decoration: none;
  background: var(--yellow-accent);
  color: var(--text-dark);
  padding: 5px 12px;
  border-radius: 3px;
  text-transform: lowercase;
}

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

.nav-links a {
  color: var(--gray-text);
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* Mobile Navigation Button */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 12px 10px;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  z-index: 1002;
  border-radius: 6px;
  transition: background 0.25s ease;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:active {
  background: rgba(255, 255, 255, 0.08);
}

.hamburger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease, background 0.3s ease;
}

.mobile-menu-btn.open .hamburger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background: var(--yellow-accent);
}

.mobile-menu-btn.open .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.open .hamburger-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background: var(--yellow-accent);
}

/* Mobile Navigation Overlay Drawer */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2100;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.35s ease;
  display: flex;
  justify-content: flex-end;
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.mobile-nav-content {
  width: min(340px, 85vw);
  height: 100%;
  height: 100dvh;
  background: rgba(12, 12, 12, 0.98);
  border-left: 1px solid var(--card-border);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.85);
  padding: calc(max(20px, env(safe-area-inset-top)) + 16px) max(24px, env(safe-area-inset-right)) calc(max(25px, env(safe-area-inset-bottom)) + 15px) 24px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-overlay.active .mobile-nav-content {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 20px;
}

.mobile-nav-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--yellow-accent);
  font-weight: 700;
}

.mobile-nav-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  touch-action: manipulation;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.mobile-nav-close:hover,
.mobile-nav-close:active {
  color: var(--yellow-accent);
  background: rgba(255, 255, 255, 0.08);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-link {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 12px 6px;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  touch-action: manipulation;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  color: var(--yellow-accent);
  padding-left: 10px;
}

/* Section Shared Rules */
section {
  min-height: 100vh;
  padding: 120px 50px 80px 50px;
  background: transparent; /* No opaque background to hide animation */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 40px;
  font-weight: 800;
  text-transform: lowercase;
  letter-spacing: -1px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Page 1: Hero */
#hero {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-container {
  max-width: 860px;
  background: rgba(10, 10, 10, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 70px 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.hero-badge {
  display: inline-block;
  background: var(--yellow-accent);
  color: var(--text-dark);
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 25px;
  border-radius: 2px;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  text-transform: lowercase;
  letter-spacing: -2px;
  margin-bottom: 20px;
  line-height: 1;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #c5c5c5;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Page 2: About Layout */
#about {
  padding: 100px 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-card, .split-yellow {
  max-width: 860px;
  width: 100%;
  background: rgba(255, 184, 0, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text-dark);
  border-radius: 8px;
  padding: 70px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.split-yellow h2 {
  background: #000;
  color: #fff;
  padding: 6px 16px;
  display: inline-block;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 25px;
  width: max-content;
  border-radius: 2px;
}

.split-yellow p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  font-weight: 500;
}

.split-yellow a {
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: opacity 0.2s ease;
}

.split-yellow a:hover,
.split-yellow a:focus {
  opacity: 0.7;
}

/* Page 3: Marquee Ads */
.marquee-container {
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding: 10px 0;
}

.marquee-row {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.marquee-row:hover {
  animation-play-state: paused;
}

.marquee-row.rtl { animation: scrollRTL 26s ease-in-out infinite alternate; }
.marquee-row.ltr { animation: scrollLTR 26s ease-in-out infinite alternate; }

.video-card {
  width: 320px;
  height: 180px;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  background: #000;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: paint;
}

.video-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--yellow-accent);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  z-index: 5;
}

.video-card video {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
  background: #000;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 15px;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.25s ease;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--yellow-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  padding-left: 3px;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.video-card:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.15);
  background: var(--yellow-accent);
  color: var(--text-dark);
}

.video-card.playing .video-play-btn {
  opacity: 0;
}

.video-title {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

@keyframes scrollRTL {
  0% { transform: translateX(calc(100vw - 100% - 60px)); }
  100% { transform: translateX(0); }
}

@keyframes scrollLTR {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(100vw - 100% - 60px)); }
}

/* Inline Ad Pop-up in Page 3 (Pops up in the same area with audio) */
#ads {
  position: relative;
  overflow: hidden;
}

.marquee-container.paused .marquee-row,
.marquee-container.offscreen .marquee-row {
  animation-play-state: paused !important;
}

/* Ad Pop-up Backdrop */
.ad-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 2200;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.3s ease;
}

.ad-popup-backdrop.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.inline-ad-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: min(92vw, 840px);
  max-height: 90vh;
  max-height: 90dvh;
  background: rgba(14, 14, 14, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid var(--yellow-accent);
  border-radius: 14px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95), 0 0 35px rgba(255, 184, 0, 0.25);
  z-index: 2210;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
  padding: 20px;
}

.inline-ad-popup.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.inline-popup-video-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.8);
}

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

.inline-popup-close {
  position: absolute;
  top: -14px;
  right: -14px;
  background: var(--yellow-accent);
  color: var(--text-dark);
  border: 2px solid #000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease, background 0.2s ease;
  line-height: 1;
  touch-action: manipulation;
}

.inline-popup-close:hover {
  transform: scale(1.12);
  background: #fff;
}

.inline-popup-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding: 0 4px;
}

.inline-popup-meta h3 {
  font-size: 1.1rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.inline-popup-hint {
  font-size: 0.78rem;
  color: var(--yellow-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Page 4: Static Posters */
#posters {
  position: relative;
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

.poster-item {
  background: var(--card-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  aspect-ratio: 3 / 4;
  height: auto;
  max-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cfcfcf;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.poster-item:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--yellow-accent);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 222, 89, 0.25);
}

.poster-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), filter 0.3s ease;
  pointer-events: none;
}

.poster-item:hover img {
  transform: scale(1.06);
}

/* Page 4: Poster Pop-up Modal Backdrop & Dialog */
.poster-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 2200;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.3s ease;
}

.poster-popup-backdrop.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.inline-poster-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: min(540px, 92vw);
  max-height: 88vh;
  max-height: 88dvh;
  background: rgba(14, 14, 14, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--yellow-accent);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 35px rgba(255, 184, 0, 0.25);
  z-index: 2210;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.3s ease;
  overflow: hidden;
}

.inline-poster-popup.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.popup-glass-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--card-border);
  background: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  flex-shrink: 0;
}

.popup-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.1rem;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: all 0.2s ease;
}

.popup-close-btn:hover,
.popup-close-btn:active {
  background: #ff4757;
  color: #fff;
  border-color: #ff4757;
}

.popup-poster-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #0a0a0a;
  overflow: hidden;
}

.popup-poster-container img {
  max-width: 100%;
  max-height: min(68vh, 600px);
  max-height: min(68dvh, 600px);
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* Page 5: Interactive Carousels */
.carousel-wrapper {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 36px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 20px;
}

.carousel-deck {
  flex: 1 1 350px;
  max-width: 420px;
  background: var(--card-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  cursor: pointer;
}

.carousel-deck:hover,
.carousel-deck:active,
.carousel-deck.touch-active {
  transform: translateY(-8px) scale(1.025);
  border-color: var(--yellow-accent);
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.8), 0 0 32px rgba(255, 222, 89, 0.35);
}

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

.carousel-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.carousel-deck h3 {
  font-size: 0.95rem;
  color: var(--yellow-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

.deck-popup-btn {
  background: rgba(255, 222, 89, 0.1);
  border: 1px solid rgba(255, 222, 89, 0.35);
  color: var(--yellow-accent);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
}

.deck-popup-btn:hover {
  background: var(--yellow-accent);
  color: #000;
  border-color: var(--yellow-accent);
  box-shadow: 0 0 12px rgba(255, 222, 89, 0.4);
}

.slide-indicator {
  font-size: 0.8rem;
  font-weight: 700;
  color: #a0a0a0;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Page 5: Carousel Pop-up Modal (Fixed Lightbox) */
.carousel-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1990;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.35s ease;
}

.carousel-popup-backdrop.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.inline-carousel-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: min(560px, 94vw);
  max-height: 92vh;
  background: rgba(12, 12, 12, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--yellow-accent);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 45px rgba(255, 222, 89, 0.35);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: 20px 22px 22px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.35s ease;
  overflow: hidden;
}

.inline-carousel-popup.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.popup-carousel-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.popup-carousel-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--yellow-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.popup-carousel-deck {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  max-width: 100% !important;
  transform: none !important;
}

.popup-carousel-deck:hover,
.popup-carousel-deck:active {
  transform: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

.popup-carousel-deck .carousel-slide {
  max-height: min(62vh, 560px);
  aspect-ratio: 4 / 5;
}

.popup-carousel-deck .carousel-slide img {
  max-height: min(62vh, 560px);
  object-fit: contain;
}

.carousel-viewport {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  touch-action: pan-y;
  background: #000;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.carousel-slides {
  display: flex;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.carousel-slides.grabbing {
  cursor: grabbing;
  scroll-behavior: auto;
}

.carousel-slides::-webkit-scrollbar { display: none; }

.carousel-slide {
  min-width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  max-height: 520px;
  background: #080808;
  scroll-snap-align: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: pan-y;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
  display: block;
  pointer-events: none;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(14, 14, 14, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--card-border);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, color 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
  user-select: none;
}

.carousel-arrow:hover {
  background: var(--yellow-accent);
  color: #000;
  border-color: var(--yellow-accent);
  transform: translateY(-50%) scale(1.12);
}

.carousel-arrow.disabled,
.carousel-arrow:disabled {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(-50%) scale(0.75);
}

.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  padding: 0;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.carousel-dot.active {
  width: 26px;
  border-radius: 4px;
  background: var(--yellow-accent);
  box-shadow: 0 0 10px rgba(255, 222, 89, 0.5);
}

/* Page 6: Services & AI Stack */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-box {
  background: var(--card-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  padding: 40px 30px;
  border-radius: 8px;
  border-top: 4px solid var(--yellow-accent);
  transition: transform 0.3s ease;
}

.service-box:hover {
  transform: translateY(-4px);
}

.service-box h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #fff;
}

.service-box p {
  color: #c0c0c0;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Page 7: Categorized Video Library */
.folder-container {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.folder-section h3 {
  font-size: 1.15rem;
  margin-bottom: 25px;
  color: var(--yellow-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 12px;
}

.video-folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.library-video-card {
  background: var(--card-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.library-video-card:hover {
  transform: translateY(-5px);
  border-color: var(--yellow-accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 222, 89, 0.2);
}

.library-video-card.playing {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(14, 14, 14, 0.95);
}

/* Video Library Container & Wrapper - Zero Internal Scrolling */
#library,
#library .folder-container,
#library .folder-section,
#library .video-folder-grid,
#library .library-video-card,
#library .library-video-wrap,
#library .library-video-info,
#library .library-controls-bar {
  overflow: hidden !important;
  overscroll-behavior: auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

#library *::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.library-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden !important;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  contain: paint;
  cursor: pointer;
  touch-action: pan-y;
  overscroll-behavior: auto;
}

.library-video-card.playing .library-video-wrap {
  cursor: default;
}

.library-video-card video {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #000;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  pointer-events: none;
  overflow: hidden !important;
}

/* Big Center Play / Pause Indicator Button */
.library-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(14, 14, 14, 0.85);
  border: 2px solid var(--yellow-accent);
  color: var(--yellow-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), 0 0 15px rgba(255, 222, 89, 0.3);
  opacity: 1;
  pointer-events: auto;
}

.library-play-btn .play-icon {
  font-size: 1.35rem;
  margin-left: 3px;
  line-height: 1;
  pointer-events: none;
}

.library-play-btn * {
  pointer-events: none;
}

.library-play-btn:hover {
  background: var(--yellow-accent);
  color: #000;
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 222, 89, 0.5);
}

/* Hide center play button ONLY while video is playing; show ▶ when paused */
.library-video-card.video-is-playing .library-play-btn {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.8);
}

.library-video-card:not(.video-is-playing) .library-play-btn {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

/* Custom Cinematic Video Controls Bar for Section 7 */
.library-controls-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(8, 8, 8, 0.95) 0%, rgba(8, 8, 8, 0.6) 65%, transparent 100%);
  padding: 8px 14px 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s ease;
  transform: translateY(6px);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  overscroll-behavior: auto;
}

/* Reveal controls on hover, when controls-active (mouse movement/tap), when paused after playing, or when scrubbing */
.library-video-card.playing:hover .library-controls-bar,
.library-video-card.playing.controls-active .library-controls-bar,
.library-video-card.playing:not(.video-is-playing) .library-controls-bar,
.library-video-card.is-scrubbing .library-controls-bar {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Timeline container with generous hit area for effortless scrubbing */
.custom-timeline {
  position: relative;
  width: 100%;
  height: 24px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: pan-y;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
}

.library-video-card.is-scrubbing .custom-timeline,
.library-video-card.is-scrubbing .library-controls-bar {
  cursor: grabbing;
  touch-action: none;
}

.timeline-track {
  position: relative;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  transition: height 0.15s ease;
}

.custom-timeline:hover .timeline-track,
.library-video-card.is-scrubbing .timeline-track {
  height: 6px;
}

.timeline-buffer {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  pointer-events: none;
}

.timeline-played {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--yellow-accent, #ffde59);
  border-radius: 4px;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(255, 222, 89, 0.5);
}

.timeline-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border: 2px solid var(--yellow-accent, #ffde59);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8), 0 0 8px rgba(255, 222, 89, 0.8);
  pointer-events: none;
}

.custom-timeline:hover .timeline-thumb {
  transform: translate(-50%, -50%) scale(1);
}

.library-video-card.is-scrubbing .timeline-thumb {
  transform: translate(-50%, -50%) scale(1.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 12px rgba(255, 222, 89, 1);
}

.controls-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.actions-left, .actions-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ctrl-play-btn, .ctrl-mute-btn, .ctrl-fs-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.2s ease, transform 0.15s ease;
}

.ctrl-play-btn:hover, .ctrl-mute-btn:hover, .ctrl-fs-btn:hover {
  color: var(--yellow-accent, #ffde59);
  transform: scale(1.1);
}

.ctrl-play-btn svg, .ctrl-mute-btn svg, .ctrl-fs-btn svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.library-video-card.video-is-playing .icon-play { display: none; }
.library-video-card.video-is-playing .icon-pause { display: block; }
.library-video-card:not(.video-is-playing) .icon-play { display: block; }
.library-video-card:not(.video-is-playing) .icon-pause { display: none; }

.ctrl-fs-btn .icon-fs-enter { display: block; }
.ctrl-fs-btn .icon-fs-exit { display: none; }

.library-video-wrap.is-fullscreen .ctrl-fs-btn .icon-fs-enter,
.library-video-wrap:fullscreen .ctrl-fs-btn .icon-fs-enter,
.library-video-wrap:-webkit-full-screen .ctrl-fs-btn .icon-fs-enter {
  display: none !important;
}

.library-video-wrap.is-fullscreen .ctrl-fs-btn .icon-fs-exit,
.library-video-wrap:fullscreen .ctrl-fs-btn .icon-fs-exit,
.library-video-wrap:-webkit-full-screen .ctrl-fs-btn .icon-fs-exit {
  display: block !important;
}

.library-video-card.video-is-muted .icon-vol { display: none; }
.library-video-card.video-is-muted .icon-mute { display: block; }
.library-video-card:not(.video-is-muted) .icon-vol { display: block; }
.library-video-card:not(.video-is-muted) .icon-mute { display: none; }

.ctrl-time {
  font-size: 0.78rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #d1d1d1;
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
  user-select: none;
}

/* Native Fullscreen Presentation for Video Library */
.library-video-wrap:fullscreen,
.library-video-wrap:-webkit-full-screen,
.library-video-wrap.is-fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  aspect-ratio: auto !important;
  background: #000 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 999999 !important;
}

.library-video-wrap:fullscreen video,
.library-video-wrap:-webkit-full-screen video,
.library-video-wrap.is-fullscreen video {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

.library-video-wrap:fullscreen .library-controls-bar,
.library-video-wrap:-webkit-full-screen .library-controls-bar,
.library-video-wrap.is-fullscreen .library-controls-bar {
  padding: 16px 36px 24px 36px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 65%, transparent 100%);
  bottom: 0;
}

.library-video-card .video-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  text-align: center;
  pointer-events: none;
  font-size: 0.95rem;
  color: #a0a0a0;
  background: rgba(0, 0, 0, 0.6);
  padding: 8px 12px;
  border-radius: 6px;
  backdrop-filter: blur(6px);
}

.library-video-info {
  padding: 16px 20px;
}

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

.library-video-info h4 {
  font-size: 1rem;
  margin: 0;
  color: #fff;
}

.library-popup-btn {
  background: rgba(255, 222, 89, 0.1);
  border: 1px solid rgba(255, 222, 89, 0.35);
  color: var(--yellow-accent);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  white-space: nowrap;
}

.library-popup-btn:hover {
  background: var(--yellow-accent);
  color: #000;
  border-color: var(--yellow-accent);
  box-shadow: 0 0 12px rgba(255, 222, 89, 0.4);
}

.library-video-info p {
  font-size: 0.85rem;
  color: var(--gray-text);
  margin: 0;
}

/* ==========================================================================
   Page 8: Case Study
   ========================================================================== */
#case-study {
  min-height: 100vh;
  padding: 120px 50px 90px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.case-study-container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Case Study Header */
.case-study-header {
  text-align: center;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.case-study-badge-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.case-study-badge {
  background: var(--yellow-accent);
  color: var(--text-dark);
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 2px;
}

.case-study-subheading-num {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-light);
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 2px;
  border: 1px solid var(--card-border);
}

.case-study-subheading-bar {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: 30px;
  padding: 6px 18px 6px 8px;
  margin-top: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.subheading-num-tag {
  background: var(--yellow-accent);
  color: var(--text-dark);
  font-weight: 800;
  font-size: 0.8rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-study-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: #d8d8d8;
  letter-spacing: 0.5px;
}

/* Centered Visual Thumbnail Frame */
.case-study-visual-wrapper {
  width: 100%;
  max-width: 960px;
  margin: 0 auto 32px auto;
}

.case-study-thumbnail-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
  border-radius: 12px;
  outline: none;
}

.case-study-thumbnail-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(15, 15, 15, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.case-study-thumbnail-link:hover .case-study-thumbnail-frame,
.case-study-thumbnail-link:focus-visible .case-study-thumbnail-frame {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(255, 184, 0, 0.6);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 35px rgba(255, 184, 0, 0.25);
}

.case-study-thumbnail-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.case-study-thumbnail-link:hover .case-study-thumbnail-img {
  transform: scale(1.015);
}

/* Thumbnail Hover Overlay Badge */
.case-study-thumbnail-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.7) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.case-study-thumbnail-link:hover .case-study-thumbnail-overlay,
.case-study-thumbnail-link:focus-visible .case-study-thumbnail-overlay {
  opacity: 1;
}

.overlay-action-badge {
  background: var(--yellow-accent);
  color: var(--text-dark);
  padding: 12px 24px;
  border-radius: 40px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 184, 0, 0.5);
  transform: translateY(10px);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.case-study-thumbnail-link:hover .overlay-action-badge {
  transform: translateY(0);
}

.overlay-icon-svg {
  flex-shrink: 0;
}

/* Copy and Actions Card */
.case-study-copy-card {
  width: 100%;
  max-width: 960px;
  background: var(--card-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 34px 40px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.case-study-copy-text {
  font-size: 1.15rem;
  line-height: 1.75;
  color: #f0f0f0;
  font-weight: 400;
  letter-spacing: 0.2px;
}

.case-study-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

/* Interactive CTA Button */
.case-study-cta-btn {
  background: linear-gradient(135deg, #ffc72c 0%, #ff9e00 100%);
  color: #0d0d0d;
  border: none;
  outline: none;
  padding: 15px 32px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(255, 184, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.case-study-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(255, 184, 0, 0.55);
  filter: brightness(1.06);
}

.case-study-cta-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 184, 0, 0.4);
}

.cta-link-icon {
  font-size: 1.15rem;
  line-height: 1;
}

/* Direct Download Link */
.case-study-direct-download {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.case-study-direct-download:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--yellow-accent);
  color: var(--yellow-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Interactive Pitch Deck Presentation Modal (12 Slides)
   ========================================================================== */
.deck-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 4, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.deck-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.pitch-deck-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: 95vw;
  max-width: 1380px;
  height: 94vh;
  max-height: 880px;
  background: rgba(12, 12, 12, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  z-index: 3001;
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.95), 0 0 45px rgba(255, 184, 0, 0.12);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s ease;
}

.pitch-deck-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

/* Modal Header */
.pitch-deck-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 18, 18, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  flex-shrink: 0;
}

.deck-header-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
}

.deck-brand-badge {
  background: var(--yellow-accent);
  color: var(--text-dark);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 3px;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

.deck-header-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deck-counter {
  background: rgba(255, 255, 255, 0.08);
  color: var(--yellow-accent);
  border: 1px solid rgba(255, 184, 0, 0.3);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
  white-space: nowrap;
}

.deck-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.deck-download-action {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.deck-download-action:hover {
  background: var(--yellow-accent);
  color: var(--text-dark);
  border-color: var(--yellow-accent);
}

.deck-ctrl-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  width: 34px;
  height: 34px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.deck-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--yellow-accent);
}

.deck-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  font-size: 1.4rem;
  width: 34px;
  height: 34px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.2s ease;
}

.deck-close-btn:hover {
  background: #ff4757;
  border-color: #ff4757;
  color: #fff;
}

/* Modal Viewport */
.pitch-deck-viewport {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: radial-gradient(circle at center, rgba(22, 22, 22, 0.8) 0%, rgba(8, 8, 8, 0.98) 100%);
  user-select: none;
}

.deck-slide-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.deck-active-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  transition: opacity 0.2s ease;
}

.deck-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(18, 18, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 10;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.deck-arrow-btn.prev { left: 24px; }
.deck-arrow-btn.next { right: 24px; }

.deck-arrow-btn:hover {
  background: var(--yellow-accent);
  color: var(--text-dark);
  border-color: var(--yellow-accent);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px rgba(255, 184, 0, 0.5);
}

.deck-arrow-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: translateY(-50%) scale(1);
  box-shadow: none;
}

/* Modal Bottom Thumbnail Strip */
.pitch-deck-thumbnails-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(14, 14, 14, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  scrollbar-width: thin;
  flex-shrink: 0;
}

.deck-thumb-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 2px;
  cursor: pointer;
  flex-shrink: 0;
  width: 90px;
  height: 54px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.deck-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.deck-thumb-btn .thumb-slide-tag {
  position: absolute;
  bottom: 3px;
  right: 4px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
}

.deck-thumb-btn:hover {
  border-color: rgba(255, 184, 0, 0.5);
  transform: translateY(-2px);
}

.deck-thumb-btn.active {
  border-color: var(--yellow-accent);
  box-shadow: 0 0 12px rgba(255, 184, 0, 0.5);
  transform: translateY(-2px);
}

.deck-thumb-btn.active .thumb-slide-tag {
  background: var(--yellow-accent);
  color: var(--text-dark);
}

.deck-modal-footer {
  padding: 6px 20px;
  background: #080808;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.deck-hint {
  font-size: 0.75rem;
  color: #777;
  letter-spacing: 0.5px;
}

/* Page 9: Contact (Two-Panel Interactive Experience) */
/* Page 9: Contact (Two-Panel Interactive Experience) */
#contact {
  padding: 80px 40px 60px 40px;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.contact-two-panel-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
}

/* LEFT PANEL: Contact Information Card (16:9 Aspect Ratio) */
.contact-panel-info {
  background: linear-gradient(145deg, #ffb800 0%, #f59e0b 100%);
  color: #111111;
  border-radius: 16px;
  padding: 32px 36px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  background: rgba(0, 0, 0, 0.12);
  color: #111;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.contact-title {
  font-size: clamp(1.45rem, 2.2vw, 2.1rem);
  font-weight: 900;
  text-transform: lowercase;
  letter-spacing: -1.2px;
  line-height: 1.15;
  margin-bottom: 6px;
}

.contact-desc {
  font-size: 0.88rem;
  line-height: 1.45;
  margin-bottom: 12px;
  font-weight: 500;
  opacity: 0.92;
}

.contact-details-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.08);
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-detail-item.full-width {
  grid-column: 1 / -1;
}

.contact-detail-link:hover {
  background: rgba(0, 0, 0, 0.15);
  transform: translateX(3px);
}

.detail-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.detail-icon svg {
  width: 100%;
  height: 100%;
}

.detail-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.detail-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.7;
  line-height: 1;
  margin-bottom: 2px;
}

.detail-value {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.contact-btn {
  background: #111111;
  color: var(--yellow-accent);
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  opacity: 0.95;
}

.contact-footer {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  padding-top: 10px;
}

/* RIGHT PANEL: Interactive Feedback & Celebration Stage (16:9 Aspect Ratio) */
.contact-panel-feedback {
  background: radial-gradient(circle at 50% 25%, rgba(26, 26, 32, 0.94) 0%, rgba(12, 12, 14, 0.98) 100%);
  border: 1.5px solid rgba(255, 184, 0, 0.28);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 28px 32px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  aspect-ratio: 16 / 9;
  min-height: 0;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

/* Feedback Ask Stage */
.feedback-ask-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-align: center;
  position: relative;
  z-index: 5;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.feedback-ask-stage.stage-hidden {
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
  visibility: hidden;
}

.feedback-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  background: rgba(255, 184, 0, 0.15);
  color: var(--yellow-accent);
  border: 1px solid rgba(255, 184, 0, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.feedback-question {
  font-size: clamp(1.65rem, 2.5vw, 2.3rem);
  font-weight: 900;
  text-align: center;
  letter-spacing: -1.2px;
  line-height: 1.18;
  margin-bottom: 26px;
  color: #ffffff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  max-width: 440px;
}

.feedback-btn-arena {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  min-height: 70px;
  position: relative;
}

.feedback-btn {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  padding: 16px 44px;
  border-radius: 12px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transform-origin: center center;
}

.feedback-btn-yes {
  background: var(--yellow-accent);
  color: #111111;
  box-shadow: 0 10px 30px rgba(255, 184, 0, 0.35);
  position: relative;
  z-index: 15;
  will-change: transform;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, filter 0.2s ease;
}

.feedback-btn-yes:hover {
  filter: brightness(1.08);
  box-shadow: 0 14px 40px rgba(255, 184, 0, 0.6);
}

.feedback-btn-no {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 10;
  will-change: transform, opacity;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.28s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.feedback-btn-no:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
}

/* Playful toast on accidental/fallback NO click */
.feedback-no-toast {
  position: absolute;
  bottom: 24px;
  background: rgba(20, 20, 24, 0.95);
  color: var(--yellow-accent);
  border: 1px solid rgba(255, 184, 0, 0.4);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(12px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 25;
}

.feedback-no-toast.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* CELEBRATION STAGE - Direct High-Impact 16:9 Video Playback */
.feedback-celebration-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  border-radius: inherit;
  overflow: hidden;
  background: #000000;
}

.feedback-celebration-stage.active {
  opacity: 1;
  pointer-events: auto;
}

.celebration-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
  pointer-events: none;
  background: #000000;
}

/* Replay Video Button (Revealed when video finishes) */
.celebration-replay-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(15, 15, 20, 0.88);
  color: var(--yellow-accent);
  border: 1.5px solid rgba(255, 184, 0, 0.6);
  border-radius: 999px;
  padding: 13px 30px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.75), 0 0 25px rgba(255, 184, 0, 0.25);
  z-index: 35;
  outline: none;
}

.celebration-replay-btn .replay-icon {
  font-size: 1.25rem;
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.celebration-replay-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.celebration-replay-btn:hover {
  background: rgba(255, 184, 0, 0.22);
  border-color: var(--yellow-accent);
  color: #ffffff;
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.85), 0 0 35px rgba(255, 184, 0, 0.45);
}

.celebration-replay-btn:hover .replay-icon {
  transform: rotate(-180deg);
}

.celebration-replay-btn:active {
  transform: translate(-50%, -50%) scale(0.98);
}


/* Minimal Sleek Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #080808;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--yellow-accent);
}

/* ==========================================================================
   Comprehensive Responsive System (Desktop, Laptop, Tablet, Mobile, iOS & Android)
   ========================================================================== */

/* Laptops & Large Tablets (<= 1200px) */
@media (max-width: 1200px) {
  nav {
    padding: 16px 36px;
    padding-top: max(16px, env(safe-area-inset-top));
    padding-left: max(28px, env(safe-area-inset-left));
    padding-right: max(28px, env(safe-area-inset-right));
  }
  .nav-links {
    gap: 16px;
  }
  .nav-links a {
    font-size: 0.8rem;
    letter-spacing: 0.5px;
  }
  section {
    padding: 105px 36px 65px;
  }
  .poster-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .video-folder-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .contact-two-panel-wrapper {
    gap: 24px;
  }
  .contact-panel-info {
    aspect-ratio: auto;
    min-height: 390px;
    padding: 34px 28px;
  }
  .contact-title {
    font-size: clamp(1.6rem, 2.3vw, 2.1rem);
  }
  .contact-panel-feedback {
    aspect-ratio: 16 / 9;
    min-height: 330px;
    padding: 36px 28px;
  }
}

/* Tablets (Portrait & Landscape) & Compact Laptops (<= 920px) */
@media (max-width: 920px) {
  nav {
    padding: 14px 24px;
    padding-top: max(14px, env(safe-area-inset-top));
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  section {
    padding: 95px 24px 55px;
  }
  .section-title {
    font-size: clamp(2rem, 5.5vw, 2.5rem);
    margin-bottom: 28px;
  }
  .hero-container {
    padding: 50px 25px;
  }
  .hero-title {
    font-size: clamp(2.6rem, 9vw, 3.6rem);
  }
  .about-card, .split-yellow {
    padding: 44px 28px;
  }
  .video-card {
    width: 270px;
    height: 152px;
  }
  .poster-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .carousel-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .carousel-deck {
    width: 100%;
    max-width: 520px;
    flex: 1 1 100%;
    padding: 22px 20px;
  }
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
    gap: 18px;
  }
  .video-folder-grid {
    grid-template-columns: 1fr;
    max-width: 580px;
    margin: 0 auto;
    gap: 20px;
  }
  #case-study {
    padding: 95px 24px 55px;
  }
  .case-study-copy-card {
    padding: 26px 22px;
  }
  .case-study-copy-text {
    font-size: 1.02rem;
  }
  .contact-two-panel-wrapper {
    grid-template-columns: 1fr;
    max-width: 580px;
    margin: 0 auto;
    gap: 22px;
  }
  .contact-panel-info {
    aspect-ratio: auto;
    min-height: auto;
    padding: 34px 28px;
    border-radius: 14px;
  }
  .contact-panel-feedback {
    aspect-ratio: 16 / 9;
    min-height: 320px;
    padding: 32px 24px;
    border-radius: 14px;
  }
  .pitch-deck-modal {
    width: min(94vw, 840px);
    height: min(92vh, 92dvh, 760px);
  }
}

/* Mobile Phones & Phablets (<= 768px) */
@media (max-width: 768px) {
  nav {
    padding: 12px 18px;
    padding-top: max(12px, env(safe-area-inset-top));
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .nav-logo {
    font-size: 0.88rem;
    padding: 4px 10px;
  }

  /* Section Spacing & Sizing */
  section {
    padding: 85px max(16px, env(safe-area-inset-right)) 50px max(16px, env(safe-area-inset-left));
    min-height: auto;
  }
  .section-title {
    font-size: clamp(1.75rem, 7vw, 2.2rem);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
  }

  /* Page 1: Hero */
  #hero {
    min-height: 88vh;
    min-height: 88dvh;
    padding-top: 95px;
  }
  .hero-container {
    padding: 40px 18px;
    border-radius: 8px;
  }
  .hero-badge {
    margin-bottom: 16px;
    font-size: 0.7rem;
    padding: 3px 10px;
  }
  .hero-title {
    font-size: clamp(2.4rem, 11vw, 3.4rem);
    letter-spacing: -1px;
    margin-bottom: 16px;
  }
  .hero-subtitle {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  /* Page 2: About Me */
  #about {
    padding: 65px max(16px, env(safe-area-inset-right)) 45px max(16px, env(safe-area-inset-left));
  }
  .about-card, .split-yellow {
    padding: 36px 20px;
    border-radius: 8px;
  }
  .split-yellow h2 {
    font-size: 0.85rem;
    padding: 5px 12px;
    margin-bottom: 16px;
  }
  .split-yellow p {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 14px;
  }

  /* Page 3: 30+ Advertisements Marquee */
  .marquee-container {
    gap: 16px;
    padding: 6px 0;
  }
  .marquee-row {
    gap: 14px;
  }
  .video-card {
    width: 240px;
    height: 135px;
    border-radius: 6px;
  }
  .inline-ad-popup {
    width: min(94vw, 560px);
    max-height: 88vh;
    max-height: 88dvh;
    padding: 16px 14px 18px;
    border-radius: 12px;
  }
  .inline-popup-video-wrap {
    border-radius: 6px;
  }
  .inline-popup-meta {
    padding: 10px 4px 0;
  }
  .inline-popup-meta h3 {
    font-size: 0.95rem;
  }
  .inline-popup-close {
    top: -12px;
    right: -12px;
    width: 40px;
    height: 40px;
    font-size: 1.35rem;
  }

  /* Page 4: Posters Grid */
  .poster-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .poster-item {
    border-radius: 6px;
    aspect-ratio: 4 / 5;
  }
  .poster-caption {
    font-size: 0.72rem;
    padding: 10px 8px;
  }
  .inline-poster-popup {
    width: min(92vw, 440px);
    max-height: 86vh;
    max-height: 86dvh;
    border-radius: 12px;
  }
  .popup-poster-container {
    padding: 10px;
  }
  .popup-poster-container img {
    max-height: min(60vh, 60dvh, 460px);
  }

  /* Page 5: Interactive Carousels */
  .carousel-wrapper {
    gap: 20px;
    flex-direction: column;
    align-items: center;
  }
  .carousel-deck {
    flex: 1 1 100%;
    width: 100%;
    max-width: 440px;
    padding: 18px 16px;
    border-radius: 10px;
  }
  .carousel-arrow {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }
  .carousel-dots {
    margin-top: 14px;
    gap: 6px;
  }
  .inline-carousel-popup {
    width: min(94vw, 480px);
    max-height: 90vh;
    max-height: 90dvh;
    padding: 16px 14px 18px;
    border-radius: 12px;
  }
  .modal-carousel-arrow {
    width: 42px;
    height: 42px;
    font-size: 1.35rem;
  }

  /* Page 6: Services & AI Stack */
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 16px;
  }
  .service-box {
    padding: 24px 18px;
    border-radius: 8px;
  }
  .service-box h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
  }
  .service-box p {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  /* Page 7: Categorized Video Library */
  .folder-container {
    gap: 32px;
  }
  .folder-section h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
  }
  .video-folder-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 18px;
  }
  .library-video-card {
    border-radius: 8px;
  }
  .library-play-btn {
    width: 52px;
    height: 52px;
  }
  .library-play-btn .play-icon {
    font-size: 1.2rem;
  }
  .library-controls-bar {
    padding: 8px 12px;
  }
  .custom-timeline {
    height: 32px;
  }
  .timeline-thumb {
    width: 16px;
    height: 16px;
  }
  .ctrl-play-btn, .ctrl-mute-btn, .ctrl-fs-btn {
    min-width: 44px;
    min-height: 44px;
    padding: 6px;
  }
  .ctrl-play-btn svg, .ctrl-mute-btn svg, .ctrl-fs-btn svg {
    width: 20px;
    height: 20px;
  }
  .library-video-info {
    padding: 14px 16px;
  }
  .library-video-info h4 {
    font-size: 0.95rem;
  }
  .library-video-info p {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  /* Page 8: Case Study */
  #case-study {
    padding: 85px max(16px, env(safe-area-inset-right)) 50px max(16px, env(safe-area-inset-left));
    min-height: auto;
  }
  .case-study-header {
    margin-bottom: 22px;
  }
  .case-study-subheading-bar {
    flex-direction: column;
    text-align: center;
    border-radius: 12px;
    padding: 10px 14px;
    gap: 6px;
  }
  .case-study-copy-card {
    padding: 22px 16px;
    gap: 16px;
  }
  .case-study-copy-text {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  .case-study-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .case-study-cta-btn, .case-study-direct-download {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 14px 18px;
    font-size: 0.9rem;
  }

  /* Pitch Deck Modal for Mobile */
  .pitch-deck-modal {
    width: min(96vw, 680px);
    height: min(92vh, 92dvh, 780px);
    border-radius: 12px;
  }
  .pitch-deck-header {
    padding: 10px 14px;
  }
  .deck-header-meta {
    gap: 8px;
  }
  .deck-header-title {
    display: none;
  }
  .deck-brand-badge {
    font-size: 0.68rem;
    padding: 3px 8px;
  }
  .deck-counter {
    font-size: 0.74rem;
    padding: 2px 8px;
  }
  .deck-download-action {
    padding: 6px 10px;
    font-size: 0.72rem;
  }
  .deck-ctrl-btn#deck-fs-btn {
    display: none;
  }
  .deck-close-btn {
    width: 38px;
    height: 38px;
    font-size: 1.35rem;
  }
  .deck-arrow-btn {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
  }
  .deck-arrow-btn.prev { left: 8px; }
  .deck-arrow-btn.next { right: 8px; }
  .pitch-deck-thumbnails-bar {
    display: none;
  }
  .overlay-action-badge {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  /* Page 9: Contact (Mobile Stack) */
  #contact {
    padding: 60px max(16px, env(safe-area-inset-right)) 45px max(16px, env(safe-area-inset-left));
    min-height: auto;
  }
  .contact-two-panel-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    max-width: 580px;
  }
  .contact-panel-info {
    aspect-ratio: auto;
    min-height: auto;
    padding: 28px 20px;
    border-radius: 14px;
  }
  .contact-title {
    font-size: clamp(1.45rem, 6.5vw, 1.95rem);
    letter-spacing: -0.8px;
    margin-bottom: 8px;
  }
  .contact-desc {
    font-size: 0.86rem;
    line-height: 1.45;
    margin-bottom: 14px;
  }
  .contact-details-list {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 16px;
  }
  .contact-links {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  .contact-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 12px 18px;
    font-size: 0.82rem;
  }
  .contact-footer {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    font-size: 0.72rem;
    margin-top: 18px;
    padding-top: 14px;
  }
  .contact-panel-feedback {
    aspect-ratio: 16 / 9;
    min-height: 280px;
    padding: 24px 18px 16px;
    border-radius: 14px;
  }
  .feedback-question {
    font-size: clamp(1.35rem, 5.5vw, 1.8rem);
    margin-bottom: 18px;
  }
  .feedback-btn-arena {
    gap: 14px;
    min-height: 56px;
  }
  .feedback-btn {
    padding: 11px 24px;
    font-size: 0.95rem;
    min-height: 44px;
  }
}

/* Compact Mobile Phones (<= 420px: iPhone SE, Mini, Galaxy S) */
@media (max-width: 420px) {
  section {
    padding: 75px max(12px, env(safe-area-inset-right)) 35px max(12px, env(safe-area-inset-left));
  }
  .hero-container {
    padding: 34px 14px;
  }
  .hero-title {
    font-size: 2.15rem;
  }
  .hero-subtitle {
    font-size: 0.86rem;
  }
  .video-card {
    width: 205px;
    height: 115px;
  }
  .poster-grid {
    gap: 8px;
  }
  .poster-caption {
    font-size: 0.65rem;
    padding: 6px;
  }
  .carousel-deck {
    padding: 14px 12px;
  }
  .library-play-btn {
    width: 44px;
    height: 44px;
  }
  .library-play-btn .play-icon {
    font-size: 1rem;
  }
  .case-study-cta-btn {
    font-size: 0.82rem;
    padding: 12px 12px;
  }
  .case-study-direct-download {
    font-size: 0.8rem;
    padding: 12px 12px;
  }
  .contact-panel-info {
    padding: 24px 16px;
  }
  .contact-panel-feedback {
    min-height: 250px;
    padding: 20px 14px 12px;
  }
  .feedback-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Touch Device Optimization: Neutralize sticky hover on phones & tablets */
@media (hover: none) and (pointer: coarse) {
  .video-card:hover,
  .poster-item:hover,
  .service-box:hover,
  .library-video-card:hover,
  .carousel-deck:hover,
  .case-study-thumbnail-link:hover .case-study-thumbnail-frame {
    transform: none !important;
    box-shadow: none !important;
  }
  .poster-item:hover img,
  .case-study-thumbnail-link:hover .case-study-thumbnail-img {
    transform: none !important;
  }
  .case-study-thumbnail-link:hover .case-study-thumbnail-overlay {
    opacity: 0.9 !important;
  }
  .video-card:active,
  .poster-item:active,
  .service-box:active,
  .library-video-card:active,
  .carousel-deck:active {
    transform: scale(0.985) !important;
    opacity: 0.93;
  }
}
