/* ─── Variables ──────────────────────────────────────── */
:root {
  --bg: #000000;
  --bg-card: #0e0e0e;
  --text-primary: #eeeeee;
  --text-secondary: #808080;
  --text-muted: #383838;
  --accent: #c8c8c8;
  --border: rgba(255, 255, 255, 0.07);
  --font-display: 'Raleway', 'Noto Sans KR', sans-serif;
  --font-body: 'Inter', 'Noto Sans KR', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ─── Film Grain Overlay ─────────────────────────────── */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ─── Container ──────────────────────────────────────── */
.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 80px;
}

/* ─── Navigation ─────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px 80px;
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), border-color 0.5s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(7, 7, 7, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 20px 80px;
  border-bottom-color: var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--text-secondary);
  transition: color 0.3s;
}
.nav-logo:hover { color: var(--text-primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 48px;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s;
}
.nav-link:hover { color: var(--text-primary); }

.lang-toggle {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 6px 12px;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.lang-toggle:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.38);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 201;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text-secondary);
  transition: all 0.35s var(--ease);
  transform-origin: center;
}
.nav-toggle.open span:first-child {
  transform: translateY(4px) rotate(45deg);
  background: var(--text-primary);
}
.nav-toggle.open span:last-child {
  transform: translateY(-4px) rotate(-45deg);
  background: var(--text-primary);
}

/* Mobile overlay menu */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7,7,7,0.96);
  backdrop-filter: blur(12px);
  z-index: 150;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 48px;
}
.nav-mobile-overlay.open { display: flex; }
.nav-mobile-overlay .nav-link {
  font-size: 13px;
  letter-spacing: 0.35em;
  color: var(--text-secondary);
}
.nav-mobile-overlay .nav-link:hover { color: var(--text-primary); }

/* ─── Reveal Animation ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.42s; }

/* ─── Hero ───────────────────────────────────────────── */
.hero {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero-viz {
  flex: 0 0 62%;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 65%, #0b1021 0%, #030613 60%, #000000 100%);
}

#nebulaCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to bottom, transparent 0%, var(--bg) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px 40px;
  position: relative;
  z-index: 2;
}

.hero-wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(38px, 7vw, 68px);
  font-weight: 200;
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  color: rgba(255, 255, 255, 0.96);
  line-height: 1;
  text-shadow:
    0 0 6px  rgba(255, 255, 255, 1),
    0 0 18px rgba(210, 230, 255, 0.75),
    0 0 40px rgba(160, 200, 255, 0.45),
    0 0 80px rgba(120, 170, 255, 0.2);
}

.hero-sub-name {
  font-family: var(--font-display);
  font-size: clamp(38px, 7vw, 68px);
  font-weight: 200;
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  color: rgba(255, 255, 255, 0.96);
  line-height: 1;
  text-shadow:
    0 0 6px  rgba(255, 255, 255, 1),
    0 0 18px rgba(210, 230, 255, 0.75),
    0 0 40px rgba(160, 200, 255, 0.45),
    0 0 80px rgba(120, 170, 255, 0.2);
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 24px;
}



/* ─── Section Base ────────────────────────────────────── */
.section { padding: 128px 0; }

.section-label {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 200;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  display: block;
  text-decoration: underline;
  text-underline-offset: 10px;
  text-decoration-color: rgba(255, 255, 255, 0.18);
  text-decoration-thickness: 1px;
}

.section-header { margin-bottom: 56px; }

/* ─── Work Categories ────────────────────────────────── */
.work-section { padding-top: 80px; }


.work-categories {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.category-title {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.category-scroll-wrap {
  position: relative;
}

.category-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.category-row::-webkit-scrollbar { display: none; }

.scroll-btn {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 64px;
  border: none;
  cursor: pointer;
  z-index: 10;
  color: rgba(255, 255, 255, 0.75);
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease), color 0.2s;
}
.scroll-btn--prev {
  left: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.6), transparent);
}
.scroll-btn--next {
  right: 0;
  background: linear-gradient(to left, rgba(0,0,0,0.6), transparent);
}
.category-scroll-wrap:hover .scroll-btn:not(.hidden) { opacity: 1; }
.scroll-btn:hover { color: #fff; }
.scroll-btn.hidden { opacity: 0 !important; pointer-events: none; }

/* ─── Work Cards ─────────────────────────────────────── */
.work-card {
  flex: 0 0 350px;
  cursor: pointer;
}

.work-card--poster {
  flex: 0 0 252px;
}

.work-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #080808;
}

