@font-face {
  font-family: 'Daehan';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-10@1.0/Daehan.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'YeojuCeramic';
  src: url('https://cdn.jsdelivr.net/gh/woffz/b3@main/YeojuCeramicTTF/YeojuCeramicTTF.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'MapoAgape';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/MapoAgapeA.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'MuseumClassic';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_twelve@1.0/%EA%B5%AD%EB%A6%BD%EB%B0%95%EB%AC%BC%EA%B4%80%EB%AC%B8%ED%99%94%EC%9E%AC%EB%8B%A8%ED%81%B4%EB%9E%98%EC%8B%9DB.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DNFForgedBlade';
  src: url('https://cdn.df.nexon.com/img/common/font/DNFForgedBlade-Bold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SejongHakdang';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2307@1.1/SejongHakdang.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SumunjangBody';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2511-3@1.0/Sumunjang_BodyB.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Eulyoo1945';
  src: url('https://cdn.jsdelivr.net/gh/0xd669/eulyoo1945@master/webfonts/Eulyoo1945-SemiBold.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'MapoFlowerIsland';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/MapoFlowerIslandA.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ==========================================
   0. DESIGN SYSTEM & CSS VARIABLES
   ========================================== */
:root {
  /* Default Theme Colors - will be overridden by JS from data.json */
  --bg-color: #0b0c10;
  --primary-color: #ffffff;
  --secondary-color: #858585;
  --accent-color: #66fcf1;
  --button-color: #1f2833;
  --button-text-color: #ffffff;
  --close-btn-color: #ff4d4d;
  --card-border-color: rgba(255, 255, 255, 0.15);

  /* Fonts */
  --font-menu: 'Outfit', sans-serif;
  --font-body: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;

  /* Layout Aspect Ratios */
  --card-aspect-ratio: 16/9;
  /* Dynamic: 16/9 on desktop, 3/4 on mobile */
  --card-width: 540px;

  /* Bevel variables & color-mix alphas */
  --header-bevel-color-alpha: color-mix(in srgb, var(--header-bevel-color, #ffffff) calc(var(--header-bevel-opacity, 0.25) * 100%), transparent);
  --header-bevel-shadow-alpha: color-mix(in srgb, #000000 calc(var(--header-bevel-opacity, 0.25) * 40%), transparent);
}

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

/* Prevent transitions and animations during resize */
.resize-animation-stopper * {
  transition: none !important;
  animation: none !important;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-color);
  color: var(--primary-color);
  font-family: var(--font-body);
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

/* 글로벌 모바일 탭 음영 제거 및 아웃라인 리셋 */
* {
  -webkit-tap-highlight-color: transparent !important;
}

a, button, [role="button"], .project-card, .card-thumb-wrapper, .btn-card-play {
  outline: none !important;
}

a:focus, button:focus, .project-card:focus, .card-thumb-wrapper:focus, .btn-card-play:focus {
  outline: none !important;
  box-shadow: none !important;
}

body {
  background-color: var(--bg-color);
  color: var(--primary-color);
  min-height: 100vh;
  transition: background-color 0.5s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* 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;
}

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

/* ==========================================
   0. PRELOADER NEON CURTAIN (0 to 100 Counter)
   ========================================== */
.preloader-curtain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  background-color: var(--accent-color, #d4ff2a);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.45s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
  pointer-events: auto;
  box-sizing: border-box;
}

.preloader-curtain.slide-up {
  transform: translateY(-100%);
  pointer-events: none;
}

.curtain-center-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 320px;
  padding: 0 1rem;
}

.curtain-counter-box {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  user-select: none;
  width: 100%;
}

.curtain-number {
  font-family: var(--font-menu);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #000000;
  -webkit-text-stroke: 0;
  display: block;
  width: 100%;
  text-align: justify;
  text-align-last: justify;
  margin-right: -0.26em; /* Optical letter-spacing balance */
}

/* Sleek Progress Bar under the LOADING text */
.curtain-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.curtain-progress-bar {
  height: 100%;
  width: 0%;
  background: #000000;
  border-radius: 4px;
  transition: width 0.1s linear;
}

/* ==========================================
   1. FIXED HEADER
   ========================================== */
.main-header {
  position: fixed;
  top: 2.4rem;
  /* Scaled down floating offset */
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  /* Clicks pass through the margins */
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1);

  /* Force GPU layer promotion & initial animation state */
  transform: translate3d(0, -40px, 0);
  opacity: 0;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.main-header.animate-in {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.header-container {
  position: relative;
  pointer-events: auto;
  width: 100%;
  max-width: 1080px;
  background: rgba(14, 15, 17, 0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--header-border-radius, 14px);
  padding: 1.15rem 2.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: none !important;
  transform: translate3d(0, 0, 0);
  will-change: transform, backdrop-filter;
}

.logo {
  font-family: var(--font-menu);
  font-weight: 800;
  font-size: 1.85rem;
  line-height: 1;
  margin: 0;
  padding: 0;
  letter-spacing: 0.02em;
  color: var(--accent-color, #d4ff2a) !important;
  opacity: 1 !important;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  align-self: center;
}

.logo-img {
  height: 24px;
  width: auto;
  filter: invert(86%) sepia(85%) saturate(1450%) hue-rotate(22deg) brightness(108%) contrast(105%);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  margin-left: auto;
  margin-right: 2.2rem;
}

.nav-item {
  position: relative;
  font-family: var(--font-menu);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-transform: capitalize;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0;
  text-decoration: none;
}

.nav-item i {
  display: none;
}

.nav-item-youtube {
  display: none !important;
}

/* Rolling Text Mask Box */
.nav-text-wrapper {
  display: inline-flex;
  flex-direction: column;
  height: 1.35em;
  overflow: hidden;
  position: relative;
}

.nav-text-wrapper .nav-text {
  display: inline-block;
  line-height: 1.35em;
  white-space: nowrap;
  transition: transform 0.42s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}

.nav-text-wrapper .text-main {
  color: #ffffff;
}

.nav-text-wrapper .text-sub {
  color: var(--accent-color, #d4ff2a);
  position: absolute;
  top: 100%;
  left: 0;
}

/* Hover State - Text Rolls Up */
.nav-item:hover .text-main {
  transform: translateY(-100%);
}

.nav-item:hover .text-sub {
  transform: translateY(-100%);
}

/* Underline Animation (Bottom Accent Bar) */
.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-color, #d4ff2a);
  box-shadow: 0 0 8px var(--accent-color, #d4ff2a);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-item:hover::after,
.nav-item.active::after {
  transform: scaleX(1);
}

.header-right {
  display: flex;
  align-items: center;
}

/* YouTube Pill Button on Header Right */
.btn-youtube-pill {
  font-family: var(--font-menu);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--accent-color, #d4ff2a) !important;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  padding: 0.55rem 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.youtube-pill-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 1.3em;
  min-width: 68px;
  overflow: hidden;
}

.youtube-pill-wrapper .pill-text {
  display: inline-block;
  line-height: 1.3em;
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform, opacity;
  opacity: 1;
  transform: translateX(0);
}

.youtube-pill-wrapper .pill-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  opacity: 0;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform, opacity;
}

/* Hover Action: Text slides to RIGHT & fades out */
.btn-youtube-pill:hover .pill-text {
  opacity: 0;
  transform: translateX(100%);
}

/* Hover Action: Icon enters from LEFT into CENTER & fades in */
.btn-youtube-pill:hover .pill-icon {
  opacity: 1;
  transform: translateX(0);
}

.btn-youtube-pill:hover {
  background: var(--accent-color, #d4ff2a);
  color: #000000 !important;
  border-color: var(--accent-color, #d4ff2a);
}

/* Hamburger toggle for mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1010;
}

.menu-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ==========================================
   2. HERO SECTION (ABOUT US)
   ========================================== */
.hero-section {
  position: relative;
  height: 100vh;
  height: 100svh; /* Small Viewport Height - guaranteed to be visible inside ANY mobile browser UI */
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Centered layout */
  overflow: hidden;
}

.video-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% + 2px); /* 서브픽셀 렌더링 오차로 인한 1px 우측 빈 틈 발생 방지 버퍼 */
  height: 100%;
  z-index: 1;
}

.video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #000;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% + 2px); /* 서브픽셀 렌더링 오차로 인한 1px 우측 빈 틈 발생 방지 버퍼 */
  height: 100%;
  background: linear-gradient(var(--hero-overlay-angle, 180deg),
      var(--hero-overlay-start, #0b0c10) 0%,
      var(--hero-overlay-end, #0b0c10) 100%);
  z-index: 2;
  opacity: var(--hero-overlay-opacity, 1);
}

.video-overlay-fade-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: calc(100% + 2px); /* 서브픽셀 렌더링 오차로 인한 1px 우측 빈 틈 발생 방지 버퍼 */
  height: var(--hero-overlay-fade-height, 20%);
  /* Dynamically configured cover percentage */
  background: linear-gradient(to bottom,
      rgba(11, 12, 16, 0) 0%,
      var(--hero-overlay-fade-color, #0b0c10) 100%);
  z-index: 3;
  /* Sit above standard video overlay */
  pointer-events: none;
  /* Clicks pass through */
  display: none;
}

.scanline-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% + 2px); /* 서브픽셀 렌더링 오차로 인한 1px 우측 빈 틈 발생 방지 버퍼 */
  height: 100%;
  background:
    repeating-linear-gradient(rgba(0, 0, 0, var(--scanline-opacity, 0.18)) 0px,
      rgba(0, 0, 0, var(--scanline-opacity, 0.18)) var(--scanline-height, 1px),
      transparent var(--scanline-height, 1px),
      transparent var(--scanline-thickness, 4px)),
    radial-gradient(circle,
      transparent 30%,
      rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
  z-index: 3;
  display: none;
  /* Managed by JS - visible only when bgVideo is active */
}

.noise-overlay {
  position: absolute;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  width: 200%;
  height: 200%;
  background-image: var(--noise-svg-url);
  opacity: var(--noise-opacity, 0.08);
  z-index: 3;
  /* Matches scanline overlay depth */
  pointer-events: none;
  animation: noiseAnimation var(--noise-speed, 0.15s) steps(4) infinite;
  display: none;
  /* Controlled dynamically by JS based on overlayMode */
  will-change: transform;
}

@keyframes noiseAnimation {
  0% {
    transform: translate3d(0, 0, 0);
  }

  10% {
    transform: translate3d(-2%, -3%, 0);
  }

  20% {
    transform: translate3d(-5%, 2%, 0);
  }

  30% {
    transform: translate3d(3%, -5%, 0);
  }

  40% {
    transform: translate3d(-3%, 7%, 0);
  }

  50% {
    transform: translate3d(-7%, 3%, 0);
  }

  60% {
    transform: translate3d(7%, -3%, 0);
  }

  70% {
    transform: translate3d(3%, 5%, 0);
  }

  80% {
    transform: translate3d(-5%, 5%, 0);
  }

  90% {
    transform: translate3d(5%, -2%, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

/* Loading Overlay for Background Video (Deprecated in favor of main preloader-curtain) */
.video-loader {
  display: none !important;
}

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

/* Premium Outfit-style loader UI */
.video-loader-spinner {
  width: 50px;
  height: 50px;
  border: 2px solid rgba(212, 255, 42, 0.1);
  border-top: 2px solid var(--accent-color, #d4ff2a);
  border-radius: 50%;
  animation: spinLoader 1s linear infinite;
  margin-bottom: 2rem;
}

@keyframes spinLoader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.video-loader-bar-container {
  width: 250px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.video-loader-bar {
  width: 0%;
  height: 100%;
  background-color: var(--accent-color, #d4ff2a);
  box-shadow: 0 0 8px var(--accent-color, #d4ff2a);
  transition: width 0.1s ease-out;
}

.video-loader-text {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--primary-color, #ffffff);
  opacity: 0.8;
  text-align: center;
}

.video-loader-text span {
  font-weight: 700;
  color: var(--accent-color, #d4ff2a);
}

.hero-content {
  position: absolute;
  top: var(--hero-content-offset-y, 0px);
  /* Visual vertical offset from JSON config */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  max-width: 1200px;
  padding: 0 2rem;
  pointer-events: none;
  /* Let clicks pass through empty spaces, but elements have auto */
  z-index: 10;
}


.hero-logo-container {
  position: absolute;
  top: var(--logo-offset-y, 38%);
  left: 50%;
  transform: translate3d(-50%, calc(-50% - 40px), 0);
  /* Initial state: slide down */
  opacity: 0;
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  transition-delay: 0s;
  /* Logo animates first */
  width: 90%;
  max-width: clamp(150px, var(--logo-vh-ratio, 35vh), var(--hero-logo-width, 800px));
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
}

.hero-logo-container img {
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
  /* Pure white logo + shadow */
}

.logo-img {
  width: calc(var(--header-logo-width, 110px) * var(--header-scale, 1.0));
  height: auto;
  max-height: calc(2rem * var(--header-scale, 1.0));
  display: block;
  filter: brightness(0) invert(1);
  /* Pure white header logo */
}

.hero-title {
  position: absolute;
  top: var(--logo-offset-y, 44%);
  left: 50%;
  transform: translate3d(-50%, calc(-50% - 40px), 0);
  opacity: 0;
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  transition-delay: 0s;
  /* Title animates first */
  font-family: var(--font-menu);
  /* Reverted to original brand font (Outfit) */
  font-size: var(--title-font-size, clamp(3.2rem, 9.5vh, 6.5rem));
  font-weight: 800;
  letter-spacing: var(--title-letter-spacing, 0.32em);
  margin-right: calc(-1 * var(--title-letter-spacing, 0.32em));
  /* Offsets trailing letter-spacing for perfect centering */
  line-height: 1.2;
  text-transform: uppercase;

  /* Premium Apple Metallic Silver Gradient Text */
  background: linear-gradient(180deg, #ffffff 30%, #b3b3b3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  /* Padding offsets to completely prevent text/shadow clipping from letter-spacing and gradients */
  padding-bottom: 0.05em;
  display: inline-block;
  /* Essential for padding to buffer clipping correctly */

  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
  white-space: nowrap;
}

.hero-subtitle {
  position: absolute;
  top: calc(var(--logo-offset-y, 44%) + clamp(45px, 7vh, 75px));
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  transition-delay: 0.45s;
  /* Subtitle fades in after title settles */
  font-family: 'Syne', sans-serif;
  /* Design-oriented modern display font for subtitle */
  font-size: clamp(0.75rem, 2vh, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.48em;
  /* Elegantly stretched wide tracking */
  margin-right: -0.48em;
  /* Offsets trailing letter-spacing for perfect centering */
  line-height: 1.4;
  text-transform: uppercase;

  /* Gradient text combining white and accent lime-yellow */
  background: linear-gradient(90deg, #ffffff 0%, var(--accent-color, #d4ff2a) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  filter: drop-shadow(0 2px 8px rgba(212, 255, 42, 0.25));
  display: inline-block;
  white-space: nowrap;
}

.hero-slogan-group {
  position: absolute;
  top: var(--slogan-offset-y, 77%);
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.4rem, 1vh, 0.8rem);
  /* Gap between the two slogan lines */
  width: 100%;
  text-align: center;
  pointer-events: none;
}

.hero-slogan {
  opacity: 0;
  transform: translate3d(0, -50px, 0);
  /* Local slide-down animation (starting slightly higher) */
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  font-family: var(--slogan-font-family, 'Noto Serif KR', Georgia, serif);
  font-size: clamp(0.9rem, var(--slogan-vh-ratio, 3.8vh), var(--slogan-font-size, 20rem));
  font-weight: 700;
  /* Thick Myeongjo */
  letter-spacing: var(--slogan-letter-spacing, 0.04em);
  margin-right: calc(-1 * var(--slogan-letter-spacing, 0.04em));
  /* Offsets trailing letter-spacing for perfect centering */
  line-height: 1.5;
  display: inline-block;
  /* Required for background-clip: text */
  white-space: nowrap;
  /* Forces individual lines into a single line */
  pointer-events: auto;

  /* Dynamic CSS variable gradient colors */
  background: linear-gradient(var(--slogan-gradient-angle, 90deg),
      var(--slogan-gradient-start, #ffffff) 0%,
      var(--slogan-gradient-end, #d4ff2a) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 var(--slogan-glow-size, 0px) var(--slogan-glow-color, transparent));
  /* Stacked ambient glow shadow */
}

.slogan-line-1 {
  transition-delay: 0.75s;
  /* Slogan line 1 slides in after button */
}

.slogan-line-2 {
  transition-delay: 0.95s;
  /* Slogan line 2 slides in with extra stagger */
}

/* Slogan Glow Jitter Modes & Keyframes */
.hero-slogan.jitter-subtle {
  animation: jitter-subtle 1.8s ease-in-out infinite;
}

.hero-slogan.jitter-medium {
  animation: jitter-medium 0.6s ease-in-out infinite;
}

.hero-slogan.jitter-heavy {
  animation: jitter-heavy 0.22s linear infinite;
}

@keyframes jitter-subtle {

  0%,
  100% {
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 var(--slogan-glow-size, 15px) var(--slogan-glow-color, transparent));
  }

  35% {
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 calc(var(--slogan-glow-size, 15px) * 0.82) var(--slogan-glow-color, transparent));
  }

  70% {
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 calc(var(--slogan-glow-size, 15px) * 1.08) var(--slogan-glow-color, transparent));
  }
}

@keyframes jitter-medium {

  0%,
  100% {
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 var(--slogan-glow-size, 15px) var(--slogan-glow-color, transparent));
  }

  20% {
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 calc(var(--slogan-glow-size, 15px) * 0.72) var(--slogan-glow-color, transparent));
  }

  40% {
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 calc(var(--slogan-glow-size, 15px) * 1.18) var(--slogan-glow-color, transparent));
  }

  60% {
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 calc(var(--slogan-glow-size, 15px) * 0.62) var(--slogan-glow-color, transparent));
  }

  80% {
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 calc(var(--slogan-glow-size, 15px) * 1.12) var(--slogan-glow-color, transparent));
  }
}

@keyframes jitter-heavy {

  0%,
  14%,
  16%,
  24%,
  26%,
  74%,
  76%,
  100% {
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 var(--slogan-glow-size, 15px) var(--slogan-glow-color, transparent));
  }

  15%,
  25%,
  75% {
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 calc(var(--slogan-glow-size, 15px) * 0.22) var(--slogan-glow-color, transparent));
  }

  40%,
  55% {
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 calc(var(--slogan-glow-size, 15px) * 1.35) var(--slogan-glow-color, transparent));
  }

  45%,
  60% {
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 calc(var(--slogan-glow-size, 15px) * 0.15) var(--slogan-glow-color, transparent));
  }
}

/* Sequential transition states when parent class is added */
.hero-content.animate-in .hero-title {
  opacity: 1;
  transform: translate3d(-50%, -50%, 0);
}

.hero-content.animate-in .hero-subtitle {
  opacity: 1;
}

.hero-content.animate-in .hero-slogan {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.hero-content.animate-in .hero-logo-container {
  opacity: 1;
  transform: translate3d(-50%, -50%, 0);
}

/* Buttons use Outfit font */
.btn-play-showreel {
  position: absolute;
  top: var(--button-offset-y, 57%);
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
  font-family: var(--font-menu);
  font-size: clamp(0.7rem, var(--button-vh-ratio, 1.9vh), 5rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary-color);
  background-color: rgba(255, 255, 255, 0.07);
  /* Glass translucent background */
  border: none;
  /* No static border */
  padding: clamp(0.4rem, calc(var(--button-vh-ratio, 1.9vh) * 0.85), 4rem) clamp(1.0rem, calc(var(--button-vh-ratio, 1.9vh) * 1.7), 8rem);
  border-radius: 50px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);

  /* Initial state: Horizontal Wipe (clip from center) + fade */
  opacity: 0;
  clip-path: inset(0 50% 0 50% round 50px);
  pointer-events: none;

  /* Entrance transition: clip-path expand + opacity */
  transition: opacity var(--showreel-duration, 0.9s) cubic-bezier(0.16, 1, 0.3, 1),
    clip-path var(--showreel-duration, 0.9s) cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
    color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-play-showreel.animate-in {
  opacity: 1;
  clip-path: inset(0 0% 0 0% round 50px);
  pointer-events: auto;
}

.btn-play-showreel::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.45) 50%,
      rgba(255, 255, 255, 0) 100-percent);
  /* Replace 100-percent below or above to avoid parser issue, using 100% directly */
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.45) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  pointer-events: none;
  z-index: 2;
}

.btn-play-showreel i {
  font-size: 0.85rem;
  color: #d4ff2a;
  /* Neon lime-green/yellow icon */
  transition: transform 0.3s ease;
}

.btn-play-showreel:hover {
  background-color: rgba(255, 255, 255, 0.18);
  /* Brighter translucent white on hover */
  color: var(--primary-color);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.15), 0 8px 30px rgba(0, 0, 0, 0.5);
}

.btn-play-showreel:hover i {
  /* No scale change */
}




/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: bounce 2s infinite;
}

.scroll-arrow {
  color: var(--primary-color);
  font-size: 1.5rem;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.scroll-arrow:hover {
  opacity: 1;
}

/* ==========================================
   3. WORK SECTION
   ========================================== */
/* Unified Continuous Fixed Ambient Background across Work, Contact Us, and Footer */
.work-section,
.contact-section {
  background-color: #000000 !important;
  background-image: 
    radial-gradient(circle at 15% 20%, var(--ambient-color-1, rgba(212, 255, 42, 0.20)) 0%, transparent 65%),
    radial-gradient(circle at 85% 55%, var(--ambient-color-2, rgba(102, 252, 241, 0.18)) 0%, transparent 65%),
    radial-gradient(circle at 25% 85%, var(--ambient-color-3, rgba(212, 255, 42, 0.16)) 0%, transparent 65%) !important;
  background-attachment: fixed !important;
}

#work,
#contact-us,
#about-us {
  scroll-margin-top: var(--header-scroll-offset, 100px);
}

.work-section {
  padding-top: calc(var(--section-gap, 13rem) * 0.5);
  padding-bottom: calc(var(--section-gap, 13rem) * 0.5);
  overflow: hidden;
  position: relative;
}

.contact-section {
  padding-top: calc(var(--section-gap, 13rem) * 0.5);
  padding-bottom: calc(var(--section-gap, 13rem) * 0.5);
  overflow: hidden;
  position: relative;
}

/* Ensure content sits above the background elements */
.section-container, .work-grid-container {
  position: relative;
  z-index: 2;
}

.section-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin: 0 auto 5rem auto;
  max-width: 800px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title {
  font-family: 'Outfit', 'Montserrat', sans-serif;
  font-size: clamp(3.2rem, 5.8vw, 4.8rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.75) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent-color, #d4ff2a);
  box-shadow: 0 0 12px var(--accent-color, #d4ff2a);
  margin: 1.2rem auto 0 auto;
  border-radius: 2px;
}

.section-desc {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  word-break: keep-all;
  max-width: 650px;
  margin-top: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* Direct Email Notice & Copy Badge */
.direct-email-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.8rem;
  width: 100%;
}

.direct-email-notice {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: -0.01em;
}

.email-copy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  padding: 0.45rem 0.6rem 0.45rem 1.4rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.email-copy-badge .email-icon {
  color: var(--accent-color, #d4ff2a);
  font-size: 0.95rem;
}

.email-address {
  font-family: 'Outfit', var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  color: #ffffff;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.3s ease;
}

.email-address:hover {
  color: var(--accent-color, #d4ff2a);
}

.btn-copy-email {
  font-family: var(--font-menu);
  font-weight: 700;
  font-size: 0.8rem;
  color: #000000;
  background: var(--accent-color, #d4ff2a);
  border: none;
  border-radius: 100px;
  padding: 0.42rem 1.1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-copy-email:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.btn-copy-email.copied {
  background: #32e0c4;
  color: #000000;
}

/* Work Grid Container - gap & padding for PC and Tablet */
.work-grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.5rem 2.5rem;
  width: 100%;
  max-width: 1400px;
  margin: 2rem auto 0 auto;
  padding: 0 1.5rem;
  position: relative;
}

/* Project Card layout */
.project-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  overflow: hidden;
  background-color: transparent;
  border: none;
  position: relative;
  cursor: pointer;
  filter: none;
  opacity: 1;
  pointer-events: auto;
}

/* Thumbnail wrapper with aspect ratio config */
.card-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: var(--card-aspect-ratio);
  background-color: #080808;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.card-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* Overlay & Button styles inside card */
.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--work-overlay-opacity, 0.65));
  /* Dynamic black mask on hover */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

@media (hover: hover) {
  .project-card:hover .card-overlay {
    opacity: 1;
  }
}

.project-card.active-focus .card-overlay {
  opacity: 1;
}

/* Card Info below thumbnail */
.card-info {
  padding: 1.1rem 0.3rem 0.5rem 0.3rem;
  cursor: pointer;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.card-title {
  font-family: var(--font-menu);
  font-size: 1.22rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin: 0;
  flex: 1;
  transition: color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.project-card:hover .card-title {
  color: var(--accent-color, #d4ff2a);
}

.card-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-color, #d4ff2a);
  background: rgba(212, 255, 42, 0.08);
  border: 1px solid rgba(212, 255, 42, 0.25);
  padding: 0.22rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-card-play {
  font-family: var(--font-menu);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #000000;
  background-color: var(--primary-color);
  border: none;
  padding: 0.8rem 1.6rem;
  border-radius: 30px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-card-play:hover {
  transform: scale(1.05);
  background-color: #ffffff;
  color: #000000;
}

/* Modal Navigation Arrows */
.modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--primary-color);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 2010;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.modal-arrow:hover {
  background-color: var(--accent-color);
  color: #000000;
  border-color: var(--accent-color);
  transform: translateY(-50%) scale(1.1);
}

.modal-btn-prev {
  left: 2.5rem;
}

.modal-btn-next {
  right: 2.5rem;
}

/* Modal Image Slide Styling */
.modal-image-slide-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000000;
}

.modal-image-slide {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
}

/* Slider chevron buttons at bottom */
.slider-controls {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 3.5rem;
}

.slider-btn {
  background-color: var(--button-color);
  color: var(--primary-color);
  border: 1px solid var(--card-border-color);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.slider-btn:hover {
  background-color: var(--primary-color);
  color: #000;
  border-color: var(--primary-color);
}

/* ==========================================
   4. CONTACT SECTION
   ========================================== */
.contact-section {
  padding: 8rem 0;
  position: relative;
}

.contact-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
  opacity: 0.2;
  display: var(--contact-stroke-display, block);
}

.contact-form-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background-color: transparent;
  border: none;
  padding: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4.5rem;
}

.form-group-section {
  display: flex;
  flex-direction: column;
}

.group-title {
  font-family: var(--font-menu);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: var(--accent-color);
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-transform: uppercase;
  border: none;
}

.group-title span {
  font-size: 1.5rem;
  font-weight: 700;
  opacity: 1;
  border: none;
  background: none;
  color: var(--accent-color);
}

.group-title::after {
  content: "";
  flex-grow: 1;
  height: 1px;
  background-color: rgba(102, 252, 241, 0.15);
}

.form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 2.5rem;
}

.input-field {
  position: relative;
}

.input-field input,
.input-field textarea,
.select-trigger {
  width: 100%;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 1rem 0;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 1.1rem;
  outline: none;
  transition: all 0.4s ease;
}

.input-field input::placeholder,
.input-field textarea::placeholder,
.select-trigger .placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.input-field input:focus,
.input-field textarea:focus,
.select-trigger:focus,
.select-trigger:focus-visible,
.select-trigger.active {
  border-bottom-color: var(--accent-color);
  box-shadow: 0 15px 15px -15px rgba(102, 252, 241, 0.4);
  background-color: rgba(255, 255, 255, 0.02);
  outline: none;
}

.input-field textarea {
  height: 140px;
  resize: none;
  line-height: 1.6;
}

.input-field.full-width {
  grid-column: span 2;
}

/* Custom Select Specific Overrides */
.select-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.select-arrow {
  color: var(--accent-color);
  font-size: 0.8rem;
}

.select-option:hover,
.select-option.highlighted {
  background-color: rgba(212, 255, 42, 0.15);
  color: var(--accent-color, #d4ff2a);
}

/* File Upload input */
.file-field {
  position: relative;
  grid-column: span 2;
  margin-top: 1rem;
}

.file-upload-btn {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.file-upload-btn input[type="file"] {
  display: none;
}

.file-upload-btn label {
  font-family: var(--font-menu);
  background-color: transparent;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.file-upload-btn label:hover {
  background-color: var(--accent-color);
  color: #000;
  box-shadow: 0 0 15px rgba(102, 252, 241, 0.4);
}

.file-label-text {
  font-size: 0.95rem;
  color: var(--secondary-color);
}

/* Consent check */
.form-agreement {
  margin-top: 4rem;
  text-align: center;
}

.checkbox-container {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
}

.checkbox-container strong {
  color: #fff;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: relative;
  display: inline-block;
  height: 24px;
  width: 24px;
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.checkbox-container:hover input~.checkmark {
  border-color: var(--accent-color);
}

.checkbox-container input:checked~.checkmark {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  box-shadow: 0 0 15px rgba(102, 252, 241, 0.4);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked~.checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 8px;
  top: 4px;
  width: 5px;
  height: 10px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Form Bottom Group (Checkbox + Submit Button) */
.form-bottom-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0;
  padding-top: 1.5rem;
  gap: 1.5rem;
  width: 100%;
}

/* Privacy Policy Agreement Checkbox */
.privacy-agreement-container {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.privacy-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  user-select: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.privacy-checkbox-label:hover {
  color: #ffffff;
}

.privacy-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.privacy-custom-check {
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  flex-shrink: 0;
}

.privacy-checkbox-label:hover .privacy-custom-check {
  border-color: var(--accent-color, #d4ff2a);
}

.privacy-checkbox:checked + .privacy-custom-check {
  background: var(--accent-color, #d4ff2a);
  border-color: var(--accent-color, #d4ff2a);
  box-shadow: 0 0 12px rgba(212, 255, 42, 0.4);
}

.privacy-custom-check::after {
  content: "✓";
  font-size: 0.75rem;
  font-weight: 900;
  color: #000000;
  display: none;
}

.privacy-checkbox:checked + .privacy-custom-check::after {
  display: block;
}

/* Submit button uses Outfit */
.form-submit-container {
  margin: 0;
  text-align: center;
}

.btn-submit {
  font-family: var(--font-menu);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000;
  background: linear-gradient(90deg, var(--accent-color), #32e0c4);
  border: none;
  height: 64px;
  padding: 0 5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(102, 252, 241, 0.3);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-submit::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, #ffffff, var(--accent-color));
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: -1;
}

.btn-submit:hover::before {
  opacity: 1;
}

.btn-submit:hover {
  box-shadow: 0 15px 40px rgba(102, 252, 241, 0.5);
}

/* ==========================================
   5. FOOTER
   ========================================== */
/* ==========================================
   5. FOOTER (Deep Electric Cobalt Navy Style)
   ========================================== */
.main-footer {
  background-color: var(--footer-bg-color, #0d111a) !important;
  background-image: none !important;
  padding: var(--footer-padding-y, 3.2rem) 0;
  border-top: none !important;
  text-align: center;
  font-family: var(--font-menu), var(--font-body);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--footer-gap, 0.45rem);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.01em;
}

.footer-container p {
  margin: 0;
  text-align: center;
  line-height: 1.55;
}

#footer-address-ko {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
  letter-spacing: -0.01em;
}

#footer-address-en {
  font-family: var(--font-menu);
  font-weight: 500;
  font-size: 0.86rem;
  color: rgba(160, 185, 225, 0.75);
  letter-spacing: 0.02em;
}

#footer-contact-info {
  font-family: var(--font-menu);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-color, #d4ff2a);
  margin-top: 0.25rem;
}

#footer-copyright {
  font-family: var(--font-menu);
  font-weight: 400;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.55rem;
  letter-spacing: 0.04em;
}

.contact-info {
  display: flex;
  align-items: center;
}

/* ==========================================
   6. FULL-SCREEN VIDEO PLAYER OVERLAY (MODAL)
   ========================================== */
.video-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, var(--modal-overlay-opacity, 0.8)); /* PC/태블릿 반투명 검은색 솔리드 */
  backdrop-filter: blur(10px); /* 일관된 블러 효과 적용 */
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  /* Controlled via active class */
  flex-direction: column; /* 세로로 순차 배치 (콘텐츠, 점 표시기 등) */
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  touch-action: none !important;
  /* 모달 오픈 시 뒷배경 스크롤 방지 */
  outline: none;
  /* Remove browser focus ring (blue border) when overlay receives focus */
}

.video-modal:focus,
.video-modal:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

.video-modal.active {
  display: flex;
  opacity: 1;
}

.video-modal-content {
  /* Use the smaller of 80vw or the width that gives 80vh at 16:9 ratio */
  width: var(--player-size, min(80vw, calc(80vh * 16 / 9)));
  aspect-ratio: 16 / 9;
  max-width: none;
  max-height: none;
  position: relative;
  box-shadow: none;
  border-radius: 0;
  /* Removed round corners */
  overflow: hidden;
  border: none;
  /* Removed white border */
  outline: none;
  background-color: #000000;
}

/* 머큐리포스트 릴타이틀(project-9) 전용: 네이티브 4:3 비율에 맞춰 플레이어 박스 비율 변경 (PC/태블릿 공통) */
.video-modal-content.is-project-9 {
  aspect-ratio: 4 / 3;
  width: var(--player-size, min(80vw, calc(80vh * 4 / 3)));
}

.video-player-container {
  width: 100%;
  height: 100%;
  background-color: #000;
  outline: none;
  will-change: transform;
}

.modal-slide-item {
  position: relative;
  overflow: hidden;
}

.video-player-container iframe,
.modal-slide-item iframe {
  width: 100%;
  height: 100%;
  border: none !important;
  display: block;
  outline: none !important;
}

.video-player-container video,
.modal-slide-item video {
  width: 100%;
  height: 100%;
  border: none !important;
  display: block;
  outline: none !important;
  transform: scale(1.02) !important; /* 서브픽셀 오차 및 컨트롤바 경계 실선을 화면 바깥으로 밀어내어 잘라내는 미세 확대 */
}

/* Suppress any browser focus outline and iOS tap highlights inside the entire modal */
.video-modal:focus,
.video-modal:focus-visible,
.video-modal:active,
.video-modal *:focus,
.video-modal *:focus-visible,
.video-modal *:active,
.modal-arrow,
.btn-close-modal {
  outline: none !important;
  box-shadow: none !important;
  border-color: transparent;
  /* Prevent border highlight */
  -webkit-tap-highlight-color: transparent !important;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
}

.btn-close-modal {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--primary-color);
  font-size: 1.25rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 2010;
}

.btn-close-modal-bottom {
  display: none;
}

.btn-close-modal:hover {
  background-color: var(--close-btn-color);
  border-color: var(--close-btn-color);
  color: #ffffff;
  transform: rotate(90deg) scale(1.05);
}

.modal-swipe-guide {
  display: none;
}

.modal-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  z-index: 10;
  pointer-events: auto;
}

.modal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.25);
  transition: all 0.25s ease;
  cursor: pointer;
}

.modal-dot.active {
  background-color: var(--accent-color, #66fcf1);
  width: 9px;
  height: 9px;
  box-shadow: 0 0 8px var(--accent-color, #66fcf1);
}

/* ==========================================
   7. KEYFRAMES ANIMATIONS
   ========================================== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ==========================================
   8. RESPONSIVE MEDIA QUERIES
   ========================================== */

/* Tablet (Portrait) & small desktops */
@media (max-width: 1024px) {
  :root {
    --card-width: 460px;
  }

  /* 화면이 작아질 때 헤더 요소가 밖으로 삐져나가지 않도록 배율을 1.0으로 강제 축소 */
  .main-header {
    --header-scale: 1.0 !important;
  }

  /* 워크 섹션 가로길이 가득 차도록 설정 (Full-bleed) */
  #work .section-container {
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  #work .section-header {
    padding: 0 1.5rem !important;
    margin-bottom: 2rem !important;
  }

  .work-grid-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0 !important;
    width: 100% !important;
    margin-top: 1rem !important;
  }

  .hero-title {
    font-size: 4rem;
  }

  .form-grid {
    gap: 2rem;
  }

  /* 태블릿 모드에서 헤더 패딩, 폰트 크기, 라운드 값 비율 감축 스케일링 */
  .header-container {
    padding: 0.85rem 1.8rem !important;
    border-radius: calc(var(--header-border-radius, 28px) * 0.75) !important;
    max-width: 92% !important;
  }
  .logo {
    font-size: 1.55rem !important;
  }
  .nav-menu {
    gap: 1.4rem !important;
    margin-right: 1.4rem !important;
  }
  .nav-item {
    font-size: 0.88rem !important;
  }
  .btn-youtube-pill {
    padding: 0.45rem 1rem !important;
    font-size: 0.82rem !important;
  }

  /* 태블릿 모드에서 비디오 플레이어와 좌우 이동 화살표가 겹치지 않도록 조율 */
  .video-modal-content {
    width: var(--player-size, min(74vw, calc(74vh * 16 / 9))) !important;
  }

  .modal-arrow {
    width: 48px !important;
    height: 48px !important;
    font-size: 1.1rem !important;
  }

  .modal-btn-prev {
    left: 1.5rem !important;
  }

  .modal-btn-next {
    right: 1.5rem !important;
  }
}

/* Mobile Devices */
@media (max-width: 768px) {
  :root {
    /* Responsive aspect ratio shift: square 1/1 on mobile */
    --card-aspect-ratio: 1/1;
    --card-width: 320px;
  }

  .scroll-indicator {
    bottom: 3rem;
  }

  .main-header {
    top: 1rem;
  }

  .header-container {
    width: 92% !important;
    padding: 0.65rem 1.4rem !important;
    border-radius: calc(var(--header-border-radius, 28px) * 0.6) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .logo {
    font-size: 1.35rem !important;
  }

  /* Mobile navbar layout */
  .menu-toggle {
    display: none !important;
  }

  .nav-menu {
    position: static !important;
    width: auto !important;
    height: auto !important;
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 1.25rem !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    padding: 0 !important;
    border-left: none !important;
    z-index: auto !important;
  }

  /* 모바일 모드: nav-item 내부 텍스트 감추고 아이콘 노출 */
  .nav-item {
    font-size: 1.25rem !important;
    padding: 0.2rem 0 !important;
  }

  .nav-item i {
    display: inline-flex !important;
    font-size: 1.25rem !important;
    color: #ffffff;
    transition: color 0.3s ease;
  }

  .nav-item:hover i,
  .nav-item.active i {
    color: var(--accent-color, #d4ff2a);
  }

  .nav-text-wrapper {
    display: none !important;
  }

  /* 모바일 모드(768px 이하)일 때 유튜브 아이콘을 4번째 메뉴 아이콘으로 노출 */
  .nav-item-youtube {
    display: inline-flex !important;
  }

  .header-right {
    display: none !important;
  }

  /* Hero adjustments: absolute coordinates overlapping fixed with vertical flex */
  .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(-25px);
    width: 100%;
    height: 100%;
    max-width: 100%;
    padding: 0 1.5rem;
    gap: 2.2rem;
    /* 각 요소별 간격 확보 */
    z-index: 10;
  }

  .hero-logo-container,
  .hero-title,
  .hero-subtitle,
  .btn-play-showreel,
  .hero-slogan-group {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 0 !important;
    width: auto !important;
    max-width: 100% !important;
  }

  .hero-logo-container,
  .hero-title {
    order: 1;
    width: 100% !important;
    max-width: 300px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translate3d(0, -20px, 0) !important;
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  }

  .hero-logo-container img {
    width: 100% !important;
    height: auto !important;
  }

  .hero-title {
    font-size: 2.5rem;
    letter-spacing: 0.08em;
  }

  .hero-subtitle {
    order: 2;
    font-size: 0.95rem;
    letter-spacing: 0.15em;
    transform: translate3d(0, -10px, 0) !important;
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    transition-delay: 0.45s !important; /* 자막 등장 지연 */
  }

  .btn-play-showreel {
    order: 3;
    pointer-events: none;
  }

  .hero-slogan-group {
    order: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
  }

  .hero-slogan {
    font-size: 2.08rem !important;
    /* 모바일 전용 폰트 크기 축소 */
    letter-spacing: 0.04em;
    transform: translate3d(0, -15px, 0) !important;
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  }

  .slogan-line-1 {
    transition-delay: 0.75s !important; /* 슬로건 첫째 줄 등장 지연 */
  }

  .slogan-line-2 {
    transition-delay: 0.95s !important; /* 슬로건 둘째 줄 등장 지연 */
  }

  /* 모바일 진입 애니메이션 바인딩 */
  .hero-content.animate-in .hero-logo-container,
  .hero-content.animate-in .hero-title {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) !important;
  }

  .hero-content.animate-in .hero-subtitle {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) !important;
  }

  .hero-content.animate-in .btn-play-showreel.animate-in {
    opacity: 1 !important;
    clip-path: inset(0 0% 0 0% round 50px) !important;
    pointer-events: auto !important;
  }

  .hero-content.animate-in .hero-slogan {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) !important;
  }

  /* Carousel slider gap on mobile */
  .work-slider-container {
    gap: 1.5rem;
  }

  /* 모바일 워크 섹션 위아래 빈공간(패딩) 단축 조절 */
  .work-section {
    padding: 3rem 0 0 0 !important; /* 위쪽 패딩 대폭 축소, 아래쪽 패딩 제거 */
  }

  /* 모바일 버전에서만 썸네일 그리드를 1열 배치로 설정 및 여백 부여 */
  .work-grid-container {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
    padding: 0 1.2rem !important;
  }

/* 태블릿 모드 (769px ~ 1024px) 여백 및 2열 배치 설정 */
@media (min-width: 769px) and (max-width: 1024px) {
  .work-grid-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2.5rem 1.8rem !important;
    padding: 0 2rem !important;
  }
}

  /* 모바일 콘택트 어스 섹션 위아래 빈공간(패딩) 단축 조절 */
  .contact-section {
    padding: 3rem 0 !important; /* 위/아래 패딩 3rem으로 단축 조절 */
  }

  /* Contact Form adjustments */
  .section-container {
    padding: 0 1rem !important; /* 모바일 화면 외곽 여백을 2rem에서 1rem으로 줄여 넓게 확보 */
  }

  .contact-form-wrapper {
    padding: 0 1rem;
    border-radius: 0;
  }

  .form-submit-container {
    margin-top: 3rem;
    margin-bottom: 0 !important; /* 문의하기 버튼 밑 여백을 제거하고 섹션 패딩(3rem)으로 제어 */
  }

  .form-fields {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .input-field.full-width {
    grid-column: span 1;
  }

  /* Footer adjustments */
  .contact-info {
    flex-direction: column;
    gap: 0.2rem;
  }



  /* Compact card overlays for small 2-column cards on mobile */
  .card-overlay {
    padding: 0.75rem !important;
    gap: 0.6rem !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-touch-callout: none !important;
  }

  .overlay-title {
    font-size: 0.95rem !important;
  }

  .btn-card-play {
    padding: 0.5rem 1rem !important;
    font-size: 0.75rem !important;
    gap: 0.3rem !important;
    border-radius: 20px !important;
  }

  .btn-card-play i {
    font-size: 0.7rem !important;
  }

  /* Modal responsive improvements on mobile */
.video-modal {
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 0 !important;
  background-color: rgba(0, 0, 0, var(--modal-mobile-overlay-opacity, 0.8)) !important; /* 모바일 반투명 검은색 솔리드 */
  backdrop-filter: none !important; /* 블러 효과 제거 */
  -webkit-backdrop-filter: none !important;
}

.video-modal-content {
  width: 100% !important;
  max-width: calc((100vh - 180px) * 16 / 9) !important; /* Ensures the player height never exceeds 100vh - 180px, leaving space for bottom buttons */
  aspect-ratio: 16 / 9 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Target ONLY Mercury Post Reel Title (project-9) on mobile to fit its native 4:3 aspect ratio exactly */
.video-modal-content.is-project-9 {
  aspect-ratio: 4 / 3 !important;
  max-width: calc((100vh - 180px) * 4 / 3) !important;
}

/* Close button position tweak on mobile (Top Right plain X icon) */
.btn-close-modal {
  top: 30px !important; /* Slightly lower */
  right: 25px !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: auto !important;
  height: auto !important;
  font-size: 1.5rem !important; /* Clean readable icon size */
  border-radius: 0 !important;
  background-color: transparent !important;
  border: none !important;
  color: #ffffff !important;
  z-index: 2011 !important;
  padding: 0 !important;
}

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

/* Bottom center close pill button style on mobile */
.btn-close-modal-bottom {
  position: absolute !important;
  top: auto !important;
  bottom: 3.5rem !important; /* Positioned slightly higher at bottom center */
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: auto !important;
  height: 48px !important; /* Taller for easier touch target */
  padding: 0 24px !important;
  border-radius: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background-color: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  font-size: 1.05rem !important;
  font-family: var(--font-menu);
  font-weight: 500 !important;
  color: #ffffff !important;
  z-index: 2011 !important; /* Ensure it is clickable over overlays */
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-close-modal-bottom:hover {
  transform: translateX(-50%) scale(1.05) !important;
}

/* Hide slide navigation arrows on mobile as swiping is primary */
.modal-arrow {
  display: none !important;
}

  /* Mobile Swipe Guide */
  .modal-swipe-guide {
    display: flex !important;
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    margin-top: 0.6rem !important; /* 이미지/영상 바로 밑에 오도록 여백 설정 */
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
    animation: pulseSwipe 2s infinite ease-in-out;
    z-index: 2010;
  }

  @keyframes pulseSwipe {

    0%,
    100% {
      opacity: 0.3;
    }

    50% {
      opacity: 0.85;
    }
  }
}

.video-modal-fallback {
  margin-top: 1.5rem;
  text-align: center;
  font-family: var(--font-menu);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
}

.video-modal-fallback a {
  color: var(--accent-color, #d4ff2a);
  text-decoration: none;
  font-weight: 600;
  margin-left: 0.5rem;
  transition: opacity 0.2s ease;
  display: inline-block;
}

.video-modal-fallback a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ==========================================
   7. CUSTOM VIDEO LOADER & CONTROLS STYLES
   ========================================== */

/* 비디오 로딩 스피너 컨테이너 */
.video-loader-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  /* 영상 로딩 중 검은 배경 유지 */
  z-index: 10;
  transition: opacity 0.4s ease;
  transform: scale(1.02) !important; /* 로딩 가림막도 1.02배 미세 확대하여 틈새 뒷배경 노출 원천 차단 */
}

/* 로딩 스피너 디자인 */
.video-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-left-color: var(--accent-color, #d4ff2a);
  /* 테마 포인트 컬러 사용 */
  border-radius: 50%;
  animation: video-spin 1.0s linear infinite;
}

@keyframes video-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* 웹킷 브라우저 기본 비디오 컨트롤러의 시커먼 그라데이션 배경 및 솔리드 판넬 완전 제거 */
video::-webkit-media-controls,
video::-webkit-media-controls-panel,
video::-webkit-media-controls-panel-container,
video::-webkit-media-controls-enclosure {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
}

video::-webkit-media-controls-panel {
  transform: translateY(-30px) !important;
}

/* 길다란 타임라인 바 자체의 그림자, 아웃라인 및 아웃그로우 효과 제거 */
video::-webkit-media-controls-timeline {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  filter: none !important;
  margin-left: 10px;
  margin-right: 10px;
}

/* 길다란 타임라인 바에 포커스가 가거나 호버될 때 생기는 아웃그로우 그림자 및 기본 그림자 제거 */
video::-webkit-media-controls,
video::-webkit-media-controls-panel,
video::-webkit-media-controls-panel-container,
video::-webkit-media-controls-timeline,
video::-webkit-media-controls-timeline-container,
video::-webkit-media-controls-timeline::-webkit-slider-runnable-track,
video::-webkit-media-controls-timeline::-webkit-slider-thumb,
video::-webkit-media-controls-enclosure {
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
  border: none !important;
  outline: none !important;
  background-image: linear-gradient(transparent, transparent) !important;
}

/* 네이티브 렌더링에 내장된 음영을 지우기 위해 배경색 및 형태 강제 재정의 */
video::-webkit-media-controls-timeline {
  -webkit-appearance: none !important;
  appearance: none !important;
}

video::-webkit-media-controls-timeline::-webkit-slider-runnable-track {
  -webkit-appearance: none !important;
  appearance: none !important;
  background: rgba(255, 255, 255, 0.25) !important;
  height: 4px !important;
  box-shadow: none !important;
  border: none !important;
}

video::-webkit-media-controls-timeline::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  background: #ffffff !important;
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  border: none !important;
  margin-top: -4px !important;
}

video::-webkit-media-controls-timeline:focus,
video::-webkit-media-controls-timeline:active,
video::-webkit-media-controls-timeline:hover {
  outline: none !important;
  box-shadow: none !important;
  filter: none !important;
}

/* ==========================================
   9. CUSTOM PREMIUM SELECT DROPDOWN
   ========================================== */
.custom-select {
  position: relative;
  width: 100%;
}

.select-trigger {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--primary-color);
  height: 56px;
  padding: 0 1.25rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.custom-select:hover .select-trigger {
  border-color: rgba(255, 255, 255, 0.25);
}

.custom-select.active .select-trigger {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-color);
  box-shadow: 0 0 10px rgba(102, 252, 241, 0.15);
}

.select-selected {
  user-select: none;
}

.select-selected.placeholder {
  color: var(--secondary-color);
  opacity: 0.7;
}

.select-arrow {
  font-size: 0.8rem;
  color: var(--secondary-color);
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.custom-select.active .select-arrow {
  transform: rotate(180deg);
  color: var(--accent-color);
}

.select-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background-color: #121318;
  /* Premium dark solid color */
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  overflow: hidden;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.custom-select.active .select-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.select-option {
  padding: 1.1rem 1.25rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.select-option:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--primary-color);
}

.select-option.selected {
  background-color: rgba(212, 255, 42, 0.1);
  color: var(--accent-color);
  font-weight: 600;
}