/* ============================================
   COVER
   ============================================ */
.sec-cover {
  display: flex;
  flex-direction: column;
  padding: 80px var(--gutter) 64px;
  font-family: var(--font-serif);
}

/* ============================================
   COVER - TOP META
   ============================================ */
.cover-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.cover-meta p { letter-spacing: -0.03em; line-height: 1.3; }
.cover-date { font-size: 16px; }
.cover-title { margin-top: 10px; font-size: 26px; font-weight: 700; }
.cover-by { margin-top: 6px; font-size: 16px; }

/* ============================================
   COVER - INFO (ROLE / CONTACT)
   ============================================ */
.cover-info { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: auto; padding-top: 80px; font-size: 18px; letter-spacing: -0.02em; }
.cover-info ul { display: flex; flex-wrap: wrap; }
.cover-role li + li::before { content: '/'; margin: 0 24px; }
.cover-contact { gap: 0 40px; }

/* ============================================
   COVER - DROP (떨어지는 글자)
   글자 위치·회전은 ui.js(initCoverDrop)가 물리 계산으로 지정
   ============================================ */
.cover-drop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-family: var(--font-base);
  font-size: 280px;
  font-weight: 800;
  line-height: 0.72;
  letter-spacing: 0;
  color: var(--color-text);
  pointer-events: none;
}
.cover-drop-char { position: absolute; top: 0; left: 0; display: block; transform: translate3d(0, -400px, 0); will-change: transform; }

/* ============================================
   ABOUT
   ============================================ */
.sec-about { background: var(--color-dark); color: var(--color-light); }

/* ABOUT - TOP */
.about-top { position: absolute; top: 72px; left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; align-items: baseline; }
.about-hello { font-family: var(--font-serif); font-size: 120px; font-weight: 700; line-height: 0.95; letter-spacing: -0.02em; }
/* 페이지 라벨: 프로젝트 슬라이드 페이지 번호(.case-top-page)와 같은 위치 */
.about-page { position: absolute; top: 40px; right: 52px; font-family: var(--font-mono); font-size: 14px; text-transform: uppercase; color: var(--color-light-sub); }

/* ABOUT - DESC */
.about-desc { position: absolute; top: 480px; left: var(--gutter); width: 560px; font-size: 17px; line-height: 1.65; letter-spacing: -0.02em; word-break: keep-all; }
.about-desc p + p { margin-top: 14px; }

/* ABOUT - BRACKET ( ) */
.about-bracket { position: absolute; top: 236px; width: 208px; height: 500px; fill: var(--color-light); stroke: var(--color-light); stroke-width: 24; stroke-linejoin: round; }
.about-bracket-l { left: 800px; }
.about-bracket-r { right: 60px; }

