/* ===== 디자인 토큰 (폰트 등 갈아끼우기 쉬운 값) ===== */
:root {
  /* 전체 폰트: 변경 시 여기만 수정 (HTML의 Google Fonts link도 함께 교체) */
  --font-family: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  /* 히어로 타이틀: Adobe Fonts 키트(cvu2fnm) — .tk-* 클래스와 함께 사용 */
  --font-family-hero: "sandoll-bluenight", sans-serif;
  /* 키컬러: 변경 시 여기만 수정 */
  /* --accent-color: #4bcf56;
  --accent-color-90: #4bcf56e6; */
  --accent-color: #ffffff;
  --accent-color-90: #ffffffe6;
  --accent-color-50: #ffffffa2;
  /* 레이아웃: 콘텐츠 최대 너비, 모바일 브레이크포인트 */
  --content-max-width: 1200px;
  --breakpoint-mobile: 768px;
  --content-section-gap: 15rem;
  --content-row-gap: 2.25rem;
  --content-title-gap: 2.5rem;
}

/* ===== 초기화 ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  min-height: 100dvh;
  font-family: var(--font-family);
  color: #e0e0e0;
  overflow-x: hidden;
}

/* ===== 전체화면 비디오 배경 ===== */
.video-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.video-background__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.video-background__video.is-active {
  opacity: 1;
}

.video-background__video.is-mobile-playing {
  opacity: 1 !important;
}

.video-background__overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
  pointer-events: none;
}

/* ===== 스크롤되는 콘텐츠 래퍼 ===== */
.content-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  min-height: 100dvh;
}

/* ===== 첫 화면 히어로: 스페이서 (높이는 JS에서 동적 설정) ===== */
.hero {
  width: 100%;
  /* height는 JS에서 vh/2로 설정 */
}

/* ===== 타이틀: 완전히 독립된 최상위 레이어 ===== */
.hero__title-wrapper {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 2147483647;
  pointer-events: none;
  /* paddingTop은 JS에서 동적 설정 */
}

/* 이미지 타이틀 컨테이너 - scale 제어용 */
.hero__title-inner {
  width: 100%;
  transform-origin: top center;
  will-change: transform;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem;
}

.hero__title {
  margin: 0;
  width: 100%;
  max-width: clamp(200px, 30vw, 500px);
}

.hero__title-link {
  display: block;
  text-decoration: none;
  line-height: 0;
  pointer-events: auto;
  cursor: pointer;
}

.hero__title-img {
  display: block;
  width: 100%;
  height: auto;
}


.hero__title-sub {
  margin: 0;
  width: 100%;
  max-width: clamp(300px, 45vw, 750px);
}

.hero__title-sub-img {
  display: block;
  width: 100%;
  height: auto;
}

/* 좌측 상단 고정: TechCapsule */
.tc-corner-link {
  position: fixed;
  top: clamp(0.45rem, 1.2vw + 0.35rem, 0.85rem);
  left: clamp(0.45rem, 1.2vw + 0.35rem, 0.85rem);
  z-index: 2147483647;
  width: clamp(1.75rem, 4vw + 0.5rem, 2.5rem);
  height: clamp(1.75rem, 4vw + 0.5rem, 2.5rem);
  display: block;
  line-height: 0;
  border-radius: clamp(6px, 0.6vw + 4px, 10px);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.tc-corner-link:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
}

.tc-corner-link__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ===== 콘텐츠 영역 ===== */
.content {
  padding: 1.5rem 2rem 2.5rem;
  max-width: var(--content-max-width);
  margin: 0 auto;
}

/* ===== 섹션 공통 ===== */
.section {
  margin-top: 15rem;
  margin-bottom: var(--content-section-gap);
}

/* 첫 번째 인트로 섹션: 빨리 나타나도록 상단 여백 제거 */
.section--intro {
  margin-top: 0;
  margin-bottom: 30rem;
}

.section__title {
  margin: 0 0 var(--content-title-gap);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--accent-color-90);
  text-align: center;
}


/* ===== Flex 행: 2열, 3열, 그리드 ===== */
.flex-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--content-row-gap);
  justify-content: center;
  align-items: stretch;
}

.flex-row--2 > * {
  flex: 1 1 min(100%, 400px);
  min-width: 280px;
}

/* 3열 원형 카드: 항상 3열 유지, 해당 영역만 가로 스크롤 */
.section__scroll-x {
  overflow-x: auto;
  width: 100%;
  /* Firefox: 항상 보이되 비조작 시 은은하게 */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) rgba(255, 255, 255, 0.05);
}

/* WebKit(Chrome, Safari, Edge): 항상 보이되 비조작 시 더 은은하게 */
.section__scroll-x::-webkit-scrollbar {
  height: 6px;
}

