* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --fd-purple: rgb(86, 63, 163);
  --fd-purple-solid: #563fa3;
  --fd-purple-dark: rgb(55, 36, 120);
  --fd-purple-dark-solid: #372478;
  --fd-orange: #F37021;
}

html, body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--fd-purple-solid);
  font-family: "Inter", "Spoqa Han Sans", "Noto Sans KR", sans-serif;
}

body {
  display: flex;
  flex-direction: column;
}

body.menu-open {
  overflow: hidden;
}

a {
  text-decoration: none;
}

/* ===== FUN DESIGN INTRO ===== */
.fun-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(210, 190, 255, 0.34), transparent 30%),
    radial-gradient(circle at 20% 20%, rgba(108, 92, 231, 0.32), transparent 34%),
    radial-gradient(circle at 82% 76%, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(135deg, #120b2c 0%, #26135f 45%, #6C5CE7 100%);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fun-intro.hide {
  opacity: 0;
  visibility: hidden;
}

.fun-intro::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(
    120deg,
    transparent 35%,
    rgba(255,255,255,0.22) 48%,
    transparent 62%
  );
  transform: translateX(-35%) rotate(-12deg);
  animation: glassSweep 2.8s ease-in-out infinite;
}

@keyframes glassSweep {
  0% { transform: translateX(-45%) rotate(-12deg); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: translateX(45%) rotate(-12deg); opacity: 0; }
}

.fun-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.72;
  animation: orbFloat 4s ease-in-out infinite alternate;
}

.orb-1 {
  width: 360px;
  height: 360px;
  left: 8%;
  top: 12%;
  background: rgba(188, 160, 255, 0.35);
}

.orb-2 {
  width: 420px;
  height: 420px;
  right: 6%;
  bottom: 8%;
  background: rgba(108, 92, 231, 0.44);
  animation-delay: 0.4s;
}

.orb-3 {
  width: 240px;
  height: 240px;
  left: 48%;
  bottom: 16%;
  background: rgba(255, 255, 255, 0.18);
  animation-delay: 0.8s;
}

@keyframes orbFloat {
  0% { transform: translateY(0) scale(0.96); }
  100% { transform: translateY(-24px) scale(1.08); }
}

.fun-intro-inner {
  position: relative;
  z-index: 2;
  width: min(720px, 86vw);
  padding: 56px 44px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 34px;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  box-shadow:
    0 30px 90px rgba(20, 10, 70, 0.42),
    inset 0 1px 0 rgba(255,255,255,0.32);
  animation: introCardIn 0.45s cubic-bezier(.18,.84,.28,1) forwards;
}

@keyframes introCardIn {
  0% {
    transform: translateY(34px) scale(0.92);
    opacity: 0;
    filter: blur(18px);
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
    filter: blur(0);
  }
}

.fun-intro-logo img {
  width: min(320px, 66vw);
  filter:
    drop-shadow(0 18px 34px rgba(0,0,0,0.24))
    drop-shadow(0 0 30px rgba(255,255,255,0.24));
  animation: logoBreath 2.2s ease-in-out infinite alternate;
}

@keyframes logoBreath {
  0% { transform: scale(1); }
  100% { transform: scale(1.035); }
}

