body {
  background-color: #131313;
  color: #e2e2e2;
  overflow-x: hidden;
  background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 80%);
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

/* Prevent any element from creating horizontal scroll */
img,
svg,
video,
canvas {
  max-width: 100%;
}

.to-top {
  position: fixed;
  right: 16px;
  bottom: 92px;
  z-index: 95;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 24px rgba(233, 179, 255, 0.08);
  cursor: pointer;
}

.to-top:hover {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.10);
}

.bottom-nav-item.is-active {
  color: rgba(255, 255, 255, 0.95) !important;
  opacity: 1 !important;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.55));
}

.bottom-nav-item {
  color: rgba(255, 255, 255, 0.85) !important;
  opacity: 1 !important;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.35));
}

.bottom-nav-item .material-symbols-outlined {
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.45));
}

.bottom-nav-item.is-active .material-symbols-outlined {
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.7));
}

@media (min-width: 768px) {
  .to-top {
    right: 22px;
    bottom: 22px;
  }
}

.staff-confetti {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.service-stage {
  position: relative;
}

.service5-slide {
  transition: opacity 700ms ease, filter 700ms ease;
  will-change: opacity, filter;
}

.service5-slide.is-fading {
  opacity: 0;
}

.service5-slide.is-bright {
  filter: brightness(1.18) contrast(1.06) saturate(1.08);
}

.service-light {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(closest-side at 25% 25%, rgba(236, 72, 153, 0.35), transparent 65%),
    radial-gradient(closest-side at 70% 40%, rgba(236, 72, 153, 0.18), transparent 70%);
  filter: blur(18px);
  transform: translateY(-6%);
  z-index: 1;
}

.service-stage.is-lit .service-light {
  animation: service-light 3000ms ease-out forwards;
}

@keyframes service-light {
  0% {
    opacity: 0;
    transform: translateY(-10%);
  }
  18% {
    opacity: 1;
    transform: translateY(0%);
  }
  100% {
    opacity: 0;
    transform: translateY(4%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .service5-slide {
    transition: none;
  }
  .service-stage.is-lit .service-light {
    animation: none;
    opacity: 0;
  }
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 200, "GRAD" 0, "opsz" 24;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  z-index: 80;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(420px, 92vw);
  background: rgba(12, 12, 12, 0.92);
  border-left: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
  transform: translateX(105%);
  transition: transform 420ms ease;
  z-index: 90;
  display: flex;
  flex-direction: column;
}

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

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-logo {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}

.drawer-close {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.88);
  padding: 8px 12px;
  cursor: pointer;
}

.drawer-body {
  padding: 14px 18px 20px;
  overflow: auto;
}

.drawer-section + .drawer-section {
  margin-top: 16px;
}

.drawer-title {
  font-size: 12px;
  letter-spacing: 0.34em;
  font-weight: 800;
  color: rgba(233, 179, 255, 0.9);
  margin-bottom: 10px;
}

.drawer-link {
  display: block;
  padding: 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.78);
  transition: border-color 350ms ease, color 350ms ease, box-shadow 350ms ease;
  margin-bottom: 10px;
  line-height: 1.35;
}

.drawer-link:hover {
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 18px rgba(233, 179, 255, 0.10);
}

.drawer-cta {
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(236, 72, 153, 0.25);
  box-shadow: 0 0 18px rgba(236, 72, 153, 0.08);
}

body.is-drawer-open {
  overflow: hidden;
}

.neon-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, #ffffff, transparent);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.neon-glow-white {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.hero-sexy-neon {
  color: rgba(255, 255, 255, 0.92);
  text-shadow:
    0 0 10px rgba(236, 72, 153, 0.55),
    0 0 22px rgba(233, 179, 255, 0.35),
    0 0 34px rgba(170, 199, 255, 0.18);
}