.section__scroll-x::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.section__scroll-x::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.section__scroll-x::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}

.section__scroll-x::-webkit-scrollbar-thumb:active {
  background: rgba(255, 255, 255, 0.35);
}

.flex-row--3 {
  min-width: 920px;
}

.flex-row--3 > * {
  flex: 0 0 calc((100% - 2 * var(--content-row-gap)) / 3);
  min-width: 0;
}

.flex-row--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 320px));
  gap: var(--content-row-gap);
  justify-content: center;
}

/* ===== 카드 스타일 ===== */
.card {
  background: rgba(40, 40, 40, 0.85);
  padding: 1.5rem;
  /* backdrop-filter: blur(8px); */
}

.card--large {
  min-height: flex;
  display: flex;
  align-items: start;
  justify-content: start;
  background: transparent;
  backdrop-filter: blur(4px);
  border: 1px solid var(--accent-color);
}

.card__text {
  margin: 0;
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  line-height: 1.5;
  color: #c0c0c0;
  font-weight: 400;
  text-align: justify;
}

.film-info {
  margin: 0 auto 1.5rem;
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 500;
  color: var(--accent-color-50);
  text-align: right;
  max-width: var(--content-max-width);
}

/* 메인 인트로: 한글 단락 줄간격을 영문보다 넓게 */
.card__text--ko {
  line-height: 1.8;
}

.card--circle {
  container-type: inline-size;
  container-name: card;
  text-align: center;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: none;
}

.card--image {
  background: transparent;
  backdrop-filter: none;
}

.section--trailer .trailer-card {
  max-width: 1280px;
  margin: 2rem auto 0;
  background: rgba(8, 8, 8, 0.65);
  /* border: 1px solid rgba(176, 187, 103, 0.45); */
  padding: 0.5rem;
}

.trailer-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
}

.card__image {
  display: block;
  background: rgba(60, 60, 60, 0.9);
}

.card__image--circle {
  width: 160px;
  height: 160px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  transition: transform 0.25s ease;
  background-color: transparent;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.card__image--circle-1 {
  background-image: url("assets/images/circle_1.png");
}

.card__image--circle-2 {
  background-image: url("assets/images/circle_2.png");
}

.card__image--circle-3 {
  background-image: url("assets/images/circle_3.png");
}

.card--circle:hover .card__image--circle {
  transform: scale(1.08);
}

.card__image--landscape {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin: 0.5rem 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.card__image--landscape-pyp {
  background-image: url("assets/images/PYP.png");
  background-color: transparent;
}

.card__image--landscape-bic {
  background-image: url("assets/images/BIC.png");
  background-color: transparent;
}

.card__label {
  font-size: 0.85em;
  font-weight: 400;
  color: #ccc;
}

.card__label-en {
  font-size: 0.9rem;
  color: var(--accent-color-90);
}

.card__caption {
  display: block;
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: #999;
}

/* 원형 카드: 제목·부제·본문 계층 */
.card__circle-title {
  margin: 1.5rem 0.5rem 2rem 0.5rem;
  font-size: clamp(0.9rem, 2.2vw, 1.1rem);
  font-weight: 400;
  color: var(--accent-color-90);
  line-height: 1.3;
}


/* 영문도 한글과 동일한 스타일 (줄바꿈만 : 기준으로) */
/* 한글 : / 영문 항상 두 줄 (항상 줄바꿈) */
.card__circle-title-en {
  display: block;
  margin-top: 0.15em;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 600;
  color: var(--accent-color-90);
  line-height: 1.3;
}

.card__circle-subtitle-ko {
  margin: 0;
  font-size: clamp(0.8rem, 1.8vw, 1rem);
  font-weight: 500;
  color: #999;
  margin: 0.5rem 0.5rem 1rem 0.5rem;
  line-height: 1.3;
}

.card__circle-subtitle-en {
  margin: 0.1em 0 0.25rem;
  font-size: clamp(0.8rem, 1.8vw, 1rem);
  font-weight: 600;
  color: #ccc;
  line-height: 1.35;
}

.card__circle-body {
  text-align: left;
}

.card__circle-body-ko {
  margin: 0 0 0.75rem;
  font-size: clamp(0.8rem, 1.6vw, 0.9rem);
  font-weight: 400;
  line-height: 1.6;
  color: #aeaeae;
}

.card__circle-body-en {
  margin: 0 0 0.75rem;
  font-size: clamp(0.8rem, 1.6vw, 0.9rem);
  font-weight: 500;
  line-height: 1.4;
  color: #c0c0c0;
}

.card__circle-body-ko:last-child,
.card__circle-body-en:last-child {
  margin-bottom: 0;
}

/* ===== 프로필 카드 (2x2) ===== */
.profile-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(40, 40, 40, 0.85);
  padding: 1.25rem;
  backdrop-filter: blur(8px);
  border-radius: 12px;
}

.profile-card__image {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  background: rgba(80, 80, 80, 0.9);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 8px;
}

.profile-card__image--1 {
  background-image: url("assets/images/ppl_1.png");
}

.profile-card__image--2 {
  background-image: url("assets/images/ppl_2.png");
}

.profile-card__image--3 {
  background-image: url("assets/images/ppl_3.png");
}

.profile-card__image--4 {
  background-image: url("assets/images/ppl_4.png");
}

/* PEOPLE 섹션: PLACES와 동일 최대 너비, 2x2 프로필 그리드 */
.section--people .profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--content-row-gap);
  max-width: 900px;
  margin: 0 auto;
}