.fun-intro-line {
  width: 0;
  height: 2px;
  margin: 30px auto 24px;
  background: linear-gradient(90deg, transparent, #ffffff, #bca8ff, #ffffff, transparent);
  box-shadow: 0 0 20px rgba(255,255,255,0.65);
  animation: lineOpen 1.1s ease 0.45s forwards;
}

@keyframes lineOpen {
  0% { width: 0; opacity: 0; }
  100% { width: min(420px, 70vw); opacity: 1; }
}

.fun-intro-title {
  font-size: clamp(32px, 6vw, 76px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
  text-shadow: 0 0 34px rgba(255,255,255,0.26);
}

.fun-intro-sub {
  margin-top: 14px;
  font-size: clamp(11px, 1.8vw, 15px);
  font-weight: 700;
  letter-spacing: 0.34em;
  color: rgba(255,255,255,0.78);
}

/* ===== HEADER ===== */
.header {
  --glass-bg: var(--fd-purple-solid);
  --glass-backdrop: none;
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-bottom: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 14px 34px rgba(46, 26, 99, 0.22);
  --glass-inset: none;
  --mega-li-offset: 19px;
  --mega-content-pad: 34px;

  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);

  width: calc(100% - 36px);
  max-width: 1480px;

  z-index: 1000;

  background: var(--fd-purple-solid);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  border: none;

  border-radius: 22px;

  box-shadow: var(--glass-shadow);

  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.header.scrolled {
  --glass-bg: rgba(55, 36, 120, 0.96);
  --glass-backdrop: none;
  --glass-border-bottom: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 14px 34px rgba(46, 26, 99, 0.26);
  --glass-inset: none;

  background: rgba(55, 36, 120, 0.96);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  border-bottom: 1px solid var(--glass-border-bottom);
  box-shadow: var(--glass-shadow);
}

.nav {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.nav-left {
  flex-shrink: 0;
  min-width: 0;
}

.nav-left a {
  display: flex;
  align-items: center;
}

.logo img,
.nav-logo img,
.nav-left img {
  filter:
    brightness(1.35)
    contrast(1.08)
    saturate(1.05);
}

.nav-left img {
  height: 60px;
  width: auto;
  display: block;

  transform: translateY(2px);

  transition: all 0.35s ease;
}

.nav-left img:hover {
  transform: translateY(-4px) scale(1.04);

  filter:
    brightness(1.35)
    contrast(1.08)
    saturate(1.05)
    drop-shadow(0 4px 12px rgba(108, 92, 231, 0.18));
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-menu > li > a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.88);

  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;

  padding: 8px 16px;

  border-radius: 10px;
  transition: all 0.35s ease;

  opacity: 0.85;
}

.nav-menu > li.active > a,
.nav-menu > li > a.active {
  color: #9f8cff;
  font-weight: 700;
}

.nav-menu > li > a:hover {
  color: #F37021;

  background: transparent;
  border: none;
  box-shadow: none;

  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  transform: translateY(-3px);

  text-shadow: none;

  opacity: 1;
}

.header:has(.nav-menu > .has-dropdown:hover) {
  border-bottom-color: transparent;
}

/* ===== MEGA MENU ===== */

.nav-menu > li {
  position: relative;
}

.has-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 58px;
  background: transparent;
  z-index: 1190;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  margin-top: 25.5px;

  min-width: 280px;
  padding: 34px 28px 30px;

  background: var(--glass-bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.10);
  border-right: 1px solid rgba(255, 255, 255, 0.10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);

  border-radius: 0 0 34px 34px;

  box-shadow: 0 18px 36px rgba(46, 26, 99, 0.20);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateX(-50%) translateY(-18px) scaleX(0.42) scaleY(0.04);
  transform-origin: top center;

  transition:
    opacity 0.45s ease,
    visibility 0.45s ease,
    transform 1.05s cubic-bezier(.22, 1, .36, 1),
    background 0.35s ease,
    backdrop-filter 0.35s ease,
    -webkit-backdrop-filter 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;

  overflow: hidden;
  z-index: 1200;
}

.mega-menu::before {
  content: none;
}

.mega-menu::after {
  content: none;
}

.header.scrolled .mega-menu {
  background: rgba(55, 36, 120, 0.96);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.has-dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scaleX(1) scaleY(1);
}

/* Signature — center dropdown under menu label */
.has-dropdown:has(> a[href="#signature"]) .mega-menu {
  transform: translateX(calc(-50% - 140px)) translateY(-18px) scaleX(0.42) scaleY(0.04);
}

.has-dropdown:has(> a[href="#signature"]):hover .mega-menu {
  transform: translateX(calc(-50% - 140px)) translateY(0) scaleX(1) scaleY(1);
}

.mega-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mega-text a {
  position: relative;
  display: inline-block;
  width: fit-content;

  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  white-space: nowrap;

  opacity: 0;
  transform: translateX(22px);

  transition:
    color 0.3s ease,
    transform 0.45s ease,
    opacity 0.45s ease;
}

.mega-text a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background-color: #F27D16;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mega-text a:hover::after {
  transform: scaleX(1);
}

.has-dropdown:hover .mega-text a {
  opacity: 1;
  transform: translateX(0);
}

.has-dropdown:hover .mega-text a:nth-child(1) { transition-delay: 0.08s; }
.has-dropdown:hover .mega-text a:nth-child(2) { transition-delay: 0.14s; }
.has-dropdown:hover .mega-text a:nth-child(3) { transition-delay: 0.20s; }
.has-dropdown:hover .mega-text a:nth-child(4) { transition-delay: 0.26s; }

.has-dropdown:has(> a[href="#archive"]):hover .mega-text a:nth-child(5) { transition-delay: 0.32s; }
.has-dropdown:has(> a[href="#archive"]):hover .mega-text a:nth-child(6) { transition-delay: 0.38s; }
.has-dropdown:has(> a[href="#archive"]):hover .mega-text a:nth-child(7) { transition-delay: 0.44s; }

.mega-text a:hover {
  color: #F37021;
  transform: translateX(6px);
}

.mega-cards {
  width: 620px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.mega-card {
  position: relative;
  height: 120px;
  overflow: hidden;
  border-radius: 20px;

  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);

  opacity: 0;
  transform: translateX(24px);

  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    box-shadow 0.35s ease;
}