.review-ticker {
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.review-track {
  will-change: transform;
  transform: translateY(0);
}

.review-item {
  padding: 22px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.review-item:first-child {
  border-top: 0;
}

.review-quote {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-style: italic;
  font-weight: 200;
  line-height: 1.8;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.12);
}

.review-meta {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.2em;
  font-size: 12px;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .review-track {
    transition: none !important;
    transform: none !important;
  }
}

.neon-border-white {
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
  transition: all 0.5s ease;
}

.neon-border-white:hover {
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.noise-texture {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  z-index: 9999;
}

/* PC 헤더 좌우 여백 강제(디자인 유지, Tailwind 미적용 대비) */
.mec-header {
  padding-left: 1.5rem !important; /* px-6 */
  padding-right: 1.5rem !important; /* px-6 */
}

@media (min-width: 768px) {
  .mec-header {
    padding-left: 5rem !important; /* md:px-20 */
    padding-right: 5rem !important; /* md:px-20 */
  }
}

@media (min-width: 1024px) {
  .mec-header {
    padding-left: 8rem !important; /* lg:px-32 */
    padding-right: 8rem !important; /* lg:px-32 */
  }
}

.hero-bg-img {
  transition: opacity 900ms ease;
  will-change: opacity;
}

.hero-bg-img.is-fading {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-img {
    transition: none;
  }
}

.sec2-slide {
  transition: opacity 600ms ease;
  will-change: opacity;
}

.sec2-slide.is-fading {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .sec2-slide {
    transition: none;
  }
}

.sec3-card img {
  transition: transform 1000ms ease, opacity 600ms ease, filter 600ms ease;
  will-change: transform, opacity, filter;
}

.sec3-card.is-active img {
  opacity: 0.92;
  transform: scale(1.05);
  filter: brightness(1.15) contrast(1.05) saturate(1.05);
}

.sec3-card.is-active .sec3-frame {
  border-color: rgba(96, 165, 250, 0.9); /* approx blue-400 */
}

@media (prefers-reduced-motion: reduce) {
  .sec3-card img {
    transition: none;
  }
}

.staff-tabs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.staff-tabs::-webkit-scrollbar {
  height: 6px;
}

.staff-tabs::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
}

.staff-tab {
  flex: 0 0 auto;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  transition: border-color 400ms ease, color 400ms ease, box-shadow 400ms ease;
}

/* Mobile: 3 items per row, wrap to next line */
@media (max-width: 767px) {
  .staff-tabs {
    flex-wrap: wrap;
    overflow-x: visible;
  }
  .staff-tabs::-webkit-scrollbar {
    display: none;
  }
  .staff-tab {
    flex: 0 0 calc((100% - 1.5rem) / 3);
    text-align: center;
    padding: 0.7rem 0.6rem;
    letter-spacing: 0.14em;
  }
}

/* Mobile: center-align text + roomier spacing */
@media (max-width: 767px) {
  body.is-home main,
  body.is-home main * {
    text-align: center;
  }

  /* Only explicit block elements should break lines on mobile */
  body.is-home main {
    white-space: nowrap;
  }

  /* Lock mobile horizontal pan */
  html,
  body {
    max-width: 100vw;
    overflow-x: clip;
    overscroll-behavior-x: none;
    touch-action: pan-y;
  }

  /* Extra safety for accidental overflow */
  body.is-home main {
    overflow-x: hidden;
  }

  /* Keep icon/text rows centered */
  body.is-home main p.flex {
    justify-content: center;
  }

  /* Increase paragraph spacing */
  body.is-home main p {
    margin-top: 0.75rem;
    margin-bottom: 1.25rem;
    line-height: 1.85;
  }

  body.is-home main h1 {
    margin-bottom: 1.25rem;
  }
  body.is-home main h2 {
    margin-top: 1.25rem;
    margin-bottom: 2.25rem;
  }
  body.is-home main h3,
  body.is-home main h4 {
    margin-bottom: 1rem;
  }

  /* Make button blocks breathe */
  body.is-home main .cta,
  body.is-home main .flex {
    row-gap: 0.9rem;
  }
}

@media (max-width: 767px) {
  /* Prevent off-screen glow from causing horizontal jiggle */
  .brand-glow {
    right: 0 !important;
    bottom: -2.5rem !important;
  }
}

.staff-tab:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: rgba(255, 255, 255, 0.92);
}

.staff-tab.is-active {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.12);
}

.staff-all {
  position: relative;
}

.staff-marquee {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.01);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.04);
}

.staff-track {
  display: flex;
  gap: 18px;
  padding: 18px;
  width: max-content;
  animation: staff-marquee 42s linear infinite;
}

.staff-item {
  width: clamp(220px, 22vw, 340px);
  aspect-ratio: 3 / 4;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.staff-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transform: scale(1.02);
  transition: opacity 600ms ease, transform 1200ms ease;
}

.staff-item:hover img {
  opacity: 0.95;
  transform: scale(1.06);
}

@keyframes staff-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.staff-grid-wrap {
  transition: opacity 300ms ease;
}

.staff-grid-wrap.is-hidden {
  display: none;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (min-width: 768px) {
  .staff-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .staff-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
}

.staff-grid-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 0 26px rgba(255, 255, 255, 0.05);
}

.staff-grid-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transform: scale(1.02);
  transition: opacity 600ms ease, transform 1200ms ease, filter 900ms ease;
}

.staff-grid-card:hover img {
  opacity: 1;
  transform: scale(1.06);
  filter: brightness(1.06) contrast(1.05) saturate(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .staff-track {
    animation: none;
  }
  .staff-item img,
  .staff-grid-card img {
    transition: none;
  }
}

