/* =========================================
   UNION COUNTY — Crew Page Stylesheet
   ========================================= */

/* -------------------------------------------------------
   CREW HERO
------------------------------------------------------- */
.crew-page {
  --crew-section-py: 100px;
}

.crew-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding-bottom: 80px;
}

.crew-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 30% 50%, rgba(201,169,110,0.07) 0%, transparent 60%),
    linear-gradient(160deg, #0e0e14 0%, #080808 50%, #0d0a05 100%);
}

.crew-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,8,8,0.5);
}

/* 시네마틱 코너 프레임 */
.frame-corner {
  position: absolute;
  width: 40px;
  height: 40px;
  z-index: 3;
}
.frame-corner.tl { top: 100px; left: 40px; border-top: 1px solid rgba(201,169,110,0.4); border-left: 1px solid rgba(201,169,110,0.4); }
.frame-corner.tr { top: 100px; right: 40px; border-top: 1px solid rgba(201,169,110,0.4); border-right: 1px solid rgba(201,169,110,0.4); }
.frame-corner.bl { bottom: 60px; left: 40px; border-bottom: 1px solid rgba(201,169,110,0.4); border-left: 1px solid rgba(201,169,110,0.4); }
.frame-corner.br { bottom: 60px; right: 40px; border-bottom: 1px solid rgba(201,169,110,0.4); border-right: 1px solid rgba(201,169,110,0.4); }

/* 필름 스트립 장식 */
.film-strip {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 32px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  border-top: 1px solid rgba(201,169,110,0.2);
  z-index: 3;
}

.film-hole {
  width: 16px;
  height: 12px;
  border: 1px solid rgba(201,169,110,0.25);
  border-radius: 2px;
  background: var(--bg-primary);
}

.crew-hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  max-width: 720px;
  padding: 0 24px;
  animation: fadeInUp 0.9s ease both;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  font-family: var(--font-en);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--white-30);
}