.has-dropdown:hover .mega-card {
  opacity: 1;
  transform: translateX(0);
}

.has-dropdown:hover .mega-card:nth-child(1) { transition-delay: 0.08s; }
.has-dropdown:hover .mega-card:nth-child(2) { transition-delay: 0.14s; }
.has-dropdown:hover .mega-card:nth-child(3) { transition-delay: 0.20s; }
.has-dropdown:hover .mega-card:nth-child(4) { transition-delay: 0.26s; }
.has-dropdown:hover .mega-card:nth-child(5) { transition-delay: 0.32s; }

.mega-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  opacity: 0.72;
  filter: grayscale(12%) contrast(0.96);
  transition: 0.35s ease;
}

.mega-card span {
  position: absolute;
  left: 12px;
  bottom: 12px;

  color: #2E1A63;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;

  z-index: 2;
}

.mega-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(60, 40, 130, 0.22);
}

.mega-card:hover img {
  opacity: 0.9;
  transform: scale(1.06);
}

.mega-card-main {
  box-shadow: 0 0 0 1px rgba(108,92,231,0.26);
}

.menu-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;

  min-width: auto;
  height: auto;

  padding: 0;

  border: none;
  border-radius: 0;

  background: transparent;

  color: #ffffff;

  font-family: 'Bebas Neue', sans-serif;

  font-size: 33px;
  font-weight: 400;

  letter-spacing: 0.08em;

  cursor: pointer;
}

.menu-toggle:hover {
  text-shadow:
    0 0 18px rgba(108,92,231,0.22);

  transform: translateY(-1px);
}

.menu-toggle span {
  display: inline-block;
  transition: 0.35s ease;
}

.menu-toggle:hover span {
  color: #F37021;

  text-shadow:
  0 0 18px rgba(243,112,33,0.35);

  transform: translateY(-1px);
}

.header.scrolled .menu-toggle {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* ===== MOBILE MENU ===== */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;

background:
  linear-gradient(
    135deg,
    rgba(255,255,255,0.16),
    rgba(245,241,255,0.08)
  );

backdrop-filter: blur(18px) saturate(150%);
-webkit-backdrop-filter: blur(18px) saturate(150%);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateX(100%);
  transition:
    transform 0.65s cubic-bezier(.19,1,.22,1),
    opacity 0.35s ease,
    visibility 0.35s ease;

  overflow-y: auto;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform: translateX(0);
}

.mobile-menu-close {
  position: fixed;
  top: 22px;
  right: 22px;

  width: 44px;
  height: 44px;

  border: 1px solid rgba(46,26,99,0.14);
  border-radius: 50%;

  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  color: #2E1A63;
  font-size: 26px;
  line-height: 1;

  cursor: pointer;
  z-index: 3;

  transition: 0.35s ease;
}

.mobile-menu-close:hover {
  background: rgba(108,92,231,0.08);
  transform: rotate(90deg);
}

.mobile-menu-logo {
  position: sticky;
  top: 0;
  z-index: 2;

  height: 86px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,0.28);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.mobile-menu-logo img {
  width: 104px;
  height: auto;
  display: block;
}

.mobile-menu-layout {
  width: 100%;
  min-height: calc(100vh - 86px);

  display: grid;
  grid-template-columns: 42% 58%;
  gap: 18px;

  padding: 32px 18px 42px;
}

.mobile-menu-left {
  display: flex;
  flex-direction: column;
  gap: 24px;

  padding-top: 8px;
}

.mobile-menu-left .mobile-menu-link {
  position: relative;

  color: #151515;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;

  transition: 0.35s ease;
}

.mobile-menu-left .mobile-menu-link::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -7px;

  width: 0;
  height: 1px;

  background: #6C5CE7;

  transition: 0.35s ease;
}

.mobile-menu-left .mobile-menu-link:hover {
  color: #6C5CE7;
  transform: translateX(4px);
  text-shadow: 0 0 18px rgba(108,92,231,0.18);
}

.mobile-menu-left .mobile-menu-link:hover::after {
  width: 28px;
}

.mobile-menu-right {
  display: flex;
  flex-direction: column;
  gap: 14px;

  max-height: calc(100vh - 150px);
  overflow-y: auto;

  padding-right: 2px;
}

.mobile-card {
  position: relative;

  min-height: 150px;

  overflow: hidden;

  border-radius: 18px;

  background: rgba(108,92,231,0.08);
  box-shadow: 0 14px 34px rgba(46,26,99,0.10);

  display: block;

  transition: 0.4s ease;
}

.mobile-card img {
  width: 100%;
  height: 100%;

  min-height: 150px;

  object-fit: cover;

  opacity: 0.82;
  filter: grayscale(8%) contrast(0.94);

  transition: 0.4s ease;
}