/* ABOUT - PHOTO (흰 테두리 액자) */
.about-photo { position: absolute; top: 184px; left: 1110px; width: 440px; height: 520px; padding: 24px; background: var(--color-light); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ABOUT - INFO */
.about-info { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 64px; display: grid; grid-template-columns: 640px 1fr 1fr 1fr; gap: 40px; font-family: var(--font-mono); font-size: 14px; line-height: 1.45; text-transform: uppercase; }
.about-career li + li { margin-top: 14px; }
.about-def { display: grid; grid-template-columns: 120px 1fr; gap: 20px; }
.about-def dt { color: var(--color-light-sub); }

/* ABOUT - 페이지 진입 모션 */
.about-top,
.about-page,
.about-desc,
.about-photo,
.about-info { opacity: 0; transform: translateY(40px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.about-bracket { opacity: 0; transition: opacity 0.9s ease 0.5s; }
.is-active .about-top,
.is-active .about-page { opacity: 1; transform: none; transition-delay: 0.4s; }
.is-active .about-bracket { opacity: 1; }
.is-active .about-photo { opacity: 1; transform: none; transition-delay: 0.6s; }
.is-active .about-desc { opacity: 1; transform: none; transition-delay: 0.7s; }
.is-active .about-info { opacity: 1; transform: none; transition-delay: 0.85s; }

@media (prefers-reduced-motion: reduce) {
  .about-top,
  .about-page,
  .about-desc,
  .about-bracket,
  .about-photo,
  .about-info { opacity: 1; transform: none; transition: none; }
}

/* ============================================
   BINGO
   ============================================ */
.sec-bingo { background: var(--color-bg); color: var(--color-text); }

/* BINGO - TOP */
.bingo-top { position: absolute; top: 72px; left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; align-items: baseline; }
.bingo-heading { font-family: var(--font-serif); font-size: 76px; font-weight: 300; line-height: 1; letter-spacing: 0; }
/* 페이지 라벨: 프로젝트 슬라이드 페이지 번호(.case-top-page)와 같은 위치 */
.bingo-page { position: absolute; top: 40px; right: 52px; font-family: var(--font-mono); font-size: 14px; text-transform: uppercase; color: var(--color-text-sub); }

/* BINGO - INTRO */
.bingo-label { font-family: var(--font-mono); font-size: 14px; text-transform: uppercase; color: var(--color-text-sub); }
.bingo-intro { position: absolute; top: 300px; left: var(--gutter); width: 480px; }
.bingo-title { margin-top: 20px; font-family: var(--font-display); font-size: 52px; font-weight: 700; line-height: 1; letter-spacing: -0.05em; }
.bingo-desc { margin-top: 32px; font-size: 17px; line-height: 1.7; letter-spacing: -0.02em; word-break: keep-all; color: var(--color-text-sub); }

/* BINGO - RESULT ( 3 ) BINGO */
.bingo-result { position: absolute; left: var(--gutter); bottom: 64px; }
.bingo-result-num { display: flex; align-items: center; gap: 4px; margin-top: 20px; font-family: var(--font-display); font-size: 140px; font-weight: 700; line-height: 1; letter-spacing: -0.06em; }
.bingo-bracket { width: 77px; height: 185px; fill: var(--color-text); stroke: var(--color-text); stroke-width: 24; stroke-linejoin: round; }

/* BINGO - BOARD (3x3) */
.bingo-board { position: absolute; right: var(--gutter); bottom: 64px; width: 1201px; height: 817px; }
.bingo-grid { display: grid; grid-template-columns: repeat(3, 400px); grid-auto-rows: 272px; border-top: 1px solid var(--color-text); border-left: 1px solid var(--color-text); }
.bingo-cell { position: relative; display: flex; flex-direction: column; padding: 20px; border-right: 1px solid var(--color-text); border-bottom: 1px solid var(--color-text); }
.bingo-meta { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; color: var(--color-text-sub); }
.bingo-thumb { display: block; height: 160px; margin-top: 14px; overflow: hidden; background: var(--color-bg-sub); }
.bingo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bingo-name { margin-top: auto; font-family: var(--font-display); font-size: 28px; font-weight: 700; line-height: 1; letter-spacing: -0.045em; }

/* Next 칸 : 비워 둔 칸 (마무리 페이지의 'Next Project · With You'로 이어짐) */
.bingo-cell-next { background: var(--color-bg-sub); color: var(--color-text-sub); }

/* 숫자 칸 : 전체 프로젝트 수 / 경력 연수 */
.bingo-stat-num { margin-top: auto; font-family: var(--font-display); font-size: 120px; font-weight: 700; line-height: 0.85; letter-spacing: -0.06em; }
.bingo-cell-stat .bingo-name { margin-top: 12px; color: var(--color-text-sub); }

/* 기타 작업 칸 : 상세 페이지 없는 프로젝트 이름 나열 */
.bingo-more-list { margin-top: 18px; column-count: 2; column-gap: 16px; font-size: 17px; font-weight: 500; line-height: 1.55; letter-spacing: -0.03em; }
.bingo-cell-more .bingo-name { color: var(--color-text-sub); }

/* BINGO - 페이지 진입 모션 : 판 등장 -> 결과 */
.bingo-top,
.bingo-page,
.bingo-intro,
.bingo-board { opacity: 0; transform: translateY(40px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.bingo-result { opacity: 0; transition: opacity 0.6s ease; }
.is-active .bingo-top,
.is-active .bingo-page { opacity: 1; transform: none; transition-delay: 0.4s; }
.is-active .bingo-intro { opacity: 1; transform: none; transition-delay: 0.55s; }
.is-active .bingo-board { opacity: 1; transform: none; transition-delay: 0.6s; }
.is-active .bingo-result { opacity: 1; transition-delay: 3.5s; }

@media (prefers-reduced-motion: reduce) {
  .bingo-top,
  .bingo-page,
  .bingo-intro,
  .bingo-board,
  .bingo-result { opacity: 1; transform: none; transition: none; }
}

/* ============================================
   PROJECTS (빙고판과 같은 판, 빙고 장치 없이 리스트로)
   ============================================ */
.sec-projects .bingo-result { transition-delay: 0s; }
.is-active.sec-projects .bingo-result { transition-delay: 0.7s; }
/* Projects 페이지 : Next 칸은 비워 둠 */
.sec-projects .bingo-cell-next,
.is-active.sec-projects .bingo-cell-next { background-color: var(--color-bg); }
.sec-projects .bingo-cell-next .bingo-meta,
.sec-projects .bingo-cell-next .bingo-name { visibility: hidden; }

/* ============================================
   THANK YOU (마무리) : 검은 배경 · 가운데 정렬
   ============================================ */
.sec-thanks { background: #000; color: #fff; text-align: center; }

/* 상단 : 디자이너 · 서비스 · 연락처 */
.thanks-head { position: absolute; top: 80px; left: 50%; transform: translateX(-50%); text-align: left; }
.thanks-meta { display: flex; gap: 96px; font-size: 16px; line-height: 1.5; }
.thanks-meta dt { margin-bottom: 10px; color: rgba(255, 255, 255, 0.4); }
.thanks-meta a { transition: opacity 0.2s; }
.thanks-meta a:hover,
.thanks-meta a:focus-visible { opacity: 0.6; }

/* 가운데 : [thank you] FOR WATCHING */
.thanks-title { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); }
.thanks-title-sub { display: block; font-size: 88px; font-weight: 300; line-height: 1.1; letter-spacing: -0.02em; }
.thanks-title-main { display: block; margin-top: 8px; font-size: 92px; font-weight: 700; line-height: 1; letter-spacing: -0.01em; text-transform: uppercase; }

/* 하단 */
.thanks-foot { position: absolute; left: 0; right: 0; bottom: 80px; }
.thanks-copy { font-size: 14px; color: rgba(255, 255, 255, 0.6); }

/* 진입 모션 */
.thanks-head,
.thanks-title,
.thanks-foot { opacity: 0; transition: opacity 0.9s ease; }
.is-active .thanks-title { opacity: 1; transition-delay: 0.4s; }
.is-active .thanks-head,
.is-active .thanks-foot { opacity: 1; transition-delay: 0.8s; }

@media (prefers-reduced-motion: reduce) {
  .thanks-head,
  .thanks-title,
  .thanks-foot { opacity: 1; transition: none; }
}

/* ============================================
   DIVIDER (프로젝트 시작 간지)
   좌: 번호 · 제목 · 메타 / 우: 2단 이미지 콜라주
   ============================================ */
.sec-divider { --divider-bg: #000; --divider-fg: #fff; background: var(--divider-bg); color: var(--divider-fg); }
/* 프로젝트별 표지 배경 : 각 프로젝트 브랜드 컬러 */
.sec-divider-hmg { --divider-bg: #13407a; }
.sec-divider-nc { --divider-bg: #1a7cf2; }
.sec-divider-sh { --divider-bg: #0039d1; }
.sec-divider-md { --divider-bg: #ff2a00; }
.sec-divider-pl { --divider-bg: #000; }
.sec-divider-dt { --divider-bg: #4255ff; }

.divider-top { position: absolute; top: 120px; left: var(--gutter); display: flex; gap: 0; font-size: 18px; font-weight: 500; }
.divider-top p { width: 180px; }
.divider-sub { position: absolute; top: 120px; right: var(--gutter); font-size: 18px; font-weight: 500; }
.divider-name { position: absolute; top: 170px; left: var(--gutter); max-width: 800px; font-family: var(--font-display); font-size: 140px; font-weight: 400; line-height: 1.02; letter-spacing: -0.02em; }
.divider-meta { position: absolute; left: var(--gutter); bottom: 110px; display: flex; flex-direction: column; font-size: 26px; line-height: 1.5; }
.divider-meta li:last-child { margin-top: 56px; font-size: 16px; }

.divider-gallery { position: absolute; top: 0; right: var(--gutter); bottom: 0; display: flex; gap: 16px; }
.divider-col { display: flex; flex-direction: column; gap: 16px; width: 430px; }
.divider-col-a { padding-top: 58px; }
.divider-col-b { padding-top: 226px; }
.divider-pic { flex: 0 0 auto; overflow: hidden; border-radius: 8px; background: #1a1a1a; }
.divider-pic img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.divider-pic-l { height: 536px; }
.divider-pic-m { height: 340px; }
.divider-pic-s { height: 200px; }
/* 피드 이미지(4:5) : 원본 비율 그대로 - 뉴스캐시 표지 */
.divider-pic-feed { height: auto; aspect-ratio: 4 / 5; }
.sec-divider-nc .divider-col { width: 360px; }
.sec-divider-nc .divider-col-b { padding-top: 160px; }

/* 등장 모션 */
.divider-name,
.divider-meta,
.divider-col { opacity: 0; transition: opacity 0.9s ease, transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1); }
.divider-name,
.divider-meta { transform: translateY(40px); }
.divider-col-a { transform: translateY(80px); }
.divider-col-b { transform: translateY(-80px); }
.is-active .divider-name,
.is-active .divider-meta,
.is-active .divider-col { opacity: 1; transform: none; }
.is-active .divider-name { transition-delay: 0.3s; }
.is-active .divider-col-a { transition-delay: 0.4s; }
.is-active .divider-col-b { transition-delay: 0.55s; }
.is-active .divider-meta { transition-delay: 0.7s; }

@media (prefers-reduced-motion: reduce) {
  .divider-name,
  .divider-meta,
  .divider-col { opacity: 1; transform: none; transition: none; }
}