.profile-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* 영문 | 한글 한 줄 행 */
.profile-card__row {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.profile-card__row.profile-card__name {
  font-size: 1rem;
  font-weight: 600;
}

.profile-card__row.profile-card__name .profile-card__role-text {
  font-weight: 400;
}

/* 한글 우선(메인), 영문 sub */
.profile-card__row.profile-card__name .profile-card__ko {
  color: #888;
  font-size: 0.9em;
  font-weight: 400;
}

.profile-card__row.profile-card__name .profile-card__en {
  color: var(--accent-color-90);
}

.profile-card__row.profile-card__role .profile-card__ko {
  color: #888;
  font-size: 0.9em;
  font-weight: 400;
}

.profile-card__row.profile-card__role .profile-card__en {
  color: rgb(255, 255, 255, 0.7);
  font-weight: 500;
}

/* 설명: 영문 먼저(메인), 한글 sub */
.profile-card__desc-en {
  margin: 0.5rem 0 0;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  font-weight: 400;
  color: #b8b8b8;
  line-height: 1.45;
}

.profile-card__desc-ko {
  margin: 0.2em 0 0;
  font-size: 0.8rem;
  font-weight: 400;
  color: #888;
  line-height: 1.45;
}

.profile-card__sep {
  margin: 0 0.5em;
  color: #666;
  font-weight: 400;
}

/* ===== 텍스트 블록 (Main) ===== */
.text-block {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem;
  text-align: center;
  background: transparent;
  backdrop-filter: none;
  color: #ffffff;
  box-shadow: none;
  border: none;
}

.text-block__title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 600;
  color: #ffffff;
}

.text-block__title + .text-block__body-en,
.text-block__title + .text-block__body-ko {
  margin-top: 0.75rem;
}

/* 제목 한글: 작고 얇게, overflow 시 한글 기준 줄바꿈 */
.text-block__title-ko {
  display: block;
  margin-top: 0.2em;
  font-size: 0.8em;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.35;
}

.text-block__body-en {
  margin: 0;
  margin: 2rem 0 0;
  font-size: clamp(0.85rem, 2.8vw, 1.15rem);
  line-height: 1.7;
  font-weight: 500;
  color: #e8e8e8;
  word-break: keep-all;
  overflow-wrap: normal;
}

/* 모바일 전용 줄바꿈: 데스크톱에서는 숨김 */
.br-mobile {
  display: none;
}

.text-block__body-ko {
  margin: 2rem 0 0;
  font-size: clamp(0.75rem, 2.2vw, 0.9rem);
  font-weight: 400;
  line-height: 1.7;
  color: rgba(232, 232, 232, 0.9);
}

/* ===== 크레딧 섹션 ===== */
.section--credits {
  margin-bottom: 5rem;
}

/* 1행: 제작진 컨테이너 - 모바일에서 가로 스크롤 */
.credits-main {
  max-width: 1200px;
  margin: 0 auto 4rem;
  padding: 2.5rem;
  background: transparent;
}

.credits-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7rem;
}

.credits-column-half {
  display: flex;
  flex-direction: column;
}

.credits-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
  align-items: baseline;
}

.credits-role {
  font-size: clamp(0.8rem, 1.8vw, 0.9rem);
  font-weight: 500;
  color: var(--accent-color-90);
  text-align: left;
  word-break: keep-all;
}

.credits-names {
  font-size: clamp(0.75rem, 1.8vw, 0.85rem);
  font-weight: 400;
  color: #d0d0d0;
  line-height: 1.6;
  word-break: keep-all;
}

.credits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.credits-column {
  padding: 1.5rem;
  background: transparent;
}

.credits-column--full {
  grid-column: 1 / -1;
}