.mobile-card::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      rgba(0,0,0,0.04) 0%,
      rgba(0,0,0,0.42) 100%
    );
}

.mobile-card span {
  position: absolute;
  left: 16px;
  bottom: 14px;

  color: #fff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;

  z-index: 2;
}

.mobile-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(46,26,99,0.16);
}

.mobile-card:hover img {
  transform: scale(1.05);
  opacity: 0.95;
}

/* ===== MAIN / HERO ===== */
.wrap.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 128px 40px 72px;
  overflow: hidden;
  background: var(--fd-purple-solid);
}

.hero-inner {
  width: 100%;
  max-width: 1320px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  text-align: left;
}

.hero-copy {
  width: 100%;
}

.hero .line {
  width: 72px;
  height: 3px;
  margin: 0 0 24px;
  background: var(--fd-orange);
  box-shadow: 0 0 18px rgba(243, 112, 33, 0.35);
}

.hero .title {
  font-size: clamp(52px, 8vw, 112px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.95;
  color: #ffffff;
  text-shadow: 0 12px 40px rgba(20, 10, 50, 0.35);
  animation: floatSoft 7s ease-in-out infinite;
}

@keyframes floatSoft {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

.hero .credit {
  margin-top: 18px;
  font-size: clamp(11px, 1.6vw, 14px);
  font-weight: 700;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.72);
}

.hero-visual-card {
  position: relative;
  width: min(1180px, 100%);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  max-height: min(72vh, 680px);
  border-radius: 40px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 28px 70px rgba(20, 10, 50, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  background: rgba(20, 10, 50, 0.25);
}

.hero-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-slider-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slider-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 16px;
  padding: 0 28px 26px;
  background: none;
  border: none;
  pointer-events: none;
}

.hero-slider-nav::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  background: linear-gradient(
    to top,
    rgba(30, 18, 70, 0.62) 0%,
    rgba(30, 18, 70, 0.18) 55%,
    transparent 100%
  );
  pointer-events: none;
  z-index: -1;
}

.hero-slider-nav > * {
  pointer-events: auto;
}

.hero-arrow {
  position: static;
  z-index: 3;
  transform: none;
  width: auto;
  height: auto;
  padding: 4px 8px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    color 0.35s ease,
    transform 0.35s ease,
    text-shadow 0.35s ease;
}

.hero-arrow:hover {
  background: transparent;
  border: none;
  color: var(--fd-orange);
  text-shadow: 0 0 18px rgba(243, 112, 33, 0.38);
}

.hero-arrow-prev:hover {
  transform: translateX(-5px);
}

.hero-arrow-next:hover {
  transform: translateX(5px);
}

.hero-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}

.hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition:
    background 0.35s ease,
    transform 0.35s ease;
}

.hero-dot:hover {
  background: var(--fd-orange);
  transform: scale(1.15);
}

.hero-dot.is-active {
  background: var(--fd-orange);
  transform: scale(1.2);
}

.hero-arrow span {
  display: block;
  margin: 0;
  line-height: 1;
  font-size: 0;
  letter-spacing: 0;
}

.hero-arrow-prev span::after,
.hero-arrow-next span::after {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 300;
  line-height: 1;
}

.hero-arrow-prev span::after {
  content: "←";
}

.hero-arrow-next span::after {
  content: "→";
}

/* legacy hero logo (other pages) */
.logo img {
  width: min(520px, 85vw);
  margin-bottom: 20px;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.08));
}

@keyframes purpleShift {
  0% { color:#000; }
  50% { color: var(--fd-orange); }
  100% { color:#000; }
}

/* ===== SECTION ===== */
.section {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
}

.section:nth-of-type(even) {
  background: #563FA3
}

.section-inner {
  max-width: 1200px;
  text-align: center;
}

.section h2 {
  font-size: clamp(32px, 6vw, 64px);
  margin-bottom: 20px;
  color: #ffffff;
}

.section p {
  font-size: 18px;
  color: #F37021;
}

/* ===== DESIGN ARCHIVE ===== */
#archive .section-inner {
  width: 100%;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  text-align: left;
}

.archive-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.archive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.archive-card.is-hidden {
  display: none;
}

.archive-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.15);
}

.archive-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.archive-info {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.archive-agency {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.archive-title {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  color: #fff;
}

.design-credit {
  margin: 8px 0 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fd-orange);
  opacity: 0.88;
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: #555;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .nav-menu {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    padding: 14px 24px;
  }

  .nav-left img {
    height: 38px;
  }
}

