/* FutureBox — 미디어아트 (타임캡슐 · 앰버·틸) */

body.media-portfolio.futurebox-page {
  background: transparent !important;
}

body.media-portfolio.futurebox-page main.page-main {
  position: relative;
  z-index: 20;
}

.fbx-divider {
  height: 1px;
  max-width: min(92%, 880px);
  margin: clamp(2rem, 5vw, 3rem) auto;
  border: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(61, 214, 195, 0.45),
    rgba(232, 168, 124, 0.4),
    rgba(196, 181, 253, 0.3),
    transparent
  );
}

/* 히어로 */
.fbx-hero {
  position: relative;
  padding: clamp(6rem, 12vw, 8rem) 1rem clamp(3rem, 6vw, 4rem);
  overflow: hidden;
}

.fbx-hero::before {
  content: "";
  position: absolute;
  inset: -40% -15% auto;
  height: 90%;
  background: radial-gradient(
    ellipse 58% 50% at 40% 0%,
    rgba(61, 214, 195, 0.16),
    rgba(232, 168, 124, 0.1),
    transparent 70%
  );
  pointer-events: none;
}

.fbx-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2rem, 5vw, 4rem);
}

.fbx-hero-left {
  flex: 1 1 320px;
  min-width: 0;
}

.fbx-hero-kicker {
  font-family: var(--mono, "JetBrains Mono", ui-monospace, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(142, 240, 228, 0.88);
  margin-bottom: 0.65rem;
}

.fbx-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  background: linear-gradient(
    125deg,
    #f8fdff 0%,
    #8ef0e4 28%,
    #e8a87c 52%,
    #c4b5fd 78%,
    #f0f4f8 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 32px rgba(0, 0, 0, 0.4));
  animation: fbx-title-shift 22s ease-in-out infinite alternate;
}

@keyframes fbx-title-shift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.fbx-hero-subtitle {
  margin: 0.75rem 0 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(200, 220, 235, 0.92);
}

.fbx-hero-desc {
  margin: 1.1rem 0 0;
  font-size: 1.02rem;
  line-height: 1.8;
  color: rgba(210, 220, 235, 0.92);
  max-width: 38rem;
}

.fbx-hero-desc strong {
  color: #fff;
  font-weight: 600;
}

.fbx-tag-box {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fbx-tag-box span {
  font-size: 0.78rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 10, 18, 0.45);
  color: rgba(168, 240, 228, 0.95);
}

.fbx-hero-right {
  flex: 0 0 min(280px, 42vw);
  display: flex;
  justify-content: center;
}

.fbx-logo-card {
  width: min(280px, 100%);
  aspect-ratio: 1;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 10, 18, 0.5);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    0 0 48px rgba(61, 214, 195, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.fbx-logo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 섹션 */
.fbx-section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.fbx-section-alt {
  background: linear-gradient(
    180deg,
    rgba(10, 14, 24, 0.42) 0%,
    rgba(8, 11, 20, 0.36) 100%
  );
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.fbx-section-head {
  text-align: center;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}

.fbx-kicker {
  font-family: var(--mono, "JetBrains Mono", ui-monospace, monospace);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(142, 240, 228, 0.78);
  margin-bottom: 0.75rem;
}

.fbx-section-title {
  margin: 0;
  font-size: clamp(1.45rem, 3.2vw, 1.85rem);
  font-weight: 800;
  background: linear-gradient(125deg, #f0f4f8 0%, #8ef0e4 45%, #e8c4a8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 18px rgba(0, 0, 0, 0.35));
}

.fbx-section-desc {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.8;
  color: rgba(205, 215, 230, 0.92);
}

.fbx-section-desc + .fbx-section-desc {
  margin-top: 1.25rem;
}

.fbx-grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.35rem);
}

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

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

.fbx-card {
  padding: 1.35rem 1.25rem 1.45rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 9, 18, 0.5);
  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.fbx-card:hover {
  border-color: rgba(61, 214, 195, 0.25);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.38),
    0 0 36px rgba(61, 214, 195, 0.08);
}

.fbx-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #8ef0e4;
}

.fbx-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(200, 210, 225, 0.9);
}

.fbx-flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(0.65rem, 2vw, 1rem);
  margin-bottom: 1.5rem;
}

.fbx-flow-node {
  padding: 0.85rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 10, 18, 0.55);
  font-size: 0.88rem;
  color: rgba(230, 238, 248, 0.95);
  text-align: center;
  min-width: 7rem;
}

.fbx-flow-node span {
  display: block;
  font-family: var(--mono, "JetBrains Mono", ui-monospace, monospace);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(142, 240, 228, 0.75);
  margin-bottom: 0.35rem;
}

.fbx-flow-arrow {
  color: rgba(232, 168, 124, 0.85);
  font-size: 1.25rem;
  opacity: 0.9;
}

.fbx-footer {
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem) 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--mono, "JetBrains Mono", ui-monospace, monospace);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(150, 175, 200, 0.8);
}

.fbx-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(142, 240, 228, 0.9);
  text-decoration: none;
  border-bottom: 1px solid rgba(61, 214, 195, 0.35);
  padding-bottom: 0.12rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.fbx-back:hover {
  color: #fff;
  border-color: rgba(142, 240, 228, 0.65);
}

@media (max-width: 900px) {
  .fbx-hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .fbx-hero-right {
    order: -1;
    flex: none;
    width: min(260px, 70vw);
  }

  .fbx-hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .fbx-tag-box {
    justify-content: center;
  }

  .fbx-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .fbx-grid--2 {
    grid-template-columns: 1fr;
  }

  .fbx-flow {
    flex-direction: column;
  }

  .fbx-flow-arrow {
    display: none;
  }
}

@media (max-width: 520px) {
  .fbx-grid--4 {
    grid-template-columns: 1fr;
  }
}