.credits-subtitle {
  margin: 0 0 1rem;
  font-size: clamp(0.8rem, 1.8vw, 0.95rem);
  font-weight: 600;
  color: var(--accent-color-90);
  line-height: 1.4;
}

.credits-text {
  margin: 0;
  font-size: clamp(0.7rem, 1.6vw, 0.8rem);
  line-height: 1.5;
  font-weight: 400;
  color: #d0d0d0;
  word-break: keep-all;
}

.credits-org {
  font-size: clamp(0.75rem, 1.7vw, 0.85rem);
  font-weight: 500;
  color: var(--accent-color-90);
  margin-right: 0.5em;
  word-break: keep-all;
}

/* ===== 상영리스트 섹션 ===== */
.section--screening {
  margin-bottom: 10rem;
}

.screening-list {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 2rem 2rem 2rem;
  background: transparent;
  text-align: start;
}

.screening-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.2rem;
  margin-bottom: 0.8rem;
  align-items: baseline;
}

.screening-row:last-child {
  margin-bottom: 0;
}

.screening-date {
  font-size: clamp(0.8rem, 1.8vw, 0.9rem);
  font-weight: 300;
  color: var(--accent-color-90);
  text-align: left;
}

.screening-title {
  font-size: clamp(0.8rem, 1.8vw, 0.9rem);
  font-weight: 500;
  color: #d0d0d0;
  line-height: 1.6;
  word-break: keep-all;
}

/* ===== 푸터 ===== */
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0 0.5rem;
  font-size: 0.8rem;
  color: #888;
}

.footer__link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: #ccc;
}

.footer__copy {
  margin: 0;
  text-align: center;
}

/* ===== 모바일 반응형 (768px 이하) ===== */
@media (max-width: 768px) {
  /* 모바일 viewport 높이 최적화 */
  body {
    min-height: 100vh;
    min-height: -webkit-fill-available;
    min-height: 100dvh;
  }
  
  .content-wrapper {
    min-height: 100vh;
    min-height: -webkit-fill-available;
    min-height: 100dvh;
  }

  /* 섹션 상단 여백 줄이기 */
  .section {
    margin-top: 8rem;
  }

  /* 인트로 섹션: 더 빠르게 나타나도록 */
  .section--intro {
    margin-top: 5rem;
    margin-bottom: 10rem;
  }

  /* 그리드 레이아웃: 1열로 변경 */
  .flex-row--grid {
    grid-template-columns: 1fr;
  }

  /* 프로필 그리드: 1열로 변경 */
  .section--people .profile-grid {
    grid-template-columns: 1fr;
  }

  /* 텍스트 블록: 전체 너비, 패딩 제거 */
  .text-block {
    max-width: 100%;
    padding: 0rem;
  }

  /* 타이틀 한글: 데스크톱에서는 인라인 */
  .text-block__title-ko {
    display: inline;
    margin-top: 0;
    margin-left: 0.35em;
  }

  .card__circle-title-br {
    display: none;
  }

  /* 모바일 전용 줄바꿈 표시 */
  .br-mobile {
    display: inline;
  }

  /* 크레딧 메인: 가로 스크롤 */
  .credits-main {
    overflow-x: auto;
    padding: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) rgba(255, 255, 255, 0.05);
  }

  .credits-main::-webkit-scrollbar {
    height: 4px;
    -webkit-appearance: none;
  }

  .credits-main::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
  }

  .credits-main::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    min-width: 40px;
  }

  /* 크레딧 2열: 고정 너비로 변경 */
  .credits-two-columns {
    grid-template-columns: 350px 350px;
    gap: 2rem;
    min-width: min-content;
  }

  /* 크레딧 행: 컬럼 너비 조정 */
  .credits-row {
    grid-template-columns: 100px 1fr;
    gap: 0.1rem;
    margin-bottom: 0.5rem;
  }

  /* 크레딧 그리드: 3열 고정 너비, 가로 스크롤 */
  .credits-grid {
    grid-template-columns: repeat(3, 300px);
    gap: 2rem;
    overflow-x: auto;
    padding: 0 1.5rem;
    margin: 0 -1.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) rgba(255, 255, 255, 0.05);
  }

  .credits-grid::-webkit-scrollbar {
    height: 4px;
    -webkit-appearance: none;
  }

  .credits-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
  }

  .credits-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    min-width: 40px;
  }

  /* 상영 리스트 행: 컬럼 너비 조정 */
  .screening-row {
    grid-template-columns: 100px 1fr;
    gap: 0.2rem;
  }
}

/* 데스크톱 (769px 이상) */
@media (min-width: 769px) {
  .text-block__title-ko {
    display: inline;
    margin-top: 0;
    margin-left: 0.35em;
  }

  .card__circle-title-br {
    display: none;
  }
}