@media (max-width: 768px) {
  .header {
    top: 8px;
    width: calc(100% - 20px);
    border-radius: 18px;
  }

  .nav {
    padding: 12px 16px;
    gap: 12px;
  }

  .logo {
    display: none;
  }

  .nav-left img {
    height: 36px;
  }

  .menu-toggle {
    font-size: 30px;
  }

  .mobile-menu-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px 16px 36px;
  }

  .mobile-menu-left {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 20px;
    padding-top: 0;
  }

  .mobile-menu-left .mobile-menu-link {
    font-size: 14px;
  }

  .mobile-menu-right {
    max-height: none;
    overflow: visible;
  }

  .mobile-card {
    min-height: 120px;
  }

  .mobile-card img {
    min-height: 120px;
  }

  .wrap.hero {
    min-height: 100vh;
    padding: 108px 20px 56px;
    background: var(--fd-purple-solid);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero .line {
    margin: 0 auto 24px;
  }

  .hero-slider-nav {
    padding: 0 16px 18px;
    gap: 10px;
  }

  .hero-arrow {
    padding: 4px 4px;
  }

  .hero-arrow-prev span::after,
  .hero-arrow-next span::after {
    font-size: clamp(24px, 7vw, 36px);
  }

  .hero-dots {
    gap: 10px;
  }

  .hero-dot {
    width: 7px;
    height: 7px;
  }

  .hero .title {
    font-size: clamp(44px, 13vw, 70px);
  }

  .hero .credit {
    font-size: 12px;
    letter-spacing: 0.2em;
  }

  .section h2 {
    font-size: clamp(28px, 8vw, 48px);
  }

  .section p {
    font-size: 16px;
  }

  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 32px;
  }
}

@media (max-width: 480px) {
.menu-toggle {
  min-width: auto;
  height: auto;
  padding: 0;

  font-size: 28px;
  line-height: 1;

  transform: translateY(2px);
}

  .logo img {
    width: min(280px, 88vw);
  }

.nav-left img {
  height: 33px;
}

  .mobile-menu-overlay {
    padding: 32px 18px;
  }

  .mobile-menu-list a {
    padding: 17px 18px;
    border-radius: 16px;
  }

  .fun-intro-inner {
    padding: 42px 24px;
    border-radius: 28px;
  }

  .fun-intro-sub {
    letter-spacing: 0.18em;
  }

  .archive-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.header::after {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.25),
    transparent
  );
  opacity: 0;
  transition: 0.5s;

  pointer-events: none; /* 🔥 이거 추가 */
}

.internal-link,
.internal-mobile-link{
  position:relative;
  transition:.3s ease;
}

.internal-link::after,
.internal-mobile-link::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width:0;
  height:2px;
  background:#F37021;
  transition:.35s ease;
}

.internal-link:hover,
.internal-mobile-link:hover{
  color:#F37021;
}

.internal-link:hover::after,
.internal-mobile-link:hover::after{
  width:100%;
}

/* ===== HERO VIDEO CARD (cinematic showcase) ===== */

.hero-visual-card.video-card{
  width:min(560px, 92vw);
  aspect-ratio:4/5;
  min-height:0;
  max-height:none;
  margin:0;
}

.video-card{
  position:relative;

  width:min(560px, 92vw);
  aspect-ratio:4/5;

  overflow:hidden;

  border-radius:38px;

  background:
    rgba(255,255,255,.06);

  border:
    1px solid rgba(255,255,255,.12);

  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);

  box-shadow:
    0 30px 80px rgba(0,0,0,.28);

  isolation:isolate;

  animation:
    floatingCard 8s ease-in-out infinite;
}

@keyframes floatingCard{

  0%{
    transform:translateY(0);
  }

  50%{
    transform:translateY(-10px);
  }

  100%{
    transform:translateY(0);
  }
}

.hero-card-video{
  position:absolute;
  inset:0;

  width:100%;
  height:100%;

  object-fit:cover;
  object-position:center 42%;

  transform:scale(1.18);

  filter:
    brightness(.82)
    saturate(1.04)
    contrast(1.02);

  pointer-events:none;
}

.hero-card-overlay{

  position:absolute;
  inset:0;

  background:
    linear-gradient(
      180deg,
      rgba(18,11,44,.06),
      rgba(55,36,120,.16)
    );

  pointer-events:none;
}

@media (max-width:768px){

  .video-card{

    width:100%;
    aspect-ratio:4/5;

    border-radius:28px;
  }

  .hero-card-video{

    transform:scale(1.22);

    object-position:center 38%;
  }
}

/* ===== HERO VIDEO CARD FINAL OVERRIDE ===== */