.work-card--poster .work-thumb {
  aspect-ratio: 3 / 4;
}

.work-thumb-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  transition: transform 0.8s var(--ease), filter 0.4s var(--ease);
}
.work-card:hover .work-thumb-img {
  transform: scale(1.04);
  filter: brightness(1.2);
}

.work-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0);
  transition: border-color 0.4s var(--ease);
  pointer-events: none;
  z-index: 2;
}
.work-card:hover .work-thumb::after {
  border-color: rgba(255,255,255,0.12);
}

.work-card-info {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 11px 0 0;
}

.work-card-title {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.work-card:hover .work-card-title { color: var(--text-primary); }

.work-card-year {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.work-card-year::before { content: '('; }
.work-card-year::after  { content: ')'; }


/* ─── About ───────────────────────────────────────────── */
.about-section { border-top: 1px solid var(--border); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 96px;
  align-items: start;
}

.about-statement {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 200;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin-top: 12px;
  line-height: 1.25;
}

.about-body {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 24px;
}
.about-body:last-of-type { margin-bottom: 0; }


/* ─── Team ───────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 80px;
  padding-top: 72px;
  border-top: 1px solid var(--border);
}

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

.team-photo {
  aspect-ratio: 3 / 4;
  width: 100%;
  background:
    radial-gradient(ellipse at 50% 28%, rgba(42, 42, 54, 1) 0%, rgba(10, 10, 12, 1) 62%),
    linear-gradient(180deg, #0e0e12 0%, #050505 100%);
  background-size: cover;
  background-position: center top;
  position: relative;
  overflow: hidden;
}

/* subtle top light — like a face catching soft overhead lighting */
.team-photo::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 55%;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.team-info {
  padding: 18px 0 0;
  border-top: 1px solid var(--border);
}

.team-name {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 7px;
}

.team-role {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.team-bio {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1.8;
  margin-top: 14px;
}

.team-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.team-link {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}
.team-link:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.5);
}

.team-link-sep {
  color: var(--text-secondary);
  font-size: 10px;
  opacity: 0.3;
}

/* ─── Contact ────────────────────────────────────────── */
.contact-section { border-top: 1px solid var(--border); }

.contact-inner { max-width: 680px; }


.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-primary);
  border-bottom: 1px solid var(--text-muted);
  padding-bottom: 6px;
  margin-top: 32px;
  margin-bottom: 40px;
  transition: color 0.3s, border-color 0.3s;
}
.contact-email:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.contact-links {
  display: flex;
  align-items: center;
  gap: 20px;
}


.contact-address {
  margin-top: 32px;
  font-style: normal;
  font-size: 15px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.85;
  letter-spacing: 0em;
}

/* ─── Video Modal ────────────────────────────────────── */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.video-modal.open {
  opacity: 1;
  pointer-events: all;
}
.video-modal-inner {
  position: relative;
  width: 90vw;
  max-width: 1080px;
  transform: translateY(16px);
  transition: transform 0.4s var(--ease);
}
.video-modal.open .video-modal-inner {
  transform: translateY(0);
}
.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  transition: color 0.3s;
}
.video-modal-close:hover { color: var(--text-primary); }
.video-modal-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000;
}
.video-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ─── Footer ──────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy,
.footer-tagline {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 1100px) {
  .container { padding: 0 48px; }
  .nav, .nav.scrolled { padding-left: 48px; padding-right: 48px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 56px; }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .nav { padding: 24px; }
  .nav.scrolled { padding: 16px 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .work-grid { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .about-stats { gap: 40px; flex-wrap: wrap; }
  .about-statement { font-size: 26px; }
  .hero-logo { height: 90px; }
  .hero-logo-svg { width: 90px; height: 90px; }
  .footer .container { flex-direction: column; gap: 8px; text-align: center; }
  .footer-tagline { display: none; }
}

@media (max-width: 480px) {
  .contact-links { flex-wrap: wrap; gap: 12px 16px; }
  .contact-sep { display: none; }
}
