/* ===== 디자인 토큰 (폰트 등 갈아끼우기 쉬운 값) ===== */
:root {
  /* 전체 폰트: 변경 시 여기만 수정 (HTML의 Google Fonts link도 함께 교체) */
  --font-family: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  /* 키컬러: 변경 시 여기만 수정 */
  /* --accent-color: #4bcf56;
  --accent-color-90: #4bcf56e6; */
  --accent-color: #4bcf56;
  --accent-color-90: #4bcf56e6;
  /* 레이아웃: 콘텐츠 최대 너비, 모바일 브레이크포인트 */
  --content-max-width: 1200px;
  --breakpoint-mobile: 768px;
}

/* ===== 초기화 ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-family);
  color: #e0e0e0;
  overflow-x: hidden;
}

/* ===== 전체화면 비디오 배경 ===== */
.video-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.video-background__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-background__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.75) 100%);
  pointer-events: none;
}

/* ===== 스크롤되는 콘텐츠 래퍼 ===== */
.content-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ===== 첫 화면 히어로: 스페이서 (높이는 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에서 동적 설정 */
}

.hero__title {
  margin: 0 auto;
  width: 100%;
  max-width: var(--content-max-width);
  font-size: clamp(1.25rem, 3.5vw, 2rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--accent-color);
  text-align: center;
  padding: 1rem 2rem 0;
  /* transform은 JS에서 설정 (translateY + scale) */
  transform-origin: center center;
  will-change: transform;
}

.hero__title-link {
  color: inherit;
  text-decoration: none;
  pointer-events: auto;
  cursor: pointer;
}

.hero__title-sub {
  margin: 0 auto;
  width: 100%;
  max-width: var(--content-max-width);
  font-size: clamp(0.875rem, 2vw, 1.125rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--accent-color-90);
  text-align: center;
  /* text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8); */
  padding: 0.25rem 2rem 0.75rem;
  /* opacity는 JS에서 스크롤에 따라 1 → 0 */
  will-change: opacity;
}

/* ===== 콘텐츠 영역 ===== */
.content {
  padding: 0 2rem 2rem;
  max-width: var(--content-max-width);
  margin: 0 auto;
}

/* ===== 섹션 공통 ===== */
.section {
  margin-bottom: 10rem;
}

.section__title {
  margin: 0 0 3rem;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--accent-color);
  text-align: center;
}

/* ===== Flex 행: 2열, 3열, 그리드 ===== */
.flex-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  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 * 1.5rem) / 3);
  min-width: 0;
}

.flex-row--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 320px));
  gap: 1.5rem;
  justify-content: center;
}

/* 모바일: 프로필 그리드 2x2 → 1열 (--breakpoint-mobile: 768px) */
@media (max-width: 768px) {
  .flex-row--grid {
    grid-template-columns: 1fr;
  }
}

/* ===== 카드 스타일 ===== */
.card {
  background: rgba(40, 40, 40, 0.85);
  padding: 1.5rem;
  /* backdrop-filter: blur(8px); */
}

.card--large {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  backdrop-filter: blur(4px);
  border: 1px solid var(--accent-color);
}

.card__text {
  margin: 0;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  line-height: 1.5;
  color: #c0c0c0;
  font-weight: 300;
  text-align: justify;
}

.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;
}

.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.9rem;
  color: var(--accent-color);
}

.card__label-en {
  font-size: 0.85em;
  font-weight: 400;
  color: #999;
}

.card__caption {
  display: block;
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: #999;
}

/* 원형 카드: 제목·부제·본문 계층 */
.card__circle-title {
  margin: 1.5rem 0.5rem 2.5rem 0.5rem;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 600;
  color: var(--accent-color);
  line-height: 1.3;
}

/* 한글 우선, 영문 sub */
/* 영문도 한글과 동일한 스타일 (줄바꿈만 : 기준으로) */
/* 한글 : / 영문 항상 두 줄 (항상 줄바꿈) */
.card__circle-title-en {
  display: block;
  margin-top: 0.15em;
  font-size: 1em;
  font-weight: 600;
  color: var(--accent-color);
  line-height: 1.3;
}

.card__circle-subtitle-ko {
  margin: 0;
  font-size: clamp(0.8rem, 1.8vw, 1rem);
  font-weight: 500;
  color: #ccc;
  line-height: 1.3;
}

.card__circle-subtitle-en {
  margin: 0.2em 0 0.75rem;
  font-size: clamp(0.8rem, 1.8vw, 1rem);
  font-weight: 600;
  color: #999;
  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: #c0c0c0;
}

.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: #999;
}

.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: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .section--people .profile-grid {
    grid-template-columns: 1fr;
  }
}

.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;
}

/* 한글 우선(메인), 영문 sub */
.profile-card__row.profile-card__name .profile-card__ko {
  color: var(--accent-color);
}

.profile-card__row.profile-card__name .profile-card__en {
  color: #888;
  font-size: 0.9em;
  font-weight: 400;
}

.profile-card__row.profile-card__role .profile-card__ko {
  color: rgb(255, 255, 255, 0.7);
  font-weight: 500;
}

.profile-card__row.profile-card__role .profile-card__en {
  color: #888;
  font-size: 0.9em;
  font-weight: 400;
}

/* 설명: 한글 먼저(메인), 영문 sub */
.profile-card__desc-ko {
  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-en {
  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: 760px;
  margin: 0 auto;
  padding: 2.5rem;
  text-align: center;
  background: var(--accent-color-90);
  color: #1a1a1a;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.text-block__title {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 600;
  color: #1a1a1a;
}

/* 제목 영문: 작고 얇게, overflow 시 영문 기준 줄바꿈 */
.text-block__title-en {
  display: block;
  margin-top: 0.2em;
  font-size: 0.8em;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.35;
}

@media (min-width: 769px) {
  .text-block__title-en {
    display: inline;
    margin-top: 0;
    margin-left: 0.35em;
  }
  .card__circle-title-br {
    display: none;
  }
}

.text-block__body-ko {
  margin: 0;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  line-height: 1.7;
  color: #1a1a1a;
}

.text-block__body-en {
  margin: 0.75rem 0 0;
  font-size: clamp(0.75rem, 2.2vw, 0.9rem);
  font-weight: 400;
  line-height: 1.7;
  color: rgba(26, 26, 26, 0.75);
}

/* ===== 푸터 ===== */
.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: center;
  align-items: center;
  padding: 2rem 0 0.5rem;
  font-size: 0.8rem;
  color: #888;
}

.footer span:not(:last-child)::after {
  content: "|";
  margin-left: 1rem;
  color: #666;
}