.hero{
  position:relative;
  overflow:hidden;
  min-height:100vh;
  background:
    radial-gradient(circle at 22% 18%, rgba(255,255,255,.08), transparent 26%),
    radial-gradient(circle at 80% 82%, rgba(243,112,33,.08), transparent 28%),
    linear-gradient(135deg, #563fa3 0%, #4c3697 44%, #372478 100%);
}

.hero-inner{
  width:100%;
  max-width:1480px;
  min-height:100vh;
  margin:0 auto;
  padding:150px 24px 80px;

  display:flex;
  align-items:center;
  justify-content:center;
}

/* 기존 텍스트/라인 완전 제거 */
.hero-copy,
.hero-copy *,
.hero .line,
.hero .title,
.hero .credit{
  display:none !important;
  opacity:0 !important;
  visibility:hidden !important;
  pointer-events:none !important;
}

/* 기존 슬라이더 요소 숨김 */
.hero-slider,
.hero-slider-track,
.hero-slider-nav,
.hero-slide,
.hero-dots,
.hero-arrow{
  display:none !important;
}

/* 영상 카드 */
.video-card{
  position:relative;

  width:min(1180px, 86vw);
  aspect-ratio:16 / 9;

  overflow:hidden;
  border-radius:38px;

  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.16);

  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);

  box-shadow:
    0 32px 90px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.14);

  isolation:isolate;
}

/* 영상: 확대 금지 / 원본 비율 중심 */
.hero-card-video{
  width:100%;
  height:100%;

  object-fit:contain;
  object-position:center center;

  transform:none !important;

  background:#1b123f;

  filter:
    brightness(.96)
    saturate(1.02)
    contrast(1.01);

  pointer-events:none;
}

/* 영상 위 아주 약한 보라 오버레이 */
.hero-card-overlay{
  position:absolute;
  inset:0;

  background:
    linear-gradient(
      180deg,
      rgba(18,11,44,.02) 0%,
      rgba(55,36,120,.08) 100%
    );

  pointer-events:none;
  z-index:2;
}

/* 카드 안 영상 요소 레이어 */
.video-card video{
  position:relative;
  z-index:1;
  display:block;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width:1024px){

  .hero-inner{
    padding:130px 22px 70px;
  }

  .video-card{
    width:min(980px, 90vw);
    border-radius:32px;
  }
}

@media (max-width:768px){

  .hero{
    min-height:100svh;
  }

  .hero-inner{
    min-height:100svh;
    padding:118px 16px 54px;
  }

  .video-card{
    width:100%;
    aspect-ratio:16 / 9;
    border-radius:26px;
  }

  .hero-card-video{
    object-fit:contain;
    transform:none !important;
  }
}

@media (max-width:480px){

  .hero-inner{
    padding:110px 14px 44px;
  }

  .video-card{
    border-radius:22px;
  }
}

/* ===== HERO SLIDER RESTORE FINAL ===== */

.hero{
  position:relative;
  overflow:hidden;
  min-height:100vh;
  background:
    radial-gradient(circle at 22% 18%, rgba(255,255,255,.08), transparent 26%),
    radial-gradient(circle at 80% 82%, rgba(243,112,33,.08), transparent 28%),
    linear-gradient(135deg, #563fa3 0%, #4c3697 44%, #372478 100%);
}

/* 왼쪽 hero 텍스트 완전 제거 */
.hero-copy,
.hero-copy *,
.hero .line,
.hero .title,
.hero .credit{
  display:none !important;
  opacity:0 !important;
  visibility:hidden !important;
  pointer-events:none !important;
}

.hero-inner{
  width:100%;
  max-width:1480px;
  min-height:100vh;
  margin:0 auto;
  padding:150px 24px 80px;

  display:flex;
  align-items:center;
  justify-content:center;
}

/* 기존 영상 단독 카드 제거 */
.video-card,
.hero-video-wrap,
.hero-video,
.hero-video-overlay,
.hero-card-overlay{
  display:none !important;
}

/* 메인 슬라이드 카드 */
.hero-visual-card{
  position:relative;

  width:min(1180px, 86vw);
  aspect-ratio:16 / 9;

  overflow:hidden;
  border-radius:38px;

  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.16);

  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);

  box-shadow:
    0 32px 90px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.14);
}

.hero-slider{
  width:100%;
  height:100%;
  overflow:hidden;
}

.hero-slider-track{
  display:flex;
  width:100%;
  height:100%;
  transition:transform .85s cubic-bezier(.22,.61,.36,1);
  will-change:transform;
}

.hero-slide{
  flex:0 0 100%;
  width:100%;
  height:100%;
  overflow:hidden;
}

.hero-slide img,
.hero-slide-video{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  display:block;
}

/* 영상만 살짝 contain 느낌으로 보정하고 싶으면 cover 유지하되 확대 금지 */
.hero-slide-video{
  transform:none !important;
  filter:
    brightness(.96)
    saturate(1.02)
    contrast(1.01);
  background:#1b123f;
}

/* 화살표 */
.hero-slider-nav{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:5;
}