.breadcrumb a {
  color: var(--white-30);
  transition: color var(--transition);
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb i { font-size: 0.5rem; }
.breadcrumb span { color: var(--gold); }

.crew-hero-title {
  font-family: var(--font-ko);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 20px;
}

.crew-hero-desc {
  font-size: clamp(0.88rem, 2vw, 1rem);
  color: var(--white-60);
  line-height: 1.9;
}

/* -------------------------------------------------------
   FILTER BAR
------------------------------------------------------- */
.crew-filter-section {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 72px;
  z-index: 100;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.filter-bar::-webkit-scrollbar { display: none; }

.filter-btn {
  padding: 18px 28px;
  font-family: var(--font-ko);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--white-60);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-btn:hover {
  color: var(--white);
  background: var(--white-10);
}

.filter-btn.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* -------------------------------------------------------
   CREW GRID
------------------------------------------------------- */
.crew-section {
  padding: 80px 0 var(--crew-section-py);
  background: var(--bg-primary);
}

.crew-section .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

/* -------------------------------------------------------
   CREW CARD
------------------------------------------------------- */
.crew-card {
  background: var(--bg-card);
  transition: var(--transition);
  overflow: hidden;
}

.crew-card.hidden {
  display: none;
}

.crew-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Image area */
.crew-img-wrap {
  position: relative;
  overflow: hidden;
  height: 280px;
  flex-shrink: 0;
}

.crew-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

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

.crew-initials {
  font-family: var(--font-en);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255,255,255,0.12);
  letter-spacing: 0.05em;
  user-select: none;
}

/* Role badge */
.crew-role-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 5px 14px;
  background: rgba(201,169,110,0.15);
  border: 1px solid rgba(201,169,110,0.35);
  color: var(--gold);
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.crew-role-badge.onset { background: rgba(255,160,60,0.12);  border-color: rgba(255,160,60,0.3);  color: #ffaa3c; }
.crew-role-badge.post  { background: rgba(160,80,255,0.12);  border-color: rgba(160,80,255,0.3);  color: #c17aff; }
.crew-role-badge.dit   { background: rgba(80,190,255,0.12);  border-color: rgba(80,190,255,0.3);  color: #60c4ff; }

/* Hover overlay — filmography */
.crew-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.crew-card:hover .crew-hover-overlay {
  opacity: 1;
}

.crew-filmography {
  padding: 28px;
  text-align: center;
}

.filmography-label {
  font-family: var(--font-en);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.crew-filmography ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.crew-filmography li {
  font-size: 0.82rem;
  color: var(--white-60);
  line-height: 1.5;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.crew-filmography li:last-child { border-bottom: none; padding-bottom: 0; }

/* Info area */
.crew-info {
  padding: 32px 36px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.crew-name-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.crew-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
}

.crew-en-name {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--white-30);
}

.crew-position {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
}

.crew-bio {
  font-size: 0.85rem;
  color: var(--white-60);
  line-height: 1.8;
  flex: 1;
}

/* Skills */
.crew-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.crew-skills span {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border: 1px solid var(--border);
  color: var(--white-60);
  background: var(--white-10);
  border-radius: 2px;
  transition: var(--transition);
}

.crew-card:hover .crew-skills span {
  border-color: rgba(201,169,110,0.25);
  color: var(--white);
}

/* Meta */
.crew-meta {
  display: flex;
  gap: 24px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 0.72rem;
  color: var(--white-60);
  letter-spacing: 0.05em;
}

.meta-item i {
  color: var(--gold);
  font-size: 0.7rem;
}

/* -------------------------------------------------------
   CAPABILITIES
------------------------------------------------------- */
.capabilities {
  padding: var(--crew-section-py) 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.cap-item {
  background: var(--bg-card);
  padding: 48px 36px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.cap-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 0;
  background: var(--gold);
  transition: height 0.4s ease;
}

.cap-item:hover { background: var(--bg-card-hover); }
.cap-item:hover::before { height: 100%; }

.cap-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,169,110,0.1);
  border: 1px solid rgba(201,169,110,0.2);
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 24px;
  transition: var(--transition);
}

.cap-item:hover .cap-icon {
  background: rgba(201,169,110,0.18);
  border-color: rgba(201,169,110,0.4);
}

.cap-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.cap-item p {
  font-size: 0.83rem;
  color: var(--white-60);
  line-height: 1.8;
}

/* -------------------------------------------------------
   CTA SECTION
------------------------------------------------------- */
.crew-cta {
  padding: var(--crew-section-py) 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}

.cta-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
  padding: 72px 80px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* 구글폼이 들어오는 레이아웃 변형 */
.cta-inner--form {
  align-items: flex-start;
  flex-wrap: wrap;
}

.cta-inner--form .cta-text {
  flex: 0 0 300px;
  position: sticky;
  top: 100px;
}

/* Google Form iframe wrap — crew CTA */
.cta-gform-wrap {
  flex: 1 1 640px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  min-width: 0;
}

.cta-gform-wrap iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: none;
}

/* gold accent top line */
.cta-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.cta-eyebrow {
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.cta-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 0.88rem;
  color: var(--white-60);
  line-height: 1.8;
  max-width: 420px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--white-60);
  font-family: var(--font-ko);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-ghost:hover {
  border-color: var(--white-60);
  color: var(--white);
}

/* -------------------------------------------------------
   RESPONSIVE — Tablet (≤ 1024px)
------------------------------------------------------- */
@media (max-width: 1024px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }

  .cta-inner {
    flex-direction: column;
    padding: 56px 48px;
    text-align: center;
  }
  .cta-inner--form { text-align: left; }
  .cta-inner--form .cta-text { position: static; flex: 0 0 auto; width: 100%; }
  .cta-gform-wrap { flex: 0 0 auto; width: 100%; }
  .cta-desc { max-width: 100%; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; }

  .frame-corner.bl,
  .frame-corner.br { bottom: 36px; }
}

/* -------------------------------------------------------
   RESPONSIVE — Mobile (≤ 768px)
------------------------------------------------------- */
@media (max-width: 768px) {
  .crew-section .container {
    grid-template-columns: 1fr;
  }

  .cap-grid { grid-template-columns: 1fr; }

  .crew-img-wrap { height: 220px; }
  .crew-info { padding: 24px 24px 28px; }
  .crew-name { font-size: 1.25rem; }

  .cta-inner { padding: 40px 28px; }
  .cta-gform-wrap iframe { height: 2393px; }
  .cta-actions { flex-direction: column; width: 100%; }
  .btn-ghost, .btn-primary { width: 100%; justify-content: center; }

  .frame-corner { width: 24px; height: 24px; }
  .frame-corner.tl,
  .frame-corner.tr { top: 76px; }

  .filter-btn { padding: 16px 20px; font-size: 0.78rem; }

  .crew-filter-section { top: 60px; }
}

@media (max-width: 480px) {
  .crew-hero { min-height: 60vh; }
  .crew-initials { font-size: 2.2rem; }
}

/* -------------------------------------------------------
   CARD REVEAL ANIMATION (stagger per card)
------------------------------------------------------- */
.crew-card {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease, background var(--transition);
}
.crew-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.crew-card:nth-child(1) { transition-delay: 0.05s; }
.crew-card:nth-child(2) { transition-delay: 0.15s; }
.crew-card:nth-child(3) { transition-delay: 0.25s; }
.crew-card:nth-child(4) { transition-delay: 0.35s; }
.crew-card:nth-child(5) { transition-delay: 0.45s; }
.crew-card:nth-child(6) { transition-delay: 0.55s; }
