@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
  --bg: #080808;
  --bg-2: #131313;
  --bg-3: #1c1b1b;
  --bg-4: #201f1f;
  --bg-5: #2a2a2a;
  --bg-6: #353534;
  --gold: #c9a84c;
  --gold-light: #e6c364;
  --gold-dim: rgba(201, 168, 76, 0.15);
  --text: #e5e2e1;
  --text-muted: #d0c5b2;
  --text-dim: #99907e;
  --border: rgba(255,255,255,0.05);
  --border-subtle: #4d4637;
  --font-serif: 'Pretendard', 'Noto Serif KR', Georgia, serif;
  --font-body: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-label: 'Pretendard', 'Space Grotesk', monospace;
  --container: 1200px;
  --radius: 4px;
  --transition: 0.3s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--gold);
  color: var(--bg);
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold-light);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 48px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin-top: 12px;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8, 8, 8, 0.6);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  font-family: var(--font-label);
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--text);
}

.lang-toggle {
  background: none;
  border: 1px solid rgba(201, 168, 76, 0.3);
  color: var(--gold);
  font-size: 12px;
  font-family: var(--font-label);
  padding: 8px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lang-toggle:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  z-index: 0;
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, transparent 60%);
  z-index: 1;
}

.film-strip {
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  height: 24px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.03) 0px,
    rgba(255,255,255,0.03) 8px,
    transparent 8px,
    transparent 16px,
    rgba(255,255,255,0.03) 16px,
    rgba(255,255,255,0.03) 24px,
    transparent 24px,
    transparent 48px
  );
  opacity: 0.5;
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-label);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(48px, 10vw, 96px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.6;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  z-index: 1;
}

.hero-gradient {
  width: 100%;
  height: 100%;
  opacity: 0.2;
}

.gradient-a {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}
.gradient-b {
  background: linear-gradient(135deg, #2d1b2e 0%, #4a1942 50%, #6b2d5b 100%);
}
.gradient-c {
  background: linear-gradient(135deg, #1b2e1a 0%, #1a4a1a 50%, #2d6b2d 100%);
}

/* ===== FILMOGRAPHY ===== */
.filmography {
  padding: 80px 0;
}

.filmography-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.tab-btn {
  padding: 12px 32px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  border-color: var(--gold);
  color: var(--text);
}

.tab-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
  font-weight: 600;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.work-role {
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 8px;
}

/* ===== STATS ===== */
.stats-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 0;
}

.stats-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 24px 32px;
  border-right: 1px solid var(--border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-family: var(--font-label);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.stat-divider {
  display: none;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: #3d2e00;
}
.btn-primary:hover {
  transform: scale(0.98);
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.3);
}
.btn-secondary:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
}

/* ===== WORKS ===== */
.works {
  background: var(--bg);
}

.works-grid {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.work-card {
  display: grid;
  grid-template-columns: 460px 1fr; /* Fixed width for poster container */
  gap: 64px;
  align-items: center;
}

.work-card:nth-child(even) {
  direction: rtl;
}

.work-card:nth-child(even) > * {
  direction: ltr;
}

.work-poster {
  aspect-ratio: 16 / 9; /* Container ratio */
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: transform 0.3s ease;
}

.work-poster img {
  height: 90%; /* Poster height slightly smaller than container */
  width: auto;
  aspect-ratio: 2 / 3; /* Traditional portrait poster ratio */
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-card:hover .work-poster img {
  transform: scale(1.05);
}

.work-card:hover .work-poster {
  transform: translateY(-5px);
}

.work-card:hover .work-poster {
  filter: grayscale(0%);
  transform: scale(1.02);
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  gap: 8px;
}

.work-tag {
  font-family: var(--font-label);
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: rgba(10,10,10,0.8);
  padding: 4px 12px;
  border-radius: 4px;
}

.work-status {
  font-family: var(--font-label);
  font-size: 10px;
  color: var(--text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gold);
  padding: 4px 10px;
  border-radius: 4px;
  margin-left: 8px;
}

.work-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.work-title {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.work-logline {
  font-size: 18px;
  color: var(--gold);
  line-height: 1.5;
  margin-bottom: 24px;
  padding-left: 16px;
  border-left: 1px solid rgba(201, 168, 76, 0.5);
}

.work-desc {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 32px;
  line-height: 1.7;
}

.work-meta {
  font-family: var(--font-label);
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  opacity: 0.6;
}

/* ===== TEAM ===== */
.team {
  background: var(--bg-2);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px;
  margin-bottom: 48px;
}

.team-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.team-photo {
  width: 150px; /* Reduced remarkably from the previous large size */
  height: 150px; 
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  filter: grayscale(100%);
  transition: filter 0.7s ease, transform 0.3s ease;
  background: var(--bg-3);
  border: 2px solid var(--gold-dim);
  margin: 0 auto;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card:hover .team-photo {
  filter: grayscale(0%);
  transform: translateY(-5px);
  border-color: var(--gold);
}

.team-card:hover .team-photo {
  filter: grayscale(0%);
}

.team-name {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.team-role {
  font-family: var(--font-label);
  font-size: 12px;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.team-bio {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.team-credit {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}

.team-tagline {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

/* ===== PIPELINE ===== */
.pipeline {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pipeline-intro {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 64px;
  line-height: 1.7;
}

.pipeline-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.pipeline-step {
  display: flex;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  transition: border-color var(--transition);
}

.pipeline-step:last-child {
  border-bottom: none;
}

.pipeline-step:hover {
  border-color: var(--gold);
}

.pipeline-icon {
  font-family: var(--font-label);
  font-size: 32px;
  font-weight: 700;
  color: rgba(201, 168, 76, 0.4);
  flex-shrink: 0;
  width: 48px;
}

.pipeline-step h3 {
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.pipeline-step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== LIBRARY ===== */
.library {
  background: var(--bg-2);
}

.library-intro {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.library-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
}

.library-form .input {
  flex: 1;
}

.library-welcome {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.download-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.download-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: var(--text);
  font-size: 14px;
  transition: all var(--transition);
}

.download-item:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 168, 76, 0.05);
}

.download-icon {
  font-size: 20px;
}

.library-fallback p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== CONTACT ===== */
.contact {
  background: var(--bg-5);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.contact-email a {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--gold);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ===== INPUTS ===== */
.input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text);
  font-family: var(--font-label);
  font-size: 14px;
  padding: 16px 0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color var(--transition);
  outline: none;
}

.input:focus {
  border-color: var(--gold);
}

.input::placeholder {
  color: var(--text-dim);
  opacity: 0.5;
}

.textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #0e0e0e;
  border-top: 1px solid var(--border);
  padding: 64px 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-label);
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.2em;
}

.footer-copy {
  font-family: var(--font-label);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-email {
  font-family: var(--font-label);
  font-size: 12px;
  color: var(--text-dim);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-visual {
    width: 40%;
    opacity: 0.1;
  }
  .works-grid {
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .section {
    padding: 64px 0;
  }
  
  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }
  
  .hero-visual {
    display: none;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .stats-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 32px 24px;
  }
  
  .stat-item:last-child {
    border-bottom: none;
  }
  
  .work-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .library-form {
    flex-direction: column;
  }
  
  .hero-cta-group {
    flex-direction: column;
  }
  
  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== LANGUAGE TOGGLE STATES ===== */
[data-lang="en"] [data-i18n],
[data-lang="en"] .hero-title {
  font-family: var(--font-serif);
}