.hero-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);

  width:54px;
  height:54px;

  border:1px solid rgba(255,255,255,.42);
  border-radius:50%;

  background:rgba(255,255,255,.08);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);

  color:#ffffff;
  font-size:42px;
  line-height:1;

  display:flex;
  align-items:center;
  justify-content:center;

  cursor:pointer;
  pointer-events:auto;

  transition:
    color .25s ease,
    border-color .25s ease,
    background .25s ease,
    transform .25s ease;
}

.hero-arrow:hover{
  color:#F37021;
  border-color:#F37021;
  background:rgba(243,112,33,.12);
}

.hero-arrow-prev{
  left:28px;
}

.hero-arrow-next{
  right:28px;
}

/* 점 3개 */
.hero-dots{
  position:absolute;
  left:50%;
  bottom:26px;
  transform:translateX(-50%);

  display:flex;
  align-items:center;
  gap:10px;

  pointer-events:auto;
}

.hero-dot{
  width:10px;
  height:10px;

  border:none;
  border-radius:50%;

  background:rgba(255,255,255,.45);

  cursor:pointer;

  transition:
    background .25s ease,
    transform .25s ease;
}

.hero-dot:hover,
.hero-dot.is-active{
  background:#F37021;
  transform:scale(1.16);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width:1024px){

  .hero-inner{
    padding:130px 22px 70px;
  }

  .hero-visual-card{
    width:min(980px, 90vw);
    border-radius:32px;
  }

  .hero-arrow{
    width:48px;
    height:48px;
    font-size:38px;
  }

  .hero-arrow-prev{
    left:20px;
  }

  .hero-arrow-next{
    right:20px;
  }
}

@media (max-width:768px){

  .hero{
    min-height:100svh;
  }

  .hero-inner{
    min-height:100svh;
    padding:118px 16px 54px;
  }

  .hero-visual-card{
    width:100%;
    aspect-ratio:16 / 10;
    border-radius:26px;
  }

  .hero-slide img,
  .hero-slide-video{
    object-fit:cover;
    object-position:center center;
  }

  .hero-arrow{
    width:42px;
    height:42px;
    font-size:32px;
  }

  .hero-arrow-prev{
    left:14px;
  }

  .hero-arrow-next{
    right:14px;
  }

  .hero-dots{
    bottom:18px;
  }
}

@media (max-width:480px){

  .hero-inner{
    padding:110px 14px 44px;
  }

  .hero-visual-card{
    aspect-ratio:4 / 5;
    border-radius:22px;
  }

  .hero-arrow{
    width:38px;
    height:38px;
    font-size:28px;
  }
}

.hero-card-video{
  display:block !important;

  width:100%;
  height:100%;

  object-fit:cover;
  object-position:center center;

  transform:none !important;

  background:#1b123f;

  filter:
    brightness(.96)
    saturate(1.02)
    contrast(1.01);

  pointer-events:none;
}

.hero-slide-video{
  display:block !important;
}

.hero-slide{
  display:block !important;
}

.hero-slide video{
  display:block !important;
}

/* ===== HERO SLIDER DISPLAY FIX ===== */

.hero-slider{
  display:block !important;
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  overflow:hidden;
}

.hero-slider-track{
  display:flex !important;
  width:100%;
  height:100%;
  transition:transform .85s cubic-bezier(.22,.61,.36,1);
  will-change:transform;
}

.hero-slide{
  display:block !important;
  flex:0 0 100%;
  width:100%;
  height:100%;
  overflow:hidden;
}

.hero-slide img,
.hero-slide-video,
.hero-slide video{
  display:block !important;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  transform:none !important;
}

.hero-slider-nav{
  display:block !important;
  position:absolute;
  inset:0;
  z-index:10;
  pointer-events:none;
}

.hero-arrow{
  display:flex !important;
  pointer-events:auto;
}

.hero-dots{
  display:flex !important;
  pointer-events:auto;
}

.video-card,
.hero-video-wrap,
.hero-video,
.hero-video-overlay,
.hero-card-video,
.hero-card-overlay{
  display:none !important;
}

/* ===== HERO SLIDER MINIMAL ARROWS / SPACING OVERRIDE ===== */

.hero-inner{
  width:100%;
  max-width:1480px;
  min-height:100vh;
  margin:0 auto;

  padding:18px 24px 36px;

  display:flex;
  align-items:center;
  justify-content:center;
}

.hero-visual-card{
  margin-top:-52px;
}

.hero-arrow{
  position:absolute;

  width:auto;
  height:auto;

  border:none;
  background:none;
  box-shadow:none;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;

  color:rgba(255,255,255,.88);

  font-size:82px;
  font-weight:200;
  line-height:1;

  display:flex;
  align-items:center;
  justify-content:center;

  cursor:pointer;
  pointer-events:auto;

  transition:
    color .25s ease,
    transform .25s ease,
    opacity .25s ease;

  opacity:.72;
}

.hero-arrow:hover{
  color:#F37021;
  opacity:1;
  transform:scale(1.06);
}

.hero-arrow-prev{
  left:26px;
  top:auto;
  bottom:34px;
  transform:none;
}

.hero-arrow-next{
  right:26px;
  top:auto;
  bottom:34px;
  transform:none;
}

.hero-arrow-prev:hover,
.hero-arrow-next:hover{
  transform:scale(1.06);
}

.hero-dots{
  position:absolute;
  left:50%;
  bottom:34px;

  transform:translateX(-50%);

  display:flex;
  align-items:center;
  gap:10px;
}

@media (max-width:768px){

  .hero-inner{
    padding:10px 16px 24px;
  }

  .hero-arrow{
    font-size:58px;
  }

  .hero-arrow-prev{
    left:14px;
    bottom:18px;
  }

  .hero-arrow-next{
    right:14px;
    bottom:18px;
  }

  .hero-dots{
    bottom:22px;
  }

  .hero-visual-card{
    margin-top:-22px;
  }
}

/* ===== HERO SPACING SAFE OVERRIDE ===== */

.hero{
  padding-top:0 !important;
}

.hero-inner{

  /* 기존 중앙 정렬 구조 유지 */
  justify-content:flex-start !important;

  /* 세로 중앙 배치 해제 */
  align-items:center !important;

  /* 헤더 아래 여백만 축소 */
  padding-top:72px !important;

  /* 기존 하단 여백 유지 */
  padding-bottom:42px !important;
}

/* 카드 자체 위 여백 제거 */
.hero-visual-card{
  margin-top:0 !important;
}

/* 모바일 */
@media (max-width:768px){

  .hero-inner{
    padding-top:54px !important;
    padding-bottom:28px !important;
  }

  .hero-visual-card{
    margin-top:0 !important;
  }
}

/* ===== HERO QR OVERLAY ===== */

.hero-slide{
  position:relative;
}

.hero-qr-overlay{
  display:none !important;

  position:absolute;

  top:18px;
  right:18px;

  width:120px;
  height:120px;

  border-radius:18px;

  overflow:hidden;

  display:flex;
  align-items:center;
  justify-content:center;

  background:
    rgba(255,255,255,.14);

  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);

  border:
    1px solid rgba(255,255,255,.22);

  box-shadow:
    0 10px 30px rgba(0,0,0,.18);

  z-index:20;

  transition:
    transform .25s ease,
    opacity .25s ease,
    background .25s ease;

  opacity:.96;
}

.hero-qr-overlay:hover{

  transform:translateY(-2px);

  background:
    rgba(255,255,255,.18);
}

.hero-qr-overlay img{

  width:100%;
  height:100%;

  object-fit:cover;

  display:block;
}

/* 모바일 */
@media (max-width:768px){

  .hero-qr-overlay{

    top:12px;
    right:12px;

    width:78px;
    height:78px;

    border-radius:14px;
  }
}

/* ===== FIXED QR CONTACT ===== */

.hero-visual-card{
  position:relative;
}

.hero-qr-fixed{

  position:absolute;

  top:8px;
  right:8px;

  width:192px;

  display:flex;
  flex-direction:column;
  align-items:center;

  gap:12px;

  padding:14px;

  border-radius:24px;

  text-decoration:none;

  background:
    rgba(255,255,255,.18);

  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);

  border:
    1px solid rgba(255,255,255,.28);

  box-shadow:
    0 18px 42px rgba(0,0,0,.22);

  z-index:40;

  transition:
    transform .25s ease,
    background .25s ease,
    box-shadow .25s ease;
}

.hero-qr-fixed:hover{

  transform:translateY(-2px);

  background:
    rgba(255,255,255,.22);

  box-shadow:
    0 22px 52px rgba(0,0,0,.26);
}

.hero-qr-fixed img{

  width:164px;
  height:164px;

  border-radius:16px;

  display:block;

  object-fit:cover;

  background:#fff;
}

.hero-qr-text{

  display:flex;
  flex-direction:column;
  align-items:center;

  gap:3px;

  text-align:center;

  color:#fff;

  font-size:12px;
  font-weight:700;
  letter-spacing:.18em;

  line-height:1.35;
}

.hero-qr-text span{

  font-size:11px;
  font-weight:500;
  letter-spacing:.02em;

  color:
    rgba(255,255,255,.88);
}

@media (max-width:768px){

  .hero-qr-fixed{

    top:6px;
    right:6px;

    width:112px;

    padding:8px;

    gap:6px;

    border-radius:16px;
  }

  .hero-qr-fixed img{

    width:92px;
    height:92px;

    border-radius:10px;
  }

  .hero-qr-text{

    font-size:8px;
    letter-spacing:.12em;
  }

  .hero-qr-text span{

    font-size:7px;
  }
}